content
stringlengths 0
181M
| language
stringclasses 54
values |
|---|---|
function infoDataAssemble(processesStopwatches::Array{ProcessStopwatch,1},meshData::MeshData,lseData::LSEData)
for id = 1:1:length(processesStopwatches)
processesStopwatches[id].id = id
end
infoData = InfoData(
maximum(meshData.elementsMeshsizes),
size(meshData.elements,2),
size(meshData.nodes,2),
size(lseData.M,1),
(sizeof(Float64)+2*sizeof(Int64))*length(lseData.M.nzval)/1000000,
sizeof(Float64)*size(lseData.M,1)^2/1000000,
lseData.solverType,
processesStopwatches)
return infoData
end
|
Julia
|
# Autogenerated wrapper script for Libepoxy_jll for aarch64-apple-darwin
export libepoxy
using Libglvnd_jll
JLLWrappers.@generate_wrapper_header("Libepoxy")
JLLWrappers.@declare_library_product(libepoxy, "@rpath/libepoxy.0.dylib")
function __init__()
JLLWrappers.@generate_init_header(Libglvnd_jll)
JLLWrappers.@init_library_product(
libepoxy,
"lib/libepoxy.0.dylib",
RTLD_LAZY | RTLD_DEEPBIND,
)
JLLWrappers.@generate_init_footer()
end # __init__()
|
Julia
|
ALTER TABLE ofProperty
ADD iv CHAR(24) NULL
UPDATE ofVersion SET version = 27 WHERE name = 'openfire'
|
PLSQL
|
package sign
import (
"bytes"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/http/httptest"
"strings"
"testing"
"github.com/stretchr/testify/assert"
)
func TestSignatureHandler(t *testing.T) {
signer := new(upperSigner)
next := func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "application/json")
fmt.Fprintf(w, `{"message": "next handler"}`)
}
h := SignatureHandler(signer, http.HandlerFunc(next))
// assert that:
// - writes by 'next' handler(s) are buffered and signed
// - headers set by 'next' handler(s) are ignored
expectedBody := `{"MESSAGE": "NEXT HANDLER"}`
w := httptest.NewRecorder()
req, _ := http.NewRequest("GET", "/", nil)
h.ServeHTTP(w, req)
assert.Equal(t, http.StatusOK, w.Code)
assert.Equal(t, expectedBody, w.Body.String())
assert.NotEqual(t, "application/json", w.HeaderMap.Get("Content-Type"))
}
func TestSignatureHandler_ErrorStatusCode(t *testing.T) {
signer := new(upperSigner)
next := func(w http.ResponseWriter, req *http.Request) {
w.WriteHeader(http.StatusBadRequest)
fmt.Fprintf(w, `{"message": "missing some argument"}`)
}
h := SignatureHandler(signer, http.HandlerFunc(next))
// assert that:
// - error status code headers by 'next' handler(s) are propagated
// - writes by 'next' handler(s) are buffered and signed
expectedBody := `{"MESSAGE": "MISSING SOME ARGUMENT"}`
w := httptest.NewRecorder()
req, _ := http.NewRequest("GET", "/", nil)
h.ServeHTTP(w, req)
assert.Equal(t, http.StatusBadRequest, w.Code)
assert.Equal(t, expectedBody, w.Body.String())
}
func TestSignatureHandler_SignatureError(t *testing.T) {
errorMessage := "sign: error signing message"
signer := &errorSigner{
errorMessage: errorMessage,
}
next := func(w http.ResponseWriter, req *http.Request) {
fmt.Fprintf(w, "next handler")
}
h := SignatureHandler(signer, http.HandlerFunc(next))
// assert that:
// - Flush signing errors return without partial signature writes
// - SignatureHandler writes a 500 InternalServerError
w := httptest.NewRecorder()
req, _ := http.NewRequest("GET", "/", nil)
h.ServeHTTP(w, req)
assert.Equal(t, errorMessage+"\n", w.Body.String())
assert.Equal(t, http.StatusInternalServerError, w.Code)
}
// upperSigner "signs" messages by writing a signature that is the upper case
// form of the message body. For testing purposes only.
type upperSigner struct{}
func (s *upperSigner) Sign(w io.Writer, message io.Reader) error {
b, err := ioutil.ReadAll(message)
if err != nil {
return err
}
signature := strings.ToUpper(string(b))
_, err = io.Copy(w, bytes.NewReader([]byte(signature)))
return err
}
// errorSigner always returns an error message.
type errorSigner struct {
errorMessage string
}
func (s *errorSigner) Sign(w io.Writer, message io.Reader) error {
return errors.New(s.errorMessage)
}
|
Go
|
`timescale 1ns/1ps
module disp_ctl_tb;
reg clk;
wire [3:0] hub_mux;
wire hub_clk, hub_noe, hub_lat;
wire [5:0] s_out;
reg [11:0] disp_w_addr = 0;
reg disp_w_en = 0;
reg [11:0] disp_pix_in = 0;
display_controller disp_controller (
.clk(clk), .write_addr(disp_w_addr),
.w_en(disp_w_en), .pixel_in(disp_pix_in),
.s_clk(hub_clk), .mux(), .noe(),
.s_r_t(s_out[0]), .s_g_t(s_out[1]), .s_b_t(s_out[2]),
.s_r_b(s_out[3]), .s_g_b(s_out[4]), .s_b_b(s_out[5]),
.latch(hub_lat)
);
initial clk = 1'b0;
always clk = #(1.0e9 / 25_000_000.0 / 2.0) ~clk;
initial begin
$dumpfile("disp_ctl_dump.vcd");
$dumpvars();
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
repeat(129) @(posedge clk);
$display("SIMULATION COMPLETE");
$finish;
end
endmodule
|
Coq
|
// Format:
// When the signal is called: (signal arguments)
// All signals send the source datum of the signal as the first argument
// /mob/living signals
///from base of mob/living/resist() (/mob/living)
#define COMSIG_LIVING_RESIST "living_resist"
///from base of mob/living/IgniteMob() (/mob/living)
#define COMSIG_LIVING_IGNITED "living_ignite"
///from base of mob/living/extinguish_mob() (/mob/living)
#define COMSIG_LIVING_EXTINGUISHED "living_extinguished"
//from base of mob/living/electrocute_act(): (shock_damage, source, siemens_coeff, flags)
#define COMSIG_LIVING_ELECTROCUTE_ACT "living_electrocute_act"
///from base of mob/living/revive() (full_heal, admin_revive)
#define COMSIG_LIVING_REVIVE "living_revive"
///from base of /mob/living/regenerate_limbs(): (noheal, excluded_limbs)
#define COMSIG_LIVING_REGENERATE_LIMBS "living_regen_limbs"
///from base of mob/living/set_buckled(): (new_buckled)
#define COMSIG_LIVING_SET_BUCKLED "living_set_buckled"
///from base of mob/living/set_body_position()
#define COMSIG_LIVING_SET_BODY_POSITION "living_set_body_position"
#define COMSIG_LIVING_MINOR_SHOCK "living_minor_shock" //! sent by stuff like stunbatons and tasers: ()
#define COMSIG_PROCESS_BORGCHARGER_OCCUPANT "living_charge" //! sent from borg recharge stations: (amount, repairs)
#define COMSIG_LIVING_TRY_SYRINGE "living_try_syringe" ///From post-can inject check of syringe after attack (mob/user)
#define COMSIG_LIVING_START_PULL "living_start_pull" ///called on /living when someone starts pulling (atom/movable/pulled, state, force)
/// from base of mob/living/Life() (seconds, times_fired)
#define COMSIG_LIVING_LIFE "living_life"
///from base of mob/living/death(): (gibbed, was_dead_before)
#define COMSIG_LIVING_DEATH "living_death"
/// from base of mob/living/updatehealth(): ()
#define COMSIG_LIVING_UPDATE_HEALTH "living_update_health"
/// Called when a living mob has its resting updated: (resting_state)
#define COMSIG_LIVING_RESTING_UPDATED "resting_updated"
///from base of mob/living/gib(): (no_brain, no_organs, no_bodyparts)
///Note that it is fired regardless of whether the mob was dead beforehand or not.
#define COMSIG_LIVING_GIBBED "living_gibbed"
/// from /datum/component/singularity/proc/can_move(), as well as /obj/anomaly/energy_ball/proc/can_move()
/// if a callback returns `SINGULARITY_TRY_MOVE_BLOCK`, then the singularity will not move to that turf
#define COMSIG_ATOM_SINGULARITY_TRY_MOVE "atom_singularity_try_move"
/// When returned from `COMSIG_ATOM_SINGULARITY_TRY_MOVE`, the singularity will move to that turf
#define SINGULARITY_TRY_MOVE_BLOCK (1 << 0)
///from base of /mob/living/can_track()
#define COMSIG_LIVING_CAN_TRACK "mob_can_track"
#define COMPONENT_CANT_TRACK 1
/// from start of /mob/living/handle_breathing(): (delta_time, times_fired)
#define COMSIG_LIVING_HANDLE_BREATHING "living_handle_breathing"
///(NOT on humans) from mob/living/*/UnarmedAttack(): (atom/target, proximity, modifiers)
#define COMSIG_LIVING_UNARMED_ATTACK "living_unarmed_attack"
//ALL OF THESE DO NOT TAKE INTO ACCOUNT WHETHER AMOUNT IS 0 OR LOWER AND ARE SENT REGARDLESS!
///from base of mob/living/Stun() (amount, ignore_canstun)
#define COMSIG_LIVING_STATUS_STUN "living_stun"
///from base of mob/living/Knockdown() (amount, ignore_canstun)
#define COMSIG_LIVING_STATUS_KNOCKDOWN "living_knockdown"
///from base of mob/living/Paralyze() (amount, ignore_canstun)
#define COMSIG_LIVING_STATUS_PARALYZE "living_paralyze"
///from base of mob/living/Immobilize() (amount, ignore_canstun)
#define COMSIG_LIVING_STATUS_IMMOBILIZE "living_immobilize"
///from base of mob/living/Unconscious() (amount, ignore_canstun)
#define COMSIG_LIVING_STATUS_UNCONSCIOUS "living_unconscious"
///from base of mob/living/Sleeping() (amount, ignore_canstun)
#define COMSIG_LIVING_STATUS_SLEEP "living_sleeping"
#define COMPONENT_NO_STUN (1<<0) //For all of them
#define COMSIG_LIVING_STATUS_STAGGERED "living_staggered" ///from base of mob/living/Stagger() (amount, ignore_canstun)
#define COMSIG_LIVING_ENTER_STASIS "living_enter_stasis" //! sent when a mob is put into stasis.
#define COMSIG_LIVING_EXIT_STASIS "living_exit_stasis" //! sent when a mob exits stasis.
///From wabbajack(): ()
#define COMSIG_LIVING_PRE_WABBAJACKED "living_mob_wabbajacked"
/// Return to stop the rest of the wabbajack from triggering.
#define STOP_WABBAJACK (1 << 0)
///From wabbajack(): (mob/living/new_mob)
#define COMSIG_LIVING_ON_WABBAJACKED "living_wabbajacked"
// basic mob signals
/// Called on /basic when updating its speed, from base of /mob/living/basic/update_basic_mob_varspeed(): ()
#define POST_BASIC_MOB_UPDATE_VARSPEED "post_basic_mob_update_varspeed"
/// from /datum/status_effect/incapacitating/stamcrit/on_apply()
#define COMSIG_LIVING_ENTER_STAMCRIT "living_enter_stamcrit"
///from /obj/structure/door/crush(): (mob/living/crushed, /obj/machinery/door/crushing_door)
#define COMSIG_LIVING_DOORCRUSHED "living_doorcrush"
///sent when items with siemen coeff. of 0 block a shock: (power_source, source, siemens_coeff, dist_check)
#define COMSIG_LIVING_SHOCK_PREVENTED "living_shock_prevented"
/// Block the electrocute_act() proc from proceeding
#define COMPONENT_LIVING_BLOCK_SHOCK (1<<0)
///sent by stuff like stunbatons and tasers: ()
/// Sent to a mob being injected with a syringe when the do_after initiates
#define COMSIG_LIVING_TRY_SYRINGE_INJECT "living_try_syringe_inject"
/// Sent to a mob being withdrawn from with a syringe when the do_after initiates
#define COMSIG_LIVING_TRY_SYRINGE_WITHDRAW "living_try_syringe_withdraw"
///from base of mob/living/set_usable_legs()
#define COMSIG_LIVING_LIMBLESS_SLOWDOWN "living_limbless_slowdown"
/// Block the Life() proc from proceeding... this should really only be done in some really wacky situations.
#define COMPONENT_LIVING_CANCEL_LIFE_PROCESSING (1<<0)
///From living/set_resting(): (new_resting, silent, instant)
#define COMSIG_LIVING_RESTING "living_resting"
/// From /mob/living/proc/stop_leaning()
#define COMSIG_LIVING_STOPPED_LEANING "living_stopped_leaning"
|
DM
|
package de.uni_hildesheim.sse.qmApp.model;
import java.util.List;
import de.uni_hildesheim.sse.qmApp.treeView.IConfigurableElementFactory;
import net.ssehub.easy.varModel.confModel.Configuration;
import net.ssehub.easy.varModel.model.AbstractVariable;
import net.ssehub.easy.varModel.model.datatypes.IDatatype;
/**
* Defines the interface for a model part.
*
* @author Holger Eichelberger
*/
public interface IModelPart {
/**
* Defines the source mode, i.e., which source for possible variables
* to use.
*
* @author Holger Eichelberger
*/
public enum SourceMode {
PROVIDED_TYPES(true, false),
VARIABLES(false, true);
private boolean types;
private boolean variables;
/**
* Creates a source mode constant.
*
* @param types use types
* @param variables use variables
*/
private SourceMode(boolean types, boolean variables) {
this.types = types;
this.variables = variables;
}
/**
* Returns whether provided types shall be used.
*
* @return <code>true</code> if provided types shall be used, <code>false</code> else
*/
public boolean useProvidedTypes() {
return types;
}
/**
* Returns whether top-level variables shall be used.
*
* @return <code>true</code> if top-level variables shall be used, <code>false</code> else
*/
public boolean useVariables() {
return variables;
}
}
/**
* Returns the defining variability model part.
*
* @return the variability model part in case of a configuration, the part itself
* in case of a defining part
*/
public IModelPart getDefinition();
/**
* Returns the name of the underlying IVML project / project.
*
* @return the name of the IVML model
*/
public String getModelName();
/**
* Returns the IVML configuration of the model part.
*
* @return the configuration
*/
public Configuration getConfiguration();
/**
* Returns the names of the provided IVML types. This method may be needed during the initialization
* phase of the application if the types are not already loaded.
*
* @return the names
*/
public String[] getProvidedTypeNames();
/**
* Returns the top-level types provided by this model part.
*
* @return the top-level types
*/
public IDatatype[] getProvidedTypes();
/**
* Returns the top-level variables.
*
* @return the top-level variables
*/
public String[] getTopLevelVariables();
/**
* Returns the possible values indicated by the variables and the provided types.
*
* @return the possible values
*/
public List<AbstractVariable> getPossibleValues();
/**
* Returns the source mode.
*
* @return the source mode
*/
public SourceMode getSourceMode();
/**
* Returns the element factory.
*
* @return the element factory
*/
public IConfigurableElementFactory getElementFactory();
/**
* Returns whether a new instance shall immediately be added to its configuring container.
*
* @return <code>true</code> if it shall be added immediately, <code>false</code> else
*/
public boolean addOnCreation();
}
|
Java
|
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* armboot - Startup Code for OMP2420/ARM1136 CPU-core
*
* Copyright (c) 2004 Texas Instruments <r-woodruff2@ti.com>
*
* Copyright (c) 2001 Marius Gröger <mag@sysgo.de>
* Copyright (c) 2002 Alex Züpke <azu@sysgo.de>
* Copyright (c) 2002 Gary Jennejohn <garyj@denx.de>
* Copyright (c) 2003 Richard Woodruff <r-woodruff2@ti.com>
* Copyright (c) 2003 Kshitij <kshitij@ti.com>
*/
#include <asm-offsets.h>
#include <config.h>
/*
*************************************************************************
*
* Startup Code (reset vector)
*
* do important init only if we don't start from memory!
* setup Memory and board specific bits prior to relocation.
* relocate armboot to ram
* setup stack
*
*************************************************************************
*/
.globl reset
reset:
/*
* set the cpu to SVC32 mode
*/
mrs r0,cpsr
bic r0,r0,#0x1f
orr r0,r0,#0xd3
msr cpsr,r0
/* the mask ROM code should have PLL and others stable */
#ifndef CONFIG_SKIP_LOWLEVEL_INIT
bl cpu_init_crit
#endif
bl _main
/*------------------------------------------------------------------------------*/
.globl c_runtime_cpu_setup
c_runtime_cpu_setup:
bx lr
/*
*************************************************************************
*
* CPU_init_critical registers
*
* setup important registers
* setup memory timing
*
*************************************************************************
*/
#ifndef CONFIG_SKIP_LOWLEVEL_INIT
cpu_init_crit:
/*
* flush v4 I/D caches
*/
mov r0, #0
mcr p15, 0, r0, c7, c7, 0 /* Invalidate I+D+BTB caches */
mcr p15, 0, r0, c8, c7, 0 /* Invalidate Unified TLB */
/*
* disable MMU stuff and caches
*/
mrc p15, 0, r0, c1, c0, 0
bic r0, r0, #0x00002300 @ clear bits 13, 9:8 (--V- --RS)
bic r0, r0, #0x00000087 @ clear bits 7, 2:0 (B--- -CAM)
orr r0, r0, #0x00000002 @ set bit 1 (A) Align
orr r0, r0, #0x00001000 @ set bit 12 (I) I-Cache
mcr p15, 0, r0, c1, c0, 0
#ifndef CONFIG_SKIP_LOWLEVEL_INIT_ONLY
/*
* Jump to board specific initialization... The Mask ROM will have already initialized
* basic memory. Go here to bump up clock rate and handle wake up conditions.
*/
mov ip, lr /* persevere link reg across call */
bl lowlevel_init /* go setup pll,mux,memory */
mov lr, ip /* restore link */
#endif
mov pc, lr /* back to my caller */
#endif /* CONFIG_SKIP_LOWLEVEL_INIT */
|
Assembly
|
{- |
Module : Text.XML.HXT.XMLSchema.Validation
Copyright : Copyright (C) 2005-2012 Thorben Guelck, Uwe Schmidt
License : MIT
Maintainer : Uwe Schmidt (uwe@fh-wedel.de)
Stability : experimental
Portability: portable
Contains functions to perform validation following a given schema definition.
-}
module Text.XML.HXT.XMLSchema.Validation
( validateDocumentWithXmlSchema
-- these are only used in test suite
, validateWithXmlSchema'
, SValResult
, SValEnv(..)
, XmlSchema
, runSVal
, testRoot
, createRootDesc
)
where
import Prelude hiding (lookup)
import Text.XML.HXT.Core (XmlTree, arr, arrL,
c_err, constA,
documentStatusOk,
getChildren, guards,
isA, isElem, issueErr,
issueFatal, issueWarn,
none, orElse, perform, setDocumentStatusFromSystemState,
this, traceMsg, when,
($<), (>>>))
import Text.XML.HXT.Arrow.XmlState.TypeDefs (IOSArrow, IOStateArrow,
SysConfigList,
configSysVars,
localSysEnv, setS,
theXmlSchemaValidate,
withoutUserState)
import Text.XML.HXT.XMLSchema.AbstractSyntax (XmlSchema)
import Text.XML.HXT.XMLSchema.Loader
import Text.XML.HXT.XMLSchema.Transformation (createRootDesc)
import Text.XML.HXT.XMLSchema.ValidationCore (testRoot)
import Text.XML.HXT.XMLSchema.ValidationTypes
-- ----------------------------------------
validateWithXmlSchema' :: XmlSchema -> XmlTree -> SValResult
validateWithXmlSchema' schema doc
= runSVal (SValEnv { xpath = ""
, elemDesc = rootElemDesc
, allElemDesc = allElems
}
) $ testRoot doc
where
(rootElemDesc, allElems) = createRootDesc schema
-- ----------------------------------------
validateDocumentWithXmlSchema :: SysConfigList -> String -> IOStateArrow s XmlTree XmlTree
validateDocumentWithXmlSchema config schemaUri
= ( withoutUserState
$
localSysEnv
$
configSysVars (config ++ [setS theXmlSchemaValidate False])
>>>
traceMsg 1 ( "validating document with XML schema: " ++ show schemaUri )
>>>
( ( validateWithSchema schemaUri
>>>
traceMsg 1 "document validation done, no errors found"
)
`orElse`
( traceMsg 1 "document not valid, errors found"
>>>
setDocumentStatusFromSystemState "validating with XML schema"
)
)
)
`when`
documentStatusOk -- only do something when document status is ok
validateWithSchema :: String -> IOSArrow XmlTree XmlTree
validateWithSchema uri
= validate $< ( ( constA uri
>>>
traceMsg 1 ("reading XML schema definition from " ++ show uri)
>>>
loadDefinition []
>>>
traceMsg 1 ("XML schema definition read from " ++ show uri)
)
`orElse`
( issueFatal ("Could not read XML Schema definition from " ++ show uri)
>>>
none
)
)
where
issueMsg (lev, xp, e)
= (if lev < c_err then issueWarn else issueErr) $
"At XPath " ++ xp ++ ": " ++ e
validate schema
= ( getChildren >>> isElem -- select document root element
>>>
traceMsg 1 "document validation process started"
>>>
arr (validateWithXmlSchema' schema)
>>>
perform ( arrL snd
>>>
( issueMsg $< this )
)
>>>
isA ((== True) . fst)
)
`guards` this
-- ----------------------------------------
|
Haskell
|
Date,Open,High,Low,Close,Volume,Adj Close
2012-09-13,496.058650,496.058650,496.058650,496.058650,1,496.058650
2012-09-12,496.897035,496.897035,496.897035,496.897035,1,496.897035
2012-09-11,497.727365,497.727365,497.727365,497.727365,1,497.727365
2012-09-10,498.541662,498.541662,498.541662,498.541662,1,498.541662
2012-09-07,499.332103,499.332103,499.332103,499.332103,1,499.332103
2012-09-06,500.091095,500.091095,500.091095,500.091095,1,500.091095
2012-09-05,500.811344,500.811344,500.811344,500.811344,1,500.811344
2012-09-04,501.485932,501.485932,501.485932,501.485932,1,501.485932
2012-08-31,502.108376,502.108376,502.108376,502.108376,1,502.108376
2012-08-30,502.672697,502.672697,502.672697,502.672697,1,502.672697
2012-08-29,503.173473,503.173473,503.173473,503.173473,1,503.173473
2012-08-28,503.605892,503.605892,503.605892,503.605892,1,503.605892
2012-08-27,503.965801,503.965801,503.965801,503.965801,1,503.965801
2012-08-24,504.249741,504.249741,504.249741,504.249741,1,504.249741
2012-08-23,504.454984,504.454984,504.454984,504.454984,1,504.454984
2012-08-22,504.579558,504.579558,504.579558,504.579558,1,504.579558
2012-08-21,504.622267,504.622267,504.622267,504.622267,1,504.622267
2012-08-20,504.582700,504.582700,504.582700,504.582700,1,504.582700
2012-08-17,504.461238,504.461238,504.461238,504.461238,1,504.461238
2012-08-16,504.259047,504.259047,504.259047,504.259047,1,504.259047
2012-08-15,503.978070,503.978070,503.978070,503.978070,1,503.978070
2012-08-14,503.621006,503.621006,503.621006,503.621006,1,503.621006
2012-08-13,503.191286,503.191286,503.191286,503.191286,1,503.191286
2012-08-10,502.693038,502.693038,502.693038,502.693038,1,502.693038
2012-08-09,502.131050,502.131050,502.131050,502.131050,1,502.131050
2012-08-08,501.510721,501.510721,501.510721,501.510721,1,501.510721
2012-08-07,500.838011,500.838011,500.838011,500.838011,1,500.838011
2012-08-06,500.119382,500.119382,500.119382,500.119382,1,500.119382
2012-08-03,499.361739,499.361739,499.361739,499.361739,1,499.361739
2012-08-02,498.572362,498.572362,498.572362,498.572362,1,498.572362
2012-08-01,497.758834,497.758834,497.758834,497.758834,1,497.758834
2012-07-31,496.928971,496.928971,496.928971,496.928971,1,496.928971
2012-07-30,496.090747,496.090747,496.090747,496.090747,1,496.090747
2012-07-27,495.252214,495.252214,495.252214,495.252214,1,495.252214
2012-07-26,494.421429,494.421429,494.421429,494.421429,1,494.421429
2012-07-25,493.606374,493.606374,493.606374,493.606374,1,493.606374
2012-07-24,492.814879,492.814879,492.814879,492.814879,1,492.814879
2012-07-23,492.054549,492.054549,492.054549,492.054549,1,492.054549
2012-07-20,491.332689,491.332689,491.332689,491.332689,1,491.332689
2012-07-19,490.656235,490.656235,490.656235,490.656235,1,490.656235
2012-07-18,490.031684,490.031684,490.031684,490.031684,1,490.031684
2012-07-17,489.465038,489.465038,489.465038,489.465038,1,489.465038
2012-07-16,488.961741,488.961741,488.961741,488.961741,1,488.961741
2012-07-13,488.526628,488.526628,488.526628,488.526628,1,488.526628
2012-07-12,488.163880,488.163880,488.163880,488.163880,1,488.163880
2012-07-11,487.876982,487.876982,487.876982,487.876982,1,487.876982
2012-07-10,487.668689,487.668689,487.668689,487.668689,1,487.668689
2012-07-09,487.541005,487.541005,487.541005,487.541005,1,487.541005
2012-07-06,487.495154,487.495154,487.495154,487.495154,1,487.495154
2012-07-05,487.531578,487.531578,487.531578,487.531578,1,487.531578
2012-07-03,487.649927,487.649927,487.649927,487.649927,1,487.649927
2012-07-02,487.849063,487.849063,487.849063,487.849063,1,487.849063
2012-06-29,488.127074,488.127074,488.127074,488.127074,1,488.127074
2012-06-28,488.481288,488.481288,488.481288,488.481288,1,488.481288
2012-06-27,488.908302,488.908302,488.908302,488.908302,1,488.908302
2012-06-26,489.404014,489.404014,489.404014,489.404014,1,489.404014
2012-06-25,489.963662,489.963662,489.963662,489.963662,1,489.963662
2012-06-22,490.581867,490.581867,490.581867,490.581867,1,490.581867
2012-06-21,491.252691,491.252691,491.252691,491.252691,1,491.252691
2012-06-20,491.969689,491.969689,491.969689,491.969689,1,491.969689
2012-06-19,492.725972,492.725972,492.725972,492.725972,1,492.725972
2012-06-18,493.514274,493.514274,493.514274,493.514274,1,493.514274
2012-06-15,494.327022,494.327022,494.327022,494.327022,1,494.327022
2012-06-14,495.156406,495.156406,495.156406,495.156406,1,495.156406
2012-06-13,495.994458,495.994458,495.994458,495.994458,1,495.994458
2012-06-12,496.833128,496.833128,496.833128,496.833128,1,496.833128
2012-06-11,497.664356,497.664356,497.664356,497.664356,1,497.664356
2012-06-08,498.480158,498.480158,498.480158,498.480158,1,498.480158
2012-06-07,499.272694,499.272694,499.272694,499.272694,1,499.272694
2012-06-06,500.034352,500.034352,500.034352,500.034352,1,500.034352
2012-06-05,500.757812,500.757812,500.757812,500.757812,1,500.757812
2012-06-04,501.436125,501.436125,501.436125,501.436125,1,501.436125
2012-06-01,502.062773,502.062773,502.062773,502.062773,1,502.062773
2012-05-31,502.631736,502.631736,502.631736,502.631736,1,502.631736
2012-05-30,503.137547,503.137547,503.137547,503.137547,1,503.137547
2012-05-29,503.575347,503.575347,503.575347,503.575347,1,503.575347
2012-05-25,503.940930,503.940930,503.940930,503.940930,1,503.940930
2012-05-24,504.230783,504.230783,504.230783,504.230783,1,504.230783
2012-05-23,504.442121,504.442121,504.442121,504.442121,1,504.442121
2012-05-22,504.572915,504.572915,504.572915,504.572915,1,504.572915
2012-05-21,504.621906,504.621906,504.621906,504.621906,1,504.621906
2012-05-18,504.588626,504.588626,504.588626,504.588626,1,504.588626
2012-05-17,504.473392,504.473392,504.473392,504.473392,1,504.473392
2012-05-16,504.277314,504.277314,504.277314,504.277314,1,504.277314
2012-05-15,504.002273,504.002273,504.002273,504.002273,1,504.002273
2012-05-14,503.650914,503.650914,503.650914,503.650914,1,503.650914
2012-05-11,503.226611,503.226611,503.226611,503.226611,1,503.226611
2012-05-10,502.733441,502.733441,502.733441,502.733441,1,502.733441
2012-05-09,502.176142,502.176142,502.176142,502.176142,1,502.176142
2012-05-08,501.560070,501.560070,501.560070,501.560070,1,501.560070
2012-05-07,500.891141,500.891141,500.891141,500.891141,1,500.891141
2012-05-04,500.175784,500.175784,500.175784,500.175784,1,500.175784
2012-05-03,499.420871,499.420871,499.420871,499.420871,1,499.420871
2012-05-02,498.633656,498.633656,498.633656,498.633656,1,498.633656
2012-05-01,497.821700,497.821700,497.821700,497.821700,1,497.821700
2012-04-30,496.992806,496.992806,496.992806,496.992806,1,496.992806
2012-04-27,496.154937,496.154937,496.154937,496.154937,1,496.154937
2012-04-26,495.316143,495.316143,495.316143,495.316143,1,495.316143
2012-04-25,494.484483,494.484483,494.484483,494.484483,1,494.484483
2012-04-24,493.667946,493.667946,493.667946,493.667946,1,493.667946
2012-04-23,492.874379,492.874379,492.874379,492.874379,1,492.874379
2012-04-20,492.111405,492.111405,492.111405,492.111405,1,492.111405
2012-04-19,491.386354,491.386354,491.386354,491.386354,1,491.386354
2012-04-18,490.706193,490.706193,490.706193,490.706193,1,490.706193
2012-04-17,490.077456,490.077456,490.077456,490.077456,1,490.077456
2012-04-16,489.506184,489.506184,489.506184,489.506184,1,489.506184
2012-04-13,488.997866,488.997866,488.997866,488.997866,1,488.997866
2012-04-12,488.557384,488.557384,488.557384,488.557384,1,488.557384
2012-04-11,488.188972,488.188972,488.188972,488.188972,1,488.188972
2012-04-10,487.896169,487.896169,487.896169,487.896169,1,487.896169
2012-04-09,487.681787,487.681787,487.681787,487.681787,1,487.681787
2012-04-05,487.547887,487.547887,487.547887,487.547887,1,487.547887
2012-04-04,487.495755,487.495755,487.495755,487.495755,1,487.495755
2012-04-03,487.525892,487.525892,487.525892,487.525892,1,487.525892
2012-04-02,487.638008,487.638008,487.638008,487.638008,1,487.638008
2012-03-30,487.831027,487.831027,487.831027,487.831027,1,487.831027
2012-03-29,488.103093,488.103093,488.103093,488.103093,1,488.103093
2012-03-28,488.451593,488.451593,488.451593,488.451593,1,488.451593
2012-03-27,488.873178,488.873178,488.873178,488.873178,1,488.873178
2012-03-26,489.363799,489.363799,489.363799,489.363799,1,489.363799
2012-03-23,489.918741,489.918741,489.918741,489.918741,1,489.918741
2012-03-22,490.532673,490.532673,490.532673,490.532673,1,490.532673
2012-03-21,491.199696,491.199696,491.199696,491.199696,1,491.199696
2012-03-20,491.913402,491.913402,491.913402,491.913402,1,491.913402
2012-03-19,492.666934,492.666934,492.666934,492.666934,1,492.666934
2012-03-16,493.453052,493.453052,493.453052,493.453052,1,493.453052
2012-03-15,494.264204,494.264204,494.264204,494.264204,1,494.264204
2012-03-14,495.092596,495.092596,495.092596,495.092596,1,495.092596
2012-03-13,495.930270,495.930270,495.930270,495.930270,1,495.930270
2012-03-12,496.769177,496.769177,496.769177,496.769177,1,496.769177
2012-03-09,497.601258,497.601258,497.601258,497.601258,1,497.601258
2012-03-08,498.418517,498.418517,498.418517,498.418517,1,498.418517
2012-03-07,499.213105,499.213105,499.213105,499.213105,1,499.213105
2012-03-06,499.977385,499.977385,499.977385,499.977385,1,499.977385
2012-03-05,500.704016,500.704016,500.704016,500.704016,1,500.704016
2012-03-02,501.386016,501.386016,501.386016,501.386016,1,501.386016
2012-03-01,502.016833,502.016833,502.016833,502.016833,1,502.016833
2012-02-29,502.590406,502.590406,502.590406,502.590406,1,502.590406
2012-02-28,503.101224,503.101224,503.101224,503.101224,1,503.101224
2012-02-27,503.544380,503.544380,503.544380,503.544380,1,503.544380
2012-02-24,503.915617,503.915617,503.915617,503.915617,1,503.915617
2012-02-23,504.211366,504.211366,504.211366,504.211366,1,504.211366
2012-02-22,504.428788,504.428788,504.428788,504.428788,1,504.428788
2012-02-21,504.565793,504.565793,504.565793,504.565793,1,504.565793
2012-02-17,504.621064,504.621064,504.621064,504.621064,1,504.621064
2012-02-16,504.594072,504.594072,504.594072,504.594072,1,504.594072
2012-02-15,504.485074,504.485074,504.485074,504.485074,1,504.485074
2012-02-14,504.295119,504.295119,504.295119,504.295119,1,504.295119
2012-02-13,504.026031,504.026031,504.026031,504.026031,1,504.026031
2012-02-10,503.680395,503.680395,503.680395,503.680395,1,503.680395
2012-02-09,503.261533,503.261533,503.261533,503.261533,1,503.261533
2012-02-08,502.773469,502.773469,502.773469,502.773469,1,502.773469
2012-02-07,502.220891,502.220891,502.220891,502.220891,1,502.220891
2012-02-06,501.609109,501.609109,501.609109,501.609109,1,501.609109
2012-02-03,500.944000,500.944000,500.944000,500.944000,1,500.944000
2012-02-02,500.231955,500.231955,500.231955,500.231955,1,500.231955
2012-02-01,499.479814,499.479814,499.479814,499.479814,1,499.479814
2012-01-31,498.694805,498.694805,498.694805,498.694805,1,498.694805
2012-01-30,497.884468,497.884468,497.884468,497.884468,1,497.884468
2012-01-27,497.056589,497.056589,497.056589,497.056589,1,497.056589
2012-01-26,496.219122,496.219122,496.219122,496.219122,1,496.219122
2012-01-25,495.380114,495.380114,495.380114,495.380114,1,495.380114
2012-01-24,494.547625,494.547625,494.547625,494.547625,1,494.547625
2012-01-23,493.729653,493.729653,493.729653,493.729653,1,493.729653
2012-01-20,492.934058,492.934058,492.934058,492.934058,1,492.934058
2012-01-19,492.168482,492.168482,492.168482,492.168482,1,492.168482
2012-01-18,491.440281,491.440281,491.440281,491.440281,1,491.440281
2012-01-17,490.756452,490.756452,490.756452,490.756452,1,490.756452
2012-01-13,490.123564,490.123564,490.123564,490.123564,1,490.123564
2012-01-12,489.547698,489.547698,489.547698,489.547698,1,489.547698
2012-01-11,489.034387,489.034387,489.034387,489.034387,1,489.034387
2012-01-10,488.588562,488.588562,488.588562,488.588562,1,488.588562
2012-01-09,488.214507,488.214507,488.214507,488.214507,1,488.214507
2012-01-06,487.915815,487.915815,487.915815,487.915815,1,487.915815
2012-01-05,487.695356,487.695356,487.695356,487.695356,1,487.695356
2012-01-04,487.555248,487.555248,487.555248,487.555248,1,487.555248
2012-01-03,487.496838,487.496838,487.496838,487.496838,1,487.496838
2011-12-30,487.520686,487.520686,487.520686,487.520686,1,487.520686
2011-12-29,487.626563,487.626563,487.626563,487.626563,1,487.626563
2011-12-28,487.813453,487.813453,487.813453,487.813453,1,487.813453
2011-12-27,488.079559,488.079559,488.079559,488.079559,1,488.079559
2011-12-23,488.422325,488.422325,488.422325,488.422325,1,488.422325
2011-12-22,488.838458,488.838458,488.838458,488.838458,1,488.838458
2011-12-21,489.323960,489.323960,489.323960,489.323960,1,489.323960
2011-12-20,489.874165,489.874165,489.874165,489.874165,1,489.874165
2011-12-19,490.483789,490.483789,490.483789,490.483789,1,490.483789
2011-12-16,491.146974,491.146974,491.146974,491.146974,1,491.146974
2011-12-15,491.857348,491.857348,491.857348,491.857348,1,491.857348
2011-12-14,492.608087,492.608087,492.608087,492.608087,1,492.608087
2011-12-13,493.391977,493.391977,493.391977,493.391977,1,493.391977
2011-12-12,494.201488,494.201488,494.201488,494.201488,1,494.201488
2011-12-09,495.028841,495.028841,495.028841,495.028841,1,495.028841
2011-12-08,495.866089,495.866089,495.866089,495.866089,1,495.866089
2011-12-07,496.705186,496.705186,496.705186,496.705186,1,496.705186
2011-12-06,497.538072,497.538072,497.538072,497.538072,1,497.538072
2011-12-05,498.356745,498.356745,498.356745,498.356745,1,498.356745
2011-12-02,499.153338,499.153338,499.153338,499.153338,1,499.153338
2011-12-01,499.920198,499.920198,499.920198,499.920198,1,499.920198
2011-11-30,500.649958,500.649958,500.649958,500.649958,1,500.649958
2011-11-29,501.335607,501.335607,501.335607,501.335607,1,501.335607
2011-11-28,501.970557,501.970557,501.970557,501.970557,1,501.970557
2011-11-25,502.548708,502.548708,502.548708,502.548708,1,502.548708
2011-11-23,503.064505,503.064505,503.064505,503.064505,1,503.064505
2011-11-22,503.512992,503.512992,503.512992,503.512992,1,503.512992
2011-11-21,503.889861,503.889861,503.889861,503.889861,1,503.889861
2011-11-18,504.191491,504.191491,504.191491,504.191491,1,504.191491
2011-11-17,504.414984,504.414984,504.414984,504.414984,1,504.414984
2011-11-16,504.558193,504.558193,504.558193,504.558193,1,504.558193
2011-11-15,504.619741,504.619741,504.619741,504.619741,1,504.619741
2011-11-14,504.599038,504.599038,504.599038,504.599038,1,504.599038
2011-11-11,504.496282,504.496282,504.496282,504.496282,1,504.496282
2011-11-10,504.312461,504.312461,504.312461,504.312461,1,504.312461
2011-11-09,504.049340,504.049340,504.049340,504.049340,1,504.049340
2011-11-08,503.709449,503.709449,503.709449,503.709449,1,503.709449
2011-11-07,503.296051,503.296051,503.296051,503.296051,1,503.296051
2011-11-04,502.813119,502.813119,502.813119,502.813119,1,502.813119
2011-11-03,502.265293,502.265293,502.265293,502.265293,1,502.265293
2011-11-02,501.657836,501.657836,501.657836,501.657836,1,501.657836
2011-11-01,500.996585,500.996585,500.996585,500.996585,1,500.996585
2011-10-31,500.287891,500.287891,500.287891,500.287891,1,500.287891
2011-10-28,499.538565,499.538565,499.538565,499.538565,1,499.538565
2011-10-27,498.755805,498.755805,498.755805,498.755805,1,498.755805
2011-10-26,497.947132,497.947132,497.947132,497.947132,1,497.947132
2011-10-25,497.120316,497.120316,497.120316,497.120316,1,497.120316
2011-10-24,496.283299,496.283299,496.283299,496.283299,1,496.283299
2011-10-21,495.444124,495.444124,495.444124,495.444124,1,495.444124
2011-10-20,494.610853,494.610853,494.610853,494.610853,1,494.610853
2011-10-19,493.791491,493.791491,493.791491,493.791491,1,493.791491
2011-10-18,492.993912,492.993912,492.993912,492.993912,1,492.993912
2011-10-17,492.225778,492.225778,492.225778,492.225778,1,492.225778
2011-10-14,491.494468,491.494468,491.494468,491.494468,1,491.494468
2011-10-13,490.807009,490.807009,490.807009,490.807009,1,490.807009
2011-10-12,490.170006,490.170006,490.170006,490.170006,1,490.170006
2011-10-11,489.589578,489.589578,489.589578,489.589578,1,489.589578
2011-10-10,489.071303,489.071303,489.071303,489.071303,1,489.071303
2011-10-07,488.620160,488.620160,488.620160,488.620160,1,488.620160
2011-10-06,488.240482,488.240482,488.240482,488.240482,1,488.240482
2011-10-05,487.935918,487.935918,487.935918,487.935918,1,487.935918
2011-10-04,487.709395,487.709395,487.709395,487.709395,1,487.709395
2011-10-03,487.563087,487.563087,487.563087,487.563087,1,487.563087
2011-09-30,487.498402,487.498402,487.498402,487.498402,1,487.498402
2011-09-29,487.515960,487.515960,487.515960,487.515960,1,487.515960
2011-09-28,487.615592,487.615592,487.615592,487.615592,1,487.615592
2011-09-27,487.796343,487.796343,487.796343,487.796343,1,487.796343
2011-09-26,488.056474,488.056474,488.056474,488.056474,1,488.056474
2011-09-23,488.393487,488.393487,488.393487,488.393487,1,488.393487
2011-09-22,488.804143,488.804143,488.804143,488.804143,1,488.804143
2011-09-21,489.284499,489.284499,489.284499,489.284499,1,489.284499
2011-09-20,489.829937,489.829937,489.829937,489.829937,1,489.829937
2011-09-19,490.435219,490.435219,490.435219,490.435219,1,490.435219
2011-09-16,491.094528,491.094528,491.094528,491.094528,1,491.094528
2011-09-15,491.801530,491.801530,491.801530,491.801530,1,491.801530
2011-09-14,492.549433,492.549433,492.549433,492.549433,1,492.549433
2011-09-13,493.331052,493.331052,493.331052,493.331052,1,493.331052
2011-09-12,494.138876,494.138876,494.138876,494.138876,1,494.138876
2011-09-09,494.965144,494.965144,494.965144,494.965144,1,494.965144
2011-09-08,495.801919,495.801919,495.801919,495.801919,1,495.801919
2011-09-07,496.641159,496.641159,496.641159,496.641159,1,496.641159
2011-09-06,497.474804,497.474804,497.474804,497.474804,1,497.474804
2011-09-02,498.294843,498.294843,498.294843,498.294843,1,498.294843
2011-09-01,499.093397,499.093397,499.093397,499.093397,1,499.093397
2011-08-31,499.862794,499.862794,499.862794,499.862794,1,499.862794
2011-08-30,500.595643,500.595643,500.595643,500.595643,1,500.595643
2011-08-29,501.284902,501.284902,501.284902,501.284902,1,501.284902
2011-08-26,501.923950,501.923950,501.923950,501.923950,1,501.923950
2011-08-25,502.506646,502.506646,502.506646,502.506646,1,502.506646
2011-08-24,503.027392,503.027392,503.027392,503.027392,1,503.027392
2011-08-23,503.481186,503.481186,503.481186,503.481186,1,503.481186
2011-08-22,503.863666,503.863666,503.863666,503.863666,1,503.863666
2011-08-19,504.171160,504.171160,504.171160,504.171160,1,504.171160
2011-08-18,504.400711,504.400711,504.400711,504.400711,1,504.400711
2011-08-17,504.550115,504.550115,504.550115,504.550115,1,504.550115
2011-08-16,504.617937,504.617937,504.617937,504.617937,1,504.617937
2011-08-15,504.603524,504.603524,504.603524,504.603524,1,504.603524
2011-08-12,504.507016,504.507016,504.507016,504.507016,1,504.507016
2011-08-11,504.329339,504.329339,504.329339,504.329339,1,504.329339
2011-08-10,504.072201,504.072201,504.072201,504.072201,1,504.072201
2011-08-09,503.738072,503.738072,503.738072,503.738072,1,503.738072
2011-08-08,503.330162,503.330162,503.330162,503.330162,1,503.330162
2011-08-05,502.852390,502.852390,502.852390,502.852390,1,502.852390
2011-08-04,502.309347,502.309347,502.309347,502.309347,1,502.309347
2011-08-03,501.706249,501.706249,501.706249,501.706249,1,501.706249
2011-08-02,501.048892,501.048892,501.048892,501.048892,1,501.048892
2011-08-01,500.343590,500.343590,500.343590,500.343590,1,500.343590
2011-07-29,499.597120,499.597120,499.597120,499.597120,1,499.597120
2011-07-28,498.816655,498.816655,498.816655,498.816655,1,498.816655
2011-07-27,498.009691,498.009691,498.009691,498.009691,1,498.009691
2011-07-26,497.183983,497.183983,497.183983,497.183983,1,497.183983
2011-07-25,496.347462,496.347462,496.347462,496.347462,1,496.347462
2011-07-22,495.508167,495.508167,495.508167,495.508167,1,495.508167
2011-07-21,494.674161,494.674161,494.674161,494.674161,1,494.674161
2011-07-20,493.853457,493.853457,493.853457,493.853457,1,493.853457
2011-07-19,493.053939,493.053939,493.053939,493.053939,1,493.053939
2011-07-18,492.283289,492.283289,492.283289,492.283289,1,492.283289
2011-07-15,491.548911,491.548911,491.548911,491.548911,1,491.548911
2011-07-14,490.857861,490.857861,490.857861,490.857861,1,490.857861
2011-07-13,490.216778,490.216778,490.216778,490.216778,1,490.216778
2011-07-12,489.631822,489.631822,489.631822,489.631822,1,489.631822
2011-07-11,489.108612,489.108612,489.108612,489.108612,1,489.108612
2011-07-08,488.652175,488.652175,488.652175,488.652175,1,488.652175
2011-07-07,488.266897,488.266897,488.266897,488.266897,1,488.266897
2011-07-06,487.956478,487.956478,487.956478,487.956478,1,487.956478
2011-07-05,487.723902,487.723902,487.723902,487.723902,1,487.723902
2011-07-01,487.571403,487.571403,487.571403,487.571403,1,487.571403
2011-06-30,487.500446,487.500446,487.500446,487.500446,1,487.500446
2011-06-29,487.511713,487.511713,487.511713,487.511713,1,487.511713
2011-06-28,487.605096,487.605096,487.605096,487.605096,1,487.605096
2011-06-27,487.779696,487.779696,487.779696,487.779696,1,487.779696
2011-06-24,488.033838,488.033838,488.033838,488.033838,1,488.033838
2011-06-23,488.365079,488.365079,488.365079,488.365079,1,488.365079
2011-06-22,488.770237,488.770237,488.770237,488.770237,1,488.770237
2011-06-21,489.245418,489.245418,489.245418,489.245418,1,489.245418
2011-06-20,489.786059,489.786059,489.786059,489.786059,1,489.786059
2011-06-17,490.386964,490.386964,490.386964,490.386964,1,490.386964
2011-06-16,491.042361,491.042361,491.042361,491.042361,1,491.042361
2011-06-15,491.745951,491.745951,491.745951,491.745951,1,491.745951
2011-06-14,492.490977,492.490977,492.490977,492.490977,1,492.490977
2011-06-13,493.270279,493.270279,493.270279,493.270279,1,493.270279
2011-06-10,494.076371,494.076371,494.076371,494.076371,1,494.076371
2011-06-09,494.901508,494.901508,494.901508,494.901508,1,494.901508
2011-06-08,495.737763,495.737763,495.737763,495.737763,1,495.737763
2011-06-07,496.577100,496.577100,496.577100,496.577100,1,496.577100
2011-06-06,497.411456,497.411456,497.411456,497.411456,1,497.411456
2011-06-03,498.232815,498.232815,498.232815,498.232815,1,498.232815
2011-06-02,499.033285,499.033285,499.033285,499.033285,1,499.033285
2011-06-01,499.805177,499.805177,499.805177,499.805177,1,499.805177
2011-05-31,500.541073,500.541073,500.541073,500.541073,1,500.541073
2011-05-27,501.233904,501.233904,501.233904,501.233904,1,501.233904
2011-05-26,501.877013,501.877013,501.877013,501.877013,1,501.877013
2011-05-25,502.464222,502.464222,502.464222,502.464222,1,502.464222
2011-05-24,502.989888,502.989888,502.989888,502.989888,1,502.989888
2011-05-23,503.448962,503.448962,503.448962,503.448962,1,503.448962
2011-05-20,503.837033,503.837033,503.837033,503.837033,1,503.837033
2011-05-19,504.150372,504.150372,504.150372,504.150372,1,504.150372
2011-05-18,504.385969,504.385969,504.385969,504.385969,1,504.385969
2011-05-17,504.541561,504.541561,504.541561,504.541561,1,504.541561
2011-05-16,504.615652,504.615652,504.615652,504.615652,1,504.615652
2011-05-13,504.607531,504.607531,504.607531,504.607531,1,504.607531
2011-05-12,504.517275,504.517275,504.517275,504.517275,1,504.517275
2011-05-11,504.345753,504.345753,504.345753,504.345753,1,504.345753
2011-05-10,504.094612,504.094612,504.094612,504.094612,1,504.094612
2011-05-09,503.766264,503.766264,503.766264,503.766264,1,503.766264
2011-05-06,503.363864,503.363864,503.363864,503.363864,1,503.363864
2011-05-05,502.891279,502.891279,502.891279,502.891279,1,502.891279
2011-05-04,502.353049,502.353049,502.353049,502.353049,1,502.353049
2011-05-03,501.754345,501.754345,501.754345,501.754345,1,501.754345
2011-05-02,501.100918,501.100918,501.100918,501.100918,1,501.100918
2011-04-29,500.399048,500.399048,500.399048,500.399048,1,500.399048
2011-04-28,499.655477,499.655477,499.655477,499.655477,1,499.655477
2011-04-27,498.877349,498.877349,498.877349,498.877349,1,498.877349
2011-04-26,498.072140,498.072140,498.072140,498.072140,1,498.072140
2011-04-25,497.247586,497.247586,497.247586,497.247586,1,497.247586
2011-04-21,496.411610,496.411610,496.411610,496.411610,1,496.411610
2011-04-20,495.572242,495.572242,495.572242,495.572242,1,495.572242
2011-04-19,494.737548,494.737548,494.737548,494.737548,1,494.737548
2011-04-18,493.915546,493.915546,493.915546,493.915546,1,493.915546
2011-04-15,493.114134,493.114134,493.114134,493.114134,1,493.114134
2011-04-14,492.341012,492.341012,492.341012,492.341012,1,492.341012
2011-04-13,491.603608,491.603608,491.603608,491.603608,1,491.603608
2011-04-12,490.909006,490.909006,490.909006,490.909006,1,490.909006
2011-04-11,490.263879,490.263879,490.263879,490.263879,1,490.263879
2011-04-08,489.674427,489.674427,489.674427,489.674427,1,489.674427
2011-04-07,489.146311,489.146311,489.146311,489.146311,1,489.146311
2011-04-06,488.684607,488.684607,488.684607,488.684607,1,488.684607
2011-04-05,488.293749,488.293749,488.293749,488.293749,1,488.293749
2011-04-04,487.977493,487.977493,487.977493,487.977493,1,487.977493
2011-04-01,487.738878,487.738878,487.738878,487.738878,1,487.738878
2011-03-31,487.580196,487.580196,487.580196,487.580196,1,487.580196
2011-03-30,487.502972,487.502972,487.502972,487.502972,1,487.502972
2011-03-29,487.507947,487.507947,487.507947,487.507947,1,487.507947
2011-03-28,487.595074,487.595074,487.595074,487.595074,1,487.595074
2011-03-25,487.763515,487.763515,487.763515,487.763515,1,487.763515
2011-03-24,488.011653,488.011653,488.011653,488.011653,1,488.011653
2011-03-23,488.337103,488.337103,488.337103,488.337103,1,488.337103
2011-03-22,488.736739,488.736739,488.736739,488.736739,1,488.736739
2011-03-21,489.206721,489.206721,489.206721,489.206721,1,489.206721
2011-03-18,489.742533,489.742533,489.742533,489.742533,1,489.742533
2011-03-17,490.339028,490.339028,490.339028,490.339028,1,490.339028
2011-03-16,490.990475,490.990475,490.990475,490.990475,1,490.990475
2011-03-15,491.690615,491.690615,491.690615,491.690615,1,491.690615
2011-03-14,492.432721,492.432721,492.432721,492.432721,1,492.432721
2011-03-11,493.209664,493.209664,493.209664,493.209664,1,493.209664
2011-03-10,494.013979,494.013979,494.013979,494.013979,1,494.013979
2011-03-09,494.837938,494.837938,494.837938,494.837938,1,494.837938
2011-03-08,495.673625,495.673625,495.673625,495.673625,1,495.673625
2011-03-07,496.513011,496.513011,496.513011,496.513011,1,496.513011
2011-03-04,497.348032,497.348032,497.348032,497.348032,1,497.348032
2011-03-03,498.170665,498.170665,498.170665,498.170665,1,498.170665
2011-03-02,498.973007,498.973007,498.973007,498.973007,1,498.973007
2011-03-01,499.747349,499.747349,499.747349,499.747349,1,499.747349
2011-02-28,500.486251,500.486251,500.486251,500.486251,1,500.486251
2011-02-25,501.182614,501.182614,501.182614,501.182614,1,501.182614
2011-02-24,501.829749,501.829749,501.829749,501.829749,1,501.829749
2011-02-23,502.421437,502.421437,502.421437,502.421437,1,502.421437
2011-02-22,502.951994,502.951994,502.951994,502.951994,1,502.951994
2011-02-18,503.416323,503.416323,503.416323,503.416323,1,503.416323
2011-02-17,503.809962,503.809962,503.809962,503.809962,1,503.809962
2011-02-16,504.129130,504.129130,504.129130,504.129130,1,504.129130
2011-02-15,504.370759,504.370759,504.370759,504.370759,1,504.370759
2011-02-14,504.532529,504.532529,504.532529,504.532529,1,504.532529
2011-02-11,504.612886,504.612886,504.612886,504.612886,1,504.612886
2011-02-10,504.611057,504.611057,504.611057,504.611057,1,504.611057
2011-02-09,504.527060,504.527060,504.527060,504.527060,1,504.527060
2011-02-08,504.361701,504.361701,504.361701,504.361701,1,504.361701
2011-02-07,504.116571,504.116571,504.116571,504.116571,1,504.116571
2011-02-04,503.794023,503.794023,503.794023,503.794023,1,503.794023
2011-02-03,503.397156,503.397156,503.397156,503.397156,1,503.397156
2011-02-02,502.929784,502.929784,502.929784,502.929784,1,502.929784
2011-02-01,502.396398,502.396398,502.396398,502.396398,1,502.396398
2011-01-31,501.802120,501.802120,501.802120,501.802120,1,501.802120
2011-01-28,501.152662,501.152662,501.152662,501.152662,1,501.152662
2011-01-27,500.454262,500.454262,500.454262,500.454262,1,500.454262
2011-01-26,499.713631,499.713631,499.713631,499.713631,1,499.713631
2011-01-25,498.937885,498.937885,498.937885,498.937885,1,498.937885
2011-01-24,498.134476,498.134476,498.134476,498.134476,1,498.134476
2011-01-21,497.311123,497.311123,497.311123,497.311123,1,497.311123
2011-01-20,496.475737,496.475737,496.475737,496.475737,1,496.475737
2011-01-19,495.636344,495.636344,495.636344,495.636344,1,495.636344
2011-01-18,494.801008,494.801008,494.801008,494.801008,1,494.801008
2011-01-14,493.977755,493.977755,493.977755,493.977755,1,493.977755
2011-01-13,493.174495,493.174495,493.174495,493.174495,1,493.174495
2011-01-12,492.398944,492.398944,492.398944,492.398944,1,492.398944
2011-01-11,491.658555,491.658555,491.658555,491.658555,1,491.658555
2011-01-10,490.960439,490.960439,490.960439,490.960439,1,490.960439
2011-01-07,490.311305,490.311305,490.311305,490.311305,1,490.311305
2011-01-06,489.717390,489.717390,489.717390,489.717390,1,489.717390
2011-01-05,489.184399,489.184399,489.184399,489.184399,1,489.184399
2011-01-04,488.717452,488.717452,488.717452,488.717452,1,488.717452
2011-01-03,488.321038,488.321038,488.321038,488.321038,1,488.321038
2010-12-31,487.998963,487.998963,487.998963,487.998963,1,487.998963
2010-12-30,487.754322,487.754322,487.754322,487.754322,1,487.754322
2010-12-29,487.589466,487.589466,487.589466,487.589466,1,487.589466
2010-12-28,487.505978,487.505978,487.505978,487.505978,1,487.505978
2010-12-27,487.504661,487.504661,487.504661,487.504661,1,487.504661
2010-12-23,487.585528,487.585528,487.585528,487.585528,1,487.585528
2010-12-22,487.747800,487.747800,487.747800,487.747800,1,487.747800
2010-12-21,487.989921,487.989921,487.989921,487.989921,1,487.989921
2010-12-20,488.309562,488.309562,488.309562,488.309562,1,488.309562
2010-12-17,488.703653,488.703653,488.703653,488.703653,1,488.703653
2010-12-16,489.168408,489.168408,489.168408,489.168408,1,489.168408
2010-12-15,489.699362,489.699362,489.699362,489.699362,1,489.699362
2010-12-14,490.291414,490.291414,490.291414,490.291414,1,490.291414
2010-12-13,490.938875,490.938875,490.938875,490.938875,1,490.938875
2010-12-10,491.635524,491.635524,491.635524,491.635524,1,491.635524
2010-12-09,492.374669,492.374669,492.374669,492.374669,1,492.374669
2010-12-08,493.149208,493.149208,493.149208,493.149208,1,493.149208
2010-12-07,493.951701,493.951701,493.951701,493.951701,1,493.951701
2010-12-06,494.774435,494.774435,494.774435,494.774435,1,494.774435
2010-12-03,495.609508,495.609508,495.609508,495.609508,1,495.609508
2010-12-02,496.448897,496.448897,496.448897,496.448897,1,496.448897
2010-12-01,497.284536,497.284536,497.284536,497.284536,1,497.284536
2010-11-30,498.108397,498.108397,498.108397,498.108397,1,498.108397
2010-11-29,498.912565,498.912565,498.912565,498.912565,1,498.912565
2010-11-26,499.689313,499.689313,499.689313,499.689313,1,499.689313
2010-11-24,500.431180,500.431180,500.431180,500.431180,1,500.431180
2010-11-23,501.131037,501.131037,501.131037,501.131037,1,501.131037
2010-11-22,501.782161,501.782161,501.782161,501.782161,1,501.782161
2010-11-19,502.378295,502.378295,502.378295,502.378295,1,502.378295
2010-11-18,502.913713,502.913713,502.913713,502.913713,1,502.913713
2010-11-17,503.383271,503.383271,503.383271,503.383271,1,503.383271
2010-11-16,503.782456,503.782456,503.782456,503.782456,1,503.782456
2010-11-15,504.107434,504.107434,504.107434,504.107434,1,504.107434
2010-11-12,504.355082,504.355082,504.355082,504.355082,1,504.355082
2010-11-11,504.523022,504.523022,504.523022,504.523022,1,504.523022
2010-11-10,504.609639,504.609639,504.609639,504.609639,1,504.609639
2010-11-09,504.614102,504.614102,504.614102,504.614102,1,504.614102
2010-11-08,504.536368,504.536368,504.536368,504.536368,1,504.536368
2010-11-05,504.377183,504.377183,504.377183,504.377183,1,504.377183
2010-11-04,504.138077,504.138077,504.138077,504.138077,1,504.138077
2010-11-03,503.821347,503.821347,503.821347,503.821347,1,503.821347
2010-11-02,503.430036,503.430036,503.430036,503.430036,1,503.430036
2010-11-01,502.967904,502.967904,502.967904,502.967904,1,502.967904
2010-10-29,502.439390,502.439390,502.439390,502.439390,1,502.439390
2010-10-28,501.849573,501.849573,501.849573,501.849573,1,501.849573
2010-10-27,501.204119,501.204119,501.204119,501.204119,1,501.204119
2010-10-26,500.509229,500.509229,500.509229,500.509229,1,500.509229
2010-10-25,499.771580,499.771580,499.771580,499.771580,1,499.771580
2010-10-22,498.998259,498.998259,498.998259,498.998259,1,498.998259
2010-10-21,498.196695,498.196695,498.196695,498.196695,1,498.196695
2010-10-20,497.374590,497.374590,497.374590,497.374590,1,497.374590
2010-10-19,496.539841,496.539841,496.539841,496.539841,1,496.539841
2010-10-18,495.700470,495.700470,495.700470,495.700470,1,495.700470
2010-10-15,494.864540,494.864540,494.864540,494.864540,1,494.864540
2010-10-14,494.040082,494.040082,494.040082,494.040082,1,494.040082
2010-10-13,493.235018,493.235018,493.235018,493.235018,1,493.235018
2010-10-12,492.457082,492.457082,492.457082,492.457082,1,492.457082
2010-10-11,491.713749,491.713749,491.713749,491.713749,1,491.713749
2010-10-08,491.012159,491.012159,491.012159,491.012159,1,491.012159
2010-10-07,490.359055,490.359055,490.359055,490.359055,1,490.359055
2010-10-06,489.760710,489.760710,489.760710,489.760710,1,489.760710
2010-10-05,489.222873,489.222873,489.222873,489.222873,1,489.222873
2010-10-04,488.750711,488.750711,488.750711,488.750711,1,488.750711
2010-10-01,488.348761,488.348761,488.348761,488.348761,1,488.348761
2010-09-30,488.020885,488.020885,488.020885,488.020885,1,488.020885
2010-09-29,487.770232,487.770232,487.770232,487.770232,1,487.770232
2010-09-28,487.599211,487.599211,487.599211,487.599211,1,487.599211
2010-09-27,487.509465,487.509465,487.509465,487.509465,1,487.509465
2010-09-24,487.501856,487.501856,487.501856,487.501856,1,487.501856
2010-09-23,487.576458,487.576458,487.576458,487.576458,1,487.576458
2010-09-22,487.732553,487.732553,487.732553,487.732553,1,487.732553
2010-09-21,487.968641,487.968641,487.968641,487.968641,1,487.968641
2010-09-20,488.282456,488.282456,488.282456,488.282456,1,488.282456
2010-09-17,488.670980,488.670980,488.670980,488.670980,1,488.670980
2010-09-16,489.130483,489.130483,489.130483,489.130483,1,489.130483
2010-09-15,489.656549,489.656549,489.656549,489.656549,1,489.656549
2010-09-14,490.244123,490.244123,490.244123,490.244123,1,490.244123
2010-09-13,490.887562,490.887562,490.887562,490.887562,1,490.887562
2010-09-10,491.580682,491.580682,491.580682,491.580682,1,491.580682
2010-09-09,492.316824,492.316824,492.316824,492.316824,1,492.316824
2010-09-08,493.088916,493.088916,493.088916,493.088916,1,493.088916
2010-09-07,493.889541,493.889541,493.889541,493.889541,1,493.889541
2010-09-03,494.711005,494.711005,494.711005,494.711005,1,494.711005
2010-09-02,495.545417,495.545417,495.545417,495.545417,1,495.545417
2010-09-01,496.384760,496.384760,496.384760,496.384760,1,496.384760
2010-08-31,497.220970,497.220970,497.220970,497.220970,1,497.220970
2010-08-30,498.046013,498.046013,498.046013,498.046013,1,498.046013
2010-08-27,498.851962,498.851962,498.851962,498.851962,1,498.851962
2010-08-26,499.631074,499.631074,499.631074,499.631074,1,499.631074
2010-08-25,500.375863,500.375863,500.375863,500.375863,1,500.375863
2010-08-24,501.079175,501.079175,501.079175,501.079175,1,501.079175
2010-08-23,501.734251,501.734251,501.734251,501.734251,1,501.734251
2010-08-20,502.334799,502.334799,502.334799,502.334799,1,502.334799
2010-08-19,502.875047,502.875047,502.875047,502.875047,1,502.875047
2010-08-18,503.349807,503.349807,503.349807,503.349807,1,503.349807
2010-08-17,503.754516,503.754516,503.754516,503.754516,1,503.754516
2010-08-16,504.085286,504.085286,504.085286,504.085286,1,504.085286
2010-08-13,504.338939,504.338939,504.338939,504.338939,1,504.338939
2010-08-12,504.513039,504.513039,504.513039,504.513039,1,504.513039
2010-08-11,504.605912,504.605912,504.605912,504.605912,1,504.605912
2010-08-10,504.616667,504.616667,504.616667,504.616667,1,504.616667
2010-08-09,504.545200,504.545200,504.545200,504.545200,1,504.545200
2010-08-06,504.392197,504.392197,504.392197,504.392197,1,504.392197
2010-08-05,504.159129,504.159129,504.159129,504.159129,1,504.159129
2010-08-04,503.848235,503.848235,503.848235,503.848235,1,503.848235
2010-08-03,503.462501,503.462501,503.462501,503.462501,1,503.462501
2010-08-02,503.005634,503.005634,503.005634,503.005634,1,503.005634
2010-07-30,502.482024,502.482024,502.482024,502.482024,1,502.482024
2010-07-29,501.896700,501.896700,501.896700,501.896700,1,501.896700
2010-07-28,501.255287,501.255287,501.255287,501.255287,1,501.255287
2010-07-27,500.563946,500.563946,500.563946,500.563946,1,500.563946
2010-07-26,499.829321,499.829321,499.829321,499.829321,1,499.829321
2010-07-23,499.058468,499.058468,499.058468,499.058468,1,499.058468
2010-07-22,498.258794,498.258794,498.258794,498.258794,1,498.258794
2010-07-21,497.437982,497.437982,497.437982,497.437982,1,497.437982
2010-07-20,496.603918,496.603918,496.603918,496.603918,1,496.603918
2010-07-19,495.764616,495.764616,495.764616,495.764616,1,495.764616
2010-07-16,494.928138,494.928138,494.928138,494.928138,1,494.928138
2010-07-15,494.102522,494.102522,494.102522,494.102522,1,494.102522
2010-07-14,493.295699,493.295699,493.295699,493.295699,1,493.295699
2010-07-13,492.515422,492.515422,492.515422,492.515422,1,492.515422
2010-07-12,491.769187,491.769187,491.769187,491.769187,1,491.769187
2010-07-09,491.064163,491.064163,491.064163,491.064163,1,491.064163
2010-07-08,490.407124,490.407124,490.407124,490.407124,1,490.407124
2010-07-07,489.804383,489.804383,489.804383,489.804383,1,489.804383
2010-07-06,489.261731,489.261731,489.261731,489.261731,1,489.261731
2010-07-02,488.784380,488.784380,488.784380,488.784380,1,488.784380
2010-07-01,488.376918,488.376918,488.376918,488.376918,1,488.376918
2010-06-30,488.043258,488.043258,488.043258,488.043258,1,488.043258
2010-06-29,487.786608,487.786608,487.786608,487.786608,1,487.786608
2010-06-28,487.609432,487.609432,487.609432,487.609432,1,487.609432
2010-06-25,487.513432,487.513432,487.513432,487.513432,1,487.513432
2010-06-24,487.499532,487.499532,487.499532,487.499532,1,487.499532
2010-06-23,487.567864,487.567864,487.567864,487.567864,1,487.567864
2010-06-22,487.717772,487.717772,487.717772,487.717772,1,487.717772
2010-06-21,487.947817,487.947817,487.947817,487.947817,1,487.947817
2010-06-18,488.255786,488.255786,488.255786,488.255786,1,488.255786
2010-06-17,488.638723,488.638723,488.638723,488.638723,1,488.638723
2010-06-16,489.092947,489.092947,489.092947,489.092947,1,489.092947
2010-06-15,489.614095,489.614095,489.614095,489.614095,1,489.614095
2010-06-14,490.197160,490.197160,490.197160,490.197160,1,490.197160
2010-06-11,490.836539,490.836539,490.836539,490.836539,1,490.836539
2010-06-10,491.526091,491.526091,491.526091,491.526091,1,491.526091
2010-06-09,492.259189,492.259189,492.259189,492.259189,1,492.259189
2010-06-08,493.028791,493.028791,493.028791,493.028791,1,493.028791
2010-06-07,493.827503,493.827503,493.827503,493.827503,1,493.827503
2010-06-04,494.647651,494.647651,494.647651,494.647651,1,494.647651
2010-06-03,495.481355,495.481355,495.481355,495.481355,1,495.481355
2010-06-02,496.320606,496.320606,496.320606,496.320606,1,496.320606
2010-06-01,497.157340,497.157340,497.157340,497.157340,1,497.157340
2010-05-28,497.983518,497.983518,497.983518,497.983518,1,497.983518
2010-05-27,498.791202,498.791202,498.791202,498.791202,1,498.791202
2010-05-26,499.572634,499.572634,499.572634,499.572634,1,499.572634
2010-05-25,500.320304,500.320304,500.320304,500.320304,1,500.320304
2010-05-24,501.027030,501.027030,501.027030,501.027030,1,501.027030
2010-05-21,501.686022,501.686022,501.686022,501.686022,1,501.686022
2010-05-20,502.290949,502.290949,502.290949,502.290949,1,502.290949
2010-05-19,502.835998,502.835998,502.835998,502.835998,1,502.835998
2010-05-18,503.315933,503.315933,503.315933,503.315933,1,503.315933
2010-05-17,503.726143,503.726143,503.726143,503.726143,1,503.726143
2010-05-14,504.062687,504.062687,504.062687,504.062687,1,504.062687
2010-05-13,504.322331,504.322331,504.322331,504.322331,1,504.322331
2010-05-12,504.502581,504.502581,504.502581,504.502581,1,504.502581
2010-05-11,504.601705,504.601705,504.601705,504.601705,1,504.601705
2010-05-10,504.618751,504.618751,504.618751,504.618751,1,504.618751
2010-05-07,504.553555,504.553555,504.553555,504.553555,1,504.553555
2010-05-06,504.406743,504.406743,504.406743,504.406743,1,504.406743
2010-05-05,504.179726,504.179726,504.179726,504.179726,1,504.179726
2010-05-04,503.874685,503.874685,503.874685,503.874685,1,503.874685
2010-05-03,503.494551,503.494551,503.494551,503.494551,1,503.494551
2010-04-30,503.042975,503.042975,503.042975,503.042975,1,503.042975
2010-04-29,502.524297,502.524297,502.524297,502.524297,1,502.524297
2010-04-28,501.943500,501.943500,501.943500,501.943500,1,501.943500
2010-04-27,501.306163,501.306163,501.306163,501.306163,1,501.306163
2010-04-26,500.618410,500.618410,500.618410,500.618410,1,500.618410
2010-04-23,499.886849,499.886849,499.886849,499.886849,1,499.886849
2010-04-22,499.118508,499.118508,499.118508,499.118508,1,499.118508
2010-04-21,498.320770,498.320770,498.320770,498.320770,1,498.320770
2010-04-20,497.501297,497.501297,497.501297,497.501297,1,497.501297
2010-04-19,496.667965,496.667965,496.667965,496.667965,1,496.667965
2010-04-16,495.828778,495.828778,495.828778,495.828778,1,495.828778
2010-04-15,494.991800,494.991800,494.991800,494.991800,1,494.991800
2010-04-14,494.165072,494.165072,494.165072,494.165072,1,494.165072
2010-04-13,493.356536,493.356536,493.356536,493.356536,1,493.356536
2010-04-12,492.573961,492.573961,492.573961,492.573961,1,492.573961
2010-04-09,491.824866,491.824866,491.824866,491.824866,1,491.824866
2010-04-08,491.116447,491.116447,491.116447,491.116447,1,491.116447
2010-04-07,490.455511,490.455511,490.455511,490.455511,1,490.455511
2010-04-06,489.848408,489.848408,489.848408,489.848408,1,489.848408
2010-04-05,489.300970,489.300970,489.300970,489.300970,1,489.300970
2010-04-01,488.818458,488.818458,488.818458,488.818458,1,488.818458
2010-03-31,488.405506,488.405506,488.405506,488.405506,1,488.405506
2010-03-30,488.066083,488.066083,488.066083,488.066083,1,488.066083
2010-03-29,487.803448,487.803448,487.803448,487.803448,1,487.803448
2010-03-26,487.620127,487.620127,487.620127,487.620127,1,487.620127
2010-03-25,487.517880,487.517880,487.517880,487.517880,1,487.517880
2010-03-24,487.497689,487.497689,487.497689,487.497689,1,487.497689
2010-03-23,487.559748,487.559748,487.559748,487.559748,1,487.559748
2010-03-22,487.703461,487.703461,487.703461,487.703461,1,487.703461
2010-03-19,487.927448,487.927448,487.927448,487.927448,1,487.927448
2010-03-18,488.229555,488.229555,488.229555,488.229555,1,488.229555
2010-03-17,488.606882,488.606882,488.606882,488.606882,1,488.606882
2010-03-16,489.055802,489.055802,489.055802,489.055802,1,489.055802
2010-03-15,489.572003,489.572003,489.572003,489.572003,1,489.572003
2010-03-12,490.150525,490.150525,490.150525,490.150525,1,490.150525
2010-03-11,490.785810,490.785810,490.785810,490.785810,1,490.785810
2010-03-10,491.471755,491.471755,491.471755,491.471755,1,491.471755
2010-03-09,492.201768,492.201768,492.201768,492.201768,1,492.201768
2010-03-08,492.968837,492.968837,492.968837,492.968837,1,492.968837
2010-03-05,493.765591,493.765591,493.765591,493.765591,1,493.765591
2010-03-04,494.584376,494.584376,494.584376,494.584376,1,494.584376
2010-03-03,495.417325,495.417325,495.417325,495.417325,1,495.417325
2010-03-02,496.256436,496.256436,496.256436,496.256436,1,496.256436
2010-03-01,497.093647,497.093647,497.093647,497.093647,1,497.093647
2010-02-26,497.920914,497.920914,497.920914,497.920914,1,497.920914
2010-02-25,498.730289,498.730289,498.730289,498.730289,1,498.730289
2010-02-24,499.513996,499.513996,499.513996,499.513996,1,499.513996
2010-02-23,500.264506,500.264506,500.264506,500.264506,1,500.264506
2010-02-22,500.974607,500.974607,500.974607,500.974607,1,500.974607
2010-02-19,501.637478,501.637478,501.637478,501.637478,1,501.637478
2010-02-18,502.246749,502.246749,502.246749,502.246749,1,502.246749
2010-02-17,502.796568,502.796568,502.796568,502.796568,1,502.796568
2010-02-16,503.281652,503.281652,503.281652,503.281652,1,503.281652
2010-02-12,503.697339,503.697339,503.697339,503.697339,1,503.697339
2010-02-11,504.039638,504.039638,504.039638,504.039638,1,504.039638
2010-02-10,504.305258,504.305258,504.305258,504.305258,1,504.305258
2010-02-09,504.491648,504.491648,504.491648,504.491648,1,504.491648
2010-02-08,504.597017,504.597017,504.597017,504.597017,1,504.597017
2010-02-05,504.620354,504.620354,504.620354,504.620354,1,504.620354
2010-02-04,504.561432,504.561432,504.561432,504.561432,1,504.561432
2010-02-03,504.420820,504.420820,504.420820,504.420820,1,504.420820
2010-02-02,504.199867,504.199867,504.199867,504.199867,1,504.199867
2010-02-01,503.900696,503.900696,503.900696,503.900696,1,503.900696
2010-01-29,503.526182,503.526182,503.526182,503.526182,1,503.526182
2010-01-28,503.079923,503.079923,503.079923,503.079923,1,503.079923
2010-01-27,502.566207,502.566207,502.566207,502.566207,1,502.566207
2010-01-26,501.989968,501.989968,501.989968,501.989968,1,501.989968
2010-01-25,501.356744,501.356744,501.356744,501.356744,1,501.356744
2010-01-22,500.672618,500.672618,500.672618,500.672618,1,500.672618
2010-01-21,499.944163,499.944163,499.944163,499.944163,1,499.944163
2010-01-20,499.178377,499.178377,499.178377,499.178377,1,499.178377
2010-01-19,498.382618,498.382618,498.382618,498.382618,1,498.382618
2010-01-15,497.564531,497.564531,497.564531,497.564531,1,497.564531
2010-01-14,496.731977,496.731977,496.731977,496.731977,1,496.731977
2010-01-13,495.892953,495.892953,495.892953,495.892953,1,495.892953
2010-01-12,495.055522,495.055522,495.055522,495.055522,1,495.055522
2010-01-11,494.227728,494.227728,494.227728,494.227728,1,494.227728
2010-01-08,493.417525,493.417525,493.417525,493.417525,1,493.417525
2010-01-07,492.632696,492.632696,492.632696,492.632696,1,492.632696
2010-01-06,491.880783,491.880783,491.880783,491.880783,1,491.880783
2010-01-05,491.169009,491.169009,491.169009,491.169009,1,491.169009
2010-01-04,490.504213,490.504213,490.504213,490.504213,1,490.504213
2009-12-31,489.892782,489.892782,489.892782,489.892782,1,489.892782
2009-12-30,489.340590,489.340590,489.340590,489.340590,1,489.340590
2009-12-29,488.852942,488.852942,488.852942,488.852942,1,488.852942
2009-12-28,488.434524,488.434524,488.434524,488.434524,1,488.434524
2009-12-24,488.089356,488.089356,488.089356,488.089356,1,488.089356
2009-12-23,487.820753,487.820753,487.820753,487.820753,1,487.820753
2009-12-22,487.631297,487.631297,487.631297,487.631297,1,487.631297
2009-12-21,487.522807,487.522807,487.522807,487.522807,1,487.522807
2009-12-18,487.496326,487.496326,487.496326,487.496326,1,487.496326
2009-12-17,487.552109,487.552109,487.552109,487.552109,1,487.552109
2009-12-16,487.689619,487.689619,487.689619,487.689619,1,487.689619
2009-12-15,487.907535,487.907535,487.907535,487.907535,1,487.907535
2009-12-14,488.203765,488.203765,488.203765,488.203765,1,488.203765
2009-12-11,488.575460,488.575460,488.575460,488.575460,1,488.575460
2009-12-10,489.019051,489.019051,489.019051,489.019051,1,489.019051
2009-12-09,489.530276,489.530276,489.530276,489.530276,1,489.530276
2009-12-08,490.104223,490.104223,490.104223,490.104223,1,490.104223
2009-12-07,490.735378,490.735378,490.735378,490.735378,1,490.735378
2009-12-04,491.417676,491.417676,491.417676,491.417676,1,491.417676
2009-12-03,492.144563,492.144563,492.144563,492.144563,1,492.144563
2009-12-02,492.909055,492.909055,492.909055,492.909055,1,492.909055
2009-12-01,493.703807,493.703807,493.703807,493.703807,1,493.703807
2009-11-30,494.521184,494.521184,494.521184,494.521184,1,494.521184
2009-11-27,495.353332,495.353332,495.353332,495.353332,1,495.353332
2009-11-25,496.192256,496.192256,496.192256,496.192256,1,496.192256
2009-11-24,497.029897,497.029897,497.029897,497.029897,1,497.029897
2009-11-23,497.858206,497.858206,497.858206,497.858206,1,497.858206
2009-11-20,498.669226,498.669226,498.669226,498.669226,1,498.669226
2009-11-19,499.455165,499.455165,499.455165,499.455165,1,499.455165
2009-11-18,500.208471,500.208471,500.208471,500.208471,1,500.208471
2009-11-17,500.921907,500.921907,500.921907,500.921907,1,500.921907
2009-11-16,501.588619,501.588619,501.588619,501.588619,1,501.588619
2009-11-13,502.202202,502.202202,502.202202,502.202202,1,502.202202
2009-11-12,502.756759,502.756759,502.756759,502.756759,1,502.756759
2009-11-11,503.246964,503.246964,503.246964,503.246964,1,503.246964
2009-11-10,503.668107,503.668107,503.668107,503.668107,1,503.668107
2009-11-09,504.016141,504.016141,504.016141,504.016141,1,504.016141
2009-11-06,504.287722,504.287722,504.287722,504.287722,1,504.287722
2009-11-05,504.480242,504.480242,504.480242,504.480242,1,504.480242
2009-11-04,504.591850,504.591850,504.591850,504.591850,1,504.591850
2009-11-03,504.621475,504.621475,504.621475,504.621475,1,504.621475
2009-11-02,504.568832,504.568832,504.568832,504.568832,1,504.568832
2009-10-30,504.434426,504.434426,504.434426,504.434426,1,504.434426
2009-10-29,504.219550,504.219550,504.219550,504.219550,1,504.219550
2009-10-28,503.926266,503.926266,503.926266,503.926266,1,503.926266
2009-10-27,503.557394,503.557394,503.557394,503.557394,1,503.557394
2009-10-26,503.116477,503.116477,503.116477,503.116477,1,503.116477
2009-10-23,502.607751,502.607751,502.607751,502.607751,1,502.607751
2009-10-22,502.036104,502.036104,502.036104,502.036104,1,502.036104
2009-10-21,501.407028,501.407028,501.407028,501.407028,1,501.407028
2009-10-20,500.726566,500.726566,500.726566,500.726566,1,500.726566
2009-10-19,500.001258,500.001258,500.001258,500.001258,1,500.001258
2009-10-16,499.238070,499.238070,499.238070,499.238070,1,499.238070
2009-10-15,498.444336,498.444336,498.444336,498.444336,1,498.444336
2009-10-14,497.627681,497.627681,497.627681,497.627681,1,497.627681
2009-10-13,496.795951,496.795951,496.795951,496.795951,1,496.795951
2009-10-12,495.957138,495.957138,495.957138,495.957138,1,495.957138
2009-10-09,495.119300,495.119300,495.119300,495.119300,1,495.119300
2009-10-08,494.290487,494.290487,494.290487,494.290487,1,494.290487
2009-10-07,493.478662,493.478662,493.478662,493.478662,1,493.478662
2009-10-06,492.691624,492.691624,492.691624,492.691624,1,492.691624
2009-10-05,491.936935,491.936935,491.936935,491.936935,1,491.936935
2009-10-02,491.221846,491.221846,491.221846,491.221846,1,491.221846
2009-10-01,490.553227,490.553227,490.553227,490.553227,1,490.553227
2009-09-30,489.937502,489.937502,489.937502,489.937502,1,489.937502
2009-09-29,489.380587,489.380587,489.380587,489.380587,1,489.380587
2009-09-28,488.887832,488.887832,488.887832,488.887832,1,488.887832
2009-09-25,488.463971,488.463971,488.463971,488.463971,1,488.463971
2009-09-24,488.113077,488.113077,488.113077,488.113077,1,488.113077
2009-09-23,487.838520,487.838520,487.838520,487.838520,1,487.838520
2009-09-22,487.642940,487.642940,487.642940,487.642940,1,487.642940
2009-09-21,487.528214,487.528214,487.528214,487.528214,1,487.528214
2009-09-18,487.495445,487.495445,487.495445,487.495445,1,487.495445
2009-09-17,487.544948,487.544948,487.544948,487.544948,1,487.544948
2009-09-16,487.676247,487.676247,487.676247,487.676247,1,487.676247
2009-09-15,487.888081,487.888081,487.888081,487.888081,1,487.888081
2009-09-14,488.178415,488.178415,488.178415,488.178415,1,488.178415
2009-09-11,488.544459,488.544459,488.544459,488.544459,1,488.544459
2009-09-10,488.982696,488.982696,488.982696,488.982696,1,488.982696
2009-09-09,489.488916,489.488916,489.488916,489.488916,1,489.488916
2009-09-08,490.058255,490.058255,490.058255,490.058255,1,490.058255
2009-09-04,490.685244,490.685244,490.685244,490.685244,1,490.685244
2009-09-03,491.363858,491.363858,491.363858,491.363858,1,491.363858
2009-09-02,492.087578,492.087578,492.087578,492.087578,1,492.087578
2009-09-01,492.849451,492.849451,492.849451,492.849451,1,492.849451
2009-08-31,493.642156,493.642156,493.642156,493.642156,1,493.642156
2009-08-28,494.458078,494.458078,494.458078,494.458078,1,494.458078
2009-08-27,495.289378,495.289378,495.289378,495.289378,1,495.289378
2009-08-26,496.128068,496.128068,496.128068,496.128068,1,496.128068
2009-08-25,496.966092,496.966092,496.966092,496.966092,1,496.966092
2009-08-24,497.795397,497.795397,497.795397,497.795397,1,497.795397
2009-08-21,498.608016,498.608016,498.608016,498.608016,1,498.608016
2009-08-20,499.396142,499.396142,499.396142,499.396142,1,499.396142
2009-08-19,500.152203,500.152203,500.152203,500.152203,1,500.152203
2009-08-18,500.868934,500.868934,500.868934,500.868934,1,500.868934
2009-08-17,501.539450,501.539450,501.539450,501.539450,1,501.539450
2009-08-14,502.157309,502.157309,502.157309,502.157309,1,502.157309
2009-08-13,502.716574,502.716574,502.716574,502.716574,1,502.716574
2009-08-12,503.211873,503.211873,503.211873,503.211873,1,503.211873
2009-08-11,503.638446,503.638446,503.638446,503.638446,1,503.638446
2009-08-10,503.992196,503.992196,503.992196,503.992196,1,503.992196
2009-08-07,504.269724,504.269724,504.269724,504.269724,1,504.269724
2009-08-06,504.468362,504.468362,504.468362,504.468362,1,504.468362
2009-08-05,504.586204,504.586204,504.586204,504.586204,1,504.586204
2009-08-04,504.622116,504.622116,504.622116,504.622116,1,504.622116
2009-08-03,504.575754,504.575754,504.575754,504.575754,1,504.575754
2009-07-31,504.447563,504.447563,504.447563,504.447563,1,504.447563
2009-07-30,504.238774,504.238774,504.238774,504.238774,1,504.238774
2009-07-29,503.951395,503.951395,503.951395,503.951395,1,503.951395
2009-07-28,503.588185,503.588185,503.588185,503.588185,1,503.588185
2009-07-27,503.152634,503.152634,503.152634,503.152634,1,503.152634
2009-07-24,502.648927,502.648927,502.648927,502.648927,1,502.648927
2009-07-23,502.081903,502.081903,502.081903,502.081903,1,502.081903
2009-07-22,501.457010,501.457010,501.457010,501.457010,1,501.457010
2009-07-21,500.780253,500.780253,500.780253,500.780253,1,500.780253
2009-07-20,500.058131,500.058131,500.058131,500.058131,1,500.058131
2009-07-17,499.297585,499.297585,499.297585,499.297585,1,499.297585
2009-07-16,498.505920,498.505920,498.505920,498.505920,1,498.505920
2009-07-15,497.690742,497.690742,497.690742,497.690742,1,497.690742
2009-07-14,496.859884,496.859884,496.859884,496.859884,1,496.859884
2009-07-13,496.021328,496.021328,496.021328,496.021328,1,496.021328
2009-07-10,495.183131,495.183131,495.183131,495.183131,1,495.183131
2009-07-09,494.353345,494.353345,494.353345,494.353345,1,494.353345
2009-07-08,493.539944,493.539944,493.539944,493.539944,1,493.539944
2009-07-07,492.750741,492.750741,492.750741,492.750741,1,492.750741
2009-07-06,491.993319,491.993319,491.993319,491.993319,1,491.993319
2009-07-02,491.274955,491.274955,491.274955,491.274955,1,491.274955
2009-07-01,490.602551,490.602551,490.602551,490.602551,1,490.602551
2009-06-30,489.982567,489.982567,489.982567,489.982567,1,489.982567
2009-06-29,489.420959,489.420959,489.420959,489.420959,1,489.420959
2009-06-26,488.923124,488.923124,488.923124,488.923124,1,488.923124
2009-06-25,488.493844,488.493844,488.493844,488.493844,1,488.493844
2009-06-24,488.137244,488.137244,488.137244,488.137244,1,488.137244
2009-06-23,487.856750,487.856750,487.856750,487.856750,1,487.856750
2009-06-22,487.655056,487.655056,487.655056,487.655056,1,487.655056
2009-06-19,487.534100,487.534100,487.534100,487.534100,1,487.534100
2009-06-18,487.495045,487.495045,487.495045,487.495045,1,487.495045
2009-06-17,487.538266,487.538266,487.538266,487.538266,1,487.538266
2009-06-16,487.663347,487.663347,487.663347,487.663347,1,487.663347
2009-06-15,487.869086,487.869086,487.869086,487.869086,1,487.869086
2009-06-12,488.153508,488.153508,488.153508,488.153508,1,488.153508
2009-06-11,488.513879,488.513879,488.513879,488.513879,1,488.513879
2009-06-10,488.946738,488.946738,488.946738,488.946738,1,488.946738
2009-06-09,489.447925,489.447925,489.447925,489.447925,1,489.447925
2009-06-08,490.012625,490.012625,490.012625,490.012625,1,490.012625
2009-06-05,490.635412,490.635412,490.635412,490.635412,1,490.635412
2009-06-04,491.310305,491.310305,491.310305,491.310305,1,491.310305
2009-06-03,492.030817,492.030817,492.030817,492.030817,1,492.030817
2009-06-02,492.790027,492.790027,492.790027,492.790027,1,492.790027
2009-06-01,493.580641,493.580641,493.580641,493.580641,1,493.580641
2009-05-29,494.395062,494.395062,494.395062,494.395062,1,494.395062
2009-05-28,495.225467,495.225467,495.225467,495.225467,1,495.225467
2009-05-27,496.063876,496.063876,496.063876,496.063876,1,496.063876
2009-05-26,496.902236,496.902236,496.902236,496.902236,1,496.902236
2009-05-22,497.732490,497.732490,497.732490,497.732490,1,497.732490
2009-05-21,498.546663,498.546663,498.546663,498.546663,1,498.546663
2009-05-20,499.336932,499.336932,499.336932,499.336932,1,499.336932
2009-05-19,500.095704,500.095704,500.095704,500.095704,1,500.095704
2009-05-18,500.815691,500.815691,500.815691,500.815691,1,500.815691
2009-05-15,501.489973,501.489973,501.489973,501.489973,1,501.489973
2009-05-14,502.112074,502.112074,502.112074,502.112074,1,502.112074
2009-05-13,502.676015,502.676015,502.676015,502.676015,1,502.676015
2009-05-12,503.176380,503.176380,503.176380,503.176380,1,503.176380
2009-05-11,503.608360,503.608360,503.608360,503.608360,1,503.608360
2009-05-08,503.967806,503.967806,503.967806,503.967806,1,503.967806
2009-05-07,504.251264,504.251264,504.251264,504.251264,1,504.251264
2009-05-06,504.456010,504.456010,504.456010,504.456010,1,504.456010
2009-05-05,504.580078,504.580078,504.580078,504.580078,1,504.580078
2009-05-04,504.622275,504.622275,504.622275,504.622275,1,504.622275
2009-05-01,504.582197,504.582197,504.582197,504.582197,1,504.582197
2009-04-30,504.460228,504.460228,504.460228,504.460228,1,504.460228
2009-04-29,504.257540,504.257540,504.257540,504.257540,1,504.257540
2009-04-28,503.976080,503.976080,503.976080,503.976080,1,503.976080
2009-04-27,503.618552,503.618552,503.618552,503.618552,1,503.618552
2009-04-24,503.188392,503.188392,503.188392,503.188392,1,503.188392
2009-04-23,502.689733,502.689733,502.689733,502.689733,1,502.689733
2009-04-22,502.127364,502.127364,502.127364,502.127364,1,502.127364
2009-04-21,501.506690,501.506690,501.506690,501.506690,1,501.506690
2009-04-20,500.833673,500.833673,500.833673,500.833673,1,500.833673
2009-04-17,500.114780,500.114780,500.114780,500.114780,1,500.114780
2009-04-16,499.356917,499.356917,499.356917,499.356917,1,499.356917
2009-04-15,498.567366,498.567366,498.567366,498.567366,1,498.567366
2009-04-14,497.753712,497.753712,497.753712,497.753712,1,497.753712
2009-04-13,496.923772,496.923772,496.923772,496.923772,1,496.923772
2009-04-09,496.085521,496.085521,496.085521,496.085521,1,496.085521
2009-04-08,495.247011,495.247011,495.247011,495.247011,1,495.247011
2009-04-07,494.416300,494.416300,494.416300,494.416300,1,494.416300
2009-04-06,493.601367,493.601367,493.601367,493.601367,1,493.601367
2009-04-03,492.810043,492.810043,492.810043,492.810043,1,492.810043
2009-04-02,492.049931,492.049931,492.049931,492.049931,1,492.049931
2009-04-01,491.328332,491.328332,491.328332,491.328332,1,491.328332
2009-03-31,490.652181,490.652181,490.652181,490.652181,1,490.652181
2009-03-30,490.027973,490.027973,490.027973,490.027973,1,490.027973
2009-03-27,489.461705,489.461705,489.461705,489.461705,1,489.461705
2009-03-26,488.958818,488.958818,488.958818,488.958818,1,488.958818
2009-03-25,488.524143,488.524143,488.524143,488.524143,1,488.524143
2009-03-24,488.161857,488.161857,488.161857,488.161857,1,488.161857
2009-03-23,487.875440,487.875440,487.875440,487.875440,1,487.875440
2009-03-20,487.667644,487.667644,487.667644,487.667644,1,487.667644
2009-03-19,487.540465,487.540465,487.540465,487.540465,1,487.540465
2009-03-18,487.495126,487.495126,487.495126,487.495126,1,487.495126
2009-03-17,487.532062,487.532062,487.532062,487.532062,1,487.532062
2009-03-16,487.650918,487.650918,487.650918,487.650918,1,487.650918
2009-03-13,487.850551,487.850551,487.850551,487.850551,1,487.850551
2009-03-12,488.129046,488.129046,488.129046,488.129046,1,488.129046
2009-03-11,488.483724,488.483724,488.483724,488.483724,1,488.483724
2009-03-10,488.911179,488.911179,488.911179,488.911179,1,488.911179
2009-03-09,489.407305,489.407305,489.407305,489.407305,1,489.407305
2009-03-06,489.967334,489.967334,489.967334,489.967334,1,489.967334
2009-03-05,490.585886,490.585886,490.585886,490.585886,1,490.585886
2009-03-04,491.257017,491.257017,491.257017,491.257017,1,491.257017
2009-03-03,491.974282,491.974282,491.974282,491.974282,1,491.974282
2009-03-02,492.730787,492.730787,492.730787,492.730787,1,492.730787
2009-02-27,493.519265,493.519265,493.519265,493.519265,1,493.519265
2009-02-26,494.332140,494.332140,494.332140,494.332140,1,494.332140
2009-02-25,495.161603,495.161603,495.161603,495.161603,1,495.161603
2009-02-24,495.999684,495.999684,495.999684,495.999684,1,495.999684
2009-02-23,496.838332,496.838332,496.838332,496.838332,1,496.838332
2009-02-20,497.669489,497.669489,497.669489,497.669489,1,497.669489
2009-02-19,498.485170,498.485170,498.485170,498.485170,1,498.485170
2009-02-18,499.277538,499.277538,499.277538,499.277538,1,499.277538
2009-02-17,500.038980,500.038980,500.038980,500.038980,1,500.038980
2009-02-13,500.762180,500.762180,500.762180,500.762180,1,500.762180
2009-02-12,501.440191,501.440191,501.440191,501.440191,1,501.440191
2009-02-11,502.066498,502.066498,502.066498,502.066498,1,502.066498
2009-02-10,502.635084,502.635084,502.635084,502.635084,1,502.635084
2009-02-09,503.140487,503.140487,503.140487,503.140487,1,503.140487
2009-02-06,503.577850,503.577850,503.577850,503.577850,1,503.577850
2009-02-05,503.942971,503.942971,503.942971,503.942971,1,503.942971
2009-02-04,504.232344,504.232344,504.232344,504.232344,1,504.232344
2009-02-03,504.443186,504.443186,504.443186,504.443186,1,504.443186
2009-02-02,504.573473,504.573473,504.573473,504.573473,1,504.573473
2009-01-30,504.621954,504.621954,504.621954,504.621954,1,504.621954
2009-01-29,504.588161,504.588161,504.588161,504.588161,1,504.588161
2009-01-28,504.472421,504.472421,504.472421,504.472421,1,504.472421
2009-01-27,504.275844,504.275844,504.275844,504.275844,1,504.275844
2009-01-26,504.000320,504.000320,504.000320,504.000320,1,504.000320
2009-01-23,503.648495,503.648495,503.648495,503.648495,1,503.648495
2009-01-22,503.223750,503.223750,503.223750,503.223750,1,503.223750
2009-01-21,502.730166,502.730166,502.730166,502.730166,1,502.730166
2009-01-20,502.172484,502.172484,502.172484,502.172484,1,502.172484
2009-01-16,501.556064,501.556064,501.556064,501.556064,1,501.556064
2009-01-15,500.886826,500.886826,500.886826,500.886826,1,500.886826
2009-01-14,500.171201,500.171201,500.171201,500.171201,1,500.171201
2009-01-13,499.416064,499.416064,499.416064,499.416064,1,499.416064
2009-01-12,498.628671,498.628671,498.628671,498.628671,1,498.628671
2009-01-09,497.816586,497.816586,497.816586,497.816586,1,497.816586
2009-01-08,496.987611,496.987611,496.987611,496.987611,1,496.987611
2009-01-07,496.149712,496.149712,496.149712,496.149712,1,496.149712
2009-01-06,495.310937,495.310937,495.310937,495.310937,1,495.310937
2009-01-05,494.479346,494.479346,494.479346,494.479346,1,494.479346
2009-01-02,493.662929,493.662929,493.662929,493.662929,1,493.662929
2008-12-31,492.869528,492.869528,492.869528,492.869528,1,492.869528
2008-12-30,492.106768,492.106768,492.106768,492.106768,1,492.106768
2008-12-29,491.381975,491.381975,491.381975,491.381975,1,491.381975
2008-12-26,490.702115,490.702115,490.702115,490.702115,1,490.702115
2008-12-24,490.073717,490.073717,490.073717,490.073717,1,490.073717
2008-12-23,489.502821,489.502821,489.502821,489.502821,1,489.502821
2008-12-22,488.994910,488.994910,488.994910,488.994910,1,488.994910
2008-12-19,488.554865,488.554865,488.554865,488.554865,1,488.554865
2008-12-18,488.186913,488.186913,488.186913,488.186913,1,488.186913
2008-12-17,487.894590,487.894590,487.894590,487.894590,1,487.894590
2008-12-16,487.680703,487.680703,487.680703,487.680703,1,487.680703
2008-12-15,487.547309,487.547309,487.547309,487.547309,1,487.547309
2008-12-12,487.495688,487.495688,487.495688,487.495688,1,487.495688
2008-12-11,487.526337,487.526337,487.526337,487.526337,1,487.526337
2008-12-10,487.638961,487.638961,487.638961,487.638961,1,487.638961
2008-12-09,487.832478,487.832478,487.832478,487.832478,1,487.832478
2008-12-08,488.105028,488.105028,488.105028,488.105028,1,488.105028
2008-12-05,488.453994,488.453994,488.453994,488.453994,1,488.453994
2008-12-04,488.876023,488.876023,488.876023,488.876023,1,488.876023
2008-12-03,489.367059,489.367059,489.367059,489.367059,1,489.367059
2008-12-02,489.922385,489.922385,489.922385,489.922385,1,489.922385
2008-12-01,490.536666,490.536666,490.536666,490.536666,1,490.536666
2008-11-28,491.204000,491.204000,491.204000,491.204000,1,491.204000
2008-11-26,491.917976,491.917976,491.917976,491.917976,1,491.917976
2008-11-25,492.671733,492.671733,492.671733,492.671733,1,492.671733
2008-11-24,493.458031,493.458031,493.458031,493.458031,1,493.458031
2008-11-21,494.269315,494.269315,494.269315,494.269315,1,494.269315
2008-11-20,495.097789,495.097789,495.097789,495.097789,1,495.097789
2008-11-19,495.935495,495.935495,495.935495,495.935495,1,495.935495
2008-11-18,496.774385,496.774385,496.774385,496.774385,1,496.774385
2008-11-17,497.606398,497.606398,497.606398,497.606398,1,497.606398
2008-11-14,498.423541,498.423541,498.423541,498.423541,1,498.423541
2008-11-13,499.217962,499.217962,499.217962,499.217962,1,499.217962
2008-11-12,499.982031,499.982031,499.982031,499.982031,1,499.982031
2008-11-11,500.708405,500.708405,500.708405,500.708405,1,500.708405
2008-11-10,501.390106,501.390106,501.390106,501.390106,1,501.390106
2008-11-07,502.020585,502.020585,502.020585,502.020585,1,502.020585
2008-11-06,502.593784,502.593784,502.593784,502.593784,1,502.593784
2008-11-05,503.104196,503.104196,503.104196,503.104196,1,503.104196
2008-11-04,503.546917,503.546917,503.546917,503.546917,1,503.546917
2008-11-03,503.917694,503.917694,503.917694,503.917694,1,503.917694
2008-10-31,504.212964,504.212964,504.212964,504.212964,1,504.212964
2008-10-30,504.429891,504.429891,504.429891,504.429891,1,504.429891
2008-10-29,504.566390,504.566390,504.566390,504.566390,1,504.566390
2008-10-28,504.621151,504.621151,504.621151,504.621151,1,504.621151
2008-10-27,504.593646,504.593646,504.593646,504.593646,1,504.593646
2008-10-24,504.484141,504.484141,504.484141,504.484141,1,504.484141
2008-10-23,504.293687,504.293687,504.293687,504.293687,1,504.293687
2008-10-22,504.024113,504.024113,504.024113,504.024113,1,504.024113
2008-10-21,503.678011,503.678011,503.678011,503.678011,1,503.678011
2008-10-20,503.258705,503.258705,503.258705,503.258705,1,503.258705
2008-10-17,502.770224,502.770224,502.770224,502.770224,1,502.770224
2008-10-16,502.217261,502.217261,502.217261,502.217261,1,502.217261
2008-10-15,501.605128,501.605128,501.605128,501.605128,1,501.605128
2008-10-14,500.939707,500.939707,500.939707,500.939707,1,500.939707
2008-10-13,500.227391,500.227391,500.227391,500.227391,1,500.227391
2008-10-10,499.475023,499.475023,499.475023,499.475023,1,499.475023
2008-10-09,498.689832,498.689832,498.689832,498.689832,1,498.689832
2008-10-08,497.879362,497.879362,497.879362,497.879362,1,497.879362
2008-10-07,497.051398,497.051398,497.051398,497.051398,1,497.051398
2008-10-06,496.213898,496.213898,496.213898,496.213898,1,496.213898
2008-10-03,495.374905,495.374905,495.374905,495.374905,1,495.374905
2008-10-02,494.542482,494.542482,494.542482,494.542482,1,494.542482
2008-10-01,493.724625,493.724625,493.724625,493.724625,1,493.724625
2008-09-30,492.929193,492.929193,492.929193,492.929193,1,492.929193
2008-09-29,492.163827,492.163827,492.163827,492.163827,1,492.163827
2008-09-26,491.435881,491.435881,491.435881,491.435881,1,491.435881
2008-09-25,490.752349,490.752349,490.752349,490.752349,1,490.752349
2008-09-24,490.119798,490.119798,490.119798,490.119798,1,490.119798
2008-09-23,489.544305,489.544305,489.544305,489.544305,1,489.544305
2008-09-22,489.031399,489.031399,489.031399,489.031399,1,489.031399
2008-09-19,488.586008,488.586008,488.586008,488.586008,1,488.586008
2008-09-18,488.212411,488.212411,488.212411,488.212411,1,488.212411
2008-09-17,487.914198,487.914198,487.914198,487.914198,1,487.914198
2008-09-16,487.694234,487.694234,487.694234,487.694234,1,487.694234
2008-09-15,487.554631,487.554631,487.554631,487.554631,1,487.554631
2008-09-12,487.496732,487.496732,487.496732,487.496732,1,487.496732
2008-09-11,487.521092,487.521092,487.521092,487.521092,1,487.521092
2008-09-10,487.627478,487.627478,487.627478,487.627478,1,487.627478
2008-09-09,487.814866,487.814866,487.814866,487.814866,1,487.814866
2008-09-08,488.081458,488.081458,488.081458,488.081458,1,488.081458
2008-09-05,488.424692,488.424692,488.424692,488.424692,1,488.424692
2008-09-04,488.841269,488.841269,488.841269,488.841269,1,488.841269
2008-09-03,489.327189,489.327189,489.327189,489.327189,1,489.327189
2008-09-02,489.877781,489.877781,489.877781,489.877781,1,489.877781
2008-08-29,490.487757,490.487757,490.487757,490.487757,1,490.487757
2008-08-28,491.151256,491.151256,491.151256,491.151256,1,491.151256
2008-08-27,491.861903,491.861903,491.861903,491.861903,1,491.861903
2008-08-26,492.612870,492.612870,492.612870,492.612870,1,492.612870
2008-08-25,493.396944,493.396944,493.396944,493.396944,1,493.396944
2008-08-22,494.206590,494.206590,494.206590,494.206590,1,494.206590
2008-08-21,495.034029,495.034029,495.034029,495.034029,1,495.034029
2008-08-20,495.871313,495.871313,495.871313,495.871313,1,495.871313
2008-08-19,496.710397,496.710397,496.710397,496.710397,1,496.710397
2008-08-18,497.543219,497.543219,497.543219,497.543219,1,497.543219
2008-08-15,498.361778,498.361778,498.361778,498.361778,1,498.361778
2008-08-14,499.158210,499.158210,499.158210,499.158210,1,499.158210
2008-08-13,499.924862,499.924862,499.924862,499.924862,1,499.924862
2008-08-12,500.654369,500.654369,500.654369,500.654369,1,500.654369
2008-08-11,501.339722,501.339722,501.339722,501.339722,1,501.339722
2008-08-08,501.974337,501.974337,501.974337,501.974337,1,501.974337
2008-08-07,502.552116,502.552116,502.552116,502.552116,1,502.552116
2008-08-06,503.067509,503.067509,503.067509,503.067509,1,503.067509
2008-08-05,503.515563,503.515563,503.515563,503.515563,1,503.515563
2008-08-04,503.891975,503.891975,503.891975,503.891975,1,503.891975
2008-08-01,504.193127,504.193127,504.193127,504.193127,1,504.193127
2008-07-31,504.416126,504.416126,504.416126,504.416126,1,504.416126
2008-07-30,504.558829,504.558829,504.558829,504.558829,1,504.558829
2008-07-29,504.619867,504.619867,504.619867,504.619867,1,504.619867
2008-07-28,504.598652,504.598652,504.598652,504.598652,1,504.598652
2008-07-25,504.495387,504.495387,504.495387,504.495387,1,504.495387
2008-07-24,504.311066,504.311066,504.311066,504.311066,1,504.311066
2008-07-23,504.047460,504.047460,504.047460,504.047460,1,504.047460
2008-07-22,503.707099,503.707099,503.707099,503.707099,1,503.707099
2008-07-21,503.293256,503.293256,503.293256,503.293256,1,503.293256
2008-07-18,502.809905,502.809905,502.809905,502.809905,1,502.809905
2008-07-17,502.261691,502.261691,502.261691,502.261691,1,502.261691
2008-07-16,501.653881,501.653881,501.653881,501.653881,1,501.653881
2008-07-15,500.992314,500.992314,500.992314,500.992314,1,500.992314
2008-07-14,500.283346,500.283346,500.283346,500.283346,1,500.283346
2008-07-11,499.533790,499.533790,499.533790,499.533790,1,499.533790
2008-07-10,498.750845,498.750845,498.750845,498.750845,1,498.750845
2008-07-09,497.942035,497.942035,497.942035,497.942035,1,497.942035
2008-07-08,497.115130,497.115130,497.115130,497.115130,1,497.115130
2008-07-07,496.278075,496.278075,496.278075,496.278075,1,496.278075
2008-07-03,495.438911,495.438911,495.438911,495.438911,1,495.438911
2008-07-02,494.605702,494.605702,494.605702,494.605702,1,494.605702
2008-07-01,493.786452,493.786452,493.786452,493.786452,1,493.786452
2008-06-30,492.989033,492.989033,492.989033,492.989033,1,492.989033
2008-06-27,492.221105,492.221105,492.221105,492.221105,1,492.221105
2008-06-26,491.490047,491.490047,491.490047,491.490047,1,491.490047
2008-06-25,490.802882,490.802882,490.802882,490.802882,1,490.802882
2008-06-24,490.166213,490.166213,490.166213,490.166213,1,490.166213
2008-06-23,489.586155,489.586155,489.586155,489.586155,1,489.586155
2008-06-20,489.068283,489.068283,489.068283,489.068283,1,489.068283
2008-06-19,488.617572,488.617572,488.617572,488.617572,1,488.617572
2008-06-18,488.238351,488.238351,488.238351,488.238351,1,488.238351
2008-06-17,487.934265,487.934265,487.934265,487.934265,1,487.934265
2008-06-16,487.708234,487.708234,487.708234,487.708234,1,487.708234
2008-06-13,487.562431,487.562431,487.562431,487.562431,1,487.562431
2008-06-12,487.498256,487.498256,487.498256,487.498256,1,487.498256
2008-06-11,487.516326,487.516326,487.516326,487.516326,1,487.516326
2008-06-10,487.616468,487.616468,487.616468,487.616468,1,487.616468
2008-06-09,487.797718,487.797718,487.797718,487.797718,1,487.797718
2008-06-06,488.058336,488.058336,488.058336,488.058336,1,488.058336
2008-06-05,488.395818,488.395818,488.395818,488.395818,1,488.395818
2008-06-04,488.806922,488.806922,488.806922,488.806922,1,488.806922
2008-06-03,489.287697,489.287697,489.287697,489.287697,1,489.287697
2008-06-02,489.833525,489.833525,489.833525,489.833525,1,489.833525
2008-05-30,490.439161,490.439161,490.439161,490.439161,1,490.439161
2008-05-29,491.098787,491.098787,491.098787,491.098787,1,491.098787
2008-05-28,491.806065,491.806065,491.806065,491.806065,1,491.806065
2008-05-27,492.554201,492.554201,492.554201,492.554201,1,492.554201
2008-05-23,493.336006,493.336006,493.336006,493.336006,1,493.336006
2008-05-22,494.143969,494.143969,494.143969,494.143969,1,494.143969
2008-05-21,494.970327,494.970327,494.970327,494.970327,1,494.970327
2008-05-20,495.807142,495.807142,495.807142,495.807142,1,495.807142
2008-05-19,496.646373,496.646373,496.646373,496.646373,1,496.646373
2008-05-16,497.479958,497.479958,497.479958,497.479958,1,497.479958
2008-05-15,498.299887,498.299887,498.299887,498.299887,1,498.299887
2008-05-14,499.098283,499.098283,499.098283,499.098283,1,499.098283
2008-05-13,499.867476,499.867476,499.867476,499.867476,1,499.867476
2008-05-12,500.600075,500.600075,500.600075,500.600075,1,500.600075
2008-05-09,501.289041,501.289041,501.289041,501.289041,1,501.289041
2008-05-08,501.927757,501.927757,501.927757,501.927757,1,501.927757
2008-05-07,502.510084,502.510084,502.510084,502.510084,1,502.510084
2008-05-06,503.030428,503.030428,503.030428,503.030428,1,503.030428
2008-05-05,503.483791,503.483791,503.483791,503.483791,1,503.483791
2008-05-02,503.865815,503.865815,503.865815,503.865815,1,503.865815
2008-05-01,504.172832,504.172832,504.172832,504.172832,1,504.172832
2008-04-30,504.401891,504.401891,504.401891,504.401891,1,504.401891
2008-04-29,504.550791,504.550791,504.550791,504.550791,1,504.550791
2008-04-28,504.618102,504.618102,504.618102,504.618102,1,504.618102
2008-04-25,504.603177,504.603177,504.603177,504.603177,1,504.603177
2008-04-24,504.506160,504.506160,504.506160,504.506160,1,504.506160
2008-04-23,504.327983,504.327983,504.327983,504.327983,1,504.327983
2008-04-22,504.070357,504.070357,504.070357,504.070357,1,504.070357
2008-04-21,503.735758,503.735758,503.735758,503.735758,1,503.735758
2008-04-18,503.327400,503.327400,503.327400,503.327400,1,503.327400
2008-04-17,502.849207,502.849207,502.849207,502.849207,1,502.849207
2008-04-16,502.305773,502.305773,502.305773,502.305773,1,502.305773
2008-04-15,501.702320,501.702320,501.702320,501.702320,1,501.702320
2008-04-14,501.044644,501.044644,501.044644,501.044644,1,501.044644
2008-04-11,500.339065,500.339065,500.339065,500.339065,1,500.339065
2008-04-10,499.592361,499.592361,499.592361,499.592361,1,499.592361
2008-04-09,498.811707,498.811707,498.811707,498.811707,1,498.811707
2008-04-08,498.004602,498.004602,498.004602,498.004602,1,498.004602
2008-04-07,497.178802,497.178802,497.178802,497.178802,1,497.178802
2008-04-04,496.342239,496.342239,496.342239,496.342239,1,496.342239
2008-04-03,495.502952,495.502952,495.502952,495.502952,1,495.502952
2008-04-02,494.669004,494.669004,494.669004,494.669004,1,494.669004
2008-04-01,493.848407,493.848407,493.848407,493.848407,1,493.848407
2008-03-31,493.049046,493.049046,493.049046,493.049046,1,493.049046
2008-03-28,492.278599,492.278599,492.278599,492.278599,1,492.278599
2008-03-27,491.544469,491.544469,491.544469,491.544469,1,491.544469
2008-03-26,490.853710,490.853710,490.853710,490.853710,1,490.853710
2008-03-25,490.212958,490.212958,490.212958,490.212958,1,490.212958
2008-03-24,489.628369,489.628369,489.628369,489.628369,1,489.628369
2008-03-20,489.105560,489.105560,489.105560,489.105560,1,489.105560
2008-03-19,488.649553,488.649553,488.649553,488.649553,1,488.649553
2008-03-18,488.264730,488.264730,488.264730,488.264730,1,488.264730
2008-03-17,487.954787,487.954787,487.954787,487.954787,1,487.954787
2008-03-14,487.722704,487.722704,487.722704,487.722704,1,487.722704
2008-03-13,487.570708,487.570708,487.570708,487.570708,1,487.570708
2008-03-12,487.500262,487.500262,487.500262,487.500262,1,487.500262
2008-03-11,487.512041,487.512041,487.512041,487.512041,1,487.512041
2008-03-10,487.605932,487.605932,487.605932,487.605932,1,487.605932
2008-03-07,487.781034,487.781034,487.781034,487.781034,1,487.781034
2008-03-06,488.035664,488.035664,488.035664,488.035664,1,488.035664
2008-03-05,488.367375,488.367375,488.367375,488.367375,1,488.367375
2008-03-04,488.772982,488.772982,488.772982,488.772982,1,488.772982
2008-03-03,489.248586,489.248586,489.248586,489.248586,1,489.248586
2008-02-29,489.789618,489.789618,489.789618,489.789618,1,489.789618
2008-02-28,490.390881,490.390881,490.390881,490.390881,1,490.390881
2008-02-27,491.046597,491.046597,491.046597,491.046597,1,491.046597
2008-02-26,491.750467,491.750467,491.750467,491.750467,1,491.750467
2008-02-25,492.495729,492.495729,492.495729,492.495729,1,492.495729
2008-02-22,493.275221,493.275221,493.275221,493.275221,1,493.275221
2008-02-21,494.081456,494.081456,494.081456,494.081456,1,494.081456
2008-02-20,494.906687,494.906687,494.906687,494.906687,1,494.906687
2008-02-19,495.742985,495.742985,495.742985,495.742985,1,495.742985
2008-02-15,496.582316,496.582316,496.582316,496.582316,1,496.582316
2008-02-14,497.416616,497.416616,497.416616,497.416616,1,497.416616
2008-02-13,498.237869,498.237869,498.237869,498.237869,1,498.237869
2008-02-12,499.038185,499.038185,499.038185,499.038185,1,499.038185
2008-02-11,499.809875,499.809875,499.809875,499.809875,1,499.809875
2008-02-08,500.545525,500.545525,500.545525,500.545525,1,500.545525
2008-02-07,501.238067,501.238067,501.238067,501.238067,1,501.238067
2008-02-06,501.880846,501.880846,501.880846,501.880846,1,501.880846
2008-02-05,502.467689,502.467689,502.467689,502.467689,1,502.467689
2008-02-04,502.992956,502.992956,502.992956,502.992956,1,502.992956
2008-02-01,503.451601,503.451601,503.451601,503.451601,1,503.451601
2008-01-31,503.839217,503.839217,503.839217,503.839217,1,503.839217
2008-01-30,504.152081,504.152081,504.152081,504.152081,1,504.152081
2008-01-29,504.387187,504.387187,504.387187,504.387187,1,504.387187
2008-01-28,504.542275,504.542275,504.542275,504.542275,1,504.542275
2008-01-25,504.615856,504.615856,504.615856,504.615856,1,504.615856
2008-01-24,504.607223,504.607223,504.607223,504.607223,1,504.607223
2008-01-23,504.516458,504.516458,504.516458,504.516458,1,504.516458
2008-01-22,504.344434,504.344434,504.344434,504.344434,1,504.344434
2008-01-18,504.092804,504.092804,504.092804,504.092804,1,504.092804
2008-01-17,503.763985,503.763985,503.763985,503.763985,1,503.763985
2008-01-16,503.361136,503.361136,503.361136,503.361136,1,503.361136
2008-01-15,502.888128,502.888128,502.888128,502.888128,1,502.888128
2008-01-14,502.349504,502.349504,502.349504,502.349504,1,502.349504
2008-01-11,501.750441,501.750441,501.750441,501.750441,1,501.750441
2008-01-10,501.096694,501.096694,501.096694,501.096694,1,501.096694
2008-01-09,500.394542,500.394542,500.394542,500.394542,1,500.394542
2008-01-08,499.650734,499.650734,499.650734,499.650734,1,499.650734
2008-01-07,498.872414,498.872414,498.872414,498.872414,1,498.872414
2008-01-04,498.067060,498.067060,498.067060,498.067060,1,498.067060
2008-01-03,497.242411,497.242411,497.242411,497.242411,1,497.242411
2008-01-02,496.406388,496.406388,496.406388,496.406388,1,496.406388
2007-12-31,495.567025,495.567025,495.567025,495.567025,1,495.567025
2007-12-28,494.732384,494.732384,494.732384,494.732384,1,494.732384
2007-12-27,493.910487,493.910487,493.910487,493.910487,1,493.910487
2007-12-26,493.109227,493.109227,493.109227,493.109227,1,493.109227
2007-12-24,492.336305,492.336305,492.336305,492.336305,1,492.336305
2007-12-21,491.599145,491.599145,491.599145,491.599145,1,491.599145
2007-12-20,490.904831,490.904831,490.904831,490.904831,1,490.904831
2007-12-19,490.260032,490.260032,490.260032,490.260032,1,490.260032
2007-12-18,489.670945,489.670945,489.670945,489.670945,1,489.670945
2007-12-17,489.143227,489.143227,489.143227,489.143227,1,489.143227
2007-12-14,488.681951,488.681951,488.681951,488.681951,1,488.681951
2007-12-13,488.291547,488.291547,488.291547,488.291547,1,488.291547
2007-12-12,487.975766,487.975766,487.975766,487.975766,1,487.975766
2007-12-11,487.737642,487.737642,487.737642,487.737642,1,487.737642
2007-12-10,487.579463,487.579463,487.579463,487.579463,1,487.579463
2007-12-07,487.502748,487.502748,487.502748,487.502748,1,487.502748
2007-12-06,487.508236,487.508236,487.508236,487.508236,1,487.508236
2007-12-05,487.595872,487.595872,487.595872,487.595872,1,487.595872
2007-12-04,487.764815,487.764815,487.764815,487.764815,1,487.764815
2007-12-03,488.013442,488.013442,488.013442,488.013442,1,488.013442
2007-11-30,488.339365,488.339365,488.339365,488.339365,1,488.339365
2007-11-29,488.739451,488.739451,488.739451,488.739451,1,488.739451
2007-11-28,489.209857,489.209857,489.209857,489.209857,1,489.209857
2007-11-27,489.746063,489.746063,489.746063,489.746063,1,489.746063
2007-11-26,490.342919,490.342919,490.342919,490.342919,1,490.342919
2007-11-23,490.994688,490.994688,490.994688,490.994688,1,490.994688
2007-11-21,491.695111,491.695111,491.695111,491.695111,1,491.695111
2007-11-20,492.437456,492.437456,492.437456,492.437456,1,492.437456
2007-11-19,493.214593,493.214593,493.214593,493.214593,1,493.214593
2007-11-16,494.019054,494.019054,494.019054,494.019054,1,494.019054
2007-11-15,494.843110,494.843110,494.843110,494.843110,1,494.843110
2007-11-14,495.678845,495.678845,495.678845,495.678845,1,495.678845
2007-11-13,496.518229,496.518229,496.518229,496.518229,1,496.518229
2007-11-12,497.353198,497.353198,497.353198,497.353198,1,497.353198
2007-11-09,498.175729,498.175729,498.175729,498.175729,1,498.175729
2007-11-08,498.977920,498.977920,498.977920,498.977920,1,498.977920
2007-11-07,499.752064,499.752064,499.752064,499.752064,1,499.752064
2007-11-06,500.490723,500.490723,500.490723,500.490723,1,500.490723
2007-11-05,501.186801,501.186801,501.186801,501.186801,1,501.186801
2007-11-02,501.833609,501.833609,501.833609,501.833609,1,501.833609
2007-11-01,502.424934,502.424934,502.424934,502.424934,1,502.424934
2007-10-31,502.955094,502.955094,502.955094,502.955094,1,502.955094
2007-10-30,503.418996,503.418996,503.418996,503.418996,1,503.418996
2007-10-29,503.812182,503.812182,503.812182,503.812182,1,503.812182
2007-10-26,504.130876,504.130876,504.130876,504.130876,1,504.130876
2007-10-25,504.372015,504.372015,504.372015,504.372015,1,504.372015
2007-10-24,504.533282,504.533282,504.533282,504.533282,1,504.533282
2007-10-23,504.613129,504.613129,504.613129,504.613129,1,504.613129
2007-10-22,504.610788,504.610788,504.610788,504.610788,1,504.610788
2007-10-19,504.526281,504.526281,504.526281,504.526281,1,504.526281
2007-10-18,504.360420,504.360420,504.360420,504.360420,1,504.360420
2007-10-17,504.114800,504.114800,504.114800,504.114800,1,504.114800
2007-10-16,503.791779,503.791779,503.791779,503.791779,1,503.791779
2007-10-15,503.394461,503.394461,503.394461,503.394461,1,503.394461
2007-10-12,502.926664,502.926664,502.926664,502.926664,1,502.926664
2007-10-11,502.392882,502.392882,502.392882,502.392882,1,502.392882
2007-10-10,501.798243,501.798243,501.798243,501.798243,1,501.798243
2007-10-09,501.148460,501.148460,501.148460,501.148460,1,501.148460
2007-10-08,500.449776,500.449776,500.449776,500.449776,1,500.449776
2007-10-05,499.708905,499.708905,499.708905,499.708905,1,499.708905
2007-10-04,498.932963,498.932963,498.932963,498.932963,1,498.932963
2007-10-03,498.129405,498.129405,498.129405,498.129405,1,498.129405
2007-10-02,497.305953,497.305953,497.305953,497.305953,1,497.305953
2007-10-01,496.470517,496.470517,496.470517,496.470517,1,496.470517
2007-09-28,495.631125,495.631125,495.631125,495.631125,1,495.631125
2007-09-27,494.795839,494.795839,494.795839,494.795839,1,494.795839
2007-09-26,493.972686,493.972686,493.972686,493.972686,1,493.972686
2007-09-25,493.169575,493.169575,493.169575,493.169575,1,493.169575
2007-09-24,492.394220,492.394220,492.394220,492.394220,1,492.394220
2007-09-21,491.654072,491.654072,491.654072,491.654072,1,491.654072
2007-09-20,490.956241,490.956241,490.956241,490.956241,1,490.956241
2007-09-19,490.307432,490.307432,490.307432,490.307432,1,490.307432
2007-09-18,489.713879,489.713879,489.713879,489.713879,1,489.713879
2007-09-17,489.181284,489.181284,489.181284,489.181284,1,489.181284
2007-09-14,488.714763,488.714763,488.714763,488.714763,1,488.714763
2007-09-13,488.318800,488.318800,488.318800,488.318800,1,488.318800
2007-09-12,487.997198,487.997198,487.997198,487.997198,1,487.997198
2007-09-11,487.753047,487.753047,487.753047,487.753047,1,487.753047
2007-09-10,487.588693,487.588693,487.588693,487.588693,1,487.588693
2007-09-07,487.505715,487.505715,487.505715,487.505715,1,487.505715
2007-09-06,487.504911,487.504911,487.504911,487.504911,1,487.504911
2007-09-05,487.586287,487.586287,487.586287,487.586287,1,487.586287
2007-09-04,487.749062,487.749062,487.749062,487.749062,1,487.749062
2007-08-31,487.991673,487.991673,487.991673,487.991673,1,487.991673
2007-08-30,488.311788,488.311788,488.311788,488.311788,1,488.311788
2007-08-29,488.706331,488.706331,488.706331,488.706331,1,488.706331
2007-08-28,489.171513,489.171513,489.171513,489.171513,1,489.171513
2007-08-27,489.702864,489.702864,489.702864,489.702864,1,489.702864
2007-08-24,490.295278,490.295278,490.295278,490.295278,1,490.295278
2007-08-23,490.943065,490.943065,490.943065,490.943065,1,490.943065
2007-08-22,491.640000,491.640000,491.640000,491.640000,1,491.640000
2007-08-21,492.379387,492.379387,492.379387,492.379387,1,492.379387
2007-08-20,493.154124,493.154124,493.154124,493.154124,1,493.154124
2007-08-17,493.956766,493.956766,493.956766,493.956766,1,493.956766
2007-08-16,494.779602,494.779602,494.779602,494.779602,1,494.779602
2007-08-15,495.614727,495.614727,495.614727,495.614727,1,495.614727
2007-08-14,496.454117,496.454117,496.454117,496.454117,1,496.454117
2007-08-13,497.289707,497.289707,497.289707,497.289707,1,497.289707
2007-08-10,498.113470,498.113470,498.113470,498.113470,1,498.113470
2007-08-09,498.917491,498.917491,498.917491,498.917491,1,498.917491
2007-08-08,499.694046,499.694046,499.694046,499.694046,1,499.694046
2007-08-07,500.435672,500.435672,500.435672,500.435672,1,500.435672
2007-08-06,501.135247,501.135247,501.135247,501.135247,1,501.135247
2007-08-03,501.786047,501.786047,501.786047,501.786047,1,501.786047
2007-08-02,502.381821,502.381821,502.381821,502.381821,1,502.381821
2007-08-01,502.916844,502.916844,502.916844,502.916844,1,502.916844
2007-07-31,503.385977,503.385977,503.385977,503.385977,1,503.385977
2007-07-30,503.784711,503.784711,503.784711,503.784711,1,503.784711
2007-07-27,504.109217,504.109217,504.109217,504.109217,1,504.109217
2007-07-26,504.356376,504.356376,504.356376,504.356376,1,504.356376
2007-07-25,504.523814,504.523814,504.523814,504.523814,1,504.523814
2007-07-24,504.609922,504.609922,504.609922,504.609922,1,504.609922
2007-07-23,504.613872,504.613872,504.613872,504.613872,1,504.613872
2007-07-20,504.535628,504.535628,504.535628,504.535628,1,504.535628
2007-07-19,504.375940,504.375940,504.375940,504.375940,1,504.375940
2007-07-18,504.136343,504.136343,504.136343,504.136343,1,504.136343
2007-07-17,503.819138,503.819138,503.819138,503.819138,1,503.819138
2007-07-16,503.427375,503.427375,503.427375,503.427375,1,503.427375
2007-07-13,502.964815,502.964815,502.964815,502.964815,1,502.964815
2007-07-12,502.435903,502.435903,502.435903,502.435903,1,502.435903
2007-07-11,501.845722,501.845722,501.845722,501.845722,1,501.845722
2007-07-10,501.199941,501.199941,501.199941,501.199941,1,501.199941
2007-07-09,500.504764,500.504764,500.504764,500.504764,1,500.504764
2007-07-06,499.766870,499.766870,499.766870,499.766870,1,499.766870
2007-07-05,498.993350,498.993350,498.993350,498.993350,1,498.993350
2007-07-03,498.191634,498.191634,498.191634,498.191634,1,498.191634
2007-07-02,497.369426,497.369426,497.369426,497.369426,1,497.369426
2007-06-29,496.534624,496.534624,496.534624,496.534624,1,496.534624
2007-06-28,495.695249,495.695249,495.695249,495.695249,1,495.695249
2007-06-27,494.859365,494.859365,494.859365,494.859365,1,494.859365
2007-06-26,494.035004,494.035004,494.035004,494.035004,1,494.035004
2007-06-25,493.230085,493.230085,493.230085,493.230085,1,493.230085
2007-06-22,492.452341,492.452341,492.452341,492.452341,1,492.452341
2007-06-21,491.709246,491.709246,491.709246,491.709246,1,491.709246
2007-06-20,491.007938,491.007938,491.007938,491.007938,1,491.007938
2007-06-19,490.355156,490.355156,490.355156,490.355156,1,490.355156
2007-06-18,489.757170,489.757170,489.757170,489.757170,1,489.757170
2007-06-15,489.219726,489.219726,489.219726,489.219726,1,489.219726
2007-06-14,488.747988,488.747988,488.747988,488.747988,1,488.747988
2007-06-13,488.346488,488.346488,488.346488,488.346488,1,488.346488
2007-06-12,488.019083,488.019083,488.019083,488.019083,1,488.019083
2007-06-11,487.768919,487.768919,487.768919,487.768919,1,487.768919
2007-06-08,487.598400,487.598400,487.598400,487.598400,1,487.598400
2007-06-07,487.509163,487.509163,487.509163,487.509163,1,487.509163
2007-06-06,487.502067,487.502067,487.502067,487.502067,1,487.502067
2007-06-05,487.577178,487.577178,487.577178,487.577178,1,487.577178
2007-06-04,487.733776,487.733776,487.733776,487.733776,1,487.733776
2007-06-01,487.970357,487.970357,487.970357,487.970357,1,487.970357
2007-05-31,488.284646,488.284646,488.284646,488.284646,1,488.284646
2007-05-30,488.673625,488.673625,488.673625,488.673625,1,488.673625
2007-05-29,489.133556,489.133556,489.133556,489.133556,1,489.133556
2007-05-25,489.660021,489.660021,489.660021,489.660021,1,489.660021
2007-05-24,490.247961,490.247961,490.247961,490.247961,1,490.247961
2007-05-23,490.891728,490.891728,490.891728,490.891728,1,490.891728
2007-05-22,491.585137,491.585137,491.585137,491.585137,1,491.585137
2007-05-21,492.321525,492.321525,492.321525,492.321525,1,492.321525
2007-05-18,493.093819,493.093819,493.093819,493.093819,1,493.093819
2007-05-17,493.894597,493.894597,493.894597,493.894597,1,493.894597
2007-05-16,494.716166,494.716166,494.716166,494.716166,1,494.716166
2007-05-15,495.550634,495.550634,495.550634,495.550634,1,495.550634
2007-05-14,496.389982,496.389982,496.389982,496.389982,1,496.389982
2007-05-11,497.226148,497.226148,497.226148,497.226148,1,497.226148
2007-05-10,498.051096,498.051096,498.051096,498.051096,1,498.051096
2007-05-09,498.856901,498.856901,498.856901,498.856901,1,498.856901
2007-05-08,499.635823,499.635823,499.635823,499.635823,1,499.635823
2007-05-07,500.380376,500.380376,500.380376,500.380376,1,500.380376
2007-05-04,501.083408,501.083408,501.083408,501.083408,1,501.083408
2007-05-03,501.738163,501.738163,501.738163,501.738163,1,501.738163
2007-05-02,502.338353,502.338353,502.338353,502.338353,1,502.338353
2007-05-01,502.878209,502.878209,502.878209,502.878209,1,502.878209
2007-04-30,503.352546,503.352546,503.352546,503.352546,1,503.352546
2007-04-27,503.756806,503.756806,503.756806,503.756806,1,503.756806
2007-04-26,504.087106,504.087106,504.087106,504.087106,1,504.087106
2007-04-25,504.340271,504.340271,504.340271,504.340271,1,504.340271
2007-04-24,504.513869,504.513869,504.513869,504.513869,1,504.513869
2007-04-23,504.606234,504.606234,504.606234,504.606234,1,504.606234
2007-04-20,504.616476,504.616476,504.616476,504.616476,1,504.616476
2007-04-19,504.544498,504.544498,504.544498,504.544498,1,504.544498
2007-04-18,504.390992,504.390992,504.390992,504.390992,1,504.390992
2007-04-17,504.157432,504.157432,504.157432,504.157432,1,504.157432
2007-04-16,503.846062,503.846062,503.846062,503.846062,1,503.846062
2007-04-13,503.459874,503.459874,503.459874,503.459874,1,503.459874
2007-04-12,503.002577,503.002577,503.002577,503.002577,1,503.002577
2007-04-11,502.478567,502.478567,502.478567,502.478567,1,502.478567
2007-04-10,501.892876,501.892876,501.892876,501.892876,1,501.892876
2007-04-09,501.251132,501.251132,501.251132,501.251132,1,501.251132
2007-04-05,500.559501,500.559501,500.559501,500.559501,1,500.559501
2007-04-04,499.824628,499.824628,499.824628,499.824628,1,499.824628
2007-04-03,499.053573,499.053573,499.053573,499.053573,1,499.053573
2007-04-02,498.253743,498.253743,498.253743,498.253743,1,498.253743
2007-03-30,497.432824,497.432824,497.432824,497.432824,1,497.432824
2007-03-29,496.598703,496.598703,496.598703,496.598703,1,496.598703
2007-03-28,495.759393,495.759393,495.759393,495.759393,1,495.759393
2007-03-27,494.922958,494.922958,494.922958,494.922958,1,494.922958
2007-03-26,494.097434,494.097434,494.097434,494.097434,1,494.097434
2007-03-23,493.290753,493.290753,493.290753,493.290753,1,493.290753
2007-03-22,492.510665,492.510665,492.510665,492.510665,1,492.510665
2007-03-21,491.764665,491.764665,491.764665,491.764665,1,491.764665
2007-03-20,491.059919,491.059919,491.059919,491.059919,1,491.059919
2007-03-19,490.403199,490.403199,490.403199,490.403199,1,490.403199
2007-03-16,489.800815,489.800815,489.800815,489.800815,1,489.800815
2007-03-15,489.258553,489.258553,489.258553,489.258553,1,489.258553
2007-03-14,488.781624,488.781624,488.781624,488.781624,1,488.781624
2007-03-13,488.374609,488.374609,488.374609,488.374609,1,488.374609
2007-03-12,488.041420,488.041420,488.041420,488.041420,1,488.041420
2007-03-09,487.785257,487.785257,487.785257,487.785257,1,487.785257
2007-03-08,487.608582,487.608582,487.608582,487.608582,1,487.608582
2007-03-07,487.513091,487.513091,487.513091,487.513091,1,487.513091
2007-03-06,487.499703,487.499703,487.499703,487.499703,1,487.499703
2007-03-05,487.568546,487.568546,487.568546,487.568546,1,487.568546
2007-03-02,487.718958,487.718958,487.718958,487.718958,1,487.718958
2007-03-01,487.949495,487.949495,487.949495,487.949495,1,487.949495
2007-02-28,488.257941,488.257941,488.257941,488.257941,1,488.257941
2007-02-27,488.641333,488.641333,488.641333,488.641333,1,488.641333
2007-02-26,489.095988,489.095988,489.095988,489.095988,1,489.095988
2007-02-23,489.617538,489.617538,489.617538,489.617538,1,489.617538
2007-02-22,490.200971,490.200971,490.200971,490.200971,1,490.200971
2007-02-21,490.840682,490.840682,490.840682,490.840682,1,490.840682
2007-02-20,491.530525,491.530525,491.530525,491.530525,1,491.530525
2007-02-16,492.263873,492.263873,492.263873,492.263873,1,492.263873
2007-02-15,493.033680,493.033680,493.033680,493.033680,1,493.033680
2007-02-14,493.832549,493.832549,493.832549,493.832549,1,493.832549
2007-02-13,494.652806,494.652806,494.652806,494.652806,1,494.652806
2007-02-12,495.486569,495.486569,495.486569,495.486569,1,495.486569
2007-02-09,496.325829,496.325829,496.325829,496.325829,1,496.325829
2007-02-08,497.162522,497.162522,497.162522,497.162522,1,497.162522
2007-02-07,497.988609,497.988609,497.988609,497.988609,1,497.988609
2007-02-06,498.796155,498.796155,498.796155,498.796155,1,498.796155
2007-02-05,499.577399,499.577399,499.577399,499.577399,1,499.577399
2007-02-02,500.324836,500.324836,500.324836,500.324836,1,500.324836
2007-02-01,501.031286,501.031286,501.031286,501.031286,1,501.031286
2007-01-31,501.689961,501.689961,501.689961,501.689961,1,501.689961
2007-01-30,502.294532,502.294532,502.294532,502.294532,1,502.294532
2007-01-29,502.839191,502.839191,502.839191,502.839191,1,502.839191
2007-01-26,503.318706,503.318706,503.318706,503.318706,1,503.318706
2007-01-25,503.728469,503.728469,503.728469,503.728469,1,503.728469
2007-01-24,504.064543,504.064543,504.064543,504.064543,1,504.064543
2007-01-23,504.323700,504.323700,504.323700,504.323700,1,504.323700
2007-01-22,504.503450,504.503450,504.503450,504.503450,1,504.503450
2007-01-19,504.602065,504.602065,504.602065,504.602065,1,504.602065
2007-01-18,504.618599,504.618599,504.618599,504.618599,1,504.618599
2007-01-17,504.552892,504.552892,504.552892,504.552892,1,504.552892
2007-01-16,504.405576,504.405576,504.405576,504.405576,1,504.405576
2007-01-12,504.178066,504.178066,504.178066,504.178066,1,504.178066
2007-01-11,503.872548,503.872548,503.872548,503.872548,1,503.872548
2007-01-10,503.491957,503.491957,503.491957,503.491957,1,503.491957
2007-01-09,503.039950,503.039950,503.039950,503.039950,1,503.039950
2007-01-08,502.520869,502.520869,502.520869,502.520869,1,502.520869
2007-01-05,501.939702,501.939702,501.939702,501.939702,1,501.939702
2007-01-04,501.302032,501.302032,501.302032,501.302032,1,501.302032
2007-01-03,500.613986,500.613986,500.613986,500.613986,1,500.613986
2006-12-29,499.882174,499.882174,499.882174,499.882174,1,499.882174
2006-12-28,499.113627,499.113627,499.113627,499.113627,1,499.113627
2006-12-27,498.315729,498.315729,498.315729,498.315729,1,498.315729
2006-12-26,497.496146,497.496146,497.496146,497.496146,1,497.496146
2006-12-22,496.662752,496.662752,496.662752,496.662752,1,496.662752
2006-12-21,495.823554,495.823554,495.823554,495.823554,1,495.823554
2006-12-20,494.986615,494.986615,494.986615,494.986615,1,494.986615
2006-12-19,494.159975,494.159975,494.159975,494.159975,1,494.159975
2006-12-18,493.351578,493.351578,493.351578,493.351578,1,493.351578
2006-12-15,492.569188,492.569188,492.569188,492.569188,1,492.569188
2006-12-14,491.820324,491.820324,491.820324,491.820324,1,491.820324
2006-12-13,491.112181,491.112181,491.112181,491.112181,1,491.112181
2006-12-12,490.451560,490.451560,490.451560,490.451560,1,490.451560
2006-12-11,489.844811,489.844811,489.844811,489.844811,1,489.844811
2006-12-08,489.297762,489.297762,489.297762,489.297762,1,489.297762
2006-12-07,488.815668,488.815668,488.815668,488.815668,1,488.815668
2006-12-06,488.403162,488.403162,488.403162,488.403162,1,488.403162
2006-12-05,488.064208,488.064208,488.064208,488.064208,1,488.064208
2006-12-04,487.802060,487.802060,487.802060,487.802060,1,487.802060
2006-12-01,487.619239,487.619239,487.619239,487.619239,1,487.619239
2006-11-30,487.517500,487.517500,487.517500,487.517500,1,487.517500
2006-11-29,487.497821,487.497821,487.497821,487.497821,1,487.497821
2006-11-28,487.560391,487.560391,487.560391,487.560391,1,487.560391
2006-11-27,487.704609,487.704609,487.704609,487.704609,1,487.704609
2006-11-24,487.929089,487.929089,487.929089,487.929089,1,487.929089
2006-11-22,488.231674,488.231674,488.231674,488.231674,1,488.231674
2006-11-21,488.609459,488.609459,488.609459,488.609459,1,488.609459
2006-11-20,489.058812,489.058812,489.058812,489.058812,1,489.058812
2006-11-17,489.575416,489.575416,489.575416,489.575416,1,489.575416
2006-11-16,490.154309,490.154309,490.154309,490.154309,1,490.154309
2006-11-15,490.789929,490.789929,490.789929,490.789929,1,490.789929
2006-11-14,491.476168,491.476168,491.476168,491.476168,1,491.476168
2006-11-13,492.206434,492.206434,492.206434,492.206434,1,492.206434
2006-11-10,492.973711,492.973711,492.973711,492.973711,1,492.973711
2006-11-09,493.770626,493.770626,493.770626,493.770626,1,493.770626
2006-11-08,494.589524,494.589524,494.589524,494.589524,1,494.589524
2006-11-07,495.422537,495.422537,495.422537,495.422537,1,495.422537
2006-11-06,496.261661,496.261661,496.261661,496.261661,1,496.261661
2006-11-03,497.098835,497.098835,497.098835,497.098835,1,497.098835
2006-11-02,497.926015,497.926015,497.926015,497.926015,1,497.926015
2006-11-01,498.735254,498.735254,498.735254,498.735254,1,498.735254
2006-10-31,499.518777,499.518777,499.518777,499.518777,1,499.518777
2006-10-30,500.269057,500.269057,500.269057,500.269057,1,500.269057
2006-10-27,500.978885,500.978885,500.978885,500.978885,1,500.978885
2006-10-26,501.641441,501.641441,501.641441,501.641441,1,501.641441
2006-10-25,502.250360,502.250360,502.250360,502.250360,1,502.250360
2006-10-24,502.799792,502.799792,502.799792,502.799792,1,502.799792
2006-10-23,503.284458,503.284458,503.284458,503.284458,1,503.284458
2006-10-20,503.699700,503.699700,503.699700,503.699700,1,503.699700
2006-10-19,504.041531,504.041531,504.041531,504.041531,1,504.041531
2006-10-18,504.306665,504.306665,504.306665,504.306665,1,504.306665
2006-10-17,504.492556,504.492556,504.492556,504.492556,1,504.492556
2006-10-16,504.597417,504.597417,504.597417,504.597417,1,504.597417
2006-10-13,504.620241,504.620241,504.620241,504.620241,1,504.620241
2006-10-12,504.560809,504.560809,504.560809,504.560809,1,504.560809
2006-10-11,504.419691,504.419691,504.419691,504.419691,1,504.419691
2006-10-10,504.198244,504.198244,504.198244,504.198244,1,504.198244
2006-10-09,503.898595,503.898595,503.898595,503.898595,1,503.898595
2006-10-06,503.523623,503.523623,503.523623,503.523623,1,503.523623
2006-10-05,503.076930,503.076930,503.076930,503.076930,1,503.076930
2006-10-04,502.562809,502.562809,502.562809,502.562809,1,502.562809
2006-10-03,501.986198,501.986198,501.986198,501.986198,1,501.986198
2006-10-02,501.352637,501.352637,501.352637,501.352637,1,501.352637
2006-09-29,500.668215,500.668215,500.668215,500.668215,1,500.668215
2006-09-28,499.939505,499.939505,499.939505,499.939505,1,499.939505
2006-09-27,499.173510,499.173510,499.173510,499.173510,1,499.173510
2006-09-26,498.377588,498.377588,498.377588,498.377588,1,498.377588
2006-09-25,497.559387,497.559387,497.559387,497.559387,1,497.559387
2006-09-22,496.726767,496.726767,496.726767,496.726767,1,496.726767
2006-09-21,495.887729,495.887729,495.887729,495.887729,1,495.887729
2006-09-20,495.050332,495.050332,495.050332,495.050332,1,495.050332
2006-09-19,494.222623,494.222623,494.222623,494.222623,1,494.222623
2006-09-18,493.412554,493.412554,493.412554,493.412554,1,493.412554
2006-09-15,492.627908,492.627908,492.627908,492.627908,1,492.627908
2006-09-14,491.876222,491.876222,491.876222,491.876222,1,491.876222
2006-09-13,491.164720,491.164720,491.164720,491.164720,1,491.164720
2006-09-12,490.500237,490.500237,490.500237,490.500237,1,490.500237
2006-09-11,489.889157,489.889157,489.889157,489.889157,1,489.889157
2006-09-08,489.337350,489.337350,489.337350,489.337350,1,489.337350
2006-09-07,488.850120,488.850120,488.850120,488.850120,1,488.850120
2006-09-06,488.432146,488.432146,488.432146,488.432146,1,488.432146
2006-09-05,488.087444,488.087444,488.087444,488.087444,1,488.087444
2006-09-01,487.819327,487.819327,487.819327,487.819327,1,487.819327
2006-08-31,487.630370,487.630370,487.630370,487.630370,1,487.630370
2006-08-30,487.522388,487.522388,487.522388,487.522388,1,487.522388
2006-08-29,487.496419,487.496419,487.496419,487.496419,1,487.496419
2006-08-28,487.552713,487.552713,487.552713,487.552713,1,487.552713
2006-08-25,487.690728,487.690728,487.690728,487.690728,1,487.690728
2006-08-24,487.909139,487.909139,487.909139,487.909139,1,487.909139
2006-08-23,488.205848,488.205848,488.205848,488.205848,1,488.205848
2006-08-22,488.578003,488.578003,488.578003,488.578003,1,488.578003
2006-08-21,489.022028,489.022028,489.022028,489.022028,1,489.022028
2006-08-18,489.533659,489.533659,489.533659,489.533659,1,489.533659
2006-08-17,490.107980,490.107980,490.107980,490.107980,1,490.107980
2006-08-16,490.739472,490.739472,490.739472,490.739472,1,490.739472
2006-08-15,491.422069,491.422069,491.422069,491.422069,1,491.422069
2006-08-14,492.149212,492.149212,492.149212,492.149212,1,492.149212
2006-08-11,492.913915,492.913915,492.913915,492.913915,1,492.913915
2006-08-10,493.708832,493.708832,493.708832,493.708832,1,493.708832
2006-08-09,494.526325,494.526325,494.526325,494.526325,1,494.526325
2006-08-08,495.358540,495.358540,495.358540,495.358540,1,495.358540
2006-08-07,496.197481,496.197481,496.197481,496.197481,1,496.197481
2006-08-04,497.035089,497.035089,497.035089,497.035089,1,497.035089
2006-08-03,497.863315,497.863315,497.863315,497.863315,1,497.863315
2006-08-02,498.674203,498.674203,498.674203,498.674203,1,498.674203
2006-08-01,499.459961,499.459961,499.459961,499.459961,1,499.459961
2006-07-31,500.213041,500.213041,500.213041,500.213041,1,500.213041
2006-07-28,500.926208,500.926208,500.926208,500.926208,1,500.926208
2006-07-27,501.592608,501.592608,501.592608,501.592608,1,501.592608
2006-07-26,502.205841,502.205841,502.205841,502.205841,1,502.205841
2006-07-25,502.760014,502.760014,502.760014,502.760014,1,502.760014
2006-07-24,503.249803,503.249803,503.249803,503.249803,1,503.249803
2006-07-21,503.670503,503.670503,503.670503,503.670503,1,503.670503
2006-07-20,504.018070,504.018070,504.018070,504.018070,1,504.018070
2006-07-19,504.289167,504.289167,504.289167,504.289167,1,504.289167
2006-07-18,504.481188,504.481188,504.481188,504.481188,1,504.481188
2006-07-17,504.592289,504.592289,504.592289,504.592289,1,504.592289
2006-07-14,504.621402,504.621402,504.621402,504.621402,1,504.621402
2006-07-13,504.568248,504.568248,504.568248,504.568248,1,504.568248
2006-07-12,504.433336,504.433336,504.433336,504.433336,1,504.433336
2006-07-11,504.217964,504.217964,504.217964,504.217964,1,504.217964
2006-07-10,503.924201,503.924201,503.924201,503.924201,1,503.924201
2006-07-07,503.554869,503.554869,503.554869,503.554869,1,503.554869
2006-07-06,503.113516,503.113516,503.113516,503.113516,1,503.113516
2006-07-05,502.604382,502.604382,502.604382,502.604382,1,502.604382
2006-07-03,502.032360,502.032360,502.032360,502.032360,1,502.032360
2006-06-30,501.402945,501.402945,501.402945,501.402945,1,501.402945
2006-06-29,500.722184,500.722184,500.722184,500.722184,1,500.722184
2006-06-28,499.996618,499.996618,499.996618,499.996618,1,499.996618
2006-06-27,499.233217,499.233217,499.233217,499.233217,1,499.233217
2006-06-26,498.439316,498.439316,498.439316,498.439316,1,498.439316
2006-06-23,497.622543,497.622543,497.622543,497.622543,1,497.622543
2006-06-22,496.790745,496.790745,496.790745,496.790745,1,496.790745
2006-06-21,495.951913,495.951913,495.951913,495.951913,1,495.951913
2006-06-20,495.114106,495.114106,495.114106,495.114106,1,495.114106
2006-06-19,494.285374,494.285374,494.285374,494.285374,1,494.285374
2006-06-16,493.473679,493.473679,493.473679,493.473679,1,493.473679
2006-06-15,492.686820,492.686820,492.686820,492.686820,1,492.686820
2006-06-14,491.932355,491.932355,491.932355,491.932355,1,491.932355
2006-06-13,491.217535,491.217535,491.217535,491.217535,1,491.217535
2006-06-12,490.549226,490.549226,490.549226,490.549226,1,490.549226
2006-06-09,489.933849,489.933849,489.933849,489.933849,1,489.933849
2006-06-08,489.377317,489.377317,489.377317,489.377317,1,489.377317
2006-06-07,488.884976,488.884976,488.884976,488.884976,1,488.884976
2006-06-06,488.461558,488.461558,488.461558,488.461558,1,488.461558
2006-06-05,488.111129,488.111129,488.111129,488.111129,1,488.111129
2006-06-02,487.837057,487.837057,487.837057,487.837057,1,487.837057
2006-06-01,487.641974,487.641974,487.641974,487.641974,1,487.641974
2006-05-31,487.527756,487.527756,487.527756,487.527756,1,487.527756
2006-05-30,487.495499,487.495499,487.495499,487.495499,1,487.495499
2006-05-26,487.545513,487.545513,487.545513,487.545513,1,487.545513
2006-05-25,487.677318,487.677318,487.677318,487.677318,1,487.677318
2006-05-24,487.889648,487.889648,487.889648,487.889648,1,487.889648
2006-05-23,488.180462,488.180462,488.180462,488.180462,1,488.180462
2006-05-22,488.546967,488.546967,488.546967,488.546967,1,488.546967
2006-05-19,488.985641,488.985641,488.985641,488.985641,1,488.985641
2006-05-18,489.492269,489.492269,489.492269,489.492269,1,489.492269
2006-05-17,490.061985,490.061985,490.061985,490.061985,1,490.061985
2006-05-16,490.689314,490.689314,490.689314,490.689314,1,490.689314
2006-05-15,491.368230,491.368230,491.368230,491.368230,1,491.368230
2006-05-12,492.092209,492.092209,492.092209,492.092209,1,492.092209
2006-05-11,492.854297,492.854297,492.854297,492.854297,1,492.854297
2006-05-10,493.647170,493.647170,493.647170,493.647170,1,493.647170
2006-05-09,494.463212,494.463212,494.463212,494.463212,1,494.463212
2006-05-08,495.294583,495.294583,495.294583,495.294583,1,495.294583
2006-05-05,496.133294,496.133294,496.133294,496.133294,1,496.133294
2006-05-04,496.971288,496.971288,496.971288,496.971288,1,496.971288
2006-05-03,497.800514,497.800514,497.800514,497.800514,1,497.800514
2006-05-02,498.613004,498.613004,498.613004,498.613004,1,498.613004
2006-05-01,499.400954,499.400954,499.400954,499.400954,1,499.400954
2006-04-28,500.156792,500.156792,500.156792,500.156792,1,500.156792
2006-04-27,500.873257,500.873257,500.873257,500.873257,1,500.873257
2006-04-26,501.543465,501.543465,501.543465,501.543465,1,501.543465
2006-04-25,502.160977,502.160977,502.160977,502.160977,1,502.160977
2006-04-24,502.719860,502.719860,502.719860,502.719860,1,502.719860
2006-04-21,503.214745,503.214745,503.214745,503.214745,1,503.214745
2006-04-20,503.640877,503.640877,503.640877,503.640877,1,503.640877
2006-04-19,503.994162,503.994162,503.994162,503.994162,1,503.994162
2006-04-18,504.271206,504.271206,504.271206,504.271206,1,504.271206
2006-04-17,504.469347,504.469347,504.469347,504.469347,1,504.469347
2006-04-13,504.586681,504.586681,504.586681,504.586681,1,504.586681
2006-04-12,504.622082,504.622082,504.622082,504.622082,1,504.622082
2006-04-11,504.575208,504.575208,504.575208,504.575208,1,504.575208
2006-04-10,504.446511,504.446511,504.446511,504.446511,1,504.446511
2006-04-07,504.237227,504.237227,504.237227,504.237227,1,504.237227
2006-04-06,503.949366,503.949366,503.949366,503.949366,1,503.949366
2006-04-05,503.585694,503.585694,503.585694,503.585694,1,503.585694
2006-04-04,503.149705,503.149705,503.149705,503.149705,1,503.149705
2006-04-03,502.645589,502.645589,502.645589,502.645589,1,502.645589
2006-03-31,502.078187,502.078187,502.078187,502.078187,1,502.078187
2006-03-30,501.452953,501.452953,501.452953,501.452953,1,501.452953
2006-03-29,500.775892,500.775892,500.775892,500.775892,1,500.775892
2006-03-28,500.053510,500.053510,500.053510,500.053510,1,500.053510
2006-03-27,499.292746,499.292746,499.292746,499.292746,1,499.292746
2006-03-24,498.500911,498.500911,498.500911,498.500911,1,498.500911
2006-03-23,497.685612,497.685612,497.685612,497.685612,1,497.685612
2006-03-22,496.854681,496.854681,496.854681,496.854681,1,496.854681
2006-03-21,496.016103,496.016103,496.016103,496.016103,1,496.016103
2006-03-20,495.177933,495.177933,495.177933,495.177933,1,495.177933
2006-03-17,494.348225,494.348225,494.348225,494.348225,1,494.348225
2006-03-16,493.534949,493.534949,493.534949,493.534949,1,493.534949
2006-03-15,492.745921,492.745921,492.745921,492.745921,1,492.745921
2006-03-14,491.988720,491.988720,491.988720,491.988720,1,491.988720
2006-03-13,491.270621,491.270621,491.270621,491.270621,1,491.270621
2006-03-10,490.598524,490.598524,490.598524,490.598524,1,490.598524
2006-03-09,489.978885,489.978885,489.978885,489.978885,1,489.978885
2006-03-08,489.417659,489.417659,489.417659,489.417659,1,489.417659
2006-03-07,488.920236,488.920236,488.920236,488.920236,1,488.920236
2006-03-06,488.491396,488.491396,488.491396,488.491396,1,488.491396
2006-03-03,488.135260,488.135260,488.135260,488.135260,1,488.135260
2006-03-02,487.855248,487.855248,487.855248,487.855248,1,487.855248
2006-03-01,487.654052,487.654052,487.654052,487.654052,1,487.654052
2006-02-28,487.533603,487.533603,487.533603,487.533603,1,487.533603
2006-02-27,487.495060,487.495060,487.495060,487.495060,1,487.495060
2006-02-24,487.538792,487.538792,487.538792,487.538792,1,487.538792
2006-02-23,487.664379,487.664379,487.664379,487.664379,1,487.664379
2006-02-22,487.870616,487.870616,487.870616,487.870616,1,487.870616
2006-02-21,488.155519,488.155519,488.155519,488.155519,1,488.155519
2006-02-17,488.516353,488.516353,488.516353,488.516353,1,488.516353
2006-02-16,488.949650,488.949650,488.949650,488.949650,1,488.949650
2006-02-15,489.451248,489.451248,489.451248,489.451248,1,489.451248
2006-02-14,490.016327,490.016327,490.016327,490.016327,1,490.016327
2006-02-13,490.639458,490.639458,490.639458,490.639458,1,490.639458
2006-02-10,491.314654,491.314654,491.314654,491.314654,1,491.314654
2006-02-09,492.035429,492.035429,492.035429,492.035429,1,492.035429
2006-02-08,492.794858,492.794858,492.794858,492.794858,1,492.794858
2006-02-07,493.585644,493.585644,493.585644,493.585644,1,493.585644
2006-02-06,494.400189,494.400189,494.400189,494.400189,1,494.400189
2006-02-03,495.230668,495.230668,495.230668,495.230668,1,495.230668
2006-02-02,496.069102,496.069102,496.069102,496.069102,1,496.069102
2006-02-01,496.907436,496.907436,496.907436,496.907436,1,496.907436
2006-01-31,497.737615,497.737615,497.737615,497.737615,1,497.737615
2006-01-30,498.551663,498.551663,498.551663,498.551663,1,498.551663
2006-01-27,499.341759,499.341759,499.341759,499.341759,1,499.341759
2006-01-26,500.100312,500.100312,500.100312,500.100312,1,500.100312
2006-01-25,500.820035,500.820035,500.820035,500.820035,1,500.820035
2006-01-24,501.494012,501.494012,501.494012,501.494012,1,501.494012
2006-01-23,502.115769,502.115769,502.115769,502.115769,1,502.115769
2006-01-20,502.679331,502.679331,502.679331,502.679331,1,502.679331
2006-01-19,503.179284,503.179284,503.179284,503.179284,1,503.179284
2006-01-18,503.610825,503.610825,503.610825,503.610825,1,503.610825
2006-01-17,503.969808,503.969808,503.969808,503.969808,1,503.969808
2006-01-13,504.252784,504.252784,504.252784,504.252784,1,504.252784
2006-01-12,504.457033,504.457033,504.457033,504.457033,1,504.457033
2006-01-11,504.580595,504.580595,504.580595,504.580595,1,504.580595
2006-01-10,504.622280,504.622280,504.622280,504.622280,1,504.622280
2006-01-09,504.581690,504.581690,504.581690,504.581690,1,504.581690
2006-01-06,504.459214,504.459214,504.459214,504.459214,1,504.459214
2006-01-05,504.256029,504.256029,504.256029,504.256029,1,504.256029
2006-01-04,503.974087,503.974087,503.974087,503.974087,1,503.974087
2006-01-03,503.616096,503.616096,503.616096,503.616096,1,503.616096
2005-12-30,503.185496,503.185496,503.185496,503.185496,1,503.185496
2005-12-29,502.686425,502.686425,502.686425,502.686425,1,502.686425
2005-12-28,502.123676,502.123676,502.123676,502.123676,1,502.123676
2005-12-27,501.502657,501.502657,501.502657,501.502657,1,501.502657
2005-12-23,500.829334,500.829334,500.829334,500.829334,1,500.829334
2005-12-22,500.110177,500.110177,500.110177,500.110177,1,500.110177
2005-12-21,499.352094,499.352094,499.352094,499.352094,1,499.352094
2005-12-20,498.562369,498.562369,498.562369,498.562369,1,498.562369
2005-12-19,497.748589,497.748589,497.748589,497.748589,1,497.748589
2005-12-16,496.918573,496.918573,496.918573,496.918573,1,496.918573
2005-12-15,496.080295,496.080295,496.080295,496.080295,1,496.080295
2005-12-14,495.241809,495.241809,495.241809,495.241809,1,495.241809
2005-12-13,494.411171,494.411171,494.411171,494.411171,1,494.411171
2005-12-12,493.596362,493.596362,493.596362,493.596362,1,493.596362
2005-12-09,492.805209,492.805209,492.805209,492.805209,1,492.805209
2005-12-08,492.045313,492.045313,492.045313,492.045313,1,492.045313
2005-12-07,491.323977,491.323977,491.323977,491.323977,1,491.323977
2005-12-06,490.648129,490.648129,490.648129,490.648129,1,490.648129
2005-12-05,490.024263,490.024263,490.024263,490.024263,1,490.024263
2005-12-02,489.458374,489.458374,489.458374,489.458374,1,489.458374
2005-12-01,488.955897,488.955897,488.955897,488.955897,1,488.955897
2005-11-30,488.521660,488.521660,488.521660,488.521660,1,488.521660
2005-11-29,488.159836,488.159836,488.159836,488.159836,1,488.159836
2005-11-28,487.873901,487.873901,487.873901,487.873901,1,487.873901
2005-11-25,487.666601,487.666601,487.666601,487.666601,1,487.666601
2005-11-23,487.539929,487.539929,487.539929,487.539929,1,487.539929
2005-11-22,487.495101,487.495101,487.495101,487.495101,1,487.495101
2005-11-21,487.532549,487.532549,487.532549,487.532549,1,487.532549
2005-11-18,487.651912,487.651912,487.651912,487.651912,1,487.651912
2005-11-17,487.852043,487.852043,487.852043,487.852043,1,487.852043
2005-11-16,488.131020,488.131020,488.131020,488.131020,1,488.131020
2005-11-15,488.486163,488.486163,488.486163,488.486163,1,488.486163
2005-11-14,488.914059,488.914059,488.914059,488.914059,1,488.914059
2005-11-11,489.410598,489.410598,489.410598,489.410598,1,489.410598
2005-11-10,489.971008,489.971008,489.971008,489.971008,1,489.971008
2005-11-09,490.589906,490.589906,490.589906,490.589906,1,490.589906
2005-11-08,491.261345,491.261345,491.261345,491.261345,1,491.261345
2005-11-07,491.978876,491.978876,491.978876,491.978876,1,491.978876
2005-11-04,492.735602,492.735602,492.735602,492.735602,1,492.735602
2005-11-03,493.524256,493.524256,493.524256,493.524256,1,493.524256
2005-11-02,494.337259,494.337259,494.337259,494.337259,1,494.337259
2005-11-01,495.166800,495.166800,495.166800,495.166800,1,495.166800
2005-10-31,496.004910,496.004910,496.004910,496.004910,1,496.004910
2005-10-28,496.843536,496.843536,496.843536,496.843536,1,496.843536
2005-10-27,497.674621,497.674621,497.674621,497.674621,1,497.674621
2005-10-26,498.490181,498.490181,498.490181,498.490181,1,498.490181
2005-10-25,499.282380,499.282380,499.282380,499.282380,1,499.282380
2005-10-24,500.043606,500.043606,500.043606,500.043606,1,500.043606
2005-10-21,500.766546,500.766546,500.766546,500.766546,1,500.766546
2005-10-20,501.444255,501.444255,501.444255,501.444255,1,501.444255
2005-10-19,502.070221,502.070221,502.070221,502.070221,1,502.070221
2005-10-18,502.638430,502.638430,502.638430,502.638430,1,502.638430
2005-10-17,503.143424,503.143424,503.143424,503.143424,1,503.143424
2005-10-14,503.580349,503.580349,503.580349,503.580349,1,503.580349
2005-10-13,503.945010,503.945010,503.945010,503.945010,1,503.945010
2005-10-12,504.233901,504.233901,504.233901,504.233901,1,504.233901
2005-10-11,504.444248,504.444248,504.444248,504.444248,1,504.444248
2005-10-10,504.574029,504.574029,504.574029,504.574029,1,504.574029
2005-10-07,504.621998,504.621998,504.621998,504.621998,1,504.621998
2005-10-06,504.587694,504.587694,504.587694,504.587694,1,504.587694
2005-10-05,504.471446,504.471446,504.471446,504.471446,1,504.471446
2005-10-04,504.274371,504.274371,504.274371,504.274371,1,504.274371
2005-10-03,503.998363,503.998363,503.998363,503.998363,1,503.998363
2005-09-30,503.646073,503.646073,503.646073,503.646073,1,503.646073
2005-09-29,503.220887,503.220887,503.220887,503.220887,1,503.220887
2005-09-28,502.726888,502.726888,502.726888,502.726888,1,502.726888
2005-09-27,502.168824,502.168824,502.168824,502.168824,1,502.168824
2005-09-26,501.552056,501.552056,501.552056,501.552056,1,501.552056
2005-09-23,500.882509,500.882509,500.882509,500.882509,1,500.882509
2005-09-22,500.166616,500.166616,500.166616,500.166616,1,500.166616
2005-09-21,499.411256,499.411256,499.411256,499.411256,1,499.411256
2005-09-20,498.623686,498.623686,498.623686,498.623686,1,498.623686
2005-09-19,497.811471,497.811471,497.811471,497.811471,1,497.811471
2005-09-16,496.982416,496.982416,496.982416,496.982416,1,496.982416
2005-09-15,496.144486,496.144486,496.144486,496.144486,1,496.144486
2005-09-14,495.305731,495.305731,495.305731,495.305731,1,495.305731
2005-09-13,494.474210,494.474210,494.474210,494.474210,1,494.474210
2005-09-12,493.657912,493.657912,493.657912,493.657912,1,493.657912
2005-09-09,492.864679,492.864679,492.864679,492.864679,1,492.864679
2005-09-08,492.102132,492.102132,492.102132,492.102132,1,492.102132
2005-09-07,491.377598,491.377598,491.377598,491.377598,1,491.377598
2005-09-06,490.698038,490.698038,490.698038,490.698038,1,490.698038
2005-09-02,490.069981,490.069981,490.069981,490.069981,1,490.069981
2005-09-01,489.499460,489.499460,489.499460,489.499460,1,489.499460
2005-08-31,488.991957,488.991957,488.991957,488.991957,1,488.991957
2005-08-30,488.552348,488.552348,488.552348,488.552348,1,488.552348
2005-08-29,488.184857,488.184857,488.184857,488.184857,1,488.184857
2005-08-26,487.893013,487.893013,487.893013,487.893013,1,487.893013
2005-08-25,487.679623,487.679623,487.679623,487.679623,1,487.679623
2005-08-24,487.546734,487.546734,487.546734,487.546734,1,487.546734
2005-08-23,487.495625,487.495625,487.495625,487.495625,1,487.495625
2005-08-22,487.526785,487.526785,487.526785,487.526785,1,487.526785
2005-08-19,487.639917,487.639917,487.639917,487.639917,1,487.639917
2005-08-18,487.833932,487.833932,487.833932,487.833932,1,487.833932
2005-08-17,488.106967,488.106967,488.106967,488.106967,1,488.106967
2005-08-16,488.456399,488.456399,488.456399,488.456399,1,488.456399
2005-08-15,488.878870,488.878870,488.878870,488.878870,1,488.878870
2005-08-12,489.370321,489.370321,489.370321,489.370321,1,489.370321
2005-08-11,489.926031,489.926031,489.926031,489.926031,1,489.926031
2005-08-10,490.540661,490.540661,490.540661,490.540661,1,490.540661
2005-08-09,491.208306,491.208306,491.208306,491.208306,1,491.208306
2005-08-08,491.922551,491.922551,491.922551,491.922551,1,491.922551
2005-08-05,492.676534,492.676534,492.676534,492.676534,1,492.676534
2005-08-04,493.463011,493.463011,493.463011,493.463011,1,493.463011
2005-08-03,494.274425,494.274425,494.274425,494.274425,1,494.274425
2005-08-02,495.102982,495.102982,495.102982,495.102982,1,495.102982
2005-08-01,495.940721,495.940721,495.940721,495.940721,1,495.940721
2005-07-29,496.779592,496.779592,496.779592,496.779592,1,496.779592
2005-07-28,497.611537,497.611537,497.611537,497.611537,1,497.611537
2005-07-27,498.428563,498.428563,498.428563,498.428563,1,498.428563
2005-07-26,499.222819,499.222819,499.222819,499.222819,1,499.222819
2005-07-25,499.986675,499.986675,499.986675,499.986675,1,499.986675
2005-07-22,500.712793,500.712793,500.712793,500.712793,1,500.712793
2005-07-21,501.394195,501.394195,501.394195,501.394195,1,501.394195
2005-07-20,502.024335,502.024335,502.024335,502.024335,1,502.024335
2005-07-19,502.597160,502.597160,502.597160,502.597160,1,502.597160
2005-07-18,503.107165,503.107165,503.107165,503.107165,1,503.107165
2005-07-15,503.549451,503.549451,503.549451,503.549451,1,503.549451
2005-07-14,503.919768,503.919768,503.919768,503.919768,1,503.919768
2005-07-13,504.214559,504.214559,504.214559,504.214559,1,504.214559
2005-07-12,504.430991,504.430991,504.430991,504.430991,1,504.430991
2005-07-11,504.566985,504.566985,504.566985,504.566985,1,504.566985
2005-07-08,504.621234,504.621234,504.621234,504.621234,1,504.621234
2005-07-07,504.593218,504.593218,504.593218,504.593218,1,504.593218
2005-07-06,504.483204,504.483204,504.483204,504.483204,1,504.483204
2005-07-05,504.292251,504.292251,504.292251,504.292251,1,504.292251
2005-07-01,504.022193,504.022193,504.022193,504.022193,1,504.022193
2005-06-30,503.675624,503.675624,503.675624,503.675624,1,503.675624
2005-06-29,503.255875,503.255875,503.255875,503.255875,1,503.255875
2005-06-28,502.766977,502.766977,502.766977,502.766977,1,502.766977
2005-06-27,502.213629,502.213629,502.213629,502.213629,1,502.213629
2005-06-24,501.601146,501.601146,501.601146,501.601146,1,501.601146
2005-06-23,500.935412,500.935412,500.935412,500.935412,1,500.935412
2005-06-22,500.222825,500.222825,500.222825,500.222825,1,500.222825
2005-06-21,499.470230,499.470230,499.470230,499.470230,1,499.470230
2005-06-20,498.684858,498.684858,498.684858,498.684858,1,498.684858
2005-06-17,497.874255,497.874255,497.874255,497.874255,1,497.874255
2005-06-16,497.046208,497.046208,497.046208,497.046208,1,497.046208
2005-06-15,496.208672,496.208672,496.208672,496.208672,1,496.208672
2005-06-14,495.369696,495.369696,495.369696,495.369696,1,495.369696
2005-06-13,494.537339,494.537339,494.537339,494.537339,1,494.537339
2005-06-10,493.719597,493.719597,493.719597,493.719597,1,493.719597
2005-06-09,492.924329,492.924329,492.924329,492.924329,1,492.924329
2005-06-08,492.159174,492.159174,492.159174,492.159174,1,492.159174
2005-06-07,491.431483,491.431483,491.431483,491.431483,1,491.431483
2005-06-06,490.748249,490.748249,490.748249,490.748249,1,490.748249
2005-06-03,490.116034,490.116034,490.116034,490.116034,1,490.116034
2005-06-02,489.540914,489.540914,489.540914,489.540914,1,489.540914
2005-06-01,489.028414,489.028414,489.028414,489.028414,1,489.028414
2005-05-31,488.583457,488.583457,488.583457,488.583457,1,488.583457
2005-05-27,488.210319,488.210319,488.210319,488.210319,1,488.210319
2005-05-26,487.912585,487.912585,487.912585,487.912585,1,487.912585
2005-05-25,487.693115,487.693115,487.693115,487.693115,1,487.693115
2005-05-24,487.554017,487.554017,487.554017,487.554017,1,487.554017
2005-05-23,487.496629,487.496629,487.496629,487.496629,1,487.496629
2005-05-20,487.521501,487.521501,487.521501,487.521501,1,487.521501
2005-05-19,487.628395,487.628395,487.628395,487.628395,1,487.628395
2005-05-18,487.816283,487.816283,487.816283,487.816283,1,487.816283
2005-05-17,488.083360,488.083360,488.083360,488.083360,1,488.083360
2005-05-16,488.427061,488.427061,488.427061,488.427061,1,488.427061
2005-05-13,488.844084,488.844084,488.844084,488.844084,1,488.844084
2005-05-12,489.330420,489.330420,489.330420,489.330420,1,489.330420
2005-05-11,489.881399,489.881399,489.881399,489.881399,1,489.881399
2005-05-10,490.491727,490.491727,490.491727,490.491727,1,490.491727
2005-05-09,491.155539,491.155539,491.155539,491.155539,1,491.155539
2005-05-06,491.866459,491.866459,491.866459,491.866459,1,491.866459
2005-05-05,492.617655,492.617655,492.617655,492.617655,1,492.617655
2005-05-04,493.401911,493.401911,493.401911,493.401911,1,493.401911
2005-05-03,494.211692,494.211692,494.211692,494.211692,1,494.211692
2005-05-02,495.039218,495.039218,495.039218,495.039218,1,495.039218
2005-04-29,495.876538,495.876538,495.876538,495.876538,1,495.876538
2005-04-28,496.715608,496.715608,496.715608,496.715608,1,496.715608
2005-04-27,497.548366,497.548366,497.548366,497.548366,1,497.548366
2005-04-26,498.366811,498.366811,498.366811,498.366811,1,498.366811
2005-04-25,499.163081,499.163081,499.163081,499.163081,1,499.163081
2005-04-22,499.929524,499.929524,499.929524,499.929524,1,499.929524
2005-04-21,500.658778,500.658778,500.658778,500.658778,1,500.658778
2005-04-20,501.343835,501.343835,501.343835,501.343835,1,501.343835
2005-04-19,501.978115,501.978115,501.978115,501.978115,1,501.978115
2005-04-18,502.555522,502.555522,502.555522,502.555522,1,502.555522
2005-04-15,503.070510,503.070510,503.070510,503.070510,1,503.070510
2005-04-14,503.518131,503.518131,503.518131,503.518131,1,503.518131
2005-04-13,503.894085,503.894085,503.894085,503.894085,1,503.894085
2005-04-12,504.194759,504.194759,504.194759,504.194759,1,504.194759
2005-04-11,504.417264,504.417264,504.417264,504.417264,1,504.417264
2005-04-08,504.559463,504.559463,504.559463,504.559463,1,504.559463
2005-04-07,504.619989,504.619989,504.619989,504.619989,1,504.619989
2005-04-06,504.598262,504.598262,504.598262,504.598262,1,504.598262
2005-04-05,504.494490,504.494490,504.494490,504.494490,1,504.494490
2005-04-04,504.309669,504.309669,504.309669,504.309669,1,504.309669
2005-04-01,504.045576,504.045576,504.045576,504.045576,1,504.045576
2005-03-31,503.704747,503.704747,503.704747,503.704747,1,503.704747
2005-03-30,503.290458,503.290458,503.290458,503.290458,1,503.290458
2005-03-29,502.806689,502.806689,502.806689,502.806689,1,502.806689
2005-03-28,502.258087,502.258087,502.258087,502.258087,1,502.258087
2005-03-24,501.649924,501.649924,501.649924,501.649924,1,501.649924
2005-03-23,500.988042,500.988042,500.988042,500.988042,1,500.988042
2005-03-22,500.278800,500.278800,500.278800,500.278800,1,500.278800
2005-03-21,499.529013,499.529013,499.529013,499.529013,1,499.529013
2005-03-18,498.745883,498.745883,498.745883,498.745883,1,498.745883
2005-03-17,497.936936,497.936936,497.936936,497.936936,1,497.936936
2005-03-16,497.109944,497.109944,497.109944,497.109944,1,497.109944
2005-03-15,496.272850,496.272850,496.272850,496.272850,1,496.272850
2005-03-14,495.433699,495.433699,495.433699,495.433699,1,495.433699
2005-03-11,494.600552,494.600552,494.600552,494.600552,1,494.600552
2005-03-10,493.781414,493.781414,493.781414,493.781414,1,493.781414
2005-03-09,492.984155,492.984155,492.984155,492.984155,1,492.984155
2005-03-08,492.216434,492.216434,492.216434,492.216434,1,492.216434
2005-03-07,491.485628,491.485628,491.485628,491.485628,1,491.485628
2005-03-04,490.798757,490.798757,490.798757,490.798757,1,490.798757
2005-03-03,490.162422,490.162422,490.162422,490.162422,1,490.162422
2005-03-02,489.582735,489.582735,489.582735,489.582735,1,489.582735
2005-03-01,489.065266,489.065266,489.065266,489.065266,1,489.065266
2005-02-28,488.614986,488.614986,488.614986,488.614986,1,488.614986
2005-02-25,488.236223,488.236223,488.236223,488.236223,1,488.236223
2005-02-24,487.932614,487.932614,487.932614,487.932614,1,487.932614
2005-02-23,487.707077,487.707077,487.707077,487.707077,1,487.707077
2005-02-22,487.561778,487.561778,487.561778,487.561778,1,487.561778
2005-02-18,487.498114,487.498114,487.498114,487.498114,1,487.498114
2005-02-17,487.516696,487.516696,487.516696,487.516696,1,487.516696
2005-02-16,487.617346,487.617346,487.617346,487.617346,1,487.617346
2005-02-15,487.799097,487.799097,487.799097,487.799097,1,487.799097
2005-02-14,488.060202,488.060202,488.060202,488.060202,1,488.060202
2005-02-11,488.398153,488.398153,488.398153,488.398153,1,488.398153
2005-02-10,488.809703,488.809703,488.809703,488.809703,1,488.809703
2005-02-09,489.290898,489.290898,489.290898,489.290898,1,489.290898
2005-02-08,489.837115,489.837115,489.837115,489.837115,1,489.837115
2005-02-07,490.443105,490.443105,490.443105,490.443105,1,490.443105
2005-02-04,491.103048,491.103048,491.103048,491.103048,1,491.103048
2005-02-03,491.810602,491.810602,491.810602,491.810602,1,491.810602
2005-02-02,492.558970,492.558970,492.558970,492.558970,1,492.558970
2005-02-01,493.340961,493.340961,493.340961,493.340961,1,493.340961
2005-01-31,494.149063,494.149063,494.149063,494.149063,1,494.149063
2005-01-28,494.975511,494.975511,494.975511,494.975511,1,494.975511
2005-01-27,495.812366,495.812366,495.812366,495.812366,1,495.812366
2005-01-26,496.651587,496.651587,496.651587,496.651587,1,496.651587
2005-01-25,497.485111,497.485111,497.485111,497.485111,1,497.485111
2005-01-24,498.304930,498.304930,498.304930,498.304930,1,498.304930
2005-01-21,499.103168,499.103168,499.103168,499.103168,1,499.103168
2005-01-20,499.872155,499.872155,499.872155,499.872155,1,499.872155
2005-01-19,500.604504,500.604504,500.604504,500.604504,1,500.604504
2005-01-18,501.293178,501.293178,501.293178,501.293178,1,501.293178
2005-01-14,501.931561,501.931561,501.931561,501.931561,1,501.931561
2005-01-13,502.513519,502.513519,502.513519,502.513519,1,502.513519
2005-01-12,503.033462,503.033462,503.033462,503.033462,1,503.033462
2005-01-11,503.486393,503.486393,503.486393,503.486393,1,503.486393
2005-01-10,503.867961,503.867961,503.867961,503.867961,1,503.867961
2005-01-07,504.174501,504.174501,504.174501,504.174501,1,504.174501
2005-01-06,504.403067,504.403067,504.403067,504.403067,1,504.403067
2005-01-05,504.551463,504.551463,504.551463,504.551463,1,504.551463
2005-01-04,504.618264,504.618264,504.618264,504.618264,1,504.618264
2005-01-03,504.602827,504.602827,504.602827,504.602827,1,504.602827
2004-12-31,504.505301,504.505301,504.505301,504.505301,1,504.505301
2004-12-30,504.326623,504.326623,504.326623,504.326623,1,504.326623
2004-12-29,504.068510,504.068510,504.068510,504.068510,1,504.068510
2004-12-28,503.733441,503.733441,503.733441,503.733441,1,503.733441
2004-12-27,503.324636,503.324636,503.324636,503.324636,1,503.324636
2004-12-23,502.846022,502.846022,502.846022,502.846022,1,502.846022
2004-12-22,502.302198,502.302198,502.302198,502.302198,1,502.302198
2004-12-21,501.698388,501.698388,501.698388,501.698388,1,501.698388
2004-12-20,501.040394,501.040394,501.040394,501.040394,1,501.040394
2004-12-17,500.334538,500.334538,500.334538,500.334538,1,500.334538
2004-12-16,499.587600,499.587600,499.587600,499.587600,1,499.587600
2004-12-15,498.806758,498.806758,498.806758,498.806758,1,498.806758
2004-12-14,497.999513,497.999513,497.999513,497.999513,1,497.999513
2004-12-13,497.173621,497.173621,497.173621,497.173621,1,497.173621
2004-12-10,496.337016,496.337016,496.337016,496.337016,1,496.337016
2004-12-09,495.497738,495.497738,495.497738,495.497738,1,495.497738
2004-12-08,494.663848,494.663848,494.663848,494.663848,1,494.663848
2004-12-07,493.843359,493.843359,493.843359,493.843359,1,493.843359
2004-12-06,493.044154,493.044154,493.044154,493.044154,1,493.044154
2004-12-03,492.273910,492.273910,492.273910,492.273910,1,492.273910
2004-12-02,491.540029,491.540029,491.540029,491.540029,1,491.540029
2004-12-01,490.849561,490.849561,490.849561,490.849561,1,490.849561
2004-11-30,490.209140,490.209140,490.209140,490.209140,1,490.209140
2004-11-29,489.624919,489.624919,489.624919,489.624919,1,489.624919
2004-11-26,489.102511,489.102511,489.102511,489.102511,1,489.102511
2004-11-24,488.646934,488.646934,488.646934,488.646934,1,488.646934
2004-11-23,488.262566,488.262566,488.262566,488.262566,1,488.262566
2004-11-22,487.953100,487.953100,487.953100,487.953100,1,487.953100
2004-11-19,487.721508,487.721508,487.721508,487.721508,1,487.721508
2004-11-18,487.570017,487.570017,487.570017,487.570017,1,487.570017
2004-11-17,487.500081,487.500081,487.500081,487.500081,1,487.500081
2004-11-16,487.512372,487.512372,487.512372,487.512372,1,487.512372
2004-11-15,487.606772,487.606772,487.606772,487.606772,1,487.606772
2004-11-12,487.782375,487.782375,487.782375,487.782375,1,487.782375
2004-11-11,488.037493,488.037493,488.037493,488.037493,1,488.037493
2004-11-10,488.369675,488.369675,488.369675,488.369675,1,488.369675
2004-11-09,488.775729,488.775729,488.775729,488.775729,1,488.775729
2004-11-08,489.251755,489.251755,489.251755,489.251755,1,489.251755
2004-11-05,489.793179,489.793179,489.793179,489.793179,1,489.793179
2004-11-04,490.394799,490.394799,490.394799,490.394799,1,490.394799
2004-11-03,491.050835,491.050835,491.050835,491.050835,1,491.050835
2004-11-02,491.754984,491.754984,491.754984,491.754984,1,491.754984
2004-11-01,492.500481,492.500481,492.500481,492.500481,1,492.500481
2004-10-29,493.280164,493.280164,493.280164,493.280164,1,493.280164
2004-10-28,494.086541,494.086541,494.086541,494.086541,1,494.086541
2004-10-27,494.911865,494.911865,494.911865,494.911865,1,494.911865
2004-10-26,495.748207,495.748207,495.748207,495.748207,1,495.748207
2004-10-25,496.587532,496.587532,496.587532,496.587532,1,496.587532
2004-10-22,497.421775,497.421775,497.421775,497.421775,1,497.421775
2004-10-21,498.242923,498.242923,498.242923,498.242923,1,498.242923
2004-10-20,499.043084,499.043084,499.043084,499.043084,1,499.043084
2004-10-19,499.814572,499.814572,499.814572,499.814572,1,499.814572
2004-10-18,500.549975,500.549975,500.549975,500.549975,1,500.549975
2004-10-15,501.242227,501.242227,501.242227,501.242227,1,501.242227
2004-10-14,501.884678,501.884678,501.884678,501.884678,1,501.884678
2004-10-13,502.471154,502.471154,502.471154,502.471154,1,502.471154
2004-10-12,502.996021,502.996021,502.996021,502.996021,1,502.996021
2004-10-11,503.454237,503.454237,503.454237,503.454237,1,503.454237
2004-10-08,503.841399,503.841399,503.841399,503.841399,1,503.841399
2004-10-07,504.153788,504.153788,504.153788,504.153788,1,504.153788
2004-10-06,504.388401,504.388401,504.388401,504.388401,1,504.388401
2004-10-05,504.542986,504.542986,504.542986,504.542986,1,504.542986
2004-10-04,504.616057,504.616057,504.616057,504.616057,1,504.616057
2004-10-01,504.606911,504.606911,504.606911,504.606911,1,504.606911
2004-09-30,504.515637,504.515637,504.515637,504.515637,1,504.515637
2004-09-29,504.343112,504.343112,504.343112,504.343112,1,504.343112
2004-09-28,504.090993,504.090993,504.090993,504.090993,1,504.090993
2004-09-27,503.761703,503.761703,503.761703,503.761703,1,503.761703
2004-09-24,503.358405,503.358405,503.358405,503.358405,1,503.358405
2004-09-23,502.884973,502.884973,502.884973,502.884973,1,502.884973
2004-09-22,502.345957,502.345957,502.345957,502.345957,1,502.345957
2004-09-21,501.746536,501.746536,501.746536,501.746536,1,501.746536
2004-09-20,501.092467,501.092467,501.092467,501.092467,1,501.092467
2004-09-17,500.390035,500.390035,500.390035,500.390035,1,500.390035
2004-09-16,499.645989,499.645989,499.645989,499.645989,1,499.645989
2004-09-15,498.867477,498.867477,498.867477,498.867477,1,498.867477
2004-09-14,498.061980,498.061980,498.061980,498.061980,1,498.061980
2004-09-13,497.237235,497.237235,497.237235,497.237235,1,497.237235
2004-09-10,496.401167,496.401167,496.401167,496.401167,1,496.401167
2004-09-09,495.561807,495.561807,495.561807,495.561807,1,495.561807
2004-09-08,494.727222,494.727222,494.727222,494.727222,1,494.727222
2004-09-07,493.905428,493.905428,493.905428,493.905428,1,493.905428
2004-09-03,493.104322,493.104322,493.104322,493.104322,1,493.104322
2004-09-02,492.331599,492.331599,492.331599,492.331599,1,492.331599
2004-09-01,491.594685,491.594685,491.594685,491.594685,1,491.594685
2004-08-31,490.900658,490.900658,490.900658,490.900658,1,490.900658
2004-08-30,490.256188,490.256188,490.256188,490.256188,1,490.256188
2004-08-27,489.667465,489.667465,489.667465,489.667465,1,489.667465
2004-08-26,489.140146,489.140146,489.140146,489.140146,1,489.140146
2004-08-25,488.679298,488.679298,488.679298,488.679298,1,488.679298
2004-08-24,488.289347,488.289347,488.289347,488.289347,1,488.289347
2004-08-23,487.974041,487.974041,487.974041,487.974041,1,487.974041
2004-08-20,487.736408,487.736408,487.736408,487.736408,1,487.736408
2004-08-19,487.578732,487.578732,487.578732,487.578732,1,487.578732
2004-08-18,487.502528,487.502528,487.502528,487.502528,1,487.502528
2004-08-17,487.508527,487.508527,487.508527,487.508527,1,487.508527
2004-08-16,487.596673,487.596673,487.596673,487.596673,1,487.596673
2004-08-13,487.766118,487.766118,487.766118,487.766118,1,487.766118
2004-08-12,488.015235,488.015235,488.015235,488.015235,1,488.015235
2004-08-11,488.341629,488.341629,488.341629,488.341629,1,488.341629
2004-08-10,488.742165,488.742165,488.742165,488.742165,1,488.742165
2004-08-09,489.212995,489.212995,489.212995,489.212995,1,489.212995
2004-08-06,489.749596,489.749596,489.749596,489.749596,1,489.749596
2004-08-05,490.346811,490.346811,490.346811,490.346811,1,490.346811
2004-08-04,490.998904,490.998904,490.998904,490.998904,1,490.998904
2004-08-03,491.699608,491.699608,491.699608,491.699608,1,491.699608
2004-08-02,492.442193,492.442193,492.442193,492.442193,1,492.442193
2004-07-30,493.219522,493.219522,493.219522,493.219522,1,493.219522
2004-07-29,494.024130,494.024130,494.024130,494.024130,1,494.024130
2004-07-28,494.848284,494.848284,494.848284,494.848284,1,494.848284
2004-07-27,495.684066,495.684066,495.684066,495.684066,1,495.684066
2004-07-26,496.523448,496.523448,496.523448,496.523448,1,496.523448
2004-07-23,497.358364,497.358364,497.358364,497.358364,1,497.358364
2004-07-22,498.180792,498.180792,498.180792,498.180792,1,498.180792
2004-07-21,498.982833,498.982833,498.982833,498.982833,1,498.982833
2004-07-20,499.756778,499.756778,499.756778,499.756778,1,499.756778
2004-07-19,500.495194,500.495194,500.495194,500.495194,1,500.495194
2004-07-16,501.190985,501.190985,501.190985,501.190985,1,501.190985
2004-07-15,501.837467,501.837467,501.837467,501.837467,1,501.837467
2004-07-14,502.428428,502.428428,502.428428,502.428428,1,502.428428
2004-07-13,502.958191,502.958191,502.958191,502.958191,1,502.958191
2004-07-12,503.421665,503.421665,503.421665,503.421665,1,503.421665
2004-07-09,503.814399,503.814399,503.814399,503.814399,1,503.814399
2004-07-08,504.132619,504.132619,504.132619,504.132619,1,504.132619
2004-07-07,504.373267,504.373267,504.373267,504.373267,1,504.373267
2004-07-06,504.534032,504.534032,504.534032,504.534032,1,504.534032
2004-07-02,504.613369,504.613369,504.613369,504.613369,1,504.613369
2004-07-01,504.610515,504.610515,504.610515,504.610515,1,504.610515
2004-06-30,504.525499,504.525499,504.525499,504.525499,1,504.525499
2004-06-29,504.359136,504.359136,504.359136,504.359136,1,504.359136
2004-06-28,504.113026,504.113026,504.113026,504.113026,1,504.113026
2004-06-25,503.789532,503.789532,503.789532,503.789532,1,503.789532
2004-06-24,503.391764,503.391764,503.391764,503.391764,1,503.391764
2004-06-23,502.923541,502.923541,502.923541,502.923541,1,502.923541
2004-06-22,502.389364,502.389364,502.389364,502.389364,1,502.389364
2004-06-21,501.794363,501.794363,501.794363,501.794363,1,501.794363
2004-06-18,501.144256,501.144256,501.144256,501.144256,1,501.144256
2004-06-17,500.445289,500.445289,500.445289,500.445289,1,500.445289
2004-06-16,499.704177,499.704177,499.704177,499.704177,1,499.704177
2004-06-15,498.928039,498.928039,498.928039,498.928039,1,498.928039
2004-06-14,498.124334,498.124334,498.124334,498.124334,1,498.124334
2004-06-10,497.300783,497.300783,497.300783,497.300783,1,497.300783
2004-06-09,496.465298,496.465298,496.465298,496.465298,1,496.465298
2004-06-08,495.625905,495.625905,495.625905,495.625905,1,495.625905
2004-06-07,494.790671,494.790671,494.790671,494.790671,1,494.790671
2004-06-04,493.967618,493.967618,493.967618,493.967618,1,493.967618
2004-06-03,493.164656,493.164656,493.164656,493.164656,1,493.164656
2004-06-02,492.389498,492.389498,492.389498,492.389498,1,492.389498
2004-06-01,491.649591,491.649591,491.649591,491.649591,1,491.649591
2004-05-28,490.952045,490.952045,490.952045,490.952045,1,490.952045
2004-05-27,490.303561,490.303561,490.303561,490.303561,1,490.303561
2004-05-26,489.710370,489.710370,489.710370,489.710370,1,489.710370
2004-05-25,489.178171,489.178171,489.178171,489.178171,1,489.178171
2004-05-24,488.712076,488.712076,488.712076,488.712076,1,488.712076
2004-05-21,488.316565,488.316565,488.316565,488.316565,1,488.316565
2004-05-20,487.995436,487.995436,487.995436,487.995436,1,487.995436
2004-05-19,487.751775,487.751775,487.751775,487.751775,1,487.751775
2004-05-18,487.587924,487.587924,487.587924,487.587924,1,487.587924
2004-05-17,487.505456,487.505456,487.505456,487.505456,1,487.505456
2004-05-14,487.505164,487.505164,487.505164,487.505164,1,487.505164
2004-05-13,487.587050,487.587050,487.587050,487.587050,1,487.587050
2004-05-12,487.750327,487.750327,487.750327,487.750327,1,487.750327
2004-05-11,487.993428,487.993428,487.993428,487.993428,1,487.993428
2004-05-10,488.314016,488.314016,488.314016,488.314016,1,488.314016
2004-05-07,488.709012,488.709012,488.709012,488.709012,1,488.709012
2004-05-06,489.174620,489.174620,489.174620,489.174620,1,489.174620
2004-05-05,489.706367,489.706367,489.706367,489.706367,1,489.706367
2004-05-04,490.299144,490.299144,490.299144,490.299144,1,490.299144
2004-05-03,490.947257,490.947257,490.947257,490.947257,1,490.947257
2004-04-30,491.644477,491.644477,491.644477,491.644477,1,491.644477
2004-04-29,492.384107,492.384107,492.384107,492.384107,1,492.384107
2004-04-28,493.159041,493.159041,493.159041,493.159041,1,493.159041
2004-04-27,493.961833,493.961833,493.961833,493.961833,1,493.961833
2004-04-26,494.784770,494.784770,494.784770,494.784770,1,494.784770
2004-04-23,495.619946,495.619946,495.619946,495.619946,1,495.619946
2004-04-22,496.459337,496.459337,496.459337,496.459337,1,496.459337
2004-04-21,497.294879,497.294879,497.294879,497.294879,1,497.294879
2004-04-20,498.118543,498.118543,498.118543,498.118543,1,498.118543
2004-04-19,498.922417,498.922417,498.922417,498.922417,1,498.922417
2004-04-16,499.698776,499.698776,499.698776,499.698776,1,499.698776
2004-04-15,500.440163,500.440163,500.440163,500.440163,1,500.440163
2004-04-14,501.139454,501.139454,501.139454,501.139454,1,501.139454
2004-04-13,501.789931,501.789931,501.789931,501.789931,1,501.789931
2004-04-12,502.385344,502.385344,502.385344,502.385344,1,502.385344
2004-04-08,502.919973,502.919973,502.919973,502.919973,1,502.919973
2004-04-07,503.388680,503.388680,503.388680,503.388680,1,503.388680
2004-04-06,503.786964,503.786964,503.786964,503.786964,1,503.786964
2004-04-05,504.110997,504.110997,504.110997,504.110997,1,504.110997
2004-04-02,504.357667,504.357667,504.357667,504.357667,1,504.357667
2004-04-01,504.524602,504.524602,504.524602,504.524602,1,504.524602
2004-03-31,504.610201,504.610201,504.610201,504.610201,1,504.610201
2004-03-30,504.613639,504.613639,504.613639,504.613639,1,504.613639
2004-03-29,504.534885,504.534885,504.534885,504.534885,1,504.534885
2004-03-26,504.374694,504.374694,504.374694,504.374694,1,504.374694
2004-03-25,504.134606,504.134606,504.134606,504.134606,1,504.134606
2004-03-24,503.816927,503.816927,503.816927,503.816927,1,503.816927
2004-03-23,503.424711,503.424711,503.424711,503.424711,1,503.424711
2004-03-22,502.961723,502.961723,502.961723,502.961723,1,502.961723
2004-03-19,502.432414,502.432414,502.432414,502.432414,1,502.432414
2004-03-18,501.841869,501.841869,501.841869,501.841869,1,501.841869
2004-03-17,501.195760,501.195760,501.195760,501.195760,1,501.195760
2004-03-16,500.500297,500.500297,500.500297,500.500297,1,500.500297
2004-03-15,499.762159,499.762159,499.762159,499.762159,1,499.762159
2004-03-12,498.988440,498.988440,498.988440,498.988440,1,498.988440
2004-03-11,498.186573,498.186573,498.186573,498.186573,1,498.186573
2004-03-10,497.364261,497.364261,497.364261,497.364261,1,497.364261
2004-03-09,496.529406,496.529406,496.529406,496.529406,1,496.529406
2004-03-08,495.690027,495.690027,495.690027,495.690027,1,495.690027
2004-03-05,494.854191,494.854191,494.854191,494.854191,1,494.854191
2004-03-04,494.029926,494.029926,494.029926,494.029926,1,494.029926
2004-03-03,493.225153,493.225153,493.225153,493.225153,1,493.225153
2004-03-02,492.447602,492.447602,492.447602,492.447602,1,492.447602
2004-03-01,491.704745,491.704745,491.704745,491.704745,1,491.704745
2004-02-27,491.003719,491.003719,491.003719,491.003719,1,491.003719
2004-02-26,490.351258,490.351258,490.351258,490.351258,1,490.351258
2004-02-25,489.753632,489.753632,489.753632,489.753632,1,489.753632
2004-02-24,489.216582,489.216582,489.216582,489.216582,1,489.216582
2004-02-23,488.745268,488.745268,488.745268,488.745268,1,488.745268
2004-02-20,488.344218,488.344218,488.344218,488.344218,1,488.344218
2004-02-19,488.017285,488.017285,488.017285,488.017285,1,488.017285
2004-02-18,487.767610,487.767610,487.767610,487.767610,1,487.767610
2004-02-17,487.597592,487.597592,487.597592,487.597592,1,487.597592
2004-02-13,487.508865,487.508865,487.508865,487.508865,1,487.508865
2004-02-12,487.502280,487.502280,487.502280,487.502280,1,487.502280
2004-02-11,487.577902,487.577902,487.577902,487.577902,1,487.577902
2004-02-10,487.735003,487.735003,487.735003,487.735003,1,487.735003
2004-02-09,487.972075,487.972075,487.972075,487.972075,1,487.972075
2004-02-06,488.286839,488.286839,488.286839,488.286839,1,488.286839
2004-02-05,488.676272,488.676272,488.676272,488.676272,1,488.676272
2004-02-04,489.136632,489.136632,489.136632,489.136632,1,489.136632
2004-02-03,489.663495,489.663495,489.663495,489.663495,1,489.663495
2004-02-02,490.251801,490.251801,490.251801,490.251801,1,490.251801
2004-01-30,490.895897,490.895897,490.895897,490.895897,1,490.895897
2004-01-29,491.589594,491.589594,491.589594,491.589594,1,491.589594
2004-01-28,492.326228,492.326228,492.326228,492.326228,1,492.326228
2004-01-27,493.098722,493.098722,493.098722,493.098722,1,493.098722
2004-01-26,493.899654,493.899654,493.899654,493.899654,1,493.899654
2004-01-23,494.721328,494.721328,494.721328,494.721328,1,494.721328
2004-01-22,495.555851,495.555851,495.555851,495.555851,1,495.555851
2004-01-21,496.395204,496.395204,496.395204,496.395204,1,496.395204
2004-01-20,497.231324,497.231324,497.231324,497.231324,1,497.231324
2004-01-16,498.056178,498.056178,498.056178,498.056178,1,498.056178
2004-01-15,498.861840,498.861840,498.861840,498.861840,1,498.861840
2004-01-14,499.640570,499.640570,499.640570,499.640570,1,499.640570
2004-01-13,500.384887,500.384887,500.384887,500.384887,1,500.384887
2004-01-12,501.087638,501.087638,501.087638,501.087638,1,501.087638
2004-01-09,501.742074,501.742074,501.742074,501.742074,1,501.742074
2004-01-08,502.341905,502.341905,502.341905,502.341905,1,502.341905
2004-01-07,502.881369,502.881369,502.881369,502.881369,1,502.881369
2004-01-06,503.355283,503.355283,503.355283,503.355283,1,503.355283
2004-01-05,503.759094,503.759094,503.759094,503.759094,1,503.759094
2004-01-02,504.088923,504.088923,504.088923,504.088923,1,504.088923
2003-12-31,504.341599,504.341599,504.341599,504.341599,1,504.341599
2003-12-30,504.514697,504.514697,504.514697,504.514697,1,504.514697
2003-12-29,504.606552,504.606552,504.606552,504.606552,1,504.606552
2003-12-26,504.616282,504.616282,504.616282,504.616282,1,504.616282
2003-12-24,504.543794,504.543794,504.543794,504.543794,1,504.543794
2003-12-23,504.389784,504.389784,504.389784,504.389784,1,504.389784
2003-12-22,504.155732,504.155732,504.155732,504.155732,1,504.155732
2003-12-19,503.843887,503.843887,503.843887,503.843887,1,503.843887
2003-12-18,503.457243,503.457243,503.457243,503.457243,1,503.457243
2003-12-17,502.999518,502.999518,502.999518,502.999518,1,502.999518
2003-12-16,502.475107,502.475107,502.475107,502.475107,1,502.475107
2003-12-15,501.889049,501.889049,501.889049,501.889049,1,501.889049
2003-12-12,501.246976,501.246976,501.246976,501.246976,1,501.246976
2003-12-11,500.555055,500.555055,500.555055,500.555055,1,500.555055
2003-12-10,499.819934,499.819934,499.819934,499.819934,1,499.819934
2003-12-09,499.048676,499.048676,499.048676,499.048676,1,499.048676
2003-12-08,498.248692,498.248692,498.248692,498.248692,1,498.248692
2003-12-05,497.427666,497.427666,497.427666,497.427666,1,497.427666
2003-12-04,496.593487,496.593487,496.593487,496.593487,1,496.593487
2003-12-03,495.754170,495.754170,495.754170,495.754170,1,495.754170
2003-12-02,494.917779,494.917779,494.917779,494.917779,1,494.917779
2003-12-01,494.092348,494.092348,494.092348,494.092348,1,494.092348
2003-11-28,493.285809,493.285809,493.285809,493.285809,1,493.285809
2003-11-26,492.505910,492.505910,492.505910,492.505910,1,492.505910
2003-11-25,491.760144,491.760144,491.760144,491.760144,1,491.760144
2003-11-24,491.055677,491.055677,491.055677,491.055677,1,491.055677
2003-11-21,490.399276,490.399276,490.399276,490.399276,1,490.399276
2003-11-20,489.797248,489.797248,489.797248,489.797248,1,489.797248
2003-11-19,489.255378,489.255378,489.255378,489.255378,1,489.255378
2003-11-18,488.778870,488.778870,488.778870,488.778870,1,488.778870
2003-11-17,488.372304,488.372304,488.372304,488.372304,1,488.372304
2003-11-14,488.039585,488.039585,488.039585,488.039585,1,488.039585
2003-11-13,487.783910,487.783910,487.783910,487.783910,1,487.783910
2003-11-12,487.607735,487.607735,487.607735,487.607735,1,487.607735
2003-11-11,487.512754,487.512754,487.512754,487.512754,1,487.512754
2003-11-10,487.499878,487.499878,487.499878,487.499878,1,487.499878
2003-11-07,487.569231,487.569231,487.569231,487.569231,1,487.569231
2003-11-06,487.720147,487.720147,487.720147,487.720147,1,487.720147
2003-11-05,487.951176,487.951176,487.951176,487.951176,1,487.951176
2003-11-04,488.260099,488.260099,488.260099,488.260099,1,488.260099
2003-11-03,488.643947,488.643947,488.643947,488.643947,1,488.643947
2003-10-31,489.099032,489.099032,489.099032,489.099032,1,489.099032
2003-10-30,489.620983,489.620983,489.620983,489.620983,1,489.620983
2003-10-29,490.204784,490.204784,490.204784,490.204784,1,490.204784
2003-10-28,490.844827,490.844827,490.844827,490.844827,1,490.844827
2003-10-27,491.534962,491.534962,491.534962,491.534962,1,491.534962
2003-10-24,492.268559,492.268559,492.268559,492.268559,1,492.268559
2003-10-23,493.038569,493.038569,493.038569,493.038569,1,493.038569
2003-10-22,493.837596,493.837596,493.837596,493.837596,1,493.837596
2003-10-21,494.657961,494.657961,494.657961,494.657961,1,494.657961
2003-10-20,495.491784,495.491784,495.491784,495.491784,1,495.491784
2003-10-17,496.331052,496.331052,496.331052,496.331052,1,496.331052
2003-10-16,497.167704,497.167704,497.167704,497.167704,1,497.167704
2003-10-15,497.993701,497.993701,497.993701,497.993701,1,497.993701
2003-10-14,498.801106,498.801106,498.801106,498.801106,1,498.801106
2003-10-13,499.582162,499.582162,499.582162,499.582162,1,499.582162
2003-10-10,500.329367,500.329367,500.329367,500.329367,1,500.329367
2003-10-09,501.035540,501.035540,501.035540,501.035540,1,501.035540
2003-10-08,501.693897,501.693897,501.693897,501.693897,1,501.693897
2003-10-07,502.298112,502.298112,502.298112,502.298112,1,502.298112
2003-10-06,502.842382,502.842382,502.842382,502.842382,1,502.842382
2003-10-03,503.321476,503.321476,503.321476,503.321476,1,503.321476
2003-10-02,503.730792,503.730792,503.730792,503.730792,1,503.730792
2003-10-01,504.066397,504.066397,504.066397,504.066397,1,504.066397
2003-09-30,504.325067,504.325067,504.325067,504.325067,1,504.325067
2003-09-29,504.504316,504.504316,504.504316,504.504316,1,504.504316
2003-09-26,504.602423,504.602423,504.602423,504.602423,1,504.602423
2003-09-25,504.618444,504.618444,504.618444,504.618444,1,504.618444
2003-09-24,504.552227,504.552227,504.552227,504.552227,1,504.552227
2003-09-23,504.404406,504.404406,504.404406,504.404406,1,504.404406
2003-09-22,504.176403,504.176403,504.176403,504.176403,1,504.176403
2003-09-19,503.870408,503.870408,503.870408,503.870408,1,503.870408
2003-09-18,503.489361,503.489361,503.489361,503.489361,1,503.489361
2003-09-17,503.036922,503.036922,503.036922,503.036922,1,503.036922
2003-09-16,502.517439,502.517439,502.517439,502.517439,1,502.517439
2003-09-15,501.935902,501.935902,501.935902,501.935902,1,501.935902
2003-09-12,501.297899,501.297899,501.297899,501.297899,1,501.297899
2003-09-11,500.609560,500.609560,500.609560,500.609560,1,500.609560
2003-09-10,499.877497,499.877497,499.877497,499.877497,1,499.877497
2003-09-09,499.108744,499.108744,499.108744,499.108744,1,499.108744
2003-09-08,498.310687,498.310687,498.310687,498.310687,1,498.310687
2003-09-05,497.490994,497.490994,497.490994,497.490994,1,497.490994
2003-09-04,496.657539,496.657539,496.657539,496.657539,1,496.657539
2003-09-03,495.818330,495.818330,495.818330,495.818330,1,495.818330
2003-09-02,494.981430,494.981430,494.981430,494.981430,1,494.981430
2003-08-29,494.154880,494.154880,494.154880,494.154880,1,494.154880
2003-08-28,493.346620,493.346620,493.346620,493.346620,1,493.346620
2003-08-27,492.564417,492.564417,492.564417,492.564417,1,492.564417
2003-08-26,491.815784,491.815784,491.815784,491.815784,1,491.815784
2003-08-25,491.107916,491.107916,491.107916,491.107916,1,491.107916
2003-08-22,490.447612,490.447612,490.447612,490.447612,1,490.447612
2003-08-21,489.841216,489.841216,489.841216,489.841216,1,489.841216
2003-08-20,489.294555,489.294555,489.294555,489.294555,1,489.294555
2003-08-19,488.812881,488.812881,488.812881,488.812881,1,488.812881
2003-08-18,488.400822,488.400822,488.400822,488.400822,1,488.400822
2003-08-15,488.062336,488.062336,488.062336,488.062336,1,488.062336
2003-08-14,487.800675,487.800675,487.800675,487.800675,1,487.800675
2003-08-13,487.618353,487.618353,487.618353,487.618353,1,487.618353
2003-08-12,487.517123,487.517123,487.517123,487.517123,1,487.517123
2003-08-11,487.497956,487.497956,487.497956,487.497956,1,487.497956
2003-08-08,487.561037,487.561037,487.561037,487.561037,1,487.561037
2003-08-07,487.705759,487.705759,487.705759,487.705759,1,487.705759
2003-08-06,487.930733,487.930733,487.930733,487.930733,1,487.930733
2003-08-05,488.233796,488.233796,488.233796,488.233796,1,488.233796
2003-08-04,488.612038,488.612038,488.612038,488.612038,1,488.612038
2003-08-01,489.061824,489.061824,489.061824,489.061824,1,489.061824
2003-07-31,489.578832,489.578832,489.578832,489.578832,1,489.578832
2003-07-30,490.158096,490.158096,490.158096,490.158096,1,490.158096
2003-07-29,490.794050,490.794050,490.794050,490.794050,1,490.794050
2003-07-28,491.480584,491.480584,491.480584,491.480584,1,491.480584
2003-07-25,492.211102,492.211102,492.211102,492.211102,1,492.211102
2003-07-24,492.978587,492.978587,492.978587,492.978587,1,492.978587
2003-07-23,493.775663,493.775663,493.775663,493.775663,1,493.775663
2003-07-22,494.594673,494.594673,494.594673,494.594673,1,494.594673
2003-07-21,495.427748,495.427748,495.427748,495.427748,1,495.427748
2003-07-18,496.266885,496.266885,496.266885,496.266885,1,496.266885
2003-07-17,497.104022,497.104022,497.104022,497.104022,1,497.104022
2003-07-16,497.931114,497.931114,497.931114,497.931114,1,497.931114
2003-07-15,498.740217,498.740217,498.740217,498.740217,1,498.740217
2003-07-14,499.523557,499.523557,499.523557,499.523557,1,499.523557
2003-07-11,500.273607,500.273607,500.273607,500.273607,1,500.273607
2003-07-10,500.983161,500.983161,500.983161,500.983161,1,500.983161
2003-07-09,501.645403,501.645403,501.645403,501.645403,1,501.645403
2003-07-08,502.253969,502.253969,502.253969,502.253969,1,502.253969
2003-07-07,502.803014,502.803014,502.803014,502.803014,1,502.803014
2003-07-03,503.287261,503.287261,503.287261,503.287261,1,503.287261
2003-07-02,503.702058,503.702058,503.702058,503.702058,1,503.702058
2003-07-01,504.043421,504.043421,504.043421,504.043421,1,504.043421
2003-06-30,504.308069,504.308069,504.308069,504.308069,1,504.308069
2003-06-27,504.493461,504.493461,504.493461,504.493461,1,504.493461
2003-06-26,504.597813,504.597813,504.597813,504.597813,1,504.597813
2003-06-25,504.620125,504.620125,504.620125,504.620125,1,504.620125
2003-06-24,504.560182,504.560182,504.560182,504.560182,1,504.560182
2003-06-23,504.418560,504.418560,504.418560,504.418560,1,504.418560
2003-06-20,504.196618,504.196618,504.196618,504.196618,1,504.196618
2003-06-19,503.896491,503.896491,503.896491,503.896491,1,503.896491
2003-06-18,503.521060,503.521060,503.521060,503.521060,1,503.521060
2003-06-17,503.073934,503.073934,503.073934,503.073934,1,503.073934
2003-06-16,502.559408,502.559408,502.559408,502.559408,1,502.559408
2003-06-13,501.982425,501.982425,501.982425,501.982425,1,501.982425
2003-06-12,501.348529,501.348529,501.348529,501.348529,1,501.348529
2003-06-11,500.663809,500.663809,500.663809,500.663809,1,500.663809
2003-06-10,499.934846,499.934846,499.934846,499.934846,1,499.934846
2003-06-09,499.168641,499.168641,499.168641,499.168641,1,499.168641
2003-06-06,498.372557,498.372557,498.372557,498.372557,1,498.372557
2003-06-05,497.554241,497.554241,497.554241,497.554241,1,497.554241
2003-06-04,496.721557,496.721557,496.721557,496.721557,1,496.721557
2003-06-03,495.882504,495.882504,495.882504,495.882504,1,495.882504
2003-06-02,495.045143,495.045143,495.045143,495.045143,1,495.045143
2003-05-30,494.217519,494.217519,494.217519,494.217519,1,494.217519
2003-05-29,493.407584,493.407584,493.407584,493.407584,1,493.407584
2003-05-28,492.623120,492.623120,492.623120,492.623120,1,492.623120
2003-05-27,491.871663,491.871663,491.871663,491.871663,1,491.871663
2003-05-23,491.160433,491.160433,491.160433,491.160433,1,491.160433
2003-05-22,490.496262,490.496262,490.496262,490.496262,1,490.496262
2003-05-21,489.885534,489.885534,489.885534,489.885534,1,489.885534
2003-05-20,489.334113,489.334113,489.334113,489.334113,1,489.334113
2003-05-19,488.847300,488.847300,488.847300,488.847300,1,488.847300
2003-05-16,488.429770,488.429770,488.429770,488.429770,1,488.429770
2003-05-15,488.085536,488.085536,488.085536,488.085536,1,488.085536
2003-05-14,487.817904,487.817904,487.817904,487.817904,1,487.817904
2003-05-13,487.629446,487.629446,487.629446,487.629446,1,487.629446
2003-05-12,487.521972,487.521972,487.521972,487.521972,1,487.521972
2003-05-09,487.496515,487.496515,487.496515,487.496515,1,487.496515
2003-05-08,487.553320,487.553320,487.553320,487.553320,1,487.553320
2003-05-07,487.691841,487.691841,487.691841,487.691841,1,487.691841
2003-05-06,487.910746,487.910746,487.910746,487.910746,1,487.910746
2003-05-05,488.207934,488.207934,488.207934,488.207934,1,488.207934
2003-05-02,488.580548,488.580548,488.580548,488.580548,1,488.580548
2003-05-01,489.025008,489.025008,489.025008,489.025008,1,489.025008
2003-04-30,489.537045,489.537045,489.537045,489.537045,1,489.537045
2003-04-29,490.111739,490.111739,490.111739,490.111739,1,490.111739
2003-04-28,490.743569,490.743569,490.743569,490.743569,1,490.743569
2003-04-25,491.426463,491.426463,491.426463,491.426463,1,491.426463
2003-04-24,492.153862,492.153862,492.153862,492.153862,1,492.153862
2003-04-23,492.918777,492.918777,492.918777,492.918777,1,492.918777
2003-04-22,493.713858,493.713858,493.713858,493.713858,1,493.713858
2003-04-21,494.531467,494.531467,494.531467,494.531467,1,494.531467
2003-04-17,495.363749,495.363749,495.363749,495.363749,1,495.363749
2003-04-16,496.202706,496.202706,496.202706,496.202706,1,496.202706
2003-04-15,497.040280,497.040280,497.040280,497.040280,1,497.040280
2003-04-14,497.868423,497.868423,497.868423,497.868423,1,497.868423
2003-04-11,498.679178,498.679178,498.679178,498.679178,1,498.679178
2003-04-10,499.464757,499.464757,499.464757,499.464757,1,499.464757
2003-04-09,500.217610,500.217610,500.217610,500.217610,1,500.217610
2003-04-08,500.930506,500.930506,500.930506,500.930506,1,500.930506
2003-04-07,501.596596,501.596596,501.596596,501.596596,1,501.596596
2003-04-04,502.209478,502.209478,502.209478,502.209478,1,502.209478
2003-04-03,502.763267,502.763267,502.763267,502.763267,1,502.763267
2003-04-02,503.252640,503.252640,503.252640,503.252640,1,503.252640
2003-04-01,503.672895,503.672895,503.672895,503.672895,1,503.672895
2003-03-31,504.019997,504.019997,504.019997,504.019997,1,504.019997
2003-03-28,504.290609,504.290609,504.290609,504.290609,1,504.290609
2003-03-27,504.482131,504.482131,504.482131,504.482131,1,504.482131
2003-03-26,504.592724,504.592724,504.592724,504.592724,1,504.592724
2003-03-25,504.621325,504.621325,504.621325,504.621325,1,504.621325
2003-03-24,504.567660,504.567660,504.567660,504.567660,1,504.567660
2003-03-21,504.432243,504.432243,504.432243,504.432243,1,504.432243
2003-03-20,504.216376,504.216376,504.216376,504.216376,1,504.216376
2003-03-19,503.922133,503.922133,503.922133,503.922133,1,503.922133
2003-03-18,503.552341,503.552341,503.552341,503.552341,1,503.552341
2003-03-17,503.110552,503.110552,503.110552,503.110552,1,503.110552
2003-03-14,502.601012,502.601012,502.601012,502.601012,1,502.601012
2003-03-13,502.028615,502.028615,502.028615,502.028615,1,502.028615
2003-03-12,501.398861,501.398861,501.398861,501.398861,1,501.398861
2003-03-11,500.717800,500.717800,500.717800,500.717800,1,500.717800
2003-03-10,499.991977,499.991977,499.991977,499.991977,1,499.991977
2003-03-07,499.228363,499.228363,499.228363,499.228363,1,499.228363
2003-03-06,498.434296,498.434296,498.434296,498.434296,1,498.434296
2003-03-05,497.617405,497.617405,497.617405,497.617405,1,497.617405
2003-03-04,496.785538,496.785538,496.785538,496.785538,1,496.785538
2003-03-03,495.946687,495.946687,495.946687,495.946687,1,495.946687
2003-02-28,495.108912,495.108912,495.108912,495.108912,1,495.108912
2003-02-27,494.280262,494.280262,494.280262,494.280262,1,494.280262
2003-02-26,493.468697,493.468697,493.468697,493.468697,1,493.468697
2003-02-25,492.682016,492.682016,492.682016,492.682016,1,492.682016
2003-02-24,491.927777,491.927777,491.927777,491.927777,1,491.927777
2003-02-21,491.213225,491.213225,491.213225,491.213225,1,491.213225
2003-02-20,490.545226,490.545226,490.545226,490.545226,1,490.545226
2003-02-19,489.930198,489.930198,489.930198,489.930198,1,489.930198
2003-02-18,489.374049,489.374049,489.374049,489.374049,1,489.374049
2003-02-14,488.882124,488.882124,488.882124,488.882124,1,488.882124
2003-02-13,488.459147,488.459147,488.459147,488.459147,1,488.459147
2003-02-12,488.109184,488.109184,488.109184,488.109184,1,488.109184
2003-02-11,487.835596,487.835596,487.835596,487.835596,1,487.835596
2003-02-10,487.641012,487.641012,487.641012,487.641012,1,487.641012
2003-02-07,487.527301,487.527301,487.527301,487.527301,1,487.527301
2003-02-06,487.495556,487.495556,487.495556,487.495556,1,487.495556
2003-02-05,487.546081,487.546081,487.546081,487.546081,1,487.546081
2003-02-04,487.678392,487.678392,487.678392,487.678392,1,487.678392
2003-02-03,487.891218,487.891218,487.891218,487.891218,1,487.891218
2003-01-31,488.182512,488.182512,488.182512,488.182512,1,488.182512
2003-01-30,488.549478,488.549478,488.549478,488.549478,1,488.549478
2003-01-29,488.988588,488.988588,488.988588,488.988588,1,488.988588
2003-01-28,489.495625,489.495625,489.495625,489.495625,1,489.495625
2003-01-27,490.065717,490.065717,490.065717,490.065717,1,490.065717
2003-01-24,490.693386,490.693386,490.693386,490.693386,1,490.693386
2003-01-23,491.372603,491.372603,491.372603,491.372603,1,491.372603
2003-01-22,492.096842,492.096842,492.096842,492.096842,1,492.096842
2003-01-21,492.859143,492.859143,492.859143,492.859143,1,492.859143
2003-01-17,493.652185,493.652185,493.652185,493.652185,1,493.652185
2003-01-16,494.468347,494.468347,494.468347,494.468347,1,494.468347
2003-01-15,495.299788,495.299788,495.299788,495.299788,1,495.299788
2003-01-14,496.138519,496.138519,496.138519,496.138519,1,496.138519
2003-01-13,496.976484,496.976484,496.976484,496.976484,1,496.976484
2003-01-10,497.805630,497.805630,497.805630,497.805630,1,497.805630
2003-01-09,498.617992,498.617992,498.617992,498.617992,1,498.617992
2003-01-08,499.405765,499.405765,499.405765,499.405765,1,499.405765
2003-01-07,500.161380,500.161380,500.161380,500.161380,1,500.161380
2003-01-06,500.877578,500.877578,500.877578,500.877578,1,500.877578
2003-01-03,501.547477,501.547477,501.547477,501.547477,1,501.547477
2003-01-02,502.164642,502.164642,502.164642,502.164642,1,502.164642
2002-12-31,502.723143,502.723143,502.723143,502.723143,1,502.723143
2002-12-30,503.217614,503.217614,503.217614,503.217614,1,503.217614
2002-12-27,503.643305,503.643305,503.643305,503.643305,1,503.643305
2002-12-26,503.996125,503.996125,503.996125,503.996125,1,503.996125
2002-12-24,504.272685,504.272685,504.272685,504.272685,1,504.272685
2002-12-23,504.470329,504.470329,504.470329,504.470329,1,504.470329
2002-12-20,504.587156,504.587156,504.587156,504.587156,1,504.587156
2002-12-19,504.622044,504.622044,504.622044,504.622044,1,504.622044
2002-12-18,504.574659,504.574659,504.574659,504.574659,1,504.574659
2002-12-17,504.445456,504.445456,504.445456,504.445456,1,504.445456
2002-12-16,504.235676,504.235676,504.235676,504.235676,1,504.235676
2002-12-13,503.947334,503.947334,503.947334,503.947334,1,503.947334
2002-12-12,503.583200,503.583200,503.583200,503.583200,1,503.583200
2002-12-11,503.146774,503.146774,503.146774,503.146774,1,503.146774
2002-12-10,502.642248,502.642248,502.642248,502.642248,1,502.642248
2002-12-09,502.074469,502.074469,502.074469,502.074469,1,502.074469
2002-12-06,501.448893,501.448893,501.448893,501.448893,1,501.448893
2002-12-05,500.771529,500.771529,500.771529,500.771529,1,500.771529
2002-12-04,500.048886,500.048886,500.048886,500.048886,1,500.048886
2002-12-03,499.287907,499.287907,499.287907,499.287907,1,499.287907
2002-12-02,498.495902,498.495902,498.495902,498.495902,1,498.495902
2002-11-29,497.680481,497.680481,497.680481,497.680481,1,497.680481
2002-11-27,496.849478,496.849478,496.849478,496.849478,1,496.849478
2002-11-26,496.010877,496.010877,496.010877,496.010877,1,496.010877
2002-11-25,495.172735,495.172735,495.172735,495.172735,1,495.172735
2002-11-22,494.343104,494.343104,494.343104,494.343104,1,494.343104
2002-11-21,493.529956,493.529956,493.529956,493.529956,1,493.529956
2002-11-20,492.741103,492.741103,492.741103,492.741103,1,492.741103
2002-11-19,491.984123,491.984123,491.984123,491.984123,1,491.984123
2002-11-18,491.266289,491.266289,491.266289,491.266289,1,491.266289
2002-11-15,490.594499,490.594499,490.594499,490.594499,1,490.594499
2002-11-14,489.975206,489.975206,489.975206,489.975206,1,489.975206
2002-11-13,489.414361,489.414361,489.414361,489.414361,1,489.414361
2002-11-12,488.917351,488.917351,488.917351,488.917351,1,488.917351
2002-11-11,488.488951,488.488951,488.488951,488.488951,1,488.488951
2002-11-08,488.133279,488.133279,488.133279,488.133279,1,488.133279
2002-11-07,487.853750,487.853750,487.853750,487.853750,1,487.853750
2002-11-06,487.653051,487.653051,487.653051,487.653051,1,487.653051
2002-11-05,487.533109,487.533109,487.533109,487.533109,1,487.533109
2002-11-04,487.495077,487.495077,487.495077,487.495077,1,487.495077
2002-11-01,487.539321,487.539321,487.539321,487.539321,1,487.539321
2002-10-31,487.665415,487.665415,487.665415,487.665415,1,487.665415
2002-10-30,487.872148,487.872148,487.872148,487.872148,1,487.872148
2002-10-29,488.157533,488.157533,488.157533,488.157533,1,488.157533
2002-10-28,488.518829,488.518829,488.518829,488.518829,1,488.518829
2002-10-25,488.952565,488.952565,488.952565,488.952565,1,488.952565
2002-10-24,489.454573,489.454573,489.454573,489.454573,1,489.454573
2002-10-23,490.020031,490.020031,490.020031,490.020031,1,490.020031
2002-10-22,490.643505,490.643505,490.643505,490.643505,1,490.643505
2002-10-21,491.319006,491.319006,491.319006,491.319006,1,491.319006
2002-10-18,492.040043,492.040043,492.040043,492.040043,1,492.040043
2002-10-17,492.799690,492.799690,492.799690,492.799690,1,492.799690
2002-10-16,493.590647,493.590647,493.590647,493.590647,1,493.590647
2002-10-15,494.405316,494.405316,494.405316,494.405316,1,494.405316
2002-10-14,495.235870,495.235870,495.235870,495.235870,1,495.235870
2002-10-11,496.074328,496.074328,496.074328,496.074328,1,496.074328
2002-10-10,496.912636,496.912636,496.912636,496.912636,1,496.912636
2002-10-09,497.742739,497.742739,497.742739,497.742739,1,497.742739
2002-10-08,498.556662,498.556662,498.556662,498.556662,1,498.556662
2002-10-07,499.346585,499.346585,499.346585,499.346585,1,499.346585
2002-10-04,500.104919,500.104919,500.104919,500.104919,1,500.104919
2002-10-03,500.824378,500.824378,500.824378,500.824378,1,500.824378
2002-10-02,501.498050,501.498050,501.498050,501.498050,1,501.498050
2002-10-01,502.119462,502.119462,502.119462,502.119462,1,502.119462
2002-09-30,502.682644,502.682644,502.682644,502.682644,1,502.682644
2002-09-27,503.182186,503.182186,503.182186,503.182186,1,503.182186
2002-09-26,503.613288,503.613288,503.613288,503.613288,1,503.613288
2002-09-25,503.971807,503.971807,503.971807,503.971807,1,503.971807
2002-09-24,504.254301,504.254301,504.254301,504.254301,1,504.254301
2002-09-23,504.458053,504.458053,504.458053,504.458053,1,504.458053
2002-09-20,504.581108,504.581108,504.581108,504.581108,1,504.581108
2002-09-19,504.622282,504.622282,504.622282,504.622282,1,504.622282
2002-09-18,504.581181,504.581181,504.581181,504.581181,1,504.581181
2002-09-17,504.458198,504.458198,504.458198,504.458198,1,504.458198
2002-09-16,504.254516,504.254516,504.254516,504.254516,1,504.254516
2002-09-13,503.972091,503.972091,503.972091,503.972091,1,503.972091
2002-09-12,503.613637,503.613637,503.613637,503.613637,1,503.613637
2002-09-11,503.182597,503.182597,503.182597,503.182597,1,503.182597
2002-09-10,502.683114,502.683114,502.683114,502.683114,1,502.683114
2002-09-09,502.119986,502.119986,502.119986,502.119986,1,502.119986
2002-09-06,501.498622,501.498622,501.498622,501.498622,1,501.498622
2002-09-05,500.824994,500.824994,500.824994,500.824994,1,500.824994
2002-09-04,500.105572,500.105572,500.105572,500.105572,1,500.105572
2002-09-03,499.347269,499.347269,499.347269,499.347269,1,499.347269
2002-08-30,498.557371,498.557371,498.557371,498.557371,1,498.557371
2002-08-29,497.743465,497.743465,497.743465,497.743465,1,497.743465
2002-08-28,496.913373,496.913373,496.913373,496.913373,1,496.913373
2002-08-27,496.075069,496.075069,496.075069,496.075069,1,496.075069
2002-08-26,495.236607,495.236607,495.236607,495.236607,1,495.236607
2002-08-23,494.406043,494.406043,494.406043,494.406043,1,494.406043
2002-08-22,493.591357,493.591357,493.591357,493.591357,1,493.591357
2002-08-21,492.800375,492.800375,492.800375,492.800375,1,492.800375
2002-08-20,492.040698,492.040698,492.040698,492.040698,1,492.040698
2002-08-19,491.319623,491.319623,491.319623,491.319623,1,491.319623
2002-08-16,490.644079,490.644079,490.644079,490.644079,1,490.644079
2002-08-15,490.020556,490.020556,490.020556,490.020556,1,490.020556
2002-08-14,489.455045,489.455045,489.455045,489.455045,1,489.455045
2002-08-13,488.952979,488.952979,488.952979,488.952979,1,488.952979
2002-08-12,488.519181,488.519181,488.519181,488.519181,1,488.519181
2002-08-09,488.157819,488.157819,488.157819,488.157819,1,488.157819
2002-08-08,487.872365,487.872365,487.872365,487.872365,1,487.872365
2002-08-07,487.665562,487.665562,487.665562,487.665562,1,487.665562
2002-08-06,487.539396,487.539396,487.539396,487.539396,1,487.539396
2002-08-05,487.495080,487.495080,487.495080,487.495080,1,487.495080
2002-08-02,487.533039,487.533039,487.533039,487.533039,1,487.533039
2002-08-01,487.652909,487.652909,487.652909,487.652909,1,487.652909
2002-07-31,487.853538,487.853538,487.853538,487.853538,1,487.853538
2002-07-30,488.132998,488.132998,488.132998,488.132998,1,488.132998
2002-07-29,488.488605,488.488605,488.488605,488.488605,1,488.488605
2002-07-26,488.916942,488.916942,488.916942,488.916942,1,488.916942
2002-07-25,489.413893,489.413893,489.413893,489.413893,1,489.413893
2002-07-24,489.974685,489.974685,489.974685,489.974685,1,489.974685
2002-07-23,490.593929,490.593929,490.593929,490.593929,1,490.593929
2002-07-22,491.265675,491.265675,491.265675,491.265675,1,491.265675
2002-07-19,491.983471,491.983471,491.983471,491.983471,1,491.983471
2002-07-18,492.740419,492.740419,492.740419,492.740419,1,492.740419
2002-07-17,493.529248,493.529248,493.529248,493.529248,1,493.529248
2002-07-16,494.342378,494.342378,494.342378,494.342378,1,494.342378
2002-07-15,495.171998,495.171998,495.171998,495.171998,1,495.171998
2002-07-12,496.010136,496.010136,496.010136,496.010136,1,496.010136
2002-07-11,496.848740,496.848740,496.848740,496.848740,1,496.848740
2002-07-10,497.679753,497.679753,497.679753,497.679753,1,497.679753
2002-07-09,498.495191,498.495191,498.495191,498.495191,1,498.495191
2002-07-08,499.287221,499.287221,499.287221,499.287221,1,499.287221
2002-07-05,500.048231,500.048231,500.048231,500.048231,1,500.048231
2002-07-03,500.770911,500.770911,500.770911,500.770911,1,500.770911
2002-07-02,501.448317,501.448317,501.448317,501.448317,1,501.448317
2002-07-01,502.073942,502.073942,502.073942,502.073942,1,502.073942
2002-06-28,502.641774,502.641774,502.641774,502.641774,1,502.641774
2002-06-27,503.146358,503.146358,503.146358,503.146358,1,503.146358
2002-06-26,503.582846,503.582846,503.582846,503.582846,1,503.582846
2002-06-25,503.947045,503.947045,503.947045,503.947045,1,503.947045
2002-06-24,504.235455,504.235455,504.235455,504.235455,1,504.235455
2002-06-21,504.445306,504.445306,504.445306,504.445306,1,504.445306
2002-06-20,504.574581,504.574581,504.574581,504.574581,1,504.574581
2002-06-19,504.622039,504.622039,504.622039,504.622039,1,504.622039
2002-06-18,504.587223,504.587223,504.587223,504.587223,1,504.587223
2002-06-17,504.470468,504.470468,504.470468,504.470468,1,504.470468
2002-06-14,504.272895,504.272895,504.272895,504.272895,1,504.272895
2002-06-13,503.996403,503.996403,503.996403,503.996403,1,503.996403
2002-06-12,503.643649,503.643649,503.643649,503.643649,1,503.643649
2002-06-11,503.218021,503.218021,503.218021,503.218021,1,503.218021
2002-06-10,502.723608,502.723608,502.723608,502.723608,1,502.723608
2002-06-07,502.165161,502.165161,502.165161,502.165161,1,502.165161
2002-06-06,501.548046,501.548046,501.548046,501.548046,1,501.548046
2002-06-05,500.878190,500.878190,500.878190,500.878190,1,500.878190
2002-06-04,500.162030,500.162030,500.162030,500.162030,1,500.162030
2002-06-03,499.406447,499.406447,499.406447,499.406447,1,499.406447
2002-05-31,498.618699,498.618699,498.618699,498.618699,1,498.618699
2002-05-30,497.806355,497.806355,497.806355,497.806355,1,497.806355
2002-05-29,496.977221,496.977221,496.977221,496.977221,1,496.977221
2002-05-28,496.139260,496.139260,496.139260,496.139260,1,496.139260
2002-05-24,495.300526,495.300526,495.300526,495.300526,1,495.300526
2002-05-23,494.469075,494.469075,494.469075,494.469075,1,494.469075
2002-05-22,493.652896,493.652896,493.652896,493.652896,1,493.652896
2002-05-21,492.859831,492.859831,492.859831,492.859831,1,492.859831
2002-05-20,492.097498,492.097498,492.097498,492.097498,1,492.097498
2002-05-17,491.373223,491.373223,491.373223,491.373223,1,491.373223
2002-05-16,490.693964,490.693964,490.693964,490.693964,1,490.693964
2002-05-15,490.066246,490.066246,490.066246,490.066246,1,490.066246
2002-05-14,489.496101,489.496101,489.496101,489.496101,1,489.496101
2002-05-13,488.989006,488.989006,488.989006,488.989006,1,488.989006
2002-05-10,488.549834,488.549834,488.549834,488.549834,1,488.549834
2002-05-09,488.182803,488.182803,488.182803,488.182803,1,488.182803
2002-05-08,487.891440,487.891440,487.891440,487.891440,1,487.891440
2002-05-07,487.678545,487.678545,487.678545,487.678545,1,487.678545
2002-05-06,487.546162,487.546162,487.546162,487.546162,1,487.546162
2002-05-03,487.495564,487.495564,487.495564,487.495564,1,487.495564
2002-05-02,487.527237,487.527237,487.527237,487.527237,1,487.527237
2002-05-01,487.640876,487.640876,487.640876,487.640876,1,487.640876
2002-04-30,487.835389,487.835389,487.835389,487.835389,1,487.835389
2002-04-29,488.108908,488.108908,488.108908,488.108908,1,488.108908
2002-04-26,488.458806,488.458806,488.458806,488.458806,1,488.458806
2002-04-25,488.881719,488.881719,488.881719,488.881719,1,488.881719
2002-04-24,489.373586,489.373586,489.373586,489.373586,1,489.373586
2002-04-23,489.929680,489.929680,489.929680,489.929680,1,489.929680
2002-04-22,490.544659,490.544659,490.544659,490.544659,1,490.544659
2002-04-19,491.212614,491.212614,491.212614,491.212614,1,491.212614
2002-04-18,491.927128,491.927128,491.927128,491.927128,1,491.927128
2002-04-17,492.681335,492.681335,492.681335,492.681335,1,492.681335
2002-04-16,493.467991,493.467991,493.467991,493.467991,1,493.467991
2002-04-15,494.279537,494.279537,494.279537,494.279537,1,494.279537
2002-04-12,495.108176,495.108176,495.108176,495.108176,1,495.108176
2002-04-11,495.945946,495.945946,495.945946,495.945946,1,495.945946
2002-04-10,496.784799,496.784799,496.784799,496.784799,1,496.784799
2002-04-09,497.616676,497.616676,497.616676,497.616676,1,497.616676
2002-04-08,498.433584,498.433584,498.433584,498.433584,1,498.433584
2002-04-05,499.227675,499.227675,499.227675,499.227675,1,499.227675
2002-04-04,499.991318,499.991318,499.991318,499.991318,1,499.991318
2002-04-03,500.717179,500.717179,500.717179,500.717179,1,500.717179
2002-04-02,501.398282,501.398282,501.398282,501.398282,1,501.398282
2002-04-01,502.028084,502.028084,502.028084,502.028084,1,502.028084
2002-03-28,502.600534,502.600534,502.600534,502.600534,1,502.600534
2002-03-27,503.110132,503.110132,503.110132,503.110132,1,503.110132
2002-03-26,503.551982,503.551982,503.551982,503.551982,1,503.551982
2002-03-25,503.921840,503.921840,503.921840,503.921840,1,503.921840
2002-03-22,504.216151,504.216151,504.216151,504.216151,1,504.216151
2002-03-21,504.432088,504.432088,504.432088,504.432088,1,504.432088
2002-03-20,504.567576,504.567576,504.567576,504.567576,1,504.567576
2002-03-19,504.621314,504.621314,504.621314,504.621314,1,504.621314
2002-03-18,504.592786,504.592786,504.592786,504.592786,1,504.592786
2002-03-15,504.482265,504.482265,504.482265,504.482265,1,504.482265
2002-03-14,504.290813,504.290813,504.290813,504.290813,1,504.290813
2002-03-13,504.020270,504.020270,504.020270,504.020270,1,504.020270
2002-03-12,503.673235,503.673235,503.673235,503.673235,1,503.673235
2002-03-11,503.253041,503.253041,503.253041,503.253041,1,503.253041
2002-03-08,502.763728,502.763728,502.763728,502.763728,1,502.763728
2002-03-07,502.209994,502.209994,502.209994,502.209994,1,502.209994
2002-03-06,501.597161,501.597161,501.597161,501.597161,1,501.597161
2002-03-05,500.931116,500.931116,500.931116,500.931116,1,500.931116
2002-03-04,500.218258,500.218258,500.218258,500.218258,1,500.218258
2002-03-01,499.465436,499.465436,499.465436,499.465436,1,499.465436
2002-02-28,498.679884,498.679884,498.679884,498.679884,1,498.679884
2002-02-27,497.869147,497.869147,497.869147,497.869147,1,497.869147
2002-02-26,497.041016,497.041016,497.041016,497.041016,1,497.041016
2002-02-25,496.203447,496.203447,496.203447,496.203447,1,496.203447
2002-02-22,495.364487,495.364487,495.364487,495.364487,1,495.364487
2002-02-21,494.532196,494.532196,494.532196,494.532196,1,494.532196
2002-02-20,493.714571,493.714571,493.714571,493.714571,1,493.714571
2002-02-19,492.919466,492.919466,492.919466,492.919466,1,492.919466
2002-02-15,492.154522,492.154522,492.154522,492.154522,1,492.154522
2002-02-14,491.427087,491.427087,491.427087,491.427087,1,491.427087
2002-02-13,490.744150,490.744150,490.744150,490.744150,1,490.744150
2002-02-12,490.112272,490.112272,490.112272,490.112272,1,490.112272
2002-02-11,489.537525,489.537525,489.537525,489.537525,1,489.537525
2002-02-08,489.025431,489.025431,489.025431,489.025431,1,489.025431
2002-02-07,488.580909,488.580909,488.580909,488.580909,1,488.580909
2002-02-06,488.208230,488.208230,488.208230,488.208230,1,488.208230
2002-02-05,487.910974,487.910974,487.910974,487.910974,1,487.910974
2002-02-04,487.691999,487.691999,487.691999,487.691999,1,487.691999
2002-02-01,487.553406,487.553406,487.553406,487.553406,1,487.553406
2002-01-31,487.496529,487.496529,487.496529,487.496529,1,487.496529
2002-01-30,487.521913,487.521913,487.521913,487.521913,1,487.521913
2002-01-29,487.629315,487.629315,487.629315,487.629315,1,487.629315
2002-01-28,487.817702,487.817702,487.817702,487.817702,1,487.817702
2002-01-25,488.085265,488.085265,488.085265,488.085265,1,488.085265
2002-01-24,488.429434,488.429434,488.429434,488.429434,1,488.429434
2002-01-23,488.846900,488.846900,488.846900,488.846900,1,488.846900
2002-01-22,489.333655,489.333655,489.333655,489.333655,1,489.333655
2002-01-18,489.885020,489.885020,489.885020,489.885020,1,489.885020
2002-01-17,490.495699,490.495699,490.495699,490.495699,1,490.495699
2002-01-16,491.159825,491.159825,491.159825,491.159825,1,491.159825
2002-01-15,491.871016,491.871016,491.871016,491.871016,1,491.871016
2002-01-14,492.622441,492.622441,492.622441,492.622441,1,492.622441
2002-01-11,493.406880,493.406880,493.406880,493.406880,1,493.406880
2002-01-10,494.216795,494.216795,494.216795,494.216795,1,494.216795
2002-01-09,495.044407,495.044407,495.044407,495.044407,1,495.044407
2002-01-08,495.881763,495.881763,495.881763,495.881763,1,495.881763
2002-01-07,496.720818,496.720818,496.720818,496.720818,1,496.720818
2002-01-04,497.553512,497.553512,497.553512,497.553512,1,497.553512
2002-01-03,498.371843,498.371843,498.371843,498.371843,1,498.371843
2002-01-02,499.167951,499.167951,499.167951,499.167951,1,499.167951
2001-12-31,499.934185,499.934185,499.934185,499.934185,1,499.934185
2001-12-28,500.663185,500.663185,500.663185,500.663185,1,500.663185
2001-12-27,501.347946,501.347946,501.347946,501.347946,1,501.347946
2001-12-26,501.981890,501.981890,501.981890,501.981890,1,501.981890
2001-12-24,502.558926,502.558926,502.558926,502.558926,1,502.558926
2001-12-21,503.073509,503.073509,503.073509,503.073509,1,503.073509
2001-12-20,503.520697,503.520697,503.520697,503.520697,1,503.520697
2001-12-19,503.896192,503.896192,503.896192,503.896192,1,503.896192
2001-12-18,504.196388,504.196388,504.196388,504.196388,1,504.196388
2001-12-17,504.418399,504.418399,504.418399,504.418399,1,504.418399
2001-12-14,504.560093,504.560093,504.560093,504.560093,1,504.560093
2001-12-13,504.620109,504.620109,504.620109,504.620109,1,504.620109
2001-12-12,504.597869,504.597869,504.597869,504.597869,1,504.597869
2001-12-11,504.493589,504.493589,504.493589,504.493589,1,504.493589
2001-12-10,504.308268,504.308268,504.308268,504.308268,1,504.308268
2001-12-07,504.043689,504.043689,504.043689,504.043689,1,504.043689
2001-12-06,503.702393,503.702393,503.702393,503.702393,1,503.702393
2001-12-05,503.287658,503.287658,503.287658,503.287658,1,503.287658
2001-12-04,502.803470,502.803470,502.803470,502.803470,1,502.803470
2001-12-03,502.254481,502.254481,502.254481,502.254481,1,502.254481
2001-11-30,501.645965,501.645965,501.645965,501.645965,1,501.645965
2001-11-29,500.983768,500.983768,500.983768,500.983768,1,500.983768
2001-11-28,500.274252,500.274252,500.274252,500.274252,1,500.274252
2001-11-27,499.524234,499.524234,499.524234,499.524234,1,499.524234
2001-11-26,498.740921,498.740921,498.740921,498.740921,1,498.740921
2001-11-23,497.931837,497.931837,497.931837,497.931837,1,497.931837
2001-11-21,497.104757,497.104757,497.104757,497.104757,1,497.104757
2001-11-20,496.267626,496.267626,496.267626,496.267626,1,496.267626
2001-11-19,495.428487,495.428487,495.428487,495.428487,1,495.428487
2001-11-16,494.595403,494.595403,494.595403,494.595403,1,494.595403
2001-11-15,493.776377,493.776377,493.776377,493.776377,1,493.776377
2001-11-14,492.979278,492.979278,492.979278,492.979278,1,492.979278
2001-11-13,492.211764,492.211764,492.211764,492.211764,1,492.211764
2001-11-12,491.481210,491.481210,491.481210,491.481210,1,491.481210
2001-11-09,490.794634,490.794634,490.794634,490.794634,1,490.794634
2001-11-08,490.158633,490.158633,490.158633,490.158633,1,490.158633
2001-11-07,489.579316,489.579316,489.579316,489.579316,1,489.579316
2001-11-06,489.062251,489.062251,489.062251,489.062251,1,489.062251
2001-11-05,488.612404,488.612404,488.612404,488.612404,1,488.612404
2001-11-02,488.234097,488.234097,488.234097,488.234097,1,488.234097
2001-11-01,487.930966,487.930966,487.930966,487.930966,1,487.930966
2001-10-31,487.705923,487.705923,487.705923,487.705923,1,487.705923
2001-10-30,487.561129,487.561129,487.561129,487.561129,1,487.561129
2001-10-29,487.497975,487.497975,487.497975,487.497975,1,487.497975
2001-10-26,487.517070,487.517070,487.517070,487.517070,1,487.517070
2001-10-25,487.618228,487.618228,487.618228,487.618228,1,487.618228
2001-10-24,487.800479,487.800479,487.800479,487.800479,1,487.800479
2001-10-23,488.062070,488.062070,488.062070,488.062070,1,488.062070
2001-10-22,488.400490,488.400490,488.400490,488.400490,1,488.400490
2001-10-19,488.812487,488.812487,488.812487,488.812487,1,488.812487
2001-10-18,489.294101,489.294101,489.294101,489.294101,1,489.294101
2001-10-17,489.840707,489.840707,489.840707,489.840707,1,489.840707
2001-10-16,490.447052,490.447052,490.447052,490.447052,1,490.447052
2001-10-15,491.107311,491.107311,491.107311,491.107311,1,491.107311
2001-10-12,491.815141,491.815141,491.815141,491.815141,1,491.815141
2001-10-11,492.563740,492.563740,492.563740,492.563740,1,492.563740
2001-10-10,493.345917,493.345917,493.345917,493.345917,1,493.345917
2001-10-09,494.154158,494.154158,494.154158,494.154158,1,494.154158
2001-10-08,494.980695,494.980695,494.980695,494.980695,1,494.980695
2001-10-05,495.817590,495.817590,495.817590,495.817590,1,495.817590
2001-10-04,496.656800,496.656800,496.656800,496.656800,1,496.656800
2001-10-03,497.490263,497.490263,497.490263,497.490263,1,497.490263
2001-10-02,498.309973,498.309973,498.309973,498.309973,1,498.309973
2001-10-01,499.108052,499.108052,499.108052,499.108052,1,499.108052
2001-09-28,499.876834,499.876834,499.876834,499.876834,1,499.876834
2001-09-27,500.608932,500.608932,500.608932,500.608932,1,500.608932
2001-09-26,501.297313,501.297313,501.297313,501.297313,1,501.297313
2001-09-25,501.935363,501.935363,501.935363,501.935363,1,501.935363
2001-09-24,502.516952,502.516952,502.516952,502.516952,1,502.516952
2001-09-21,503.036492,503.036492,503.036492,503.036492,1,503.036492
2001-09-20,503.488992,503.488992,503.488992,503.488992,1,503.488992
2001-09-19,503.870104,503.870104,503.870104,503.870104,1,503.870104
2001-09-18,504.176167,504.176167,504.176167,504.176167,1,504.176167
2001-09-17,504.404240,504.404240,504.404240,504.404240,1,504.404240
2001-09-10,504.552132,504.552132,504.552132,504.552132,1,504.552132
2001-09-07,504.618422,504.618422,504.618422,504.618422,1,504.618422
2001-09-06,504.602473,504.602473,504.602473,504.602473,1,504.602473
2001-09-05,504.504438,504.504438,504.504438,504.504438,1,504.504438
2001-09-04,504.325260,504.325260,504.325260,504.325260,1,504.325260
2001-08-31,504.066659,504.066659,504.066659,504.066659,1,504.066659
2001-08-30,503.731121,503.731121,503.731121,503.731121,1,503.731121
2001-08-29,503.321869,503.321869,503.321869,503.321869,1,503.321869
2001-08-28,502.842834,502.842834,502.842834,502.842834,1,502.842834
2001-08-27,502.298620,502.298620,502.298620,502.298620,1,502.298620
2001-08-24,501.694455,501.694455,501.694455,501.694455,1,501.694455
2001-08-23,501.036143,501.036143,501.036143,501.036143,1,501.036143
2001-08-22,500.330009,500.330009,500.330009,500.330009,1,500.330009
2001-08-21,499.582838,499.582838,499.582838,499.582838,1,499.582838
2001-08-20,498.801808,498.801808,498.801808,498.801808,1,498.801808
2001-08-17,497.994422,497.994422,497.994422,497.994422,1,497.994422
2001-08-16,497.168439,497.168439,497.168439,497.168439,1,497.168439
2001-08-15,496.331793,496.331793,496.331793,496.331793,1,496.331793
2001-08-14,495.492523,495.492523,495.492523,495.492523,1,495.492523
2001-08-13,494.658692,494.658692,494.658692,494.658692,1,494.658692
2001-08-10,493.838311,493.838311,493.838311,493.838311,1,493.838311
2001-08-09,493.039263,493.039263,493.039263,493.039263,1,493.039263
2001-08-08,492.269223,492.269223,492.269223,492.269223,1,492.269223
2001-08-07,491.535591,491.535591,491.535591,491.535591,1,491.535591
2001-08-06,490.845415,490.845415,490.845415,490.845415,1,490.845415
2001-08-03,490.205325,490.205325,490.205325,490.205325,1,490.205325
2001-08-02,489.621471,489.621471,489.621471,489.621471,1,489.621471
2001-08-01,489.099464,489.099464,489.099464,489.099464,1,489.099464
2001-07-31,488.644317,488.644317,488.644317,488.644317,1,488.644317
2001-07-30,488.260405,488.260405,488.260405,488.260405,1,488.260405
2001-07-27,487.951415,487.951415,487.951415,487.951415,1,487.951415
2001-07-26,487.720316,487.720316,487.720316,487.720316,1,487.720316
2001-07-25,487.569328,487.569328,487.569328,487.569328,1,487.569328
2001-07-24,487.499903,487.499903,487.499903,487.499903,1,487.499903
2001-07-23,487.512706,487.512706,487.512706,487.512706,1,487.512706
2001-07-20,487.607615,487.607615,487.607615,487.607615,1,487.607615
2001-07-19,487.783719,487.783719,487.783719,487.783719,1,487.783719
2001-07-18,488.039325,488.039325,488.039325,488.039325,1,488.039325
2001-07-17,488.371977,488.371977,488.371977,488.371977,1,488.371977
2001-07-16,488.778480,488.778480,488.778480,488.778480,1,488.778480
2001-07-13,489.254928,489.254928,489.254928,489.254928,1,489.254928
2001-07-12,489.796743,489.796743,489.796743,489.796743,1,489.796743
2001-07-11,490.398720,490.398720,490.398720,490.398720,1,490.398720
2001-07-10,491.055075,491.055075,491.055075,491.055075,1,491.055075
2001-07-09,491.759503,491.759503,491.759503,491.759503,1,491.759503
2001-07-06,492.505235,492.505235,492.505235,492.505235,1,492.505235
2001-07-05,493.285107,493.285107,493.285107,493.285107,1,493.285107
2001-07-03,494.091627,494.091627,494.091627,494.091627,1,494.091627
2001-07-02,494.917044,494.917044,494.917044,494.917044,1,494.917044
2001-06-29,495.753430,495.753430,495.753430,495.753430,1,495.753430
2001-06-28,496.592748,496.592748,496.592748,496.592748,1,496.592748
2001-06-27,497.426934,497.426934,497.426934,497.426934,1,497.426934
2001-06-26,498.247975,498.247975,498.247975,498.247975,1,498.247975
2001-06-25,499.047982,499.047982,499.047982,499.047982,1,499.047982
2001-06-22,499.819268,499.819268,499.819268,499.819268,1,499.819268
2001-06-21,500.554424,500.554424,500.554424,500.554424,1,500.554424
2001-06-20,501.246386,501.246386,501.246386,501.246386,1,501.246386
2001-06-19,501.888507,501.888507,501.888507,501.888507,1,501.888507
2001-06-18,502.474616,502.474616,502.474616,502.474616,1,502.474616
2001-06-15,502.999084,502.999084,502.999084,502.999084,1,502.999084
2001-06-14,503.456870,503.456870,503.456870,503.456870,1,503.456870
2001-06-13,503.843578,503.843578,503.843578,503.843578,1,503.843578
2001-06-12,504.155491,504.155491,504.155491,504.155491,1,504.155491
2001-06-11,504.389613,504.389613,504.389613,504.389613,1,504.389613
2001-06-08,504.543694,504.543694,504.543694,504.543694,1,504.543694
2001-06-07,504.616254,504.616254,504.616254,504.616254,1,504.616254
2001-06-06,504.606597,504.606597,504.606597,504.606597,1,504.606597
2001-06-05,504.514814,504.514814,504.514814,504.514814,1,504.514814
2001-06-04,504.341787,504.341787,504.341787,504.341787,1,504.341787
2001-06-01,504.089180,504.089180,504.089180,504.089180,1,504.089180
2001-05-31,503.759418,503.759418,503.759418,503.759418,1,503.759418
2001-05-30,503.355671,503.355671,503.355671,503.355671,1,503.355671
2001-05-29,502.881817,502.881817,502.881817,502.881817,1,502.881817
2001-05-25,502.342408,502.342408,502.342408,502.342408,1,502.342408
2001-05-24,501.742628,501.742628,501.742628,501.742628,1,501.742628
2001-05-23,501.088238,501.088238,501.088238,501.088238,1,501.088238
2001-05-22,500.385526,500.385526,500.385526,500.385526,1,500.385526
2001-05-21,499.641243,499.641243,499.641243,499.641243,1,499.641243
2001-05-18,498.862540,498.862540,498.862540,498.862540,1,498.862540
2001-05-17,498.056898,498.056898,498.056898,498.056898,1,498.056898
2001-05-16,497.232058,497.232058,497.232058,497.232058,1,497.232058
2001-05-15,496.395945,496.395945,496.395945,496.395945,1,496.395945
2001-05-14,495.556590,495.556590,495.556590,495.556590,1,495.556590
2001-05-11,494.722060,494.722060,494.722060,494.722060,1,494.722060
2001-05-10,493.900371,493.900371,493.900371,493.900371,1,493.900371
2001-05-09,493.099417,493.099417,493.099417,493.099417,1,493.099417
2001-05-08,492.326895,492.326895,492.326895,492.326895,1,492.326895
2001-05-07,491.590226,491.590226,491.590226,491.590226,1,491.590226
2001-05-04,490.896488,490.896488,490.896488,490.896488,1,490.896488
2001-05-03,490.252346,490.252346,490.252346,490.252346,1,490.252346
2001-05-02,489.663988,489.663988,489.663988,489.663988,1,489.663988
2001-05-01,489.137068,489.137068,489.137068,489.137068,1,489.137068
2001-04-30,488.676648,488.676648,488.676648,488.676648,1,488.676648
2001-04-27,488.287150,488.287150,488.287150,488.287150,1,488.287150
2001-04-26,487.972319,487.972319,487.972319,487.972319,1,487.972319
2001-04-25,487.735178,487.735178,487.735178,487.735178,1,487.735178
2001-04-24,487.578005,487.578005,487.578005,487.578005,1,487.578005
2001-04-23,487.502311,487.502311,487.502311,487.502311,1,487.502311
2001-04-20,487.508822,487.508822,487.508822,487.508822,1,487.508822
2001-04-19,487.597478,487.597478,487.597478,487.597478,1,487.597478
2001-04-18,487.767424,487.767424,487.767424,487.767424,1,487.767424
2001-04-17,488.017030,488.017030,488.017030,488.017030,1,488.017030
2001-04-16,488.343896,488.343896,488.343896,488.343896,1,488.343896
2001-04-12,488.744882,488.744882,488.744882,488.744882,1,488.744882
2001-04-11,489.216136,489.216136,489.216136,489.216136,1,489.216136
2001-04-10,489.753131,489.753131,489.753131,489.753131,1,489.753131
2001-04-09,490.350706,490.350706,490.350706,490.350706,1,490.350706
2001-04-06,491.003121,491.003121,491.003121,491.003121,1,491.003121
2001-04-05,491.704107,491.704107,491.704107,491.704107,1,491.704107
2001-04-04,492.446930,492.446930,492.446930,492.446930,1,492.446930
2001-04-03,493.224453,493.224453,493.224453,493.224453,1,493.224453
2001-04-02,494.029206,494.029206,494.029206,494.029206,1,494.029206
2001-03-30,494.853457,494.853457,494.853457,494.853457,1,494.853457
2001-03-29,495.689287,495.689287,495.689287,495.689287,1,495.689287
2001-03-28,496.528666,496.528666,496.528666,496.528666,1,496.528666
2001-03-27,497.363529,497.363529,497.363529,497.363529,1,497.363529
2001-03-26,498.185855,498.185855,498.185855,498.185855,1,498.185855
2001-03-23,498.987744,498.987744,498.987744,498.987744,1,498.987744
2001-03-22,499.761491,499.761491,499.761491,499.761491,1,499.761491
2001-03-21,500.499663,500.499663,500.499663,500.499663,1,500.499663
2001-03-20,501.195167,501.195167,501.195167,501.195167,1,501.195167
2001-03-19,501.841322,501.841322,501.841322,501.841322,1,501.841322
2001-03-16,502.431920,502.431920,502.431920,502.431920,1,502.431920
2001-03-15,502.961285,502.961285,502.961285,502.961285,1,502.961285
2001-03-14,503.424333,503.424333,503.424333,503.424333,1,503.424333
2001-03-13,503.816614,503.816614,503.816614,503.816614,1,503.816614
2001-03-12,504.134359,504.134359,504.134359,504.134359,1,504.134359
2001-03-09,504.374517,504.374517,504.374517,504.374517,1,504.374517
2001-03-08,504.534779,504.534779,504.534779,504.534779,1,504.534779
2001-03-07,504.613606,504.613606,504.613606,504.613606,1,504.613606
2001-03-06,504.610240,504.610240,504.610240,504.610240,1,504.610240
2001-03-05,504.524714,504.524714,504.524714,504.524714,1,504.524714
2001-03-02,504.357849,504.357849,504.357849,504.357849,1,504.357849
2001-03-01,504.111249,504.111249,504.111249,504.111249,1,504.111249
2001-02-28,503.787283,503.787283,503.787283,503.787283,1,503.787283
2001-02-27,503.389063,503.389063,503.389063,503.389063,1,503.389063
2001-02-26,502.920416,502.920416,502.920416,502.920416,1,502.920416
2001-02-23,502.385843,502.385843,502.385843,502.385843,1,502.385843
2001-02-22,501.790482,501.790482,501.790482,501.790482,1,501.790482
2001-02-21,501.140051,501.140051,501.140051,501.140051,1,501.140051
2001-02-20,500.440800,500.440800,500.440800,500.440800,1,500.440800
2001-02-16,499.699447,499.699447,499.699447,499.699447,1,499.699447
2001-02-15,498.923115,498.923115,498.923115,498.923115,1,498.923115
2001-02-14,498.119262,498.119262,498.119262,498.119262,1,498.119262
2001-02-13,497.295612,497.295612,497.295612,497.295612,1,497.295612
2001-02-12,496.460077,496.460077,496.460077,496.460077,1,496.460077
2001-02-09,495.620686,495.620686,495.620686,495.620686,1,495.620686
2001-02-08,494.785503,494.785503,494.785503,494.785503,1,494.785503
2001-02-07,493.962551,493.962551,493.962551,493.962551,1,493.962551
2001-02-06,493.159738,493.159738,493.159738,493.159738,1,493.159738
2001-02-05,492.384776,492.384776,492.384776,492.384776,1,492.384776
2001-02-02,491.645112,491.645112,491.645112,491.645112,1,491.645112
2001-02-01,490.947851,490.947851,490.947851,490.947851,1,490.947851
2001-01-31,490.299693,490.299693,490.299693,490.299693,1,490.299693
2001-01-30,489.706864,489.706864,489.706864,489.706864,1,489.706864
2001-01-29,489.175061,489.175061,489.175061,489.175061,1,489.175061
2001-01-26,488.709392,488.709392,488.709392,488.709392,1,488.709392
2001-01-25,488.314333,488.314333,488.314333,488.314333,1,488.314333
2001-01-24,487.993677,487.993677,487.993677,487.993677,1,487.993677
2001-01-23,487.750507,487.750507,487.750507,487.750507,1,487.750507
2001-01-22,487.587158,487.587158,487.587158,487.587158,1,487.587158
2001-01-19,487.505200,487.505200,487.505200,487.505200,1,487.505200
2001-01-18,487.505419,487.505419,487.505419,487.505419,1,487.505419
2001-01-17,487.587815,487.587815,487.587815,487.587815,1,487.587815
2001-01-16,487.751595,487.751595,487.751595,487.751595,1,487.751595
2001-01-12,487.995187,487.995187,487.995187,487.995187,1,487.995187
2001-01-11,488.316248,488.316248,488.316248,488.316248,1,488.316248
2001-01-10,488.711696,488.711696,488.711696,488.711696,1,488.711696
2001-01-09,489.177730,489.177730,489.177730,489.177730,1,489.177730
2001-01-08,489.709873,489.709873,489.709873,489.709873,1,489.709873
2001-01-05,490.303013,490.303013,490.303013,490.303013,1,490.303013
2001-01-04,490.951450,490.951450,490.951450,490.951450,1,490.951450
2001-01-03,491.648956,491.648956,491.648956,491.648956,1,491.648956
2001-01-02,492.388828,492.388828,492.388828,492.388828,1,492.388828
2000-12-29,493.163958,493.163958,493.163958,493.163958,1,493.163958
2000-12-28,493.966900,493.966900,493.966900,493.966900,1,493.966900
2000-12-27,494.789938,494.789938,494.789938,494.789938,1,494.789938
2000-12-26,495.625165,495.625165,495.625165,495.625165,1,495.625165
2000-12-22,496.464557,496.464557,496.464557,496.464557,1,496.464557
2000-12-21,497.300050,497.300050,497.300050,497.300050,1,497.300050
2000-12-20,498.123615,498.123615,498.123615,498.123615,1,498.123615
2000-12-19,498.927341,498.927341,498.927341,498.927341,1,498.927341
2000-12-18,499.703506,499.703506,499.703506,499.703506,1,499.703506
2000-12-15,500.444653,500.444653,500.444653,500.444653,1,500.444653
2000-12-14,501.143660,501.143660,501.143660,501.143660,1,501.143660
2000-12-13,501.793813,501.793813,501.793813,501.793813,1,501.793813
2000-12-12,502.388865,502.388865,502.388865,502.388865,1,502.388865
2000-12-11,502.923098,502.923098,502.923098,502.923098,1,502.923098
2000-12-08,503.391381,503.391381,503.391381,503.391381,1,503.391381
2000-12-07,503.789214,503.789214,503.789214,503.789214,1,503.789214
2000-12-06,504.112774,504.112774,504.112774,504.112774,1,504.112774
2000-12-05,504.358954,504.358954,504.358954,504.358954,1,504.358954
2000-12-04,504.525388,504.525388,504.525388,504.525388,1,504.525388
2000-12-01,504.610477,504.610477,504.610477,504.610477,1,504.610477
2000-11-30,504.613403,504.613403,504.613403,504.613403,1,504.613403
2000-11-29,504.534138,504.534138,504.534138,504.534138,1,504.534138
2000-11-28,504.373445,504.373445,504.373445,504.373445,1,504.373445
2000-11-27,504.132866,504.132866,504.132866,504.132866,1,504.132866
2000-11-24,503.814714,503.814714,503.814714,503.814714,1,503.814714
2000-11-22,503.422044,503.422044,503.422044,503.422044,1,503.422044
2000-11-21,502.958630,502.958630,502.958630,502.958630,1,502.958630
2000-11-20,502.428923,502.428923,502.428923,502.428923,1,502.428923
2000-11-17,501.838014,501.838014,501.838014,501.838014,1,501.838014
2000-11-16,501.191578,501.191578,501.191578,501.191578,1,501.191578
2000-11-15,500.495828,500.495828,500.495828,500.495828,1,500.495828
2000-11-14,499.757447,499.757447,499.757447,499.757447,1,499.757447
2000-11-13,498.983529,498.983529,498.983529,498.983529,1,498.983529
2000-11-10,498.181510,498.181510,498.181510,498.181510,1,498.181510
2000-11-09,497.359096,497.359096,497.359096,497.359096,1,497.359096
2000-11-08,496.524188,496.524188,496.524188,496.524188,1,496.524188
2000-11-07,495.684806,495.684806,495.684806,495.684806,1,495.684806
2000-11-06,494.849017,494.849017,494.849017,494.849017,1,494.849017
2000-11-03,494.024849,494.024849,494.024849,494.024849,1,494.024849
2000-11-02,493.220222,493.220222,493.220222,493.220222,1,493.220222
2000-11-01,492.442864,492.442864,492.442864,492.442864,1,492.442864
2000-10-31,491.700246,491.700246,491.700246,491.700246,1,491.700246
2000-10-30,490.999502,490.999502,490.999502,490.999502,1,490.999502
2000-10-27,490.347363,490.347363,490.347363,490.347363,1,490.347363
2000-10-26,489.750097,489.750097,489.750097,489.750097,1,489.750097
2000-10-25,489.213441,489.213441,489.213441,489.213441,1,489.213441
2000-10-24,488.742550,488.742550,488.742550,488.742550,1,488.742550
2000-10-23,488.341950,488.341950,488.341950,488.341950,1,488.341950
2000-10-20,488.015489,488.015489,488.015489,488.015489,1,488.015489
2000-10-19,487.766303,487.766303,487.766303,487.766303,1,487.766303
2000-10-18,487.596787,487.596787,487.596787,487.596787,1,487.596787
2000-10-17,487.508569,487.508569,487.508569,487.508569,1,487.508569
2000-10-16,487.502497,487.502497,487.502497,487.502497,1,487.502497
2000-10-13,487.578629,487.578629,487.578629,487.578629,1,487.578629
2000-10-12,487.736233,487.736233,487.736233,487.736233,1,487.736233
2000-10-11,487.973796,487.973796,487.973796,487.973796,1,487.973796
2000-10-10,488.289035,488.289035,488.289035,488.289035,1,488.289035
2000-10-09,488.678922,488.678922,488.678922,488.678922,1,488.678922
2000-10-06,489.139710,489.139710,489.139710,489.139710,1,489.139710
2000-10-05,489.666972,489.666972,489.666972,489.666972,1,489.666972
2000-10-04,490.255643,490.255643,490.255643,490.255643,1,490.255643
2000-10-03,490.900067,490.900067,490.900067,490.900067,1,490.900067
2000-10-02,491.594053,491.594053,491.594053,491.594053,1,491.594053
2000-09-29,492.330932,492.330932,492.330932,492.330932,1,492.330932
2000-09-28,493.103626,493.103626,493.103626,493.103626,1,493.103626
2000-09-27,493.904711,493.904711,493.904711,493.904711,1,493.904711
2000-09-26,494.726490,494.726490,494.726490,494.726490,1,494.726490
2000-09-25,495.561068,495.561068,495.561068,495.561068,1,495.561068
2000-09-22,496.400426,496.400426,496.400426,496.400426,1,496.400426
2000-09-21,497.236501,497.236501,497.236501,497.236501,1,497.236501
2000-09-20,498.061259,498.061259,498.061259,498.061259,1,498.061259
2000-09-19,498.866777,498.866777,498.866777,498.866777,1,498.866777
2000-09-18,499.645316,499.645316,499.645316,499.645316,1,499.645316
2000-09-15,500.389396,500.389396,500.389396,500.389396,1,500.389396
2000-09-14,501.091867,501.091867,501.091867,501.091867,1,501.091867
2000-09-13,501.745982,501.745982,501.745982,501.745982,1,501.745982
2000-09-12,502.345454,502.345454,502.345454,502.345454,1,502.345454
2000-09-11,502.884526,502.884526,502.884526,502.884526,1,502.884526
2000-09-08,503.358017,503.358017,503.358017,503.358017,1,503.358017
2000-09-07,503.761379,503.761379,503.761379,503.761379,1,503.761379
2000-09-06,504.090737,504.090737,504.090737,504.090737,1,504.090737
2000-09-05,504.342925,504.342925,504.342925,504.342925,1,504.342925
2000-09-01,504.515521,504.515521,504.515521,504.515521,1,504.515521
2000-08-31,504.606867,504.606867,504.606867,504.606867,1,504.606867
2000-08-30,504.616085,504.616085,504.616085,504.616085,1,504.616085
2000-08-29,504.543087,504.543087,504.543087,504.543087,1,504.543087
2000-08-28,504.388573,504.388573,504.388573,504.388573,1,504.388573
2000-08-25,504.154029,504.154029,504.154029,504.154029,1,504.154029
2000-08-24,503.841708,503.841708,503.841708,503.841708,1,503.841708
2000-08-23,503.454611,503.454611,503.454611,503.454611,1,503.454611
2000-08-22,502.996455,502.996455,502.996455,502.996455,1,502.996455
2000-08-21,502.471645,502.471645,502.471645,502.471645,1,502.471645
2000-08-18,501.885221,501.885221,501.885221,501.885221,1,501.885221
2000-08-17,501.242817,501.242817,501.242817,501.242817,1,501.242817
2000-08-16,500.550606,500.550606,500.550606,500.550606,1,500.550606
2000-08-15,499.815238,499.815238,499.815238,499.815238,1,499.815238
2000-08-14,499.043779,499.043779,499.043779,499.043779,1,499.043779
2000-08-11,498.243639,498.243639,498.243639,498.243639,1,498.243639
2000-08-10,497.422507,497.422507,497.422507,497.422507,1,497.422507
2000-08-09,496.588272,496.588272,496.588272,496.588272,1,496.588272
2000-08-08,495.748948,495.748948,495.748948,495.748948,1,495.748948
2000-08-07,494.912599,494.912599,494.912599,494.912599,1,494.912599
2000-08-04,494.087262,494.087262,494.087262,494.087262,1,494.087262
2000-08-03,493.280865,493.280865,493.280865,493.280865,1,493.280865
2000-08-02,492.501155,492.501155,492.501155,492.501155,1,492.501155
2000-08-01,491.755625,491.755625,491.755625,491.755625,1,491.755625
2000-07-31,491.051436,491.051436,491.051436,491.051436,1,491.051436
2000-07-28,490.395355,490.395355,490.395355,490.395355,1,490.395355
2000-07-27,489.793684,489.793684,489.793684,489.793684,1,489.793684
2000-07-26,489.252205,489.252205,489.252205,489.252205,1,489.252205
2000-07-25,488.776119,488.776119,488.776119,488.776119,1,488.776119
2000-07-24,488.370001,488.370001,488.370001,488.370001,1,488.370001
2000-07-21,488.037752,488.037752,488.037752,488.037752,1,488.037752
2000-07-20,487.782565,487.782565,487.782565,487.782565,1,487.782565
2000-07-19,487.606892,487.606892,487.606892,487.606892,1,487.606892
2000-07-18,487.512419,487.512419,487.512419,487.512419,1,487.512419
2000-07-17,487.500055,487.500055,487.500055,487.500055,1,487.500055
2000-07-14,487.569919,487.569919,487.569919,487.569919,1,487.569919
2000-07-13,487.721339,487.721339,487.721339,487.721339,1,487.721339
2000-07-12,487.952861,487.952861,487.952861,487.952861,1,487.952861
2000-07-11,488.262259,488.262259,488.262259,488.262259,1,488.262259
2000-07-10,488.646563,488.646563,488.646563,488.646563,1,488.646563
2000-07-07,489.102078,489.102078,489.102078,489.102078,1,489.102078
2000-07-06,489.624430,489.624430,489.624430,489.624430,1,489.624430
2000-07-05,490.208599,490.208599,490.208599,490.208599,1,490.208599
2000-07-03,490.848973,490.848973,490.848973,490.848973,1,490.848973
2000-06-30,491.539400,491.539400,491.539400,491.539400,1,491.539400
2000-06-29,492.273246,492.273246,492.273246,492.273246,1,492.273246
2000-06-28,493.043460,493.043460,493.043460,493.043460,1,493.043460
2000-06-27,493.842643,493.842643,493.842643,493.842643,1,493.842643
2000-06-26,494.663117,494.663117,494.663117,494.663117,1,494.663117
2000-06-23,495.496998,495.496998,495.496998,495.496998,1,495.496998
2000-06-22,496.336276,496.336276,496.336276,496.336276,1,496.336276
2000-06-21,497.172886,497.172886,497.172886,497.172886,1,497.172886
2000-06-20,497.998791,497.998791,497.998791,497.998791,1,497.998791
2000-06-19,498.806056,498.806056,498.806056,498.806056,1,498.806056
2000-06-16,499.586925,499.586925,499.586925,499.586925,1,499.586925
2000-06-15,500.333896,500.333896,500.333896,500.333896,1,500.333896
2000-06-14,501.039791,501.039791,501.039791,501.039791,1,501.039791
2000-06-13,501.697831,501.697831,501.697831,501.697831,1,501.697831
2000-06-12,502.301691,502.301691,502.301691,502.301691,1,502.301691
2000-06-09,502.845570,502.845570,502.845570,502.845570,1,502.845570
2000-06-08,503.324244,503.324244,503.324244,503.324244,1,503.324244
2000-06-07,503.733112,503.733112,503.733112,503.733112,1,503.733112
2000-06-06,504.068247,504.068247,504.068247,504.068247,1,504.068247
2000-06-05,504.326430,504.326430,504.326430,504.326430,1,504.326430
2000-06-02,504.505179,504.505179,504.505179,504.505179,1,504.505179
2000-06-01,504.602777,504.602777,504.602777,504.602777,1,504.602777
2000-05-31,504.618286,504.618286,504.618286,504.618286,1,504.618286
2000-05-30,504.551558,504.551558,504.551558,504.551558,1,504.551558
2000-05-26,504.403233,504.403233,504.403233,504.403233,1,504.403233
2000-05-25,504.174738,504.174738,504.174738,504.174738,1,504.174738
2000-05-24,503.868265,503.868265,503.868265,503.868265,1,503.868265
2000-05-23,503.486762,503.486762,503.486762,503.486762,1,503.486762
2000-05-22,503.033892,503.033892,503.033892,503.033892,1,503.033892
2000-05-19,502.514006,502.514006,502.514006,502.514006,1,502.514006
2000-05-18,501.932100,501.932100,501.932100,501.932100,1,501.932100
2000-05-17,501.293765,501.293765,501.293765,501.293765,1,501.293765
2000-05-16,500.605132,500.605132,500.605132,500.605132,1,500.605132
2000-05-15,499.872819,499.872819,499.872819,499.872819,1,499.872819
2000-05-12,499.103861,499.103861,499.103861,499.103861,1,499.103861
2000-05-11,498.305645,498.305645,498.305645,498.305645,1,498.305645
2000-05-10,497.485841,497.485841,497.485841,497.485841,1,497.485841
2000-05-09,496.652326,496.652326,496.652326,496.652326,1,496.652326
2000-05-08,495.813106,495.813106,495.813106,495.813106,1,495.813106
2000-05-05,494.976246,494.976246,494.976246,494.976246,1,494.976246
2000-05-04,494.149785,494.149785,494.149785,494.149785,1,494.149785
2000-05-03,493.341664,493.341664,493.341664,493.341664,1,493.341664
2000-05-02,492.559646,492.559646,492.559646,492.559646,1,492.559646
2000-05-01,491.811246,491.811246,491.811246,491.811246,1,491.811246
2000-04-28,491.103652,491.103652,491.103652,491.103652,1,491.103652
2000-04-27,490.443665,490.443665,490.443665,490.443665,1,490.443665
2000-04-26,489.837624,489.837624,489.837624,489.837624,1,489.837624
2000-04-25,489.291352,489.291352,489.291352,489.291352,1,489.291352
2000-04-24,488.810097,488.810097,488.810097,488.810097,1,488.810097
2000-04-20,488.398484,488.398484,488.398484,488.398484,1,488.398484
2000-04-19,488.060467,488.060467,488.060467,488.060467,1,488.060467
2000-04-18,487.799293,487.799293,487.799293,487.799293,1,487.799293
2000-04-17,487.617471,487.617471,487.617471,487.617471,1,487.617471
2000-04-14,487.516749,487.516749,487.516749,487.516749,1,487.516749
2000-04-13,487.498094,487.498094,487.498094,487.498094,1,487.498094
2000-04-12,487.561686,487.561686,487.561686,487.561686,1,487.561686
2000-04-11,487.706913,487.706913,487.706913,487.706913,1,487.706913
2000-04-10,487.932380,487.932380,487.932380,487.932380,1,487.932380
2000-04-07,488.235921,488.235921,488.235921,488.235921,1,488.235921
2000-04-06,488.614620,488.614620,488.614620,488.614620,1,488.614620
2000-04-05,489.064838,489.064838,489.064838,489.064838,1,489.064838
2000-04-04,489.582250,489.582250,489.582250,489.582250,1,489.582250
2000-04-03,490.161884,490.161884,490.161884,490.161884,1,490.161884
2000-03-31,490.798172,490.798172,490.798172,490.798172,1,490.798172
2000-03-30,491.485001,491.485001,491.485001,491.485001,1,491.485001
2000-03-29,492.215772,492.215772,492.215772,492.215772,1,492.215772
2000-03-28,492.983463,492.983463,492.983463,492.983463,1,492.983463
2000-03-27,493.780700,493.780700,493.780700,493.780700,1,493.780700
2000-03-24,494.599822,494.599822,494.599822,494.599822,1,494.599822
2000-03-23,495.432960,495.432960,495.432960,495.432960,1,495.432960
2000-03-22,496.272110,496.272110,496.272110,496.272110,1,496.272110
2000-03-21,497.109208,497.109208,497.109208,497.109208,1,497.109208
2000-03-20,497.936214,497.936214,497.936214,497.936214,1,497.936214
2000-03-17,498.745180,498.745180,498.745180,498.745180,1,498.745180
2000-03-16,499.528335,499.528335,499.528335,499.528335,1,499.528335
2000-03-15,500.278155,500.278155,500.278155,500.278155,1,500.278155
2000-03-14,500.987436,500.987436,500.987436,500.987436,1,500.987436
2000-03-13,501.649363,501.649363,501.649363,501.649363,1,501.649363
2000-03-10,502.257576,502.257576,502.257576,502.257576,1,502.257576
2000-03-09,502.806233,502.806233,502.806233,502.806233,1,502.806233
2000-03-08,503.290062,503.290062,503.290062,503.290062,1,503.290062
2000-03-07,503.704414,503.704414,503.704414,503.704414,1,503.704414
2000-03-06,504.045308,504.045308,504.045308,504.045308,1,504.045308
2000-03-03,504.309470,504.309470,504.309470,504.309470,1,504.309470
2000-03-02,504.494362,504.494362,504.494362,504.494362,1,504.494362
2000-03-01,504.598207,504.598207,504.598207,504.598207,1,504.598207
2000-02-29,504.620007,504.620007,504.620007,504.620007,1,504.620007
2000-02-28,504.559552,504.559552,504.559552,504.559552,1,504.559552
2000-02-25,504.417425,504.417425,504.417425,504.417425,1,504.417425
2000-02-24,504.194990,504.194990,504.194990,504.194990,1,504.194990
2000-02-23,503.894384,503.894384,503.894384,503.894384,1,503.894384
2000-02-22,503.518495,503.518495,503.518495,503.518495,1,503.518495
2000-02-18,503.070936,503.070936,503.070936,503.070936,1,503.070936
2000-02-17,502.556005,502.556005,502.556005,502.556005,1,502.556005
2000-02-16,501.978650,501.978650,501.978650,501.978650,1,501.978650
2000-02-15,501.344418,501.344418,501.344418,501.344418,1,501.344418
2000-02-14,500.659403,500.659403,500.659403,500.659403,1,500.659403
2000-02-11,499.930185,499.930185,499.930185,499.930185,1,499.930185
2000-02-10,499.163771,499.163771,499.163771,499.163771,1,499.163771
2000-02-09,498.367525,498.367525,498.367525,498.367525,1,498.367525
2000-02-08,497.549096,497.549096,497.549096,497.549096,1,497.549096
2000-02-07,496.716347,496.716347,496.716347,496.716347,1,496.716347
2000-02-04,495.877279,495.877279,495.877279,495.877279,1,495.877279
2000-02-03,495.039954,495.039954,495.039954,495.039954,1,495.039954
2000-02-02,494.212416,494.212416,494.212416,494.212416,1,494.212416
2000-02-01,493.402616,493.402616,493.402616,493.402616,1,493.402616
|
CSV
|
#![allow(unknown_lints)]
#[cfg(test)]
#[macro_use]
extern crate quickcheck;
#[cfg(test)]
extern crate spectral;
extern crate itertools;
#[macro_use]
pub mod core;
extern crate rand;
|
RenderScript
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to POpSiCLE’s documentation! — POpSiCLE 1.0 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '1.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
</head>
<body>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="welcome-to-popsicle-s-documentation">
<h1>Welcome to POpSiCLE’s documentation!<a class="headerlink" href="#welcome-to-popsicle-s-documentation" title="Permalink to this headline">¶</a></h1>
<div class="toctree-wrapper compound">
</div>
</div>
<div class="section" id="indices-and-tables">
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></li>
<li><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Module Index</span></a></li>
<li><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper"><div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="#">Documentation overview</a><ul>
</ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
©2018, Alejandro de la Calle.
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.6.7</a>
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<a href="_sources/index.rst.txt"
rel="nofollow">Page source</a>
</div>
</body>
</html>
|
HTML
|
(ns com.google.cloud.compute.v1.stub.ForwardingRuleStubSettings
"Settings class to configure an instance of ForwardingRuleStub.
The default instance has everything set to sensible defaults:
The default service address (https://www.googleapis.com/compute/v1/projects/) and default
port (443) are used.
Credentials are acquired automatically through Application Default Credentials.
Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When
build() is called, the tree of builders is called to create the complete settings object. For
example, to set the total timeout of deleteForwardingRule to 30 seconds:
ForwardingRuleStubSettings.Builder forwardingRuleSettingsBuilder =
ForwardingRuleStubSettings.newBuilder();
forwardingRuleSettingsBuilder.deleteForwardingRuleSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
ForwardingRuleStubSettings forwardingRuleSettings = forwardingRuleSettingsBuilder.build();"
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.compute.v1.stub ForwardingRuleStubSettings]))
(defn *default-http-json-transport-provider-builder
"Returns a builder for the default ChannelProvider for this service.
returns: `com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder`"
(^com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder []
(ForwardingRuleStubSettings/defaultHttpJsonTransportProviderBuilder )))
(defn *default-executor-provider-builder
"Returns a builder for the default ExecutorProvider for this service.
returns: `com.google.api.gax.core.InstantiatingExecutorProvider.Builder`"
(^com.google.api.gax.core.InstantiatingExecutorProvider.Builder []
(ForwardingRuleStubSettings/defaultExecutorProviderBuilder )))
(defn *get-default-endpoint
"Returns the default service endpoint.
returns: `java.lang.String`"
(^java.lang.String []
(ForwardingRuleStubSettings/getDefaultEndpoint )))
(defn *default-transport-channel-provider
"returns: `com.google.api.gax.rpc.TransportChannelProvider`"
(^com.google.api.gax.rpc.TransportChannelProvider []
(ForwardingRuleStubSettings/defaultTransportChannelProvider )))
(defn *new-builder
"Returns a new builder for this class.
client-context - `com.google.api.gax.rpc.ClientContext`
returns: `com.google.cloud.compute.v1.stub.ForwardingRuleStubSettings$Builder`"
(^com.google.cloud.compute.v1.stub.ForwardingRuleStubSettings$Builder [^com.google.api.gax.rpc.ClientContext client-context]
(ForwardingRuleStubSettings/newBuilder client-context))
(^com.google.cloud.compute.v1.stub.ForwardingRuleStubSettings$Builder []
(ForwardingRuleStubSettings/newBuilder )))
(defn *default-credentials-provider-builder
"Returns a builder for the default credentials for this service.
returns: `com.google.api.gax.core.GoogleCredentialsProvider.Builder`"
(^com.google.api.gax.core.GoogleCredentialsProvider.Builder []
(ForwardingRuleStubSettings/defaultCredentialsProviderBuilder )))
(defn *get-default-service-port
"Returns the default service port.
returns: `int`"
(^Integer []
(ForwardingRuleStubSettings/getDefaultServicePort )))
(defn *default-api-client-header-provider-builder
"returns: `(value="The surface for customizing headers is not stable yet and may change in the future.") com.google.api.gax.rpc.ApiClientHeaderProvider.Builder`"
([]
(ForwardingRuleStubSettings/defaultApiClientHeaderProviderBuilder )))
(defn *get-default-service-scopes
"Returns the default service scopes.
returns: `java.util.List<java.lang.String>`"
(^java.util.List []
(ForwardingRuleStubSettings/getDefaultServiceScopes )))
(defn aggregated-list-forwarding-rules-settings
"Returns the object with the settings used for calls to aggregatedListForwardingRules.
returns: `com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.compute.v1.AggregatedListForwardingRulesHttpRequest,com.google.cloud.compute.v1.ForwardingRuleAggregatedList,com.google.cloud.compute.v1.ForwardingRuleClient$AggregatedListForwardingRulesPagedResponse>`"
(^com.google.api.gax.rpc.PagedCallSettings [^ForwardingRuleStubSettings this]
(-> this (.aggregatedListForwardingRulesSettings))))
(defn delete-forwarding-rule-settings
"Returns the object with the settings used for calls to deleteForwardingRule.
returns: `com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.compute.v1.DeleteForwardingRuleHttpRequest,com.google.cloud.compute.v1.Operation>`"
(^com.google.api.gax.rpc.UnaryCallSettings [^ForwardingRuleStubSettings this]
(-> this (.deleteForwardingRuleSettings))))
(defn get-forwarding-rule-settings
"Returns the object with the settings used for calls to getForwardingRule.
returns: `com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.compute.v1.GetForwardingRuleHttpRequest,com.google.cloud.compute.v1.ForwardingRule>`"
(^com.google.api.gax.rpc.UnaryCallSettings [^ForwardingRuleStubSettings this]
(-> this (.getForwardingRuleSettings))))
(defn insert-forwarding-rule-settings
"Returns the object with the settings used for calls to insertForwardingRule.
returns: `com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.compute.v1.InsertForwardingRuleHttpRequest,com.google.cloud.compute.v1.Operation>`"
(^com.google.api.gax.rpc.UnaryCallSettings [^ForwardingRuleStubSettings this]
(-> this (.insertForwardingRuleSettings))))
(defn list-forwarding-rules-settings
"Returns the object with the settings used for calls to listForwardingRules.
returns: `com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.compute.v1.ListForwardingRulesHttpRequest,com.google.cloud.compute.v1.ForwardingRuleList,com.google.cloud.compute.v1.ForwardingRuleClient$ListForwardingRulesPagedResponse>`"
(^com.google.api.gax.rpc.PagedCallSettings [^ForwardingRuleStubSettings this]
(-> this (.listForwardingRulesSettings))))
(defn set-target-forwarding-rule-settings
"Returns the object with the settings used for calls to setTargetForwardingRule.
returns: `com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.compute.v1.SetTargetForwardingRuleHttpRequest,com.google.cloud.compute.v1.Operation>`"
(^com.google.api.gax.rpc.UnaryCallSettings [^ForwardingRuleStubSettings this]
(-> this (.setTargetForwardingRuleSettings))))
(defn create-stub
"returns: `(value="A restructuring of stub classes is planned, so this may break in the future") com.google.cloud.compute.v1.stub.ForwardingRuleStub`
throws: java.io.IOException"
([^ForwardingRuleStubSettings this]
(-> this (.createStub))))
(defn to-builder
"Returns a builder containing all the values of this settings class.
returns: `com.google.cloud.compute.v1.stub.ForwardingRuleStubSettings$Builder`"
(^com.google.cloud.compute.v1.stub.ForwardingRuleStubSettings$Builder [^ForwardingRuleStubSettings this]
(-> this (.toBuilder))))
|
Clojure
|
!vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvC
! C
! Subroutine: CONV_SOURCE_EPp C
! Purpose: Determine convection & source terms for solids volume C
! fraction correction equation. Master routine. C
! C
! Notes: MCP must be defined to call this routine. C
! C
! Author: M. Syamlal Date: 6-MAR-97 C
! Reviewer: Date: C
! C
! C
! C
!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^C
SUBROUTINE CONV_SOURCE_EPP(A_M, B_M, B_mmax, M)
!-----------------------------------------------
! Modules
!-----------------------------------------------
USE compar
USE fldvar
USE geometry
USE param
USE param1
USE run
USE sendrecv
IMPLICIT NONE
!-----------------------------------------------
! Dummy Arguments
!-----------------------------------------------
! Septadiagonal matrix A_m
DOUBLE PRECISION, INTENT(INOUT) :: A_m(DIMENSION_3, -3:3, 0:DIMENSION_M)
! Vector b_m
DOUBLE PRECISION, INTENT(INOUT) :: B_m(DIMENSION_3, 0:DIMENSION_M)
! Maximum term in b_m expression
DOUBLE PRECISION, INTENT(INOUT) :: B_mmax(DIMENSION_3, 0:DIMENSION_M)
! Lowest solids phase index of those solids phases that can
! close packed (M=MCP)
INTEGER, INTENT(IN) :: M
!-----------------------------------------------
IF (DISCRETIZE(2) == 0) THEN ! 0 & 1 => first order upwinding
CALL CONV_SOURCE_EPP0 (A_M, B_M, B_MMAX, M)
ELSE
CALL CONV_SOURCE_EPP1 (A_M, B_M, B_MMAX, M)
ENDIF
RETURN
END SUBROUTINE CONV_SOURCE_EPP
!vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvC
! C
! Subroutine: CONV_SOURCE_EPp0 C
! Purpose: Determine convection & source terms for solids volume C
! fraction correction equation. First order upwinding. C
! C
! Author: M. Syamlal Date: 24-SEP-96 C
! Reviewer: Date: C
! C
! C
!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^C
SUBROUTINE CONV_SOURCE_EPP0(A_M, B_M, B_MMAX, M)
!-----------------------------------------------
! Modules
!-----------------------------------------------
USE compar
USE constant
USE fldvar
USE functions
USE geometry
USE indices
USE parallel
USE param
USE param1
USE pgcor
USE physprop
USE pscor
USE run
USE rxns
USE sendrecv
USE solids_pressure
IMPLICIT NONE
!-----------------------------------------------
! Dummy arguments
!-----------------------------------------------
! Septadiagonal matrix A_m
DOUBLE PRECISION, INTENT(INOUT) :: A_m(DIMENSION_3, -3:3, 0:DIMENSION_M)
! Vector b_m
DOUBLE PRECISION, INTENT(INOUT) :: B_m(DIMENSION_3, 0:DIMENSION_M)
! maximum term in b_m expression
DOUBLE PRECISION, INTENT(INOUT) :: B_mmax(DIMENSION_3, 0:DIMENSION_M)
! Lowest solids phase index of those solids phases that can
! close packed (M=MCP)
INTEGER, INTENT(IN) :: M
!-----------------------------------------------
! Local variables
!-----------------------------------------------
! Indices
INTEGER :: I, J, K, IJK, IPJK, IJPK, IJKP
INTEGER :: IMJK, IJMK, IJKM, IJKE, IJKW, IJKN, IJKS
INTEGER :: IJKB, IJKT
! dPodEP_s(EP_s(IJK, M)); the derivative of the plastic or friction
! pressure with respect to ep_s
DOUBLE PRECISION :: K_P
! Mass source
DOUBLE PRECISION :: Src
! error message
CHARACTER(LEN=80) :: LINE(1)
! terms of bm expression
DOUBLE PRECISION :: bma, bme, bmw, bmn, bms, bmt, bmb, bmr
!-----------------------------------------------
!!$omp parallel do &
!!$omp& private(I, J, K, IJK, IPJK, IJPK, IJKP, &
!!$omp& IMJK, IJMK, IJKM, &
!!$omp& IJKE, IJKW, IJKN, IJKS, IJKT, IJKB, &
!!$omp& K_P, SRC, bma, bme, bmw, bmn, bms, bmt, bmb, bmr )
DO IJK = ijkstart3, ijkend3
! Determine whether IJK falls within 1 ghost layer........
I = I_OF(IJK)
J = J_OF(IJK)
K = K_OF(IJK)
IF (FLUID_AT(IJK)) THEN
IPJK = IP_OF(IJK)
IJPK = JP_OF(IJK)
IJKP = KP_OF(IJK)
IMJK = IM_OF(IJK)
IJMK = JM_OF(IJK)
IJKM = KM_OF(IJK)
IJKE = EAST_OF(IJK)
IJKW = WEST_OF(IJK)
IJKN = NORTH_OF(IJK)
IJKS = SOUTH_OF(IJK)
IJKT = TOP_OF(IJK)
IJKB = BOTTOM_OF(IJK)
! initializing
A_M(IJK,0,0) = ZERO
B_M(IJK,0) = ZERO
K_P = K_CP(IJK)
! Calculate convection-diffusion fluxes through each of the faces
! East face (i+1/2, j, k)
IF (U_S(IJK,M) < ZERO) THEN
A_M(IJK,east,0) = (ROP_S(IJKE,M)*E_E(IJK)*K_CP(IJKE)-&
RO_S(IJKE,M)*U_S(IJK,M))*AYZ(IJK)
A_M(IJK,0,0) = A_M(IJK,0,0)+&
ROP_S(IJKE,M)*E_E(IJK)*K_P*AYZ(IJK)
bme = (-ROP_S(IJKE,M)*U_S(IJK,M))*AYZ(IJK)
B_M(IJK,0) = B_M(IJK,0) + bme
ELSE
A_M(IJK,east,0) = (ROP_S(IJK,M)*&
E_E(IJK)*K_CP(IJKE))*AYZ(IJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_S(IJK,M)*&
E_E(IJK)*K_P+RO_S(IJK,M)*U_S(IJK,M))*AYZ(IJK)
bme = (-ROP_S(IJK,M)*U_S(IJK,M))*AYZ(IJK)
B_M(IJK,0) = B_M(IJK,0) + bme
ENDIF
! West face (i-1/2, j, k)
IF (U_S(IMJK,M) > ZERO) THEN
A_M(IJK,west,0) = (ROP_S(IJKW,M)*E_E(IMJK)*K_CP(IJKW)+&
RO_S(IJKW,M)*U_S(IMJK,M))*AYZ(IMJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + &
ROP_S(IJKW,M)*E_E(IMJK)*K_P*AYZ(IMJK)
bmw = (ROP_S(IJKW,M)*U_S(IMJK,M))*AYZ(IMJK)
B_M(IJK,0) = B_M(IJK,0) + bmw
ELSE
A_M(IJK,west,0) = (ROP_S(IJK,M)*&
E_E(IMJK)*K_CP(IJKW))*AYZ(IMJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_S(IJK,M)*&
E_E(IMJK)*K_P-RO_S(IJK,M)*U_S(IMJK,M))*AYZ(IMJK)
bmw = (ROP_S(IJK,M)*U_S(IMJK,M))*AYZ(IMJK)
B_M(IJK,0) = B_M(IJK,0) + bmw
ENDIF
! North face (i, j+1/2, k)
IF (V_S(IJK,M) < ZERO) THEN
A_M(IJK,north,0) = (ROP_S(IJKN,M)*E_N(IJK)*K_CP(IJKN)-&
RO_S(IJKN,M)*V_S(IJK,M))*AXZ(IJK)
A_M(IJK,0,0)=A_M(IJK,0,0)+&
ROP_S(IJKN,M)*E_N(IJK)*K_P*AXZ(IJK)
bmn = (-ROP_S(IJKN,M)*V_S(IJK,M))*AXZ(IJK)
B_M(IJK,0) = B_M(IJK,0) + bmn
ELSE
A_M(IJK,north,0) = (ROP_S(IJK,M)*&
E_N(IJK)*K_CP(IJKN))*AXZ(IJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_S(IJK,M)*&
E_N(IJK)*K_P+RO_S(IJK,M)*V_S(IJK,M))*AXZ(IJK)
bmn = (-ROP_S(IJK,M)*V_S(IJK,M))*AXZ(IJK)
B_M(IJK,0) = B_M(IJK,0) + bmn
ENDIF
! South face (i, j-1/2, k)
IF (V_S(IJMK,M) > ZERO) THEN
A_M(IJK,south,0) = (ROP_S(IJKS,M)*E_N(IJMK)*K_CP(IJKS)+&
RO_S(IJKS,M)*V_S(IJMK,M))*AXZ(IJMK)
A_M(IJK,0,0) = A_M(IJK,0,0) + &
ROP_S(IJKS,M)*E_N(IJMK)*K_P*AXZ(IJMK)
bms = (ROP_S(IJKS,M)*V_S(IJMK,M))*AXZ(IJMK)
B_M(IJK,0) = B_M(IJK,0) + bms
ELSE
A_M(IJK,south,0) = (ROP_S(IJK,M)*&
E_N(IJMK)*K_CP(IJKS))*AXZ(IJMK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_S(IJK,M)*&
E_N(IJMK)*K_P-RO_S(IJK,M)*V_S(IJMK,M))*AXZ(IJMK)
bms = (ROP_S(IJK,M)*V_S(IJMK,M))*AXZ(IJMK)
B_M(IJK,0) = B_M(IJK,0) + bms
ENDIF
IF (DO_K) THEN
! Top face (i, j, k+1/2)
IF (W_S(IJK,M) < ZERO) THEN
A_M(IJK,top,0) = (ROP_S(IJKT,M)*E_T(IJK)*K_CP(IJKT)-&
RO_S(IJKT,M)*W_S(IJK,M))*AXY(IJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + &
ROP_S(IJKT,M)*E_T(IJK)*K_P*AXY(IJK)
bmt = (-ROP_S(IJKT,M)*W_S(IJK,M))*AXY(IJK)
B_M(IJK,0)=B_M(IJK,0) + bmt
ELSE
A_M(IJK,top,0) = (ROP_S(IJK,M)*&
E_T(IJK)*K_CP(IJKT))*AXY(IJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_S(IJK,M)*&
E_T(IJK)*K_P+RO_S(IJK,M)*W_S(IJK,M))*AXY(IJK)
bmt = (-ROP_S(IJK,M)*W_S(IJK,M))*AXY(IJK)
B_M(IJK,0) = B_M(IJK,0) + bmt
ENDIF
! Bottom face (i, j, k-1/2)
IF (W_S(IJKM,M) > ZERO) THEN
A_M(IJK,bottom,0) = (ROP_S(IJKB,M)*E_T(IJKM)*K_CP(IJKB)+&
RO_S(IJKB,M)*W_S(IJKM,M))*AXY(IJKM)
A_M(IJK,0,0) = A_M(IJK,0,0) + &
ROP_S(IJKB,M)*E_T(IJKM)*K_P*AXY(IJKM)
bmb = (ROP_S(IJKB,M)*W_S(IJKM,M))*AXY(IJKM)
B_M(IJK,0) = B_M(IJK,0) + bmb
ELSE
A_M(IJK,bottom,0) = (ROP_S(IJK,M)*&
E_T(IJKM)*K_CP(IJKB))*AXY(IJKM)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_S(IJK,M)*&
E_T(IJKM)*K_P-RO_S(IJK,M)*W_S(IJKM,M))*AXY(IJKM)
bmb = (ROP_S(IJK,M)*W_S(IJKM,M))*AXY(IJKM)
B_M(IJK,0)=B_M(IJK,0) + bmb
ENDIF
ELSE ! not(DO_K) branch
bmt = zero
bmb = zero
ENDIF ! end if/else (do_K)
IF (ROP_S(IJK,M)>ZERO .AND. SUM_R_S(IJK,M)<ZERO) THEN
SRC = VOL(IJK)*(-SUM_R_S(IJK,M))/ROP_S(IJK,M)
ELSE
SRC = ZERO
ENDIF
A_M(IJK,0,0) = -(A_M(IJK,0,0)+VOL(IJK)*ODT*RO_S(IJK,M)+SRC*RO_S(IJK,M))
bma = (ROP_S(IJK,M)-ROP_SO(IJK,M))*VOL(IJK)*ODT
bmr = SUM_R_S(IJK,M)*VOL(IJK)
B_M(IJK,0) = -(B_M(IJK,0) - bma + bmr)
B_MMAX(IJK,0) = max(abs(bma), abs(bme), abs(bmw), abs(bmn), abs(bms), abs(bmt), abs(bmb), abs(bmr) )
IF ((-A_M(IJK,0,0)) < SMALL_NUMBER) THEN
IF (ABS(B_M(IJK,0)) < SMALL_NUMBER) THEN
A_M(IJK,0,0) = -ONE ! Equation is undefined.
B_M(IJK,0) = ZERO ! Use existing value
ELSE
!!$omp critical
WRITE (LINE, '(A,I6,A,G12.5)') &
'Error: At IJK = ', IJK, &
' A = 0 and b = ', B_M(IJK,0)
CALL WRITE_ERROR ('CONV_SOURCE_EPp0', LINE, 1)
!!$omp end critical
ENDIF
ENDIF
ELSE
A_M(IJK,0,0) = -ONE
B_M(IJK,0) = ZERO
ENDIF
ENDDO
RETURN
END SUBROUTINE CONV_SOURCE_EPP0
!vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvC
! C
! Subroutine: CONV_SOURCE_EPp1 C
! Purpose: Determine convection & source terms for solids volume C
! fraction correction equation. Higher order scheme. C
! C
! Author: M. Syamlal Date: 24-SEP-96 C
! Reviewer: Date: C
! C
! C
! C
!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^C
SUBROUTINE CONV_SOURCE_EPP1(A_M, B_M, B_MMAX, M)
!-----------------------------------------------
! Modules
!-----------------------------------------------
USE compar
USE constant
USE fldvar
USE functions
USE geometry
USE indices
USE parallel
USE param
USE param1
USE pgcor
USE physprop
USE pscor
USE run
USE rxns
USE sendrecv
USE solids_pressure
USE vshear
USE xsi
IMPLICIT NONE
!-----------------------------------------------
! Dummy arguments
!-----------------------------------------------
! Septadiagonal matrix A_m
DOUBLE PRECISION, INTENT(INOUT) :: A_m(DIMENSION_3, -3:3, 0:DIMENSION_M)
! Vector b_m
DOUBLE PRECISION, INTENT(INOUT) :: B_m(DIMENSION_3, 0:DIMENSION_M)
! maximum term in b_m expression
DOUBLE PRECISION, INTENT(INOUT) :: B_mmax(DIMENSION_3, 0:DIMENSION_M)
! Lowest solids phase index of those solids phases that can
! close packed (M=MCP)
INTEGER, INTENT(IN) :: M
!-----------------------------------------------
! Local variables
!-----------------------------------------------
! Indices
INTEGER :: I, J, K, IJK, IPJK, IJPK, IJKP
INTEGER :: IMJK, IJMK, IJKM, IJKE, IJKW, IJKN, IJKS
INTEGER :: IJKB, IJKT
! loezos : used for including shearing
INTEGER :: incr
! dPodEP_s(EP_s(IJK, M)); the derivative of the plastic or friction
! pressure with respect to ep_s
DOUBLE PRECISION :: K_P
! Mass source
DOUBLE PRECISION :: Src
! face value of ROP_s
DOUBLE PRECISION :: ROP_sf
! terms of bm expression
DOUBLE PRECISION :: bma, bme, bmw, bmn, bms, bmt, bmb, bmr
! error message
CHARACTER(LEN=80) :: LINE(1)
! temporary use of global arrays:
! xsi_array: convection weighting factors
DOUBLE PRECISION :: XSI_e(DIMENSION_3), &
XSI_n(DIMENSION_3),&
XSI_t(DIMENSION_3)
!-----------------------------------------------
! Loezos:
incr=0
! Calculate convection factors
CALL CALC_XSI (DISCRETIZE(2), ROP_S(1,M), U_S(1,M), V_S(1,M), W_S(1,M), &
XSI_E, XSI_N, XSI_T,incr)
! Loezos:
! update to true velocity
IF (SHEAR) THEN
!!$omp parallel do private(IJK)
DO IJK = ijkstart3, ijkend3
IF (FLUID_AT(IJK)) THEN
V_S(IJK,m)=V_s(IJK,m)+VSH(IJK)
ENDIF
ENDDO
ENDIF
!!$omp parallel do &
!!$omp& private(I, J, K, IJK, IPJK, IJPK, IJKP, &
!!$omp& IMJK, IJMK, IJKM, IJKE, IJKW, IJKN, IJKS, IJKT, IJKB, &
!!$omp& K_P,ROP_SF,SRC, bma, bme, bmw, bmn, bms, bmt, bmb, bmr )
DO IJK = ijkstart3, ijkend3
! Determine if IJK falls within 1 ghost layer........
I = I_OF(IJK)
J = J_OF(IJK)
K = K_OF(IJK)
IF (FLUID_AT(IJK)) THEN
IPJK = IP_OF(IJK)
IJPK = JP_OF(IJK)
IJKP = KP_OF(IJK)
IMJK = IM_OF(IJK)
IJMK = JM_OF(IJK)
IJKM = KM_OF(IJK)
IJKE = EAST_OF(IJK)
IJKW = WEST_OF(IJK)
IJKN = NORTH_OF(IJK)
IJKS = SOUTH_OF(IJK)
IJKT = TOP_OF(IJK)
IJKB = BOTTOM_OF(IJK)
! initializing
A_M(IJK,0,0) = ZERO
B_M(IJK,0) = ZERO
K_P = K_CP(IJK)
! Calculate convection-diffusion fluxes through each of the faces
! East face (i+1/2, j, k)
ROP_SF = ROP_S(IJKE,M)*XSI_E(IJK) + ROP_S(IJK,M)*(ONE - XSI_E(IJK))
A_M(IJK,east,0) = (ROP_SF*E_E(IJK)*K_CP(IJKE)-RO_S(IJK,M)*U_S(IJK,M)*XSI_E&
(IJK))*AYZ(IJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_SF*E_E(IJK)*K_P+RO_S(IJK,M)*U_S(IJK,&
M)*(ONE-XSI_E(IJK)))*AYZ(IJK)
bme = (-ROP_SF*U_S(IJK,M))*AYZ(IJK)
B_M(IJK,0) = B_M(IJK,0) + bme
! West face (i-1/2, j, k)
ROP_SF=ROP_S(IJK,M)*XSI_E(IMJK)+ROP_S(IJKW,M)*(ONE-XSI_E(IMJK))
A_M(IJK,west,0) = (ROP_SF*E_E(IMJK)*K_CP(IJKW)+RO_S(IJK,M)*U_S(IMJK,M)*(&
ONE-XSI_E(IMJK)))*AYZ(IMJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_SF*E_E(IMJK)*K_P-RO_S(IJK,M)*U_S(&
IMJK,M)*XSI_E(IMJK))*AYZ(IMJK)
bmw = (ROP_SF*U_S(IMJK,M))*AYZ(IMJK)
B_M(IJK,0) = B_M(IJK,0) + bmw
! North face (i, j+1/2, k)
ROP_SF = ROP_S(IJKN,M)*XSI_N(IJK) + ROP_S(IJK,M)*(ONE - XSI_N(IJK))
A_M(IJK,north,0) = (ROP_SF*E_N(IJK)*K_CP(IJKN)-RO_S(IJK,M)*V_S(IJK,M)*XSI_N&
(IJK))*AXZ(IJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_SF*E_N(IJK)*K_P+RO_S(IJK,M)*V_S(IJK,&
M)*(ONE-XSI_N(IJK)))*AXZ(IJK)
bmn = (-ROP_SF*V_S(IJK,M))*AXZ(IJK)
B_M(IJK,0) = B_M(IJK,0) + bmn
! South face (i, j-1/2, k)
ROP_SF=ROP_S(IJK,M)*XSI_N(IJMK)+ROP_S(IJKS,M)*(ONE-XSI_N(IJMK))
A_M(IJK,south,0) = (ROP_SF*E_N(IJMK)*K_CP(IJKS)+RO_S(IJK,M)*V_S(IJMK,M)*(&
ONE-XSI_N(IJMK)))*AXZ(IJMK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_SF*E_N(IJMK)*K_P-RO_S(IJK,M)*V_S(&
IJMK,M)*XSI_N(IJMK))*AXZ(IJMK)
bms = (ROP_SF*V_S(IJMK,M))*AXZ(IJMK)
B_M(IJK,0) = B_M(IJK,0) + bms
IF (DO_K) THEN
! Top face (i, j, k+1/2)
ROP_SF=ROP_S(IJKT,M)*XSI_T(IJK)+ROP_S(IJK,M)*(ONE-XSI_T(IJK))
A_M(IJK,top,0) = (ROP_SF*E_T(IJK)*K_CP(IJKT)-RO_S(IJK,M)*W_S(IJK,M)*&
XSI_T(IJK))*AXY(IJK)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_SF*E_T(IJK)*K_P+RO_S(IJK,M)*W_S(&
IJK,M)*(ONE-XSI_T(IJK)))*AXY(IJK)
bmt = (-ROP_SF*W_S(IJK,M))*AXY(IJK)
B_M(IJK,0) = B_M(IJK,0) + bmt
! Bottom face (i, j, k-1/2)
ROP_SF = ROP_S(IJK,M)*XSI_T(IJKM) + ROP_S(IJKB,M)*(ONE - XSI_T(&
IJKM))
A_M(IJK,bottom,0) = (ROP_SF*E_T(IJKM)*K_CP(IJKB)+RO_S(IJK,M)*W_S(IJKM,M)*&
(ONE-XSI_T(IJKM)))*AXY(IJKM)
A_M(IJK,0,0) = A_M(IJK,0,0) + (ROP_SF*E_T(IJKM)*K_P-RO_S(IJK,M)*W_S(&
IJKM,M)*XSI_T(IJKM))*AXY(IJKM)
bmb = (ROP_SF*W_S(IJKM,M))*AXY(IJKM)
B_M(IJK,0) = B_M(IJK,0) + bmb
ELSE ! not(do_k) branch
bmt = zero
bmb = zero
ENDIF ! end if/else (do_k)
IF (ROP_S(IJK,M)>ZERO .AND. SUM_R_S(IJK,M)<ZERO) THEN
SRC = VOL(IJK)*(-SUM_R_S(IJK,M))/ROP_S(IJK,M)
ELSE
SRC = ZERO
ENDIF
A_M(IJK,0,0) = -(A_M(IJK,0,0)+VOL(IJK)*ODT*RO_S(IJK,M)+SRC*RO_S(IJK,M))
bma = (ROP_S(IJK,M)-ROP_SO(IJK,M))*VOL(IJK)*ODT
bmr = SUM_R_S(IJK,M)*VOL(IJK)
B_M(IJK,0) = -(B_M(IJK,0)- bma + bmr)
B_MMAX(IJK,0) = max(abs(bma), abs(bme), abs(bmw), abs(bmn), abs(bms), abs(bmt), abs(bmb), abs(bmr) ) !
IF (ABS(A_M(IJK,0,0)) < SMALL_NUMBER) THEN
IF (ABS(B_M(IJK,0)) < SMALL_NUMBER) THEN
A_M(IJK,0,0) = -ONE ! Equation is undefined.
B_M(IJK,0) = ZERO ! Use existing value
ELSE
!!$omp critical
WRITE (LINE(1), '(A,I6,A,G12.5)') &
'Error: At IJK = ', IJK, &
' A = 0 and b = ', B_M(IJK,0)
! Having problem to compile this statement on SGI
CALL WRITE_ERROR ('CONV_SOURCE_EPp1', LINE, 1)
!!$omp end critical
ENDIF
ENDIF
ELSE
A_M(IJK,0,0) = -ONE
B_M(IJK,0) = ZERO
ENDIF
ENDDO
! Loezos:
IF (SHEAR) THEN
!!$omp parallel do private(IJK)
DO IJK = ijkstart3, ijkend3
IF (FLUID_AT(IJK)) THEN
V_S(IJK,m)=V_s(IJK,m)-VSH(IJK)
ENDIF
ENDDO
ENDIF
RETURN
END SUBROUTINE CONV_SOURCE_EPP1
!vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvC
! C
! Subroutine: POINT_SOURCE_EPP C
! Purpose: Adds point sources to the solids volume fraction C
! correction equation. C
! C
! Notes: The off-diagonal coefficients are positive. The center C
! coefficient and the source vector are negative. See C
! conv_Pp_g C
! C
! Author: J. Musser Date: 10-JUN-13 C
! Reviewer: Date: C
! C
!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^C
SUBROUTINE POINT_SOURCE_EPP(B_M, B_MMAX, M)
!-----------------------------------------------
! Modules
!-----------------------------------------------
use compar
use constant
use geometry
use indices
use physprop
use ps
use pscor
use run
use functions
IMPLICIT NONE
!-----------------------------------------------
! Dummy arguments
!-----------------------------------------------
! Vector b_m
DOUBLE PRECISION, INTENT(INOUT) :: B_m(DIMENSION_3, 0:DIMENSION_M)
! maximum term in b_m expression
DOUBLE PRECISION, INTENT(INOUT) :: B_mmax(DIMENSION_3, 0:DIMENSION_M)
! Lowest solids phase index of those solids phases that can
! close packed (M=MCP)
INTEGER, INTENT(IN) :: M
!-----------------------------------------------
! Local Variables
!-----------------------------------------------
! Indices
INTEGER :: IJK, I, J, K
INTEGER :: PSV
! terms of bm expression
DOUBLE PRECISION :: pSource
!-----------------------------------------------
PS_LP: do PSV = 1, DIMENSION_PS
if(.NOT.PS_DEFINED(PSV)) cycle PS_LP
if(PS_MASSFLOW_S(PSV,M) < small_number) cycle PS_LP
do k = PS_K_B(PSV), PS_K_T(PSV)
do j = PS_J_S(PSV), PS_J_N(PSV)
do i = PS_I_W(PSV), PS_I_E(PSV)
if(.NOT.IS_ON_myPE_plus2layers(I,J,K)) cycle
IF (DEAD_CELL_AT(I,J,K)) CYCLE ! skip dead cells
ijk = funijk(i,j,k)
if(fluid_at(ijk)) then
pSource = PS_MASSFLOW_S(PSV,M) * &
(VOL(IJK)/PS_VOLUME(PSV))
B_M(IJK,0) = B_M(IJK,0) - pSource
B_MMAX(IJK,0) = max(abs(B_MMAX(IJK,0)), abs(B_M(IJK,0)))
endif
enddo
enddo
enddo
enddo PS_LP
RETURN
END SUBROUTINE POINT_SOURCE_EPP
|
Fortran Free Form
|
[mediasource-config-change-webm-a-bitrate.html]
type: testharness
prefs: [media.mediasource.enabled:true, media.mediasource.whitelist:false]
disabled:
if os == "linux": https://bugzilla.mozilla.org/show_bug.cgi?id=1186261
if (os == "win") and (version == "5.1.2600"): https://bugzilla.mozilla.org/show_bug.cgi?id=1186261
[Tests webm audio-only bitrate changes.]
expected: FAIL
|
INI
|
/obj/effect/decal/cleanable/crayon
name = "rune"
desc = "A rune drawn in crayon."
icon = 'icons/obj/rune.dmi'
layer = 2.1
anchored = 1
examine()
set src in view(2)
..()
return
New(location,main = "#FFFFFF",shade = "#000000",var/type = "rune")
..()
loc = location
name = type
desc = "A [type] drawn in crayon."
switch(type)
if("rune")
type = "rune[rand(1,6)]"
if("graffiti")
type = pick("amyjon","face","matt","revolution","engie","guy","end","dwarf","uboa")
var/icon/mainOverlay = new/icon('icons/effects/crayondecal.dmi',"[type]",2.1)
var/icon/shadeOverlay = new/icon('icons/effects/crayondecal.dmi',"[type]s",2.1)
mainOverlay.Blend(main,ICON_ADD)
shadeOverlay.Blend(shade,ICON_ADD)
overlays += mainOverlay
overlays += shadeOverlay
add_hiddenprint(usr)
|
DM
|
# --- Sample dataset
# --- !Ups
INSERT INTO status VALUES (1, 'New', 'Asset has been entered into the system');
INSERT INTO status VALUES (2, 'Unallocated', 'Asset has gone through intake');
INSERT INTO status VALUES (3, 'Allocated', 'Asset is in use or is ready for use');
INSERT INTO status VALUES (4, 'Cancelled', 'Asset is scheduled for decommissioning');
INSERT INTO status VALUES (5, 'Maintenance', 'Asset is scheduled for maintenance');
INSERT INTO status VALUES (6, 'Decommissioned', 'Asset is gone');
INSERT INTO status VALUES (7, 'Incomplete', 'Asset has not been finalized');
INSERT INTO asset_type VALUES (1, 'Server Node');
INSERT INTO asset_type VALUES (2, 'Server Chassis');
INSERT INTO asset_type VALUES (3, 'Rack');
INSERT INTO asset_type VALUES (4, 'Switch');
INSERT INTO asset_type VALUES (5, 'Router');
INSERT INTO asset_type VALUES (6, 'Power Circuit');
INSERT INTO asset_type VALUES (7, 'Power Strip');
INSERT INTO asset_type VALUES (8, 'Data Center');
INSERT INTO asset_meta VALUES (1, 'SERVICE_TAG', 1, 'Service Tag', 'Vendor supplied service tag');
INSERT INTO asset_meta VALUES (2, 'CHASSIS_TAG', 1, 'Chassis Tag', 'Tag for asset chassis');
INSERT INTO asset_meta VALUES (3, 'RACK_POSITION', 1, 'Rack Position', 'Position of asset in rack');
INSERT INTO asset_meta VALUES (4, 'POWER_PORT', 2, 'Power Port', 'Power port of asset');
INSERT INTO asset_meta VALUES (5, 'SWITCH_PORT', 2, 'Switch Port', 'Switch port that asset is connected to');
INSERT INTO asset_meta VALUES (6, 'CPU_COUNT', -1, 'CPU Count', 'Number of physical CPUs in asset');
INSERT INTO asset_meta VALUES (7, 'CPU_CORES', -1, 'CPU Cores', 'Number of cores per physical CPU');
INSERT INTO asset_meta VALUES (8, 'CPU_THREADS', -1, 'CPU Threads', 'Number of threads per CPU core');
INSERT INTO asset_meta VALUES (9, 'CPU_SPEED_GHZ', 3, 'CPU Speed', 'CPU Speed in GHz');
INSERT INTO asset_meta VALUES (10, 'CPU_DESCRIPTION', -1, 'CPU Description', 'CPU description, vendor labels');
INSERT INTO asset_meta VALUES (11, 'MEMORY_SIZE_BYTES', -1, 'Memory', 'Size of Memory Stick');
INSERT INTO asset_meta VALUES (12, 'MEMORY_DESCRIPTION', -1, 'Memory Description', 'Memory description, vendor label');
INSERT INTO asset_meta VALUES (13, 'MEMORY_SIZE_TOTAL', 4, 'Memory Total', 'Total amount of available memory in bytes');
INSERT INTO asset_meta VALUES (14, 'MEMORY_BANKS_TOTAL', -1, 'Memory Banks', 'Total number of memory banks');
INSERT INTO asset_meta VALUES (15, 'NIC_SPEED', 5, 'NIC Speed', 'Speed of nic, stored as bits per second');
INSERT INTO asset_meta VALUES (16, 'MAC_ADDRESS', 2, 'MAC Address', 'MAC Address of NIC');
INSERT INTO asset_meta VALUES (17, 'NIC_DESCRIPTION', -1, 'NIC Description', 'Vendor labels for NIC');
INSERT INTO asset_meta VALUES (18, 'DISK_SIZE_BYTES', -1, 'Disk Size', 'Disk size in bytes');
INSERT INTO asset_meta VALUES (19, 'DISK_TYPE', 6, 'Inferred disk type', 'Inferred disk type: SCSI, IDE or FLASH');
INSERT INTO asset_meta VALUES (20, 'DISK_DESCRIPTION', -1, 'Disk Description', 'Vendor labels for disk');
INSERT INTO asset_meta VALUES (21, 'DISK_STORAGE_TOTAL', 7, 'Total disk storage', 'Total amount of available storage');
INSERT INTO asset_meta VALUES (22, 'LLDP_INTERFACE_NAME', -1, 'LLDP Interface Name', 'Interface name reported by lldpctl');
INSERT INTO asset_meta VALUES (23, 'LLDP_CHASSIS_NAME', -1, 'LLDP Chassis Name', 'Chassis name reported by lldpctl');
INSERT INTO asset_meta VALUES (24, 'LLDP_CHASSIS_ID_TYPE', -1, 'LLDP Chassis ID Type', 'Chassis ID Type reported by lldpctl');
INSERT INTO asset_meta VALUES (25, 'LLDP_CHASSIS_ID_VALUE', -1, 'LLDP Chassis ID Value', 'Chassis ID Value reported by lldpctl');
INSERT INTO asset_meta VALUES (26, 'LLDP_CHASSIS_DESCRIPTION', -1, 'LLDP Chassis Description', 'Chassis Description reported by lldpctl');
INSERT INTO asset_meta VALUES (27, 'LLDP_PORT_ID_TYPE', -1, 'LLDP Port ID Type', 'Port ID Type reported by lldpctl');
INSERT INTO asset_meta VALUES (28, 'LLDP_PORT_ID_VALUE', -1, 'LLDP Port ID Value', 'Port ID Value reported by lldpctl');
INSERT INTO asset_meta VALUES (29, 'LLDP_PORT_DESCRIPTION', -1, 'LLDP Port Description', 'Port Description reported by lldpctl');
INSERT INTO asset_meta VALUES (30, 'LLDP_VLAN_ID', -1, 'LLDP VLAN ID', 'VLAN ID reported by lldpctl');
INSERT INTO asset_meta VALUES (31, 'LLDP_VLAN_NAME', -1, 'LLDP VLANE Name', 'VLAN name reported by lldpctl');
INSERT INTO asset_meta VALUES (32, 'INTERFACE_NAME', -1, 'Interface Name', 'Name of physical interface, e.g. eth0');
INSERT INTO asset_meta VALUES (33, 'INTERFACE_ADDRESS', 0, 'IP Address', 'Address on interface, e.g. 10.0.0.1');
INSERT INTO asset VALUES (1, 'tumblrtag1', 7, 1, CURRENT_TIMESTAMP, null, null);
-- gateway 10.0.0.1, ip address 10.0.0.2, netmask /19 = 255.255.224.0
INSERT INTO ipmi_info VALUES(1, 1, 'test-user', '', 167772161, 167772162, 4294959104);
INSERT INTO asset_meta_value VALUES(1, 1, 0, 'dell service tag 123');
INSERT INTO asset_meta_value VALUES(1, 2, 0, 'chassis tag abc');
INSERT INTO asset_log SET asset_id=1, message_type=6, message='Automatically created by database migration';
# --- !Downs
DELETE FROM asset_meta_value;
DELETE FROM asset_log;
DELETE FROM asset_meta;
DELETE FROM asset;
DELETE FROM asset_type;
DELETE FROM status;
|
PLSQL
|
import {DesktopEntity} from '../model/DesktopEntity';
import {DesktopSnapGroup} from '../model/DesktopSnapGroup';
import {EntityState} from '../model/DesktopWindow';
import {eTargetType} from '../WindowHandler';
import {ANCHOR_DISTANCE, MIN_OVERLAP, SNAP_DISTANCE} from './Constants';
import {Orientation, SnapTarget} from './Resolver';
import {Point, PointUtils} from './utils/PointUtils';
import {Range, RangeUtils} from './utils/RangeUtils';
import {MeasureResult, Rectangle, RectUtils} from './utils/RectUtils';
export enum eDirection {
LEFT,
TOP,
RIGHT,
BOTTOM
}
/**
* Specialised util class for determining the closest windows in each direction of an active group.
*
* Will process surrounding windows one at a time, gradually building up a map of possible snap locations. If a window
* is found that intersects the active group, the entire projection will be flagged as invalid.
*/
export class Projector {
/**
* Specifies if the active window is being blocked from snapping in the current position due to a candidate window
* being in the way.
*/
private _blocked: boolean;
/**
* This util manages each of the four cardinal directions independently, before clipping each of the edges against
* it's neighbours at the end of the process.
*/
private _borders: [BorderProjection, BorderProjection, BorderProjection, BorderProjection];
constructor() {
this._blocked = false;
this._borders = [
new BorderProjection(eDirection.LEFT),
new BorderProjection(eDirection.TOP),
new BorderProjection(eDirection.RIGHT),
new BorderProjection(eDirection.BOTTOM)
];
this.reset();
}
/**
* Resets the state of this util, so it can be re-used for a different candidate group
*/
public reset(): void {
this._blocked = false;
this._borders.forEach(border => {
border.limit = border.direction < 2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER;
border.distance = Number.MAX_SAFE_INTEGER;
border.min = Number.MAX_SAFE_INTEGER;
border.max = Number.MIN_SAFE_INTEGER;
});
}
/**
* Projects a candidate window onto the relevant edge of the active window, and updates the model if the active
* group can be snapped to this candidate group.
*
* @param activeState The window currently being dragged
* @param candidateState A window that 'activeWindow' may be able to snap to
* @param snapDistance The maximum distance between two windows for them to snap together
*/
public project(activeState: Rectangle, candidateState: Rectangle): void {
const distBtwnWindows: MeasureResult = RectUtils.distance(activeState, candidateState);
const direction: eDirection = this.getDirectionFromOffset(distBtwnWindows, activeState, candidateState);
const isValid: boolean = this._borders[direction].project(activeState, candidateState, distBtwnWindows);
this._blocked = this._blocked || !isValid;
}
/**
* Once the projection has been fully built, determines if there is a valid snap target.
*
* If so, a SnapTarget object will be built and returned, otherwise will return null.
*
* @param candidateGroup The group that was used to build this projection
* @param activeWindow The window that is being moved by the user
*/
public createTarget(candidateGroup: DesktopSnapGroup, activeWindow: DesktopEntity): SnapTarget|null {
const borders: BorderProjection[] = this._borders;
if (!this._blocked) {
const activeState: EntityState = activeWindow.currentState;
const snapOffset: Point = {x: 0, y: 0};
const halfSize: Point = PointUtils.clone(activeState.halfSize);
const validDirections: BorderProjection[] = borders.filter((border: BorderProjection) => {
return border.distance < Number.MAX_SAFE_INTEGER && border.getOverlap(activeState) >= MIN_OVERLAP && border.distance <= SNAP_DISTANCE;
});
if (validDirections.length > 0) {
// Clip each range to each of its neighbours
this.clipProjections();
// Snap active window to each active border
validDirections.forEach((border: BorderProjection) => {
const opposite: BorderProjection = borders[(border.direction + 2) % 4];
if (opposite.distance > SNAP_DISTANCE) {
// Move rectangle to touch this edge
snapOffset[border.orientation] = border.distance * Math.sign(0.5 - Math.floor(border.direction / 2));
// Snap to min/max points
if (validDirections.length === 1) {
const snapToMin: boolean =
Math.abs((activeState.center[border.opposite] - activeState.halfSize[border.opposite]) - border.min) < ANCHOR_DISTANCE;
const snapToMax: boolean =
Math.abs((activeState.center[border.opposite] + activeState.halfSize[border.opposite]) - border.max) < ANCHOR_DISTANCE;
if (snapToMin && snapToMax) {
const {minSize, maxSize, resizableMin, resizableMax} = activeState.resizeConstraints[border.opposite];
const targetBorderLength = (border.max - border.min);
// Only resize if it would not violate any constraints
if ((resizableMin || resizableMax) && targetBorderLength >= minSize && targetBorderLength <= maxSize) {
halfSize[border.opposite] = targetBorderLength / 2;
}
snapOffset[border.opposite] = ((border.min + border.max) / 2) - activeState.center[border.opposite];
snapOffset[border.opposite] = ((border.min + border.max) / 2) - activeState.center[border.opposite] +
(activeState.halfSize[border.opposite] - halfSize[border.opposite]);
} else if (snapToMin) {
snapOffset[border.opposite] = (border.min - activeState.center[border.opposite]) + halfSize[border.opposite];
} else if (snapToMax) {
snapOffset[border.opposite] = (border.max - activeState.center[border.opposite]) - halfSize[border.opposite];
}
}
} else if (border.direction < 2) {
// Move and resize rectangle to touch both this edge and the opposite edge
halfSize[border.orientation] = Math.abs(border.limit - opposite.limit) / 2;
snapOffset[border.orientation] = ((border.limit + opposite.limit) / 2) - activeState.center[border.orientation];
snapOffset[border.orientation] += activeState.halfSize[border.orientation] - halfSize[border.orientation];
} else {
// Need to touch both edges, but the opposite edge has already handled this. Nothing to do.
}
});
return {targetGroup: candidateGroup, activeWindow, offset: snapOffset, halfSize, valid: true, type: eTargetType.SNAP};
}
}
return null;
}
/**
* Determines the direction of the candidate window, relative to the active window. If windows are positioned
* diagonally, the dimension with the smallest offset takes precedence.
*
* e.g: Will return eDirection.LEFT if the candidate window is to the left of the active window.
*
* @param offset Distance between the active and candidate windows in each dimension (@see RectUtils.distance)
* @param activeState The state of the active window
* @param candidateState The state of the candidate window
*/
private getDirectionFromOffset(offset: Point, activeState: Rectangle, candidateState: Rectangle): eDirection {
let orientation: Orientation;
// Determine orientation
if (Math.sign(offset.x) === Math.sign(offset.y)) {
orientation = offset.x > offset.y ? 'x' : 'y';
} else {
orientation = offset.x >= 0 ? 'x' : 'y';
}
// Determine direction
if (orientation === 'x') {
return activeState.center.x < candidateState.center.x ? eDirection.LEFT : eDirection.RIGHT;
} else {
return activeState.center.y < candidateState.center.y ? eDirection.TOP : eDirection.BOTTOM;
}
}
private clipProjections(): void {
const borders: BorderProjection[] = this._borders;
for (let i = 0; i < 4; i++) {
borders[i].clip(borders[(i + 1) % 4]);
borders[i].clip(borders[(i + 3) % 4]);
}
}
}
/**
* A sub-set of a projection. An instance of this class is created for each of the four directions around the active
* group. This will then process all candidate windows that fall on that side of the active window.
*/
class BorderProjection implements Range {
/**
* Indicates which side of the active window this border operates on
*/
public direction: eDirection;
/**
* The axis that this border lies on (e.g. A direction of 'LEFT' has an orientation of 'x' - since 'left' indicates a direction on the x axis).
*
* This is the axis that the active window will need to be moved in order to snap to a candidate in this direction.
*/
public orientation: Orientation;
/**
* The opposite of 'orientation' (e.g. A direction of 'LEFT' has an opposite of 'y').
*
* This is the axis that the active window will need to be moved in if anchoring to one of the ends of this border.
*/
public opposite: Orientation;
public distance: number; // < Distance between the edge of the active window and the closest candidate window in this direction
public limit: number; // < Absolute pixel co-ordinate of the closest candidate window in this direction. (for the 'orientation' axis)
public min: number; // < Minimum extent of this border. Initialised to very large positive number, so that any 'less than' check for the first window to
// find will always pass.
public max: number; // < Maximum extend of this border. Initialised to very large negative number, so that any 'greater than' check for the first window to
// find will always pass.
constructor(direction: eDirection) {
this.direction = direction;
this.orientation = (direction % 2) ? 'y' : 'x';
this.opposite = (direction % 2) ? 'x' : 'y';
this.limit = this.direction < 2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER;
this.distance = Number.MAX_SAFE_INTEGER;
this.min = Number.MAX_SAFE_INTEGER;
this.max = Number.MIN_SAFE_INTEGER;
}
/**
* Adds a window to this projection. This should be called for every candidate within range of the active window that falls on this side of the active
* window.
*
* @param activeState Window that is having candidates projected upon it
* @param candidateState Window that is being projected
* @param distBtwnWindows The offset between the two windows
*/
public project(activeState: Rectangle, candidateState: Rectangle, distBtwnWindows: MeasureResult): boolean {
if (distBtwnWindows.x < -SNAP_DISTANCE && distBtwnWindows.y < -SNAP_DISTANCE) {
return false;
} else if (distBtwnWindows.border(Math.max(SNAP_DISTANCE, ANCHOR_DISTANCE))) {
const orientation: Orientation = this.orientation;
const candidateLimit = candidateState.center[orientation] +
(candidateState.halfSize[orientation] * Math.sign(activeState.center[orientation] - candidateState.center[orientation]));
this.limit = (this.direction < 2) ? Math.min(this.limit, candidateLimit) : Math.max(this.limit, candidateLimit);
return this.addToRange(activeState, candidateState, distBtwnWindows[orientation]);
}
return true;
}
/**
* Returns the overlap between the active window and this axis of the projection.
*
* @param activeState The window that this projection is based on
*/
public getOverlap(activeState: Rectangle): number {
const center: number = (this.min + this.max) / 2;
const halfSize: number = (this.max - this.min) / 2;
return (activeState.halfSize[this.opposite] + halfSize) - Math.abs(activeState.center[this.opposite] - center);
}
/**
* Ensures that the line created by this border doesn't intersect any neighbouring borders.
*
* It is important that borders do not intersect, otherwise the service could snap a window into a position that intersects a window within a candidate
* group.
*
* By clipping these ranges we ensure the window will snap to the corner where the ranges intersect, rather than snapping to an invalid position.
*
* @param other A neighbouring border that we should clip this range against
*/
public clip(other: BorderProjection): void {
if (other.distance < Number.MAX_SAFE_INTEGER && RangeUtils.within(this, other.limit)) {
// Constrain this range by the limits of the intersecting range
const mid = (this.min + this.max) / 2;
if (other.limit < mid) {
this.min = Math.max(this.min, other.limit);
} else {
this.max = Math.min(this.max, other.limit);
}
}
}
private addToRange(activeState: Rectangle, candidateState: Rectangle, distance: number): boolean {
if (distance <= this.distance) {
const opposite: Orientation = this.opposite;
if (Math.abs(activeState.center[opposite] - candidateState.center[opposite]) > activeState.halfSize[opposite] + candidateState.halfSize[opposite]) {
console.log('No overlap in ' + opposite + ' axis');
return true;
}
this.distance = distance;
const min: number = candidateState.center[opposite] - candidateState.halfSize[opposite];
const max: number = candidateState.center[opposite] + candidateState.halfSize[opposite];
const isContiguous: boolean = this.min > this.max || RangeUtils.within(this, min) || RangeUtils.within(this, max);
if (isContiguous || this.windowBridgesRanges(activeState, RangeUtils.createFromRect(candidateState, this.opposite))) {
this.min = Math.min(this.min, min);
this.max = Math.max(this.max, max);
} else {
// Seems the active window lies fully between two windows, overlapping neither.
// Nothing we can snap to in this scenario.
console.log('Window falls within gap');
return false;
}
}
return true;
}
/**
* Checks if 'activeWindow' overlaps both this and otherRange
*
* @param activeWindow Window that is currently being projected onto surrounding candidates
* @param otherRange The projection of a candidate window onto activeWindow
*/
private windowBridgesRanges(activeWindow: Rectangle, otherRange: Range): boolean {
const gapMin: number = Math.min(this.max, otherRange.max);
const gapMax: number = Math.max(this.min, otherRange.min);
const center: number = activeWindow.center[this.opposite];
const halfSize: number = activeWindow.halfSize[this.opposite];
return gapMin >= center - halfSize && gapMax <= center + halfSize;
}
}
|
TypeScript
|
////////////
//SECURITY//
////////////
#define UPLOAD_LIMIT 10485760 //Restricts client uploads to the server to 10MB //Boosted this thing. What's the worst that can happen?
#define MIN_CLIENT_VERSION 0 //Just an ambiguously low version for now, I don't want to suddenly stop people playing.
//I would just like the code ready should it ever need to be used.
//#define TOPIC_DEBUGGING 1
/*
When somebody clicks a link in game, this Topic is called first.
It does the stuff in this proc and then is redirected to the Topic() proc for the src=[0xWhatever]
(if specified in the link). ie locate(hsrc).Topic()
Such links can be spoofed.
Because of this certain things MUST be considered whenever adding a Topic() for something:
- Can it be fed harmful values which could cause runtimes?
- Is the Topic call an admin-only thing?
- If so, does it have checks to see if the person who called it (usr.client) is an admin?
- Are the processes being called by Topic() particularly laggy?
- If so, is there any protection against somebody spam-clicking a link?
If you have any questions about this stuff feel free to ask. ~Carn
*/
/client/Topic(href, href_list, hsrc)
if(!usr || usr != mob) //stops us calling Topic for somebody else's client. Also helps prevent usr=null
return
#if defined(TOPIC_DEBUGGING)
world << "[src]'s Topic: [href] destined for [hsrc]."
if(href_list["nano_err"]) //nano throwing errors
world << "## NanoUI, Subject [src]: " + html_decode(href_list["nano_err"]) //NANO DEBUG HOOK
#endif
//search the href for script injection
if( findtext(href,"<script",1,0) )
world.log << "Attempted use of scripts within a topic call, by [src]"
message_admins("Attempted use of scripts within a topic call, by [src]")
//del(usr)
return
//Admin PM
if(href_list["priv_msg"])
var/client/C = locate(href_list["priv_msg"])
if(ismob(C)) //Old stuff can feed-in mobs instead ofGLOB.clients
var/mob/M = C
C = M.client
cmd_admin_pm(C,null)
return
if(href_list["irc_msg"])
if(!holder && received_irc_pm < world.time - 6000) //Worse they can do is spam IRC for 10 minutes
usr << "<span class='warning'>You are no longer able to use this, it's been more then 10 minutes since an admin on IRC has responded to you</span>"
return
if(mute_irc)
usr << "<span class='warning'You cannot use this as your client has been muted from sending messages to the admins on IRC</span>"
return
send2adminirc(href_list["irc_msg"])
return
//Logs all hrefs
if(config && config.log_hrefs && href_logfile)
href_logfile << "[src] (usr:[usr])</small> || [hsrc ? "[hsrc] " : ""][href]"
switch(href_list["_src_"])
if("holder") hsrc = holder
if("usr") hsrc = mob
if("prefs") return prefs.process_link(usr,href_list)
if("vars") return view_var_Topic(href,href_list,hsrc)
..() //redirect to hsrc.Topic()
//This stops files larger than UPLOAD_LIMIT being sent from client to server via input(), client.Import() etc.
/client/AllowUpload(filename, filelength)
if(filelength > UPLOAD_LIMIT)
src << "<font color='red'>Error: AllowUpload(): File Upload too large. Upload Limit: [UPLOAD_LIMIT/1024]KiB.</font>"
return 0
/* //Don't need this at the moment. But it's here if it's needed later.
//Helps prevent multiple files being uploaded at once. Or right after eachother.
var/time_to_wait = fileaccess_timer - world.time
if(time_to_wait > 0)
src << "<font color='red'>Error: AllowUpload(): Spam prevention. Please wait [round(time_to_wait/10)] seconds.</font>"
return 0
fileaccess_timer = world.time + FTPDELAY */
return 1
///////////
//CONNECT//
///////////
/client/New(TopicData)
TopicData = null //Prevent calls to client.Topic from connect
if(!(connection in list("seeker", "web"))) //Invalid connection type.
return null
if(byond_version < MIN_CLIENT_VERSION) //Out of date client.
return null
if(!config.guests_allowed && IsGuestKey(key))
alert(src,"This server doesn't allow guest accounts to play. Please go to http://www.byond.com/ and register for a key.","Guest","OK")
del(src)
return
check_shodan() //ARFS Edit - Check shodan for Proxy server or VPN
src << "<font color='red'>If the title screen is black, resources are still downloading. Please be patient until the title screen appears.</font>"
GLOB.clients += src
GLOB.directory[ckey] = src
GLOB.ahelp_tickets.ClientLogin(src)
//Admin Authorisation
holder = admin_datums[ckey]
if(holder)
admins += src
holder.owner = src
//preferences datum - also holds some persistant data for the client (because we may as well keep these datums to a minimum)
prefs = preferences_datums[ckey]
if(!prefs)
prefs = new /datum/preferences(src)
preferences_datums[ckey] = prefs
prefs.last_ip = address //these are gonna be used for banning
prefs.last_id = computer_id //these are gonna be used for banning
. = ..() //calls mob.Login()
prefs.sanitize_preferences()
if(custom_event_msg && custom_event_msg != "")
src << "<h1 class='alert'>Custom Event</h1>"
src << "<h2 class='alert'>A custom event is taking place. OOC Info:</h2>"
src << "<span class='alert'>[custom_event_msg]</span>"
src << "<br>"
if(holder)
add_admin_verbs()
admin_memo_show()
// Forcibly enable hardware-accelerated graphics, as we need them for the lighting overlays.
// (but turn them off first, since sometimes BYOND doesn't turn them on properly otherwise)
spawn(5) // And wait a half-second, since it sounds like you can do this too fast.
if(src)
winset(src, null, "command=\".configure graphics-hwmode off\"")
sleep(2) // wait a bit more, possibly fixes hardware mode not re-activating right
winset(src, null, "command=\".configure graphics-hwmode on\"")
log_client_to_db()
send_resources()
SSnanoui.send_resources(src)
if(!void)
void = new()
void.MakeGreed()
screen += void
if(prefs.lastchangelog != changelog_hash) //bolds the changelog button on the interface so we know there are updates.
src << "<span class='info'>You have unread updates in the changelog.</span>"
winset(src, "rpane.changelog", "background-color=#eaeaea;font-style=bold")
if(config.aggressive_changelog)
src.changes()
hook_vr("client_new",list(src)) //VOREStation Code
if(config.paranoia_logging)
if(isnum(player_age) && player_age == 0)
log_and_message_admins("PARANOIA: [key_name(src)] has connected here for the first time.")
if(isnum(account_age) && account_age <= 2)
log_and_message_admins("PARANOIA: [key_name(src)] has a very new BYOND account ([account_age] days).")
++global.client_count
//////////////
//DISCONNECT//
//////////////
/client/Del()
if(holder)
holder.owner = null
admins -= src
GLOB.ahelp_tickets.ClientLogout(src)
GLOB.directory -= ckey
GLOB.clients -= src
--global.client_count
return ..()
/client/Destroy()
..()
return QDEL_HINT_HARDDEL_NOW
// here because it's similar to below
// Returns null if no DB connection can be established, or -1 if the requested key was not found in the database
/proc/get_player_age(key)
establish_db_connection()
if(!dbcon.IsConnected())
return null
var/sql_ckey = sql_sanitize_text(ckey(key))
var/DBQuery/query = dbcon.NewQuery("SELECT datediff(Now(),firstseen) as age FROM erro_player WHERE ckey = '[sql_ckey]'")
query.Execute()
if(query.NextRow())
return text2num(query.item[1])
else
return -1
/client/proc/log_client_to_db()
if ( IsGuestKey(src.key) )
return
establish_db_connection()
if(!dbcon.IsConnected())
return
var/sql_ckey = sql_sanitize_text(src.ckey)
var/DBQuery/query = dbcon.NewQuery("SELECT id, datediff(Now(),firstseen) as age FROM erro_player WHERE ckey = '[sql_ckey]'")
query.Execute()
var/sql_id = 0
player_age = 0 // New players won't have an entry so knowing we have a connection we set this to zero to be updated if their is a record.
while(query.NextRow())
sql_id = query.item[1]
player_age = text2num(query.item[2])
break
account_join_date = sanitizeSQL(findJoinDate())
if(account_join_date && dbcon.IsConnected())
var/DBQuery/query_datediff = dbcon.NewQuery("SELECT DATEDIFF(Now(),'[account_join_date]')")
if(query_datediff.Execute() && query_datediff.NextRow())
account_age = text2num(query_datediff.item[1])
var/DBQuery/query_ip = dbcon.NewQuery("SELECT ckey FROM erro_player WHERE ip = '[address]'")
query_ip.Execute()
related_accounts_ip = ""
while(query_ip.NextRow())
related_accounts_ip += "[query_ip.item[1]], "
break
var/DBQuery/query_cid = dbcon.NewQuery("SELECT ckey FROM erro_player WHERE computerid = '[computer_id]'")
query_cid.Execute()
related_accounts_cid = ""
while(query_cid.NextRow())
related_accounts_cid += "[query_cid.item[1]], "
break
//Just the standard check to see if it's actually a number
if(sql_id)
if(istext(sql_id))
sql_id = text2num(sql_id)
if(!isnum(sql_id))
return
var/admin_rank = "Player"
if(src.holder)
admin_rank = src.holder.rank
var/sql_ip = sql_sanitize_text(src.address)
var/sql_computerid = sql_sanitize_text(src.computer_id)
var/sql_admin_rank = sql_sanitize_text(admin_rank)
//Panic bunker code
if (isnum(player_age) && player_age == 0) //first connection
if (config.panic_bunker && !holder && !deadmin_holder)
log_adminwarn("Failed Login: [key] - New account attempting to connect during panic bunker")
message_admins("<span class='adminnotice'>Failed Login: [key] - New account attempting to connect during panic bunker</span>")
to_chat(src, "Sorry but the server is currently not accepting connections from never before seen players.")
qdel(src)
return 0
// VOREStation Edit Start - Department Hours
if(config.time_off)
var/DBQuery/query_hours = dbcon.NewQuery("SELECT department, hours FROM vr_player_hours WHERE ckey = '[sql_ckey]'")
query_hours.Execute()
while(query_hours.NextRow())
LAZYINITLIST(department_hours)
department_hours[query_hours.item[1]] = text2num(query_hours.item[2])
// VOREStation Edit End - Department Hours
if(sql_id)
//Player already identified previously, we need to just update the 'lastseen', 'ip' and 'computer_id' variables
var/DBQuery/query_update = dbcon.NewQuery("UPDATE erro_player SET lastseen = Now(), ip = '[sql_ip]', computerid = '[sql_computerid]', lastadminrank = '[sql_admin_rank]' WHERE id = [sql_id]")
query_update.Execute()
else
//New player!! Need to insert all the stuff
var/DBQuery/query_insert = dbcon.NewQuery("INSERT INTO erro_player (id, ckey, firstseen, lastseen, ip, computerid, lastadminrank) VALUES (null, '[sql_ckey]', Now(), Now(), '[sql_ip]', '[sql_computerid]', '[sql_admin_rank]')")
query_insert.Execute()
//Logging player access
var/serverip = "[world.internet_address]:[world.port]"
var/DBQuery/query_accesslog = dbcon.NewQuery("INSERT INTO `erro_connection_log`(`id`,`datetime`,`serverip`,`ckey`,`ip`,`computerid`) VALUES(null,Now(),'[serverip]','[sql_ckey]','[sql_ip]','[sql_computerid]');")
query_accesslog.Execute()
#undef TOPIC_SPAM_DELAY
#undef UPLOAD_LIMIT
#undef MIN_CLIENT_VERSION
//checks if a client is afk
//3000 frames = 5 minutes
/client/proc/is_afk(duration=3000)
if(inactivity > duration) return inactivity
return 0
// Byond seemingly calls stat, each tick.
// Calling things each tick can get expensive real quick.
// So we slow this down a little.
// See: http://www.byond.com/docs/ref/info.html#/client/proc/Stat
/client/Stat()
. = ..()
if (holder)
sleep(1)
else
stoplag(5)
/client/proc/last_activity_seconds()
return inactivity / 10
//send resources to the client. It's here in its own proc so we can move it around easiliy if need be
/client/proc/send_resources()
getFiles(
'html/search.js',
'html/panels.css',
'html/images/loading.gif',
'html/images/ntlogo.png',
'html/images/sglogo.png',
'html/images/talisman.png',
'html/images/paper_bg.png',
'html/images/no_image32.png',
'icons/pda_icons/pda_atmos.png',
'icons/pda_icons/pda_back.png',
'icons/pda_icons/pda_bell.png',
'icons/pda_icons/pda_blank.png',
'icons/pda_icons/pda_boom.png',
'icons/pda_icons/pda_bucket.png',
'icons/pda_icons/pda_crate.png',
'icons/pda_icons/pda_cuffs.png',
'icons/pda_icons/pda_eject.png',
'icons/pda_icons/pda_exit.png',
'icons/pda_icons/pda_flashlight.png',
'icons/pda_icons/pda_honk.png',
'icons/pda_icons/pda_mail.png',
'icons/pda_icons/pda_medical.png',
'icons/pda_icons/pda_menu.png',
'icons/pda_icons/pda_mule.png',
'icons/pda_icons/pda_notes.png',
'icons/pda_icons/pda_power.png',
'icons/pda_icons/pda_rdoor.png',
'icons/pda_icons/pda_reagent.png',
'icons/pda_icons/pda_refresh.png',
'icons/pda_icons/pda_scanner.png',
'icons/pda_icons/pda_signaler.png',
'icons/pda_icons/pda_status.png',
'icons/spideros_icons/sos_1.png',
'icons/spideros_icons/sos_2.png',
'icons/spideros_icons/sos_3.png',
'icons/spideros_icons/sos_4.png',
'icons/spideros_icons/sos_5.png',
'icons/spideros_icons/sos_6.png',
'icons/spideros_icons/sos_7.png',
'icons/spideros_icons/sos_8.png',
'icons/spideros_icons/sos_9.png',
'icons/spideros_icons/sos_10.png',
'icons/spideros_icons/sos_11.png',
'icons/spideros_icons/sos_12.png',
'icons/spideros_icons/sos_13.png',
'icons/spideros_icons/sos_14.png'
)
mob/proc/MayRespawn()
return 0
client/proc/MayRespawn()
if(mob)
return mob.MayRespawn()
// Something went wrong, client is usually kicked or transfered to a new mob at this point
return 0
client/verb/character_setup()
set name = "Character Setup"
set category = "Preferences"
if(prefs)
prefs.ShowChoices(usr)
/client/proc/findJoinDate()
var/list/http = world.Export("http://byond.com/members/[ckey]?format=text")
if(!http)
log_world("Failed to connect to byond age check for [ckey]")
return
var/F = file2text(http["CONTENT"])
if(F)
var/regex/R = regex("joined = \"(\\d{4}-\\d{2}-\\d{2})\"")
if(R.Find(F))
. = R.group[1]
else
CRASH("Age check regex failed for [src.ckey]")
/client/vv_edit_var(var_name, var_value)
if(var_name == NAMEOF(src, holder))
return FALSE
return ..()
|
DM
|
/mob/CanPass(atom/movable/mover, turf/target, height=0)
if(height==0)
return 1
if(istype(mover, /obj/item/projectile) || mover.throwing)
return (!density || lying)
if(mover.checkpass(PASSMOB))
return 1
if(buckled == mover)
return 1
if(ismob(mover))
var/mob/moving_mob = mover
if ((other_mobs && moving_mob.other_mobs))
return 1
if (mover == buckled_mob)
return 1
return (!mover.density || !density || lying)
/client/Northeast()
swap_hand()
return
/client/Southeast()
attack_self()
return
/client/Southwest()
if(iscarbon(usr))
var/mob/living/carbon/C = usr
C.toggle_throw_mode()
else
usr << "<span class='danger'>This mob type cannot throw items.</span>"
return
/client/Northwest()
if(!usr.get_active_hand())
usr << "<span class='warning'>You have nothing to drop in your hand!</span>"
return
usr.drop_item()
//This gets called when you press the delete button.
/client/verb/delete_key_pressed()
set hidden = 1
if(!usr.pulling)
usr << "<span class='notice'>You are not pulling anything.</span>"
return
usr.stop_pulling()
/client/verb/swap_hand()
set category = "IC"
set name = "Swap hands"
if(mob)
mob.swap_hand()
/client/verb/attack_self()
set hidden = 1
if(mob)
mob.mode()
return
/client/verb/drop_item()
set hidden = 1
if(!isrobot(mob))
mob.drop_item_v()
return
/client/Center()
if(isobj(mob.loc))
var/obj/O = mob.loc
if(mob.canmove)
return O.relaymove(mob, 0)
return
/client/proc/Move_object(direct)
if(mob && mob.control_object)
if(mob.control_object.density)
step(mob.control_object,direct)
if(!mob.control_object) return
mob.control_object.dir = direct
else
mob.control_object.loc = get_step(mob.control_object,direct)
return
/client/Move(n, direct)
if(!mob)
return 0
if(mob.notransform)
return 0 //This is sota the goto stop mobs from moving var
if(mob.control_object)
return Move_object(direct)
if(world.time < move_delay)
return 0
if(!isliving(mob))
return mob.Move(n,direct)
if(mob.stat == DEAD)
mob.ghostize()
return 0
if(moving)
return 0
if(isliving(mob))
var/mob/living/L = mob
if(L.incorporeal_move) //Move though walls
Process_Incorpmove(direct)
return 0
if(Process_Grab()) return
if(mob.buckled) //if we're buckled to something, tell it we moved.
return mob.buckled.relaymove(mob, direct)
if(mob.remote_control) //we're controlling something, our movement is relayed to it
return mob.remote_control.relaymove(mob, direct)
if(isAI(mob))
return AIMove(n,direct,mob)
if(!mob.canmove)
return 0
if(!mob.lastarea)
mob.lastarea = get_area(mob.loc)
if(isobj(mob.loc) || ismob(mob.loc)) //Inside an object, tell it we moved
var/atom/O = mob.loc
return O.relaymove(mob, direct)
if(!mob.Process_Spacemove(direct))
return 0
if(isturf(mob.loc))
var/turf/T = mob.loc
move_delay = world.time//set move delay
move_delay += T.slowdown
if(mob.restrained()) //Why being pulled while cuffed prevents you from moving
for(var/mob/M in range(mob, 1))
if(M.pulling == mob)
if(!M.incapacitated() && mob.Adjacent(M))
src << "<span class='warning'>You're restrained! You can't move!</span>"
move_delay += 10
return 0
else
M.stop_pulling()
switch(mob.m_intent)
if("run")
if(mob.drowsyness > 0)
move_delay += 6
move_delay += config.run_speed
if("walk")
move_delay += config.walk_speed
move_delay += mob.movement_delay()
if(mob.nearcrit && mob.crit_can_crawl) //You can only crawl in nearcrit
if(istype(mob, /mob/living))
var/mob/living/L = mob
if(mob.crit_crawl_damage != 0) // let 'em have their negative values
L.apply_damage(mob.crit_crawl_damage, mob.crit_crawl_damage_type)
if(mob.dir == WEST)
mob.lying = 270
mob.update_canmove()
else if(mob.dir == EAST)
mob.lying = 90
mob.update_canmove()
playsound(mob.loc, pick('sound/effects/bodyscrape-01.ogg', 'sound/effects/bodyscrape-02.ogg'), 20, 1, -4) //Crawling is VERY quiet
mob.visible_message("<span class='danger'>[mob] crawls forward!</span>", \
"<span class='userdanger'>You crawl forward at the expense of some of your strength.</span>")
if(config.Tickcomp)
move_delay -= 1.3
var/tickcomp = (1 / (world.tick_lag)) * 1.3
move_delay = move_delay + tickcomp
//We are now going to move
moving = 1
//Something with pulling things
if(locate(/obj/item/weapon/grab, mob))
move_delay = max(move_delay, world.time + 7)
var/list/L = mob.ret_grab()
if(istype(L, /list))
if(L.len == 2)
L -= mob
var/mob/M = L[1]
if(M)
if ((get_dist(mob, M) <= 1 || M.loc == mob.loc))
. = ..()
if (isturf(M.loc))
var/diag = get_dir(mob, M)
if ((diag - 1) & diag)
else
diag = null
if ((get_dist(mob, M) > 1 || diag))
step(M, get_dir(M.loc, T))
else
for(var/mob/M in L)
M.other_mobs = 1
if(mob != M)
M.animate_movement = 3
for(var/mob/M in L)
spawn( 0 )
step(M, direct)
return
spawn( 1 )
M.other_mobs = null
M.animate_movement = 2
return
if(mob.confused)
if(mob.confused > 40)
step(mob, pick(cardinal))
else if(prob(mob.confused * 1.5))
step(mob, angle2dir(dir2angle(direct) + pick(90, -90)))
else if(prob(mob.confused * 3))
step(mob, angle2dir(dir2angle(direct) + pick(45, -45)))
else
step(mob, direct)
else
. = ..()
for (var/obj/item/weapon/grab/G in mob)
if (G.state == GRAB_NECK)
mob.set_dir(reverse_dir[direct])
if (G.state == GRAB_KILL)
move_delay = move_delay + 14 //Even more movement delay
G.adjust_position()
for (var/obj/item/weapon/grab/G in mob.grabbed_by)
G.adjust_position()
moving = 0
if(mob && .)
mob.throwing = 0
return .
///Process_Grab()
///Called by client/Move()
///Checks to see if you are being grabbed and if so attemps to break it
/client/proc/Process_Grab()
if(locate(/obj/item/weapon/grab, locate(/obj/item/weapon/grab, mob.grabbed_by.len)))
var/list/grabbing = list()
if(istype(mob.l_hand, /obj/item/weapon/grab))
var/obj/item/weapon/grab/G = mob.l_hand
grabbing += G.affecting
if(istype(mob.r_hand, /obj/item/weapon/grab))
var/obj/item/weapon/grab/G = mob.r_hand
grabbing += G.affecting
for(var/obj/item/weapon/grab/G in mob.grabbed_by)
if(G.state == GRAB_PASSIVE && !grabbing.Find(G.assailant))
qdel(G)
if(G.state == GRAB_AGGRESSIVE)
move_delay = world.time + 10
if(!prob(25))
return 1
mob.visible_message("<span class='warning'>[mob] has broken free of [G.assailant]'s grip!</span>")
qdel(G)
if(G.state == GRAB_NECK)
move_delay = world.time + 10
if(!prob(5))
return 1
mob.visible_message("<span class='warning'>[mob] has broken free of [G.assailant]'s headlock!</span>")
qdel(G)
return 0
///Process_Incorpmove
///Called by client/Move()
///Allows mobs to run though walls
/client/proc/Process_Incorpmove(direct)
var/turf/mobloc = get_turf(mob)
if(!isliving(mob))
return
var/mob/living/L = mob
switch(L.incorporeal_move)
if(1)
L.loc = get_step(L, direct)
L.dir = direct
if(2)
if(prob(50))
var/locx
var/locy
switch(direct)
if(NORTH)
locx = mobloc.x
locy = (mobloc.y+2)
if(locy>world.maxy)
return
if(SOUTH)
locx = mobloc.x
locy = (mobloc.y-2)
if(locy<1)
return
if(EAST)
locy = mobloc.y
locx = (mobloc.x+2)
if(locx>world.maxx)
return
if(WEST)
locy = mobloc.y
locx = (mobloc.x-2)
if(locx<1)
return
else
return
L.loc = locate(locx,locy,mobloc.z)
spawn(0)
var/limit = 2//For only two trailing shadows.
for(var/turf/T in getline(mobloc, L.loc))
spawn(0)
anim(T,L,'icons/mob/mob.dmi',,"shadow",,L.dir)
limit--
if(limit<=0) break
else
spawn(0)
anim(mobloc,mob,'icons/mob/mob.dmi',,"shadow",,L.dir)
L.loc = get_step(L, direct)
L.dir = direct
if(3) //Incorporeal move, but blocked by holy-watered tiles
var/turf/simulated/floor/stepTurf = get_step(L, direct)
if(stepTurf.flags & NOJAUNT)
L << "<span class='warning'>Holy energies block your path.</span>"
L.notransform = 1
spawn(2)
L.notransform = 0
else
L.loc = get_step(L, direct)
L.dir = direct
return 1
///Process_Spacemove
///Called by /client/Move()
///For moving in space
///Return 1 for movement 0 for none
/mob/Process_Spacemove(movement_dir = 0)
if(..())
return 1
var/atom/movable/dense_object_backup
for(var/atom/A in orange(1, get_turf(src)))
if(isarea(A))
continue
else if(isturf(A))
var/turf/turf = A
if(istype(turf,/turf/space))
continue
if(!turf.density && !mob_negates_gravity())
continue
return 1
else
var/atom/movable/AM = A
if(AM == buckled) //Kind of unnecessary but let's just be sure
continue
if(AM.density)
if(AM.anchored)
return 1
if(pulling == AM)
continue
dense_object_backup = AM
if(movement_dir && dense_object_backup)
if(dense_object_backup.newtonian_move(turn(movement_dir, 180))) //You're pushing off something movable, so it moves
src << "<span class='info'>You push off of [dense_object_backup] to propel yourself.</span>"
return 1
return 0
/mob/proc/mob_has_gravity(turf/T)
return has_gravity(src, T)
/mob/proc/mob_negates_gravity()
return 0
/mob/proc/Move_Pulled(atom/A)
if (!canmove || restrained() || !pulling)
return
if (pulling.anchored)
return
if (!pulling.Adjacent(src))
return
if (A == loc && pulling.density)
return
if (!Process_Spacemove(get_dir(pulling.loc, A)))
return
if (ismob(pulling))
var/mob/M = pulling
var/atom/movable/t = M.pulling
M.stop_pulling()
step(pulling, get_dir(pulling.loc, A))
if(M)
M.start_pulling(t)
else
step(pulling, get_dir(pulling.loc, A))
return
/mob/proc/slip(s_amount, w_amount, obj/O, lube)
return
/mob/proc/update_gravity()
return
|
DM
|
CREATE OR ALTER VIEW
alumni.application_identifiers AS
SELECT
sub.sf_contact_id,
sub.application_id,
sub.school_id,
sub.match_type,
sub.application_admission_type,
sub.application_submission_status,
sub.starting_application_status,
sub.application_status,
sub.honors_special_program_name,
sub.honors_special_program_status,
sub.matriculation_decision,
sub.primary_reason_for_not_attending,
sub.financial_aid_eligibility,
sub.unmet_need,
sub.efc_from_fafsa,
sub.transfer_application,
sub.created_date,
sub.type_for_roll_ups,
sub.application_name,
sub.application_account_type,
sub.application_enrollment_status,
sub.application_pursuing_degree_type,
sub.enrollment_start_date,
CASE
WHEN (
sub.type_for_roll_ups = 'College'
AND sub.application_account_type LIKE '%4 yr'
) THEN 1
ELSE 0
END AS is_4yr_college,
CASE
WHEN (
sub.type_for_roll_ups = 'College'
AND sub.application_account_type LIKE '%2 yr'
) THEN 1
ELSE 0
END AS is_2yr_college,
CASE
WHEN sub.type_for_roll_ups = 'Alternative Program' THEN 1
ELSE 0
END AS is_cte,
CASE
WHEN sub.application_admission_type = 'Early Action' THEN 1
ELSE 0
END AS is_early_action,
CASE
WHEN sub.application_admission_type = 'Early Decision' THEN 1
ELSE 0
END AS is_early_decision,
CASE
WHEN sub.application_admission_type IN ('Early Action', 'Early Decision') THEN 1
ELSE 0
END AS is_early_actiondecision,
CASE
WHEN sub.application_submission_status = 'Submitted' THEN 1
ELSE 0
END AS is_submitted,
CASE
WHEN sub.application_status = 'Accepted' THEN 1
ELSE 0
END AS is_accepted,
CASE
WHEN sub.match_type IN ('Likely Plus', 'Target', 'Reach') THEN 1
ELSE 0
END AS is_ltr,
CASE
WHEN sub.starting_application_status = 'Wishlist' THEN 1
ELSE 0
END AS is_wishlist,
CASE
WHEN (
sub.honors_special_program_name = 'EOF'
AND sub.honors_special_program_status IN ('Applied', 'Accepted')
) THEN 1
ELSE 0
END AS is_eof_applied,
CASE
WHEN (
sub.honors_special_program_name = 'EOF'
AND sub.honors_special_program_status = 'Accepted'
) THEN 1
ELSE 0
END AS is_eof_accepted
FROM
(
SELECT
app.applicant_c AS sf_contact_id,
app.id AS application_id,
app.school_c AS school_id,
app.match_type_c AS match_type,
app.application_admission_type_c AS application_admission_type,
app.application_submission_status_c AS application_submission_status,
app.application_status_c AS application_status,
app.honors_special_program_name_c AS honors_special_program_name,
app.honors_special_program_status_c AS honors_special_program_status,
app.matriculation_decision_c AS matriculation_decision,
app.primary_reason_for_not_attending_c AS primary_reason_for_not_attending,
app.financial_aid_eligibility_c AS financial_aid_eligibility,
app.unmet_need_c AS unmet_need,
app.efc_from_fafsa_c AS efc_from_fafsa,
app.transfer_application_c AS transfer_application,
app.created_date,
app.type_for_roll_ups_c AS type_for_roll_ups,
acc.[name] AS application_name,
acc.[type] AS application_account_type,
enr.status_c AS application_enrollment_status,
enr.pursuing_degree_type_c AS application_pursuing_degree_type,
enr.start_date_c AS enrollment_start_date,
COALESCE(
app.starting_application_status_c,
app.application_status_c
) AS starting_application_status
FROM
alumni.application_c AS app
INNER JOIN alumni.account AS acc ON (
app.school_c = acc.id
AND acc.is_deleted = 0
)
INNER JOIN alumni.contact AS c ON (app.applicant_c = c.id)
LEFT JOIN alumni.enrollment_c AS enr ON (
app.applicant_c = enr.student_c
AND app.school_c = enr.school_c
AND c.kipp_hs_class_c = YEAR(enr.start_date_c)
AND enr.is_deleted = 0
)
WHERE
app.is_deleted = 0
) AS sub
|
PLSQL
|
#!/bin/sh
go_package() {
local file pkg line script
file=$1; shift
pkg=$1; shift
line="option go_package = \"$pkg\";"
grep "^$line\$" $file > /dev/null && return
script="/^package dnstap/|a|$line|.|w|q|"
if grep "^option go_package" $file > /dev/null; then
script="/^option go_package/d|1|${script}"
fi
echo "$script" | tr '|' '\n' | ed $file || exit
}
dir=$(dirname $0)
[ -n "$dir" ] && cd $dir
cd dnstap.pb
go_package dnstap.proto "github.com/dnstap/golang-dnstap;dnstap"
protoc --go_out=../../../.. dnstap.proto
|
Shell
|
#Fedena
#Copyright 2011 Foradian Technologies Private Limited
#
#This product includes software developed at
#Project Fedena - http://www.projectfedena.org/
#
#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.
class PayrollCategory < ActiveRecord::Base
validates_uniqueness_of :name
validates_presence_of :name
has_many :monthly_paslips
end
|
Ruby
|
(ns {{ns-name}}.database
(:require [{{ns-name}}.env :refer [defcomponent]]))
(defprotocol Database
(find-user [this username password]))
(defcomponent database)
|
Clojure
|
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class FirstServService {
getAllData(){
return ['A','B','c']
}
}
|
TypeScript
|
# export figures manually
library(DiagrammeR)
##################################### 13-dplyr-fig2.png #####################################
grViz('digraph html {
table1 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD PORT="f0" BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">b</TD>
<TD PORT="f1" BGCOLOR="#009999" CELLPADDING="0">c</TD>
<TD BGCOLOR="#00CC00" CELLPADDING="0">d</TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000"></TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000"></TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000"></TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
</TABLE>>];
table2 [shape=none, margin=0, label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD PORT="f0" BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD PORT="f1" BGCOLOR="#009999" CELLPADDING="0">c</TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000"></TD>
<TD BGCOLOR="#009999"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000"></TD>
<TD BGCOLOR="#009999"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000"></TD>
<TD BGCOLOR="#009999"></TD>
</TR>
</TABLE>>];
table1:f1 -> table2:f1
table1:f0 -> table2:f0
subgraph {
rank = same; table1; table2;
}
labelloc="t";
label="select(data.frame,a,c)";
}
')
##################################### 13-dplyr-fig2.png #####################################
grViz('digraph html {
table1 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">b</TD>
<TD BGCOLOR="#009999" CELLPADDING="0">c</TD>
<TD BGCOLOR="#00CC00" CELLPADDING="0">d</TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">1</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD PORT="f0" BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">1</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">2</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD PORT="f1" BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">2</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">3</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD PORT="f2" BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">3</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
</TABLE>>];
table2 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">b</TD>
<TD BGCOLOR="#009999" CELLPADDING="0">c</TD>
<TD BGCOLOR="#00CC00" CELLPADDING="0">d</TD>
</TR>
<TR>
<TD PORT="f0" BGCOLOR="#FF0000" CELLPADDING="0">1</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">1</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
</TABLE>>];
table3 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">b</TD>
<TD BGCOLOR="#009999" CELLPADDING="0">c</TD>
<TD BGCOLOR="#00CC00" CELLPADDING="0">d</TD>
</TR>
<TR>
<TD PORT="f1" BGCOLOR="#FF0000" CELLPADDING="0">2</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">2</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
</TABLE>>];
table4 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">b</TD>
<TD BGCOLOR="#009999" CELLPADDING="0">c</TD>
<TD BGCOLOR="#00CC00" CELLPADDING="0">d</TD>
</TR>
<TR>
<TD PORT="f2" BGCOLOR="#FF0000" CELLPADDING="0">3</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">3</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
</TABLE>>];
table1:f0 -> table2:f0
table1:f1 -> table3:f1
table1:f2 -> table4:f2
subgraph {
rank = same; table1; table2; table3 ;table4;
}
subgraph {
table2
table3
table4
}
labelloc="t";
label="gapminder %>% group_by(a)";
}
')
##################################### 13-dplyr-fig3.png #####################################
grViz('digraph html {
table1 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">b</TD>
<TD BGCOLOR="#009999" CELLPADDING="0">c</TD>
<TD BGCOLOR="#00CC00" CELLPADDING="0">d</TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">1</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD PORT="f0" BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">1</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">2</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD PORT="f1" BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">2</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">3</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD PORT="f2" BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">3</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
</TABLE>>];
table2 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD PORT="f0" BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">b</TD>
<TD BGCOLOR="#009999" CELLPADDING="0">c</TD>
<TD BGCOLOR="#00CC00" CELLPADDING="0">d</TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">1</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD PORT="f3" BGCOLOR="#FF0000" CELLPADDING="0">1</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
</TABLE>>];
table3 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD PORT="f1" BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">b</TD>
<TD BGCOLOR="#009999" CELLPADDING="0">c</TD>
<TD BGCOLOR="#00CC00" CELLPADDING="0">d</TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">2</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD PORT="f3" BGCOLOR="#FF0000" CELLPADDING="0">2</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
</TABLE>>];
table4 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD PORT="f2" BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">b</TD>
<TD BGCOLOR="#009999" CELLPADDING="0">c</TD>
<TD BGCOLOR="#00CC00" CELLPADDING="0">d</TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">3</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
<TR>
<TD PORT="f3" BGCOLOR="#FF0000" CELLPADDING="0">3</TD>
<TD BGCOLOR="#FF7400"></TD>
<TD BGCOLOR="#009999"></TD>
<TD BGCOLOR="#00CC00"></TD>
</TR>
</TABLE>>];
table5 [shape=none, margin=0,label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="1" CELLPADDING="6">
<TR>
<TD BGCOLOR="#FF0000" CELLPADDING="0">a</TD>
<TD BGCOLOR="#FF7400" CELLPADDING="0">mean_b</TD>
</TR>
<TR>
<TD PORT="f0" BGCOLOR="#FF0000" CELLPADDING="0">1</TD>
<TD BGCOLOR="#FF7400"></TD>
</TR>
<TR>
<TD PORT="f1" BGCOLOR="#FF0000" CELLPADDING="0">2</TD>
<TD BGCOLOR="#FF7400"></TD>
</TR>
<TR>
<TD PORT="f2" BGCOLOR="#FF0000" CELLPADDING="0">3</TD>
<TD BGCOLOR="#FF7400"></TD>
</TR>
</TABLE>>];
table1:f0 -> table2:f0
table1:f1 -> table3:f1
table1:f2 -> table4:f2
table2:f3 -> table5:f0
table3:f3 -> table5:f1
table4:f3 -> table5:f2
subgraph {
rank = same; table1; table2; table3 ; table4;
}
subgraph {
table2
table3
table4
}
labelloc="t";
label="gapminder %>% group_by(a) %>% summarize(mean_b=mean(b))";
}
')
|
R
|
#!/usr/bin/env ruby
# The XChar library is provided courtesy of Sam Ruby (See
# http://intertwingly.net/stories/2005/09/28/xchar.rb)
# --------------------------------------------------------------------
# If the Builder::XChar module is not currently defined, fail on any
# name clashes in standard library classes.
module Builder
def self.check_for_name_collision(klass, method_name, defined_constant=nil)
if klass.method_defined?(method_name.to_s)
fail RuntimeError,
"Name Collision: Method '#{method_name}' is already defined in #{klass}"
end
end
end
if ! defined?(Builder::XChar) and ! String.method_defined?(:encode)
Builder.check_for_name_collision(String, "to_xs")
Builder.check_for_name_collision(Integer, "xchr")
end
######################################################################
module Builder
####################################################################
# XML Character converter, from Sam Ruby:
# (see http://intertwingly.net/stories/2005/09/28/xchar.rb).
#
module XChar # :nodoc:
# See
# http://intertwingly.net/stories/2004/04/14/i18n.html#CleaningWindows
# for details.
CP1252 = { # :nodoc:
128 => 8364, # euro sign
130 => 8218, # single low-9 quotation mark
131 => 402, # latin small letter f with hook
132 => 8222, # double low-9 quotation mark
133 => 8230, # horizontal ellipsis
134 => 8224, # dagger
135 => 8225, # double dagger
136 => 710, # modifier letter circumflex accent
137 => 8240, # per mille sign
138 => 352, # latin capital letter s with caron
139 => 8249, # single left-pointing angle quotation mark
140 => 338, # latin capital ligature oe
142 => 381, # latin capital letter z with caron
145 => 8216, # left single quotation mark
146 => 8217, # right single quotation mark
147 => 8220, # left double quotation mark
148 => 8221, # right double quotation mark
149 => 8226, # bullet
150 => 8211, # en dash
151 => 8212, # em dash
152 => 732, # small tilde
153 => 8482, # trade mark sign
154 => 353, # latin small letter s with caron
155 => 8250, # single right-pointing angle quotation mark
156 => 339, # latin small ligature oe
158 => 382, # latin small letter z with caron
159 => 376, # latin capital letter y with diaeresis
}
# See http://www.w3.org/TR/REC-xml/#dt-chardata for details.
PREDEFINED = {
38 => '&', # ampersand
60 => '<', # left angle bracket
62 => '>', # right angle bracket
}
# See http://www.w3.org/TR/REC-xml/#charsets for details.
VALID = [
0x9, 0xA, 0xD,
(0x20..0xD7FF),
(0xE000..0xFFFD),
(0x10000..0x10FFFF)
]
# http://www.fileformat.info/info/unicode/char/fffd/index.htm
REPLACEMENT_CHAR =
if String.method_defined?(:encode)
"\uFFFD"
elsif $KCODE == 'UTF8'
"\xEF\xBF\xBD"
else
'*'
end
end
end
if String.method_defined?(:encode)
module Builder
module XChar # :nodoc:
CP1252_DIFFERENCES, UNICODE_EQUIVALENT = Builder::XChar::CP1252.each.
inject([[],[]]) {|(domain,range),(key,value)|
[domain << key,range << value]
}.map {|seq| seq.pack('U*').force_encoding('utf-8')}
XML_PREDEFINED = Regexp.new('[' +
Builder::XChar::PREDEFINED.keys.pack('U*').force_encoding('utf-8') +
']')
INVALID_XML_CHAR = Regexp.new('[^'+
Builder::XChar::VALID.map { |item|
case item
when Integer
[item].pack('U').force_encoding('utf-8')
when Range
[item.first, '-'.ord, item.last].pack('UUU').force_encoding('utf-8')
end
}.join +
']')
ENCODING_BINARY = Encoding.find('BINARY')
ENCODING_UTF8 = Encoding.find('UTF-8')
ENCODING_ISO1 = Encoding.find('ISO-8859-1')
# convert a string to valid UTF-8, compensating for a number of
# common errors.
def XChar.unicode(string)
if string.encoding == ENCODING_BINARY
if string.ascii_only?
string
else
string = string.clone.force_encoding(ENCODING_UTF8)
if string.valid_encoding?
string
else
string.encode(ENCODING_UTF8, ENCODING_ISO1)
end
end
elsif string.encoding == ENCODING_UTF8
if string.valid_encoding?
string
else
string.encode(ENCODING_UTF8, ENCODING_ISO1)
end
else
string.encode(ENCODING_UTF8)
end
end
# encode a string per XML rules
def XChar.encode(string)
unicode(string).
tr(CP1252_DIFFERENCES, UNICODE_EQUIVALENT).
gsub(INVALID_XML_CHAR, REPLACEMENT_CHAR).
gsub(XML_PREDEFINED) {|c| PREDEFINED[c.ord]}
end
end
end
else
######################################################################
# Enhance the Integer class with a XML escaped character conversion.
#
class Integer
XChar = Builder::XChar if ! defined?(XChar)
# XML escaped version of chr. When <tt>escape</tt> is set to false
# the CP1252 fix is still applied but utf-8 characters are not
# converted to character entities.
def xchr(escape=true)
n = XChar::CP1252[self] || self
case n when *XChar::VALID
XChar::PREDEFINED[n] or
(n<128 ? n.chr : (escape ? "&##{n};" : [n].pack('U*')))
else
Builder::XChar::REPLACEMENT_CHAR
end
end
end
######################################################################
# Enhance the String class with a XML escaped character version of
# to_s.
#
class String
# XML escaped version of to_s. When <tt>escape</tt> is set to false
# the CP1252 fix is still applied but utf-8 characters are not
# converted to character entities.
def to_xs(escape=true)
unpack('U*').map {|n| n.xchr(escape)}.join # ASCII, UTF-8
rescue
unpack('C*').map {|n| n.xchr}.join # ISO-8859-1, WIN-1252
end
end
end
|
Ruby
|
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>MyApp</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css">
</head>
<body>
<my-app>Loading...</my-app>
</body>
</html>
|
HTML
|
/*
* Copyright (c) 2018. tanakeiQ. All rights reserved.
* License - MIT
*
* Author
* - tanakeiQ<https://twitter.com/tanakeiQ>
*/
library intl_yaml;
import 'dart:async';
import 'dart:io';
import 'package:args/args.dart';
import 'package:intl_yaml/parser.dart';
import 'package:path/path.dart';
import 'package:yaml/yaml.dart';
class Cmd {
static String configFile = 'config-file';
static String configDir = 'config-dir';
static String outLangDir = 'out-lang-dir';
static String outServiceDir = 'out-service-dir';
static String filePrefix = 'file-prefix';
static String defaultLocale = 'default-locale';
//TODO: temporary solution.
static String projectName = 'project-name';
}
String configFile;
String configDir;
String outLangDir;
String outServiceDir;
String filePrefix;
String defaultLocale;
//TODO: temporary solution.
String projectName;
List<String> supportLocales = [];
final yamlExt = 'yaml';
final dartExt = 'dart';
final serviceFilename = 'I18n';
main(List<String> argument) async {
final parser = new ArgParser()
..addOption(Cmd.configFile)
..addOption(Cmd.configDir)
..addOption(Cmd.filePrefix, defaultsTo: 'intl_message')
..addOption(Cmd.outLangDir)
..addOption(Cmd.outServiceDir)
..addOption(Cmd.defaultLocale, defaultsTo: 'en')
..addOption(Cmd.projectName, abbr: 'p');
ArgResults args = parser.parse(argument);
_initPram(args);
if (isEmpty(args[Cmd.configFile]) && isEmpty(args[Cmd.configDir])) {
stderr.writeln('Not select config file path(use `--config-file`) or file dir(use `--config-dir`)'); return;
}
if (isEmpty(args[Cmd.projectName])) {
stderr.writeln('Not select project name(user `--project-name` or `-p`).'); return;
}
_initSupportLocale();
if (!supportLocales.contains(defaultLocale)) {
stderr.writeln('Not define default `$defaultLocale` locale file.'); return;
}
String allDartPath = _writeAllMessage();
supportLocales.forEach((locale) {
_loadConfigFile('$configDir/$locale.$yamlExt').then((Map config) {
List<String> messages = [];
List<String> methods = [];
config.forEach((key, value) {
messages.add(Parser.getMessage(key ,value));
if (defaultLocale == locale) {
methods.add(Parser.getMethod(key ,value));
}
});
print(messages);
_writeMessage(locale, messages);
if (defaultLocale == locale) {
_writeMethod(allDartPath, methods);
}
}).catchError((e) {
stderr.writeln(e);
stderr.writeln('Failed to load config file. `${args[Cmd.configFile]}`');
return;
});
});
}
Future<Map> _loadConfigFile(String path) async {
var completer = new Completer<Map>();
var file = new File(path);
bool exists = await file.exists();
if (exists) {
String yamlString = await file.readAsString();
Map yaml = loadYaml(yamlString);
completer.complete(yaml);
} else {
completer.completeError("${path} does not exist");
}
return completer.future;
}
void _initPram(args) {
configFile = args[Cmd.configFile];
configDir = args[Cmd.configDir];
outLangDir = args[Cmd.outLangDir];
outServiceDir = args[Cmd.outServiceDir];
filePrefix = args[Cmd.filePrefix];
defaultLocale = args[Cmd.defaultLocale];
projectName = args[Cmd.projectName];
}
void _initSupportLocale() {
RegExp localeRegExp = new RegExp(r'[^\/]*$');
if (!isEmpty(configFile)) {
var file = new File(configFile);
configDir = dirname(file.path);
supportLocales = [basename(file.path).split('.').first];
} else {
var dir = new Directory(configDir);
dir.listSync().forEach((content) {
if (content is File) {
String filename = localeRegExp.stringMatch(content.path);
supportLocales.add(filename.split('.').first);
}
});
}
}
String _writeMessage(String locale, List<String> messages) {
var localeFile = Parser.getLocaleFile(locale, messages);
var file = new File('$outLangDir/${filePrefix}_$locale.$dartExt');
file.writeAsStringSync(localeFile);
return file.path;
}
String _writeAllMessage() {
var allFile = Parser.getAllFile(filePrefix, supportLocales);
var file = new File('$outLangDir/${filePrefix}_all.$dartExt');
file.writeAsStringSync(allFile);
return file.path;
}
String _writeMethod(String allDartPath, List<String> methods) {
allDartPath = allDartPath.replaceAll('lib', projectName);
var serviceFile = Parser.getServiceFile('package:$allDartPath', methods);
var file = new File('$outServiceDir/$serviceFilename.$dartExt');
file.writeAsStringSync(serviceFile);
return file.path;
}
bool isNull(String s) => s == null;
bool isEmpty(String s) => s == null || s == '';
|
Dart
|
//
// AppDelegate.swift
// choiceLove
//
// Created by Jason Hsu on 2018/7/23.
// Copyright © 2018 junchoon. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
Swift
|
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:mel/widgets.dart' show inputField;
class SignInPage extends StatefulWidget {
@override
State createState() => new SignInPageState();
}
class SignInPageState extends State<SignInPage> {
final COLOR_THEME = Color(0xffF4985F);
@override
Widget build(BuildContext context) {
final bottom = MediaQuery.of(context).viewInsets.bottom;
return Center(
child: new SingleChildScrollView(
child: Container(
width: double.infinity,
color: Colors.transparent,
child: Padding(
padding: const EdgeInsets.all(30.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
_header(),
SizedBox(
height: 100,
),
Padding(
padding: EdgeInsets.only(
bottom: bottom,
),
child: _signInForm(),
),
],
),
),
),
),
);
}
Widget _header() {
return Column(
children: <Widget>[
_title(),
SizedBox(
height: 10,
),
_subtitle(),
],
);
}
Widget _title() {
return Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
new Text(
'Welcome,',
style: TextStyle(
fontSize: 40,
),
),
],
);
}
Widget _subtitle() {
return Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Container(
width: 170,
child: new Text(
'Enter your credentials to start using Mel',
style: TextStyle(
fontSize: 16,
),
),
),
],
);
}
Widget _signInForm() {
return Column(
children: <Widget>[
inputField(
labelText: 'Email',
color: COLOR_THEME,
keyboardType: TextInputType.emailAddress,
hintText: 'enter your email'),
SizedBox(
height: 15,
),
inputField(
labelText: 'Password',
color: COLOR_THEME,
obscureText: true,
hintText: 'enter your password',
),
],
);
}
}
|
Dart
|
namespace Lextm.SharpSnmpLib.Mib.Elements.Types
{
public interface ITypeAssignment : IDeclaration
{
}
}
|
C#
|
'use strict'
angular.module 'weaver.data'
# Base class for all server objects
.factory('ServerObject', ($rootScope, Socket, $$Promise) ->
class ServerObject
constructor: (object) ->
@idDeferred = $$Promise.pending()
@changeListeners = []
if(object.id?)
@id = parseInt(object.id)
@queue = []
@dependencies = []
@values = {}
# Copy keys for values
for key, value of object when key isnt 'id'
if key in @getIntTypes()
@values[key] = parseInt(value)
else if key in @getBoolTypes()
@values[key] = value is "true"
else
@values[key] = value
# Listen for server and client events
@getId().bind(@).then(@listen)
$rootScope.$broadcast(@getIdentifier()+':created', @)
# Objects identifier server side, such as 'project' or 'attribute'
getIdentifier: ->
console.log('Error: Identifier not set')
undefined
getIntTypes: ->
[]
getBoolTypes: ->
[]
# Emit serves two purposes:
# 1. It will inject the id of this object into the payload
# 2. It will hold all messages in a queue until server id is received
emit: (tag, payload) ->
# Add empty payload if none
payload = if payload? then payload else {}
@queue.push({tag, payload})
if @id?
@flush()
flush: ->
for message in @queue
message.payload.id = @id # Append id that is not available
Socket.emit(message.tag, message.payload)
@queue = []
lookup: (identifier, id) ->
objects = @objects[identifier]
idPromises = (object.getId() for object in objects)
$$Promise.all(idPromises).then( ->
map = {}
for object, index in objects
map[object.id] = index
objects[map[id]]
)
read: ->
Socket.emit(@getIdentifier()+ ':read', {@id})
load: (key, Type) ->
@objects = {} if not @objects?
@dependencies.push(key)
if @values[key]?
@objects[key] = (new Type(object) for object in @values[key])
delete @values[key]
else
@objects[key] = []
self = @
listenAdd = ->
Socket.on(self.getIdentifier()+ ':' + self.id + ':' +key+ ':added').then((object) ->
self.objects[key].push(new Type(object))
self.added(new Type(object), key)
listenAdd()
)
listenRemove = ->
Socket.on(self.getIdentifier()+ ':' + self.id + ':' +key+ ':removed').then((objectId) ->
self.lookup(key, objectId).then((object) ->
self.objects[key].splice(self.objects[key].indexOf(object), 1)
)
listenRemove()
)
@getId().then(->
listenAdd()
listenRemove()
)
# TODO: Support lazy loading
promise: (key) ->
$$Promise.resolve(@objects[key])
getId: ->
if @id? then $$Promise.resolve(@id) else @idDeferred.promise
onChange: (listener) ->
@changeListeners.push(listener)
setId: (id) ->
@idDeferred.resolve(parseInt(id)) if not @id?
@id = parseInt(id)
@flush()
set: (attribute, value) ->
@values[attribute] = value
@update(attribute)
link: (key, object) ->
object.getId().bind(@).then((objectId) ->
@set(key, objectId)
)
add: (object, key) ->
@objects[key].push(object)
object.getId().bind(@).then((objectId) ->
@emit(@getIdentifier()+ ':add', {key, objectId})
)
# Handle for subtype to act on event
added: (object, key) ->
return
remove: (object, key) ->
@objects[key].splice(@objects[key].indexOf(object), 1)
object.getId().bind(@).then((objectId) ->
@emit(@getIdentifier()+ ':remove', {key, objectId})
)
create: ->
payload = {}
payload[key] = value for key, value of @values
Socket.emit(@getIdentifier()+ ':create', payload).bind(@).then(@setId)
update: (attribute, value) ->
listener.call() for listener in @changeListeners
@emit(@getIdentifier()+ ':update', {attribute, value: @values[attribute]})
delete: ->
@emit(@getIdentifier()+ ':delete')
listen: ->
@listenDelete()
@listenUpdate()
listenDelete: ->
Socket.on(@getIdentifier()+ ':deleted:' +@id).bind(@).then(->
$rootScope.$broadcast(@getIdentifier()+ ':deleted', @)
)
listenUpdate: ->
Socket.on(@getIdentifier()+ ':updated:'+@id).bind(@).then((change) ->
@values[change.attribute] = change.value
@listenUpdate()
)
)
|
CoffeeScript
|
# == Class: statsd
#
# This Puppet class installs and configures a StatsD instance.
#
# logs/statsd.log will contain the last flush (10 sec worth of data)
# in JSON format; you can process it with something like
# while inotifywait -qqe modify /vagrant/logs/statsd.json; do
# cat /vagrant/logs/statsd.json | \
# jq '.counters
# | with_entries(select(.value!=0 and (.key|contains("MediaWiki"))))
# | select(.!=null)'
# done
# (this will output any counters that have been updated)
#
# === Parameters
#
# [*port*]
# the port statsd will be running on
#
class statsd (
$port,
) {
require ::service
require ::npm
require ::mediawiki::ready_service
$dir = "${::service::root_dir}/statsd"
$logdir = $::service::log_dir
git::clone { 'statsd':
directory => $dir,
remote => 'https://github.com/etsy/statsd.git',
}
npm::install { $dir:
directory => $dir,
require => Git::Clone['statsd'],
}
file { "${dir}/config.js":
ensure => present,
content => template('statsd/config.js.erb'),
mode => '0644',
require => Git::Clone['statsd'],
notify => Service['statsd'],
}
file { '/etc/logrotate.d/statsd':
content => template('statsd/logrotate.erb'),
owner => 'root',
group => 'root',
mode => '0444',
}
file { "${dir}/backends/statsd-json-backend.js":
source => 'puppet:///modules/statsd/statsd-json-backend.js',
require => Git::Clone['statsd'],
}
systemd::service { 'statsd':
ensure => 'present',
require => Npm::Install[$dir],
epp_template => true,
template_variables => {
'dir' => $dir,
'logdir' => $logdir,
},
}
}
|
Pascal
|
type t = Spade | Heart | Diamond | Club
let toString t = match t with
| Spade -> "S"
| Heart -> "H"
| Diamond -> "D"
| Club -> "C"
let toStringVerbose t = match t with
| Spade -> "Spade"
| Heart -> "Heart"
| Diamond -> "Diamond"
| Club -> "Club"
let all = [Spade; Heart; Diamond; Club]
|
OCaml
|
# == Class: role::mobileapp
# Configures MobileApp, which produces CSS files and hooks
# for the Wikimedia Android & iOS Mobile apps
class role::mobileapp {
include ::role::mobilefrontend
include ::role::cite
mediawiki::extension { 'MobileApp':
require => Mediawiki::Extension['MobileFrontend'],
}
}
|
Pascal
|
;; Copyright (C) 2012-present, Polis Technology Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
(ns polismath.math.corr
(:refer-clojure :exclude [* - + == /])
(:require
[taoensso.timbre :as log]
[taoensso.timbre.profiling :as prof]
;[plumbing.core :as pc
; :refer (fnk map-vals <-)]
;[plumbing.graph :as gr]
;[clojure.tools.trace :as tr]
;[polismath.utils :as utils]
;[polismath.math.stats :as stats]
[polismath.math.named-matrix :as nm]
[clojure.spec :as s]
[clojure.core.matrix :as matrix]
;[clojure.core.matrix.stats :as matrix-stats]
[clojure.core.matrix.selection :as matrix.selection]
[clojure.core.matrix.operators :refer :all]
;;
;[incanter.charts :as charts]
;[polismath.conv-man :as conv-man]
[clojure.set :as set]
[polismath.components.postgres :as postgres]
[incanter.stats :as ic-stats]))
;; The following is a naive hclust implementation for clustering comments using the rating matrix.
;; This is so that we can rearrange a correlation matrix according to the hclust ordering for one of them slick heatmap things.
;; This is not a particularly efficient algorithm, but it gets the job done for now.
(defn -hclust
"Implements the inner recursive agglomeration step for the hclust function."
([clusters distances]
(if (= (count clusters) 1)
clusters
(let [[c1 c2] (->> (for [c1 clusters
c2 clusters
;; Make sure we don't traverse [c c], or both [x y] and [y x]
:when (< (:id c1) (:id c2))]
[c1 c2])
(apply min-key
(fn [[c1 c2]]
(let [key [(:id c1) (:id c2)]]
(if-let [dist (get @distances key)]
dist
(let [dist (matrix/distance (:center c1) (:center c2))]
(swap! distances assoc key dist)
dist))))))
size (+ (:size c1) (:size c2))
clusters (-> clusters
(->> (remove #{c1 c2}))
(conj {:id (inc (apply max (map :id clusters)))
:children [c1 c2]
:members (concat (:members c1) (:members c2))
:distance (get @distances [(:id c1) (:id c2)])
:center (/ (+ (* (:size c1) (:center c1))
(* (:size c2) (:center c2)))
size)
:size size}))]
(-hclust clusters))))
([clusters]
(-hclust clusters (atom {}))))
(defn hclust
"Performs hclust on a named matrix"
[nmatrix]
(log/debug "hclust on matrix of shape" (matrix/shape (nm/get-matrix nmatrix)))
(-hclust
(mapv (fn [id row]
{:center row :id id :size 1 :members [id]})
(nm/rownames nmatrix)
(matrix/rows (nm/get-matrix nmatrix)))))
(defn flatten-hclust
"Extracts out the tip/leaf node ordering from the hclust results.
(This is rendered somewhat irrelevant by the fact that the hclust algorithm now tracks this data using :members attr)"
[clusters]
(mapcat
(fn [cluster]
(if-let [children (:children cluster)]
(flatten-hclust children)
[(:id cluster)]))
clusters))
(defn blockify-corr-matrix
"Rearrange the given correlation matrix ({:comments :matrix}) such that"
[corr-matrix clusters]
(let [comments (:comments corr-matrix)
matrix (:matrix corr-matrix)
members (:members (first clusters))
member-indices (mapv #(.indexOf comments %) members)]
{:matrix (matrix.selection/sel matrix member-indices member-indices)
:comments members}))
;; Need to remove nulls to compute cov/corr
;; Ideally we'd have something like a null senstive implementation of corr/cov? Restrict to overlapping dimensions?
;; What to do about 0 variance comments (all pass/null)?
;; These return NaN; treat as 0?
;; These things really should be in the named matrix namespace?
(defn cleaned-nmat [nmat]
(nm/named-matrix
(nm/rownames nmat)
(nm/colnames nmat)
(matrix/matrix
(mapv (fn [row] (map #(or % 0) row))
(matrix/rows (nm/get-matrix nmat))))))
(defn transpose-nmat [nmat]
(nm/named-matrix
(nm/colnames nmat)
(nm/rownames nmat)
(matrix/transpose (nm/get-matrix nmat))))
;(defn cleaned-matrix [conv]
; (mapv (fn [row] (map #(or % 0) row))
; (matrix/rows (nm/get-matrix (:rating-mat conv)))))
;; The actual correlation matrix stuff
(defn correlation-matrix
[nmat]
{:matrix (ic-stats/correlation (matrix/matrix (nm/get-matrix nmat)))
:comments (nm/colnames nmat)})
;; Here's some stuff for spitting out the actual results.
(require '[cheshire.core :as cheshire])
(defn prepare-hclust-for-export
[clusters]
(mapv
(fn [cluster]
(-> cluster
(update :center (partial into []))))
clusters))
(defn compute-corr
([conv tids]
(let [matrix (:rating-mat conv)
subset-matrix (if tids (nm/colname-subset matrix tids) matrix)
cleaned-matrix (cleaned-nmat subset-matrix)
transposed-matrix (transpose-nmat cleaned-matrix)
corr-mat (prof/profile :info :corr-mat (correlation-matrix cleaned-matrix))
hclusters (prof/profile :info ::hclust (hclust transposed-matrix))
corr-mat' (blockify-corr-matrix corr-mat hclusters)
corr-mat'
;; Prep for export...
(update corr-mat' :matrix (comp (partial mapv (fn [row] (into [] row)))
matrix/rows))]
corr-mat'))
([conv]
(compute-corr conv nil)))
(defn spit-json
[filename data]
(spit
filename
(cheshire/encode data)))
(defn spit-hclust
[filename clusters]
(spit-json
filename
(prepare-hclust-for-export clusters)))
;; We should add a little clarity on where things are regular matrices vs our {:comments :matrix} matrices for final export...
;; And probably just use named matrices everywhere
(defn spit-matrix
[filename matrix]
(spit-json
filename
(update matrix :matrix (comp (partial mapv (fn [row] (into [] row)))
matrix/rows))))
;; We have metadata/tags on the argument symbols of function vars
;; So what if we built a macro that copied over entire namespaces of functions to a new ns, but binds them to some sort of default system?
;; System bind!
;; Then you can access a mirror api that has sans-1 arity versions of all the functions, so you don't have to think about system!
;; This could solve the battle between component and mount
(comment
;; Here we're putting everything together
;; This may not all be 100% correct, as it was copied over from the repl... but I ran through all but the spit and sanity checks pass
(require '[incanter.charts :as charts]
'[polismath.runner :as runner]
'[polismath.conv-man :as conv-man]
'[polismath.system :as system])
;(runner/run! system/base-system {:math-env :preprod})
;; Load the data for 15117 (zinvite 2ez5beswtc)
;(def focus-id 15117)
(def focus-zinvite "36jajfnhhn")
(def focus-id 15228)
(def conv (conv-man/load-or-init (:conversation-manager runner/system) focus-id))
(compute-corr conv)
:ok
;conv
(matrix/shape (nm/get-matrix (:rating-mat conv)))
;; Compute hclust on a cleaned, transposed rating matrix
(def tids (nm/rownames (:rating-mat conv)))
tids
(def corr-mat' (compute-corr (:darwin runner/system)))
;; Spit this out
(spit-matrix (str focus-zinvite ".corrmat.json") corr-mat)
(spit-matrix (str focus-zinvite ".corrmat-whclust.json") corr-mat')
(spit-hclust (str focus-zinvite ".hclust.json") hclusters)
;; All done
:endcomment)
|
Clojure
|
/obj/machinery/computer/cloning
name = "Cloning console"
icon = 'icons/obj/computer.dmi'
icon_state = "dna"
circuit = "/obj/item/weapon/circuitboard/cloning"
req_access = list(access_heads) //Only used for record deletion right now.
var/obj/machinery/dna_scannernew/scanner = null //Linked scanner. For scanning.
var/obj/machinery/clonepod/pod1 = null //Linked cloning pod.
var/temp = ""
var/scantemp = "Scanner unoccupied"
var/menu = 1 //Which menu screen to display
var/list/records = list()
var/datum/dna2/record/active_record = null
var/obj/item/weapon/disk/data/diskette = null //Mostly so the geneticist can steal everything.
var/loading = 0 // Nice loading text
/obj/machinery/computer/cloning/New()
..()
spawn(5)
updatemodules()
return
return
/obj/machinery/computer/cloning/proc/updatemodules()
src.scanner = findscanner()
src.pod1 = findcloner()
if (!isnull(src.pod1))
src.pod1.connected = src // Some variable the pod needs
/obj/machinery/computer/cloning/proc/findscanner()
var/obj/machinery/dna_scannernew/scannerf = null
// Loop through every direction
for(dir in list(NORTH,EAST,SOUTH,WEST))
// Try to find a scanner in that direction
scannerf = locate(/obj/machinery/dna_scannernew, get_step(src, dir))
// If found, then we break, and return the scanner
if (!isnull(scannerf))
break
// If no scanner was found, it will return null
return scannerf
/obj/machinery/computer/cloning/proc/findcloner()
var/obj/machinery/clonepod/podf = null
for(dir in list(NORTH,EAST,SOUTH,WEST))
podf = locate(/obj/machinery/clonepod, get_step(src, dir))
if (!isnull(podf))
break
return podf
/obj/machinery/computer/cloning/attackby(obj/item/W as obj, mob/user as mob)
if (istype(W, /obj/item/weapon/disk/data)) //INSERT SOME DISKETTES
if (!src.diskette)
user.drop_item()
W.loc = src
src.diskette = W
user << "You insert [W]."
src.updateUsrDialog()
return
else
..()
return
/obj/machinery/computer/cloning/attack_paw(mob/user as mob)
return attack_hand(user)
/obj/machinery/computer/cloning/attack_ai(mob/user as mob)
return attack_hand(user)
/obj/machinery/computer/cloning/attack_hand(mob/user as mob)
user.set_machine(src)
add_fingerprint(user)
if(stat & (BROKEN|NOPOWER))
return
updatemodules()
var/dat = "<h3>Cloning System Control</h3>"
dat += "<font size=-1><a href='byond://?src=\ref[src];refresh=1'>Refresh</a></font>"
dat += "<br><tt>[temp]</tt><br>"
switch(src.menu)
if(1)
// Modules
dat += "<h4>Modules</h4>"
//dat += "<a href='byond://?src=\ref[src];relmodules=1'>Reload Modules</a>"
if (isnull(src.scanner))
dat += " <font color=red>Scanner-ERROR</font><br>"
else
dat += " <font color=green>Scanner-Found!</font><br>"
if (isnull(src.pod1))
dat += " <font color=red>Pod-ERROR</font><br>"
else
dat += " <font color=green>Pod-Found!</font><br>"
// Scanner
dat += "<h4>Scanner Functions</h4>"
if(loading)
dat += "<b>Scanning...</b><br>"
else
dat += "<b>[scantemp]</b><br>"
if (isnull(src.scanner))
dat += "No scanner connected!<br>"
else
if (src.scanner.occupant)
if(scantemp == "Scanner unoccupied") scantemp = "" // Stupid check to remove the text
dat += "<a href='byond://?src=\ref[src];scan=1'>Scan - [src.scanner.occupant]</a><br>"
else
scantemp = "Scanner unoccupied"
dat += "Lock status: <a href='byond://?src=\ref[src];lock=1'>[src.scanner.locked ? "Locked" : "Unlocked"]</a><br>"
if (!isnull(src.pod1))
dat += "Biomass: <i>[src.pod1.biomass]</i><br>"
// Database
dat += "<h4>Database Functions</h4>"
dat += "<a href='byond://?src=\ref[src];menu=2'>View Records</a><br>"
if (src.diskette)
dat += "<a href='byond://?src=\ref[src];disk=eject'>Eject Disk</a>"
if(2)
dat += "<h4>Current records</h4>"
dat += "<a href='byond://?src=\ref[src];menu=1'>Back</a><br><br>"
for(var/datum/dna2/record/R in src.records)
dat += "<li><a href='byond://?src=\ref[src];view_rec=\ref[R]'>[R.dna.real_name]</a><li>"
if(3)
dat += "<h4>Selected Record</h4>"
dat += "<a href='byond://?src=\ref[src];menu=2'>Back</a><br>"
if (!src.active_record)
dat += "<font color=red>ERROR: Record not found.</font>"
else
dat += {"<br><font size=1><a href='byond://?src=\ref[src];del_rec=1'>Delete Record</a></font><br>
<b>Name:</b> [src.active_record.dna.real_name]<br>"}
var/obj/item/weapon/implant/health/H = null
if(src.active_record.implant)
H=locate(src.active_record.implant)
if ((H) && (istype(H)))
dat += "<b>Health:</b> [H.sensehealth()] | OXY-BURN-TOX-BRUTE<br>"
else
dat += "<font color=red>Unable to locate implant.</font><br>"
if (!isnull(src.diskette))
dat += "<a href='byond://?src=\ref[src];disk=load'>Load from disk.</a>"
dat += " | Save: <a href='byond://?src=\ref[src];save_disk=ue'>UI + UE</a>"
dat += " | Save: <a href='byond://?src=\ref[src];save_disk=ui'>UI</a>"
dat += " | Save: <a href='byond://?src=\ref[src];save_disk=se'>SE</a>"
dat += "<br>"
else
dat += "<br>" //Keeping a line empty for appearances I guess.
dat += {"<b>UI:</b> [src.active_record.dna.uni_identity]<br>
<b>SE:</b> [src.active_record.dna.struc_enzymes]<br><br>"}
if(pod1 && pod1.biomass >= CLONE_BIOMASS)
dat += {"<a href='byond://?src=\ref[src];clone=\ref[src.active_record]'>Clone</a><br>"}
else
dat += {"<b>Insufficient biomass</b><br>"}
if(4)
if (!src.active_record)
src.menu = 2
dat = "[src.temp]<br>"
dat += "<h4>Confirm Record Deletion</h4>"
dat += "<b><a href='byond://?src=\ref[src];del_rec=1'>Scan card to confirm.</a></b><br>"
dat += "<b><a href='byond://?src=\ref[src];menu=3'>No</a></b>"
user << browse(dat, "window=cloning")
onclose(user, "cloning")
return
/obj/machinery/computer/cloning/Topic(href, href_list)
if(..())
return
if(loading)
return
if ((href_list["scan"]) && (!isnull(src.scanner)))
scantemp = ""
loading = 1
src.updateUsrDialog()
spawn(20)
src.scan_mob(src.scanner.occupant)
loading = 0
src.updateUsrDialog()
//No locking an open scanner.
else if ((href_list["lock"]) && (!isnull(src.scanner)))
if ((!src.scanner.locked) && (src.scanner.occupant))
src.scanner.locked = 1
else
src.scanner.locked = 0
else if (href_list["view_rec"])
src.active_record = locate(href_list["view_rec"])
if(istype(src.active_record,/datum/dna2/record))
if ((isnull(src.active_record.ckey)))
del(src.active_record)
src.temp = "ERROR: Record Corrupt"
else
src.menu = 3
else
src.active_record = null
src.temp = "Record missing."
else if (href_list["del_rec"])
if ((!src.active_record) || (src.menu < 3))
return
if (src.menu == 3) //If we are viewing a record, confirm deletion
src.temp = "Delete record?"
src.menu = 4
else if (src.menu == 4)
var/obj/item/weapon/card/id/C = usr.get_active_hand()
if (istype(C)||istype(C, /obj/item/device/pda))
if(src.check_access(C))
src.records.Remove(src.active_record)
del(src.active_record)
src.temp = "Record deleted."
src.menu = 2
else
src.temp = "Access Denied."
else if (href_list["disk"]) //Load or eject.
switch(href_list["disk"])
if("load")
if ((isnull(src.diskette)) || isnull(src.diskette.buf))
src.temp = "Load error."
src.updateUsrDialog()
return
if (isnull(src.active_record))
src.temp = "Record error."
src.menu = 1
src.updateUsrDialog()
return
src.active_record = src.diskette.buf
src.temp = "Load successful."
if("eject")
if (!isnull(src.diskette))
src.diskette.loc = src.loc
src.diskette = null
else if (href_list["save_disk"]) //Save to disk!
if ((isnull(src.diskette)) || (src.diskette.read_only) || (isnull(src.active_record)))
src.temp = "Save error."
src.updateUsrDialog()
return
// DNA2 makes things a little simpler.
src.diskette.buf=src.active_record
src.diskette.buf.types=0
switch(href_list["save_disk"]) //Save as Ui/Ui+Ue/Se
if("ui")
src.diskette.buf.types=DNA2_BUF_UI
if("ue")
src.diskette.buf.types=DNA2_BUF_UI|DNA2_BUF_UE
if("se")
src.diskette.buf.types=DNA2_BUF_SE
src.diskette.name = "data disk - '[src.active_record.dna.real_name]'"
src.temp = "Save \[[href_list["save_disk"]]\] successful."
else if (href_list["refresh"])
src.updateUsrDialog()
else if (href_list["clone"])
var/datum/dna2/record/C = locate(href_list["clone"])
//Look for that player! They better be dead!
if(istype(C))
//Can't clone without someone to clone. Or a pod. Or if the pod is busy. Or full of gibs.
if(!pod1)
temp = "Error: No Clonepod detected."
else if(pod1.occupant)
temp = "Error: Clonepod is currently occupied."
else if(pod1.biomass < CLONE_BIOMASS)
temp = "Error: Not enough biomass."
else if(pod1.mess)
temp = "Error: Clonepod malfunction."
else if(!config.revival_cloning)
temp = "Error: Unable to initiate cloning cycle."
else if(pod1.growclone(C))
temp = "Initiating cloning cycle..."
records.Remove(C)
del(C)
menu = 1
else
var/mob/selected = find_dead_player("[C.ckey]")
selected << 'sound/machines/chime.ogg' //probably not the best sound but I think it's reasonable
var/answer = alert(selected,"Do you want to return to life?","Cloning","Yes","No")
if(answer != "No" && pod1.growclone(C))
temp = "Initiating cloning cycle..."
records.Remove(C)
del(C)
menu = 1
else
temp = "Initiating cloning cycle...<br>Error: Post-initialisation failed. Cloning cycle aborted."
else
temp = "Error: Data corruption."
else if (href_list["menu"])
src.menu = text2num(href_list["menu"])
src.add_fingerprint(usr)
src.updateUsrDialog()
return
/obj/machinery/computer/cloning/proc/scan_mob(mob/living/carbon/human/subject as mob)
if ((isnull(subject)) || (!(ishuman(subject))) || (!subject.dna))
scantemp = "Error: Unable to locate valid genetic data."
return
if (subject.brain_op_stage == 4.0)
scantemp = "Error: No signs of intelligence detected."
return
if (subject.suiciding == 1)
scantemp = "Error: Subject's brain is not responding to scanning stimuli."
return
if ((!subject.ckey) || (!subject.client))
scantemp = "Error: Mental interface failure."
return
if (NOCLONE in subject.mutations)
scantemp = "Error: Mental interface failure."
return
if (!isnull(find_record(subject.ckey)))
scantemp = "Subject already in database."
return
subject.dna.check_integrity()
var/datum/dna2/record/R = new /datum/dna2/record()
R.dna=subject.dna
R.ckey = subject.ckey
R.id= copytext(md5(subject.real_name), 2, 6)
R.name=R.dna.real_name
R.types=DNA2_BUF_UI|DNA2_BUF_UE|DNA2_BUF_SE
R.languages=subject.languages
//Add an implant if needed
var/obj/item/weapon/implant/health/imp = locate(/obj/item/weapon/implant/health, subject)
if (isnull(imp))
imp = new /obj/item/weapon/implant/health(subject)
imp.implanted = subject
R.implant = "\ref[imp]"
//Update it if needed
else
R.implant = "\ref[imp]"
if (!isnull(subject.mind)) //Save that mind so traitors can continue traitoring after cloning.
R.mind = "\ref[subject.mind]"
src.records += R
scantemp = "Subject successfully scanned."
//Find a specific record by key.
/obj/machinery/computer/cloning/proc/find_record(var/find_key)
var/selected_record = null
for(var/datum/dna2/record/R in src.records)
if (R.ckey == find_key)
selected_record = R
break
return selected_record
/obj/machinery/computer/cloning/update_icon()
if(stat & BROKEN)
icon_state = "commb"
else
if(stat & NOPOWER)
src.icon_state = "c_unpowered"
stat |= NOPOWER
else
icon_state = initial(icon_state)
stat &= ~NOPOWER
|
DM
|
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
*
* 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.
*
* @package CodeIgniter
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com
* @since Version 1.0.0
* @filesource
*/
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* URI Class
*
* Parses URIs and determines routing
*
* @package CodeIgniter
* @subpackage Libraries
* @category URI
* @author EllisLab Dev Team
* @link https://codeigniter.com/user_guide/libraries/uri.html
*/
class CI_URI {
/**
* List of cached URI segments
*
* @var array
*/
public $keyval = array();
/**
* Current URI string
*
* @var string
*/
public $uri_string = '';
/**
* List of URI segments
*
* Starts at 1 instead of 0.
*
* @var array
*/
public $segments = array();
/**
* List of routed URI segments
*
* Starts at 1 instead of 0.
*
* @var array
*/
public $rsegments = array();
/**
* Permitted URI chars
*
* PCRE character group allowed in URI segments
*
* @var string
*/
protected $_permitted_uri_chars;
/**
* Class constructor
*
* @return void
*/
public function __construct() {
$this->config = & load_class('Config', 'core');
// If query strings are enabled, we don't need to parse any segments.
// However, they don't make sense under CLI.
if (is_cli() OR $this->config->item('enable_query_strings') !== TRUE) {
$this->_permitted_uri_chars = $this->config->item('permitted_uri_chars');
// If it's a CLI request, ignore the configuration
if (is_cli()) {
$uri = $this->_parse_argv();
} else {
$protocol = $this->config->item('uri_protocol');
empty($protocol) && $protocol = 'REQUEST_URI';
switch ($protocol) {
case 'AUTO': // For BC purposes only
case 'REQUEST_URI':
$uri = $this->_parse_request_uri();
break;
case 'QUERY_STRING':
$uri = $this->_parse_query_string();
break;
case 'PATH_INFO':
default:
$uri = isset($_SERVER[$protocol]) ? $_SERVER[$protocol] : $this->_parse_request_uri();
break;
}
}
$this->_set_uri_string($uri);
}
log_message('info', 'URI Class Initialized');
}
// --------------------------------------------------------------------
/**
* Set URI String
*
* @param string $str
* @return void
*/
protected function _set_uri_string($str) {
// Filter out control characters and trim slashes
$this->uri_string = trim(remove_invisible_characters($str, FALSE), '/');
if ($this->uri_string !== '') {
// Remove the URL suffix, if present
if (($suffix = (string) $this->config->item('url_suffix')) !== '') {
$slen = strlen($suffix);
if (substr($this->uri_string, -$slen) === $suffix) {
$this->uri_string = substr($this->uri_string, 0, -$slen);
}
}
$this->segments[0] = NULL;
// Populate the segments array
foreach (explode('/', trim($this->uri_string, '/')) as $val) {
$val = trim($val);
// Filter segments for security
$this->filter_uri($val);
if ($val !== '') {
$this->segments[] = $val;
}
}
unset($this->segments[0]);
}
}
// --------------------------------------------------------------------
/**
* Parse REQUEST_URI
*
* Will parse REQUEST_URI and automatically detect the URI from it,
* while fixing the query string if necessary.
*
* @return string
*/
protected function _parse_request_uri() {
if (!isset($_SERVER['REQUEST_URI'], $_SERVER['SCRIPT_NAME'])) {
return '';
}
// parse_url() returns false if no host is present, but the path or query string
// contains a colon followed by a number
$uri = parse_url('http://dummy' . $_SERVER['REQUEST_URI']);
$query = isset($uri['query']) ? $uri['query'] : '';
$uri = isset($uri['path']) ? $uri['path'] : '';
if (isset($_SERVER['SCRIPT_NAME'][0])) {
if (strpos($uri, $_SERVER['SCRIPT_NAME']) === 0) {
$uri = (string) substr($uri, strlen($_SERVER['SCRIPT_NAME']));
} elseif (strpos($uri, dirname($_SERVER['SCRIPT_NAME'])) === 0) {
$uri = (string) substr($uri, strlen(dirname($_SERVER['SCRIPT_NAME'])));
}
}
// This section ensures that even on servers that require the URI to be in the query string (Nginx) a correct
// URI is found, and also fixes the QUERY_STRING server var and $_GET array.
if (trim($uri, '/') === '' && strncmp($query, '/', 1) === 0) {
$query = explode('?', $query, 2);
$uri = $query[0];
$_SERVER['QUERY_STRING'] = isset($query[1]) ? $query[1] : '';
} else {
$_SERVER['QUERY_STRING'] = $query;
}
parse_str($_SERVER['QUERY_STRING'], $_GET);
if ($uri === '/' OR $uri === '') {
return '/';
}
// Do some final cleaning of the URI and return it
return $this->_remove_relative_directory($uri);
}
// --------------------------------------------------------------------
/**
* Parse QUERY_STRING
*
* Will parse QUERY_STRING and automatically detect the URI from it.
*
* @return string
*/
protected function _parse_query_string() {
$uri = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING');
if (trim($uri, '/') === '') {
return '';
} elseif (strncmp($uri, '/', 1) === 0) {
$uri = explode('?', $uri, 2);
$_SERVER['QUERY_STRING'] = isset($uri[1]) ? $uri[1] : '';
$uri = $uri[0];
}
parse_str($_SERVER['QUERY_STRING'], $_GET);
return $this->_remove_relative_directory($uri);
}
// --------------------------------------------------------------------
/**
* Parse CLI arguments
*
* Take each command line argument and assume it is a URI segment.
*
* @return string
*/
protected function _parse_argv() {
$args = array_slice($_SERVER['argv'], 1);
return $args ? implode('/', $args) : '';
}
// --------------------------------------------------------------------
/**
* Remove relative directory (../) and multi slashes (///)
*
* Do some final cleaning of the URI and return it, currently only used in self::_parse_request_uri()
*
* @param string $uri
* @return string
*/
protected function _remove_relative_directory($uri) {
$uris = array();
$tok = strtok($uri, '/');
while ($tok !== FALSE) {
if ((!empty($tok) OR $tok === '0') && $tok !== '..') {
$uris[] = $tok;
}
$tok = strtok('/');
}
return implode('/', $uris);
}
// --------------------------------------------------------------------
/**
* Filter URI
*
* Filters segments for malicious characters.
*
* @param string $str
* @return void
*/
public function filter_uri(&$str) {
if (!empty($str) && !empty($this->_permitted_uri_chars) && !preg_match('/^[' . $this->_permitted_uri_chars . ']+$/i' . (UTF8_ENABLED ? 'u' : ''), $str)) {
show_error('The URI you submitted has disallowed characters.', 400);
}
}
// --------------------------------------------------------------------
/**
* Fetch URI Segment
*
* @see CI_URI::$segments
* @param int $n Index
* @param mixed $no_result What to return if the segment index is not found
* @return mixed
*/
public function segment($n, $no_result = NULL) {
return isset($this->segments[$n]) ? $this->segments[$n] : $no_result;
}
// --------------------------------------------------------------------
/**
* Fetch URI "routed" Segment
*
* Returns the re-routed URI segment (assuming routing rules are used)
* based on the index provided. If there is no routing, will return
* the same result as CI_URI::segment().
*
* @see CI_URI::$rsegments
* @see CI_URI::segment()
* @param int $n Index
* @param mixed $no_result What to return if the segment index is not found
* @return mixed
*/
public function rsegment($n, $no_result = NULL) {
return isset($this->rsegments[$n]) ? $this->rsegments[$n] : $no_result;
}
// --------------------------------------------------------------------
/**
* URI to assoc
*
* Generates an associative array of URI data starting at the supplied
* segment index. For example, if this is your URI:
*
* example.com/user/search/name/joe/location/UK/gender/male
*
* You can use this method to generate an array with this prototype:
*
* array (
* name => joe
* location => UK
* gender => male
* )
*
* @param int $n Index (default: 3)
* @param array $default Default values
* @return array
*/
public function uri_to_assoc($n = 3, $default = array()) {
return $this->_uri_to_assoc($n, $default, 'segment');
}
// --------------------------------------------------------------------
/**
* Routed URI to assoc
*
* Identical to CI_URI::uri_to_assoc(), only it uses the re-routed
* segment array.
*
* @see CI_URI::uri_to_assoc()
* @param int $n Index (default: 3)
* @param array $default Default values
* @return array
*/
public function ruri_to_assoc($n = 3, $default = array()) {
return $this->_uri_to_assoc($n, $default, 'rsegment');
}
// --------------------------------------------------------------------
/**
* Internal URI-to-assoc
*
* Generates a key/value pair from the URI string or re-routed URI string.
*
* @used-by CI_URI::uri_to_assoc()
* @used-by CI_URI::ruri_to_assoc()
* @param int $n Index (default: 3)
* @param array $default Default values
* @param string $which Array name ('segment' or 'rsegment')
* @return array
*/
protected function _uri_to_assoc($n = 3, $default = array(), $which = 'segment') {
if (!is_numeric($n)) {
return $default;
}
if (isset($this->keyval[$which], $this->keyval[$which][$n])) {
return $this->keyval[$which][$n];
}
$total_segments = "total_{$which}s";
$segment_array = "{$which}_array";
if ($this->$total_segments() < $n) {
return (count($default) === 0) ? array() : array_fill_keys($default, NULL);
}
$segments = array_slice($this->$segment_array(), ($n - 1));
$i = 0;
$lastval = '';
$retval = array();
foreach ($segments as $seg) {
if ($i % 2) {
$retval[$lastval] = $seg;
} else {
$retval[$seg] = NULL;
$lastval = $seg;
}
$i++;
}
if (count($default) > 0) {
foreach ($default as $val) {
if (!array_key_exists($val, $retval)) {
$retval[$val] = NULL;
}
}
}
// Cache the array for reuse
isset($this->keyval[$which]) OR $this->keyval[$which] = array();
$this->keyval[$which][$n] = $retval;
return $retval;
}
// --------------------------------------------------------------------
/**
* Assoc to URI
*
* Generates a URI string from an associative array.
*
* @param array $array Input array of key/value pairs
* @return string URI string
*/
public function assoc_to_uri($array) {
$temp = array();
foreach ((array) $array as $key => $val) {
$temp[] = $key;
$temp[] = $val;
}
return implode('/', $temp);
}
// --------------------------------------------------------------------
/**
* Slash segment
*
* Fetches an URI segment with a slash.
*
* @param int $n Index
* @param string $where Where to add the slash ('trailing' or 'leading')
* @return string
*/
public function slash_segment($n, $where = 'trailing') {
return $this->_slash_segment($n, $where, 'segment');
}
// --------------------------------------------------------------------
/**
* Slash routed segment
*
* Fetches an URI routed segment with a slash.
*
* @param int $n Index
* @param string $where Where to add the slash ('trailing' or 'leading')
* @return string
*/
public function slash_rsegment($n, $where = 'trailing') {
return $this->_slash_segment($n, $where, 'rsegment');
}
// --------------------------------------------------------------------
/**
* Internal Slash segment
*
* Fetches an URI Segment and adds a slash to it.
*
* @used-by CI_URI::slash_segment()
* @used-by CI_URI::slash_rsegment()
*
* @param int $n Index
* @param string $where Where to add the slash ('trailing' or 'leading')
* @param string $which Array name ('segment' or 'rsegment')
* @return string
*/
protected function _slash_segment($n, $where = 'trailing', $which = 'segment') {
$leading = $trailing = '/';
if ($where === 'trailing') {
$leading = '';
} elseif ($where === 'leading') {
$trailing = '';
}
return $leading . $this->$which($n) . $trailing;
}
// --------------------------------------------------------------------
/**
* Segment Array
*
* @return array CI_URI::$segments
*/
public function segment_array() {
return $this->segments;
}
// --------------------------------------------------------------------
/**
* Routed Segment Array
*
* @return array CI_URI::$rsegments
*/
public function rsegment_array() {
return $this->rsegments;
}
// --------------------------------------------------------------------
/**
* Total number of segments
*
* @return int
*/
public function total_segments() {
return count($this->segments);
}
// --------------------------------------------------------------------
/**
* Total number of routed segments
*
* @return int
*/
public function total_rsegments() {
return count($this->rsegments);
}
// --------------------------------------------------------------------
/**
* Fetch URI string
*
* @return string CI_URI::$uri_string
*/
public function uri_string() {
return $this->uri_string;
}
// --------------------------------------------------------------------
/**
* Fetch Re-routed URI string
*
* @return string
*/
public function ruri_string() {
return ltrim(load_class('Router', 'core')->directory, '/') . implode('/', $this->rsegments);
}
}
|
Hack
|
module top (a,b,c,d,o);
input a,b,c,d;
output o;
wire e,f,g,h;
not (e,b);
and (f,a,e);
and (g,b,c);
or (h,f,g);
xor (o,h,d);
endmodule
|
Coq
|
package ala.name.explorer
class ExplorerTagLib {
static namespace = 'exp'
static bie = "http://bie-dev.ala.org.au/ala-bie"
def nameLink = { attrs ->
def name = attrs.name
def id = attrs.id
if (id)
out << "<a href=\"${bie}/species/${id}\">${name}</a>"
else
out << name
}
}
|
Groovy
|
import { observable, action } from 'mobx'
class MetersStore {
@observable loading = true
@observable power_now = 0
@observable energy_total = 0
@observable energy_today = 0
@observable dc1_u = 0
@observable dc1_i = 0
@observable dc2_u = 0
@observable dc2_i = 0
@observable ac1_u = 0
@observable ac1_p = 0
@observable ac2_u = 0
@observable ac2_p = 0
@observable ac3_u = 0
@observable ac3_p = 0
@action update = (data) => {
this.loading = false
this.power_now = data.power_now
this.energy_total = data.energy_total
this.energy_today = data.energy_today
this.dc1_u = data.dc1_u || 0
this.dc1_i = data.dc1_i || 0
this.dc2_u = data.dc2_u || 0
this.dc2_i = data.dc2_i || 0
this.ac1_u = data.ac1_u || 0
this.ac1_p = data.ac1_p || 0
this.ac2_u = data.ac2_u || 0
this.ac2_p = data.ac2_p || 0
this.ac3_u = data.ac3_u || 0
this.ac3_p = data.ac3_p || 0
}
}
const metersStore = new MetersStore()
export { metersStore }
|
JavaScript
|
2.437199999999999811e+00 -6.526999999999999469e-02
2.407650000000000290e+00 -5.879499999999999310e-03
2.404449999999999754e+00 1.775899999999999979e-01
2.590949999999999864e+00 2.333899999999999864e-01
2.580699999999999772e+00 1.235949999999999965e-01
2.580699999999999772e+00 1.235949999999999965e-01
2.532900000000000151e+00 3.838499999999999551e-02
2.436849999999999739e+00 2.282699999999999660e-02
2.331599999999999895e+00 9.221499999999997754e-02
2.324099999999999611e+00 1.151299999999999824e-01
2.324099999999999611e+00 1.151299999999999824e-01
2.351550000000000029e+00 1.516699999999999715e-01
2.379249999999999865e+00 2.225549999999999751e-01
2.506699999999999928e+00 2.657399999999999762e-01
2.478649999999999576e+00 1.306350000000000011e-01
2.478649999999999576e+00 1.306350000000000011e-01
2.387049999999999894e+00 8.446499999999999148e-03
2.238549999999999596e+00 -1.212699999999999889e-02
2.221799999999999997e+00 1.133249999999999952e-01
2.284549999999999859e+00 1.350849999999999829e-01
2.284549999999999859e+00 1.350849999999999829e-01
2.310150000000000148e+00 3.908299999999999275e-02
2.259700000000000042e+00 -1.822049999999999711e-02
2.399599999999999511e+00 8.620999999999998109e-02
2.423299999999999343e+00 -2.460949999999999249e-02
2.423299999999999343e+00 -2.460949999999999249e-02
2.408399999999999430e+00 -1.249549999999999828e-01
2.424849999999999728e+00 -1.950649999999999606e-01
2.482699999999999463e+00 -2.114599999999999813e-01
2.511799999999999589e+00 -2.158799999999999886e-01
2.511799999999999589e+00 -2.158799999999999886e-01
2.468199999999999505e+00 -1.861799999999999566e-01
2.440900000000000070e+00 -1.737700000000000009e-02
2.749149999999999761e+00 6.498999999999999222e-02
2.830949999999999633e+00 -4.184249999999999081e-02
2.830949999999999633e+00 -4.184249999999999081e-02
2.810499999999999776e+00 -1.478249999999999842e-01
2.662799999999999834e+00 -1.800400000000000056e-01
2.594049999999999301e+00 -7.245999999999999663e-02
2.595299999999999496e+00 -3.240349999999999481e-02
2.595299999999999496e+00 -3.240349999999999481e-02
2.543899999999999828e+00 -4.430749999999999966e-02
2.468249999999999833e+00 1.437899999999999769e-02
2.815699999999999648e+00 7.782999999999998253e-02
2.896299999999999653e+00 -2.764949999999999700e-02
2.896299999999999653e+00 -2.764949999999999700e-02
2.870649999999999924e+00 -1.056950000000000112e-01
2.743900000000000006e+00 -1.135649999999999993e-01
2.641950000000000021e+00 -1.313000000000000000e-01
2.592200000000000060e+00 -1.443899999999999906e-01
2.592200000000000060e+00 -1.443899999999999906e-01
2.566749999999999865e+00 -1.366449999999999887e-01
2.599599999999999689e+00 2.106999999999999845e-02
2.854949999999999655e+00 1.068899999999999989e-01
2.917749999999999844e+00 -5.571499999999999196e-03
2.917749999999999844e+00 -5.571499999999999196e-03
2.896849999999999703e+00 -1.070249999999999813e-01
2.814849999999999852e+00 -1.301249999999999907e-01
2.768099999999999561e+00 -5.567499999999999533e-02
2.755299999999999194e+00 -4.146350000000000036e-02
2.755299999999999194e+00 -4.146350000000000036e-02
2.709199999999999608e+00 -5.691999999999999144e-03
2.571799999999999642e+00 1.497749999999999637e-01
2.759099999999999664e+00 1.994649999999999757e-01
2.774550000000000072e+00 4.658149999999999791e-02
2.774550000000000072e+00 4.658149999999999791e-02
2.729749999999999677e+00 -1.017599999999999755e-01
2.639949999999999797e+00 -2.215000000000000024e-01
2.624349999999999739e+00 -1.748649999999999927e-01
2.643249999999999655e+00 -1.340249999999999775e-01
2.643249999999999655e+00 -1.340249999999999775e-01
2.611299999999999955e+00 -8.309500000000000219e-02
2.545949999999999491e+00 1.268650000000000055e-01
2.740349999999999842e+00 2.193349999999999744e-01
2.725149999999999295e+00 8.687499999999998002e-02
2.725149999999999295e+00 8.687499999999998002e-02
2.645449999999999413e+00 -3.978399999999999992e-02
2.557450000000000223e+00 -8.366499999999998938e-02
2.544299999999999784e+00 -7.368999999999999162e-02
2.548799999999999955e+00 -1.248399999999999788e-01
2.548799999999999955e+00 -1.248399999999999788e-01
2.508399999999999519e+00 -1.495549999999999935e-01
2.509549999999999503e+00 2.892849999999999588e-02
2.793849999999999500e+00 1.889299999999999868e-01
2.807849999999999735e+00 7.988999999999998880e-02
2.807849999999999735e+00 7.988999999999998880e-02
2.714249999999999829e+00 -3.938249999999999390e-02
2.544549999999999645e+00 -1.134899999999999937e-01
2.476900000000000102e+00 -8.939500000000000224e-02
2.443649999999999434e+00 -1.050099999999999784e-01
2.443649999999999434e+00 -1.050099999999999784e-01
2.367849999999999788e+00 -1.008799999999999975e-01
2.256399999999999739e+00 7.155000000000000249e-02
2.456299999999999706e+00 1.770750000000000102e-01
2.464899999999999647e+00 7.277999999999999747e-02
2.464899999999999647e+00 7.277999999999999747e-02
2.394449999999999967e+00 -3.994099999999999734e-02
2.273399999999999643e+00 -1.330449999999999966e-01
2.301099999999999479e+00 -1.382700000000000040e-01
2.326299999999999812e+00 -1.853749999999999842e-01
2.326299999999999812e+00 -1.853749999999999842e-01
2.307049999999999823e+00 -2.282799999999999829e-01
2.329999999999999627e+00 -7.059500000000000497e-02
2.544949999999999601e+00 6.461999999999999689e-02
2.540599999999999969e+00 -4.641349999999999643e-02
2.540599999999999969e+00 -4.641349999999999643e-02
2.476799999999999891e+00 -1.529199999999999726e-01
2.332749999999999879e+00 -2.247099999999999653e-01
2.235349999999999948e+00 -7.546500000000000430e-02
2.234999999999999876e+00 2.017649999999999999e-02
2.234999999999999876e+00 2.017649999999999999e-02
2.214999999999999414e+00 6.635499999999999732e-02
2.307199999999999918e+00 2.467649999999999566e-01
2.507599999999999607e+00 2.879249999999999865e-01
2.473649999999999682e+00 1.645049999999999568e-01
2.473649999999999682e+00 1.645049999999999568e-01
2.386299999999999866e+00 7.161999999999998923e-02
2.298149999999999693e+00 4.526949999999999724e-02
2.313149999999999817e+00 -1.090400000000000050e-02
2.345650000000000013e+00 -6.940499999999999448e-02
2.345650000000000013e+00 -6.940499999999999448e-02
2.356149999999999967e+00 -1.062499999999999833e-01
2.405250000000000110e+00 1.293600000000000028e-01
2.563349999999999795e+00 2.620499999999999496e-01
2.540449999999999875e+00 1.297499999999999765e-01
2.540449999999999875e+00 1.297499999999999765e-01
2.453799999999999759e+00 -5.841999999999999103e-03
2.330849999999999866e+00 -8.780499999999999416e-02
2.188549999999999773e+00 -5.423499999999999155e-02
2.133599999999999941e+00 -4.917900000000000049e-02
2.133599999999999941e+00 -4.917900000000000049e-02
2.098349999999999937e+00 -7.736999999999999433e-02
2.167399999999999771e+00 -1.451050000000000083e-02
2.561049999999999827e+00 8.636999999999998845e-02
2.652900000000000258e+00 -2.059699999999999379e-02
2.652900000000000258e+00 -2.059699999999999379e-02
2.634999999999999787e+00 -1.225249999999999950e-01
2.526699999999999946e+00 -1.554800000000000071e-01
2.521349999999999536e+00 -2.814699999999999841e-02
2.565549999999999997e+00 6.669499999999999040e-02
2.565549999999999997e+00 6.669499999999999040e-02
2.571799999999999642e+00 1.585999999999999910e-01
2.550999999999999712e+00 3.335849999999999649e-01
2.633249999999999424e+00 3.417549999999999755e-01
2.555199999999999694e+00 2.108399999999999719e-01
2.555199999999999694e+00 2.108399999999999719e-01
2.405749999999999833e+00 8.449500000000000066e-02
2.287399999999999878e+00 -8.090999999999999234e-03
2.402749999999999719e+00 -6.823999999999999511e-02
2.437199999999999811e+00 -6.526999999999999469e-02
|
CSV
|
{
"title":"Geolocation",
"description":"Method of informing a website of the user's geographical location",
"spec":"http://www.w3.org/TR/geolocation-API/",
"status":"rec",
"links":[
{
"url":"http://html5demos.com/geo",
"title":"Simple demo"
},
{
"url":"https://raw.github.com/phiggins42/has.js/master/detect/features.js#native-geolocation",
"title":"has.js test"
},
{
"url":"https://www.webplatform.org/docs/apis/geolocation",
"title":"WebPlatform Docs"
}
],
"bugs":[
{
"description":"IE9 appears to [have some issues](http://social.technet.microsoft.com/Forums/en-IE/ieitprocurrentver/thread/aea4db4e-0720-44fe-a9b8-09917e345080) in correctly determining longitude/latitude."
},
{
"description":"iOS6 has problems with returning [high accuracy data](https://discussions.apple.com/thread/4313850?start=0&tstart=0)."
},
{
"description":"Safari 5 & 6 seem to not provide geolocation data [when using a wired connection](http://stackoverflow.com/questions/3791442/geolocation-in-safari-5)."
},
{
"description":"Firefox sometimes fails to call the success or error callbacks [see bug](https://bugzilla.mozilla.org/show_bug.cgi?id=675533)"
}
],
"categories":[
"JS API"
],
"stats":{
"ie":{
"5.5":"n",
"6":"p",
"7":"p",
"8":"p",
"9":"y",
"10":"y",
"11":"y"
},
"edge":{
"12":"y",
"13":"y",
"14":"y",
"15":"y",
"16":"y",
"17":"y"
},
"firefox":{
"2":"p",
"3":"p",
"3.5":"y",
"3.6":"y",
"4":"y",
"5":"y",
"6":"y",
"7":"y",
"8":"y",
"9":"y",
"10":"y",
"11":"y",
"12":"y",
"13":"y",
"14":"y",
"15":"y",
"16":"y",
"17":"y",
"18":"y",
"19":"y",
"20":"y",
"21":"y",
"22":"y",
"23":"y",
"24":"y",
"25":"y",
"26":"y",
"27":"y",
"28":"y",
"29":"y",
"30":"y",
"31":"y",
"32":"y",
"33":"y",
"34":"y",
"35":"y",
"36":"y",
"37":"y",
"38":"y",
"39":"y",
"40":"y",
"41":"y",
"42":"y",
"43":"y",
"44":"y",
"45":"y",
"46":"y",
"47":"y",
"48":"y",
"49":"y",
"50":"y",
"51":"y",
"52":"y",
"53":"y",
"54":"y",
"55":"y #1",
"56":"y #1",
"57":"y #1",
"58":"y #1",
"59":"y #1",
"60":"y #1"
},
"chrome":{
"4":"a",
"5":"y",
"6":"y",
"7":"y",
"8":"y",
"9":"y",
"10":"y",
"11":"y",
"12":"y",
"13":"y",
"14":"y",
"15":"y",
"16":"y",
"17":"y",
"18":"y",
"19":"y",
"20":"y",
"21":"y",
"22":"y",
"23":"y",
"24":"y",
"25":"y",
"26":"y",
"27":"y",
"28":"y",
"29":"y",
"30":"y",
"31":"y",
"32":"y",
"33":"y",
"34":"y",
"35":"y",
"36":"y",
"37":"y",
"38":"y",
"39":"y",
"40":"y",
"41":"y",
"42":"y",
"43":"y",
"44":"y",
"45":"y",
"46":"y",
"47":"y",
"48":"y",
"49":"y",
"50":"y #1",
"51":"y #1",
"52":"y #1",
"53":"y #1",
"54":"y #1",
"55":"y #1",
"56":"y #1",
"57":"y #1",
"58":"y #1",
"59":"y #1",
"60":"y #1",
"61":"y #1",
"62":"y #1",
"63":"y #1",
"64":"y #1",
"65":"y #1"
},
"safari":{
"3.1":"p",
"3.2":"p",
"4":"p",
"5":"y",
"5.1":"y",
"6":"y",
"6.1":"y",
"7":"y",
"7.1":"y",
"8":"y",
"9":"y",
"9.1":"y",
"10":"y #1",
"10.1":"y",
"11":"y",
"TP":"y"
},
"opera":{
"9":"n",
"9.5-9.6":"n",
"10.0-10.1":"p",
"10.5":"p",
"10.6":"y",
"11":"y",
"11.1":"y",
"11.5":"y",
"11.6":"y",
"12":"y",
"12.1":"y",
"15":"n",
"16":"y",
"17":"y",
"18":"y",
"19":"y",
"20":"y",
"21":"y",
"22":"y",
"23":"y",
"24":"y",
"25":"y",
"26":"y",
"27":"y",
"28":"y",
"29":"y",
"30":"y",
"31":"y",
"32":"y",
"33":"y",
"34":"y",
"35":"y",
"36":"y",
"37":"y",
"38":"y",
"39":"y #1",
"40":"y #1",
"41":"y #1",
"42":"y #1",
"43":"y #1",
"44":"y #1",
"45":"y #1",
"46":"y #1",
"47":"y #1",
"48":"y #1",
"49":"y #1",
"50":"y #1"
},
"ios_saf":{
"3.2":"y",
"4.0-4.1":"y",
"4.2-4.3":"y",
"5.0-5.1":"y",
"6.0-6.1":"y",
"7.0-7.1":"y",
"8":"y",
"8.1-8.4":"y",
"9.0-9.2":"y",
"9.3":"y",
"10.0-10.2":"y #1",
"10.3":"y #1",
"11":"y #1"
},
"op_mini":{
"all":"n"
},
"android":{
"2.1":"y",
"2.2":"y",
"2.3":"y",
"3":"y",
"4":"y",
"4.1":"y",
"4.2-4.3":"y",
"4.4":"y",
"4.4.3-4.4.4":"y",
"56":"y #1"
},
"bb":{
"7":"y",
"10":"y"
},
"op_mob":{
"10":"p",
"11":"y",
"11.1":"y",
"11.5":"y",
"12":"y",
"12.1":"y",
"37":"y"
},
"and_chr":{
"62":"y #1"
},
"and_ff":{
"57":"y #1"
},
"ie_mob":{
"10":"y",
"11":"y"
},
"and_uc":{
"11.4":"y"
},
"samsung":{
"4":"y",
"5":"y #1"
},
"and_qq":{
"1.2":"y #1"
},
"baidu":{
"7.12":"y #1"
}
},
"notes":"",
"notes_by_num":{
"1":"Only works on secure (https) servers"
},
"usage_perc_y":94.93,
"usage_perc_a":0,
"ucprefix":false,
"parent":"",
"keywords":"",
"ie_id":"geolocation",
"chrome_id":"6348855016685568",
"firefox_id":"",
"webkit_id":"",
"shown":true
}
|
JSON
|
observLmer2 <-
function(observ,dam,sire,response,position=NULL,block=NULL,ml=F) {
if (missing(observ)) stop("Need the observed data frame")
if (missing(dam)) stop("Need the dam column name")
if (missing(sire)) stop("Need the sire column name")
if (missing(response)) stop("Need the response column name")
print(time1<- Sys.time()) #start time
#Model: no position and no block
if (is.null(position) && is.null(block)) {
if (ml == F) {
m<- lmer(formula= noquote(paste(response,"~ (1|",dam,") + (1|",sire,") + (1|",dam,":",sire,")",sep="")),data=observ) }
if (ml == T) {
m<- lmer(formula= noquote(paste(response,"~ (1|",dam,") + (1|",sire,") + (1|",dam,":",sire,")",sep="")),data=observ, REML=F) } }
#Model: YES position and no block
if (!is.null(position) && is.null(block)) {
if (ml == F) {
m<- lmer(formula= noquote(paste(response,"~ (1|",dam,") + (1|",sire,") + (1|",dam,":",sire,")+ (1|",position,")",sep="")),data=observ) }
if (ml == T) {
m<- lmer(formula= noquote(paste(response,"~ (1|",dam,") + (1|",sire,") + (1|",dam,":",sire,")+ (1|",position,")",sep="")),data=observ, REML=F) } }
#Model: no position and YES block
if (is.null(position) && !is.null(block)) {
if (ml == F) {
m<- lmer(formula= noquote(paste(response,"~ (1|",dam,") + (1|",sire,") + (1|",dam,":",sire,")+ (1|",block,")",sep="")),data=observ) }
if (ml == T) {
m<- lmer(formula= noquote(paste(response,"~ (1|",dam,") + (1|",sire,") + (1|",dam,":",sire,")+ (1|",block,")",sep="")),data=observ, REML=F) } }
#Model: YES position and YES block
if (!is.null(position) && !is.null(block)) {
if (ml == F) {
m<- lmer(formula= noquote(paste(response,"~ (1|",dam,") + (1|",sire,") + (1|",dam,":",sire,")+ (1|",position,") + (1|",block,")",sep="")),data=observ) }
if (ml == T) {
m<- lmer(formula= noquote(paste(response,"~ (1|",dam,") + (1|",sire,") + (1|",dam,":",sire,")+ (1|",position,") + (1|",block,")",sep="")),data=observ, REML=F) } }
#Components
n<- length(as.data.frame(VarCorr(m))$vcov)- 1 #minus residual
tot<- sum(colSums(diag(VarCorr(m))),attr(VarCorr(m),"sc")^2)
comp<- data.frame(effect= as.data.frame(VarCorr(m))$grp[1:n],variance= colSums(diag(VarCorr(m)))[1:n])
other<- data.frame(component= c("Residual","Total"), variance=c(attr(VarCorr(m),"sc")^2,tot))
comp$percent<- 100*comp$variance/tot; other$percent<- 100*other$variance/tot
#Likelihood ratio test: random effects
comp$d.AIC<- NA;comp$d.BIC<- NA;comp$Chi.sq<- NA;comp$p.value<- NA
p_rand<- randLmer(model=m,observ=observ) #internal function
#random term matching
r_term0<- sapply(findbars(formula(m)),function(x) paste0("(", deparse(x), ")"))
r_term1<- unlist(strsplit(sapply(findbars(formula(m)),function(x) deparse(x))," | ")) #split around | text
r_term<- r_term1[seq(3,length(r_term1),3)] #every third matches comp
for (i in 1:length(r_term0)) {
comp[,c(4:7)][which(comp$effect==r_term[i]),]<- p_rand[,c(2:5)][which(p_rand$term==r_term0[i]),] }
#Maternal, additive, nonadditive
temp<- comp #to not override column names
temp$effect<- factor(temp$effect)
levels(temp$effect)[which(levels(temp$effect)==dam)]<- "dam"
levels(temp$effect)[which(levels(temp$effect)==sire)]<- "sire"
levels(temp$effect)[which(levels(temp$effect)==noquote(paste(dam,":",sire,sep="")))]<- "dam:sire"
comp2<- data.frame(component=c("additive","nonadd","maternal"),variance=0,percent=0)
comp2$variance<- c(4*temp$variance[which(temp$effect=="sire")],4*temp$variance[which(temp$effect=="dam:sire")],
temp$variance[which(temp$effect=="dam")]- temp$variance[which(temp$effect=="sire")])
comp2$percent<- 100*comp2$variance/tot
#object
var_obj<- list(random=comp,other=other,calculation=comp2)
#Finish
print(Sys.time()- time1) #end time, keep no quote in one line
invisible(var_obj) #after time
}
|
R
|
//
// MyCourseTests.swift
// MyCourseTests
//
// Created by Hugh on 14-8-26.
// Copyright (c) 2014年 Hugh. All rights reserved.
//
import UIKit
import XCTest
class MyCourseTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
XCTAssert(true, "Pass")
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measureBlock() {
// Put the code you want to measure the time of here.
}
}
}
|
Swift
|
//
// ViewController.h
// PXRuler
//
// Created by YOUGUOLEI on 2018/9/26.
// Copyright © 2018 YOUGUOLEI. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
Objective-C++
|
package source
const (
name = "GraphQL"
)
type Source struct {
Body []byte
Name string
}
func NewSource(s *Source) *Source {
if s == nil {
s = &Source{Name: name}
}
if s.Name == "" {
s.Name = name
}
return s
}
|
Go
|
FROM ubuntu:24.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
RUN apt-get update -yqq > /dev/null && \
apt-get install -yqq php8.4-cli php8.4-pgsql php8.4-xml > /dev/null
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
RUN apt-get install -y php-pear php8.4-dev libevent-dev git > /dev/null
RUN pecl install event-3.1.3 > /dev/null && echo "extension=event.so" > /etc/php/8.4/cli/conf.d/event.ini
COPY php.ini /etc/php/8.4/cli/php.ini
ADD ./ /mark
WORKDIR /mark
RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
RUN sed -i "s|opcache.jit=off|opcache.jit=tracing|g" /etc/php/8.4/cli/conf.d/10-opcache.ini
EXPOSE 8080
CMD php /mark/start.php start
|
Dockerfile
|
use std::iter;
use either::Either;
use hir::{HasCrate, Module, ModuleDef, Name, Variant};
use ide_db::{
FxHashSet, RootDatabase,
defs::Definition,
helpers::mod_path_to_ast,
imports::insert_use::{ImportScope, InsertUseConfig, insert_use},
path_transform::PathTransform,
search::FileReference,
};
use itertools::Itertools;
use syntax::{
Edition, SyntaxElement,
SyntaxKind::*,
SyntaxNode, T,
ast::{
self, AstNode, HasAttrs, HasGenericParams, HasName, HasVisibility, edit::IndentLevel,
edit_in_place::Indent, make,
},
match_ast, ted,
};
use crate::{AssistContext, AssistId, Assists, assist_context::SourceChangeBuilder};
// Assist: extract_struct_from_enum_variant
//
// Extracts a struct from enum variant.
//
// ```
// enum A { $0One(u32, u32) }
// ```
// ->
// ```
// struct One(u32, u32);
//
// enum A { One(One) }
// ```
pub(crate) fn extract_struct_from_enum_variant(
acc: &mut Assists,
ctx: &AssistContext<'_>,
) -> Option<()> {
let variant = ctx.find_node_at_offset::<ast::Variant>()?;
let field_list = extract_field_list_if_applicable(&variant)?;
let variant_name = variant.name()?;
let variant_hir = ctx.sema.to_def(&variant)?;
if existing_definition(ctx.db(), &variant_name, &variant_hir) {
cov_mark::hit!(test_extract_enum_not_applicable_if_struct_exists);
return None;
}
let enum_ast = variant.parent_enum();
let enum_hir = ctx.sema.to_def(&enum_ast)?;
let target = variant.syntax().text_range();
acc.add(
AssistId::refactor_rewrite("extract_struct_from_enum_variant"),
"Extract struct from enum variant",
target,
|builder| {
let edition = enum_hir.krate(ctx.db()).edition(ctx.db());
let variant_hir_name = variant_hir.name(ctx.db());
let enum_module_def = ModuleDef::from(enum_hir);
let usages = Definition::Variant(variant_hir).usages(&ctx.sema).all();
let mut visited_modules_set = FxHashSet::default();
let current_module = enum_hir.module(ctx.db());
visited_modules_set.insert(current_module);
// record file references of the file the def resides in, we only want to swap to the edited file in the builder once
let mut def_file_references = None;
for (file_id, references) in usages {
if file_id == ctx.file_id() {
def_file_references = Some(references);
continue;
}
builder.edit_file(file_id.file_id(ctx.db()));
let processed = process_references(
ctx,
builder,
&mut visited_modules_set,
&enum_module_def,
&variant_hir_name,
references,
);
processed.into_iter().for_each(|(path, node, import)| {
apply_references(ctx.config.insert_use, path, node, import, edition)
});
}
builder.edit_file(ctx.vfs_file_id());
let variant = builder.make_mut(variant.clone());
if let Some(references) = def_file_references {
let processed = process_references(
ctx,
builder,
&mut visited_modules_set,
&enum_module_def,
&variant_hir_name,
references,
);
processed.into_iter().for_each(|(path, node, import)| {
apply_references(ctx.config.insert_use, path, node, import, edition)
});
}
let generic_params = enum_ast
.generic_param_list()
.and_then(|known_generics| extract_generic_params(&known_generics, &field_list));
let generics = generic_params.as_ref().map(|generics| generics.clone_for_update());
// resolve GenericArg in field_list to actual type
let field_list = field_list.clone_for_update();
if let Some((target_scope, source_scope)) =
ctx.sema.scope(enum_ast.syntax()).zip(ctx.sema.scope(field_list.syntax()))
{
PathTransform::generic_transformation(&target_scope, &source_scope)
.apply(field_list.syntax());
}
let def =
create_struct_def(variant_name.clone(), &variant, &field_list, generics, &enum_ast);
let enum_ast = variant.parent_enum();
let indent = enum_ast.indent_level();
def.reindent_to(indent);
ted::insert_all(
ted::Position::before(enum_ast.syntax()),
vec![
def.syntax().clone().into(),
make::tokens::whitespace(&format!("\n\n{indent}")).into(),
],
);
update_variant(&variant, generic_params.map(|g| g.clone_for_update()));
},
)
}
fn extract_field_list_if_applicable(
variant: &ast::Variant,
) -> Option<Either<ast::RecordFieldList, ast::TupleFieldList>> {
match variant.kind() {
ast::StructKind::Record(field_list) if field_list.fields().next().is_some() => {
Some(Either::Left(field_list))
}
ast::StructKind::Tuple(field_list) if field_list.fields().count() > 1 => {
Some(Either::Right(field_list))
}
_ => None,
}
}
fn existing_definition(db: &RootDatabase, variant_name: &ast::Name, variant: &Variant) -> bool {
variant
.parent_enum(db)
.module(db)
.scope(db, None)
.into_iter()
.filter(|(_, def)| match def {
// only check type-namespace
hir::ScopeDef::ModuleDef(def) => matches!(
def,
ModuleDef::Module(_)
| ModuleDef::Adt(_)
| ModuleDef::Variant(_)
| ModuleDef::Trait(_)
| ModuleDef::TypeAlias(_)
| ModuleDef::BuiltinType(_)
),
_ => false,
})
.any(|(name, _)| name.as_str() == variant_name.text().trim_start_matches("r#"))
}
fn extract_generic_params(
known_generics: &ast::GenericParamList,
field_list: &Either<ast::RecordFieldList, ast::TupleFieldList>,
) -> Option<ast::GenericParamList> {
let mut generics = known_generics.generic_params().map(|param| (param, false)).collect_vec();
let tagged_one = match field_list {
Either::Left(field_list) => field_list
.fields()
.filter_map(|f| f.ty())
.fold(false, |tagged, ty| tag_generics_in_variant(&ty, &mut generics) || tagged),
Either::Right(field_list) => field_list
.fields()
.filter_map(|f| f.ty())
.fold(false, |tagged, ty| tag_generics_in_variant(&ty, &mut generics) || tagged),
};
let generics = generics.into_iter().filter_map(|(param, tag)| tag.then_some(param));
tagged_one.then(|| make::generic_param_list(generics))
}
fn tag_generics_in_variant(ty: &ast::Type, generics: &mut [(ast::GenericParam, bool)]) -> bool {
let mut tagged_one = false;
for token in ty.syntax().descendants_with_tokens().filter_map(SyntaxElement::into_token) {
for (param, tag) in generics.iter_mut().filter(|(_, tag)| !tag) {
match param {
ast::GenericParam::LifetimeParam(lt)
if matches!(token.kind(), T![lifetime_ident]) =>
{
if let Some(lt) = lt.lifetime() {
if lt.text().as_str() == token.text() {
*tag = true;
tagged_one = true;
break;
}
}
}
param if matches!(token.kind(), T![ident]) => {
if match param {
ast::GenericParam::ConstParam(konst) => konst
.name()
.map(|name| name.text().as_str() == token.text())
.unwrap_or_default(),
ast::GenericParam::TypeParam(ty) => ty
.name()
.map(|name| name.text().as_str() == token.text())
.unwrap_or_default(),
ast::GenericParam::LifetimeParam(lt) => lt
.lifetime()
.map(|lt| lt.text().as_str() == token.text())
.unwrap_or_default(),
} {
*tag = true;
tagged_one = true;
break;
}
}
_ => (),
}
}
}
tagged_one
}
fn create_struct_def(
name: ast::Name,
variant: &ast::Variant,
field_list: &Either<ast::RecordFieldList, ast::TupleFieldList>,
generics: Option<ast::GenericParamList>,
enum_: &ast::Enum,
) -> ast::Struct {
let enum_vis = enum_.visibility();
let insert_vis = |node: &'_ SyntaxNode, vis: &'_ SyntaxNode| {
let vis = vis.clone_for_update();
ted::insert(ted::Position::before(node), vis);
};
// for fields without any existing visibility, use visibility of enum
let field_list: ast::FieldList = match field_list {
Either::Left(field_list) => {
if let Some(vis) = &enum_vis {
field_list
.fields()
.filter(|field| field.visibility().is_none())
.filter_map(|field| field.name())
.for_each(|it| insert_vis(it.syntax(), vis.syntax()));
}
field_list.clone().into()
}
Either::Right(field_list) => {
if let Some(vis) = &enum_vis {
field_list
.fields()
.filter(|field| field.visibility().is_none())
.filter_map(|field| field.ty())
.for_each(|it| insert_vis(it.syntax(), vis.syntax()));
}
field_list.clone().into()
}
};
field_list.reindent_to(IndentLevel::single());
let strukt = make::struct_(enum_vis, name, generics, field_list).clone_for_update();
// take comments from variant
ted::insert_all(
ted::Position::first_child_of(strukt.syntax()),
take_all_comments(variant.syntax()),
);
// copy attributes from enum
ted::insert_all(
ted::Position::first_child_of(strukt.syntax()),
enum_
.attrs()
.flat_map(|it| {
vec![it.syntax().clone_for_update().into(), make::tokens::single_newline().into()]
})
.collect(),
);
strukt
}
fn update_variant(variant: &ast::Variant, generics: Option<ast::GenericParamList>) -> Option<()> {
let name = variant.name()?;
let generic_args = generics
.filter(|generics| generics.generic_params().count() > 0)
.map(|generics| generics.to_generic_args());
// FIXME: replace with a `ast::make` constructor
let ty = match generic_args {
Some(generic_args) => make::ty(&format!("{name}{generic_args}")),
None => make::ty(&name.text()),
};
// change from a record to a tuple field list
let tuple_field = make::tuple_field(None, ty);
let field_list = make::tuple_field_list(iter::once(tuple_field)).clone_for_update();
ted::replace(variant.field_list()?.syntax(), field_list.syntax());
// remove any ws after the name
if let Some(ws) = name
.syntax()
.siblings_with_tokens(syntax::Direction::Next)
.find_map(|tok| tok.into_token().filter(|tok| tok.kind() == WHITESPACE))
{
ted::remove(SyntaxElement::Token(ws));
}
Some(())
}
// Note: this also detaches whitespace after comments,
// since `SyntaxNode::splice_children` (and by extension `ted::insert_all_raw`)
// detaches nodes. If we only took the comments, we'd leave behind the old whitespace.
fn take_all_comments(node: &SyntaxNode) -> Vec<SyntaxElement> {
let mut remove_next_ws = false;
node.children_with_tokens()
.filter_map(move |child| match child.kind() {
COMMENT => {
remove_next_ws = true;
child.detach();
Some(child)
}
WHITESPACE if remove_next_ws => {
remove_next_ws = false;
child.detach();
Some(make::tokens::single_newline().into())
}
_ => {
remove_next_ws = false;
None
}
})
.collect()
}
fn apply_references(
insert_use_cfg: InsertUseConfig,
segment: ast::PathSegment,
node: SyntaxNode,
import: Option<(ImportScope, hir::ModPath)>,
edition: Edition,
) {
if let Some((scope, path)) = import {
insert_use(&scope, mod_path_to_ast(&path, edition), &insert_use_cfg);
}
// deep clone to prevent cycle
let path = make::path_from_segments(iter::once(segment.clone_subtree()), false);
ted::insert_raw(ted::Position::before(segment.syntax()), path.clone_for_update().syntax());
ted::insert_raw(ted::Position::before(segment.syntax()), make::token(T!['(']));
ted::insert_raw(ted::Position::after(&node), make::token(T![')']));
}
fn process_references(
ctx: &AssistContext<'_>,
builder: &mut SourceChangeBuilder,
visited_modules: &mut FxHashSet<Module>,
enum_module_def: &ModuleDef,
variant_hir_name: &Name,
refs: Vec<FileReference>,
) -> Vec<(ast::PathSegment, SyntaxNode, Option<(ImportScope, hir::ModPath)>)> {
// we have to recollect here eagerly as we are about to edit the tree we need to calculate the changes
// and corresponding nodes up front
refs.into_iter()
.flat_map(|reference| {
let (segment, scope_node, module) = reference_to_node(&ctx.sema, reference)?;
let segment = builder.make_mut(segment);
let scope_node = builder.make_syntax_mut(scope_node);
if !visited_modules.contains(&module) {
let mod_path = module.find_use_path(
ctx.sema.db,
*enum_module_def,
ctx.config.insert_use.prefix_kind,
ctx.config.import_path_config(),
);
if let Some(mut mod_path) = mod_path {
mod_path.pop_segment();
mod_path.push_segment(variant_hir_name.clone());
let scope = ImportScope::find_insert_use_container(&scope_node, &ctx.sema)?;
visited_modules.insert(module);
return Some((segment, scope_node, Some((scope, mod_path))));
}
}
Some((segment, scope_node, None))
})
.collect()
}
fn reference_to_node(
sema: &hir::Semantics<'_, RootDatabase>,
reference: FileReference,
) -> Option<(ast::PathSegment, SyntaxNode, hir::Module)> {
let segment =
reference.name.as_name_ref()?.syntax().parent().and_then(ast::PathSegment::cast)?;
// filter out the reference in marco
let segment_range = segment.syntax().text_range();
if segment_range != reference.range {
return None;
}
let parent = segment.parent_path().syntax().parent()?;
let expr_or_pat = match_ast! {
match parent {
ast::PathExpr(_it) => parent.parent()?,
ast::RecordExpr(_it) => parent,
ast::TupleStructPat(_it) => parent,
ast::RecordPat(_it) => parent,
_ => return None,
}
};
let module = sema.scope(&expr_or_pat)?.module();
Some((segment, expr_or_pat, module))
}
#[cfg(test)]
mod tests {
use crate::tests::{check_assist, check_assist_not_applicable};
use super::*;
#[test]
fn test_with_marco() {
check_assist(
extract_struct_from_enum_variant,
r#"
macro_rules! foo {
($x:expr) => {
$x
};
}
enum TheEnum {
TheVariant$0 { the_field: u8 },
}
fn main() {
foo![TheEnum::TheVariant { the_field: 42 }];
}
"#,
r#"
macro_rules! foo {
($x:expr) => {
$x
};
}
struct TheVariant{ the_field: u8 }
enum TheEnum {
TheVariant(TheVariant),
}
fn main() {
foo![TheEnum::TheVariant { the_field: 42 }];
}
"#,
);
}
#[test]
fn issue_16197() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum Foo {
Bar $0{ node: Box<Self> },
Nil,
}
"#,
r#"
struct Bar{ node: Box<Foo> }
enum Foo {
Bar(Bar),
Nil,
}
"#,
);
check_assist(
extract_struct_from_enum_variant,
r#"
enum Foo {
Bar $0{ node: Box<Self>, a: Arc<Box<Self>> },
Nil,
}
"#,
r#"
struct Bar{ node: Box<Foo>, a: Arc<Box<Foo>> }
enum Foo {
Bar(Bar),
Nil,
}
"#,
);
check_assist(
extract_struct_from_enum_variant,
r#"
enum Foo {
Nil(Box$0<Self>, Arc<Box<Self>>),
}
"#,
r#"
struct Nil(Box<Foo>, Arc<Box<Foo>>);
enum Foo {
Nil(Nil),
}
"#,
);
}
#[test]
fn test_extract_struct_several_fields_tuple() {
check_assist(
extract_struct_from_enum_variant,
"enum A { $0One(u32, u32) }",
r#"struct One(u32, u32);
enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_several_fields_named() {
check_assist(
extract_struct_from_enum_variant,
"enum A { $0One { foo: u32, bar: u32 } }",
r#"struct One{ foo: u32, bar: u32 }
enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_one_field_named() {
check_assist(
extract_struct_from_enum_variant,
"enum A { $0One { foo: u32 } }",
r#"struct One{ foo: u32 }
enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_carries_over_generics() {
check_assist(
extract_struct_from_enum_variant,
r"enum En<T> { Var { a: T$0 } }",
r#"struct Var<T>{ a: T }
enum En<T> { Var(Var<T>) }"#,
);
}
#[test]
fn test_extract_struct_carries_over_attributes() {
check_assist(
extract_struct_from_enum_variant,
r#"
#[derive(Debug)]
#[derive(Clone)]
enum Enum { Variant{ field: u32$0 } }"#,
r#"
#[derive(Debug)]
#[derive(Clone)]
struct Variant{ field: u32 }
#[derive(Debug)]
#[derive(Clone)]
enum Enum { Variant(Variant) }"#,
);
}
#[test]
fn test_extract_struct_indent_to_parent_enum() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum Enum {
Variant {
field: u32$0
}
}"#,
r#"
struct Variant{
field: u32
}
enum Enum {
Variant(Variant)
}"#,
);
}
#[test]
fn test_extract_struct_indent_to_parent_enum_in_mod() {
check_assist(
extract_struct_from_enum_variant,
r#"
mod indenting {
enum Enum {
Variant {
field: u32$0
}
}
}"#,
r#"
mod indenting {
struct Variant{
field: u32
}
enum Enum {
Variant(Variant)
}
}"#,
);
}
#[test]
fn test_extract_struct_keep_comments_and_attrs_one_field_named() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum A {
$0One {
// leading comment
/// doc comment
#[an_attr]
foo: u32
// trailing comment
}
}"#,
r#"
struct One{
// leading comment
/// doc comment
#[an_attr]
foo: u32
// trailing comment
}
enum A {
One(One)
}"#,
);
}
#[test]
fn test_extract_struct_keep_comments_and_attrs_several_fields_named() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum A {
$0One {
// comment
/// doc
#[attr]
foo: u32,
// comment
#[attr]
/// doc
bar: u32
}
}"#,
r#"
struct One{
// comment
/// doc
#[attr]
foo: u32,
// comment
#[attr]
/// doc
bar: u32
}
enum A {
One(One)
}"#,
);
}
#[test]
fn test_extract_struct_keep_comments_and_attrs_several_fields_tuple() {
check_assist(
extract_struct_from_enum_variant,
"enum A { $0One(/* comment */ #[attr] u32, /* another */ u32 /* tail */) }",
r#"
struct One(/* comment */ #[attr] u32, /* another */ u32 /* tail */);
enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_move_struct_variant_comments() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum A {
/* comment */
// other
/// comment
#[attr]
$0One {
a: u32
}
}"#,
r#"
/* comment */
// other
/// comment
struct One{
a: u32
}
enum A {
#[attr]
One(One)
}"#,
);
}
#[test]
fn test_extract_struct_move_tuple_variant_comments() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum A {
/* comment */
// other
/// comment
#[attr]
$0One(u32, u32)
}"#,
r#"
/* comment */
// other
/// comment
struct One(u32, u32);
enum A {
#[attr]
One(One)
}"#,
);
}
#[test]
fn test_extract_struct_keep_existing_visibility_named() {
check_assist(
extract_struct_from_enum_variant,
"enum A { $0One{ a: u32, pub(crate) b: u32, pub(super) c: u32, d: u32 } }",
r#"
struct One{ a: u32, pub(crate) b: u32, pub(super) c: u32, d: u32 }
enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_keep_existing_visibility_tuple() {
check_assist(
extract_struct_from_enum_variant,
"enum A { $0One(u32, pub(crate) u32, pub(super) u32, u32) }",
r#"
struct One(u32, pub(crate) u32, pub(super) u32, u32);
enum A { One(One) }"#,
);
}
#[test]
fn test_extract_enum_variant_name_value_namespace() {
check_assist(
extract_struct_from_enum_variant,
r#"const One: () = ();
enum A { $0One(u32, u32) }"#,
r#"const One: () = ();
struct One(u32, u32);
enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_no_visibility() {
check_assist(
extract_struct_from_enum_variant,
"enum A { $0One(u32, u32) }",
r#"
struct One(u32, u32);
enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_pub_visibility() {
check_assist(
extract_struct_from_enum_variant,
"pub enum A { $0One(u32, u32) }",
r#"
pub struct One(pub u32, pub u32);
pub enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_pub_in_mod_visibility() {
check_assist(
extract_struct_from_enum_variant,
"pub(in something) enum A { $0One{ a: u32, b: u32 } }",
r#"
pub(in something) struct One{ pub(in something) a: u32, pub(in something) b: u32 }
pub(in something) enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_pub_crate_visibility() {
check_assist(
extract_struct_from_enum_variant,
"pub(crate) enum A { $0One{ a: u32, b: u32, c: u32 } }",
r#"
pub(crate) struct One{ pub(crate) a: u32, pub(crate) b: u32, pub(crate) c: u32 }
pub(crate) enum A { One(One) }"#,
);
}
#[test]
fn test_extract_struct_with_complex_imports() {
check_assist(
extract_struct_from_enum_variant,
r#"mod my_mod {
fn another_fn() {
let m = my_other_mod::MyEnum::MyField(1, 1);
}
pub mod my_other_mod {
fn another_fn() {
let m = MyEnum::MyField(1, 1);
}
pub enum MyEnum {
$0MyField(u8, u8),
}
}
}
fn another_fn() {
let m = my_mod::my_other_mod::MyEnum::MyField(1, 1);
}"#,
r#"use my_mod::my_other_mod::MyField;
mod my_mod {
use my_other_mod::MyField;
fn another_fn() {
let m = my_other_mod::MyEnum::MyField(MyField(1, 1));
}
pub mod my_other_mod {
fn another_fn() {
let m = MyEnum::MyField(MyField(1, 1));
}
pub struct MyField(pub u8, pub u8);
pub enum MyEnum {
MyField(MyField),
}
}
}
fn another_fn() {
let m = my_mod::my_other_mod::MyEnum::MyField(MyField(1, 1));
}"#,
);
}
#[test]
fn extract_record_fix_references() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum E {
$0V { i: i32, j: i32 }
}
fn f() {
let E::V { i, j } = E::V { i: 9, j: 2 };
}
"#,
r#"
struct V{ i: i32, j: i32 }
enum E {
V(V)
}
fn f() {
let E::V(V { i, j }) = E::V(V { i: 9, j: 2 });
}
"#,
)
}
#[test]
fn extract_record_fix_references2() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum E {
$0V(i32, i32)
}
fn f() {
let E::V(i, j) = E::V(9, 2);
}
"#,
r#"
struct V(i32, i32);
enum E {
V(V)
}
fn f() {
let E::V(V(i, j)) = E::V(V(9, 2));
}
"#,
)
}
#[test]
fn test_several_files() {
check_assist(
extract_struct_from_enum_variant,
r#"
//- /main.rs
enum E {
$0V(i32, i32)
}
mod foo;
//- /foo.rs
use crate::E;
fn f() {
let e = E::V(9, 2);
}
"#,
r#"
//- /main.rs
struct V(i32, i32);
enum E {
V(V)
}
mod foo;
//- /foo.rs
use crate::{E, V};
fn f() {
let e = E::V(V(9, 2));
}
"#,
)
}
#[test]
fn test_several_files_record() {
check_assist(
extract_struct_from_enum_variant,
r#"
//- /main.rs
enum E {
$0V { i: i32, j: i32 }
}
mod foo;
//- /foo.rs
use crate::E;
fn f() {
let e = E::V { i: 9, j: 2 };
}
"#,
r#"
//- /main.rs
struct V{ i: i32, j: i32 }
enum E {
V(V)
}
mod foo;
//- /foo.rs
use crate::{E, V};
fn f() {
let e = E::V(V { i: 9, j: 2 });
}
"#,
)
}
#[test]
fn test_extract_struct_record_nested_call_exp() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum A { $0One { a: u32, b: u32 } }
struct B(A);
fn foo() {
let _ = B(A::One { a: 1, b: 2 });
}
"#,
r#"
struct One{ a: u32, b: u32 }
enum A { One(One) }
struct B(A);
fn foo() {
let _ = B(A::One(One { a: 1, b: 2 }));
}
"#,
);
}
#[test]
fn test_extract_enum_not_applicable_for_element_with_no_fields() {
check_assist_not_applicable(extract_struct_from_enum_variant, r#"enum A { $0One }"#);
}
#[test]
fn test_extract_enum_not_applicable_if_struct_exists() {
cov_mark::check!(test_extract_enum_not_applicable_if_struct_exists);
check_assist_not_applicable(
extract_struct_from_enum_variant,
r#"
struct One;
enum A { $0One(u8, u32) }
"#,
);
}
#[test]
fn test_extract_not_applicable_one_field() {
check_assist_not_applicable(extract_struct_from_enum_variant, r"enum A { $0One(u32) }");
}
#[test]
fn test_extract_not_applicable_no_field_tuple() {
check_assist_not_applicable(extract_struct_from_enum_variant, r"enum A { $0None() }");
}
#[test]
fn test_extract_not_applicable_no_field_named() {
check_assist_not_applicable(extract_struct_from_enum_variant, r"enum A { $0None {} }");
}
#[test]
fn test_extract_struct_only_copies_needed_generics() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum X<'a, 'b, 'x> {
$0A { a: &'a &'x mut () },
B { b: &'b () },
C { c: () },
}
"#,
r#"
struct A<'a, 'x>{ a: &'a &'x mut () }
enum X<'a, 'b, 'x> {
A(A<'a, 'x>),
B { b: &'b () },
C { c: () },
}
"#,
);
}
#[test]
fn test_extract_struct_with_lifetime_type_const() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum X<'b, T, V, const C: usize> {
$0A { a: T, b: X<'b>, c: [u8; C] },
D { d: V },
}
"#,
r#"
struct A<'b, T, const C: usize>{ a: T, b: X<'b>, c: [u8; C] }
enum X<'b, T, V, const C: usize> {
A(A<'b, T, C>),
D { d: V },
}
"#,
);
}
#[test]
fn test_extract_struct_without_generics() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum X<'a, 'b> {
A { a: &'a () },
B { b: &'b () },
$0C { c: () },
}
"#,
r#"
struct C{ c: () }
enum X<'a, 'b> {
A { a: &'a () },
B { b: &'b () },
C(C),
}
"#,
);
}
#[test]
fn test_extract_struct_keeps_trait_bounds() {
check_assist(
extract_struct_from_enum_variant,
r#"
enum En<T: TraitT, V: TraitV> {
$0A { a: T },
B { b: V },
}
"#,
r#"
struct A<T: TraitT>{ a: T }
enum En<T: TraitT, V: TraitV> {
A(A<T>),
B { b: V },
}
"#,
);
}
}
|
RenderScript
|
!WRF:model_layer:physics
!
!
!
!
!
!
!
module module_bl_ysu
contains
!
!
!-------------------------------------------------------------------
!
subroutine ysu(u3d,v3d,th3d,t3d,qv3d,qc3d,qi3d,p3d,p3di,pi3d, &
rublten,rvblten,rthblten, &
rqvblten,rqcblten,rqiblten,flag_qi, &
cp,g,rovcp,rd,rovg,ep1,ep2,karman,xlv,rv, &
dz8w,psfc, &
znu,znw,mut,p_top, &
znt,ust,hpbl,psim,psih, &
xland,hfx,qfx,wspd,br, &
dt,kpbl2d, &
exch_h, &
u10,v10, &
ctopo,ctopo2, &
ids,ide, jds,jde, kds,kde, &
ims,ime, jms,jme, kms,kme, &
its,ite, jts,jte, kts,kte, &
!optional
regime &
#if defined(mpas)
!MPAS specific optional arguments for additional diagnostics:
,rho,kzhout,kzmout,kzqout &
#endif
)
!-------------------------------------------------------------------
implicit none
!-------------------------------------------------------------------
!-- u3d 3d u-velocity interpolated to theta points (m/s)
!-- v3d 3d v-velocity interpolated to theta points (m/s)
!-- th3d 3d potential temperature (k)
!-- t3d temperature (k)
!-- qv3d 3d water vapor mixing ratio (kg/kg)
!-- qc3d 3d cloud mixing ratio (kg/kg)
!-- qi3d 3d ice mixing ratio (kg/kg)
! (note: if P_QI<PARAM_FIRST_SCALAR this should be zero filled)
!-- p3d 3d pressure (pa)
!-- p3di 3d pressure (pa) at interface level
!-- pi3d 3d exner function (dimensionless)
!-- rr3d 3d dry air density (kg/m^3)
!-- rublten u tendency due to
! pbl parameterization (m/s/s)
!-- rvblten v tendency due to
! pbl parameterization (m/s/s)
!-- rthblten theta tendency due to
! pbl parameterization (K/s)
!-- rqvblten qv tendency due to
! pbl parameterization (kg/kg/s)
!-- rqcblten qc tendency due to
! pbl parameterization (kg/kg/s)
!-- rqiblten qi tendency due to
! pbl parameterization (kg/kg/s)
!-- cp heat capacity at constant pressure for dry air (j/kg/k)
!-- g acceleration due to gravity (m/s^2)
!-- rovcp r/cp
!-- rd gas constant for dry air (j/kg/k)
!-- rovg r/g
!-- dz8w dz between full levels (m)
!-- xlv latent heat of vaporization (j/kg)
!-- rv gas constant for water vapor (j/kg/k)
!-- psfc pressure at the surface (pa)
!-- znt roughness length (m)
!-- ust u* in similarity theory (m/s)
!-- hpbl pbl height (m)
!-- psim similarity stability function for momentum
!-- psih similarity stability function for heat
!-- xland land mask (1 for land, 2 for water)
!-- hfx upward heat flux at the surface (w/m^2)
!-- qfx upward moisture flux at the surface (kg/m^2/s)
!-- wspd wind speed at lowest model level (m/s)
!-- u10 u-wind speed at 10 m (m/s)
!-- v10 v-wind speed at 10 m (m/s)
!-- br bulk richardson number in surface layer
!-- dt time step (s)
!-- rvovrd r_v divided by r_d (dimensionless)
!-- ep1 constant for virtual temperature (r_v/r_d - 1) (dimensionless)
!-- ep2 constant for specific humidity calculation
!-- karman von karman constant
!-- ids start index for i in domain
!-- ide end index for i in domain
!-- jds start index for j in domain
!-- jde end index for j in domain
!-- kds start index for k in domain
!-- kde end index for k in domain
!-- ims start index for i in memory
!-- ime end index for i in memory
!-- jms start index for j in memory
!-- jme end index for j in memory
!-- kms start index for k in memory
!-- kme end index for k in memory
!-- its start index for i in tile
!-- ite end index for i in tile
!-- jts start index for j in tile
!-- jte end index for j in tile
!-- kts start index for k in tile
!-- kte end index for k in tile
!-------------------------------------------------------------------
!
integer,parameter :: ndiff = 3
real,parameter :: rcl = 1.0
!
integer, intent(in ) :: ids,ide, jds,jde, kds,kde, &
ims,ime, jms,jme, kms,kme, &
its,ite, jts,jte, kts,kte
!
real, intent(in ) :: dt,cp,g,rovcp,rovg,rd,xlv,rv
!
real, intent(in ) :: ep1,ep2,karman
!
real, dimension( ims:ime, kms:kme, jms:jme ) , &
intent(in ) :: qv3d, &
qc3d, &
qi3d, &
p3d, &
pi3d, &
th3d, &
t3d, &
dz8w
real, dimension( ims:ime, kms:kme, jms:jme ) , &
intent(in ) :: p3di
!
real, dimension( ims:ime, kms:kme, jms:jme ) , &
intent(inout) :: rublten, &
rvblten, &
rthblten, &
rqvblten, &
rqcblten
!
real, dimension( ims:ime, kms:kme, jms:jme ) , &
intent(inout) :: exch_h
real, dimension( ims:ime, jms:jme ) , &
intent(inout) :: u10, &
v10
!
real, dimension( ims:ime, jms:jme ) , &
intent(in ) :: xland, &
hfx, &
qfx, &
br, &
psfc
real, dimension( ims:ime, jms:jme ) , &
intent(in ) :: &
psim, &
psih
real, dimension( ims:ime, jms:jme ) , &
intent(inout) :: znt, &
ust, &
hpbl, &
wspd
!
real, dimension( ims:ime, kms:kme, jms:jme ) , &
intent(in ) :: u3d, &
v3d
!
integer, dimension( ims:ime, jms:jme ) , &
intent(out ) :: kpbl2d
logical, intent(in) :: flag_qi
!optional
real, dimension( ims:ime, jms:jme ) , &
optional , &
intent(inout) :: regime
!
real, dimension( ims:ime, kms:kme, jms:jme ) , &
optional , &
intent(inout) :: rqiblten
!
real, dimension( kms:kme ) , &
optional , &
intent(in ) :: znu, &
znw
!
real, dimension( ims:ime, jms:jme ) , &
optional , &
intent(in ) :: mut
!
real, optional, intent(in ) :: p_top
!
real, dimension( ims:ime, jms:jme ) , &
optional , &
intent(in ) :: ctopo, &
ctopo2
!local
integer :: i,j,k
real, dimension( its:ite, kts:kte*ndiff ) :: rqvbl2dt, &
qv2d
real, dimension( its:ite, kts:kte ) :: pdh
real, dimension( its:ite, kts:kte+1 ) :: pdhi
real, dimension( its:ite ) :: &
dusfc, &
dvsfc, &
dtsfc, &
dqsfc
#if defined(mpas)
!MPAS specific optional arguments for additional diagnostics (Laura Fowler = 2013-03-06):
real,intent(in),dimension(ims:ime,kms:kme,jms:jme),optional:: rho
real:: rho_d
real,intent(out),dimension(ims:ime,kms:kme,jms:jme),optional:: kzhout,kzmout,kzqout
do j = jts,jte
do k = kts,kte
do i = its,ite
kzhout(i,k,j) = 0.
kzmout(i,k,j) = 0.
kzqout(i,k,j) = 0.
enddo
enddo
enddo
!MPAS specific end.
#endif
!
qv2d(:,:) = 0.0
do j = jts,jte
if(present(mut))then
! For ARW we will replace p and p8w with dry hydrostatic pressure
do k = kts,kte+1
do i = its,ite
if(k.le.kte)pdh(i,k) = mut(i,j)*znu(k) + p_top
pdhi(i,k) = mut(i,j)*znw(k) + p_top
enddo
enddo
elseif(present(rho)) then
203 format(1x,i4,1x,i2,10(1x,e15.8))
!For MPAS, we replace the hydrostatic pressures defined at theta and w points by
!the dry hydrostatic pressures (Laura D. Fowler):
k = kte+1
do i = its,ite
pdhi(i,k) = p3di(i,k,j)
enddo
do k = kte,kts,-1
do i = its,ite
rho_d = rho(i,k,j) / (1. + qv3d(i,k,j))
if(k.le.kte) pdhi(i,k) = pdhi(i,k+1) + g*rho_d*dz8w(i,k,j)
enddo
enddo
do k = kts,kte
do i = its,ite
pdh(i,k) = 0.5*(pdhi(i,k) + pdhi(i,k+1))
enddo
enddo
!MPAS specific end.
else
do k = kts,kte+1
do i = its,ite
if(k.le.kte)pdh(i,k) = p3d(i,k,j)
pdhi(i,k) = p3di(i,k,j)
enddo
enddo
endif
do k = kts,kte
do i = its,ite
qv2d(i,k) = qv3d(i,k,j)
qv2d(i,k+kte) = qc3d(i,k,j)
if(present(rqiblten)) qv2d(i,k+kte+kte) = qi3d(i,k,j)
enddo
enddo
!
call ysu2d(J=j,ux=u3d(ims,kms,j),vx=v3d(ims,kms,j) &
,tx=t3d(ims,kms,j) &
,qx=qv2d(its,kts) &
,p2d=pdh(its,kts),p2di=pdhi(its,kts) &
,pi2d=pi3d(ims,kms,j) &
,utnp=rublten(ims,kms,j),vtnp=rvblten(ims,kms,j) &
,ttnp=rthblten(ims,kms,j),qtnp=rqvbl2dt(its,kts),ndiff=ndiff &
,cp=cp,g=g,rovcp=rovcp,rd=rd,rovg=rovg &
,xlv=xlv,rv=rv &
,ep1=ep1,ep2=ep2,karman=karman &
,dz8w2d=dz8w(ims,kms,j) &
,psfcpa=psfc(ims,j),znt=znt(ims,j),ust=ust(ims,j) &
,hpbl=hpbl(ims,j) &
,regime=regime(ims,j),psim=psim(ims,j) &
,psih=psih(ims,j),xland=xland(ims,j) &
,hfx=hfx(ims,j),qfx=qfx(ims,j) &
,wspd=wspd(ims,j),br=br(ims,j) &
,dusfc=dusfc,dvsfc=dvsfc,dtsfc=dtsfc,dqsfc=dqsfc &
,dt=dt,rcl=1.0,kpbl1d=kpbl2d(ims,j) &
,exch_hx=exch_h(ims,kms,j) &
,u10=u10(ims,j),v10=v10(ims,j) &
#if defined(mpas)
!MPAS specific optional arguments for additional diagnostics:
,kzh=kzhout(ims,kms,j) &
,kzm=kzmout(ims,kms,j) &
,kzq=kzqout(ims,kms,j) &
#endif
#if ( ! NMM_CORE == 1 )
,ctopo=ctopo(ims,j),ctopo2=ctopo2(ims,j) &
#endif
,ids=ids,ide=ide, jds=jds,jde=jde, kds=kds,kde=kde &
,ims=ims,ime=ime, jms=jms,jme=jme, kms=kms,kme=kme &
,its=its,ite=ite, jts=jts,jte=jte, kts=kts,kte=kte )
!
do k = kts,kte
do i = its,ite
rthblten(i,k,j) = rthblten(i,k,j)/pi3d(i,k,j)
rqvblten(i,k,j) = rqvbl2dt(i,k)
rqcblten(i,k,j) = rqvbl2dt(i,k+kte)
if(present(rqiblten)) rqiblten(i,k,j) = rqvbl2dt(i,k+kte+kte)
enddo
enddo
enddo
!
end subroutine ysu
!
!-------------------------------------------------------------------
!
subroutine ysu2d(j,ux,vx,tx,qx,p2d,p2di,pi2d, &
utnp,vtnp,ttnp,qtnp,ndiff, &
cp,g,rovcp,rd,rovg,ep1,ep2,karman,xlv,rv, &
dz8w2d,psfcpa, &
znt,ust,hpbl,psim,psih, &
xland,hfx,qfx,wspd,br, &
dusfc,dvsfc,dtsfc,dqsfc, &
dt,rcl,kpbl1d, &
exch_hx, &
u10,v10, &
ctopo,ctopo2, &
ids,ide, jds,jde, kds,kde, &
ims,ime, jms,jme, kms,kme, &
its,ite, jts,jte, kts,kte, &
!optional
regime &
#if defined(mpas)
!MPAS specific optional arguments for additional diagnostics:
,kzh,kzm,kzq &
#endif
)
!-------------------------------------------------------------------
implicit none
!-------------------------------------------------------------------
!
! this code is a revised vertical diffusion package ("ysupbl")
! with a nonlocal turbulent mixing in the pbl after "mrfpbl".
! the ysupbl (hong et al. 2006) is based on the study of noh
! et al.(2003) and accumulated realism of the behavior of the
! troen and mahrt (1986) concept implemented by hong and pan(1996).
! the major ingredient of the ysupbl is the inclusion of an explicit
! treatment of the entrainment processes at the entrainment layer.
! this routine uses an implicit approach for vertical flux
! divergence and does not require "miter" timesteps.
! it includes vertical diffusion in the stable atmosphere
! and moist vertical diffusion in clouds.
!
! mrfpbl:
! coded by song-you hong (ncep), implemented by jimy dudhia (ncar)
! fall 1996
!
! ysupbl:
! coded by song-you hong (yonsei university) and implemented by
! song-you hong (yonsei university) and jimy dudhia (ncar)
! summer 2002
!
! further modifications :
! an enhanced stable layer mixing, april 2008
! ==> increase pbl height when sfc is stable (hong 2010)
! pressure-level diffusion, april 2009
! ==> negligible differences
! implicit forcing for momentum with clean up, july 2009
! ==> prevents model blowup when sfc layer is too low
! incresea of lamda, maximum (30, 0.1 x del z) feb 2010
! ==> prevents model blowup when delz is extremely large
! revised prandtl number at surface, peggy lemone, feb 2010
! ==> increase kh, decrease mixing due to counter-gradient term
! revised thermal, shin et al. mon. wea. rev. , songyou hong, aug 2011
! ==> reduce the thermal strength when z1 < 0.1 h
! revised prandtl number for free convection, dudhia, mar 2012
! ==> pr0 = 1 + bke (=0.272) when newtral, kh is reduced
! minimum kzo = 0.01, lo = min (30m,delz), hong, mar 2012
! ==> weaker mixing when stable, and les resolution in vertical
! gz1oz0 is removed, and phim phih are ln(z1/z0)-phim,h, hong, mar 2012
! ==> consider thermal z0 when differs from mechanical z0
! a bug fix in wscale computation in stable bl, sukanta basu, jun 2012
! ==> wscale becomes small with height, and less mixing in stable bl
! ==> ri = max(ri,rimin). limits the richardson number to -100 in
! unstable layers, following Hong et al. 2006.
! Laura D. Fowler (2013-04-18).
!
! references:
!
! hong (2010) quart. j. roy. met. soc
! hong, noh, and dudhia (2006), mon. wea. rev.
! hong and pan (1996), mon. wea. rev.
! noh, chun, hong, and raasch (2003), boundary layer met.
! troen and mahrt (1986), boundary layer met.
!
!-------------------------------------------------------------------
!
real,parameter :: xkzmin = 0.01,xkzmax = 1000.,rimin = -100.
real,parameter :: rlam = 150.,prmin = 0.25,prmax = 4.
! real,parameter :: rlam = 30.,prmin = 0.25,prmax = 4.
real,parameter :: brcr_ub = 0.0,brcr_sb = 0.25,cori = 1.e-4
real,parameter :: afac = 6.8,bfac = 6.8,pfac = 2.0,pfac_q = 2.0
real,parameter :: phifac = 8.,sfcfrac = 0.1
real,parameter :: d1 = 0.02, d2 = 0.05, d3 = 0.001
real,parameter :: h1 = 0.33333335, h2 = 0.6666667
real,parameter :: ckz = 0.001,zfmin = 1.e-8,aphi5 = 5.,aphi16 = 16.
real,parameter :: tmin=1.e-2
real,parameter :: gamcrt = 3.,gamcrq = 2.e-3
real,parameter :: xka = 2.4e-5
integer,parameter :: imvdif = 1
!
integer, intent(in ) :: ids,ide, jds,jde, kds,kde, &
ims,ime, jms,jme, kms,kme, &
its,ite, jts,jte, kts,kte, &
j,ndiff
!
real, intent(in ) :: dt,rcl,cp,g,rovcp,rovg,rd,xlv,rv
!
real, intent(in ) :: ep1,ep2,karman
!
real, dimension( ims:ime, kms:kme ), &
intent(in) :: dz8w2d, &
pi2d
!
real, dimension( ims:ime, kms:kme ) , &
intent(in ) :: tx
real, dimension( its:ite, kts:kte*ndiff ) , &
intent(in ) :: qx
!
real, dimension( ims:ime, kms:kme ) , &
intent(inout) :: utnp, &
vtnp, &
ttnp
real, dimension( its:ite, kts:kte*ndiff ) , &
intent(inout) :: qtnp
!
real, dimension( its:ite, kts:kte+1 ) , &
intent(in ) :: p2di
!
real, dimension( its:ite, kts:kte ) , &
intent(in ) :: p2d
!
!
real, dimension( ims:ime ) , &
intent(inout) :: ust, &
hpbl, &
znt
real, dimension( ims:ime ) , &
intent(in ) :: xland, &
hfx, &
qfx
!
real, dimension( ims:ime ), intent(inout) :: wspd
real, dimension( ims:ime ), intent(in ) :: br
!
real, dimension( ims:ime ), intent(in ) :: psim, &
psih
!
real, dimension( ims:ime ), intent(in ) :: psfcpa
integer, dimension( ims:ime ), intent(out ) :: kpbl1d
!
real, dimension( ims:ime, kms:kme ) , &
intent(in ) :: ux, &
vx
real, dimension( ims:ime ) , &
optional , &
intent(in ) :: ctopo, &
ctopo2
real, dimension( ims:ime ) , &
optional , &
intent(inout) :: regime
!
! local vars
!
real, dimension( its:ite ) :: hol
real, dimension( its:ite, kts:kte+1 ) :: zq
!
real, dimension( its:ite, kts:kte ) :: &
thx,thvx, &
del, &
dza, &
dzq, &
xkzo, &
za
!
real, dimension( its:ite ) :: &
rhox, &
govrth, &
zl1,thermal, &
wscale, &
hgamt,hgamq, &
brdn,brup, &
phim,phih, &
dusfc,dvsfc, &
dtsfc,dqsfc, &
prpbl, &
wspd1
!
real, dimension( its:ite, kts:kte ) :: xkzm,xkzh, &
f1,f2, &
r1,r2, &
ad,au, &
cu, &
al, &
xkzq, &
zfac
!
!jdf added exch_hx
real, dimension( ims:ime, kms:kme ) , &
intent(inout) :: exch_hx
!
real, dimension( ims:ime ) , &
intent(inout) :: u10, &
v10
real, dimension( its:ite ) :: &
brcr, &
sflux, &
brcr_sbro
!
real, dimension( its:ite, kts:kte, ndiff) :: r3,f3
integer, dimension( its:ite ) :: kpbl
!
logical, dimension( its:ite ) :: pblflg, &
sfcflg, &
stable
!
integer :: n,i,k,l,ic,is
integer :: klpbl, ktrace1, ktrace2, ktrace3
!
!
real :: dt2,rdt,spdk2,fm,fh,hol1,gamfac,vpert,prnum,prnum0
real :: ss,ri,qmean,tmean,alph,chi,zk,rl2,dk,sri
real :: brint,dtodsd,dtodsu,rdz,dsdzt,dsdzq,dsdz2,rlamdz
real :: utend,vtend,ttend,qtend
real :: dtstep,govrthv
real :: cont, conq, conw, conwrc
!
real, dimension( its:ite, kts:kte ) :: wscalek
real, dimension( its:ite ) :: delta
real, dimension( its:ite, kts:kte ) :: xkzml,xkzhl, &
zfacent,entfac
real, dimension( its:ite ) :: ust3, &
wstar3,wstar, &
hgamu,hgamv, &
wm2, we, &
bfxpbl, &
hfxpbl,qfxpbl, &
ufxpbl,vfxpbl, &
dthvx, &
zol1
real :: prnumfac,bfx0,hfx0,qfx0,delb,dux,dvx, &
dsdzu,dsdzv,wm3,dthx,dqx,wspd10,ross,tem1,dsig,tvcon,conpr, &
prfac,prfac2,phim8z
!
#if defined(mpas)
!MPAS specific begin (Laura Fowler - 2013-03-01):
real,intent(out),dimension(ims:ime,kms:kme),optional::kzh,kzm,kzq
!MPAS specific end.
#endif
!----------------------------------------------------------------------
!
klpbl = kte
!
cont=cp/g
conq=xlv/g
conw=1./g
conwrc = conw*sqrt(rcl)
conpr = bfac*karman*sfcfrac
!
! k-start index for tracer diffusion
!
ktrace1 = 0
ktrace2 = 0 + kte
ktrace3 = 0 + kte*2
!
do k = kts,kte
do i = its,ite
thx(i,k) = tx(i,k)/pi2d(i,k)
enddo
enddo
!
do k = kts,kte
do i = its,ite
tvcon = (1.+ep1*qx(i,k))
thvx(i,k) = thx(i,k)*tvcon
enddo
enddo
!
do i = its,ite
tvcon = (1.+ep1*qx(i,1))
rhox(i) = psfcpa(i)/(rd*tx(i,1)*tvcon)
govrth(i) = g/thx(i,1)
enddo
!
!-----compute the height of full- and half-sigma levels above ground
! level, and the layer thicknesses.
!
do i = its,ite
zq(i,1) = 0.
enddo
!
do k = kts,kte
do i = its,ite
zq(i,k+1) = dz8w2d(i,k)+zq(i,k)
enddo
enddo
!
do k = kts,kte
do i = its,ite
za(i,k) = 0.5*(zq(i,k)+zq(i,k+1))
dzq(i,k) = zq(i,k+1)-zq(i,k)
del(i,k) = p2di(i,k)-p2di(i,k+1)
enddo
enddo
!
do i = its,ite
dza(i,1) = za(i,1)
enddo
!
do k = kts+1,kte
do i = its,ite
dza(i,k) = za(i,k)-za(i,k-1)
enddo
enddo
!
!
!-----initialize vertical tendencies and
!
utnp(:,:) = 0.
vtnp(:,:) = 0.
ttnp(:,:) = 0.
qtnp(:,:) = 0.
!
do i = its,ite
wspd1(i) = sqrt(ux(i,1)*ux(i,1)+vx(i,1)*vx(i,1))+1.e-9
enddo
!
!---- compute vertical diffusion
!
! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
! compute preliminary variables
!
dtstep = dt
dt2 = 2.*dtstep
rdt = 1./dt2
!
do i = its,ite
bfxpbl(i) = 0.0
hfxpbl(i) = 0.0
qfxpbl(i) = 0.0
ufxpbl(i) = 0.0
vfxpbl(i) = 0.0
hgamu(i) = 0.0
hgamv(i) = 0.0
delta(i) = 0.0
enddo
!
!MPAS specific begin (Laura Fowler - 2013-03-01): Added initialization of local
!vertical diffusion coefficients:
if(present(kzh) .and. present(kzm) .and. present(kzq)) then
do k = kts,kte
do i = its,ite
xkzh(i,k) = 0.0
xkzm(i,k) = 0.0
xkzhl(i,k) = 0.0
xkzml(i,k) = 0.0
enddo
enddo
endif
!MPAS specific end.
!
do k = kts,klpbl
do i = its,ite
wscalek(i,k) = 0.0
enddo
enddo
!
do k = kts,klpbl
do i = its,ite
zfac(i,k) = 0.0
enddo
enddo
do k = kts,klpbl-1
do i = its,ite
xkzo(i,k) = ckz*dza(i,k+1)
enddo
enddo
!
do i = its,ite
dusfc(i) = 0.
dvsfc(i) = 0.
dtsfc(i) = 0.
dqsfc(i) = 0.
enddo
!
do i = its,ite
hgamt(i) = 0.
hgamq(i) = 0.
wscale(i) = 0.
kpbl(i) = 1
hpbl(i) = zq(i,1)
zl1(i) = za(i,1)
thermal(i)= thvx(i,1)
pblflg(i) = .true.
sfcflg(i) = .true.
sflux(i) = hfx(i)/rhox(i)/cp + qfx(i)/rhox(i)*ep1*thx(i,1)
if(br(i).gt.0.0) sfcflg(i) = .false.
enddo
!
! compute the first guess of pbl height
!
do i = its,ite
stable(i) = .false.
brup(i) = br(i)
brcr(i) = brcr_ub
enddo
!
do k = 2,klpbl
do i = its,ite
if(.not.stable(i))then
brdn(i) = brup(i)
spdk2 = max(ux(i,k)**2+vx(i,k)**2,1.)
brup(i) = (thvx(i,k)-thermal(i))*(g*za(i,k)/thvx(i,1))/spdk2
kpbl(i) = k
stable(i) = brup(i).gt.brcr(i)
endif
enddo
enddo
!
do i = its,ite
k = kpbl(i)
if(brdn(i).ge.brcr(i))then
brint = 0.
elseif(brup(i).le.brcr(i))then
brint = 1.
else
brint = (brcr(i)-brdn(i))/(brup(i)-brdn(i))
endif
hpbl(i) = za(i,k-1)+brint*(za(i,k)-za(i,k-1))
if(hpbl(i).lt.zq(i,2)) kpbl(i) = 1
if(kpbl(i).le.1) pblflg(i) = .false.
enddo
!
do i = its,ite
fm = psim(i)
fh = psih(i)
zol1(i) = max(br(i)*fm*fm/fh,rimin)
if(sfcflg(i))then
zol1(i) = min(zol1(i),-zfmin)
else
zol1(i) = max(zol1(i),zfmin)
endif
hol1 = zol1(i)*hpbl(i)/zl1(i)*sfcfrac
if(sfcflg(i))then
phim(i) = (1.-aphi16*hol1)**(-1./4.)
phih(i) = (1.-aphi16*hol1)**(-1./2.)
bfx0 = max(sflux(i),0.)
hfx0 = max(hfx(i)/rhox(i)/cp,0.)
qfx0 = max(ep1*thx(i,1)*qfx(i)/rhox(i),0.)
wstar3(i) = (govrth(i)*bfx0*hpbl(i))
wstar(i) = (wstar3(i))**h1
else
phim(i) = (1.+aphi5*hol1)
phih(i) = phim(i)
wstar(i) = 0.
wstar3(i) = 0.
endif
ust3(i) = ust(i)**3.
wscale(i) = (ust3(i)+phifac*karman*wstar3(i)*0.5)**h1
wscale(i) = min(wscale(i),ust(i)*aphi16)
wscale(i) = max(wscale(i),ust(i)/aphi5)
enddo
!
! compute the surface variables for pbl height estimation
! under unstable conditions
!
do i = its,ite
if(sfcflg(i).and.sflux(i).gt.0.0)then
gamfac = bfac/rhox(i)/wscale(i)
hgamt(i) = min(gamfac*hfx(i)/cp,gamcrt)
hgamq(i) = min(gamfac*qfx(i),gamcrq)
vpert = (hgamt(i)+ep1*thx(i,1)*hgamq(i))/bfac*afac
thermal(i) = thermal(i)+max(vpert,0.)*min(za(i,1)/(sfcfrac*hpbl(i)),1.0)
hgamt(i) = max(hgamt(i),0.0)
hgamq(i) = max(hgamq(i),0.0)
brint = -15.9*ust(i)*ust(i)/wspd(i)*wstar3(i)/(wscale(i)**4.)
hgamu(i) = brint*ux(i,1)
hgamv(i) = brint*vx(i,1)
else
pblflg(i) = .false.
endif
enddo
!
! enhance the pbl height by considering the thermal
!
do i = its,ite
if(pblflg(i))then
kpbl(i) = 1
hpbl(i) = zq(i,1)
endif
enddo
!
do i = its,ite
if(pblflg(i))then
stable(i) = .false.
brup(i) = br(i)
brcr(i) = brcr_ub
endif
enddo
!
do k = 2,klpbl
do i = its,ite
if(.not.stable(i).and.pblflg(i))then
brdn(i) = brup(i)
spdk2 = max(ux(i,k)**2+vx(i,k)**2,1.)
brup(i) = (thvx(i,k)-thermal(i))*(g*za(i,k)/thvx(i,1))/spdk2
kpbl(i) = k
stable(i) = brup(i).gt.brcr(i)
endif
enddo
enddo
!
do i = its,ite
if(pblflg(i)) then
k = kpbl(i)
if(brdn(i).ge.brcr(i))then
brint = 0.
elseif(brup(i).le.brcr(i))then
brint = 1.
else
brint = (brcr(i)-brdn(i))/(brup(i)-brdn(i))
endif
hpbl(i) = za(i,k-1)+brint*(za(i,k)-za(i,k-1))
if(hpbl(i).lt.zq(i,2)) kpbl(i) = 1
if(kpbl(i).le.1) pblflg(i) = .false.
endif
enddo
!
! stable boundary layer
!
do i = its,ite
if((.not.sfcflg(i)).and.hpbl(i).lt.zq(i,2)) then
brup(i) = br(i)
stable(i) = .false.
else
stable(i) = .true.
endif
enddo
!
do i = its,ite
if((.not.stable(i)).and.((xland(i)-1.5).ge.0))then
wspd10 = u10(i)*u10(i) + v10(i)*v10(i)
wspd10 = sqrt(wspd10)
ross = wspd10 / (cori*znt(i))
brcr_sbro(i) = min(0.16*(1.e-7*ross)**(-0.18),.3)
endif
enddo
!
do i = its,ite
if(.not.stable(i))then
if((xland(i)-1.5).ge.0)then
brcr(i) = brcr_sbro(i)
else
brcr(i) = brcr_sb
endif
endif
enddo
do k = 2,klpbl
do i = its,ite
if(.not.stable(i))then
brdn(i) = brup(i)
spdk2 = max(ux(i,k)**2+vx(i,k)**2,1.)
brup(i) = (thvx(i,k)-thermal(i))*(g*za(i,k)/thvx(i,1))/spdk2
kpbl(i) = k
stable(i) = brup(i).gt.brcr(i)
endif
enddo
enddo
!
do i = its,ite
if((.not.sfcflg(i)).and.hpbl(i).lt.zq(i,2)) then
k = kpbl(i)
if(brdn(i).ge.brcr(i))then
brint = 0.
elseif(brup(i).le.brcr(i))then
brint = 1.
else
brint = (brcr(i)-brdn(i))/(brup(i)-brdn(i))
endif
hpbl(i) = za(i,k-1)+brint*(za(i,k)-za(i,k-1))
if(hpbl(i).lt.zq(i,2)) kpbl(i) = 1
if(kpbl(i).le.1) pblflg(i) = .false.
endif
enddo
!
! estimate the entrainment parameters
!
do i = its,ite
if(pblflg(i)) then
k = kpbl(i) - 1
prpbl(i) = 1.0
wm3 = wstar3(i) + 5. * ust3(i)
wm2(i) = wm3**h2
bfxpbl(i) = -0.15*thvx(i,1)/g*wm3/hpbl(i)
dthvx(i) = max(thvx(i,k+1)-thvx(i,k),tmin)
dthx = max(thx(i,k+1)-thx(i,k),tmin)
dqx = min(qx(i,k+1)-qx(i,k),0.0)
we(i) = max(bfxpbl(i)/dthvx(i),-sqrt(wm2(i)))
hfxpbl(i) = we(i)*dthx
qfxpbl(i) = we(i)*dqx
!
dux = ux(i,k+1)-ux(i,k)
dvx = vx(i,k+1)-vx(i,k)
if(dux.gt.tmin) then
ufxpbl(i) = max(prpbl(i)*we(i)*dux,-ust(i)*ust(i))
elseif(dux.lt.-tmin) then
ufxpbl(i) = min(prpbl(i)*we(i)*dux,ust(i)*ust(i))
else
ufxpbl(i) = 0.0
endif
if(dvx.gt.tmin) then
vfxpbl(i) = max(prpbl(i)*we(i)*dvx,-ust(i)*ust(i))
elseif(dvx.lt.-tmin) then
vfxpbl(i) = min(prpbl(i)*we(i)*dvx,ust(i)*ust(i))
else
vfxpbl(i) = 0.0
endif
delb = govrth(i)*d3*hpbl(i)
delta(i) = min(d1*hpbl(i) + d2*wm2(i)/delb,100.)
endif
enddo
!
do k = kts,klpbl
do i = its,ite
if(pblflg(i).and.k.ge.kpbl(i))then
entfac(i,k) = ((zq(i,k+1)-hpbl(i))/delta(i))**2.
else
entfac(i,k) = 1.e30
endif
enddo
enddo
!
! compute diffusion coefficients below pbl
!
do k = kts,klpbl
do i = its,ite
if(k.lt.kpbl(i)) then
zfac(i,k) = min(max((1.-(zq(i,k+1)-zl1(i))/(hpbl(i)-zl1(i))),zfmin),1.)
zfacent(i,k) = (1.-zfac(i,k))**3.
wscalek(i,k) = (ust3(i)+phifac*karman*wstar3(i)*(1.-zfac(i,k)))**h1
if(sfcflg(i)) then
prfac = conpr
prfac2 = 15.9*wstar3(i)/ust3(i)/(1.+4.*karman*wstar3(i)/ust3(i))
prnumfac = -3.*(max(zq(i,k+1)-sfcfrac*hpbl(i),0.))**2./hpbl(i)**2.
else
prfac = 0.
prfac2 = 0.
prnumfac = 0.
phim8z = 1.+aphi5*zol1(i)*zq(i,k+1)/zl1(i)
wscalek(i,k) = ust(i)/phim8z
wscalek(i,k) = max(wscalek(i,k),0.001)
endif
prnum0 = (phih(i)/phim(i)+prfac)
prnum0 = max(min(prnum0,prmax),prmin)
xkzm(i,k) = wscalek(i,k)*karman*zq(i,k+1)*zfac(i,k)**pfac
prnum = 1. + (prnum0-1.)*exp(prnumfac)
xkzq(i,k) = xkzm(i,k)/prnum*zfac(i,k)**(pfac_q-pfac)
prnum0 = prnum0/(1.+prfac2*karman*sfcfrac)
prnum = 1. + (prnum0-1.)*exp(prnumfac)
xkzh(i,k) = xkzm(i,k)/prnum
xkzm(i,k) = min(xkzm(i,k),xkzmax)
xkzm(i,k) = max(xkzm(i,k),xkzo(i,k))
xkzh(i,k) = min(xkzh(i,k),xkzmax)
xkzh(i,k) = max(xkzh(i,k),xkzo(i,k))
xkzq(i,k) = min(xkzq(i,k),xkzmax)
xkzq(i,k) = max(xkzq(i,k),xkzo(i,k))
endif
enddo
enddo
!
! compute diffusion coefficients over pbl (free atmosphere)
!
do k = kts,kte-1
do i = its,ite
if(k.ge.kpbl(i)) then
ss = ((ux(i,k+1)-ux(i,k))*(ux(i,k+1)-ux(i,k)) &
+(vx(i,k+1)-vx(i,k))*(vx(i,k+1)-vx(i,k))) &
/(dza(i,k+1)*dza(i,k+1))+1.e-9
govrthv = g/(0.5*(thvx(i,k+1)+thvx(i,k)))
ri = govrthv*(thvx(i,k+1)-thvx(i,k))/(ss*dza(i,k+1))
if(imvdif.eq.1.and.ndiff.ge.3)then
if((qx(i,ktrace2+k)+qx(i,ktrace3+k)).gt.0.01e-3.and.(qx(i &
,ktrace2+k+1)+qx(i,ktrace3+k+1)).gt.0.01e-3)then
! in cloud
qmean = 0.5*(qx(i,k)+qx(i,k+1))
tmean = 0.5*(tx(i,k)+tx(i,k+1))
alph = xlv*qmean/rd/tmean
chi = xlv*xlv*qmean/cp/rv/tmean/tmean
ri = (1.+alph)*(ri-g*g/ss/tmean/cp*((chi-alph)/(1.+chi)))
endif
endif
zk = karman*zq(i,k+1)
rlamdz = min(max(0.1*dza(i,k+1),rlam),300.)
rlamdz = min(dza(i,k+1),rlamdz)
rl2 = (zk*rlamdz/(rlamdz+zk))**2
dk = rl2*sqrt(ss)
ri = max(ri,rimin)
if(ri.lt.0.)then
! unstable regime
sri = sqrt(-ri)
xkzm(i,k) = dk*(1+8.*(-ri)/(1+1.746*sri))
xkzh(i,k) = dk*(1+8.*(-ri)/(1+1.286*sri))
else
! stable regime
xkzh(i,k) = dk/(1+5.*ri)**2
prnum = 1.0+2.1*ri
prnum = min(prnum,prmax)
xkzm(i,k) = xkzh(i,k)*prnum
endif
!
xkzm(i,k) = min(xkzm(i,k),xkzmax)
xkzm(i,k) = max(xkzm(i,k),xkzo(i,k))
xkzh(i,k) = min(xkzh(i,k),xkzmax)
xkzh(i,k) = max(xkzh(i,k),xkzo(i,k))
xkzml(i,k) = xkzm(i,k)
xkzhl(i,k) = xkzh(i,k)
endif
enddo
enddo
!
! compute tridiagonal matrix elements for heat
!
do k = kts,kte
do i = its,ite
au(i,k) = 0.
al(i,k) = 0.
ad(i,k) = 0.
f1(i,k) = 0.
enddo
enddo
!
do i = its,ite
ad(i,1) = 1.
f1(i,1) = thx(i,1)-300.+hfx(i)/cont/del(i,1)*dt2
enddo
!
do k = kts,kte-1
do i = its,ite
dtodsd = dt2/del(i,k)
dtodsu = dt2/del(i,k+1)
dsig = p2d(i,k)-p2d(i,k+1)
rdz = 1./dza(i,k+1)
tem1 = dsig*xkzh(i,k)*rdz
if(pblflg(i).and.k.lt.kpbl(i)) then
dsdzt = tem1*(-hgamt(i)/hpbl(i)-hfxpbl(i)*zfacent(i,k)/xkzh(i,k))
f1(i,k) = f1(i,k)+dtodsd*dsdzt
f1(i,k+1) = thx(i,k+1)-300.-dtodsu*dsdzt
elseif(pblflg(i).and.k.ge.kpbl(i).and.entfac(i,k).lt.4.6) then
xkzh(i,k) = -we(i)*dza(i,kpbl(i))*exp(-entfac(i,k))
xkzh(i,k) = sqrt(xkzh(i,k)*xkzhl(i,k))
xkzh(i,k) = min(xkzh(i,k),xkzmax)
xkzh(i,k) = max(xkzh(i,k),xkzo(i,k))
f1(i,k+1) = thx(i,k+1)-300.
else
f1(i,k+1) = thx(i,k+1)-300.
endif
tem1 = dsig*xkzh(i,k)*rdz
dsdz2 = tem1*rdz
au(i,k) = -dtodsd*dsdz2
al(i,k) = -dtodsu*dsdz2
ad(i,k) = ad(i,k)-au(i,k)
ad(i,k+1) = 1.-al(i,k)
exch_hx(i,k+1) = xkzh(i,k)
enddo
enddo
!
! copies here to avoid duplicate input args for tridin
!
do k = kts,kte
do i = its,ite
cu(i,k) = au(i,k)
r1(i,k) = f1(i,k)
enddo
enddo
!
call tridin_ysu(al,ad,cu,r1,au,f1,its,ite,kts,kte,1)
!
! recover tendencies of heat
!
do k = kte,kts,-1
do i = its,ite
ttend = (f1(i,k)-thx(i,k)+300.)*rdt*pi2d(i,k)
ttnp(i,k) = ttnp(i,k)+ttend
dtsfc(i) = dtsfc(i)+ttend*cont*del(i,k)/pi2d(i,k)
enddo
enddo
!
! compute tridiagonal matrix elements for moisture, clouds, and gases
!
do k = kts,kte
do i = its,ite
au(i,k) = 0.
al(i,k) = 0.
ad(i,k) = 0.
enddo
enddo
!
do ic = 1,ndiff
do i = its,ite
do k = kts,kte
f3(i,k,ic) = 0.
enddo
enddo
enddo
!
do i = its,ite
ad(i,1) = 1.
f3(i,1,1) = qx(i,1)+qfx(i)*g/del(i,1)*dt2
enddo
!
if(ndiff.ge.2) then
do ic = 2,ndiff
is = (ic-1) * kte
do i = its,ite
f3(i,1,ic) = qx(i,1+is)
enddo
enddo
endif
!
do k = kts,kte
do i = its,ite
if(k.ge.kpbl(i)) then
xkzq(i,k) = xkzh(i,k)
endif
enddo
enddo
!
do k = kts,kte-1
do i = its,ite
dtodsd = dt2/del(i,k)
dtodsu = dt2/del(i,k+1)
dsig = p2d(i,k)-p2d(i,k+1)
rdz = 1./dza(i,k+1)
tem1 = dsig*xkzq(i,k)*rdz
if(pblflg(i).and.k.lt.kpbl(i)) then
dsdzq = tem1*(-qfxpbl(i)*zfacent(i,k)/xkzq(i,k))
f3(i,k,1) = f3(i,k,1)+dtodsd*dsdzq
f3(i,k+1,1) = qx(i,k+1)-dtodsu*dsdzq
elseif(pblflg(i).and.k.ge.kpbl(i).and.entfac(i,k).lt.4.6) then
xkzq(i,k) = -we(i)*dza(i,kpbl(i))*exp(-entfac(i,k))
xkzq(i,k) = sqrt(xkzq(i,k)*xkzhl(i,k))
xkzq(i,k) = min(xkzq(i,k),xkzmax)
xkzq(i,k) = max(xkzq(i,k),xkzo(i,k))
f3(i,k+1,1) = qx(i,k+1)
else
f3(i,k+1,1) = qx(i,k+1)
endif
tem1 = dsig*xkzq(i,k)*rdz
dsdz2 = tem1*rdz
au(i,k) = -dtodsd*dsdz2
al(i,k) = -dtodsu*dsdz2
ad(i,k) = ad(i,k)-au(i,k)
ad(i,k+1) = 1.-al(i,k)
! exch_hx(i,k+1) = xkzh(i,k)
enddo
enddo
!
if(ndiff.ge.2) then
do ic = 2,ndiff
is = (ic-1) * kte
do k = kts,kte-1
do i = its,ite
f3(i,k+1,ic) = qx(i,k+1+is)
enddo
enddo
enddo
endif
!
! copies here to avoid duplicate input args for tridin
!
do k = kts,kte
do i = its,ite
cu(i,k) = au(i,k)
enddo
enddo
!
do ic = 1,ndiff
do k = kts,kte
do i = its,ite
r3(i,k,ic) = f3(i,k,ic)
enddo
enddo
enddo
!
! solve tridiagonal problem for moisture, clouds, and gases
!
call tridin_ysu(al,ad,cu,r3,au,f3,its,ite,kts,kte,ndiff)
!
! recover tendencies of heat and moisture
!
do k = kte,kts,-1
do i = its,ite
qtend = (f3(i,k,1)-qx(i,k))*rdt
qtnp(i,k) = qtnp(i,k)+qtend
dqsfc(i) = dqsfc(i)+qtend*conq*del(i,k)
enddo
enddo
!
if(ndiff.ge.2) then
do ic = 2,ndiff
is = (ic-1) * kte
do k = kte,kts,-1
do i = its,ite
qtend = (f3(i,k,ic)-qx(i,k+is))*rdt
qtnp(i,k+is) = qtnp(i,k+is)+qtend
enddo
enddo
enddo
endif
!
! compute tridiagonal matrix elements for momentum
!
do i = its,ite
do k = kts,kte
au(i,k) = 0.
al(i,k) = 0.
ad(i,k) = 0.
f1(i,k) = 0.
f2(i,k) = 0.
enddo
enddo
!
do i = its,ite
! paj: ctopo=1 if topo_wind=0 (default)
! mchen add this line to make sure NMM can still work with YSU PBL
if(present(ctopo)) then
ad(i,1) = 1.+ctopo(i)*ust(i)**2/wspd1(i)*rhox(i)*g/del(i,1)*dt2 &
*(wspd1(i)/wspd(i))**2
else
ad(i,1) = 1.+ust(i)**2/wspd1(i)*rhox(i)*g/del(i,1)*dt2 &
*(wspd1(i)/wspd(i))**2
endif
f1(i,1) = ux(i,1)
f2(i,1) = vx(i,1)
enddo
!
do k = kts,kte-1
do i = its,ite
dtodsd = dt2/del(i,k)
dtodsu = dt2/del(i,k+1)
dsig = p2d(i,k)-p2d(i,k+1)
rdz = 1./dza(i,k+1)
tem1 = dsig*xkzm(i,k)*rdz
if(pblflg(i).and.k.lt.kpbl(i))then
dsdzu = tem1*(-hgamu(i)/hpbl(i)-ufxpbl(i)*zfacent(i,k)/xkzm(i,k))
dsdzv = tem1*(-hgamv(i)/hpbl(i)-vfxpbl(i)*zfacent(i,k)/xkzm(i,k))
f1(i,k) = f1(i,k)+dtodsd*dsdzu
f1(i,k+1) = ux(i,k+1)-dtodsu*dsdzu
f2(i,k) = f2(i,k)+dtodsd*dsdzv
f2(i,k+1) = vx(i,k+1)-dtodsu*dsdzv
elseif(pblflg(i).and.k.ge.kpbl(i).and.entfac(i,k).lt.4.6) then
xkzm(i,k) = prpbl(i)*xkzh(i,k)
xkzm(i,k) = sqrt(xkzm(i,k)*xkzml(i,k))
xkzm(i,k) = min(xkzm(i,k),xkzmax)
xkzm(i,k) = max(xkzm(i,k),xkzo(i,k))
f1(i,k+1) = ux(i,k+1)
f2(i,k+1) = vx(i,k+1)
else
f1(i,k+1) = ux(i,k+1)
f2(i,k+1) = vx(i,k+1)
endif
tem1 = dsig*xkzm(i,k)*rdz
dsdz2 = tem1*rdz
au(i,k) = -dtodsd*dsdz2
al(i,k) = -dtodsu*dsdz2
ad(i,k) = ad(i,k)-au(i,k)
ad(i,k+1) = 1.-al(i,k)
enddo
enddo
!
! copies here to avoid duplicate input args for tridin
!
do k = kts,kte
do i = its,ite
cu(i,k) = au(i,k)
r1(i,k) = f1(i,k)
r2(i,k) = f2(i,k)
enddo
enddo
!
! solve tridiagonal problem for momentum
!
call tridi1n(al,ad,cu,r1,r2,au,f1,f2,its,ite,kts,kte,1)
!
! recover tendencies of momentum
!
do k = kte,kts,-1
do i = its,ite
utend = (f1(i,k)-ux(i,k))*rdt
vtend = (f2(i,k)-vx(i,k))*rdt
utnp(i,k) = utnp(i,k)+utend
vtnp(i,k) = vtnp(i,k)+vtend
dusfc(i) = dusfc(i) + utend*conwrc*del(i,k)
dvsfc(i) = dvsfc(i) + vtend*conwrc*del(i,k)
enddo
enddo
!
! paj: ctopo2=1 if topo_wind=0 (default)
!
do i = its,ite
if(present(ctopo).and.present(ctopo2)) then ! mchen for NMM
u10(i) = ctopo2(i)*u10(i)+(1-ctopo2(i))*ux(i,1)
v10(i) = ctopo2(i)*v10(i)+(1-ctopo2(i))*vx(i,1)
endif !mchen
enddo
!
!---- end of vertical diffusion
!
do i = its,ite
kpbl1d(i) = kpbl(i)
enddo
!
!MPAS specific begin (Laura D. Fowler - 2013-03-01)::
if(present(kzh) .and. present(kzm) .and. present(kzq)) then
do i = its,ite
do k = kts,kte
kzh(i,k) = xkzh(i,k)
kzm(i,k) = xkzm(i,k)
kzq(i,k) = xkzq(i,k)
enddo
enddo
endif
!MPAS specific end.
end subroutine ysu2d
!
subroutine tridi1n(cl,cm,cu,r1,r2,au,f1,f2,its,ite,kts,kte,nt)
!----------------------------------------------------------------
implicit none
!----------------------------------------------------------------
!
integer, intent(in ) :: its,ite, kts,kte, nt
!
real, dimension( its:ite, kts+1:kte+1 ) , &
intent(in ) :: cl
!
real, dimension( its:ite, kts:kte ) , &
intent(in ) :: cm, &
r1
real, dimension( its:ite, kts:kte,nt ) , &
intent(in ) :: r2
!
real, dimension( its:ite, kts:kte ) , &
intent(inout) :: au, &
cu, &
f1
real, dimension( its:ite, kts:kte,nt ) , &
intent(inout) :: f2
!
real :: fk
integer :: i,k,l,n,it
!
!----------------------------------------------------------------
!
l = ite
n = kte
!
do i = its,l
fk = 1./cm(i,1)
au(i,1) = fk*cu(i,1)
f1(i,1) = fk*r1(i,1)
enddo
do it = 1,nt
do i = its,l
fk = 1./cm(i,1)
f2(i,1,it) = fk*r2(i,1,it)
enddo
enddo
do k = kts+1,n-1
do i = its,l
fk = 1./(cm(i,k)-cl(i,k)*au(i,k-1))
au(i,k) = fk*cu(i,k)
f1(i,k) = fk*(r1(i,k)-cl(i,k)*f1(i,k-1))
enddo
enddo
do it = 1,nt
do k = kts+1,n-1
do i = its,l
fk = 1./(cm(i,k)-cl(i,k)*au(i,k-1))
f2(i,k,it) = fk*(r2(i,k,it)-cl(i,k)*f2(i,k-1,it))
enddo
enddo
enddo
do i = its,l
fk = 1./(cm(i,n)-cl(i,n)*au(i,n-1))
f1(i,n) = fk*(r1(i,n)-cl(i,n)*f1(i,n-1))
enddo
do it = 1,nt
do i = its,l
fk = 1./(cm(i,n)-cl(i,n)*au(i,n-1))
f2(i,n,it) = fk*(r2(i,n,it)-cl(i,n)*f2(i,n-1,it))
enddo
enddo
do k = n-1,kts,-1
do i = its,l
f1(i,k) = f1(i,k)-au(i,k)*f1(i,k+1)
enddo
enddo
do it = 1,nt
do k = n-1,kts,-1
do i = its,l
f2(i,k,it) = f2(i,k,it)-au(i,k)*f2(i,k+1,it)
enddo
enddo
enddo
!
end subroutine tridi1n
!
subroutine tridin_ysu(cl,cm,cu,r2,au,f2,its,ite,kts,kte,nt)
!----------------------------------------------------------------
implicit none
!----------------------------------------------------------------
!
integer, intent(in ) :: its,ite, kts,kte, nt
!
real, dimension( its:ite, kts+1:kte+1 ) , &
intent(in ) :: cl
!
real, dimension( its:ite, kts:kte ) , &
intent(in ) :: cm
real, dimension( its:ite, kts:kte,nt ) , &
intent(in ) :: r2
!
real, dimension( its:ite, kts:kte ) , &
intent(inout) :: au, &
cu
real, dimension( its:ite, kts:kte,nt ) , &
intent(inout) :: f2
!
real :: fk
integer :: i,k,l,n,it
!
!----------------------------------------------------------------
!
l = ite
n = kte
!
do it = 1,nt
do i = its,l
fk = 1./cm(i,1)
au(i,1) = fk*cu(i,1)
f2(i,1,it) = fk*r2(i,1,it)
enddo
enddo
do it = 1,nt
do k = kts+1,n-1
do i = its,l
fk = 1./(cm(i,k)-cl(i,k)*au(i,k-1))
au(i,k) = fk*cu(i,k)
f2(i,k,it) = fk*(r2(i,k,it)-cl(i,k)*f2(i,k-1,it))
enddo
enddo
enddo
do it = 1,nt
do i = its,l
fk = 1./(cm(i,n)-cl(i,n)*au(i,n-1))
f2(i,n,it) = fk*(r2(i,n,it)-cl(i,n)*f2(i,n-1,it))
enddo
enddo
do it = 1,nt
do k = n-1,kts,-1
do i = its,l
f2(i,k,it) = f2(i,k,it)-au(i,k)*f2(i,k+1,it)
enddo
enddo
enddo
!
end subroutine tridin_ysu
!
subroutine ysuinit(rublten,rvblten,rthblten,rqvblten, &
rqcblten,rqiblten,p_qi,p_first_scalar, &
restart, allowed_to_read, &
ids, ide, jds, jde, kds, kde, &
ims, ime, jms, jme, kms, kme, &
its, ite, jts, jte, kts, kte )
!-------------------------------------------------------------------
implicit none
!-------------------------------------------------------------------
!
logical , intent(in) :: restart, allowed_to_read
integer , intent(in) :: ids, ide, jds, jde, kds, kde, &
ims, ime, jms, jme, kms, kme, &
its, ite, jts, jte, kts, kte
integer , intent(in) :: p_qi,p_first_scalar
real , dimension( ims:ime , kms:kme , jms:jme ), intent(out) :: &
rublten, &
rvblten, &
rthblten, &
rqvblten, &
rqcblten, &
rqiblten
integer :: i, j, k, itf, jtf, ktf
!
jtf = min0(jte,jde-1)
ktf = min0(kte,kde-1)
itf = min0(ite,ide-1)
!
if(.not.restart)then
do j = jts,jtf
do k = kts,ktf
do i = its,itf
rublten(i,k,j) = 0.
rvblten(i,k,j) = 0.
rthblten(i,k,j) = 0.
rqvblten(i,k,j) = 0.
rqcblten(i,k,j) = 0.
enddo
enddo
enddo
endif
!
if (p_qi .ge. p_first_scalar .and. .not.restart) then
do j = jts,jtf
do k = kts,ktf
do i = its,itf
rqiblten(i,k,j) = 0.
enddo
enddo
enddo
endif
!
end subroutine ysuinit
!-------------------------------------------------------------------
end module module_bl_ysu
|
Fortran Free Form
|
# Use manifest image which support all architecture
FROM debian:buster-slim as builder
RUN set -ex \
&& apt-get update \
&& apt-get install -qq --no-install-recommends ca-certificates dirmngr gosu wget
RUN apt-get install -qq --no-install-recommends qemu-user-static binfmt-support
ENV BITCOIN_VERSION 23.0.knots20220529
ENV BITCOIN_URL https://bitcoinknots.org/files/23.x/23.0.knots20220529/bitcoin-23.0.knots20220529-aarch64-linux-gnu.tar.gz
ENV BITCOIN_SHA256 83d3c195a1b93b94830c2b33b6f7ec81b5f947b98cc5097eeee76a6a7e3e3652
# install bitcoin binaries
RUN set -ex \
&& cd /tmp \
&& wget -qO bitcoin.tar.gz "$BITCOIN_URL" \
&& echo "$BITCOIN_SHA256 bitcoin.tar.gz" | sha256sum -c - \
&& mkdir bin \
&& tar -xzvf bitcoin.tar.gz -C /tmp/bin --strip-components=2 "bitcoin-$BITCOIN_VERSION/bin/bitcoin-cli" "bitcoin-$BITCOIN_VERSION/bin/bitcoind" "bitcoin-$BITCOIN_VERSION/bin/bitcoin-wallet" \
&& cd bin \
&& wget -qO gosu "https://github.com/tianon/gosu/releases/download/1.11/gosu-arm64" \
&& echo "5e279972a1c7adee65e3b5661788e8706594b458b7ce318fecbd392492cc4dbd gosu" | sha256sum -c -
# Making sure the builder build an arm image despite being x64
FROM arm64v8/debian:buster-slim
COPY --from=builder "/tmp/bin" /usr/local/bin
COPY --from=builder /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64-static
RUN chmod +x /usr/local/bin/gosu && groupadd -r bitcoin && useradd -r -m -g bitcoin bitcoin
# create data directory
ENV BITCOIN_DATA /data
RUN mkdir "$BITCOIN_DATA" \
&& chown -R bitcoin:bitcoin "$BITCOIN_DATA" \
&& ln -sfn "$BITCOIN_DATA" /home/bitcoin/.bitcoin \
&& chown -h bitcoin:bitcoin /home/bitcoin/.bitcoin
VOLUME /data
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 8332 8333 18332 18333 18443 18444
CMD ["bitcoind"]
|
Dockerfile
|
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
namespace Oculus.Platform
{
using Description = System.ComponentModel.DescriptionAttribute;
public enum LeaderboardFilterType : int
{
[Description("NONE")]
None,
[Description("FRIENDS")]
Friends,
[Description("UNKNOWN")]
Unknown,
}
}
|
C#
|
//
// Page2ViewController.swift
// SplitTest
//
// Created by Arturo Gamarra on 10/7/17.
// Copyright © 2017 Abstract. All rights reserved.
//
import UIKit
class Page1ViewController: BaseViewController, Printable {
@IBOutlet weak var navigationLabel: UILabel!
override var description: String {
return "Page 1"
}
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.navigationLabel.text = self.navigationController?.description
}
@IBAction func printButtonTapped(_ sender: UIButton) {
printInformation()
}
}
|
Swift
|
-- Remember that when you're making functions, especially higher order ones, and you're unsure of the type,
-- you can just try omitting the type declaration and then checking what Haskell infers it to be by using :t.
compareWithHundred :: (Num a, Ord a) => a -> Ordering
compareWithHundred = compare 100
divideByTen :: (Floating a) => a -> a
divideByTen = (/10)
fiveDividedBy :: (Floating a) => a -> a
fiveDividedBy = (5/)
isUpperAlphanum :: Char -> Bool
isUpperAlphanum = (`elem` ['A'..'Z'])
subtract4 :: (Num a) => a -> a
subtract4 = subtract 4
applyTwice :: (a -> a) -> (a -> a)
applyTwice f x = f (f x)
zipWith' :: (a -> b -> c) -> [a] -> [b] -> [c]
zipWith' _ [] _ = []
zipWith' _ _ [] = []
zipWith' f (x:xs) (y:ys) = f x y : zipWith' f xs ys
-- flip' :: (a -> b -> c) -> (b -> a -> c)
-- flip' f = g
-- where g x y = f y x
flip' :: (a -> b -> c) -> b -> a -> c
flip' f y x = f x y
map' :: (a -> b) -> [a] -> [b]
map' _ [] = []
map' f (x:xs) = f x : map' f xs
-- map' (+1) [1..100]
-- OR
-- [x + 1 | x <- [1..100]]
filter' :: (a -> Bool) -> [a] -> [a]
filter' _ [] = []
filter' p (x:xs)
| p x = x : filter' p xs
| otherwise = filter' p xs
quicksort' :: (Ord a) => [a] -> [a]
quicksort' [] = []
quicksort' (x:xs) =
let smallerSorted = quicksort' (filter (<=x) xs)
biggerSorted = quicksort' (filter (>x) xs)
in smallerSorted ++ [x] ++ biggerSorted
largestDivisible :: (Integral a) => a
largestDivisible = head (filter p [100000,99999..])
where p x = x `mod` 3829 == 0
-- sum (takeWhile (<10000) (filter odd (map (^2) [1..])))
-- sum(takeWhile (<10000) [y | y <- [x^2 | x <- [1..]], odd y])
-- sum (takeWhile (<10000) [n^2 | n <- [1..], odd (n^2)])
collatzChain :: (Integral a) => a -> [a]
collatzChain n
| n <= 0 = []
| n == 1 = [1]
| even n = n : collatzChain (n `div` 2)
| otherwise = n : collatzChain (n*3 + 1)
chain :: (Integral a) => a -> [a]
chain 1 = [1]
chain n
| even n = n:chain (n `div` 2)
| odd n = n:chain (n*3 + 1)
-- length (filter (>15) (map (length) (map (chain) [1..100])))
numLongChains :: Int
numLongChains = length (filter isLong (map chain [1..100]))
where isLong xs = length xs > 15
-- lambdas
numLongChains' :: Int
numLongChains' = length (filter (\xs -> length xs > 15) (map chain [1..100]))
flip'' :: (a -> b -> c) -> b -> a -> c
flip'' f = \x y -> f y x
|
Haskell
|
package utils
import "reflect"
func HasValue(arr interface{},e interface{}) bool {
arrV := reflect.ValueOf(arr)
if arrV.Kind()==reflect.Ptr && !arrV.IsNil() && (arrV.Elem().Kind()==reflect.Slice || arrV.Elem().Kind()==reflect.Array) {
arrV = arrV.Elem()
}
if arrV.Kind()==reflect.Slice || arrV.Kind()==reflect.Array {
for i:=0; i<arrV.Len(); i+=1 {
if reflect.DeepEqual(e,arrV.Index(i).Interface()) {
return true;
}
}
}
return false;
}
|
Go
|
<#
.Synopsis
Create a Desktop shortcut
.Description
Create a Desktop shortcut
.Parameter Name
Name of shortcut
.Parameter TargetPath
TargetPath of shortcut
.Parameter WorkingDirectory
Working Directory of shortcut
.Parameter IconLocation
Icon location for shortcut
.Parameter Arguments
Arguments for the program executed by shortcut
.Parameter shortcuts
Specify where you want to shortcut created: ('None','Desktop','StartMenu','Startup','CommonDesktop','CommonStartMenu','CommonStartup')
.Parameter RunAsAdministrator
Include this switch if you want the shortcut to be set to Run As Administrator
#>
function New-DesktopShortcut {
Param (
[Parameter(Mandatory=$true)]
[string] $Name,
[Parameter(Mandatory=$true)]
[string] $TargetPath,
[string] $WorkingDirectory = "",
[string] $IconLocation = "",
[string] $Arguments = "",
[ValidateSet('None','Desktop','StartMenu','Startup','CommonDesktop','CommonStartMenu','CommonStartup','DesktopFolder','CommonDesktopFolder')]
[string] $shortcuts = "Desktop",
[switch] $RunAsAdministrator = $isAdministrator
)
$folderName = ""
if ($shortcuts.EndsWith("Folder")) {
$shortcuts = $shortcuts.Substring(0,$shortcuts.Length - 6)
$folderName = $name.Split(' ')[0]
$name = $name.Substring($folderName.Length).TrimStart(' ')
}
if ($shortcuts -ne "None") {
if ($shortcuts -eq "Desktop" -or
$shortcuts -eq "CommonDesktop" -or
$shortcuts -eq "Startup" -or
$shortcuts -eq "CommonStartup") {
$folder = [Environment]::GetFolderPath($shortcuts)
} else {
$folder = Join-Path ([Environment]::GetFolderPath($shortcuts)) "BcContainerHelper"
if (!(Test-Path $folder -PathType Container)) {
New-Item $folder -ItemType Directory | Out-Null
}
}
if ($folder) {
if ($folderName) {
$folder = Join-Path $folder $folderName
if (!(Test-Path $folder -PathType Container)) {
New-Item $folder -ItemType Directory | Out-Null
}
}
$filename = Join-Path $folder "$Name.lnk"
if (Test-Path -Path $filename) {
Remove-Item $filename -force
}
$tempfilename = Join-Path $bcContainerHelperConfig.hostHelperFolder "$([Guid]::NewGuid().ToString()).lnk"
$Shell = New-object -comobject WScript.Shell
$Shortcut = $Shell.CreateShortcut($tempfilename)
$Shortcut.TargetPath = $TargetPath
if (!$WorkingDirectory) {
$WorkingDirectory = Split-Path $TargetPath
}
$Shortcut.WorkingDirectory = $WorkingDirectory
if ($Arguments) {
$Shortcut.Arguments = $Arguments
}
if ($IconLocation) {
$Shortcut.IconLocation = $IconLocation
}
$Shortcut.save()
if ($RunAsAdministrator) {
$bytes = [System.IO.File]::ReadAllBytes($tempfilename)
$bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON
[System.IO.File]::WriteAllBytes($tempfilename, $bytes)
}
Move-Item -Path $tempfilename -Destination $filename -ErrorAction SilentlyContinue
}
}
}
Export-ModuleMember -Function New-DesktopShortcut
|
PowerShell
|
//
// QBAuthHeader.h
// Quickblox
//
// Created by Andrey Moskvin on 6/13/14.
// Copyright (c) 2014 QuickBlox. All rights reserved.
//
#ifndef Quickblox_QBAuthHeader_h
#define Quickblox_QBAuthHeader_h
#import <Quickblox/QBRequest+QBAuth.h>
#import <Quickblox/QBSessionParameters.h>
#endif
|
Objective-C++
|
use alloc::string::String;
use alloc::vec::Vec;
use crate::ProofGenerationKey;
use super::{Bundle, Output, Spend, Zip32Derivation};
impl Bundle {
/// Updates the bundle with information provided in the given closure.
pub fn update_with<F>(&mut self, f: F) -> Result<(), UpdaterError>
where
F: FnOnce(Updater<'_>) -> Result<(), UpdaterError>,
{
f(Updater(self))
}
}
/// An updater for a Sapling PCZT bundle.
pub struct Updater<'a>(&'a mut Bundle);
impl Updater<'_> {
/// Provides read access to the bundle being updated.
pub fn bundle(&self) -> &Bundle {
self.0
}
/// Updates the spend at the given index with information provided in the given
/// closure.
pub fn update_spend_with<F>(&mut self, index: usize, f: F) -> Result<(), UpdaterError>
where
F: FnOnce(SpendUpdater<'_>) -> Result<(), UpdaterError>,
{
f(SpendUpdater(
self.0
.spends
.get_mut(index)
.ok_or(UpdaterError::InvalidIndex)?,
))
}
/// Updates the output at the given index with information provided in the given
/// closure.
pub fn update_output_with<F>(&mut self, index: usize, f: F) -> Result<(), UpdaterError>
where
F: FnOnce(OutputUpdater<'_>) -> Result<(), UpdaterError>,
{
f(OutputUpdater(
self.0
.outputs
.get_mut(index)
.ok_or(UpdaterError::InvalidIndex)?,
))
}
}
/// An updater for a Sapling PCZT spend.
pub struct SpendUpdater<'a>(&'a mut Spend);
impl SpendUpdater<'_> {
/// Sets the proof generation key for this spend.
///
/// Returns an error if the proof generation key does not match the spend.
pub fn set_proof_generation_key(
&mut self,
proof_generation_key: ProofGenerationKey,
) -> Result<(), UpdaterError> {
// TODO: Verify that the proof generation key matches the spend, if possible.
self.0.proof_generation_key = Some(proof_generation_key);
Ok(())
}
/// Sets the ZIP 32 derivation path for the spent note's signing key.
pub fn set_zip32_derivation(&mut self, derivation: Zip32Derivation) {
self.0.zip32_derivation = Some(derivation);
}
/// Stores the given proprietary value at the given key.
pub fn set_proprietary(&mut self, key: String, value: Vec<u8>) {
self.0.proprietary.insert(key, value);
}
}
/// An updater for a Sapling PCZT output.
pub struct OutputUpdater<'a>(&'a mut Output);
impl OutputUpdater<'_> {
/// Sets the ZIP 32 derivation path for the new note's signing key.
pub fn set_zip32_derivation(&mut self, derivation: Zip32Derivation) {
self.0.zip32_derivation = Some(derivation);
}
/// Sets the user-facing address that the new note is being sent to.
pub fn set_user_address(&mut self, user_address: String) {
self.0.user_address = Some(user_address);
}
/// Stores the given proprietary value at the given key.
pub fn set_proprietary(&mut self, key: String, value: Vec<u8>) {
self.0.proprietary.insert(key, value);
}
}
/// Errors that can occur while updating a Sapling bundle in a PCZT.
#[derive(Debug)]
pub enum UpdaterError {
/// An out-of-bounds index was provided when looking up a spend or output.
InvalidIndex,
/// The provided `proof_generation_key` does not match the spend.
WrongProofGenerationKey,
}
|
RenderScript
|
/**
* Bootstrap Fonts
*/
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../node_modules/bootstrap/fonts/glyphicons-halflings-regular.eot');
src: url('../node_modules/bootstrap/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
url('../node_modules/bootstrap/fonts/glyphicons-halflings-regular.woff') format('woff'),
url('../node_modules/bootstrap/fonts/glyphicons-halflings-regular.ttf') format('truetype'),
url('../node_modules/bootstrap/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
/**
*Font Awesome Fonts
*/
@font-face {
font-family: 'FontAwesome';
src: url('../node_modules/font-awesome/fonts/fontawesome-webfont.eot?v=4.1.0');
src: url('../node_modules/font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.1.0') format('embedded-opentype'),
url('../node_modules/font-awesome/fonts/fontawesome-webfont.woff?v=4.1.0') format('woff'),
url('../node_modules/font-awesome/fonts/fontawesome-webfont.ttf?v=4.1.0') format('truetype'),
url('../node_modules/font-awesome/fonts/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
/**
* App-wide Styles
*/
.browsehappy {
margin: 0.2em 0;
background: #ccc;
color: #000;
padding: 0.2em 0;
}
body {
background-color: #222;
color: #ccc;
}
body.overpage {
overflow: hidden;
}
pre {
white-space: pre-wrap;
text-align: left;
background-color: rgba(200,200,200,.7);
border: none;
}
pre.code {
background-color: #222;
color: #bbb;
}
.blur {
-webkit-filter: blur(4px);
-moz-filter: blur(4px);
-ms-filter: blur(4px);
-o-filter: blur(4px);
filter: blur(4px);
}
.darkorange {
background-color: darkorange;
}
.text-normal {
font-weight: normal;
}
.hidden {
visibility: hidden;
}
.aslink {
cursor: pointer;
outline: none;
}
.aslink:hover {
color: #ff8c00;
}
.trasparent {
background-color: transparent;
}
.center-text {
text-align: center;
margin: 10px;
}
.onright {
float: right;
}
.vertical {
resize: vertical;
}
.modal {
overflow-y: auto !Important;
}
.width-100{
width: 100%;
}
/*////////////////// BUTTONS /////////////////////*/
.jsz-fa-big {
font-size: 42px;
}
.jsz-fa-btn {
margin: 6px 0;
}
.jsz-fa-btn[disabled] {
color: #444;
}
.jsz-fa-btn:not([disabled]) {
cursor: pointer;
}
.jsz-fa-btn:not([disabled]):hover {
color: darkorange;
}
.jsz-fa-btn.checked {
color: yellowgreen;
}
.jsz-fa-btn-trsp {
border: 0;
background-color: transparent;
}
.jsz-fa-btn-trsp:active {
-webkit-box-shadow: none;
box-shadow: none;
}
.jsz-fa-btn-trsp:focus {
outline: none;
}
@-webkit-keyframes working{
from{-webkit-transform:rotate(0deg)}
to{-webkit-transform:rotate(360deg)}
}
@-moz-keyframes working{
from{-moz-transform:rotate(0deg)}
to{-moz-transform:rotate(360deg)}
}
@-ms-keyframes working{
from{-ms-transform:rotate(0deg)}
to{-ms-transform:rotate(360deg)}
}
@keyframes working{
from{transform:rotate(0deg)}
to{transform:rotate(360deg)}
}
.working {
display: block;
width: 50px;
height: 50px;
margin: 10px auto 10px auto;
border: 5px solid rgba(99,99,99,0.1);
border-top-color: rgba(154,205,50,0.6);
border-radius: 100%;
background: transparent;
animation: working 1s linear infinite;
-ms-animation: working 1s linear infinite;
-moz-animation: working 1s linear infinite;
-webkit-animation: working 1s linear infinite;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.jsonizer-container {
text-align: center;
}
.jsonizer-container > h1 {
color: yellowgreen;
}
.jsonizer-container .row {
margin-right: 0;
margin-left: 0;
}
textarea[disabled] {
background-color: #ccc;
}
label {
line-height: 24px;
}
.on-right {
float: right;
}
.script {
font-family: monospace;
font-size: 11px;
white-space: pre;
}
|
CSS
|
clear
% number of variables
n = 3;
nobj = 3;
% obtaining test function handles
[objfun, lb, ub, lincon, nonlcon, multfun, sizes, opts, pset, pfront] = mop.dtlz.dtlz3({n, nobj});
% real Pareto set and front
m = 10000;
[ps, m] = pset(m);
pf = pfront(m);
% dimensions to be plotted
opts.PlotPSDims = 1 : 3;
opts.PlotPFDims = 1 : 3;
% plotting real Pareto set and front
%utils.plotpareto(ps, pf, opts, 'linestyle', 'none', 'marker', '.', 'color', [0.8500, 0.3250, 0.0980]);
%drawnow
% Calling the Pareto Tracer (PT) continuation algorithm.
x0 = ps(randi(m), :);
opts.HessApprox = 'off';
opts.PCStepObj = 0.03;
opts.LbObj = 1.5 * -ones(1, nobj);
opts.UbObj = 1.5 * ones(1, nobj);
tic
[result, stats, EXITFLAG] = pt.trace(objfun, x0, [], lb, ub, lincon, nonlcon, multfun, opts);
toc
|
MATLAB
|
EFTflag = 4
FullMappingEFTmodel = 1
EFT_mathematical_stability = F
EFT_ghost_stability = F
EFT_gradient_stability = F
EFT_additional_priors = F
Horava_xi = -0.00001
Horava_lambda = 0.00001
Horava_eta = 0.00021
output_root = eftcamb_test/results/spectra_results/5_Horava_eta_1
DEFAULT(base_params.ini)
|
INI
|
pubsub = require './PubSub'
debug = require('debug') 'xbmc:Notifications'
class Notifications
@mixin: (api) ->
debug 'mixin'
@api = api
api.notifications = {}
api.notifications[name] = method for name, method of @
delete api.notifications.mixin
@delegate: (data) =>
debug 'delegate', data
type = data.method.split('.On')[1].toLowerCase()
pubsub.emit "notification:#{type}", data
if @[type]?
@[type] data.params.data
else
console.log "Unhandled notification type: #{type}"
@play: (data) =>
debug 'play', data
@api.handlers.players data
@stop: (data = null) =>
debug 'stop', data
pubsub.emit 'api:playerStopped', data
@add: => debug 'add'
@update: => debug 'update'
@clear: => debug 'clear'
@scanstarted: => debug 'scanstarted'
@scanfinished: => debug 'scandfinished'
@pause: => debug 'pause'
@screensaveractivated: => debug 'screensaveractivated'
@screensaverdeactivated: => debug 'screensaverdeactivated'
@seek: => debug 'seek'
@volumechanged: => debug 'volumechanged'
@inputrequested: =>
debug 'inputrequested'
pubsub.emit 'api:Input.OnInputRequested'
@inputfinished: =>
debug 'inputfinished'
pubsub.emit 'api:Input.OnInputFinished'
@wake: => debug 'wake'
@sleep: => debug 'sleep'
@remove: => debug 'remove'
module.exports = Notifications
|
CoffeeScript
|
:: (c) Copyright 2009 - 2010 Xilinx, Inc. All rights reserved.
::
:: This file contains confidential and proprietary information
:: of Xilinx, Inc. and is protected under U.S. and
:: international copyright and other intellectual property
:: laws.
::
:: DISCLAIMER
:: This disclaimer is not a license and does not grant any
:: rights to the materials distributed herewith. Except as
:: otherwise provided in a valid license issued to you by
:: Xilinx, and to the maximum extent permitted by applicable
:: law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND
:: WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES
:: AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING
:: BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON-
:: INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and
:: (2) Xilinx shall not be liable (whether in contract or tort,
:: including negligence, or under any other theory of
:: liability) for any loss or damage of any kind or nature
:: related to, arising under or in connection with these
:: materials, including for any direct, or any indirect,
:: special, incidental, or consequential loss or damage
:: (including loss of data, profits, goodwill, or any type of
:: loss or damage suffered as a result of any action brought
:: by a third party) even if such damage or loss was
:: reasonably foreseeable or Xilinx had been advised of the
:: possibility of the same.
::
:: CRITICAL APPLICATIONS
:: Xilinx products are not designed or intended to be fail-
:: safe, or for use in any application requiring fail-safe
:: performance, such as life-support or safety devices or
:: systems, Class III medical devices, nuclear facilities,
:: applications related to the deployment of airbags, or any
:: other applications that could lead to death, personal
:: injury, or severe property or environmental damage
:: (individually and collectively, "Critical
:: Applications"). Customer assumes the sole risk and
:: liability of any use of Xilinx products in Critical
:: Applications, subject only to applicable laws and
:: regulations governing limitations on product liability.
::
:: THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS
:: PART OF THIS FILE AT ALL TIMES.
::--------------------------------------------------------------------------------
vlogcomp -work work ..\..\implement\results\routed.v
echo "Compiling Test Bench Files"
vhpcomp -work work ..\bmg_tb_pkg.vhd
vhpcomp -work work ..\random.vhd
vhpcomp -work work ..\data_gen.vhd
vhpcomp -work work ..\addr_gen.vhd
vhpcomp -work work ..\checker.vhd
vhpcomp -work work ..\bmg_stim_gen.vhd
vhpcomp -work work ..\ram16x512_synth.vhd
vhpcomp -work work ..\ram16x512_tb.vhd
fuse -L simprims_ver work.ram16x512_tb work.glbl -o ram16x512_tb.exe
.\ram16x512_tb.exe -sdftyp /ram16x512_tb/ram16x512_synth_inst/bmg_port=..\..\implement\results\routed.sdf -gui -tclbatch simcmds.tcl
|
Batchfile
|
(* libguestfs
* Copyright (C) 2009-2025 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*)
(* Please read generator/README first. *)
open Std_utils
open Types
open Utils
type cols = (string * field) list
type struc = {
s_name : string;
s_cols : cols;
s_camel_name : string;
s_internal : bool;
s_unused : unit; (* Silences warning 23 when using 'defaults with ...' *)
}
(* XXX These must match daemon/lvm_full.ml *)
let lvm_pv_cols = [
"pv_name", FDevice;
"pv_uuid", FUUID;
"pv_fmt", FString;
"pv_size", FBytes;
"dev_size", FBytes;
"pv_free", FBytes;
"pv_used", FBytes;
"pv_attr", FString (* XXX *);
"pv_pe_count", FInt64;
"pv_pe_alloc_count", FInt64;
"pv_tags", FString;
"pe_start", FBytes;
"pv_mda_count", FInt64;
"pv_mda_free", FBytes;
(* Not in Fedora 10:
"pv_mda_size", FBytes;
*)
]
let lvm_vg_cols = [
"vg_name", FString;
"vg_uuid", FUUID;
"vg_fmt", FString;
"vg_attr", FString (* XXX *);
"vg_size", FBytes;
"vg_free", FBytes;
"vg_sysid", FString;
"vg_extent_size", FBytes;
"vg_extent_count", FInt64;
"vg_free_count", FInt64;
"max_lv", FInt64;
"max_pv", FInt64;
"pv_count", FInt64;
"lv_count", FInt64;
"snap_count", FInt64;
"vg_seqno", FInt64;
"vg_tags", FString;
"vg_mda_count", FInt64;
"vg_mda_free", FBytes;
(* Not in Fedora 10:
"vg_mda_size", FBytes;
*)
]
let lvm_lv_cols = [
"lv_name", FString;
"lv_uuid", FUUID;
"lv_attr", FString (* XXX *);
"lv_major", FInt64;
"lv_minor", FInt64;
"lv_kernel_major", FInt64;
"lv_kernel_minor", FInt64;
"lv_size", FBytes;
"seg_count", FInt64;
"origin", FString;
"snap_percent", FOptPercent;
"copy_percent", FOptPercent;
"move_pv", FString;
"lv_tags", FString;
"mirror_log", FString;
"modules", FString;
]
let defaults = { s_name = ""; s_cols = []; s_camel_name = "";
s_internal = false; s_unused = () }
(* Names and fields in all structures (in RStruct and RStructList)
* that we support.
*)
let structs = [
(* The old RIntBool return type, only ever used for aug_defnode. Do
* not use this struct in any new code.
*)
{ defaults with
s_name = "int_bool";
s_cols = [
"i", FInt32; (* for historical compatibility *)
"b", FInt32; (* for historical compatibility *)
];
s_camel_name = "IntBool" };
(* LVM PVs, VGs, LVs. *)
{ defaults with
s_name = "lvm_pv"; s_cols = lvm_pv_cols; s_camel_name = "PV" };
{ defaults with
s_name = "lvm_vg"; s_cols = lvm_vg_cols; s_camel_name = "VG" };
{ defaults with
s_name = "lvm_lv"; s_cols = lvm_lv_cols; s_camel_name = "LV" };
(* Column names and types from stat structures.
* NB. Can't use things like 'st_atime' because glibc header files
* define some of these as macros. Ugh.
*)
{ defaults with
s_name = "stat";
s_cols = [
"dev", FInt64;
"ino", FInt64;
"mode", FInt64;
"nlink", FInt64;
"uid", FInt64;
"gid", FInt64;
"rdev", FInt64;
"size", FInt64;
"blksize", FInt64;
"blocks", FInt64;
"atime", FInt64;
"mtime", FInt64;
"ctime", FInt64;
];
s_camel_name = "Stat" };
(* Because we omitted the nanosecond fields from the above struct,
* we also have this:
*)
{ defaults with
s_name = "statns";
s_cols = [
"st_dev", FInt64;
"st_ino", FInt64;
"st_mode", FInt64;
"st_nlink", FInt64;
"st_uid", FInt64;
"st_gid", FInt64;
"st_rdev", FInt64;
"st_size", FInt64;
"st_blksize", FInt64;
"st_blocks", FInt64;
"st_atime_sec", FInt64;
"st_atime_nsec", FInt64;
"st_mtime_sec", FInt64;
"st_mtime_nsec", FInt64;
"st_ctime_sec", FInt64;
"st_ctime_nsec", FInt64;
"st_spare1", FInt64;
"st_spare2", FInt64;
"st_spare3", FInt64;
"st_spare4", FInt64;
"st_spare5", FInt64;
"st_spare6", FInt64;
];
s_camel_name = "StatNS" };
{ defaults with
s_name = "statvfs";
s_cols = [
"bsize", FInt64;
"frsize", FInt64;
"blocks", FInt64;
"bfree", FInt64;
"bavail", FInt64;
"files", FInt64;
"ffree", FInt64;
"favail", FInt64;
"fsid", FInt64;
"flag", FInt64;
"namemax", FInt64;
];
s_camel_name = "StatVFS" };
(* Column names in dirent structure. *)
{ defaults with
s_name = "dirent";
s_cols = [
"ino", FInt64;
(* 'b' 'c' 'd' 'f' (FIFO) 'l' 'r' (regular file) 's' 'u' '?' *)
"ftyp", FChar;
"name", FString;
];
s_camel_name = "Dirent" };
(* Version numbers. *)
{ defaults with
s_name = "version";
s_cols = [
"major", FInt64;
"minor", FInt64;
"release", FInt64;
"extra", FString;
];
s_camel_name = "Version" };
(* Extended attribute. *)
{ defaults with
s_name = "xattr";
s_cols = [
"attrname", FString;
"attrval", FBuffer;
];
s_camel_name = "XAttr" };
(* Inotify events. *)
{ defaults with
s_name = "inotify_event";
s_cols = [
"in_wd", FInt64;
"in_mask", FUInt32;
"in_cookie", FUInt32;
"in_name", FString;
];
s_camel_name = "INotifyEvent" };
(* Partition table entry. *)
{ defaults with
s_name = "partition";
s_cols = [
"part_num", FInt32;
"part_start", FBytes;
"part_end", FBytes;
"part_size", FBytes;
];
s_camel_name = "Partition" };
(* Application. *)
{ defaults with
s_name = "application";
s_cols = [
"app_name", FString;
"app_display_name", FString;
"app_epoch", FInt32;
"app_version", FString;
"app_release", FString;
"app_install_path", FString;
"app_trans_path", FString;
"app_publisher", FString;
"app_url", FString;
"app_source_package", FString;
"app_summary", FString;
"app_description", FString;
];
s_camel_name = "Application" };
(* Application v2. *)
{ defaults with
s_name = "application2";
s_cols = [
"app2_name", FString;
"app2_display_name", FString;
"app2_epoch", FInt32;
"app2_version", FString;
"app2_release", FString;
"app2_arch", FString;
"app2_install_path", FString;
"app2_trans_path", FString;
"app2_publisher", FString;
"app2_url", FString;
"app2_source_package", FString;
"app2_summary", FString;
"app2_description", FString;
"app2_spare1", FString;
"app2_spare2", FString;
"app2_spare3", FString;
"app2_spare4", FString;
];
s_camel_name = "Application2" };
(* ISO primary volume descriptor. *)
{ defaults with
s_name = "isoinfo";
s_cols = [
"iso_system_id", FString;
"iso_volume_id", FString;
"iso_volume_space_size", FUInt32;
"iso_volume_set_size", FUInt32;
"iso_volume_sequence_number", FUInt32;
"iso_logical_block_size", FUInt32;
"iso_volume_set_id", FString;
"iso_publisher_id", FString;
"iso_data_preparer_id", FString;
"iso_application_id", FString;
"iso_copyright_file_id", FString;
"iso_abstract_file_id", FString;
"iso_bibliographic_file_id", FString;
"iso_volume_creation_t", FInt64;
"iso_volume_modification_t", FInt64;
"iso_volume_expiration_t", FInt64;
"iso_volume_effective_t", FInt64;
];
s_camel_name = "ISOInfo" };
(* /proc/mdstat information. See linux.git/drivers/md/md.c *)
{ defaults with
s_name = "mdstat";
s_cols = [
"mdstat_device", FString;
"mdstat_index", FInt32;
"mdstat_flags", FString;
];
s_camel_name = "MDStat" };
(* btrfs subvolume list output *)
{ defaults with
s_name = "btrfssubvolume";
s_cols = [
"btrfssubvolume_id", FUInt64;
"btrfssubvolume_top_level_id", FUInt64;
"btrfssubvolume_path", FString;
];
s_camel_name = "BTRFSSubvolume" };
(* btrfs qgroup show output *)
{ defaults with
s_name = "btrfsqgroup";
s_cols = [
"btrfsqgroup_id", FString;
"btrfsqgroup_rfer", FUInt64;
"btrfsqgroup_excl", FUInt64;
];
s_camel_name = "BTRFSQgroup" };
(* btrfs balance status output *)
{ defaults with
s_name = "btrfsbalance";
s_cols = [
"btrfsbalance_status", FString;
"btrfsbalance_total", FUInt64;
"btrfsbalance_balanced", FUInt64;
"btrfsbalance_considered", FUInt64;
"btrfsbalance_left", FUInt64;
];
s_camel_name = "BTRFSBalance" };
(* btrfs scrub status output *)
{ defaults with
s_name = "btrfsscrub";
s_cols = [
"btrfsscrub_data_extents_scrubbed", FUInt64;
"btrfsscrub_tree_extents_scrubbed", FUInt64;
"btrfsscrub_data_bytes_scrubbed", FUInt64;
"btrfsscrub_tree_bytes_scrubbed", FUInt64;
"btrfsscrub_read_errors", FUInt64;
"btrfsscrub_csum_errors", FUInt64;
"btrfsscrub_verify_errors", FUInt64;
"btrfsscrub_no_csum", FUInt64;
"btrfsscrub_csum_discards", FUInt64;
"btrfsscrub_super_errors", FUInt64;
"btrfsscrub_malloc_errors", FUInt64;
"btrfsscrub_uncorrectable_errors", FUInt64;
"btrfsscrub_unverified_errors", FUInt64;
"btrfsscrub_corrected_errors", FUInt64;
"btrfsscrub_last_physical", FUInt64;
];
s_camel_name = "BTRFSScrub" };
(* XFS info descriptor. *)
{ defaults with
s_name = "xfsinfo";
s_cols = [
"xfs_mntpoint", FString;
"xfs_inodesize", FUInt32;
"xfs_agcount", FUInt32;
"xfs_agsize", FUInt32;
"xfs_sectsize", FUInt32;
"xfs_attr", FUInt32;
"xfs_blocksize", FUInt32;
"xfs_datablocks", FUInt64;
"xfs_imaxpct", FUInt32;
"xfs_sunit", FUInt32;
"xfs_swidth", FUInt32;
"xfs_dirversion", FUInt32;
"xfs_dirblocksize", FUInt32;
"xfs_cimode", FUInt32;
"xfs_logname", FString;
"xfs_logblocksize", FUInt32;
"xfs_logblocks", FUInt32;
"xfs_logversion", FUInt32;
"xfs_logsectsize", FUInt32;
"xfs_logsunit", FUInt32;
"xfs_lazycount", FUInt32;
"xfs_rtname", FString;
"xfs_rtextsize", FUInt32;
"xfs_rtblocks", FUInt64;
"xfs_rtextents", FUInt64;
];
s_camel_name = "XFSInfo" };
(* utsname *)
{ defaults with
s_name = "utsname";
s_cols = [
"uts_sysname", FString;
"uts_release", FString;
"uts_version", FString;
"uts_machine", FString;
];
s_camel_name = "UTSName" };
(* Used by hivex_* APIs to return a list of int64 handles (node
* handles and value handles). Note that we can't add a putative
* 'RInt64List' type to the generator because we need to return
* length and size, and RStructList does this already.
*)
{ defaults with
s_name = "hivex_node";
s_cols = [
"hivex_node_h", FInt64;
];
s_camel_name = "HivexNode" };
{ defaults with
s_name = "hivex_value";
s_cols = [
"hivex_value_h", FInt64;
];
s_camel_name = "HivexValue" };
{ defaults with
s_name = "internal_mountable";
s_internal = true;
s_cols = [
"im_type", FInt32;
"im_device", FString;
"im_volume", FString;
];
s_camel_name = "InternalMountable";
};
(* The Sleuth Kit directory entry information. *)
{ defaults with
s_name = "tsk_dirent";
s_cols = [
"tsk_inode", FUInt64;
"tsk_type", FChar;
"tsk_size", FInt64;
"tsk_name", FString;
"tsk_flags", FUInt32;
"tsk_atime_sec", FInt64;
"tsk_atime_nsec", FInt64;
"tsk_mtime_sec", FInt64;
"tsk_mtime_nsec", FInt64;
"tsk_ctime_sec", FInt64;
"tsk_ctime_nsec", FInt64;
"tsk_crtime_sec", FInt64;
"tsk_crtime_nsec", FInt64;
"tsk_nlink", FInt64;
"tsk_link", FString;
"tsk_spare1", FInt64;
];
s_camel_name = "TSKDirent" };
(* Yara detection information. *)
{ defaults with
s_name = "yara_detection";
s_cols = [
"yara_name", FString;
"yara_rule", FString;
];
s_camel_name = "YaraDetection" };
] (* end of structs *)
let lookup_struct name =
try List.find (fun { s_name = n } -> n = name) structs
with Not_found ->
failwithf
"lookup_struct: no structs entry corresponding to %s" name
let camel_name_of_struct name = (lookup_struct name).s_camel_name
let cols_of_struct name = (lookup_struct name).s_cols
let compare_structs { s_name = n1 } { s_name = n2 } = compare n1 n2
let external_structs =
List.sort compare_structs (List.filter (fun x -> not x.s_internal) structs)
let internal_structs =
List.sort compare_structs (List.filter (fun x -> x.s_internal) structs)
|
OCaml
|
SUBROUTINE JACOBI(ANS,RHS,NN,MM,P,Q, ME,ME_P,ME_Q, TOL)
IMPLICIT NONE
INTEGER NN,MM,P,Q, ME,ME_P,ME_Q
REAL ANS(0:NN+1,0:MM+1)[0:P-1,0:*], &
RHS(0:NN+1,0:MM+1)[0:P-1,0:*]
REAL TOL
!
! Solve Helmholtz's equation using Jacobi iteration.
!
! See: http://www.netlib.org/linalg/html_templates/Templates.html
! R. Barrett et. al. (1994). Templates for the solution of
! Linear Systems: Building Blocks for Iterative Methods, 2nd
! Edition. SIAM. Philadelphia, PA.
!
! Equation solved is the 5-point stencil:
! -1
! -1 6 -1
! -1
! over a doubly periodic region.
!
! SPMD domain decomposition - each image "owns" a (1:NN,1:MM) piece
! of the (1:NN*P,1:MM*Q) array which is therefore distributed across
! all images. A halo is added around (1:NN,1:MM), so computations
! can always use local arrays.
!
INTEGER I,ITERATIONS,J,ME_PM,ME_PP,ME_QM,ME_QP,NEIGHBORS(5)
REAL PMAXI,RESID_MAX
REAL WRK(1:NN,1:MM)
REAL, SAVE :: PMAX[*]
ME_QP = MOD(ME_Q+1+Q,Q) ! north
ME_QM = MOD(ME_Q-1+Q,Q) ! south
ME_PP = MOD(ME_P+1+P,P) ! east
ME_PM = MOD(ME_P-1+P,P) ! west
IF (MIN(P,Q) >= 3) THEN ! list of neighboring images
NEIGHBORS = (/ ME, ME_P + 1 + P*ME_QM, ME_P + 1 + P*ME_QP, &
ME_PM + 1 + P*ME_Q, ME_PP + 1 + P*ME_Q /)
ENDIF
DO ITERATIONS= 1,999
!
! update halo.
!
IF (MIN(P,Q) >= 3) THEN
SYNC IMAGES( NEIGHBORS )
!SYNC ALL
ELSE
SYNC ALL
ENDIF ! neighboring images have ANS(1:NN,1:MM) up to date
ANS(1:NN,MM+1) = ANS(1:NN,1 )[ME_P, ME_QP] ! north
ANS(1:NN, 0) = ANS(1:NN, MM)[ME_P, ME_QM] ! south
ANS(NN+1,1:MM) = ANS(1, 1:MM)[ME_PP,ME_Q ] ! east
ANS( 0,1:MM) = ANS( NN,1:MM)[ME_PM,ME_Q ] ! west
!
! 5-point stencil is correct everywhere, since halo is up to date.
!
DO J= 1,MM
DO I= 1,NN
WRK(I,J) = (1.0/6.0) * (RHS(I, J ) + &
ANS(I-1,J ) + &
ANS(I+1,J ) + &
ANS(I, J-1) + &
ANS(I, J+1) )
ENDDO
ENDDO
!
! calculate global maximum residual error.
!
PMAX = MAXVAL( ABS( WRK(1:NN,1:MM) - ANS(1:NN,1:MM) ) )
SYNC ALL ! protects both PMAX and ANS
IF (ME == 1) THEN
DO I= 2,NUM_IMAGES()
PMAXI = PMAX[I]
PMAX = MAX( PMAX, PMAXI )
ENDDO
ENDIF
!CALL SYNC_ALL( WAIT=(/1/) ) ! protects PMAX[1]
IF (ME == 1) THEN
SYNC IMAGES( * )
ELSE
SYNC IMAGES( 1 )
ENDIF
RESID_MAX = PMAX[1]
!
! update the result, note that above SYNC_ALL() guarentees that
! the old ANS(1:NN,1:MM) is no longer needed for halo update.
!
ANS(1:NN,1:MM) = WRK(1:NN,1:MM)
!
! exit if converged.
!
IF (RESID_MAX <= TOL) THEN
EXIT
ENDIF
ENDDO
IF (ME == 1) THEN
WRITE(6,"('After',I4,' iterations, maximum residual is',F12.8)") &
ITERATIONS,PMAX
! CALL SYNC_FILE(6)
CALL FLUSH(6)
ENDIF
RETURN
END SUBROUTINE JACOBI
PROGRAM TEST_JACOBI
IMPLICIT NONE
!
! Example implementation of Jacobi iterative method for Helmholtz's equation
! using SPMD 2-D domain decomposition and Co-Array Fortran. Note that
! Jacobi has very poor convergence properties, but it is scalable and easy
! to understand and program. Use a better scheme, such as Red-Black SOR or
! Preconditioned Conjugate Gradients, for solving real problems.
!
! See: http://www.netlib.org/linalg/html_templates/Templates.html
! R. Barrett et. al. (1994). Templates for the solution of
! Linear Systems: Building Blocks for Iterative Methods, 2nd
! Edition. SIAM. Philadelphia, PA.
!
! Equation solved is the 5-point stencil:
! -1
! -1 6 -1
! -1
! over a doubly periodic region with a point source right hand side.
!
! Input: N,M,P,Q
!
! N = 1st dimension of entire rectangular grid
! M = 2nd dimension of entire rectangular grid
! P = number of nodes in 1st dimension, N/P an integer
! Q = number of nodes in 2nd dimension, M/Q an integer
! Total number of nodes = P*Q, must be NUM_IMAGES()
!
! Correctness is confirmed by printing the solution for two locations
! of the point source on the right hand side (solutions should be
! identical after a shift).
!
! Alan. J. Wallcraft, Naval Research Laboratory, October 1998.
!
INTERFACE ! needed because jacobi has co-array dummy arguments
SUBROUTINE JACOBI(ANS,RHS,NN,MM,P,Q, ME,ME_P,ME_Q, TOL)
INTEGER NN,MM,P,Q, ME,ME_P,ME_Q
REAL ANS(0:NN+1,0:MM+1)[0:P-1,0:*], &
RHS(0:NN+1,0:MM+1)[0:P-1,0:*]
REAL TOL
END SUBROUTINE JACOBI
END INTERFACE
INTEGER(KIND=8) :: ST, ET, RES
REAL(KIND=8) :: TT,RTMP
INTEGER :: NARGS
INTEGER :: N,M,P,Q
INTEGER :: I1,II1,IP,IQ,J1,JJ1,ME,ME_P,ME_Q,MM,NN
INTEGER :: TICKS1, TICKS2, START_TIME, END_TIME, RATE
INTEGER, SAVE :: IN(4)[*]
REAL, ALLOCATABLE :: ANS(:,:)[:,:],RHS(:,:)[:,:]
REAL, ALLOCATABLE :: GLOBAL_ANS(:,:)
CHARACTER (LEN=20) :: BUFFER
ME = THIS_IMAGE()
IF (ME == 1) THEN
NARGS = COMMAND_ARGUMENT_COUNT()
IF (NARGS == 0) THEN
WRITE(*,*) 'Solve Helmholtz equation via Jacobi iteration'
WRITE(*,*)'N = 1st dimension of entire rectangular grid'
WRITE(*,*)'M = 2nd dimension of entire rectangular grid'
WRITE(*,*)'P = number of nodes in 1st dimension, N/P an integer'
WRITE(*,*)'Q = number of nodes in 2nd dimension, M/Q an integer'
WRITE(*,*)'Total number of nodes = P*Q, must be NUM_IMAGES()'
WRITE(*,'(a)',advance='no') 'Enter N, M, P, and Q: '
READ(5,*) IN(1:4)
! Fill up IN(:) with a sample input.
!IN(1:4) = (/1000,1000,1,(NUM_IMAGES()/1)/)
ELSE
call getarg(1,BUFFER)
READ(BUFFER,*) IN(1)
call getarg(2,BUFFER)
READ(BUFFER,*) IN(2)
call getarg(3,BUFFER)
READ(BUFFER,*) IN(3)
call getarg(4,BUFFER)
READ(BUFFER,*) IN(4)
END IF
END IF
IF (ME == 1) THEN
SYNC IMAGES( * )
ELSE
SYNC IMAGES( 1 )
ENDIF
N = IN(1)[1]
M = IN(2)[1]
P = IN(3)[1]
Q = IN(4)[1]
IF ((N/P)*P /= N .OR. (M/Q)*Q /= M .OR. P*Q /= NUM_IMAGES()) THEN
IF (ME == 1) THEN
WRITE(6,*) 'BAD INPUT VALUES'
CALL FLUSH(6)
ENDIF
SYNC ALL
STOP
ENDIF
NN = N/P
MM = M/Q
ME_Q = (ME-1)/P ! ANS(1:NN,1:MM)[ME_P,ME_Q] holds
ME_P = (ME-1) - ME_Q*P ! the local piece of the global array
SYNC ALL
!
! allocate arrays and co-arrays.
!
IF (ME == 1) THEN
ALLOCATE(GLOBAL_ANS(N,M))
ENDIF
ALLOCATE(ANS(0:NN+1,0:MM+1)[0:P-1,0:*]) ! include a halo
ALLOCATE(RHS(0:NN+1,0:MM+1)[0:P-1,0:*]) ! around (1:NN,1:MM)
!
! point source in center of global array.
!
IF (ME == 1) THEN
CALL SYSTEM_CLOCK(START_TIME, RATE)
ENDIF
I1 = N/2
J1 = M/2
II1 = I1 - ME_P*NN
JJ1 = J1 - ME_Q*MM
RHS(:,:) = 0.0 ! rsh is mostly zero
IF (II1 >= 1 .AND. II1 <= NN .AND. &
JJ1 >= 1 .AND. JJ1 <= MM ) THEN
RHS(II1,JJ1) = 1.0 ! with single non-zero element
ENDIF
ANS(:,:) = 0.0 ! 1st guess answer is zero
CALL JACOBI(ANS,RHS,NN,MM,P,Q, ME,ME_P,ME_Q, 1.E-6)
SYNC ALL
IF (ME == 1) THEN
DO IQ= 0,Q-1
DO IP= 0,P-1
GLOBAL_ANS(IP*NN+1:IP*NN+NN,IQ*MM+1:IQ*MM+MM) = &
ANS(1:NN,1:MM)[IP,IQ]
ENDDO
ENDDO
CALL SYSTEM_CLOCK(END_TIME)
TICKS1=END_TIME-START_TIME
WRITE(6,*) 'Point source in center of global array'
WRITE(6,"('ANS.I = ',9F8.5)") &
GLOBAL_ANS(I1,MOD(J1-1+M-M/8,M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M-5, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M-3, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M-1, M)+1), &
GLOBAL_ANS(I1,J1), &
GLOBAL_ANS(I1,MOD(J1-1+M+1, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M+3, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M+5, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M+M/8,M)+1)
WRITE(6,"('ANS.J = ',9F8.5)") &
GLOBAL_ANS(MOD(I1-1+N-N/8,N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N-5, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N-3, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N-1, N)+1,J1), &
GLOBAL_ANS(I1,J1), &
GLOBAL_ANS(MOD(I1-1+N+1, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N+3, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N+5, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N+N/8,N)+1,J1)
CALL FLUSH(6)
ENDIF
IF (ME == 1) THEN
SYNC IMAGES( * )
ELSE
SYNC IMAGES( 1 )
ENDIF
IF (ME == 1) THEN
CALL SYSTEM_CLOCK(START_TIME, RATE)
ENDIF
!
! point source at first point of global array.
!
I1 = 1
J1 = 1
II1 = I1 - ME_P*NN
JJ1 = J1 - ME_Q*MM
RHS(:,:) = 0.0 ! rsh is mostly zero
IF (II1 >= 1 .AND. II1 <= NN .AND. &
JJ1 >= 1 .AND. JJ1 <= MM ) THEN
RHS(II1,JJ1) = 1.0 ! with single non-zero element
ENDIF
ANS(:,:) = 0.0 ! 1st guess answer is zero
CALL JACOBI(ANS,RHS,NN,MM,P,Q, ME,ME_P,ME_Q, 1.E-6)
SYNC ALL
if (ME == 1) THEN
ENDIF
IF (ME == 1) THEN
DO IQ= 0,Q-1
DO IP= 0,P-1
GLOBAL_ANS(IP*NN+1:IP*NN+NN,IQ*MM+1:IQ*MM+MM) = &
ANS(1:NN,1:MM)[IP,IQ]
ENDDO
ENDDO
CALL SYSTEM_CLOCK(END_TIME)
TICKS2=END_TIME-START_TIME
WRITE(6,*) 'Point source at first point of global array'
WRITE(6,"('ANS.I = ',9F8.5)") &
GLOBAL_ANS(I1,MOD(J1-1+M-M/8,M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M-5, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M-3, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M-1, M)+1), &
GLOBAL_ANS(I1,J1), &
GLOBAL_ANS(I1,MOD(J1-1+M+1, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M+3, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M+5, M)+1), &
GLOBAL_ANS(I1,MOD(J1-1+M+M/8,M)+1)
WRITE(6,"('ANS.J = ',9F8.5)") &
GLOBAL_ANS(MOD(I1-1+N-N/8,N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N-5, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N-3, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N-1, N)+1,J1), &
GLOBAL_ANS(I1,J1), &
GLOBAL_ANS(MOD(I1-1+N+1, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N+3, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N+5, N)+1,J1), &
GLOBAL_ANS(MOD(I1-1+N+N/8,N)+1,J1)
CALL FLUSH(6)
ENDIF
if (ME == 1) THEN
SYNC IMAGES( * )
write(*, '(//A20,I8,A)') "clock rate = ", RATE, " ticks/s"
write(*, '(A20,I8)') "ticks = ", (TICKS1+TICKS2)
write(*, '(A20,F8.2,A)') "elapsed time = ", &
& (TICKS1+TICKS2)/(1.0*rate), " seconds"
ELSE
SYNC IMAGES( 1 )
ENDIF
END PROGRAM TEST_JACOBI
|
Fortran Free Form
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.tools.ant.taskdefs;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.Driver;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Properties;
import org.apache.tools.ant.AntClassLoader;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.types.Reference;
/**
* Handles JDBC configuration needed by SQL type tasks.
* <p>
* The following example class prints the contents of the first column of each row in TableName.
*</p>
*<code><pre>
package examples;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.taskdefs.JDBCTask;
public class SQLExampleTask extends JDBCTask {
private String tableName;
public void execute() throws BuildException {
Connection conn = getConnection();
Statement stmt=null;
try {
if (tableName == null) {
throw new BuildException("TableName must be specified",location);
}
String sql = "SELECT * FROM "+tableName;
stmt= conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);
while (rs.next()) {
log(rs.getObject(1).toString());
}
} catch (SQLException e) {
} finally {
if (stmt != null) {
try {stmt.close();}catch (SQLException ingore) {}
}
if (conn != null) {
try {conn.close();}catch (SQLException ingore) {}
}
}
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
}
</pre></code>
* @since Ant 1.5
*
*/
public abstract class JDBCTask extends Task {
private static final int HASH_TABLE_SIZE = 3;
/**
* Used for caching loaders / driver. This is to avoid
* getting an OutOfMemoryError when calling this task
* multiple times in a row.
*/
private static Hashtable loaderMap = new Hashtable(HASH_TABLE_SIZE);
private boolean caching = true;
private Path classpath;
private AntClassLoader loader;
/**
* Autocommit flag. Default value is false
*/
private boolean autocommit = false;
/**
* DB driver.
*/
private String driver = null;
/**
* DB url.
*/
private String url = null;
/**
* User name.
*/
private String userId = null;
/**
* Password
*/
private String password = null;
/**
* RDBMS Product needed for this SQL.
**/
private String rdbms = null;
/**
* RDBMS Version needed for this SQL.
**/
private String version = null;
/**
* whether the task fails when ant fails to connect to the database.
* @since Ant 1.8.0
*/
private boolean failOnConnectionError = true;
/**
* Additional properties to put into the JDBC connection string.
*
* @since Ant 1.8.0
*/
private List/*<Property>*/ connectionProperties = new ArrayList();
/**
* Sets the classpath for loading the driver.
* @param classpath The classpath to set
*/
public void setClasspath(Path classpath) {
this.classpath = classpath;
}
/**
* Caching loaders / driver. This is to avoid
* getting an OutOfMemoryError when calling this task
* multiple times in a row; default: true
* @param enable a <code>boolean</code> value
*/
public void setCaching(boolean enable) {
caching = enable;
}
/**
* Add a path to the classpath for loading the driver.
* @return a path to be configured
*/
public Path createClasspath() {
if (this.classpath == null) {
this.classpath = new Path(getProject());
}
return this.classpath.createPath();
}
/**
* Set the classpath for loading the driver
* using the classpath reference.
* @param r a reference to a classpath
*/
public void setClasspathRef(Reference r) {
createClasspath().setRefid(r);
}
/**
* Class name of the JDBC driver; required.
* @param driver The driver to set
*/
public void setDriver(String driver) {
this.driver = driver.trim();
}
/**
* Sets the database connection URL; required.
* @param url The url to set
*/
public void setUrl(String url) {
this.url = url;
}
/**
* Sets the password; required.
* @param password The password to set
*/
public void setPassword(String password) {
this.password = password;
}
/**
* Auto commit flag for database connection;
* optional, default false.
* @param autocommit The autocommit to set
*/
public void setAutocommit(boolean autocommit) {
this.autocommit = autocommit;
}
/**
* Execute task only if the lower case product name
* of the DB matches this
* @param rdbms The rdbms to set
*/
public void setRdbms(String rdbms) {
this.rdbms = rdbms;
}
/**
* Sets the version string, execute task only if
* rdbms version match; optional.
* @param version The version to set
*/
public void setVersion(String version) {
this.version = version;
}
/**
* whether the task should cause the build to fail if it cannot
* connect to the database.
* @since Ant 1.8.0
*/
public void setFailOnConnectionError(boolean b) {
failOnConnectionError = b;
}
/**
* Verify we are connected to the correct RDBMS
* @param conn the jdbc connection
* @return true if we are connected to the correct RDBMS
*/
protected boolean isValidRdbms(Connection conn) {
if (rdbms == null && version == null) {
return true;
}
try {
DatabaseMetaData dmd = conn.getMetaData();
if (rdbms != null) {
String theVendor = dmd.getDatabaseProductName().toLowerCase();
log("RDBMS = " + theVendor, Project.MSG_VERBOSE);
if (theVendor == null || theVendor.indexOf(rdbms) < 0) {
log("Not the required RDBMS: " + rdbms, Project.MSG_VERBOSE);
return false;
}
}
if (version != null) {
String theVersion = dmd.getDatabaseProductVersion().toLowerCase(Locale.ENGLISH);
log("Version = " + theVersion, Project.MSG_VERBOSE);
if (theVersion == null
|| !(theVersion.startsWith(version)
|| theVersion.indexOf(" " + version) >= 0)) {
log("Not the required version: \"" + version + "\"", Project.MSG_VERBOSE);
return false;
}
}
} catch (SQLException e) {
// Could not get the required information
log("Failed to obtain required RDBMS information", Project.MSG_ERR);
return false;
}
return true;
}
/**
* Get the cache of loaders and drivers.
* @return a hashtable
*/
protected static Hashtable getLoaderMap() {
return loaderMap;
}
/**
* Get the classloader used to create a driver.
* @return the classloader
*/
protected AntClassLoader getLoader() {
return loader;
}
/**
* Additional properties to put into the JDBC connection string.
*
* @since Ant 1.8.0
*/
public void addConnectionProperty(Property var) {
connectionProperties.add(var);
}
/**
* Creates a new Connection as using the driver, url, userid and password
* specified.
*
* The calling method is responsible for closing the connection.
*
* @return Connection the newly created connection or null if the
* connection failed and failOnConnectionError is false.
* @throws BuildException if the UserId/Password/Url is not set or there
* is no suitable driver or the driver fails to load.
*/
protected Connection getConnection() throws BuildException {
if (userId == null) {
throw new BuildException("UserId attribute must be set!", getLocation());
}
if (password == null) {
throw new BuildException("Password attribute must be set!", getLocation());
}
if (url == null) {
throw new BuildException("Url attribute must be set!", getLocation());
}
try {
log("connecting to " + getUrl(), Project.MSG_VERBOSE);
Properties info = new Properties();
info.put("user", getUserId());
info.put("password", getPassword());
for (Iterator props = connectionProperties.iterator();
props.hasNext(); ) {
Property p = (Property) props.next();
String name = p.getName();
String value = p.getValue();
if (name == null || value == null) {
log("Only name/value pairs are supported as connection"
+ " properties.", Project.MSG_WARN);
} else {
log("Setting connection property " + name + " to " + value,
Project.MSG_VERBOSE);
info.put(name, value);
}
}
Connection conn = getDriver().connect(getUrl(), info);
if (conn == null) {
// Driver doesn't understand the URL
throw new SQLException("No suitable Driver for " + url);
}
conn.setAutoCommit(autocommit);
return conn;
} catch (SQLException e) {
// failed to connect
if (!failOnConnectionError) {
log("Failed to connect: " + e.getMessage(), Project.MSG_WARN);
return null;
} else {
throw new BuildException(e, getLocation());
}
}
}
/**
* Gets an instance of the required driver.
* Uses the ant class loader and the optionally the provided classpath.
* @return Driver
* @throws BuildException
*/
private Driver getDriver() throws BuildException {
if (driver == null) {
throw new BuildException("Driver attribute must be set!", getLocation());
}
Driver driverInstance = null;
try {
Class dc;
if (classpath != null) {
// check first that it is not already loaded otherwise
// consecutive runs seems to end into an OutOfMemoryError
// or it fails when there is a native library to load
// several times.
// this is far from being perfect but should work
// in most cases.
synchronized (loaderMap) {
if (caching) {
loader = (AntClassLoader) loaderMap.get(driver);
}
if (loader == null) {
log("Loading " + driver
+ " using AntClassLoader with classpath "
+ classpath, Project.MSG_VERBOSE);
loader = getProject().createClassLoader(classpath);
if (caching) {
loaderMap.put(driver, loader);
}
} else {
log("Loading " + driver
+ " using a cached AntClassLoader.",
Project.MSG_VERBOSE);
}
}
dc = loader.loadClass(driver);
} else {
log("Loading " + driver + " using system loader.",
Project.MSG_VERBOSE);
dc = Class.forName(driver);
}
driverInstance = (Driver) dc.newInstance();
} catch (ClassNotFoundException e) {
throw new BuildException(
"Class Not Found: JDBC driver " + driver + " could not be loaded",
e,
getLocation());
} catch (IllegalAccessException e) {
throw new BuildException(
"Illegal Access: JDBC driver " + driver + " could not be loaded",
e,
getLocation());
} catch (InstantiationException e) {
throw new BuildException(
"Instantiation Exception: JDBC driver " + driver + " could not be loaded",
e,
getLocation());
}
return driverInstance;
}
/**
* Set the caching attribute.
* @param value a <code>boolean</code> value
*/
public void isCaching(boolean value) {
caching = value;
}
/**
* Gets the classpath.
* @return Returns a Path
*/
public Path getClasspath() {
return classpath;
}
/**
* Gets the autocommit.
* @return Returns a boolean
*/
public boolean isAutocommit() {
return autocommit;
}
/**
* Gets the url.
* @return Returns a String
*/
public String getUrl() {
return url;
}
/**
* Gets the userId.
* @return Returns a String
*/
public String getUserId() {
return userId;
}
/**
* Set the user name for the connection; required.
* @param userId The userId to set
*/
public void setUserid(String userId) {
this.userId = userId;
}
/**
* Gets the password.
* @return Returns a String
*/
public String getPassword() {
return password;
}
/**
* Gets the rdbms.
* @return Returns a String
*/
public String getRdbms() {
return rdbms;
}
/**
* Gets the version.
* @return Returns a String
*/
public String getVersion() {
return version;
}
}
|
Java
|
-- usar dois .. para concatenar em lua
a = "ola"
b = "tudo bem"
c = a..b
print(c)
|
Lua
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FGSL: api/array.finc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">FGSL
</div>
<div id="projectbrief">Fortran interface for the GNU scientific library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_0188a3e6da905bc60aceb35bf790b8c9.html">api</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions/Subroutines</a> </div>
<div class="headertitle">
<div class="title">array.finc File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="api_2array_8finc__dep__incl.png" border="0" usemap="#api_2array_8fincdep" alt=""/></div>
<map name="api_2array_8fincdep" id="api_2array_8fincdep">
<area shape="rect" title=" " alt="" coords="5,5,111,32"/>
<area shape="rect" href="fgsl_8F90.html" title=" " alt="" coords="21,80,95,107"/>
</map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions/Subroutines</h2></td></tr>
<tr class="memitem:aab894473a41ef4d6d94332c5d5381a43"><td class="memItemLeft" align="right" valign="top">type(fgsl_vector) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#aab894473a41ef4d6d94332c5d5381a43">fgsl_vector_init</a> (array, stride, stat)</td></tr>
<tr class="memdesc:aab894473a41ef4d6d94332c5d5381a43"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__init.html">fgsl_vector_init</a>. <a href="api_2array_8finc.html#aab894473a41ef4d6d94332c5d5381a43">More...</a><br /></td></tr>
<tr class="separator:aab894473a41ef4d6d94332c5d5381a43"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a05104ebdf47ef11b1e9b18d20efc79f8"><td class="memItemLeft" align="right" valign="top">type(fgsl_vector_int) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a05104ebdf47ef11b1e9b18d20efc79f8">fgsl_vector_int_init</a> (array, stride, stat)</td></tr>
<tr class="separator:a05104ebdf47ef11b1e9b18d20efc79f8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7dd40096cddb6ad3a8a3fe213bb81304"><td class="memItemLeft" align="right" valign="top">type(fgsl_vector) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a7dd40096cddb6ad3a8a3fe213bb81304">fgsl_vector_init_legacy</a> (type)</td></tr>
<tr class="memdesc:a7dd40096cddb6ad3a8a3fe213bb81304"><td class="mdescLeft"> </td><td class="mdescRight">Legacy specific <a class="el" href="interfacefgsl__vector__init.html">fgsl_vector_init</a> of for GSL vector initialization. <a href="api_2array_8finc.html#a7dd40096cddb6ad3a8a3fe213bb81304">More...</a><br /></td></tr>
<tr class="separator:a7dd40096cddb6ad3a8a3fe213bb81304"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa6c28c6cc37d807bc8bc0fcf4ab7ad57"><td class="memItemLeft" align="right" valign="top">integer(fgsl_int) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#aa6c28c6cc37d807bc8bc0fcf4ab7ad57">fgsl_vector_align</a> (array, len, fvec, size, offset, stride)</td></tr>
<tr class="memdesc:aa6c28c6cc37d807bc8bc0fcf4ab7ad57"><td class="mdescLeft"> </td><td class="mdescRight">Legacy function to wrap a rank 1 Fortran array slice inside a double precision real GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__align.html">fgsl_vector_align</a>. It is recommended to update codes using this to use the new <a class="el" href="interfacefgsl__vector__init.html">fgsl_vector_init</a> specific instead. <a href="api_2array_8finc.html#aa6c28c6cc37d807bc8bc0fcf4ab7ad57">More...</a><br /></td></tr>
<tr class="separator:aa6c28c6cc37d807bc8bc0fcf4ab7ad57"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa0eec9fee71c25b89b304a4d5fea9268"><td class="memItemLeft" align="right" valign="top">real(fgsl_double) function, dimension(:), pointer </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#aa0eec9fee71c25b89b304a4d5fea9268">fgsl_vector_to_fptr</a> (fvec)</td></tr>
<tr class="memdesc:aa0eec9fee71c25b89b304a4d5fea9268"><td class="mdescLeft"> </td><td class="mdescRight">Function to associate a Fortran pointer with a GSL vector object. <a href="api_2array_8finc.html#aa0eec9fee71c25b89b304a4d5fea9268">More...</a><br /></td></tr>
<tr class="separator:aa0eec9fee71c25b89b304a4d5fea9268"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a68a102c31c4c2b108911a42f5bdd8dda"><td class="memItemLeft" align="right" valign="top">integer(fgsl_int) function, dimension(:), pointer </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a68a102c31c4c2b108911a42f5bdd8dda">fgsl_vector_int_to_fptr</a> (fvec)</td></tr>
<tr class="separator:a68a102c31c4c2b108911a42f5bdd8dda"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3f528d8f3b1aa8218339bc8fdb41497c"><td class="memItemLeft" align="right" valign="top">integer(fgsl_int) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a3f528d8f3b1aa8218339bc8fdb41497c">fgsl_vector_pointer_align</a> (ptr, fvec)</td></tr>
<tr class="memdesc:a3f528d8f3b1aa8218339bc8fdb41497c"><td class="mdescLeft"> </td><td class="mdescRight">Legacy function to associate a Fortran pointer with the data stored inside a GSL vector object. Codes should be updated to use fgsl_vector_ptr. This is invoked via the generic <a class="el" href="interfacefgsl__vector__align.html">fgsl_vector_align</a>. Objects of type <code>gsl_vector</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. <a href="api_2array_8finc.html#a3f528d8f3b1aa8218339bc8fdb41497c">More...</a><br /></td></tr>
<tr class="separator:a3f528d8f3b1aa8218339bc8fdb41497c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a740b61c719ee64b92abc804915115255"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a740b61c719ee64b92abc804915115255">fgsl_vector_to_array</a> (result, source)</td></tr>
<tr class="memdesc:a740b61c719ee64b92abc804915115255"><td class="mdescLeft"> </td><td class="mdescRight">The assignment operator (see <a class="el" href="generics_8finc.html">interface/generics.finc</a>) is overloaded to enable copying of the content of a GSL vector into a Fortran array. <a href="api_2array_8finc.html#a740b61c719ee64b92abc804915115255">More...</a><br /></td></tr>
<tr class="separator:a740b61c719ee64b92abc804915115255"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a900770fc4f4831abf928959477ba663f"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a900770fc4f4831abf928959477ba663f">fgsl_vector_free</a> (fvec)</td></tr>
<tr class="memdesc:a900770fc4f4831abf928959477ba663f"><td class="mdescLeft"> </td><td class="mdescRight">Free the resources inside a GSL vector object previously established by a call to <a class="el" href="api_2array_8finc.html#aab894473a41ef4d6d94332c5d5381a43" title="Initialize a GSL vector object. This is invoked via the generic fgsl_vector_init.">fgsl_vector_init()</a>. This is invoked via the generic <a class="el" href="interfacefgsl__vector__free.html">fgsl_vector_free</a>. <a href="api_2array_8finc.html#a900770fc4f4831abf928959477ba663f">More...</a><br /></td></tr>
<tr class="separator:a900770fc4f4831abf928959477ba663f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab250a847857ee8f8643c020075dcae15"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#ab250a847857ee8f8643c020075dcae15">fgsl_vector_int_free</a> (fvec)</td></tr>
<tr class="separator:ab250a847857ee8f8643c020075dcae15"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8e80ad86d191ff87ae459b78822d468d"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a8e80ad86d191ff87ae459b78822d468d">fgsl_vector_c_ptr</a> (res, src)</td></tr>
<tr class="separator:a8e80ad86d191ff87ae459b78822d468d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a804073922a322c29cd5be43410581ba4"><td class="memItemLeft" align="right" valign="top">logical function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a804073922a322c29cd5be43410581ba4">fgsl_vector_status</a> (vector)</td></tr>
<tr class="separator:a804073922a322c29cd5be43410581ba4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaa99b82233dfa6a11e7bbd6e3d034855"><td class="memItemLeft" align="right" valign="top">logical function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#aaa99b82233dfa6a11e7bbd6e3d034855">fgsl_vector_int_status</a> (vector)</td></tr>
<tr class="memdesc:aaa99b82233dfa6a11e7bbd6e3d034855"><td class="mdescLeft"> </td><td class="mdescRight">Inquire the size of a double precision real GSL vector object. <a href="api_2array_8finc.html#aaa99b82233dfa6a11e7bbd6e3d034855">More...</a><br /></td></tr>
<tr class="separator:aaa99b82233dfa6a11e7bbd6e3d034855"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a35a09f656acc547c7613501889490fc0"><td class="memItemLeft" align="right" valign="top">integer(fgsl_size_t) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a35a09f656acc547c7613501889490fc0">fgsl_sizeof_vector</a> (w)</td></tr>
<tr class="separator:a35a09f656acc547c7613501889490fc0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4518c72dfe4bb8682f367d064839f8da"><td class="memItemLeft" align="right" valign="top">type(fgsl_vector_complex) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a4518c72dfe4bb8682f367d064839f8da">fgsl_vector_complex_init_legacy</a> (type)</td></tr>
<tr class="memdesc:a4518c72dfe4bb8682f367d064839f8da"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a complex GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__init.html">fgsl_vector_init</a>. <a href="api_2array_8finc.html#a4518c72dfe4bb8682f367d064839f8da">More...</a><br /></td></tr>
<tr class="separator:a4518c72dfe4bb8682f367d064839f8da"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2e6c1d01b49ee0dc444cd3cf8943b918"><td class="memItemLeft" align="right" valign="top">type(fgsl_vector_complex) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a2e6c1d01b49ee0dc444cd3cf8943b918">fgsl_vector_complex_init</a> (array, stride, stat)</td></tr>
<tr class="separator:a2e6c1d01b49ee0dc444cd3cf8943b918"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad91319661b892e978cfc3da52b15b500"><td class="memItemLeft" align="right" valign="top">integer(fgsl_int) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#ad91319661b892e978cfc3da52b15b500">fgsl_vector_complex_align</a> (array, len, fvec, size, offset, stride)</td></tr>
<tr class="memdesc:ad91319661b892e978cfc3da52b15b500"><td class="mdescLeft"> </td><td class="mdescRight">Wrap a rank 1 Fortran array slice inside a double precision complex real GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__align.html">fgsl_vector_align</a>. <a href="api_2array_8finc.html#ad91319661b892e978cfc3da52b15b500">More...</a><br /></td></tr>
<tr class="separator:ad91319661b892e978cfc3da52b15b500"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0299f0feb175c085408bffdc001cb680"><td class="memItemLeft" align="right" valign="top">integer(fgsl_int) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a0299f0feb175c085408bffdc001cb680">fgsl_vector_complex_pointer_align</a> (ptr, fvec)</td></tr>
<tr class="memdesc:a0299f0feb175c085408bffdc001cb680"><td class="mdescLeft"> </td><td class="mdescRight">Associate a Fortran pointer with the data stored inside a GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__align.html">fgsl_vector_align</a>. Objects of type <code>gsl_vector_complex</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. <a href="api_2array_8finc.html#a0299f0feb175c085408bffdc001cb680">More...</a><br /></td></tr>
<tr class="separator:a0299f0feb175c085408bffdc001cb680"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac249c90d8dfd2e967e0e34de61f30c5c"><td class="memItemLeft" align="right" valign="top">complex(fgsl_double) function, dimension(:), pointer </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#ac249c90d8dfd2e967e0e34de61f30c5c">fgsl_vector_complex_to_fptr</a> (fvec)</td></tr>
<tr class="separator:ac249c90d8dfd2e967e0e34de61f30c5c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad9bc465224323cc4ecdcf56589bdfdbb"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#ad9bc465224323cc4ecdcf56589bdfdbb">fgsl_vector_complex_to_array</a> (result, source)</td></tr>
<tr class="memdesc:ad9bc465224323cc4ecdcf56589bdfdbb"><td class="mdescLeft"> </td><td class="mdescRight">The assignment operator (see <a class="el" href="generics_8finc.html">interface/generics.finc</a>) is overloaded to enable copying of the content of a complex GSL vector into a Fortran array. <a href="api_2array_8finc.html#ad9bc465224323cc4ecdcf56589bdfdbb">More...</a><br /></td></tr>
<tr class="separator:ad9bc465224323cc4ecdcf56589bdfdbb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3a8d76f2fe0bb4c9687f06e5e33671b8"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a3a8d76f2fe0bb4c9687f06e5e33671b8">fgsl_vector_complex_free</a> (fvec)</td></tr>
<tr class="memdesc:a3a8d76f2fe0bb4c9687f06e5e33671b8"><td class="mdescLeft"> </td><td class="mdescRight">Free the resources inside a complex GSL vector object previously established by a call to <a class="el" href="api_2array_8finc.html#a2e6c1d01b49ee0dc444cd3cf8943b918">fgsl_vector_complex_init()</a>. This is invoked via the generic <a class="el" href="interfacefgsl__vector__free.html">fgsl_vector_free</a>. <a href="api_2array_8finc.html#a3a8d76f2fe0bb4c9687f06e5e33671b8">More...</a><br /></td></tr>
<tr class="separator:a3a8d76f2fe0bb4c9687f06e5e33671b8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a07419ff1eb431e5a8bf628d31099e9a7"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a07419ff1eb431e5a8bf628d31099e9a7">fgsl_vector_complex_c_ptr</a> (res, src)</td></tr>
<tr class="separator:a07419ff1eb431e5a8bf628d31099e9a7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a04dbf95001922f560a73333ca3d00f81"><td class="memItemLeft" align="right" valign="top">logical function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a04dbf95001922f560a73333ca3d00f81">fgsl_vector_complex_status</a> (vector_complex)</td></tr>
<tr class="separator:a04dbf95001922f560a73333ca3d00f81"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af8cb8c5be9be9e6604200da0845dc18d"><td class="memItemLeft" align="right" valign="top">integer(fgsl_size_t) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#af8cb8c5be9be9e6604200da0845dc18d">fgsl_sizeof_vector_complex</a> (w)</td></tr>
<tr class="memdesc:af8cb8c5be9be9e6604200da0845dc18d"><td class="mdescLeft"> </td><td class="mdescRight">Inquire the size of a double precision complex GSL vector object. <a href="api_2array_8finc.html#af8cb8c5be9be9e6604200da0845dc18d">More...</a><br /></td></tr>
<tr class="separator:af8cb8c5be9be9e6604200da0845dc18d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3ef90d1a314b68cbd280341efc7855d5"><td class="memItemLeft" align="right" valign="top">type(fgsl_matrix) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a3ef90d1a314b68cbd280341efc7855d5">fgsl_matrix_init_legacy</a> (type)</td></tr>
<tr class="memdesc:a3ef90d1a314b68cbd280341efc7855d5"><td class="mdescLeft"> </td><td class="mdescRight">Legacy function to initialize a GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__init.html">fgsl_matrix_init</a>. <a href="api_2array_8finc.html#a3ef90d1a314b68cbd280341efc7855d5">More...</a><br /></td></tr>
<tr class="separator:a3ef90d1a314b68cbd280341efc7855d5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af692812070e853855a33171af82e0510"><td class="memItemLeft" align="right" valign="top">type(fgsl_matrix) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#af692812070e853855a33171af82e0510">fgsl_matrix_init</a> (array, n, m, stat)</td></tr>
<tr class="memdesc:af692812070e853855a33171af82e0510"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a rank 2 Fortran array to become associated with a double precision GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__init.html">fgsl_matrix_init</a>. <a href="api_2array_8finc.html#af692812070e853855a33171af82e0510">More...</a><br /></td></tr>
<tr class="separator:af692812070e853855a33171af82e0510"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae0c19c4453ce18db5e6415a047c3a59e"><td class="memItemLeft" align="right" valign="top">integer(fgsl_int) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#ae0c19c4453ce18db5e6415a047c3a59e">fgsl_matrix_align</a> (array, lda, n, m, fmat)</td></tr>
<tr class="memdesc:ae0c19c4453ce18db5e6415a047c3a59e"><td class="mdescLeft"> </td><td class="mdescRight">Legacy specific to wrap a rank 2 Fortran array inside a double precision real GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__align.html">fgsl_matrix_align</a>. <a href="api_2array_8finc.html#ae0c19c4453ce18db5e6415a047c3a59e">More...</a><br /></td></tr>
<tr class="separator:ae0c19c4453ce18db5e6415a047c3a59e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a54b17f056b272b74ae425a588e4653d5"><td class="memItemLeft" align="right" valign="top">integer(fgsl_int) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a54b17f056b272b74ae425a588e4653d5">fgsl_matrix_pointer_align</a> (ptr, fmat)</td></tr>
<tr class="memdesc:a54b17f056b272b74ae425a588e4653d5"><td class="mdescLeft"> </td><td class="mdescRight">Associate a Fortran pointer with the data stored inside a GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__align.html">fgsl_matrix_align</a>. Objects of type <code>gsl_matrix</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. <a href="api_2array_8finc.html#a54b17f056b272b74ae425a588e4653d5">More...</a><br /></td></tr>
<tr class="separator:a54b17f056b272b74ae425a588e4653d5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a911629de0bd305bf32a4be1dbd7be1e5"><td class="memItemLeft" align="right" valign="top">real(fgsl_double) function, dimension(:,:), pointer </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a911629de0bd305bf32a4be1dbd7be1e5">fgsl_matrix_to_fptr</a> (fmat)</td></tr>
<tr class="memdesc:a911629de0bd305bf32a4be1dbd7be1e5"><td class="mdescLeft"> </td><td class="mdescRight">Associate a Fortran pointer with the data stored inside a GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__to__fptr.html">fgsl_matrix_to_fptr</a>. Objects of type <code>gsl_matrix</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. <a href="api_2array_8finc.html#a911629de0bd305bf32a4be1dbd7be1e5">More...</a><br /></td></tr>
<tr class="separator:a911629de0bd305bf32a4be1dbd7be1e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a44e06325d8b322997dcf6ab28417dd4f"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a44e06325d8b322997dcf6ab28417dd4f">fgsl_matrix_to_array</a> (result, source)</td></tr>
<tr class="memdesc:a44e06325d8b322997dcf6ab28417dd4f"><td class="mdescLeft"> </td><td class="mdescRight">The assignment operator (see <a class="el" href="generics_8finc.html">interface/generics.finc</a>) is overloaded to enable copying of the content of a GSL matrix into a rank 2 Fortran array. <a href="api_2array_8finc.html#a44e06325d8b322997dcf6ab28417dd4f">More...</a><br /></td></tr>
<tr class="separator:a44e06325d8b322997dcf6ab28417dd4f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b551f436f076593a8a828cd266e372d"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a0b551f436f076593a8a828cd266e372d">fgsl_matrix_free</a> (fvec)</td></tr>
<tr class="memdesc:a0b551f436f076593a8a828cd266e372d"><td class="mdescLeft"> </td><td class="mdescRight">Free the resources inside a GSL matrix object previously established by a call to <a class="el" href="api_2array_8finc.html#af692812070e853855a33171af82e0510" title="Initialize a rank 2 Fortran array to become associated with a double precision GSL matrix object....">fgsl_matrix_init()</a>. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__free.html">fgsl_matrix_free</a>. <a href="api_2array_8finc.html#a0b551f436f076593a8a828cd266e372d">More...</a><br /></td></tr>
<tr class="separator:a0b551f436f076593a8a828cd266e372d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae039428ac81fb123a5223c7676b1b687"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#ae039428ac81fb123a5223c7676b1b687">fgsl_matrix_c_ptr</a> (res, src)</td></tr>
<tr class="separator:ae039428ac81fb123a5223c7676b1b687"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5d41e00e4a2ec9c3b0594ec77ff02c5e"><td class="memItemLeft" align="right" valign="top">logical function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a5d41e00e4a2ec9c3b0594ec77ff02c5e">fgsl_matrix_status</a> (matrix)</td></tr>
<tr class="separator:a5d41e00e4a2ec9c3b0594ec77ff02c5e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:addcfbdff17fa7ce904b853ed793bb1d9"><td class="memItemLeft" align="right" valign="top">integer(fgsl_size_t) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#addcfbdff17fa7ce904b853ed793bb1d9">fgsl_sizeof_matrix</a> (w)</td></tr>
<tr class="memdesc:addcfbdff17fa7ce904b853ed793bb1d9"><td class="mdescLeft"> </td><td class="mdescRight">Inquire the number of elements in a double precision real GSL matrix object. <a href="api_2array_8finc.html#addcfbdff17fa7ce904b853ed793bb1d9">More...</a><br /></td></tr>
<tr class="separator:addcfbdff17fa7ce904b853ed793bb1d9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8de0c283292155993f7b79cf3f4271e5"><td class="memItemLeft" align="right" valign="top">type(fgsl_matrix_complex) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a8de0c283292155993f7b79cf3f4271e5">fgsl_matrix_complex_init_legacy</a> (type)</td></tr>
<tr class="memdesc:a8de0c283292155993f7b79cf3f4271e5"><td class="mdescLeft"> </td><td class="mdescRight">Legacy specifit to initialize a GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__init.html">fgsl_matrix_init</a>. <a href="api_2array_8finc.html#a8de0c283292155993f7b79cf3f4271e5">More...</a><br /></td></tr>
<tr class="separator:a8de0c283292155993f7b79cf3f4271e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8d844263d70efb0a8f6dc073d2d6b3d8"><td class="memItemLeft" align="right" valign="top">type(fgsl_matrix_complex) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a8d844263d70efb0a8f6dc073d2d6b3d8">fgsl_matrix_complex_init</a> (array, n, m, stat)</td></tr>
<tr class="memdesc:a8d844263d70efb0a8f6dc073d2d6b3d8"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a rank 2 Fortran array to become associated with a double precision complex GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__init.html">fgsl_matrix_init</a>. <a href="api_2array_8finc.html#a8d844263d70efb0a8f6dc073d2d6b3d8">More...</a><br /></td></tr>
<tr class="separator:a8d844263d70efb0a8f6dc073d2d6b3d8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ada029e69fd21da1d81472a285f1269a2"><td class="memItemLeft" align="right" valign="top">integer(fgsl_int) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#ada029e69fd21da1d81472a285f1269a2">fgsl_matrix_complex_align</a> (array, lda, n, m, fmat)</td></tr>
<tr class="memdesc:ada029e69fd21da1d81472a285f1269a2"><td class="mdescLeft"> </td><td class="mdescRight">Legacy function to wrap a rank 2 Fortran array inside a double precision complex GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__align.html">fgsl_matrix_align</a>. <a href="api_2array_8finc.html#ada029e69fd21da1d81472a285f1269a2">More...</a><br /></td></tr>
<tr class="separator:ada029e69fd21da1d81472a285f1269a2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a000f8ca7f88b4dfb7a5cc700ccf3b868"><td class="memItemLeft" align="right" valign="top">integer(fgsl_int) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a000f8ca7f88b4dfb7a5cc700ccf3b868">fgsl_matrix_complex_pointer_align</a> (ptr, fmat)</td></tr>
<tr class="memdesc:a000f8ca7f88b4dfb7a5cc700ccf3b868"><td class="mdescLeft"> </td><td class="mdescRight">Associate a Fortran pointer with the data stored inside a complex GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__align.html">fgsl_matrix_align</a>. Objects of type <code>gsl_matrix_complex</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. <a href="api_2array_8finc.html#a000f8ca7f88b4dfb7a5cc700ccf3b868">More...</a><br /></td></tr>
<tr class="separator:a000f8ca7f88b4dfb7a5cc700ccf3b868"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4e0682115e74f3a464236889ebca4997"><td class="memItemLeft" align="right" valign="top">complex(fgsl_double) function, dimension(:,:), pointer </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a4e0682115e74f3a464236889ebca4997">fgsl_matrix_complex_to_fptr</a> (fmat)</td></tr>
<tr class="separator:a4e0682115e74f3a464236889ebca4997"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b17724c0c305144fdec66507f8638f7"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a4b17724c0c305144fdec66507f8638f7">fgsl_matrix_complex_to_array</a> (result, source)</td></tr>
<tr class="memdesc:a4b17724c0c305144fdec66507f8638f7"><td class="mdescLeft"> </td><td class="mdescRight">The assignment operator (see <a class="el" href="generics_8finc.html">interface/generics.finc</a>) is overloaded to enable copying of the content of a complex GSL matrix into a rank 2 Fortran array. <a href="api_2array_8finc.html#a4b17724c0c305144fdec66507f8638f7">More...</a><br /></td></tr>
<tr class="separator:a4b17724c0c305144fdec66507f8638f7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa26219798c626c7bf6a0a85403f3dbcf"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#aa26219798c626c7bf6a0a85403f3dbcf">fgsl_matrix_complex_free</a> (fvec)</td></tr>
<tr class="memdesc:aa26219798c626c7bf6a0a85403f3dbcf"><td class="mdescLeft"> </td><td class="mdescRight">Free the resources inside a complex GSL matrix object previously established by a call to <a class="el" href="api_2array_8finc.html#a8d844263d70efb0a8f6dc073d2d6b3d8" title="Initialize a rank 2 Fortran array to become associated with a double precision complex GSL matrix obj...">fgsl_matrix_complex_init()</a>. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__free.html">fgsl_matrix_free</a>. <a href="api_2array_8finc.html#aa26219798c626c7bf6a0a85403f3dbcf">More...</a><br /></td></tr>
<tr class="separator:aa26219798c626c7bf6a0a85403f3dbcf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9f0f952485ef9707174a52c5af21a9a2"><td class="memItemLeft" align="right" valign="top">subroutine </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a9f0f952485ef9707174a52c5af21a9a2">fgsl_matrix_complex_c_ptr</a> (res, src)</td></tr>
<tr class="separator:a9f0f952485ef9707174a52c5af21a9a2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3fa8db2b747286e805d60065f6d16640"><td class="memItemLeft" align="right" valign="top">logical function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a3fa8db2b747286e805d60065f6d16640">fgsl_matrix_complex_status</a> (matrix_complex)</td></tr>
<tr class="separator:a3fa8db2b747286e805d60065f6d16640"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a14d82675b93fa2b453caf33df1e567a1"><td class="memItemLeft" align="right" valign="top">integer(fgsl_size_t) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a14d82675b93fa2b453caf33df1e567a1">fgsl_sizeof_matrix_complex</a> (w)</td></tr>
<tr class="memdesc:a14d82675b93fa2b453caf33df1e567a1"><td class="mdescLeft"> </td><td class="mdescRight">Inquire the number of elements in a double precision complex GSL matrix object. <a href="api_2array_8finc.html#a14d82675b93fa2b453caf33df1e567a1">More...</a><br /></td></tr>
<tr class="separator:a14d82675b93fa2b453caf33df1e567a1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a77255b64802ca66a1ada52fd0a9ceaf6"><td class="memItemLeft" align="right" valign="top">integer(fgsl_size_t) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a77255b64802ca66a1ada52fd0a9ceaf6">fgsl_vector_get_size</a> (vec)</td></tr>
<tr class="separator:a77255b64802ca66a1ada52fd0a9ceaf6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adb3b5d4e8f719f06d11479ee5c7ad380"><td class="memItemLeft" align="right" valign="top">integer(fgsl_size_t) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#adb3b5d4e8f719f06d11479ee5c7ad380">fgsl_vector_get_stride</a> (vec)</td></tr>
<tr class="separator:adb3b5d4e8f719f06d11479ee5c7ad380"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a17354bcc1b817f078799391343eee7e4"><td class="memItemLeft" align="right" valign="top">integer(fgsl_size_t) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a17354bcc1b817f078799391343eee7e4">fgsl_matrix_get_size1</a> (matr)</td></tr>
<tr class="separator:a17354bcc1b817f078799391343eee7e4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a14ea1256acfbe059e0ea8e631a470f64"><td class="memItemLeft" align="right" valign="top">integer(fgsl_size_t) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#a14ea1256acfbe059e0ea8e631a470f64">fgsl_matrix_get_size2</a> (matr)</td></tr>
<tr class="separator:a14ea1256acfbe059e0ea8e631a470f64"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae49791bd4fbcbd27b90f1cf665fcb008"><td class="memItemLeft" align="right" valign="top">integer(fgsl_size_t) function </td><td class="memItemRight" valign="bottom"><a class="el" href="api_2array_8finc.html#ae49791bd4fbcbd27b90f1cf665fcb008">fgsl_matrix_get_tda</a> (matr)</td></tr>
<tr class="separator:ae49791bd4fbcbd27b90f1cf665fcb008"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Function/Subroutine Documentation</h2>
<a id="ae0c19c4453ce18db5e6415a047c3a59e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0c19c4453ce18db5e6415a047c3a59e">◆ </a></span>fgsl_matrix_align()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_int) function <a class="el" href="interfacefgsl__matrix__align.html">fgsl_matrix_align</a> </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), dimension(lda, m), intent(in), target </td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>lda</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_matrix), intent(inout) </td>
<td class="paramname"><em>fmat</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Legacy specific to wrap a rank 2 Fortran array inside a double precision real GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__align.html">fgsl_matrix_align</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">array</td><td>- requires the actual argument to have the TARGET attribute. Otherwise being passed by reference is not guaranteed by the Fortran standard. </td></tr>
<tr><td class="paramname">lda</td><td>- leading dimension of the rank 2 array </td></tr>
<tr><td class="paramname">n</td><td>- number of rows in array </td></tr>
<tr><td class="paramname">m</td><td>- number of columns in array </td></tr>
<tr><td class="paramname">fmat</td><td>- previously initialized double precision GSL matrix object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="ae039428ac81fb123a5223c7676b1b687"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae039428ac81fb123a5223c7676b1b687">◆ </a></span>fgsl_matrix_c_ptr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_matrix_c_ptr </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix), intent(out) </td>
<td class="paramname"><em>res</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(c_ptr), intent(in) </td>
<td class="paramname"><em>src</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ada029e69fd21da1d81472a285f1269a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada029e69fd21da1d81472a285f1269a2">◆ </a></span>fgsl_matrix_complex_align()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_int) function fgsl_matrix_complex_align </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double_complex), dimension(lda, m), intent(in), target </td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>lda</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_matrix_complex), intent(inout) </td>
<td class="paramname"><em>fmat</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Legacy function to wrap a rank 2 Fortran array inside a double precision complex GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__align.html">fgsl_matrix_align</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">array</td><td>- requires the actual argument to have the TARGET attribute. Otherwise being passed by reference is not guaranteed by the Fortran standard. </td></tr>
<tr><td class="paramname">lda</td><td>- leading dimension of the rank 2 array </td></tr>
<tr><td class="paramname">n</td><td>- number of rows in array </td></tr>
<tr><td class="paramname">m</td><td>- number of columns in array </td></tr>
<tr><td class="paramname">fmat</td><td>- previously initialized double precision complex GSL matrix object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="a9f0f952485ef9707174a52c5af21a9a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f0f952485ef9707174a52c5af21a9a2">◆ </a></span>fgsl_matrix_complex_c_ptr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_matrix_complex_c_ptr </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix_complex), intent(out) </td>
<td class="paramname"><em>res</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(c_ptr), intent(in) </td>
<td class="paramname"><em>src</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="aa26219798c626c7bf6a0a85403f3dbcf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa26219798c626c7bf6a0a85403f3dbcf">◆ </a></span>fgsl_matrix_complex_free()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_matrix_complex_free </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix_complex), intent(inout) </td>
<td class="paramname"><em>fvec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free the resources inside a complex GSL matrix object previously established by a call to <a class="el" href="api_2array_8finc.html#a8d844263d70efb0a8f6dc073d2d6b3d8" title="Initialize a rank 2 Fortran array to become associated with a double precision complex GSL matrix obj...">fgsl_matrix_complex_init()</a>. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__free.html">fgsl_matrix_free</a>. </p>
</div>
</div>
<a id="a8d844263d70efb0a8f6dc073d2d6b3d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d844263d70efb0a8f6dc073d2d6b3d8">◆ </a></span>fgsl_matrix_complex_init()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">type(fgsl_matrix_complex) function fgsl_matrix_complex_init </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double_complex), dimension(:,:), intent(in), target, contiguous </td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in), optional </td>
<td class="paramname"><em>n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in), optional </td>
<td class="paramname"><em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_int), optional </td>
<td class="paramname"><em>stat</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize a rank 2 Fortran array to become associated with a double precision complex GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__init.html">fgsl_matrix_init</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">array</td><td>- requires the actual argument to have the TARGET and CONTIGUOUS attributes. </td></tr>
<tr><td class="paramname">n</td><td>- number of rows (C:columns) in array </td></tr>
<tr><td class="paramname">m</td><td>- number of columns (C:rows) in array </td></tr>
<tr><td class="paramname">fmat</td><td>- double precision complex GSL matrix object, which is allocated </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="a8de0c283292155993f7b79cf3f4271e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8de0c283292155993f7b79cf3f4271e5">◆ </a></span>fgsl_matrix_complex_init_legacy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">type(fgsl_matrix_complex) function fgsl_matrix_complex_init_legacy </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double_complex), intent(in) </td>
<td class="paramname"><em>type</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Legacy specifit to initialize a GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__init.html">fgsl_matrix_init</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">type</td><td>- determine intrinsic type of vector object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>new object of type fgsl_matrix. </dd></dl>
</div>
</div>
<a id="a000f8ca7f88b4dfb7a5cc700ccf3b868"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a000f8ca7f88b4dfb7a5cc700ccf3b868">◆ </a></span>fgsl_matrix_complex_pointer_align()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_int) function fgsl_matrix_complex_pointer_align </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double_complex), dimension(:,:), intent(out), pointer </td>
<td class="paramname"><em>ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_matrix_complex), intent(in) </td>
<td class="paramname"><em>fmat</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Associate a Fortran pointer with the data stored inside a complex GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__align.html">fgsl_matrix_align</a>. Objects of type <code>gsl_matrix_complex</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ptr</td><td>- rank 2 Fortran pointer </td></tr>
<tr><td class="paramname">fmat</td><td>- double precision complex GSL matrix </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="a3fa8db2b747286e805d60065f6d16640"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fa8db2b747286e805d60065f6d16640">◆ </a></span>fgsl_matrix_complex_status()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">logical function fgsl_matrix_complex_status </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix_complex), intent(in) </td>
<td class="paramname"><em>matrix_complex</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a4b17724c0c305144fdec66507f8638f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b17724c0c305144fdec66507f8638f7">◆ </a></span>fgsl_matrix_complex_to_array()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_matrix_complex_to_array </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double_complex), dimension(:,:), intent(inout) </td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_matrix_complex), intent(in) </td>
<td class="paramname"><em>source</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The assignment operator (see <a class="el" href="generics_8finc.html">interface/generics.finc</a>) is overloaded to enable copying of the content of a complex GSL matrix into a rank 2 Fortran array. </p>
</div>
</div>
<a id="a4e0682115e74f3a464236889ebca4997"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e0682115e74f3a464236889ebca4997">◆ </a></span>fgsl_matrix_complex_to_fptr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">complex(fgsl_double) function, dimension(:,:), pointer fgsl_matrix_complex_to_fptr </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix_complex), intent(in) </td>
<td class="paramname"><em>fmat</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a0b551f436f076593a8a828cd266e372d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b551f436f076593a8a828cd266e372d">◆ </a></span>fgsl_matrix_free()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine <a class="el" href="interfacefgsl__matrix__free.html">fgsl_matrix_free</a> </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix), intent(inout) </td>
<td class="paramname"><em>fvec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free the resources inside a GSL matrix object previously established by a call to <a class="el" href="api_2array_8finc.html#af692812070e853855a33171af82e0510" title="Initialize a rank 2 Fortran array to become associated with a double precision GSL matrix object....">fgsl_matrix_init()</a>. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__free.html">fgsl_matrix_free</a>. </p>
</div>
</div>
<a id="a17354bcc1b817f078799391343eee7e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17354bcc1b817f078799391343eee7e4">◆ </a></span>fgsl_matrix_get_size1()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_size_t) function fgsl_matrix_get_size1 </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix), intent(in) </td>
<td class="paramname"><em>matr</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a14ea1256acfbe059e0ea8e631a470f64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14ea1256acfbe059e0ea8e631a470f64">◆ </a></span>fgsl_matrix_get_size2()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_size_t) function fgsl_matrix_get_size2 </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix), intent(in) </td>
<td class="paramname"><em>matr</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ae49791bd4fbcbd27b90f1cf665fcb008"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae49791bd4fbcbd27b90f1cf665fcb008">◆ </a></span>fgsl_matrix_get_tda()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_size_t) function fgsl_matrix_get_tda </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix), intent(in) </td>
<td class="paramname"><em>matr</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="af692812070e853855a33171af82e0510"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af692812070e853855a33171af82e0510">◆ </a></span>fgsl_matrix_init()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">type(fgsl_matrix) function <a class="el" href="interfacefgsl__matrix__init.html">fgsl_matrix_init</a> </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), dimension(:,:), intent(in), target, contiguous </td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in), optional </td>
<td class="paramname"><em>n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in), optional </td>
<td class="paramname"><em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_int), optional </td>
<td class="paramname"><em>stat</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize a rank 2 Fortran array to become associated with a double precision GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__init.html">fgsl_matrix_init</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">array</td><td>- requires the actual argument to have the TARGET and CONTIGUOUS attributes. </td></tr>
<tr><td class="paramname">n</td><td>- number of rows (C:columns) in array </td></tr>
<tr><td class="paramname">m</td><td>- number of columns (C:rows) in array </td></tr>
<tr><td class="paramname">fmat</td><td>- double precision GSL matrix object, which is allocated </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="a3ef90d1a314b68cbd280341efc7855d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ef90d1a314b68cbd280341efc7855d5">◆ </a></span>fgsl_matrix_init_legacy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">type(fgsl_matrix) function fgsl_matrix_init_legacy </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), intent(in) </td>
<td class="paramname"><em>type</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Legacy function to initialize a GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__init.html">fgsl_matrix_init</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">type</td><td>- determine intrinsic type of vector object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>new object of type fgsl_matrix. </dd></dl>
</div>
</div>
<a id="a54b17f056b272b74ae425a588e4653d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54b17f056b272b74ae425a588e4653d5">◆ </a></span>fgsl_matrix_pointer_align()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_int) function fgsl_matrix_pointer_align </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), dimension(:,:), intent(out), pointer </td>
<td class="paramname"><em>ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_matrix), intent(in) </td>
<td class="paramname"><em>fmat</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Associate a Fortran pointer with the data stored inside a GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__align.html">fgsl_matrix_align</a>. Objects of type <code>gsl_matrix</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ptr</td><td>- rank 2 Fortran pointer </td></tr>
<tr><td class="paramname">fmat</td><td>- double precision real GSL matrix </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="a5d41e00e4a2ec9c3b0594ec77ff02c5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d41e00e4a2ec9c3b0594ec77ff02c5e">◆ </a></span>fgsl_matrix_status()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">logical function fgsl_matrix_status </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix), intent(in) </td>
<td class="paramname"><em>matrix</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a44e06325d8b322997dcf6ab28417dd4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44e06325d8b322997dcf6ab28417dd4f">◆ </a></span>fgsl_matrix_to_array()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_matrix_to_array </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), dimension(:,:), intent(inout) </td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_matrix), intent(in) </td>
<td class="paramname"><em>source</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The assignment operator (see <a class="el" href="generics_8finc.html">interface/generics.finc</a>) is overloaded to enable copying of the content of a GSL matrix into a rank 2 Fortran array. </p>
</div>
</div>
<a id="a911629de0bd305bf32a4be1dbd7be1e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a911629de0bd305bf32a4be1dbd7be1e5">◆ </a></span>fgsl_matrix_to_fptr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">real(fgsl_double) function, dimension(:,:), pointer <a class="el" href="interfacefgsl__matrix__to__fptr.html">fgsl_matrix_to_fptr</a> </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix), intent(in) </td>
<td class="paramname"><em>fmat</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Associate a Fortran pointer with the data stored inside a GSL matrix object. This is invoked via the generic <a class="el" href="interfacefgsl__matrix__to__fptr.html">fgsl_matrix_to_fptr</a>. Objects of type <code>gsl_matrix</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">fmat</td><td>- GSL matrix </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>rank 2 Fortran pointer </dd></dl>
</div>
</div>
<a id="addcfbdff17fa7ce904b853ed793bb1d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addcfbdff17fa7ce904b853ed793bb1d9">◆ </a></span>fgsl_sizeof_matrix()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_size_t) function fgsl_sizeof_matrix </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix), intent(in) </td>
<td class="paramname"><em>w</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Inquire the number of elements in a double precision real GSL matrix object. </p>
</div>
</div>
<a id="a14d82675b93fa2b453caf33df1e567a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14d82675b93fa2b453caf33df1e567a1">◆ </a></span>fgsl_sizeof_matrix_complex()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_size_t) function fgsl_sizeof_matrix_complex </td>
<td>(</td>
<td class="paramtype">type(fgsl_matrix_complex), intent(in) </td>
<td class="paramname"><em>w</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Inquire the number of elements in a double precision complex GSL matrix object. </p>
</div>
</div>
<a id="a35a09f656acc547c7613501889490fc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35a09f656acc547c7613501889490fc0">◆ </a></span>fgsl_sizeof_vector()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_size_t) function fgsl_sizeof_vector </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector), intent(in) </td>
<td class="paramname"><em>w</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="af8cb8c5be9be9e6604200da0845dc18d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8cb8c5be9be9e6604200da0845dc18d">◆ </a></span>fgsl_sizeof_vector_complex()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_size_t) function fgsl_sizeof_vector_complex </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector_complex), intent(in) </td>
<td class="paramname"><em>w</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Inquire the size of a double precision complex GSL vector object. </p>
</div>
</div>
<a id="aa6c28c6cc37d807bc8bc0fcf4ab7ad57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6c28c6cc37d807bc8bc0fcf4ab7ad57">◆ </a></span>fgsl_vector_align()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_int) function <a class="el" href="interfacefgsl__vector__align.html">fgsl_vector_align</a> </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), dimension(len), intent(in), target </td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_vector), intent(inout) </td>
<td class="paramname"><em>fvec</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>stride</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Legacy function to wrap a rank 1 Fortran array slice inside a double precision real GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__align.html">fgsl_vector_align</a>. It is recommended to update codes using this to use the new <a class="el" href="interfacefgsl__vector__init.html">fgsl_vector_init</a> specific instead. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">array</td><td>- requires the actual argument to have the TARGET attribute. Otherwise being passed by reference is not guaranteed by the Fortran standard. </td></tr>
<tr><td class="paramname">len</td><td>- number of elements of the rank 1 array </td></tr>
<tr><td class="paramname">fvec</td><td>- previously initialized GSL vector object </td></tr>
<tr><td class="paramname">size</td><td>- number of elements from array wrapped inside fvec </td></tr>
<tr><td class="paramname">offset</td><td>- index of first element of array to be mapped to fvec </td></tr>
<tr><td class="paramname">stride</td><td>- stride in array for successive elements of fvec </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="a8e80ad86d191ff87ae459b78822d468d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e80ad86d191ff87ae459b78822d468d">◆ </a></span>fgsl_vector_c_ptr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_vector_c_ptr </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector), intent(out) </td>
<td class="paramname"><em>res</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(c_ptr), intent(in) </td>
<td class="paramname"><em>src</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ad91319661b892e978cfc3da52b15b500"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad91319661b892e978cfc3da52b15b500">◆ </a></span>fgsl_vector_complex_align()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_int) function fgsl_vector_complex_align </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double_complex), dimension(len), intent(in), target </td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_vector_complex), intent(inout) </td>
<td class="paramname"><em>fvec</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in) </td>
<td class="paramname"><em>stride</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Wrap a rank 1 Fortran array slice inside a double precision complex real GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__align.html">fgsl_vector_align</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">array</td><td>- requires the actual argument to have the TARGET attribute. Otherwise being passed by reference is not guaranteed by the Fortran standard. </td></tr>
<tr><td class="paramname">len</td><td>- number of elements of the rank 1 array </td></tr>
<tr><td class="paramname">fvec</td><td>- previously initialized complex GSL vector object </td></tr>
<tr><td class="paramname">size</td><td>- number of elements from array wrapped inside fvec </td></tr>
<tr><td class="paramname">offset</td><td>- index of first element of array to be mapped to fvec </td></tr>
<tr><td class="paramname">stride</td><td>- stride in array for successive elements of fvec </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="a07419ff1eb431e5a8bf628d31099e9a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07419ff1eb431e5a8bf628d31099e9a7">◆ </a></span>fgsl_vector_complex_c_ptr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_vector_complex_c_ptr </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector_complex), intent(out) </td>
<td class="paramname"><em>res</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(c_ptr), intent(in) </td>
<td class="paramname"><em>src</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a3a8d76f2fe0bb4c9687f06e5e33671b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a8d76f2fe0bb4c9687f06e5e33671b8">◆ </a></span>fgsl_vector_complex_free()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_vector_complex_free </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector_complex), intent(inout) </td>
<td class="paramname"><em>fvec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free the resources inside a complex GSL vector object previously established by a call to <a class="el" href="api_2array_8finc.html#a2e6c1d01b49ee0dc444cd3cf8943b918">fgsl_vector_complex_init()</a>. This is invoked via the generic <a class="el" href="interfacefgsl__vector__free.html">fgsl_vector_free</a>. </p>
</div>
</div>
<a id="a2e6c1d01b49ee0dc444cd3cf8943b918"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e6c1d01b49ee0dc444cd3cf8943b918">◆ </a></span>fgsl_vector_complex_init()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">type(fgsl_vector_complex) function fgsl_vector_complex_init </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double), dimension(:), intent(in), target, contiguous </td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in), optional </td>
<td class="paramname"><em>stride</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_int), intent(inout), optional </td>
<td class="paramname"><em>stat</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a4518c72dfe4bb8682f367d064839f8da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4518c72dfe4bb8682f367d064839f8da">◆ </a></span>fgsl_vector_complex_init_legacy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">type(fgsl_vector_complex) function fgsl_vector_complex_init_legacy </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double_complex), intent(in) </td>
<td class="paramname"><em>type</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize a complex GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__init.html">fgsl_vector_init</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">type</td><td>- determine intrinsic type of vector object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>new object of type fgsl_vector </dd></dl>
</div>
</div>
<a id="a0299f0feb175c085408bffdc001cb680"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0299f0feb175c085408bffdc001cb680">◆ </a></span>fgsl_vector_complex_pointer_align()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_int) function fgsl_vector_complex_pointer_align </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double_complex), dimension(:), intent(out), pointer </td>
<td class="paramname"><em>ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_vector_complex), intent(in) </td>
<td class="paramname"><em>fvec</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Associate a Fortran pointer with the data stored inside a GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__align.html">fgsl_vector_align</a>. Objects of type <code>gsl_vector_complex</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ptr</td><td>- rank 1 Fortran pointer </td></tr>
<tr><td class="paramname">fvec</td><td>- double precision complex GSL vector </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="a04dbf95001922f560a73333ca3d00f81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04dbf95001922f560a73333ca3d00f81">◆ </a></span>fgsl_vector_complex_status()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">logical function fgsl_vector_complex_status </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector_complex), intent(in) </td>
<td class="paramname"><em>vector_complex</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ad9bc465224323cc4ecdcf56589bdfdbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9bc465224323cc4ecdcf56589bdfdbb">◆ </a></span>fgsl_vector_complex_to_array()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_vector_complex_to_array </td>
<td>(</td>
<td class="paramtype">complex(fgsl_double_complex), dimension(:), intent(inout) </td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_vector_complex), intent(in) </td>
<td class="paramname"><em>source</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The assignment operator (see <a class="el" href="generics_8finc.html">interface/generics.finc</a>) is overloaded to enable copying of the content of a complex GSL vector into a Fortran array. </p>
</div>
</div>
<a id="ac249c90d8dfd2e967e0e34de61f30c5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac249c90d8dfd2e967e0e34de61f30c5c">◆ </a></span>fgsl_vector_complex_to_fptr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">complex(fgsl_double) function, dimension(:), pointer fgsl_vector_complex_to_fptr </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector_complex), intent(in) </td>
<td class="paramname"><em>fvec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a900770fc4f4831abf928959477ba663f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a900770fc4f4831abf928959477ba663f">◆ </a></span>fgsl_vector_free()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine <a class="el" href="interfacefgsl__vector__free.html">fgsl_vector_free</a> </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector), intent(inout) </td>
<td class="paramname"><em>fvec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free the resources inside a GSL vector object previously established by a call to <a class="el" href="api_2array_8finc.html#aab894473a41ef4d6d94332c5d5381a43" title="Initialize a GSL vector object. This is invoked via the generic fgsl_vector_init.">fgsl_vector_init()</a>. This is invoked via the generic <a class="el" href="interfacefgsl__vector__free.html">fgsl_vector_free</a>. </p>
</div>
</div>
<a id="a77255b64802ca66a1ada52fd0a9ceaf6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77255b64802ca66a1ada52fd0a9ceaf6">◆ </a></span>fgsl_vector_get_size()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_size_t) function fgsl_vector_get_size </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector), intent(in) </td>
<td class="paramname"><em>vec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="adb3b5d4e8f719f06d11479ee5c7ad380"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb3b5d4e8f719f06d11479ee5c7ad380">◆ </a></span>fgsl_vector_get_stride()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_size_t) function fgsl_vector_get_stride </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector), intent(in) </td>
<td class="paramname"><em>vec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="aab894473a41ef4d6d94332c5d5381a43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab894473a41ef4d6d94332c5d5381a43">◆ </a></span>fgsl_vector_init()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">type(fgsl_vector) function <a class="el" href="interfacefgsl__vector__init.html">fgsl_vector_init</a> </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), dimension(:), intent(in), target, contiguous </td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in), optional </td>
<td class="paramname"><em>stride</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_int), intent(inout), optional </td>
<td class="paramname"><em>stat</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize a GSL vector object. This is invoked via the generic <a class="el" href="interfacefgsl__vector__init.html">fgsl_vector_init</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">array.</td><td>The result variable's block is aliased to this contiguous array or a section of it. The actual argument must be a CONTIGUOUS array with the TARGET attribute. It can be of type integer(fgsl_int) or real(fgsl_double). </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">stride.</td><td>If present, the stride between subsequent array elements of the function result. Otherwise, the value one is assumed. </td></tr>
<tr><td class="paramdir">[in,out]</td><td class="paramname">status.</td><td>If present, the exit status. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a7dd40096cddb6ad3a8a3fe213bb81304"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7dd40096cddb6ad3a8a3fe213bb81304">◆ </a></span>fgsl_vector_init_legacy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">type(fgsl_vector) function fgsl_vector_init_legacy </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), intent(in) </td>
<td class="paramname"><em>type</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Legacy specific <a class="el" href="interfacefgsl__vector__init.html">fgsl_vector_init</a> of for GSL vector initialization. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">type</td><td>- determine intrinsic type of vector object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>new object of type fgsl_vector </dd></dl>
</div>
</div>
<a id="ab250a847857ee8f8643c020075dcae15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab250a847857ee8f8643c020075dcae15">◆ </a></span>fgsl_vector_int_free()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_vector_int_free </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector_int), intent(inout) </td>
<td class="paramname"><em>fvec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a05104ebdf47ef11b1e9b18d20efc79f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05104ebdf47ef11b1e9b18d20efc79f8">◆ </a></span>fgsl_vector_int_init()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">type(fgsl_vector_int) function fgsl_vector_int_init </td>
<td>(</td>
<td class="paramtype">integer(fgsl_int), dimension(:), intent(in), target, contiguous </td>
<td class="paramname"><em>array</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_size_t), intent(in), optional </td>
<td class="paramname"><em>stride</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer(fgsl_int), intent(inout), optional </td>
<td class="paramname"><em>stat</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="aaa99b82233dfa6a11e7bbd6e3d034855"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa99b82233dfa6a11e7bbd6e3d034855">◆ </a></span>fgsl_vector_int_status()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">logical function fgsl_vector_int_status </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector_int), intent(in) </td>
<td class="paramname"><em>vector</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Inquire the size of a double precision real GSL vector object. </p>
</div>
</div>
<a id="a68a102c31c4c2b108911a42f5bdd8dda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68a102c31c4c2b108911a42f5bdd8dda">◆ </a></span>fgsl_vector_int_to_fptr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_int) function, dimension(:), pointer fgsl_vector_int_to_fptr </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector_int), intent(in) </td>
<td class="paramname"><em>fvec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a3f528d8f3b1aa8218339bc8fdb41497c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f528d8f3b1aa8218339bc8fdb41497c">◆ </a></span>fgsl_vector_pointer_align()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">integer(fgsl_int) function fgsl_vector_pointer_align </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), dimension(:), intent(out), pointer </td>
<td class="paramname"><em>ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_vector), intent(in) </td>
<td class="paramname"><em>fvec</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Legacy function to associate a Fortran pointer with the data stored inside a GSL vector object. Codes should be updated to use fgsl_vector_ptr. This is invoked via the generic <a class="el" href="interfacefgsl__vector__align.html">fgsl_vector_align</a>. Objects of type <code>gsl_vector</code> which are returned by GSL routines often are persistent subobjects of other GSL objects. A Fortran pointer aligned with a subobject hence will remain up-to-date throughout the lifetime of the object; it may become undefined once the object ceases to exist. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ptr</td><td>- rank 1 Fortran pointer </td></tr>
<tr><td class="paramname">fvec</td><td>- double precision real GSL vector </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status </dd></dl>
</div>
</div>
<a id="a804073922a322c29cd5be43410581ba4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a804073922a322c29cd5be43410581ba4">◆ </a></span>fgsl_vector_status()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">logical function fgsl_vector_status </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector), intent(in) </td>
<td class="paramname"><em>vector</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a740b61c719ee64b92abc804915115255"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a740b61c719ee64b92abc804915115255">◆ </a></span>fgsl_vector_to_array()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">subroutine fgsl_vector_to_array </td>
<td>(</td>
<td class="paramtype">real(fgsl_double), dimension(:), intent(inout) </td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">type(fgsl_vector), intent(in) </td>
<td class="paramname"><em>source</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>The assignment operator (see <a class="el" href="generics_8finc.html">interface/generics.finc</a>) is overloaded to enable copying of the content of a GSL vector into a Fortran array. </p>
</div>
</div>
<a id="aa0eec9fee71c25b89b304a4d5fea9268"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0eec9fee71c25b89b304a4d5fea9268">◆ </a></span>fgsl_vector_to_fptr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">real(fgsl_double) function, dimension(:), pointer <a class="el" href="interfacefgsl__vector__to__fptr.html">fgsl_vector_to_fptr</a> </td>
<td>(</td>
<td class="paramtype">type(fgsl_vector), intent(in) </td>
<td class="paramname"><em>fvec</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Function to associate a Fortran pointer with a GSL vector object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fvec.</td><td>double precision real GSL vector The function result is a null pointer if the object is invalid, otherwise it points to the data described by the fvec object <br />
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Mar 23 2024 18:10:35 for FGSL by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
|
HTML
|
we want to create a subdirectory called decwar and then 'change directories' so its our working directory. turned out to be surprisingly non obvious. then we want to use kermit to copy the source files from raspi side over to tops10 side.
to create the subdirectory, use the credir command. at the start here, we're logged in our own user account [27,101], and we're in our own user directory [27,101]
.dir
TEST2 TXT 1 <057> 31-Aug-24 DSKB: [27,101]
.r credir
Create directory: [,,decwar]
Created DSKB0:[27,101,DECWAR].SFD/PROTECTION:775
Create directory: ^C
.dir
TEST2 TXT 1 <057> 31-Aug-24 DSKB: [27,101]
DECWAR SFD 1 <775> 3-Sep-24
Total of 2 blocks in 2 files on DSKB: [27,101]
.dir[,,decwar]
%WLDDEM Directory is empty [,,decwar]
now we change directories using the setsrc command. it's documented in the operating system commands manual. 'cp' is for 'create a new default directory path'
.r setsrc
*cp [,,decwar]
*^C
.dir
%WLDDEM Directory is empty
and to change back to main directory
.r setsrc
*cp [,]
*^C
.dir
TEST2 TXT 1 <057> 31-Aug-24 DSKB: [27,101]
DECWAR SFD 1 <775> 3-Sep-24
Total of 2 blocks in 2 files on DSKB: [27,101]
get into our decwar folder and get kermit going there. put kermit into server mode.
Kermit-10> server
escape back to raspi side with ctrl-\c. keyboard has to really be sending backslash! then can simply send files. especially, 'send *.*' from raspi decwar folder to copy them over to tops10 side.
.r setsrc
*cp [,,decwar]
*^C
.dir
%WLDDEM Directory is empty
.r kermit
TOPS-10 KERMIT version 3(136)
Kermit-10>set file byte-size 36-bit
Kermit-10>server
[Kermit Server running on the DEC Host. Please type your escape
sequence to return to your local machine. Shut down the server by
typing the Kermit BYE command on your local machine.]
ctrl-\c
(Back at raspberrypi)
----------------------------------------------------
(~/decwar/) C-Kermit>dir
-rw-r--r-- 2675 2024-08-21 06:07:34 ALT.COD
-rw-r--r-- 1639 2024-08-21 06:07:34 BASBLD.FOR
-rw-r--r-- 2254 2024-08-21 06:07:34 BASKIL.FOR
...snip
(~/decwar/) C-Kermit>remote dir
Press the X or E key to cancel.
File name Size Creation date
words blocks and time
DSKB:[27,101,DECWAR]
CHANGE. 333 10 6-Sep-24 19:47:02
(~/decwar/) C-Kermit>send *.*
...snip long wait with kermit on its 'send files screen' doing stuff
(~/decwar/) C-Kermit>remote dir
Press the X or E key to cancel.
File name Size Creation date
words blocks and time
DSKB:[27,101,DECWAR]
CHANGE. 333 10 6-Sep-24 19:47:02
ALT .COD 586 10 6-Sep-24 19:47:41
BASBLD.FOR 337 10 6-Sep-24 19:48:22
BASKIL.FOR 464 10 6-Sep-24 19:48:42
...snip
kermit seems to have skipped our 'docs folder' with 'send *.*', which is perfect! we don't want it copied over to tops10 side in any case! fine with us.
|
GCC Machine Description
|
$env:VCPKG_DEFAULT_TRIPLET="x64-windows"
$env:PYTHON="e:/python27"
start powershell.exe
|
PowerShell
|
#!/bin/sh
docker build -t symbiote/php-fpm:7.3 .
# and the latest tag also
docker build -t symbiote/php-fpm .
|
Shell
|
using RCall
## run library in R
@rlibrary IBrokers
## run TimeSeries
using TimeSeries
using DataFrames
symbol = "GBL"
exch = "DTB"
expiry = "201809"
currency = "EUR"
duration = "1 M"
barSize = "30 mins"
function getConnectIB()
R"""
library(IBrokers)
tws <- twsConnect()
"""
end
function getIB(symbol, exch, expiry, currency, barSize, duration)
R"""
contract <- twsFuture(symbol = $symbol, exch = $exch , expiry = $expiry, currency = $currency)
data <- reqHistoricalData(tws, contract, barSize = $barSize, duration = $duration)['T08:00/T18:00']
"""
data = TimeArray(rcopy(R"index(as.xts(data))"), rcopy(R"data"))
data.colnames[:] = ["Open", "High", "Low", "Close", "Volume", "WAP", "hasGaps", "Count"]
return data
end
function getIB2(symbol, endDateTime, exch, expiry, currency, barSize, duration)
#RCall for IBrokers
R"""
contract <- twsFuture(symbol = $symbol, exch = $exch , expiry = $expiry, currency = $currency)
data <- reqHistoricalData(tws, contract, endDateTime = $endDateTime, barSize = $barSize, duration = $duration)['T08:00/T18:00']
"""
#jData DataFrame, with timestamps first
jData = DataFrame(TimeStamp = rcopy(R"index(as.xts(data))"))
#colnames for Julia DataFrame
cNames = ["Open", "High", "Low", "Close", "Volume", "WAP", "hasGaps", "Count"]
for i in 1:length(cNames)
# iterate through the return array of R and combine with initial DataFrame
jData[Symbol(cNames[i])] = rcopy(R"data")[:,i]
end
return jData
end
function getDailyIB(symbol, exch, expiry, currency, barSize, duration)
R"""
contract <- twsFuture(symbol = $symbol, exch = $exch , expiry = $expiry, currency = $currency)
data <- reqHistoricalData(tws, contract, barSize = $barSize, duration = $duration)
"""
data = TimeArray(Date.(rcopy(R"index(as.xts(data))")), rcopy(R"data"))
data.colnames[:] = ["Open", "High", "Low", "Close", "Volume", "WAP", "hasGaps", "Count"]
return data
end
# #establish R connectin to IB, chech this by R>tws1
#
# rcopy(R"index(as.xts(data))")
# rcopy(data)
#
#
# rcopy(as.data.frame(data))
#
# dates = @rget df
#
#
# data = rcopy(data)
#
# rcopy(df)
#
# BarTimes = (@rget df)
#
# DateTime(BarTimes, "yyyy-mm-dd HH:MM:SS")
|
Julia
|
unless Hash.method_defined? :to_proc
class Hash
def to_proc
h = self
Proc.new{|*args| h[*args]}
end
end
end
|
Ruby
|
use crate::controllers::version::CrateVersionPath;
use axum_extra::json;
use axum_extra::response::ErasedJson;
/// Get crate version authors.
///
/// This endpoint was deprecated by [RFC #3052](https://github.com/rust-lang/rfcs/pull/3052)
/// and returns an empty list for backwards compatibility reasons.
#[utoipa::path(
get,
path = "/api/v1/crates/{name}/{version}/authors",
params(CrateVersionPath),
tag = "versions",
responses((status = 200, description = "Successful Response")),
)]
#[deprecated]
pub async fn get_version_authors() -> ErasedJson {
json!({
"users": [],
"meta": { "names": [] },
})
}
|
RenderScript
|
[print_schema]
file = "src/schema.rs"
with_docs = true
filter = { except_tables = ["users1"] }
|
TOML
|
package querki.search
import scala.collection.immutable.SortedSet
import scala.concurrent.Future
import scalatags.Text.all.{min => attrMin, _}
import models._
import querki.ecology._
import querki.globals._
import querki.identity.User
import querki.tags.IsTag
import querki.types.{ModelTypeDefiner, ModeledPropertyBundle, SimplePropertyBundle}
import querki.values.{ElemValue, RequestContext, SpaceState}
object MOIDs extends EcotIds(19) {
val SearchInputOID = moid(1)
val SearchInlineOID = moid(2)
val SearchResultThingOID = moid(3)
val SearchResultPropOID = moid(4)
val SearchResultPositionOID = moid(5)
val SearchResultScoreOID = moid(6)
val SearchResultModelOID = moid(7)
val SearchResultTypeOID = moid(8)
val SearchResultTagOID = moid(9)
val SearchResultIsTagOID = moid(10)
val SearchResultElementModelOID = moid(11)
val SearchResultElementsOID = moid(12)
val SearchResultElementTypeOID = moid(13)
}
class SearchEcot(e: Ecology) extends QuerkiEcot(e) with Search with querki.core.MethodDefs with ModelTypeDefiner {
import MOIDs._
val HtmlUI = initRequires[querki.html.HtmlUI]
val QL = initRequires[querki.ql.QL]
val Tags = initRequires[querki.tags.Tags]
lazy val AccessControl = interface[querki.security.AccessControl]
lazy val ApiRegistry = interface[querki.api.ApiRegistry]
lazy val Basic = interface[querki.basic.Basic]
lazy val SpaceOps = interface[querki.spaces.SpaceOps]
lazy val ParsedTextType = QL.ParsedTextType
lazy val SystemOnly = Basic.SystemOnlyProp(true)
override def postInit() = {
// Search does not require login:
ApiRegistry.registerApiImplFor[SearchFunctions, SearchFunctionsImpl](SpaceOps.spaceRegion, false, true)
}
val SearchTag = "Search"
/**
* *****************************************
* The Search Result Type
*/
lazy val SearchResultThing = new SystemProperty(
SearchResultThingOID,
LinkType,
Optional,
toProps(
setName("_searchResultThing"),
SystemOnly,
Categories(SearchTag),
Summary("The Thing that this Result points to, if any")
)
)
lazy val SearchResultTag = new SystemProperty(
SearchResultTagOID,
Tags.NewTagSetType,
Optional,
toProps(
setName("_searchResultTag"),
SystemOnly,
Categories(SearchTag),
Summary("The Tag that this Result points to, if any")
)
)
lazy val SearchResultIsTag = new SystemProperty(
SearchResultIsTagOID,
YesNoType,
ExactlyOne,
toProps(
setName("_searchResultIsTag"),
SystemOnly,
Categories(SearchTag),
Summary("True if this result is a Tag; False if it is a Thing")
)
)
lazy val SearchResultProp = new SystemProperty(
SearchResultPropOID,
LinkType,
Optional,
toProps(
setName("_searchResultProperty"),
SystemOnly,
Categories(SearchTag),
Summary("The Property that this Result was found in")
)
)
lazy val SearchResultPositions = new SystemProperty(
SearchResultPositionOID,
IntType,
QList,
toProps(
setName("_searchResultPositions"),
SystemOnly,
Categories(SearchTag),
Summary("Where in the _searchResultProperty the search query was found")
)
)
lazy val SearchResultScore = new SystemProperty(
SearchResultScoreOID,
Core.FloatType,
ExactlyOne,
toProps(
setName("_searchResultScore"),
SystemOnly,
Categories(SearchTag),
Summary("How good a match this Thing was for the search query")
)
)
lazy val SearchResultElements = new SystemProperty(
SearchResultElementsOID,
SearchResultElementType,
QList,
toProps(
setName("_searchResultElements"),
SystemOnly,
Categories(SearchTag),
Summary(
"The actual Properties that matched the search query, the quality of each match, and the positions of the matches"
)
)
)
lazy val SearchResultModel = ThingState(
SearchResultModelOID,
systemOID,
RootOID,
toProps(
setName("_searchResultModel"),
SystemOnly,
Categories(SearchTag),
Summary("This is the Model that gets produced when you call `_search()`"),
SearchResultThing(),
SearchResultTag(),
SearchResultIsTag(),
SearchResultScore(),
SearchResultElements()
)
)
lazy val SearchResultElementModel = ThingState(
SearchResultElementModelOID,
systemOID,
RootOID,
toProps(
setName("_searchResultElementModel"),
SystemOnly,
Categories(SearchTag),
Summary("One Element of a search result"),
SearchResultProp(),
SearchResultScore(),
SearchResultPositions()
)
)
lazy val SearchResultType = new ModelType(
SearchResultTypeOID,
SearchResultModelOID,
toProps(
setName("_searchResultType"),
SystemOnly,
Categories(SearchTag),
Summary("This is the Type that gets produced when you call `_search()`")
)
)
lazy val SearchResultElementType = new ModelType(
SearchResultElementTypeOID,
SearchResultElementModelOID,
toProps(
setName("_searchResultElementType"),
SystemOnly,
Categories(SearchTag),
Summary("This is the Type of a single Element within a search result.")
)
)
override lazy val things = Seq(
SearchResultModel,
SearchResultElementModel
)
override lazy val types = Seq(
SearchResultType,
SearchResultElementType
)
/**
* *****************************************
* Functions
*/
lazy val SearchInput = new InternalMethod(
SearchInputOID,
toProps(
setName("_searchInput"),
Categories(SearchTag),
Summary("Displays a Search input box here"),
Signature(
expected = None,
reqs = Seq.empty,
opts = Seq(
(
"placeholder",
ParsedTextType,
QL.WikitextValue(Wikitext("Search")),
"The prompt to show lightly inside the box"
)
),
returns = (HtmlUI.RawHtmlType, "A Search input box")
),
Details("""Most of the time, you can simply use the Search input in Querki's menu bar.
|But when you are on a small screen (such as a smartphone), that can be hidden behind a
|menu, making it less accessible. Spaces that are strongly search-centric may find that
|inconvenient, so they can make sure that a Search box exists where they need it by
|using this function.""".stripMargin)
)
) {
override def qlApply(inv: Invocation): QFut = {
for {
place <- inv.processAs("placeholder", ParsedTextType)
} yield HtmlUI.HtmlValue(
// Hmm. This is *totally* redundant with the declaration in SearchResultsPage on the Client.
// How can we de-duplicate these?
input(
// TODO: in principle, this should be a form-control to make it look right. In practice,
// making that work inline is a pain in the tuchus. Not sure what the right answer here is.
cls := "_searchInput search-query _userSearchInput",
tpe := "text",
placeholder := place.strip.toString
)
)
}
}
lazy val SearchInline = new InternalMethod(
SearchInlineOID,
toProps(
setName("_search"),
Categories(SearchTag),
Summary("Searches for the specified text, and produces the matches"),
Signature(
expected = None,
reqs = Seq(
("query", ParsedTextType, "The text to search for, minimum 3 characters")
),
opts = Seq(
(
"models",
LinkType,
Core.emptyListOf(LinkType),
"If provided, the search will be restricted to Instances and Tags of these Models"
),
(
"properties",
LinkType,
Core.emptyListOf(LinkType),
"If provided, only these Properties will be searched. Remember to use _self on each of these!"
),
(
"searchTags",
YesNoType,
ExactlyOne(YesNoType(true)),
"(default true) Tag names will be searched only if this is true"
),
(
"searchThings",
YesNoType,
ExactlyOne(YesNoType(true)),
"(default true) Things (non-Tags) will be searched only if this is true"
)
),
returns = (SearchResultType, "A List of search results.")
),
Details("""Querki has built-in Search capabilities -- users can Search from the box in the menu bar, and the
|results are shown on the standard Search Results page. But sometimes you want more control over your searches:
|you want to show the results directly on a page, formatted the way you like. Or you want to control precisely what
|gets searched. The `_search()` function gives you that power.
|
|*Note:* _search will never return the Thing that it is defined on. That's necessary in order to prevent
|infinitely-recursive results.""".stripMargin)
)
) {
def createElements(result: SearchResultInternal): QValue = {
val bundles = result.elements.map { elem =>
SearchResultElementType(SimplePropertyBundle(
SearchResultProp(elem.prop.id),
SearchResultScore(elem.score),
SearchResultPositions(elem.positions: _*)
))
}
QList.makePropValue(bundles, SearchResultElementType)
}
override def qlApply(inv: Invocation): QFut = {
for {
query <- inv.processAs("query", ParsedTextType)
searchTags <- inv.processAs("searchTags", YesNoType)
searchThings <- inv.processAs("searchThings", YesNoType)
modelIds <- inv.processAs("models", LinkType).all
propertyIds <- inv.processAs("properties", LinkType).all
fullResult <-
inv.opt(search(query.plaintext, searchTags, searchThings, modelIds.toSeq, propertyIds.toSeq)(inv.state))
result <- inv.iter(fullResult.results)
// IMPORTANT: we mustn't return the Thing we're fetching this from, or the world will go recursive
// when we try to render!!!
if (inv.lexicalThing.isEmpty || inv.lexicalThing.get != result.thing)
} yield {
result.thing match {
case tag: IsTag =>
ExactlyOne(SearchResultType(SimplePropertyBundle(
SearchResultTag(result.thing.displayName),
SearchResultIsTag(true),
SearchResultScore(result.score),
SearchResultElements(createElements(result))
)))
case _ =>
ExactlyOne(SearchResultType(SimplePropertyBundle(
SearchResultThing(result.thing),
SearchResultIsTag(false),
SearchResultScore(result.score),
SearchResultElements(createElements(result))
)))
}
}
}
}
override lazy val props = Seq(
SearchInput,
SearchInline,
SearchResultThing,
SearchResultTag,
SearchResultIsTag,
SearchResultProp,
SearchResultPositions,
SearchResultScore,
SearchResultElements
)
/**
* ***********************************************
* Search Internals
*/
lazy val DisplayNameProp = interface[querki.basic.Basic].DisplayNameProp
def search(
searchStr: String,
searchTags: Boolean = true,
searchThings: Boolean = true,
modelIds: Seq[OID] = Seq.empty,
propertyIds: Seq[OID] = Seq.empty
)(implicit
state: SpaceState
): Option[SearchResultsInternal] = {
if (searchStr.length() < 3)
None
else {
val searchComp = searchStr.toLowerCase()
def matchLocs(s: String): List[Int] = {
def matchLocsRec(start: Int): List[Int] = {
val i = s.indexOf(searchComp, start)
if (i == -1)
Nil
else
i :: matchLocsRec(i + 1)
}
matchLocsRec(0)
}
def checkOne(t: Thing): Option[SearchResultInternal] = {
def collectElements: List[SearchResultElementInternal] = {
val nameElement: List[SearchResultElementInternal] =
if (
(propertyIds.isEmpty || propertyIds.contains(
querki.basic.MOIDs.DisplayNameOID
)) && t.unsafeDisplayName.toLowerCase().contains(searchComp)
) {
List(SearchResultElementInternal(
DisplayNameProp,
t.unsafeDisplayName,
0.5,
List(t.unsafeDisplayName.toLowerCase().indexOf(searchComp))
))
} else {
List.empty
}
val restElements: List[SearchResultElementInternal] = {
// If the request specified some particular Properties, only use those; otherwise, check all
// Properties:
val props =
if (propertyIds.isEmpty)
t.props.toSeq
else {
val propOpts = for {
propertyId <- propertyIds
} yield t.props.get(propertyId).map((propertyId, _))
propOpts.flatten
}
val tResults: List[Option[SearchResultElementInternal]] = props.toList.map { pair =>
val (propId, propValue) = pair
propValue.pType match {
// For now, we're only going to deal with Text types.
// TODO: cope with Links, Tags, and things like that!
case textType: querki.core.TextTypeBasis#TextTypeBase => {
// TODO: this currently only takes the first elem from the QValue; it should work on
// all of them!
val firstVal = propValue.firstAs(textType)
firstVal.flatMap { qtext =>
val propComp = qtext.text.toLowerCase()
if (propComp.contains(searchComp))
Some(SearchResultElementInternal(state.prop(propId).get, qtext.text, 0.25, matchLocs(propComp)))
else
None
}
}
case _ => None
}
}
tResults.flatten.toList
}
nameElement ++ restElements
}
val elements = collectElements
if (elements.isEmpty)
None
else {
Some(SearchResultInternal(t, Math.min(elements.map(_.score).reduce(_ + _), 1.0), elements))
}
}
val thingResults =
if (searchThings) {
val things =
if (modelIds.isEmpty)
// Search in the entire Space:
state.everythingLocal
else {
// Some Models have been specified, so gather the descendants of those Models:
(Set.empty[Thing] /: modelIds) { (set, modelId) =>
set ++ state.descendants(modelId, false, true, false)
}
}
things.map(checkOne(_)).flatten.toSeq
} else
Seq.empty
val tagResults: Seq[SearchResultInternal] =
if (searchTags)
Tags
.fetchAllTags(state)
.filter(_.toLowerCase.contains(searchComp))
.filter { tag =>
if (modelIds.isEmpty)
true
else
// If a particular model has been specified, then only return Tags for that Model:
modelIds.contains(Tags.preferredModelForTag(state, tag).id)
}
.map(Tags.getTag(_, state))
.map(tag =>
SearchResultInternal(
tag,
0.7,
List(SearchResultElementInternal(
DisplayNameProp,
tag.displayName,
0.7,
matchLocs(tag.displayName.toLowerCase)
))
)
)
.toSeq
else
Seq.empty
Some(SearchResultsInternal(searchStr, thingResults ++ tagResults))
}
}
}
|
Scala
|
module Language.TNT.Position
( Position (..)
) where
data Position = (:+:) { lineNumber :: {-# UNPACK #-} !Int
, columnNumber :: {-# UNPACK #-} !Int
} deriving Show
|
Haskell
|
<html>
<head>
<!-- INCLUDE CSS -->
<?php
// include all css files from selected subdirectory
function listAllFrom($folder, $folders){
foreach (glob($folder, GLOB_ONLYDIR) as $dir) {
$folders[] = $dir;
$folders = listAllFrom($dir."/*", $folders);
}
return $folders;
}
function getPathsToType($folder, $type){
$folder = $folder."*";
$files = array();
$folders = array();
$folders = listAllFrom($folder, $folders);
foreach (glob($folder.".".$type) as $filename){
$files[] = $filename;
}
foreach ($folders as $subfolder) {
$path = $subfolder."/*.".$type;
foreach (glob($path) as $filename){
$files[] = $filename;
}
}
return $files;
}
$css_universal = getPathsToType("../../style/css/universal/", 'css');
$css_backend = getPathsToType("../../style/css/backend/", 'css');
// CSS UNIVERSAL
foreach ($css_universal as $path) {
echo '<link href="'.$path.'" rel="stylesheet" type="text/css">';
}
// CSS BACKEND
foreach ($css_backend as $path) {
echo '<link href="'.$path.'" rel="stylesheet" type="text/css">';
}
?>
<!-- Google Font -->
<link href='https://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400,600,700&subset=latin-ext" rel="stylesheet">
<!-- Font Awesome -->
<link href="/style/font-awesome.min.css" rel="stylesheet" type='text/css'>
<link href="/style/luca.css" rel="stylesheet" type='text/css'>
</head>
<!-- LUCA APP -->
<?php
if(isset($_GET["path"])){
$path = $_SERVER['DOCUMENT_ROOT']."/_backend/app/template/".$_GET["path"];
echo $path;
require $path;
}else{
?>
<h1>CSS TEST - WINDOW</h1>
<div class="column">
<a href="?path=/window/edit_article_window.html">edit_article_window</a>
<a href="?path=/window/edit_file_window.html">edit_file_window</a>
<a href="?path=/window/edit_folder_window.html">edit_folder_window</a>
<a href="?path=/window/edit_form_window.html">edit_form_window</a>
<a href="?path=/window/edit_garant_window.html">edit_garant_window</a>
</div>
<h1>CSS TEST - POPUP</h1>
<div class="column">
<a href="?path=/popup/pop_edit_page.html">pop_edit_page</a>
<a href="?path=/popup/pop_select_page.html">pop_select_page</a>
<a href="?path=/popup/pop_select.html">pop_select</a>
<a href="?path=/popup/pop_edit_web_link.html">pop_edit_web_link</a>
</div>
<?php } ?>
</body><!-- APP end -->
</html>
|
Hack
|
use uni_gl::*;
use std::rc::Rc;
use std::cell::RefCell;
use engine::render::{Texture, TextureAttachment};
pub struct FrameBuffer {
pub texture: Rc<Texture>,
handle: RefCell<Option<WebGLFrameBuffer>>,
}
impl FrameBuffer {
pub fn new(width: u32, height: u32, attach: TextureAttachment) -> FrameBuffer {
let texture = Texture::new_render_texture(width, height, attach);
let handle = RefCell::new(None);
FrameBuffer { texture, handle }
}
fn create_fb(&self, gl: &WebGLRenderingContext) {
*self.handle.borrow_mut() = Some(gl.create_framebuffer());
}
pub fn prepare(&self, gl: &WebGLRenderingContext) {
if self.handle.borrow().is_some() {
return;
}
self.create_fb(gl);
self.bind(gl);
self.unbind(gl);
}
pub fn bind(&self, gl: &WebGLRenderingContext) {
let ho = self.handle.borrow();
let h = ho.as_ref().unwrap();
gl.bind_framebuffer(Buffers::Framebuffer, &h);
self.texture.bind_with_frame_buffer(gl, 0).unwrap();
}
pub fn unbind(&self, gl: &WebGLRenderingContext) {
gl.unbind_framebuffer(Buffers::Framebuffer);
}
}
|
RenderScript
|
#!/bin/sh
#
if [ $# -ne 5 ]; then
echo "TEQ_ccsm.sh: incorrect number of input arguments"
exit 1
fi
test_name=TEQ_ccsm.$1.$2.$3.$4.$5
if [ -f ${CAM_TESTDIR}/${test_name}/TestStatus ]; then
if grep -c PASS ${CAM_TESTDIR}/${test_name}/TestStatus > /dev/null; then
echo "TEQ_ccsm.sh: ccsm equivalent run test has already passed; results are in "
echo " ${CAM_TESTDIR}/${test_name}"
exit 0
else
read fail_msg < ${CAM_TESTDIR}/${test_name}/TestStatus
prev_jobid=${fail_msg#*job}
if [ $JOBID = $prev_jobid ]; then
echo "TEQ_ccsm.sh: ccsm equivalent run test has already failed for this job - will not reattempt; "
echo " results are in: ${CAM_TESTDIR}/${test_name}"
exit 2
else
echo "TEQ_ccsm.sh: this ccsm equivalent run test failed under job ${prev_jobid} - moving those results to "
echo " ${CAM_TESTDIR}/${test_name}_FAIL.job$prev_jobid and trying again"
cp -rp ${CAM_TESTDIR}/${test_name} ${CAM_TESTDIR}/${test_name}_FAIL.job$prev_jobid
fi
fi
fi
rundir=${CAM_TESTDIR}/${test_name}
if [ -d ${rundir} ]; then
rm -rf ${rundir}
fi
mkdir -p ${rundir}
if [ $? -ne 0 ]; then
echo "TEQ_ccsm.sh: error, unable to create work subdirectory"
exit 3
fi
cd ${rundir}
echo "TEQ_ccsm.sh: calling TSM_ccsm.sh for first smoke test"
${CAM_SCRIPTDIR}/TSM_ccsm.sh $1 $2 $5
rc=$?
if [ $rc -ne 0 ]; then
echo "TEQ_ccsm.sh: error from TSM_ccsm.sh= $rc"
echo "FAIL.job${JOBID}" > TestStatus
exit 4
fi
echo "TEQ_ccsm.sh: calling TSM.sh for second smoke test"
${CAM_SCRIPTDIR}/TSM.sh $3 $4 $5
rc=$?
if [ $rc -ne 0 ]; then
echo "TEQ_ccsm.sh: error from TSM.sh= $rc"
echo "FAIL.job${JOBID}" > TestStatus
exit 5
fi
echo "TEQ_ccsm.sh: starting b4b comparisons "
files_to_compare=`cd ${CAM_TESTDIR}/TSM_ccsm.$1.$2.$5; ls *.cam*.h*.nc *.cam*.i*.nc`
if [ -z "${files_to_compare}" ]; then
echo "TEQ_ccsm.sh: error locating files to compare"
echo "FAIL.job${JOBID}" > TestStatus
exit 6
fi
all_comparisons_good="TRUE"
for compare_file in ${files_to_compare}; do
mystring=${compare_file##*h0.[0-9][0-9][0-9][0-9]}
corresponding_file=`ls ${CAM_TESTDIR}/TSM.$3.$4.$5/*cam2.h0*${mystring}*`
${CAM_SCRIPTDIR}/CAM_compare.sh \
${CAM_TESTDIR}/TSM_ccsm.$1.$2.$5/${compare_file} \
${corresponding_file}
rc=$?
mv cprnc.out cprnc.${compare_file}.out
if [ $rc -eq 0 ]; then
echo "TEQ_ccsm.sh: comparison successful; output in ${rundir}/cprnc.${compare_file}.out"
else
echo "TEQ_ccsm.sh: error from CAM_compare.sh= $rc; see ${rundir}/cprnc.${compare_file}.out for details"
all_comparisons_good="FALSE"
fi
done
if [ ${all_comparisons_good} = "TRUE" ]; then
echo "TEQ_ccsm.sh: equivalent run test passed"
echo "PASS" > TestStatus
else
echo "TEQ_ccsm.sh: at least one file comparison did not pass"
echo "FAIL.job${JOBID}" > TestStatus
exit 7
fi
exit 0
|
Shell
|
{
"filename": "Foam",
"packing": true,
"packing_options": {
"shape": 0.195909940771,
"domain_size": 1,
"number_of_cells": 27,
"scale": 0.216136876376,
"algorithm": "-fba"
},
"tessellation": true,
"tessellation_options": {
"visualize_tessellation": false
},
"structured_grid": false,
"structured_grid_options": {
"render_box": false,
"strut_content": 0.6,
"porosity": 0.94,
"strut_size_guess": 4,
"binarize_box": true,
"move_to_periodic_box": true
},
"unstructured_grid": true,
"unstructured_grid_options": {
"create_geometry": true,
"convert_mesh": true,
"wall_thickness": 0.02,
"mesh_domain": true
}
}
|
JSON
|
body {
font-family: Courier New, monospace;
font-size: 10pt;
}
h1 {
font-family: Courier New, monospace;
font-size: 10pt;
}
h2 {
font-family: Courier New, monospace;
font-size: 10pt;
}
h3 {
font-family: Courier New, monospace;
font-size: 10pt;
}
a:link {
color: blue;
}
a:visited {
color: purple;
}
li.bulleted-list {
margin-top: 0.25em;
margin-bottom: 0.25em;
}
li {
margin-top: 1em;
margin-bottom: 1em;
}
|
CSS
|
//
// AppDelegate.swift
// Simple Table
//
// Created by Molly Maskrey on 7/7/16.
// Copyright © 2016 MollyMaskrey. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
private func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
Swift
|
unit Selettore;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, ComCtrls;
type
TfmSelettore = class(TForm)
lbCaratteri: TListBox;
lbDimensioni: TListBox;
reTesto: TRichEdit;
Splitter1: TSplitter;
Splitter2: TSplitter;
procedure FormCreate(Sender: TObject);
procedure ListeClick(Sender: TObject);
private
procedure SistemaTesto;
procedure CaricaCaratteri(aList: TListBox);
procedure CaricaDimensioni(aList: TListBox);
{ Private declarations }
public
{ Public declarations }
end;
var
fmSelettore: TfmSelettore;
implementation
{$R *.DFM}
procedure TfmSelettore.FormCreate(Sender: TObject);
begin // inizializza tutti i controlli
Caption := 'Selettore di testo';
CaricaCaratteri( lbCaratteri ); // carica i nomi dei font nella listbox
CaricaDimensioni( lbDimensioni ); // carica i numeri da 6 a 72 nella listbox
reTesto.Text := 'Testo di prova';
SistemaTesto; // applica il font selezionato al testo del RichEdit
end;
procedure TfmSelettore.CaricaCaratteri( aList: TListBox );
begin
// copia i nomi di tutti i caratteri disponibili per lo schermo nella
// ListBox passata alla funzione. Notare che non è detto che i caratteri
// disponibili per la stampante coincidano con questi.
aList.Items := Screen.Fonts;
aList.ItemIndex := 0; // seleziona il primo font.
end;
procedure TfmSelettore.CaricaDimensioni( aList: TListBox );
var
i: integer;
begin
aList.Clear;
for i := 6 to 72 do
aList.Items.Add( IntToStr( i ) ); // aggiunge il valore
aList.ItemIndex := 0;
end;
procedure TfmSelettore.SistemaTesto;
begin
if reTesto.SelLength = 0 then
begin
// se non è selezionato nulla applica la formattazione a tutto il testo
reTesto.Font.Name := lbCaratteri.Items[ lbCaratteri.ItemIndex ];
reTesto.Font.Size := StrToInt( lbDimensioni.Items[lbDimensioni.ItemIndex] );
end
else
begin
// altrimenti la applica solo al testo selezionato
reTesto.SelAttributes.Name := lbCaratteri.Items[ lbCaratteri.ItemIndex ];
reTesto.SelAttributes.Size :=
StrToInt( lbDimensioni.Items[ lbDimensioni.ItemIndex ] );
end;
end;
procedure TfmSelettore.ListeClick(Sender: TObject);
begin
// Selezionando su ambedue le liste il risultato è il medesimo.
SistemaTesto;
end;
end.
|
Pascal
|
api_test_JSON = (url, type, data, callback) ->
$.ajax(
url: url
type: type
processData: false
contentType: 'application/json; charset=utf-8'
data: JSON.stringify data
dataType: 'json'
async: false
complete: (result) ->
if result.status == 0
ok false, '0 status - browser could be on offline mode'
else if result.status == 404
ok false, '404 error'
else
callback $.parseJSON(result.responseText)
)
api_test_GET = (url, callback) ->
$.ajax(
url: url
async: false
complete: (result) ->
if result.status == 0
ok false, '0 status - browser could be on offline mode'
else if result.status == 404
ok false, '404 error'
else
callback $.parseJSON(result.responseText)
)
config =
host: 'http://localhost'
port: 8010
apiRoot: '/api'
createUrl = (resource) ->
config.host + ':' + config.port + config.apiRoot + resource
test "get all patterns synchronous", ->
api_test_GET createUrl('/patterns'), (result) ->
equal result.length, 2, 'there are 2 patterns'
asyncTest "get all patterns asynchronous", ->
$.ajax {
url: createUrl('/patterns')
success: (data, textStatus, jsXHR) ->
equal data.length, 2, "there are 2 patterns"
notEqual data.length, 3, "there are not 3 patterns"
}
setTimeout ( ->
start() ), 500
|
CoffeeScript
|
package MFM::File;
use strict;
use SimpleIO::Cat; # DEPEND
sub expand {
my $fn = shift;
return
map {
$_,
-f "$_/MFM-RULES" ? expand("$_/MFM-RULES", @_) : ()
}
grep { -d $_ }
map {
my $f = $_;
m{^[/.]} ? $_ : map { "$_/$f" } @_
}
grep { /[^ ]/ }
split /\n/, interpolate($fn);
}
sub interpolate {
my $fn = shift;
my $s = cat_scalar($fn);
my $r = eval"#line 1 $fn\n<<__MFM_EOS__\n${s}__MFM_EOS__\n";
$@ and die Error::Parent->new("...while parsing $fn", $@);
chop $r;
return $r;
}
1;
|
Perl
|
VERSION < v"0.7.0-beta2.199" && __precompile__(true)
module AutoHashEquals
export @auto_hash_equals
function auto_hash(name, names)
function expand(i)
if i == 0
:(hash($(QuoteNode(name)), h))
else
:(hash(a.$(names[i]), $(expand(i-1))))
end
end
quote
function Base.hash(a::$(name), h::UInt)
$(expand(length(names)))
end
end
end
function auto_equals(name, names)
function expand(i)
if i == 0
:true
else
:(isequal(a.$(names[i]), b.$(names[i])) && $(expand(i-1)))
end
end
quote
function Base.:(==)(a::$(name), b::$(name))
$(expand(length(names)))
end
end
end
struct UnpackException <: Exception
msg
end
unpack_name(node::Symbol) = node
function unpack_name(node::Expr)
if node.head == :macrocall
unpack_name(node.args[2])
else
i = node.head == :type || node.head == :struct ? 2 : 1 # skip mutable flag
if length(node.args) >= i && isa(node.args[i], Symbol)
node.args[i]
elseif length(node.args) >= i && isa(node.args[i], Expr) && node.args[i].head in (:(<:), :(::))
unpack_name(node.args[i].args[1])
elseif length(node.args) >= i && isa(node.args[i], Expr) && node.args[i].head == :curly
unpack_name(node.args[i].args[1])
else
throw(UnpackException("cannot find name in $(node)"))
end
end
end
macro auto_hash_equals(typ)
@assert typ.head == :type || typ.head == :struct
name = unpack_name(typ)
names = Vector{Symbol}()
for field in typ.args[3].args
try
push!(names, unpack_name(field))
catch ParseException
# not a field
end
end
@assert length(names) > 0
quote
Base.@__doc__($(esc(typ)))
$(esc(auto_hash(name, names)))
$(esc(auto_equals(name, names)))
end
end
end
|
Julia
|
#Tue, 23 Feb 2016 22:42:25 +0530
C\:\\Users\\Yogesh\\Documents\\NetBeansProjects\\2013-OOProgrammingWithJava-PART2\\week9-week9_17.FirstPackages=
|
INI
|
# Copyright (c) 2014-present Sonatype, Inc.
#
# 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.
FROM registry.access.redhat.com/ubi7/ubi
LABEL vendor=Sonatype \
maintainer="Sonatype <cloud-ops@sonatype.com>" \
com.sonatype.license="Apache License, Version 2.0" \
com.sonatype.name="Nexus Repository Manager OSS base image"
ARG NEXUS_VERSION=2.15.2-03
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/oss/nexus-${NEXUS_VERSION}-bundle.tar.gz
ENV SONATYPE_WORK=/sonatype-work
ENV NEXUS_HOME=/opt/sonatype/nexus
RUN yum install -v -y --disableplugin=subscription-manager hostname java-1.8.0-openjdk-headless \
&& yum-config-manager --add-repo https://vault.centos.org/centos/7/os/x86_64/ \
&& rpm --import https://vault.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7 \
&& yum install -v -y createrepo \
&& yum --disableplugin=subscription-manager clean all
RUN mkdir -p ${NEXUS_HOME} && \
curl --fail --silent --location --retry 3 ${NEXUS_DOWNLOAD_URL} | \
tar xz -C /tmp nexus-${NEXUS_VERSION} && \
mv /tmp/nexus-${NEXUS_VERSION}/* ${NEXUS_HOME}/ && \
rm -rf /tmp/nexus-${NEXUS_VERSION}
RUN useradd -r -u 200 -m -c "nexus role account" -d ${SONATYPE_WORK} -s /bin/false nexus
VOLUME ${SONATYPE_WORK}
EXPOSE 8081
WORKDIR ${NEXUS_HOME}
USER nexus
ENV CONTEXT_PATH /nexus
ENV MAX_HEAP 768m
ENV MIN_HEAP 256m
ENV JAVA_OPTS -server -Djava.net.preferIPv4Stack=true
ENV LAUNCHER_CONF ./conf/jetty.xml ./conf/jetty-requestlog.xml ./conf/jetty-http.xml
CMD java \
-Dnexus-work=${SONATYPE_WORK} -Dnexus-webapp-context-path=${CONTEXT_PATH} \
-Xms${MIN_HEAP} -Xmx${MAX_HEAP} \
-cp 'conf/:lib/*' \
${JAVA_OPTS} \
org.sonatype.nexus.bootstrap.Launcher ${LAUNCHER_CONF}
|
Dockerfile
|
# Function traits to support delayed evaluation
type TFun{S} end
type TCallSig{S, N} end
abstract FunKind
type EWiseOp <: FunKind end
type ReducOp <: FunKind end
get_op_kind{S,N}(::TCallSig{S,N}) = nothing
##########################################################################
#
# op-assignment
#
#########################################################################
is_opassign(f::TFun) = false
is_opassign(::TFun{:+=}) = true
is_opassign(::TFun{:-=}) = true
is_opassign(::TFun{:.*=}) = true
is_opassign(::TFun{:./=}) = true
is_opassign(f::Symbol) = is_opassign(TFun{f}())
extract_assign_op(::TFun{:+=}) = (:+)
extract_assign_op(::TFun{:-=}) = (:-)
extract_assign_op(::TFun{:.*=}) = (:.*)
extract_assign_op(::TFun{:./=}) = (:./)
##########################################################################
#
# general devices to facilitate function registration
#
#########################################################################
function register_ewise_mathop(sym::Symbol, nargs::Integer)
# the function to generate the codes to register a ewise function
tc = TCallSig{sym, nargs}
s1 = :( get_op_kind(::$(Meta.quot(tc))) = EWiseOp() )
tf = TFun{sym}
if nargs == 1
s2 = :( result_type(::$(Meta.quot(tf)),
T1::Type) = T1 )
elseif nargs == 2
s2 = :( result_type(::$(Meta.quot(tf)),
T1::Type, T2::Type) = promote_type(T1, T2) )
elseif nargs == 3
s2 = :( result_type(::$(Meta.quot(tf)),
T1::Type, T2::Type, T3::Type) = promote_type(promote_type(T1, T2), T3) )
else
error("register_ewise_mathop supports up to three arguments.")
end
:( $s1; $s2 )
end
function register_ewise_pred(sym::Symbol, nargs::Integer)
# the function to generate the codes to register a ewise predicate
tc = TCallSig{sym, nargs}
s1 = :( get_op_kind(::$(Meta.quot(tc))) = EWiseOp() )
tf = TFun{sym}
if nargs == 1
s2 = :( result_type(::$(Meta.quot(tf)), ::Type) = Bool )
elseif nargs == 2
s2 = :( result_type(::$(Meta.quot(tf)), ::Type, ::Type) = Bool )
elseif nargs == 3
s2 = :( result_type(::$(Meta.quot(tf)), ::Type, ::Type, ::Type) = Bool )
else
error("register_ewise_pred supports up to three arguments.")
end
:( $s1; $s2 )
end
function register_reductor(sym::Symbol, nargs::Integer)
# the function to generate the codes to register a reduction function
tc = TCallSig{sym, nargs}
s1 = :( get_op_kind(::$(Meta.quot(tc))) = ReducOp() )
tf = TFun{sym}
if nargs == 1
s2 = :( result_type(::$(Meta.quot(tf)),
T1::Type) = T1 )
elseif nargs == 2
s2 = :( result_type(::$(Meta.quot(tf)),
T1::Type, T2::Type) = promote_type(T1, T2) )
elseif nargs == 3
s2 = :( result_type(::$(Meta.quot(tf)),
T1::Type, T2::Type, T3::Type) = promote_type(promote_type(T1, T2), T3) )
else
error("register_reductor supports up to three arguments.")
end
:( $s1; $s2 )
end
##########################################################################
#
# registration of known operators and functions
#
#########################################################################
# arithmetics
for s in [:+, :-]
@eval $(register_ewise_mathop(s, 1))
end
for s in [:+, :-, :.+, :.-, :.*, :./, :.^, :max, :min]
@eval $(register_ewise_mathop(s, 2))
end
@eval $(register_ewise_mathop(:+, 3))
@eval $(register_ewise_mathop(:clamp, 3))
# comparison & logical
for s in [:.==, :.!=, :.<, :.>, :.<=, :.>= ]
@eval $(register_ewise_pred(s, 2))
end
get_op_kind(::TCallSig{:&, 2}) = EWiseOp()
get_op_kind(::TCallSig{:|, 2}) = EWiseOp()
result_type(::TFun{:&}, ::Type{Bool}, ::Type{Bool}) = Bool
result_type(::TFun{:|}, ::Type{Bool}, ::Type{Bool}) = Bool
# math functions
sqr(x::Number) = x * x
sqr{T<:Number}(a::AbstractArray{T}) = a .* a
rcp(x::AbstractFloat) = one(x) / x
rcp{T<:AbstractFloat}(a::AbstractArray{T}) = one(eltype(a)) ./ a
for s in [
:sqrt, :cbrt, :abs, :sqr, :rcp,
:floor, :ceil, :round, :trunc, :sign,
:exp, :log, :log10, :exp2, :log2, :expm1, :log1p,
:sin, :cos, :tan, :asin, :acos, :atan,
:sinh, :cosh, :tanh, :asinh, :acosh, :atanh,
:erf, :erfc, :gamma, :lgamma, :digamma ]
@eval $(register_ewise_mathop(s, 1))
end
for s in [:mod, :hypot, :atan2]
@eval $(register_ewise_mathop(s, 2))
end
# blending
blend{T1, T2}(c::Bool, x::T1, y::T2) = (c ? x : y)
get_op_kind(::TCallSig{:blend, 3}) = EWiseOp()
result_type(::TFun{:blend}, ::Type{Bool}, T1::Type, T2::Type) = promote_type(T1, T2)
# reduction functions
for s in [ :sum, :maximum, :minimum, :mean ]
@eval $(register_reductor(s, 1))
end
for s in [ :dot ]
@eval $(register_reductor(s, 2))
end
# reduction function traits
reduc_result_getter(f::TFun, s::Symbol, n::Symbol) = s
reduc_initializer(f::TFun{:sum}, ty::Symbol) = :( zero($ty) )
reduc_emptyval(f::TFun{:sum}, ty::Symbol) = :( zero($ty) )
reduc_updater(f::TFun{:sum}, s::Symbol, x::Symbol) = :( $s += $x )
reduc_initializer(f::TFun{:maximum}, ty::Symbol) = :( typemin($ty) )
reduc_emptyval(f::TFun{:maximum}, ty::Symbol) = :( typemin($ty) )
reduc_updater(f::TFun{:maximum}, s::Symbol, x::Symbol) = :( $s = max($s, $x) )
reduc_initializer(f::TFun{:minimum}, ty::Symbol) = :( typemax($ty) )
reduc_emptyval(f::TFun{:minimum}, ty::Symbol) = :( typemax($ty) )
reduc_updater(f::TFun{:minimum}, s::Symbol, x::Symbol) = :( $s = min($s, $x) )
reduc_initializer(f::TFun{:mean}, ty::Symbol) = :( zero($ty) )
reduc_emptyval(f::TFun{:mean}, ty::Symbol) = :( nan($ty) )
reduc_updater(f::TFun{:mean}, s::Symbol, x::Symbol) = :( $s += $x )
reduc_result_getter(f::TFun{:mean}, s::Symbol, n::Symbol) = :( $s / $n )
reduc_initializer(f::TFun{:dot}, ty::Symbol) = :( zero($ty) )
reduc_emptyval(f::TFun{:dot}, ty::Symbol) = :( zero($ty) )
reduc_updater(f::TFun{:dot}, s::Symbol, x::Symbol, y::Symbol) = :( $s += $x * $y )
|
Julia
|
package com.wade.framework.spring;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Enumeration;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import com.wade.framework.data.Timer;
import com.wade.framework.spring.BussinessLog.OpType;
/**
* aop controller 日志
* @Description aop controller 日志
* @ClassName LogAop
* @Date 2017年6月17日 上午12:51:21
* @Author yz.teng
*/
@Aspect
@Component
public class LogAop {
private static final Logger log = Logger.getLogger(LogAop.class);
/**
* 定义Pointcut,Pointcut的名称,此方法不能有返回值,该方法只是一个标示
*/
@Pointcut("@annotation(com.talkweb.framework.common.util.spring.BussinessLog)")
public void controllerAspect() {
}
/**
* 环绕通知(Around advice) :包围一个连接点的通知,类似Web中Servlet规范中的Filter的doFilter方法。可以在方法的调用前后完成自定义的行为,也可以选择不执行。
* @param joinPoint
*/
@Around("controllerAspect()")
public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable {
log.info("=====aop log start=====");
// 开始计算时间
Timer timer = new Timer();
ServletRequestAttributes attributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
HttpServletRequest request = attributes.getRequest();
// 记录下请求内容
log.debug("方法描述:" + getControllerMethodDescription(joinPoint));
log.debug("URL : " + request.getRequestURL().toString());
log.debug("HTTP_METHOD : " + request.getMethod());
log.debug("IP : " + request.getRemoteAddr());
log.debug("CLASS_METHOD : " + joinPoint.getSignature().getDeclaringTypeName() + "." + joinPoint.getSignature().getName());
log.debug("ARGS : " + Arrays.toString(joinPoint.getArgs()));
log.debug("Headers-Uuid : " + request.getHeader("Uuid"));
//获取所有参数方法一:
Enumeration<String> enu = request.getParameterNames();
while (enu.hasMoreElements()) {
String paraName = (String)enu.nextElement();
log.debug(paraName + ": " + request.getParameter(paraName));
}
Object obj = joinPoint.proceed();
log.debug(" use time:" + Long.valueOf(timer.getUseTimeInMillis()) + " ms");
log.debug("=====aop log end=====");
return obj;
}
/**
* 获取注解中对方法的描述信息 用于Controller层注解
*
* @param joinPoint 切点
* @return 方法描述
* @throws Exception
*/
public static String getControllerMethodDescription(JoinPoint joinPoint) throws Exception {
String targetName = joinPoint.getTarget().getClass().getName();
String methodName = joinPoint.getSignature().getName();
Object[] arguments = joinPoint.getArgs();
Class targetClass = Class.forName(targetName);
Method[] methods = targetClass.getMethods();
String desc = "";
OpType type;
StringBuilder sb = new StringBuilder();
for (Method method : methods) {
if (method.getName().equals(methodName)) {
Class[] clazzs = method.getParameterTypes();
if (clazzs.length == arguments.length) {
desc = method.getAnnotation(BussinessLog.class).desc();
sb.append("desc:").append(desc).append(" ");
type = method.getAnnotation(BussinessLog.class).type();
sb.append(" type:").append(type);
break;
}
}
}
return sb.toString();
}
}
|
Java
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title>Example and test programs</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<!-- html,3 -->
<meta name="src" content="userhtml.tex">
<link rel="stylesheet" type="text/css" href="userhtml.css">
</head><body
>
<!--l. 326--><div class="crosslinks"><p class="noindent"><span
class="cmr-12">[</span><a
href="userhtmlsu4.html" ><span
class="cmr-12">prev</span></a><span
class="cmr-12">] [</span><a
href="userhtmlsu4.html#tailuserhtmlsu4.html" ><span
class="cmr-12">prev-tail</span></a><span
class="cmr-12">] [</span><a
href="#tailuserhtmlsu5.html"><span
class="cmr-12">tail</span></a><span
class="cmr-12">] [</span><a
href="userhtmlse3.html#userhtmlsu5.html" ><span
class="cmr-12">up</span></a><span
class="cmr-12">] </span></p></div>
<h4 class="subsectionHead"><span class="titlemark"><span
class="cmr-12">3.5 </span></span> <a
id="x12-110003.5"></a><span
class="cmr-12">Example and test programs</span></h4>
<!--l. 327--><p class="noindent" ><span
class="cmr-12">The package contains the </span><span class="obeylines-h"><span class="verb"><span
class="cmtt-12">examples</span></span></span> <span
class="cmr-12">and </span><span class="obeylines-h"><span class="verb"><span
class="cmtt-12">tests</span></span></span> <span
class="cmr-12">directories; both of them are</span>
<span
class="cmr-12">further divided into </span><span class="obeylines-h"><span class="verb"><span
class="cmtt-12">fileread</span></span></span> <span
class="cmr-12">and </span><span class="obeylines-h"><span class="verb"><span
class="cmtt-12">pdegen</span></span></span> <span
class="cmr-12">subdirectories. Their purpose is as</span>
<span
class="cmr-12">follows:</span>
<dl class="description"><dt class="description">
<span
class="cmtt-12">examples</span> </dt><dd
class="description"><span
class="cmr-12">contains a set of simple example programs with a predefined choice of</span>
<span
class="cmr-12">preconditioners, selectable via integer values. These are intended to get an</span>
<span
class="cmr-12">acquaintance with the multilevel preconditioners available in MLD2P4.</span>
</dd><dt class="description">
<span
class="cmtt-12">tests</span> </dt><dd
class="description"><span
class="cmr-12">contains a set of more sophisticated examples that will allow the user, via</span>
<span
class="cmr-12">the input files in the </span><span class="obeylines-h"><span class="verb"><span
class="cmtt-12">runs</span></span></span> <span
class="cmr-12">subdirectories, to experiment with the full range</span>
<span
class="cmr-12">of preconditioners implemented in the package.</span></dd></dl>
<!--l. 340--><p class="noindent" ><span
class="cmr-12">The </span><span class="obeylines-h"><span class="verb"><span
class="cmtt-12">fileread</span></span></span> <span
class="cmr-12">directories contain sample programs that read sparse matrices from files,</span>
<span
class="cmr-12">according to the Matrix Market or the Harwell-Boeing storage format; the </span><span class="obeylines-h"><span class="verb"><span
class="cmtt-12">pdegen</span></span></span>
<span
class="cmr-12">programs generate matrices in full parallel mode from the discretization of a sample</span>
<span
class="cmr-12">partial differential equation.</span>
<!--l. 1--><div class="crosslinks"><p class="noindent"><span
class="cmr-12">[</span><a
href="userhtmlsu4.html" ><span
class="cmr-12">prev</span></a><span
class="cmr-12">] [</span><a
href="userhtmlsu4.html#tailuserhtmlsu4.html" ><span
class="cmr-12">prev-tail</span></a><span
class="cmr-12">] [</span><a
href="userhtmlsu5.html" ><span
class="cmr-12">front</span></a><span
class="cmr-12">] [</span><a
href="userhtmlse3.html#userhtmlsu5.html" ><span
class="cmr-12">up</span></a><span
class="cmr-12">] </span></p></div>
<!--l. 1--><p class="indent" > <a
id="tailuserhtmlsu5.html"></a>
</body></html>
|
HTML
|
use Text::MultiMarkdown 'markdown';
my $text = << "IN";
||||
software|compress time|decompress time|
SAITRandomAccess|3m7.985s|4m26.988s|
CRAM|5m3.405s|1m3.945s|
[Compress/decompress time]
IN
my $html = markdown($text);
print $html;
|
Perl
|
//
// Credentials.swift
// Kinvey
//
// Created by Victor Barros on 2015-12-14.
// Copyright © 2015 Kinvey. All rights reserved.
//
import Foundation
/// Protocol that provides an autorization header used for set the `Authorization` header required by Kinvey calls.
public protocol Credential {
/// Autorization header used for set the `Authorization` header required by Kinvey calls.
var authorizationHeader: String? { get }
}
|
Swift
|
defmodule GermanyNumbers.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(error), class: "help-block"
end
end
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# Because error messages were defined within Ecto, we must
# call the Gettext module passing our Gettext backend. We
# also use the "errors" domain as translations are placed
# in the errors.po file.
# Ecto will pass the :count keyword if the error message is
# meant to be pluralized.
# On your own code and templates, depending on whether you
# need the message to be pluralized or not, this could be
# written simply as:
#
# dngettext "errors", "1 file", "%{count} files", count
# dgettext "errors", "is invalid"
#
if count = opts[:count] do
Gettext.dngettext(GermanyNumbers.Gettext, "errors", msg, msg, count, opts)
else
Gettext.dgettext(GermanyNumbers.Gettext, "errors", msg, opts)
end
end
end
|
Elixir
|
# See bottom of file for license and copyright information
package Foswiki;
use strict;
use warnings;
# applyPatternToIncludedText( $text, $pattern ) -> $text
# Apply a pattern on included text to extract a subset
# Package-private; used by IncludeHandlers.
sub applyPatternToIncludedText {
my ( $text, $pattern ) = @_;
$pattern = Foswiki::Sandbox::untaint( $pattern, \&validatePattern );
my $ok = 0;
eval {
# The eval acts as a try block in case there is anything evil in
# the pattern.
# The () ensures that $1 is defined if $pattern matches
# but does not capture anything
if ( $text =~ m/$pattern()/is ) {
$text = $1;
}
else {
# The pattern did not match, so return nothing
$text = '';
}
$ok = 1;
};
$text = '' unless $ok;
return $text;
}
# Replace web references in a topic. Called from forEachLine, applying to
# each non-verbatim and non-literal line.
sub _fixupIncludedTopic {
my ( $text, $options ) = @_;
my $fromWeb = $options->{web};
unless ( $options->{in_noautolink} ) {
# 'TopicName' to 'Web.TopicName'
$text =~
s#(?:^|(?<=[\s(]))($Foswiki::regex{wikiWordRegex})(?=\s|\)|$)#$fromWeb.$1#go;
}
# Handle explicit [[]] everywhere
# '[[TopicName][...]]' to '[[Web.TopicName][...]]'
$text =~ s/\[\[([^]]+)\](?:\[([^]]+)\])?\]/
_fixIncludeLink( $fromWeb, $1, $2 )/geo;
return $text;
}
# Add a web reference to a [[...][...]] link in an included topic
sub _fixIncludeLink {
my ( $web, $link, $label ) = @_;
# Detect absolute and relative URLs and web-qualified wikinames
if ( $link =~
m#^($Foswiki::regex{webNameRegex}\.|$Foswiki::regex{defaultWebNameRegex}\.|$Foswiki::regex{linkProtocolPattern}:|/)#o
)
{
if ($label) {
return "[[$link][$label]]";
}
else {
return "[[$link]]";
}
}
elsif ( !$label ) {
# Must be wikiword or spaced-out wikiword (or illegal link :-/)
$label = $link;
}
# If link is only an anchor, leave it as is (Foswikitask:Item771)
return "[[$link][$label]]" if $link =~ /^#/;
return "[[$web.$link][$label]]";
}
# generate an include warning
# SMELL: varying number of parameters idiotic to handle for customized $warn
sub _includeWarning {
my $this = shift;
my $warn = shift;
my $message = shift;
if ( $warn eq 'on' ) {
return $this->inlineAlert( 'alerts', $message, @_ );
}
elsif ( isTrue($warn) ) {
# different inlineAlerts need different argument counts
my $argument = '';
if ( $message eq 'topic_not_found' ) {
my ( $web, $topic ) = @_;
$argument = "$web.$topic";
}
else {
$argument = shift;
}
$warn =~ s/\$topic/$argument/go if $argument;
return $warn;
} # else fail silently
return '';
}
# Processes a specific instance %<nop>INCLUDE{...}% syntax.
# Returns the text to be inserted in place of the INCLUDE command.
# $includingTopicObject should be for the immediate parent topic in the
# include hierarchy. Works for both URLs and absolute server paths.
sub INCLUDE {
my ( $this, $params, $includingTopicObject ) = @_;
# remember args for the key before mangling the params
my $args = $params->stringify();
# Remove params, so they don't get expanded in the included page
my %control;
for my $p (qw(_DEFAULT pattern rev section raw warn)) {
$control{$p} = $params->remove($p);
}
$control{warn} ||= $this->{prefs}->getPreference('INCLUDEWARNING');
# make sure we have something to include. If we don't do this, then
# normalizeWebTopicName will default to WebHome. TWikibug:Item2209.
unless ( $control{_DEFAULT} ) {
return $this->_includeWarning( $control{warn}, 'bad_include_path', '' );
}
# Filter out '..' from path to prevent includes of '../../file'
if ( $Foswiki::cfg{DenyDotDotInclude} && $control{_DEFAULT} =~ /\.\./ ) {
return $this->_includeWarning( $control{warn}, 'bad_include_path',
$control{_DEFAULT} );
}
# no sense in considering an empty string as an unfindable section
delete $control{section}
if ( defined( $control{section} ) && $control{section} eq '' );
$control{raw} ||= '';
$control{inWeb} = $includingTopicObject->web;
$control{inTopic} = $includingTopicObject->topic;
# Protocol links e.g. http:, https:, doc:
if ( $control{_DEFAULT} =~ /^([a-z]+):/ ) {
my $handler = $1;
eval 'use Foswiki::IncludeHandlers::' . $handler . ' ()';
if ($@) {
return $this->_includeWarning( $control{warn}, 'bad_include_path',
$control{_DEFAULT} );
}
else {
$handler = 'Foswiki::IncludeHandlers::' . $handler;
return $handler->INCLUDE( $this, \%control, $params );
}
}
# No protocol handler; must be a topic reference
my $text = '';
my $includedWeb;
my $includedTopic = $control{_DEFAULT};
$includedTopic =~ s/\.txt$//; # strip optional (undocumented) .txt
( $includedWeb, $includedTopic ) =
$this->normalizeWebTopicName( $includingTopicObject->web,
$includedTopic );
if ( !Foswiki::isValidTopicName( $includedTopic, 1 ) ) {
return $this->_includeWarning( $control{warn}, 'bad_include_path',
$control{_DEFAULT} );
}
# See Codev.FailedIncludeWarning for the history.
unless ( $this->{store}->topicExists( $includedWeb, $includedTopic ) ) {
return _includeWarning( $this, $control{warn}, 'topic_not_found',
$includedWeb, $includedTopic );
}
# prevent recursive includes. Note that the inclusion of a topic into
# itself is not blocked; however subsequent attempts to include the
# topic will fail. There is a hard block of 99 on any recursive include.
my $key = $includingTopicObject->web . '.' . $includingTopicObject->topic;
my $count = grep( $key, keys %{ $this->{_INCLUDES} } );
$key .= $args;
if ( $this->{_INCLUDES}->{$key} || $count > 99 ) {
return _includeWarning( $this, $control{warn}, 'already_included',
"$includedWeb.$includedTopic", '' );
}
# Push the topic context to the included topic, so we can create
# local (SESSION) macro definitions without polluting the including
# topic namespace.
$this->{prefs}->pushTopicContext( $this->{webName}, $this->{topicName} );
$this->{_INCLUDES}->{$key} = 1;
my $includedTopicObject =
Foswiki::Meta->load( $this, $includedWeb, $includedTopic, $control{rev} );
unless ( $includedTopicObject->haveAccess('VIEW') ) {
if ( isTrue( $control{warn} ) ) {
return $this->inlineAlert( 'alerts', 'access_denied',
"[[$includedWeb.$includedTopic]]" );
} # else fail silently
return '';
}
my $memWeb = $this->{prefs}->getPreference('INCLUDINGWEB');
my $memTopic = $this->{prefs}->getPreference('INCLUDINGTOPIC');
my $dirtyAreas = {};
try {
# Copy params into session level preferences. That way finalisation
# will apply to them. These preferences will be popped when the topic
# context is restored after the include.
$this->{prefs}->setSessionPreferences(%$params);
# Set preferences that finalisation does *not* apply to
$this->{prefs}->setInternalPreferences(
INCLUDINGWEB => $includingTopicObject->web,
INCLUDINGTOPIC => $includingTopicObject->topic
);
$text = $includedTopicObject->text;
# Simplify leading, and remove trailing, newlines. If we don't remove
# trailing, it becomes impossible to %INCLUDE a topic into a table.
$text =~ s/^[\r\n]+/\n/;
$text =~ s/[\r\n]+$//;
# remove everything before and after the default include block unless
# a section is explicitly defined
if ( !$control{section} ) {
$text =~ s/.*?%STARTINCLUDE%//s;
$text =~ s/%STOPINCLUDE%.*//s;
}
# prevent dirty areas in included topics from being parsed
$text = takeOutBlocks( $text, 'dirtyarea', $dirtyAreas )
if $Foswiki::cfg{Cache}{Enabled};
# handle sections
my ( $ntext, $sections ) = parseSections($text);
my $interesting = ( defined $control{section} );
if ( $interesting || scalar(@$sections) ) {
# Rebuild the text from the interesting sections
$text = '';
foreach my $s (@$sections) {
if ( $control{section}
&& $s->{type} eq 'section'
&& $s->{name} eq $control{section} )
{
$text .=
substr( $ntext, $s->{start}, $s->{end} - $s->{start} );
$interesting = 1;
last;
}
elsif ( $s->{type} eq 'include' && !$control{section} ) {
$text .=
substr( $ntext, $s->{start}, $s->{end} - $s->{start} );
$interesting = 1;
}
}
}
if ( $interesting and ( length($text) eq 0 ) ) {
$text =
_includeWarning( $this, $control{warn}, 'topic_section_not_found',
$includedWeb, $includedTopic, $control{section} );
}
else {
# If there were no interesting sections, restore the whole text
$text = $ntext unless $interesting;
$text = applyPatternToIncludedText( $text, $control{pattern} )
if ( $control{pattern} );
# Do not show TOC in included topic if TOC_HIDE_IF_INCLUDED
# preference has been set
if ( isTrue( $this->{prefs}->getPreference('TOC_HIDE_IF_INCLUDED') )
)
{
$text =~ s/%TOC(?:{(.*?)})?%//g;
}
$this->innerExpandMacros( \$text, $includedTopicObject );
# 4th parameter tells plugin that its called for an included file
$this->{plugins}
->dispatch( 'commonTagsHandler', $text, $includedTopic,
$includedWeb, 1, $includedTopicObject );
# We have to expand tags again, because a plugin may have inserted
# additional tags.
$this->innerExpandMacros( \$text, $includedTopicObject );
# If needed, fix all 'TopicNames' to 'Web.TopicNames' to get the
# right context so that links continue to work properly
if ( $includedWeb ne $includingTopicObject->web ) {
my $removed = {};
$text = $this->renderer->forEachLine(
$text,
\&_fixupIncludedTopic,
{
web => $includedWeb,
pre => 1,
noautolink => 1
}
);
# handle tags again because of plugin hook
innerExpandMacros( $this, \$text, $includedTopicObject );
}
}
}
finally {
# always restore the context, even in the event of an error
delete $this->{_INCLUDES}->{$key};
$this->{prefs}->setInternalPreferences(
INCLUDINGWEB => $memWeb,
INCLUDINGTOPIC => $memTopic
);
# restoring dirty areas
putBackBlocks( \$text, $dirtyAreas, 'dirtyarea' )
if $Foswiki::cfg{Cache}{Enabled};
( $this->{webName}, $this->{topicName} ) =
$this->{prefs}->popTopicContext();
};
return $text;
}
1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2009 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Additional copyrights apply to some or all of the code in this
file as follows:
Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org
and TWiki Contributors. All Rights Reserved. TWiki Contributors
are listed in the AUTHORS file in the root of this distribution.
Based on parts of Ward Cunninghams original Wiki and JosWiki.
Copyright (C) 1998 Markus Peter - SPiN GmbH (warpi@spin.de)
Some changes by Dave Harris (drh@bhresearch.co.uk) incorporated
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version. For
more details read LICENSE in the root of this distribution.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
As per the GPL, removal of this notice is prohibited.
|
Perl
|
(ns hozumi.assoc-seq)
(defn assoc-seq
[map key-seq val-seq]
(if (empty? key-seq)
map
(loop [map map
key-seq key-seq
val-seq val-seq]
(let [key-fs (first key-seq)
val-fs (first val-seq)]
(if-let [key-next (next key-seq)]
(recur (assoc map key-fs val-fs) key-next (next val-seq))
(assoc map key-fs val-fs))))))
|
Clojure
|
package Net::SSH::Perl::Cipher::CTR;
use strict;
sub new {
my($class, $ciph, $iv) = @_;
bless {
cipher => $ciph,
iv => substr($iv,0,$ciph->blocksize) || "\0" x $ciph->blocksize,
}, $class;
}
sub encrypt {
my $ctr = shift;
my $data = shift;
my $retval = '';
my $iv = $ctr->{iv};
my $size = $ctr->{cipher}->blocksize;
while (length $data) {
my $in = substr($data, 0, $size, '');
$in ^= $ctr->{cipher}->encrypt($iv);
$iv = $ctr->_increment($iv);
$retval .= $in;
}
$ctr->{iv} = $iv;
$retval;
}
sub _increment {
my $ctr = shift;
my $iv = shift;
for my $i (1..$ctr->{cipher}->blocksize) {
my $num = (unpack('C', substr($iv,-$i,1)) + 1) & 0xff;
substr($iv,-$i,1,pack('C',$num));
last if $num;
}
$iv
}
sub decrypt { shift->encrypt(@_) }
1;
__END__
=head1 NAME
Net::SSH::Perl::Cipher::CTR - Counter Mode Implementation
=head1 SYNOPSIS
use Net::SSH::Cipher::CTR;
my $ctr = Net::SSH::Cipher::CTR->new($cipher_obj);
print $ctr->encrypt($plaintext);
=head1 DESCRIPTION
I<Net::SSH::Perl::Cipher::CTR> provides a CTR (counter
mode) implementation for SSH encryption ciphers.
=head1 AUTHOR & COPYRIGHTS
Lance Kinley E<lkinley@loyaltymethods.com>
Copyright (c) 2015 Loyalty Methods, Inc.
=head1 LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
=cut
|
Perl
|
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-17
android.library.reference.1=../actionbarSherlock/library
android.library.reference.2=../../aFileChooser/aFileChooser
|
INI
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.