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
sequencelengths 1
8
|
---|---|---|---|---|---|
server {
server_name default;
root /var/www/default/public;
index index.php;
client_max_body_size 100M;
fastcgi_read_timeout 1800;
sendfile off;
location / {
try_files $uri $uri/ @rewrite;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
access_log off;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param ENV DOCKER;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?url=$1;
}
}
| ApacheConf | 4 | messyOne/elvenar_stats | docker/sites/default.vhost | [
"Apache-2.0"
] |
insert into b values (10),(11),(12);
/*
padding to make the data file > 50 bytes
*/ | SQL | 1 | imtbkcat/tidb-lightning | tests/checkpoint_engines/data/cpeng.b.1.sql | [
"Apache-2.0"
] |
/*
* Copyright (c) 2018-2021, Andreas Kling <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/JsonArray.h>
#include <AK/JsonObject.h>
#include <AK/String.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/File.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>
#include <LibPCIDB/Database.h>
static bool flag_show_numerical = false;
static const char* format_numerical = "{:04x}:{:02x}:{:02x}.{} {}: {}:{} (rev {:02x})";
static const char* format_textual = "{:04x}:{:02x}:{:02x}.{} {}: {} {} (rev {:02x})";
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio rpath"));
TRY(Core::System::unveil("/res/pci.ids", "r"));
TRY(Core::System::unveil("/proc/pci", "r"));
TRY(Core::System::unveil(nullptr, nullptr));
Core::ArgsParser args_parser;
args_parser.set_general_help("List PCI devices.");
args_parser.add_option(flag_show_numerical, "Show numerical IDs", "numerical", 'n');
args_parser.parse(arguments);
const char* format = flag_show_numerical ? format_numerical : format_textual;
RefPtr<PCIDB::Database> db;
if (!flag_show_numerical) {
db = PCIDB::Database::open();
if (!db) {
warnln("Couldn't open PCI ID database");
flag_show_numerical = true;
}
}
auto proc_pci = TRY(Core::File::open("/proc/pci", Core::OpenMode::ReadOnly));
TRY(Core::System::pledge("stdio"));
auto file_contents = proc_pci->read_all();
auto json = TRY(JsonValue::from_string(file_contents));
json.as_array().for_each([db, format](auto& value) {
auto& dev = value.as_object();
auto domain = dev.get("domain").to_u32();
auto bus = dev.get("bus").to_u32();
auto device = dev.get("device").to_u32();
auto function = dev.get("function").to_u32();
auto vendor_id = dev.get("vendor_id").to_u32();
auto device_id = dev.get("device_id").to_u32();
auto revision_id = dev.get("revision_id").to_u32();
auto class_id = dev.get("class").to_u32();
auto subclass_id = dev.get("subclass").to_u32();
String vendor_name;
String device_name;
String class_name;
if (db) {
vendor_name = db->get_vendor(vendor_id);
device_name = db->get_device(vendor_id, device_id);
class_name = db->get_class(class_id);
}
if (vendor_name.is_empty())
vendor_name = String::formatted("{:04x}", vendor_id);
if (device_name.is_empty())
device_name = String::formatted("{:04x}", device_id);
if (class_name.is_empty())
class_name = String::formatted("{:02x}{:02x}", class_id, subclass_id);
outln(format, domain, bus, device, function, class_name, vendor_name, device_name, revision_id);
});
return 0;
}
| C++ | 4 | r00ster91/serenity | Userland/Utilities/lspci.cpp | [
"BSD-2-Clause"
] |
body {
font-family: Arial;
font-size: 14px;
color: #555;
padding: 20px;
margin: 0;
background-color: rgba(174, 238, 238, 1);
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
}
nav ul li {
margin: 4px 0;
}
a {
text-decoration: none;
color: inherit;
font-weight: bold;
}
#grass {
position: fixed;
background-color: rgba(74, 163, 41, 1);
left: 0;
right: 0;
bottom: 0;
height: 60px;
}
#mario {
position: fixed;
}
| CSS | 3 | henryqdineen/RxJS | examples/mario/index.css | [
"Apache-2.0"
] |
class HelloApp : Application
{
void Main()
{
PrintLn("Hello, world!");
}
}
| eC | 3 | N-eil/ecere-sdk | installer/coursework/Chapter 1 - Getting Started/Lab1.1/helloWorld.ec | [
"BSD-3-Clause"
] |
int main(int argc,array(string) argv)
{
if (argc<2) exit(1,"USAGE: pike %s package [package...]\nAttempts to reinstall the listed packages from /var/cache/apt/archives\n",argv[0]);
array(string) allfiles=get_dir("/var/cache/apt/archives");
array(string) extractme=({ });
foreach (argv[1..],string pkg)
{
array(string) files=glob(pkg+"*.deb",allfiles);
switch (sizeof(files))
{
case 0: exit(1,"Package %s not found in /var/cache/apt/archives!\n",pkg);
case 1: extractme+=({files[0]}); break; //Easy - only one option.
default:
//TODO: Use "dpkg -s "+pkg to try to figure out which version was installed.
exit(1,"Package %s has multiple versions available:\n%{%s\n%}",pkg,files);
}
}
//If we get here, we should have a reliable set of extraction targets.
string dir="/tmp/deb_reinstall";
mkdir(dir);
//If you run the entire script as root, sudo is not necessary. If not,
//sudo _is_ necessary... or else the whole thing will fail anyway.
//Running the script as a non-root user means that all steps until the
//final extraction will be done as that non-root user.
array(string) sudo=({"sudo"}) * !!getuid();
foreach (extractme,string fn)
{
write("Reinstalling %s...\n",fn);
Process.create_process(({"ar","x","/var/cache/apt/archives/"+fn}),(["cwd":dir]))->wait();
Process.create_process(sudo+({"tar","xf",dir+"/data.tar.xz"}),(["cwd":"/"]))->wait();
}
Stdio.recursive_rm(dir);
write("%d package(s) reinstalled.\n",sizeof(extractme));
}
| Pike | 4 | stephenangelico/shed | reinstall.pike | [
"MIT"
] |
_ = require 'underscore'
classNames = require 'classnames'
React = require 'react'
ReactDOM = require 'react-dom'
{Utils} = require 'nylas-exports'
DatePicker = require('./date-picker').default
TabGroupRegion = require('./tab-group-region')
idPropType = React.PropTypes.oneOfType([
React.PropTypes.string
React.PropTypes.number
])
# The FormItem acts like a React controlled input.
# The `value` will set the "value" of whatever type of form item it is.
# The `onChange` handler will get passed this item's unique index (so
# parents can lookup and change the data appropriately) and the new value.
# Either direct parents, grandparents, etc are responsible for updating
# the `value` prop to update the value again.
class FormItem extends React.Component
@displayName: "FormItem"
@inputElementTypes:
"checkbox": true
"color": true
"date": false # We use Nylas DatePicker instead
"datetime": true
"datetime-local": true
"email": true
"file": true
"hidden": true
"month": true
"number": true
"password": true
"radio": true
"range": true
"search": true
"tel": true
"text": true
"time": true
"url": true
"week": true
@propTypes:
# Some sort of unique identifier
id: idPropType.isRequired
# Either a type of input or any type that can be passed into
# `React.createElement(type, ...)`
type: React.PropTypes.string.isRequired
# The name as POSTed to the eventual endpoint.
name: React.PropTypes.string
# The human-readable display label for the formItem
label: React.PropTypes.node
# Most input types take strings, numbers, and bools. Some types (like
# "reference" can get passed arrays)
value: React.PropTypes.oneOfType([
React.PropTypes.string
React.PropTypes.number
React.PropTypes.bool
])
defaultValue: React.PropTypes.string
# A function that takes two arguments:
# - The id of this FormItem
# - The new value of the FormItem
onChange: React.PropTypes.func
# FormItems can either explicitly set the disabled state, or determine
# the disabled state by whether or not this is a 'new' or 'update'
# form.
formType: React.PropTypes.oneOf(['new', 'update'])
disabled: React.PropTypes.bool
editableForNew: React.PropTypes.bool
editableForUpdate: React.PropTypes.bool
formItemError: React.PropTypes.shape(
id: idPropType # The formItemId
message: React.PropTypes.string
)
# selectOptions
# An array of options.
selectOptions: React.PropTypes.arrayOf(React.PropTypes.shape(
label: React.PropTypes.node
value: React.PropTypes.string
))
# Common <input> props.
# Anything that can be passed into a standard React <input> item will
# be passed along. Here are some common ones. There can be many more
multiple: React.PropTypes.bool
required: React.PropTypes.bool
prefilled: React.PropTypes.bool
maxlength: React.PropTypes.number
placeholder: React.PropTypes.node
tabIndex: React.PropTypes.oneOfType([
React.PropTypes.number,
React.PropTypes.string,
]),
#### Used by "reference" type objects
customComponent: React.PropTypes.func
contextData: React.PropTypes.object,
referenceTo: React.PropTypes.oneOfType([
React.PropTypes.array,
React.PropTypes.string,
])
referenceType: React.PropTypes.oneOf(["belongsTo", "hasMany", "hasManyThrough"])
referenceThrough: React.PropTypes.string
currentFormValues: React.PropTypes.object
render: =>
classes = classNames
"prefilled": @props.prefilled
"form-item": true
"invalid": !@_isValid()
"valid": @_isValid()
label = @props.label
if @props.required
label = <strong><span className="required">*</span>{@props.label}</strong>
if @props.type is "hidden"
@_renderInput()
else
<div className={classes} ref="inputWrap">
<div className="label-area">
<label htmlFor={@props.id}>{label}</label>
</div>
<div className="input-area">
{@_renderInput()}
{@_renderError()}
</div>
</div>
shouldComponentUpdate: (nextProps) =>
not Utils.isEqualReact(nextProps, @props)
componentDidUpdate: (prevProps) ->
if !prevProps.formItemError and !@_isValid()
ReactDOM.findDOMNode(@refs.inputWrap).scrollIntoView(true)
_isValid: ->
[email protected]
_renderError: =>
return false if @_isValid()
msg = @props.formItemError.message
<div className="form-error">{msg}</div>
_isDisabled: =>
@props.disabled or
(@props.formType is "new" and @props.editableForNew is false) or
(@props.formType is "update" and @props.editableForUpdate is false)
_renderInput: =>
inputProps = _.extend {}, @props,
ref: "input"
onChange: (eventOrValue) =>
@props.onChange(@props.id, ((eventOrValue?.target?.value) ? eventOrValue))
if @_isDisabled() then inputProps.disabled = true
if FormItem.inputElementTypes[@props.type]
React.createElement("input", inputProps)
else if @props.type is "select"
options = (@props.selectOptions ? []).map (optionData) ->
<option {...optionData} key={"#{Utils.generateTempId()}-optionData.value"} >{optionData.label}</option>
options.unshift(<option key={"#{Utils.generateTempId()}-blank-option"}></option>)
<select {...inputProps}>{options}</select>
else if @props.type is "textarea"
React.createElement("textarea", inputProps)
else if @props.type is "date"
inputProps.dateFormat = "YYYY-MM-DD"
React.createElement(DatePicker, inputProps)
else if @props.type is "EmptySpace"
React.createElement("div", {className: "empty-space"})
else if _.isFunction(@props.customComponent)
React.createElement(@props.customComponent, inputProps)
else
console.warn "We do not support type #{@props.type} with attributes:", inputProps
class GeneratedFieldset extends React.Component
@displayName: "GeneratedFieldset"
@propTypes:
# Some sort of unique identifier
id: idPropType.isRequired
formItems: React.PropTypes.arrayOf(React.PropTypes.shape(
_.extend(FormItem.propTypes,
row: React.PropTypes.number
column: React.PropTypes.number
)
))
# The key is the formItem id, the value is the error object
formItemErrors: React.PropTypes.arrayOf(FormItem.propTypes.formItemError)
# A function that takes two arguments:
# - The id of this GeneratedFieldset
# - A new array of updated formItems with the correct value.
onChange: React.PropTypes.func
heading: React.PropTypes.node
useHeading: React.PropTypes.bool
formType: React.PropTypes.oneOf(['new', 'update'])
zIndex: React.PropTypes.number
lastFieldset: React.PropTypes.bool
firstFieldset: React.PropTypes.bool
contextData: React.PropTypes.object
currentFormValues: React.PropTypes.object
render: =>
classStr = classNames
"first-fieldset": @props.firstFieldset
"last-fieldset": @props.lastFieldset
<fieldset style={{zIndex: @props.zIndex ? 0}} className={classStr} >
{@_renderHeader()}
<div className="fieldset-form-items">
{@_renderFormItems()}
</div>
{@_renderFooter()}
</fieldset>
shouldComponentUpdate: (nextProps) =>
not Utils.isEqualReact(nextProps, @props)
_renderHeader: =>
if @props.useHeading
<header><legend>{@props.heading}</legend></header>
else <div></div>
_renderFormItems: =>
byRow = _.groupBy(@props.formItems, "row")
_.map byRow, (itemsInRow=[], rowNum) =>
byCol = _.groupBy(itemsInRow, "column")
numCols = Math.max.apply(null, Object.keys(byCol))
style = { zIndex: 1000-rowNum }
allHidden = _.every(itemsInRow, (item) -> item.type is "hidden")
if allHidden then style.display = "none"
<div className="row"
data-row-num={rowNum}
style={style}
key={rowNum}>
{_.map byCol, (itemsInCol=[], colNum) =>
colEls = [<div className="column" data-col-num={colNum} key={colNum}>
{itemsInCol.map (formItemData) =>
props = @_propsFromFormItemData(formItemData)
<FormItem {...props} ref={"form-item-#{formItemData.id}"}/>
}
</div>]
if colNum isnt numCols - 1
colEls.push(
<div className="column-spacer" data-col-num={"#{colNum}-spacer"} key={"#{colNum}-spacer"}>
</div>
)
return colEls
}
</div>
# Given the raw data of an individual FormItem, prepare a set of props
# to pass down into the FormItem.
_propsFromFormItemData: (formItemData) =>
props = _.clone(formItemData)
props.key = props.id
error = @props.formItemErrors?[props.id]
if error then props.formItemError = error
props.onChange = _.bind(@_onChangeItem, @)
props.formType = @props.formType
props.contextData = @props.contextData
props.currentFormValues = @props.currentFormValues
return props
_onChangeItem: (itemId, newValue) =>
newFormItems = _.map @props.formItems, (formItem) ->
if formItem.id is itemId
newFormItem = _.clone(formItem)
newFormItem.value = newValue
return newFormItem
else return formItem
@props.onChange(@props.id, newFormItems)
_renderFooter: =>
<footer></footer>
class GeneratedForm extends React.Component
@displayName: "GeneratedForm"
@propTypes:
# Some sort of unique identifier
id: idPropType
errors: React.PropTypes.shape(
formError: React.PropTypes.shape(
message: React.PropTypes.string
location: React.PropTypes.string # Can be "header" (default) or "footer"
)
formItemErrors: GeneratedFieldset.propTypes.formItemErrors
)
fieldsets: React.PropTypes.arrayOf(
React.PropTypes.shape(GeneratedFieldset.propTypes)
)
# A function whose argument is a new set of Props
onChange: React.PropTypes.func.isRequired
onSubmit: React.PropTypes.func.isRequired
style: React.PropTypes.object
formType: React.PropTypes.oneOf(['new', 'update'])
prefilled: React.PropTypes.bool
contextData: React.PropTypes.object,
@defaultProps:
style: {}
onSubmit: ->
render: =>
submitText = if @props.formType is "new" then "Create" else "Update"
<form className="generated-form" ref="form" style={this.props.style} onSubmit={this.props.onSubmit} onKeyDown={this._onKeyDown} noValidate>
<TabGroupRegion>
{@_renderHeaderFormError()}
{@_renderPrefilledMessage()}
<div className="fieldsets">
{@_renderFieldsets()}
</div>
<div className="form-footer">
<button type="button" className="btn btn-emphasis" onClick={this.props.onSubmit}>
{submitText}
</button>
</div>
</TabGroupRegion>
</form>
shouldComponentUpdate: (nextProps) =>
not Utils.isEqualReact(nextProps, @props)
componentDidUpdate: (prevProps) ->
if !prevProps.errors?.formError and @props.errors?.formError
ReactDOM.findDOMNode(@refs.formHeaderError).scrollIntoView(true)
_onKeyDown: (event) =>
if event.key is "Enter" && (event.metaKey || event.ctrlKey)
this.props.onSubmit(event)
_renderPrefilledMessage: =>
if @props.prefilled
<div className="prefilled-message">
The <span className="highlighted">highlighted</span> fields have been prefilled for you!
</div>
_renderHeaderFormError: =>
if @props.errors?.formError
<div ref="formHeaderError" className="form-error form-header-error">
{@props.errors.formError.message}
</div>
else return false
_renderFieldsets: =>
(@props.fieldsets ? []).map (fieldset, i) =>
props = @_propsFromFieldsetData(fieldset)
props.zIndex = 100-i
props.contextData = @props.contextData
props.currentFormValues = @_currentFormValues()
props.firstFieldset = i is 0
props.lastFieldset = i isnt 0 and i is @props.fieldsets.length - 1
<GeneratedFieldset {...props} ref={"fieldset-#{fieldset.id}"} />
_currentFormValues: =>
vals = {}
for fieldset in @props.fieldsets
for formItem in fieldset.formItems
vals[formItem.name] = formItem.value
return vals
_propsFromFieldsetData: (fieldsetData) =>
props = _.clone(fieldsetData)
errors = @props.errors?.formItemErrors
if errors then props.formItemErrors = errors
props.key = fieldsetData.id
props.onChange = _.bind(@_onChangeFieldset, @)
props.formType = @props.formType
return props
_onChangeFieldset: (fieldsetId, newFormItems) =>
newFieldsets = _.map @props.fieldsets, (fieldset) ->
if fieldset.id is fieldsetId
newFieldset = _.clone(fieldset)
newFieldset.formItems = newFormItems
return newFieldset
else return fieldset
@props.onChange _.extend {}, @props,
fieldsets: newFieldsets
module.exports =
FormItem: FormItem
GeneratedForm: GeneratedForm
GeneratedFieldset: GeneratedFieldset
| CoffeeScript | 5 | cnheider/nylas-mail | packages/client-app/src/components/generated-form.cjsx | [
"MIT"
] |
/*
* Copyright 2014-2019 Jiří Janoušek <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. 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.
*
* 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 OWNER 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.
*/
namespace Nuvola {
public abstract class AppRunner : GLib.Object {
protected static bool gdb = false;
public string app_id {get; private set;}
public bool connected {get { return channel != null;}}
public bool running {get; protected set; default = false;}
protected GenericSet<string> capatibilities;
protected Drt.RpcChannel channel = null;
static construct {
gdb = Environment.get_variable("NUVOLA_APP_RUNNER_GDB_SERVER") != null;
}
protected AppRunner(string app_id, string api_token) throws GLib.Error {
this.app_id = app_id;
this.capatibilities = new GenericSet<string>(str_hash, str_equal);
}
public signal void notification(string path, string? detail, Variant? data);
public Variant? query_meta() {
try {
var dict = new VariantDict(call_sync(IpcApi.CORE_GET_METADATA, null));
dict.insert_value("running", new Variant.boolean(true));
var capatibilities_array = new VariantBuilder(new VariantType("as"));
List<unowned string> capatibilities = get_capatibilities();
foreach (unowned string capability in capatibilities) {
capatibilities_array.add("s", capability);
}
dict.insert_value("capabilities", capatibilities_array.end());
return dict.end();
} catch (GLib.Error e) {
warning("Failed to query metadata: %s", e.message);
return null;
}
}
public List<unowned string> get_capatibilities() {
return capatibilities.get_values();
}
public bool has_capatibility(string capatibility) {
return capatibilities.contains(capatibility.down());
}
public void add_capatibility(string capatibility) {
capatibilities.add(capatibility.down());
}
public bool remove_capatibility(string capatibility) {
return capatibilities.remove(capatibility.down());
}
/**
* Emitted when the subprocess exited.
*/
public signal void exited();
public void connect_channel(Drt.RpcChannel channel) {
this.channel = channel;
channel.router.notification.connect(on_notification);
}
public Variant? call_sync(string name, Variant? params) throws GLib.Error {
if (channel == null) {
throw new Drt.RpcError.IOERROR("No connected to app runner '%s'.", app_id);
}
return channel.call_sync(name, params);
}
public async Variant? call_full(string method, Variant? params, bool allow_private, string flags) throws GLib.Error {
if (channel == null) {
throw new Drt.RpcError.IOERROR("No connected to app runner '%s'.", app_id);
}
return yield channel.call_full(method, params, allow_private, flags);
}
public Variant? call_full_sync(string method, Variant? params, bool allow_private, string flags) throws GLib.Error {
if (channel == null) {
throw new Drt.RpcError.IOERROR("No connected to app runner '%s'.", app_id);
}
return channel.call_full_sync(method, params, allow_private, flags);
}
private void on_notification(Drt.RpcRouter router, GLib.Object source, string path, string? detail, Variant? data) {
if (source == channel) {
notification(path, detail, data);
}
}
}
public class DbusAppRunner : AppRunner {
private uint watch_id = 0;
private string dbus_id;
public DbusAppRunner(string app_id, string dbus_id, GLib.BusName sender_id, string api_token) throws GLib.Error {
base(app_id, api_token);
this.dbus_id = dbus_id;
watch_id = Bus.watch_name(BusType.SESSION, sender_id, 0, on_name_appeared, on_name_vanished);
}
private void on_name_appeared(DBusConnection conn, string name, string name_owner) {
running = true;
}
private void on_name_vanished(DBusConnection conn, string name) {
debug("%s %s vanished", dbus_id, name);
Bus.unwatch_name(watch_id);
running = false;
exited();
}
}
} // namespace Nuvola
| Vala | 4 | xcffl/nuvolaruntime | src/nuvolakit-runner/master/AppRunner.vala | [
"BSD-2-Clause"
] |
/// @Author: 一凨
/// @Date: 2018-12-08 16:08:41
/// @Last Modified by: 一凨
/// @Last Modified time: 2018-12-08 16:22:50
import 'package:flutter/material.dart';
class FadeInImageDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
ClipOval(
child: FadeInImage.assetNetwork(
placeholder: "assets/images/normal_user_icon.png", //预览图
fit: BoxFit.fitWidth,
image:
"https://img.alicdn.com/tfs/TB148sWfMHqK1RjSZFgXXa7JXXa-536-482.png",
width: 160.0,
height: 160.0,
),
),
SizedBox(
height: 20.0,
),
CircleAvatar(
backgroundImage: NetworkImage(
"https://img.alicdn.com/tfs/TB148sWfMHqK1RjSZFgXXa7JXXa-536-482.png"),
child: Text("一凨"), //可以在图片上添加文字等等
),
],
);
}
}
| Dart | 4 | kborid/flutter-go | lib/widgets/elements/Media/Image/FadeInImage/fade_in_image_demo.dart | [
"BSD-3-Clause"
] |
all: help
help:
@echo ""
@echo "-- Help Menu"
@echo ""
@echo " 1. make build - build all images"
@echo " 2. make pull - pull all images"
@echo " 3. make clean - remove all images"
@echo ""
build:
@docker build --tag=ros:$release_name-ros-core-$os_code_name ros-core/.
@docker build --tag=ros:$release_name-ros-base-$os_code_name ros-base/.
@docker build --tag=ros:$release_name-robot-$os_code_name robot/.
@docker build --tag=ros:$release_name-perception-$os_code_name perception/.
# @docker build --tag=osrf/ros:$release_name-desktop-$os_code_name desktop/.
# @docker build --tag=osrf/ros:$release_name-desktop-full-$os_code_name desktop-full/.
pull:
@docker pull ros:$release_name-ros-core-$os_code_name
@docker pull ros:$release_name-ros-base-$os_code_name
@docker pull ros:$release_name-robot-$os_code_name
@docker pull ros:$release_name-perception-$os_code_name
# @docker pull osrf/ros:$release_name-desktop-$os_code_name
# @docker pull osrf/ros:$release_name-desktop-full-$os_code_name
clean:
@docker rmi -f ros:$release_name-ros-core-$os_code_name
@docker rmi -f ros:$release_name-ros-base-$os_code_name
@docker rmi -f ros:$release_name-robot-$os_code_name
@docker rmi -f ros:$release_name-perception-$os_code_name
# @docker rmi -f osrf/ros:$release_name-desktop-$os_code_name
# @docker rmi -f osrf/ros:$release_name-desktop-full-$os_code_name
| EmberScript | 4 | christophebedard/docker_images-1 | ros/.config/ros1/Makefile.em | [
"Apache-2.0"
] |
20 5 2 0
0 1 21 5 2 20 16 21 15 9 7 6 18 12 10 8 3 14 17 1 4 11 13 19 [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0]
1 5 4 6 17 7 21 [-6 30 30 13 -6 3 10 10 4 14 5 4 11 4 8 5 2 13 0 2 11 1 -1 8 0] [22 0 -2 8 -8 16 0 21 12 -2 1 1 29 -2 -1 8 12 -4 -4 6 0 -3 4 3 5] [0 7 26 10 -5 18 13 3 -1 14 8 5 11 11 30 14 13 7 11 8 8 -2 -1 12 7] [10 7 10 5 4]
2 5 2 14 21 [-2 0 7 4 0 1 5 19 2 23 6 11 5 15 -3 -2 0 5 -2 4 -2 8 -1 6 17] [4 8 7 3 6]
3 5 3 13 11 21 [9 0 21 -1 20 -3 3 -5 15 7 7 5 -1 9 0 7 1 8 0 9 5 10 5 6 0] [14 22 9 13 23 0 9 14 -5 9 3 -2 8 0 8 7 0 4 3 -2 -3 0 0 -2 0] [8 9 3 3 4]
4 5 5 17 20 10 21 8 [9 7 8 12 9 0 1 0 3 1 5 14 12 9 6 4 26 6 24 13 -7 6 22 27 19] [9 -2 -2 13 -3 0 3 2 0 1 -3 1 15 12 -4 -7 -7 5 -2 9 16 27 -3 -3 27] [6 7 -3 9 13 3 3 0 2 1 8 6 10 0 0 19 16 12 20 11 12 -6 6 -6 20] [5 1 5 9 9] [6 8 10 2 7 3 0 3 3 3 0 -1 7 9 10 -4 -4 22 26 5 20 16 4 19 22]
5 5 3 21 6 15 [1 6 1 5 2] [3 3 2 1 0 14 18 6 13 0 2 0 0 0 1 2 -4 5 -2 8 2 0 0 0 0] [3 2 0 0 2 12 6 -3 -2 13 0 3 3 3 1 9 10 4 -1 11 1 -1 0 6 2]
6 5 5 10 1 21 12 20 [16 15 -5 20 3 -1 0 10 -3 5 -6 24 1 25 -8 -6 0 10 1 -6 8 5 -2 -1 5] [-72 -148 -187 -179 -173 -154 -136 -124 -190 -173 -133 -180 -77 -184 -158 -78 -113 -155 -109 -50 -57 -105 -127 -192 -148] [9 4 9 7 3] [21 20 23 6 4 7 6 0 3 2 8 17 8 8 -4 17 3 -2 5 4 2 -2 7 2 5] [0 2 3 26 -5 5 4 9 1 1 5 24 -8 16 10 -2 10 4 1 -6 6 9 7 6 6]
7 5 2 12 21 [4 5 3 -3 14 13 16 12 20 -1 10 2 18 9 -7 -3 6 2 19 -2 3 2 8 6 2] [5 7 8 8 5]
8 5 4 12 21 1 9 [-139 -124 -105 -102 -157 -172 -74 -93 -53 -189 -116 -134 -129 -109 -195 -178 -106 -170 -170 -139 -143 -86 -92 -198 -62] [2 6 3 3 8] [-47 -51 -183 -136 -94 -85 -189 -128 -77 -136 -138 -193 -63 -105 -157 -58 -167 -160 -50 -153 -79 -126 -44 -106 -62] [2 5 1 -1 6 -1 18 14 17 5 -2 3 6 -2 7 -2 4 6 4 -2 -1 10 -6 -7 0]
9 5 6 19 7 11 21 10 8 [12 15 0 2 -2 1 1 1 0 3 10 10 -3 0 0 5 4 5 13 2 7 5 10 0 0] [-194 -101 -131 -181 -108 -70 -172 -186 -110 -204 -96 -69 -147 -96 -92 -204 -112 -162 -82 -70 -95 -147 -63 -203 -105] [-191 -155 -181 -206 -111 -113 -156 -108 -43 -191 -184 -64 -124 -39 -102 -104 -48 -81 -114 -80 -95 -133 -171 -69 -144] [5 1 4 6 4] [-156 -121 -82 -203 -139 -130 -110 -191 -187 -75 -205 -74 -133 -109 -97 -158 -153 -75 -188 -107 -153 -96 -58 -151 -79] [-186 -144 -165 -193 -54 -185 -179 -81 -210 -73 -207 -113 -126 -93 -91 -106 -202 -180 -100 -197 -94 -200 -57 -190 -173]
10 5 3 21 9 18 [9 5 9 1 3] [2 -1 22 23 -7 15 14 3 5 8 23 2 1 -8 1 0 0 0 0 1 1 8 8 -1 2] [23 21 22 25 -6 6 0 1 10 -4 -6 2 8 26 -2 3 1 0 0 0 1 0 6 1 5]
11 5 3 17 21 5 [12 9 2 9 0 22 5 5 -7 19 12 9 2 9 4 6 12 1 14 14 6 -4 20 0 8] [8 8 4 5 7] [23 23 24 -6 13 14 9 -7 6 2 0 10 0 7 4 0 4 14 0 11 11 -6 20 0 8]
12 5 2 21 8 [6 10 8 9 6] [-1 1 16 8 12 9 20 -1 8 11 22 6 17 -4 23 7 26 12 5 18 15 6 10 2 11]
13 5 4 21 17 5 3 [9 4 8 10 3] [20 -7 10 20 16 8 2 7 8 9 7 9 -2 16 21 23 30 21 28 22 -2 6 5 4 3] [-3 -8 11 2 -2 4 -1 3 9 11 2 -1 17 6 14 -8 3 -5 24 11 1 3 4 1 -1] [-18 -6 -7 -3 -14 -2 -16 -10 -11 -8 -4 -15 -18 -6 -13 -15 -7 -2 -2 -18 -15 -2 -13 -16 -17]
14 5 4 21 2 11 13 [9 1 3 2 7] [-8 -18 -10 -10 -10 -8 -10 -16 -4 -5 -4 -8 -10 -15 -12 -7 -16 -7 -11 -12 -4 -20 -6 -13 -15] [23 -4 12 2 18 3 0 0 3 3 9 0 7 -2 0 4 3 3 2 -1 15 19 6 4 21] [18 20 -8 9 -8 0 0 2 3 0 0 0 7 2 7 -1 4 4 -1 3 17 2 15 -6 19]
15 5 3 16 21 18 [9 4 7 7 -1 2 1 1 1 0 7 20 -7 2 13 6 15 18 8 -1 2 10 3 29 15] [3 1 9 8 10] [9 0 2 -2 -2 2 0 1 3 0 2 5 18 19 19 19 11 24 15 0 27 15 4 8 22]
16 5 3 20 7 21 [6 8 1 1 6 12 1 0 3 6 11 10 -5 0 -2 4 0 2 12 7 11 0 12 1 0] [-1 -1 8 8 2 7 13 10 9 7 -5 3 10 -2 15 6 -3 2 12 3 -2 1 3 1 0] [3 5 6 4 4]
17 5 1 21 [5 5 10 3 9]
18 5 1 21 [4 2 9 2 6]
19 5 1 21 [3 7 1 2 6]
20 5 1 21 [6 2 5 10 2]
21 1 0
0 1 0 0 0 0 0 0 0 0
1 1 10 3 3 1 1 5 3 1
2 7 3 3 1 1 5 3 1
3 10 3 3 1 1 5 3 1
4 5 3 3 1 1 5 3 1
5 4 3 3 1 1 5 3 1
2 1 4 1 5 2 3 5 4 5
2 8 1 5 2 3 5 4 5
3 7 1 5 2 3 5 4 5
4 3 1 5 2 3 5 4 5
5 6 1 5 2 3 5 4 5
3 1 8 5 5 3 5 4 4 3
2 9 5 5 3 5 4 4 3
3 3 5 5 3 5 4 4 3
4 3 5 5 3 5 4 4 3
5 4 5 5 3 5 4 4 3
4 1 5 4 3 3 4 2 1 2
2 1 4 3 3 4 2 1 2
3 5 4 3 3 4 2 1 2
4 9 4 3 3 4 2 1 2
5 9 4 3 3 4 2 1 2
5 1 1 5 2 3 4 5 2 2
2 6 5 2 3 4 5 2 2
3 1 5 2 3 4 5 2 2
4 5 5 2 3 4 5 2 2
5 2 5 2 3 4 5 2 2
6 1 9 5 2 5 1 1 3 2
2 4 5 2 5 1 1 3 2
3 9 5 2 5 1 1 3 2
4 7 5 2 5 1 1 3 2
5 3 5 2 5 1 1 3 2
7 1 5 2 2 2 2 3 4 4
2 7 2 2 2 2 3 4 4
3 8 2 2 2 2 3 4 4
4 8 2 2 2 2 3 4 4
5 5 2 2 2 2 3 4 4
8 1 2 4 1 2 5 5 5 2
2 6 4 1 2 5 5 5 2
3 3 4 1 2 5 5 5 2
4 3 4 1 2 5 5 5 2
5 8 4 1 2 5 5 5 2
9 1 5 3 4 4 2 2 4 4
2 1 3 4 4 2 2 4 4
3 4 3 4 4 2 2 4 4
4 6 3 4 4 2 2 4 4
5 4 3 4 4 2 2 4 4
10 1 9 4 1 2 3 2 4 4
2 5 4 1 2 3 2 4 4
3 9 4 1 2 3 2 4 4
4 1 4 1 2 3 2 4 4
5 3 4 1 2 3 2 4 4
11 1 8 1 5 4 3 4 5 5
2 8 1 5 4 3 4 5 5
3 4 1 5 4 3 4 5 5
4 5 1 5 4 3 4 5 5
5 7 1 5 4 3 4 5 5
12 1 6 5 2 1 1 1 5 2
2 10 5 2 1 1 1 5 2
3 8 5 2 1 1 1 5 2
4 9 5 2 1 1 1 5 2
5 6 5 2 1 1 1 5 2
13 1 9 4 3 2 2 1 4 5
2 4 4 3 2 2 1 4 5
3 8 4 3 2 2 1 4 5
4 10 4 3 2 2 1 4 5
5 3 4 3 2 2 1 4 5
14 1 9 5 1 2 3 5 1 3
2 1 5 1 2 3 5 1 3
3 3 5 1 2 3 5 1 3
4 2 5 1 2 3 5 1 3
5 7 5 1 2 3 5 1 3
15 1 3 1 2 5 5 4 5 4
2 1 1 2 5 5 4 5 4
3 9 1 2 5 5 4 5 4
4 8 1 2 5 5 4 5 4
5 10 1 2 5 5 4 5 4
16 1 3 1 2 5 5 3 2 1
2 5 1 2 5 5 3 2 1
3 6 1 2 5 5 3 2 1
4 4 1 2 5 5 3 2 1
5 4 1 2 5 5 3 2 1
17 1 5 2 4 2 1 1 4 4
2 5 2 4 2 1 1 4 4
3 10 2 4 2 1 1 4 4
4 3 2 4 2 1 1 4 4
5 9 2 4 2 1 1 4 4
18 1 4 1 2 3 3 2 4 1
2 2 1 2 3 3 2 4 1
3 9 1 2 3 3 2 4 1
4 2 1 2 3 3 2 4 1
5 6 1 2 3 3 2 4 1
19 1 3 5 1 1 2 3 4 5
2 7 5 1 1 2 3 4 5
3 1 5 1 1 2 3 4 5
4 2 5 1 1 2 3 4 5
5 6 5 1 1 2 3 4 5
20 1 6 4 4 4 3 3 1 3
2 2 4 4 4 3 3 1 3
3 5 4 4 4 3 3 1 3
4 10 4 4 4 3 3 1 3
5 2 4 4 4 3 3 1 3
21 1 0 0 0 0 0 0 0 0
35 30 31 32 33 69 131
| Eagle | 2 | klorel/or-tools | examples/data/rcpsp/multi_mode_max_delay/mm_j20/psp264.sch | [
"Apache-2.0"
] |
-#
-# Copyright (C) 2009-2011 the original author or authors.
-# See the notice.md file distributed with this work for additional
-# information regarding copyright ownership.
-#
-# 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.
-#
%h1 Sample Tag
%p
This page demonstrates a kinda pseudo custom tag in SSP
using an explicit RenderContext parameter and a function which can be invoked
by the <b>someLayoutWithRenderContextParam()</b> to process the body (writing the output as a side effect).
- import org.fusesource.scalate.sample.MyTags._
- val name = "Hiram"
= someLayoutWithRenderContextParam(context)
hey #{name} this is some body text!
| Scaml | 4 | arashi01/scalate-samples | scalate-sample/src/main/webapp/scaml/sampleTag2.scaml | [
"Apache-2.0"
] |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://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.
*
* SPDX-License-Identifier: Apache-2.0
******************************************************************************/
package org.deeplearning4j.scalnet.layers.core
import org.deeplearning4j.nn.conf.layers.{ OutputLayer => JOutputLayer }
import org.nd4j.linalg.lossfunctions.LossFunctions
/**
* Extension of base layer, used to construct a DL4J OutputLayer after compilation.
* OutputLayer has an output object and the ability to return an OutputLayer version
* of itself, by providing a loss function.
*
* @author Max Pumperla
*/
trait OutputLayer extends Layer {
def output: Output
def toOutputLayer(lossFunction: LossFunctions.LossFunction): OutputLayer
}
| Scala | 4 | rghwer/testdocs | scalnet/src/main/scala/org/deeplearning4j/scalnet/layers/core/OutputLayer.scala | [
"Apache-2.0"
] |
#+TITLE: completion/ivy
#+DATE: February 13, 2017
#+SINCE: v2.0
#+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#hacks][Hacks]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#jump-to-navigation][Jump-to navigation]]
- [[#project-search--replace][Project search & replace]]
- [[#in-buffer-searching][In-buffer searching]]
- [[#ivy-integration-for-various-completing-commands][Ivy integration for various completing commands]]
- [[#general][General]]
- [[#jump-to-files-buffers-or-projects][Jump to files, buffers or projects]]
- [[#search][Search]]
- [[#configuration][Configuration]]
- [[#enable-fuzzynon-fuzzy-search-for-specific-commands][Enable fuzzy/non-fuzzy search for specific commands]]
- [[#change-the-position-of-the-ivy-childframe][Change the position of the ivy childframe]]
- [[#troubleshooting][Troubleshooting]]
* Description
This module provides Ivy integration for a variety of Emacs commands, as well as
a unified interface for project search and replace, powered by [[https://github.com/BurntSushi/ripgrep/][ripgrep]].
#+begin_quote
I prefer ivy over ido for its flexibility. I prefer ivy over helm because it's
lighter, simpler and faster in many cases.
#+end_quote
** Module Flags
+ =+fuzzy= Enables fuzzy completion for Ivy searches.
+ =+prescient= Enables prescient filtering and sorting for Ivy searches.
+ =+childframe= Causes Ivy to display in a floating child frame, above Emacs.
+ =+icons= Enables file icons for switch-{buffer,project}/find-file counsel
commands.
** Plugins
+ [[https://github.com/abo-abo/swiper][ivy]]
+ [[https://github.com/abo-abo/swiper][counsel]]
+ [[https://github.com/ericdanan/counsel-projectile][counsel-projectile]]
+ [[https://github.com/abo-abo/swiper][swiper]]
+ [[https://github.com/abo-abo/swiper][ivy-hydra]]
+ [[https://github.com/yevgnen/ivy-rich][ivy-rich]]
+ [[https://github.com/mhayashi1120/Emacs-wgrep][wgrep]]
+ [[https://github.com/DarwinAwardWinner/amx][amx]]
+ [[https://github.com/lewang/flx][flx]]* (=+fuzzy=)
+ [[https://github.com/raxod502/prescient.el][prescient]]* (=+prescient=)
+ [[https://github.com/tumashu/ivy-posframe][ivy-posframe]]* (=+childframe=)
+ [[https://github.com/asok/all-the-icons-ivy][all-the-icons-ivy]]* (=+icons=)
** Hacks
+ Functions with ivy/counsel equivalents have been globally remapped (like
~find-file~ => ~counsel-find-file~). So a keybinding to ~find-file~ will
invoke ~counsel-find-file~ instead.
+ ~counsel-[arp]g~'s 3-character limit was reduced to 1 (mainly for the ex
command)
* Prerequisites
This module has no prerequisites.
* Features
Ivy and its ilk are large plugins. Covering everything about them is outside of
this documentation's scope, so only Doom-specific Ivy features are listed here:
** Jump-to navigation
Inspired by Sublime Text's jump-to-anywhere, CtrlP/Unite in Vim, and Textmate's
Command-T, this module provides similar functionality by bringing ~projectile~
and ~ivy~ together.
https://assets.doomemacs.org/completion/ivy/projectile.png
| Keybind | Description |
|----------------------+-------------------------------------|
| =SPC p f=, =SPC SPC= | Jump to file in project |
| =SPC f f=, =SPC .= | Jump to file from current directory |
| =SPC s i= | Jump to symbol in file |
** Project search & replace
This module provides interactive text search and replace using ripgrep.
| Keybind | Description |
|-----------+--------------------------|
| =SPC s p= | Search project |
| =SPC s P= | Search another project |
| =SPC s d= | Search this directory |
| =SPC s D= | Search another directory |
https://assets.doomemacs.org/completion/ivy/search.png
Prefixing these keys with the universal argument (=SPC u= for evil users; =C-u=
otherwise) changes the behavior of these commands, instructing the underlying
search engine to include ignored files.
This module also provides Ex Commands for evil users:
| Ex command | Description |
|------------------------+------------------------------------------------------------------|
| ~:pg[rep][!] [QUERY]~ | Search project (if ~!~, include hidden files) |
| ~:pg[rep]d[!] [QUERY]~ | Search from current directory (if ~!~, don't search recursively) |
The optional `!` is equivalent to the universal argument for the previous
commands.
-----
These keybindings are available while a search is active:
| Keybind | Description |
|-----------+-----------------------------------------------|
| =C-c C-o= | Open a buffer with your search results |
| =C-c C-e= | Open a writable buffer of your search results |
| =C-SPC= | Preview the current candidate |
| =C-RET= | Open the selected candidate in other-window |
Changes to the resulting wgrep buffer (opened by =C-c C-e=) can be committed
with =C-c C-c= and aborted with =C-c C-k= (alternatively =ZZ= and =ZQ=, for evil
users).
https://assets.doomemacs.org/completion/ivy/search-replace.png
** In-buffer searching
The =swiper= package provides an interactive buffer search powered by ivy. It
can be invoked with:
+ =SPC s s= (~swiper-isearch~)
+ =SPC s S= (~swiper-isearch-thing-at-point~)
+ =SPC s b= (~swiper~)
+ ~:sw[iper] [QUERY]~
https://assets.doomemacs.org/completion/ivy/swiper.png
A wgrep buffer can be opened from swiper with =C-c C-e=.
** Ivy integration for various completing commands
*** General
| Keybind | Description |
|----------------+---------------------------|
| =M-x=, =SPC := | Smarter, smex-powered M-x |
| =SPC '= | Resume last ivy session |
*** Jump to files, buffers or projects
| Keybind | Description |
|----------------------+---------------------------------------|
| =SPC RET= | Find bookmark |
| =SPC f f=, =SPC .= | Browse from current directory |
| =SPC p f=, =SPC SPC= | Find file in project |
| =SPC f r= | Find recently opened file |
| =SPC p p= | Open another project |
| =SPC b b=, =SPC ,= | Switch to buffer in current workspace |
| =SPC b B=, =SPC <= | Switch to buffer |
*** Search
| Keybind | Description |
|-----------+-------------------------------------------|
| =SPC p t= | List all TODO/FIXMEs in project |
| =SPC s b= | Search the current buffer |
| =SPC s d= | Search this directory |
| =SPC s D= | Search another directory |
| =SPC s i= | Search for symbol in current buffer |
| =SPC s p= | Search project |
| =SPC s P= | Search another project |
| =SPC s s= | Search the current buffer (incrementally) |
* Configuration
** TODO Enable fuzzy/non-fuzzy search for specific commands
** TODO Change the position of the ivy childframe
* TODO Troubleshooting
| Org | 5 | leezu/doom-emacs | modules/completion/ivy/README.org | [
"MIT"
] |
// Coding Rainbow
// Daniel Shiffman
// http://patreon.com/codingtrain
// Code for: https://youtu.be/JcopTKXt8L8
class Leaf {
PVector pos;
boolean reached = false;
Leaf() {
pos = PVector.random3D();
pos.mult(random(width/2));
pos.y -= height/4;
}
void reached() {
reached = true;
}
void show() {
fill(255);
noStroke();
pushMatrix();
translate(pos.x, pos.y, pos.z);
//sphere(4);
ellipse(0,0, 4, 4);
popMatrix();
}
} | Processing | 3 | aerinkayne/website | CodingChallenges/CC_018_SpaceColonizer3D/Processing/CC_018_SpaceColonizer3D/Leaf.pde | [
"MIT"
] |
class Fail {
static function main() {}
static function check<T:String>(a:T, b:Float) {
a < b;
a - b;
a / b;
b < a;
b - a;
b / a;
}
}
abstract AStr(String) to String {} | Haxe | 3 | Alan-love/haxe | tests/misc/projects/Issue8088/Fail.hx | [
"MIT"
] |
# Test suite for the matcher module.
module test_matcher is test_suite
import test_suite
import matcher
private abstract class MatchCase
var expect: Bool
var val: String
fun matcher: Matcher is abstract
end
private class ReCase
super MatchCase
var regex: String
var ignore_case: Bool
redef fun matcher
do
var compiled = regex.to_re
if ignore_case then compiled.ignore_case = true
return new ReMatcher(compiled)
end
end
class TestReMatcher
super TestSuite
fun test_match do
var cases = [
new ReCase(true, "", "", false),
new ReCase(true, "a", "", false),
new ReCase(true, "a", "a", false),
new ReCase(true, "a", ".", false),
new ReCase(false, "", ".", false),
new ReCase(false, "a", "A", false),
new ReCase(true, "a", "A", true),
new ReCase(true, "Nit is pretty Awesome", "nit \\w+ .*some", true)
]
for tc in cases do
var got = tc.matcher.match(tc.val)
assert got == tc.expect else
print("regex {tc.regex} with value {tc.val} failed (ignore case? {tc.ignore_case})")
end
end
end
end
private class LitCase
super MatchCase
var lit: String
var ignore_case: Bool
redef fun matcher
do
return new LitMatcher(lit, ignore_case)
end
end
class TestLitMatcher
super TestSuite
fun test_match do
var cases = [
new LitCase(true, "", "", false),
new LitCase(true, "a", "a", false),
new LitCase(false, "a", "A", false),
new LitCase(true, "a", "A", true),
new LitCase(true, "abc", "BC", true),
new LitCase(true, "Nit is pretty Awesome!", "SOME!", true),
new LitCase(false, "Nit is pretty Awesome!", "SOME!", false)
]
for tc in cases do
var got = tc.matcher.match(tc.val)
assert got == tc.expect else
print("literal {tc.lit} with value {tc.val} failed (ignore case? {tc.ignore_case})")
end
end
end
end
class TestAnyMatcher
super TestSuite
fun test_match do
var lit = new LitMatcher("a", false)
var reg = new ReMatcher("[0-9]+".to_re)
var m = new AnyMatcher
assert not m.match("abc")
m.add_matchers(lit, reg)
assert m.match("baba")
assert m.match("zz12")
assert not m.match("zzxx")
end
end
class TestAllMatcher
super TestSuite
fun test_match do
var lit = new LitMatcher("a", false)
var reg = new ReMatcher("[0-9]+".to_re)
var m = new AllMatcher
assert m.match("abc")
m.add_matchers(lit, reg)
assert m.match("baba1")
assert m.match("123a")
assert not m.match("abc")
assert not m.match("123")
end
end
| Nit | 4 | PuerkitoBio/nitfind | test_matcher.nit | [
"BSD-3-Clause"
] |
<patch-1.0 appVersion="1.0.12">
<obj type="patch/inlet f" uuid="5c585d2dcd9c05631e345ac09626a22a639d7c13" name="from_gpio" x="56" y="56">
<params/>
<attribs/>
</obj>
<obj type="math/reciprocal" uuid="439f340c2da8a031b6d48ed82626b4fbaaa05774" name="reciprocal_1" x="196" y="56">
<params/>
<attribs/>
</obj>
<obj type="mux/mux 2" uuid="3bcb8a666381ed18b8962eda50b1aa679136f618" name="mux_2" x="322" y="56">
<params/>
<attribs/>
</obj>
<obj type="dist/soft" uuid="cafcafb14553874dcff56b97ab767998e788ec01" name="soft_2" x="420" y="56">
<params/>
<attribs/>
</obj>
<obj type="math/smooth2" uuid="9ba3ddec912512e6b63211080e89cb25b6d84834" name="smooth2_2" x="504" y="56">
<params>
<frac32.u.map name="risetime" value="0.0"/>
<frac32.u.map name="falltime" value="15.0"/>
</params>
<attribs/>
</obj>
<obj type="patch/outlet f" uuid="d18a9a550bcaaebac94e25983bd0e27dbfd7233c" name="value" x="686" y="56">
<params/>
<attribs/>
</obj>
<obj type="math/>c" uuid="99f2934d97d62b715a829979ef6c8abef35dcdb2" name=">c_1" x="238" y="182">
<params>
<frac32.u.map name="c" value="1.5"/>
</params>
<attribs/>
</obj>
<obj type="patch/outlet b" uuid="191792f616d4835dba0b55375474a12942e5bcbd" name="gate" x="686" y="182">
<params/>
<attribs/>
</obj>
<nets>
<net>
<source obj="mux_2" outlet="o"/>
<dest obj="soft_2" inlet="in"/>
</net>
<net>
<source obj="reciprocal_1" outlet="out"/>
<dest obj="mux_2" inlet="i2"/>
<dest obj=">c_1" inlet="in"/>
</net>
<net>
<source obj=">c_1" outlet="out"/>
<dest obj="mux_2" inlet="s"/>
<dest obj="gate" inlet="outlet"/>
</net>
<net>
<source obj="soft_2" outlet="out"/>
<dest obj="smooth2_2" inlet="in"/>
</net>
<net>
<source obj="from_gpio" outlet="inlet"/>
<dest obj="reciprocal_1" inlet="in"/>
</net>
<net>
<source obj="smooth2_2" outlet="out"/>
<dest obj="value" inlet="outlet"/>
</net>
</nets>
<settings>
<subpatchmode>no</subpatchmode>
<MidiChannel>1</MidiChannel>
<NPresets>0</NPresets>
<NPresetEntries>0</NPresetEntries>
<NModulationSources>0</NModulationSources>
<NModulationTargetsPerSource>0</NModulationTargetsPerSource>
<Author></Author>
</settings>
<notes><![CDATA[]]></notes>
<windowPos>
<x>16</x>
<y>33</y>
<width>1280</width>
<height>562</height>
</windowPos>
</patch-1.0> | NetLinx | 4 | michaeldonovan/SynthGuitar | axoloti_patches/fsr.axs | [
"MIT"
] |
function describe_assert_error_message
function before_each
set -g __current_spec_quiet
end
function after_each
set -e __current_spec_quiet
end
function it_has_no_output_when_the_test_succeeds
assert 1 = 1
# Reset test status
set -e __current_spec_status
assert -z "$__current_spec_output"
end
function it_supports_unary_operators
assert -z "abc"
# Reset test status
set -e __current_spec_status
assert 'Expected result to be empty but it was abc' = "$__current_spec_output"
end
function it_supports_binary_operators
assert 1 = 2
# Reset test status
set -e __current_spec_status
assert 'Expected result to equals 1 but it was 2' = "$__current_spec_output"
end
function it_supports_inversion_on_unary_operators
assert ! -z ""
# Reset test status
set -e __current_spec_status
assert 'Expected result to not be empty but it was ' = "$__current_spec_output"
end
function it_supports_inversion_on_binary_operators
assert ! 1 = 1
# Reset test status
set -e __current_spec_status
assert 'Expected result to not equals 1 but it was 1' = "$__current_spec_output"
end
end
| fish | 4 | codetriage-readme-bot/oh-my-fish | pkg/fish-spec/spec/assert_error_message_spec.fish | [
"MIT"
] |
#
# This file contains any command you never want to be executed or help queried for.
# Some device console firmware, on some commands ignores the "?" on a help request
# "command ?" and instead executes the command. Any command listed here will not be
# queried on the firmware and will get the short help and long help descriptions from
# this file.
#
# This also gives you the ability to customize the published help by replacing the
# console help with your own text.
#
# Some commands may have multiple forms so you can list such command using the format:
# CMD1FORM1,CMD1FORM2~Short help description|Long help description
# CMD2FORM1~Short help description|Long help description
# CMD3FORM1,CMD3FORM2,CMD3FORM3~Short help description|Long help description
#
# A comma separates duplicated commands with differing forms, a tilde followed by the short help description
# and pipe | symbol separating short and long help
#
# Examples:
#
DBGTRANSMITTER~(*) Sets or clears Debug flag for IR/RF Transmitter|Sets or clears Debug flag for IR/RF Transmitter<p>Customizable help. See the text file donotexec.upc
REPORTPPNTABLe~Displays Cresnet PPN table if available|Displays Cresnet PPN table if available
LOGOFF~Logs the currently authenticated user out of the system|Logs the currently authenticated user out of the system | Unified Parallel C | 4 | StephenGenusa/Crestron-Device-Documenter | donotexec.upc | [
"BSD-2-Clause"
] |
\ @todo implement this
\ Convert a specially marked up C program into markdown.
| Forth | 1 | andrewtholt/libforth | fth/c2md.fth | [
"MIT"
] |
--- malformed interval literal with ansi mode
--IMPORT literals.sql
| SQL | 0 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/ansi/literals.sql | [
"Apache-2.0"
] |
[[groovy]]
= Apache Groovy
Groovy is a powerful, optionally typed, and dynamic language, with static-typing and static
compilation capabilities. It offers a concise syntax and integrates smoothly with any
existing Java application.
The Spring Framework provides a dedicated `ApplicationContext` that supports a Groovy-based
Bean Definition DSL. For more details, see
<<core.adoc#groovy-bean-definition-dsl, The Groovy Bean Definition DSL>>.
Further support for Groovy, including beans written in Groovy, refreshable script beans,
and more is available in <<dynamic-language>>.
| AsciiDoc | 3 | nicchagil/spring-framework | src/docs/asciidoc/languages/groovy.adoc | [
"Apache-2.0"
] |
o=:a+(:a>:b)*(:b-:a)o+=(o>:c)*(:c-o)o+=(o>:d)*(:d-o)o=:e/(:e<o)
o+=(o>:f)*(:f-o)o+=(o>:g)*(:g-o)o+=(o>:h)*(:h-o)o=:i/(:i<o)
:o=o+(o>:j)*(:j-o)goto:done++
/--------//--------//--------//--------//--------//--------//--------/
:a-=(:b<:a)*(:a-:b)
:c-=(:d<:c)*(:c-:d)
:e-=(:f<:e)*(:e-:f)
:g-=(:h<:g)*(:g-:h)
:i-=(:j<:i)*(:i-:j)
:a-=(:c<:a)*(:a-:c)
:e-=(:g<:e)*(:e-:g)
:e-=(:i<:e)*(:e-:i)
:o=:a+(:a>:e)*(:e-:a)
goto:done++
/--------//--------//--------//--------//--------//--------//--------/
:o=:a+(:a>:b)*(:b-:a)
:o+=(:o>:c)*(:c-:o)
:o+=(:o>:d)*(:d-:o)
:o+=(:o>:e)*(:e-:o)
:o+=(:o>:f)*(:f-:o)
:o+=(:o>:g)*(:g-:o)
:o+=(:o>:h)*(:h-:o)
:o+=(:o>:i)*(:i-:o)
:o+=(:o>:j)*(:j-:o)
goto:done++
:o+=(:o>:j)*(:j-:o)
c=:o>:j c*=:j-:o :o+=c
/--------//--------//--------//--------//--------//--------//--------/
:o=:a if:a<:o then:o=:a end if:b<:o then:o=:b end
if:c<:o then:o=:c end if:d<:o then:o=:d end if:e<:o then:o=:e end
if:f<:o then:o=:f end if:g<:o then:o=:g end if:h<:o then:o=:h end
if:i<:o then:o=:i end if:j<:o then:o=:j endgoto:done++
/--------//--------//--------//--------//--------//--------//--------/
:o=4001
if :a<:o then :o=:a end
if :b<:o then :o=:b end
if :c<:o then :o=:c end
if :d<:o then :o=:d end
if :e<:o then :o=:e end
if :f<:o then :o=:f end
if :g<:o then :o=:g end
if :h<:o then :o=:h end
if :i<:o then :o=:i end
if :j<:o then :o=:j end
:done=1
goto 1 | LOLCODE | 2 | Dude112113/Yolol | YololEmulator/Scripts/min10.lol | [
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Fulup <[email protected]>, 2012
# Irriep Nala Novram <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-09 17:42+0200\n"
"PO-Revision-Date: 2018-10-19 23:15+0000\n"
"Last-Translator: Irriep Nala Novram <[email protected]>\n"
"Language-Team: Breton (http://www.transifex.com/django/django/language/br/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: br\n"
"Plural-Forms: nplurals=5; plural=((n%10 == 1) && (n%100 != 11) && (n%100 !"
"=71) && (n%100 !=91) ? 0 :(n%10 == 2) && (n%100 != 12) && (n%100 !=72) && (n"
"%100 !=92) ? 1 :(n%10 ==3 || n%10==4 || n%10==9) && (n%100 < 10 || n% 100 > "
"19) && (n%100 < 70 || n%100 > 79) && (n%100 < 90 || n%100 > 99) ? 2 :(n != 0 "
"&& n % 1000000 == 0) ? 3 : 4);\n"
msgid "Redirects"
msgstr "Adkasadennoù"
msgid "site"
msgstr "lec'hienn"
msgid "redirect from"
msgstr "adkaset eus"
msgid ""
"This should be an absolute path, excluding the domain name. Example: '/"
"events/search/'."
msgstr ""
"An dra-se a rankfe bezañ un hent absolud, en ur dennañ an holl anvioù "
"domani. Da skouer: '/events/search /'."
msgid "redirect to"
msgstr "adkas da"
msgid ""
"This can be either an absolute path (as above) or a full URL starting with "
"'http://'."
msgstr ""
"An dra-se a c'hall bezañ un hent absolud (evel a-us) pe un URL klok o kregiñ "
"gant 'http://'."
msgid "redirect"
msgstr "adkas"
msgid "redirects"
msgstr "adkasoù"
| Gettext Catalog | 3 | jpmallarino/django | django/contrib/redirects/locale/br/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: ruby-ng.eclass
# @MAINTAINER:
# Ruby herd <[email protected]>
# @AUTHOR:
# Author: Diego E. Pettenò <[email protected]>
# Author: Alex Legler <[email protected]>
# Author: Hans de Graaff <[email protected]>
# @SUPPORTED_EAPIS: 2 3 4 5 6
# @BLURB: An eclass for installing Ruby packages with proper support for multiple Ruby slots.
# @DESCRIPTION:
# The Ruby eclass is designed to allow an easier installation of Ruby packages
# and their incorporation into the Gentoo Linux system.
#
# Currently available targets are listed in ruby-utils.eclass
#
# This eclass does not define the implementation of the configure,
# compile, test, or install phases. Instead, the default phases are
# used. Specific implementations of these phases can be provided in
# the ebuild either to be run for each Ruby implementation, or for all
# Ruby implementations, as follows:
#
# * each_ruby_configure
# * all_ruby_configure
# @ECLASS-VARIABLE: USE_RUBY
# @DEFAULT_UNSET
# @REQUIRED
# @DESCRIPTION:
# This variable contains a space separated list of targets (see above) a package
# is compatible to. It must be set before the `inherit' call. There is no
# default. All ebuilds are expected to set this variable.
# @ECLASS-VARIABLE: RUBY_PATCHES
# @DEFAULT_UNSET
# @DESCRIPTION:
# A String or Array of filenames of patches to apply to all implementations.
# @ECLASS-VARIABLE: RUBY_OPTIONAL
# @DEFAULT_UNSET
# @DESCRIPTION:
# Set the value to "yes" to make the dependency on a Ruby interpreter
# optional and then ruby_implementations_depend() to help populate
# DEPEND and RDEPEND.
# @ECLASS-VARIABLE: RUBY_S
# @DEFAULT_UNSET
# @DESCRIPTION:
# If defined this variable determines the source directory name after
# unpacking. This defaults to the name of the package. Note that this
# variable supports a wildcard mechanism to help with github tarballs
# that contain the commit hash as part of the directory name.
# @ECLASS-VARIABLE: RUBY_QA_ALLOWED_LIBS
# @DEFAULT_UNSET
# @DESCRIPTION:
# If defined this variable contains a whitelist of shared objects that
# are allowed to exist even if they don't link to libruby. This avoids
# the QA check that makes this mandatory. This is most likely not what
# you are looking for if you get the related "Missing links" QA warning,
# since the proper fix is almost always to make sure the shared object
# is linked against libruby. There are cases were this is not the case
# and the shared object is generic code to be used in some other way
# (e.g. selenium's firefox driver extension). When set this argument is
# passed to "grep -E" to remove reporting of these shared objects.
local inherits=""
case ${EAPI} in
2|3|4|5)
inherits="eutils"
;;
esac
inherit ${inherits} java-utils-2 multilib toolchain-funcs ruby-utils
EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_install pkg_setup
case ${EAPI} in
0|1)
die "Unsupported EAPI=${EAPI} (too old) for ruby-ng.eclass" ;;
2|3) ;;
4|5|6)
# S is no longer automatically assigned when it doesn't exist.
S="${WORKDIR}"
;;
*)
die "Unknown EAPI=${EAPI} for ruby-ng.eclass"
esac
# @FUNCTION: ruby_implementation_depend
# @USAGE: target [comparator [version]]
# @RETURN: Package atom of a Ruby implementation to be used in dependencies.
# @DESCRIPTION:
# This function returns the formal package atom for a Ruby implementation.
#
# `target' has to be one of the valid values for USE_RUBY (see above)
#
# Set `comparator' and `version' to include a comparator (=, >=, etc.) and a
# version string to the returned string
ruby_implementation_depend() {
_ruby_implementation_depend $1
}
# @FUNCTION: _ruby_get_all_impls
# @INTERNAL
# @RETURN: list of valid values in USE_RUBY
# Return a list of valid implementations in USE_RUBY, skipping the old
# implementations that are no longer supported.
_ruby_get_all_impls() {
local i
for i in ${USE_RUBY}; do
case ${i} in
# removed implementations
ruby19|ruby20|ruby21|ruby22|jruby)
;;
*)
echo ${i};;
esac
done
}
# @FUNCTION: ruby_samelib
# @RETURN: use flag string with current ruby implementations
# @DESCRIPTION:
# Convenience function to output the use dependency part of a
# dependency. Used as a building block for ruby_add_rdepend() and
# ruby_add_bdepend(), but may also be useful in an ebuild to specify
# more complex dependencies.
ruby_samelib() {
local res=
for _ruby_implementation in $(_ruby_get_all_impls); do
has -${_ruby_implementation} $@ || \
res="${res}ruby_targets_${_ruby_implementation}?,"
done
echo "[${res%,}]"
}
_ruby_atoms_samelib_generic() {
eshopts_push -o noglob
echo "RUBYTARGET? ("
for token in $*; do
case "$token" in
"||" | "(" | ")" | *"?")
echo "${token}" ;;
*])
echo "${token%[*}[RUBYTARGET,${token/*[}" ;;
*)
echo "${token}[RUBYTARGET]" ;;
esac
done
echo ")"
eshopts_pop
}
# @FUNCTION: ruby_implementation_command
# @RETURN: the path to the given ruby implementation
# @DESCRIPTION:
# Not all implementations have the same command basename as the
# target; This function translate between the two
ruby_implementation_command() {
local _ruby_name=$1
# Add all USE_RUBY values where the flag name diverts from the binary here
echo $(type -p ${_ruby_name} 2>/dev/null)
}
_ruby_atoms_samelib() {
local atoms=$(_ruby_atoms_samelib_generic "$*")
for _ruby_implementation in $(_ruby_get_all_impls); do
echo "${atoms//RUBYTARGET/ruby_targets_${_ruby_implementation}}"
done
}
_ruby_wrap_conditions() {
local conditions="$1"
local atoms="$2"
for condition in $conditions; do
atoms="${condition}? ( ${atoms} )"
done
echo "$atoms"
}
# @FUNCTION: ruby_add_rdepend
# @USAGE: dependencies
# @DESCRIPTION:
# Adds the specified dependencies, with use condition(s) to RDEPEND,
# taking the current set of ruby targets into account. This makes sure
# that all ruby dependencies of the package are installed for the same
# ruby targets. Use this function for all ruby dependencies instead of
# setting RDEPEND yourself. The list of atoms uses the same syntax as
# normal dependencies.
#
# Note: runtime dependencies are also added as build-time test
# dependencies.
ruby_add_rdepend() {
case $# in
1) ;;
2)
[[ "${GENTOO_DEV}" == "yes" ]] && eqawarn "You can now use the usual syntax in ruby_add_rdepend for $CATEGORY/$PF"
ruby_add_rdepend "$(_ruby_wrap_conditions "$1" "$2")"
return
;;
*)
die "bad number of arguments to $0"
;;
esac
local dependency=$(_ruby_atoms_samelib "$1")
RDEPEND="${RDEPEND} $dependency"
# Add the dependency as a test-dependency since we're going to
# execute the code during test phase.
DEPEND="${DEPEND} test? ( ${dependency} )"
has test "$IUSE" || IUSE="${IUSE} test"
}
# @FUNCTION: ruby_add_bdepend
# @USAGE: dependencies
# @DESCRIPTION:
# Adds the specified dependencies, with use condition(s) to DEPEND,
# taking the current set of ruby targets into account. This makes sure
# that all ruby dependencies of the package are installed for the same
# ruby targets. Use this function for all ruby dependencies instead of
# setting DEPEND yourself. The list of atoms uses the same syntax as
# normal dependencies.
ruby_add_bdepend() {
case $# in
1) ;;
2)
[[ "${GENTOO_DEV}" == "yes" ]] && eqawarn "You can now use the usual syntax in ruby_add_bdepend for $CATEGORY/$PF"
ruby_add_bdepend "$(_ruby_wrap_conditions "$1" "$2")"
return
;;
*)
die "bad number of arguments to $0"
;;
esac
local dependency=$(_ruby_atoms_samelib "$1")
DEPEND="${DEPEND} $dependency"
RDEPEND="${RDEPEND}"
}
# @FUNCTION: ruby_get_use_implementations
# @DESCRIPTION:
# Gets an array of ruby use targets enabled by the user
ruby_get_use_implementations() {
local i implementation
for implementation in $(_ruby_get_all_impls); do
use ruby_targets_${implementation} && i+=" ${implementation}"
done
echo $i
}
# @FUNCTION: ruby_get_use_targets
# @DESCRIPTION:
# Gets an array of ruby use targets that the ebuild sets
ruby_get_use_targets() {
local t implementation
for implementation in $(_ruby_get_all_impls); do
t+=" ruby_targets_${implementation}"
done
echo $t
}
# @FUNCTION: ruby_implementations_depend
# @RETURN: Dependencies suitable for injection into DEPEND and RDEPEND.
# @DESCRIPTION:
# Produces the dependency string for the various implementations of ruby
# which the package is being built against. This should not be used when
# RUBY_OPTIONAL is unset but must be used if RUBY_OPTIONAL=yes. Do not
# confuse this function with ruby_implementation_depend().
#
# @EXAMPLE:
# EAPI=6
# RUBY_OPTIONAL=yes
#
# inherit ruby-ng
# ...
# DEPEND="ruby? ( $(ruby_implementations_depend) )"
# RDEPEND="${DEPEND}"
ruby_implementations_depend() {
local depend
for _ruby_implementation in $(_ruby_get_all_impls); do
depend="${depend}${depend+ }ruby_targets_${_ruby_implementation}? ( $(ruby_implementation_depend $_ruby_implementation) )"
done
echo "${depend}"
}
IUSE+=" $(ruby_get_use_targets)"
# If you specify RUBY_OPTIONAL you also need to take care of
# ruby useflag and dependency.
if [[ ${RUBY_OPTIONAL} != yes ]]; then
DEPEND="${DEPEND} $(ruby_implementations_depend)"
RDEPEND="${RDEPEND} $(ruby_implementations_depend)"
case ${EAPI:-0} in
4|5|6)
REQUIRED_USE+=" || ( $(ruby_get_use_targets) )"
;;
esac
fi
_ruby_invoke_environment() {
old_S=${S}
case ${EAPI} in
4|5|6)
if [ -z "${RUBY_S}" ]; then
sub_S=${P}
else
sub_S=${RUBY_S}
fi
;;
*)
sub_S=${S#${WORKDIR}/}
;;
esac
# Special case, for the always-lovely GitHub fetches. With this,
# we allow the star glob to just expand to whatever directory it's
# called.
if [[ "${sub_S}" = *"*"* ]]; then
case ${EAPI} in
2|3)
#The old method of setting S depends on undefined package
# manager behaviour, so encourage upgrading to EAPI=4.
eqawarn "Using * expansion of S is deprecated. Use EAPI and RUBY_S instead."
;;
esac
pushd "${WORKDIR}"/all &>/dev/null || die
# use an array to trigger filename expansion
# fun fact: this expansion fails in src_unpack() but the original
# code did not have any checks for failed expansion, so we can't
# really add one now without redesigning stuff hard.
sub_S=( ${sub_S} )
if [[ ${#sub_S[@]} -gt 1 ]]; then
die "sub_S did expand to multiple paths: ${sub_S[*]}"
fi
popd &>/dev/null || die
fi
environment=$1; shift
my_WORKDIR="${WORKDIR}"/${environment}
S="${my_WORKDIR}"/"${sub_S}"
if [[ -d "${S}" ]]; then
pushd "$S" &>/dev/null || die
elif [[ -d "${my_WORKDIR}" ]]; then
pushd "${my_WORKDIR}" &>/dev/null || die
else
pushd "${WORKDIR}" &>/dev/null || die
fi
ebegin "Running ${_PHASE:-${EBUILD_PHASE}} phase for $environment"
"$@"
popd &>/dev/null || die
S=${old_S}
}
_ruby_each_implementation() {
local invoked=no
for _ruby_implementation in $(_ruby_get_all_impls); do
# only proceed if it's requested
use ruby_targets_${_ruby_implementation} || continue
RUBY=$(ruby_implementation_command ${_ruby_implementation})
invoked=yes
if [[ -n "$1" ]]; then
_ruby_invoke_environment ${_ruby_implementation} "$@"
fi
unset RUBY
done
if [[ ${invoked} == "no" ]]; then
eerror "You need to select at least one compatible Ruby installation target via RUBY_TARGETS in make.conf."
eerror "Compatible targets for this package are: $(_ruby_get_all_impls)"
eerror
eerror "See https://www.gentoo.org/proj/en/prog_lang/ruby/index.xml#doc_chap3 for more information."
eerror
die "No compatible Ruby target selected."
fi
}
# @FUNCTION: ruby-ng_pkg_setup
# @DESCRIPTION:
# Check whether at least one ruby target implementation is present.
ruby-ng_pkg_setup() {
# This only checks that at least one implementation is present
# before doing anything; by leaving the parameters empty we know
# it's a special case.
_ruby_each_implementation
has ruby_targets_jruby ${IUSE} && use ruby_targets_jruby && java-pkg_setup-vm
}
# @FUNCTION: ruby-ng_src_unpack
# @DESCRIPTION:
# Unpack the source archive.
ruby-ng_src_unpack() {
mkdir "${WORKDIR}"/all
pushd "${WORKDIR}"/all &>/dev/null || die
# We don't support an each-unpack, it's either all or nothing!
if type all_ruby_unpack &>/dev/null; then
_ruby_invoke_environment all all_ruby_unpack
else
[[ -n ${A} ]] && unpack ${A}
fi
popd &>/dev/null || die
}
_ruby_apply_patches() {
case ${EAPI} in
2|3|4|5)
for patch in "${RUBY_PATCHES[@]}"; do
if [ -f "${patch}" ]; then
epatch "${patch}"
elif [ -f "${FILESDIR}/${patch}" ]; then
epatch "${FILESDIR}/${patch}"
else
die "Cannot find patch ${patch}"
fi
done
;;
6)
if [[ -n ${RUBY_PATCHES[@]} ]]; then
eqawarn "RUBY_PATCHES is no longer supported, use PATCHES instead"
fi
;;
esac
# This is a special case: instead of executing just in the special
# "all" environment, this will actually copy the effects on _all_
# the other environments, and is thus executed before the copy
type all_ruby_prepare &>/dev/null && all_ruby_prepare
}
_ruby_source_copy() {
# Until we actually find a reason not to, we use hardlinks, this
# should reduce the amount of disk space that is wasted by this.
cp -prlP all ${_ruby_implementation} \
|| die "Unable to copy ${_ruby_implementation} environment"
}
# @FUNCTION: ruby-ng_src_prepare
# @DESCRIPTION:
# Apply patches and prepare versions for each ruby target
# implementation. Also carry out common clean up tasks.
ruby-ng_src_prepare() {
# Way too many Ruby packages are prepared on OSX without removing
# the extra data forks, we do it here to avoid repeating it for
# almost every other ebuild.
find . -name '._*' -delete
# Handle PATCHES and user supplied patches via the default phase
case ${EAPI} in
6)
_ruby_invoke_environment all default
;;
esac
_ruby_invoke_environment all _ruby_apply_patches
_PHASE="source copy" \
_ruby_each_implementation _ruby_source_copy
if type each_ruby_prepare &>/dev/null; then
_ruby_each_implementation each_ruby_prepare
fi
}
# @FUNCTION: ruby-ng_src_configure
# @DESCRIPTION:
# Configure the package.
ruby-ng_src_configure() {
if type each_ruby_configure &>/dev/null; then
_ruby_each_implementation each_ruby_configure
fi
type all_ruby_configure &>/dev/null && \
_ruby_invoke_environment all all_ruby_configure
}
# @FUNCTION: ruby-ng_src_compile
# @DESCRIPTION:
# Compile the package.
ruby-ng_src_compile() {
if type each_ruby_compile &>/dev/null; then
_ruby_each_implementation each_ruby_compile
fi
type all_ruby_compile &>/dev/null && \
_ruby_invoke_environment all all_ruby_compile
}
# @FUNCTION: ruby-ng_src_test
# @DESCRIPTION:
# Run tests for the package.
ruby-ng_src_test() {
if type each_ruby_test &>/dev/null; then
_ruby_each_implementation each_ruby_test
fi
type all_ruby_test &>/dev/null && \
_ruby_invoke_environment all all_ruby_test
}
_each_ruby_check_install() {
local scancmd=scanelf
# we have a Mach-O object here
[[ ${CHOST} == *-darwin ]] && scancmd=scanmacho
has "${EAPI}" 2 && ! use prefix && EPREFIX=
local libruby_basename=$(${RUBY} -rrbconfig -e 'puts RbConfig::CONFIG["LIBRUBY_SO"]')
local libruby_soname=$(basename $(${scancmd} -F "%S#F" -qS "${EPREFIX}/usr/$(get_libdir)/${libruby_basename}") 2>/dev/null)
local sitedir=$(${RUBY} -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]')
local sitelibdir=$(${RUBY} -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]')
# Look for wrong files in sitedir
# if [[ -d "${D}${sitedir}" ]]; then
# local f=$(find "${D}${sitedir}" -mindepth 1 -maxdepth 1 -not -wholename "${D}${sitelibdir}")
# if [[ -n ${f} ]]; then
# eerror "Found files in sitedir, outsite sitelibdir:"
# eerror "${f}"
# die "Misplaced files in sitedir"
# fi
# fi
# The current implementation lacks libruby (i.e.: jruby)
[[ -z ${libruby_soname} ]] && return 0
# Check also the gems directory, since we could be installing compiled
# extensions via ruby-fakegem; make sure to check only in sitelibdir, since
# that's what changes between two implementations (otherwise you'd get false
# positives now that Ruby 1.9.2 installs with the same sitedir as 1.8)
${scancmd} -qnR "${D}${sitelibdir}" "${D}${sitelibdir/site_ruby/gems}" \
| fgrep -v "${libruby_soname}" \
| grep -E -v "${RUBY_QA_ALLOWED_LIBS}" \
> "${T}"/ruby-ng-${_ruby_implementation}-mislink.log
if [[ -s "${T}"/ruby-ng-${_ruby_implementation}-mislink.log ]]; then
ewarn "Extensions installed for ${_ruby_implementation} with missing links to ${libruby_soname}"
ewarn $(< "${T}"/ruby-ng-${_ruby_implementation}-mislink.log )
die "Missing links to ${libruby_soname}"
fi
}
# @FUNCTION: ruby-ng_src_install
# @DESCRIPTION:
# Install the package for each ruby target implementation.
ruby-ng_src_install() {
if type each_ruby_install &>/dev/null; then
_ruby_each_implementation each_ruby_install
fi
type all_ruby_install &>/dev/null && \
_ruby_invoke_environment all all_ruby_install
_PHASE="check install" \
_ruby_each_implementation _each_ruby_check_install
}
# @FUNCTION: ruby_rbconfig_value
# @USAGE: rbconfig item
# @RETURN: Returns the value of the given rbconfig item of the Ruby interpreter in ${RUBY}.
ruby_rbconfig_value() {
echo $(${RUBY} -rrbconfig -e "puts RbConfig::CONFIG['$1']")
}
# @FUNCTION: doruby
# @USAGE: file [file...]
# @DESCRIPTION:
# Installs the specified file(s) into the sitelibdir of the Ruby interpreter in ${RUBY}.
doruby() {
[[ -z ${RUBY} ]] && die "\$RUBY is not set"
has "${EAPI}" 2 && ! use prefix && EPREFIX=
( # don't want to pollute calling env
sitelibdir=$(ruby_rbconfig_value 'sitelibdir')
insinto ${sitelibdir#${EPREFIX}}
insopts -m 0644
doins "$@"
) || die "failed to install $@"
}
# @FUNCTION: ruby_get_libruby
# @RETURN: The location of libruby*.so belonging to the Ruby interpreter in ${RUBY}.
ruby_get_libruby() {
${RUBY} -rrbconfig -e 'puts File.join(RbConfig::CONFIG["libdir"], RbConfig::CONFIG["LIBRUBY"])'
}
# @FUNCTION: ruby_get_hdrdir
# @RETURN: The location of the header files belonging to the Ruby interpreter in ${RUBY}.
ruby_get_hdrdir() {
local rubyhdrdir=$(ruby_rbconfig_value 'rubyhdrdir')
if [[ "${rubyhdrdir}" = "nil" ]] ; then
rubyhdrdir=$(ruby_rbconfig_value 'archdir')
fi
echo "${rubyhdrdir}"
}
# @FUNCTION: ruby_get_version
# @RETURN: The version of the Ruby interpreter in ${RUBY}, or what 'ruby' points to.
ruby_get_version() {
local ruby=${RUBY:-$(type -p ruby 2>/dev/null)}
echo $(${ruby} -e 'puts RUBY_VERSION')
}
# @FUNCTION: ruby_get_implementation
# @RETURN: The implementation of the Ruby interpreter in ${RUBY}, or what 'ruby' points to.
ruby_get_implementation() {
local ruby=${RUBY:-$(type -p ruby 2>/dev/null)}
case $(${ruby} --version) in
*jruby*)
echo "jruby"
;;
*rubinius*)
echo "rbx"
;;
*)
echo "mri"
;;
esac
}
# @FUNCTION: ruby-ng_rspec <arguments>
# @DESCRIPTION:
# This is simply a wrapper around the rspec command (executed by $RUBY})
# which also respects TEST_VERBOSE and NOCOLOR environment variables.
# Optionally takes arguments to pass on to the rspec invocation. The
# environment variable RSPEC_VERSION can be used to control the specific
# rspec version that must be executed. It defaults to 2 for historical
# compatibility.
ruby-ng_rspec() {
local version=${RSPEC_VERSION-2}
local files="$@"
# Explicitly pass the expected spec directory since the versioned
# rspec wrappers don't handle this automatically.
if [ ${#@} -eq 0 ]; then
files="spec"
fi
if [[ ${DEPEND} != *"dev-ruby/rspec"* ]]; then
ewarn "Missing dev-ruby/rspec in \${DEPEND}"
fi
local rspec_params=
case ${NOCOLOR} in
1|yes|true)
rspec_params+=" --no-color"
;;
*)
rspec_params+=" --color"
;;
esac
case ${TEST_VERBOSE} in
1|yes|true)
rspec_params+=" --format documentation"
;;
*)
rspec_params+=" --format progress"
;;
esac
${RUBY} -S rspec-${version} ${rspec_params} ${files} || die "rspec failed"
}
# @FUNCTION: ruby-ng_cucumber
# @DESCRIPTION:
# This is simply a wrapper around the cucumber command (executed by $RUBY})
# which also respects TEST_VERBOSE and NOCOLOR environment variables.
ruby-ng_cucumber() {
if [[ ${DEPEND} != *"dev-util/cucumber"* ]]; then
ewarn "Missing dev-util/cucumber in \${DEPEND}"
fi
local cucumber_params=
case ${NOCOLOR} in
1|yes|true)
cucumber_params+=" --no-color"
;;
*)
cucumber_params+=" --color"
;;
esac
case ${TEST_VERBOSE} in
1|yes|true)
cucumber_params+=" --format pretty"
;;
*)
cucumber_params+=" --format progress"
;;
esac
if [[ ${RUBY} == *jruby ]]; then
ewarn "Skipping cucumber tests on JRuby (unsupported)."
return 0
fi
${RUBY} -S cucumber ${cucumber_params} "$@" || die "cucumber failed"
}
# @FUNCTION: ruby-ng_testrb-2
# @DESCRIPTION:
# This is simply a replacement for the testrb command that load the test
# files and execute them, with test-unit 2.x. This actually requires
# either an old test-unit-2 version or 2.5.1-r1 or later, as they remove
# their script and we installed a broken wrapper for a while.
# This also respects TEST_VERBOSE and NOCOLOR environment variables.
ruby-ng_testrb-2() {
if [[ ${DEPEND} != *"dev-ruby/test-unit"* ]]; then
ewarn "Missing dev-ruby/test-unit in \${DEPEND}"
fi
local testrb_params=
case ${NOCOLOR} in
1|yes|true)
testrb_params+=" --no-use-color"
;;
*)
testrb_params+=" --use-color=auto"
;;
esac
case ${TEST_VERBOSE} in
1|yes|true)
testrb_params+=" --verbose=verbose"
;;
*)
testrb_params+=" --verbose=normal"
;;
esac
${RUBY} -S testrb-2 ${testrb_params} "$@" || die "testrb-2 failed"
}
| Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/ruby-ng.eclass | [
"MIT"
] |
# Copyright (c) 2013-2016 Sandstorm Development Group, Inc. and contributors
# Licensed under the MIT License:
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
@0xa7c73bdce79c15a0;
enum TestEnum {
foo @0;
bar @1;
baz @2;
qux @3;
quux @4;
corge @5;
grault @6;
garply @7;
}
struct TestAllTypes {
voidField @0 : Void;
boolField @1 : Bool;
int8Field @2 : Int8;
int16Field @3 : Int16;
int32Field @4 : Int32;
int64Field @5 : Int64;
uInt8Field @6 : UInt8;
uInt16Field @7 : UInt16;
uInt32Field @8 : UInt32;
uInt64Field @9 : UInt64;
float32Field @10 : Float32;
float64Field @11 : Float64;
textField @12 : Text;
dataField @13 : Data;
structField @14 : TestAllTypes;
enumField @15 : TestEnum;
interfaceField @16 : TestInterface;
voidList @17 : List(Void);
boolList @18 : List(Bool);
int8List @19 : List(Int8);
int16List @20 : List(Int16);
int32List @21 : List(Int32);
int64List @22 : List(Int64);
uInt8List @23 : List(UInt8);
uInt16List @24 : List(UInt16);
uInt32List @25 : List(UInt32);
uInt64List @26 : List(UInt64);
float32List @27 : List(Float32);
float64List @28 : List(Float64);
textList @29 : List(Text);
dataList @30 : List(Data);
structList @31 : List(TestAllTypes);
enumList @32 : List(TestEnum);
interfaceList @33 : List(Void); # TODO
}
interface Bootstrap {
testInterface @0 () -> (cap: TestInterface);
testExtends @1 () -> (cap: TestExtends);
testExtends2 @2 () -> (cap: TestExtends2);
testPipeline @3 () -> (cap: TestPipeline);
testCallOrder @4 () -> (cap: TestCallOrder);
testMoreStuff @5 () -> (cap: TestMoreStuff);
}
interface TestInterface {
foo @0 (i :UInt32, j :Bool) -> (x :Text);
bar @1 () -> ();
baz @2 (s: TestAllTypes);
}
interface TestExtends extends(TestInterface) {
qux @0 ();
corge @1 TestAllTypes -> ();
grault @2 () -> TestAllTypes;
}
interface TestExtends2 extends(TestExtends) {}
interface TestPipeline {
getCap @0 (n: UInt32, inCap :TestInterface) -> (s: Text, outBox :Box);
getNullCap @1 () -> (cap :TestInterface);
testPointers @2 (cap :TestInterface, obj :AnyPointer, list :List(TestInterface)) -> ();
struct Box {
cap @0 :TestInterface;
}
}
interface TestCallOrder {
getCallSequence @0 (expected: UInt32) -> (n: UInt32);
# First call returns 0, next returns 1, ...
#
# The input `expected` is ignored but useful for disambiguating debug logs.
}
interface TestTailCallee {
struct TailResult {
i @0 :UInt32;
t @1 :Text;
c @2 :TestCallOrder;
}
foo @0 (i :Int32, t :Text) -> TailResult;
}
interface TestTailCaller {
foo @0 (i :Int32, callee :TestTailCallee) -> TestTailCallee.TailResult;
}
interface TestHandle {}
interface TestMoreStuff extends(TestCallOrder) {
# Catch-all type that contains lots of testing methods.
callFoo @0 (cap :TestInterface) -> (s: Text);
# Call `cap.foo()`, check the result, and return "bar".
callFooWhenResolved @1 (cap :TestInterface) -> (s: Text);
# Like callFoo but waits for `cap` to resolve first.
neverReturn @2 (cap :TestInterface) -> (capCopy :TestInterface);
# Doesn't return. You should cancel it.
hold @3 (cap :TestInterface) -> ();
# Returns immediately but holds on to the capability.
callHeld @4 () -> (s: Text);
# Calls the capability previously held using `hold` (and keeps holding it).
getHeld @5 () -> (cap :TestInterface);
# Returns the capability previously held using `hold` (and keeps holding it).
echo @6 (cap :TestCallOrder) -> (cap :TestCallOrder);
# Just returns the input cap.
expectCancel @7 (cap :TestInterface) -> ();
# evalLater()-loops forever, holding `cap`. Must be canceled.
methodWithDefaults @8 (a :Text, b :UInt32 = 123, c :Text = "foo") -> (d :Text, e :Text = "bar");
getHandle @9 () -> (handle :TestHandle);
# Get a new handle. Tests have an out-of-band way to check the current number of live handles, so
# this can be used to test garbage collection.
getNull @10 () -> (nullCap :TestMoreStuff);
# Always returns a null capability.
getHandleCount @11 () -> (count: Int64);
dontHold @12 (cap :TestInterface) -> ();
# Returns immediately and does not hold on to the capability.
callEachCapability @13 (caps :List(TestInterface)) -> ();
# Calls TestInterface::foo(123, true) on each cap.
}
| Cap'n Proto | 4 | bbqsrc/capnproto-rust | capnp-rpc/test/test.capnp | [
"MIT"
] |
// run-pass
fn main() {
assert!(f("", 0));
assert!(f("a", 1));
assert!(f("b", 1));
assert!(!f("", 1));
assert!(!f("a", 0));
assert!(!f("b", 0));
assert!(!f("asdf", 32));
////
assert!(!g(true, true, true));
assert!(!g(false, true, true));
assert!(!g(true, false, true));
assert!(!g(false, false, true));
assert!(!g(true, true, false));
assert!(g(false, true, false));
assert!(g(true, false, false));
assert!(g(false, false, false));
////
assert!(!h(true, true, true));
assert!(!h(false, true, true));
assert!(!h(true, false, true));
assert!(!h(false, false, true));
assert!(!h(true, true, false));
assert!(h(false, true, false));
assert!(h(true, false, false));
assert!(h(false, false, false));
}
fn f(s: &str, num: usize) -> bool {
match (s, num) {
("", 0) | ("a" | "b", 1) => true,
_ => false,
}
}
fn g(x: bool, y: bool, z: bool) -> bool {
match (x, y, x, z) {
(true | false, false, true, false) => true,
(false, true | false, true | false, false) => true,
(true | false, true | false, true | false, true) => false,
(true, true | false, true | false, false) => false,
}
}
fn h(x: bool, y: bool, z: bool) -> bool {
match (x, (y, (x, (z,)))) {
(true | false, (false, (true, (false,)))) => true,
(false, (true | false, (true | false, (false,)))) => true,
(true | false, (true | false, (true | false, (true,)))) => false,
(true, (true | false, (true | false, (false,)))) => false,
}
}
| Rust | 3 | mbc-git/rust | src/test/ui/match/issue-72680.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
use clippy_utils::diagnostics::span_lint_and_sugg;
use clippy_utils::is_trait_method;
use clippy_utils::ty::has_iter_method;
use if_chain::if_chain;
use rustc_errors::Applicability;
use rustc_hir as hir;
use rustc_lint::LateContext;
use rustc_middle::ty::{self, Ty};
use rustc_span::source_map::Span;
use rustc_span::symbol::{sym, Symbol};
use super::INTO_ITER_ON_REF;
pub(super) fn check(
cx: &LateContext<'_>,
expr: &hir::Expr<'_>,
method_span: Span,
method_name: Symbol,
args: &[hir::Expr<'_>],
) {
let self_ty = cx.typeck_results().expr_ty_adjusted(&args[0]);
if_chain! {
if let ty::Ref(..) = self_ty.kind();
if method_name == sym::into_iter;
if is_trait_method(cx, expr, sym::IntoIterator);
if let Some((kind, method_name)) = ty_has_iter_method(cx, self_ty);
then {
span_lint_and_sugg(
cx,
INTO_ITER_ON_REF,
method_span,
&format!(
"this `.into_iter()` call is equivalent to `.{}()` and will not consume the `{}`",
method_name, kind,
),
"call directly",
method_name.to_string(),
Applicability::MachineApplicable,
);
}
}
}
fn ty_has_iter_method(cx: &LateContext<'_>, self_ref_ty: Ty<'_>) -> Option<(Symbol, &'static str)> {
has_iter_method(cx, self_ref_ty).map(|ty_name| {
let mutbl = match self_ref_ty.kind() {
ty::Ref(_, _, mutbl) => mutbl,
_ => unreachable!(),
};
let method_name = match mutbl {
hir::Mutability::Not => "iter",
hir::Mutability::Mut => "iter_mut",
};
(ty_name, method_name)
})
}
| Rust | 4 | narpfel/rust-clippy | clippy_lints/src/methods/into_iter_on_ref.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#tag Module
Protected Module BinaryStreamExtensionsWFS
#tag Method, Flags = &h0
Function ReadCStringWFS(extends bs as BinaryStream, enc as TextEncoding = nil) As String
// Read one bytes at a time until we come to a 0-byte.
dim ret as String
dim bytes as UInt8
do
bytes = bs.ReadUInt8
if enc <> nil then
ret = ret + enc.Chr( bytes )
else
ret = ret + Encodings.ASCII.Chr( bytes )
end if
loop until bytes = 0
return ret
End Function
#tag EndMethod
#tag Method, Flags = &h0
Function ReadWStringWFS(extends bs as BinaryStream) As String
// Read one word at a time until we come to a 0-word.
dim ret as String
dim word as UInt16
do
word = bs.ReadUInt16
ret = ret + Encodings.UTF16.Chr( word )
loop until word = 0
return ret
End Function
#tag EndMethod
#tag ViewBehavior
#tag ViewProperty
Name="Index"
Visible=true
Group="ID"
InitialValue="-2147483648"
InheritedFrom="Object"
#tag EndViewProperty
#tag ViewProperty
Name="Left"
Visible=true
Group="Position"
InitialValue="0"
InheritedFrom="Object"
#tag EndViewProperty
#tag ViewProperty
Name="Name"
Visible=true
Group="ID"
InheritedFrom="Object"
#tag EndViewProperty
#tag ViewProperty
Name="Super"
Visible=true
Group="ID"
InheritedFrom="Object"
#tag EndViewProperty
#tag ViewProperty
Name="Top"
Visible=true
Group="Position"
InitialValue="0"
InheritedFrom="Object"
#tag EndViewProperty
#tag EndViewBehavior
End Module
#tag EndModule
| REALbasic | 5 | bskrtich/WFS | Windows Functionality Suite/File Processing/Modules/BinaryStreamExtensionsWFS.rbbas | [
"MIT"
] |
import { observer } from 'mobx-react-lite'
import Link from 'next/link'
import { useEffect } from 'react'
import Clock from './Clock'
import { useStore } from './StoreProvider'
const Page = observer(function Page(props) {
// use store from the store context
const store = useStore()
//start the clock when the component is mounted
useEffect(() => {
store.start()
// stop the clock when the component unmounts
return () => {
store.stop()
}
}, [store])
return (
<div>
<h1>{props.title}</h1>
<Clock />
<nav>
<Link href={props.linkTo}>
<a>Navigate</a>
</Link>
</nav>
</div>
)
})
export default Page
| JavaScript | 4 | blomqma/next.js | examples/with-mobx-react-lite/components/Page.js | [
"MIT"
] |
package com.baeldung.manytomany;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.orm.jpa.JpaVendorAdapter;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import javax.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;
@Configuration
@PropertySource("manytomany/test.properties")
public class ManyToManyTestConfiguration {
@Bean
public DataSource dataSource() {
EmbeddedDatabaseBuilder dbBuilder = new EmbeddedDatabaseBuilder();
return dbBuilder.setType(EmbeddedDatabaseType.H2)
.addScript("classpath:/manytomany/db.sql")
.build();
}
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory(@Value("${hibernate.hbm2ddl.auto}") String hbm2ddlType, @Value("${hibernate.dialect}") String dialect, @Value("${hibernate.show_sql}") boolean showSql) {
LocalContainerEntityManagerFactoryBean result = new LocalContainerEntityManagerFactoryBean();
result.setDataSource(dataSource());
result.setPackagesToScan("com.baeldung.manytomany.model");
result.setJpaVendorAdapter(jpaVendorAdapter());
Map<String, Object> jpaProperties = new HashMap<>();
jpaProperties.put("hibernate.hbm2ddl.auto", hbm2ddlType);
jpaProperties.put("hibernate.dialect", dialect);
jpaProperties.put("hibernate.show_sql", showSql);
result.setJpaPropertyMap(jpaProperties);
return result;
}
@Bean
JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(entityManagerFactory);
return transactionManager;
}
public JpaVendorAdapter jpaVendorAdapter() {
return new HibernateJpaVendorAdapter();
}
}
| Java | 4 | DBatOWL/tutorials | persistence-modules/spring-jpa-2/src/test/java/com/baeldung/manytomany/ManyToManyTestConfiguration.java | [
"MIT"
] |
sub main()
r = createObject("RoInvalid")
print type(r)
print r
print r.toStr()
result = (r = invalid)
print result
end sub
| Brightscript | 2 | lkipke/brs | test/e2e/resources/components/roInvalid.brs | [
"MIT"
] |
Gramatika
0 $accept: rhyme $end
1 rhyme: sound place
2 sound: DING DONG
3 place: DELL
Terminály s pravidly, ve kterých se objevují
$end (0) 0
error (256)
DING (258) 2
DONG (259) 2
DELL (260) 3
Neterminály s pravidly, ve kterých se objevují
$accept (6)
vlevo: 0
rhyme (7)
vlevo: 1, vpravo: 0
sound (8)
vlevo: 2, vpravo: 1
place (9)
vlevo: 3, vpravo: 1
State 0
0 $accept: . rhyme $end
1 rhyme: . sound place
2 sound: . DING DONG
DING posunout a přejít do stavu 1
rhyme přejít do stavu 2
sound přejít do stavu 3
State 1
2 sound: DING . DONG
DONG posunout a přejít do stavu 4
State 2
0 $accept: rhyme . $end
$end posunout a přejít do stavu 5
State 3
1 rhyme: sound . place
3 place: . DELL
DELL posunout a přejít do stavu 6
place přejít do stavu 7
State 4
2 sound: DING DONG .
$výchozí reduce using rule 2 (sound)
State 5
0 $accept: rhyme $end .
$výchozí přijmout
State 6
3 place: DELL .
$výchozí reduce using rule 3 (place)
State 7
1 rhyme: sound place .
$výchozí reduce using rule 1 (rhyme)
| Bison | 4 | YKG/y | testdata/ok/ding.y.bison | [
"BSD-3-Clause"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <[email protected]>, 2011
# Marco Bonetti, 2014
# Mirco Grillo <[email protected]>, 2020
# palmux <[email protected]>, 2014-2015,2021
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-15 09:00+0100\n"
"PO-Revision-Date: 2021-01-15 16:04+0000\n"
"Last-Translator: palmux <[email protected]>\n"
"Language-Team: Italian (http://www.transifex.com/django/django/language/"
"it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Redirects"
msgstr "Redirezioni"
msgid "site"
msgstr "sito"
msgid "redirect from"
msgstr "redirezione da"
msgid ""
"This should be an absolute path, excluding the domain name. Example: “/"
"events/search/”."
msgstr ""
"Deve essere un percorso assoluto, senza nome a dominio. Esempio: '/events/"
"search/'."
msgid "redirect to"
msgstr "redirezione verso"
msgid ""
"This can be either an absolute path (as above) or a full URL starting with a "
"scheme such as “https://”."
msgstr ""
"Può essere un percorso assoluto (come sopra) o un URL completo che inizia "
"con \"https: //\"."
msgid "redirect"
msgstr "redirezione"
msgid "redirects"
msgstr "redirezioni"
| Gettext Catalog | 4 | Joshua-Barawa/My-Photos | venv/lib/python3.8/site-packages/django/contrib/redirects/locale/it/LC_MESSAGES/django.po | [
"PostgreSQL",
"Unlicense"
] |
lexer grammar t003lexer;
options {
language = JavaScript;
}
ZERO: '0';
ONE: '1';
FOOZE: 'fooze';
| G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t003lexer.g | [
"Apache-2.0"
] |
// Spring Forces (Soft Spring Port)
// The Coding Train / Daniel Shiffman
// https://thecodingtrain.com/CodingChallenges/160-spring-forces.html
// https://youtu.be/Rr-5HiXquhw
// Simple Spring: https://editor.p5js.org/codingtrain/sketches/dcd6-2mWa
// Spring Vector: https://editor.p5js.org/codingtrain/sketches/_A2pm_SSg
// Spring OOP: https://editor.p5js.org/codingtrain/sketches/9BAoEn4Po
// Soft Spring: https://editor.p5js.org/codingtrain/sketches/S5dY7qjxP
ArrayList<Particle> particles = new ArrayList<Particle>();
ArrayList<Spring> springs = new ArrayList<Spring>();
int spacing = 50;
float k = 0.1;
PVector gravity;
void setup() {
size(800, 800);
for (int i = 0; i < 10; i++) {
particles.add(new Particle(width / 2, i * spacing));
if (i != 0) {
Particle a = particles.get(i);
Particle b = particles.get(i - 1);
Spring spring = new Spring(k, spacing, a, b);
springs.add(spring);
}
}
particles.get(0).locked = true;
gravity = new PVector(0, 0.1);
}
void draw() {
background(112, 50, 126);
for (Spring s : springs) {
s.update();
//s.show();
}
noFill();
stroke(252, 238, 33);
strokeWeight(8);
beginShape();
Particle head = particles.get(0);
curveVertex(head.position.x, head.position.y);
for (Particle p : particles) {
p.applyForce(gravity);
p.update();
curveVertex(p.position.x, p.position.y);
//p.show();
}
Particle tail = particles.get(particles.size() - 1);
curveVertex(tail.position.x, tail.position.y);
endShape();
fill(45, 197, 244);
circle(tail.position.x, tail.position.y, 64);
if (mousePressed) {
tail.position.set(mouseX, mouseY);
tail.velocity.set(0, 0);
}
}
| Processing | 5 | vinnyI-afk/website | CodingChallenges/CC_160_spring_forces/soft-spring-port/cc160_soft_spring_port/cc160_soft_spring_port.pde | [
"MIT"
] |
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# bat-extras | Copyright (C) 2020 eth-p and contributors | MIT License
#
# Repository: https://github.com/eth-p/bat-extras
# Issues: https://github.com/eth-p/bat-extras/issues
# -----------------------------------------------------------------------------
printc(){
printf "$(sed "$_PRINTC_PATTERN" <<<"$1")" "${@:2}"
}
printc_init(){
case "$1" in
true)_PRINTC_PATTERN="$_PRINTC_PATTERN_ANSI";;
false)_PRINTC_PATTERN="$_PRINTC_PATTERN_PLAIN";;
"[DEFINE]"){
_PRINTC_PATTERN_ANSI=""
_PRINTC_PATTERN_PLAIN=""
local name
local ansi
while read -r name ansi;do
if [[ -z $name && -z $ansi ]]||[[ ${name:0:1} == "#" ]];then
continue
fi
ansi="${ansi/\\/\\\\}"
_PRINTC_PATTERN_PLAIN="${_PRINTC_PATTERN_PLAIN}s/%{$name}//g;"
_PRINTC_PATTERN_ANSI="${_PRINTC_PATTERN_ANSI}s/%{$name}/$ansi/g;"
done
if [ -t 1 ];then
_PRINTC_PATTERN="$_PRINTC_PATTERN_ANSI"
else
_PRINTC_PATTERN="$_PRINTC_PATTERN_PLAIN"
fi
}
esac
}
print_warning(){
printc "%{YELLOW}[%s warning]%{CLEAR}: $1%{CLEAR}\n" "batgrep" "${@:2}" 1>&2
}
print_error(){
printc "%{RED}[%s error]%{CLEAR}: $1%{CLEAR}\n" "batgrep" "${@:2}" 1>&2
}
printc_init "[DEFINE]" <<END
CLEAR \x1B[0m
RED \x1B[31m
GREEN \x1B[32m
YELLOW \x1B[33m
BLUE \x1B[34m
MAGENTA \x1B[35m
CYAN \x1B[36m
DEFAULT \x1B[39m
DIM \x1B[2m
END
is_pager_less(){
[[ "$(pager_name)" == "less" ]]
return $?
}
is_pager_disabled(){
[[ -z "$(pager_name)" ]]
return $?
}
pager_name(){
_detect_pager 1>&2
echo "$_SCRIPT_PAGER_NAME"
}
pager_version(){
_detect_pager 1>&2
echo "$_SCRIPT_PAGER_VERSION"
}
pager_exec(){
if [[ -n $SCRIPT_PAGER_CMD ]];then
"$@"|pager_display
return $?
else
"$@"
return $?
fi
}
pager_display(){
if [[ -n $SCRIPT_PAGER_CMD ]];then
if [[ -n $SCRIPT_PAGER_ARGS ]];then
"${SCRIPT_PAGER_CMD[@]}" "${SCRIPT_PAGER_ARGS[@]}"
return $?
else
"${SCRIPT_PAGER_CMD[@]}"
return $?
fi
else
cat
return $?
fi
}
_detect_pager(){
if [[ $_SCRIPT_PAGER_DETECTED == "true" ]];then return;fi
_SCRIPT_PAGER_DETECTED=true
if [[ -z ${SCRIPT_PAGER_CMD[0]} ]];then
_SCRIPT_PAGER_VERSION=0
_SCRIPT_PAGER_NAME=""
return
fi
local output
local output1
output="$("${SCRIPT_PAGER_CMD[0]}" --version 2>&1)"
output1="$(head -n 1 <<<"$output")"
if [[ $output1 =~ ^less[[:blank:]]([[:digit:]]+) ]];then
_SCRIPT_PAGER_VERSION="${BASH_REMATCH[1]}"
_SCRIPT_PAGER_NAME="less"
else
_SCRIPT_PAGER_VERSION=0
_SCRIPT_PAGER_NAME="$(basename "${SCRIPT_PAGER_CMD[0]}")"
fi
}
_configure_pager(){
SCRIPT_PAGER_CMD=($PAGER)
SCRIPT_PAGER_ARGS=()
if [[ -n ${BAT_PAGER+x} ]];then
SCRIPT_PAGER_CMD=($BAT_PAGER)
SCRIPT_PAGER_ARGS=()
return
fi
if is_pager_less;then
SCRIPT_PAGER_CMD=("${SCRIPT_PAGER_CMD[0]}" -R --quit-if-one-screen)
if [[ "$(pager_version)" -lt 500 ]];then
SCRIPT_PAGER_CMD+=(--no-init)
fi
fi
}
if [[ -t 1 ]];then
_configure_pager
else
SCRIPT_PAGER_CMD=()
SCRIPT_PAGER_ARGS=()
fi
SHIFTOPT_HOOKS=()
setargs(){
_ARGV=("$@")
_ARGV_LAST="$((${#_ARGV[@]}-1))"
_ARGV_INDEX=0
}
shiftopt(){
[[ $_ARGV_INDEX -gt $_ARGV_LAST ]]&&return 1
OPT="${_ARGV[$_ARGV_INDEX]}"
unset OPT_VAL
if [[ $OPT =~ ^--[a-zA-Z0-9_-]+=.* ]];then
OPT_VAL="${OPT#*=}"
OPT="${OPT%%=*}"
fi
((_ARGV_INDEX++))
local hook
for hook in "${SHIFTOPT_HOOKS[@]}";do
if "$hook";then
shiftopt
return $?
fi
done
return 0
}
shiftval(){
if [[ -n ${OPT_VAL+x} ]];then
return 0
fi
if [[ $OPT =~ ^-[[:alpha:]][[:digit:]]{1,}$ ]];then
OPT_VAL="${OPT:2}"
return
fi
OPT_VAL="${_ARGV[$_ARGV_INDEX]}"
((_ARGV_INDEX++))
if [[ $OPT_VAL =~ -.* ]];then
printc "%{RED}%s: '%s' requires a value%{CLEAR}\n" "batgrep" "$ARG"
exit 1
fi
}
setargs "$@"
hook_color(){
SHIFTOPT_HOOKS+=("__shiftopt_hook__color")
__shiftopt_hook__color(){
case "$OPT" in
--no-color)OPT_COLOR=false;;
--color){
case "$OPT_VAL" in
"")OPT_COLOR=true;;
always|true)OPT_COLOR=true;;
never|false)OPT_COLOR=false;;
auto)return 0;;
*)printc "%{RED}%s: '--color' expects value of 'auto', 'always', or 'never'%{CLEAR}\n" "batgrep"
exit 1
esac
};;
*)return 1
esac
printc_init "$OPT_COLOR"
return 0
}
if [[ -z $OPT_COLOR ]];then
if [[ -t 1 ]];then
OPT_COLOR=true
else
OPT_COLOR=false
fi
printc_init "$OPT_COLOR"
fi
}
hook_pager(){
SHIFTOPT_HOOKS+=("__shiftopt_hook__pager")
__shiftopt_hook__pager(){
case "$OPT" in
\
--no-pager)shiftval
SCRIPT_PAGER_CMD=''
;;
--paging){
shiftval
case "$OPT_VAL" in
auto):;;
always):;;
never)SCRIPT_PAGER_CMD='';;
*)printc "%{RED}%s: '--paging' expects value of 'auto', 'always', or 'never'%{CLEAR}\n" "batgrep"
exit 1
esac
};;
\
--pager){
shiftval
{
SCRIPT_PAGER_CMD=($OPT_VAL)
PAGER_ARGS=()
}
};;
*)return 1
esac
}
}
hook_version(){
SHIFTOPT_HOOKS+=("__shiftopt_hook__version")
__shiftopt_hook__version(){
if [[ $OPT == "--version" ]];then
printf "%s %s\n\n%s\n%s\n" \
"batgrep" \
"2020.10.04" \
"Copyright (C) 2019-2020 eth-p | MIT License" \
"https://github.com/eth-p/bat-extras"
exit 0
fi
return 1
}
}
term_width(){
local width="$({ stty size 2>/dev/null||echo "22 80";}|cut -d ' ' -f2)"
if [[ $width -ne 0 ]];then
echo "$width"
else
echo "80"
fi
return 0
}
hook_width(){
SHIFTOPT_HOOKS+=("__shiftopt_hook__width")
__shiftopt_hook__width(){
case "$OPT" in
--terminal-width)shiftval
OPT_TERMINAL_WIDTH="$OPT_VAL"
;;
*)return 1
esac
return 0
}
OPT_TERMINAL_WIDTH="$(term_width)"
}
bat_version(){
"bat" --version|cut -d ' ' -f 2
return
}
version_compare(){
local version="$1"
local compare="$3"
if ! [[ $version =~ \.$ ]];then
version="$version."
fi
if ! [[ $compare =~ \.$ ]];then
compare="$compare."
fi
version_compare__recurse "$version" "$2" "$compare"
return $?
}
version_compare__recurse(){
local version="$1"
local operator="$2"
local compare="$3"
local v_major="${version%%.*}"
local c_major="${compare%%.*}"
local v_minor="${version#*.}"
local c_minor="${compare#*.}"
if [[ -z $v_minor && -z $c_minor ]];then
[ "$v_major" $operator "$c_major" ]
return $?
fi
if [[ -z $v_minor ]];then
v_minor="0."
fi
if [[ -z $c_minor ]];then
c_minor="0."
fi
case "$operator" in
-eq)[[ $v_major -ne $c_major ]]&&return 1;;
-ne)[[ $v_major -ne $c_major ]]&&return 0;;
-ge|-gt)[[ $v_major -lt $c_major ]]&&return 1
[[ $v_major -gt $c_major ]]&&return 0
;;
-le|-lt)[[ $v_major -gt $c_major ]]&&return 1
[[ $v_major -lt $c_major ]]&&return 0
esac
version_compare__recurse "$v_minor" "$operator" "$c_minor"
}
hook_color
hook_pager
hook_version
hook_width
RG_ARGS=()
BAT_ARGS=()
PATTERN=""
FILES=()
OPT_CASE_SENSITIVITY=''
OPT_CONTEXT_BEFORE=2
OPT_CONTEXT_AFTER=2
OPT_FOLLOW=true
OPT_SNIP=""
OPT_HIGHLIGHT=true
OPT_SEARCH_PATTERN=false
OPT_FIXED_STRINGS=false
BAT_STYLE="header,numbers"
if version_compare "$(bat_version)" -gt "0.12";then
OPT_SNIP=",snip"
fi
if [[ -n $RIPGREP_CONFIG_PATH && -e $RIPGREP_CONFIG_PATH ]];then
for arg in $(cat "$RIPGREP_CONFIG_PATH");do
case "$arg" in
--context=*)val="${arg:10}"
OPT_CONTEXT_BEFORE="$val"
OPT_CONTEXT_AFTER="$val"
;;
--before-context=*)val="${arg:17}"
OPT_CONTEXT_BEFORE="$val"
;;
--after-context=*)val="${arg:16}"
OPT_CONTEXT_AFTER="$val"
;;
-C*)val="${arg:2}"
OPT_CONTEXT_BEFORE="$val"
OPT_CONTEXT_AFTER="$val"
;;
-B*)val="${arg:2}"
OPT_CONTEXT_BEFORE="$val"
;;
-A*)val="${arg:2}"
OPT_CONTEXT_AFTER="$val"
esac
done
fi
while shiftopt;do
case "$OPT" in
\
-i|--ignore-case)OPT_CASE_SENSITIVITY="--ignore-case";;
-s|--case-sensitive)OPT_CASE_SENSITIVITY="--case-sensitive";;
-S|--smart-case)OPT_CASE_SENSITIVITY="--smart-case";;
-A*|--after-context)shiftval
OPT_CONTEXT_AFTER="$OPT_VAL"
;;
-B*|--before-context)shiftval
OPT_CONTEXT_BEFORE="$OPT_VAL"
;;
-C*|--context)shiftval
OPT_CONTEXT_BEFORE="$OPT_VAL"
OPT_CONTEXT_AFTER="$OPT_VAL"
;;
-F|--fixed-strings)OPT_FIXED_STRINGS=true
RG_ARGS+=("$OPT")
;;
-U|--multiline|\
-P|--pcre2|\
-z|--search-zip|\
-w|--word-regexp|\
--one-file-system|\
--multiline-dotall|\
--ignore|--no-ignore|\
--crlf|--no-crlf|\
--hidden|--no-hidden)RG_ARGS+=("$OPT")
;;
-E|--encoding|\
-g|--glob|\
-t|--type|\
-T|--type-not|\
-m|--max-count|\
--max-depth|\
--iglob|\
--ignore-file)shiftval
RG_ARGS+=("$OPT" "$OPT_VAL")
;;
\
\
\
--no-follow)OPT_FOLLOW=false;;
--no-snip)OPT_SNIP="";;
--no-highlight)OPT_HIGHLIGHT=false;;
-p|--search-pattern)OPT_SEARCH_PATTERN=true;;
--no-search-pattern)OPT_SEARCH_PATTERN=false;;
\
--rg:*){
if [[ ${OPT:5:1} == "-" ]];then
RG_ARGS+=("${OPT:5}")
else
RG_ARGS+=("--${OPT:5}")
fi
if [[ -n $OPT_VAL ]];then
RG_ARGS+=("$OPT_VAL")
fi
};;
\
-*){
printc "%{RED}%s: unknown option '%s'%{CLEAR}\n" "batgrep" "$OPT" 1>&2
exit 1
};;
\
*){
if [ -z "$PATTERN" ];then
PATTERN="$OPT"
else
FILES+=("$OPT")
fi
}
esac
done
if [[ -z $PATTERN ]];then
print_error "no pattern provided"
exit 1
fi
SEP="$(printc "%{DIM}%${OPT_TERMINAL_WIDTH}s%{CLEAR}"|sed "s/ /─/g")"
if [[ -n $OPT_CASE_SENSITIVITY ]];then
RG_ARGS+=("$OPT_CASE_SENSITIVITY")
fi
if "$OPT_FOLLOW";then
RG_ARGS+=("--follow")
fi
if "$OPT_COLOR";then
BAT_ARGS+=("--color=always")
else
BAT_ARGS+=("--color=never")
fi
if [[ $OPT_CONTEXT_BEFORE -eq 0 && $OPT_CONTEXT_AFTER -eq 0 ]];then
OPT_SNIP=""
OPT_HIGHLIGHT=false
fi
if "$OPT_SEARCH_PATTERN";then
if is_pager_less;then
if "$OPT_FIXED_STRINGS";then
SCRIPT_PAGER_ARGS+=(-p $'\x12'"$PATTERN")
else
SCRIPT_PAGER_ARGS+=(-p "$PATTERN")
fi
elif is_pager_disabled;then
print_error "%s %s %s" \
"The -p/--search-pattern option requires a pager, but" \
'the pager was explicitly disabled by $BAT_PAGER or the' \
"--paging option."
exit 1
else
print_error "Unsupported pager '%s' for option -p/--search-pattern" \
"$(pager_name)"
exit 1
fi
fi
main(){
FOUND_FILES=()
FOUND=0
FIRST_PRINT=true
LAST_LR=()
LAST_LH=()
LAST_FILE=''
do_print(){
[[ -z $LAST_FILE ]]&&return 0
"$FIRST_PRINT"&&echo "$SEP"
FIRST_PRINT=false
"bat" "${BAT_ARGS[@]}" \
"${LAST_LR[@]}" \
"${LAST_LH[@]}" \
--style="$BAT_STYLE$OPT_SNIP" \
--paging=never \
--terminal-width="$OPT_TERMINAL_WIDTH" \
"$LAST_FILE"
echo "$SEP"
}
while IFS=':' read -r file line column text;do
((FOUND++))
if [[ $LAST_FILE != "$file" ]];then
do_print
LAST_FILE="$file"
LAST_LR=()
LAST_LH=()
fi
line_start=$((line-OPT_CONTEXT_BEFORE))
line_end=$((line+OPT_CONTEXT_AFTER))
[[ $line_start -gt 0 ]]||line_start=''
LAST_LR+=("--line-range=$line_start:$line_end")
[[ $OPT_HIGHLIGHT == "true" ]]&&LAST_LH+=("--highlight-line=$line")
done < <(rg --with-filename --vimgrep "${RG_ARGS[@]}" --context=0 --no-context-separator --sort path "$PATTERN" "${FILES[@]}")
do_print
if [[ $FOUND -eq 0 ]];then
exit 2
fi
}
pager_exec main
exit $?
| Shell | 4 | JesseVermeulen123/bat | tests/syntax-tests/source/Bash/batgrep.sh | [
"Apache-2.0",
"MIT"
] |
<#import "template.ftl" as layout>
<@layout.registrationLayout displayMessage=true; section>
<#if section = "header">
${kcSanitize(msg("webauthn-error-title"))?no_esc}
<#elseif section = "form">
<script type="text/javascript">
refreshPage = () => {
document.getElementById('isSetRetry').value = 'retry';
document.getElementById('executionValue').value = '${execution}';
document.getElementById('kc-error-credential-form').submit();
}
</script>
<form id="kc-error-credential-form" class="${properties.kcFormClass!}" action="${url.loginAction}"
method="post">
<input type="hidden" id="executionValue" name="authenticationExecution"/>
<input type="hidden" id="isSetRetry" name="isSetRetry"/>
</form>
<#if authenticators??>
<table class="table">
<thead>
<tr>
<th>${kcSanitize(msg("webauthn-available-authenticators"))?no_esc}</th>
</tr>
</thead>
<tbody>
<#list authenticators.authenticators as authenticator>
<tr>
<th>
<span id="kc-webauthn-authenticator">${kcSanitize(authenticator.label)?no_esc}</span>
</th>
</tr>
</#list>
</tbody>
</table>
</#if>
<input tabindex="4" onclick="refreshPage()" type="button"
class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}"
name="try-again" id="kc-try-again" value="${kcSanitize(msg("doTryAgain"))?no_esc}"
/>
<#if isAppInitiatedAction??>
<form action="${url.loginAction}" class="${properties.kcFormClass!}" id="kc-webauthn-settings-form" method="post">
<button type="submit"
class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}"
id="cancelWebAuthnAIA" name="cancel-aia" value="true"/>${msg("doCancel")}
</button>
</form>
</#if>
</#if>
</@layout.registrationLayout> | FreeMarker | 4 | rmartinc/keycloak | themes/src/main/resources/theme/base/login/webauthn-error.ftl | [
"Apache-2.0"
] |
---
title: "Day 14"
date: 2019-04-08
author: kvz
image: "https://uppy.io/images/blog/30daystoliftoff/day14.jpg"
series: 30 Days to Liftoff
seriesSuffix: 'of 30'
---
Today marks the fourteenth day in our '30 Days to Liftoff' blog post challenge, working our way towards **launching Uppy 1.0 on April 25**. It's the beginning of a new week and there is much to be done. The Uppy team is already firing on all cylinders and we also have some developments to share from before the weekend.
<!--more-->
Let's jump right in!
<center><br /><img width="400" src="/images/blog/30daystoliftoff/day14.jpg"><br /></center>
## Done
- [Renée](https://github.com/goto-bus-stop) finished work on [canceling Transloadit Assemblies](https://github.com/transloadit/uppy/pull/1431) when you abort uploads.
- [Artur](https://github.com/arturi) published the [CHANGELOG for 0.30.4](https://github.com/transloadit/uppy/commit/845369f0e56b49ab51d4d01909dfdac6f60b1748), which was a bit more work to figure out now that the whole Transloadit team is piling commits onto `master` :scream: We also completed a few smaller tasks, such as fixing an issue with our build scripts and updating the Companion docs.
## Done for React Native
This is a pretty big one! [Ife](https://github.com/ifedapoolarewaju) and Artur delivered on the bare essentials for React Native. In our local tests, this means we can now successfully pick different files, have their uploads resume where they left off, select a remote file via Companion (for now, only picking from URL is supported) and see the progress reported by it.
There is a basic UI, most of which is encapsulated in the example that we'll publish on our website. We're refraining from building too much UI in our React Native module, as we assume that developers will want to have full control and style everything close to their app. We figured they would care most about seeing a good example and having access to core functionality, such as making mobile uploads more reliable and less draining on batteries and data plans.
While there are still things to be implemented, such as picking files from Instagram, we now know that we have all the Lego bricks required and that they are doing what they're supposed to. Now, it's just a matter of fleshing out those integrations, but we'll have to see whether we can get to that before 1.0. We're already happy about having a fixed idea about the API and a basic working example as our deliverables!
## In Progress
- [Alex](https://github.com/nqst) is working on improving the Uppy design (in the code) in his [`design-facelift` branch](https://github.com/transloadit/uppy/compare/master...nqst:design-facelift).
- [Evgenia](https://github.com/lakesare) is working on improving accessibility together with Alex, who found many issues that we still need to fix in this area.
- Now that the bare essentials of React Native work, Ife is making sure our local work finds a proper place in the tus-js-client (such as React-Native-compatible fingerprinting) while Artur hopes to find the time to tick off a few design goals to make for a better experience testdriving our example. Things like icons for files that are not images and a _Close_ button for the select file screen.
- The whole team will again do a call this afternoon to reassess our roadmap and see where all we stand. Some new tasks were added on [Friday](/blog/2019/04/liftoff-11/), so we'll also have to see about getting those into gear.
That's it for Day 14. Tomorrow, it will be Samuel's turn again to update you on our board and progress. Subscribe via [Twitter](https://twitter.com/uppy_io) or [RSS](https://uppy.io/atom.xml) and don't miss out on [Day 15](/blog/2019/04/liftoff-15/)! :dog:
| Markdown | 0 | profsmallpine/uppy | website/src/_posts/2019-04-liftoff-14.md | [
"MIT"
] |
vespaControllers = angular.module('vespaControllers')
vespaControllers.controller 'module_browserCtrl', ($scope, VespaLogger,
IDEBackend, $timeout, $modal, PositionManager, $q, SockJSService) ->
barHeight = 20
barWidth = 300
duration = 400
root = {}
svg = d3.select("svg.module_browserview").select("g.viewer")
tree = d3.layout.tree()
.nodeSize([0, 20])
$scope.controls =
showModuleSelect: true
collapse: 'collapse-all'
collapseAll = (node) ->
if node.children
node._children = node.children
node.children = null
node._children.forEach collapseAll
if Array.isArray node._children
node._children.forEach collapseAll
openAll = (node) ->
if node._children
node.children = node._children
node._children = null
node.children.forEach openAll
if Array.isArray node.children
node.children.forEach openAll
$scope.collapse = (value) ->
if value == 'collapse-all'
collapseAll(root)
else if value == 'open-all'
openAll(root)
if value and root.name
update(root)
$scope.update_view = () ->
$scope.policy = IDEBackend.current_policy
if not $scope.policy?.modules?
return
modules_root =
name: (if $scope.policy?.id? then $scope.policy.id else "")
children: []
# Group the rules by directory and module
for key, mod of $scope.policy.modules
if not mod.te_file
return
path = mod.te_file.split('/')
modDirectory = path[path.length - 2]
directory = _.find(modules_root.children, {directory: modDirectory})
if directory
module = _.find(directory.children, {module: mod.name})
if module
#module.children.push d
else
directory.children.push {name: mod.name, module: mod.name}
else
child = {name: mod.name, module: mod.name}
modules_root.children.push {name: modDirectory, directory: modDirectory, children: [child]}
modules_root.x0 = 0
modules_root.y0 = 0
update(root = modules_root)
update = (modules_root) ->
nodes = tree.nodes(root)
_.each nodes, (d,i) ->
d.x = i * barHeight
height = 500
d3.select("svg.module_browserview").transition()
.duration(duration)
.attr("height", height)
node = svg.selectAll("g.node")
.data(nodes, (d,i) -> return d.id or (d.id = $scope.policy.id + "-" + i))
nodeEnter = node.enter().append("g")
.attr("class", "node")
.attr("transform", (d) -> return "translate(#{modules_root.y0},#{modules_root.x0})")
.style("opacity", 1e-6)
nodeEnter.append("rect")
.attr("y", -barHeight/2)
.attr("height", barHeight)
.attr("width", barWidth)
.style("fill", color)
.on("click", click)
nodeEnter.append("text")
.attr("dy", 3.5)
.attr("dx", 5.5)
.style("fill", '#333')
.text((d) -> if d.children? then "#{d.name} (#{d.children.length})" else if d._children? then "#{d.name} (#{d._children.length})" else d.name)
nodeEnter.transition()
.duration(duration)
.attr("transform", (d) -> "translate(#{d.y},#{d.x})")
.style("opacity", 1)
node.transition()
.duration(duration)
.attr("transform", (d) -> "translate(#{d.y},#{d.x})")
.style("opacity", 1)
.select("rect")
.style("fill", color)
node.exit().transition()
.duration(duration)
.attr("transform", (d) -> "translate(#{modules_root.y},#{modules_root.x})")
.style("opacity", 1e-6)
.remove()
_.each nodes, (d) ->
d.x0 = d.x
d.y0 = d.y
click = (d) ->
if d.children
d._children = d.children
d.children = null
else
d.children = d._children
d._children = null
update(d)
color = (d) ->
if d._children
return '#3182bd'
else if d.children
return '#c6dbef'
else
return '#fd8d3c'
Set up the viewport scroll
positionMgr = PositionManager("tl.viewport::#{IDEBackend.current_policy._id}",
{a: 0.7454701662063599, b: 0, c: 0, d: 0.7454701662063599, e: 200, f: 50}
)
svgPanZoom.init
selector: '#surface svg'
panEnabled: true
zoomEnabled: true
dragEnabled: false
minZoom: 0.5
maxZoom: 10
onZoom: (scale, transform) ->
positionMgr.update transform
onPanComplete: (coords, transform) ->
positionMgr.update transform
$scope.$watch(
() -> return (positionMgr.data)
,
(newv, oldv) ->
if not newv? or _.keys(newv).length == 0
return
g = svgPanZoom.getSVGViewport($("#surface svg")[0])
svgPanZoom.set_transform(g, newv)
)
IDEBackend.add_hook "policy_load", $scope.update_view
$scope.$on "$destroy", ->
IDEBackend.unhook "policy_load", $scope.update_view
$scope.policy = IDEBackend.current_policy
# If policy already loaded, render it
if $scope.policy?._id
$scope.update_view() | Literate CoffeeScript | 5 | visigoth/V3SPA | src/js/controllers/module_browser.litcoffee | [
"BSD-3-Clause"
] |
unit Helper;
{
Inno Setup
Copyright (C) 1997-2010 Jordan Russell
Portions by Martijn Laan
For conditions of distribution and use, see LICENSE.TXT.
Interface to 64-bit helper
NOTE: These functions are NOT thread-safe. Do not call them from multiple
threads simultaneously.
$jrsoftware: issrc/Projects/Helper.pas,v 1.14 2010/10/20 02:43:26 jr Exp $
}
interface
uses
Windows, SysUtils, Struct;
function GetHelperResourceName: String;
function HelperGrantPermission(const AObjectType: DWORD;
const AObjectName: String; const AEntries: TGrantPermissionEntry;
const AEntryCount: Integer; const AInheritance: DWORD): DWORD;
procedure HelperRegisterTypeLibrary(const AUnregister: Boolean;
Filename: String);
procedure SetHelperExeFilename(const Filename: String);
procedure StopHelper(const DelayAfterStopping: Boolean);
implementation
{x$DEFINE HELPERDEBUG}
uses
Forms, Int64Em, CmnFunc, CmnFunc2, PathFunc, Main, InstFunc, Logging, Msgs,
MsgIDs;
const
HELPER_VERSION = 105;
const
REQUEST_PING = 1;
REQUEST_GRANT_PERMISSION = 2;
REQUEST_REGISTER_SERVER = 3; { no longer used }
REQUEST_REGISTER_TYPE_LIBRARY = 4;
type
TRequestGrantPermissionData = record
ObjectType: DWORD;
EntryCount: DWORD;
Inheritance: DWORD;
ObjectName: array[0..4095] of WideChar;
Entries: array[0..MaxGrantPermissionEntries-1] of TGrantPermissionEntry;
end;
TRequestRegisterServerData = record
Unregister: BOOL;
FailCriticalErrors: BOOL;
Filename: array[0..4095] of WideChar;
Directory: array[0..4095] of WideChar;
end;
TRequestRegisterTypeLibraryData = record
Unregister: BOOL;
Filename: array[0..4095] of WideChar;
end;
TRequestData = record
SequenceNumber: DWORD;
Command: DWORD;
DataSize: DWORD;
case Integer of
0: (Data: array[0..0] of Byte);
1: (GrantPermissionData: TRequestGrantPermissionData);
2: (RegisterServerData: TRequestRegisterServerData);
3: (RegisterTypeLibraryData: TRequestRegisterTypeLibraryData);
end;
TResponseData = record
SequenceNumber: DWORD;
StatusCode: DWORD;
ErrorCode: DWORD;
DataSize: DWORD;
Data: array[0..0] of Byte; { currently, no data is ever returned }
end;
THelper = class
private
FRunning, FNeedsRestarting: Boolean;
FProcessHandle, FPipe: THandle;
FProcessID: DWORD;
FCommandSequenceNumber: DWORD;
FProcessMessagesProc: procedure of object;
FRequest: TRequestData;
FResponse: TResponseData;
procedure Call(const ACommand, ADataSize: DWORD);
procedure InternalCall(const ACommand, ADataSize: DWORD;
const AllowProcessMessages: Boolean);
procedure Start;
public
destructor Destroy; override;
function GrantPermission(const AObjectType: DWORD;
const AObjectName: String; const AEntries: TGrantPermissionEntry;
const AEntryCount: Integer; const AInheritance: DWORD): DWORD;
procedure RegisterTypeLibrary(const AUnregister: Boolean;
Filename: String);
procedure Stop(const DelayAfterStopping: Boolean);
end;
var
HelperMainInstance: THelper;
HelperExeFilename: String;
HelperPipeNameSequence: LongWord;
function GetHelperResourceName: String;
begin
{$R HelperEXEs.res}
case ProcessorArchitecture of
paX64: Result := 'HELPER_EXE_AMD64';
else
Result := '';
end;
end;
procedure SetHelperExeFilename(const Filename: String);
begin
HelperExeFilename := Filename;
end;
procedure StopHelper(const DelayAfterStopping: Boolean);
begin
HelperMainInstance.Stop(DelayAfterStopping);
end;
function HelperGrantPermission(const AObjectType: DWORD;
const AObjectName: String; const AEntries: TGrantPermissionEntry;
const AEntryCount: Integer; const AInheritance: DWORD): DWORD;
begin
Result := HelperMainInstance.GrantPermission(AObjectType, AObjectName,
AEntries, AEntryCount, AInheritance);
end;
procedure HelperRegisterTypeLibrary(const AUnregister: Boolean;
Filename: String);
begin
HelperMainInstance.RegisterTypeLibrary(AUnregister, Filename);
end;
procedure FillWideCharBuffer(var Buf: array of WideChar; const S: String);
{$IFDEF UNICODE}
begin
if High(Buf) <= 0 then
InternalError('FillWideCharBuffer: Invalid Buf');
if Length(S) > High(Buf) then
InternalError('FillWideCharBuffer: String too long');
StrPLCopy(Buf, S, High(Buf));
end;
{$ELSE}
var
SourceLen, DestLen: Integer;
begin
if High(Buf) <= 0 then
InternalError('FillWideCharBuffer: Invalid Buf');
SourceLen := Length(S);
if SourceLen = 0 then
DestLen := 0
else begin
DestLen := MultiByteToWideChar(CP_ACP, 0, PChar(S), SourceLen, Buf, High(Buf));
if DestLen <= 0 then
InternalError('FillWideCharBuffer: MultiByteToWideChar failed');
end;
Buf[DestLen] := #0;
end;
{$ENDIF}
{ THelper }
destructor THelper.Destroy;
begin
Stop(False);
inherited;
end;
procedure THelper.Start;
const
FILE_FLAG_FIRST_PIPE_INSTANCE = $00080000;
InheritableSecurity: TSecurityAttributes = (
nLength: SizeOf(InheritableSecurity); lpSecurityDescriptor: nil;
bInheritHandle: True);
var
PerformanceCount: Integer64;
PipeName: String;
Pipe, RemotePipe: THandle;
Mode: DWORD;
StartupInfo: TStartupInfo;
ProcessInfo: TProcessInformation;
begin
Log('Starting 64-bit helper process.');
{ We don't *have* to check IsWin64 here; the helper *should* run fine without
the new APIs added in 2003 SP1. But let's be consistent and disable 64-bit
functionality across the board when the user is running 64-bit Windows and
IsWin64=False. }
if not IsWin64 then
InternalError('Cannot utilize 64-bit features on this version of Windows');
if HelperExeFilename = '' then
InternalError('64-bit helper EXE wasn''t extracted');
repeat
{ Generate a very unique pipe name }
Inc(HelperPipeNameSequence);
FCommandSequenceNumber := GetTickCount;
if not QueryPerformanceCounter(TLargeInteger(PerformanceCount)) then
GetSystemTimeAsFileTime(TFileTime(PerformanceCount));
PipeName := Format('\\.\pipe\InnoSetup64BitHelper-%.8x-%.8x-%.8x-%.8x%.8x',
[GetCurrentProcessId, HelperPipeNameSequence, FCommandSequenceNumber,
PerformanceCount.Hi, PerformanceCount.Lo]);
{ Create the pipe }
Pipe := CreateNamedPipe(PChar(PipeName),
PIPE_ACCESS_DUPLEX or FILE_FLAG_OVERLAPPED or FILE_FLAG_FIRST_PIPE_INSTANCE,
PIPE_TYPE_MESSAGE or PIPE_READMODE_MESSAGE or PIPE_WAIT,
1, 8192, 8192, 0, nil);
if Pipe <> INVALID_HANDLE_VALUE then
Break;
{ Loop if there's a name clash (ERROR_PIPE_BUSY), otherwise raise error }
if GetLastError <> ERROR_PIPE_BUSY then
Win32ErrorMsg('CreateNamedPipe');
until False;
try
{ Create an inheritable handle to the pipe for the helper to use }
RemotePipe := CreateFile(PChar(PipeName), GENERIC_READ or GENERIC_WRITE,
0, @InheritableSecurity, OPEN_EXISTING, 0, 0);
if RemotePipe = INVALID_HANDLE_VALUE then
Win32ErrorMsg('CreateFile');
try
Mode := PIPE_READMODE_MESSAGE or PIPE_WAIT;
if not SetNamedPipeHandleState(RemotePipe, Mode, nil, nil) then
Win32ErrorMsg('SetNamedPipeHandleState');
FillChar(StartupInfo, SizeOf(StartupInfo), 0);
StartupInfo.cb := SizeOf(StartupInfo);
if not CreateProcess(PChar(HelperExeFilename),
PChar(Format('helper %d 0x%x', [HELPER_VERSION, RemotePipe])), nil,
nil, True, CREATE_DEFAULT_ERROR_MODE or CREATE_NO_WINDOW, nil,
PChar(GetSystemDir), StartupInfo, ProcessInfo) then
Win32ErrorMsg('CreateProcess');
FRunning := True;
FNeedsRestarting := False;
FProcessHandle := ProcessInfo.hProcess;
FProcessID := ProcessInfo.dwProcessId;
FPipe := Pipe;
Pipe := 0; { ensure the 'except' section can't close it now }
CloseHandle(ProcessInfo.hThread);
LogFmt('Helper process PID: %u', [FProcessID]);
finally
{ We don't need a handle to RemotePipe after creating the process }
CloseHandle(RemotePipe);
end;
except
if Pipe <> 0 then
CloseHandle(Pipe);
raise;
end;
end;
procedure THelper.Stop(const DelayAfterStopping: Boolean);
{ Stops the helper process if it's running }
var
ExitCode: DWORD;
begin
if not FRunning then
Exit;
{ Before attempting to stop anything, set FNeedsRestarting to ensure
Call can never access a partially-stopped helper }
FNeedsRestarting := True;
LogFmt('Stopping 64-bit helper process. (PID: %u)', [FProcessID]);
{ Closing our handle to the pipe will cause the helper's blocking ReadFile
call to return False, and the process to exit }
CloseHandle(FPipe);
FPipe := 0;
while WaitForSingleObject(FProcessHandle, 10000) = WAIT_TIMEOUT do begin
{ It should never have to resort to terminating the process, but if the
process for some unknown reason didn't exit in response to our closing
the pipe, it should be safe to kill it since it most likely isn't doing
anything other than waiting for a request. }
Log('Helper isn''t responding; killing it.');
TerminateProcess(FProcessHandle, 1);
end;
if GetExitCodeProcess(FProcessHandle, ExitCode) then begin
if ExitCode = 0 then
Log('Helper process exited.')
else
LogFmt('Helper process exited with failure code: 0x%x', [ExitCode]);
end
else
Log('Helper process exited, but failed to get exit code.');
CloseHandle(FProcessHandle);
FProcessHandle := 0;
FProcessID := 0;
FRunning := False;
{ Give it extra time to fully terminate to ensure that the EXE isn't still
locked on SMP systems when we try to delete it in DeinitSetup.
(Note: I'm not 100% certain this is needed; I don't have an SMP AMD64
system to test on. It didn't seem to be necessary on IA64, but I suspect
that may be because it doesn't execute x86 code in true SMP fashion.)
This also limits the rate at which new helper processes can be spawned,
which is probably a good thing. }
if DelayAfterStopping then
Sleep(250);
end;
procedure THelper.InternalCall(const ACommand, ADataSize: DWORD;
const AllowProcessMessages: Boolean);
var
RequestSize, BytesRead, LastError: DWORD;
OverlappedEvent: THandle;
Res: BOOL;
Overlapped: TOverlapped;
begin
Inc(FCommandSequenceNumber);
{ On entry, only Request.Data needs to be filled }
FRequest.SequenceNumber := FCommandSequenceNumber;
FRequest.Command := ACommand;
FRequest.DataSize := ADataSize;
RequestSize := Cardinal(@TRequestData(nil^).Data) + ADataSize;
try
{$IFDEF HELPERDEBUG}
LogFmt('Helper[%u]: Sending request (size: %u): Seq=%u, Command=%u, DataSize=%u',
[FProcessID, RequestSize, FRequest.SequenceNumber, FRequest.Command,
FRequest.DataSize]);
{$ENDIF}
{ Create event object to use in our Overlapped structure. (Technically,
I'm not sure we need the event object -- we could just wait on the pipe
object instead, however the SDK docs discourage this.) }
OverlappedEvent := CreateEvent(nil, True, False, nil);
if OverlappedEvent = 0 then
Win32ErrorMsg('CreateEvent');
try
FillChar(Overlapped, SizeOf(Overlapped), 0);
Overlapped.hEvent := OverlappedEvent;
if not TransactNamedPipe(FPipe, @FRequest, RequestSize, @FResponse,
SizeOf(FResponse), BytesRead, @Overlapped) then begin
if GetLastError <> ERROR_IO_PENDING then
Win32ErrorMsg('TransactNamedPipe');
{ Operation is pending; wait for it to complete.
(Note: Waiting is never optional. The system will modify Overlapped
when the operation completes; if we were to return early for whatever
reason, the stack would get corrupted.) }
try
if AllowProcessMessages and Assigned(FProcessMessagesProc) then begin
repeat
{ Process any pending messages first because MsgWaitForMultipleObjects
(called below) only returns when *new* messages arrive }
FProcessMessagesProc;
until MsgWaitForMultipleObjects(1, OverlappedEvent, False,
INFINITE, QS_ALLINPUT) <> WAIT_OBJECT_0+1;
end;
finally
{ Call GetOverlappedResult with bWait=True, even if exception occurred }
Res := GetOverlappedResult(FPipe, Overlapped, BytesRead, True);
LastError := GetLastError;
end;
if not Res then
Win32ErrorMsgEx('TransactNamedPipe/GetOverlappedResult', LastError);
end;
finally
CloseHandle(OverlappedEvent);
end;
{$IFDEF HELPERDEBUG}
LogFmt('Helper[%u]: Got response (size: %u): Seq=%u, StatusCode=%u, ErrorCode=%u, DataSize=%u',
[FProcessID, BytesRead, FResponse.SequenceNumber, FResponse.StatusCode,
FResponse.ErrorCode, FResponse.DataSize]);
{$ENDIF}
if (Cardinal(BytesRead) < Cardinal(@TResponseData(nil^).Data)) or
(FResponse.DataSize <> Cardinal(BytesRead) - Cardinal(@TResponseData(nil^).Data)) then
InternalError('Helper: Response message has wrong size');
if FResponse.SequenceNumber <> FRequest.SequenceNumber then
InternalError('Helper: Wrong sequence number');
if FResponse.StatusCode = 0 then
InternalError('Helper: Command did not execute');
except
{ If an exception occurred, then the helper may have crashed or is in some
weird state. Attempt to stop it now, and also set FNeedsRestarting
to ensure it's restarted on the next call in case our stop attempt here
fails for some reason. }
FNeedsRestarting := True;
Log('Exception while communicating with helper:' + SNewLine + GetExceptMessage);
Stop(True);
raise;
end;
end;
procedure THelper.Call(const ACommand, ADataSize: DWORD);
begin
{ Start/restart helper if needed }
if not FRunning or FNeedsRestarting then begin
Stop(True);
Start;
end
else begin
{ It is running -- or so we think. Before sending the specified request,
send a ping request to verify that it's still alive. It may have somehow
died since we last talked to it (unlikely, though). }
try
InternalCall(REQUEST_PING, 0, False);
except
{ Don't propagate any exception; just log it and restart the helper }
Log('Ping failed; helper seems to have died.');
Stop(True);
Start;
end;
end;
InternalCall(ACommand, ADataSize, True);
end;
{ High-level interface functions }
function THelper.GrantPermission(const AObjectType: DWORD;
const AObjectName: String; const AEntries: TGrantPermissionEntry;
const AEntryCount: Integer; const AInheritance: DWORD): DWORD;
begin
if (AEntryCount < 1) or
(AEntryCount > SizeOf(FRequest.GrantPermissionData.Entries) div SizeOf(FRequest.GrantPermissionData.Entries[0])) then
InternalError('HelperGrantPermission: Invalid entry count');
FRequest.GrantPermissionData.ObjectType := AObjectType;
FRequest.GrantPermissionData.EntryCount := AEntryCount;
FRequest.GrantPermissionData.Inheritance := AInheritance;
FillWideCharBuffer(FRequest.GrantPermissionData.ObjectName, AObjectName);
Move(AEntries, FRequest.GrantPermissionData.Entries,
AEntryCount * SizeOf(FRequest.GrantPermissionData.Entries[0]));
Call(REQUEST_GRANT_PERMISSION, SizeOf(FRequest.GrantPermissionData));
Result := FResponse.ErrorCode;
end;
procedure THelper.RegisterTypeLibrary(const AUnregister: Boolean;
Filename: String);
{ Registers or unregisters the specified type library inside the helper.
Raises an exception on failure. }
begin
Filename := PathExpand(Filename);
FRequest.RegisterTypeLibraryData.Unregister := AUnregister;
FillWideCharBuffer(FRequest.RegisterTypeLibraryData.Filename, Filename);
{ Stop the helper before and after the call to be 100% sure the state of the
helper is clean prior to and after registering. Can't trust foreign code. }
Stop(False);
Call(REQUEST_REGISTER_TYPE_LIBRARY, SizeOf(FRequest.RegisterTypeLibraryData));
Stop(False);
case FResponse.StatusCode of
1: begin
{ The LoadTypeLib call failed }
RaiseOleError('LoadTypeLib', FResponse.ErrorCode);
end;
2: begin
{ The call to RegisterTypeLib was made; possibly succeeded }
if (FResponse.ErrorCode <> S_OK) or AUnregister then
RaiseOleError('RegisterTypeLib', FResponse.ErrorCode);
end;
3: begin
{ The ITypeLib::GetLibAttr call failed }
RaiseOleError('ITypeLib::GetLibAttr', FResponse.ErrorCode);
end;
4: begin
{ The call to UnRegisterTypeLib was made; possibly succeeded }
if (FResponse.ErrorCode <> S_OK) or not AUnregister then
RaiseOleError('UnRegisterTypeLib', FResponse.ErrorCode);
end;
else
InternalError('HelperRegisterTypeLibrary: StatusCode invalid');
end;
end;
initialization
HelperMainInstance := THelper.Create;
finalization
FreeAndNil(HelperMainInstance);
end.
| Pascal | 4 | Patriccollu/issrc | Projects/Helper.pas | [
"FSFAP"
] |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProductVersion>3.5</ProductVersion>
<ProjectGuid>{fcf05218-9631-4c24-a6b7-8c78434cad94}</ProjectGuid>
<OutputType>Library</OutputType>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<AllowLegacyCreate>False</AllowLegacyCreate>
<Name>sugar.cooper.android.test</Name>
<RootNamespace>sugar.cooper.android.test</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<Optimize>False</Optimize>
<OutputPath>bin\Debug\Android\</OutputPath>
<DefineConstants>DEBUG;TRACE;Android;</DefineConstants>
<CaptureConsoleOutput>False</CaptureConsoleOutput>
<StartMode>Project</StartMode>
<RegisterForComInterop>False</RegisterForComInterop>
<CpuType>anycpu</CpuType>
<RuntimeVersion>v25</RuntimeVersion>
<XmlDoc>False</XmlDoc>
<XmlDocWarningLevel>WarningOnPublicMembers</XmlDocWarningLevel>
<EnableUnmanagedDebugging>False</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\Android\</OutputPath>
<GenerateDebugInfo>False</GenerateDebugInfo>
<EnableAsserts>False</EnableAsserts>
<CaptureConsoleOutput>False</CaptureConsoleOutput>
<StartMode>Project</StartMode>
<RegisterForComInterop>False</RegisterForComInterop>
<CpuType>anycpu</CpuType>
<RuntimeVersion>v25</RuntimeVersion>
<XmlDoc>False</XmlDoc>
<XmlDocWarningLevel>WarningOnPublicMembers</XmlDocWarningLevel>
<EnableUnmanagedDebugging>False</EnableUnmanagedDebugging>
<DefineConstants>Android;</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Folder Include="Main\" />
<Folder Include="Properties\" />
<Folder Include="Main\Android\" />
<Folder Include="res\" />
<Folder Include="res\drawable-hdpi\" />
<Folder Include="res\drawable-ldpi\" />
<Folder Include="res\drawable-mdpi\" />
<Folder Include="res\drawable-xhdpi\" />
<Folder Include="res\values\" />
<Folder Include="res\layout\" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="res\values\strings.android-xml">
<SubType>Content</SubType>
</AndroidResource>
<AndroidResource Include="res\layout\main.layout-xml">
<SubType>Content</SubType>
</AndroidResource>
<None Include="res\drawable-hdpi\icon.png">
<SubType>Content</SubType>
</None>
<None Include="res\drawable-mdpi\icon.png">
<SubType>Content</SubType>
</None>
<None Include="res\drawable-ldpi\icon.png">
<SubType>Content</SubType>
</None>
<None Include="res\drawable-xhdpi\icon.png">
<SubType>Content</SubType>
</None>
</ItemGroup>
<ItemGroup>
<AndroidManifest Include="Properties\AndroidManifest.android-xml" />
</ItemGroup>
<ItemGroup>
<Reference Include="android.jar" />
<Reference Include="com.remobjects.elements.rtl.jar">
<Private>True</Private>
</Reference>
<Reference Include="RemObjects.Elements.EUnit.jar">
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Main\Android\MainActivity.pas" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Sugar.Data\Sugar.Data.Cooper.Android.oxygene">
<Name>Sugar.Data.Cooper.Android</Name>
<Project>{d5492a3d-13b2-4ef5-8835-81bc392b5a74}</Project>
<Private>True</Private>
<HintPath>..\Sugar.Data\bin\Android\sugar.data.jar</HintPath>
</ProjectReference>
<ProjectReference Include="..\Sugar\Sugar.Cooper.Android.oxygene">
<Name>Sugar.Cooper.Android</Name>
<Project>{8dac177a-64eb-4175-ac9c-e6b121b6f34b}</Project>
<Private>True</Private>
<HintPath>..\Sugar\bin\Android\sugar.jar</HintPath>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\RemObjects Software\Oxygene\RemObjects.Oxygene.Cooper.Android.targets" />
<PropertyGroup>
<PreBuildEvent />
</PropertyGroup>
<Import Project="..\Sugar.Tests\Sugar.Shared.Test.projitems" Label="Shared" />
</Project> | Oxygene | 3 | mosh/sugar | Sugar.Tests/Sugar.Cooper.Android.Test.oxygene | [
"BSD-3-Clause"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Mvc\Model\Query;
use Phalcon\Messages\MessageInterface;
use Phalcon\Mvc\ModelInterface;
/**
* Phalcon\Mvc\Model\Query\StatusInterface
*
* Interface for Phalcon\Mvc\Model\Query\Status
*/
interface StatusInterface
{
/**
* Returns the messages produced by an operation failed
*/
public function getMessages() -> <MessageInterface[]>;
/**
* Returns the model which executed the action
*/
public function getModel() -> <ModelInterface>;
/**
* Allows to check if the executed operation was successful
*/
public function success() -> bool;
}
| Zephir | 4 | tidytrax/cphalcon | phalcon/Mvc/Model/Query/StatusInterface.zep | [
"BSD-3-Clause"
] |
concrete LogicEng of Logic = open
SyntaxEng, (P = ParadigmsEng), SymbolicEng, Prelude in {
lincat
Stm = Text ;
Prop = {pos,neg : S ; isAtom : Bool} ;
Atom = Cl ;
Ind = NP ;
Dom = CN ;
Var = NP ;
[Prop] = ListS ;
[Var] = NP ;
lin
SProp p = mkText p.pos ;
And ps = complexProp (mkS and_Conj ps) ;
Or ps = complexProp (mkS or_Conj ps) ;
If A B = complexProp (mkS if_then_Conj (mkListS A.pos B.pos)) ;
Not A = complexProp A.neg ;
All xs A B = complexProp (mkS (mkAdv for_Prep
(mkNP all_Predet (mkNP a_Quant plNum (mkCN A xs)))) B.pos) ;
Exist xs A B = complexProp (mkS (mkAdv for_Prep
(mkNP somePl_Det (mkCN A xs))) B.pos) ;
PAtom p =
{pos = mkS p ; neg = mkS negativePol p ; isAtom = True} ;
IVar x = x ;
VString s = symb s ;
BaseProp A B = mkListS A.pos B.pos ;
ConsProp A As = mkListS A.pos As ;
BaseVar x = x ;
ConsVar x xs = mkNP and_Conj (mkListNP x xs) ;
oper
complexProp : S -> {pos,neg : S ; isAtom : Bool} = \s -> {
pos = s ;
neg = negS s ;
isAtom = False
} ;
negS : S -> S = \s -> mkS negativePol (mkCl (mkNP it_Pron)
(mkNP the_Quant (mkCN (mkCN (P.mkN "case")) s))) ;
if_Then_Conj : Conj = P.mkConj "if" "then" ;
}
| Grammatical Framework | 4 | TristanKoh/gf-core | gf-book/examples/chapter8/LogicEng.gf | [
"BSD-3-Clause"
] |
#tag Class
Protected Class AVMetadataObject
Inherits NSObject
#tag Method, Flags = &h21
Private Shared Function ClassRef() As Ptr
static ref as ptr = NSClassFromString("AVMetadataObject")
return ref
End Function
#tag EndMethod
#tag ComputedProperty, Flags = &h0
#tag Getter
Get
#if Target32Bit
declare function bounds_ lib AVFoundationLib selector "bounds" (obj_id as ptr) as NSRect32
#elseif Target64Bit
declare function bounds_ lib AVFoundationLib selector "bounds" (obj_id as ptr) as NSRect64
#Endif
Return bounds_(self)
End Get
#tag EndGetter
bounds As NSRect
#tag EndComputedProperty
#tag ComputedProperty, Flags = &h0
#tag Getter
Get
declare function duration_ lib AVFoundationLib selector "duration" (obj_id as ptr) as CMTime
Return (duration_(self))
End Get
#tag EndGetter
duration As CMTime
#tag EndComputedProperty
#tag ComputedProperty, Flags = &h0
#tag Getter
Get
declare function time_ lib AVFoundationLib selector "time" (obj_id as ptr) as CMTime
Return time_(self)
End Get
#tag EndGetter
time As CMTime
#tag EndComputedProperty
#tag ComputedProperty, Flags = &h0
#tag Getter
Get
declare function type_ lib AVFoundationLib selector "type" (obj_id as ptr) as CFStringRef
Return type_(self)
End Get
#tag EndGetter
type As Text
#tag EndComputedProperty
#tag ViewBehavior
#tag ViewProperty
Name="Index"
Visible=true
Group="ID"
InitialValue="-2147483648"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Left"
Visible=true
Group="Position"
InitialValue="0"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Name"
Visible=true
Group="ID"
InitialValue=""
Type="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Super"
Visible=true
Group="ID"
InitialValue=""
Type="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Top"
Visible=true
Group="Position"
InitialValue="0"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="type"
Visible=false
Group="Behavior"
InitialValue=""
Type="Text"
EditorType=""
#tag EndViewProperty
#tag EndViewBehavior
End Class
#tag EndClass
| Xojo | 3 | kingj5/iOSKit | Modules/AVFoundation/AVMetadataObject.xojo_code | [
"MIT"
] |
SymbolScope = require '../lib/symbolScope'.SymbolScope
require 'chai'.should()
describe 'symbolScope'
context 'when scope A has sub scope B'
a = nil
b = nil
beforeEach
a := @new SymbolScope()
b := a.subScope()
context 'definition of X in A'
beforeEach
a.define 'x'
it 'exists in scope A'
a.is 'x' defined.should.be.true
it 'exists in scope B'
b.is 'x' defined.should.be.true
it 'defined in scope A'
a.is 'x' definedInThisScope.should.be.true
it 'not defined in scope B'
b.is 'x' definedInThisScope.should.be.false
describe 'tags'
it 'can define a tag and look it up in same scope'
a.define 'x' withTag 'onFulfilled'
a.findTag 'onFulfilled'.should.equal 'x'
it 'can define a tag and look it up in subscope'
a.define 'x' withTag 'onFulfilled'
b.findTag 'onFulfilled'.should.equal 'x'
describe 'generated variables'
it 'generates unique variables'
b.generateVariable 'a'.should.not.equal (b.generateVariable 'a')
it 'generates variables that are different to user variables'
b.generateVariable 'a'.should.not.equal 'a'
| PogoScript | 4 | featurist/pogoscript | test/symbolScopeSpec.pogo | [
"BSD-2-Clause"
] |
{
Inno Setup Preprocessor
Copyright (C) 2001-2002 Alex Yackimoff
Inno Setup
Copyright (C) 1997-2020 Jordan Russell
Portions by Martijn Laan
For conditions of distribution and use, see LICENSE.TXT.
}
library ISPP;
{$IMAGEBASE $01800000}
{$SETPEOSVERSION 6.0}
{$SETPESUBSYSVERSION 6.0}
{$WEAKLINKRTTI ON}
{$I ..\Version.inc}
uses
SysUtils,
Windows,
Classes,
CompPreprocInt in '..\CompPreprocInt.pas',
IsppPreprocess in 'IsppPreprocess.pas',
IsppPreprocessor in 'IsppPreprocessor.pas',
IsppFuncs in 'IsppFuncs.pas',
IsppVarUtils in 'IsppVarUtils.pas',
IsppConsts in 'IsppConsts.pas',
IsppStack in 'IsppStack.pas',
IsppIntf in 'IsppIntf.pas',
IsppParser in 'IsppParser.pas',
IsppIdentMan in 'IsppIdentMan.pas',
IsppSessions in 'IsppSessions.pas',
CTokenizer in 'CTokenizer.pas',
IsppBase in 'IsppBase.pas',
PathFunc in '..\..\Components\PathFunc.pas',
CmnFunc2 in '..\CmnFunc2.pas',
FileClass in '..\FileClass.pas',
Int64Em in '..\Int64Em.pas',
MD5 in '..\MD5.pas',
SHA1 in '..\SHA1.pas',
Struct in '..\Struct.pas';
{$R *.RES}
exports
ISPreprocessScript name 'ISPreprocessScriptW';
end.
| Pascal | 2 | Patriccollu/issrc | Projects/ISPP/ISPP.dpr | [
"FSFAP"
] |
import "ecere"
import "HTMLView"
import "ewd"
#define UTF8_IS_FIRST(x) (__extension__({ byte b = x; (!(b) || !((b) & 0x80) || (b) & 0x40); }))
#define UTF8_NUM_BYTES(x) (__extension__({ byte b = x; (b & 0x80 && b & 0x40) ? ((b & 0x20) ? ((b & 0x10) ? 4 : 3) : 2) : 1; }))
class RichEdit : HTMLView
{
hasVertScroll = true;
hasHorzScroll = true;
bool readOnly, edit, selecting;
int caretX, caretY;
edit = true;
bool loadHTML(File f, const String path)
{
bool result = true;
Block fontBlock;
#if 0 //defined(_DEBUG)
{
ConsoleFile con { };
char fn[100];
sprintf(fn, "File://%p", con);
f.CopyTo(fn);
delete con;
}
#endif
f.Seek(0, start);
textBlock = null;
OpenFile(f, path);
fontBlock = (Block)html.body.subBlocks.first;
if(fontBlock && fontBlock.type == TEXT)
textBlock = fontBlock, fontBlock = null;
if(!fontBlock)
fontBlock = html.body;
if(!textBlock)
textBlock = fontBlock.subBlocks.first;
if(!textBlock)
{
textBlock = { type = TEXT, parent = fontBlock, font = fontBlock.font, text = CopyString("") };
fontBlock.subBlocks.Insert(null, textBlock);
selBlock = textBlock;
}
selBlock = textBlock;
curPosition = selPosition = 0;
ComputeMinSizes();
ComputeSizes();
positionCaret(true);
Update(null);
return result;
}
bool loadDocument(File f, const String path)
{
bool result = false;
TempFile out { };
ewd2html(f, out, false);
result = loadHTML(out, path);
delete out;
return result;
}
bool saveDocument(File f)
{
return writeEWD(html, f);
}
bool OnCreate()
{
TempFile f { };
Block fontBlock, newBlock;
f.PrintLn(
"<html><body><font size='3'></font></body></html>"
);
f.Seek(0, start);
OpenFile(f, null);
delete f;
fontBlock = html.body.subBlocks.first;
newBlock = { type = TEXT, parent = fontBlock, font = fontBlock.font, text = CopyString("") };
fontBlock.subBlocks.Insert(null, newBlock);
textBlock = newBlock;
selBlock = textBlock;
return HTMLView::OnCreate();
}
bool OnLeftButtonDown(int x, int y, Modifiers mods)
{
bool result = HTMLView::OnLeftButtonDown(x, y, mods);
if(edit && textBlock)
{
Block b = null;
int c = 0;
if(PickHTML(x, y, &b, &c))
{
textBlock = b;
curPosition = c;
selBlock = textBlock;
selPosition = curPosition;
positionCaret(true);
selecting = true;
Update(null);
Capture();
}
}
return result;
}
bool OnLeftButtonUp(int x, int y, Modifiers mods)
{
if(selecting)
{
ReleaseCapture();
selecting = false;
}
return true;
}
bool OnMouseMove(int x, int y, Modifiers mods)
{
if(edit && selecting)
{
Block b = null;
int c = 0;
if(PickHTML(x, y, &b, &c))
{
textBlock = b;
curPosition = c;
}
positionCaret(true);
Update(null);
}
return HTMLView::OnMouseMove(x, y, mods);
}
bool OnLeftDoubleClick(int mx, int my, Modifiers mods)
{
if(edit && textBlock)
{
int c;
int start = -1;
int numBytes;
PickHTML(mx, my, &textBlock, &curPosition);
selPosition = curPosition;
selBlock = textBlock;
// TODO: Word spanning multiple formatting...
for(c = curPosition; c >= 0; c--)
{
unichar ch;
while(c > 0 && !UTF8_IS_FIRST(textBlock.text[c])) c--;
ch = UTF8GetChar(textBlock.text + c, &numBytes);
if(!CharMatchCategories(ch, letters|numbers|marks|connector))
break;
start = c;
}
if(start != -1)
{
for(c = start; c < textBlock.textLen; c += numBytes)
{
unichar ch = UTF8GetChar(textBlock.text + c, &numBytes);
if(!CharMatchCategories(ch, letters|numbers|marks|connector))
break;
}
selPosition = start;
curPosition = c;
positionCaret(true);
Update(null);
return false;
}
}
return true;
}
bool OnOpen(char * href)
{
return true;
}
bool sameFont(Block a, Block b)
{
if(!a || !b) return false;
while(a && a.type != FONT && a.parent)
a = a.parent;
while(b && b.type != FONT && b.parent)
b = b.parent;
return a.attribs == b.attribs &&
a.font.size == b.font.size &&
a.textColor == b.textColor &&
!strcmpi(a.font.face, b.font.face);
}
void deleteSelection()
{
if(textBlock != selBlock || curPosition != selPosition)
{
if(textBlock == selBlock)
{
// Within same block
int start = Min(curPosition, selPosition);
int end = Max(curPosition, selPosition);
memmove(textBlock.text + start, textBlock.text + end, textBlock.textLen - end);
textBlock.textLen -= end-start;
textBlock.text = renew textBlock.text char[textBlock.textLen + 1];
curPosition = start;
selPosition = start;
}
else
{
int startSel, endSel;
Block startSelBlock = null, endSelBlock = null, b;
bool keepTwoBlocks = false;
NormalizeSelection(&startSelBlock, &startSel, &endSelBlock, &endSel);
if(startSelBlock.type == TEXT && endSelBlock.type == TEXT && sameFont(startSelBlock, endSelBlock))
{
// Merge the text
startSelBlock.text = renew startSelBlock.text char[startSel + endSelBlock.textLen - endSel + 1];
memcpy(startSelBlock.text + startSel, endSelBlock.text + endSel, endSelBlock.textLen - endSel + 1);
startSelBlock.textLen = startSel + endSelBlock.textLen - endSel;
}
else
{
// Keep Two Blocks
keepTwoBlocks = true;
startSelBlock.text = renew startSelBlock.text char[startSel + 1];
startSelBlock.textLen = startSel;
memmove(endSelBlock.text, endSelBlock.text + endSel, endSelBlock.textLen - endSel + 1);
endSelBlock.text = renew endSelBlock.text char[endSelBlock.textLen - endSel + 1];
endSelBlock.textLen = endSelBlock.textLen - endSel;
}
b = startSelBlock;
do
{
b = GetNextBlock(b);
} while(b && b.type != TEXT && b.type != BR);
while(b)
{
bool isEnd = b == endSelBlock;
Block parent, next = b;
if(isEnd && keepTwoBlocks) break;
do
{
next = GetNextBlock(next);
} while(next && (next.type != TEXT && next.type != BR));
parent = b.parent;
parent.subBlocks.Remove(b);
delete b;
while(parent && !parent.subBlocks.count)
{
Block p = parent.parent;
p.subBlocks.Remove(parent);
delete parent;
parent = p;
}
if(isEnd)
break;
b = next;
}
textBlock = startSelBlock;
selBlock = startSelBlock;
curPosition = startSel;
selPosition = startSel;
}
ComputeMinSizes();
ComputeSizes();
positionCaret(true);
Update(null);
}
}
String getSelectionString()
{
String selection = null;
if(textBlock == selBlock)
{
// Within same block
int start = Min(curPosition, selPosition);
int end = Max(curPosition, selPosition);
int len = end - start;
selection = new char[len + 1];
memcpy(selection, textBlock.text + start, len);
selection[len] = 0;
}
else
{
int startSel, endSel;
Block startSelBlock = null, endSelBlock = null, b;
int totalLen = 0;
NormalizeSelection(&startSelBlock, &startSel, &endSelBlock, &endSel);
// Compute length
for(b = startSelBlock; b; b = GetNextBlock(b))
{
int start = (b == startSelBlock) ? startSel : 0;
int end = (b == endSelBlock) ? endSel : b.textLen;
int len = end - start;
totalLen += len;
if(b == endSelBlock)
break;
else if(b.type == BR)
totalLen++;
}
selection = new char[totalLen + 1];
totalLen = 0;
for(b = startSelBlock; b; b = GetNextBlock(b))
{
int start = (b == startSelBlock) ? startSel : 0;
int end = (b == endSelBlock) ? endSel : b.textLen;
int len = end - start;
memcpy(selection + totalLen, b.text + start, len);
totalLen += len;
if(b == endSelBlock)
break;
else if(b.type == BR)
selection[totalLen++] = '\n';
}
selection[totalLen] = 0;
}
return selection;
}
void copySelection()
{
String s = getSelectionString();
if(s)
{
int len = strlen(s);
ClipBoard cb { };
if(cb.Allocate(len + 1))
{
memcpy(cb.text, s, len + 1);
cb.Save();
}
delete cb;
delete s;
}
}
bool OnKeyDown(Key key, unichar ch)
{
if(edit)
{
switch(key)
{
case escape:
OnLeftButtonDown(0,0,0);
return false;
case Key { end, shift = true }:
case end:
curPosition = textBlock.textLen;
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
positionCaret(true);
Update(null);
break;
case Key { home, shift = true }:
case home:
curPosition = 0;
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
positionCaret(true);
Update(null);
break;
case Key { home, ctrl = true, shift = true }:
case ctrlHome:
curPosition = 0;
while(textBlock.prev)
textBlock = textBlock.prev.prev;
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
positionCaret(true);
Update(null);
return false;
case Key { end, ctrl = true, shift = true }:
case ctrlEnd:
while(textBlock.next && textBlock.next.next)
textBlock = textBlock.next.next;
curPosition = textBlock.textLen;
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
positionCaret(true);
Update(null);
return false;
}
}
else
return HTMLView::OnKeyDown(key, ch);
return true;
}
bool OnKeyHit(Key key, unichar ch)
{
if(edit)
{
switch(key)
{
case Key { up, shift = true }:
case up:
{
if(caretY == textBlock.startY)
{
Block block = textBlock;
bool passedBR = false;
while(true)
{
if(block.subBlocks.last)
block = block.subBlocks.last;
else if(block.prev)
block = block.prev;
else
{
block = block.parent;
while(block && !block.prev) block = block.parent;
if(block) block = block.prev;
}
if(block && block.type == BR)
passedBR = true;
if(!block || (passedBR && block.type == TEXT))
break;
}
if(passedBR)
{
textBlock = block;
curPosition = Min(curPosition, textBlock.textLen);
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
Update(null);
positionCaret(false);
caretY = MAXINT;
}
else
return false;
}
{
int th = 0;
int textPos = 0;
int sx = textBlock.startX, sy = textBlock.startY;
char * text = textBlock.text;
int maxW;
Block block = textBlock;
while(block && block.type != TD) block = block.parent;
if(block)
{
Block table = block;
while(table && table.type != TABLE) table = table.parent;
if(table)
maxW = block.w - 2* table.cellPadding;
else
maxW = clientSize.w - 10 - sx;
}
else
maxW = clientSize.w - 10 - sx;
display.FontExtent(textBlock.font.font, " ", 1, null, &th);
do
{
int startPos = textPos;
int width = 0;
int x = 0;
bool lineComplete = false;
for(; textPos<textBlock.textLen && !lineComplete;)
{
int w;
int len;
char * nextSpace = strchr(text + textPos, ' ');
if(nextSpace)
len = (nextSpace - (text + textPos)) + 1;
else
len = textBlock.textLen - textPos;
display.FontExtent(textBlock.font.font, text + textPos, len, &w, &th);
if(x + width + w > maxW && x > 0)
{
lineComplete = true;
break;
}
textPos += len;
width += w;
if(nextSpace)
{
x += width;
width = 0;
}
if(textPos == textBlock.textLen || (sy == caretY - th && caretX <= x + width + sx))
{
x += width;
curPosition = textPos;
while(curPosition > 0 && x + sx > caretX && textPos > startPos)
{
int len;
while(curPosition > 0 && !UTF8_IS_FIRST(text[--curPosition]));
len = curPosition - startPos;
display.FontExtent(textBlock.font.font, text + startPos, len, &x, null);
}
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
Update(null);
positionCaret(false);
return false;
}
}
if(sy == caretY - th || textPos == textBlock.textLen)
{
if(textPos != textBlock.textLen)
{
int c = textPos - 1;
while(c > 0 && text[c] == ' ') c--;
curPosition = c + 1;
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
Update(null);
}
else
{
curPosition = textBlock.textLen;
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
Update(null);
}
positionCaret(false);
return false;
}
sy += th;
sx = textBlock.startX;
} while(textPos < textBlock.textLen);
return false;
}
return false;
}
case Key { down, shift = true }:
case down:
{
int th = 0;
int textPos = 0;
int sx = textBlock.startX, sy = textBlock.startY;
char * text = textBlock.text;
int maxW;
Block block = textBlock;
while(block && block.type != TD) block = block.parent;
if(block)
{
Block table = block;
while(table && table.type != TABLE) table = table.parent;
if(table)
maxW = block.w - 2* table.cellPadding;
else
maxW = clientSize.w - 10 - sx;
}
else
maxW = clientSize.w - 10 - sx;
display.FontExtent(textBlock.font.font, " ", 1, null, &th);
while(!textPos || textPos < textBlock.textLen)
{
int startPos = textPos;
int width = 0;
int x = 0;
bool lineComplete = false;
for(; (textPos < textBlock.textLen) && !lineComplete;)
{
int w;
int len;
char * nextSpace = strchr(text + textPos, ' ');
if(nextSpace)
len = (nextSpace - (text + textPos)) + 1;
else
len = textBlock.textLen - textPos;
display.FontExtent(textBlock.font.font, text + textPos, len, &w, &th);
if(x + width + w > maxW && x > 0)
{
lineComplete = true;
break;
}
textPos += len;
width += w;
if(nextSpace)
{
x += width;
width = 0;
}
if(sy > caretY && (textPos == textBlock.textLen || caretX <= x + width + sx))
{
curPosition = textPos;
x += width;
while(curPosition > 0 && x + sx > caretX && textPos > startPos)
{
int len;
while(curPosition > 0 && !UTF8_IS_FIRST(text[--curPosition]));
len = curPosition - startPos;
display.FontExtent(textBlock.font.font, text + startPos, len, &x, null);
}
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
Update(null);
positionCaret(false);
return false;
}
}
if(sy > caretY)
{
curPosition = textBlock.textLen;
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
Update(null);
positionCaret(false);
return false;
}
else if(textPos == textBlock.textLen && textBlock.next && textBlock.next.next)
{
startPos = 0;
textPos = 0;
textBlock = textBlock.next.next;
sy = textBlock.startY;
sx = textBlock.startX;
text = textBlock.text;
}
else
{
sy += th;
sx = textBlock.startX;
}
}
/*if(textBlock.next && textBlock.next.next)
{
textBlock = textBlock.next.next;
selPosition = curPosition = Min(curPosition, textBlock.textLen);
selBlock = textBlock;
positionCaret(false);
}*/
break;
}
case Key { right, shift = true, ctrl = true }:
case ctrlRight:
{
bool foundAlpha = false;
bool found = false;
Block block = textBlock, lastBlock = null;
int lastC = 0;
bool passedBR = false;
while(block)
{
int start = (block == textBlock) ? curPosition : 0;
int c;
for(c = start; c < block.textLen; c++)
{
char ch = block.text[c];
bool isAlUnder = CharMatchCategories(ch, letters|numbers|marks|connector);
if(key.shift ? isAlUnder : !isAlUnder)
{
foundAlpha = true;
lastC = c;
lastBlock = block;
}
else if(foundAlpha)
{
found = true;
if(!key.shift)
{
selPosition = curPosition = c;
selBlock = textBlock = block;
Update(null);
positionCaret(true);
}
break;
}
}
// No next word found,
if(!found && (/*c != curPosition || */passedBR)) //block != textBlock))
{
found = true;
lastBlock = block;
lastC = block.textLen-1;
if(key.shift)
break;
else
{
selPosition = curPosition = block.textLen;
selBlock = textBlock = block;
Update(null);
positionCaret(true);
}
}
if(found) break;
if(!key.shift && start < block.textLen)
foundAlpha = true;
while(true)
{
if(block.subBlocks.first)
block = block.subBlocks.first;
else if(block.next)
block = block.next;
else
{
block = block.parent;
while(block && !block.next) block = block.parent;
if(block) block = block.next;
}
if(block && block.type == BR)
passedBR = true;
if(!block || block.type == TEXT)
break;
}
if(!block && !found && lastBlock)
{
curPosition = lastC+1;
textBlock = lastBlock;
if(!key.shift && !found)
{
selBlock = textBlock;
selPosition = curPosition;
}
positionCaret(true);
Update(null);
}
else if(!block && !found && key.shift)
{
curPosition = textBlock.textLen;
positionCaret(true);
Update(null);
}
if(!key.shift && passedBR)
foundAlpha = true;
}
if(key.shift && found)
{
curPosition = lastC+1;
textBlock = lastBlock;
positionCaret(true);
Update(null);
}
else if(!key.shift && !found)
{
// Deselect
selBlock = textBlock;
selPosition = curPosition;
Update(null);
}
break;
}
case Key { left, ctrl = true, shift = true }:
case ctrlLeft:
{
bool foundAlpha = false;
bool found = false;
Block block = textBlock, lastBlock = null;
int lastC = 0;
bool passedBR = false;
while(block && !found)
{
int start, c;
if(curPosition == 0 && block != textBlock && passedBR)
{
foundAlpha = true;
if(!lastBlock)
{
lastC = block.textLen;
lastBlock = block;
}
break;
}
start = (block == textBlock ? curPosition : block.textLen)-1;
for(c = start; c>=0; c--)
{
if(CharMatchCategories(block.text[c], letters|numbers|marks|connector))
{
foundAlpha = true;
lastC = c;
lastBlock = block;
}
else if(foundAlpha)
{
found = true;
break;
}
}
if(found) break;
// No next word found,
/*if(curPosition > 0)
{
foundAlpha = true;
lastC = 0;
lastBlock = block;
break;
}*/
while(true)
{
if(block.subBlocks.last)
block = block.subBlocks.last;
else if(block.prev)
block = block.prev;
else
{
block = block.parent;
while(block && !block.prev) block = block.parent;
if(block) block = block.prev;
}
if(block && block.type == BR)
passedBR = true;
if(!block || block.type == TEXT)
break;
}
}
if(foundAlpha)
{
textBlock = lastBlock;
curPosition = lastC;
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
positionCaret(true);
Update(null);
}
if(!key.shift && !found)
{
// Deselect
selBlock = textBlock;
selPosition = curPosition;
Update(null);
}
break;
}
case Key { right, shift = true }:
case right:
if(!key.shift && (textBlock != selBlock || curPosition != selPosition))
{
selPosition = curPosition;
selBlock = textBlock;
positionCaret(true);
Update(null);
}
else if(curPosition < textBlock.textLen)
{
curPosition += UTF8_NUM_BYTES(textBlock.text[curPosition]);
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
positionCaret(true);
Update(null);
}
else
{
Block block = textBlock;
bool passedBR = textBlock.type == BR;
while(true)
{
if(block.subBlocks.first)
block = block.subBlocks.first;
else if(block.next)
block = block.next;
else
{
block = block.parent;
while(block && !block.next) block = block.parent;
if(block) block = block.next;
}
if(block && block.type == BR)
passedBR = true;
if(!block || ((block.type == TEXT && block.textLen) || (block.type == BR && textBlock.startY != block.startY)))
break;
}
if(block)
{
textBlock = block;
curPosition = 0;
if(!passedBR && curPosition < textBlock.textLen)
curPosition += UTF8_NUM_BYTES(textBlock.text[curPosition]);
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
positionCaret(true);
Update(null);
}
}
break;
case Key { left, shift = true }:
case left:
if(!key.shift && (textBlock != selBlock || curPosition != selPosition))
{
selPosition = curPosition;
selBlock = textBlock;
positionCaret(true);
Update(null);
}
else if(curPosition > 0)
{
while(curPosition > 0 && !UTF8_IS_FIRST(textBlock.text[--curPosition]));
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
positionCaret(true);
Update(null);
}
else
{
Block block = textBlock;
bool passedBR = false; //block.type == BR;
while(true)
{
if(block.subBlocks.last)
block = block.subBlocks.last;
else if(block.prev)
block = block.prev;
else
{
block = block.parent;
while(block && !block.prev) block = block.parent;
if(block) block = block.prev;
}
if(block && block.type == BR)
passedBR = true;
if(!block || ((block.type == TEXT && block.textLen) || block.type == BR))
break;
}
if(block)
{
textBlock = block;
curPosition = textBlock.textLen;
if(!passedBR && curPosition > 0)
while(curPosition > 0 && !UTF8_IS_FIRST(textBlock.text[--curPosition]));
if(!key.shift)
{
selPosition = curPosition;
selBlock = textBlock;
}
positionCaret(true);
Update(null);
}
}
break;
case backSpace:
case Key { backSpace, shift = true }:
if(readOnly) break;
if(textBlock == selBlock && curPosition == selPosition)
{
Block block = textBlock, brBlock = null;
bool change = false;
if(!curPosition)
{
while(true)
{
if(block.subBlocks.last)
block = block.subBlocks.last;
else if(block.prev)
block = block.prev;
else
{
block = block.parent;
while(block && !block.prev) block = block.parent;
if(block) block = block.prev;
}
if(block && block.type == BR)
brBlock = block;
if(!block || brBlock || (block.type == TEXT && block.textLen))
break;
}
if(!brBlock && block)
{
selBlock = textBlock = block;
selPosition = curPosition = block.textLen;
}
}
if(curPosition)
{
int c = curPosition;
int nb = 1;
while(c > 0 && !UTF8_IS_FIRST(textBlock.text[--c])) nb++;
memmove(textBlock.text + curPosition - nb, textBlock.text + curPosition, textBlock.textLen - curPosition + 1);
textBlock.textLen -= nb;
textBlock.text = renew textBlock.text char[textBlock.textLen + 1];
curPosition -= nb;
selPosition = curPosition;
selBlock = textBlock;
change = true;
}
else if(brBlock)
{
Block prevBlock = block;
if(textBlock.type == TEXT && prevBlock && prevBlock.type == TEXT && sameFont(textBlock, prevBlock))
{
prevBlock.text = renew prevBlock.text char[prevBlock.textLen + textBlock.textLen + 1];
memcpy(prevBlock.text + prevBlock.textLen, textBlock.text, textBlock.textLen + 1);
curPosition = prevBlock.textLen;
prevBlock.textLen += textBlock.textLen;
textBlock.parent.subBlocks.Remove(textBlock);
delete textBlock;
selBlock = textBlock = prevBlock;
selPosition = curPosition;
}
brBlock.parent.subBlocks.Remove(brBlock);
delete brBlock;
change = true;
}
if(change)
{
ComputeMinSizes();
ComputeSizes();
positionCaret(true);
Update(null);
}
}
else
deleteSelection();
break;
case del:
if(readOnly) break;
if(textBlock != selBlock || curPosition != selPosition)
deleteSelection();
else
{
bool changed = false;
Block block = textBlock, brBlock = block.type == BR ? block : null;
if(brBlock || curPosition == textBlock.textLen)
{
while(true)
{
if(block.subBlocks.first)
block = block.subBlocks.first;
else if(block.next)
block = block.next;
else
{
block = block.parent;
while(block && !block.next) block = block.parent;
if(block) block = block.next;
}
if(block && block.type == BR)
brBlock = block;
if(!block || (block.type == TEXT && block.textLen))
break;
}
if(!brBlock && block)
{
textBlock = block;
curPosition = 0;
}
}
if(textBlock.textLen > curPosition)
{
int nb = UTF8_NUM_BYTES(textBlock.text[curPosition]);
memmove(textBlock.text + curPosition, textBlock.text + curPosition + nb, textBlock.textLen - curPosition + 1 - nb + 1);
textBlock.textLen -= nb;
textBlock.text = renew textBlock.text char[textBlock.textLen + 1];
changed = true;
}
else if(block && block != textBlock)
{
Block nextBlock = block;
if(textBlock.type == BR)
textBlock = nextBlock;
else if(sameFont(nextBlock, textBlock))
{
textBlock.text = renew textBlock.text char[textBlock.textLen + nextBlock.textLen + 1];
memcpy(textBlock.text + textBlock.textLen, nextBlock.text, nextBlock.textLen + 1);
textBlock.textLen += nextBlock.textLen;
if(nextBlock)
{
nextBlock.parent.subBlocks.Remove(nextBlock);
delete nextBlock;
}
changed = true;
}
if(brBlock)
{
brBlock.parent.subBlocks.Remove(brBlock);
delete brBlock;
changed = true;
}
}
selBlock = textBlock;
selPosition = curPosition;
if(changed)
{
ComputeMinSizes();
ComputeSizes();
positionCaret(true);
Update(null);
}
}
break;
case enter:
{
int th = 0;
Block block;
Block newBlock;
int startY, startX;
if(readOnly) break;
deleteSelection();
block = { type = BR, parent = textBlock.parent, font = textBlock.font };
newBlock = { type = TEXT, parent = textBlock.parent, font = textBlock.font };
startY = textBlock.startY;
startX = textBlock.startX;
display.FontExtent(textBlock.font.font, " ", 1, null, &th);
textBlock.parent.subBlocks.Insert(textBlock, block);
textBlock.parent.subBlocks.Insert(block, newBlock);
startY += th;
newBlock.textLen = textBlock.textLen - curPosition;
newBlock.text = new char[newBlock.textLen+1];
if(textBlock.type == TEXT)
{
memcpy(newBlock.text, textBlock.text + curPosition, textBlock.textLen - curPosition + 1);
textBlock.textLen = curPosition;
textBlock.text[curPosition] = 0;
}
else
newBlock.text[0] = 0;
newBlock.startY = startY;
newBlock.startX = startX;
selPosition = curPosition = 0;
selBlock = textBlock = newBlock;
ComputeMinSizes();
ComputeSizes();
positionCaret(true);
Update(null);
break;
}
case ctrlX:
case Key { del, shift = true }:
if(readOnly) break;
// Cut
copySelection();
deleteSelection();
break;
case ctrlC:
case ctrlInsert:
// Copy
copySelection();
break;
// Paste
case shiftInsert:
case ctrlV:
if(!readOnly)
{
ClipBoard clipBoard { };
if(clipBoard.Load())
{
int c;
char * text = clipBoard.memory;
char ch;
int start = 0;
Block parent;
FontEntry font;
deleteSelection();
parent = textBlock.parent;
font = textBlock.font;
for(c = 0; ; c++)
{
ch = text[c];
if(ch == '\n' || ch == '\r' || !ch)
{
int len = c - start;
textBlock.text = renew textBlock.text char[textBlock.textLen + 1 + len];
memmove(textBlock.text + curPosition + len, textBlock.text + curPosition, textBlock.textLen - curPosition + 1);
memcpy(textBlock.text + curPosition, text + start, len);
textBlock.textLen += len;
curPosition += len;
selPosition = curPosition;
selBlock = textBlock;
if(!ch) break;
{
Block block { type = BR, parent = parent, font = font };
Block newBlock { type = TEXT, parent = parent, font = font };
int startY = textBlock.startY, startX = textBlock.startX;
int th = 0;
display.FontExtent(textBlock.font.font, " ", 1, null, &th);
textBlock.parent.subBlocks.Insert(textBlock, block);
textBlock.parent.subBlocks.Insert(block, newBlock);
startY += th;
newBlock.textLen = textBlock.textLen - curPosition;
newBlock.text = new char[newBlock.textLen+1];
memcpy(newBlock.text, textBlock.text + curPosition, textBlock.textLen - curPosition + 1);
textBlock.textLen = curPosition;
textBlock.text[curPosition] = 0;
newBlock.startY = startY;
newBlock.startX = startX;
selPosition = curPosition = 0;
selBlock = textBlock;
textBlock = newBlock;
}
if(ch == '\r' && text[c+1] == '\n') c++;
start = c + 1;
}
}
ComputeMinSizes();
ComputeSizes();
positionCaret(true);
Update(null);
}
delete clipBoard;
}
break;
case ctrlB: case ctrlI:
case ctrl1: case ctrl2: case ctrl3: case ctrl4: case ctrl5:
case ctrl6: case ctrl7: case ctrl8: case ctrl9: case ctrl0:
case Key { code = equal, ctrl = true }:
case Key { code = minus, ctrl = true }:
{
Block font = textBlock.parent;
Block parent = font.parent;
uint flag = key == ctrlB ? 1 : key == ctrlI ? 2 : 0;
uint attribs = font.font.attribs ^ flag;
Color color = key.code == k0 ? black :
key.code >= k1 && key.code <= k9 ? GetDefaultPalette()[key.code - k1 + 1] : font.textColor;
float size = font.font.size;
FontEntry entry;
if(key == Key { code = equal, ctrl = true })
size *= 1.333333333333333333333333;
else if(key == Key { code = minus, ctrl = true })
size /= 1.333333333333333333333333;
for(entry = fontCache.first; entry; entry = entry.next)
{
if(!strcmpi(entry.face, font.font.face) &&
entry.size == size &&
entry.attribs == attribs)
break;
}
if(!entry)
{
display.Lock(false);
entry = FontEntry
{
font = displaySystem.LoadFont(font.font.face, size, attribs),
size = size, attribs = attribs, face = CopyString(font.font.face)
};
fontCache.Add(entry);
display.Unlock();
}
if(textBlock.type == BR || textBlock.text[0] || textBlock.prev)
{
Block fontBlock
{
parent = parent,
type = FONT,
font = entry, textColor = color, size = size, attribs = attribs, face = CopyString(font.font.face)
};
bool afterCurrent = (textBlock.type == BR || curPosition || !textBlock.textLen);
// TODO: Cut blocks in two
parent.subBlocks.Insert(afterCurrent ? font : font.prev, fontBlock);
if(textBlock.type == TEXT && textBlock.text[0])
{
Block newBlock { type = TEXT, parent = fontBlock, font = fontBlock.font, text = CopyString("") };
// Move anything after this block to the new font block...
if(afterCurrent)
{
Block block = textBlock.next;
while(block)
{
Block next = block.next;
font.subBlocks.Remove(block);
fontBlock.subBlocks.Add(block);
block.parent = fontBlock;
block.font = fontBlock.font;
block = next;
}
}
selBlock = textBlock = newBlock;
selPosition = curPosition = 0;
fontBlock.subBlocks.Insert(null, newBlock);
}
else if(afterCurrent)
{
Block block = textBlock;
while(block)
{
Block next = block.next;
font.subBlocks.Remove(block);
fontBlock.subBlocks.Add(block);
block.parent = fontBlock;
block.font = fontBlock.font;
block = next;
}
}
}
else
{
delete font.face;
font.font = entry, font.textColor = color, font.size = size, font.attribs = attribs,
font.face = CopyString(font.font.face);
textBlock.font = font.font;
}
ComputeMinSizes();
ComputeSizes();
positionCaret(true);
Update(null);
break;
}
case ctrlA:
{
selBlock = html.body.subBlocks.first;
while(selBlock && selBlock.type != TEXT) // && selBlock.type != BR)
selBlock = GetNextBlock(selBlock);
selPosition = 0;
textBlock = selBlock;
while(true)
{
Block next = GetNextBlock(textBlock);
while(next && next.type != TEXT) // && next.type != BR)
next = GetNextBlock(next);
if(next)
textBlock = next, curPosition = textBlock.textLen;
else
break;
}
ComputeMinSizes();
ComputeSizes();
positionCaret(true);
Update(null);
break;
}
default:
{
// eC BUG HERE: (Should be fixed)
if(!readOnly && !key.ctrl && !key.alt && ch >= 32 && ch != 128 /*&& ch < 128*/)
{
char string[5];
int len = UTF32toUTF8Len(&ch, 1, string, 5);
int c;
deleteSelection();
if(textBlock.type != TEXT)
{
Block parent = textBlock.parent;
Block newBlock { type = TEXT, parent = parent, font = parent.font, text = CopyString(""); };
parent.subBlocks.Insert(textBlock.prev, newBlock);
textBlock = newBlock;
curPosition = 0;
}
textBlock.text = renew textBlock.text char[textBlock.textLen + len + 1];
memmove(textBlock.text + curPosition + len, textBlock.text + curPosition, textBlock.textLen - curPosition + 1);
for(c = 0; c<len; c++)
{
textBlock.text[curPosition] = string[c];
textBlock.textLen++;
curPosition++;
}
selPosition = curPosition;
selBlock = textBlock;
ComputeMinSizes();
ComputeSizes();
positionCaret(true);
Update(null);
}
}
}
}
return true;
}
void OnResize(int width, int height)
{
HTMLView::OnResize(width, height);
positionCaret(true);
}
bool findCaretLine(Surface surface, int x, int y, int w, int h, Block startBlock, int startTextPos, Block endBlock,
int endTextPos, int left, int right, Block textBlock, int pos, int * psx, int * psy)
{
bool result = false;
int textPos = startTextPos;
Block block = startBlock;
int startSel, endSel;
Block startSelBlock = null, endSelBlock = null;
int prevGlyph = 0;
if(this.textBlock != this.selBlock || this.curPosition != this.selPosition)
this.NormalizeSelection(&startSelBlock, &startSel, &endSelBlock, &endSel);
for(;;)
{
Color fore = surface.foreground, back = surface.background;
if(block == endBlock && textPos >= endTextPos)
break;
switch(block.type)
{
case INPUT:
if(block.window)
x += block.window.size.w;
break;
case BODY:
break;
case IMAGE:
{
int bw = block.pWidth ? (w * block.pWidth / 100) : block.w;
//int bh = block.pHeight ? (h * block.pHeight / 100) : block.h;
int dx; //, dy;
//ColorAlpha fg = surface.GetForeground();
surface.SetForeground(white);
switch(block.halign)
{
case HorizontalAlignment::left:
block.valign = top;
dx = x;
break;
case HorizontalAlignment::right:
block.valign = top;
dx = x + w - bw;
dx = Max(x, dx);
break;
case middle:
dx = x;
break;
}
/*
switch(block.valign)
{
case bottom: dy = y + h - bh; break;
case top: dy = y; break;
case middle: dy = y + (h - bh) / 2; break;
}
*/
x += bw;
break;
}
case BR:
{
if(block == textBlock)
{
int th;
surface.TextExtent(" ", 1, null, &th);
*psx = x;
*psy = h - th + y;
result = true;
}
break;
}
case TEXT:
{
int tw, th;
int endPos = (block == endBlock) ? endTextPos : block.textLen;
int len = endPos - textPos;
if(startSelBlock && block == startSelBlock && startSel >= textPos && startSel <= textPos + len)
{
int l = startSel - textPos;
if(block.text)
{
int pPrevGlyph = prevGlyph;
surface.TextExtent2(block.text + textPos, l, &tw, &th, prevGlyph, &prevGlyph, null);
if(block == textBlock && pos >= textPos && pos <= textPos + l)
{
int ttw;
surface.TextExtent2(block.text + textPos, pos - textPos, &ttw, null, pPrevGlyph, &pPrevGlyph, null);
if(!th)
surface.TextExtent(" ", 1, null, &th);
*psx = x + ttw;
*psy = h - th + y;
result = true;
break;
}
x += tw;
}
textPos += l;
this.isSelected = true;
len -= l;
}
if(endSelBlock && block == endSelBlock && endPos > textPos && endSel >= textPos && endSel < textPos + len)
len = endSel - textPos;
if(block.text)
{
int pPrevGlyph = prevGlyph;
if(this.isSelected)
{
surface.background = Color { 10, 36, 106 };
surface.foreground = white;
surface.textOpacity = true;
}
surface.TextExtent2(block.text + textPos, len, &tw, &th, prevGlyph, &prevGlyph, null);
if(block == textBlock && pos >= textPos && pos <= textPos + len)
{
int ttw;
surface.TextExtent2(block.text + textPos, pos - textPos, &ttw, null, pPrevGlyph, &pPrevGlyph, null);
if(!th)
surface.TextExtent(" ", 1, null, &th);
*psx = x + ttw;
*psy = h - th + y;
result = true;
break;
}
x += tw;
if(this.isSelected)
{
surface.background = back;
surface.foreground = fore;
surface.textOpacity = false;
}
}
textPos += len;
if(block == endSelBlock && textPos >= endSel)
this.isSelected = false;
if(endPos > textPos)
{
int l = endPos - textPos;
if(block.text)
{
int pPrevGlyph = prevGlyph;
surface.TextExtent2(block.text + textPos, l, &tw, &th, prevGlyph, &prevGlyph, null);
if(block == textBlock && pos >= textPos && pos <= textPos + l)
{
int ttw;
surface.TextExtent2(block.text + textPos, pos - textPos, &ttw, null, pPrevGlyph, &pPrevGlyph, null);
if(!th)
surface.TextExtent(" ", 1, null, &th);
*psx = x + ttw;
*psy = h - th + y;
result = true;
break;
}
x += tw;
}
textPos += l;
}
break;
}
case FONT:
case ANCHOR:
surface.TextFont(block.font.font);
break;
case TABLE:
// TODO: FindCaretTable(this, surface, x, y, w, h, left, right, block);
block = NextBlockUp(surface, block, null, RenderFlags { render = true });
textPos = 0;
break;
}
if(result) break;
if(block == endBlock && textPos >= endTextPos)
break;
if(textPos >= block.textLen)
{
block = NextBlock(surface, block, null, RenderFlags { render = true });
textPos = 0;
}
}
return result;
}
void findCaretPos(Block textBlock, int pos, int * psx, int * psy)
{
int sx = 0, sy = 0;
Block block = html.body;
int y = TOP_MARGIN;
int textPos = 0;
int centered = 0;
int maxH = clientSize.h - BOTTOM_MARGIN;
OldList leftObjects { };
OldList rightObjects { };
Font font;
Surface surface = display.GetSurface(0,0,null);
AlignedObject object, nextObject;
if(html.defaultFont && html.defaultFont.font)
surface.TextFont(html.defaultFont.font.font);
while(block)
{
Block nextBlock;
int nextTextPos;
int w, newH;
int left, right;
int x, maxW;
int thisLineCentered = centered;
bool changeLine;
left = LEFT_MARGIN;
right = clientSize.w - RIGHT_MARGIN;
for(object = leftObjects.last; object; object = nextObject)
{
nextObject = object.prev;
if(y < object.untilY || object.next)
left += object.w;
else
leftObjects.Delete(object);
}
for(object = rightObjects.last; object; object = nextObject)
{
nextObject = object.prev;
if(y < object.untilY || object.next)
right -= object.w;
else
rightObjects.Delete(object);
}
right = Max(left, right);
maxW = right - left;
font = surface.font;
newH = ComputeLine(surface, block, textPos, &nextBlock, &nextTextPos, ¢ered, &w, maxW, maxH - y, RenderFlags {}, y, &leftObjects, &rightObjects, &changeLine, false, 0, 0);
surface.font = font;
if(thisLineCentered)
x = Max(left,(left + right - w) / 2);
else
x = left;
surface.TextFont(font);
if(findCaretLine(surface, x - scroll.x, y - scroll.y, maxW, newH, block, textPos,
nextBlock, nextTextPos, left - scroll.x, right - scroll.x, textBlock, pos, &sx, &sy))
break;
if(changeLine)
y += newH;
block = nextBlock;
textPos = nextTextPos;
}
delete surface;
*psx = sx;
*psy = sy;
}
// Temporary brute force clean up...
void clearEmptyBlocks()
{
Block block = html.body;
while(block)
{
Block next = GetNextBlock(block);
if(block.type == FONT && !block.subBlocks.first)
{
block.parent.subBlocks.Remove(block);
delete block;
}
else if(block.type == TEXT && block != textBlock && !block.textLen)
{
block.parent.subBlocks.Remove(block);
delete block;
}
block = next;
}
}
void positionCaret(bool setCaretX)
{
if(edit && textBlock)
{
int sx, sy;
int th;
clearEmptyBlocks();
findCaretPos(textBlock, curPosition, &sx, &sy);
display.FontExtent(textBlock.font.font, " ", 1, null, &th);
if(setCaretX)
caretX = sx;
caretY = sy;
SetCaret(sx-1, sy, th);
{
Point scrollPos = scroll;
bool doScroll = false;
if(sy - scroll.y + th > clientSize.h)
{
scrollPos.y = sy + th - clientSize.h;
doScroll = true;
}
else if(sy - scroll.y < 0)
{
scrollPos.y = sy;
doScroll = true;
}
if(sx - scroll.x + 10 > clientSize.w)
{
scrollPos.x = sx + 10 - clientSize.w;
doScroll = true;
}
else if(sx - scroll.x < 10)
{
scrollPos.x = sx - 10;
doScroll = true;
}
if(doScroll)
scroll = scrollPos;
}
}
else
SetCaret(0,0,0);
}
}
| eC | 3 | mingodad/ecere-sdk | samples/guiAndGfx/EcereOffice/Writer/RichEdit.ec | [
"BSD-3-Clause"
] |
/*
* Copyright (c) 2020 Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. 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.
*
* 3. 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.
*/
!ifndef STRINGS_NSH_
!define STRINGS_NSH_
!define PRODUCT_NAME "HAXM"
!define PRODUCT_FULL_NAME "Hardware Accelerated Execution Manager"
!define PRODUCT_VERSION "7.6.5"
!define PRODUCT_YEAR "2020"
!define PRODUCT_PUBLISHER "Intel Corporation"
!define PRODUCT_BRAND "Intel${U+00AE}"
!define PRODUCT_WEBSITE "https://github.com/intel/haxm"
!define PRODUCT_GUID "AAA802A8DF574F4CA0489512D2D91818"
!define PROGRAM_DIR "\Intel\${PRODUCT_NAME}"
!define SERVICE_NAME "IntelHaxm"
!define SERVICE_DISPLAY_NAME "Intel(R) ${PRODUCT_FULL_NAME} Service"
!define REG_ROOT_KEY "HKLM"
!define REG_KEY_CURRENT_VERSION "SOFTWARE\Microsoft\Windows\CurrentVersion"
!define REG_KEY_USER_DATA "${REG_KEY_CURRENT_VERSION}\Installer\UserData\
\S-1-5-18\Products\${PRODUCT_GUID}"
!define REG_KEY_INSTALL "${REG_KEY_USER_DATA}\InstallProperties"
!define REG_KEY_UNINSTALL "${REG_KEY_CURRENT_VERSION}\Uninstall"
!define REG_KEY_PRODUCT "${REG_KEY_UNINSTALL}\${PRODUCT_NAME}"
!define DRIVER_DIR "$SYSDIR\drivers"
!define DRIVER_FILE "${SERVICE_NAME}.sys"
!define DRIVER_WIN10_64 "assets\win10\x64\${DRIVER_FILE}"
!define DRIVER_WIN10_32 "assets\win10\x86\${DRIVER_FILE}"
!define DRIVER_WIN7_64 "assets\win7\x64\${DRIVER_FILE}"
!define DRIVER_WIN7_32 "assets\win7\x86\${DRIVER_FILE}"
!define DLG_CHECK_ENV "The system requirements are not satisfied."
!define DLG_DOWNGRADE "The existing version is greater than the version to \
be installed. Please uninstall the existing version manually before \
proceeding."
!define DLG_REINSTALL "${PRODUCT_NAME} v${PRODUCT_VERSION} has already been \
installed. Are you sure to continue?"
!define DLG_UNINSTALL "Are you sure you want to remove $(^Name)?"
!define LOG_REINSTALL "To reinstall the current version"
!define LOG_UNINSTALL "To uninstall the current version"
!define LOG_UPGRADE "To upgrade version"
!endif # STRINGS_NSH_
| NSIS | 3 | ryoon/haxm | Installer/Strings.nsh | [
"BSD-3-Clause"
] |
#
# scec2db retrieves/converts a bulletin from the
# on-line searchable scec database and updates a
# local css3.0 origin database table
#
#
# Jennifer Eakins
# IGPP-SIO-UCSD
# (858)534-2869
# [email protected]
#
# 05/18/2001
#
use lib "$ENV{ANTELOPE}/data/perl";
#use diagnostics;
use Datascope ;
use LWP::Simple;
use URI::URL;
use HTTP::Request::Common;
use Getopt::Std;
#
# default address for scec catalog websearch
# (They were correct as of May, 2001
#
$scec = "iron.gps.caltech.edu";
$scec_prog = "http://$scec/cgi-bin/catalog/catalog_search.pl";
if ( !getopts('vVkdwmyc:s:e:f:') || @ARGV != 1 ) {
print STDERR "\n";
&usage;
}
if ($opt_V) {
print STDERR "\topt_c: $opt_c\n";
print STDERR "\topt_d: $opt_d\n";
print STDERR "\topt_m: $opt_m\n";
print STDERR "\topt_w: $opt_w\n";
print STDERR "\topt_s: $opt_s\n";
print STDERR "\topt_e: $opt_e\n";
}
# #
# parse command line options #
# #
if ( (!$opt_s) && (!$opt_d && !$opt_m && !$opt_w) ) {
print STDERR "\nMust specify starttime or use -d, -m, or -w\n";
&usage;
}
$database = $ARGV[0]; # db gets first ARGV variable
if ($opt_c !~ /catread|scecdc|hypo71|hypo2000/) {
print STDERR "\nUnknown catalog type: $opt_c\n";
print STDERR "Only 'catread', 'scecdc', 'hypo71', or 'hypo2000' formats currently supported.\n";
&usage;
} else {
$tmpscec = "tmp_"."$opt_c"; # this is a temporary file that will be converted
%cattype = (
catread => 'cit',
scecdc => 'scec',
cnss => 'cnss',
simpson => 'simpson',
hypo2000 => 'hypoin',
hypo71 => 'hypo71',
hypoin_phase => 'hypoin_phase'
);
}
# #
# check for external file to updated #
# (in place of web retrieval) #
# #
if ($opt_f) {
if (!-e $opt_f) {
print STDERR "File $opt_f does not exist.\n";
print STDERR "Check the filename or don't use the -f option.\n";
&usage;
}
}
# #
# get start/end times #
# #
$t = time();
print STDERR "Starting $0 at: ", strtime($t), "\n" ;
$now = epoch2str($t, "%E");
($start,$end) = &check_opts;
$start = str2epoch($start) || die "Can't parse chosen start time.";
$end = str2epoch($end) || die "Can't parse chosen end time.";
print STDERR "Looking for origins between $start and $end\n" if ($opt_v || $opt_V) ;
# #
# get all of the strings needed for webform #
# #
($syr, $smo, $sday, $shr, $smin, $ssec) = split(/\s+/,epoch2str($start,"%Y %m %d %H %M %S"));
($eyr, $emo, $eday, $ehr, $emin, $esec) = split(/\s+/,epoch2str($end,"%Y %m %d %H %M %S"));
print STDERR "Start string: $syr/$smo/$sday $shr:$smin:$ssec\n" if ($opt_v || $opt_V);
print STDERR "End string: $eyr/$emo/$eday $ehr:$emin:$esec\n" if ($opt_v || $opt_V);
# #
# Check to see if server is up (HEAD) #
# #
if (&server_up){
print STDERR "Scec site is up\n" if ($opt_v || $opt_V);
} else {
print STDERR "\nScec site is down.\nRe-run $0 at a later date.\n";
exit;
}
# #
# Request catalog #
# Convert from Scec format to css30 #
# #
print STDERR "Starting catalog retrieval.\n...This may take a while...\n" if (!$opt_f) ;
&get_scec unless $opt_f;
print STDERR "Converting $opt_f\n" if ($opt_f && ($opt_v || $opt_V)) ;
# #
# open database to create/modify #
# #
@db = dbopen($database, "r+");
@db_origin = dblookup(@db, "", "origin" , "", "");
@db_lastid = dblookup(@db, "", "lastid" , "", "");
$orid = dbnextid (@db_lastid, "orid") || dbnextid(@db, "orid");
# #
# Check returned origin against pre-existing origin (dbmatches) #
# now read the returned file (or the opt_f file) #
# and convert from opt_c format to css3.0 #
# #
$sub = "convert_" . "$opt_c";
&$sub($opt_f);
# sort the origin table by time and close database
# @db_origin = dbsort(@db_origin, "-r", "time");
dbclose (@db);
# #
# remove the tmp file containing search output #
# #
$rm = "/usr/bin/rm -r tmp_$opt_c";
&run($rm) unless $opt_k; # opt_k keeps the file around
$done = time();
print STDERR "\nFinished $0: $done\n" ;
exit(0);
#
# subroutines under here
#
sub check_opts {
my ($checkopt) = ();
my ($optstart,$optend) = ();
if ($opt_d) {
print STDERR "Retreive day catalog.\n" if ($opt_v || $opt_V);
$offset = 86400.0 ;
$checkopt++ ;
}
if ($opt_w) {
print STDERR "Retreive week catalog.\n if ($opt_v || $opt_V)";
$offset = 7*86400.0 ;
$checkopt++ ;
}
if ($opt_m) {
print STDERR "Retreive month catalog.\n" if ($opt_v || $opt_V);
$offset = 31*86400.0 ; #
$checkopt++ ;
}
if ($checkopt > 1) {
print STDERR "\nToo many date spans specified.\n";
print STDERR "Choose either -d, -w, or -m\n";
&usage;
} else { # if no -d, -w, -m or -s or -e grab most recent day
$optend = $now ;
$optstart = $optend - 86400 ;
#
# need to check for overide of "opts" and -s and -e
#
if ($opt_s || $opt_e) {
print STDERR "Using command-line overides for specified start/end times.\n" if ($opt_v || $opt_V);
if ($opt_s) {
$optstart = str2epoch($opt_s);
if ($opt_e) {
$optend = str2epoch($opt_e);
} else {
$optend = $optstart + $offset if ($opt_d || $opt_w || $opt_m) ;
}
} elsif ($opt_e) {
$optend = str2epoch($opt_e);
$optstart = $optend - $offset if ($opt_d || $opt_w || $opt_m) ;
}
}
}
# #
# put in a draconian check to make sure user doesn't request #
# "too much" data from the web bulletin. #
# "Too much" is arbitrarily defined as 60 days... #
# #
$range = ($optend - $optstart)/86400 ;
if ($range >= 60.0) {
print STDERR "\nYou are requesting 'too much' data from the web.\n";
print STDERR "This program restricts requests to less than 60 days.\n";
print STDERR "Sorry, but you need to choose a shorter time span.\n\n";
exit;
}
return($optstart,$optend);
}
sub server_up {
if (head("http://$scec/")){
return 1;
}
return 0;
}
sub get_scec {
print STDERR "Attempting to get listing from $scec \n" if ($opt_v || $opt_V);
# my $url = url('http://iron.gps.caltech.edu/cgi-bin/catalog/catalog_search.pl');
my $url = url("$scec_prog");
$url->query_form( outputfmt => "$cattype{$opt_c}",
start_year => "$syr",
start_month => "$smo",
start_day => "$sday",
start_hr => "$shr",
start_min => "$smin",
start_sec => "$ssec",
end_year => "$eyr",
end_month => "$emo",
end_day => "$eday",
end_hr => "$ehr",
end_min => "$emin",
end_sec => "$esec",
min_mag => "0.0",
max_mag => "8.0",
min_depth => "0.0",
max_depth => "700.0",
south_latd => "30.0",
north_latd => "40.0",
west_long => "-120.0",
east_long => "-110.0",
etype => ["le","RE","ts","qb","nt","sn","st","uk"],
);
print STDERR "Opening tmp file: $tmpscec for get output.\n" if ($opt_V);
open(TEMP, ">$tmpscec") || die "File permissions";
$doc = get($url);
print TEMP $doc;
close(TEMP);
}
sub convert_hypo2000 { # this will parse the hypo format
my ($file) = @_;
print STDERR "File name is: $file\n" if ($opt_V);
$file = $tmpscec unless $opt_f;
open(TEMP0, "$file") || die "Can't open $tmpscec for while loop.\n";
while (<TEMP0>) {
print STDERR "Line is: $_\n" if ($opt_V) ;
if (/^\n/) { # new line, can ignore
next;
} elsif (/title/) {
next;
} elsif (/^<\/PRE>/) {
next;
} elsif (/Number of rows/) {
print STDERR "$_\n" if ($opt_V);
next;
} elsif (/^[0-9]|^<PRE>/ ) { # should be first record line, starting with year
$line = $_;
$line =~ s/^<PRE><PRE>//;
$year = substr($line, 0,4);
$month = substr($line, 4,2);
$day = substr($line, 6,2);
$hr = substr($line, 8,2);
$min = substr($line,10,2);
$sec = substr($line,12,5);
$latd = substr($line,17,2);
$latNS = substr($line,19,1);
$latm = substr($line,20,5);
$lond = substr($line,25,3);
$lonEW = substr($line,28,1);
$lonm = substr($line,29,5);
$depth = substr($line,34,5);
$nph = substr($line,42,3);
$magtype = substr($line,128,1);
$mag = substr($line,129,4);
$evid = substr($line,148,10);
$evid = &trim($evid);
$auth = "cit_$evid" ;
$alg = "hypo2000";
&fix_lat_lon;
&fix_time_values;
&create_origin;
print STDERR "$year, $month, $day, $hr, $min, $sec, $lat, $lon, $qual, $mag, $depth, $nph, $evid\n" if ($opt_V);
$orid++;
next;
} else {
print STDERR "Can't parse line:\n \t $_ \n" if ($opt_V || $opt_v);
next;
}
}
close TEMP0;
}
sub convert_hypo71 { # this will parse the hypo format
my ($file) = @_;
print STDERR "File name is: $file\n" if ($opt_V);
$file = $tmpscec unless $opt_f;
open(TEMP1, "$file") || die "Can't open $tmpscec for while loop.\n";
while (<TEMP1>) {
print STDERR "Line is: $_\n" if ($opt_V) ;
if (/^\n/) { # new line, can ignore
next;
} elsif (/title/) {
next;
} elsif (/^<\/PRE>/) {
next;
} elsif (/Number of rows/) {
print STDERR "$_\n" if ($opt_V);
next;
} elsif (/^[0-9]|^<PRE>/ ) { # should be first record line, starting with year
$line = $_;
$line =~ s/^<PRE><PRE>//;
$year = substr($line, 0,4);
$month = substr($line, 4,2);
$day = substr($line, 6,2);
$hr = substr($line, 9,2);
$min = substr($line,11,2);
$sec = substr($line,13,6);
$latd = substr($line,20,2);
$latNS = substr($line,22,1);
$latm = substr($line,23,5);
$lond = substr($line,29,3);
$lonEW = substr($line,32,1);
$lonm = substr($line,33,5);
$depth = substr($line,39,6);
$magtype = substr($line,46,1);
$mag = substr($line,48,4);
$nph = substr($line,52,3);
$et = substr($line,79,1);
$qual = substr($line,80,1);
$evid = substr($line,83,10);
$evid = &trim($evid);
$auth = "cit_$evid" ;
$alg = "hypo71";
$etype = &map_etype;
&fix_lat_lon;
&fix_time_values;
&create_origin;
print STDERR "$year, $month, $day, $hr, $min, $sec, $lat, $lon, $qual, $mag, $depth, $nph, $evid\n" if ($opt_V);
$orid++;
next;
} else {
print STDERR "Can't parse line:\n \t $_ \n";
next;
}
}
# @db_origin = dbsort(@db_origin, "time");
# dbclose (@db);
close TEMP1;
}
sub convert_scecdc { # this will parse the scecdc format
my ($file) = @_;
print STDERR "File name is: $file\n" if ($opt_V || $opt_v) ;
$file = $tmpscec unless $opt_f;
$orid = dbnextid (@db_lastid, "orid") || dbnextid(@db, "orid");
open(TEMP2, "$file") || die "Can't open $tmpscec for while loop.\n";
while (<TEMP2>) {
print STDERR "Line is: $_\n" if ($opt_V) ;
if (/^\n/) { # new line, can ignore
next;
} elsif (/title/) {
next;
} elsif (/^<\/PRE>/) {
next;
} elsif (/Number of rows/) {
print STDERR "$_\n" if ($opt_V);
next;
} elsif (/^[0-9]|^<PRE>/ ) { # should be first record line, starting with year
$line = $_;
$line =~ s/^<PRE><PRE>//;
$year = substr($line, 0,4);
$month = substr($line, 5,2);
$day = substr($line, 8,2);
$hr = substr($line,11,2);
$min = substr($line,14,2);
$sec = substr($line,17,4);
$et = substr($line,22,2);
$mag = substr($line,25,3);
$magtype = substr($line,29,1);
$lat = substr($line,33,6);
$lon = substr($line,40,7);
$depth = substr($line,50,5);
$qual = substr($line,55,1);
$evid = substr($line,57,8);
$nph = substr($line,66,3);
$alg = "scecdc" ;
$evid = &trim($evid);
$auth = "cit_$evid" ;
$etype = &map_etype ;
&fix_time_values;
&create_origin;
print STDERR "$year, $month, $day, $hr, $min, $sec, $lat, $lon, $qual, $mag, $depth, $nph, $evid\n" if ($opt_V);
$orid++;
next;
} else {
print STDERR "Can't parse line:\n \t $_ \n";
next;
}
}
# @db_origin = dbsort(@db_origin, "time");
# dbclose (@db);
close TEMP2;
}
sub convert_catread { # this will parse the catread format
my ($file) = @_;
print STDERR "File name is: $file\n" if ($opt_V);
$file = $tmpscec unless $opt_f;
open (TEMP3, "$file") || die "Can't open $tmpscec\n";
while (<TEMP3>) {
if (/^\n/) { # new line, can ignore
next;
} elsif (/title/) {
next;
} elsif (/^<\/PRE>/) {
next;
} elsif (/Number of rows/) {
print STDERR "$_\n" if ($opt_V);
next;
} elsif (/^[0-9]|^<PRE>/ ) { # should be first record line, starting with year
$line = $_;
$line =~ s/^<PRE><PRE>//;
$year = substr($line, 0,4);
$month = substr($line, 5,2);
$day = substr($line, 8,2);
$hr = substr($line,12,2);
$min = substr($line,15,2);
$sec = substr($line,18,5);
$lat = substr($line,25,2);
$latm = substr($line,28,5);
$lon = substr($line,33,5);
$lonm = substr($line,38,5);
$qual = substr($line,44,1);
$mag = substr($line,46,4);
$depth = substr($line,53,5);
$nph = substr($line,59,3);
$rms = substr($line,67,4);
$evid = substr($line,72,8);
$alg = "catread";
$evid = &trim($evid);
$auth = "cit_$evid" ;
&fix_time_values;
&fix_lat_values;
&create_origin;
print STDERR "$year, $month, $day, $hr, $min, $sec, $lat, $latm, $lon, $lonm, $qual, $mag, $depth, $nph, $rms, $evid\n" if ($opt_V);
$orid++;
next;
} else {
print STDERR "Can't parse line:\n \t $_ \n";
}
}
close FILE;
# @db_origin = dbsort(@db_origin, "time");
# dbclose(@db);
}
sub map_etype {
my($evtype) = ();
%emap = (
L => "l",
l => "l",
le => "l",
LE => "l",
U => "o",
UK => "o",
u => "o",
uk => "o",
q => "qb",
Q => "qb",
qb => "qb",
QB => "qb",
T => "t",
t => "t",
ts => "t",
TS => "t",
R => "r",
r => "r",
re => "r",
RE => "r",
N => "ex",
n => "ex",
nt => "ex",
NT => "ex"
);
$evtype = $emap{$et};
print STDERR "etype is: $evtype\n" if $opt_V;
return $evtype;
}
sub fix_time_values {
if ($day < 10) {
$day =~ s/^\s+//;
}
if ($month < 10) {
$month =~ s/^\s+//;
}
if ($min < 10) {
$min =~ s/^\s+//;
}
if ($sec < 10) {
$sec =~ s/^\s+//;
}
if ($hr < 10) {
$hr =~ s/^\s+//;
}
# #
# Attepmt to cover the case where sec or min = 60 #
# or hr = 24. #
# (In case the input file is slightly foobar). #
# #
while ($sec >= 60.0) {
$sec = $sec - 60.0;
$min = $min + 1;
}
while ($min >= 60.0) {
$min = $min - 60.0;
$hr = $hr + 1;
}
while ($hr >= 24.0) {
$hr = $hr - 24.0;
$day = $day + 1;
}
$or_time = "$month\/$day\/$year $hr:$min:$sec";
if ($mag <= 0.0) {
$mag = "-999.00";
}
}
sub fix_lat_lon {
if ($latNS =~ /S|s/) {
$lat = -1 * $latd;
$lat = $lat - ($latm/60.0);
} else {
$lat = $latd + ($latm/60.0);
}
if ($lonEW =~ /E|e/) {
$lon = $lond + ($lonm/60.0);
} else {
$lon = -1 * $lond;
$lon = $lon - ($lonm/60.0);
}
}
sub fix_lat_values {
if ($lat <= 0) {
$lat = $lat - ($latm/60.0);
} else {
$lat = $lat + ($latm/60.0);
}
if ($lon <= 0) {
$lon = $lon - ($lonm/60.0);
} else {
$lon = $lon + ($lonm/60.0);
}
}
sub create_origin {
print STDERR "Starting create_origin for orid:$orid and evid:$evid.\n" if $opt_V;
@origin_record = ();
$otime = str2epoch("$or_time");
$jday = yearday("$otime");
push(@origin_record, "lat", $lat,
"lon", $lon,
"depth", $depth,
"time", $otime,
"orid", $orid,
"evid", $evid,
"etype", $etype,
"jdate", $jday,
"ml", $mag,
"ndef", $nph,
"algorithm", $alg,
"auth", $auth
);
@dbmatch = dblookup(@db,"","origin","","dbSCRATCH");
dbputv(@dbmatch,@origin_record);
@matchall = dbmatches(@dbmatch,@db_origin,"ckor","lat","lon","time","depth","ml","ndef","evid");
if ($#matchall != -1) {
# This record matches a pre-existing record in origin table
printf STDERR "No change to origin record for evid: $evid\n" if ($opt_v || $opt_V) ;
next;
} else {
# Add the record to the origin table if no lat/lon/time/depth matches
# update field values if evid already exists.
@matchsome = dbmatches(@dbmatch,@db_origin,"ckor2","evid");
if ($#matchsome != -1) {
# This record matches a pre-existing origin table record, but values have changed
print STDERR "Updating fields for evid: $evid\n" if ($opt_v || $opt_V) ;
# repalce mb/ms/ml and ndef fields here....
$db_origin[3] = $matchsome[0];
dbputv(@db_origin,@origin_record);
} else { # New record (?)
print STDERR "Adding record to origin table: $lat $lon $or_time $evid.\n" if ($opt_v || $opt_V) ;
eval { dbaddv(@db_origin,@origin_record) } ;
if ($@) {
warn $@;
print STDERR "Duplicate origin. $lat, $lon, $depth, $or_time, $mag $evid matches pre-existing origin. Will ignore.\n" if ($opt_v || $opt_V) ;
}
}
}
}
sub trim {
my @out = @_;
for (@out) {
s/^\s+//;
s/\s+$//;
}
return wantarray ? @out : $out[0];
}
sub run { # run system cmds safely
my ( $cmd ) = @_ ;
print STDERR "run cmd is $cmd \n" if ($opt_v || $opt_V) ;
system ( $cmd ) ;
if ($?) {
print STDERR "$cmd error $? \n" ;
exit(1);
}
}
sub usage {
print STDERR <<END;
\nUSAGE: $0 [-v] [-k] [-f file2convert] -c {catread | scecdc | hypo71 | hypo2000 } {-d | -w | -m} [-s start_time] [-e end_time] db_to_update
END
exit(1);
}
| XProc | 4 | jreyes1108/antelope_contrib | bin/import/scec2db/scec2db.xpl | [
"BSD-2-Clause",
"MIT"
] |
Red/System [
Title: "GTK3 css management"
Author: "bitbegin"
File: %css.reds
Tabs: 4
Rights: "Copyright (C) 2020 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.txt
}
]
create-provider: func [
widget [handle!]
return: [handle!]
/local
style [handle!]
prov [handle!]
][
prov: gtk_css_provider_new
style: gtk_widget_get_style_context widget
gtk_style_context_add_provider style prov GTK_STYLE_PROVIDER_PRIORITY_USER
prov
]
remove-provider: func [
widget [handle!]
prov [handle!]
/local
style [handle!]
][
style: gtk_widget_get_style_context widget
gtk_style_context_remove_provider style prov
]
apply-provider: func [
prov [handle!]
css [c-string!]
][
gtk_css_provider_load_from_data prov css -1 null
]
free-provider: func [
prov [handle!]
][
g_object_unref prov
]
set-app-theme: func [
path [c-string!]
string? [logic!]
/local
succ [logic!]
prov [handle!]
disp [handle!]
screen [handle!]
][
prov: gtk_css_provider_new
succ: either string? [
gtk_css_provider_load_from_data prov path -1 null
][
gtk_css_provider_load_from_path prov path null
]
unless succ [exit]
disp: gdk_display_get_default
screen: gdk_display_get_default_screen disp
gtk_style_context_add_provider_for_screen screen prov GTK_STYLE_PROVIDER_PRIORITY_APPLICATION
g_object_unref prov
]
set-env-theme: func [
/local
env [str-array!]
strarr [handle!]
str [c-string!]
found [logic!]
][
env: system/env-vars
found: no
until [
strarr: g_strsplit env/item "=" 2
str: as c-string! strarr/1
if 0 = g_strcmp0 str "RED_GTK_STYLES" [
str: as c-string! strarr/2
set-app-theme str no
found: yes
]
env: env + 1
g_strfreev strarr
any [found env/item = null]
]
]
| Red | 5 | GalenIvanov/red | modules/view/backends/gtk3/css.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
#!/usr/bin/gnuplot --persist
# Requires a text file named "epoch-log.txt" in the log directory
set term png size 2000, 400
set output "./images/log.png"
# Left Y axis gets scaled to the max survivors.
# Right Y axis gets scaled to 0..255.
# 1:2 Survivors 0..N => 0..N
# 1:3 Genome length 0..50 => 0..255
# 1:4 Diversity 0..0.7 => 0..255
# 1:5 Anxiety 0..255 => 0..255
set mxtics
set ytics autofreq nomirror tc lt 2
set yrange [ 0:8000 ]
set y2range [ 0:1 ]
set y2tics autofreq nomirror tc lt 1
set grid
set key lmargin
ScaleSurvivors(s) = s
ScaleGenomeLength(y)= y*2
ScaleDiversity(d)= d
#ScaleMurders(m) = m
plot "./logs/epoch-log.txt" \
using 1:(ScaleSurvivors($2)) with lines lw 2 linecolor 2 title "Survivors", \
"" using 1:(ScaleDiversity($3)) with lines lw 2 linecolor 1 title "Diversity" axes x1y2
| Gnuplot | 4 | MYGguy/biosim4-main | tools/graphlog.gp | [
"MIT"
] |
mutation CreateTeamInvitation($inviteeEmail: String!, $inviteeRole: TeamMemberRole!, $teamID: ID!) {
createTeamInvitation(inviteeRole: $inviteeRole, inviteeEmail: $inviteeEmail, teamID: $teamID) {
id
teamID
creatorUid
inviteeEmail
inviteeRole
}
} | GraphQL | 4 | miily8310s/hoppscotch | packages/hoppscotch-app/helpers/backend/gql/mutations/CreateTeamInvitation.graphql | [
"MIT"
] |
unique template site/ceph/osdschemas/osd-fetch;
prefix '/software/components/ceph/clusters/ceph';
variable FETCHED_OSDS = {
t = dict();
rep = 2;
foreach(idx; host; CEPH_NODES) {
prof = replace('.data$', '.os', host);
d = value(format('%s:/software/components/ceph/localdaemons/osds', prof));
t[shorten_fqdn(host)] = dict(
'fqdn', host,
'osds', d
);
numosd = length(d);
if (numosd > rep){
rep = numosd;
};
};
all = dict('osdhosts', t, 'maxosd', rep);
};
'osdhosts' = FETCHED_OSDS['osdhosts'];
variable CEPH_OSD_DOWN_REPORTERS ?= FETCHED_OSDS['maxosd'] + 2;
variable CEPH_OSD_DOWN_REPORTS ?= CEPH_OSD_DOWN_REPORTERS + CEPH_OSD_DOWN_REPORTERS / 4 + 1;
| Pan | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Pan/osd-fetch.pan | [
"MIT"
] |
(kicad_pcb (version 4) (host kicad "dummy file") )
| KiCad | 1 | ondras12345/AlarmClock-hardware | ambient-linear-testing/ambient-linear-testing.kicad_pcb | [
"MIT"
] |
@###############################################
@#
@# PX4 ROS compatible message source code
@# generation for C++
@#
@# EmPy template for generating <msg>.h files
@# Based on the original template for ROS
@#
@###############################################
@# Start of Template
@#
@# Context:
@# - file_name_in (String) Source file
@# - spec (msggen.MsgSpec) Parsed specification of the .msg file
@# - search_path (dict) search paths for genmsg
@# - topics (List of String) multi-topic names
@###############################################
/****************************************************************************
*
* Copyright (C) 2013-2021 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. 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.
* 3. Neither the name PX4 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 OWNER 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.
*
****************************************************************************/
/* Auto-generated by genmsg_cpp from file @file_name_in */
@{
import genmsg.msgs
from px_generate_uorb_topic_helper import * # this is in Tools/
uorb_struct = '%s_s'%spec.short_name
uorb_struct_upper = spec.short_name.upper()
topic_name = spec.short_name
}@
#pragma once
@##############################
@# Generic Includes
@##############################
#include <uORB/uORB.h>
@##############################
@# Includes for dependencies
@##############################
@{
for field in spec.parsed_fields():
if (not field.is_builtin):
if (not field.is_header):
(package, name) = genmsg.names.package_resource_name(field.base_type)
package = package or spec.package # convert '' to package
print('#include <uORB/topics/%s.h>'%(name))
}@
@# Constants c style
#ifndef __cplusplus
@[for constant in spec.constants]@
#define @(uorb_struct_upper)_@(constant.name) @(int(constant.val))
@[end for]
#endif
@##############################
@# Main struct of message
@##############################
@{
def print_parsed_fields():
# sort fields (using a stable sort)
sorted_fields = sorted(spec.parsed_fields(), key=sizeof_field_type, reverse=True)
struct_size, padding_end_size = add_padding_bytes(sorted_fields, search_path)
# loop over all fields and print the type and name
for field in sorted_fields:
if (not field.is_header):
print_field_def(field)
}@
#ifdef __cplusplus
@#class @(uorb_struct) {
struct __EXPORT @(uorb_struct) {
@#public:
#else
struct @(uorb_struct) {
#endif
@print_parsed_fields()
#ifdef __cplusplus
@# Constants again c++-ified
@{
for constant in spec.constants:
type_name = constant.type
if type_name in type_map:
# need to add _t: int8 --> int8_t
type_px4 = type_map[type_name]
else:
raise Exception("Type {0} not supported, add to to template file!".format(type_name))
print('\tstatic constexpr %s %s = %s;'%(type_px4, constant.name, int(constant.val)))
}
#endif
};
/* register this as object request broker structure */
@[for multi_topic in topics]@
ORB_DECLARE(@multi_topic);
@[end for]
#ifdef __cplusplus
void print_message(const orb_metadata *meta, const @uorb_struct& message);
#endif
| EmberScript | 5 | lgarciaos/Firmware | msg/templates/uorb/msg.h.em | [
"BSD-3-Clause"
] |
/*******************************************************************
This file provides an example usage of upc_all_scatter collective
function as described in Section 7.3.1.2 in the UPC Spec v1.2.
********************************************************************/
#include <upc.h>
#include <upc_collective.h>
#define NUMELEMS 10
#define SRC_THREAD 1
shared int *A;
shared [] int *myA, *srcA;
shared [NUMELEMS] int B[NUMELEMS*THREADS];
int main()
{
int i;
// allocate an array distributed across all threads
A = (shared int *)upc_all_alloc(THREADS, THREADS*NUMELEMS*sizeof(int));
myA = (shared [] int *) &A[MYTHREAD];
for(i=0; i<NUMELEMS*THREADS; i++)
myA[i] = i + NUMELEMS*THREADS*MYTHREAD; // (for example)
// scatter the SRC_THREAD’s row of the array
srcA = (shared [] int *) &A[SRC_THREAD];
upc_barrier;
upc_all_scatter( B, srcA, sizeof(int)*NUMELEMS,
UPC_IN_NOSYNC | UPC_OUT_NOSYNC);
upc_barrier;
if(MYTHREAD == 0)
upc_free(A);
return 0;
}
| Unified Parallel C | 4 | maurizioabba/rose | tests/CompileTests/UPC_tests/upc_all_scatter_ex_dynamic.upc | [
"BSD-3-Clause"
] |
Prefix(:=<http://example.org/>)
Ontology(:UnsatParent
Import( <http://x.org/unsat.owl> )
)
| Web Ontology Language | 3 | jmcmurry/SciGraph | SciGraph-core/src/test/resources/ontologies/unsat_parent.owl | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated with COPASI 4.29 (Build 228) (http://www.copasi.org) at 2021-01-04T13:53:39Z -->
<?oxygen RNGSchema="http://www.copasi.org/static/schema/CopasiML.rng" type="xml"?>
<COPASI xmlns="http://www.copasi.org/static/schema" versionMajor="4" versionMinor="29" versionDevel="228" copasiSourcesModified="0">
<ListOfFunctions>
<Function key="Function_40" name="Function for Glucose transport" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_40">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv0/KMoutv0*(Glcout-Glcin/Keqv0)/(1+Glcout/KMoutv0+Glcin/KMinv0+alfav0*Glcout*Glcin/KMoutv0/KMinv0)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_264" name="Glcin" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_263" name="Glcout" order="1" role="substrate"/>
<ParameterDescription key="FunctionParameter_262" name="KMinv0" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_261" name="KMoutv0" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_250" name="Keqv0" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_265" name="Vmaxv0" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_266" name="alfav0" order="6" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_41" name="Function for Hexokinase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_41">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Inhibv1*Glcin/(Glcin+KMGlcv1)*(Vmax1v1/KMgATPv1)*(MgATP+Vmax2v1/Vmax1v1*MgATP*Mgf/KMgATPMgv1-Glc6P*MgADP/Keqv1)/(1+MgATP/KMgATPv1*(1+Mgf/KMgATPMgv1)+Mgf/KMgv1+(1.55+Glc6P/KGlc6Pv1)*(1+Mgf/KMgv1)+(Gri23P2f+MgGri23P2)/K23P2Gv1+Mgf*(Gri23P2f+MgGri23P2)/(KMgv1*KMg23P2Gv1))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_273" name="Glc6P" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_272" name="Glcin" order="1" role="substrate"/>
<ParameterDescription key="FunctionParameter_271" name="Gri23P2f" order="2" role="modifier"/>
<ParameterDescription key="FunctionParameter_270" name="Inhibv1" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_269" name="K23P2Gv1" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_268" name="KGlc6Pv1" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_267" name="KMGlcv1" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_274" name="KMg23P2Gv1" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_275" name="KMgATPMgv1" order="8" role="constant"/>
<ParameterDescription key="FunctionParameter_276" name="KMgATPv1" order="9" role="constant"/>
<ParameterDescription key="FunctionParameter_277" name="KMgv1" order="10" role="constant"/>
<ParameterDescription key="FunctionParameter_278" name="Keqv1" order="11" role="constant"/>
<ParameterDescription key="FunctionParameter_279" name="MgADP" order="12" role="product"/>
<ParameterDescription key="FunctionParameter_280" name="MgATP" order="13" role="substrate"/>
<ParameterDescription key="FunctionParameter_281" name="MgGri23P2" order="14" role="modifier"/>
<ParameterDescription key="FunctionParameter_282" name="Mgf" order="15" role="modifier"/>
<ParameterDescription key="FunctionParameter_283" name="Vmax1v1" order="16" role="constant"/>
<ParameterDescription key="FunctionParameter_284" name="Vmax2v1" order="17" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_42" name="Function for Glucosephosphate isomerase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_42">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv2*(Glc6P-Fru6P/Keqv2)/(Glc6P+KGlc6Pv2*(1+Fru6P/KFru6Pv2))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_302" name="Fru6P" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_301" name="Glc6P" order="1" role="substrate"/>
<ParameterDescription key="FunctionParameter_300" name="KFru6Pv2" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_299" name="KGlc6Pv2" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_298" name="Keqv2" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_297" name="Vmaxv2" order="5" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_43" name="Function for Phosphofructokinase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_43">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv3*(Fru6P*MgATP-Fru16P2*MgADP/Keqv3)/((Fru6P+KFru6Pv3)*(MgATP+KMgATPv3)*(1+L0v3*((1+ATPf/KATPv3)*(1+Mgf/KMgv3)/((1+(AMPf+MgAMP)/KAMPv3)*(1+Fru6P/KFru6Pv3)))^4))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_291" name="AMPf" order="0" role="modifier"/>
<ParameterDescription key="FunctionParameter_292" name="ATPf" order="1" role="modifier"/>
<ParameterDescription key="FunctionParameter_293" name="Fru16P2" order="2" role="product"/>
<ParameterDescription key="FunctionParameter_294" name="Fru6P" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_295" name="KAMPv3" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_296" name="KATPv3" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_290" name="KFru6Pv3" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_289" name="KMgATPv3" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_288" name="KMgv3" order="8" role="constant"/>
<ParameterDescription key="FunctionParameter_287" name="Keqv3" order="9" role="constant"/>
<ParameterDescription key="FunctionParameter_286" name="L0v3" order="10" role="constant"/>
<ParameterDescription key="FunctionParameter_285" name="MgADP" order="11" role="product"/>
<ParameterDescription key="FunctionParameter_303" name="MgAMP" order="12" role="modifier"/>
<ParameterDescription key="FunctionParameter_304" name="MgATP" order="13" role="substrate"/>
<ParameterDescription key="FunctionParameter_305" name="Mgf" order="14" role="modifier"/>
<ParameterDescription key="FunctionParameter_306" name="Vmaxv3" order="15" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_44" name="Function for Aldolase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_44">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv4/KFru16P2v4*(Fru16P2-GraP*DHAP/Keqv4)/(1+Fru16P2/KFru16P2v4+GraP/KiGraPv4+DHAP*(GraP+KGraPv4)/(KDHAPv4*KiGraPv4)+Fru16P2*GraP/(KFru16P2v4*KiiGraPv4))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_322" name="DHAP" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_321" name="Fru16P2" order="1" role="substrate"/>
<ParameterDescription key="FunctionParameter_320" name="GraP" order="2" role="product"/>
<ParameterDescription key="FunctionParameter_319" name="KDHAPv4" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_318" name="KFru16P2v4" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_317" name="KGraPv4" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_316" name="Keqv4" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_315" name="KiGraPv4" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_314" name="KiiGraPv4" order="8" role="constant"/>
<ParameterDescription key="FunctionParameter_313" name="Vmaxv4" order="9" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_45" name="Function for Triosephosphate isomerase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_45">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv5*(DHAP-GraP/Keqv5)/(DHAP+KDHAPv5*(1+GraP/KGraPv5))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_326" name="DHAP" order="0" role="substrate"/>
<ParameterDescription key="FunctionParameter_325" name="GraP" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_324" name="KDHAPv5" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_323" name="KGraPv5" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_307" name="Keqv5" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_308" name="Vmaxv5" order="5" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_46" name="Function for Glyceraldehyde 3-phosphate dehydrogenase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_46">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv6/(KNADv6*KGraPv6*KPv6)*(NAD*GraP*Phi-Gri13P2*NADH/Keqv6)/((1+NAD/KNADv6)*(1+GraP/KGraPv6)*(1+Phi/KPv6)+(1+NADH/KNADHv6)*(1+Gri13P2/K13P2Gv6)-1)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_328" name="GraP" order="0" role="substrate"/>
<ParameterDescription key="FunctionParameter_327" name="Gri13P2" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_312" name="K13P2Gv6" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_311" name="KGraPv6" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_310" name="KNADHv6" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_309" name="KNADv6" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_329" name="KPv6" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_330" name="Keqv6" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_331" name="NAD" order="8" role="substrate"/>
<ParameterDescription key="FunctionParameter_332" name="NADH" order="9" role="product"/>
<ParameterDescription key="FunctionParameter_333" name="Phi" order="10" role="substrate"/>
<ParameterDescription key="FunctionParameter_334" name="Vmaxv6" order="11" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_47" name="Function for Phosphoglycerate kinase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_47">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv7/(KMgADPv7*K13P2Gv7)*(MgADP*Gri13P2-MgATP*Gri3P/Keqv7)/((1+MgADP/KMgADPv7)*(1+Gri13P2/K13P2Gv7)+(1+MgATP/KMgATPv7)*(1+Gri3P/K3PGv7)-1)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_346" name="Gri13P2" order="0" role="substrate"/>
<ParameterDescription key="FunctionParameter_345" name="Gri3P" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_344" name="K13P2Gv7" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_343" name="K3PGv7" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_342" name="KMgADPv7" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_341" name="KMgATPv7" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_340" name="Keqv7" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_339" name="MgADP" order="7" role="substrate"/>
<ParameterDescription key="FunctionParameter_338" name="MgATP" order="8" role="product"/>
<ParameterDescription key="FunctionParameter_337" name="Vmaxv7" order="9" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_48" name="Function for Bisphosphoglycerate mutase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_48">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
kDPGMv8*(Gri13P2-(Gri23P2f+MgGri23P2)/Keqv8)/(1+(Gri23P2f+MgGri23P2)/K23P2Gv8)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_354" name="Gri13P2" order="0" role="substrate"/>
<ParameterDescription key="FunctionParameter_353" name="Gri23P2f" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_352" name="K23P2Gv8" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_351" name="Keqv8" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_350" name="MgGri23P2" order="4" role="modifier"/>
<ParameterDescription key="FunctionParameter_349" name="kDPGMv8" order="5" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_49" name="Function for Bisphosphoglycerate phosphatase" type="UserDefined" reversible="unspecified">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_49">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv9*(Gri23P2f+MgGri23P2-Gri3P/Keqv9)/(Gri23P2f+MgGri23P2+K23P2Gv9)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_356" name="Gri23P2f" order="0" role="substrate"/>
<ParameterDescription key="FunctionParameter_355" name="Gri3P" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_336" name="K23P2Gv9" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_335" name="Keqv9" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_347" name="MgGri23P2" order="4" role="modifier"/>
<ParameterDescription key="FunctionParameter_348" name="Vmaxv9" order="5" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_50" name="Function for Phosphoglycerate mutase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_50">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv10*(Gri3P-Gri2P/Keqv10)/(Gri3P+K3PGv10*(1+Gri2P/K2PGv10))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_362" name="Gri2P" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_361" name="Gri3P" order="1" role="substrate"/>
<ParameterDescription key="FunctionParameter_360" name="K2PGv10" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_359" name="K3PGv10" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_358" name="Keqv10" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_357" name="Vmaxv10" order="5" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_51" name="Function for Enolase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_51">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv11*(Gri2P-PEP/Keqv11)/(Gri2P+K2PGv11*(1+PEP/KPEPv11))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_368" name="Gri2P" order="0" role="substrate"/>
<ParameterDescription key="FunctionParameter_367" name="K2PGv11" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_366" name="KPEPv11" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_365" name="Keqv11" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_364" name="PEP" order="4" role="product"/>
<ParameterDescription key="FunctionParameter_363" name="Vmaxv11" order="5" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_52" name="Function for Pyruvate kinase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_52">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv12*(PEP*MgADP-Pyr*MgATP/Keqv12)/((PEP+KPEPv12)*(MgADP+KMgADPv12)*(1+L0v12*(1+(ATPf+MgATP)/KATPv12)^4/((1+PEP/KPEPv12)^4*(1+Fru16P2/KFru16P2v12)^4)))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_374" name="ATPf" order="0" role="modifier"/>
<ParameterDescription key="FunctionParameter_373" name="Fru16P2" order="1" role="modifier"/>
<ParameterDescription key="FunctionParameter_372" name="KATPv12" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_371" name="KFru16P2v12" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_370" name="KMgADPv12" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_369" name="KPEPv12" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_375" name="Keqv12" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_376" name="L0v12" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_377" name="MgADP" order="8" role="substrate"/>
<ParameterDescription key="FunctionParameter_378" name="MgATP" order="9" role="product"/>
<ParameterDescription key="FunctionParameter_379" name="PEP" order="10" role="substrate"/>
<ParameterDescription key="FunctionParameter_380" name="Pyr" order="11" role="product"/>
<ParameterDescription key="FunctionParameter_381" name="Vmaxv12" order="12" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_53" name="Function for Lactate dehydrogenase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_53">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv13*(Pyr*NADH-Lac*NAD/Keqv13)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_394" name="Keqv13" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_393" name="Lac" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_392" name="NAD" order="2" role="product"/>
<ParameterDescription key="FunctionParameter_391" name="NADH" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_390" name="Pyr" order="4" role="substrate"/>
<ParameterDescription key="FunctionParameter_389" name="Vmaxv13" order="5" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_54" name="Function for Lactate dehydrogenase_2" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_54">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
kLDHv14*(Pyr*NADPHf-Lac*NADPf/Keqv14)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_383" name="Keqv14" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_384" name="Lac" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_385" name="NADPHf" order="2" role="substrate"/>
<ParameterDescription key="FunctionParameter_386" name="NADPf" order="3" role="product"/>
<ParameterDescription key="FunctionParameter_387" name="Pyr" order="4" role="substrate"/>
<ParameterDescription key="FunctionParameter_388" name="kLDHv14" order="5" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_55" name="Function for ATPase" type="UserDefined" reversible="unspecified">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_55">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
kATPasev15*MgATP
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_399" name="MgATP" order="0" role="substrate"/>
<ParameterDescription key="FunctionParameter_398" name="kATPasev15" order="1" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_56" name="Function for Adenylate kinase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_56">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv16/(KATPv16*KAMPv16)*(MgATP*AMPf-MgADP*ADPf/Keqv16)/((1+MgATP/KATPv16)*(1+AMPf/KAMPv16)+(MgADP+ADPf)/KADPv16+MgADP*ADPf/KADPv16^2)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_396" name="ADPf" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_397" name="AMPf" order="1" role="substrate"/>
<ParameterDescription key="FunctionParameter_395" name="KADPv16" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_382" name="KAMPv16" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_400" name="KATPv16" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_401" name="Keqv16" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_402" name="MgADP" order="6" role="product"/>
<ParameterDescription key="FunctionParameter_403" name="MgATP" order="7" role="substrate"/>
<ParameterDescription key="FunctionParameter_404" name="Vmaxv16" order="8" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_57" name="Function for Glucose 6-phosphate dehydrogenase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_57">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv17/KG6Pv17/KNADPv17*(Glc6P*NADPf-GlcA6P*NADPHf/Keqv17)/(1+NADPf*(1+Glc6P/KG6Pv17)/KNADPv17+(ATPf+MgATP)/KATPv17+NADPHf/KNADPHv17+(Gri23P2f+MgGri23P2)/KPGA23v17)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_413" name="ATPf" order="0" role="modifier"/>
<ParameterDescription key="FunctionParameter_412" name="Glc6P" order="1" role="substrate"/>
<ParameterDescription key="FunctionParameter_411" name="GlcA6P" order="2" role="product"/>
<ParameterDescription key="FunctionParameter_410" name="Gri23P2f" order="3" role="modifier"/>
<ParameterDescription key="FunctionParameter_409" name="KATPv17" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_408" name="KG6Pv17" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_407" name="KNADPHv17" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_406" name="KNADPv17" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_405" name="KPGA23v17" order="8" role="constant"/>
<ParameterDescription key="FunctionParameter_414" name="Keqv17" order="9" role="constant"/>
<ParameterDescription key="FunctionParameter_415" name="MgATP" order="10" role="modifier"/>
<ParameterDescription key="FunctionParameter_416" name="MgGri23P2" order="11" role="modifier"/>
<ParameterDescription key="FunctionParameter_417" name="NADPHf" order="12" role="product"/>
<ParameterDescription key="FunctionParameter_418" name="NADPf" order="13" role="substrate"/>
<ParameterDescription key="FunctionParameter_419" name="Vmaxv17" order="14" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_58" name="Function for Phosphogluconate dehydrogenase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_58">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv18/K6PG1v18/KNADPv18*(GlcA6P*NADPf-Rul5P*NADPHf/Keqv18)/((1+NADPf/KNADPv18)*(1+GlcA6P/K6PG1v18+(Gri23P2f+MgGri23P2)/KPGA23v18)+(ATPf+MgATP)/KATPv18+NADPHf*(1+GlcA6P/K6PG2v18)/KNADPHv18)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_434" name="ATPf" order="0" role="modifier"/>
<ParameterDescription key="FunctionParameter_433" name="GlcA6P" order="1" role="substrate"/>
<ParameterDescription key="FunctionParameter_432" name="Gri23P2f" order="2" role="modifier"/>
<ParameterDescription key="FunctionParameter_431" name="K6PG1v18" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_430" name="K6PG2v18" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_429" name="KATPv18" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_428" name="KNADPHv18" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_427" name="KNADPv18" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_426" name="KPGA23v18" order="8" role="constant"/>
<ParameterDescription key="FunctionParameter_425" name="Keqv18" order="9" role="constant"/>
<ParameterDescription key="FunctionParameter_424" name="MgATP" order="10" role="modifier"/>
<ParameterDescription key="FunctionParameter_423" name="MgGri23P2" order="11" role="modifier"/>
<ParameterDescription key="FunctionParameter_422" name="NADPHf" order="12" role="product"/>
<ParameterDescription key="FunctionParameter_421" name="NADPf" order="13" role="substrate"/>
<ParameterDescription key="FunctionParameter_420" name="Rul5P" order="14" role="product"/>
<ParameterDescription key="FunctionParameter_435" name="Vmaxv18" order="15" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_59" name="Function for Glutathione reductase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_59">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv19*(GSSG*NADPHf/(KGSSGv19*KNADPHv19)-GSH^2/KGSHv19^2*NADPf/(KNADPv19*Keqv19))/(1+NADPHf*(1+GSSG/KGSSGv19)/KNADPHv19+NADPf/KNADPv19*(1+GSH*(1+GSH/KGSHv19)/KGSHv19))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_451" name="GSH" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_450" name="GSSG" order="1" role="substrate"/>
<ParameterDescription key="FunctionParameter_449" name="KGSHv19" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_448" name="KGSSGv19" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_447" name="KNADPHv19" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_446" name="KNADPv19" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_445" name="Keqv19" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_444" name="NADPHf" order="7" role="substrate"/>
<ParameterDescription key="FunctionParameter_443" name="NADPf" order="8" role="product"/>
<ParameterDescription key="FunctionParameter_442" name="Vmaxv19" order="9" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_60" name="Function for Glutathione oxidation" type="UserDefined" reversible="unspecified">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_60">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Kv20*GSH
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_455" name="GSH" order="0" role="substrate"/>
<ParameterDescription key="FunctionParameter_454" name="Kv20" order="1" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_61" name="Function for Phosphoribulose epimerase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_61">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv21*(Rul5P-Xul5P/Keqv21)/(Rul5P+KRu5Pv21*(1+Xul5P/KX5Pv21))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_452" name="KRu5Pv21" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_453" name="KX5Pv21" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_436" name="Keqv21" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_437" name="Rul5P" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_438" name="Vmaxv21" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_439" name="Xul5P" order="5" role="product"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_62" name="Function for Ribose phosphate isomerase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_62">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv22*(Rul5P-Rib5P/Keqv22)/(Rul5P+KRu5Pv22*(1+Rib5P/KR5Pv22))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_459" name="KR5Pv22" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_458" name="KRu5Pv22" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_457" name="Keqv22" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_456" name="Rib5P" order="3" role="product"/>
<ParameterDescription key="FunctionParameter_441" name="Rul5P" order="4" role="substrate"/>
<ParameterDescription key="FunctionParameter_440" name="Vmaxv22" order="5" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_63" name="Function for Transketolase 1" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_63">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv23*(Rib5P*Xul5P-GraP*Sed7P/Keqv23)/((K1v23+Rib5P)*Xul5P+(K2v23+K6v23*Sed7P)*Rib5P+(K3v23+K5v23*Sed7P)*GraP+K4v23*Sed7P+K7v23*Xul5P*GraP)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_465" name="GraP" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_464" name="K1v23" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_463" name="K2v23" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_462" name="K3v23" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_461" name="K4v23" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_460" name="K5v23" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_466" name="K6v23" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_467" name="K7v23" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_468" name="Keqv23" order="8" role="constant"/>
<ParameterDescription key="FunctionParameter_469" name="Rib5P" order="9" role="substrate"/>
<ParameterDescription key="FunctionParameter_470" name="Sed7P" order="10" role="product"/>
<ParameterDescription key="FunctionParameter_471" name="Vmaxv23" order="11" role="constant"/>
<ParameterDescription key="FunctionParameter_472" name="Xul5P" order="12" role="substrate"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_64" name="Function for Transaldolase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_64">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv24*(Sed7P*GraP-E4P*Fru6P/Keqv24)/((K1v24+GraP)*Sed7P+(K2v24+K6v24*Fru6P)*GraP+(K3v24+K5v24*Fru6P)*E4P+K4v24*Fru6P+K7v24*Sed7P*E4P)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_485" name="E4P" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_484" name="Fru6P" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_483" name="GraP" order="2" role="substrate"/>
<ParameterDescription key="FunctionParameter_482" name="K1v24" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_481" name="K2v24" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_480" name="K3v24" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_479" name="K4v24" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_478" name="K5v24" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_477" name="K6v24" order="8" role="constant"/>
<ParameterDescription key="FunctionParameter_476" name="K7v24" order="9" role="constant"/>
<ParameterDescription key="FunctionParameter_475" name="Keqv24" order="10" role="constant"/>
<ParameterDescription key="FunctionParameter_474" name="Sed7P" order="11" role="substrate"/>
<ParameterDescription key="FunctionParameter_473" name="Vmaxv24" order="12" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_65" name="Function for Phosphoribosylpyrophosphate synthetase" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_65">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv25*(Rib5P*MgATP-PRPP*MgAMP/Keqv25)/((KATPv25+MgATP)*(KR5Pv25+Rib5P))
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_498" name="KATPv25" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_497" name="KR5Pv25" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_496" name="Keqv25" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_495" name="MgAMP" order="3" role="product"/>
<ParameterDescription key="FunctionParameter_494" name="MgATP" order="4" role="substrate"/>
<ParameterDescription key="FunctionParameter_493" name="PRPP" order="5" role="product"/>
<ParameterDescription key="FunctionParameter_492" name="Rib5P" order="6" role="substrate"/>
<ParameterDescription key="FunctionParameter_491" name="Vmaxv25" order="7" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_66" name="Function for Transketolase 2" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_66">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv26*(E4P*Xul5P-GraP*Fru6P/Keqv26)/((K1v26+E4P)*Xul5P+(K2v26+K6v26*Fru6P)*E4P+(K3v26+K5v26*Fru6P)*GraP+K4v26*Fru6P+K7v26*Xul5P*GraP)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_501" name="E4P" order="0" role="substrate"/>
<ParameterDescription key="FunctionParameter_500" name="Fru6P" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_499" name="GraP" order="2" role="product"/>
<ParameterDescription key="FunctionParameter_486" name="K1v26" order="3" role="constant"/>
<ParameterDescription key="FunctionParameter_487" name="K2v26" order="4" role="constant"/>
<ParameterDescription key="FunctionParameter_488" name="K3v26" order="5" role="constant"/>
<ParameterDescription key="FunctionParameter_489" name="K4v26" order="6" role="constant"/>
<ParameterDescription key="FunctionParameter_490" name="K5v26" order="7" role="constant"/>
<ParameterDescription key="FunctionParameter_502" name="K6v26" order="8" role="constant"/>
<ParameterDescription key="FunctionParameter_503" name="K7v26" order="9" role="constant"/>
<ParameterDescription key="FunctionParameter_504" name="Keqv26" order="10" role="constant"/>
<ParameterDescription key="FunctionParameter_505" name="Vmaxv26" order="11" role="constant"/>
<ParameterDescription key="FunctionParameter_506" name="Xul5P" order="12" role="substrate"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_67" name="Function for Phosphate exchange" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_67">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv27*(Phiex-Phi/Keqv27)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_519" name="Keqv27" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_518" name="Phi" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_517" name="Phiex" order="2" role="substrate"/>
<ParameterDescription key="FunctionParameter_516" name="Vmaxv27" order="3" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_68" name="Function for Lactate exchange" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_68">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv28*(Lacex-Lac/Keqv28)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_512" name="Keqv28" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_513" name="Lac" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_514" name="Lacex" order="2" role="substrate"/>
<ParameterDescription key="FunctionParameter_515" name="Vmaxv28" order="3" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_69" name="Function for Pyruvate exchange" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_69">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Vmaxv29*(Pyrex-Pyr/Keqv29)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_508" name="Keqv29" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_509" name="Pyr" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_510" name="Pyrex" order="2" role="substrate"/>
<ParameterDescription key="FunctionParameter_511" name="Vmaxv29" order="3" role="constant"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_70" name="Function for MgATP dissociation" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_70">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
EqMult*(MgATP-Mgf*ATPf/KdATP)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_522" name="ATPf" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_521" name="EqMult" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_520" name="KdATP" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_507" name="MgATP" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_523" name="Mgf" order="4" role="product"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_71" name="Function for MgADP dissociation" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_71">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
EqMult*(MgADP-Mgf*ADPf/KdADP)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_528" name="ADPf" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_527" name="EqMult" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_526" name="KdADP" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_525" name="MgADP" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_524" name="Mgf" order="4" role="product"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_72" name="Function for MgAMP dissociation" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_72">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
EqMult*(MgAMP-Mgf*AMPf/KdAMP)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_533" name="AMPf" order="0" role="product"/>
<ParameterDescription key="FunctionParameter_532" name="EqMult" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_531" name="KdAMP" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_530" name="MgAMP" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_529" name="Mgf" order="4" role="product"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_73" name="Function for MgGri23P2 dissociation" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_73">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
EqMult*(MgGri23P2-Mgf*Gri23P2f/Kd23P2G)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_538" name="EqMult" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_537" name="Gri23P2f" order="1" role="product"/>
<ParameterDescription key="FunctionParameter_536" name="Kd23P2G" order="2" role="constant"/>
<ParameterDescription key="FunctionParameter_535" name="MgGri23P2" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_534" name="Mgf" order="4" role="product"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_74" name="Function for P1NADP dissociation" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_74">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
EqMult*(P1NADP-P1f*NADPf/Kd1)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_543" name="EqMult" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_542" name="Kd1" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_541" name="NADPf" order="2" role="product"/>
<ParameterDescription key="FunctionParameter_540" name="P1NADP" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_539" name="P1f" order="4" role="product"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_75" name="Function for P1NADPH dissociation" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_75">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
EqMult*(P1NADPH-P1f*NADPHf/Kd3)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_548" name="EqMult" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_547" name="Kd3" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_546" name="NADPHf" order="2" role="product"/>
<ParameterDescription key="FunctionParameter_545" name="P1NADPH" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_544" name="P1f" order="4" role="product"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_76" name="Function for P2NADP dissociation" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_76">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
EqMult*(P2NADP-P2f*NADPf/Kd2)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_553" name="EqMult" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_552" name="Kd2" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_551" name="NADPf" order="2" role="product"/>
<ParameterDescription key="FunctionParameter_550" name="P2NADP" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_549" name="P2f" order="4" role="product"/>
</ListOfParameterDescriptions>
</Function>
<Function key="Function_77" name="Function for P2NADPH dissociation" type="UserDefined" reversible="true">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Function_77">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
EqMult*(P2NADPH-P2f*NADPHf/Kd4)
</Expression>
<ListOfParameterDescriptions>
<ParameterDescription key="FunctionParameter_558" name="EqMult" order="0" role="constant"/>
<ParameterDescription key="FunctionParameter_557" name="Kd4" order="1" role="constant"/>
<ParameterDescription key="FunctionParameter_556" name="NADPHf" order="2" role="product"/>
<ParameterDescription key="FunctionParameter_555" name="P2NADPH" order="3" role="substrate"/>
<ParameterDescription key="FunctionParameter_554" name="P2f" order="4" role="product"/>
</ListOfParameterDescriptions>
</Function>
</ListOfFunctions>
<Model key="Model_1" name="Holzhutter2004_Erythrocyte_Metabolism" simulationType="time" timeUnit="h" volumeUnit="l" areaUnit="m²" lengthUnit="m" quantityUnit="mmol" type="deterministic" avogadroConstant="6.0221408570000002e+23">
<MiriamAnnotation>
<rdf:RDF
xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#">
<rdf:Description rdf:about="#Model_1">
<dcterms:bibliographicCitation>
<rdf:Bag>
<rdf:li>
<rdf:Description>
<CopasiMT:isDescribedBy rdf:resource="urn:miriam:pubmed:15233787"/>
</rdf:Description>
</rdf:li>
</rdf:Bag>
</dcterms:bibliographicCitation>
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2006-09-07T15:04:38Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
<dcterms:creator>
<rdf:Bag>
<rdf:li>
<rdf:Description>
<vCard:EMAIL>[email protected]</vCard:EMAIL>
<vCard:N>
<rdf:Description>
<vCard:Family>Snoep</vCard:Family>
<vCard:Given>Jacky L</vCard:Given>
</rdf:Description>
</vCard:N>
<vCard:ORG>
<rdf:Description>
<vCard:Orgname>Stellenbosh University</vCard:Orgname>
</rdf:Description>
</vCard:ORG>
</rdf:Description>
</rdf:li>
<rdf:li>
<rdf:Description>
<vCard:EMAIL>[email protected]</vCard:EMAIL>
<vCard:N>
<rdf:Description>
<vCard:Family>Dharuri</vCard:Family>
<vCard:Given>Harish</vCard:Given>
</rdf:Description>
</vCard:N>
<vCard:ORG>
<rdf:Description>
<vCard:Orgname>California Institute of Technology</vCard:Orgname>
</rdf:Description>
</vCard:ORG>
</rdf:Description>
</rdf:li>
</rdf:Bag>
</dcterms:creator>
<dcterms:modified>
<rdf:Description>
<dcterms:W3CDTF>2010-02-02T17:20:35Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:modified>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0006096"/>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0006098"/>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0006749"/>
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.pathway:hsa00010"/>
<rdf:li rdf:resource="urn:miriam:kegg.pathway:hsa00030"/>
<rdf:li rdf:resource="urn:miriam:kegg.pathway:hsa00480"/>
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1383"/>
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1859"/>
<rdf:li rdf:resource="urn:miriam:reactome:REACT_2220"/>
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:biomodels.db:BIOMD0000000070"/>
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:biomodels.db:MODEL6624180840"/>
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:taxonomy:9606"/>
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Comment>
<body xmlns="http://www.w3.org/1999/xhtml">
<p align="right">
<font color="#FFFFFF">.</font>
</p>
<p align="right">
<font color="#FFFFFF">.</font>
</p>
<p align="right">
<font color="#FFFFFF">.</font>
</p>
<p align="left">
<font face="Arial, Helvetica, sans-serif">
<b>
<a href="http://www.sbml.org/">SBML</a> level 2 code generated for the JWS Online project by Jacky Snoep using <a href="http://pysces.sourceforge.net/">PySCeS</a>
<br />
Run this model online at <a href="http://jjj.biochem.sun.ac.za/">http://jjj.biochem.sun.ac.za</a>
<br />
To cite JWS Online please refer to: Olivier, B.G. and Snoep, J.L. (2004) <a href="http://bioinformatics.oupjournals.org/cgi/content/abstract/20/13/2143">Web-based
modelling using JWS Online</a>, Bioinformatics, 20:2143-2144
</b>
</font>
</p>
<p align="right">
<font color="#FFFFFF">.</font>
</p>
<p align="right">
<font color="#FFFFFF">.</font>
</p>
<p align="right">
<font color="#FFFFFF">.</font>
</p>
<p align="right">
<font color="#FFFFFF">.</font>
</p>
<p align="right">
<font color="#FFFFFF">.</font>
</p>
<p align="right">
<font color="#FFFFFF">.</font>
</p>
<p>
<u>Biomodels Curation</u>
The model simulates the flux values as given for "kinetic model" in Table 1 of the paper. The model was successfully tested on Jarnac.
</p>
<p>This model originates from BioModels Database: A Database of Annotated Published Models (http://www.ebi.ac.uk/biomodels/). It is copyright (c) 2005-2011 The BioModels.net Team.<br />
For more information see the <a href="http://www.ebi.ac.uk/biomodels/legal.html" target="_blank">terms of use</a>.<br />
To cite BioModels Database, please use: <a href="http://www.ncbi.nlm.nih.gov/pubmed/20587024" target="_blank">Li C, Donizelli M, Rodriguez N, Dharuri H, Endler L, Chelliah V, Li L, He E, Henry A, Stefan MI, Snoep JL, Hucka M, Le Novère N, Laibe C (2010) BioModels Database: An enhanced, curated and annotated resource for published quantitative kinetic models. BMC Syst Biol., 4:92.</a></p>
</body>
</Comment>
<ListOfCompartments>
<Compartment key="Compartment_0" name="cytoplasm" simulationType="fixed" dimensionality="3" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Compartment_0">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0005737" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Compartment>
</ListOfCompartments>
<ListOfMetabolites>
<Metabolite key="Metabolite_0" name="Glucose in" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_0">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00293" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17234" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_1" name="MgATP" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_1">
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A15422" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A25107" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00002" />
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00305" />
</rdf:Bag>
</CopasiMT:hasPart>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_2" name="Glucose 6-phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_2">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00668" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17665" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_3" name="MgADP" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_3">
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16761" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A25107" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00008" />
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00305" />
</rdf:Bag>
</CopasiMT:hasPart>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_4" name="Fructose 6-phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_4">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C05345" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16084" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_5" name="Fructose 1,6-phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_5">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C05378" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A28013" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_6" name="Glyceraldehyde 3-phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_6">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00118" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A29052" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_7" name="Dihydroxyacetone phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_7">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00111" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16108" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_8" name="Phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_8">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A35780" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_9" name="NAD" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_9">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00003" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A15846" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_10" name="1,3-Bisphospho-D-glycerate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_10">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00236" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16001" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_11" name="NADH" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_11">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00004" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16908" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_12" name="3-Phospho-D-glycerate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_12">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00197" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17794" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_13" name="2,3-Bisphospho-D-glycerate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_13">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C01159" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17720" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_14" name="2-Phospho-D-glycerate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_14">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00631" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17835" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_15" name="Phosphoenolpyruvate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_15">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00074" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A18021" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_16" name="Pyruvate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_16">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A15361" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00022" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_17" name="Lactate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_17">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00256" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_18" name="NADPH" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_18">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00005" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16474" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_19" name="NADP" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_19">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00006" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A18009" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_20" name="AMP" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_20">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00020" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16027" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_21" name="ADP" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_21">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00008" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16761" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_22" name="Phospho-D-glucono-1,5-lactone" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_22">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C01236" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16938" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_23" name="Ribulose 5-phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_23">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00199" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17363" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_24" name="Oxidized Glutathione" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_24">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00127" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17858" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_25" name="Reduced Glutathione" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_25">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00051" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16856" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_26" name="Xylulose 5-phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_26">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00231" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16332" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_27" name="Ribose 5-phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_27">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00117" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17797" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_28" name="Sedoheptulose 7-phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_28">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C05382" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_29" name="Erythrose 4-phosphate" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_29">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00279" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16897" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_30" name="MgAMP" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_30">
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16027" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A25107" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00020" />
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00305" />
</rdf:Bag>
</CopasiMT:hasPart>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_31" name="ATP" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_31">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00002" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A15422" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_32" name="Mg" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_32">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00305" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A25107" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_33" name="MgGri23P2" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_33">
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17720" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A25107" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00305" />
<rdf:li rdf:resource="urn:miriam:kegg.compound:C01159" />
</rdf:Bag>
</CopasiMT:hasPart>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_34" name="Protein1 bound NADP" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_34">
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A18009" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A36080" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00006" />
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00017" />
</rdf:Bag>
</CopasiMT:hasPart>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_35" name="Protein1" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_35">
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A36080" />
</rdf:Bag>
</CopasiMT:isVersionOf>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00017" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_36" name="Protein1 bound NADPH" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_36">
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16474" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A36080" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00005" />
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00017" />
</rdf:Bag>
</CopasiMT:hasPart>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_37" name="Protein2 bound NADP" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_37">
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A18009" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A36080" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00006" />
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00017" />
</rdf:Bag>
</CopasiMT:hasPart>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_38" name="Protein2" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_38">
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A36080" />
</rdf:Bag>
</CopasiMT:isVersionOf>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00017" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_39" name="Protein2 bound NADPH" simulationType="reactions" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_39">
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A16474" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A36080" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00005" />
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00017" />
</rdf:Bag>
</CopasiMT:hasPart>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_40" name="PRPP" simulationType="fixed" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_40">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00119" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17111" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_41" name="External Lactate" simulationType="fixed" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_41">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00256" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_42" name="External Pyruvate" simulationType="fixed" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_42">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00022" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A32816" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_43" name="Glucose outside" simulationType="fixed" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_43">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.compound:C00293" />
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A17234" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
<Metabolite key="Metabolite_44" name="Phosphate external" simulationType="fixed" compartment="Compartment_0" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Metabolite_44">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.chebi:CHEBI%3A35780" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
</Metabolite>
</ListOfMetabolites>
<ListOfReactions>
<Reaction key="Reaction_0" name="Glucose transport" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_0">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:reactome:REACT_2092" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0046323" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_43" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_0" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_5001" name="Vmaxv0" value="33.6"/>
<Constant key="Parameter_5000" name="KMoutv0" value="1.7"/>
<Constant key="Parameter_4999" name="Keqv0" value="1"/>
<Constant key="Parameter_4998" name="KMinv0" value="6.9"/>
<Constant key="Parameter_4997" name="alfav0" value="0.54"/>
</ListOfConstants>
<KineticLaw function="Function_40" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_264">
<SourceParameter reference="Metabolite_0"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_263">
<SourceParameter reference="Metabolite_43"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_262">
<SourceParameter reference="Parameter_4998"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_261">
<SourceParameter reference="Parameter_5000"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_250">
<SourceParameter reference="Parameter_4999"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_265">
<SourceParameter reference="Parameter_5001"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_266">
<SourceParameter reference="Parameter_4997"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_1" name="Hexokinase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_1">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00299" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1318" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:2.7.1.2" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_0" stoichiometry="1"/>
<Substrate metabolite="Metabolite_1" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_2" stoichiometry="1"/>
<Product metabolite="Metabolite_3" stoichiometry="1"/>
</ListOfProducts>
<ListOfModifiers>
<Modifier metabolite="Metabolite_32" stoichiometry="1"/>
<Modifier metabolite="Metabolite_13" stoichiometry="1"/>
<Modifier metabolite="Metabolite_33" stoichiometry="1"/>
</ListOfModifiers>
<ListOfConstants>
<Constant key="Parameter_4996" name="Inhibv1" value="1"/>
<Constant key="Parameter_4995" name="KMGlcv1" value="0.1"/>
<Constant key="Parameter_4994" name="Vmax1v1" value="15.8"/>
<Constant key="Parameter_4993" name="KMgATPv1" value="1.44"/>
<Constant key="Parameter_4992" name="Vmax2v1" value="33.2"/>
<Constant key="Parameter_4991" name="KMgATPMgv1" value="1.14"/>
<Constant key="Parameter_4990" name="Keqv1" value="3900"/>
<Constant key="Parameter_4989" name="KMgv1" value="1.03"/>
<Constant key="Parameter_4988" name="KGlc6Pv1" value="0.0045"/>
<Constant key="Parameter_4987" name="K23P2Gv1" value="2.7"/>
<Constant key="Parameter_4986" name="KMg23P2Gv1" value="3.44"/>
</ListOfConstants>
<KineticLaw function="Function_41" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_273">
<SourceParameter reference="Metabolite_2"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_272">
<SourceParameter reference="Metabolite_0"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_271">
<SourceParameter reference="Metabolite_13"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_270">
<SourceParameter reference="Parameter_4996"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_269">
<SourceParameter reference="Parameter_4987"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_268">
<SourceParameter reference="Parameter_4988"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_267">
<SourceParameter reference="Parameter_4995"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_274">
<SourceParameter reference="Parameter_4986"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_275">
<SourceParameter reference="Parameter_4991"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_276">
<SourceParameter reference="Parameter_4993"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_277">
<SourceParameter reference="Parameter_4989"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_278">
<SourceParameter reference="Parameter_4990"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_279">
<SourceParameter reference="Metabolite_3"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_280">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_281">
<SourceParameter reference="Metabolite_33"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_282">
<SourceParameter reference="Metabolite_32"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_283">
<SourceParameter reference="Parameter_4994"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_284">
<SourceParameter reference="Parameter_4992"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_2" name="Glucosephosphate isomerase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_2">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00771" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1164" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:5.3.1.9" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_2" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_4" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4985" name="Vmaxv2" value="935"/>
<Constant key="Parameter_4984" name="Keqv2" value="0.3925"/>
<Constant key="Parameter_4983" name="KGlc6Pv2" value="0.182"/>
<Constant key="Parameter_4982" name="KFru6Pv2" value="0.071"/>
</ListOfConstants>
<KineticLaw function="Function_42" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_302">
<SourceParameter reference="Metabolite_4"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_301">
<SourceParameter reference="Metabolite_2"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_300">
<SourceParameter reference="Parameter_4982"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_299">
<SourceParameter reference="Parameter_4983"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_298">
<SourceParameter reference="Parameter_4984"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_297">
<SourceParameter reference="Parameter_4985"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_3" name="Phosphofructokinase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_3">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00756" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_736" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:2.7.1.11" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_1" stoichiometry="1"/>
<Substrate metabolite="Metabolite_4" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_5" stoichiometry="1"/>
<Product metabolite="Metabolite_3" stoichiometry="1"/>
</ListOfProducts>
<ListOfModifiers>
<Modifier metabolite="Metabolite_31" stoichiometry="1"/>
<Modifier metabolite="Metabolite_32" stoichiometry="1"/>
<Modifier metabolite="Metabolite_20" stoichiometry="1"/>
<Modifier metabolite="Metabolite_30" stoichiometry="1"/>
</ListOfModifiers>
<ListOfConstants>
<Constant key="Parameter_4981" name="Vmaxv3" value="239"/>
<Constant key="Parameter_4980" name="Keqv3" value="100000"/>
<Constant key="Parameter_4979" name="KFru6Pv3" value="0.1"/>
<Constant key="Parameter_4978" name="KMgATPv3" value="0.068"/>
<Constant key="Parameter_4977" name="L0v3" value="0.001072"/>
<Constant key="Parameter_4976" name="KATPv3" value="0.01"/>
<Constant key="Parameter_4975" name="KMgv3" value="0.44"/>
<Constant key="Parameter_4974" name="KAMPv3" value="0.033"/>
</ListOfConstants>
<KineticLaw function="Function_43" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_291">
<SourceParameter reference="Metabolite_20"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_292">
<SourceParameter reference="Metabolite_31"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_293">
<SourceParameter reference="Metabolite_5"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_294">
<SourceParameter reference="Metabolite_4"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_295">
<SourceParameter reference="Parameter_4974"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_296">
<SourceParameter reference="Parameter_4976"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_290">
<SourceParameter reference="Parameter_4979"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_289">
<SourceParameter reference="Parameter_4978"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_288">
<SourceParameter reference="Parameter_4975"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_287">
<SourceParameter reference="Parameter_4980"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_286">
<SourceParameter reference="Parameter_4977"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_285">
<SourceParameter reference="Metabolite_3"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_303">
<SourceParameter reference="Metabolite_30"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_304">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_305">
<SourceParameter reference="Metabolite_32"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_306">
<SourceParameter reference="Parameter_4981"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_4" name="Aldolase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_4">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01070" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1602" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:4.1.2.13" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_5" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_6" stoichiometry="1"/>
<Product metabolite="Metabolite_7" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4973" name="Vmaxv4" value="98.91"/>
<Constant key="Parameter_4972" name="KFru16P2v4" value="0.0071"/>
<Constant key="Parameter_4971" name="Keqv4" value="0.114"/>
<Constant key="Parameter_4970" name="KiGraPv4" value="0.0572"/>
<Constant key="Parameter_4969" name="KGraPv4" value="0.1906"/>
<Constant key="Parameter_4968" name="KDHAPv4" value="0.0364"/>
<Constant key="Parameter_4967" name="KiiGraPv4" value="0.176"/>
</ListOfConstants>
<KineticLaw function="Function_44" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_322">
<SourceParameter reference="Metabolite_7"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_321">
<SourceParameter reference="Metabolite_5"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_320">
<SourceParameter reference="Metabolite_6"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_319">
<SourceParameter reference="Parameter_4968"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_318">
<SourceParameter reference="Parameter_4972"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_317">
<SourceParameter reference="Parameter_4969"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_316">
<SourceParameter reference="Parameter_4971"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_315">
<SourceParameter reference="Parameter_4970"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_314">
<SourceParameter reference="Parameter_4967"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_313">
<SourceParameter reference="Parameter_4973"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_5" name="Triosephosphate isomerase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_5">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01015" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_775" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:5.3.1.1" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_7" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_6" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4966" name="Vmaxv5" value="5456.6"/>
<Constant key="Parameter_4965" name="Keqv5" value="0.0407"/>
<Constant key="Parameter_4964" name="KDHAPv5" value="0.838"/>
<Constant key="Parameter_4963" name="KGraPv5" value="0.428"/>
</ListOfConstants>
<KineticLaw function="Function_45" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_326">
<SourceParameter reference="Metabolite_7"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_325">
<SourceParameter reference="Metabolite_6"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_324">
<SourceParameter reference="Parameter_4964"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_323">
<SourceParameter reference="Parameter_4963"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_307">
<SourceParameter reference="Parameter_4965"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_308">
<SourceParameter reference="Parameter_4966"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_6" name="Glyceraldehyde 3-phosphate dehydrogenase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_6">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01061" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1847" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:1.2.1.12" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_6" stoichiometry="1"/>
<Substrate metabolite="Metabolite_8" stoichiometry="1"/>
<Substrate metabolite="Metabolite_9" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_11" stoichiometry="1"/>
<Product metabolite="Metabolite_10" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4962" name="Vmaxv6" value="4300"/>
<Constant key="Parameter_4961" name="KNADv6" value="0.05"/>
<Constant key="Parameter_4960" name="KGraPv6" value="0.005"/>
<Constant key="Parameter_4959" name="KPv6" value="3.9"/>
<Constant key="Parameter_4958" name="Keqv6" value="0.000192"/>
<Constant key="Parameter_4957" name="KNADHv6" value="0.0083"/>
<Constant key="Parameter_4956" name="K13P2Gv6" value="0.0035"/>
</ListOfConstants>
<KineticLaw function="Function_46" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_328">
<SourceParameter reference="Metabolite_6"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_327">
<SourceParameter reference="Metabolite_10"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_312">
<SourceParameter reference="Parameter_4956"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_311">
<SourceParameter reference="Parameter_4960"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_310">
<SourceParameter reference="Parameter_4957"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_309">
<SourceParameter reference="Parameter_4961"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_329">
<SourceParameter reference="Parameter_4959"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_330">
<SourceParameter reference="Parameter_4958"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_331">
<SourceParameter reference="Metabolite_9"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_332">
<SourceParameter reference="Metabolite_11"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_333">
<SourceParameter reference="Metabolite_8"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_334">
<SourceParameter reference="Parameter_4962"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_7" name="Phosphoglycerate kinase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_7">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01512" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1186" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:2.7.2.3" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_3" stoichiometry="1"/>
<Substrate metabolite="Metabolite_10" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_1" stoichiometry="1"/>
<Product metabolite="Metabolite_12" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4955" name="Vmaxv7" value="5000"/>
<Constant key="Parameter_4954" name="KMgADPv7" value="0.35"/>
<Constant key="Parameter_4953" name="K13P2Gv7" value="0.002"/>
<Constant key="Parameter_4952" name="Keqv7" value="1455"/>
<Constant key="Parameter_4951" name="KMgATPv7" value="0.48"/>
<Constant key="Parameter_4950" name="K3PGv7" value="1.2"/>
</ListOfConstants>
<KineticLaw function="Function_47" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_346">
<SourceParameter reference="Metabolite_10"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_345">
<SourceParameter reference="Metabolite_12"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_344">
<SourceParameter reference="Parameter_4953"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_343">
<SourceParameter reference="Parameter_4950"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_342">
<SourceParameter reference="Parameter_4954"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_341">
<SourceParameter reference="Parameter_4951"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_340">
<SourceParameter reference="Parameter_4952"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_339">
<SourceParameter reference="Metabolite_3"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_338">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_337">
<SourceParameter reference="Parameter_4955"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_8" name="Bisphosphoglycerate mutase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_8">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01662" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:5.4.2.4" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_10" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_13" stoichiometry="1"/>
</ListOfProducts>
<ListOfModifiers>
<Modifier metabolite="Metabolite_33" stoichiometry="1"/>
</ListOfModifiers>
<ListOfConstants>
<Constant key="Parameter_4949" name="kDPGMv8" value="76000"/>
<Constant key="Parameter_4948" name="Keqv8" value="100000"/>
<Constant key="Parameter_4947" name="K23P2Gv8" value="0.04"/>
</ListOfConstants>
<KineticLaw function="Function_48" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_354">
<SourceParameter reference="Metabolite_10"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_353">
<SourceParameter reference="Metabolite_13"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_352">
<SourceParameter reference="Parameter_4947"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_351">
<SourceParameter reference="Parameter_4948"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_350">
<SourceParameter reference="Metabolite_33"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_349">
<SourceParameter reference="Parameter_4949"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_9" name="Bisphosphoglycerate phosphatase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_9">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01516" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:3.1.3.13" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_13" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_12" stoichiometry="1"/>
<Product metabolite="Metabolite_8" stoichiometry="1"/>
</ListOfProducts>
<ListOfModifiers>
<Modifier metabolite="Metabolite_33" stoichiometry="1"/>
</ListOfModifiers>
<ListOfConstants>
<Constant key="Parameter_4946" name="Vmaxv9" value="0.53"/>
<Constant key="Parameter_4945" name="Keqv9" value="100000"/>
<Constant key="Parameter_4944" name="K23P2Gv9" value="0.2"/>
</ListOfConstants>
<KineticLaw function="Function_49" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_356">
<SourceParameter reference="Metabolite_13"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_355">
<SourceParameter reference="Metabolite_12"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_336">
<SourceParameter reference="Parameter_4944"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_335">
<SourceParameter reference="Parameter_4945"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_347">
<SourceParameter reference="Metabolite_33"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_348">
<SourceParameter reference="Parameter_4946"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_10" name="Phosphoglycerate mutase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_10">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01518" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_576" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:5.4.2.1" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_12" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_14" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4943" name="Vmaxv10" value="2000"/>
<Constant key="Parameter_4942" name="Keqv10" value="0.145"/>
<Constant key="Parameter_4941" name="K3PGv10" value="5"/>
<Constant key="Parameter_4940" name="K2PGv10" value="1"/>
</ListOfConstants>
<KineticLaw function="Function_50" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_362">
<SourceParameter reference="Metabolite_14"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_361">
<SourceParameter reference="Metabolite_12"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_360">
<SourceParameter reference="Parameter_4940"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_359">
<SourceParameter reference="Parameter_4941"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_358">
<SourceParameter reference="Parameter_4942"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_357">
<SourceParameter reference="Parameter_4943"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_11" name="Enolase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_11">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00658" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1400" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:4.2.1.11" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_14" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_15" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4939" name="Vmaxv11" value="1500"/>
<Constant key="Parameter_4938" name="Keqv11" value="1.7"/>
<Constant key="Parameter_4937" name="K2PGv11" value="1"/>
<Constant key="Parameter_4936" name="KPEPv11" value="1"/>
</ListOfConstants>
<KineticLaw function="Function_51" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_368">
<SourceParameter reference="Metabolite_14"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_367">
<SourceParameter reference="Parameter_4937"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_366">
<SourceParameter reference="Parameter_4936"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_365">
<SourceParameter reference="Parameter_4938"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_364">
<SourceParameter reference="Metabolite_15"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_363">
<SourceParameter reference="Parameter_4939"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_12" name="Pyruvate kinase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_12">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00200" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1911" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:2.7.1.40" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_15" stoichiometry="1"/>
<Substrate metabolite="Metabolite_3" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_1" stoichiometry="1"/>
<Product metabolite="Metabolite_16" stoichiometry="1"/>
</ListOfProducts>
<ListOfModifiers>
<Modifier metabolite="Metabolite_31" stoichiometry="1"/>
<Modifier metabolite="Metabolite_5" stoichiometry="1"/>
</ListOfModifiers>
<ListOfConstants>
<Constant key="Parameter_4935" name="Vmaxv12" value="570"/>
<Constant key="Parameter_4934" name="Keqv12" value="13790"/>
<Constant key="Parameter_4933" name="KPEPv12" value="0.225"/>
<Constant key="Parameter_4932" name="KMgADPv12" value="0.474"/>
<Constant key="Parameter_4931" name="L0v12" value="19"/>
<Constant key="Parameter_4930" name="KATPv12" value="3.39"/>
<Constant key="Parameter_4929" name="KFru16P2v12" value="0.005"/>
</ListOfConstants>
<KineticLaw function="Function_52" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_374">
<SourceParameter reference="Metabolite_31"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_373">
<SourceParameter reference="Metabolite_5"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_372">
<SourceParameter reference="Parameter_4930"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_371">
<SourceParameter reference="Parameter_4929"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_370">
<SourceParameter reference="Parameter_4932"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_369">
<SourceParameter reference="Parameter_4933"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_375">
<SourceParameter reference="Parameter_4934"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_376">
<SourceParameter reference="Parameter_4931"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_377">
<SourceParameter reference="Metabolite_3"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_378">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_379">
<SourceParameter reference="Metabolite_15"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_380">
<SourceParameter reference="Metabolite_16"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_381">
<SourceParameter reference="Parameter_4935"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_13" name="Lactate dehydrogenase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_13">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00703" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_178" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:1.1.1.27" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_11" stoichiometry="1"/>
<Substrate metabolite="Metabolite_16" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_17" stoichiometry="1"/>
<Product metabolite="Metabolite_9" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4928" name="Vmaxv13" value="2.8e+06"/>
<Constant key="Parameter_4927" name="Keqv13" value="9090"/>
</ListOfConstants>
<KineticLaw function="Function_53" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_394">
<SourceParameter reference="Parameter_4927"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_393">
<SourceParameter reference="Metabolite_17"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_392">
<SourceParameter reference="Metabolite_9"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_391">
<SourceParameter reference="Metabolite_11"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_390">
<SourceParameter reference="Metabolite_16"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_389">
<SourceParameter reference="Parameter_4928"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_14" name="Lactate dehydrogenase_2" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_14">
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:1.1.1.27" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_16" stoichiometry="1"/>
<Substrate metabolite="Metabolite_18" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_17" stoichiometry="1"/>
<Product metabolite="Metabolite_19" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4926" name="kLDHv14" value="243.4"/>
<Constant key="Parameter_4925" name="Keqv14" value="14181.8"/>
</ListOfConstants>
<KineticLaw function="Function_54" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_383">
<SourceParameter reference="Parameter_4925"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_384">
<SourceParameter reference="Metabolite_17"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_385">
<SourceParameter reference="Metabolite_18"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_386">
<SourceParameter reference="Metabolite_19"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_387">
<SourceParameter reference="Metabolite_16"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_388">
<SourceParameter reference="Parameter_4926"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_15" name="ATPase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_15">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00086" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:3.6.1.3" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_1" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_8" stoichiometry="1"/>
<Product metabolite="Metabolite_3" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4924" name="kATPasev15" value="1.68"/>
</ListOfConstants>
<KineticLaw function="Function_55" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_399">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_398">
<SourceParameter reference="Parameter_4924"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_16" name="Adenylate kinase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_16">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00127" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:2.7.4.3" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_1" stoichiometry="1"/>
<Substrate metabolite="Metabolite_20" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_21" stoichiometry="1"/>
<Product metabolite="Metabolite_3" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4923" name="Vmaxv16" value="1380"/>
<Constant key="Parameter_4922" name="KATPv16" value="0.09"/>
<Constant key="Parameter_4921" name="KAMPv16" value="0.08"/>
<Constant key="Parameter_4920" name="Keqv16" value="0.25"/>
<Constant key="Parameter_4919" name="KADPv16" value="0.11"/>
</ListOfConstants>
<KineticLaw function="Function_56" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_396">
<SourceParameter reference="Metabolite_21"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_397">
<SourceParameter reference="Metabolite_20"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_395">
<SourceParameter reference="Parameter_4919"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_382">
<SourceParameter reference="Parameter_4921"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_400">
<SourceParameter reference="Parameter_4922"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_401">
<SourceParameter reference="Parameter_4920"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_402">
<SourceParameter reference="Metabolite_3"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_403">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_404">
<SourceParameter reference="Parameter_4923"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_17" name="Glucose 6-phosphate dehydrogenase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_17">
<CopasiMT:hasVersion>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1125" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1868" />
</rdf:Bag>
</CopasiMT:hasVersion>
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00835" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:1.1.1.49" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_2" stoichiometry="1"/>
<Substrate metabolite="Metabolite_19" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_22" stoichiometry="1"/>
<Product metabolite="Metabolite_18" stoichiometry="1"/>
</ListOfProducts>
<ListOfModifiers>
<Modifier metabolite="Metabolite_31" stoichiometry="1"/>
<Modifier metabolite="Metabolite_1" stoichiometry="1"/>
<Modifier metabolite="Metabolite_13" stoichiometry="1"/>
<Modifier metabolite="Metabolite_33" stoichiometry="1"/>
</ListOfModifiers>
<ListOfConstants>
<Constant key="Parameter_4918" name="Vmaxv17" value="162"/>
<Constant key="Parameter_4917" name="KG6Pv17" value="0.0667"/>
<Constant key="Parameter_4916" name="KNADPv17" value="0.00367"/>
<Constant key="Parameter_4915" name="Keqv17" value="2000"/>
<Constant key="Parameter_4914" name="KATPv17" value="0.749"/>
<Constant key="Parameter_4913" name="KNADPHv17" value="0.00312"/>
<Constant key="Parameter_4912" name="KPGA23v17" value="2.289"/>
</ListOfConstants>
<KineticLaw function="Function_57" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_413">
<SourceParameter reference="Metabolite_31"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_412">
<SourceParameter reference="Metabolite_2"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_411">
<SourceParameter reference="Metabolite_22"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_410">
<SourceParameter reference="Metabolite_13"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_409">
<SourceParameter reference="Parameter_4914"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_408">
<SourceParameter reference="Parameter_4917"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_407">
<SourceParameter reference="Parameter_4913"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_406">
<SourceParameter reference="Parameter_4916"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_405">
<SourceParameter reference="Parameter_4912"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_414">
<SourceParameter reference="Parameter_4915"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_415">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_416">
<SourceParameter reference="Metabolite_33"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_417">
<SourceParameter reference="Metabolite_18"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_418">
<SourceParameter reference="Metabolite_19"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_419">
<SourceParameter reference="Parameter_4918"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_18" name="Phosphogluconate dehydrogenase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_18">
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01528" />
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R02035" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:hasPart>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:reactome:REACT_2072" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_611" />
</rdf:Bag>
</CopasiMT:hasPart>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:1.1.1.44" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_22" stoichiometry="1"/>
<Substrate metabolite="Metabolite_19" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_23" stoichiometry="1"/>
<Product metabolite="Metabolite_18" stoichiometry="1"/>
</ListOfProducts>
<ListOfModifiers>
<Modifier metabolite="Metabolite_13" stoichiometry="1"/>
<Modifier metabolite="Metabolite_33" stoichiometry="1"/>
<Modifier metabolite="Metabolite_31" stoichiometry="1"/>
<Modifier metabolite="Metabolite_1" stoichiometry="1"/>
</ListOfModifiers>
<ListOfConstants>
<Constant key="Parameter_4911" name="Vmaxv18" value="1575"/>
<Constant key="Parameter_4910" name="K6PG1v18" value="0.01"/>
<Constant key="Parameter_4909" name="KNADPv18" value="0.018"/>
<Constant key="Parameter_4908" name="Keqv18" value="141.7"/>
<Constant key="Parameter_4907" name="KPGA23v18" value="0.12"/>
<Constant key="Parameter_4906" name="KATPv18" value="0.154"/>
<Constant key="Parameter_4905" name="K6PG2v18" value="0.058"/>
<Constant key="Parameter_4904" name="KNADPHv18" value="0.0045"/>
</ListOfConstants>
<KineticLaw function="Function_58" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_434">
<SourceParameter reference="Metabolite_31"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_433">
<SourceParameter reference="Metabolite_22"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_432">
<SourceParameter reference="Metabolite_13"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_431">
<SourceParameter reference="Parameter_4910"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_430">
<SourceParameter reference="Parameter_4905"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_429">
<SourceParameter reference="Parameter_4906"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_428">
<SourceParameter reference="Parameter_4904"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_427">
<SourceParameter reference="Parameter_4909"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_426">
<SourceParameter reference="Parameter_4907"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_425">
<SourceParameter reference="Parameter_4908"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_424">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_423">
<SourceParameter reference="Metabolite_33"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_422">
<SourceParameter reference="Metabolite_18"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_421">
<SourceParameter reference="Metabolite_19"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_420">
<SourceParameter reference="Metabolite_23"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_435">
<SourceParameter reference="Parameter_4911"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_19" name="Glutathione reductase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_19">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R00094" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_2220" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:1.8.1.7" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_24" stoichiometry="1"/>
<Substrate metabolite="Metabolite_18" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_25" stoichiometry="2"/>
<Product metabolite="Metabolite_19" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4903" name="Vmaxv19" value="90"/>
<Constant key="Parameter_4902" name="KGSSGv19" value="0.0652"/>
<Constant key="Parameter_4901" name="KNADPHv19" value="0.00852"/>
<Constant key="Parameter_4900" name="KGSHv19" value="20"/>
<Constant key="Parameter_4899" name="KNADPv19" value="0.07"/>
<Constant key="Parameter_4898" name="Keqv19" value="1.04"/>
</ListOfConstants>
<KineticLaw function="Function_59" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_451">
<SourceParameter reference="Metabolite_25"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_450">
<SourceParameter reference="Metabolite_24"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_449">
<SourceParameter reference="Parameter_4900"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_448">
<SourceParameter reference="Parameter_4902"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_447">
<SourceParameter reference="Parameter_4901"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_446">
<SourceParameter reference="Parameter_4899"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_445">
<SourceParameter reference="Parameter_4898"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_444">
<SourceParameter reference="Metabolite_18"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_443">
<SourceParameter reference="Metabolite_19"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_442">
<SourceParameter reference="Parameter_4903"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_20" name="Glutathione oxidation" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_20">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:reactome:REACT_2037" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:1.8.1.7" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_25" stoichiometry="2"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_24" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4897" name="Kv20" value="0.03"/>
</ListOfConstants>
<KineticLaw function="Function_60" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_455">
<SourceParameter reference="Metabolite_25"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_454">
<SourceParameter reference="Parameter_4897"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_21" name="Phosphoribulose epimerase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_21">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01529" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1522" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:5.1.3.1" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_23" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_26" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4896" name="Vmaxv21" value="4634"/>
<Constant key="Parameter_4895" name="Keqv21" value="2.7"/>
<Constant key="Parameter_4894" name="KRu5Pv21" value="0.19"/>
<Constant key="Parameter_4893" name="KX5Pv21" value="0.5"/>
</ListOfConstants>
<KineticLaw function="Function_61" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_452">
<SourceParameter reference="Parameter_4894"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_453">
<SourceParameter reference="Parameter_4893"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_436">
<SourceParameter reference="Parameter_4895"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_437">
<SourceParameter reference="Metabolite_23"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_438">
<SourceParameter reference="Parameter_4896"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_439">
<SourceParameter reference="Metabolite_26"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_22" name="Ribose phosphate isomerase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_22">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:5.3.1.6" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01056" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_2033" />
</rdf:Bag>
</CopasiMT:is>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_23" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_27" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4892" name="Vmaxv22" value="730"/>
<Constant key="Parameter_4891" name="Keqv22" value="3"/>
<Constant key="Parameter_4890" name="KRu5Pv22" value="0.78"/>
<Constant key="Parameter_4889" name="KR5Pv22" value="2.2"/>
</ListOfConstants>
<KineticLaw function="Function_62" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_459">
<SourceParameter reference="Parameter_4889"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_458">
<SourceParameter reference="Parameter_4890"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_457">
<SourceParameter reference="Parameter_4891"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_456">
<SourceParameter reference="Metabolite_27"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_441">
<SourceParameter reference="Metabolite_23"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_440">
<SourceParameter reference="Parameter_4892"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_23" name="Transketolase 1" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_23">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01641" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1629" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:2.2.1.1" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_26" stoichiometry="1"/>
<Substrate metabolite="Metabolite_27" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_6" stoichiometry="1"/>
<Product metabolite="Metabolite_28" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4888" name="Vmaxv23" value="23.5"/>
<Constant key="Parameter_4887" name="Keqv23" value="1.05"/>
<Constant key="Parameter_4886" name="K1v23" value="0.4177"/>
<Constant key="Parameter_4885" name="K2v23" value="0.3055"/>
<Constant key="Parameter_4884" name="K6v23" value="0.00774"/>
<Constant key="Parameter_4883" name="K3v23" value="12.432"/>
<Constant key="Parameter_4882" name="K5v23" value="0.41139"/>
<Constant key="Parameter_4881" name="K4v23" value="0.00496"/>
<Constant key="Parameter_4880" name="K7v23" value="48.8"/>
</ListOfConstants>
<KineticLaw function="Function_63" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_465">
<SourceParameter reference="Metabolite_6"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_464">
<SourceParameter reference="Parameter_4886"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_463">
<SourceParameter reference="Parameter_4885"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_462">
<SourceParameter reference="Parameter_4883"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_461">
<SourceParameter reference="Parameter_4881"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_460">
<SourceParameter reference="Parameter_4882"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_466">
<SourceParameter reference="Parameter_4884"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_467">
<SourceParameter reference="Parameter_4880"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_468">
<SourceParameter reference="Parameter_4887"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_469">
<SourceParameter reference="Metabolite_27"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_470">
<SourceParameter reference="Metabolite_28"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_471">
<SourceParameter reference="Parameter_4888"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_472">
<SourceParameter reference="Metabolite_26"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_24" name="Transaldolase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_24">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01827" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_479" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:2.2.1.2" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_6" stoichiometry="1"/>
<Substrate metabolite="Metabolite_28" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_29" stoichiometry="1"/>
<Product metabolite="Metabolite_4" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4879" name="Vmaxv24" value="27.2"/>
<Constant key="Parameter_4878" name="Keqv24" value="1.05"/>
<Constant key="Parameter_4877" name="K1v24" value="0.00823"/>
<Constant key="Parameter_4876" name="K2v24" value="0.04765"/>
<Constant key="Parameter_4875" name="K6v24" value="0.4653"/>
<Constant key="Parameter_4874" name="K3v24" value="0.1733"/>
<Constant key="Parameter_4873" name="K5v24" value="0.8683"/>
<Constant key="Parameter_4872" name="K4v24" value="0.006095"/>
<Constant key="Parameter_4871" name="K7v24" value="2.524"/>
</ListOfConstants>
<KineticLaw function="Function_64" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_485">
<SourceParameter reference="Metabolite_29"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_484">
<SourceParameter reference="Metabolite_4"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_483">
<SourceParameter reference="Metabolite_6"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_482">
<SourceParameter reference="Parameter_4877"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_481">
<SourceParameter reference="Parameter_4876"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_480">
<SourceParameter reference="Parameter_4874"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_479">
<SourceParameter reference="Parameter_4872"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_478">
<SourceParameter reference="Parameter_4873"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_477">
<SourceParameter reference="Parameter_4875"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_476">
<SourceParameter reference="Parameter_4871"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_475">
<SourceParameter reference="Parameter_4878"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_474">
<SourceParameter reference="Metabolite_28"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_473">
<SourceParameter reference="Parameter_4879"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_25" name="Phosphoribosylpyrophosphate synthetase" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_25">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01049" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_2023" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:2.7.6.1" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_1" stoichiometry="1"/>
<Substrate metabolite="Metabolite_27" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_30" stoichiometry="1"/>
<Product metabolite="Metabolite_40" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4870" name="Vmaxv25" value="1.1"/>
<Constant key="Parameter_4869" name="Keqv25" value="100000"/>
<Constant key="Parameter_4868" name="KATPv25" value="0.03"/>
<Constant key="Parameter_4867" name="KR5Pv25" value="0.57"/>
</ListOfConstants>
<KineticLaw function="Function_65" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_498">
<SourceParameter reference="Parameter_4868"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_497">
<SourceParameter reference="Parameter_4867"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_496">
<SourceParameter reference="Parameter_4869"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_495">
<SourceParameter reference="Metabolite_30"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_494">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_493">
<SourceParameter reference="Metabolite_40"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_492">
<SourceParameter reference="Metabolite_27"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_491">
<SourceParameter reference="Parameter_4870"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_26" name="Transketolase 2" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_26">
<CopasiMT:is>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:kegg.reaction:R01830" />
<rdf:li rdf:resource="urn:miriam:reactome:REACT_1811" />
</rdf:Bag>
</CopasiMT:is>
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:ec-code:2.2.1.1" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_26" stoichiometry="1"/>
<Substrate metabolite="Metabolite_29" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_6" stoichiometry="1"/>
<Product metabolite="Metabolite_4" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4866" name="Vmaxv26" value="23.5"/>
<Constant key="Parameter_4865" name="Keqv26" value="1.2"/>
<Constant key="Parameter_4864" name="K1v26" value="0.00184"/>
<Constant key="Parameter_4863" name="K2v26" value="0.3055"/>
<Constant key="Parameter_4862" name="K6v26" value="0.122"/>
<Constant key="Parameter_4861" name="K3v26" value="0.0548"/>
<Constant key="Parameter_4860" name="K5v26" value="0.0287"/>
<Constant key="Parameter_4859" name="K4v26" value="0.0003"/>
<Constant key="Parameter_4858" name="K7v26" value="0.215"/>
</ListOfConstants>
<KineticLaw function="Function_66" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_501">
<SourceParameter reference="Metabolite_29"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_500">
<SourceParameter reference="Metabolite_4"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_499">
<SourceParameter reference="Metabolite_6"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_486">
<SourceParameter reference="Parameter_4864"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_487">
<SourceParameter reference="Parameter_4863"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_488">
<SourceParameter reference="Parameter_4861"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_489">
<SourceParameter reference="Parameter_4859"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_490">
<SourceParameter reference="Parameter_4860"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_502">
<SourceParameter reference="Parameter_4862"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_503">
<SourceParameter reference="Parameter_4858"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_504">
<SourceParameter reference="Parameter_4865"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_505">
<SourceParameter reference="Parameter_4866"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_506">
<SourceParameter reference="Metabolite_26"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_27" name="Phosphate exchange" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_27">
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0009935" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_44" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_8" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4857" name="Vmaxv27" value="100"/>
<Constant key="Parameter_4856" name="Keqv27" value="1"/>
</ListOfConstants>
<KineticLaw function="Function_67" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_519">
<SourceParameter reference="Parameter_4856"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_518">
<SourceParameter reference="Metabolite_8"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_517">
<SourceParameter reference="Metabolite_44"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_516">
<SourceParameter reference="Parameter_4857"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_28" name="Lactate exchange" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_28">
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0009935" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_41" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_17" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4855" name="Vmaxv28" value="10000"/>
<Constant key="Parameter_4854" name="Keqv28" value="1"/>
</ListOfConstants>
<KineticLaw function="Function_68" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_512">
<SourceParameter reference="Parameter_4854"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_513">
<SourceParameter reference="Metabolite_17"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_514">
<SourceParameter reference="Metabolite_41"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_515">
<SourceParameter reference="Parameter_4855"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_29" name="Pyruvate exchange" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_29">
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0009935" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_42" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_16" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4853" name="Vmaxv29" value="10000"/>
<Constant key="Parameter_4852" name="Keqv29" value="1"/>
</ListOfConstants>
<KineticLaw function="Function_69" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_508">
<SourceParameter reference="Parameter_4852"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_509">
<SourceParameter reference="Metabolite_16"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_510">
<SourceParameter reference="Metabolite_42"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_511">
<SourceParameter reference="Parameter_4853"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_30" name="MgATP dissociation" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_30">
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0006759" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_1" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_32" stoichiometry="1"/>
<Product metabolite="Metabolite_31" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4851" name="EqMult" value="1e+07"/>
<Constant key="Parameter_4850" name="KdATP" value="0.072"/>
</ListOfConstants>
<KineticLaw function="Function_70" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_522">
<SourceParameter reference="Metabolite_31"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_521">
<SourceParameter reference="Parameter_4851"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_520">
<SourceParameter reference="Parameter_4850"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_507">
<SourceParameter reference="Metabolite_1"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_523">
<SourceParameter reference="Metabolite_32"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_31" name="MgADP dissociation" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_31">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_3" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_32" stoichiometry="1"/>
<Product metabolite="Metabolite_21" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4849" name="EqMult" value="1e+07"/>
<Constant key="Parameter_4848" name="KdADP" value="0.76"/>
</ListOfConstants>
<KineticLaw function="Function_71" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_528">
<SourceParameter reference="Metabolite_21"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_527">
<SourceParameter reference="Parameter_4849"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_526">
<SourceParameter reference="Parameter_4848"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_525">
<SourceParameter reference="Metabolite_3"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_524">
<SourceParameter reference="Metabolite_32"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_32" name="MgAMP dissociation" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_32">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_30" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_32" stoichiometry="1"/>
<Product metabolite="Metabolite_20" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4847" name="EqMult" value="1e+07"/>
<Constant key="Parameter_4846" name="KdAMP" value="16.64"/>
</ListOfConstants>
<KineticLaw function="Function_72" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_533">
<SourceParameter reference="Metabolite_20"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_532">
<SourceParameter reference="Parameter_4847"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_531">
<SourceParameter reference="Parameter_4846"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_530">
<SourceParameter reference="Metabolite_30"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_529">
<SourceParameter reference="Metabolite_32"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_33" name="MgGri23P2 dissociation" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_33">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_33" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_32" stoichiometry="1"/>
<Product metabolite="Metabolite_13" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4845" name="EqMult" value="1e+07"/>
<Constant key="Parameter_4844" name="Kd23P2G" value="1.667"/>
</ListOfConstants>
<KineticLaw function="Function_73" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_538">
<SourceParameter reference="Parameter_4845"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_537">
<SourceParameter reference="Metabolite_13"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_536">
<SourceParameter reference="Parameter_4844"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_535">
<SourceParameter reference="Metabolite_33"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_534">
<SourceParameter reference="Metabolite_32"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_34" name="P1NADP dissociation" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_34">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_34" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_35" stoichiometry="1"/>
<Product metabolite="Metabolite_19" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4843" name="EqMult" value="1e+07"/>
<Constant key="Parameter_4842" name="Kd1" value="0.0002"/>
</ListOfConstants>
<KineticLaw function="Function_74" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_543">
<SourceParameter reference="Parameter_4843"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_542">
<SourceParameter reference="Parameter_4842"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_541">
<SourceParameter reference="Metabolite_19"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_540">
<SourceParameter reference="Metabolite_34"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_539">
<SourceParameter reference="Metabolite_35"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_35" name="P1NADPH dissociation" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_35">
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0006740" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_36" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_35" stoichiometry="1"/>
<Product metabolite="Metabolite_18" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4841" name="EqMult" value="1e+07"/>
<Constant key="Parameter_4840" name="Kd3" value="1e-05"/>
</ListOfConstants>
<KineticLaw function="Function_75" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_548">
<SourceParameter reference="Parameter_4841"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_547">
<SourceParameter reference="Parameter_4840"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_546">
<SourceParameter reference="Metabolite_18"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_545">
<SourceParameter reference="Metabolite_36"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_544">
<SourceParameter reference="Metabolite_35"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_36" name="P2NADP dissociation" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_36">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2020-12-28T18:34:21Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_37" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_38" stoichiometry="1"/>
<Product metabolite="Metabolite_19" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4839" name="EqMult" value="1e+07"/>
<Constant key="Parameter_4838" name="Kd2" value="1e-05"/>
</ListOfConstants>
<KineticLaw function="Function_76" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_553">
<SourceParameter reference="Parameter_4839"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_552">
<SourceParameter reference="Parameter_4838"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_551">
<SourceParameter reference="Metabolite_19"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_550">
<SourceParameter reference="Metabolite_37"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_549">
<SourceParameter reference="Metabolite_38"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
<Reaction key="Reaction_37" name="P2NADPH dissociation" reversible="true" fast="false" addNoise="false">
<MiriamAnnotation>
<rdf:RDF xmlns:CopasiMT="http://www.copasi.org/RDF/MiriamTerms#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Reaction_37">
<CopasiMT:isVersionOf>
<rdf:Bag>
<rdf:li rdf:resource="urn:miriam:obo.go:GO%3A0006735" />
</rdf:Bag>
</CopasiMT:isVersionOf>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ListOfSubstrates>
<Substrate metabolite="Metabolite_39" stoichiometry="1"/>
</ListOfSubstrates>
<ListOfProducts>
<Product metabolite="Metabolite_38" stoichiometry="1"/>
<Product metabolite="Metabolite_18" stoichiometry="1"/>
</ListOfProducts>
<ListOfConstants>
<Constant key="Parameter_4837" name="EqMult" value="1e+07"/>
<Constant key="Parameter_4836" name="Kd4" value="0.0002"/>
</ListOfConstants>
<KineticLaw function="Function_77" unitType="Default" scalingCompartment="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]">
<ListOfCallParameters>
<CallParameter functionParameter="FunctionParameter_558">
<SourceParameter reference="Parameter_4837"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_557">
<SourceParameter reference="Parameter_4836"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_556">
<SourceParameter reference="Metabolite_18"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_555">
<SourceParameter reference="Metabolite_39"/>
</CallParameter>
<CallParameter functionParameter="FunctionParameter_554">
<SourceParameter reference="Metabolite_38"/>
</CallParameter>
</ListOfCallParameters>
</KineticLaw>
</Reaction>
</ListOfReactions>
<ListOfModelParameterSets activeSet="ModelParameterSet_1">
<ModelParameterSet key="ModelParameterSet_1" name="Initial State">
<MiriamAnnotation>
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#ModelParameterSet_1">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2021-01-04T13:53:18Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<ModelParameterGroup cn="String=Initial Time" type="Group">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism" value="0" type="Model" simulationType="time"/>
</ModelParameterGroup>
<ModelParameterGroup cn="String=Initial Compartment Sizes" type="Group">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm]" value="1" type="Compartment" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="String=Initial Species Values" type="Group">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Glucose in]" value="2.7498901795319102e+21" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[MgATP]" value="8.4309971997999995e+20" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Glucose 6-phosphate]" value="2.3727234976580002e+19" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[MgADP]" value="6.0221408570000007e+19" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Fructose 6-phosphate]" value="9.2138755112100014e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Fructose 1\,6-phosphate]" value="5.8414766312900004e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Glyceraldehyde 3-phosphate]" value="3.6735059227699999e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Dihydroxyacetone phosphate]" value="8.9850341586439995e+19" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Phosphate]" value="6.0173231443144003e+20" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[NAD]" value="3.932457979621e+19" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[1\,3-Bisphospho-D-glycerate]" value="3.0110704285e+17" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[NADH]" value="1.2044281714e+17" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[3-Phospho-D-glycerate]" value="3.9625686839059997e+19" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[2\,3-Bisphospho-D-glycerate]" value="1.24062123795057e+21" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[2-Phospho-D-glycerate]" value="5.0585983198799995e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Phosphoenolpyruvate]" value="6.5641335341299999e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Pyruvate]" value="5.0585983198800003e+19" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Lactate]" value="1.0119003282017099e+21" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[NADPH]" value="2.4088563428e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[NADP]" value="0" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[AMP]" value="0" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[ADP]" value="1.5055352142500001e+20" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Phospho-D-glucono-1\,5-lactone]" value="1.50553521425e+19" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Ribulose 5-phosphate]" value="2.8304062027900001e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Oxidized Glutathione]" value="2.4088563428e+17" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Reduced Glutathione]" value="1.87505377723552e+21" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Xylulose 5-phosphate]" value="7.6481188883899996e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Ribose 5-phosphate]" value="8.4309971998000005e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Sedoheptulose 7-phosphate]" value="9.2740969197799997e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Erythrose 4-phosphate]" value="3.7939487399100001e+18" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[MgAMP]" value="0" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[ATP]" value="1.5055352142500001e+20" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Mg]" value="4.8177126856000012e+20" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[MgGri23P2]" value="3.0110704285000001e+20" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Protein1 bound NADP]" value="0" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Protein1]" value="0" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Protein1 bound NADPH]" value="1.44531380568e+19" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Protein2 bound NADP]" value="0" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Protein2]" value="0" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Protein2 bound NADPH]" value="1.44531380568e+19" type="Species" simulationType="reactions"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[PRPP]" value="6.0221408570000002e+20" type="Species" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[External Lactate]" value="1.011719663976e+21" type="Species" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[External Pyruvate]" value="5.0585983198800003e+19" type="Species" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Glucose outside]" value="3.0110704285000002e+21" type="Species" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Compartments[cytoplasm],Vector=Metabolites[Phosphate external]" value="6.0221408570000002e+20" type="Species" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="String=Initial Global Quantities" type="Group">
</ModelParameterGroup>
<ModelParameterGroup cn="String=Kinetic Parameters" type="Group">
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose transport]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose transport],ParameterGroup=Parameters,Parameter=Vmaxv0" value="33.600000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose transport],ParameterGroup=Parameters,Parameter=KMoutv0" value="1.7" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose transport],ParameterGroup=Parameters,Parameter=Keqv0" value="1" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose transport],ParameterGroup=Parameters,Parameter=KMinv0" value="6.9000000000000004" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose transport],ParameterGroup=Parameters,Parameter=alfav0" value="0.54000000000000004" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=Inhibv1" value="1" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=KMGlcv1" value="0.10000000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=Vmax1v1" value="15.800000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=KMgATPv1" value="1.4399999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=Vmax2v1" value="33.200000000000003" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=KMgATPMgv1" value="1.1399999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=Keqv1" value="3900" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=KMgv1" value="1.03" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=KGlc6Pv1" value="0.0044999999999999997" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=K23P2Gv1" value="2.7000000000000002" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Hexokinase],ParameterGroup=Parameters,Parameter=KMg23P2Gv1" value="3.4399999999999999" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucosephosphate isomerase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucosephosphate isomerase],ParameterGroup=Parameters,Parameter=Vmaxv2" value="935" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucosephosphate isomerase],ParameterGroup=Parameters,Parameter=Keqv2" value="0.39250000000000002" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucosephosphate isomerase],ParameterGroup=Parameters,Parameter=KGlc6Pv2" value="0.182" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucosephosphate isomerase],ParameterGroup=Parameters,Parameter=KFru6Pv2" value="0.070999999999999994" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphofructokinase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphofructokinase],ParameterGroup=Parameters,Parameter=Vmaxv3" value="239" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphofructokinase],ParameterGroup=Parameters,Parameter=Keqv3" value="100000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphofructokinase],ParameterGroup=Parameters,Parameter=KFru6Pv3" value="0.10000000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphofructokinase],ParameterGroup=Parameters,Parameter=KMgATPv3" value="0.068000000000000005" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphofructokinase],ParameterGroup=Parameters,Parameter=L0v3" value="0.001072" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphofructokinase],ParameterGroup=Parameters,Parameter=KATPv3" value="0.01" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphofructokinase],ParameterGroup=Parameters,Parameter=KMgv3" value="0.44" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphofructokinase],ParameterGroup=Parameters,Parameter=KAMPv3" value="0.033000000000000002" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Aldolase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Aldolase],ParameterGroup=Parameters,Parameter=Vmaxv4" value="98.909999999999997" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Aldolase],ParameterGroup=Parameters,Parameter=KFru16P2v4" value="0.0071000000000000004" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Aldolase],ParameterGroup=Parameters,Parameter=Keqv4" value="0.114" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Aldolase],ParameterGroup=Parameters,Parameter=KiGraPv4" value="0.057200000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Aldolase],ParameterGroup=Parameters,Parameter=KGraPv4" value="0.19059999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Aldolase],ParameterGroup=Parameters,Parameter=KDHAPv4" value="0.036400000000000002" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Aldolase],ParameterGroup=Parameters,Parameter=KiiGraPv4" value="0.17599999999999999" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Triosephosphate isomerase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Triosephosphate isomerase],ParameterGroup=Parameters,Parameter=Vmaxv5" value="5456.6000000000004" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Triosephosphate isomerase],ParameterGroup=Parameters,Parameter=Keqv5" value="0.0407" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Triosephosphate isomerase],ParameterGroup=Parameters,Parameter=KDHAPv5" value="0.83799999999999997" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Triosephosphate isomerase],ParameterGroup=Parameters,Parameter=KGraPv5" value="0.42799999999999999" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glyceraldehyde 3-phosphate dehydrogenase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glyceraldehyde 3-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=Vmaxv6" value="4300" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glyceraldehyde 3-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=KNADv6" value="0.050000000000000003" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glyceraldehyde 3-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=KGraPv6" value="0.0050000000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glyceraldehyde 3-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=KPv6" value="3.8999999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glyceraldehyde 3-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=Keqv6" value="0.000192" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glyceraldehyde 3-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=KNADHv6" value="0.0083000000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glyceraldehyde 3-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=K13P2Gv6" value="0.0035000000000000001" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate kinase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate kinase],ParameterGroup=Parameters,Parameter=Vmaxv7" value="5000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate kinase],ParameterGroup=Parameters,Parameter=KMgADPv7" value="0.34999999999999998" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate kinase],ParameterGroup=Parameters,Parameter=K13P2Gv7" value="0.002" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate kinase],ParameterGroup=Parameters,Parameter=Keqv7" value="1455" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate kinase],ParameterGroup=Parameters,Parameter=KMgATPv7" value="0.47999999999999998" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate kinase],ParameterGroup=Parameters,Parameter=K3PGv7" value="1.2" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Bisphosphoglycerate mutase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Bisphosphoglycerate mutase],ParameterGroup=Parameters,Parameter=kDPGMv8" value="76000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Bisphosphoglycerate mutase],ParameterGroup=Parameters,Parameter=Keqv8" value="100000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Bisphosphoglycerate mutase],ParameterGroup=Parameters,Parameter=K23P2Gv8" value="0.040000000000000001" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Bisphosphoglycerate phosphatase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Bisphosphoglycerate phosphatase],ParameterGroup=Parameters,Parameter=Vmaxv9" value="0.53000000000000003" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Bisphosphoglycerate phosphatase],ParameterGroup=Parameters,Parameter=Keqv9" value="100000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Bisphosphoglycerate phosphatase],ParameterGroup=Parameters,Parameter=K23P2Gv9" value="0.20000000000000001" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate mutase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate mutase],ParameterGroup=Parameters,Parameter=Vmaxv10" value="2000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate mutase],ParameterGroup=Parameters,Parameter=Keqv10" value="0.14499999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate mutase],ParameterGroup=Parameters,Parameter=K3PGv10" value="5" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoglycerate mutase],ParameterGroup=Parameters,Parameter=K2PGv10" value="1" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Enolase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Enolase],ParameterGroup=Parameters,Parameter=Vmaxv11" value="1500" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Enolase],ParameterGroup=Parameters,Parameter=Keqv11" value="1.7" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Enolase],ParameterGroup=Parameters,Parameter=K2PGv11" value="1" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Enolase],ParameterGroup=Parameters,Parameter=KPEPv11" value="1" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate kinase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate kinase],ParameterGroup=Parameters,Parameter=Vmaxv12" value="570" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate kinase],ParameterGroup=Parameters,Parameter=Keqv12" value="13790" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate kinase],ParameterGroup=Parameters,Parameter=KPEPv12" value="0.22500000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate kinase],ParameterGroup=Parameters,Parameter=KMgADPv12" value="0.47399999999999998" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate kinase],ParameterGroup=Parameters,Parameter=L0v12" value="19" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate kinase],ParameterGroup=Parameters,Parameter=KATPv12" value="3.3900000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate kinase],ParameterGroup=Parameters,Parameter=KFru16P2v12" value="0.0050000000000000001" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Lactate dehydrogenase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Lactate dehydrogenase],ParameterGroup=Parameters,Parameter=Vmaxv13" value="2800000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Lactate dehydrogenase],ParameterGroup=Parameters,Parameter=Keqv13" value="9090" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Lactate dehydrogenase_2]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Lactate dehydrogenase_2],ParameterGroup=Parameters,Parameter=kLDHv14" value="243.40000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Lactate dehydrogenase_2],ParameterGroup=Parameters,Parameter=Keqv14" value="14181.799999999999" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[ATPase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[ATPase],ParameterGroup=Parameters,Parameter=kATPasev15" value="1.6799999999999999" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Adenylate kinase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Adenylate kinase],ParameterGroup=Parameters,Parameter=Vmaxv16" value="1380" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Adenylate kinase],ParameterGroup=Parameters,Parameter=KATPv16" value="0.089999999999999997" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Adenylate kinase],ParameterGroup=Parameters,Parameter=KAMPv16" value="0.080000000000000002" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Adenylate kinase],ParameterGroup=Parameters,Parameter=Keqv16" value="0.25" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Adenylate kinase],ParameterGroup=Parameters,Parameter=KADPv16" value="0.11" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose 6-phosphate dehydrogenase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose 6-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=Vmaxv17" value="162" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose 6-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=KG6Pv17" value="0.066699999999999995" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose 6-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=KNADPv17" value="0.0036700000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose 6-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=Keqv17" value="2000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose 6-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=KATPv17" value="0.749" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose 6-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=KNADPHv17" value="0.0031199999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glucose 6-phosphate dehydrogenase],ParameterGroup=Parameters,Parameter=KPGA23v17" value="2.2890000000000001" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphogluconate dehydrogenase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphogluconate dehydrogenase],ParameterGroup=Parameters,Parameter=Vmaxv18" value="1575" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphogluconate dehydrogenase],ParameterGroup=Parameters,Parameter=K6PG1v18" value="0.01" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphogluconate dehydrogenase],ParameterGroup=Parameters,Parameter=KNADPv18" value="0.017999999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphogluconate dehydrogenase],ParameterGroup=Parameters,Parameter=Keqv18" value="141.69999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphogluconate dehydrogenase],ParameterGroup=Parameters,Parameter=KPGA23v18" value="0.12" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphogluconate dehydrogenase],ParameterGroup=Parameters,Parameter=KATPv18" value="0.154" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphogluconate dehydrogenase],ParameterGroup=Parameters,Parameter=K6PG2v18" value="0.058000000000000003" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphogluconate dehydrogenase],ParameterGroup=Parameters,Parameter=KNADPHv18" value="0.0044999999999999997" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glutathione reductase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glutathione reductase],ParameterGroup=Parameters,Parameter=Vmaxv19" value="90" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glutathione reductase],ParameterGroup=Parameters,Parameter=KGSSGv19" value="0.065199999999999994" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glutathione reductase],ParameterGroup=Parameters,Parameter=KNADPHv19" value="0.0085199999999999998" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glutathione reductase],ParameterGroup=Parameters,Parameter=KGSHv19" value="20" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glutathione reductase],ParameterGroup=Parameters,Parameter=KNADPv19" value="0.070000000000000007" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glutathione reductase],ParameterGroup=Parameters,Parameter=Keqv19" value="1.04" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glutathione oxidation]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Glutathione oxidation],ParameterGroup=Parameters,Parameter=Kv20" value="0.029999999999999999" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribulose epimerase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribulose epimerase],ParameterGroup=Parameters,Parameter=Vmaxv21" value="4634" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribulose epimerase],ParameterGroup=Parameters,Parameter=Keqv21" value="2.7000000000000002" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribulose epimerase],ParameterGroup=Parameters,Parameter=KRu5Pv21" value="0.19" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribulose epimerase],ParameterGroup=Parameters,Parameter=KX5Pv21" value="0.5" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Ribose phosphate isomerase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Ribose phosphate isomerase],ParameterGroup=Parameters,Parameter=Vmaxv22" value="730" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Ribose phosphate isomerase],ParameterGroup=Parameters,Parameter=Keqv22" value="3" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Ribose phosphate isomerase],ParameterGroup=Parameters,Parameter=KRu5Pv22" value="0.78000000000000003" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Ribose phosphate isomerase],ParameterGroup=Parameters,Parameter=KR5Pv22" value="2.2000000000000002" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1],ParameterGroup=Parameters,Parameter=Vmaxv23" value="23.5" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1],ParameterGroup=Parameters,Parameter=Keqv23" value="1.05" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1],ParameterGroup=Parameters,Parameter=K1v23" value="0.41770000000000002" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1],ParameterGroup=Parameters,Parameter=K2v23" value="0.30549999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1],ParameterGroup=Parameters,Parameter=K6v23" value="0.0077400000000000004" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1],ParameterGroup=Parameters,Parameter=K3v23" value="12.432" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1],ParameterGroup=Parameters,Parameter=K5v23" value="0.41138999999999998" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1],ParameterGroup=Parameters,Parameter=K4v23" value="0.00496" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 1],ParameterGroup=Parameters,Parameter=K7v23" value="48.799999999999997" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase],ParameterGroup=Parameters,Parameter=Vmaxv24" value="27.199999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase],ParameterGroup=Parameters,Parameter=Keqv24" value="1.05" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase],ParameterGroup=Parameters,Parameter=K1v24" value="0.0082299999999999995" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase],ParameterGroup=Parameters,Parameter=K2v24" value="0.047649999999999998" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase],ParameterGroup=Parameters,Parameter=K6v24" value="0.46529999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase],ParameterGroup=Parameters,Parameter=K3v24" value="0.17330000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase],ParameterGroup=Parameters,Parameter=K5v24" value="0.86829999999999996" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase],ParameterGroup=Parameters,Parameter=K4v24" value="0.0060949999999999997" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transaldolase],ParameterGroup=Parameters,Parameter=K7v24" value="2.524" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribosylpyrophosphate synthetase]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribosylpyrophosphate synthetase],ParameterGroup=Parameters,Parameter=Vmaxv25" value="1.1000000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribosylpyrophosphate synthetase],ParameterGroup=Parameters,Parameter=Keqv25" value="100000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribosylpyrophosphate synthetase],ParameterGroup=Parameters,Parameter=KATPv25" value="0.029999999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphoribosylpyrophosphate synthetase],ParameterGroup=Parameters,Parameter=KR5Pv25" value="0.56999999999999995" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2],ParameterGroup=Parameters,Parameter=Vmaxv26" value="23.5" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2],ParameterGroup=Parameters,Parameter=Keqv26" value="1.2" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2],ParameterGroup=Parameters,Parameter=K1v26" value="0.0018400000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2],ParameterGroup=Parameters,Parameter=K2v26" value="0.30549999999999999" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2],ParameterGroup=Parameters,Parameter=K6v26" value="0.122" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2],ParameterGroup=Parameters,Parameter=K3v26" value="0.054800000000000001" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2],ParameterGroup=Parameters,Parameter=K5v26" value="0.0287" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2],ParameterGroup=Parameters,Parameter=K4v26" value="0.00029999999999999997" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Transketolase 2],ParameterGroup=Parameters,Parameter=K7v26" value="0.215" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphate exchange]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphate exchange],ParameterGroup=Parameters,Parameter=Vmaxv27" value="100" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Phosphate exchange],ParameterGroup=Parameters,Parameter=Keqv27" value="1" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Lactate exchange]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Lactate exchange],ParameterGroup=Parameters,Parameter=Vmaxv28" value="10000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Lactate exchange],ParameterGroup=Parameters,Parameter=Keqv28" value="1" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate exchange]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate exchange],ParameterGroup=Parameters,Parameter=Vmaxv29" value="10000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[Pyruvate exchange],ParameterGroup=Parameters,Parameter=Keqv29" value="1" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgATP dissociation]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgATP dissociation],ParameterGroup=Parameters,Parameter=EqMult" value="10000000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgATP dissociation],ParameterGroup=Parameters,Parameter=KdATP" value="0.071999999999999995" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgADP dissociation]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgADP dissociation],ParameterGroup=Parameters,Parameter=EqMult" value="10000000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgADP dissociation],ParameterGroup=Parameters,Parameter=KdADP" value="0.76000000000000001" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgAMP dissociation]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgAMP dissociation],ParameterGroup=Parameters,Parameter=EqMult" value="10000000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgAMP dissociation],ParameterGroup=Parameters,Parameter=KdAMP" value="16.640000000000001" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgGri23P2 dissociation]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgGri23P2 dissociation],ParameterGroup=Parameters,Parameter=EqMult" value="10000000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[MgGri23P2 dissociation],ParameterGroup=Parameters,Parameter=Kd23P2G" value="1.667" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P1NADP dissociation]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P1NADP dissociation],ParameterGroup=Parameters,Parameter=EqMult" value="10000000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P1NADP dissociation],ParameterGroup=Parameters,Parameter=Kd1" value="0.00020000000000000001" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P1NADPH dissociation]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P1NADPH dissociation],ParameterGroup=Parameters,Parameter=EqMult" value="10000000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P1NADPH dissociation],ParameterGroup=Parameters,Parameter=Kd3" value="1.0000000000000001e-05" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P2NADP dissociation]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P2NADP dissociation],ParameterGroup=Parameters,Parameter=EqMult" value="10000000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P2NADP dissociation],ParameterGroup=Parameters,Parameter=Kd2" value="1.0000000000000001e-05" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
<ModelParameterGroup cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P2NADPH dissociation]" type="Reaction">
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P2NADPH dissociation],ParameterGroup=Parameters,Parameter=EqMult" value="10000000" type="ReactionParameter" simulationType="fixed"/>
<ModelParameter cn="CN=Root,Model=Holzhutter2004_Erythrocyte_Metabolism,Vector=Reactions[P2NADPH dissociation],ParameterGroup=Parameters,Parameter=Kd4" value="0.00020000000000000001" type="ReactionParameter" simulationType="fixed"/>
</ModelParameterGroup>
</ModelParameterGroup>
</ModelParameterSet>
</ListOfModelParameterSets>
<StateTemplate>
<StateTemplateVariable objectReference="Model_1"/>
<StateTemplateVariable objectReference="Metabolite_1"/>
<StateTemplateVariable objectReference="Metabolite_25"/>
<StateTemplateVariable objectReference="Metabolite_6"/>
<StateTemplateVariable objectReference="Metabolite_18"/>
<StateTemplateVariable objectReference="Metabolite_4"/>
<StateTemplateVariable objectReference="Metabolite_32"/>
<StateTemplateVariable objectReference="Metabolite_8"/>
<StateTemplateVariable objectReference="Metabolite_16"/>
<StateTemplateVariable objectReference="Metabolite_19"/>
<StateTemplateVariable objectReference="Metabolite_23"/>
<StateTemplateVariable objectReference="Metabolite_12"/>
<StateTemplateVariable objectReference="Metabolite_2"/>
<StateTemplateVariable objectReference="Metabolite_10"/>
<StateTemplateVariable objectReference="Metabolite_27"/>
<StateTemplateVariable objectReference="Metabolite_7"/>
<StateTemplateVariable objectReference="Metabolite_17"/>
<StateTemplateVariable objectReference="Metabolite_21"/>
<StateTemplateVariable objectReference="Metabolite_26"/>
<StateTemplateVariable objectReference="Metabolite_14"/>
<StateTemplateVariable objectReference="Metabolite_0"/>
<StateTemplateVariable objectReference="Metabolite_13"/>
<StateTemplateVariable objectReference="Metabolite_29"/>
<StateTemplateVariable objectReference="Metabolite_30"/>
<StateTemplateVariable objectReference="Metabolite_22"/>
<StateTemplateVariable objectReference="Metabolite_35"/>
<StateTemplateVariable objectReference="Metabolite_15"/>
<StateTemplateVariable objectReference="Metabolite_11"/>
<StateTemplateVariable objectReference="Metabolite_5"/>
<StateTemplateVariable objectReference="Metabolite_20"/>
<StateTemplateVariable objectReference="Metabolite_34"/>
<StateTemplateVariable objectReference="Metabolite_37"/>
<StateTemplateVariable objectReference="Metabolite_28"/>
<StateTemplateVariable objectReference="Metabolite_3"/>
<StateTemplateVariable objectReference="Metabolite_38"/>
<StateTemplateVariable objectReference="Metabolite_33"/>
<StateTemplateVariable objectReference="Metabolite_36"/>
<StateTemplateVariable objectReference="Metabolite_39"/>
<StateTemplateVariable objectReference="Metabolite_9"/>
<StateTemplateVariable objectReference="Metabolite_31"/>
<StateTemplateVariable objectReference="Metabolite_24"/>
<StateTemplateVariable objectReference="Metabolite_40"/>
<StateTemplateVariable objectReference="Metabolite_41"/>
<StateTemplateVariable objectReference="Metabolite_42"/>
<StateTemplateVariable objectReference="Metabolite_43"/>
<StateTemplateVariable objectReference="Metabolite_44"/>
<StateTemplateVariable objectReference="Compartment_0"/>
</StateTemplate>
<InitialState type="initialState">
0 8.4309971997999995e+20 1.87505377723552e+21 3.6735059227699999e+18 2.4088563428e+18 9.2138755112100014e+18 4.8177126856000012e+20 6.0173231443144003e+20 5.0585983198800003e+19 0 2.8304062027900001e+18 3.9625686839059997e+19 2.3727234976580002e+19 3.0110704285e+17 8.4309971998000005e+18 8.9850341586439995e+19 1.0119003282017099e+21 1.5055352142500001e+20 7.6481188883899996e+18 5.0585983198799995e+18 2.7498901795319102e+21 1.24062123795057e+21 3.7939487399100001e+18 0 1.50553521425e+19 0 6.5641335341299999e+18 1.2044281714e+17 5.8414766312900004e+18 0 0 0 9.2740969197799997e+18 6.0221408570000007e+19 0 3.0110704285000001e+20 1.44531380568e+19 1.44531380568e+19 3.932457979621e+19 1.5055352142500001e+20 2.4088563428e+17 6.0221408570000002e+20 1.011719663976e+21 5.0585983198800003e+19 3.0110704285000002e+21 6.0221408570000002e+20 1
</InitialState>
</Model>
<ListOfTasks>
<Task key="Task_15" name="Steady-State" type="steadyState" scheduled="false" updateModel="false">
<Report reference="Report_11" target="" append="1" confirmOverwrite="1"/>
<Problem>
<Parameter name="JacobianRequested" type="bool" value="1"/>
<Parameter name="StabilityAnalysisRequested" type="bool" value="1"/>
</Problem>
<Method name="Enhanced Newton" type="EnhancedNewton">
<Parameter name="Resolution" type="unsignedFloat" value="1.0000000000000001e-09"/>
<Parameter name="Derivation Factor" type="unsignedFloat" value="0.001"/>
<Parameter name="Use Newton" type="bool" value="1"/>
<Parameter name="Use Integration" type="bool" value="1"/>
<Parameter name="Use Back Integration" type="bool" value="0"/>
<Parameter name="Accept Negative Concentrations" type="bool" value="0"/>
<Parameter name="Iteration Limit" type="unsignedInteger" value="50"/>
<Parameter name="Maximum duration for forward integration" type="unsignedFloat" value="1000000000"/>
<Parameter name="Maximum duration for backward integration" type="unsignedFloat" value="1000000"/>
<Parameter name="Target Criterion" type="string" value="Distance and Rate"/>
</Method>
</Task>
<Task key="Task_16" name="Time-Course" type="timeCourse" scheduled="false" updateModel="false">
<Report reference="Report_12" target="" append="1" confirmOverwrite="1"/>
<Problem>
<Parameter name="AutomaticStepSize" type="bool" value="0"/>
<Parameter name="StepNumber" type="unsignedInteger" value="100"/>
<Parameter name="StepSize" type="float" value="0.01"/>
<Parameter name="Duration" type="float" value="1"/>
<Parameter name="TimeSeriesRequested" type="bool" value="1"/>
<Parameter name="OutputStartTime" type="float" value="0"/>
<Parameter name="Output Event" type="bool" value="0"/>
<Parameter name="Start in Steady State" type="bool" value="0"/>
<Parameter name="Use Values" type="bool" value="0"/>
<Parameter name="Values" type="string" value=""/>
<Parameter name="Continue on Simultaneous Events" type="bool" value="0"/>
</Problem>
<Method name="Deterministic (LSODA)" type="Deterministic(LSODA)">
<Parameter name="Integrate Reduced Model" type="bool" value="0"/>
<Parameter name="Relative Tolerance" type="unsignedFloat" value="9.9999999999999995e-07"/>
<Parameter name="Absolute Tolerance" type="unsignedFloat" value="9.9999999999999998e-13"/>
<Parameter name="Max Internal Steps" type="unsignedInteger" value="100000"/>
<Parameter name="Max Internal Step Size" type="unsignedFloat" value="0"/>
</Method>
</Task>
<Task key="Task_17" name="Scan" type="scan" scheduled="false" updateModel="false">
<Problem>
<Parameter name="Subtask" type="unsignedInteger" value="1"/>
<ParameterGroup name="ScanItems">
</ParameterGroup>
<Parameter name="Output in subtask" type="bool" value="1"/>
<Parameter name="Adjust initial conditions" type="bool" value="0"/>
<Parameter name="Continue on Error" type="bool" value="0"/>
</Problem>
<Method name="Scan Framework" type="ScanFramework">
</Method>
</Task>
<Task key="Task_18" name="Elementary Flux Modes" type="fluxMode" scheduled="true" updateModel="false">
<Report reference="Report_22" target="BIOMOD70_efm.out" append="1" confirmOverwrite="0"/>
<Problem>
</Problem>
<Method name="EFM Algorithm" type="EFMAlgorithm">
</Method>
</Task>
<Task key="Task_19" name="Optimization" type="optimization" scheduled="false" updateModel="false">
<Report reference="Report_14" target="" append="1" confirmOverwrite="1"/>
<Problem>
<Parameter name="Subtask" type="cn" value="CN=Root,Vector=TaskList[Steady-State]"/>
<ParameterText name="ObjectiveExpression" type="expression">
</ParameterText>
<Parameter name="Maximize" type="bool" value="0"/>
<Parameter name="Randomize Start Values" type="bool" value="0"/>
<Parameter name="Calculate Statistics" type="bool" value="1"/>
<ParameterGroup name="OptimizationItemList">
</ParameterGroup>
<ParameterGroup name="OptimizationConstraintList">
</ParameterGroup>
</Problem>
<Method name="Random Search" type="RandomSearch">
<Parameter name="Log Verbosity" type="unsignedInteger" value="0"/>
<Parameter name="Number of Iterations" type="unsignedInteger" value="100000"/>
<Parameter name="Random Number Generator" type="unsignedInteger" value="1"/>
<Parameter name="Seed" type="unsignedInteger" value="0"/>
</Method>
</Task>
<Task key="Task_20" name="Parameter Estimation" type="parameterFitting" scheduled="false" updateModel="false">
<Report reference="Report_15" target="" append="1" confirmOverwrite="1"/>
<Problem>
<Parameter name="Maximize" type="bool" value="0"/>
<Parameter name="Randomize Start Values" type="bool" value="0"/>
<Parameter name="Calculate Statistics" type="bool" value="1"/>
<ParameterGroup name="OptimizationItemList">
</ParameterGroup>
<ParameterGroup name="OptimizationConstraintList">
</ParameterGroup>
<Parameter name="Steady-State" type="cn" value="CN=Root,Vector=TaskList[Steady-State]"/>
<Parameter name="Time-Course" type="cn" value="CN=Root,Vector=TaskList[Time-Course]"/>
<Parameter name="Create Parameter Sets" type="bool" value="0"/>
<Parameter name="Use Time Sens" type="bool" value="0"/>
<Parameter name="Time-Sens" type="cn" value=""/>
<ParameterGroup name="Experiment Set">
</ParameterGroup>
<ParameterGroup name="Validation Set">
<Parameter name="Weight" type="unsignedFloat" value="1"/>
<Parameter name="Threshold" type="unsignedInteger" value="5"/>
</ParameterGroup>
</Problem>
<Method name="Evolutionary Programming" type="EvolutionaryProgram">
<Parameter name="Log Verbosity" type="unsignedInteger" value="0"/>
<Parameter name="Number of Generations" type="unsignedInteger" value="200"/>
<Parameter name="Population Size" type="unsignedInteger" value="20"/>
<Parameter name="Random Number Generator" type="unsignedInteger" value="1"/>
<Parameter name="Seed" type="unsignedInteger" value="0"/>
<Parameter name="Stop after # Stalled Generations" type="unsignedInteger" value="0"/>
</Method>
</Task>
<Task key="Task_21" name="Metabolic Control Analysis" type="metabolicControlAnalysis" scheduled="false" updateModel="false">
<Report reference="Report_16" target="" append="1" confirmOverwrite="1"/>
<Problem>
<Parameter name="Steady-State" type="key" value="Task_15"/>
</Problem>
<Method name="MCA Method (Reder)" type="MCAMethod(Reder)">
<Parameter name="Modulation Factor" type="unsignedFloat" value="1.0000000000000001e-09"/>
<Parameter name="Use Reder" type="bool" value="1"/>
<Parameter name="Use Smallbone" type="bool" value="1"/>
</Method>
</Task>
<Task key="Task_22" name="Lyapunov Exponents" type="lyapunovExponents" scheduled="false" updateModel="false">
<Report reference="Report_17" target="" append="1" confirmOverwrite="1"/>
<Problem>
<Parameter name="ExponentNumber" type="unsignedInteger" value="3"/>
<Parameter name="DivergenceRequested" type="bool" value="1"/>
<Parameter name="TransientTime" type="float" value="0"/>
</Problem>
<Method name="Wolf Method" type="WolfMethod">
<Parameter name="Orthonormalization Interval" type="unsignedFloat" value="1"/>
<Parameter name="Overall time" type="unsignedFloat" value="1000"/>
<Parameter name="Relative Tolerance" type="unsignedFloat" value="9.9999999999999995e-07"/>
<Parameter name="Absolute Tolerance" type="unsignedFloat" value="9.9999999999999998e-13"/>
<Parameter name="Max Internal Steps" type="unsignedInteger" value="10000"/>
</Method>
</Task>
<Task key="Task_23" name="Time Scale Separation Analysis" type="timeScaleSeparationAnalysis" scheduled="false" updateModel="false">
<Report reference="Report_18" target="" append="1" confirmOverwrite="1"/>
<Problem>
<Parameter name="StepNumber" type="unsignedInteger" value="100"/>
<Parameter name="StepSize" type="float" value="0.01"/>
<Parameter name="Duration" type="float" value="1"/>
<Parameter name="TimeSeriesRequested" type="bool" value="1"/>
<Parameter name="OutputStartTime" type="float" value="0"/>
</Problem>
<Method name="ILDM (LSODA,Deuflhard)" type="TimeScaleSeparation(ILDM,Deuflhard)">
<Parameter name="Deuflhard Tolerance" type="unsignedFloat" value="0.0001"/>
</Method>
</Task>
<Task key="Task_24" name="Sensitivities" type="sensitivities" scheduled="false" updateModel="false">
<Report reference="Report_19" target="" append="1" confirmOverwrite="1"/>
<Problem>
<Parameter name="SubtaskType" type="unsignedInteger" value="1"/>
<ParameterGroup name="TargetFunctions">
<Parameter name="SingleObject" type="cn" value=""/>
<Parameter name="ObjectListType" type="unsignedInteger" value="7"/>
</ParameterGroup>
<ParameterGroup name="ListOfVariables">
<ParameterGroup name="Variables">
<Parameter name="SingleObject" type="cn" value=""/>
<Parameter name="ObjectListType" type="unsignedInteger" value="41"/>
</ParameterGroup>
<ParameterGroup name="Variables">
<Parameter name="SingleObject" type="cn" value=""/>
<Parameter name="ObjectListType" type="unsignedInteger" value="0"/>
</ParameterGroup>
</ParameterGroup>
</Problem>
<Method name="Sensitivities Method" type="SensitivitiesMethod">
<Parameter name="Delta factor" type="unsignedFloat" value="0.001"/>
<Parameter name="Delta minimum" type="unsignedFloat" value="9.9999999999999998e-13"/>
</Method>
</Task>
<Task key="Task_25" name="Moieties" type="moieties" scheduled="false" updateModel="false">
<Report reference="Report_20" target="" append="1" confirmOverwrite="1"/>
<Problem>
</Problem>
<Method name="Householder Reduction" type="Householder">
</Method>
</Task>
<Task key="Task_26" name="Cross Section" type="crosssection" scheduled="false" updateModel="false">
<Problem>
<Parameter name="AutomaticStepSize" type="bool" value="0"/>
<Parameter name="StepNumber" type="unsignedInteger" value="100"/>
<Parameter name="StepSize" type="float" value="0.01"/>
<Parameter name="Duration" type="float" value="1"/>
<Parameter name="TimeSeriesRequested" type="bool" value="1"/>
<Parameter name="OutputStartTime" type="float" value="0"/>
<Parameter name="Output Event" type="bool" value="0"/>
<Parameter name="Start in Steady State" type="bool" value="0"/>
<Parameter name="Use Values" type="bool" value="0"/>
<Parameter name="Values" type="string" value=""/>
<Parameter name="LimitCrossings" type="bool" value="0"/>
<Parameter name="NumCrossingsLimit" type="unsignedInteger" value="0"/>
<Parameter name="LimitOutTime" type="bool" value="0"/>
<Parameter name="LimitOutCrossings" type="bool" value="0"/>
<Parameter name="PositiveDirection" type="bool" value="1"/>
<Parameter name="NumOutCrossingsLimit" type="unsignedInteger" value="0"/>
<Parameter name="LimitUntilConvergence" type="bool" value="0"/>
<Parameter name="ConvergenceTolerance" type="float" value="0"/>
<Parameter name="Threshold" type="float" value="0"/>
<Parameter name="DelayOutputUntilConvergence" type="bool" value="0"/>
<Parameter name="OutputConvergenceTolerance" type="float" value="0"/>
<ParameterText name="TriggerExpression" type="expression">
</ParameterText>
<Parameter name="SingleVariable" type="cn" value=""/>
<Parameter name="Continue on Simultaneous Events" type="bool" value="0"/>
</Problem>
<Method name="Deterministic (LSODA)" type="Deterministic(LSODA)">
<Parameter name="Integrate Reduced Model" type="bool" value="0"/>
<Parameter name="Relative Tolerance" type="unsignedFloat" value="9.9999999999999995e-07"/>
<Parameter name="Absolute Tolerance" type="unsignedFloat" value="9.9999999999999998e-13"/>
<Parameter name="Max Internal Steps" type="unsignedInteger" value="100000"/>
<Parameter name="Max Internal Step Size" type="unsignedFloat" value="0"/>
</Method>
</Task>
<Task key="Task_27" name="Linear Noise Approximation" type="linearNoiseApproximation" scheduled="false" updateModel="false">
<Report reference="Report_21" target="" append="1" confirmOverwrite="1"/>
<Problem>
<Parameter name="Steady-State" type="key" value="Task_15"/>
</Problem>
<Method name="Linear Noise Approximation" type="LinearNoiseApproximation">
</Method>
</Task>
<Task key="Task_28" name="Time-Course Sensitivities" type="timeSensitivities" scheduled="false" updateModel="false">
<Problem>
<Parameter name="AutomaticStepSize" type="bool" value="0"/>
<Parameter name="StepNumber" type="unsignedInteger" value="100"/>
<Parameter name="StepSize" type="float" value="0.01"/>
<Parameter name="Duration" type="float" value="1"/>
<Parameter name="TimeSeriesRequested" type="bool" value="1"/>
<Parameter name="OutputStartTime" type="float" value="0"/>
<Parameter name="Output Event" type="bool" value="0"/>
<Parameter name="Start in Steady State" type="bool" value="0"/>
<Parameter name="Use Values" type="bool" value="0"/>
<Parameter name="Values" type="string" value=""/>
<ParameterGroup name="ListOfParameters">
</ParameterGroup>
<ParameterGroup name="ListOfTargets">
</ParameterGroup>
</Problem>
<Method name="LSODA Sensitivities" type="Sensitivities(LSODA)">
<Parameter name="Integrate Reduced Model" type="bool" value="0"/>
<Parameter name="Relative Tolerance" type="unsignedFloat" value="9.9999999999999995e-07"/>
<Parameter name="Absolute Tolerance" type="unsignedFloat" value="9.9999999999999998e-13"/>
<Parameter name="Max Internal Steps" type="unsignedInteger" value="10000"/>
<Parameter name="Max Internal Step Size" type="unsignedFloat" value="0"/>
</Method>
</Task>
</ListOfTasks>
<ListOfReports>
<Report key="Report_11" name="Steady-State" taskType="steadyState" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Footer>
<Object cn="CN=Root,Vector=TaskList[Steady-State]"/>
</Footer>
</Report>
<Report key="Report_12" name="Time-Course" taskType="timeCourse" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Header>
<Object cn="CN=Root,Vector=TaskList[Time-Course],Object=Description"/>
</Header>
<Footer>
<Object cn="CN=Root,Vector=TaskList[Time-Course],Object=Result"/>
</Footer>
</Report>
<Report key="Report_13" name="Elementary Flux Modes" taskType="fluxMode" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Footer>
<Object cn="CN=Root,Vector=TaskList[Elementary Flux Modes],Object=Result"/>
</Footer>
</Report>
<Report key="Report_14" name="Optimization" taskType="optimization" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Header>
<Object cn="CN=Root,Vector=TaskList[Optimization],Object=Description"/>
<Object cn="String=\[Function Evaluations\]"/>
<Object cn="Separator=	"/>
<Object cn="String=\[Best Value\]"/>
<Object cn="Separator=	"/>
<Object cn="String=\[Best Parameters\]"/>
</Header>
<Body>
<Object cn="CN=Root,Vector=TaskList[Optimization],Problem=Optimization,Reference=Function Evaluations"/>
<Object cn="Separator=	"/>
<Object cn="CN=Root,Vector=TaskList[Optimization],Problem=Optimization,Reference=Best Value"/>
<Object cn="Separator=	"/>
<Object cn="CN=Root,Vector=TaskList[Optimization],Problem=Optimization,Reference=Best Parameters"/>
</Body>
<Footer>
<Object cn="String=
"/>
<Object cn="CN=Root,Vector=TaskList[Optimization],Object=Result"/>
</Footer>
</Report>
<Report key="Report_15" name="Parameter Estimation" taskType="parameterFitting" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Header>
<Object cn="CN=Root,Vector=TaskList[Parameter Estimation],Object=Description"/>
<Object cn="String=\[Function Evaluations\]"/>
<Object cn="Separator=	"/>
<Object cn="String=\[Best Value\]"/>
<Object cn="Separator=	"/>
<Object cn="String=\[Best Parameters\]"/>
</Header>
<Body>
<Object cn="CN=Root,Vector=TaskList[Parameter Estimation],Problem=Parameter Estimation,Reference=Function Evaluations"/>
<Object cn="Separator=	"/>
<Object cn="CN=Root,Vector=TaskList[Parameter Estimation],Problem=Parameter Estimation,Reference=Best Value"/>
<Object cn="Separator=	"/>
<Object cn="CN=Root,Vector=TaskList[Parameter Estimation],Problem=Parameter Estimation,Reference=Best Parameters"/>
</Body>
<Footer>
<Object cn="String=
"/>
<Object cn="CN=Root,Vector=TaskList[Parameter Estimation],Object=Result"/>
</Footer>
</Report>
<Report key="Report_16" name="Metabolic Control Analysis" taskType="metabolicControlAnalysis" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Header>
<Object cn="CN=Root,Vector=TaskList[Metabolic Control Analysis],Object=Description"/>
</Header>
<Footer>
<Object cn="String=
"/>
<Object cn="CN=Root,Vector=TaskList[Metabolic Control Analysis],Object=Result"/>
</Footer>
</Report>
<Report key="Report_17" name="Lyapunov Exponents" taskType="lyapunovExponents" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Header>
<Object cn="CN=Root,Vector=TaskList[Lyapunov Exponents],Object=Description"/>
</Header>
<Footer>
<Object cn="String=
"/>
<Object cn="CN=Root,Vector=TaskList[Lyapunov Exponents],Object=Result"/>
</Footer>
</Report>
<Report key="Report_18" name="Time Scale Separation Analysis" taskType="timeScaleSeparationAnalysis" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Header>
<Object cn="CN=Root,Vector=TaskList[Time Scale Separation Analysis],Object=Description"/>
</Header>
<Footer>
<Object cn="String=
"/>
<Object cn="CN=Root,Vector=TaskList[Time Scale Separation Analysis],Object=Result"/>
</Footer>
</Report>
<Report key="Report_19" name="Sensitivities" taskType="sensitivities" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Header>
<Object cn="CN=Root,Vector=TaskList[Sensitivities],Object=Description"/>
</Header>
<Footer>
<Object cn="String=
"/>
<Object cn="CN=Root,Vector=TaskList[Sensitivities],Object=Result"/>
</Footer>
</Report>
<Report key="Report_20" name="Moieties" taskType="moieties" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Header>
<Object cn="CN=Root,Vector=TaskList[Moieties],Object=Description"/>
</Header>
<Footer>
<Object cn="String=
"/>
<Object cn="CN=Root,Vector=TaskList[Moieties],Object=Result"/>
</Footer>
</Report>
<Report key="Report_21" name="Linear Noise Approximation" taskType="linearNoiseApproximation" separator="	" precision="6">
<Comment>
Automatically generated report.
</Comment>
<Header>
<Object cn="CN=Root,Vector=TaskList[Linear Noise Approximation],Object=Description"/>
</Header>
<Footer>
<Object cn="String=
"/>
<Object cn="CN=Root,Vector=TaskList[Linear Noise Approximation],Object=Result"/>
</Footer>
</Report>
<Report key="Report_22" name="Speed test" taskType="scan" separator="	" precision="8">
<Comment>
</Comment>
<Footer>
<Object cn="CN=Root,CN=Information,String=COPASI Version"/>
<Object cn="Separator=	"/>
<Object cn="CN=Root,CN=Information,Timer=Current Date/Time"/>
<Object cn="String=
"/>
<Object cn="CN=Root,Timer=CPU Time"/>
</Footer>
</Report>
</ListOfReports>
<GUI>
</GUI>
<ListOfUnitDefinitions>
<UnitDefinition key="Unit_1" name="meter" symbol="m">
<MiriamAnnotation>
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Unit_0">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2021-01-04T13:53:17Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
m
</Expression>
</UnitDefinition>
<UnitDefinition key="Unit_5" name="second" symbol="s">
<MiriamAnnotation>
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Unit_4">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2021-01-04T13:53:17Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
s
</Expression>
</UnitDefinition>
<UnitDefinition key="Unit_13" name="Avogadro" symbol="Avogadro">
<MiriamAnnotation>
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Unit_12">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2021-01-04T13:53:17Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Avogadro
</Expression>
</UnitDefinition>
<UnitDefinition key="Unit_17" name="item" symbol="#">
<MiriamAnnotation>
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Unit_16">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2021-01-04T13:53:17Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
#
</Expression>
</UnitDefinition>
<UnitDefinition key="Unit_35" name="liter" symbol="l">
<MiriamAnnotation>
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Unit_34">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2021-01-04T13:53:17Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
0.001*m^3
</Expression>
</UnitDefinition>
<UnitDefinition key="Unit_41" name="mole" symbol="mol">
<MiriamAnnotation>
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Unit_40">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2021-01-04T13:53:17Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
Avogadro*#
</Expression>
</UnitDefinition>
<UnitDefinition key="Unit_67" name="hour" symbol="h">
<MiriamAnnotation>
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="#Unit_66">
<dcterms:created>
<rdf:Description>
<dcterms:W3CDTF>2021-01-04T13:53:17Z</dcterms:W3CDTF>
</rdf:Description>
</dcterms:created>
</rdf:Description>
</rdf:RDF>
</MiriamAnnotation>
<Expression>
3600*s
</Expression>
</UnitDefinition>
</ListOfUnitDefinitions>
</COPASI>
| Component Pascal | 5 | MedAnisse/COPASI | speed-test-suite/BIOMOD70_efm.cps | [
"Artistic-2.0"
] |
(kicad_pcb (version 20171130) (host pcbnew 5.1.9)
(general
(thickness 1.6)
(drawings 178)
(tracks 0)
(zones 0)
(modules 1)
(nets 1)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user)
(33 F.Adhes user)
(34 B.Paste user)
(35 F.Paste user)
(36 B.SilkS user)
(37 F.SilkS user)
(38 B.Mask user)
(39 F.Mask user)
(40 Dwgs.User user)
(41 Cmts.User user)
(42 Eco1.User user)
(43 Eco2.User user)
(44 Edge.Cuts user)
(45 Margin user)
(46 B.CrtYd user)
(47 F.CrtYd user)
(48 B.Fab user)
(49 F.Fab user)
)
(setup
(last_trace_width 0.25)
(trace_clearance 0.2)
(zone_clearance 0.508)
(zone_45_only no)
(trace_min 0.2)
(via_size 0.8)
(via_drill 0.4)
(via_min_size 0.4)
(via_min_drill 0.3)
(uvia_size 0.3)
(uvia_drill 0.1)
(uvias_allowed no)
(uvia_min_size 0.2)
(uvia_min_drill 0.1)
(edge_width 0.1)
(segment_width 0.2)
(pcb_text_width 0.3)
(pcb_text_size 1.5 1.5)
(mod_edge_width 0.12)
(mod_text_size 1 1)
(mod_text_width 0.1)
(pad_size 1.524 1.524)
(pad_drill 0.762)
(pad_to_mask_clearance 0.05)
(aux_axis_origin 0 0)
(visible_elements FFFFFFFF)
(pcbplotparams
(layerselection 0x01000_7ffffffe)
(usegerberextensions false)
(usegerberattributes true)
(usegerberadvancedattributes true)
(creategerberjobfile true)
(excludeedgelayer true)
(linewidth 0.100000)
(plotframeref false)
(viasonmask false)
(mode 1)
(useauxorigin false)
(hpglpennumber 1)
(hpglpenspeed 20)
(hpglpendiameter 15.000000)
(psnegative false)
(psa4output false)
(plotreference false)
(plotvalue false)
(plotinvisibletext false)
(padsonsilk false)
(subtractmaskfromsilk false)
(outputformat 3)
(mirror false)
(drillshape 0)
(scaleselection 1)
(outputdirectory ""))
)
(net 0 "")
(net_class Default "This is the default net class."
(clearance 0.2)
(trace_width 0.25)
(via_dia 0.8)
(via_drill 0.4)
(uvia_dia 0.3)
(uvia_drill 0.1)
)
(net_class Power ""
(clearance 0.2)
(trace_width 0.3)
(via_dia 0.8)
(via_drill 0.4)
(uvia_dia 0.3)
(uvia_drill 0.1)
)
(module dummy:dummy (layer F.Cu) (tedit 604AAE8F) (tstamp 606383FE)
(at 12.01 12.03)
(fp_text reference dummy (at 0 0.5) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value dummy (at 0 -0.5) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
)
(gr_line (start 116.174774 87.240588) (end 109.326469 99.33052) (layer Edge.Cuts) (width 0.1) (tstamp 60637E2F))
(gr_arc (start 106.70685 97.938124) (end 105.29885 100.549389) (angle -90.34182972) (layer Edge.Cuts) (width 0.1) (tstamp 60637E1B))
(gr_arc (start 61.59 173.76) (end 105.29885 100.549389) (angle -15.53366677) (layer Edge.Cuts) (width 0.1) (tstamp 60637DF1))
(gr_arc (start 15.157962 407.009423) (end 84.096173 91.518105) (angle -12.26886215) (layer Edge.Cuts) (width 0.1) (tstamp 60637D5A))
(gr_arc (start 15.157962 407.009438) (end 84.370665 90.557556) (angle -12.23959981) (layer Cmts.User) (width 0.1) (tstamp 60637D5A))
(gr_arc (start 15.650018 81.077212) (end 12.650019 81.147211) (angle -85.4164945) (layer Edge.Cuts) (width 0.1) (tstamp 60637D36))
(gr_line (start 12.631572 31.580502) (end 12.650019 81.147211) (layer Edge.Cuts) (width 0.1) (tstamp 60637C87))
(gr_arc (start 17.470803 33.12706) (end 14.470803 29.02706) (angle -36.08355995) (layer Edge.Cuts) (width 0.1) (tstamp 60637C63))
(gr_arc (start 59.971713 81.838125) (end 60.313324 12.129986) (angle -41.02828093) (layer Edge.Cuts) (width 0.1) (tstamp 60637C47))
(gr_line (start 64.208611 12.13669) (end 60.313324 12.129986) (layer Edge.Cuts) (width 0.1) (tstamp 60637C32))
(gr_arc (start 52.262974 156.65255) (end 102.086813 20.472092) (angle -15.37056041) (layer Edge.Cuts) (width 0.1) (tstamp 60637C12))
(gr_arc (start 101.35 22.059419) (end 103.1 22.059419) (angle -65.09998996) (layer Edge.Cuts) (width 0.1) (tstamp 60637BFB))
(gr_line (start 103.08 78.26) (end 103.1 22.059419) (layer Edge.Cuts) (width 0.1) (tstamp 60637B8B))
(gr_line (start 108.9 81.62) (end 103.08 78.26) (layer Edge.Cuts) (width 0.1))
(gr_line (start 117.84 81.62) (end 108.9 81.62) (layer Edge.Cuts) (width 0.1))
(gr_arc (start 100.185923 79.446557) (end 116.174774 87.240588) (angle -18.96916069) (layer Edge.Cuts) (width 0.1) (tstamp 60637AD3))
(gr_arc (start 101.34 21.839419) (end 107.08 21.81) (angle -70.48034004) (layer Cmts.User) (width 0.1) (tstamp 606377C6))
(gr_line (start 121.883174 72.291074) (end 119.03 72.29) (layer Cmts.User) (width 0.1) (tstamp 6063766C))
(gr_line (start 119.03 79.58) (end 119.03 72.29) (layer Cmts.User) (width 0.1))
(gr_line (start 121.883174 79.581074) (end 119.03 79.58) (layer Cmts.User) (width 0.1))
(gr_arc (start 118.58 53.26) (end 121.894999 53.129082) (angle -85.10000809) (layer Cmts.User) (width 0.1) (tstamp 6063753A))
(gr_arc (start 100.161149 79.415969) (end 119.626163 89.058939) (angle -25.91833388) (layer Cmts.User) (width 0.1) (tstamp 606374FE))
(gr_arc (start 106.688 97.938735) (end 104.608804 104.501378) (angle -79.78441836) (layer Cmts.User) (width 0.1) (tstamp 60637467))
(gr_arc (start 16.848055 32.971668) (end 11.20874 27.019422) (angle -45.48652821) (layer Cmts.User) (width 0.1) (tstamp 6063720E))
(gr_arc (start 58.385367 76.935854) (end 57.528777 8.258706) (angle -42.6690406) (layer Cmts.User) (width 0.1) (tstamp 6063712B))
(gr_line (start 119.626163 89.058939) (end 112.777858 101.148871) (layer Cmts.User) (width 0.1) (tstamp 606370C4))
(gr_arc (start 60.560804 178.672643) (end 104.608804 104.501378) (angle -18.59350635) (layer Cmts.User) (width 0.1) (tstamp 6063706F))
(gr_line (start 121.894999 53.129082) (end 121.883174 72.291074) (layer Cmts.User) (width 0.1) (tstamp 6063700C))
(gr_line (start 107.13 49.94) (end 118.732717 49.945934) (layer Cmts.User) (width 0.1) (tstamp 60636FED))
(gr_line (start 107.13 49.94) (end 107.08 21.81) (layer Cmts.User) (width 0.1) (tstamp 60636F5A))
(gr_arc (start 54.462442 151.952303) (end 103.23018 16.419485) (angle -15.71010077) (layer Cmts.User) (width 0.1) (tstamp 60636EE6))
(gr_line (start 64.710171 8.277597) (end 57.528777 8.258706) (layer Cmts.User) (width 0.1) (tstamp 60636ECF))
(gr_arc (start 14.439258 411.808108) (end 78.660051 94.327992) (angle -11.29848431) (layer Cmts.User) (width 0.1) (tstamp 60636E58))
(gr_arc (start 15.03 81.5) (end 8.63 81.63) (angle -90.48950652) (layer Cmts.User) (width 0.1) (tstamp 60636E2B))
(gr_arc (start 15.650018 81.077212) (end 13.650019 81.147211) (angle -89.7) (layer Cmts.User) (width 0.1) (tstamp 60636DE9))
(gr_line (start 8.65 32.82) (end 8.63 81.63) (layer Cmts.User) (width 0.1) (tstamp 60636DD4))
(gr_line (start 68.75 70.25) (end 68.75 82.75) (layer Cmts.User) (width 0.1) (tstamp 606369FE))
(gr_line (start 67.25 70.25) (end 68.75 70.25) (layer Cmts.User) (width 0.1))
(gr_line (start 67.25 82.75) (end 67.25 70.25) (layer Cmts.User) (width 0.1))
(gr_line (start 68.75 82.75) (end 67.25 82.75) (layer Cmts.User) (width 0.1))
(gr_line (start 70 84) (end 70 79.75) (layer Cmts.User) (width 0.1) (tstamp 606369F4))
(gr_line (start 74 84) (end 70 84) (layer Cmts.User) (width 0.1))
(gr_line (start 74 79.75) (end 74 84) (layer Cmts.User) (width 0.1))
(gr_line (start 70 79.75) (end 74 79.75) (layer Cmts.User) (width 0.1))
(gr_line (start 70 78.5) (end 70 74.25) (layer Cmts.User) (width 0.1) (tstamp 606369EA))
(gr_line (start 74 78.5) (end 70 78.5) (layer Cmts.User) (width 0.1))
(gr_line (start 74 74.25) (end 74 78.5) (layer Cmts.User) (width 0.1))
(gr_line (start 70 74.25) (end 74 74.25) (layer Cmts.User) (width 0.1))
(gr_line (start 54.25 84.75) (end 54.25 83.25) (layer Cmts.User) (width 0.1) (tstamp 606369DD))
(gr_line (start 66.75 84.75) (end 54.25 84.75) (layer Cmts.User) (width 0.1))
(gr_line (start 66.75 83.25) (end 66.75 84.75) (layer Cmts.User) (width 0.1))
(gr_line (start 54.25 83.25) (end 66.75 83.25) (layer Cmts.User) (width 0.1))
(gr_line (start 52.25 82.75) (end 52.25 70.25) (layer Cmts.User) (width 0.1) (tstamp 606369D3))
(gr_line (start 53.75 82.75) (end 52.25 82.75) (layer Cmts.User) (width 0.1))
(gr_line (start 53.75 70.25) (end 53.75 82.75) (layer Cmts.User) (width 0.1))
(gr_line (start 52.25 70.25) (end 53.75 70.25) (layer Cmts.User) (width 0.1))
(gr_line (start 54.25 69.75) (end 54.25 68.25) (layer Cmts.User) (width 0.1) (tstamp 606369CA))
(gr_line (start 66.75 69.75) (end 54.25 69.75) (layer Cmts.User) (width 0.1))
(gr_line (start 66.75 68.25) (end 66.75 69.75) (layer Cmts.User) (width 0.1))
(gr_line (start 54.25 68.25) (end 66.75 68.25) (layer Cmts.User) (width 0.1))
(gr_line (start 55.25 81.75) (end 55.25 71.25) (layer Cmts.User) (width 0.1) (tstamp 606369BE))
(gr_line (start 65.75 81.75) (end 55.25 81.75) (layer Cmts.User) (width 0.1))
(gr_line (start 65.75 71.25) (end 65.75 81.75) (layer Cmts.User) (width 0.1))
(gr_line (start 55.25 71.25) (end 65.75 71.25) (layer Cmts.User) (width 0.1))
(gr_line (start 52.5 65.5) (end 52.5 67.5) (layer Cmts.User) (width 0.1) (tstamp 606369A6))
(gr_line (start 60.5 65.5) (end 52.5 65.5) (layer Cmts.User) (width 0.1))
(gr_line (start 60.5 67.5) (end 60.5 65.5) (layer Cmts.User) (width 0.1))
(gr_line (start 52.5 67.5) (end 60.5 67.5) (layer Cmts.User) (width 0.1))
(gr_line (start 42.5 74.25) (end 38.5 74.25) (layer Cmts.User) (width 0.1) (tstamp 60636996))
(gr_line (start 42.5 75.5) (end 42.5 74.25) (layer Cmts.User) (width 0.1))
(gr_line (start 47.5 75.5) (end 42.5 75.5) (layer Cmts.User) (width 0.1))
(gr_line (start 47.5 78) (end 47.5 75.5) (layer Cmts.User) (width 0.1))
(gr_line (start 46.75 78) (end 47.5 78) (layer Cmts.User) (width 0.1))
(gr_line (start 46.75 81.75) (end 46.75 78) (layer Cmts.User) (width 0.1))
(gr_line (start 42.5 81.75) (end 46.75 81.75) (layer Cmts.User) (width 0.1))
(gr_line (start 42.5 82.25) (end 42.5 81.75) (layer Cmts.User) (width 0.1))
(gr_line (start 38.5 82.25) (end 42.5 82.25) (layer Cmts.User) (width 0.1))
(gr_line (start 38.5 74.25) (end 38.5 82.25) (layer Cmts.User) (width 0.1))
(gr_line (start 106.225 51.85) (end 103.875 51.85) (layer Eco1.User) (width 0.1) (tstamp 606367DF))
(gr_line (start 103.65 72.925) (end 104.81 72.82) (layer Eco1.User) (width 0.1))
(gr_line (start 103.875 51.85) (end 103.65 72.925) (layer Eco1.User) (width 0.1))
(gr_line (start 116.975 51.875) (end 106.3 51.875) (layer Eco1.User) (width 0.1) (tstamp 6063679E))
(gr_line (start 116.925 73.1) (end 116.975 51.875) (layer Eco1.User) (width 0.1))
(gr_line (start 118.975 73.125) (end 116.925 73.1) (layer Eco1.User) (width 0.1))
(gr_line (start 118.975 78.8) (end 118.975 73.125) (layer Eco1.User) (width 0.1))
(gr_line (start 117.125 78.85) (end 118.975 78.8) (layer Eco1.User) (width 0.1))
(gr_line (start 117.15 79.1) (end 117.125 78.85) (layer Eco1.User) (width 0.1))
(gr_line (start 116.45 79.1) (end 117.15 79.1) (layer Eco1.User) (width 0.1))
(gr_line (start 116.55 81.675) (end 116.45 79.1) (layer Eco1.User) (width 0.1))
(gr_line (start 108.9 81.65) (end 116.55 81.675) (layer Eco1.User) (width 0.1))
(gr_line (start 108.825 79.175) (end 108.9 81.65) (layer Eco1.User) (width 0.1))
(gr_line (start 104.875 79.125) (end 108.825 79.175) (layer Eco1.User) (width 0.1))
(gr_line (start 104.8 72.825) (end 104.875 79.125) (layer Eco1.User) (width 0.1))
(gr_line (start 95.025 91.95) (end 101.975 79.9) (layer Edge.Cuts) (width 0.1) (tstamp 60636729))
(gr_line (start 107.075 98.925) (end 95.025 91.95) (layer Edge.Cuts) (width 0.1))
(gr_line (start 114.05 86.875) (end 107.075 98.925) (layer Edge.Cuts) (width 0.1))
(gr_line (start 101.975 79.9) (end 114.05 86.875) (layer Edge.Cuts) (width 0.1))
(gr_line (start 77.45 86.6) (end 81.05 73.175) (layer Edge.Cuts) (width 0.1) (tstamp 606366D7))
(gr_line (start 90.9 90.225) (end 77.45 86.6) (layer Edge.Cuts) (width 0.1))
(gr_line (start 94.5 76.775) (end 90.9 90.225) (layer Edge.Cuts) (width 0.1))
(gr_line (start 81.05 73.175) (end 94.5 76.775) (layer Edge.Cuts) (width 0.1))
(gr_line (start 100.95 53.95) (end 87.05 53.95) (layer Edge.Cuts) (width 0.1) (tstamp 6063653A))
(gr_line (start 100.95 36.95) (end 87.05 36.95) (layer Edge.Cuts) (width 0.1) (tstamp 60636539))
(gr_line (start 100.95 57.05) (end 100.95 70.95) (layer Edge.Cuts) (width 0.1) (tstamp 60636538))
(gr_line (start 87.05 57.05) (end 100.95 57.05) (layer Edge.Cuts) (width 0.1) (tstamp 60636537))
(gr_line (start 100.95 70.95) (end 87.05 70.95) (layer Edge.Cuts) (width 0.1) (tstamp 60636536))
(gr_line (start 87.05 23.05) (end 100.95 23.05) (layer Edge.Cuts) (width 0.1) (tstamp 60636535))
(gr_line (start 87.05 53.95) (end 87.05 40.05) (layer Edge.Cuts) (width 0.1) (tstamp 60636534))
(gr_line (start 100.95 23.05) (end 100.95 36.95) (layer Edge.Cuts) (width 0.1) (tstamp 60636533))
(gr_line (start 87.05 70.95) (end 87.05 57.05) (layer Edge.Cuts) (width 0.1) (tstamp 60636532))
(gr_line (start 100.95 40.05) (end 100.95 53.95) (layer Edge.Cuts) (width 0.1) (tstamp 60636531))
(gr_line (start 87.05 40.05) (end 100.95 40.05) (layer Edge.Cuts) (width 0.1) (tstamp 60636530))
(gr_line (start 87.05 36.95) (end 87.05 23.05) (layer Edge.Cuts) (width 0.1) (tstamp 6063652F))
(gr_line (start 82.95 51.45) (end 69.05 51.45) (layer Edge.Cuts) (width 0.1) (tstamp 60636516))
(gr_line (start 82.95 34.45) (end 69.05 34.45) (layer Edge.Cuts) (width 0.1) (tstamp 60636515))
(gr_line (start 69.05 20.55) (end 82.95 20.55) (layer Edge.Cuts) (width 0.1) (tstamp 60636514))
(gr_line (start 69.05 51.45) (end 69.05 37.55) (layer Edge.Cuts) (width 0.1) (tstamp 60636513))
(gr_line (start 82.95 37.55) (end 82.95 51.45) (layer Edge.Cuts) (width 0.1) (tstamp 60636512))
(gr_line (start 69.05 37.55) (end 82.95 37.55) (layer Edge.Cuts) (width 0.1) (tstamp 60636511))
(gr_line (start 82.95 20.55) (end 82.95 34.45) (layer Edge.Cuts) (width 0.1) (tstamp 60636510))
(gr_line (start 69.05 68.45) (end 69.05 54.55) (layer Edge.Cuts) (width 0.1) (tstamp 6063650F))
(gr_line (start 82.95 54.55) (end 82.95 68.45) (layer Edge.Cuts) (width 0.1) (tstamp 6063650E))
(gr_line (start 69.05 54.55) (end 82.95 54.55) (layer Edge.Cuts) (width 0.1) (tstamp 6063650D))
(gr_line (start 82.95 68.45) (end 69.05 68.45) (layer Edge.Cuts) (width 0.1) (tstamp 6063650C))
(gr_line (start 69.05 34.45) (end 69.05 20.55) (layer Edge.Cuts) (width 0.1) (tstamp 6063650B))
(gr_line (start 51.05 49.05) (end 64.95 49.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364F2))
(gr_line (start 64.95 62.95) (end 51.05 62.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364F1))
(gr_line (start 64.95 45.95) (end 51.05 45.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364F0))
(gr_line (start 64.95 32.05) (end 64.95 45.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364EF))
(gr_line (start 51.05 15.05) (end 64.95 15.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364EE))
(gr_line (start 64.95 15.05) (end 64.95 28.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364ED))
(gr_line (start 51.05 62.95) (end 51.05 49.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364EC))
(gr_line (start 64.95 49.05) (end 64.95 62.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364EB))
(gr_line (start 51.05 28.95) (end 51.05 15.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364EA))
(gr_line (start 51.05 32.05) (end 64.95 32.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364E9))
(gr_line (start 64.95 28.95) (end 51.05 28.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364E8))
(gr_line (start 51.05 45.95) (end 51.05 32.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364E7))
(gr_line (start 46.95 39.05) (end 46.95 52.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364CE))
(gr_line (start 46.95 22.05) (end 46.95 35.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364CD))
(gr_line (start 33.05 69.95) (end 33.05 56.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364CC))
(gr_line (start 33.05 22.05) (end 46.95 22.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364CB))
(gr_line (start 46.95 69.95) (end 33.05 69.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364CA))
(gr_line (start 46.95 35.95) (end 33.05 35.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364C9))
(gr_line (start 33.05 52.95) (end 33.05 39.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364C8))
(gr_line (start 33.05 39.05) (end 46.95 39.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364C7))
(gr_line (start 46.95 56.05) (end 46.95 69.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364C6))
(gr_line (start 46.95 52.95) (end 33.05 52.95) (layer Edge.Cuts) (width 0.1) (tstamp 606364C5))
(gr_line (start 33.05 35.95) (end 33.05 22.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364C4))
(gr_line (start 33.05 56.05) (end 46.95 56.05) (layer Edge.Cuts) (width 0.1) (tstamp 606364C3))
(gr_line (start 28.95 68.05) (end 28.95 81.95) (layer Edge.Cuts) (width 0.1) (tstamp 606363F9))
(gr_line (start 15.05 81.95) (end 15.05 68.05) (layer Edge.Cuts) (width 0.1) (tstamp 606363F8))
(gr_line (start 15.05 68.05) (end 28.95 68.05) (layer Edge.Cuts) (width 0.1) (tstamp 606363F7))
(gr_line (start 28.95 81.95) (end 15.05 81.95) (layer Edge.Cuts) (width 0.1) (tstamp 606363F6))
(gr_line (start 28.95 51.05) (end 28.95 64.95) (layer Edge.Cuts) (width 0.1) (tstamp 606363E4))
(gr_line (start 15.05 51.05) (end 28.95 51.05) (layer Edge.Cuts) (width 0.1) (tstamp 606363E3))
(gr_line (start 28.95 64.95) (end 15.05 64.95) (layer Edge.Cuts) (width 0.1) (tstamp 606363E2))
(gr_line (start 15.05 64.95) (end 15.05 51.05) (layer Edge.Cuts) (width 0.1) (tstamp 606363E1))
(gr_line (start 15.05 47.95) (end 15.05 34.05) (layer Edge.Cuts) (width 0.1) (tstamp 606363C2))
(gr_line (start 28.95 47.95) (end 15.05 47.95) (layer Edge.Cuts) (width 0.1))
(gr_line (start 28.95 34.05) (end 28.95 47.95) (layer Edge.Cuts) (width 0.1))
(gr_line (start 15.05 34.05) (end 28.95 34.05) (layer Edge.Cuts) (width 0.1))
(gr_arc (start 17.48 33.13) (end 15.035 29.885) (angle -35.4) (layer Cmts.User) (width 0.1) (tstamp 5F45BAB8))
(gr_arc (start 52.262442 156.652303) (end 101.665245 21.378889) (angle -15.3) (layer Cmts.User) (width 0.1) (tstamp 5F45BAB6))
(gr_arc (start 101.35 22.059419) (end 102.1 22.059419) (angle -65.1) (layer Cmts.User) (width 0.1) (tstamp 5F45BAB5))
(gr_line (start 64.208637 13.136374) (end 60.008389 13.128139) (layer Cmts.User) (width 0.1) (tstamp 5F45BAB3))
(gr_arc (start 60.008389 81.858139) (end 60.008389 13.128139) (angle -40.9) (layer Cmts.User) (width 0.1) (tstamp 5F45BAB2))
(gr_line (start 116.965001 52.600918) (end 116.964908 79.587473) (layer Cmts.User) (width 0.1) (tstamp 5F359724))
(gr_arc (start 15.157962 407.009453) (end 84.370665 90.557571) (angle -12.23959981) (layer Cmts.User) (width 0.1) (tstamp 5EDCBAB7))
(gr_arc (start 100.191149 79.445969) (end 115.218305 86.900068) (angle -25.9) (layer Cmts.User) (width 0.1) (tstamp 5EDAA9C2))
(gr_line (start 115.218305 86.900068) (end 108.37 98.99) (layer Cmts.User) (width 0.1) (tstamp 5EDAAAB5))
(gr_line (start 102.15 49.899082) (end 102.1 22.059419) (layer Cmts.User) (width 0.1) (tstamp 5EDAB87D))
(gr_arc (start 104.149999 49.829083) (end 102.15 49.899082) (angle -89) (layer Cmts.User) (width 0.1) (tstamp 5EDAB87A))
(gr_arc (start 61.59 173.76) (end 105.638 99.588735) (angle -15.4) (layer Cmts.User) (width 0.1) (tstamp 5EDABA84))
(gr_arc (start 15.650018 81.077212) (end 13.650019 81.147211) (angle -89.7) (layer Cmts.User) (width 0.1) (tstamp 5EDAA8DE))
(gr_arc (start 106.708 97.938735) (end 105.638 99.588735) (angle -90.6) (layer Cmts.User) (width 0.1) (tstamp 5EDAABA5))
(gr_arc (start 116.215001 52.600918) (end 116.965001 52.600918) (angle -90) (layer Cmts.User) (width 0.1) (tstamp 5EDAB58F))
(gr_line (start 104.185001 51.83) (end 116.215001 51.850918) (layer Cmts.User) (width 0.1) (tstamp 5EDAB58C))
(gr_line (start 13.608055 31.898702) (end 13.650019 81.147211) (layer Cmts.User) (width 0.1) (tstamp 5EDAB9D6))
)
| KiCad | 4 | ankitp4t3l/ferris | 0.2/compact/cases/low_profile/metal_plate.kicad_pcb | [
"CC0-1.0"
] |
import util.*;
function kv_node_list(resp, time_consume){
len_index = 0;
count = 0;
while(len(resp.data) > len_index){
kv_len = int(resp.data[len_index]);
if(kv_len < 6){
printf('bad response!\n');
break;
}
if(len(resp.data) >= len_index + kv_len){
count += 1;
id = resp.data[len_index + 1];
status = resp.data[len_index + 2];
range_s = resp.data[len_index + 3];
range_e = resp.data[len_index + 4];
ip = resp.data[len_index + 5];
port = resp.data[len_index + 6];
status_text = 'UNKNOWN';
if(status == '0'){
status_text = 'INIT';
}else if(status == '1'){
status_text = 'SERVING';
}
printf('id: %s\n', id);
printf(' status: %s\n', status_text);
printf(' range: (\"%s\", \"%s\"]\n', range_s.encode('string-escape'), range_e.encode('string-escape'));
printf(' ip: %s\n', ip);
printf(' port: %s\n', port);
}
len_index += 6 + 1;
}
sys.stderr.write(sprintf('%d result(s) (%.3f sec)\n', count, time_consume));
}
| COBOL | 3 | cau991/ssdb | tools/ssdb_cli/cluster.cpy | [
"BSD-3-Clause"
] |
module TestOverloaded
import test
local function test = |f, e| {
try {
let v = f()
if not v: startsWith(e) {
println("FAILED: should be %s but is %s": format(e, v))
} else {
println("OK: " + e)
}
} catch (e) {
println("ERROR: " + e)
}
}
function main = |args| {
let t = OverloadedMethod()
let sup = |s| -> |v| -> s + v
## These are always OK...
# test(-> t: foo("a"), "String")
# test(-> t: foo(Wrapper.of("w")), "Wrapper")
# test(-> t: foo(OverloadedMethod.fi("s")), "FunctionalInterface")
test(-> t: foo(2.5), "Number")
# this one is influenced by the presence of the previous one!
test(-> t: foo(1), "Integer")
# May dispatch on any of the 3 possible methods:
test(-> t: foo(|v| -> "a" + v), "FunctionReference")
# May cause an error (not a direct method handle) if used as a FI
# (see https://github.com/eclipse/golo-lang/issues/277)
test(-> t: foo(sup("b")), "FunctionReference")
}
| Golo | 3 | ajnavarro/language-dataset | data/github.com/yloiseau/golo-tests/3f4166ba15eb85e24796a5de6e2775a822791cdb/BUGS/326-call-resolution/overloaded/simple/overloaded.golo | [
"MIT"
] |
{{#if ended}}
{{#if at_beginning}}
<p>No results were returned for this query</p>
{{else}}
<p>No more results were returned for this query</p>
{{/if}}
{{else}}
<p>Waiting for more results</p>
{{/if}}
| Handlebars | 3 | zadcha/rethinkdb | admin/static/handlebars/dataexplorer_result_empty.hbs | [
"Apache-2.0"
] |
# Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
create {
platform_re: "linux-amd64"
source {
script {
name: "fetch.py"
# When this is true, artifacts will be directly fetched by calling
# `fetch.py checkout <checkout arguments>`
use_fetch_checkout_workflow: true
}
patch_version: "cr0"
}
}
upload { pkg_prefix: "chromium/tools/android" }
| PureBasic | 3 | zealoussnow/chromium | tools/android/avd/3pp/3pp.pb | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>memory leak test</title>
</head>
<body>
<ol>
<li>Create a Menu by clicking <button onclick="createMenu()">this button</button></li>
<li>Open Profile tab on devtools and take a heap snapshot, then filter with "Containment". You will see 2 Windows (bg page + current window).</li>
<li>Reload the page with <button onclick="reloadPage()">location.reload()</button> more than 1 times</li>
<li>Take a heap snapshot again.</li>
</ol>
<h4>Expected: You should see 2 Windows as well.</h4>
<script>
function createMenu() {
var menu = new nw.Menu();
menu.append(new nw.MenuItem({label: 'Item A'}));
}
function reloadPage() {
location.reload();
}
</script>
</body>
</html> | HTML | 4 | frank-dspeed/nw.js | test/manual/memory-leak-reload/index.html | [
"MIT"
] |
# fibonacci.fy
# Example of fibonacci numbers
class Fixnum {
def fib {
match self {
case 0 -> 0
case 1 -> 1
case _ -> self - 1 fib + (self - 2 fib)
}
}
}
15 times: |x| {
x fib println
}
| Fancy | 3 | bakkdoor/fancy | examples/fibonacci.fy | [
"BSD-3-Clause"
] |
def check_build():
return
| Cython | 0 | emarkou/scikit-learn | sklearn/__check_build/_check_build.pyx | [
"BSD-3-Clause"
] |
/* jconfig.wat --- jconfig.h for Watcom C/C++ on MS-DOS or OS/2. */
/* see jconfig.txt for explanations */
#define HAVE_PROTOTYPES
#define HAVE_UNSIGNED_CHAR
#define HAVE_UNSIGNED_SHORT
/* #define void char */
/* #define const */
#define CHAR_IS_UNSIGNED
#define HAVE_STDDEF_H
#define HAVE_STDLIB_H
#undef NEED_BSD_STRINGS
#undef NEED_SYS_TYPES_H
#undef NEED_FAR_POINTERS /* Watcom uses flat 32-bit addressing */
#undef NEED_SHORT_EXTERNAL_NAMES
#undef INCOMPLETE_TYPES_BROKEN
#ifdef JPEG_INTERNALS
#undef RIGHT_SHIFT_IS_UNSIGNED
#endif /* JPEG_INTERNALS */
#ifdef JPEG_CJPEG_DJPEG
#define BMP_SUPPORTED /* BMP image file format */
#define GIF_SUPPORTED /* GIF image file format */
#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */
#undef RLE_SUPPORTED /* Utah RLE image file format */
#define TARGA_SUPPORTED /* Targa image file format */
#undef TWO_FILE_COMMANDLINE /* optional */
#define USE_SETMODE /* Needed to make one-file style work in Watcom */
#undef NEED_SIGNAL_CATCHER /* Define this if you use jmemname.c */
#undef DONT_USE_B_MODE
#undef PROGRESS_REPORT /* optional */
#endif /* JPEG_CJPEG_DJPEG */
| WebAssembly | 2 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/jpeg-9a/jconfig.wat | [
"Apache-2.0"
] |
try
do
print x
error
console.error error
try
do
print y
err
| Cirru | 3 | Cirru/cirru-script | examples/try.cirru | [
"Xnet",
"X11"
] |
# Copyright (c) 2020 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.
Feature: NULL related operations
Scenario: NULL comparison
Given any graph
When executing query:
"""
RETURN NULL IS NULL AS value1, NULL == NULL AS value2, NULL != NULL AS value3, NULL >= NULL AS value4, NULL <= NULL AS value5
"""
Then the result should be, in any order:
| value1 | value2 | value3 | value4 | value5 |
| true | NULL | NULL | NULL | NULL |
Scenario: NULL with math functions
Given any graph
When executing query:
"""
RETURN abs(NULL) AS value1, floor(NULL) AS value2, ceil(NULL) AS value3, round(NULL) AS value4, sqrt(NULL) AS value5
"""
Then the result should be, in any order:
| value1 | value2 | value3 | value4 | value5 |
| NULL | NULL | NULL | NULL | NULL |
When executing query:
"""
RETURN cbrt(NULL) AS value1, exp(NULL) AS value4, exp2(NULL) AS value5
"""
Then the result should be, in any order:
| value1 | value4 | value5 |
| NULL | NULL | NULL |
When executing query:
"""
RETURN log(NULL) AS value1, log2(NULL) AS value2, log10(NULL) AS value3, sin(NULL) AS value4, asin(NULL) AS value5
"""
Then the result should be, in any order:
| value1 | value2 | value3 | value4 | value5 |
| NULL | NULL | NULL | NULL | NULL |
When executing query:
"""
RETURN cos(NULL) AS value1, acos(NULL) AS value2, tan(NULL) AS value3, atan(NULL) AS value4
"""
Then the result should be, in any order:
| value1 | value2 | value3 | value4 |
| NULL | NULL | NULL | NULL |
When executing query:
"""
RETURN collect(NULL) AS value1, avg(NULL) AS value2, count(NULL) AS value3, max(NULL) AS value4
"""
Then the result should be, in any order:
| value1 | value2 | value3 | value4 |
| [] | NULL | 0 | NULL |
When executing query:
"""
RETURN min(NULL) AS value1, std(NULL) AS value2, sum(NULL) AS value3, bit_and(NULL) AS value4, bit_or(NULL,NULL) AS value5
"""
Then the result should be, in any order:
| value1 | value2 | value3 | value4 | value5 |
| NULL | NULL | 0 | NULL | NULL |
When executing query:
"""
RETURN bit_xor(NULL) AS value1, size(NULL) AS value2, sign(NULL) AS value4, radians(NULL) AS value5
"""
Then the result should be, in any order:
| value1 | value2 | value4 | value5 |
| NULL | NULL | NULL | NULL |
| Cucumber | 3 | wenhaocs/nebula | tests/tck/features/expression/Null.feature | [
"Apache-2.0"
] |
.ProjectName {
margin: auto;
display: flex;
align-items: center;
.TextInput {
height: calc(1rem - 3px);
width: 200px;
overflow: hidden;
text-align: center;
margin-left: 8px;
text-overflow: ellipsis;
&--readonly {
background: none;
border: none;
&:hover {
background: none;
}
width: auto;
max-width: 200px;
padding-left: 2px;
}
}
}
| SCSS | 3 | dineshondev/excalidraw | src/components/ProjectName.scss | [
"MIT"
] |
#const FeatureA = true
#const FeatureB = false
#if FeatureA
'code for Feature A
' ! alert
#else if FeatureB
'code for Feature B
' ? question
#else
'production code
#end if | Brightscript | 3 | littensy/better-comments | src/test/samples/brightscript.brs | [
"MIT"
] |
const i32 int32 = 39;
const map <string, list<i32>> container = {'key': [1, 2, 3]};
| Thrift | 2 | JonnoFTW/thriftpy2 | tests/parser-cases/value_ref_shared.thrift | [
"MIT"
] |
CLASS lcl_gui DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS f4_folder
RETURNING
VALUE(rv_folder) TYPE string
RAISING
zcx_abapgit_exception.
CLASS-METHODS open_folder_frontend
IMPORTING
iv_folder TYPE string
RAISING
zcx_abapgit_exception.
CLASS-METHODS select_tr_requests
RETURNING
VALUE(rt_trkorr) TYPE trwbo_request_headers.
PRIVATE SECTION.
CLASS-DATA gv_last_folder TYPE string.
ENDCLASS.
CLASS lcl_gui IMPLEMENTATION.
METHOD f4_folder.
DATA: lv_title TYPE string,
lo_fe_serv TYPE REF TO zif_abapgit_frontend_services.
lo_fe_serv = zcl_abapgit_ui_factory=>get_frontend_services( ).
lv_title = 'Choose the destination folder for the ZIP files'.
lo_fe_serv->directory_browse(
EXPORTING
iv_window_title = lv_title
iv_initial_folder = gv_last_folder
CHANGING
cv_selected_folder = rv_folder ).
"Store the last directory for user friendly UI
gv_last_folder = rv_folder.
ENDMETHOD.
METHOD open_folder_frontend.
IF iv_folder IS INITIAL.
RETURN.
ENDIF.
zcl_abapgit_ui_factory=>get_frontend_services( )->execute( iv_document = iv_folder ).
ENDMETHOD.
METHOD select_tr_requests.
DATA: ls_popup TYPE strhi_popup,
ls_selection TYPE trwbo_selection.
ls_popup-start_column = 5.
ls_popup-start_row = 5.
" Prepare the selection
ls_selection-trkorrpattern = space.
ls_selection-client = space.
ls_selection-stdrequest = space.
ls_selection-reqfunctions = 'K'.
ls_selection-reqstatus = 'RNODL'.
" Call transport selection popup
CALL FUNCTION 'TRINT_SELECT_REQUESTS'
EXPORTING
iv_username_pattern = '*'
iv_via_selscreen = 'X'
is_selection = ls_selection
iv_complete_projects = space
iv_title = 'ABAPGit Transport Mass Downloader'
is_popup = ls_popup
IMPORTING
et_requests = rt_trkorr
EXCEPTIONS
action_aborted_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
CLEAR rt_trkorr.
ELSE.
SORT rt_trkorr BY trkorr.
DELETE ADJACENT DUPLICATES FROM rt_trkorr COMPARING trkorr.
ENDIF.
ENDMETHOD.
ENDCLASS.
CLASS lcl_transport_zipper DEFINITION FINAL.
PUBLIC SECTION.
TYPES ty_folder TYPE string.
TYPES ty_filename TYPE string.
CONSTANTS c_zip_ext TYPE string VALUE '.zip'.
METHODS constructor
IMPORTING
iv_folder TYPE ty_folder
RAISING
zcx_abapgit_exception.
METHODS generate_files
IMPORTING
it_trkorr TYPE trwbo_request_headers
ig_logic TYPE any
RAISING
zcx_abapgit_exception.
METHODS get_folder
RETURNING
VALUE(rv_full_folder) TYPE ty_folder.
CLASS-METHODS does_folder_exist
IMPORTING
iv_folder TYPE string
RETURNING
VALUE(rv_folder_exist) TYPE abap_bool
RAISING
zcx_abapgit_exception.
PRIVATE SECTION.
DATA: mv_timestamp TYPE string,
mv_separator TYPE c,
mv_full_folder TYPE ty_folder.
METHODS get_full_folder
IMPORTING
iv_folder TYPE ty_folder
RETURNING
VALUE(rv_full_folder) TYPE ty_folder
RAISING
zcx_abapgit_exception.
METHODS get_filename
IMPORTING
is_trkorr TYPE trwbo_request_header
RETURNING
VALUE(rv_filename) TYPE ty_filename.
ENDCLASS.
CLASS lcl_transport_zipper IMPLEMENTATION.
METHOD constructor.
DATA lo_fe_serv TYPE REF TO zif_abapgit_frontend_services.
lo_fe_serv = zcl_abapgit_ui_factory=>get_frontend_services( ).
mv_timestamp = |{ sy-datlo }_{ sy-timlo }|.
mv_full_folder = get_full_folder( iv_folder ).
TRY.
lo_fe_serv->get_file_separator( CHANGING cv_file_separator = mv_separator ).
CATCH zcx_abapgit_exception.
"Default MS Windows separator
mv_separator = '\'.
ENDTRY.
ENDMETHOD.
METHOD get_folder.
rv_full_folder = mv_full_folder.
ENDMETHOD.
METHOD does_folder_exist.
rv_folder_exist = zcl_abapgit_ui_factory=>get_frontend_services( )->directory_exist( iv_directory = iv_folder ).
ENDMETHOD.
METHOD get_full_folder.
DATA: lv_sep TYPE c,
lv_rc TYPE i,
lo_fe_serv TYPE REF TO zif_abapgit_frontend_services.
lo_fe_serv = zcl_abapgit_ui_factory=>get_frontend_services( ).
lo_fe_serv->get_file_separator( CHANGING cv_file_separator = lv_sep ).
rv_full_folder = |{ iv_folder }{ lv_sep }{ mv_timestamp }|.
IF does_folder_exist( rv_full_folder ) = abap_false.
lo_fe_serv->directory_create(
EXPORTING
iv_directory = rv_full_folder
CHANGING
cv_rc = lv_rc ).
ENDIF.
ENDMETHOD.
METHOD get_filename.
" Generate filename
rv_filename = |{ is_trkorr-trkorr }_{ is_trkorr-as4text }_{ mv_timestamp }{ c_zip_ext }|.
" Remove reserved characters (for Windows based systems)
TRANSLATE rv_filename USING '/ \ : " * > < ? | '.
rv_filename = |{ mv_full_folder }{ mv_separator }{ rv_filename }|.
ENDMETHOD.
METHOD generate_files.
DATA: ls_trkorr LIKE LINE OF it_trkorr,
lv_zipbinstring TYPE xstring.
LOOP AT it_trkorr INTO ls_trkorr.
lv_zipbinstring = zcl_abapgit_transport_mass=>zip( is_trkorr = ls_trkorr
iv_logic = ig_logic
iv_show_log_popup = abap_false ).
zcl_abapgit_zip=>save_binstring_to_localfile( iv_binstring = lv_zipbinstring
iv_filename = get_filename( ls_trkorr ) ).
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| ABAP | 5 | Manny27nyc/abapGit | src/cts/zcl_abapgit_transport_mass.clas.locals_imp.abap | [
"MIT"
] |
/* See LICENSE file in the root OpenCV directory */
#if TILE_SIZE != 32
#error "TILE SIZE should be 32"
#endif
__kernel void moments(__global const uchar* src, int src_step, int src_offset,
int src_rows, int src_cols, __global int* mom0, int xtiles)
{
int x0 = get_global_id(0);
int y0 = get_group_id(1);
int x, y = get_local_id(1);
int x_min = x0*TILE_SIZE;
int ypix = y0*TILE_SIZE + y;
__local int mom[TILE_SIZE][10];
if (x_min < src_cols && y0*TILE_SIZE < src_rows)
{
if (ypix < src_rows)
{
int x_max = min(src_cols - x_min, TILE_SIZE);
__global const uchar* ptr = src + src_offset + ypix*src_step + x_min;
int4 S = (int4)(0, 0, 0, 0), p;
#define SUM_ELEM(elem, ofs) \
(int4)(1, (ofs), (ofs)*(ofs), (ofs)*(ofs)*(ofs))*elem
x = x_max & -4;
if (x_max >= 4)
{
p = convert_int4(vload4(0, ptr));
#ifdef OP_MOMENTS_BINARY
p = min(p, 1);
#endif
S += (int4)(p.s0, 0, 0, 0) + (int4)(p.s1, p.s1, p.s1, p.s1) +
(int4)(p.s2, p.s2 * 2, p.s2 * 4, p.s2 * 8) + (int4)(p.s3, p.s3 * 3, p.s3 * 9, p.s3 * 27);
//SUM_ELEM(p.s0, 0) + SUM_ELEM(p.s1, 1) + SUM_ELEM(p.s2, 2) + SUM_ELEM(p.s3, 3);
if (x_max >= 8)
{
p = convert_int4(vload4(0, ptr + 4));
#ifdef OP_MOMENTS_BINARY
p = min(p, 1);
#endif
S += (int4)(p.s0, p.s0 * 4, p.s0 * 16, p.s0 * 64) + (int4)(p.s1, p.s1 * 5, p.s1 * 25, p.s1 * 125) +
(int4)(p.s2, p.s2 * 6, p.s2 * 36, p.s2 * 216) + (int4)(p.s3, p.s3 * 7, p.s3 * 49, p.s3 * 343);
//SUM_ELEM(p.s0, 4) + SUM_ELEM(p.s1, 5) + SUM_ELEM(p.s2, 6) + SUM_ELEM(p.s3, 7);
if (x_max >= 12)
{
p = convert_int4(vload4(0, ptr + 8));
#ifdef OP_MOMENTS_BINARY
p = min(p, 1);
#endif
S += (int4)(p.s0, p.s0 * 8, p.s0 * 64, p.s0 * 512) + (int4)(p.s1, p.s1 * 9, p.s1 * 81, p.s1 * 729) +
(int4)(p.s2, p.s2 * 10, p.s2 * 100, p.s2 * 1000) + (int4)(p.s3, p.s3 * 11, p.s3 * 121, p.s3 * 1331);
//SUM_ELEM(p.s0, 8) + SUM_ELEM(p.s1, 9) + SUM_ELEM(p.s2, 10) + SUM_ELEM(p.s3, 11);
if (x_max >= 16)
{
p = convert_int4(vload4(0, ptr + 12));
#ifdef OP_MOMENTS_BINARY
p = min(p, 1);
#endif
S += (int4)(p.s0, p.s0 * 12, p.s0 * 144, p.s0 * 1728) + (int4)(p.s1, p.s1 * 13, p.s1 * 169, p.s1 * 2197) +
(int4)(p.s2, p.s2 * 14, p.s2 * 196, p.s2 * 2744) + (int4)(p.s3, p.s3 * 15, p.s3 * 225, p.s3 * 3375);
//SUM_ELEM(p.s0, 12) + SUM_ELEM(p.s1, 13) + SUM_ELEM(p.s2, 14) + SUM_ELEM(p.s3, 15);
}
}
}
}
if (x_max >= 20)
{
p = convert_int4(vload4(0, ptr + 16));
#ifdef OP_MOMENTS_BINARY
p = min(p, 1);
#endif
S += (int4)(p.s0, p.s0 * 16, p.s0 * 256, p.s0 * 4096) + (int4)(p.s1, p.s1 * 17, p.s1 * 289, p.s1 * 4913) +
(int4)(p.s2, p.s2 * 18, p.s2 * 324, p.s2 * 5832) + (int4)(p.s3, p.s3 * 19, p.s3 * 361, p.s3 * 6859);
//SUM_ELEM(p.s0, 16) + SUM_ELEM(p.s1, 17) + SUM_ELEM(p.s2, 18) + SUM_ELEM(p.s3, 19);
if (x_max >= 24)
{
p = convert_int4(vload4(0, ptr + 20));
#ifdef OP_MOMENTS_BINARY
p = min(p, 1);
#endif
S += (int4)(p.s0, p.s0 * 20, p.s0 * 400, p.s0 * 8000) + (int4)(p.s1, p.s1 * 21, p.s1 * 441, p.s1 * 9261) +
(int4)(p.s2, p.s2 * 22, p.s2 * 484, p.s2 * 10648) + (int4)(p.s3, p.s3 * 23, p.s3 * 529, p.s3 * 12167);
//SUM_ELEM(p.s0, 20) + SUM_ELEM(p.s1, 21) + SUM_ELEM(p.s2, 22) + SUM_ELEM(p.s3, 23);
if (x_max >= 28)
{
p = convert_int4(vload4(0, ptr + 24));
#ifdef OP_MOMENTS_BINARY
p = min(p, 1);
#endif
S += (int4)(p.s0, p.s0 * 24, p.s0 * 576, p.s0 * 13824) + (int4)(p.s1, p.s1 * 25, p.s1 * 625, p.s1 * 15625) +
(int4)(p.s2, p.s2 * 26, p.s2 * 676, p.s2 * 17576) + (int4)(p.s3, p.s3 * 27, p.s3 * 729, p.s3 * 19683);
//SUM_ELEM(p.s0, 24) + SUM_ELEM(p.s1, 25) + SUM_ELEM(p.s2, 26) + SUM_ELEM(p.s3, 27);
if (x_max >= 32)
{
p = convert_int4(vload4(0, ptr + 28));
#ifdef OP_MOMENTS_BINARY
p = min(p, 1);
#endif
S += (int4)(p.s0, p.s0 * 28, p.s0 * 784, p.s0 * 21952) + (int4)(p.s1, p.s1 * 29, p.s1 * 841, p.s1 * 24389) +
(int4)(p.s2, p.s2 * 30, p.s2 * 900, p.s2 * 27000) + (int4)(p.s3, p.s3 * 31, p.s3 * 961, p.s3 * 29791);
//SUM_ELEM(p.s0, 28) + SUM_ELEM(p.s1, 29) + SUM_ELEM(p.s2, 30) + SUM_ELEM(p.s3, 31);
}
}
}
}
if (x < x_max)
{
int ps = ptr[x];
#ifdef OP_MOMENTS_BINARY
ps = min(ps, 1);
#endif
S += SUM_ELEM(ps, x);
if (x + 1 < x_max)
{
ps = ptr[x + 1];
#ifdef OP_MOMENTS_BINARY
ps = min(ps, 1);
#endif
S += SUM_ELEM(ps, x + 1);
if (x + 2 < x_max)
{
ps = ptr[x + 2];
#ifdef OP_MOMENTS_BINARY
ps = min(ps, 1);
#endif
S += SUM_ELEM(ps, x + 2);
}
}
}
int sy = y*y;
mom[y][0] = S.s0;
mom[y][1] = S.s1;
mom[y][2] = y*S.s0;
mom[y][3] = S.s2;
mom[y][4] = y*S.s1;
mom[y][5] = sy*S.s0;
mom[y][6] = S.s3;
mom[y][7] = y*S.s2;
mom[y][8] = sy*S.s1;
mom[y][9] = y*sy*S.s0;
}
else
mom[y][0] = mom[y][1] = mom[y][2] = mom[y][3] = mom[y][4] =
mom[y][5] = mom[y][6] = mom[y][7] = mom[y][8] = mom[y][9] = 0;
barrier(CLK_LOCAL_MEM_FENCE);
#define REDUCE(d) \
if (y < d) \
{ \
mom[y][0] += mom[y + d][0]; \
mom[y][1] += mom[y + d][1]; \
mom[y][2] += mom[y + d][2]; \
mom[y][3] += mom[y + d][3]; \
mom[y][4] += mom[y + d][4]; \
mom[y][5] += mom[y + d][5]; \
mom[y][6] += mom[y + d][6]; \
mom[y][7] += mom[y + d][7]; \
mom[y][8] += mom[y + d][8]; \
mom[y][9] += mom[y + d][9]; \
} \
barrier(CLK_LOCAL_MEM_FENCE)
REDUCE(16);
REDUCE(8);
REDUCE(4);
REDUCE(2);
if (y < 10)
{
__global int* momout = mom0 + (y0*xtiles + x0) * 10;
momout[y] = mom[0][y] + mom[1][y];
}
}
}
| OpenCL | 4 | thisisgopalmandal/opencv | modules/imgproc/src/opencl/moments.cl | [
"BSD-3-Clause"
] |
import "std/test"
import "std/collections" as col
test.run("Simple loop", fn(assert) {
let outer = 0
for (i = 0; i < 10; i += 1) {
outer = outer + 1
}
assert.isEq(outer, 10)
})
test.run("Loop with continue", fn(assert) {
let outer = 0
for (i = 0; i < 10; i += 1) {
if (i % 2 > 0): continue
outer = outer + 1
}
assert.isEq(outer, 5)
})
test.run("Loop with break", fn(assert) {
let outer = 0
for (i = 0; i < 12; i += 1) {
if (i > 9): break
outer = outer + 1
}
assert.isEq(outer, 10)
})
test.run("While loop", fn(assert) {
const testWhile = fn() {
let finished = false
let i = 0
while !finished {
i += 1
if i == 5: finished = true
}
i
}
assert.isEq(testWhile(), 5)
})
test.run("Infinite loop", fn(assert) {
let finished = false
let i = 0
loop {
if finished: break
i += 1
if i == 5: finished = true
}
assert.isEq(i, 5)
})
test.run("Array iterator", fn(assert) {
let sum = 0
const nums = [2, 5, 10, 12, 5, 7]
for num in nums {
sum += num
}
assert.isEq(sum, 41)
})
test.run("Array iterator with index", fn(assert) {
let last_i = 0
const nums = [2, 5, 10, 12, 5, 7]
for i, num in nums {
last_i = i
}
assert.isEq(last_i, 5)
})
test.run("Hashmap iterator", fn(assert) {
let vals = []
const map = {
"key1": "val1",
"key2": "val2",
"key3": "val3",
}
for item in map {
vals = push(vals, item)
}
vals = sort(vals)
assert.isTrue(col.arrayMatch(vals, ["val1", "val2", "val3"]))
})
test.run("Hashmap iterator with keys", fn(assert) {
let keys = []
const map = {
"key1": "val1",
"key2": "val2",
"key3": "val3",
}
for key, item in map {
keys = push(keys, key)
}
keys = sort(keys)
assert.isTrue(col.arrayMatch(keys, ["key1", "key2", "key3"]))
})
test.run("Iterator expression", fn(assert) {
let sum = 0
for num in [2, 5, 10, 12, 5, 7] {
sum += num
}
assert.isEq(sum, 41)
})
test.run("Range iterator", fn(assert) {
let sum = 0
for num in range(5) {
sum += num
}
assert.isEq(sum, 10)
})
test.run("Range iterator with start", fn(assert) {
let sum = 0
for num in range(2, 5) {
sum += num
}
assert.isEq(sum, 9)
})
test.run("Range iterator with start, step", fn(assert) {
let sum = 0
for num in range(2, 5, 2) {
sum += num
}
assert.isEq(sum, 6)
})
| Inform 7 | 5 | lfkeitel/nitrogen | tests/basic/loops.ni | [
"BSD-3-Clause"
] |
struct PullRequest {
1: string title
}
| Thrift | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Thrift/linguist.thrift | [
"MIT"
] |
import { createHashHistory, createMemoryHistory, createBrowserHistory, History } from '{{{ runtimePath }}}';
let options = {{{ options }}};
if ((<any>window).routerBase) {
options.basename = (<any>window).routerBase;
}
// remove initial history because of ssr
let history: History = process.env.__IS_SERVER ? null : {{{ creator }}}(options);
export const createHistory = (hotReload = false) => {
if (!hotReload) {
switch(options.type){
case 'memory':
history = createMemoryHistory(options);
break;
case 'hash':
history = createHashHistory(options);
break;
case 'browser':
history = createBrowserHistory(options);
break;
default:
history = {{{ creator }}}(options);
}
}
return history;
};
// 通常仅微前端场景需要调用这个 API
export const setCreateHistoryOptions = (newOpts: any = {}) => {
options = { ...options, ...newOpts };
};
// 获取 history options 运行时配置
export const getCreateHistoryOptions = () => options;
export { history };
| Smarty | 4 | Dolov/umi | packages/preset-built-in/src/plugins/generateFiles/core/history.runtime.tpl | [
"MIT"
] |
ClearAll(a,b,c,d,x)
T 1 == 1
T !(1 != 1)
T !(1 > 1)
T !(1 < 1)
T 1 >= 1
T 1 <= 1
T 1 == 1.0
T 1 < 2
T 2 > 1
T !( 1 > 2)
T !( 2 < 1)
T !( 2 == 1)
T 2 != 1
T 2 >= 1
T 1 <= 2
T !( 1 >= 2 )
T !( 2 <= 1 )
T 1 < 2 < 3
T 3 > 2 > 1
T !( 3 < 2 < 1)
T 1 < 2 < 3 < 4
T 1 < 2.0 < 3 < 4.0
T (1 < 2 < b) == (2 < b)
T ((1 < 2 < b < c == c < 4 < 10)) == ((2 < b) && (b < c) && (c < 4))
# FIXME: do we want this ?
# T ( (a < c/d) != True )
ClearAll(b,c)
# 1 < x < 1 --> 1 < x && x < 1). FIXME. this should return false.
# This, at least, works.
T Apply(List, 1 < 2 < b < c == c < 4 < 10) == [2 < b,b < c,c < 4]
# Agrees with Mma
T (1 < x > 1) == ( 1 < x && (x > 1) )
## FIXME: for older method
# T Apply(List, b>2) == [b,>,2]
# T Apply(List, 2>b) == [2,>,b]
# T Apply(List, a < b) == List(a, < , b)
# T Apply(List, a <= b) == List(a, <= , b)
# T Apply(List, a >= b) == List(a, >= , b)
# T Apply(List, a < 1) == List(a, < , 1)
# T Apply(List, a == 1) == List(a, == , 1)
# T Apply(List, f(a) < 1) == List(f(a), < , 1)
# T Apply(List, f(a) < 1.0) == List(f(a), < , 1.0)
T (a == a ) == True
T (a != a) == False
## FIXME: reinstate this ?
# T (a <= a) == True
# T (a >= a) == True
T (a < 1) == (a < 1)
## FIXME: reimplement this. we used maybe_N
# T Sqrt(2) > 0
# T -Sqrt(2) < 0
# T 3 < Pi < 4
# T 2 < E < 3
# T 0 < EulerGamma < 1
#### Infinity
## FIXME: reimpement this.
# T 1 != Infinity
# T Not(1 == Infinity)
# T 1.0 != Infinity
# T Not(1.0 == Infinity)
#### Not
T Not(a != a) == True
T Not(a == a) == False
## Mma evaluates this to true with FullSimplify but not Simplify
## FullSimplify(b >= b)
T Head(b >= b) == GreaterEqual
T Head(b <= b) == LessEqual
T Head(b < b) == Less
T Head(b > b) == Greater
T b == b
T Not(b != b)
## Mma does evaluates these immediately
T Not(a < b) == (a >= b)
T Not(a >= b) == (a < b)
T Not(a > b) == (a <= b)
T Not(a <= b) == (a > b)
T Not(a == b) == (a != b)
T Not(a != b) == (a == b)
## This is not distributed automatically
T Head(Not( (a == b) && ( c == d))) == Not
T Head(Not(3)) == Not
#### Or
T Or() == False
T Or(1) == 1
T Or(True) == True
T Or(True,False) == True
T Or(False,False) == False
T Or(True,True) == True
T Or(False,True) == True
T Or(True,False,False) == True
# Test flatten with Or
T Args(a || b || c || d ) == [a,b,c,d]
#### And
T And() == True
T And(1) == 1
T And(True) == True
T And(False,True) == False
T And(True,False) == False
T And(True,True) == True
T And(False,False) == False
T And(True,True,True) == True
# Test flatten with And
T Args(a && b && c && d ) == [a,b,c,d]
ClearAll(a,b,c,d,f,x)
#### Refine
# This belongs elsewhere
ClearAll(aaa)
Assume(aaa,Positive)
T Refine(Abs(aaa)) == aaa
ClearAll(aaa,a)
### String
T Head(f(x) == "cat") == Equal
### SameQ
T SameQ(a,a)
T Not(SameQ(a,b))
T Not(SameQ(3,3.0))
T SameQ(3,3)
T SameQ("cat", "cat")
### Equal
T Equal() == True
T Equal(3,3)
T Equal(3,3.0)
T Head(Equal(x,y)) == Equal
T Equal(x,x)
#T Equal(2,bf"2") # probably want to get rid of bf and bi
T Equal(2,big"2")
#T Equal(2.0,bf"2")
T Equal(2.0,big"2")
T Not(Unequal(3,3))
T Not(Unequal(3,3.0))
T Not(Unequal(y,y))
T Head(Unequal(x,y)) == Unequal
T (Undefined == 3) === Undefined
T (3 == Undefined) === Undefined
T (Undefined == a) === Undefined
T (a == Undefined) === Undefined
T (a + b == Undefined) === Undefined
T ( Undefined == a + b) === Undefined
T (Undefined != 3) === Undefined
T (3 != Undefined) === Undefined
T (Undefined != a) === Undefined
T (a != Undefined) === Undefined
T (a + b != Undefined) === Undefined
ClearAll(f,x)
Apply(ClearAll,UserSyms())
| Objective-J | 4 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/newcomparison_test.sj | [
"MIT"
] |
domain: "[m] -> { S2[coordT1, coordP1, 1 + coordT1, coordP1, 2 + coordT1 - coordP1, coordP1, 3 + coordT1 - coordP1, coordP1] : m >= 1 and coordT1 <= -3 + 2m and coordT1 >= 0 and coordP1 <= 1 + coordT1 and coordP1 <= m and coordP1 >= 3 - m + coordT1 and coordP1 >= 1; S4[coordT1, coordP1, 2 + coordT1, 1 + coordP1, 2 + coordT1 - coordP1, coordP1, 3 + coordT1 - coordP1, 1 + coordP1] : m >= 1 and coordT1 <= -4 + 2m and coordT1 >= 0 and coordP1 <= 1 + coordT1 and coordP1 <= -1 + m and coordP1 >= 3 - m + coordT1 and coordP1 >= 1; S6[coordT1, coordP1, 1 + coordT1, 1 + coordP1, 2 + coordT1 - coordP1, coordP1, 2 + coordT1 - coordP1, 1 + coordP1] : m >= 1 and coordT1 <= -3 + 2m and coordT1 >= 0 and coordP1 <= 1 + coordT1 and coordP1 <= -1 + m and coordP1 >= 2 - m + coordT1 and coordP1 >= 1; S1[coordT1, coordP1, 2 + coordT1 - coordP1, coordP1] : m >= 1 and coordP1 >= 2 - m + coordT1 and coordP1 <= 1 + coordT1 and coordP1 <= m and coordP1 >= 1; S8[coordT1, coordP1] : coordT1 <= -2 + 2m and coordT1 >= 0 and coordP1 <= 1 + coordT1 and coordP1 <= m and coordP1 >= 2 - m + coordT1 and coordP1 >= 1; S5[coordT1, coordP1, 1 + coordT1, coordP1, 2 + coordT1 - coordP1, coordP1, 3 + coordT1 - coordP1, coordP1] : m >= 1 and coordT1 <= -3 + 2m and coordT1 >= 0 and coordP1 <= 1 + coordT1 and coordP1 <= m and coordP1 >= 3 - m + coordT1 and coordP1 >= 1; S7[coordT1, coordP1, 2 + coordT1, 1 + coordP1, 2 + coordT1 - coordP1, coordP1, 3 + coordT1 - coordP1, 1 + coordP1] : m >= 1 and coordT1 <= -4 + 2m and coordT1 >= 0 and coordP1 <= 1 + coordT1 and coordP1 <= -1 + m and coordP1 >= 3 - m + coordT1 and coordP1 >= 1; S3[coordT1, coordP1, 1 + coordT1, 1 + coordP1, 2 + coordT1 - coordP1, coordP1, 2 + coordT1 - coordP1, 1 + coordP1] : m >= 1 and coordT1 <= -3 + 2m and coordT1 >= 0 and coordP1 <= 1 + coordT1 and coordP1 <= -1 + m and coordP1 >= 2 - m + coordT1 and coordP1 >= 1 }"
child:
context: "[m] -> { [] : m >= 0 }"
child:
schedule: "[m] -> [{ S7[i0, i1, i2, i3, i4, i5, i6, i7] -> [(1 + i0)]; S4[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i0)]; S8[i0, i1] -> [(i0)]; S3[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i0)]; S1[i0, i1, i2, i3] -> [(i0)]; S2[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i0)]; S5[i0, i1, i2, i3, i4, i5, i6, i7] -> [(1 + i0)]; S6[i0, i1, i2, i3, i4, i5, i6, i7] -> [(1 + i0)] }]"
options: "[m] -> { separate[i0] }"
child:
sequence:
- filter: "[m] -> { S2[i0, i1, i2, i3, i4, i5, i6, i7]; S6[i0, i1, i2, i3, i4, i5, i6, i7]; S4[i0, i1, i2, i3, i4, i5, i6, i7]; S1[i0, i1, i2, i3]; S7[i0, i1, i2, i3, i4, i5, i6, i7]; S5[i0, i1, i2, i3, i4, i5, i6, i7]; S3[i0, i1, i2, i3, i4, i5, i6, i7] }"
child:
schedule: "[m] -> [{ S7[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i3)]; S4[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i1)]; S3[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i1)]; S1[i0, i1, i2, i3] -> [(i1)]; S2[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i1)]; S5[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i3)]; S6[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i3)] }]"
options: "[m] -> { separate[i0] }"
child:
sequence:
- filter: "[m] -> { S6[i0, i1, i2, i3, i4, i5, i6, i7]; S5[i0, i1, i2, i3, i4, i5, i6, i7]; S7[i0, i1, i2, i3, i4, i5, i6, i7] }"
child:
schedule: "[m] -> [{ S7[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i4)]; S5[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i4)]; S6[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i4)] }, { S7[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i5)]; S5[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i5)]; S6[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i5)] }]"
options: "[m] -> { separate[i0] }"
- filter: "[m] -> { S1[i0, i1, i2, i3] }"
- filter: "[m] -> { S2[i0, i1, i2, i3, i4, i5, i6, i7]; S4[i0, i1, i2, i3, i4, i5, i6, i7]; S3[i0, i1, i2, i3, i4, i5, i6, i7] }"
child:
schedule: "[m] -> [{ S4[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i4)]; S3[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i4)]; S2[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i4)] }, { S4[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i5)]; S3[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i5)]; S2[i0, i1, i2, i3, i4, i5, i6, i7] -> [(i5)] }]"
options: "[m] -> { separate[i0] }"
- filter: "[m] -> { S8[i0, i1] }"
| Smalltalk | 3 | chelini/isl-haystack | test_inputs/codegen/cloog/classen.st | [
"MIT"
] |
module ciena-waveserver-typedefs {
namespace "urn:ciena:params:xml:ns:yang:ciena-ws:ciena-waveserver-typedefs";
prefix cienawstypes;
organization
"Ciena Corporation";
contact
"Web URL: http://www.ciena.com/
Postal: 7035 Ridge Road
Hanover, Maryland 21076
U.S.A.
Phone: +1 800-921-1144
Fax: +1 410-694-5750";
description
"This YANG module defines Ciena's commonly used typedefs";
revision 2018-01-04 {
description
"Updated 'modem-frequency' range values for C-Band and L-Band capabilities.
Added 'otn' enum value to 'conditioning-type' typedef.
Removed unused OTUCn 'xcvr-mode' enum values and added OTL4.4/OTLC.4 support.
Added 'ipaddr-or-hostname' typedef.";
reference "Waveserver Ai user's guide.";
}
revision 2017-09-05 {
description
"Waveserver Platform Data Model
Migrated from Waveserver Classic R1.4 YANG model.
Updated namespace to 'ciena-waveserver'.
Added 'xcvr-mode' enum values.
Added 'power-state' typedef.
Renamed 'channels-number' typedef to 'lanes-number'.
Removed 'xcvr-id', 'ptp-id', 'port-id' types; use string types instead.
Added 'conditioning-type' and 'conditioning-holdoff' typedefs.
Remove line-module-type-bits typedef.
Added 'trace-mismatch-mode' and 'trace-mismatch-fail-mode'.
Added 'restart-reason'.
Removed several unused typedefs.";
reference "Waveserver Ai user's guide.";
}
typedef mac-string {
type string {
length "1..20";
}
description
"MAC address string.";
}
typedef name-string {
type string {
length "1..32";
}
description
"String type for object names used in Ciena defined modules. It must be a non empty string that is at most 32 characters long.";
}
typedef description-string {
type string {
length "0..128";
}
description
"String type for description used in Ciena defined modules. Max length of 128 characters, plus null.";
}
typedef on-off-enum {
type enumeration {
enum "off" {
description
"Off";
}
enum "on" {
description
"On";
}
}
description
"Off and On enum toggle used in Ciena defined modules.";
}
typedef power-state {
type enumeration {
enum "automatic" {
description
"Power state is automatic (on/normal).";
}
enum "shutdown" {
description
"Power state is shutdown (off/low-power-mode).";
}
}
description
"Power state automatic (on/normal) or shutdown (off/low-power-mode).";
}
typedef yes-no-enum {
type enumeration {
enum "no" {
description
"No";
}
enum "yes" {
description
"Yes";
}
}
description
"No and Yes enum toggle used in Ciena defined modules.";
}
typedef up-down-enum {
type enumeration {
enum "down" {
description
"Object is down/disabled/failed.";
}
enum "up" {
description
"Object is up/operational.";
}
}
description
"Down and Up enum toggle used in Ciena defined modules.";
}
typedef enabled-disabled-enum {
type enumeration {
enum "disabled" {
description
"Object or attribute is disabled.";
}
enum "enabled" {
description
"Object or attribute is enabled.";
}
}
description
"Enabled and Disabled enum toggle used in Ciena defined modules.";
}
typedef yes-no-na-enum {
type enumeration {
enum "no" {
description
"No";
}
enum "yes" {
description
"Yes";
}
enum "not-applicable" {
description
"Not applicable";
}
}
description
"No and Yes enum toggle used in Ciena defined modules.";
}
typedef enabled-disabled-na-enum {
type enumeration {
enum "disabled" {
description
"Disabled";
}
enum "enabled" {
description
"Enabled";
}
enum "not-applicable" {
description
"Not applicable";
}
}
description
"Enabled, Disabled, and not-applicable enum used in Ciena defined modules.";
}
typedef wl-spacing {
type enumeration {
enum "50GHz" {
description
"50GHz wavelength spacing.";
}
enum "100GHz" {
description
"100GHz wavelength spacing.";
}
enum "200GHz" {
description
"200GHz wavelength spacing.";
}
enum "flex-grid" {
description
"Flex-grid wavelength spacing.";
}
}
description
"Wavelength spacing, 50GHz, 100GHz, 200GHz, or flex-grid. Only 'flex-grid' supported in Waveserver Ai R1.0.";
}
typedef decimal-3-dig {
type decimal64 {
fraction-digits 3;
range "-2147483.0 .. 2147483.0";
}
description
"Decimal value up to 3 digits.";
}
typedef decimal-2-dig-small {
type decimal64 {
fraction-digits 2;
range "-30000.0 .. 30000.0";
}
description
"Decimal value up to 2 digits.";
}
typedef decimal-2-dig {
type decimal64 {
fraction-digits 2;
range "-21474836.0 .. 21474836.0";
}
description
"Decimal value up to 2 digits.";
}
typedef decimal-1-dig {
type decimal64 {
fraction-digits 1;
range "-214748364.0 .. 214748364.0";
}
description
"Decimal value up to 1 digits.";
}
typedef string-sci {
type string {
length "0..32";
pattern "[-+]?[0-9](\\.[0-9]+)?([eE][-+]?[0-9]+)?";
}
description
"String in Scientific Notation format with a max length of 32 characters.";
}
typedef string-maxl-15 {
type string {
length "0..15";
}
description
"Standard string that has a max length of 15 characters. Can be used for various nodes that may require string of this length.";
}
typedef string-maxl-16 {
type string {
length "0..16";
}
description
"Standard string that has a max length of 16 characters. Can be used for various nodes that may require string of this length.";
}
typedef string-maxl-32 {
type string {
length "0..32";
}
description
"Standard string that has a max length of 32 characters. Can be used for various nodes that may require string of this length.";
}
typedef string-maxl-44 {
type string {
length "0..44";
}
description
"Standard string that has a max length of 44 characters. Can be used for various nodes that may require string of this length.";
}
typedef string-maxl-50 {
type string {
length "0..50";
}
description
"Standard string that has a max length of 50 characters. Can be used for various nodes that may require string of this length.";
}
typedef string-maxl-64 {
type string {
length "0..64";
}
description
"Standard string that has a max length of 64 characters. Can be used for various nodes that may require string of this length.";
}
typedef string-maxl-128 {
type string {
length "0..128";
}
description
"Standard string that has a max length of 128 characters. Can be used for various nodes that may require string of this length.";
}
typedef string-maxl-254 {
type string {
length "0..254";
}
description
"Standard string that has a max length of 254 characters. Can be used for various nodes that may require string of this length.";
}
typedef string-maxl-256 {
type string {
length "0..256";
}
description
"Standard string that has a max length of 256 characters. Can be used for various nodes that may require string of this length.";
}
typedef ipaddr-or-hostname {
type string {
length "1..63";
}
description
"IP address or hostname string.";
}
typedef port-name {
type string {
length "1..32";
}
description
"A string representing a port interface name. Format is: '<slot>-<port>' or '<slot>-<majorport>.<minorport>'.";
}
typedef service-idx {
type uint32 {
range "0 .. 1000";
}
description
"Service Index";
}
typedef service-domain-idx {
type uint32 {
range "0 .. 20";
}
description
"Service Domain Index";
}
typedef xcvr-type {
type enumeration {
enum "not-available" {
value 0;
description
"XCVR type not available.";
}
enum "unsupported" {
value 1;
description
"XCVR type unsupported.";
}
enum "QSFPplus" {
value 2;
description
"XCVR type QSFP+.";
}
enum "QSFP28" {
value 3;
description
"XCVR type QSFP28.";
}
enum "WaveLogic 3 Extreme" {
value 4;
description
"XCVR type WL3e.";
}
enum "WaveLogic Ai" {
value 5;
description
"XCVR type WLAi.";
}
}
description
"Transceiver type.";
}
typedef xcvr-mode {
type enumeration {
enum "blank" {
value 0;
description
"XCVR/slot is blank.";
}
enum "10GE" {
value 10;
description
"XCVR mode 10 Gigabit Ethernet.";
}
enum "40GE" {
value 40;
description
"XCVR mode 40 Gigabit Ethernet.";
}
enum "100GE" {
value 100;
description
"XCVR mode 100 Gigabit Ethernet.";
}
enum "400GE" {
value 400;
description
"XCVR mode 400 Gigabit Ethernet.";
}
enum "OTL4.4" {
value 58044;
description
"XCVR mode OTL4.4.";
}
enum "OTLC.4" {
value 58104;
description
"XCVR mode OTLC.4.";
}
enum "56-200" {
value 560200;
description
"XCVR mode 56Gbaud, 200Gbps.";
}
enum "56-300" {
value 560300;
description
"XCVR mode 56Gbaud, 300Gbps.";
}
enum "56-400" {
value 560400;
description
"XCVR mode 56Gbaud, 400Gbps.";
}
}
description
"Transceiver mode.";
}
typedef line-sys-enum {
type enumeration {
enum "coloured" {
description
"Line system coloured.";
}
enum "colourless" {
description
"Line system colourless.";
}
enum "contentionless" {
description
"Line system contentionless.";
}
enum "cs-coloured" {
description
"Line system cs-coloured.";
}
enum "cs-colourless" {
description
"Line system cs-colourless.";
}
}
description
"Line system type.";
}
typedef lanes-number {
type uint16 {
range "0 .. 4";
}
description
"Lane number common type, lane range is defined from 0 to 4.";
}
typedef connector-type-desc-enum {
type enumeration {
enum "Unknown or unspecified" {
value 0;
description
"Unknown or unspecified.";
}
enum "SC - Subscriber Connector" {
value 1;
description
"SC - Subscriber Connector.";
}
enum "Fibre Channel Style 1 copper connector" {
value 2;
description
"Fibre Channel Style 1 copper connector.";
}
enum "Fibre Channel Style 2 copper connector" {
value 3;
description
"Fibre Channel Style 2 copper connector.";
}
enum "BNC/TNC - Bayonet/Threaded Neill-Concelman" {
value 4;
description
"BNC/TNC - Bayonet/Threaded Neill-Concelman.";
}
enum "Fibre Channel coax headers" {
value 5;
description
"Fibre Channel coax headers.";
}
enum "Fiber Jack" {
value 6;
description
"Fiber Jack.";
}
enum "LC - Lucent Connector" {
value 7;
description
"LC - Lucent Connector.";
}
enum "MT-RJ - Mechanical Transfer - Registered Jack" {
value 8;
description
"MT-RJ - Mechanical Transfer - Registered Jack.";
}
enum "MU - Multiple Optical" {
value 9;
description
"MU - Multiple Optical.";
}
enum "SG" {
value 10;
description
"SG.";
}
enum "Optical Pigtail" {
value 11;
description
"Optical Pigtail.";
}
enum "MPO 1x12 - Multifiber Parallel Optic" {
value 12;
description
"MPO 1x12 - Multifiber Parallel Optic.";
}
enum "MPO 2x16" {
value 13;
description
"MPO 2x16.";
}
enum "HSSDC II - High Speed Serial Data Connector" {
value 32;
description
"HSSDC II - High Speed Serial Data Connector.";
}
enum "Copper pigtail" {
value 33;
description
"Copper pigtail.";
}
enum "RJ45 - Registered Jack" {
value 34;
description
"RJ45 - Registered Jack.";
}
enum "No separable connector" {
value 35;
description
"No separable connector.";
}
enum "MXC 2x16" {
value 36;
description
"MXC 2x16.";
}
}
description
"Human readable description of Vendor's connector type byte value. Reference SFF-8024, table 4-3";
}
typedef modem-frequency {
type decimal64 {
fraction-digits 1;
range "0.0 | 186087.5 .. 190956.2 | 191342.5 .. 196107.5";
}
units "GHz";
description
"Modem frequency, in GHz. 0.0 indicates unprovisioned (default) value. L-Band range is 186087.5 - 190956.2 GHz, and C-Band range is 191342.5 - 196107.5 GHz.";
}
typedef tx-power-lvl {
type decimal64 {
fraction-digits 1;
range "-214748364.0 .. 214748364.0";
}
description
"Modem Tx Power Level.";
}
typedef module-type-enum {
type enumeration {
enum "unknown" {
description
"Module type unknown.";
}
enum "integrated" {
description
"Module type integrated.";
}
enum "field-replaceable" {
description
"Module type field-replaceable.";
}
}
description
"Module type enum.";
}
typedef module-type-bits {
type bits {
bit integrated {
position 0;
description
"Module type integrated.";
}
bit field-replaceable {
position 1;
description
"Module type field-replaceable.";
}
}
description
"Module type bits.";
}
typedef restart-reason {
type enumeration {
enum "unknown" {
description
"Unknown restart reason.";
}
enum "user-warm" {
description
"User-initiated warm restart.";
}
enum "user-cold" {
description
"User-initiated cold restart.";
}
enum "system-warm" {
description
"System-initiated warm restart.";
}
enum "system-cold" {
description
"System-initiated cold restart.";
}
enum "power-on" {
description
"Device inserted or powered on.";
}
}
description
"Chassis/Module last restart reason.";
}
typedef conditioning-type {
type enumeration {
enum "none" {
value 0;
description
"No consequent action.";
}
enum "laser-off" {
value 1;
description
"Disable the transmitter consequent action.";
}
enum "ethernet" {
value 2;
description
"Ethernet Local Fault consequent action.";
}
enum "otn" {
value 3;
description
"OTN consequent action as defined in ITU-T G.798.";
}
}
description
"Egress UNI port consequent action for an EPL service to be applied on a far-end ingress UNI failure or network failure.";
}
typedef conditioning-holdoff {
type int16 {
range "0|10|20|30|40|50|60|70|80|90|100|200|300|400|500|600|700|800|900|1000";
}
units "ms";
description
"Number of milliseconds to delay Egress UNI port consequent action for an EPL service.";
}
typedef trace-mismatch-mode {
type enumeration {
enum "operator-only" {
value 1;
description
"Trace mismatch detection criteria includes operator-specific trace string only. Other fields are ignored.";
}
enum "sapi" {
value 2;
description
"Trace mismatch detection criteria includes source access point identifier (SAPI) trace string only. Other fields are ignored.";
}
enum "dapi" {
value 3;
description
"Trace mismatch detection criteria includes destination access point identifier (DAPI) trace string only. Other fields are ignored.";
}
enum "sapi-and-dapi" {
value 4;
description
"Trace mismatch detection criteria includes SAPI and DAPI strings. A mismatch of either of these fields will result in TTI mismatch. The operator specific field is ignored.";
}
}
description
"The trail trace identifier (TTI) mismatch mode, indicating which fields of the TTI overhead are used for trace mismatch detection.";
}
typedef trace-mismatch-fail-mode {
type enumeration {
enum "none" {
description
"TTI mismatch detection is disable or ignored. Do not raise an alarm on TTI mismatch condition.";
}
enum "alarm-only" {
description
"Raise an alarm when TTI mismatch occurs, but do not squelch traffic.";
}
}
description
"The trail trace identifier (TTI) mismatch failure mode. When TTI mismatch condition occurs, this indicates the consequent action taken, e.g. whether or not to raise an alarm.";
}
}
| YANG | 5 | meodaiduoi/onos | models/ciena/waveserverai/src/main/yang/[email protected] | [
"Apache-2.0"
] |
// A minimal pixel shader that outlines text
// The terminal graphics as a texture
Texture2D shaderTexture;
SamplerState samplerState;
// Terminal settings such as the resolution of the texture
cbuffer PixelShaderSettings {
// The number of seconds since the pixel shader was enabled
float Time;
// UI Scale
float Scale;
// Resolution of the shaderTexture
float2 Resolution;
// Background color as rgba
float4 Background;
};
// A pixel shader is a program that given a texture coordinate (tex) produces a color.
// tex is an x,y tuple that ranges from 0,0 (top left) to 1,1 (bottom right).
// Just ignore the pos parameter.
float4 main(float4 pos : SV_POSITION, float2 tex : TEXCOORD) : SV_TARGET
{
// Read the color value at the current texture coordinate (tex)
// float4 is tuple of 4 floats, rgba
float4 color = shaderTexture.Sample(samplerState, tex);
// Read the color value at some offset, will be used as shadow. For the best
// effect, read the colors offset on the left, right, top, bottom of this
// fragment, as well as on the corners of this fragment.
//
// You could get away with fewer samples, but the resulting outlines will be
// blurrier.
//left, right, top, bottom:
float4 leftColor = shaderTexture.Sample(samplerState, tex+1.0*Scale*float2( 1.0, 0.0)/Resolution.y);
float4 rightColor = shaderTexture.Sample(samplerState, tex+1.0*Scale*float2(-1.0, 0.0)/Resolution.y);
float4 topColor = shaderTexture.Sample(samplerState, tex+1.0*Scale*float2( 0.0, 1.0)/Resolution.y);
float4 bottomColor = shaderTexture.Sample(samplerState, tex+1.0*Scale*float2( 0.0, -1.0)/Resolution.y);
// Corners
float4 topLeftColor = shaderTexture.Sample(samplerState, tex+1.0*Scale*float2( 1.0, 1.0)/Resolution.y);
float4 topRightColor = shaderTexture.Sample(samplerState, tex+1.0*Scale*float2(-1.0, 1.0)/Resolution.y);
float4 bottomLeftColor = shaderTexture.Sample(samplerState, tex+1.0*Scale*float2( 1.0, -1.0)/Resolution.y);
float4 bottomRightColor = shaderTexture.Sample(samplerState, tex+1.0*Scale*float2(-1.0, -1.0)/Resolution.y);
// Now, if any of those adjacent cells has text in it, then the *color vec4
// will have a non-zero .w (which is used for alpha). Use that alpha value
// to add some black to the current fragment.
//
// This will result in only coloring fragments adjacent to text, but leaving
// background images (for example) untouched.
float3 outlineColor = float3(0, 0, 0);
float4 result = color;
result = result + float4(outlineColor, leftColor.w);
result = result + float4(outlineColor, rightColor.w);
result = result + float4(outlineColor, topColor.w);
result = result + float4(outlineColor, bottomColor.w);
result = result + float4(outlineColor, topLeftColor.w);
result = result + float4(outlineColor, topRightColor.w);
result = result + float4(outlineColor, bottomLeftColor.w);
result = result + float4(outlineColor, bottomRightColor.w);
return result;
}
| HLSL | 5 | hessedoneen/terminal | samples/PixelShaders/Outlines.hlsl | [
"MIT"
] |
; system.lsp -- machine/system-dependent definitions
; Macintosh
(setf ny:bigendianp t)
;; note that *default-sf-format* is used below by
;; compute-default-sound-file
(if (not (boundp '*default-sf-format*))
(setf *default-sf-format* snd-head-AIFF))
;; note that compute-default-sound-file uses *default-sf-format*,
;; so be sure to set *default-sf-format* first (this was just done)
(if (not (boundp '*default-sound-file*))
(compute-default-sound-file))
(if (not (boundp '*default-sf-dir*))
(setf *default-sf-dir* ""))
(if (not (boundp '*default-sf-mode*))
(setf *default-sf-mode* snd-mode-pcm))
(if (not (boundp '*default-sf-bits*))
(setf *default-sf-bits* 16))
(if (not (boundp '*default-plot-file*))
(setf *default-plot-file* "points.dat"))
; turn off switch to play sound as it is computed
(setf *soundenable* T)
; local definition for play
(defmacro play (expr)
`(s-save-autonorm ,expr NY:ALL *default-sound-file* :play *soundenable*))
(defun r ()
(s-save (s-read *default-sound-file*) NY:ALL "" :play t)
)
; PLAY-FILE -- play a file
(defun play-file (name)
(s-save (s-read name) NY:ALL "" :play t))
; FULL-NAME-P -- test if file name is a full path or relative path
;
; (otherwise the *default-sf-dir* will be prepended
;
(defun full-name-p (filename)
(eq (char filename 0) #\:))
(setf *file-separator* #\:)
; save the standard function to write points to a file
;
;(setfn s-plot-points s-plot)
(defun array-max-abs (points)
(let ((m 0.0))
(dotimes (i (length points))
(setf m (max m (abs (aref points i)))))
m))
(setf graph-width 800)
(setf graph-height 220)
(defun s-plot (snd &optional (n 800))
(show-graphics)
(clear-graphics)
(cond ((soundp snd)
(s-plot-2 snd n (/ graph-height 2) graph-height nil))
(t
(let ((gh (/ graph-height (length snd)))
hs)
(dotimes (i (length snd))
(setf hs (s-plot-2 (aref snd i) n (+ (/ gh 2) (* i gh)) gh hs)))))))
(defun s-plot-2 (snd n y-offset graph-height horizontal-scale)
(prog ((points (snd-samples snd n))
maxpoint horizontal-scale vertical-scale)
(setf maxpoint (array-max-abs points))
(moveto 0 y-offset)
(lineto graph-width y-offset)
(moveto 0 y-offset)
(cond ((null horizontal-scale)
(setf horizontal-scale (/ (float graph-width) (length points)))))
(setf vertical-scale (- (/ (float graph-height) 2 maxpoint)))
(dotimes (i (length points))
(lineto (truncate (* horizontal-scale i))
(+ y-offset (truncate (* vertical-scale (aref points i))))))
(format t "X Axis: ~A to ~A (seconds)\n" (snd-t0 snd) (/ (length points) (snd-srate snd)))
(format t "Y Axis: ~A to ~A\n" (- maxpoint) maxpoint)
(format t "~A samples plotted.\n" (length points))
(return horizontal-scale)
))
; S-EDIT - run the audio editor on a sound
;
;(defmacro s-edit (&optional expr)
; `(prog ()
; (if ,expr (s-save ,expr 1000000000 *default-sound-file*))
; (system (format nil "audio_editor ~A &"
; (soundfilename *default-sound-file*)))))
| Common Lisp | 4 | joshrose/audacity | lib-src/libnyquist/nyquist/sys/mac/system.lsp | [
"CC-BY-3.0"
] |
default
{
state_entry()
{
string test = llBase64ToString("U2VjcmV0Ok9wZW4=");
llOwnerSay(test);
}
}
| LSL | 4 | MandarinkaTasty/OpenSim | bin/assets/ScriptsAssetSet/llBase64ToString.lsl | [
"BSD-3-Clause"
] |
<?Lassoscript
// Last modified 3/7/10 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= OutputImageMed }
{Description= Outputs the already-built $vImage_Med }
{Author= Eric Landmann }
{AuthorEmail= [email protected] }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 7/6/09 }
{Usage= OutputImageMed }
{ExpectedResults= HTML for the Medium Image }
{Dependencies= $vImage_Med must be defined, otherwise a comment will be output }
{DevelNotes= $vImage_Med is defined in build_detail.inc
This tag is merely a convenience to make it less awkward for a designer }
{ChangeNotes= 8/31/09
Integrated into itPage codebase. }
/Tagdocs;
*/
If: !(Lasso_TagExists:'OutputImageMed');
Define_Tag:'OutputImageMed',
-Description='Outputs the medium image (in $vImage_Med)';
Local('Result') = null;
// Check if var is defined
If: (Var:'vImage_Med') != '';
#Result += '<!-- OutputImageMed -->\n';
#Result += '\t<div class="ContentPanelImage">\n';
// #Result += '\t\t<img src="'($svImagesMdPath)($vImage_Med)'" alt="'($vImage_Med)'">\n';
// OVERRIDE for PreviewPage.lasso - Only difference is to define a width and height for the image
If: ((Response_filepath) >> 'PreviewPage') && ((Var:'vImage_Med') >> 'PreviewPhoto');
// Calculate the height. Have to do this silly thing because the preview image is small
Var:'svImageMediumHeightOut' = (Math_Mult:(Var:'svImageMediumHeight'),.75);
#Result += ('<!-- CT420 --><img src="'+($svImagesMdPath)+(Var:'vImage_med')+'" hspace="5" alt="PreviewImage" width="'+($svImageMediumWidth)+'" height="'+(Integer($svImageMediumHeightOut))+'">\n');
Else;
#Result += '<!-- CT420 --><img src="'($svImagesMdPath)(Var:'vImage_med')'" hspace="5" alt="'(Var:'vImage_med')'">\n';
/If;
#Result += '\t</div>\n';
Return: (Encode_Smart:(#Result));
Else;
// Output a comment that variable is not defined
#Result = '<!-- OutputImageMed: Image_Med is undefined -->\n';
Return: (Encode_Smart:(#Result));
/If;
/Define_Tag;
Log_Critical: 'Custom Tag Loaded - OutputImageMed';
/If;
?>
| Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/OutputImageMed.lasso | [
"MIT"
] |
variable "aws_region" {
description = "The AWS region to create docdb cluster and ec2 instance in."
default = "us-east-2"
}
variable "vpc_id" {
description = "The ID of the default VPC used by docdb cluster and ec2 instance."
}
variable "ssh_public_key" {
description = "A public key line in .ssh/authorized_keys format to use to authenticate to your instance. This must be added to your SSH agent for provisioning to succeed."
}
variable "db_username" {
description = "The master username to login docdb"
}
variable "db_password" {
description = "The master password to login docdb"
}
| HCL | 4 | saeidakbari/go-cloud | docstore/mongodocstore/awsdocdb/variables.tf | [
"Apache-2.0"
] |
(*
Module: Test_Cups
Provides unit tests and examples for the <Cups> lens.
*)
module Test_Cups =
(* Variable: conf *)
let conf = "# Sample configuration file for the CUPS scheduler.
LogLevel warn
# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd
BrowseAddress @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Web interface setting...
WebInterface Yes
# Restrict access to the server...
<Location />
Order allow,deny
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
# Set the default printer/job policies...
<Policy default>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
# Set the authenticated printer/job policies...
<Policy authenticated>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
"
(* Test: Simplevars.lns *)
test Cups.lns get conf =
{ "#comment" = "Sample configuration file for the CUPS scheduler." }
{ "directive" = "LogLevel"
{ "arg" = "warn" }
}
{ }
{ "#comment" = "Deactivate CUPS' internal logrotating, as we provide a better one, especially" }
{ "#comment" = "LogLevel debug2 gets usable now" }
{ "directive" = "MaxLogSize"
{ "arg" = "0" }
}
{ }
{ "#comment" = "Administrator user group..." }
{ "directive" = "SystemGroup"
{ "arg" = "lpadmin" }
}
{ }
{ }
{ "#comment" = "Only listen for connections from the local machine." }
{ "directive" = "Listen"
{ "arg" = "localhost:631" }
}
{ "directive" = "Listen"
{ "arg" = "/var/run/cups/cups.sock" }
}
{ }
{ "#comment" = "Show shared printers on the local network." }
{ "directive" = "BrowseOrder"
{ "arg" = "allow,deny" }
}
{ "directive" = "BrowseAllow"
{ "arg" = "all" }
}
{ "directive" = "BrowseLocalProtocols"
{ "arg" = "CUPS" }
{ "arg" = "dnssd" }
}
{ "directive" = "BrowseAddress"
{ "arg" = "@LOCAL" }
}
{ }
{ "#comment" = "Default authentication type, when authentication is required..." }
{ "directive" = "DefaultAuthType"
{ "arg" = "Basic" }
}
{ }
{ "#comment" = "Web interface setting..." }
{ "directive" = "WebInterface"
{ "arg" = "Yes" }
}
{ }
{ "#comment" = "Restrict access to the server..." }
{ "Location"
{ "arg" = "/" }
{ "directive" = "Order"
{ "arg" = "allow,deny" }
}
}
{ }
{ "#comment" = "Restrict access to the admin pages..." }
{ "Location"
{ "arg" = "/admin" }
{ "directive" = "Order"
{ "arg" = "allow,deny" }
}
}
{ }
{ "#comment" = "Restrict access to configuration files..." }
{ "Location"
{ "arg" = "/admin/conf" }
{ "directive" = "AuthType"
{ "arg" = "Default" }
}
{ "directive" = "Require"
{ "arg" = "user" }
{ "arg" = "@SYSTEM" }
}
{ "directive" = "Order"
{ "arg" = "allow,deny" }
}
}
{ }
{ "#comment" = "Set the default printer/job policies..." }
{ "Policy"
{ "arg" = "default" }
{ "#comment" = "Job/subscription privacy..." }
{ "directive" = "JobPrivateAccess"
{ "arg" = "default" }
}
{ "directive" = "JobPrivateValues"
{ "arg" = "default" }
}
{ "directive" = "SubscriptionPrivateAccess"
{ "arg" = "default" }
}
{ "directive" = "SubscriptionPrivateValues"
{ "arg" = "default" }
}
{ }
{ "#comment" = "Job-related operations must be done by the owner or an administrator..." }
{ "Limit"
{ "arg" = "Create-Job" }
{ "arg" = "Print-Job" }
{ "arg" = "Print-URI" }
{ "arg" = "Validate-Job" }
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "Limit"
{ "arg" = "Send-Document" }
{ "arg" = "Send-URI" }
{ "arg" = "Hold-Job" }
{ "arg" = "Release-Job" }
{ "arg" = "Restart-Job" }
{ "arg" = "Purge-Jobs" }
{ "arg" = "Set-Job-Attributes" }
{ "arg" = "Create-Job-Subscription" }
{ "arg" = "Renew-Subscription" }
{ "arg" = "Cancel-Subscription" }
{ "arg" = "Get-Notifications" }
{ "arg" = "Reprocess-Job" }
{ "arg" = "Cancel-Current-Job" }
{ "arg" = "Suspend-Current-Job" }
{ "arg" = "Resume-Job" }
{ "arg" = "Cancel-My-Jobs" }
{ "arg" = "Close-Job" }
{ "arg" = "CUPS-Move-Job" }
{ "arg" = "CUPS-Get-Document" }
{ "directive" = "Require"
{ "arg" = "user" }
{ "arg" = "@OWNER" }
{ "arg" = "@SYSTEM" }
}
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "#comment" = "All administration operations require an administrator to authenticate..." }
{ "Limit"
{ "arg" = "CUPS-Add-Modify-Printer" }
{ "arg" = "CUPS-Delete-Printer" }
{ "arg" = "CUPS-Add-Modify-Class" }
{ "arg" = "CUPS-Delete-Class" }
{ "arg" = "CUPS-Set-Default" }
{ "arg" = "CUPS-Get-Devices" }
{ "directive" = "AuthType"
{ "arg" = "Default" }
}
{ "directive" = "Require"
{ "arg" = "user" }
{ "arg" = "@SYSTEM" }
}
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "#comment" = "All printer operations require a printer operator to authenticate..." }
{ "Limit"
{ "arg" = "Pause-Printer" }
{ "arg" = "Resume-Printer" }
{ "arg" = "Enable-Printer" }
{ "arg" = "Disable-Printer" }
{ "arg" = "Pause-Printer-After-Current-Job" }
{ "arg" = "Hold-New-Jobs" }
{ "arg" = "Release-Held-New-Jobs" }
{ "arg" = "Deactivate-Printer" }
{ "arg" = "Activate-Printer" }
{ "arg" = "Restart-Printer" }
{ "arg" = "Shutdown-Printer" }
{ "arg" = "Startup-Printer" }
{ "arg" = "Promote-Job" }
{ "arg" = "Schedule-Job-After" }
{ "arg" = "Cancel-Jobs" }
{ "arg" = "CUPS-Accept-Jobs" }
{ "arg" = "CUPS-Reject-Jobs" }
{ "directive" = "AuthType"
{ "arg" = "Default" }
}
{ "directive" = "Require"
{ "arg" = "user" }
{ "arg" = "@SYSTEM" }
}
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "#comment" = "Only the owner or an administrator can cancel or authenticate a job..." }
{ "Limit"
{ "arg" = "Cancel-Job" }
{ "arg" = "CUPS-Authenticate-Job" }
{ "directive" = "Require"
{ "arg" = "user" }
{ "arg" = "@OWNER" }
{ "arg" = "@SYSTEM" }
}
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "Limit"
{ "arg" = "All" }
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
}
{ }
{ "#comment" = "Set the authenticated printer/job policies..." }
{ "Policy"
{ "arg" = "authenticated" }
{ "#comment" = "Job/subscription privacy..." }
{ "directive" = "JobPrivateAccess"
{ "arg" = "default" }
}
{ "directive" = "JobPrivateValues"
{ "arg" = "default" }
}
{ "directive" = "SubscriptionPrivateAccess"
{ "arg" = "default" }
}
{ "directive" = "SubscriptionPrivateValues"
{ "arg" = "default" }
}
{ }
{ "#comment" = "Job-related operations must be done by the owner or an administrator..." }
{ "Limit"
{ "arg" = "Create-Job" }
{ "arg" = "Print-Job" }
{ "arg" = "Print-URI" }
{ "arg" = "Validate-Job" }
{ "directive" = "AuthType"
{ "arg" = "Default" }
}
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "Limit"
{ "arg" = "Send-Document" }
{ "arg" = "Send-URI" }
{ "arg" = "Hold-Job" }
{ "arg" = "Release-Job" }
{ "arg" = "Restart-Job" }
{ "arg" = "Purge-Jobs" }
{ "arg" = "Set-Job-Attributes" }
{ "arg" = "Create-Job-Subscription" }
{ "arg" = "Renew-Subscription" }
{ "arg" = "Cancel-Subscription" }
{ "arg" = "Get-Notifications" }
{ "arg" = "Reprocess-Job" }
{ "arg" = "Cancel-Current-Job" }
{ "arg" = "Suspend-Current-Job" }
{ "arg" = "Resume-Job" }
{ "arg" = "Cancel-My-Jobs" }
{ "arg" = "Close-Job" }
{ "arg" = "CUPS-Move-Job" }
{ "arg" = "CUPS-Get-Document" }
{ "directive" = "AuthType"
{ "arg" = "Default" }
}
{ "directive" = "Require"
{ "arg" = "user" }
{ "arg" = "@OWNER" }
{ "arg" = "@SYSTEM" }
}
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "#comment" = "All administration operations require an administrator to authenticate..." }
{ "Limit"
{ "arg" = "CUPS-Add-Modify-Printer" }
{ "arg" = "CUPS-Delete-Printer" }
{ "arg" = "CUPS-Add-Modify-Class" }
{ "arg" = "CUPS-Delete-Class" }
{ "arg" = "CUPS-Set-Default" }
{ "directive" = "AuthType"
{ "arg" = "Default" }
}
{ "directive" = "Require"
{ "arg" = "user" }
{ "arg" = "@SYSTEM" }
}
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "#comment" = "All printer operations require a printer operator to authenticate..." }
{ "Limit"
{ "arg" = "Pause-Printer" }
{ "arg" = "Resume-Printer" }
{ "arg" = "Enable-Printer" }
{ "arg" = "Disable-Printer" }
{ "arg" = "Pause-Printer-After-Current-Job" }
{ "arg" = "Hold-New-Jobs" }
{ "arg" = "Release-Held-New-Jobs" }
{ "arg" = "Deactivate-Printer" }
{ "arg" = "Activate-Printer" }
{ "arg" = "Restart-Printer" }
{ "arg" = "Shutdown-Printer" }
{ "arg" = "Startup-Printer" }
{ "arg" = "Promote-Job" }
{ "arg" = "Schedule-Job-After" }
{ "arg" = "Cancel-Jobs" }
{ "arg" = "CUPS-Accept-Jobs" }
{ "arg" = "CUPS-Reject-Jobs" }
{ "directive" = "AuthType"
{ "arg" = "Default" }
}
{ "directive" = "Require"
{ "arg" = "user" }
{ "arg" = "@SYSTEM" }
}
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "#comment" = "Only the owner or an administrator can cancel or authenticate a job..." }
{ "Limit"
{ "arg" = "Cancel-Job" }
{ "arg" = "CUPS-Authenticate-Job" }
{ "directive" = "AuthType"
{ "arg" = "Default" }
}
{ "directive" = "Require"
{ "arg" = "user" }
{ "arg" = "@OWNER" }
{ "arg" = "@SYSTEM" }
}
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
{ }
{ "Limit"
{ "arg" = "All" }
{ "directive" = "Order"
{ "arg" = "deny,allow" }
}
}
}
| Augeas | 5 | ajnavarro/language-dataset | data/github.com/raphink/puppet-cups/d7eea48de85d2bfc7681aedd1be3a5967072839c/files/lenses/test_cups.aug | [
"MIT"
] |
{
"Version" : 0.2,
"ModuleName" : "libz",
"Options" : {
"Debug" : false,
"Optimization" : "None",
"TargetType" : "StaticLibrary",
"TargetFileName" : "z"
},
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"Warnings" : "All",
"Debug" : true,
"FastMath" : false
}
},
{
"Name" : "Release",
"Options" : {
"Warnings" : "None",
"Optimization" : "Speed",
"FastMath" : true
}
}
],
"Files" : [
{
"Folder" : "headers",
"Files" : [
"./crc32.h",
"./deflate.h",
"./inffast.h",
"./inffixed.h",
"./inflate.h",
"./inftrees.h",
"./trees.h",
"./zconf.h",
"./zconf.in.h",
"./zlib.h",
"./zutil.h"
]
},
"adler32.c",
"compress.c",
"crc32.c",
"deflate.c",
"infback.c",
"inffast.c",
"inflate.c",
"inftrees.c",
"trees.c",
"uncompr.c",
"zutil.c",
"gzclose.c",
"gzguts.h",
"gzlib.c",
"gzread.c",
"gzwrite.c"
],
"ResourcesPath" : "",
"Resources" : [
]
}
| Ecere Projects | 3 | N-eil/ecere-sdk | deps/zlib-1.2.8/zlib.epj | [
"BSD-3-Clause"
] |
--
-- Table src
--
DROP TABLE IF EXISTS src;
CREATE TABLE src (key STRING, value STRING) STORED AS TEXTFILE;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt" INTO TABLE src;
--
-- Table src1
--
DROP TABLE IF EXISTS src1;
CREATE TABLE src1 (key STRING, value STRING) STORED AS TEXTFILE;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv3.txt" INTO TABLE src1;
--
-- Table src_json
--
DROP TABLE IF EXISTS src_json;
CREATE TABLE src_json (json STRING) STORED AS TEXTFILE;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/json.txt" INTO TABLE src_json;
--
-- Table src_sequencefile
--
DROP TABLE IF EXISTS src_sequencefile;
CREATE TABLE src_sequencefile (key STRING, value STRING) STORED AS SEQUENCEFILE;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.seq" INTO TABLE src_sequencefile;
--
-- Table src_thrift
--
DROP TABLE IF EXISTS src_thrift;
CREATE TABLE src_thrift
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.thrift.ThriftDeserializer'
WITH SERDEPROPERTIES (
'serialization.class' = 'org.apache.hadoop.hive.serde2.thrift.test.Complex',
'serialization.format' = 'com.facebook.thrift.protocol.TBinaryProtocol')
STORED AS SEQUENCEFILE;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/complex.seq" INTO TABLE src_thrift;
--
-- Table srcbucket
--
DROP TABLE IF EXISTS srcbucket;
CREATE TABLE srcbucket (key INT, value STRING)
CLUSTERED BY (key) INTO 2 BUCKETS
STORED AS TEXTFILE;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/srcbucket0.txt" INTO TABLE srcbucket;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/srcbucket1.txt" INTO TABLE srcbucket;
--
-- Table srcbucket2
--
DROP TABLE IF EXISTS srcbucket2;
CREATE TABLE srcbucket2 (key INT, value STRING)
CLUSTERED BY (key) INTO 4 BUCKETS
STORED AS TEXTFILE;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/srcbucket20.txt" INTO TABLE srcbucket2;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/srcbucket21.txt" INTO TABLE srcbucket2;
--
-- Table srcpart
--
DROP TABLE IF EXISTS srcpart;
CREATE TABLE srcpart (key STRING, value STRING)
PARTITIONED BY (ds STRING, hr STRING)
STORED AS TEXTFILE;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt"
OVERWRITE INTO TABLE srcpart PARTITION (ds="2008-04-08", hr="11");
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt"
OVERWRITE INTO TABLE srcpart PARTITION (ds="2008-04-08", hr="12");
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt"
OVERWRITE INTO TABLE srcpart PARTITION (ds="2008-04-09", hr="11");
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt"
OVERWRITE INTO TABLE srcpart PARTITION (ds="2008-04-09", hr="12");
DROP TABLE IF EXISTS primitives;
CREATE TABLE primitives (
id INT,
bool_col BOOLEAN,
tinyint_col TINYINT,
smallint_col SMALLINT,
int_col INT,
bigint_col BIGINT,
float_col FLOAT,
double_col DOUBLE,
date_string_col STRING,
string_col STRING,
timestamp_col TIMESTAMP)
PARTITIONED BY (year INT, month INT)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
ESCAPED BY '\\'
STORED AS TEXTFILE;
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/types/primitives/090101.txt"
OVERWRITE INTO TABLE primitives PARTITION(year=2009, month=1);
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/types/primitives/090201.txt"
OVERWRITE INTO TABLE primitives PARTITION(year=2009, month=2);
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/types/primitives/090301.txt"
OVERWRITE INTO TABLE primitives PARTITION(year=2009, month=3);
LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/types/primitives/090401.txt"
OVERWRITE INTO TABLE primitives PARTITION(year=2009, month=4);
| SQL | 4 | OlegPt/spark | sql/hive/src/test/resources/data/scripts/q_test_init.sql | [
"Apache-2.0"
] |
[foo].svelte-xyz{color:red}[baz].svelte-xyz{color:blue} | CSS | 1 | Theo-Steiner/svelte | test/css/samples/attribute-selector-only-name/expected.css | [
"MIT"
] |
controller_name_space/nested.rhtml <%= yield %> | RHTML | 1 | mtomaizy/radiant | vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml | [
"MIT"
] |
$TTL 300
@ IN A 1.1.1.1
| DNS Zone | 3 | hosting-de-labs/dnscontrol | pkg/js/parse_tests/024-json-import/foo.com.zone | [
"MIT"
] |
terraform {
backend "gcs" {}
}
provider "google" {
project = var.project
region = var.region
}
provider "google-beta" {
project = var.project
region = var.region
}
data "google_client_config" "provider" {}
locals {
zone = "${var.region}-${var.zone}"
}
resource "google_project_service" "services" {
for_each = {
"clouderrorreporting.googleapis.com" = true
"cloudkms.googleapis.com" = true
"cloudresourcemanager.googleapis.com" = true
"compute.googleapis.com" = true
"container.googleapis.com" = true
"iam.googleapis.com" = true
"logging.googleapis.com" = true
"monitoring.googleapis.com" = true
"secretmanager.googleapis.com" = true
"spanner.googleapis.com" = true
}
service = each.key
disable_on_destroy = false
}
| HCL | 4 | PragmaTwice/diem | terraform/validator/gcp/main.tf | [
"Apache-2.0"
] |
\section{Extensible proof search}
\label{sec:extensible}
As we promised in the previous section, we will now explore several
variations and extensions to the |auto| tactic described above.
\subsection*{Custom search strategies}
The simplest change we can make is to abstract over the search
strategy used by the |auto| function. In the interest of readability
we will create a simple alias for the types of search strategies.
A |Strategy| represents a function which searches a |SearchTree| up to
|depth|, and returns a list of the leaves (or |Proof|s) found in the
|SearchTree| in an order which is dependent on the search strategy.
\begin{code}
Strategy = (depth : ℕ) → SearchTree A → List A
\end{code}
The changed type of the |auto| function now becomes.
\begin{code}
auto : Strategy → ℕ → HintDB → AgTerm → AgTerm
\end{code}
This will allow us to choose whether to pass in |dfs|, breadth-first
search or even a custom user-provided search strategy.
\subsection*{Custom hint databases}
In addition, we have developed a variant of the |auto| tactic
described in the paper that allows users to define their own type of
hint database, provided they can implement the following interface:
\begin{code}
HintDB : Set
Hint : ℕ → Set
getHints : HintDB → Hints
getRule : Hint k → Rule k
getTr : Hint k → (HintDB → HintDB)
\end{code}
Besides the obvious types for hints and rules, we allow hint databases
to evolve during the proof search. The user-defined |getTr| function
describes a transformation that may modify the hint database after a
certain hint has been applied.
Using this interface, we can implement many variations on proof
search. For instance, we could implement a `linear' proof search
function that removes a rule from the hint database after it has been
applied. Alternatively, we may want to assign priorities to our
hints. To illustrate one possible application of this interface, we
will describe a hint database implementation that limits the usage of
certain rules. Before we do so, however, we need to introduce a
motivating example.
\subsection*{Example: limited usage of hints}
We start by defining the following sublist relation, taken from the
Agda tutorial~\citep{agda-tutorial}:
\begin{code}
data _⊆_ : List A → List A → Set where
stop : [] ⊆ []
drop : xs ⊆ ys → xs ⊆ y ∷ ys
keep : xs ⊆ ys → x ∷ xs ⊆ x ∷ ys
\end{code}
It is easy to show that the sublist relation is both reflexive and
transitive---and using these simple proofs, we can build up a small
hint database to search for proofs on the sublist relation.
\begin{code}
hintdb : HintDB
hintdb = ε << quote drop << quote keep << quote ⊆-refl << quote ⊆-trans
\end{code}
Our |auto| tactic quickly finds a proof for the following lemma:
\begin{code}
lemma₁ : ws ⊆ 1 ∷ xs → xs ⊆ ys → ys ⊆ zs → ws ⊆ 1 ∷ 2 ∷ zs
lemma₁ = tactic (auto dfs 10 hintdb)
\end{code}
The following lemma, however, is false.
\begin{code}
lemma₂ : ws ⊆ 1 ∷ xs → xs ⊆ ys → ys ⊆ zs → ws ⊆ 2 ∷ zs
lemma₂ = tactic (auto dfs 10 hintdb)
\end{code}
Indeed, this example does not type check and our tactic reports that
the search space is exhausted. As noted by \citet{chlipala} when
examining tactics in Coq, |auto| will nonetheless spend a considerable
amount of time trying to construct a proof. As the |trans| rule is
always applicable, the proof search will construct a search tree up to
the full search depth---resulting in an exponental running time.
We will use a variation of the |auto| tactic to address this
problem. Upon constructing the new hint database, users may assign
limits to the number of times certain hints may be used. By limiting the
usage of transitivity, our tactic will fail more quickly.
To begin with, we choose the representation of our hints: a pair of a
rule and a `counter' that records how often the rule may still be
applied:
\begin{code}
record Hint (k : ℕ) : Set where
field
rule : Rule k
counter : Counter
\end{code}
These |counter| values will either be a natural number |n|,
representing that the rule can still be used at most |n|
times; or |⊤|, when the usage of the rule is unrestricted.
\begin{code}
Counter : Set
Counter = ℕ ⊎ ⊤
\end{code}
Next, we define a decrementing function, |decrCounter|, that returns
|nothing| when a rule can no longer be applied:
\begin{code}
decrCounter : Counter → Maybe Counter
decrCounter (inj₁ 0) = nothing
decrCounter (inj₁ 1) = nothing
decrCounter (inj₁ x) = just (inj₁ (pred x))
decrCounter (inj₂ tt) = just (inj₂ tt)
\end{code}
Given a hint |h|, the transition function will now simply find the
position of |h| in the hint database and decrement the hint's counter,
removing it from the database if necessary.
We can redefine the default insertion function (|_<<_|) to allow
unrestricted usage of a rule. However, we will define a new insertion
function which will allow the user to limit the usage of a rule during proof search:
\begin{code}
_<<[_]_ : HintDB → ℕ → Name → HintDB
db <<[ 0 ] _ = db
db <<[ x ] n with (name2rule n)
db <<[ x ] n | inj₁ msg = db
db <<[ x ] n | inj₂ (k , r) = db ++ [ k , record { rule = r , counter = inj₁ x } ]
\end{code}
We now revisit our original hint database and limit the number
of times transitivity may be applied:
\begin{code}
hintdb : HintDB
hintdb = ε << quote drop
<< quote keep
<< quote refl
<<[ 2 ] quote trans
\end{code}
If we were to search for a proof of |lemma₂| now, our proof search
fails sooner. \emph{A fortiori}, if we use this restricted database
when searching for a proof of |lemma₁|, the |auto| function succeeds
sooner, as we have greatly reduced the search space. Of course, there
are plenty of lemmas that require more than two applications of
transitivity. The key insight, however, is that users now have control
over these issues -- something which is not even possible in current
implementations of |auto| in Coq.
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-command-default: "rake"
%%% End:
| Literate Agda | 4 | wenkokke/AutoInAgda | doc/extensible.lagda | [
"MIT"
] |
import unpack from require "moonscript.util"
parse_spec = (spec) ->
flags, words = if type(spec) == "table"
unpack(spec), spec
else
spec, {}
assert "no flags for arguments"
out = {}
for part in flags\gmatch "%w:?"
if part\match ":$"
out[part\sub 1,1] = { value: true }
else
out[part] = {}
out
parse_arguments = (spec, args) ->
spec = parse_spec spec
out = {}
remaining = {}
last_flag = nil
for arg in *args
group = {}
if last_flag
out[last_flag] = arg
continue
if flag = arg\match "-(%w+)"
if short_name = spec[flag]
out[short_name] = true
else
for char in flag\gmatch "."
out[char] = true
continue
table.insert remaining, arg
out, remaining
{ :parse_arguments, :parse_spec }
| MoonScript | 3 | Shados/moonscript | moonscript/cmd/args.moon | [
"MIT",
"Unlicense"
] |
<%= cache :no_digest, skip_digest: true, expires_in: 0 do %>
No Digest
<% end %>
| HTML+ERB | 1 | mdesantis/rails | actionmailer/test/fixtures/caching_mailer/fragment_caching_options.html.erb | [
"MIT"
] |
config const numRows: integer = 16;
config const numCols: integer = 16;
region MatReg = [1..numRows, 1..numCols];
var Mat: [MatReg] float;
const numDiags: integer = min(numRows, numCols);
for d in 1 to numDiags do
region Reduced = [d..numRows, d..numCols];
region TopRow = [d, d..numCols];
region LeftCol = [d..numRows, d];
var pivotVal: float;
var pivotLoc: array [1..2] integer;
[LeftCol] begin
pivotVal := max<< Mat;
pivotLoc := maxloc<< Mat;
end;
region PivotRow = [pivotLoc[1], d..numCols];
-- swap rows using remap operator
var TmpRow: [PivotRow] float;
[PivotRow] TmpRow := Mat;
[PivotRow] Mat := Mat#[d, ];
[TopRow] Mat := TmpRow#[pivotLoc[1], ];
region ScaleCol = [d+1..numRows, d];
[ScaleCol] Mat /= -pivotVal;
-- use flood operator to broadcast replicated values
region RepRedRow = [*, d..numCols];
region RepRedCol = [d..numRows, *];
var RepRow: [RepRedRow] float;
var RepCol: [RepRedCol] float;
[RepRedRow] RepRow := >>[d, ] Mat;
[RepRedCol] RepCol := >>[ , d] Mat;
[Reduced] Mat += RepRow * RepCol;
end;
| Zimpl | 4 | jhh67/chapel | test/studies/lu/bradc/old/lu.scalar.zpl | [
"ECL-2.0",
"Apache-2.0"
] |
module Main exposing (main)
import Html
import App exposing (init, update, view)
main : Program Never App.Model App.Msg
main =
Html.program
{ init = init
, update = update
, view = view
, subscriptions = always Sub.none
}
| Elm | 4 | senthilpazhani/ReactJS---MaterialUI-Example-2 | examples/with-elm/src/Main.elm | [
"MIT"
] |
/* Copyright 2016 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.
==============================================================================*/
// This checker checks the most expensive operations.
#ifndef TENSORFLOW_CORE_PROFILER_INTERNAL_ADVISOR_EXPENSIVE_OPERATION_CHECKER_H_
#define TENSORFLOW_CORE_PROFILER_INTERNAL_ADVISOR_EXPENSIVE_OPERATION_CHECKER_H_
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "tensorflow/core/profiler/internal/advisor/checker.h"
namespace tensorflow {
namespace tfprof {
class ExpensiveOperationChecker : public Checker {
public:
string name() const override { return kCheckers[2]; }
private:
AdviceProto::Checker Check(const AdvisorOptionsProto::CheckerOption& options,
const TFStats* stats) override {
if (!stats) {
absl::FPrintF(
stderr, "Missing profiles (e.g. graph, run_meta). Skip %s\n", name());
return reports_;
}
if (stats->steps().empty()) {
absl::FPrintF(stderr, "Missing RunMetadata info. Skip %s\n", name());
}
CheckOpView(stats);
CheckScopeView(stats);
CheckCodeView(stats);
return reports_;
}
void CheckOpView(const TFStats* stats) {
if (stats->steps().empty()) {
absl::FPrintF(stderr, "Missing run_meta for %s\n", name());
return;
}
Options opts(3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, -1, "micros", {".*"}, {".*"},
{}, {".*"}, {}, false, {"micros", "occurrence"}, "none", {});
const MultiGraphNodeProto root = stats->ShowMultiGraphNode("op", opts);
if (root.children_size() == 0) {
return;
}
const MultiGraphNodeProto* node = &root;
std::vector<string> outputs;
for (int i = 0; i < 3 && node->children_size() > 0; ++i) {
node = &node->children(0);
outputs.push_back(absl::StrFormat(
"top %d operation type: %s, "
"cpu: %s, accelerator: %s, total: %s (%.2f%%)",
i + 1, node->name(), FormatTime(node->cpu_exec_micros()),
FormatTime(node->accelerator_exec_micros()),
FormatTime(node->exec_micros()),
100.0 * node->exec_micros() / (root.total_exec_micros() + 1e-10)));
}
reports_.add_reports(absl::StrJoin(outputs, "\n"));
}
void CheckCodeView(const TFStats* stats) {
if (!stats->has_code_traces()) {
absl::FPrintF(stderr, "Missing op_log (code traces) for %s\n", name());
return;
}
Options opts(100, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, -1, "micros", {".*"},
{".*"}, {}, {".*"}, {}, false, {"micros"}, "none", {});
const MultiGraphNodeProto root = stats->ShowMultiGraphNode("code", opts);
const MultiGraphNodeProto* node = &root;
// A trick here is: Usually, codes in library file are usually referenced
// only once, while user's own code are referenced multiple times.
while (node->children_size() == 1) {
node = &node->children(0);
}
if (node->children_size() == 0) {
return;
}
std::vector<string> outputs;
CodeViewHelper(node, 0, &outputs);
reports_.add_reports(absl::StrJoin(outputs, "\n"));
}
void CheckScopeView(const TFStats* stats) {
Options opts(100, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, -1, "micros", {".*"},
{".*"}, {}, {".*"}, {}, false, {"micros"}, "none", {});
const GraphNodeProto root = stats->ShowGraphNode("scope", opts);
if (root.children_size() == 0) {
return;
}
std::vector<string> outputs;
for (int i = 0; i < 3 && i < root.children_size(); ++i) {
const GraphNodeProto& node = root.children(i);
outputs.push_back(absl::StrFormat(
"top %d graph node: %s, cpu: %s, accelerator: %s, total: %s", i + 1,
node.name(), FormatTime(node.cpu_exec_micros()),
FormatTime(node.accelerator_exec_micros()),
FormatTime(node.exec_micros())));
}
reports_.add_reports(absl::StrJoin(outputs, "\n"));
}
void CodeViewHelper(const MultiGraphNodeProto* node, int depth,
std::vector<string>* outputs) {
if (node->children_size() <= 1 || depth > 3) {
return;
}
for (int j = 0; j < 3 && j < node->children_size(); ++j) {
const MultiGraphNodeProto* c = &node->children(j);
if (c->total_exec_micros() < 1000) {
continue;
}
outputs->push_back(
absl::StrFormat("%s%s, cpu: %s, accelerator: %s, total: %s",
std::string(depth * 2, ' '), c->name(),
FormatTime(c->total_cpu_exec_micros()),
FormatTime(c->total_accelerator_exec_micros()),
FormatTime(c->total_exec_micros())));
CodeViewHelper(c, depth + 1, outputs);
}
}
AdviceProto::Checker reports_;
};
} // namespace tfprof
} // namespace tensorflow
#endif // TENSORFLOW_CORE_PROFILER_INTERNAL_ADVISOR_EXPENSIVE_OPERATION_CHECKER_H_
| C | 4 | yage99/tensorflow | tensorflow/core/profiler/internal/advisor/expensive_operation_checker.h | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.