content
stringlengths
4
1.04M
lang
stringclasses
358 values
score
int64
0
5
repo_name
stringlengths
5
114
repo_path
stringlengths
4
229
repo_licenses
listlengths
1
8
@color: red; .el-form-item { span { margin-left: 15px; } } .demo-table-expand { font-size: 0; label { width: 90px; color: #99a9bf; } .el-form-item { margin-right: 0; margin-bottom: 0; width: 50%; } }
Less
2
Icarus0xff/frp
web/frps/src/utils/less/custom.less
[ "Apache-2.0" ]
<% Option Explicit Response.Expires = 0 Response.Buffer = True %> <!-- * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * 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 . --> <!-- #include file = "common.inc" --> <% Dim aPictureArray, nPic, nUpper aPictureArray = File_getDataVirtual( csFilePicture, ".", ";" ) nPic = File_readVirtual( "currpic.txt", "." ) nUpper = CInt( (UBound(aPictureArray) - 1 ) / 2) %> <HTML> <HEAD> </HEAD> <BODY> <FORM action="savepic.asp" method=get> <% if isNumeric(nPic) then if (CInt( nPic ) >= CInt( (UBound(aPictureArray ) - 1 ) / 2 )) then nPic = nUpper end if else nPic = nUpper end if if CInt( nPic ) > 1 then %> <INPUT type=submit name="Auswahl" value="-"></INPUT> <% else %> <INPUT type=button value=" "></INPUT> <% end if %> <INPUT type=text name="CurrPic" value="<% = nPic %>" SIZE=3></INPUT> <% if CInt( nPic ) < CInt( nUpper ) then %> <INPUT type=submit name="Auswahl" value="+"></INPUT> <% else %> <INPUT type=button value=" "></INPUT> <% end if %> <INPUT type=submit name="Auswahl" value="$$2"></INPUT> </FORM> </BODY> </HTML>
ASP
3
jerrykcode/kkFileView
office-plugin/windows-office/share/config/webcast/editpic.asp
[ "Apache-2.0" ]
../compile-config/sql.jq
JSONiq
3
onthway/deepdive
compiler/compile-code/sql.jq
[ "Apache-2.0" ]
## DeBruijn encodings in Agda \begin{code} module DeBruijn2 where \end{code} ## Imports \begin{code} import Relation.Binary.PropositionalEquality as Eq open Eq using (_≑_; refl; sym; trans; cong) open Eq.≑-Reasoning open import Data.Nat using (β„•; zero; suc) open import Data.Product using (_Γ—_; proj₁; projβ‚‚) renaming (_,_ to ⟨_,_⟩) open import Data.Sum using (_⊎_; inj₁; injβ‚‚) open import Relation.Nullary using (Β¬_) open import Relation.Nullary.Negation using (contraposition) open import Data.Unit using (⊀; tt) open import Data.Empty using (βŠ₯; βŠ₯-elim) open import Function using (_∘_) \end{code} ## Representation \begin{code} infixr 4 _,_ data TEnv : Set where Ξ΅ : TEnv _,* : TEnv β†’ TEnv data Type : TEnv β†’ Set where `β„• : βˆ€ {Ξ” : TEnv} β†’ Type Ξ” _`β†’_ : βˆ€ {Ξ” : TEnv} β†’ Type Ξ” β†’ Type Ξ” β†’ Type Ξ” `βˆ€ : βˆ€ {Ξ” : TEnv} β†’ Type (Ξ” ,*) β†’ Type Ξ” data Env : TEnv β†’ Set where Ξ΅ : {Ξ” : TEnv} β†’ Env Ξ” _,_ : {Ξ” : TEnv} β†’ Env Ξ” β†’ Type Ξ” β†’ Env Ξ” data TVar : TEnv β†’ Set where zero : βˆ€ {Ξ” : TEnv} β†’ TVar (Ξ” ,*) suc : βˆ€ {Ξ” : TEnv} β†’ TVar Ξ” β†’ TVar (Ξ” ,*) data Var : (Ξ” : TEnv) β†’ Env Ξ” β†’ Type Ξ” β†’ Set where zero : βˆ€ {Ξ” : TEnv} {Ξ“ : Env Ξ”} {A : Type Ξ”} β†’ Var Ξ” (Ξ“ , A) A suc : βˆ€ {Ξ” : TEnv} {Ξ“ : Env Ξ”} {A B : Type Ξ”} β†’ Var Ξ” Ξ“ B β†’ Var Ξ” (Ξ“ , A) B sub : βˆ€ {Ξ” : TEnv} β†’ Type (Ξ” ,*) β†’ TVar (Ξ” ,*) β†’ Type Ξ” β†’ Type Ξ” sub = ? data Exp : (Ξ” : TEnv) β†’ Env Ξ” β†’ Type Ξ” β†’ Set where var : βˆ€ {Ξ” : TEnv} {Ξ“ : Env Ξ”} {A : Type Ξ”} β†’ Var Ξ” Ξ“ A β†’ Exp Ξ” Ξ“ A abs : βˆ€ {Ξ” : TEnv} {Ξ“ : Env Ξ”} {A B : Type Ξ”} β†’ Exp Ξ” (Ξ“ , A) B β†’ Exp Ξ” Ξ“ (A `β†’ B) app : βˆ€ {Ξ” : TEnv} {Ξ“ : Env Ξ”} {A B : Type Ξ”} β†’ Exp Ξ” Ξ“ (A `β†’ B) β†’ Exp Ξ” Ξ“ A β†’ Exp Ξ” Ξ“ B tabs : βˆ€ {Ξ” : TEnv} {Ξ“ : Env Ξ”} {B : Type Ξ”} β†’ Exp (Ξ” ,*) Ξ“ B β†’ Exp Ξ” Ξ“ (`βˆ€ B) tapp : βˆ€ {Ξ” : TEnv} {Ξ“ : Env Ξ”} {B : Type Ξ”} β†’ Exp Ξ” Ξ“ (`βˆ€ B) β†’ (A : Type Ξ”) β†’ Exp Ξ” Ξ“ (sub B zero A) type : Type β†’ Set type `β„• = β„• type (A `β†’ B) = type A β†’ type B env : Env β†’ Set env Ξ΅ = ⊀ env (Ξ“ , A) = env Ξ“ Γ— type A lookup : βˆ€ {Ξ“ : Env} {A : Type} β†’ Var Ξ“ A β†’ env Ξ“ β†’ type A lookup zero ⟨ ρ , v ⟩ = v lookup (suc n) ⟨ ρ , v ⟩ = lookup n ρ eval : βˆ€ {Ξ“ : Env} {A : Type} β†’ Exp Ξ“ A β†’ env Ξ“ β†’ type A eval (var n) ρ = lookup n ρ eval (abs N) ρ = Ξ»{ v β†’ eval N ⟨ ρ , v ⟩ } eval (app L M) ρ = eval L ρ (eval M ρ) \end{code}
Literate Agda
5
manikdv/plfa.github.io
extra/extra/DeBruijn2.lagda
[ "CC-BY-4.0" ]
use @pony_os_stdout[Pointer[U8]]() use @pony_os_stderr[Pointer[U8]]() use @pony_os_std_flush[None](file: Pointer[None] tag) use @pony_os_std_print[None](file: Pointer[None] tag, buffer: Pointer[U8] tag, size: USize) use @pony_os_std_write[None](file: Pointer[None] tag, buffer: Pointer[U8] tag, size: USize) type ByteSeq is (String | Array[U8] val) interface val ByteSeqIter """ Accept an iterable collection of String or Array[U8] val. """ fun values(): Iterator[this->ByteSeq box] interface tag OutStream """ Asnychronous access to some output stream. """ be print(data: ByteSeq) """ Print some bytes and insert a newline afterwards. """ be write(data: ByteSeq) """ Print some bytes without inserting a newline afterwards. """ be printv(data: ByteSeqIter) """ Print an iterable collection of ByteSeqs. """ be writev(data: ByteSeqIter) """ Write an iterable collection of ByteSeqs. """ be flush() """ Flush the stream. """ actor StdStream """ Asynchronous access to stdout and stderr. The constructors are private to ensure that access is provided only via an environment. """ var _stream: Pointer[U8] new _out() => """ Create an async stream for stdout. """ _stream = @pony_os_stdout() new _err() => """ Create an async stream for stderr. """ _stream = @pony_os_stderr() be print(data: ByteSeq) => """ Print some bytes and insert a newline afterwards. """ _print(data) be write(data: ByteSeq) => """ Print some bytes without inserting a newline afterwards. """ _write(data) be printv(data: ByteSeqIter) => """ Print an iterable collection of ByteSeqs. """ for bytes in data.values() do _print(bytes) end be writev(data: ByteSeqIter) => """ Write an iterable collection of ByteSeqs. """ for bytes in data.values() do _write(bytes) end be flush() => """ Flush any data out to the os (ignoring failures). """ @pony_os_std_flush(_stream) fun ref _write(data: ByteSeq) => """ Write the bytes without explicitly flushing. """ @pony_os_std_write(_stream, data.cpointer(), data.size()) fun ref _print(data: ByteSeq) => """ Write the bytes and a newline without explicitly flushing. """ @pony_os_std_print(_stream, data.cpointer(), data.size())
Pony
5
EvanHahn/ponyc
packages/builtin/std_stream.pony
[ "BSD-2-Clause" ]
# @ECLASS: bashlibs.eclass # @MAINTAINER: # [email protected] # @SUPPORTED_EAPIS: 5 # @BLURB: Support eclass for bashlibs # @DESCRIPTION: # library routins for simple ebuilds inherit cmake-utils flag-o-matic MY_P="${P}-Source" SRC_URI="${MY_P}.tar.bz2" S="${WORKDIR}/${MY_P}" src_configure() { local mycmakeargs=(-DCMAKE_INSTALL_PREFIX=/) cmake-utils_src_configure } src_install() { cmake-utils_src_install } bashlibs_binary_exist() { which bashlibs } pkg_postinst() { bashlibs_binary_exist \ && bashlibs --test ${PN} }
Gentoo Eclass
4
kfirlavi/bashlibs
gentoo/portage/eclass/bashlibs.eclass
[ "BSD-3-Clause" ]
#!/usr/bin/env hy (defclass RADWIMPS [object] (defn then [self] (print "前" :end "")) (defn se [self] (print "δΈ–")) ) (setv RD (RADWIMPS)) (.then RD) (.then RD) (.then RD) (.se RD)
Hy
3
AndroidKitKat/RADWIMPS
RADWIMPS.hy
[ "MIT" ]
mako(1) # NAME mako - notification daemon for Wayland # SYNOPSIS *mako* [options...] # DESCRIPTION mako is a graphical notification daemon for Wayland compositors which support the layer-shell protocol. Notifications received over D-Bus are displayed until dismissed with a click or via *makoctl*(1). # OPTIONS *-h, --help* Show help message and quit. *-c, --config* Custom path to the config file. Additionally, global configuration options can be specified. Passing *--key=value* is equivalent to a *key=value* line in the configuration file. See *mako*(5) for a list of options. # AUTHORS Maintained by Simon Ser <[email protected]>, who is assisted by other open-source contributors. For more information about mako development, see https://github.com/emersion/mako. # SEE ALSO *mako*(5) *makoctl*(1)
SuperCollider
2
quantum5/mako
mako.1.scd
[ "MIT" ]
(* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) *) theory Arbitrary_Comm_Monoid imports Main begin text {* We define operations "arbitrary_add" and "arbitrary_zero" to represent an arbitrary commutative monoid. *} definition arbitrary_add :: "'a \<Rightarrow> 'a \<Rightarrow> 'a" (infixl "+\<^sub>?" 65) where "arbitrary_add a b \<equiv> fst (SOME (f, z). comm_monoid f z) a b" definition arbitrary_zero :: "'a" ("0\<^sub>?") where "arbitrary_zero \<equiv> snd (SOME (f, z). comm_monoid f z)" text {* For every type, there exists some function @{term f} and identity @{term e} on that type forming a monoid. *} lemma comm_monoid_exists: "\<exists>f e. comm_monoid f e" proof cases assume two_elements: "\<exists>(a :: 'a) b. a \<noteq> b" obtain x e where diff: "x \<noteq> (e :: 'a)" by (atomize_elim, clarsimp simp: two_elements) def f \<equiv> "\<lambda>a b. (if a = e then b else (if b = e then a else x))" have "\<forall>a b. f a b = f b a" by (simp add: f_def) moreover have "\<forall>a b c. f (f a b) c = f a (f b c)" by (simp add: diff f_def) moreover have "\<forall>b. f e b = b" by (simp add: diff f_def) ultimately show ?thesis by (metis comm_monoid_def abel_semigroup_def semigroup_def abel_semigroup_axioms_def comm_monoid_axioms_def) next assume single_element: "\<not> (\<exists>(a :: 'a) b. a \<noteq> b)" thus ?thesis by (metis (full_types) comm_monoid_def abel_semigroup_def semigroup_def abel_semigroup_axioms_def comm_monoid_axioms_def) qed text {* These operations form a commutative monoid. *} interpretation comm_monoid arbitrary_add arbitrary_zero unfolding arbitrary_add_def [abs_def] arbitrary_zero_def by (rule someI2_ex, auto simp: comm_monoid_exists) end
Isabelle
5
pirapira/eth-isabelle
sep_algebra/Arbitrary_Comm_Monoid.thy
[ "Apache-2.0" ]
// (c) Copyright 1995-2016 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. // // DO NOT MODIFY THIS FILE. // IP VLNV: digilentinc.com:ip:pmod_bridge:1.0 // IP Revision: 7 // The following must be inserted into your Verilog file for this // core to be instantiated. Change the instance name and port connections // (in parentheses) to your own signal names. //----------- Begin Cut here for INSTANTIATION Template ---// INST_TAG PmodNAV_pmod_bridge_0_0 your_instance_name ( .in_bottom_bus_I(in_bottom_bus_I), // output wire [3 : 0] in_bottom_bus_I .in_bottom_bus_O(in_bottom_bus_O), // input wire [3 : 0] in_bottom_bus_O .in_bottom_bus_T(in_bottom_bus_T), // input wire [3 : 0] in_bottom_bus_T .in0_I(in0_I), // output wire in0_I .in1_I(in1_I), // output wire in1_I .in2_I(in2_I), // output wire in2_I .in3_I(in3_I), // output wire in3_I .in0_O(in0_O), // input wire in0_O .in1_O(in1_O), // input wire in1_O .in2_O(in2_O), // input wire in2_O .in3_O(in3_O), // input wire in3_O .in0_T(in0_T), // input wire in0_T .in1_T(in1_T), // input wire in1_T .in2_T(in2_T), // input wire in2_T .in3_T(in3_T), // input wire in3_T .out0_I(out0_I), // input wire out0_I .out1_I(out1_I), // input wire out1_I .out2_I(out2_I), // input wire out2_I .out3_I(out3_I), // input wire out3_I .out4_I(out4_I), // input wire out4_I .out5_I(out5_I), // input wire out5_I .out6_I(out6_I), // input wire out6_I .out7_I(out7_I), // input wire out7_I .out0_O(out0_O), // output wire out0_O .out1_O(out1_O), // output wire out1_O .out2_O(out2_O), // output wire out2_O .out3_O(out3_O), // output wire out3_O .out4_O(out4_O), // output wire out4_O .out5_O(out5_O), // output wire out5_O .out6_O(out6_O), // output wire out6_O .out7_O(out7_O), // output wire out7_O .out0_T(out0_T), // output wire out0_T .out1_T(out1_T), // output wire out1_T .out2_T(out2_T), // output wire out2_T .out3_T(out3_T), // output wire out3_T .out4_T(out4_T), // output wire out4_T .out5_T(out5_T), // output wire out5_T .out6_T(out6_T), // output wire out6_T .out7_T(out7_T) // output wire out7_T ); // INST_TAG_END ------ End INSTANTIATION Template ---------
Verilog
3
Psomvanshi/Sobel_edge_detection
vivado-library_of_digilent_ip/ip/Pmods/PmodNAV_v1_0/src/PmodNAV_pmod_bridge_0_0/PmodNAV_pmod_bridge_0_0.veo
[ "MIT" ]
# cython: optimize.unpack_method_calls=False IDS = { "": NIL, "IS_ALPHA": IS_ALPHA, "IS_ASCII": IS_ASCII, "IS_DIGIT": IS_DIGIT, "IS_LOWER": IS_LOWER, "IS_PUNCT": IS_PUNCT, "IS_SPACE": IS_SPACE, "IS_TITLE": IS_TITLE, "IS_UPPER": IS_UPPER, "LIKE_URL": LIKE_URL, "LIKE_NUM": LIKE_NUM, "LIKE_EMAIL": LIKE_EMAIL, "IS_STOP": IS_STOP, "IS_OOV_DEPRECATED": IS_OOV_DEPRECATED, "IS_BRACKET": IS_BRACKET, "IS_QUOTE": IS_QUOTE, "IS_LEFT_PUNCT": IS_LEFT_PUNCT, "IS_RIGHT_PUNCT": IS_RIGHT_PUNCT, "IS_CURRENCY": IS_CURRENCY, "FLAG19": FLAG19, "FLAG20": FLAG20, "FLAG21": FLAG21, "FLAG22": FLAG22, "FLAG23": FLAG23, "FLAG24": FLAG24, "FLAG25": FLAG25, "FLAG26": FLAG26, "FLAG27": FLAG27, "FLAG28": FLAG28, "FLAG29": FLAG29, "FLAG30": FLAG30, "FLAG31": FLAG31, "FLAG32": FLAG32, "FLAG33": FLAG33, "FLAG34": FLAG34, "FLAG35": FLAG35, "FLAG36": FLAG36, "FLAG37": FLAG37, "FLAG38": FLAG38, "FLAG39": FLAG39, "FLAG40": FLAG40, "FLAG41": FLAG41, "FLAG42": FLAG42, "FLAG43": FLAG43, "FLAG44": FLAG44, "FLAG45": FLAG45, "FLAG46": FLAG46, "FLAG47": FLAG47, "FLAG48": FLAG48, "FLAG49": FLAG49, "FLAG50": FLAG50, "FLAG51": FLAG51, "FLAG52": FLAG52, "FLAG53": FLAG53, "FLAG54": FLAG54, "FLAG55": FLAG55, "FLAG56": FLAG56, "FLAG57": FLAG57, "FLAG58": FLAG58, "FLAG59": FLAG59, "FLAG60": FLAG60, "FLAG61": FLAG61, "FLAG62": FLAG62, "FLAG63": FLAG63, "ID": ID, "ORTH": ORTH, "LOWER": LOWER, "NORM": NORM, "SHAPE": SHAPE, "PREFIX": PREFIX, "SUFFIX": SUFFIX, "LENGTH": LENGTH, "CLUSTER": CLUSTER, "LEMMA": LEMMA, "POS": POS, "TAG": TAG, "DEP": DEP, "ENT_IOB": ENT_IOB, "ENT_TYPE": ENT_TYPE, "ENT_ID": ENT_ID, "ENT_KB_ID": ENT_KB_ID, "HEAD": HEAD, "SENT_START": SENT_START, "SPACY": SPACY, "PROB": PROB, "LANG": LANG, "IDX": IDX, "ADJ": ADJ, "ADP": ADP, "ADV": ADV, "AUX": AUX, "CONJ": CONJ, "CCONJ": CCONJ, # U20 "DET": DET, "INTJ": INTJ, "NOUN": NOUN, "NUM": NUM, "PART": PART, "PRON": PRON, "PROPN": PROPN, "PUNCT": PUNCT, "SCONJ": SCONJ, "SYM": SYM, "VERB": VERB, "X": X, "EOL": EOL, "SPACE": SPACE, "DEPRECATED001": DEPRECATED001, "DEPRECATED002": DEPRECATED002, "DEPRECATED003": DEPRECATED003, "DEPRECATED004": DEPRECATED004, "DEPRECATED005": DEPRECATED005, "DEPRECATED006": DEPRECATED006, "DEPRECATED007": DEPRECATED007, "DEPRECATED008": DEPRECATED008, "DEPRECATED009": DEPRECATED009, "DEPRECATED010": DEPRECATED010, "DEPRECATED011": DEPRECATED011, "DEPRECATED012": DEPRECATED012, "DEPRECATED013": DEPRECATED013, "DEPRECATED014": DEPRECATED014, "DEPRECATED015": DEPRECATED015, "DEPRECATED016": DEPRECATED016, "DEPRECATED017": DEPRECATED017, "DEPRECATED018": DEPRECATED018, "DEPRECATED019": DEPRECATED019, "DEPRECATED020": DEPRECATED020, "DEPRECATED021": DEPRECATED021, "DEPRECATED022": DEPRECATED022, "DEPRECATED023": DEPRECATED023, "DEPRECATED024": DEPRECATED024, "DEPRECATED025": DEPRECATED025, "DEPRECATED026": DEPRECATED026, "DEPRECATED027": DEPRECATED027, "DEPRECATED028": DEPRECATED028, "DEPRECATED029": DEPRECATED029, "DEPRECATED030": DEPRECATED030, "DEPRECATED031": DEPRECATED031, "DEPRECATED032": DEPRECATED032, "DEPRECATED033": DEPRECATED033, "DEPRECATED034": DEPRECATED034, "DEPRECATED035": DEPRECATED035, "DEPRECATED036": DEPRECATED036, "DEPRECATED037": DEPRECATED037, "DEPRECATED038": DEPRECATED038, "DEPRECATED039": DEPRECATED039, "DEPRECATED040": DEPRECATED040, "DEPRECATED041": DEPRECATED041, "DEPRECATED042": DEPRECATED042, "DEPRECATED043": DEPRECATED043, "DEPRECATED044": DEPRECATED044, "DEPRECATED045": DEPRECATED045, "DEPRECATED046": DEPRECATED046, "DEPRECATED047": DEPRECATED047, "DEPRECATED048": DEPRECATED048, "DEPRECATED049": DEPRECATED049, "DEPRECATED050": DEPRECATED050, "DEPRECATED051": DEPRECATED051, "DEPRECATED052": DEPRECATED052, "DEPRECATED053": DEPRECATED053, "DEPRECATED054": DEPRECATED054, "DEPRECATED055": DEPRECATED055, "DEPRECATED056": DEPRECATED056, "DEPRECATED057": DEPRECATED057, "DEPRECATED058": DEPRECATED058, "DEPRECATED059": DEPRECATED059, "DEPRECATED060": DEPRECATED060, "DEPRECATED061": DEPRECATED061, "DEPRECATED062": DEPRECATED062, "DEPRECATED063": DEPRECATED063, "DEPRECATED064": DEPRECATED064, "DEPRECATED065": DEPRECATED065, "DEPRECATED066": DEPRECATED066, "DEPRECATED067": DEPRECATED067, "DEPRECATED068": DEPRECATED068, "DEPRECATED069": DEPRECATED069, "DEPRECATED070": DEPRECATED070, "DEPRECATED071": DEPRECATED071, "DEPRECATED072": DEPRECATED072, "DEPRECATED073": DEPRECATED073, "DEPRECATED074": DEPRECATED074, "DEPRECATED075": DEPRECATED075, "DEPRECATED076": DEPRECATED076, "DEPRECATED077": DEPRECATED077, "DEPRECATED078": DEPRECATED078, "DEPRECATED079": DEPRECATED079, "DEPRECATED080": DEPRECATED080, "DEPRECATED081": DEPRECATED081, "DEPRECATED082": DEPRECATED082, "DEPRECATED083": DEPRECATED083, "DEPRECATED084": DEPRECATED084, "DEPRECATED085": DEPRECATED085, "DEPRECATED086": DEPRECATED086, "DEPRECATED087": DEPRECATED087, "DEPRECATED088": DEPRECATED088, "DEPRECATED089": DEPRECATED089, "DEPRECATED090": DEPRECATED090, "DEPRECATED091": DEPRECATED091, "DEPRECATED092": DEPRECATED092, "DEPRECATED093": DEPRECATED093, "DEPRECATED094": DEPRECATED094, "DEPRECATED095": DEPRECATED095, "DEPRECATED096": DEPRECATED096, "DEPRECATED097": DEPRECATED097, "DEPRECATED098": DEPRECATED098, "DEPRECATED099": DEPRECATED099, "DEPRECATED100": DEPRECATED100, "DEPRECATED101": DEPRECATED101, "DEPRECATED102": DEPRECATED102, "DEPRECATED103": DEPRECATED103, "DEPRECATED104": DEPRECATED104, "DEPRECATED105": DEPRECATED105, "DEPRECATED106": DEPRECATED106, "DEPRECATED107": DEPRECATED107, "DEPRECATED108": DEPRECATED108, "DEPRECATED109": DEPRECATED109, "DEPRECATED110": DEPRECATED110, "DEPRECATED111": DEPRECATED111, "DEPRECATED112": DEPRECATED112, "DEPRECATED113": DEPRECATED113, "DEPRECATED114": DEPRECATED114, "DEPRECATED115": DEPRECATED115, "DEPRECATED116": DEPRECATED116, "DEPRECATED117": DEPRECATED117, "DEPRECATED118": DEPRECATED118, "DEPRECATED119": DEPRECATED119, "DEPRECATED120": DEPRECATED120, "DEPRECATED121": DEPRECATED121, "DEPRECATED122": DEPRECATED122, "DEPRECATED123": DEPRECATED123, "DEPRECATED124": DEPRECATED124, "DEPRECATED125": DEPRECATED125, "DEPRECATED126": DEPRECATED126, "DEPRECATED127": DEPRECATED127, "DEPRECATED128": DEPRECATED128, "DEPRECATED129": DEPRECATED129, "DEPRECATED130": DEPRECATED130, "DEPRECATED131": DEPRECATED131, "DEPRECATED132": DEPRECATED132, "DEPRECATED133": DEPRECATED133, "DEPRECATED134": DEPRECATED134, "DEPRECATED135": DEPRECATED135, "DEPRECATED136": DEPRECATED136, "DEPRECATED137": DEPRECATED137, "DEPRECATED138": DEPRECATED138, "DEPRECATED139": DEPRECATED139, "DEPRECATED140": DEPRECATED140, "DEPRECATED141": DEPRECATED141, "DEPRECATED142": DEPRECATED142, "DEPRECATED143": DEPRECATED143, "DEPRECATED144": DEPRECATED144, "DEPRECATED145": DEPRECATED145, "DEPRECATED146": DEPRECATED146, "DEPRECATED147": DEPRECATED147, "DEPRECATED148": DEPRECATED148, "DEPRECATED149": DEPRECATED149, "DEPRECATED150": DEPRECATED150, "DEPRECATED151": DEPRECATED151, "DEPRECATED152": DEPRECATED152, "DEPRECATED153": DEPRECATED153, "DEPRECATED154": DEPRECATED154, "DEPRECATED155": DEPRECATED155, "DEPRECATED156": DEPRECATED156, "DEPRECATED157": DEPRECATED157, "DEPRECATED158": DEPRECATED158, "DEPRECATED159": DEPRECATED159, "DEPRECATED160": DEPRECATED160, "DEPRECATED161": DEPRECATED161, "DEPRECATED162": DEPRECATED162, "DEPRECATED163": DEPRECATED163, "DEPRECATED164": DEPRECATED164, "DEPRECATED165": DEPRECATED165, "DEPRECATED166": DEPRECATED166, "DEPRECATED167": DEPRECATED167, "DEPRECATED168": DEPRECATED168, "DEPRECATED169": DEPRECATED169, "DEPRECATED170": DEPRECATED170, "DEPRECATED171": DEPRECATED171, "DEPRECATED172": DEPRECATED172, "DEPRECATED173": DEPRECATED173, "DEPRECATED174": DEPRECATED174, "DEPRECATED175": DEPRECATED175, "DEPRECATED176": DEPRECATED176, "DEPRECATED177": DEPRECATED177, "DEPRECATED178": DEPRECATED178, "DEPRECATED179": DEPRECATED179, "DEPRECATED180": DEPRECATED180, "DEPRECATED181": DEPRECATED181, "DEPRECATED182": DEPRECATED182, "DEPRECATED183": DEPRECATED183, "DEPRECATED184": DEPRECATED184, "DEPRECATED185": DEPRECATED185, "DEPRECATED186": DEPRECATED186, "DEPRECATED187": DEPRECATED187, "DEPRECATED188": DEPRECATED188, "DEPRECATED189": DEPRECATED189, "DEPRECATED190": DEPRECATED190, "DEPRECATED191": DEPRECATED191, "DEPRECATED192": DEPRECATED192, "DEPRECATED193": DEPRECATED193, "DEPRECATED194": DEPRECATED194, "DEPRECATED195": DEPRECATED195, "DEPRECATED196": DEPRECATED196, "DEPRECATED197": DEPRECATED197, "DEPRECATED198": DEPRECATED198, "DEPRECATED199": DEPRECATED199, "DEPRECATED200": DEPRECATED200, "DEPRECATED201": DEPRECATED201, "DEPRECATED202": DEPRECATED202, "DEPRECATED203": DEPRECATED203, "DEPRECATED204": DEPRECATED204, "DEPRECATED205": DEPRECATED205, "DEPRECATED206": DEPRECATED206, "DEPRECATED207": DEPRECATED207, "DEPRECATED208": DEPRECATED208, "DEPRECATED209": DEPRECATED209, "DEPRECATED210": DEPRECATED210, "DEPRECATED211": DEPRECATED211, "DEPRECATED212": DEPRECATED212, "DEPRECATED213": DEPRECATED213, "DEPRECATED214": DEPRECATED214, "DEPRECATED215": DEPRECATED215, "DEPRECATED216": DEPRECATED216, "DEPRECATED217": DEPRECATED217, "DEPRECATED218": DEPRECATED218, "DEPRECATED219": DEPRECATED219, "DEPRECATED220": DEPRECATED220, "DEPRECATED221": DEPRECATED221, "DEPRECATED222": DEPRECATED222, "DEPRECATED223": DEPRECATED223, "DEPRECATED224": DEPRECATED224, "DEPRECATED225": DEPRECATED225, "DEPRECATED226": DEPRECATED226, "DEPRECATED227": DEPRECATED227, "DEPRECATED228": DEPRECATED228, "DEPRECATED229": DEPRECATED229, "DEPRECATED230": DEPRECATED230, "DEPRECATED231": DEPRECATED231, "DEPRECATED232": DEPRECATED232, "DEPRECATED233": DEPRECATED233, "DEPRECATED234": DEPRECATED234, "DEPRECATED235": DEPRECATED235, "DEPRECATED236": DEPRECATED236, "DEPRECATED237": DEPRECATED237, "DEPRECATED238": DEPRECATED238, "DEPRECATED239": DEPRECATED239, "DEPRECATED240": DEPRECATED240, "DEPRECATED241": DEPRECATED241, "DEPRECATED242": DEPRECATED242, "DEPRECATED243": DEPRECATED243, "DEPRECATED244": DEPRECATED244, "DEPRECATED245": DEPRECATED245, "DEPRECATED246": DEPRECATED246, "DEPRECATED247": DEPRECATED247, "DEPRECATED248": DEPRECATED248, "DEPRECATED249": DEPRECATED249, "DEPRECATED250": DEPRECATED250, "DEPRECATED251": DEPRECATED251, "DEPRECATED252": DEPRECATED252, "DEPRECATED253": DEPRECATED253, "DEPRECATED254": DEPRECATED254, "DEPRECATED255": DEPRECATED255, "DEPRECATED256": DEPRECATED256, "DEPRECATED257": DEPRECATED257, "DEPRECATED258": DEPRECATED258, "DEPRECATED259": DEPRECATED259, "DEPRECATED260": DEPRECATED260, "DEPRECATED261": DEPRECATED261, "DEPRECATED262": DEPRECATED262, "DEPRECATED263": DEPRECATED263, "DEPRECATED264": DEPRECATED264, "DEPRECATED265": DEPRECATED265, "DEPRECATED266": DEPRECATED266, "DEPRECATED267": DEPRECATED267, "DEPRECATED268": DEPRECATED268, "DEPRECATED269": DEPRECATED269, "DEPRECATED270": DEPRECATED270, "DEPRECATED271": DEPRECATED271, "DEPRECATED272": DEPRECATED272, "DEPRECATED273": DEPRECATED273, "DEPRECATED274": DEPRECATED274, "DEPRECATED275": DEPRECATED275, "DEPRECATED276": DEPRECATED276, "PERSON": PERSON, "NORP": NORP, "FACILITY": FACILITY, "ORG": ORG, "GPE": GPE, "LOC": LOC, "PRODUCT": PRODUCT, "EVENT": EVENT, "WORK_OF_ART": WORK_OF_ART, "LANGUAGE": LANGUAGE, "DATE": DATE, "TIME": TIME, "PERCENT": PERCENT, "MONEY": MONEY, "QUANTITY": QUANTITY, "ORDINAL": ORDINAL, "CARDINAL": CARDINAL, "acomp": acomp, "advcl": advcl, "advmod": advmod, "agent": agent, "amod": amod, "appos": appos, "attr": attr, "aux": aux, "auxpass": auxpass, "cc": cc, "ccomp": ccomp, "complm": complm, "conj": conj, "cop": cop, # U20 "csubj": csubj, "csubjpass": csubjpass, "dep": dep, "det": det, "dobj": dobj, "expl": expl, "hmod": hmod, "hyph": hyph, "infmod": infmod, "intj": intj, "iobj": iobj, "mark": mark, "meta": meta, "neg": neg, "nmod": nmod, "nn": nn, "npadvmod": npadvmod, "nsubj": nsubj, "nsubjpass": nsubjpass, "num": num, "number": number, "oprd": oprd, "obj": obj, # U20 "obl": obl, # U20 "parataxis": parataxis, "partmod": partmod, "pcomp": pcomp, "pobj": pobj, "poss": poss, "possessive": possessive, "preconj": preconj, "prep": prep, "prt": prt, "punct": punct, "quantmod": quantmod, "rcmod": rcmod, "relcl": relcl, "root": root, "xcomp": xcomp, "acl": acl, "LAW": LAW, "MORPH": MORPH, "_": _, } def sort_nums(x): return x[1] NAMES = [it[0] for it in sorted(IDS.items(), key=sort_nums)] # Unfortunate hack here, to work around problem with long cpdef enum # (which is generating an enormous amount of C++ in Cython 0.24+) # We keep the enum cdef, and just make sure the names are available to Python locals().update(IDS)
Cython
1
snosrap/spaCy
spacy/symbols.pyx
[ "MIT" ]
<%= doesnt_exist %>
HTML+ERB
0
mdesantis/rails
actionview/test/fixtures/test/_raise.html.erb
[ "MIT" ]
debug { 42 }; // error: result Int
Modelica
0
olaszakos/motoko
test/fail/debug.mo
[ "Apache-2.0" ]
fs = require 'fs' for each in (list, action) asynchronously (done) = outstanding callbacks = 0 for each @(item) in (list) outstanding callbacks := outstanding callbacks + 1 action (item) @(error, result) outstanding callbacks := outstanding callbacks - 1 if (outstanding callbacks == 0) done (error) filenames = fs.readdir! '.' for each! @(filename) in (filenames) asynchronously stat = fs.stat! (filename) console.log "#(filename): #(stat.size)" console.log () console.log "#(filenames.length) files in total"
PogoScript
4
featurist/pogoscript
examples/ls.pogo
[ "BSD-2-Clause" ]
a { color: #122233ff }
CSS
1
vjpr/swc
css/parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/input.css
[ "Apache-2.0", "MIT" ]
Sequence do( x := method(at(0)) y := method(at(1)) z := method(at(2)) setX := method(a, atPut(0, a); self) setY := method(a, atPut(1, a); self) setZ := method(a, atPut(2, a); self) set := method(call evalArgs foreach(i, v, atPut(i, v))) rootMeanSquare := method(meanSquare sqrt) ) Sequence addEquals := Sequence getSlot("+=")
Io
3
akluth/io
libs/iovm/io/Vector.io
[ "BSD-3-Clause" ]
CLASS zcl_abapgit_data_utils DEFINITION PUBLIC CREATE PUBLIC. PUBLIC SECTION. CLASS-METHODS build_table_itab IMPORTING !iv_name TYPE tadir-obj_name RETURNING VALUE(rr_data) TYPE REF TO data RAISING zcx_abapgit_exception. CLASS-METHODS build_filename IMPORTING !is_config TYPE zif_abapgit_data_config=>ty_config RETURNING VALUE(rv_filename) TYPE string. CLASS-METHODS jump IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item RETURNING VALUE(rv_exit) TYPE abap_bool RAISING zcx_abapgit_exception. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_abapgit_data_utils IMPLEMENTATION. METHOD build_filename. rv_filename = to_lower( |{ is_config-name }.{ is_config-type }.{ zif_abapgit_data_config=>c_default_format }| ). REPLACE ALL OCCURRENCES OF '/' IN rv_filename WITH '#'. ENDMETHOD. METHOD build_table_itab. DATA lo_type TYPE REF TO cl_abap_typedescr. DATA lo_data TYPE REF TO cl_abap_structdescr. DATA lo_table TYPE REF TO cl_abap_tabledescr. DATA lt_fields TYPE ddfields. DATA lt_keys TYPE abap_table_keydescr_tab. FIELD-SYMBOLS <ls_field> LIKE LINE OF lt_fields. FIELD-SYMBOLS <ls_key> LIKE LINE OF lt_keys. FIELD-SYMBOLS <ls_component> LIKE LINE OF <ls_key>-components. cl_abap_structdescr=>describe_by_name( EXPORTING p_name = iv_name RECEIVING p_descr_ref = lo_type EXCEPTIONS type_not_found = 1 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Table { iv_name } not found for data serialization| ). ENDIF. TRY. lo_data ?= lo_type. " Get primary key to ensure unique entries IF lo_data->is_ddic_type( ) = abap_true. lt_fields = lo_data->get_ddic_field_list( ). APPEND INITIAL LINE TO lt_keys ASSIGNING <ls_key>. <ls_key>-access_kind = cl_abap_tabledescr=>tablekind_sorted. <ls_key>-key_kind = cl_abap_tabledescr=>keydefkind_user. <ls_key>-is_primary = abap_true. <ls_key>-is_unique = abap_true. LOOP AT lt_fields ASSIGNING <ls_field> WHERE keyflag = abap_true. APPEND INITIAL LINE TO <ls_key>-components ASSIGNING <ls_component>. <ls_component>-name = <ls_field>-fieldname. ENDLOOP. ENDIF. IF lt_fields IS INITIAL. lo_table = cl_abap_tabledescr=>get( lo_data ). ELSE. lo_table = cl_abap_tabledescr=>get_with_keys( p_line_type = lo_data p_keys = lt_keys ). ENDIF. CREATE DATA rr_data TYPE HANDLE lo_table. CATCH cx_root. zcx_abapgit_exception=>raise( |Error creating internal table for data serialization| ). ENDTRY. ENDMETHOD. METHOD jump. " Run SE16 with authorization check CALL FUNCTION 'RS_TABLE_LIST_CREATE' EXPORTING table_name = is_item-obj_name EXCEPTIONS table_is_structure = 1 table_not_exists = 2 db_not_exists = 3 no_permission = 4 no_change_allowed = 5 table_is_gtt = 6 OTHERS = 7. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Table { is_item-obj_name } cannot be displayed| ). ENDIF. ENDMETHOD. ENDCLASS.
ABAP
4
gepparta/abapGit
src/data/zcl_abapgit_data_utils.clas.abap
[ "MIT" ]
/** Copyright 2015 Acacia Team 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. */ package org.acacia.centralstore; public class ParallelHSQLDBConnector { public static def main(Rail[String]) { Console.OUT.println("Test"); } }
X10
1
mdherath/Acacia
src/org/acacia/centralstore/ParallelHSQLDBConnector.x10
[ "Apache-2.0" ]
- dashboard: dbt_audit title: dbt Audit layout: newspaper elements: - title: dbt Deployments by Hour name: dbt Deployments by Hour model: dbt explore: dbt_deployments type: looker_line fields: - dbt_deployments.deployment_completed_hour - dbt_deployments.count fill_fields: - dbt_deployments.deployment_completed_hour sorts: - dbt_deployments.deployment_completed_hour desc limit: 500 query_timezone: America/New_York stacking: '' show_value_labels: false label_density: 25 legend_position: center x_axis_gridlines: false y_axis_gridlines: true show_view_names: true limit_displayed_rows: false y_axis_combined: true show_y_axis_labels: true show_y_axis_ticks: true y_axis_tick_density: default y_axis_tick_density_custom: 5 show_x_axis_label: true show_x_axis_ticks: true x_axis_scale: auto y_axis_scale_mode: linear x_axis_reversed: false y_axis_reversed: false show_null_points: true point_style: none interpolation: linear ordering: none show_null_labels: false show_totals_labels: false show_silhouette: false totals_color: "#808080" series_types: {} row: 0 col: 12 width: 12 height: 7 - title: dbt Model Average Deployment Time name: dbt Model Average Deployment Time model: dbt explore: dbt_deployments type: table fields: - dbt_model_deployments.average_duration_in_m - dbt_model_deployments.model filters: dbt_model_deployments.average_duration_in_m: NOT NULL dbt_model_deployments.deployment_completed_date: 7 days sorts: - dbt_model_deployments.average_duration_in_m desc limit: 500 query_timezone: America/New_York show_view_names: false show_row_numbers: true truncate_column_names: false hide_totals: false hide_row_totals: false table_theme: white limit_displayed_rows: false enable_conditional_formatting: false conditional_formatting_include_totals: false conditional_formatting_include_nulls: false stacking: '' show_value_labels: false label_density: 25 legend_position: center x_axis_gridlines: false y_axis_gridlines: true y_axis_combined: true show_y_axis_labels: true show_y_axis_ticks: true y_axis_tick_density: default y_axis_tick_density_custom: 5 show_x_axis_label: true show_x_axis_ticks: true x_axis_scale: auto y_axis_scale_mode: linear x_axis_reversed: false y_axis_reversed: false ordering: none show_null_labels: false show_totals_labels: false show_silhouette: false totals_color: "#808080" show_null_points: true point_style: none interpolation: linear series_types: {} row: 16 col: 13 width: 11 height: 21 - title: dbt Longest Running Models Trends name: dbt Longest Running Models Trends model: dbt explore: dbt_deployments type: looker_line fields: - dbt_model_deployments.average_duration_in_m - dbt_model_deployments.model - dbt_model_deployments.deployment_completed_hour pivots: - dbt_model_deployments.model filters: dbt_model_deployments.deployment_completed_date: 7 days dbt_model_deployments.duration_in_m: ">1" dbt_model_deployments.average_duration_in_m: NOT NULL sorts: - dbt_model_deployments.model 0 - dbt_model_deployments.deployment_completed_hour desc limit: 500 query_timezone: America/New_York stacking: '' show_value_labels: false label_density: 25 legend_position: center x_axis_gridlines: false y_axis_gridlines: true show_view_names: false limit_displayed_rows: false y_axis_combined: true show_y_axis_labels: true show_y_axis_ticks: true y_axis_tick_density: default y_axis_tick_density_custom: 5 show_x_axis_label: true show_x_axis_ticks: true x_axis_scale: auto y_axis_scale_mode: linear x_axis_reversed: false y_axis_reversed: false show_null_points: false point_style: none interpolation: linear ordering: none show_null_labels: false show_totals_labels: false show_silhouette: false totals_color: "#808080" series_types: {} hide_legend: false row: 7 col: 0 width: 24 height: 9 - title: dbt Deployment Duration (Full Run) name: dbt Deployment Duration (Full Run) model: dbt explore: dbt_deployments type: looker_line fields: - dbt_deployments.deployment_completed_hour - dbt_deployments.average_duration_in_m filters: dbt_deployments.deployment_completed_hour: 7 days dbt_deployments.models_deployed: ">=100" sorts: - dbt_deployments.deployment_completed_hour limit: 500 query_timezone: America/New_York stacking: '' show_value_labels: false label_density: 25 legend_position: center x_axis_gridlines: false y_axis_gridlines: true show_view_names: false limit_displayed_rows: false y_axis_combined: true show_y_axis_labels: true show_y_axis_ticks: true y_axis_tick_density: default y_axis_tick_density_custom: 5 show_x_axis_label: true show_x_axis_ticks: true x_axis_scale: auto y_axis_scale_mode: linear x_axis_reversed: false y_axis_reversed: false show_null_points: true point_style: none interpolation: linear ordering: none show_null_labels: false show_totals_labels: false show_silhouette: false totals_color: "#808080" series_types: {} row: 0 col: 0 width: 12 height: 7 - title: dbt Most Recent Model Deployments name: dbt Most Recent Model Deployments model: dbt explore: dbt_deployments type: table fields: - dbt_model_deployments.model - dbt_model_deployments.most_recent_deployment_completed filters: dbt_model_deployments.model: "-NULL" dbt_model_deployments.deployment_completed_date: 7 days sorts: - most_recent_runtime_hours_ago desc limit: 500 dynamic_fields: - table_calculation: most_recent_runtime_hours_ago label: Most Recent Runtime Hours Ago expression: diff_minutes(${dbt_model_deployments.most_recent_deployment_completed}, now()) / 60 value_format: value_format_name: decimal_1 _kind_hint: measure _type_hint: number query_timezone: America/New_York show_view_names: false show_row_numbers: true truncate_column_names: false hide_totals: false hide_row_totals: false table_theme: white limit_displayed_rows: false enable_conditional_formatting: false conditional_formatting_include_totals: false conditional_formatting_include_nulls: false stacking: '' show_value_labels: false label_density: 25 legend_position: center x_axis_gridlines: false y_axis_gridlines: true y_axis_combined: true show_y_axis_labels: true show_y_axis_ticks: true y_axis_tick_density: default y_axis_tick_density_custom: 5 show_x_axis_label: true show_x_axis_ticks: true x_axis_scale: auto y_axis_scale_mode: linear x_axis_reversed: false y_axis_reversed: false ordering: none show_null_labels: false show_totals_labels: false show_silhouette: false totals_color: "#808080" series_types: {} row: 16 col: 0 width: 13 height: 21
LookML
3
simplybusiness/dbt-event-logging
lookml/dbt_audit.dashboard.lookml
[ "Apache-2.0" ]
package com.baeldung.lombok.with; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertTrue; public class UserWithUnitTest { @Test public void whenUserAuthenticated_thenClonedAndUpdated() { User immutableUser = new User("testuser", "[email protected]", false); User authenticatedUser = immutableUser.withAuthenticated(true); assertNotSame(immutableUser, authenticatedUser); assertFalse(immutableUser.isAuthenticated()); assertTrue(authenticatedUser.isAuthenticated()); } }
Java
4
DBatOWL/tutorials
lombok-2/src/test/java/com/baeldung/lombok/with/UserWithUnitTest.java
[ "MIT" ]
--- title: "Data Quality Report" author: "Team Data Science Process by Microsoft" date: "`r format(Sys.time(), '%B %d, %Y')`" output: html_document: toc: yes toc_float: true number_sections: true css: style.css theme: journal highlight: espresso fig_width: 7 fig_height: 6 fig_caption: true runtime: shiny --- # Task Summary ```{r echo = FALSE, message=FALSE, warning=FALSE} options(warn=-1) # install required packages repos.date <- "2017-08-01" options(repos = c(CRAN = paste("https://mran.revolutionanalytics.com/snapshot/", repos.date,sep=""))) list.of.packages <- c('Hmisc', 'psych', 'corrgram', 'yaml', 'entropy', 'vcd', 'shiny', 'corrplot', 'scatterplot3d', 'DescTools', 'xtable', 'shinyjs', 'RODBC','parallel','doSNOW','foreach', 'dplyr', 'lubridate', 'PCAmixdata', 'caret', 'Rtsne') new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,'Package'])] if(length(new.packages)) install.packages(new.packages, dependencies = TRUE) library(yaml) library(RODBC) library(foreach) library(shiny) library(tcltk) library(lattice) library(DescTools) # set Shiny window size window_height <- 600 OS_type <- .Platform$OS.type if (OS_type == 'windows'){ winDialog(type = 'ok', 'Please select the .yaml file in the next popup window. Click OK to proceed.') } else{ print('Please input the path to the .yaml file after the next prompt.') } yaml_file <- tk_choose.files(caption='Select yaml File', multi = FALSE) config <- yaml.load_file(yaml_file) # data source if(is.null(config$DataSource) || config$DataSource == 'local'){ data <- read.csv(config$DataFilePath, header = config$HasHeader, sep = config$Separator) } else { dbhandle <- odbcDriverConnect(paste0('driver={ODBC Driver 11 for SQL Server};server=',config$Server,';database=',config$Database,';Uid=',config$Username,';Pwd=',config$Password)) data <- sqlQuery(dbhandle, config$Query) odbcClose(dbhandle) } # add datetime columns library(lubridate) autogen_datetime_columns <- character() if(!is.null(config$DateTimeColumns)){ for (dt in names(config$DateTimeColumns)) { index <- is.na(data[[dt]]) | data[[dt]] == 'NULL' data[[index, dt]] <- '01/01/1900' data[[dt]] <- as.POSIXct(data[[dt]], format = config$DateTimeColumns[[dt]]) new_col_name <- paste0(dt, '_autogen_year') data[[new_col_name]] <- year(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_month') data[[new_col_name]] <- month(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_week') data[[new_col_name]] <- week(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_day') data[[new_col_name]] <- day(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_wday') data[[new_col_name]] <- wday(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_hour') data[[new_col_name]] <- hour(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_minute') data[[new_col_name]] <- minute(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_second') data[[new_col_name]] <- second(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } config$ColumnsToExclude <- c(config$ColumnsToExclude, dt) } } # Add datetime components to conf$CategoricalColumns CategoricalColumns <- config$CategoricalColumns config$CategoricalColumns <- c(config$CategoricalColumns, autogen_datetime_columns) # detect data types isNumerical <- sapply(data, is.numeric) isCategorical <- sapply(data, function(x)length(unique(na.omit(x))) <= nrow(data)/500||length(unique(na.omit(x))) <= 5) isNumerical <- isNumerical & !isCategorical colNames <- colnames(data) # override auto-detected isCategorical with the specified categorical variables in yaml if(!is.null(config$CategoricalColumns)){ config$CategoricalColumns <- make.names(config$CategoricalColumns, unique=TRUE) for(v in config$CategoricalColumns){ isCategorical[v] <- TRUE isNumerical[v] <- FALSE } } # override auto-detected isNumerical with the specified numerical variables in yaml if(!is.null(config$NumericalColumns)){ config$NumericalColumns <- make.names(config$NumericalColumns, unique = TRUE) for(v in config$NumericalColumns){ isNumerical[v] <- TRUE isCategorical[v] <- FALSE } } # populate config$CategoricalColumns and config$NumericalColumns with detected and specified variables config$CategoricalColumns <- colNames[isCategorical[colNames] == TRUE] config$NumericalColumns <- colNames[isNumerical[colNames] == TRUE] for(v in config$CategoricalColumns) { data[,v] <- as.factor(data[,v]) } # exclude columns from the report if(!is.null(config$ColumnsToExclude)){ config$CategoricalColumns <- config$CategoricalColumns[!config$CategoricalColumns %in% config$ColumnsToExclude] config$NumericalColumns <- config$NumericalColumns[!config$NumericalColumns %in% config$ColumnsToExclude] } # replace missing values missingValueReplacement <- 0 if(!is.null(config$MissingValueReplaceWith)){ missingValueReplacement <- config$MissingValueReplaceWith } # detect task type if(is.null(config$Target)){ taskType <- 'data_exploration' } else if(isCategorical[config$Target]==FALSE){ taskType <- 'regression' } else { taskType <- 'classification' } # Remove the DateTimeColumns field from the updated YAML file config$DateTimeColumns <- NULL # write updated yaml if((!is.null(config$DataSource)) && config$DataSource != 'local'){ # if data source is not local file, do not add datetime components into yaml file. config$CategoricalColumns <- CategoricalColumns } config$ColumnsToExclude <- c(config$ColumnsToExclude, names(config$DateTimeColumns)) # output the augmented dataset if((is.null(config$DataSource) || config$DataSource == 'local') && length(autogen_datetime_columns) > 0){ library(tools) extension <- file_ext(config$DataFilePath) path_basename <- file_path_sans_ext(config$DataFilePath) augmented_filename <- paste(path_basename, '_dt_components', '.', extension, sep='') write.table(data, file = augmented_filename,row.names=FALSE, na="", sep=config$Separator, quote=FALSE) config$DataFilePath <- augmented_filename } new_yaml_file <- paste0(substr(yaml_file, 1, nchar(yaml_file)-5),'_updated.yaml') write(as.yaml(config), new_yaml_file) data0 <- data code = " #' --- #' title: 'Data Quality Report' #' author: 'Team Data Science Process by Microsoft' #' output: #' html_document: #' toc: yes #' --- #+ echo=FALSE options(warn=-1) # install required packages options(repos='http://cran.rstudio.com/') list.of.packages <- c('Hmisc', 'psych', 'corrgram', 'yaml', 'entropy', 'vcd', 'shiny', 'corrplot', 'scatterplot3d', 'DescTools', 'xtable', 'shinyjs', 'RODBC','parallel','doSNOW','foreach', 'dplyr', 'lubridate', 'PCAmixdata') new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,'Package'])] if(length(new.packages)) install.packages(new.packages) # install knitr installed_packages <- rownames(installed.packages()) if (!'knitr' %in% installed_packages){ install.packages('knitr') } else if ('1.16' != installed.packages()['knitr','Version']){ remove.packages('knitr') install.packages('knitr') } library(yaml) library(RODBC) library(foreach) # yaml yaml_file <- yaml_file_location config <- yaml.load_file(yaml_file) # data source if(is.null(config$DataSource) || config$DataSource == 'local'){ data <- read.csv(config$DataFilePath, header = config$HasHeader, sep = config$Separator) } else { dbhandle <- odbcDriverConnect(paste0('driver={ODBC Driver 11 for SQL Server};server=',config$Server,';database=',config$Database,';Uid=',config$Username,';Pwd=',config$Password)) data <- sqlQuery(dbhandle, config$Query) odbcClose(dbhandle) } # add datetime columns library(lubridate) autogen_datetime_columns <- character() if(!is.null(config$DateTimeColumns)){ for (dt in names(config$DateTimeColumns)) { data[[dt]] <- as.POSIXct(data[[dt]], format = config$DateTimeColumns[[dt]]) new_col_name <- paste0(dt, '_autogen_year') data[[new_col_name]] <- year(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_month') data[[new_col_name]] <- month(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_week') data[[new_col_name]] <- week(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_day') data[[new_col_name]] <- day(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_wday') data[[new_col_name]] <- wday(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_hour') data[[new_col_name]] <- hour(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_minute') data[[new_col_name]] <- minute(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } new_col_name <- paste0(dt, '_autogen_second') data[[new_col_name]] <- second(data[[dt]]) if (length(unique(na.omit(data[[new_col_name]]))) == 1){ data[[new_col_name]] <- NULL } else{ autogen_datetime_columns <- c(autogen_datetime_columns, new_col_name) } config$ColumnsToExclude <- c(config$ColumnsToExclude, dt) } } # Add datetime components to conf$CategoricalColumns CategoricalColumns <- config$CategoricalColumns config$CategoricalColumns <- c(config$CategoricalColumns, autogen_datetime_columns) # detect data types isNumerical <- sapply(data, is.numeric) isCategorical <- sapply(data,function(x)length(unique(na.omit(x)))<=nrow(data)/500||length(unique(na.omit(x)))<=5) isNumerical <- isNumerical & !isCategorical colNames <- colnames(data) # override auto-detected isCategorical with the specified categorical variables in yaml if(!is.null(config$CategoricalColumns)){ config$CategoricalColumns <- make.names(config$CategoricalColumns, unique=TRUE) for(v in config$CategoricalCoumns){ isCategorical[v] <- TRUE isNumerical[v] <- FALSE } } # override auto-detected isNumerical with the specified numerical variables in yaml if(!is.null(config$NumericalColumns)){ config$NumericalColumns <- make.names(config$NumericalColumns, unique = TRUE) for(v in config$NumericalColumns){ isNumerical[v] <- TRUE isCategorical[v] <- FALSE } } # populate config$CategoricalColumns and config$NumericalColumns with detected and specified variables config$CategoricalColumns <- colNames[isCategorical[colNames] == TRUE] config$NumericalColumns <- colNames[isNumerical[colNames] == TRUE] for(v in config$CategoricalColumns) { data[,v] <- as.factor(data[,v]) } # exclude columns from the report if(!is.null(config$ColumnsToExclude)){ config$CategoricalColumns <- config$CategoricalColumns[!config$CategoricalColumns %in% config$ColumnsToExclude] config$NumericalColumns <- config$NumericalColumns[!config$NumericalColumns %in% config$ColumnsToExclude] } # replace missing values if(!is.null(config$MissingValueReplaceWith)){ missingValueReplacement <- config$MissingValueReplaceWith } else { missingValueReplacement <- 0 } # detect task type if(is.null(config$Target)){ taskType <- 'data_exploration' } else if(isCategorical[config$Target]==FALSE){ taskType <- 'regression' } else { taskType <- 'classification' } data0 <- data #' # Task Summary #+ echo=FALSE #' - The metadata (location, numerical columns, target, etc.) is - *yaml_file_location* #' - The data location is - *`r config$DataFilePath`* #' - The target is - *`r config$Target`* #' - The task type is - *`r taskType`*. #' - The numerical variables are - *`r config$NumericalColumns`* #' - The categorical variables are - *`r config$CategoricalColumns`* #+ echo=FALSE " code <- gsub('yaml_file_location',paste0('"',gsub('\\\\','/',new_yaml_file),'"'), code) write(code, file = config$RLogFilePath, append = FALSE) ``` - The metadata (categorical columns, numerical columns, target, etc.) is specified in - *`r gsub('\\\\','/',yaml_file)`* - The data location is - `r config$DataFilePath`. - The target is - *`r config$Target`*. - The task type is - *`r taskType`*. - The numerical variables are - *`r config$NumericalColumns`*. - The categorical variables are - *`r config$CategoricalColumns`*. # Data Summary ## Take a peek of the data by showing the top rows of the data ```{r echo = FALSE, message=FALSE, warning=FALSE} shinyApp( ui = fluidPage( inputPanel( numericInput("rows", "Top Rows:", 10) ), tableOutput("table"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' # Data Summary #' ## Take a peek of the data by showing the top rows of the data #+ echo=FALSE head(data, input$rows) " r_code <- reactive({ gsub("input\\$rows", input$rows, r) }) output$table <- renderTable({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## The dimensions of the data (Rows, Columns) ```{r echo = FALSE, message = FALSE, warning = FALSE} shinyApp( ui = fluidPage( tableOutput("table"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## The dimensions of the data (Rows, Columns) #+ echo=FALSE dim <- as.data.frame( t(dim(data))) colnames(dim) <- c('Number of Rows','Number of Columns') dim " r_code <- reactive({ r }) output$table <- renderTable({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## Names and types of the columns ```{r echo = FALSE, message=FALSE, warning=FALSE} shinyApp( ui = fluidPage( inputPanel( numericInput("cols", "Show Columns:", 10)), tableOutput("table"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Types of columns #+ echo=FALSE # get the data type of each column Column_Type <- sapply(data, class) Column_Type <- lapply(Column_Type, function(x) paste(x, collapse=' ')) column_info <- cbind(Column_Name= names(Column_Type), Column_Type) rownames(column_info) <- NULL column_info[1:min(input$cols,nrow(column_info)),] " r_code <- reactive({ gsub("input\\$cols", input$cols, r) }) output$table <- renderTable({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## Check the data quality You can select the number of top variables with the highest rates of missing data, and the number of segments you want to split the data in order to know roughly where missing values exist. ```{r echo = FALSE, message=FALSE, warning=FALSE} library(shiny) shinyApp( ui = fluidPage( inputPanel(numericInput("top_num", "Show Top Variables:", 10), numericInput("segments", label = "Data Split Segments", 10), textInput("missing", label = "Missing Value Symbol", "?")), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Check the data quality #+ echo=FALSE # histogram, density, and QQ plot allColumns <- c(config$CategoricalColumns, config$NumericalColumns) ncols <- length(allColumns) nrows <- nrow(data0) segments <- as.numeric(input$segments) if (segments == 0){ segments <- 1 } missing_intensity <- matrix(0, ncols, (segments+1)) seg_size <- nrows/segments index <- seq(from=0, to=nrows, by=seg_size) if (index[length(index)] < nrows){ index <- c(index, nrows) } index <- round(index) if (length(index) < (segments+1)) { segments <- segments -1 missing_intensity <- matrix(0, ncols, (segments+1)) } for (i in 1:ncols){ index_i <- is.na(data0[,allColumns[i]]) | data0[,allColumns[i]] == input$missing missing_intensity[i,1] <- sum(index_i)/nrows*100 for (j in 1:segments){ start_index <- index[j] + 1 end_index <- index[j+1] index_j <- is.na(data0[start_index:end_index,allColumns[i]]) | data0[start_index:end_index,allColumns[i]] == input$missing missing_intensity[i,(j+1)] <- sum(index_j)/(end_index-start_index+1)*100 } } general_rate <- round(mean(missing_intensity[,1]),2) sort_index <- sort.int(-missing_intensity[,1], index.return=T)$ix top_num <- min(c(as.numeric(input$top_num), ncols)) missing_intensity <- data.frame(missing_intensity) rownames(missing_intensity) <- allColumns colnames(missing_intensity) <- c('All', paste0('Seg',c(1:segments))); missing_intensity <- missing_intensity[sort_index,] new.palette=colorRampPalette(c('blue', 'green', 'yellow', 'red', 'black'),space='rgb') levelplot(t(missing_intensity[top_num:1,]),col.regions=new.palette(40), at=seq(0, 100, length.out=41), main = paste0('Missing Value Rate (', general_rate, '%)')) " r_code <- reactive({ r = gsub('input\\$top_num', input$top_num, r) r = gsub("input\\$segments", input$segments, r) gsub("input\\$missing", paste0("'",input$missing,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## Summarize basic statisics of the data ```{r echo = FALSE, message=FALSE, warning=FALSE} shinyApp( ui = fluidPage( tableOutput("table"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Summarize basic statisics of the data #+ echo=FALSE summary(data) " output$table <- renderTable({ eval(parse(text = r)) }) observeEvent(input$submit, { write(r, file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` # Dive deeper into each individual variable ## More detailed statistics of each variable ```{r echo = FALSE, message=FALSE, warning=FALSE} shinyApp( ui = fluidPage( inputPanel( numericInput("vars", "Show Variables:", 10)), verbatimTextOutput("text"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' # Dive deeper into each individual variable #' ## More detailed statistics of each variable #+ echo=FALSE library(Hmisc) desc <- Hmisc::describe(as.data.frame(data)) desc[1:min(input$vars, length(desc))] " r_code <- reactive({ gsub("input\\$vars", input$vars, r) }) output$text <- renderPrint({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## Visualize the target variable ```{r echo = FALSE, message=FALSE, warning=FALSE} if(!is.null(config$Target)) { shinyApp( ui = fluidPage( inputPanel( selectInput("target", label = "Target:", choices = config$Target) ), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' # Dive deeper into each individual variable #' ## Visualize the target variable #+ echo=FALSE if(isCategorical[config$Target]) { par(mfrow=c(1, 2)) barplot(table(data[[config$Target]]), main = paste('Bar Plot of', config$Target)) pie(table(data[[config$Target]]), main=paste('Pie Chart of', config$Target)) }else{ par(mfrow=c(2,2)) hist(data[[config$Target]], main = paste('Histogram of Target', config$Target), xlab = config$Target) # Kernel Density Plot d <- density(data[[config$Target]]) # returns the density data plot(d, main = paste('Density Plot of', config$Target)) polygon(d, col='grey', border='blue') qqnorm(data[[config$Target]], main = paste('QQ Plot of Target', config$Target)) qqline(data[[config$Target]]) boxplot(data[[config$Target]], main = paste('Boxplot of Target', config$Target)) } " r_code <- reactive({ gsub("input\\$target", input$target, r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) } else { msg = "This is a data exploratory task and it doesn't have a target." msg } ``` ## Visualize the numerical variables You can select the variable from the drop list. ```{r echo = FALSE, message=FALSE, warning=FALSE} library(shiny) shinyApp( ui = fluidPage( inputPanel(selectInput("numeric", label = "", choices = config$NumericalColumns)), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Visualize the numerical variables #+ echo=FALSE # histogram, density, and QQ plot par(mfrow=c(2,2)) if(length(data[,input$numeric]) >= 5000){ sampled_data = data[sample(1:nrow(data), 5000, replace=FALSE),] normtest <- shapiro.test(sampled_data[[input$numeric]]) } else{ normtest <- shapiro.test(data[[input$numeric]]) } p.value <- round(normtest$p.value,4) if (p.value < 0.05) { h0 <- 'rejected.' color <- 'red' } else { h0 <- 'accepted.' color <- 'blue' } hist(data[[input$numeric]], xlab = input$numeric, main = paste('Histogram of', input$numeric)) d <- density(data[[input$numeric]]) plot(d, main = paste('Density Plot of', input$numeric)) qqnorm(data[[input$numeric]], main = paste('QQ Plot of', input$numeric)) qqline(data[[input$numeric]]) boxplot(data[[input$numeric]], main = paste('Boxplot of', input$numeric)) mtext(paste('Normality test of', input$numeric, h0, '( p-value=', p.value, ')'), side = 3, line = -1, outer = TRUE, fontface = 'italic', col=color, size = 10) " r_code <- reactive({ gsub('input\\$numeric', paste0("'",input$numeric,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## Visualize the categorical variables You can select the variable from the drop list. ```{r echo = FALSE, message=FALSE, warning=FALSE} shinyApp( ui = fluidPage( inputPanel(selectInput("categoric", label = "Categorical Variable:", choices = config$CategoricalColumns)), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Visualize the categorical variables #+ echo=FALSE # barplot and pie chart par(mfrow=c(1,2)) fhist <- sort(table(data[[input$categoric]]), decreasing = TRUE) barplot(table(data[[input$categoric]]), main = paste('Bar Plot of', input$categoric)) pie(fhist, main=paste('Pie Chart of', input$categoric)) " r_code <- reactive({ gsub("input\\$categoric", paste0("'",input$categoric,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` # Investigate Multiple Variable Interactions ## Rank variables Rank variables (numerical and categorical) based on strengths of association with a selected reference variable. This helps you understand the top dependent variables (grouped by numerical and categorical) of the selected variable. ```{r echo = FALSE, message=FALSE, warning=FALSE} shinyApp( ui = fluidPage( inputPanel(selectInput("variable", label = "Ref Var:", choices = if(!is.null(config$Target)) { c(config$Target,config$NumericalColumns[config$NumericalColumns!=config$Target],config$CategoricalColumns[config$CategoricalColumns!=config$Target]) } else {c(config$CategoricalColumns,config$NumericalColumns)}), numericInput("top_num", label = "Top Numerical Variables", 5), numericInput("top_cat", label = "Top Categorical Variables", 5)), actionButton("go", "Go"), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' # Investigation on Multiple Variable Interactions #' ## Rank associated variables #' This helps you to understand the top dependent variables (grouped by numerical and categorical) of a variable of your choice. #+ echo=FALSE if(nrow(data)>50000) { library(dplyr) set.seed(9805) data <- sample_n(data, min(50000, nrow(data))) } library(parallel) library(doSNOW) par(mfrow=c(1,2)) no_cores <- max(detectCores() - 1, 1) cluster <- makeCluster(no_cores) registerDoSNOW(cluster) if(isCategorical[input$variable] == TRUE){ aov_v <- foreach(i=1:length(config$NumericalColumns),.export=c('config','data','missingValueReplacement'),.packages=c('DescTools'),.combine='c') %dopar% { get('config') get('data') get('missingValueReplacement') col1 <- data[[config$NumericalColumns[i]]] index1 <- is.na(col1) col1[index1] <- missingValueReplacement if (max(col1, na.rm=T) != min(col1, na.rm=T)) { fit <- aov(col1 ~ data[[input$variable]]) tryCatch(EtaSq(fit)[1], error=function(e) 0) } else{ 0 } } names(aov_v) <- config$NumericalColumns aov_v <- subset(aov_v, names(aov_v)!=input$variable) aov_v <- sort(aov_v, decreasing = TRUE) barplot(head(aov_v, input$top_num), xlab = 'Eta-squared value', beside=TRUE, main = paste('Top', length(head(aov_v, input$top_num)), 'Associated Numerical Variables'), las=2, cex.axis = 0.7, space=1) cramer_v <- foreach(i=1:length(config$CategoricalColumns), .export=c('config','data'), .combine='c') %dopar% { get('config') get('data') data[,config$CategoricalColumns[i]] <- factor(data[,config$CategoricalColumns[i]]) if (nlevels(data[,config$CategoricalColumns[i]]) >= 2) { tbl <- table(data[,c(input$variable, config$CategoricalColumns[i])]) chi2 <- chisq.test(tbl, correct=F) sqrt(chi2$statistic / sum(tbl)) } else{ 0 } } names(cramer_v) <- config$CategoricalColumns cramer_v <- subset(cramer_v, names(cramer_v)!=input$variable) cramer_v <- sort(cramer_v, decreasing = TRUE) if (length(cramer_v) > 0){ barplot(head(cramer_v, input$top_cat), xlab = 'Cramer\\'s V', beside=TRUE, main = paste('Top', length(head(cramer_v, input$top_cat)), 'Associated Categorical Variables'), las=2, cex.axis = 0.7) } } else{ if(length(config$NumericalColumns)>=2){ cor <- cor(data[,input$variable], data[,config$NumericalColumns], method = 'pearson') cor=cor[1,] names(cor) <- config$NumericalColumns cor <- subset( cor, names(cor) != input$variable) cor_s <- cor*cor names(cor_s) <- names(cor) cor_s <- sort(cor_s, decreasing = TRUE) if (length(cor_s) > 0){ barplot(head(cor_s, input$top_num), xlab = 'R-squared (squared correlation)', beside=TRUE, main = paste('Top', length(head(cor_s, input$top_num)), 'Associated Numerical Variables'), las=2, cex.axis = 0.7) } } aov_v <- foreach(i=1:length(config$CategoricalColumns), .export=c('config', 'data', 'missingValueReplacement'), .packages=c('DescTools'), .combine='c') %dopar% { get('config') get('data') get('missingValueReplacement') catCols <- config$CategoricalColumns numCols <- config$NumericalColumns col1 <- data[[catCols[i]]] index1 <- is.na(col1) col1[index1] <- missingValueReplacement x <- factor(data[[catCols[i]]]) if (nlevels(x) >= 2 & nlevels(x) <=500) { fit <- aov(data[[input$variable]]~ x) tryCatch(EtaSq(fit)[1], error=function(e) 0) } else{ 0 } } names(aov_v) <- config$CategoricalColumns aov_v <- subset(aov_v, names(aov_v)!=input$variable) aov_v <- sort(aov_v, decreasing = TRUE) if (length(aov_v) > 0){ barplot(head(aov_v, input$top_cat), xlab = 'Eta-squared value', beside=TRUE, main = paste('Top', length(head(aov_v, input$top_cat)), 'Associated Categorical Variables'), las=2, cex.axis = 0.7) } } stopCluster(cluster) " r_code <- eventReactive(input$go, { r = gsub("input\\$variable", paste0("'",input$variable,"'"), r) r = gsub("input\\$top_num", input$top_num, r) gsub("input\\$top_cat", input$top_cat, r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## Visualize interactions between two categorical variables You can select the two variables from the drop lists. ```{r echo = FALSE, message=FALSE, warning=FALSE} shinyApp( ui = fluidPage( inputPanel( selectInput("categoric1", label = "Categorical Variable:", choices = if (!is.null(config$Target) && isCategorical[config$Target]) c(config$Target, config$CategoricalColumns[config$CategoricalColumns!=config$Target]) else config$CategoricalColumns), selectInput("categoric2", label = "Categorical Variable:", choices = if (!is.null(config$Target) && isCategorical[config$Target]) c(config$Target, config$CategoricalColumns[config$CategoricalColumns!=config$Target]) else config$CategoricalColumns)), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Visualize interactions between two categorical variables #+ echo=FALSE library(vcd) par(mfrow=c(1,1)) mosaicplot(table(data[[input$categoric1]], data[[input$categoric2]]), shade=TRUE, xlab=input$categoric1, ylab=input$categoric2, main=paste(input$categoric1,'VS', input$categoric2)) " r_code <- reactive({ r = gsub("input\\$categoric1", paste0("'",input$categoric1,"'"), r) gsub("input\\$categoric2", paste0("'",input$categoric2,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## Visualize interactions between two numerical variables You can select the two variables from the drop lists. ```{r echo = FALSE, message=FALSE, warning=FALSE} shinyApp( ui = fluidPage( inputPanel( selectInput("numeric1", label = "Numerical Variable:", choices = if (!is.null(config$Target) && isNumerical[config$Target]) c(config$Target, config$NumericalColumns[config$NumericalColumns!=config$Target]) else config$NumericalColumns), selectInput("numeric2", label = "Numerical Variable:", choices = if (!is.null(config$Target) && isNumerical[config$Target]) c(config$Target, config$NumericalColumns[config$NumericalColumns!=config$Target]) else config$NumericalColumns)), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Visualize interactions between two numerical variables #+ echo=FALSE par(mfrow=c(1,1)) correlation <- round(cor(data[[input$numeric1]], data[[input$numeric2]]),4) plot(data[[input$numeric1]], data[[input$numeric2]], xlab = input$numeric1, ylab=input$numeric2, main = paste(input$numeric1, 'VS', input$numeric2, 'correlation =', correlation)) # regression line (y~x) abline(lm(as.formula(paste(input$numeric1,'~',input$numeric2)), data =data), col='red') # lowess line (x,y) lines(lowess(data[[input$numeric1]], data[[input$numeric2]]), col='blue') " r_code <- reactive({ r = gsub("input\\$numeric1", paste0("'",input$numeric1,"'"), r) gsub("input\\$numeric2", paste0("'",input$numeric2,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## Calculate the correlations between numerical variables ```{r echo = FALSE, message=FALSE, warning=FALSE} if(length(config$NumericalColumns)>=2) { shinyApp( ui = fluidPage( inputPanel( selectInput("cormethod", label = "Correlation Method:", choices = c("pearson","kendall", "spearman")), selectInput("cororder", label = "Order:", choices = c("AOE","FPC", "hclust", "alphabet")), selectInput("corvismethod", label = "Shape:", choices = c("circle","square","ellipse","number","shade","color","pie")), selectInput("corvistype", label = "Layout:", choices = c("full","upper", "lower"))), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Calculate the correlations (pearson, kendall, or spearman) between numerical variables #+ echo=FALSE library(corrgram) library(corrplot) par(mfrow=c(1,1)) data[is.na(data)] <- missingValueReplacement c <- cor(data[,config$NumericalColumns], method = input$cormethod) c[is.na(c)] <- missingValueReplacement corrplot(c, method=input$corvismethod, order = input$cororder, insig = 'p-value', sig.level=-1, type = input$corvistype) " r_code <- reactive({ r = gsub("input\\$cormethod", paste0("'",input$cormethod,"'"), r) r = gsub("input\\$cororder", paste0("'",input$cororder,"'"), r) r = gsub("input\\$corvismethod", paste0("'",input$corvismethod,"'"), r) gsub("input\\$corvistype", paste0("'",input$corvistype,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) } ``` ## Visualize interactions between numerical and categorical variables via box plots X axis is the level of categorical variables. This helps you to understand whether the distribution of the numeric variable is significantly different at different levels of the categorical variable. We test hypothesis 0 (h0) that the numeric variable has the same mean values across the different levels of the categorical variable. ```{r echo = FALSE, message=FALSE, warning=FALSE} library(vcd) shinyApp( ui = fluidPage( inputPanel( selectInput("numeric3", label = "Numeric Variable:", choices = if (!is.null(config$Target) && isNumerical[config$Target]) c(config$Target, config$NumericalColumns[config$NumericalColumns!=config$Target]) else config$NumericalColumns), selectInput("categoric3", label = "Categorical Variable:", choices = if (!is.null(config$Target) && isCategorical[config$Target]) c(config$Target,config$CategoricalColumns[config$CategoricalColumns!=config$Target]) else config$CategoricalColumns) ), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Visualize interactions between numeric and categorical variables via box plots #' X axis is the level of categorical variables. This helps you to understand whether the distribution of the numeric variable is significantly different at different levels #' of the categorical variable. #' We test hypothesis 0 (h0) that the numeric variable has the same mean values across the different levels of the categorical variable. #+ echo=FALSE par(mfrow=c(1,1)) fit <- aov(data[[input$numeric3]] ~ data[[input$categoric3]]) test_results <- drop1(fit,~.,test='F') p_value <- round(test_results[[6]][2],4) if (p_value < 0.05){ h0 <- 'Rejected' color <- 'red' } else{ h0 <- 'Accepted' color <- 'blue' } f <- as.formula(paste(input$numeric3,'~',input$categoric3)) boxplot(f, data= data, xlab = input$categoric3, ylab=input$numeric3) title(main=paste('h0', h0, '( p-value=', p_value, ')'), col.main=color) " r_code <- reactive({ r = gsub("input\\$numeric3", paste0("'",input$numeric3,"'"), r) gsub("input\\$categoric3", paste0("'",input$categoric3,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) ``` ## Project numerical variables to principal components, and visualize ```{r echo = FALSE, message=FALSE, warning=FALSE} if(length(config$NumericalColumns)>=2) { library(scatterplot3d) data[is.na(data)] <- missingValueReplacement x <- apply(data[,config$NumericalColumns],2,min) y <- apply(data[,config$NumericalColumns],2,max) index <- x == y nonConstantNames <- config$NumericalColumns[!index] x <- data[,nonConstantNames] sigma <- cor(x) sigma_eigen <- eigen(sigma) sigma_values <- sigma_eigen$values index <- sigma_values < 0 if (sum(index) > 0) { sigma_values[index] <- 0 } sum_variance <- sum(sigma_values^2) x <- scale(x) loadings <- x %*% sigma_eigen$vectors p.variance.explained <- sigma_values^2/sum_variance p.variance.cumsum <- cumsum(p.variance.explained)*100 num_numericvars <- length(nonConstantNames) r = " #+ echo=FALSE if(nrow(data)>50000) { library(dplyr) set.seed(98075) data <- sample_n(data, min(50000, nrow(data))) } library(scatterplot3d) data[is.na(data)] <- missingValueReplacement x <- apply(data[,config$NumericalColumns],2,min) y <- apply(data[,config$NumericalColumns],2,max) index <- x == y nonConstantNames <- config$NumericalColumns[!index] x <- data[,nonConstantNames] sigma <- cor(x) sigma_eigen <- eigen(sigma) sigma_values <- sigma_eigen$values index <- sigma_values < 0 if (sum(index) > 0) { sigma_values[index] <- 0 } sum_variance <- sum(sigma_values^2) x <- scale(x) loadings <- x %*% sigma_eigen$vectors p.variance.explained <- sigma_values^2/sum_variance p.variance.cumsum <- cumsum(p.variance.explained)*100 num_numericvars <- length(nonConstantNames) " write(r, file = config$RLogFilePath, append = TRUE) shinyApp( ui = fluidPage( inputPanel( selectInput("catvar", label = "Color by categorical variable", choices = if(!is.null(config$Target) && isCategorical[config$Target]) c(config$Target,config$CategoricalColumns[config$CategoricalColumns!=config$Target]) else config$CategoricalColumns), selectInput("xvar", label = "Principal component at x axis", choices = c(1:num_numericvars), selected = '1'), selectInput("yvar", label = "Principal component at y axis", choices = c(1:num_numericvars), selected = '2') ), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Project numeric variables to principal components, and visualize #+ echo=FALSE par(mfrow=c(1,2)) # plot percentage of variance explained for each principal component ylimit <- ceil(max(p.variance.explained)*100/5)*5 barplot(100*p.variance.explained, las=2, xlab='Principal Components', ylab='% Variance Explained', xaxt='n', yaxt='n') axis(2, pretty(c(0,ylimit)), col='blue') box() par(new=TRUE) plot(1:num_numericvars, p.variance.cumsum, type='l', col='black', ylab='', xlab='', las=1, axes=FALSE, ylim=c(0,100), xaxt='n') axis(4, pretty(c(0,100)), col='black',col.axis='black',las=1, axes=F) num_pcs_80 <- sum(p.variance.cumsum <= 80) num_pcs_90 <- sum(p.variance.cumsum <= 90) num_pcs_95 <- sum(p.variance.cumsum <= 95) text(num_numericvars/10*3, 80, paste('80% by', num_pcs_80, 'pcs')) text(num_numericvars/10*3, 85, paste('90% by', num_pcs_90, 'pcs')) text(num_numericvars/10*3, 90, paste('95% by', num_pcs_95, 'pcs')) data[[input$catvar]] <- factor(data[[input$catvar]]) plot(loadings[,as.numeric(input$xvar)], loadings[,as.numeric(input$yvar)], type='p', pch=20, col=as.numeric(data[[input$catvar]]), xlab=paste('PC', input$xvar, sep=''), ylab=paste('PC', input$yvar, sep='')) legend('topright', cex=.8, legend = levels(data[[input$catvar]]), fill = 1:nlevels(data[[input$catvar]]), merge = F, bty = 'n') " r_code <- reactive({ r = gsub("input\\$catvar", paste0("'",input$catvar,"'"), r) r = gsub("input\\$xvar", paste0("'",input$xvar,"'"), r) gsub("input\\$yvar", paste0("'",input$yvar,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) } ``` ```{r echo = FALSE, message=FALSE, warning=FALSE} if(length(config$NumericalColumns)>=3) { shinyApp( ui = fluidPage( inputPanel( selectInput("cat1", label = "Color by categorical variable", choices = if (!is.null(config$Target) &&isCategorical[config$Target]) c(config$Target, config$CategoricalColumns[config$CategoricalColumns!=config$Target]) else config$CategoricalColumns), selectInput('pc1', label = 'PC at x axis', choices = c(1:num_numericvars), selected = '1'), selectInput('pc2', label = 'PC at y axis', choices = c(1:num_numericvars), selected = '2'), selectInput('pc3', label = 'PC at z axis', choices = c(1:num_numericvars), selected = '3'), sliderInput("angle", label = "View Angle", min = -180, max = 180, value = 40) ), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Project numeric variables to principal components, and visualize #+ echo=FALSE x <- loadings[,as.numeric(input$pc1)] y <- loadings[,as.numeric(input$pc2)] z <- loadings[,as.numeric(input$pc3)] data[[input$cat1]] <- factor(data[[input$cat1]]) par(mfrow=c(1,1)) DF <- data.frame(x = x, y = y, z = z, group = data[[input$cat1]]) # create the plot, you can be more adventurous with colour if you wish s3d <- with(DF, scatterplot3d(x, y, z, xlab=paste0('PC',input$pc1), ylab=paste0('PC',input$pc2), zlab=paste0('PC', input$pc3), color = as.numeric(group), pch = 19, angle = as.numeric(input$angle))) legend('topleft', cex=.8, legend = levels(data[[input$cat1]]), fill = 1:nlevels(data[[input$cat1]]), merge = F, bty = 'n') " r_code <- reactive({ r = gsub("input\\$cat1", paste0("'",input$cat1,"'"), r) r = gsub("input\\$angle", paste0("'",input$angle,"'"), r) r = gsub("input\\$pc1", paste0("'",input$pc1,"'"), r) r = gsub("input\\$pc2", paste0("'",input$pc2,"'"), r) gsub("input\\$pc3", paste0("'",input$pc3,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) } ``` ## Project numerical variables to 2-D space using t-SNE Project high-dimension numerical variables into 2-D space with cluster pattern rendered by using t-SNE. This can be helpful for you to understand the clustering pattern in your feature space. For classification problems, if you see clusters dominated by different class labels, it might indicate that the features are helpful for you to separate the observations. However, always keep a pair of thinking eyes, since you can also see clear clustering pattern if your features include target leakers. ```{r echo = FALSE, message=FALSE, warning=FALSE} if(length(config$NumericalColumns)>=3 & length(c(config$Target, config$CategoricalColumns)) > 0) { shinyApp( ui = fluidPage( inputPanel(selectInput("variable", label = "Ref Var:", choices = if(!is.null(config$Target)) { c(config$Target,config$CategoricalColumns[config$CategoricalColumns!=config$Target]) } else {config$CategoricalColumns}), numericInput("random_seed", label = "Random Seed", 98052), numericInput("neighbors", label = "Nearest Neighbors (5-50)", 30)), actionButton("go", "Go"), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Project numerical variables to 2-D space using t-SNE #' Project high-dimension numerical variables into 2-D space with cluster pattern rendered by using t-SNE. This can be helpful for you to understand the clustering pattern in your feature space. For classification problems, if you see clusters dominated by different class labels, it might indicate that the features are helpful for you to separate the observations. #' #' However, always keep a pair of thinking eyes, since you can also see clear clustering pattern if your features include target leakers. #+ echo=FALSE if(nrow(data)>50000) { library(dplyr) set.seed(98052) data <- sample_n(data, 50000) } library(caret) library(Rtsne) set.seed(input$random_seed) data[is.na(data)] <- missingValueReplacement x <- apply(data[,config$NumericalColumns],2,min) y <- apply(data[,config$NumericalColumns],2,max) index <- x == y nonConstantNames <- config$NumericalColumns[!index] x <- data[,nonConstantNames] x <- scale(x) tsne_model_1 <- Rtsne(as.matrix(x), check_duplicates = FALSE, pca = TRUE, perplexity = input$neighbors, theta = 0.5, dims = 2) d_tsne_1 <- as.data.frame(tsne_model_1$Y) d_tsne_1_original <- d_tsne_1 fit_cluster_kmeans = kmeans(scale(d_tsne_1), length(unique(data[,input$variable]))) d_tsne_1_original$label <- factor(data[,input$variable]) plot_cluster=function(data, var_cluster, palette) { ggplot(data, aes_string(x='V1', y='V2', color=var_cluster)) + geom_point(size=1.5) + guides(colour=guide_legend(override.aes=list(size=6))) + xlab('') + ylab('') + ggtitle('') + theme_light(base_size=20) + theme(axis.text.x=element_blank(), axis.text.y=element_blank(), legend.direction = 'horizontal', legend.position = 'bottom', legend.box = 'horizontal') + scale_colour_brewer(palette = palette) } plot_k=plot_cluster(d_tsne_1_original, 'label', 'Set1') library(gridExtra) grid.arrange(plot_k, ncol=1) " r_code <- eventReactive(input$go, { r = gsub("input\\$variable", paste0("'",input$variable,"'"), r) r = gsub("input\\$random_seed", input$random_seed, r) gsub("input\\$neighbors", input$neighbors, r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) } ) } ``` ## Project mixture of numerical and categorical variables to principal components, and visualize ```{r echo = FALSE, message=FALSE, warning=FALSE} if (is.null(config$Target)){ cat_columns <- config$CategoricalColumns } else{ if (config$Target %in% config$CategoricalColumns){ cat_columns <- config$CategoricalColumns[!config$CategoricalColumns==config$Target] } cat_columns <- config$CategoricalColumns } # Remove the categorical columns which only have 1 unique value if (length(cat_columns) == 1){ num_unique_cat_values <- length(unique(data[,cat_columns])) if (num_unique_cat_values == 1){ cat_columns <- NULL } } else if (length(cat_columns) > 1) { num_unique_cat_values <- sapply(data[,cat_columns], function(x) length(unique(x))) num_unique_cat_values <- as.data.frame(num_unique_cat_values) cat_columns <- rownames(num_unique_cat_values)[num_unique_cat_values>1] } if(length(cat_columns) >= 1) { library(scatterplot3d) library(PCAmixdata) data[is.na(data)] <- missingValueReplacement if (length(config$NumericalColumns) > 0) { x11 <- apply(data[,config$NumericalColumns],2,min) y11 <- apply(data[,config$NumericalColumns],2,max) index11 <- x11 == y11 nonConstantNames <- config$NumericalColumns[!index11] x11 <- data[,nonConstantNames] x11 <- scale(x11) } x22 = data[,cat_columns] res.pcamix <- PCAmix(X.quanti=x11, X.quali=x22, rename.level=TRUE, graph=FALSE, ndim = Inf) num_mixedvars0 <- length(res.pcamix$eig[,1]) num_mixedvars <- min(num_mixedvars0, 10) res.pcamix <- PCArot(res.pcamix, dim = num_mixedvars, graph = FALSE) sigma_values11 <- res.pcamix$eig index11 <- sigma_values11[, 1] < 0 if (sum(index11) > 0) { sigma_values11[index11, 1] <- 0 } sum_variance11 <- sum(sigma_values11[, 1]) #loadings <- x %*% sigma_eigen$vectors #p.variance.explained11 <- sigma_values11[,2] #p.variance.cumsum11 <- sigma_values11[,3] loadings11 <- res.pcamix$ind$coord #num_mixedvars <- length(p.variance.explained11) r = " #+ echo=FALSE if(nrow(data)>50000) { library(dplyr) set.seed(98075) data <- sample_n(data, min(50000, nrow(data))) } library(scatterplot3d) library(PCAmixdata) data[is.na(data)] <- missingValueReplacement if (is.null(config$Target)){ cat_columns <- config$CategoricalColumns } else{ if (config$Target %in% config$CategoricalColumns){ cat_columns <- config$CategoricalColumns[!config$CategoricalColumns==config$Target] } } # Remove the categorical columns which only have 1 unique value if (length(cat_columns) == 1){ num_unique_cat_values <- length(unique(data[,cat_columns])) if (num_unique_cat_values == 1){ cat_columns <- NULL } } else if (length(cat_columns) > 1) { num_unique_cat_values <- sapply(data[,cat_columns], function(x) length(unique(x))) num_unique_cat_values <- as.data.frame(num_unique_cat_values) cat_columns <- rownames(num_unique_cat_values)[num_unique_cat_values>1] } if(length(cat_columns) >= 1) { x11 <- apply(data[,config$NumericalColumns],2,min) y11 <- apply(data[,config$NumericalColumns],2,max) index11 <- x11 == y11 nonConstantNames <- config$NumericalColumns[!index11] x11 <- data[,nonConstantNames] x11 <- scale(x11) } x22 = data[,cat_columns] res.pcamix <- PCAmix(X.quanti=x11, X.quali=x22, rename.level=TRUE, graph=FALSE, ndim = Inf) num_mixedvars0 <- length(res.pcamix$eig[,1]) num_mixedvars <- min(num_mixedvars0, 10) res.pcamix <- PCArot(res.pcamix, dim = num_mixedvars, graph = FALSE) sigma_values11 <- res.pcamix$eig index11 <- sigma_values11[, 1] < 0 if (sum(index11) > 0) { sigma_values11[index11, 1] <- 0 } #sum_variance11 <- sum(sigma_values11[, 1]) #p.variance.explained11 <- sigma_values11[,2] #p.variance.cumsum11 <- sigma_values11[,3] loadings11 <- res.pcamix$ind$coord " write(r, file = config$RLogFilePath, append = TRUE) shinyApp( ui = fluidPage( inputPanel( selectInput("catvar11", label = "Color by categorical variable", choices = if(!is.null(config$Target) && isCategorical[config$Target]) c(config$Target,config$CategoricalColumns[config$CategoricalColumns!=config$Target]) else config$CategoricalColumns), selectInput("xvar11", label = "Principal component at x axis", choices = c(1:num_mixedvars), selected = 1), selectInput("yvar11", label = "Principal component at y axis", choices = c(1:num_mixedvars), selected = 2) ), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Project mixture of numerical and categorical variables to 2D principal components, and visualize #+ echo=FALSE #par(mfrow=c(1,2)) # plot percentage of variance explained for each principal component #ylimit11 <- ceil(max(p.variance.explained11)*100/5)*5 #barplot(100*p.variance.explained11, las=2, xlab='Principal Components', ylab='% Variance Explained', xaxt='n', yaxt='n') #axis(2, pretty(c(0,ylimit11)), col='blue') #box() #par(new=TRUE) #plot(1:num_mixedvars0, p.variance.cumsum11, type='l', col='black', ylab='', xlab='', las=1, axes=FALSE, ylim=c(0,100), xaxt='n') #axis(4, pretty(c(0,100)), col='black',col.axis='black',las=1, axes=F) #num_pcs_8011 <- sum(p.variance.cumsum11 <= 80) #num_pcs_9011 <- sum(p.variance.cumsum11 <= 90) #num_pcs_9511 <- sum(p.variance.cumsum11 <= 95) #text(num_mixedvars/10*3, 80, paste('80% by', num_pcs_8011, 'pcs')) #text(num_mixedvars/10*3, 85, paste('90% by', num_pcs_9011, 'pcs')) #text(num_mixedvars/10*3, 90, paste('95% by', num_pcs_9511, 'pcs')) data[[input$catvar11]] <- factor(data[[input$catvar11]]) plot(loadings11[,as.numeric(input$xvar11)], loadings11[,as.numeric(input$yvar11)], type='p', pch=20, col=as.numeric(data[[input$catvar11]]), xlab=paste('PC', input$xvar11), ylab=paste('PC', input$yvar11, sep='')) legend('topright', cex=.8, legend = levels(data[[input$catvar11]]), fill = 1:nlevels(data[[input$catvar11]]), merge = F, bty = 'n') " r_code <- reactive({ r = gsub("input\\$catvar11", paste0("'",input$catvar11,"'"), r) r = gsub("input\\$xvar11", paste0("'",input$xvar11,"'"), r) gsub("input\\$yvar11", paste0("'",input$yvar11,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) } ``` ```{r echo = FALSE, message=FALSE, warning=FALSE} if(length(config$NumericalColumns)>=3 & length(cat_columns) >= 1) { shinyApp( ui = fluidPage( inputPanel( selectInput("cat111", label = "Color by categorical variable", choices = if (!is.null(config$Target) &&isCategorical[config$Target]) c(config$Target, config$CategoricalColumns[config$CategoricalColumns!=config$Target]) else config$CategoricalColumns), selectInput('pc111', label = 'PC at x axis', choices = c(1:num_mixedvars), selected = '1'), selectInput('pc211', label = 'PC at y axis', choices = c(1:num_mixedvars), selected = '2'), selectInput('pc311', label = 'PC at z axis', choices = c(1:num_mixedvars), selected = '3'), sliderInput("angle11", label = "View Angle", min = -180, max = 180, value = 40) ), plotOutput("plot"), actionButton("submit", label = "Export") ), server = function(input, output) { r = " #' ## Project mixture of numerical and categorical variables to 3D principal components, and visualize #+ echo=FALSE x11 <- loadings11[,as.numeric(input$pc111)] y11 <- loadings11[,as.numeric(input$pc211)] z11 <- loadings11[,as.numeric(input$pc311)] data[[input$cat111]] <- factor(data[[input$cat111]]) par(mfrow=c(1,1)) DF <- data.frame(x = x11, y = y11, z = z11, group = data[[input$cat111]]) # create the plot, you can be more adventurous with colour if you wish s3d <- with(DF, scatterplot3d(x, y, z, xlab=paste0('PC',input$pc111), ylab=paste0('PC',input$pc211), zlab=paste0('PC', input$pc311), color = as.numeric(group), pch = 19, angle = as.numeric(input$angle11))) legend('topleft', cex=.8, legend = levels(data[[input$cat111]]), fill = 1:nlevels(data[[input$cat111]]), merge = F, bty = 'n') " r_code <- reactive({ r = gsub("input\\$cat111", paste0("'",input$cat111,"'"), r) r = gsub("input\\$angle11", paste0("'",input$angle11,"'"), r) r = gsub("input\\$pc111", paste0("'",input$pc111,"'"), r) r = gsub("input\\$pc211", paste0("'",input$pc211,"'"), r) gsub("input\\$pc311", paste0("'",input$pc311,"'"), r) }) output$plot <- renderPlot({ eval(parse(text = r_code())) }) observeEvent(input$submit, { write(r_code(), file = config$RLogFilePath, append = TRUE) }) }, options = list(height = window_height) ) } ``` # Final Report ```{r, echo = FALSE, message=FALSE} library(shinyjs) shinyApp( ui = fluidPage( shinyjs::useShinyjs(), inputPanel( actionButton('generateReport', 'Generate Report'), shinyjs::hidden(actionButton('viewReport', 'View Report')) ) ), server = function(input, output) { observeEvent(input$generateReport, { shinyjs::disable('viewReport') withProgress(message = 'Report Generation in progress', value = 0, { rmarkdown::render(config$RLogFilePath, clean = FALSE) }) shinyjs::show('viewReport') shinyjs::enable('viewReport') }) observeEvent(input$viewReport, { browseURL(file.path(getwd(), paste0(substr(config$RLogFilePath, 1, nchar(config$RLogFilePath)-1),'html'))) }) }, options = list(height = window_height) ) ```
RMarkdown
5
bkuk69/Azure-TDSP-Utilities
DataScienceUtilities/DataReport-Utils/R/IDEAR.rmd
[ "CC-BY-4.0", "MIT" ]
class MultiplicationTable: Item(lhs as int, rhs as int): get: return lhs*rhs table = MultiplicationTable() assert 3 == table.Item[3, 1] assert table.Item[1, 3] == 3
Boo
3
popcatalin81/boo
tests/testcases/integration/types/properties-27.boo
[ "BSD-3-Clause" ]
-- Copyright 2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "PentestTools" type = "api" function start() set_rate_limit(1) end function check() local c local cfg = datasrc_config() if cfg ~= nil then c = cfg.credentials end if (c ~= nil and c.key ~= nil and c.key ~= "") then return true end return false end function vertical(ctx, domain) local c local cfg = datasrc_config() if cfg ~= nil then c = cfg.credentials end if (c == nil or c.key == nil or c.key == "") then return end local id = start_scan(domain, c.key) if id == "" then return end while(true) do local status = get_scan_status(id, c.key) if status == "failed" then return elseif status == "finished" then break end for _=1,5 do check_rate_limit() end end local output = get_output(id, c.key) if output ~= "" then for _, r in pairs(output) do new_name(ctx, r[1]) new_addr(ctx, r[2], r[1]) end end end function start_scan(domain, key) local body = json.encode({ ['op']="start_scan", ['tool_id']=20, ['target']=domain, ['tool_params'] = { ['web_details']="off", ['do_bing_search']="off", }, }) local resp, err = request(ctx, { ['url']=build_url(key), method="POST", data=body, headers={['Content-Type']="application/json"} }) if (err ~= nil and err ~= "") then log(ctx, "start_scan request to service failed: " .. err) return "" end d = json.decode(resp) if (d == nil or d.op_status ~= "success") then return "" end return d.scan_id end function get_scan_status(id, key) local body = json.encode({ ['op']="get_scan_status", ['scan_id']=id, }) local resp, err = request(ctx, { ['url']=build_url(key), method="POST", data=body, headers={['Content-Type']="application/json"} }) if (err ~= nil and err ~= "") then log(ctx, "get_scan_status request to service failed: " .. err) return "failed" end d = json.decode(resp) if (d == nil or d.op_status ~= "success") then return "failed" elseif (d.scan_status == "waiting" or d.scan_status == "running") then return "progress" else return "finished" end end function get_output(id, key) local body = json.encode({ ['op']="get_output", ['scan_id']=id, ['output_format']="json", }) local resp, err = request(ctx, { ['url']=build_url(key), method="POST", data=body, headers={['Content-Type']="application/json"} }) if (err ~= nil and err ~= "") then log(ctx, "get_output request to service failed: " .. err) return "" end d = json.decode(resp) if (d == nil or d.op_status ~= "success" or d.output_json == nil or #(d['output_json'].output_data) == 0) then return "" end return d['output_json'][1].output_data end function build_url(key) return "https://pentest-tools.com/api?key=" .. key end
Ada
4
Elon143/Amass
resources/scripts/api/pentesttools.ads
[ "Apache-2.0" ]
--TEST-- Match expression discarding result --FILE-- <?php match (1) { 1 => print "Executed\n", }; ?> --EXPECT-- Executed
PHP
2
NathanFreeman/php-src
Zend/tests/match/005.phpt
[ "PHP-3.01" ]
grammar mysql_rename; import mysql_literal_tokens, mysql_idents; rename_table: RENAME TABLE rename_table_spec (',' rename_table_spec)*; rename_table_spec: table_name TO table_name;
ANTLR
4
zhongyu211/maxwell
src/main/antlr4/imports/mysql_rename.g4
[ "Apache-2.0" ]
PROGRAM PRAGMA('project(#pragma link(libcurl.lib))') INCLUDE('libcurl.inc') MAP END curl TCurlMailClass res CURLcode EMailProvider STRING(20) CODE curl.Init() EMailProvider = 'gmail' ! EMailProvider = 'yandex' CASE LOWER(EMailProvider) OF 'gmail' curl.Server('smtp.gmail.com', 587) curl.Account('[email protected]', '12345') curl.From('[email protected]') curl.AddRecipient('[email protected]') !to/cc/bcc OF 'yandex' curl.Server('smtp.yandex.ru', 25) curl.Account('[email protected]', '54321') curl.From('[email protected]') curl.AddRecipient('[email protected]') !to/cc/bcc END curl.UseSSL(CURLUSESSL_ALL) curl.SetSSLVerifyPeer(FALSE) !curl --insecure curl.Subject('Test email') curl.Body('Test email using libcurl') curl.AddAttachment('.\doc\how-to.txt') curl.AddAttachment('c:\images\logo.jpg') !connection timeout (seconds) curl.SetOpt(CURLOPT_CONNECTTIMEOUT, 30) res = curl.Send() IF res = CURLE_OK MESSAGE('Email sent', 'SendMail', ICON:Asterisk) ELSE MESSAGE('Send failed: '& curl.StrError(res), 'SendMail', ICON:Exclamation) END
Clarion
4
mikeduglas/libcurl
examples/SendMail/SendMail.clw
[ "curl" ]
/* * Copyright (c) 2018-2021, Andreas Kling <[email protected]> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <Kernel/API/POSIX/sys/uio.h> __BEGIN_DECLS ssize_t writev(int fd, const struct iovec*, int iov_count); ssize_t readv(int fd, const struct iovec*, int iov_count); __END_DECLS
C
3
r00ster91/serenity
Userland/Libraries/LibC/sys/uio.h
[ "BSD-2-Clause" ]
describe(`styling: less`, () => { it(`initial styling is correct`, () => { cy.visit(`/styling/less`).waitForRouteChange() cy.getTestElement(`less-styled-element`).should( `have.css`, `color`, `rgb(255, 0, 0)` ) cy.getTestElement(`less-module-styled-element`).should( `have.css`, `color`, `rgb(0, 128, 0)` ) }) })
JavaScript
4
waltercruz/gatsby
e2e-tests/production-runtime/cypress/integration/styling/less.js
[ "MIT" ]
.kg-header-card, .kg-header-card * { box-sizing: border-box; } .kg-header-card { padding: 12vmin 4em; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } .kg-header-card.kg-size-small { padding-top: 14vmin; padding-bottom: 14vmin; min-height: 40vh; } .kg-header-card.kg-size-large { padding-top: 18vmin; padding-bottom: 18vmin; min-height: 80vh; } .kg-header-card.kg-align-left { text-align: left; align-items: flex-start; } .kg-header-card.kg-style-dark { background: #151515; color: #ffffff; } .kg-header-card.kg-style-light { background-color: #fafafa; } .kg-header-card.kg-style-accent { background-color: var(--ghost-accent-color); } .kg-header-card.kg-style-image { position: relative; background-color: #e7e7e7; background-size: cover; background-position: center; } .kg-header-card.kg-style-image::before { position: absolute; display: block; content: ""; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2)); } .kg-header-card h2.kg-header-card-header { font-size: 5em; font-weight: 700; line-height: 1.1em; letter-spacing: -0.01em; margin: 0; } .kg-header-card h2.kg-header-card-header strong { font-weight: 800; } .kg-header-card.kg-size-small h2.kg-header-card-header { font-size: 4em; } .kg-header-card.kg-size-large h2.kg-header-card-header { font-size: 6em; } .kg-header-card h3.kg-header-card-subheader { font-size: 1.5em; font-weight: 500; line-height: 1.4em; margin: 0; max-width: 40em; } .kg-header-card h2 + h3.kg-header-card-subheader { margin: 0.35em 0 0; } .kg-header-card h3.kg-header-card-subheader strong { font-weight: 600; } .kg-header-card.kg-size-small h3.kg-header-card-subheader { font-size: 1.25em; } .kg-header-card.kg-size-large h3.kg-header-card-subheader { font-size: 1.75em; } .kg-header-card:not(.kg-style-light) h2.kg-header-card-header, .kg-header-card:not(.kg-style-light) h3.kg-header-card-subheader { color: #ffffff; } .kg-header-card.kg-style-accent h3.kg-header-card-subheader, .kg-header-card.kg-style-image h3.kg-header-card-subheader { opacity: 1.0; } .kg-header-card.kg-style-image h2.kg-header-card-header, .kg-header-card.kg-style-image h3.kg-header-card-subheader, .kg-header-card.kg-style-image a.kg-header-card-button { z-index: 999; } .kg-header-card h2.kg-header-card-header a, .kg-header-card h3.kg-header-card-subheader a { color: var(--ghost-accent-color); } .kg-header-card.kg-style-accent h2.kg-header-card-header a, .kg-header-card.kg-style-accent h3.kg-header-card-subheader a, .kg-header-card.kg-style-image h2.kg-header-card-header a, .kg-header-card.kg-style-image h3.kg-header-card-subheader a { color: #fff; } .kg-header-card a.kg-header-card-button { display: flex; position: static; align-items: center; fill: #fff; background: #fff; border-radius: 3px; outline: none; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 1.05em; font-weight: 600; line-height: 1em; text-align: center; text-decoration: none; letter-spacing: .2px; white-space: nowrap; text-overflow: ellipsis; color: #151515; height: 2.7em; padding: 0 1.2em; transition: opacity .2s ease; } .kg-header-card h2 + a.kg-header-card-button, .kg-header-card h3 + a.kg-header-card-button { margin: 1.75em 0 0; } .kg-header-card a.kg-header-card-button:hover { opacity: 0.85; } .kg-header-card.kg-size-large a.kg-header-card-button { font-size: 1.1em; height: 2.9em; } .kg-header-card.kg-size-large h2 + a.kg-header-card-button, .kg-header-card.kg-size-large h3 + a.kg-header-card-button { margin-top: 2em; } .kg-header-card.kg-size-small a.kg-header-card-button { height: 2.4em; font-size: 1em; } .kg-header-card.kg-size-small h2 + a.kg-header-card-button, .kg-header-card.kg-size-small h3 + a.kg-header-card-button { margin-top: 1.5em; } .kg-header-card.kg-style-image a.kg-header-card-button, .kg-header-card.kg-style-dark a.kg-header-card-button { background: #fff; color: #151515; } .kg-header-card.kg-style-light a.kg-header-card-button { background: var(--ghost-accent-color); color: #fff; } .kg-header-card.kg-style-accent a.kg-header-card-button { background: #fff; color: #151515; } @media (max-width: 640px) { .kg-header-card { padding-left: 1em; padding-right: 1em; } .kg-header-card h2.kg-header-card-header { font-size: 3.5em; } .kg-header-card.kg-size-large h2.kg-header-card-header { font-size: 4em; } .kg-header-card.kg-size-small h2.kg-header-card-header { font-size: 3em; } .kg-header-card h3.kg-header-card-subheader { font-size: 1.25em; } .kg-header-card.kg-size-large h3.kg-header-card-subheader { font-size: 1.5em; } .kg-header-card.kg-size-small h3.kg-header-card-subheader { font-size: 1em; } }
CSS
3
ClashgamesFR/Ghost
core/frontend/src/cards/css/header.css
[ "MIT" ]
B trip_countJ
PureBasic
0
pchandrasekaran1595/onnx
onnx/backend/test/data/node/test_loop16_seq_none/test_data_set_0/input_0.pb
[ "Apache-2.0" ]
ruleset org.sovrin.agent.ui { meta { use module html provides html shares __testing } global { __testing = { "queries": [ { "name": "__testing" } // , { "name": "html", "args": [ "c_i" ] } ] , "events": [ //{ "domain": "d1", "type": "t1" } //, { "domain": "d2", "type": "t2", "attrs": [ "a1", "a2" ] } ] } invite = function(map){ <<<pre class="no-print"> <script type="text/javascript">document.write(JSON.stringify(#{map},null,2))</script> </pre> >> } scripts = <<<script src="/js/jquery-3.1.0.min.js"></script> <!-- thanks to Jerome Etienne http://jeromeetienne.github.io/jquery-qrcode/ --> <script type="text/javascript" src="/js/jquery.qrcode.js"></script> <script type="text/javascript" src="/js/qrcode.js"></script> <script type="text/javascript"> $(function(){ $("div").qrcode({ text: location.href, foreground: "#000000" }); }); </script> <style type="text/css"> @media print { .no-print { display: none; } a { text-decoration: none; color: black; } } </style> >> explain = function(owner){ <<<p>You are looking at an invitation from #{owner}. <span class="no-print">(wait, <a href="#confusion"><em>I'm</em> #{owner}!</a>)</span></p> <p>You received this invitation because #{owner} wants to have a secure message connection with you. To accept the invitation, you must have the <em>Pico Agent App</em> (or another <a href="https://sovrin.org/">Sovrin</a>-compatible agent app).</p> <p>Using your agent app, <span class="no-print">either </span>scan the QR Code below<span class="no-print">, or copy the URL from the location bar of your browser and paste it into your app</span>.</p> >> } html = function(c_i){ map = math:base64decode(c_i); owner = map.decode(){"label"}; html:header("invitation", scripts) + explain(owner) + <<<div style="border:1px dashed silver;padding:5px;width:max-content"></div> >> + <<<p class="no-print">Technical details:</p> >> + invite(map) + <<<a name="confusion"><p class="no-print">You're #{owner}:</p></a> <p class="no-print">You'll need to give this URL to the person with whom you want a secure message-passing connection. Or, just have them use their Pico Agent App to scan the QR Code above.</p> >> + <<<p class="no-print" style="padding-top:30em"><a href="http://picolabs.io">Powered by Pico Labs</a></p> >> + html:footer() } } }
KRL
4
Picolab/G2S
krl/org.sovrin.agent.ui.krl
[ "MIT" ]
primitive NetAuth new create(from: AmbientAuth) => None primitive DNSAuth new create(from: (AmbientAuth | NetAuth)) => None primitive UDPAuth new create(from: (AmbientAuth | NetAuth)) => None primitive TCPAuth new create(from: (AmbientAuth | NetAuth)) => None primitive TCPListenAuth new create(from: (AmbientAuth | NetAuth | TCPAuth)) => None primitive TCPConnectAuth new create(from: (AmbientAuth | NetAuth | TCPAuth)) => None
Pony
2
presidentbeef/ponyc
packages/net/auth.pony
[ "BSD-2-Clause" ]
.integration-form padding: 5px border-bottom: 1px solid #ccc .flex display: -webkit-box display: -moz-box display: -webkit-flex display: -moz-flex display: -ms-flexbox display: flex .option @extends .flex -webkit-border-radius: 3px; border-radius: 3px; background: #fff; text-decoration: none; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2); box-shadow: 0 1px 2px rgba(0,0,0,0.2); margin-top: 5px; padding: 5px;
Stylus
3
moqmar/wekan
client/components/boards/boardHeader.styl
[ "MIT" ]
stocks ins view view whales set whales filter load aapl stats act lins lcb 3 lpsb 3 lit 3 lip 3 blip 3 blop 3 blcp 3 lis 3 blis 3 blos 3 blcs 3 topt 3 toppw 3 toppm 3 tipt 3 tippw 3 tippm 3 tist tispw tispm 3 exit
Gosu
0
minhhoang1023/GamestonkTerminal
scripts/test_stocks_ins.gst
[ "MIT" ]
c dznrm2sub.f c c The program is a fortran wrapper for dznrm2. c Witten by Keita Teranishi. 2/11/1998 c subroutine dznrm2sub(n,x,incx,nrm2) c external dznrm2 double precision dznrm2,nrm2 integer n,incx double complex x(*) c nrm2=dznrm2(n,x,incx) return end
FORTRAN
3
dnoan/OpenBLAS
lapack-netlib/CBLAS/src/dznrm2sub.f
[ "BSD-3-Clause" ]
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "tensorflow/core/grappler/graph_view.h" #include "absl/container/flat_hash_set.h" #include "absl/strings/str_cat.h" #include "tensorflow/cc/ops/parsing_ops.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/graph/benchmark_testlib.h" #include "tensorflow/core/grappler/grappler_item.h" #include "tensorflow/core/grappler/inputs/trivial_test_graph_input_yielder.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test_benchmark.h" namespace tensorflow { namespace grappler { namespace { class GraphViewTest : public ::testing::Test {}; TEST_F(GraphViewTest, OpPortIdToArgIdShapeN) { tensorflow::Scope s = tensorflow::Scope::NewRootScope(); Output a = ops::Const(s.WithOpName("a"), 0.0f, {10, 10}); ops::ShapeN b(s.WithOpName("b"), {a, a, a}); GraphDef graph_def; TF_CHECK_OK(s.ToGraphDef(&graph_def)); GraphView graph_view(&graph_def); const NodeDef& a_node_def = *graph_view.GetNode("a"); const NodeDef& b_node_def = *graph_view.GetNode("b"); const OpDef* a_op_def = nullptr; const OpDef* b_op_def = nullptr; TF_EXPECT_OK(OpRegistry::Global()->LookUpOpDef(a_node_def.op(), &a_op_def)); TF_EXPECT_OK(OpRegistry::Global()->LookUpOpDef(b_node_def.op(), &b_op_def)); // Const has 0 inputs, 1 output. EXPECT_EQ(OpInputPortIdToArgId(a_node_def, *a_op_def, 0), -1); EXPECT_EQ(OpOutputPortIdToArgId(a_node_def, *a_op_def, 0), 0); EXPECT_EQ(OpOutputPortIdToArgId(a_node_def, *a_op_def, 1), -1); // ShapeN has N=3 inputs and outputs. EXPECT_EQ(OpInputPortIdToArgId(b_node_def, *b_op_def, 0), 0); EXPECT_EQ(OpInputPortIdToArgId(b_node_def, *b_op_def, 1), 0); EXPECT_EQ(OpInputPortIdToArgId(b_node_def, *b_op_def, 2), 0); EXPECT_EQ(OpInputPortIdToArgId(b_node_def, *b_op_def, 3), -1); EXPECT_EQ(OpOutputPortIdToArgId(b_node_def, *b_op_def, 0), 0); EXPECT_EQ(OpOutputPortIdToArgId(b_node_def, *b_op_def, 1), 0); EXPECT_EQ(OpOutputPortIdToArgId(b_node_def, *b_op_def, 2), 0); EXPECT_EQ(OpOutputPortIdToArgId(b_node_def, *b_op_def, 3), -1); EXPECT_EQ(OpOutputPortIdToArgId(b_node_def, *b_op_def, 4), -1); } TEST_F(GraphViewTest, OpPortIdToArgIdSparseSplit) { for (int num_splits : {1, 2}) { tensorflow::Scope s = tensorflow::Scope::NewRootScope(); Output a = ops::Const<int64_t>(s.WithOpName("a"), 1, {10, 10}); ops::SparseSplit b(s.WithOpName("b"), a, a, a, a, num_splits); GraphDef graph_def; TF_CHECK_OK(s.ToGraphDef(&graph_def)); GraphView graph_view(&graph_def); const NodeDef& b_node_def = *graph_view.GetNode("b"); const OpDef* b_op_def = nullptr; TF_EXPECT_OK(OpRegistry::Global()->LookUpOpDef(b_node_def.op(), &b_op_def)); // We have 4 inputs. EXPECT_EQ(OpInputPortIdToArgId(b_node_def, *b_op_def, 0), 0); EXPECT_EQ(OpInputPortIdToArgId(b_node_def, *b_op_def, 1), 1); EXPECT_EQ(OpInputPortIdToArgId(b_node_def, *b_op_def, 2), 2); EXPECT_EQ(OpInputPortIdToArgId(b_node_def, *b_op_def, 3), 3); EXPECT_EQ(OpInputPortIdToArgId(b_node_def, *b_op_def, 4), -1); for (int port_id = 0; port_id <= num_splits * 3; ++port_id) { int arg_id = -1; if (port_id < num_splits * 3) { arg_id = port_id / num_splits; } EXPECT_EQ(OpOutputPortIdToArgId(b_node_def, *b_op_def, port_id), arg_id); } } } TEST_F(GraphViewTest, ParseSingleExample) { tensorflow::Scope s = tensorflow::Scope::NewRootScope(); Output a = ops::Const<tstring>(s.WithOpName("a"), "", {}); Output b = ops::Const<int64_t>(s.WithOpName("b"), 1, {1, 1}); ops::ParseSingleExample c(s.WithOpName("c"), a, {b, b}, 2, {"w", "x"}, {"y", "z"}, {DT_INT64, DT_INT64}, {{1}, {1}}); GraphDef graph_def; TF_CHECK_OK(s.ToGraphDef(&graph_def)); GraphView graph_view(&graph_def); const NodeDef& c_node_def = *graph_view.GetNode("c"); const OpDef* c_op_def = nullptr; TF_EXPECT_OK(OpRegistry::Global()->LookUpOpDef(c_node_def.op(), &c_op_def)); EXPECT_EQ(OpOutputPortIdToArgId(c_node_def, *c_op_def, 0), 0); EXPECT_EQ(OpOutputPortIdToArgId(c_node_def, *c_op_def, 1), 0); EXPECT_EQ(OpOutputPortIdToArgId(c_node_def, *c_op_def, 2), 1); EXPECT_EQ(OpOutputPortIdToArgId(c_node_def, *c_op_def, 3), 1); EXPECT_EQ(OpOutputPortIdToArgId(c_node_def, *c_op_def, 4), 2); EXPECT_EQ(OpOutputPortIdToArgId(c_node_def, *c_op_def, 5), 2); EXPECT_EQ(OpOutputPortIdToArgId(c_node_def, *c_op_def, 6), 3); EXPECT_EQ(OpOutputPortIdToArgId(c_node_def, *c_op_def, 7), 3); EXPECT_EQ(OpOutputPortIdToArgId(c_node_def, *c_op_def, 8), -1); } TEST_F(GraphViewTest, BasicGraph) { TrivialTestGraphInputYielder fake_input(4, 2, 2, false, {"/CPU:0", "/GPU:0"}); GrapplerItem item; CHECK(fake_input.NextItem(&item)); GraphView graph(&item.graph); GraphView::InputPort input = graph.GetInputPort("AddN", 0); EXPECT_EQ(input.node->name(), "AddN"); EXPECT_EQ(input.port_id, 0); GraphView::OutputPort fanin = graph.GetRegularFanin(input); EXPECT_EQ(fanin.node->name(), "Sign"); EXPECT_EQ(fanin.port_id, 0); input = graph.GetInputPort("AddN", 1); EXPECT_EQ(input.node->name(), "AddN"); EXPECT_EQ(input.port_id, 1); fanin = graph.GetRegularFanin(input); EXPECT_EQ(fanin.node->name(), "Sign_1"); EXPECT_EQ(fanin.port_id, 0); GraphView::OutputPort output = graph.GetOutputPort("AddN", 0); EXPECT_EQ(output.node->name(), "AddN"); EXPECT_EQ(output.port_id, 0); EXPECT_EQ(graph.GetFanout(output).size(), 2); for (auto fanout : graph.GetFanout(output)) { if (fanout.node->name() == "AddN_2" || fanout.node->name() == "AddN_3") { EXPECT_EQ(fanout.port_id, 0); } else { // Invalid fanout EXPECT_FALSE(true); } } const NodeDef* add_node = graph.GetNode("AddN"); EXPECT_NE(add_node, nullptr); absl::flat_hash_set<string> fanouts; absl::flat_hash_set<string> expected_fanouts = {"AddN_2:0", "AddN_3:0"}; for (const auto& fo : graph.GetFanouts(*add_node, false)) { fanouts.insert(absl::StrCat(fo.node->name(), ":", fo.port_id)); } EXPECT_EQ(graph.NumFanouts(*add_node, false), 2); EXPECT_EQ(fanouts, expected_fanouts); absl::flat_hash_set<string> fanins; absl::flat_hash_set<string> expected_fanins = {"Sign_1:0", "Sign:0"}; for (const auto& fi : graph.GetFanins(*add_node, false)) { fanins.insert(absl::StrCat(fi.node->name(), ":", fi.port_id)); } EXPECT_EQ(graph.NumFanins(*add_node, false), 2); EXPECT_EQ(fanins, expected_fanins); } TEST_F(GraphViewTest, ControlDependencies) { tensorflow::Scope s = tensorflow::Scope::NewRootScope(); Output a = ops::Const(s.WithOpName("a"), 0.0f, {10, 10}); Output b = ops::Square(s.WithOpName("b"), {a}); Output c = ops::Sqrt(s.WithOpName("c"), {b}); Output d = ops::AddN(s.WithOpName("d").WithControlDependencies(a), {b, c}); GrapplerItem item; TF_CHECK_OK(s.ToGraphDef(&item.graph)); GraphView graph(&item.graph); GraphView::OutputPort output = graph.GetOutputPort("a", -1); EXPECT_EQ(output.node->name(), "a"); EXPECT_EQ(output.port_id, -1); auto fanout = graph.GetFanout(output); EXPECT_EQ(fanout.size(), 1); EXPECT_EQ((*fanout.begin()).node->name(), "d"); EXPECT_EQ((*fanout.begin()).port_id, -1); output = graph.GetOutputPort("a", 0); EXPECT_EQ(output.node->name(), "a"); EXPECT_EQ(output.port_id, 0); fanout = graph.GetFanout(output); EXPECT_EQ(fanout.size(), 1); EXPECT_EQ((*fanout.begin()).node->name(), "b"); EXPECT_EQ((*fanout.begin()).port_id, 0); GraphView::InputPort input = graph.GetInputPort("d", -1); EXPECT_EQ(input.node->name(), "d"); EXPECT_EQ(input.port_id, -1); auto fanin = graph.GetFanin(input); EXPECT_EQ(fanin.size(), 1); EXPECT_EQ((*fanin.begin()).node->name(), "a"); EXPECT_EQ((*fanin.begin()).port_id, -1); input = graph.GetInputPort("d", 0); EXPECT_EQ(input.node->name(), "d"); EXPECT_EQ(input.port_id, 0); fanin = graph.GetFanin(input); EXPECT_EQ(fanin.size(), 1); EXPECT_EQ((*fanin.begin()).node->name(), "b"); EXPECT_EQ((*fanin.begin()).port_id, 0); input = graph.GetInputPort("d", 1); EXPECT_EQ(input.node->name(), "d"); EXPECT_EQ(input.port_id, 1); fanin = graph.GetFanin(input); EXPECT_EQ(fanin.size(), 1); EXPECT_EQ((*fanin.begin()).node->name(), "c"); EXPECT_EQ((*fanin.begin()).port_id, 0); } TEST_F(GraphViewTest, HasNode) { tensorflow::Scope s = tensorflow::Scope::NewRootScope(); Output a = ops::Const(s.WithOpName("a"), 0.0f, {10, 10}); GrapplerItem item; TF_CHECK_OK(s.ToGraphDef(&item.graph)); GraphView graph(&item.graph); EXPECT_EQ(graph.HasNode("a"), true); EXPECT_EQ(graph.HasNode("b"), false); } TEST_F(GraphViewTest, HasFanin) { tensorflow::Scope s = tensorflow::Scope::NewRootScope(); Output a = ops::Const(s.WithOpName("a"), 0.0f, {10, 10}); Output b = ops::Square(s.WithOpName("b"), {a}); Output c = ops::Sqrt(s.WithOpName("c"), {b}); Output d = ops::AddN(s.WithOpName("d").WithControlDependencies(a), {b, c}); GrapplerItem item; TF_CHECK_OK(s.ToGraphDef(&item.graph)); GraphView graph(&item.graph); const NodeDef* d_node = graph.GetNode("d"); EXPECT_NE(d_node, nullptr); EXPECT_EQ(graph.HasFanin(*d_node, {"a", Graph::kControlSlot}), true); EXPECT_EQ(graph.HasFanin(*d_node, {"a", 0}), false); EXPECT_EQ(graph.HasFanin(*d_node, {"b", 0}), true); EXPECT_EQ(graph.HasFanin(*d_node, {"b", Graph::kControlSlot}), false); EXPECT_EQ(graph.HasFanin(*d_node, {"c", 0}), true); EXPECT_EQ(graph.HasFanin(*d_node, {"c", Graph::kControlSlot}), false); } TEST_F(GraphViewTest, GetRegularFaninPortOutOfBounds) { tensorflow::Scope s = tensorflow::Scope::NewRootScope(); Output a = ops::Const(s.WithOpName("a"), 0.0f, {10, 10}); Output b = ops::Square(s.WithOpName("b"), {}); Output c = ops::Sqrt(s.WithOpName("c"), {b}); Output d = ops::AddN(s.WithOpName("d").WithControlDependencies(a), {b, c}); GrapplerItem item; TF_CHECK_OK(s.ToGraphDef(&item.graph)); GraphView graph(&item.graph); const NodeDef* b_node = graph.GetNode("b"); EXPECT_NE(b_node, nullptr); const NodeDef* c_node = graph.GetNode("c"); EXPECT_NE(c_node, nullptr); const NodeDef* d_node = graph.GetNode("d"); EXPECT_NE(d_node, nullptr); auto d_output_0 = graph.GetRegularFanin({d_node, 0}); EXPECT_EQ(d_output_0, GraphView::OutputPort(b_node, 0)); auto d_output_1 = graph.GetRegularFanin({d_node, 1}); EXPECT_EQ(d_output_1, GraphView::OutputPort(c_node, 0)); auto d_output_2 = graph.GetRegularFanin({d_node, 2}); EXPECT_EQ(d_output_2, GraphView::OutputPort()); auto d_output_control = graph.GetRegularFanin({d_node, Graph::kControlSlot}); EXPECT_EQ(d_output_control, GraphView::OutputPort()); } void BM_GraphViewConstruction(::testing::benchmark::State& state) { const int num_nodes = state.range(0); const int num_edges_per_node = state.range(1); const GraphDef graph_def = test::CreateGraphDef(num_nodes, num_edges_per_node); for (auto s : state) { GraphView graph_view(&graph_def); } } BENCHMARK(BM_GraphViewConstruction) ->ArgPair(10, 2) ->ArgPair(100, 2) ->ArgPair(1000, 2) ->ArgPair(10000, 2) ->ArgPair(25000, 2) ->ArgPair(50000, 2) ->ArgPair(100000, 2) ->ArgPair(10, 4) ->ArgPair(100, 4) ->ArgPair(1000, 4) ->ArgPair(10000, 4) ->ArgPair(25000, 4) ->ArgPair(50000, 4) ->ArgPair(100000, 4) ->ArgPair(10, 8) ->ArgPair(100, 8) ->ArgPair(1000, 8) ->ArgPair(10000, 8) ->ArgPair(25000, 8) ->ArgPair(50000, 8) ->ArgPair(100000, 8) ->ArgPair(10, 16) ->ArgPair(100, 16) ->ArgPair(1000, 16) ->ArgPair(10000, 16) ->ArgPair(25000, 16) ->ArgPair(50000, 16) ->ArgPair(100000, 16); void BM_GraphViewGetNode(::testing::benchmark::State& state) { const int num_nodes = state.range(0); const GraphDef graph_def = test::CreateGraphDef(num_nodes, /*num_edges_per_node=*/16); GraphView graph_view(&graph_def); for (auto s : state) { graph_view.GetNode("out"); } } BENCHMARK(BM_GraphViewGetNode) ->Arg(10) ->Arg(100) ->Arg(1000) ->Arg(10000) ->Arg(25000) ->Arg(50000) ->Arg(100000); #define RUN_FANIN_FANOUT_BENCHMARK(name) \ BENCHMARK(name) \ ->ArgPair(10, 10) \ ->ArgPair(10, 100) \ ->ArgPair(10, 1000) \ ->ArgPair(10, 10000) \ ->ArgPair(10, 100000) \ ->ArgPair(100, 10) \ ->ArgPair(100, 100) \ ->ArgPair(100, 1000) \ ->ArgPair(100, 10000) \ ->ArgPair(100, 100000) \ ->ArgPair(1000, 10) \ ->ArgPair(1000, 100) \ ->ArgPair(1000, 1000) \ ->ArgPair(1000, 10000) \ ->ArgPair(1000, 100000) \ ->ArgPair(10000, 10) \ ->ArgPair(10000, 100) \ ->ArgPair(10000, 1000) \ ->ArgPair(10000, 10000) \ ->ArgPair(10000, 100000) \ ->ArgPair(100000, 10) \ ->ArgPair(100000, 100) \ ->ArgPair(100000, 1000) \ ->ArgPair(100000, 10000) \ ->ArgPair(100000, 100000); void BM_GraphViewGetFanout(::testing::benchmark::State& state) { const int num_fanins = state.range(0); const int num_fanouts = state.range(1); const GraphDef graph_def = test::CreateFaninFanoutNodeGraph( num_fanins, num_fanouts, num_fanins, num_fanouts, /*fanout_unique_index=*/true); GraphView graph_view(&graph_def); for (auto s : state) { const NodeDef* node = graph_view.GetNode("node"); graph_view.GetFanout({node, 0}); } } RUN_FANIN_FANOUT_BENCHMARK(BM_GraphViewGetFanout); void BM_GraphViewGetFanin(::testing::benchmark::State& state) { const int num_fanins = state.range(0); const int num_fanouts = state.range(1); const GraphDef graph_def = test::CreateFaninFanoutNodeGraph( num_fanins, num_fanouts, num_fanins, num_fanouts, /*fanout_unique_index=*/true); GraphView graph_view(&graph_def); for (auto s : state) { const NodeDef* node = graph_view.GetNode("node"); graph_view.GetFanin({node, 0}); } } RUN_FANIN_FANOUT_BENCHMARK(BM_GraphViewGetFanin); void BM_GraphViewGetRegularFanin(::testing::benchmark::State& state) { const int num_fanins = state.range(0); const int num_fanouts = state.range(1); const GraphDef graph_def = test::CreateFaninFanoutNodeGraph( num_fanins, num_fanouts, num_fanins, num_fanouts, /*fanout_unique_index=*/true); GraphView graph_view(&graph_def); for (auto s : state) { const NodeDef* node = graph_view.GetNode("node"); graph_view.GetRegularFanin({node, 0}); } } RUN_FANIN_FANOUT_BENCHMARK(BM_GraphViewGetRegularFanin); void BM_GraphViewGetFanouts(::testing::benchmark::State& state) { const int num_fanins = state.range(0); const int num_fanouts = state.range(1); const GraphDef graph_def = test::CreateFaninFanoutNodeGraph( num_fanins, num_fanouts, num_fanins, num_fanouts, /*fanout_unique_index=*/true); GraphView graph_view(&graph_def); for (auto s : state) { const NodeDef* node = graph_view.GetNode("node"); graph_view.GetFanouts(*node, /*include_controlled_nodes=*/false); } } RUN_FANIN_FANOUT_BENCHMARK(BM_GraphViewGetFanouts); void BM_GraphViewGetFanins(::testing::benchmark::State& state) { const int num_fanins = state.range(0); const int num_fanouts = state.range(1); const GraphDef graph_def = test::CreateFaninFanoutNodeGraph( num_fanins, num_fanouts, num_fanins, num_fanouts, /*fanout_unique_index=*/true); GraphView graph_view(&graph_def); for (auto s : state) { const NodeDef* node = graph_view.GetNode("node"); graph_view.GetFanins(*node, /*include_controlling_nodes=*/false); } } RUN_FANIN_FANOUT_BENCHMARK(BM_GraphViewGetFanins); void BM_GraphViewGetFanoutEdges(::testing::benchmark::State& state) { const int num_fanins = state.range(0); const int num_fanouts = state.range(1); const GraphDef graph_def = test::CreateFaninFanoutNodeGraph( num_fanins, num_fanouts, num_fanins, num_fanouts, /*fanout_unique_index=*/true); GraphView graph_view(&graph_def); for (auto s : state) { const NodeDef* node = graph_view.GetNode("node"); graph_view.GetFanoutEdges(*node, /*include_controlled_edges=*/false); } } RUN_FANIN_FANOUT_BENCHMARK(BM_GraphViewGetFanoutEdges); void BM_GraphViewGetFaninEdges(::testing::benchmark::State& state) { const int num_fanins = state.range(0); const int num_fanouts = state.range(1); const GraphDef graph_def = test::CreateFaninFanoutNodeGraph( num_fanins, num_fanouts, num_fanins, num_fanouts, /*fanout_unique_index=*/true); GraphView graph_view(&graph_def); for (auto s : state) { const NodeDef* node = graph_view.GetNode("node"); graph_view.GetFaninEdges(*node, /*include_controlling_edges=*/false); } } RUN_FANIN_FANOUT_BENCHMARK(BM_GraphViewGetFaninEdges); } // namespace } // namespace grappler } // namespace tensorflow
C++
4
EricRemmerswaal/tensorflow
tensorflow/core/grappler/graph_view_test.cc
[ "Apache-2.0" ]
globals [total] patches-own [n] to setup clear-all reset-timer ask patches [ set n 2 colorize ] set total 2 * count patches reset-ticks end to go if ticks > 5000 [print timer stop] let active-patches patch-set one-of patches ask active-patches [ set n n + 1 set total total + 1 colorize ] while [any? active-patches] [ let overloaded-patches active-patches with [n > 3] ask overloaded-patches [ set n n - 4 set total total - 4 colorize ask neighbors4 [ set n n + 1 set total total + 1 colorize ] ] set active-patches patch-set [neighbors4] of overloaded-patches ] tick end to colorize ;; patch procedure ifelse n <= 3 [ set pcolor item n [83 54 45 25] ] [ set pcolor red ] end @#$#@#$#@ GRAPHICS-WINDOW 415 10 725 341 -1 -1 3.0 1 10 1 1 1 0 0 0 1 0 99 0 99 1 1 1 ticks 100000.0 BUTTON 10 25 89 58 NIL setup NIL 1 T OBSERVER NIL NIL NIL NIL 1 BUTTON 95 25 173 58 NIL go T 1 T OBSERVER NIL NIL NIL NIL 0 PLOT 10 165 400 340 Average NIL NIL 0.0 1.0 2.0 2.1 true true "" "if not plot? [ stop ]" PENS "average" 1.0 0 -16777216 true "" "plotxy ticks (total / count patches)" SWITCH 40 65 143 98 plot? plot? 1 1 -1000 OUTPUT 175 84 400 164 12 @#$#@#$#@ ## WHAT IS IT? This is like Bob's model, but stripped down and speeded up. Seth Tisue, October 2011 @#$#@#$#@ default true 0 Polygon -7500403 true true 150 5 40 250 150 205 260 250 @#$#@#$#@ NetLogo 5.0.3 @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ <experiments> <experiment name="experiment1" repetitions="1" runMetricsEveryStep="false"> <setup>setup</setup> <go>go</go> <enumeratedValueSet variable="plot?"> <value value="false"/> </enumeratedValueSet> </experiment> </experiments> @#$#@#$#@ @#$#@#$#@ default 0.0 -0.2 0 1.0 0.0 0.0 1 1.0 0.0 0.2 0 1.0 0.0 link direction true 0 Line -7500403 true 150 150 90 180 Line -7500403 true 150 150 210 180 @#$#@#$#@ 1 @#$#@#$#@
NetLogo
5
atcol/hlogo
bench/nlogo/Bureaucrats_fast.nlogo
[ "BSD-3-Clause" ]
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma abicoder v2; import "@openzeppelin/contracts/access/Ownable.sol"; contract UserStorage is Ownable { struct User { address userAddr; string avatar; string email; uint256 isOnline; uint256 userFlag; uint256 credit; uint256 regTime; TradeStats tradeStats; MorgageStats morgageStats; } struct TradeStats { uint256 tradeTotal; uint256 restTotal; } struct MorgageStats { uint256 mortgage; uint256 freezeMortgage; uint256 relieveMortgage; uint256 inviteUserCount; uint256 inviteUserReward; uint256 applyRelieveTime; uint256 handleRelieveTime; } mapping(address => User) public users; mapping(address => uint256) public userIndex; User[] public userList; event addUser(address _userAddr); event updateUser(string _avatar, string _email, uint256 _isOnline); address _restCAddr; address _orderCAddr; address _recordCAddr; address _appealCAddr; modifier onlyAuthFromAddr() { require(_restCAddr != address(0), "Invalid address call rest"); require(_orderCAddr != address(0), "Invalid address call order"); require(_recordCAddr != address(0), "Invalid address call record"); require(_appealCAddr != address(0), "Invalid address call appeal"); _; } function authFromContract( address _fromRest, address _fromOrder, address _fromRecord, address _fromAppeal ) external { require(_restCAddr == address(0), "rest address has Auth"); require(_orderCAddr == address(0), "order address has Auth"); require(_recordCAddr == address(0), "record address has Auth"); require(_appealCAddr == address(0), "appeal address has Auth"); _restCAddr = _fromRest; _orderCAddr = _fromOrder; _recordCAddr = _fromRecord; _appealCAddr = _fromAppeal; } modifier onlyMemberOf() { require(users[msg.sender].userAddr != address(0), "has no permission"); _; } function _insert(address _addr) internal { require(_addr != address(0), "UserStorage: addr null is not allowed"); require( users[_addr].userAddr == address(0), "UserStorage: current User exist" ); TradeStats memory tradeStats = TradeStats({ tradeTotal: 0, restTotal: 0 }); MorgageStats memory morgageStats = MorgageStats({ mortgage: 0, freezeMortgage: 0, relieveMortgage: 0, inviteUserCount: 0, inviteUserReward: 0, applyRelieveTime: 0, handleRelieveTime: 0 }); User memory u = User({ userAddr: _addr, avatar: "", email: "", isOnline: 1, userFlag: 0, credit: 0, regTime: block.timestamp, tradeStats: tradeStats, morgageStats: morgageStats }); users[_addr] = u; userList.push(u); userIndex[_addr] = userList.length - 1; emit addUser(_addr); } function _updateInfo( address _addr, string memory _avatar, string memory _email, uint256 _isOnline ) internal { require(_addr != address(0), "UserStorage: _addr null is not allowed"); require( users[_addr].userAddr != address(0), "UserStorage: current User not exist" ); User memory u = users[_addr]; if (bytes(_avatar).length != 0) { u.avatar = _avatar; } if (bytes(_email).length != 0) { u.email = _email; } if (_isOnline != uint256(0)) { u.isOnline = _isOnline; } users[_addr] = u; userList[userIndex[_addr]] = u; } function _updateTradeStats( address _addr, TradeStats memory _tradeStats, uint256 _credit ) internal { require(_addr != address(0), "UserStorage: _addr null is not allowed"); require( users[_addr].userAddr != address(0), "UserStorage: current User not exist" ); User memory u = users[_addr]; u.credit = _credit; u.tradeStats.tradeTotal = _tradeStats.tradeTotal; u.tradeStats.restTotal = _tradeStats.restTotal; users[_addr] = u; userList[userIndex[_addr]] = u; } function _updateMorgageStats( address _addr, MorgageStats memory _morgageStats ) internal { require(_addr != address(0), "UserStorage: _addr null is not allowed"); require( users[_addr].userAddr != address(0), "UserStorage: current User not exist" ); User memory u = users[_addr]; u.morgageStats.mortgage = _morgageStats.mortgage; u.morgageStats.freezeMortgage = _morgageStats.freezeMortgage; u.morgageStats.relieveMortgage = _morgageStats.relieveMortgage; u.morgageStats.inviteUserCount = _morgageStats.inviteUserCount; u.morgageStats.inviteUserReward = _morgageStats.inviteUserReward; u.morgageStats.applyRelieveTime = _morgageStats.applyRelieveTime; u.morgageStats.handleRelieveTime = _morgageStats.handleRelieveTime; users[_addr] = u; userList[userIndex[_addr]] = u; } function _search(address _addr) internal view returns (User memory user) { require(_addr != address(0), "UserStorage: _addr null is not allowed"); require( users[_addr].userAddr != address(0), "UserStorage: current User not exist" ); User memory a = users[_addr]; return a; } function register() external { require(!isMemberOf()); _insert(msg.sender); } function isMemberOf() public view returns (bool) { return (users[msg.sender].userAddr != address(0)); } function updateInfo( string memory _avatar, string memory _email, uint256 _isOnline ) external onlyMemberOf { _updateInfo(msg.sender, _avatar, _email, _isOnline); emit updateUser(_avatar, _email, _isOnline); } function updateTradeStats( address _addr, TradeStats memory _tradeStats, uint256 _credit ) public onlyAuthFromAddr { require( msg.sender == _restCAddr || msg.sender == _orderCAddr || msg.sender == _appealCAddr || msg.sender == _recordCAddr, "UserStorage:Invalid from contract address" ); _updateTradeStats(_addr, _tradeStats, _credit); } function updateMorgageStats( address _addr, MorgageStats memory _morgageStats ) public onlyAuthFromAddr { require( msg.sender == _recordCAddr, "UserStorage:Invalid from contract address" ); _updateMorgageStats(_addr, _morgageStats); } function updateUserRole(address _addr, uint256 _userFlag) public onlyAuthFromAddr { require( msg.sender == _recordCAddr, "UserStorage:Invalid from contract address" ); require(_addr != address(0), "UserStorage: _addr null is not allowed"); require( users[_addr].userAddr != address(0), "UserStorage: current User not exist" ); require(_userFlag >= 0, "UserStorage: Invalid userFlag 1"); require(_userFlag <= 3, "UserStorage: Invalid userFlag 3"); User memory u = users[_addr]; u.userFlag = _userFlag; users[_addr] = u; userList[userIndex[_addr]] = u; } function searchUser(address _addr) external view returns (User memory user) { return _search(_addr); } function searchUserList() external view returns (User[] memory) { return userList; } function searchWitnessList(uint256 _userFlag) external view returns (User[] memory) { User[] memory _resultList = new User[](userList.length); for (uint256 i = 0; i < userList.length; i++) { User memory _u = userList[i]; if (_u.userFlag == _userFlag) { _resultList[i] = _u; } } return _resultList; } }
Solidity
5
Aircoin-official/AirCash
UserStorage.sol
[ "MIT" ]
#!/usr/bin/make -f # THESE ARE CUSTOM RULES export DH_VERBOSE=1 export DH_OPTIONS=-v %: dh $@@ override_dh_auto_configure: dh_auto_configure -Scmake -- \ -DCMAKE_INSTALL_PREFIX="@(CMAKE_INSTALL_PREFIX)" \ -DCMAKE_PREFIX_PATH="@(CMAKE_PREFIX_PATH)" \ -DCATKIN_PACKAGE_PREFIX="@(CATKIN_PACKAGE_PREFIX)" \ -DCATKIN=YES
EmberScript
4
lsolanka-seebyte/catkin
test/mock_resources/src/catkin_test/rules.em
[ "BSD-3-Clause" ]
{ // Because these are not like a token object with a 'value' attribute, // Style Dictionary won't consider them tokens and therefore won't output them. // But, you can still access/reference them in tokens using the same reference // syntax: "value": "{lightness.0}" // This can be used when defining colors as HSL: // "value": {"h": "{hue.red}", "l": "{lightness.0}", "s": "{saturation.0}"} saturation: [ 100, 90, 85, 80, 75, 70, 65, 50 ] }
JSON5
4
pcsubirachs/sats_stream
node_modules/style-dictionary/examples/advanced/transitive-transforms/tokens/saturation.json5
[ "MIT" ]
using System; using Uno; using Uno.Collections; using System.IO; using Uno.Net; using Uno.Net.Sockets; using Uno.Threading; using Uno.Collections; using Uno.Diagnostics; namespace Outracks.Simulator { using UnoHost; using Protocol; public interface ISimulatorClient : IDisposable { ConcurrentQueue<IBinaryMessage> IncommingMessages { get; } void Send(IBinaryMessage message); bool IsOnline { get; } } public class OfflineSimulatorClient : ISimulatorClient { readonly ConcurrentQueue<IBinaryMessage> _messagesFromClient = new ConcurrentQueue<IBinaryMessage>(); readonly ConcurrentQueue<IBinaryMessage> _messagesToClient = new ConcurrentQueue<IBinaryMessage>(); public OfflineSimulatorClient(params IBinaryMessage[] initialMessages) { foreach (var msg in initialMessages) _messagesToClient.Enqueue(msg); } public ConcurrentQueue<IBinaryMessage> IncommingMessages { get { return _messagesToClient; } } public void Send(IBinaryMessage message) { _messagesFromClient.Enqueue(message); } public void Dispose() { } public bool IsOnline { get { return false; } } } public class FailedToConnectToEndPoint : Exception { public FailedToConnectToEndPoint(IPEndPoint endpoint, Exception e) : base(endpoint.ToString() + ": " + e.Message) { } } public class FailedToConnectToSimulator : Exception { public readonly ImmutableList<Exception> InnerExceptions; public FailedToConnectToSimulator(IEnumerable<Exception> innerExceptions) : base("Failed to connect to simulator host: " + innerExceptions.ToIndentedLines()) { InnerExceptions = innerExceptions.ToImmutableList(); } } public static class ToIndentedLinesExtension { public static string ToIndentedLines(this IEnumerable<Exception> innerExceptions) { var s = ""; foreach (var e in innerExceptions) s += " " + e.Message + "\n"; return s; } } public static class ConnectToFirstRespondingEndpoint { public static Task<Socket> Execute(IEnumerable<IPEndPoint> simulatorEndpoints) { var isNotConnected = new AutoResetEvent(true); var socketTasks = new List<Task<Socket>>(); foreach (var endpoint in simulatorEndpoints) socketTasks.Add(Tasks.Run<Socket>(new ConnectToEndpointClosure(endpoint, isNotConnected).Execute)); return Tasks.WaitForFirstResult<Socket>(socketTasks, OnNoResult); } static Socket OnNoResult(IEnumerable<Exception> exceptions) { throw new FailedToConnectToSimulator(exceptions); // TODO: misplaced information } } class ConnectToEndpointClosure { readonly IPEndPoint _endpoint; readonly EventWaitHandle _isNotConnected; public ConnectToEndpointClosure(IPEndPoint endpoint, EventWaitHandle isNotConnected) { _endpoint = endpoint; _isNotConnected = isNotConnected; } public Socket Execute() { try { var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socket.Connect(_endpoint); if (_isNotConnected.WaitOne(0) == false) { socket.Dispose(); throw new Exception("Connection already established"); } return socket; } catch (Exception e) { throw new FailedToConnectToEndPoint(_endpoint, e);// TODO: misplaced information } } } public class SimulatorClient : ISimulatorClient { readonly Socket _socket; readonly NetworkStream _stream; readonly BinaryWriter _writer; readonly BinaryReader _reader; readonly ConcurrentQueue<IBinaryMessage> _messagesFromClient = new ConcurrentQueue<IBinaryMessage>(); readonly ConcurrentQueue<IBinaryMessage> _messagesToClient = new ConcurrentQueue<IBinaryMessage>(); readonly Thread _readWorker; readonly Thread _writeWorker; //readonly IDisposable _alsoReceieveMessagesFromPipe; public ConcurrentQueue<IBinaryMessage> IncommingMessages { get { return _messagesToClient; } } public void Send(IBinaryMessage message) { _messagesFromClient.Enqueue(message); } public SimulatorClient(Socket socket) { _socket = socket; _stream = new NetworkStream(_socket); _writer = new BinaryWriter(_stream); _reader = new BinaryReader(_stream); _readWorker = new Thread(ReadLoop); _writeWorker = new Thread(WriteLoop); if defined(DotNet) { _readWorker.IsBackground = true; _readWorker.Name = "Read from " + _socket.RemoteEndPoint; _writeWorker.IsBackground = true; _writeWorker.Name = "Write to " + _socket.RemoteEndPoint; } _readWorker.Start(); _writeWorker.Start(); } // no volative in UNO, boo :( bool _running = true; void ReadLoop() { try { while (_running) { while (_socket.Poll(0, SelectMode.Read)) _messagesToClient.Enqueue(BinaryMessage.ReadFrom(_reader)); Thread.Sleep(10); } } catch(Exception e) { _messagesToClient.Enqueue(new Error(ExceptionInfo.Capture(e))); } } void WriteLoop() { try { while (_running) { IBinaryMessage message; while (_messagesFromClient.TryDequeue(out message)) message.WriteTo(_writer); Thread.Sleep(10); } } catch (Exception e) { _messagesToClient.Enqueue(new Error(ExceptionInfo.Capture(e))); _running = false; } } public void Dispose() { _running = false; //_alsoReceieveMessagesFromPipe.Dispose(); _readWorker.Join(); _writeWorker.Join(); _stream.Dispose(); try { _socket.Shutdown(SocketShutdown.Both); _socket.Close(); } catch (Exception e) { debug_log(e.Message); } } public bool IsOnline { get { return true; } } } }
Uno
4
mortend/fuse-studio
Source/Preview/Core/SimulatorClient.uno
[ "MIT" ]
HAI 1.2 VISIBLE BOTH SAEM -9223372036854775808 AN SUM OF 9223372036854775807 AN 1 KTHXBYE
LOLCODE
0
jD91mZM2/rust-lci
tests/int-overflow.lol
[ "MIT" ]
# Copyright (c) 2018-2021, Carnegie Mellon University # See LICENSE for details #the multiple number of buffers is equal as size multiple_buffers := function(elements) local number, s; number := Length(elements); s := elements[1]; return [ var("S", TArray(TArray(TReal, s.t.size), 2)) ]; end; construct_loop := function(i, low, high, ld, st, val, br, s1, s2, s) local new_chain, new_loop, new_high; new_chain := chain( SubstVars(Copy(st), rec((s2.id) := nth(s, imod(i,2)))), SubstVars(Copy(ld), rec((i.id) := add(i,val), (s1.id) := nth(s, imod(i,2)))), br); new_high := high - val; new_loop := swp_loop(i, [low..new_high.v], new_chain); return new_loop; end; swp_peel := function(fun, opts) #peeling instruction from loops local l, loops, ld, st, br, i, low, high, prologue, epilogue, new_chain, new_fun, s1, s2, svars, s; svars := []; loops := Collect(fun, swp_loop); new_fun := Copy(fun); for l in loops do i := l.var; low := Minimum(l.range); high := Maximum(l.range); ld := Collect(l, [loop, @1, @2, dma_load]); if Length(ld) = 0 then ld := Collect(l, dma_load)[1]; else ld := ld[1]; fi; st := Collect(l, [loop, @1, @2, dma_store]); if Length(st) = 0 then st := Collect(l, dma_store)[1]; else st := st[1]; fi; br := Collect(l, barrier_cmd)[1]; s1 := Filtered(ld.free(), i->IsBound(i.t.qualifiers) and i.t.qualifiers=[opts.scratchModifier])[1]; s2 := Filtered(st.free(), i->IsBound(i.t.qualifiers) and i.t.qualifiers=[opts.scratchModifier])[1]; Add(svars, s1); Add(svars, s2); s := multiple_buffers(svars)[1]; prologue := chain( SubstVars(Copy(ld), rec((i.id) := low, (s1.id) := nth(s, low))), br, SubstVars(Copy(ld), rec((i.id) := low + 1, (s1.id) := nth(s, low + 1))), br); epilogue := chain( SubstVars(Copy(st), rec((i.id) := high - 1, (s2.id) := nth(s, bin_and(high - 1, 1)))), br, SubstVars(Copy(st), rec((i.id) := high, (s2.id) := nth(s, bin_and(high, 1))))); new_chain := When((low = 0 and high = 1), chain(prologue, epilogue), chain(prologue, construct_loop(i, low, high, ld, st, V(2), br, s1, s2, s), epilogue)); new_chain := RulesStrengthReduce(new_chain); new_fun := SubstBottomUp(new_fun, @(1, swp_loop, e->e.var = i), e->new_chain); od; return new_fun; end; swp_merge_variables := function(fun, opts) local l, loops, i, new_loop, new_fun, s1, s2, svars, s; svars := []; loops := Collect(fun, swp_loop); new_fun := Copy(fun); for l in loops do i := l.var; s1 := Filtered(l.free(), i->IsBound(i.t.qualifiers) and i.t.qualifiers=[opts.scratchModifier])[1]; s2 := Filtered(l.free(), i->IsBound(i.t.qualifiers) and i.t.qualifiers=[opts.scratchModifier])[2]; Add(svars, s1); Add(svars, s2); s := multiple_buffers(svars)[1]; new_loop := SubstVars(Copy(l), rec((s1.id) := nth(s, imod(i, 2)), (s2.id) := nth(s, imod(i, 2)))); new_loop := RulesStrengthReduce(new_loop); new_fun := SubstBottomUp(new_fun, @(1, swp_loop, e->e.var = i), e->new_loop); od; return new_fun; end; Class(SWPDMACodegen, DefaultCodegen, rec( Formula := meth(self, o, y, x, opts) local icode, datas, prog, params, sub, initsub, io, t, initcode; [x, y] := self.initXY(x, y, opts); Add(x.t.qualifiers, opts.memModifier); Add(y.t.qualifiers, opts.memModifier); o := o.child(1); params := Set(Concatenation(Collect(o, param), Filtered(Collect(o, var), IsParallelLoopIndex))); datas := Collect(o, FDataOfs); [o,t] := UTimedAction(BlockSumsOpts(o, opts)); #PrintLine("BlockSums ", t); [icode,t] := UTimedAction(self(o, y, x, opts)); #PrintLine("codegen ", t); [icode,t] := UTimedAction(ESReduce(icode, opts)); #PrintLine("ESReduce ", t); icode := RemoveAssignAcc(icode); Unbind(Compile.times); [icode,t] := UTimedAction(BlockUnroll(icode, opts)); #PrintLine("BlockUnroll ", t); #PrintLine("---compile--"); icode := DeclareHidden(icode); if IsBound(opts.isFixedPoint) and opts.isFixedPoint then icode := FixedPointCode(icode, opts.bits, opts.fracbits); fi; io := When(x=y, [x], [y, x]); sub := Cond(IsBound(opts.subNameDMA), opts.subNameDMA, "sub_dma"); icode := func(TVoid, sub, Concatenation(io, params), icode); return icode; end, LSKernel := meth(self, o, y, x, opts) return barrier_cmd(self.swp_var); end, DMAGath := meth(self, o, y, x, opts) local i, func, rfunc, ix, size; Add(self.loadbuffers, y); Add(self.membuffers, x); i := Ind(); func := o.func; size := 1; if ObjId(func) = fTensor and ObjId(Last(func.children())) = fId then size := Last(func.children()).domain(); func := fTensor(Concat(DropLast(func.children(), 1), [fBase(size, 0)])); fi; func := func.lambda(); return loop(i, func.domain(), dma_load(y+(i*size), x+func.at(i), size)); end, DMAScat := meth(self, o, y, x, opts) local i, func, rfunc, ix, size; Add(self.storebuffers, x); Add(self.membuffers, y); i := Ind(); func := o.func; size := 1; if ObjId(func) = fTensor and ObjId(Last(func.children())) = fId then size := Last(func.children()).domain(); func := fTensor(Concat(DropLast(func.children(), 1), [fBase(size, 0)])); fi; func := func.lambda(); return loop(i, func.domain(), dma_store(y+func.at(i), x+(i*size), size)); end, DMAFence := (self,o,y,x,opts) >> chain(self(o.child(1), y, x, opts), dma_fence()), swp_var := false, SWPSum := meth(self, o, y, x, opts) return swp_loop(o.var, o.domain, self(o.child(1), y, x, opts)); end )); Class(SWPCPUCodegen, DefaultCodegen, rec( Formula := meth(self, o, y, x, opts) local icode, datas, prog, params, sub, initsub, io, t, initcode; [x, y] := self.initXY(x, y, opts); o := o.child(1); params := Set(Concatenation(Collect(o, param), Filtered(Collect(o, var), IsParallelLoopIndex))); datas := Collect(o, FDataOfs); [o,t] := UTimedAction(BlockSumsOpts(o, opts)); #PrintLine("BlockSums ", t); [icode,t] := UTimedAction(self(o, y, x, opts)); #PrintLine("codegen ", t); [icode,t] := UTimedAction(ESReduce(icode, opts)); #PrintLine("ESReduce ", t); icode := RemoveAssignAcc(icode); Unbind(Compile.times); [icode,t] := UTimedAction(BlockUnroll(icode, opts)); #PrintLine("BlockUnroll ", t); #PrintLine("---compile--"); icode := DeclareHidden(icode); if IsBound(opts.isFixedPoint) and opts.isFixedPoint then icode := FixedPointCode(icode, opts.bits, opts.fracbits); fi; io := When(x=y, [x], [y, x]); Add(params, Filtered(icode.free(), i->not IsBound(i.init))); sub := Cond(IsBound(opts.subNameCompute), opts.subNameCompute, "sub_cpu"); icode := func(TVoid, sub, params, icode); return icode; end, DMAGath := meth(self, o, y, x, opts) local dma; if not IsBound(x.t.qualifiers) then x.t.qualifiers := []; fi; if not IsBound(y.t.qualifiers) then y.t.qualifiers := []; fi; Add(x.t.qualifiers, opts.memModifier); y.t.qualifiers := [ opts.scratchModifier ]; Add(self.loadbuffers, y); return nop_cmd(self.swp_var); end, DMAScat := meth(self, o, y, x, opts) local dma; if not IsBound(x.t.qualifiers) then x.t.qualifiers := []; fi; if not IsBound(y.t.qualifiers) then y.t.qualifiers := []; fi; x.t.qualifiers := [ opts.scratchModifier ]; Add(y.t.qualifiers, opts.memModifier); Add(self.storebuffers, x); return barrier_cmd(self.swp_var); end, LSKernel := (self, o, y, x, opts) >> self(o.child(1), y, x, opts), DMAFence := (self,o,y,x,opts) >> chain(barrier_cmd(self.swp_var), self(o.child(1), y, x, opts)), swp_var := false, SWPSum := meth(self, o, y, x, opts) return swp_loop(o.var, o.domain, self(o.child(1), y, x, opts)); end )); Class(SWPBarrierScratchCodegen, DefaultCodegen, rec( CPUCodegen := SWPCPUCodegen, DMACodegen := SWPDMACodegen, MainCodegen := ScratchMainCodegen, Formula := meth(self, o, y, x, opts) local compute_time, tag, main, initfunc, cpufunc, dmafunc, prog, params, sub, initsub, memvars, scratchvars, v, io, loadvar, storevar, v, substrec, svars, initcode, datas, dvars, dv, counter; datas := Collect(o, FDataOfs); params := Set(Concatenation(Collect(o, param), Filtered(Collect(o, var), IsParallelLoopIndex))); sub := Cond(IsBound(opts.subName), opts.subName, "transform"); initsub := Cond(IsBound(opts.subName), Concat("init_", opts.subName), "init"); if IsBound(opts.generateInitFunc) and opts.generateInitFunc then initcode := chain(List(datas, x -> SReduce(x.var.init, opts))); initfunc := func(TVoid, initsub, params :: Set(Collect(initcode, param)), initcode); else initfunc := func(TVoid, initsub, params, chain()); fi; dvars := List(datas, x->x.var); for dv in dvars do dv.t.qualifiers := [opts.romModifier]; od; self.DMACodegen.loadbuffers := Set([]); self.DMACodegen.storebuffers := Set([]); self.DMACodegen.membuffers := Set([]); dmafunc := self.DMACodegen.Formula(o, y, x, opts); self.DMACodegen.membuffers := Set(self.DMACodegen.membuffers); SubtractSet(self.DMACodegen.membuffers, Set([x, y])); for v in self.DMACodegen.membuffers do v.t.qualifiers := [opts.memModifier]; od; self.CPUCodegen.loadbuffers := Set([]); self.CPUCodegen.storebuffers := Set([]); cpufunc := self.CPUCodegen.Formula(o, y, x, opts); memvars := Set(Concat( Filtered(Flat(List(Collect(cpufunc, decl), i->i.vars)), j->IsBound(j.t.qualifiers) and opts.memModifier in j.t.qualifiers), self.DMACodegen.membuffers)); scratchvars := Set(Filtered(Flat(List(Collect(cpufunc, decl), i->i.vars)), j->IsBound(j.t.qualifiers) and opts.scratchModifier in j.t.qualifiers)); tag := opts.tags[1]; loadvar := var.fresh_t("S", TArray(opts.XType.t, Cond(tag.isRegCx, 2 * tag.size, tag.size))); loadvar.t.qualifiers := [opts.scratchModifier]; storevar := var.fresh_t("S", TArray(opts.XType.t, Cond(tag.isRegCx, 2 * tag.size, tag.size))); storevar.t.qualifiers := [opts.scratchModifier]; substrec := rec(); for v in self.CPUCodegen.loadbuffers do substrec.(v.id) := loadvar; od; for v in self.CPUCodegen.storebuffers do substrec.(v.id) := storevar; od; for v in self.DMACodegen.loadbuffers do substrec.(v.id) := loadvar; od; for v in self.DMACodegen.storebuffers do substrec.(v.id) := storevar; od; cpufunc := SubstVars(cpufunc, substrec); dmafunc := SubstVars(dmafunc, substrec); cpufunc := SubstTopDown(cpufunc, @(1, decl), e->decl(Filtered(@(1).val.vars, i->not i in Concat(memvars, scratchvars, [loadvar, storevar])), @(1).val.cmd)); dmafunc := SubstTopDown(dmafunc, @(1, decl), e->decl(Filtered(@(1).val.vars, i->not i in Concat(memvars, scratchvars, [loadvar, storevar])), @(1).val.cmd)); [cpufunc, dmafunc, svars] := When(opts.swp,[swp_merge_variables(cpufunc, opts), swp_peel(dmafunc, opts), multiple_buffers([loadvar, storevar])],[cpufunc,dmafunc,[loadvar,storevar]]); x.t.qualifiers := Set(x.t.qualifiers); y.t.qualifiers := Set(y.t.qualifiers); compute_time := true; counter := var("count",TInt); cpufunc := func(cpufunc.ret, cpufunc.id, When(compute_time, Concat(cpufunc.params, [counter]), cpufunc.params), chain(register(), cpufunc.cmd)); dmafunc := func(dmafunc.ret, dmafunc.id, When(compute_time, Concat(dmafunc.params, [counter]), dmafunc.params), chain(register(), dmafunc.cmd)); initfunc := func(initfunc.ret, initfunc.id, initfunc.params, chain(initialization(), initfunc.cmd)); #PrintLine(svars); #main := self.MainCodegen.genMain(opts, sub, dmafunc, cpufunc, [y,x], params); prog := program( decl(Concat(Set(memvars), svars, dvars), chain( initfunc, cpufunc, dmafunc ))); prog.dimensions := o.dims(); return prog; end ));
GAP
4
sr7cb/spiral-software
namespaces/spiral/platforms/scratch_x86/codegen.gi
[ "BSD-2-Clause-FreeBSD" ]
%!PS-Adobe-2.0 %%Creator: dvipsk 5.55a Copyright 1986, 1994 Radical Eye Software %%Title: gaotv5.dvi %%Pages: 14 %%PageOrder: Ascend %%BoundingBox: 0 0 612 792 %%EndComments %DVIPSCommandLine: dvips gaotv5 %DVIPSParameters: dpi=300, compressed, comments removed %DVIPSSource: TeX output 1998.04.17:0851 %%BeginProcSet: texc.pro /TeXDict 250 dict def TeXDict begin /N{def}def /B{bind def}N /S{exch}N /X{S N}B /TR{translate}N /isls false N /vsize 11 72 mul N /hsize 8.5 72 mul N /landplus90{false}def /@rigin{isls{[0 landplus90{1 -1}{-1 1} ifelse 0 0 0]concat}if 72 Resolution div 72 VResolution div neg scale isls{landplus90{VResolution 72 div vsize mul 0 exch}{Resolution -72 div hsize mul 0}ifelse TR}if Resolution VResolution vsize -72 div 1 add mul TR[matrix currentmatrix{dup dup round sub abs 0.00001 lt{round}if} forall round exch round exch]setmatrix}N /@landscape{/isls true N}B /@manualfeed{statusdict /manualfeed true put}B /@copies{/#copies X}B /FMat[1 0 0 -1 0 0]N /FBB[0 0 0 0]N /nn 0 N /IE 0 N /ctr 0 N /df-tail{ /nn 8 dict N nn begin /FontType 3 N /FontMatrix fntrx N /FontBBox FBB N string /base X array /BitMaps X /BuildChar{CharBuilder}N /Encoding IE N end dup{/foo setfont}2 array copy cvx N load 0 nn put /ctr 0 N[}B /df{ /sf 1 N /fntrx FMat N df-tail}B /dfs{div /sf X /fntrx[sf 0 0 sf neg 0 0] N df-tail}B /E{pop nn dup definefont setfont}B /ch-width{ch-data dup length 5 sub get}B /ch-height{ch-data dup length 4 sub get}B /ch-xoff{ 128 ch-data dup length 3 sub get sub}B /ch-yoff{ch-data dup length 2 sub get 127 sub}B /ch-dx{ch-data dup length 1 sub get}B /ch-image{ch-data dup type /stringtype ne{ctr get /ctr ctr 1 add N}if}B /id 0 N /rw 0 N /rc 0 N /gp 0 N /cp 0 N /G 0 N /sf 0 N /CharBuilder{save 3 1 roll S dup /base get 2 index get S /BitMaps get S get /ch-data X pop /ctr 0 N ch-dx 0 ch-xoff ch-yoff ch-height sub ch-xoff ch-width add ch-yoff setcachedevice ch-width ch-height true[1 0 0 -1 -.1 ch-xoff sub ch-yoff .1 sub]/id ch-image N /rw ch-width 7 add 8 idiv string N /rc 0 N /gp 0 N /cp 0 N{rc 0 ne{rc 1 sub /rc X rw}{G}ifelse}imagemask restore}B /G{{id gp get /gp gp 1 add N dup 18 mod S 18 idiv pl S get exec}loop}B /adv{cp add /cp X}B /chg{rw cp id gp 4 index getinterval putinterval dup gp add /gp X adv}B /nd{/cp 0 N rw exit}B /lsh{rw cp 2 copy get dup 0 eq{pop 1}{ dup 255 eq{pop 254}{dup dup add 255 and S 1 and or}ifelse}ifelse put 1 adv}B /rsh{rw cp 2 copy get dup 0 eq{pop 128}{dup 255 eq{pop 127}{dup 2 idiv S 128 and or}ifelse}ifelse put 1 adv}B /clr{rw cp 2 index string putinterval adv}B /set{rw cp fillstr 0 4 index getinterval putinterval adv}B /fillstr 18 string 0 1 17{2 copy 255 put pop}for N /pl[{adv 1 chg} {adv 1 chg nd}{1 add chg}{1 add chg nd}{adv lsh}{adv lsh nd}{adv rsh}{ adv rsh nd}{1 add adv}{/rc X nd}{1 add set}{1 add clr}{adv 2 chg}{adv 2 chg nd}{pop nd}]dup{bind pop}forall N /D{/cc X dup type /stringtype ne{] }if nn /base get cc ctr put nn /BitMaps get S ctr S sf 1 ne{dup dup length 1 sub dup 2 index S get sf div put}if put /ctr ctr 1 add N}B /I{ cc 1 add D}B /bop{userdict /bop-hook known{bop-hook}if /SI save N @rigin 0 0 moveto /V matrix currentmatrix dup 1 get dup mul exch 0 get dup mul add .99 lt{/QV}{/RV}ifelse load def pop pop}N /eop{SI restore showpage userdict /eop-hook known{eop-hook}if}N /@start{userdict /start-hook known{start-hook}if pop /VResolution X /Resolution X 1000 div /DVImag X /IE 256 array N 0 1 255{IE S 1 string dup 0 3 index put cvn put}for 65781.76 div /vsize X 65781.76 div /hsize X}N /p{show}N /RMat[1 0 0 -1 0 0]N /BDot 260 string N /rulex 0 N /ruley 0 N /v{/ruley X /rulex X V}B /V {}B /RV statusdict begin /product where{pop product dup length 7 ge{0 7 getinterval dup(Display)eq exch 0 4 getinterval(NeXT)eq or}{pop false} ifelse}{false}ifelse end{{gsave TR -.1 .1 TR 1 1 scale rulex ruley false RMat{BDot}imagemask grestore}}{{gsave TR -.1 .1 TR rulex ruley scale 1 1 false RMat{BDot}imagemask grestore}}ifelse B /QV{gsave newpath transform round exch round exch itransform moveto rulex 0 rlineto 0 ruley neg rlineto rulex neg 0 rlineto fill grestore}B /a{moveto}B /delta 0 N /tail {dup /delta X 0 rmoveto}B /M{S p delta add tail}B /b{S p tail}B /c{-4 M} B /d{-3 M}B /e{-2 M}B /f{-1 M}B /g{0 M}B /h{1 M}B /i{2 M}B /j{3 M}B /k{ 4 M}B /w{0 rmoveto}B /l{p -4 w}B /m{p -3 w}B /n{p -2 w}B /o{p -1 w}B /q{ p 1 w}B /r{p 2 w}B /s{p 3 w}B /t{p 4 w}B /x{0 S rmoveto}B /y{3 2 roll p a}B /bos{/SS save N}B /eos{SS restore}B end %%EndProcSet TeXDict begin 40258431 52099146 1000 300 300 (gaotv5.dvi) @start /Fa 35 123 df<126012F0A212701210A21220A21240A2040A7D830B>44 D<126012F0A2126004047D830B>46 D<13101338A3135CA3138EA3EA0107A200031380EA 0203A23807FFC0EA0401A2380800E0A21218003813F038FE03FE17177F961B>65 D<EAFFFE381C0380EB00E014601470A414E0EB01C0381FFF8014C0381C00E01470143014 38A4147014E0EB01C0B5120015177F961A>I<EBFC1038038330380E00B0481370481330 123000701310126012E01400A51410126012700030132012386C13406C138038038300EA 00FC14177E961A>I<B5FC381C01C0EB00E0143014381418141C140C140EA7140C141CA2 143814301460EB01C0B5120017177F961C>I<EBFC1038038330380E00B0481370481330 123000701310126012E01400A4EB07FCEB007012601270123012387E7E380381B03800FE 1016177E961C>71 D<38FF83FE381C0070AA381FFFF0381C0070AA38FF83FE17177F961B >I<EA07FCEA0070B0126012F0A2EAE0E0EA61C0EA1F000E177F9613>74 D<38FF80FE381C0078146014401480EB0100130613085B13381378139CEA1D0E121EEA1C 07EB0380EB01C0A2EB00E014701478147C38FF81FF18177F961C>I<EAFFC0001CC7FCAD 1420A31460A2144014C01303B5FC13177F9617>I<00FEEB03F8001E14C000171305A338 138009A23811C011A33810E021A2EB7041A3EB3881A2EB1D01A2130EA2123839FE040FF8 1D177F9621>I<EAFFFC381C0380EB00C014E01470A414E014C0EB0380381FFE00381C07 80EB01C0EB00E0A514E1A2147238FF803C18177F961B>82 D<EA0F88EA3058EA6038EA40 18EAC008A3EAE0001270127FEA3FE0EA1FF0EA03F8EA0038131C130C1280A3EAC008EAE0 18EAD830EA87C00E177E9614>I<B5FCEAF00FEAC00E131C128013381378EA007013E0A2 EA01C012031380EA07001301120E121EEA1C03EA3802A2EA7006EAF01EEAFFFE10177E96 16>90 D<7F487EA3EA0260A3487EA2487EA2EA0FF8EA100CA3EA300E38F81F8011117F90 14>97 D<EAFFF0EA301C130C1306A3130C1338EA3FF8EA300E13071303A31306130CEAFF F810117F9013>I<3803F080EA0E0DEA1803EA3001EA6000A2481300A500601380A23830 01001218EA0E06EA03F811117F9014>I<EAFFF0EA300C13027F1480130014C0A5148013 0114005B130CEAFFF012117F9015>I<EAFFF8EA30181308130C13041344134013C0123F 12301342A213021304A2131CEAFFFC0F117E9013>I<EA03F1EA0C0BEA1807487E487E12 4000C0C7FCA3EB1FC0EB030012401260123012186C5AEA03F912117F9015>103 D<38FC1F8038300600A7EA3FFEEA3006A738FC1F8011117F9014>I<12FF1218AF12FF08 117F900A>I<38FC0F80383006005B5B13205B5B1231EA32C0EA3460EA3820EA30307F7F 7FA238FC0F8011117F9015>107 D<12FE1230A91304A3130C13081338EAFFF80E117F90 11>I<38F00F80383807001302122C12261223A2EA2182EA20C21362A21332131A130EA2 EA7006EAF80211117F9014>110 D<EA03F0EA0C0C487E487E38600180EA400000C013C0 A538600180A238300300EA18066C5AEA03F012117F9015>I<EAFFE0EA30187F7FA35B5B EA3FE0EA3038130CA41440130438FC038012117F9014>114 D<EA1F20EA20E0EA4060EA C020A213001270123FEA1FC0EA01E0EA007013301280A2EAC020EAE040EA9F800C117F90 0F>I<B51280EAC0C1EA80C0A400001300AAEA07F811117F9014>I<38FC0F803830070013 02ABEA10041218EA0C18EA03E011117F9014>I<38FC0F803830070013026C5AA36C5AA2 6C5AA36C5AA2EA01C0A36C5A11117F9014>I<39FC3F0F8039700E070038301602A20018 5B1323A2000C5BEB4188A21498380680D0A214F038030060A319117F901C>I<38FC0FC0 38300700EA1806EA1C04EA0C081206EA0710EA0330EA01A0EA00C0A7EA03F012117F9014 >121 D<EA7FFCEA7018EA6038EA4030136013C012011380EA03001206EA0E04120C1218 1230EA700CEA601CEAFFFC0E117F9011>I E /Fb 49 122 df<1218123CA31204A21208 A21210122012401280060C779C0D>39 D<12181238127812381208A21210A212201240A2 1280050C7D830D>44 D<EAFFC0A30A037D890F>I<1230127812F0126005047C830D>I<13 3C13C6EA0183EA030312061480120E120C121C1400485AA4EA700EA4485AA35BA2133048 5A12E0EA60C0EA7180001EC7FC111D7B9B15>48 D<13021306130C131C137CEA039CEA00 38A41370A413E0A4EA01C0A4EA0380A41207EAFFF00F1C7C9B15>I<133C13C338010180 120214C0EA0441A21208A338108380A238110700EA0E06C65A5B5B13C048C7FC12061208 485A13021220EA4006EA7E0CEAC7F81283EA80E0121D7C9B15>I<133EEBC180EA010138 0200C05A1340EA0841A3EB8380EA070338000700130EEA01F8EA0038130CA2130EA41270 485A12805B1330EA4060EA21C0001FC7FC121D7C9B15>I<EB018014C0EB0380A314005B A21306130E130C131C1318A25BA25B134013C6EA018E130E1202EA061C120C1218123FEA 40F8EA803FEA0038A25BA45B136012247E9B15>I<EBC060EBFFC0481380EBFE0090C7FC A21202A4EA0478EA058CEA060612041208EA0007A21306130EA21270130CEAE01CEA8018 1338EA40305BEA21C0001FC7FC131D7C9B15>I<130FEB308013C0EA0183120390C7FC12 06120E120C121C13F0EA3B18EA3C0C12381278EA700EA3EA601C12E0A35BA25BEA60605B EA2180001EC7FC111D7B9B15>I<131E1361EB8180EA0180380300C0A238060180A33807 03001386EA03CC13F01201EA0378EA063CEA081EEA180E1230EA6006A3485AA25BEA6010 5BEA30C0000FC7FC121D7C9B15>56 D<1203EA0780A2EA0300C7FCAA1218123812781238 1208A25AA25A5AA25A091A7D910D>59 D<48B512C038003C01EB38001580A35BA2142015 00495AA214C013FF3801C080A4D80381C7FC1380A348C8FCA45AEAFFF01A1C7D9B1B>70 D<903803F02090381E0C6090383002E09038E003C03801C001EA038048C7FC000E148012 1E121C123C15005AA35AA2903801FFC09038001E00141CA400705BA27E001813786C1390 38070710D801F8C7FC1B1E7A9C20>I<3801FFC038003C001338A45BA45BA4485AA4485A A448C7FCA45AEAFFE0121C7E9B10>73 D<3801FFE038003C001338A45BA45BA4485AA438 038008A31410EA07001430146014E0380E03C0B5FC151C7D9B1A>76 D<D801FEEB07F8D8003E1480012EEB0F001517A21527014E132E154EA2158E90388E011C A21402A23901070438A21408141000025C1420A2144000045C14801400120C381C060139 FF861FFC251C7D9B25>I<3901FC03FE39001C0070013C1360012E1340A301471380A3EB 43809038838100A2138114C1380101C2A2EB00E2A2000213E41474A3481338A3000C1318 001C1310EAFF801F1C7D9B1F>I<EB07F0EB1C1CEB700E497E3901C00380EA0380EA0700 000E14C0121E121C123CA25AA348EB0780A3EC0F00A2140E141E5C007013385C00785B38 3801C06C485AD80E0EC7FCEA03F81A1E7A9C20>I<3801FFFC38003C079038380380EC01 C0A3EB7003A31580EBE0071500140E14383801FFE001C0C7FCA3485AA448C8FCA45AEAFF E01A1C7D9B1C>I<EB0F84EB304CEB403CEB8018EA01005AA200061310A214001207A2EA 03E013FC6CB4FC38007F80EB07C01301A21300A21220A238600180A2EB03001302EAF004 EACC18EA83E0161E7D9C17>83 D<001FB512C0381C070138300E0000201480126012405B 1280A2000014005BA45BA45BA4485AA41203EA7FFE1A1C799B1E>I<397FF0FF80390F00 1C00000E13181410A3485BA4485BA4485BA44848C7FCA31302A25BA2EA6008EA3030EA10 40EA0F80191D779B1F>I<3901FF81FE39001E00F0011C1360011E1380EB0E011500EB0F 026D5A5C1490EB03A014C01301A28013021304497EEB10701320EB60381340EB803C3801 001C12020006131E121E39FF80FFC01F1C7E9B1F>88 D<EB3F80EB7F001360A35BA4485A A448C7FCA41206A45AA45AA45AA45AA45AA212FEA211297E9E0D>91 D<EB3F80EB7F001303A31306A45BA45BA45BA45BA45BA4485AA448C7FCA41206A212FEA2 1129819E0D>93 D<EA03CCEA063C120CEA181CEA383812301270A2EAE070A413E212C0A2 EA61E4EA6264EA3C380F127B9115>97 D<123F1207A2120EA45AA4EA39C0EA3E60EA3830 A2EA7038A4EAE070A3136013E0EAC0C012C1EA6180EA6300123C0D1D7B9C13>I<EA01F0 EA0708120CEA181CEA3838EA30001270A25AA513081310EA6020EA30C0EA1F000E127B91 13>I<EB1F801303A2EB0700A4130EA4EA03DCEA063C120CEA181CEA383812301270A248 5AA413E212C0A2EA61E4EA6264EA3C38111D7B9C15>I<EA01E0EA0710120CEA1808EA38 1012701360EA7F80EAE000A51308EA60101320EA30C0EA1F000D127B9113>I<EB03C0EB 0670130CEB1C601400A25BA53803FF8038007000A55BA5485AA5485AA390C7FCA25A12C6 12E65A12781425819C0D>I<13F3EA018FEA030FEA0607EA0E0E120C121CA2EA381CA413 381230A2EA187813F0EA0F701200A213E0A2EAC0C012E1EAC300127E101A7D9113>I<EA 0FC01201A2485AA448C7FCA4EA0E78138CEA0F0E120E121CA4485AA35B00701380A21370 EB7100EAE032EA601C111D7D9C15>I<EA01801203EA0100C7FCA7121C12261247A2128E A2120E5AA35AA21271A31272A2123C091C7C9B0D>I<EA1F801203A2EA0700A4120EA45A A45AA45AA412E4A412681238091D7C9C0B>108 D<393C1E078039266318C0394683A0E0 384703C0008E1380A2120EA2391C0701C0A3EC0380D8380E1388A2EC0708151039701C03 2039300C01C01D127C9122>I<EA3C3CEA2646EA4687EA4707128EA2120EA2EA1C0EA35B 00381340A21338148038701900EA300E12127C9117>I<EA01E0EA0718EA0C0C12181238 EA300E1270A2EAE01CA31318133813301360EA60C0EA3180EA1E000F127B9115>I<EA07 873804D9803808E0C0A23811C0E0A21201A2380381C0A31480EA070314005B1306EA0E8C 137090C7FCA25AA4123CB47E131A7F9115>I<EA3C3CEA26C2EA4687EA4707EA8E061300 120EA25AA45AA45A123010127C9112>114 D<EA01F0EA0608120C131CEA1818EA1C0012 1F13C0EA0FF01207EA00781338EA603012E012C0EA8060EA60C0EA1F000E127D9111>I< 13C01201A3EA0380A4EAFFE0EA0700A3120EA45AA4EA3840A31380EA1900120E0B1A7D99 0E>I<EA1E03EA27071247A2EA870EA2120EA2485AA438383880A21218EB3900EA1C59EA 078E11127C9116>I<EA1E06EA270E12471306EA8702A2120EA2EA1C04A3130812181238 EA18101320EA0C40EA07800F127C9113>I<381E0183382703871247148338870701A212 0EA2381C0E02A31404EA180C131C1408001C1310380C26303807C3C018127C911C>I<EA 070EEA19913810E38012203841C30013C01201A2485AA4EA07021267EAE70412CBEA8B08 EA70F011127D9113>I<EA1E03EA27071247A2EA870EA2120EA2EA1C1CA4EA3838A21218 A2EA1C70EA07F0EA0070A213E0EAE0C012E1EA8180EA4700123C101A7C9114>I E /Fc 47 121 df<12301278127C123C121CA41238127812F012E01240060D789816>39 D<13E01201EA0380EA0700120E5AA25AA25AA35AA91270A37EA27EA27E7EEA0380EA01E0 12000B217A9C16>I<12C07E12707E7E7EA27EA2EA0380A3EA01C0A9EA0380A3EA0700A2 120EA25A5A5A5A5A0A217B9C16>I<EA01C0A4EA71C738F9CF80387FFF00EA1FFCEA07F0 A2EA1FFCEA7FFF38F9CF803871C700EA01C0A411127E9516>I<EA01C0A8B51280A33801 C000A811137E9516>I<1238127C127EA2123E120E121E121C127812F01260070B798416> I<B51280A311037E8D16>I<127012F8A312700505788416>I<EA03E0EA0FF8487EEA1E3C EA380EEA780FEA7007A238E00380A8EAF00700701300A2EA780FEA3C1E6C5AEA1FFC6C5A EA03E011197E9816>48 D<EA01801203A21207120F127F12FF12731203AEEA7FF813FC13 F80E197C9816>I<EA07E0EA1FF8487EEA783EEAE00700F01380130312601200A2EB0700 A2130E5B5B5B5B485A485A000FC7FC381E03801238EA7FFFB5FC7E11197E9816>I<137C 13FC13DC1201EA039CA2EA071C120F120E121E123C1238127812F0B512E0A338001C00A5 3801FFC0A313197F9816>52 D<EA3FFEA30038C7FCA7EA3BF0EA3FFC7FEA3C0FEA300738 000380A2126012F0A238E00700EA781EEA3FFC6C5AEA07E011197E9816>I<12E0B51280 A338E00F00131EEA001C5B137813705BA2485AA3485AA448C7FCA7111A7E9916>55 D<1238127CA312381200A812381278127CA2123C121CA21238127012E012400618799116 >59 D<EA7FFFB51280A2C8FCA5B51280A26C1300110B7E9116>61 D<EA7FF8EAFFFE6C7EEA1C0FEB0780EB03C01301A214E01300A8EB01C0A21303EB078013 0F387FFF00485AEA7FF81319809816>68 D<387FFFC0B5FC7EEA1C01A490C7FCA2131CA2 EA1FFCA3EA1C1CA290C7FC14E0A5EA7FFFB5FC7E13197F9816>I<B512E0A3EA1C00A414 00A2131CA2EA1FFCA3EA1C1CA290C7FCA6B47E7F5B13197F9816>I<EAFFFEA3EA0380B3 EAFFFEA30F197D9816>73 D<387E1FC038FF3FE0387F1FC0381D07001387A313C7A2121C A213E7A31367A21377A21337A31317EA7F1FEAFF9FEA7F0F13197F9816>78 D<EA1FFC487E487EEA780F38F00780EAE003AEEAF007A238780F00EA7FFF6C5A6C5A1119 7E9816>I<EA7FF8EAFFFE6C7E381C0F80130314C01301A313031480130F381FFF005B13 F8001CC7FCA7127F487E6CC7FC12197F9816>I<387F1F80133F131F380E1E00131CEA07 3C1338EA03B813F012015B120012017F120313B81207131CA2EA0E0EA2487E387F1FC000 FF13E0007F13C013197F9816>88 D<EAFFF0A3EAE000B3A8EAFFF0A30C20789C16>91 D<EAFFF0A3EA0070B3A8EAFFF0A30C207F9C16>93 D<B51280A311037E7E16>95 D<EA1FE0487E487EEA783CEA300E1200A2EA03FE121FEA3E0E127012E0A3EA783E387FFF E0EA3FE7EA0F8313127E9116>97 D<127E12FE127E120EA4133E13FF000F1380EB83C0EB 00E0120E1470A614E0EA0F01EB83C0EBFF80000E1300EA063C1419809816>I<EA03F8EA 0FFCEA1FFEEA3C1EEA780CEA70005AA57EEA70071278EA3E0EEA1FFCEA0FF8EA03F01012 7D9116>I<133F5B7F1307A4EA03C7EA0FF748B4FCEA3C1F487EEA700712E0A6EA700FA2 EA3C1F381FFFE0380FE7F03807C7E014197F9816>I<EA03E0EA0FF8EA1FFCEA3C1EEA78 0EEA700712E0B5FCA3EAE000A2EA70071278EA3C0FEA1FFEEA0FFCEA03F010127D9116> I<131FEB7F8013FFEA01E7EBC30013C0A2EA7FFFB5FCA2EA01C0ACEA3FFE487E6C5A1119 7F9816>I<3803E3C03807F7E0EA0FFF381C1CC038380E00A56C5AEA0FF8485AEA1BE000 38C7FC1218EA1FFC13FF481380387803C038E000E0A4387001C0EA7C07383FFF80380FFE 00EA03F8131C7F9116>I<EA0180EA03C0A2EA0180C7FCA4EA7FC0A31201ACEA7FFFB5FC 7E101A7D9916>105 D<EAFFC0A31201B3B51280A311197E9816>108 D<38F9C38038FFEFC0EBFFE0EA3C78A2EA3870AA38FE7CF8A2EB3C781512809116>I<EA 7E3CEAFEFEEA7FFF380F87801303120EAA387FC7F038FFE7F8387FC7F01512809116>I< EA03E0EA0FF8487EEA3C1E487EEA700738E00380A5EAF00700701300EA780FEA3C1EEA1F FC6C5AEA03E011127E9116>I<EA7E3EEAFEFF007F1380380F83C0EB00E0120E1470A614 E0EA0F01EB83C0EBFF80000E1300133C90C7FCA6EA7FC0487E6C5A141B809116>I<38FF 0FC0EB3FE0137F3807F040EBC0005BA290C7FCA8EAFFFCA313127F9116>114 D<EA0FECEA3FFC127FEAF03CEAE01CA2EA7000EA7F80EA1FF0EA07F8EA003CEA600E12E0 12F0EAF81EEAFFFC13F8EAC7E00F127D9116>I<12035AA4EA7FFFB5FCA20007C7FCA75B EB0380A3EB8700EA03FE6C5A6C5A11177F9616>I<387E1F80EAFE3FEA7E1FEA0E03AB13 0F380FFFF03807FBF83803E3F01512809116>I<387F1FC000FF13E0007F13C0381C0700 EA1E0FEA0E0EA36C5AA4EA03B8A3EA01F0A26C5A13127F9116>I<38FF1FE013BF131F38 380380A413E33819F300A213B3EA1DB7A4EA0F1EA313127F9116>I<387F1FC0133F131F 380F1C00EA073CEA03B813F012016C5A12017FEA03B8EA073C131CEA0E0E387F1FC038FF 3FE0387F1FC013127F9116>I E /Fd 1 50 df<121812F81218AA12FF080D7D8C0E>49 D E /Fe 12 123 df<EA0FF8EA1C1E383E0F80130714C0121C1200137FEA07E7EA1F0712 3C127C12F8A3EA780B383E13F8EA0FE115127F9117>97 D<EB0FF0A21301A9EA01F9EA0F 07EA1C03EA3C011278A212F8A61278A2123CEA1C03380F0FFEEA03F9171D7E9C1B>100 D<EA01FCEA0F07381C0380383C01C0127814E012F8A2B5FC00F8C7FCA31278007C136012 3C6C13C0380F03803801FC0013127F9116>I<3803F8F0380E0F38121E381C0730003C13 80A4001C1300EA1E0FEA0E0EEA1BF80010C7FC1218A2EA1FFF14C06C13E04813F0387801 F838F00078A300701370007813F0381E03C03807FF00151B7F9118>103 D<121E123FA4121EC7FCA6B4FCA2121FAEEAFFE0A20B1E7F9D0E>105 D<B4FCA2121FB3A7EAFFE0A20B1D7F9C0E>108 D<38FF0FC0EB31E0381F40F0EB80F8A2 1300AB38FFE7FFA218127F911B>110 D<EA01FC380F0780381C01C0003C13E0387800F0 A200F813F8A6007813F0A2383C01E0381E03C0380F07803801FC0015127F9118>I<38FF 3F80EBE1E0381F80F0EB0078147C143C143EA6143C147C1478EB80F0EBC1E0EB3F0090C7 FCA6EAFFE0A2171A7F911B>I<1203A45AA25AA2EA3FFC12FFEA1F00A9130CA4EA0F08EA 0798EA03F00E1A7F9913>116 D<38FFC7FCA2381F8180EA0F833807C700EA03EEEA01FC 5B1200137C13FEEA01DFEA039F38070F80380607C0380C03E038FF07FCA216127F9119> 120 D<383FFF80383C1F00EA303F133E485A13FC5BEA01F01203485AEBC180EA0F81121F 1303003E1300EA7E07EA7C0FB5FC11127F9115>122 D E /Ff 6 121 df<EA1FFE380603801301EB00C0380C0180A2EB0600EA0FF80018C7FCA45A12FC12 0E7E8D12>80 D<EA1D8012331261EAC300A31320EA4740EA3B800B097E8810>97 D<1208A21200A41270129812B01230A21260126412681270060F7D8E0B>105 D<EA73C7389C6880389830C0383861801230A2EB63103860C320EBC1C014097D8819> 109 D<EA7380EA9C40EA9860EA30C0A3EA3188EA6190EA60E00D097D8812>I<EA1CF0EA 23181310EA0600A3EA4610EACE20EA73C00D097F8810>120 D E /Fg 12 104 df<B61280A219027D8A20>0 D<B612E07EC9FCA7B612E0A2C9FCA7007FB5 12E0B6FC1B147E9320>17 D<EC01801407EC1E001478EB01E0EB0780011EC7FC1378EA01 E0EA0780001EC8FC127812E01278121EEA0780EA01E0EA0078131EEB0780EB01E0EB0078 141EEC0780140191C7FCA7007FB5FCB6128019227D9920>20 D<12C012F0123C120FEA03 C0EA00F0133C130FEB03C0EB00F0143C140FEC0380EC0F00143C14F0EB03C0010FC7FC13 3C13F0EA03C0000FC8FC123C127012C0C9FCA7007FB5FCB6128019227D9920>I<120612 0FA3121EA3121CA2123C1238A312301270A21260A212E012C0A208157F960B>48 D<EB7FF8EA01FF38078000000EC7FC12185AA25AA25AA3B512F8A200C0C7FCA31260A27E A27E120E6C7E3801FFF8EA007F151A7D961C>50 D<1460A214C0A2EB0180A3EB0300A213 06A25BA25BA35BA25BA25BA2485AA248C7FCA31206A25AA25AA25AA35AA25A124013287A 9D00>54 D<0040130400C0130C00601318A36C1330A36C1360A2381FFFE06C13C0EA0C00 A238060180A238030300A3EA0186A3EA00CCA31378A31330A2161E809C17>56 D<14F0381E0378382104383841881C3880D01EEBF00EEB600F00C07F3960700380003014 C0001813010008EB00E0000414C0EC0300EB7FFCEB70E0128C1288A2007013701200A413 601260EAC0E0D820C01340EC71803911803A00380F001C1B1F7E9D1E>60 D<903807F81090381FFFF09038607FE09038C000C00001EB0180390380030038020006C7 5A5C14385C1460EB1FFC133FEB03180106C7FC5B5B5B13404913C0380300010006EB0380 481400485B383FFC0C387FFFF838803FE01C1C7E9B1E>90 D<133C13E0EA01C013801203 AD13005A121C12F0121C12077E1380AD120113C0EA00E0133C0E297D9E15>102 D<12F0121C12077E1380AD120113C0EA00E0133C13E0EA01C013801203AD13005A121C12 F00E297D9E15>I E /Fh 4 91 df<B512C0A212027D871A>0 D<1204120EA2121CA31238 A212301270A21260A212C0A2070F7F8F0A>48 D<EA03FC120FEA1C0012305AA35AA2EAFF FCA2EAC000A21260A37E121CEA0FFC12030E147D9016>50 D<EB7F083801FFF0380207E0 380600604813C0C71280EB01001302130C3801FF80380020005B5B48C7FC00021330000C 13601210383FC0C0387FFF803881FE0015147E9318>90 D E /Fi 8 62 df<12011202120412081210123012201260A2124012C0AA12401260A21220123012 101208120412021201081E7E950D>40 D<12801240122012101208120C12041206A21202 1203AA12021206A21204120C12081210122012401280081E7E950D>I<1360AAB512F0A2 38006000AA14167E9119>43 D<120FEA30C0EA6060A2EA4020EAC030A9EA4020EA6060A2 EA30C0EA0F000C137E9211>48 D<120C121C12EC120CAFEAFFC00A137D9211>I<121FEA 60C01360EAF07013301260EA0070A2136013C012011380EA02005AEA08101210EA2020EA 7FE012FF0C137E9211>I<EA07C0EA0C20EA10701220EA6000A25A12CFEAD0C0EAE060EA C0201330A31240EA6020EA2060EA10C0EA0F000C137E9211>54 D<387FFFE0B512F0C8FC A6B512F06C13E0140A7E8B19>61 D E /Fj 7 92 df<1470EB01F0EB03C0EB0780EB0E00 5B5B5BA213F05BB3AC485AA3485A48C7FC1206120E12385A12C012707E120E120612076C 7E6C7EA36C7EB3AC7F1370A27F7F7FEB0780EB03C0EB01F0EB007014637B811F>26 D<1318137813F0EA01E0EA03C0EA0780EA0F005A121E123E123C127CA2127812F8B3A50D 25707E25>56 D<12F8B3A51278127CA2123C123E121E121F7EEA0780EA03C0EA01E0EA00 F0137813180D25708025>58 D<137CB3A613F8A313F0120113E0120313C0EA0780130012 0E5A5A12F012C012F012387E7E7E1380EA03C013E0120113F0120013F8A3137CB3A60E4D 798025>60 D<B712E016F00070C7121F007814016CEC0078001C15186C150C000F15047E 6C6C14026D14006C7E12001370137813387F131E7F7F6D7EA291C8FC5B13065B5B133813 305B5B120149140248C812041206000E150C000C151848157848EC01F00070141F007FB6 FCB712E0272A7E7F2C>80 D<B912C018E06CC81201EE001F6C6CED03F06C6C1500000F17 386D16186C6C160C6C6C1604A26C6C16026C6C1600137FA26D7E6D7E130F806D7E6D7EA2 6D7E6D7E147E147F6E7E6E7EA2140F6E5A14034AC9FC140E5C5C5CA25C495A495A49CAFC 130EA24916024916045B49160C00011718491638484816F848C9EA01F0000E160F48ED01 FF003FB812E0A25AB912C0373A7E7F3C>88 D<00E0ED0380B3B3A60070ED0700A36C150E A26C5D001E153C000E15386C5D01C0EB01F06C6C495AD800F8EB0F80017F017FC7FC9038 1FFFFC010713F001001380293A7E7F2E>91 D E /Fk 21 123 df<124012E0124003037D 820A>58 D<124012E012601220A31240A2128003097D820A>I<EB3F08EBC09838030070 000613305A5A00381320481300A35AEB1FF0EB01C0A238600380A212301307380C0B00EA 07F115147E931A>71 D<3807FFE03800E0703801C018141CA338038038A21470EB81C038 07FF0090C7FCA3120EA45AB47E16147F9315>80 D<EBF880EA030538060300EA0401120C A290C7FC120EEA0FE0EA07F8EA01FCEA001C7FA2EA400CA21308EA6018EAD020EA8FC011 147E9314>83 D<EA07B0EA0C701210EA30601260A3EAC0C013C8A21241EA62D0EA3C700D 0D7E8C12>97 D<127C120C5AA45A1237EA3880EA30C01260A4EAC180A213001243126612 380A147E930F>I<EA0780EA0C40EA1020EA30401260EA7F80EA6000124012C0EA4020EA 6040EA2180EA1E000B0D7E8C10>101 D<1338136C137C134C13C0A3EA07F8EA00C0EA01 80A5EA0300A61206A2126612E45A12700E1A7F9310>I<1206120712061200A41238124C A2128C12981218A2123012321262A21264123808147F930C>105 D<1360137013601300A4EA0380EA04C01360EA08C0A21200A2EA0180A4EA0300A4126612 E65A12780C1A81930E>I<123E12065AA45A137013B8EA1938EA3230EA34001238123E12 631310A3EAC320EAC1C00D147E9312>I<3830F87C38590C86384E0D06EA9C0EEA980C12 18A248485A15801418A23960301900140E190D7F8C1D>109 D<EA30F8EA590C124E129C 12981218A2EA301813191331A2EA6032131C100D7F8C15>I<EA0380EA0C60EA1820EA30 301260A3EAC060A2EA40C0EA6080EA2300121E0C0D7E8C10>I<EA0C78EA168CEA1304EA 2606A21206A2EA0C0CA213081310EA1A20EA19C0EA1800A25AA312FC0F13818C11>I<EA 0720EA08E01210EA30C01260A3EAC180A31243EA6700123B1203A21206A3EA3F800B137E 8C0F>I<EA31E0EA5A70124CEA9C60EA98001218A25AA45AA20C0D7F8C0F>I<1207EA1880 EA19C0EA3180EA3800121E7EEA0380124112E1EAC1001282127C0A0D7E8C10>I<EA0E3C EA13CEEA238EEA430C13001203A21206130812C6EAE610EACA20EA71C00F0D7F8C13> 120 D<EA0710EA0F20EA10E0EA00401380EA01001202120CEA10201220EA3840EA4780EA 83000C0D7F8C10>122 D E /Fl 32 123 df<126012F0A2126004047C830C>58 D<126012F0A212701210A41220A212401280040C7C830C>I<EC0380EC0F00143C14F0EB 03C0010FC7FC133C13F0EA03C0000FC8FC123C12F0A2123C120FEA03C0EA00F0133C130F EB03C0EB00F0143C140FEC038019187D9520>I<12E01278121EEA0780EA01E0EA007813 1EEB0780EB01E0EB0078141EEC0780A2EC1E001478EB01E0EB0780011EC7FC1378EA01E0 EA0780001EC8FC127812E019187D9520>62 D<903801F80890380E061890383801389038 6000F048481370485A48C71230481420120E5A123C15005AA35AA45CA300701302A20030 5B00385B6C5B6C136038070180D800FEC7FC1D1E7E9C1E>67 D<48B5128039003C01E090 383800701538151CA25B151EA35BA44848133CA3153848481378157015F015E039070001 C0EC0380EC0700141C000E1378B512C01F1C7E9B22>I<48B512F038003C000138133015 20A35BA214101500495AA21460EBFFE03801C040A448485A91C7FCA348C8FCA45AEAFFF0 1C1C7E9B1B>70 D<903801F80890380E0618903838013890386000F048481370485A48C7 1230481420120E5A123C15005AA35AA2EC7FF0EC07801500A31270140E123012386C131E 6C136438070184D800FEC7FC1D1E7E9C21>I<D801FCEBFF80D8001CEB1C00012E131815 10A2132701475B13431480A2903881C040A3EB80E0D801005B1470A300020139C7FCA314 1D48131E140EA2120C001C1304EAFF80211C7E9B21>78 D<48B5FC39003C03C090383800 E015F01570A24913F0A315E0EBE001EC03C0EC0780EC1E003801FFF001C0C7FCA3485AA4 48C8FCA45AEAFFE01C1C7E9B1B>80 D<397FF03FE0390F000700000E13061404A3485BA4 485BA4485BA4485BA35CA249C7FCEA60025B6C5AEA1830EA07C01B1D7D9B1C>85 D<3A01FFC0FF803A001E003C001530010E1320010F5B6D5B4AC7FC1482EB038414C8EB01 D014F06D5AA280EB01701302497E1308EB103CEB201CEB401EEB800E12013803000F0006 7F001E497E39FF803FF0211C7F9B22>88 D<39FFE007F8390F0001E015806C140014026D 5A00035B6D5A0001133014206D5A00005B01F1C7FC13721376137C1338A25BA45BA4485A EA1FFC1D1C7F9B18>I<EA01E3EA0717EA0C0F1218EA380E12301270A2485AA4EB3880A3 EA607838319900EA1E0E11127E9116>97 D<123F1207A2120EA45AA4EA39E0EA3A30EA3C 1812381270131CA3EAE038A313301370136013C01261EA2300121E0E1D7E9C12>I<EB07 E01300A2EB01C0A4EB0380A43801E700EA0717EA0C0F1218EA380E12301270A2485AA4EB 3880A3EA607838319900EA1E0E131D7E9C16>100 D<EA01F0EA0708120CEA1804EA3808 1230EA7030EA7FC0EAE000A51304EA60081310EA3060EA0F800E127E9113>I<EB01E0EB 0630EB0E78EB0CF0EB1C601400A3133C1338A23803FFC038003800A25BA55BA5485AA55B 1203A20063C7FC12F312F612E4127815257E9C14>I<EA01C01203A2EA0180C7FCA6121C 12271247A21287A2120EA25AA35A1380A21270EA71001232121C0A1C7E9B0E>105 D<1307130FA213061300A61370139CEA010C1202131C12041200A21338A41370A413E0A4 EA01C01261EAF180EAF30012E6127C1024809B11>I<EA0FC01201A2485AA448C7FCA4EA 0E07EB1880EB21C01323381C4780EB8300001DC7FC121EEA3F80EA39C0EA38E0A2EA70E1 A313E2EAE062EA603C121D7E9C16>I<EA1F801203A2EA0700A4120EA45AA45AA45AA412 E4A412641238091D7E9C0C>I<39381F81F0394E20C618394640E81CEB80F0EA8F00008E 13E0120EA2391C01C038A315703938038071A215E115E23970070064D83003133820127E 9124>I<EA381F384E6180384681C0EA4701128F128E120EA2381C0380A3EB0700003813 10A2130E1420387006403830038014127E9119>I<380707803809C8603808D03013E0EA 11C014381201A238038070A31460380700E014C0EB0180EB8300EA0E86137890C7FCA25A A4123CB47E151A819115>112 D<EA01C2EA0626EA0C1E1218EA381C12301270A2EAE038 A41370A3EA60F0EA23E0121C1200A2EA01C0A41203EA1FF80F1A7E9113>I<EA383CEA4E 42EA4687EA470FEA8E1E130CEA0E00A25AA45AA45A123010127E9113>I<EA01F0EA060C EA0404EA0C0EEA180CEA1C00121FEA0FE013F0EA03F8EA0038EA201CEA701812F01310EA 8030EA6060EA1F800F127E9113>I<13C01201A3EA0380A4EAFFF0EA0700A3120EA45AA4 EA3820A21340A2EA1880EA0F000C1A80990F>I<380787803808C8403810F0C03820F1E0 EBE3C03840E1803800E000A2485AA43863808012F3EB810012E5EA84C6EA787813127E91 18>120 D<001C13C0EA27011247A238870380A2120EA2381C0700A4EA180EA3EA1C1EEA 0C3CEA07DCEA001C1318EA6038EAF0305B485AEA4180003EC7FC121A7E9114>I<EA0381 EA07C1EA0FE6EA081CEA1008EA0010132013401380EA010012025AEA08041210EA2C18EA 77F8EA43F0EA81C010127E9113>I E /Fm 4 121 df<EA0720EA18E0EA30601260A2EAC0 C0A213C81241EA62D0EA3C700D0B7E8A11>97 D<1204120C1200A5127012581298A21230 A212601264A21268123006127E910B>105 D<3871F1F0389A1A18EA9C1CEA9818121838 303030A214321462386060641438170B7E8A1B>109 D<EA0F38EA1144EA218C13801201 EA0300A21308EA4310EAC730EA79C00E0B7F8A11>120 D E /Fn 2 49 df<B512C0A212027D8618>0 D<1208121CA21238A312301270A21260A212C0A206 0D7E8D09>48 D E /Fo 2 33 df<B512F0A214027D881B>0 D<12045AA25A5AB612F8A2 0020C8FC7E7EA27E1D0C7D8D23>32 D E /Fp 11 58 df<13C0A9B51280A23800C000A9 11147E8F17>43 D<121FEA3180EA60C0EA4040EAC060A8EA4040EA60C0EA3180EA1F000B 107F8F0F>48 D<120C123C12CC120CACEAFF8009107E8F0F>I<121FEA6180EA40C0EA80 6012C01200A213C0EA0180EA030012065AEA10201220EA7FC012FF0B107F8F0F>I<121F EA2180EA60C0A2120013801201EA0F00EA00801340136012C0A2EA8040EA6080EA1F000B 107F8F0F>I<1203A25A5A120B121312331223124312C3EAFFE0EA0300A4EA1FE00B107F 8F0F>I<EA2080EA3F00122C1220A3122FEA3080EA2040EA0060A312C0EA80C0EA6180EA 1F000B107F8F0F>I<EA0780EA1840EA30C0126013005A12CFEAF080EAE040EAC060A312 40EA60C0EA3080EA1F000B107F8F0F>I<1240EA7FE013C0EA8080A2EA010012025AA212 0C1208A21218A50B117E900F>I<121FEA3180EA60C0A3EA7180EA3F00120FEA3380EA61 C0EAC060A3EA4040EA6080EA1F000B107F8F0F>I<121FEA3180EA60C0EAC0401360A3EA 40E01221EA1E6012001340EA60C01380EA4300123E0B107F8F0F>I E /Fq 19 119 df<126012F0A2126004047D830A>58 D<EB1F81EBF06238018016380700 0E120E4813045A123012700060130012E0A338C007FEEB0070A27E14E012601270EA3001 380C06C03803F84018177E961B>71 D<3907F007F80000EB00C001B81380A2139C39011C 0100131E130EA238020702A2EB0382A2380401C4A2EB00E4A2481378A21438A200181310 12FE1D177F961C>78 D<3807FFF83800E00E1407A3EA01C0A3140E3803801C1470EBFFC0 EB800048C7FCA4120EA45AB47E18177F9616>80 D<EA0710EA18F0EA30701260136012C0 A3EA80C013C4A212C1EA46C8EA38700E0E7E8D13>97 D<EA07C0EA0C20EA10701220EA60 005AA35AA2EAC0101320EA60C0EA3F000C0E7E8D0F>99 D<133E130CA41318A4EA0730EA 18F0EA30701260136012C0A3EA80C013C4A212C1EA46C8EA38700F177E9612>I<EA07C0 EA1C20EA301012601320EAFFC0EAC000A41310EA4020EA60C0EA1F000C0E7E8D10>I<13 0E1313133713361360A5EA07FCEA00C0A5EA0180A6EA0300A4126612E65A1278101D7E96 11>I<120313801300C7FCA6121C12241246A25A120C5AA31231A21232A2121C09177F96 0C>105 D<123E120CA41218A41230A41260A412C012C8A312D0127007177E960B>108 D<EA383CEA44C6EA47021246EA8E06120CA25B1218144013181480EA3008EB0F00120E7F 8D15>110 D<EA07C0EA0C20EA1010EA2018126012C0A3EA8030A2EAC06013C0EA6180EA 3E000D0E7E8D11>I<EA1C3CEA2246EA2382130312461206A3EA0C06A2130C1308EA1A30 EA19E0EA1800A25AA312FC1014808D12>I<EA38F0EA4518EA46381330EA8C00120CA35A A45AA20D0E7F8D10>114 D<EA07C0EA0C20EA1870A2EA3800121EEA0FC0EA03E0EA0060 126012E0EAC0C0EAC180EA3F000C0E7E8D10>I<1203A21206A4EAFFC0EA0C00A35AA45A 1380A2EA3100A2121E0A147F930D>I<EA1C02EA26061246A2EA860C120CA3485A1480A2 1338380C5900EA078E110E7F8D14>I<EA1C04EA260EEA4606A2EA8604120CA3EA1808A2 1310A2EA0C60EA07800F0E7F8D11>I E /Fr 1 2 df<127812FCA4127806067B9111>1 D E /Fs 30 123 df<12E0A303037C820B>46 D<EA07E0EA1FF8EA3C3CEA381CEA700EA2 EA6006EAE007AAEA6006EA700EA2EA381CEA3C3CEA1FF8EA07E010187F9713>48 D<5A1207B4FCA21207B2EA7FF0A20C187D9713>I<EA0FC0EA1FF0EA3878EA601CEAE01E 1240130E1200131EA2131C133C1338137013E0EA01C0EA0380EA070012065A5A5AEA7FFE A20F187F9713>I<EA07E0EA0FF8EA3C3CEA301E1260EA200EEA001E131C133C1378EA07 F013E0EA0038131C130E130FA31280EAC00EEA601EEA383CEA1FF8EA07E010187F9713> I<1378A213B8A21201EA0338A212071206120E121C121812381230127012E0B5FCA2EA00 38A610187F9713>I<EA3FFCA2EA3800A7EA3BC0EA3FF0EA3C38EA383CEA001C131EA412 40EAC03C1260EA7878EA1FF0EA0FC00F187F9713>I<EA01F8EA07FCEA0F04EA1C005A12 301270A25AEAE7F0EAEFFCEAF81CEAF00E130712E0A312601270130E1238EA1C3CEA0FF8 EA07E010187F9713>I<B5FCA2EA0007130E131C13381378137013F013E0120113C01203 A2EA0780A4EA0F00A610187F9713>I<EA07E0EA1FF8EA3C3CEA381CEA700EA4EA381CEA 1C38EA07E0A2EA1C38EA300CEA700EEAE007A4EA700EA2EA3C3CEA1FF8EA07E010187F97 13>I<EA07E0EA1FF0EA3C38EA701C130E12E013061307A3130F1270EA381FEA3FF7EA0F E7EA0007130EA2130C131CEA1038EA3070EA1FE0EA0F8010187F9713>I<1338137CA213 5C13CEA2EA01CF138F1387000313801307380703C0A21206380E01E0A2EA0FFF4813F0EA 1C004813F81478A248137C143C126000E0131E171A7F991A>65 D<EB7FC03801FFF0EA07 C0380F0030001E13005AA25AA25AA81278A27EA26C13106C13303807C0F03801FFE03800 7F80141A7E9919>67 D<137F3801FFE03807C0F0380F0070001E1330481300A25AA25AA5 EB07F8A2EB00381278A27EA27E7E3807C0F83801FFE038007F80151A7E991A>71 D<00F013F0ABB5FCA2EAF000AD141A7D991B>I<EA0FC0EA3FF0EA7878EA6038EA401C12 00A213FC120FEA3F1C127812E0A3EA707CEA7FFCEA1F9C0E117F9012>97 D<EA07E0EA0FF8EA1C1CEA380CEA7000126012E0A512601270EA3804EA1C1CEA0FFCEA07 F00E117F9011>99 D<EA07C0EA1FF0EA3C70EA7018A2EAE00CA2EAFFFCA2EAE000A21260 12707EEA3C0CEA1FFCEA07F00E117F9011>101 D<EA03F01207EA0E10EA1C00A6EAFFC0 A2EA1C00AF0C1A80990C>I<12F0A41200A61270B1041B7E9A0A>105 D<12E0A9137C137813F0EAE1E0EAE3C0EAE780EAEF00B4FC138012FBEAF3C0EAE1E012E0 13F013701338133C0E1A7D9913>107 D<12E0B3A8031A7D990A>I<38E3C0F038EFF3FC38 F8761C38F03C0EA2EAE038AC17117D901E>I<EAE3C0EAEFF0EAF870EAF038A212E0AC0D 117D9014>I<EA07E0EA1FF8EA3C3CEA381CEA700EEA6006EAE007A5EAF00FEA700EEA78 1EEA3C3CEA1FF8EA07E010117F9013>I<EAE7C0EAFFF0EAF878EAF038EAE01CA2130EA5 131CA2EAF0381370EAFFE0EAE7C0EAE000A70F187D9014>I<EAE1C012E712EFEAFE0012 F85AA25AAA0A117E900D>114 D<1238A4EAFFC0A2EA3800AC1360EA1FE0EA0F800B157F 940E>116 D<EAE038AD137813F8127FEA3F380D117D9014>I<EAFFF8A2EA007013F013E0 EA01C0EA0380A2EA0700120EA25A5A12781270EAFFFCA20E117F9011>122 D E /Ft 79 125 df<EB7E1F3901C1B180390303E3C0000713C3000EEBC180903801C000 A6B512FC380E01C0B0387F87FC1A1D809C18>11 D<137E3801C180EA0301380703C0120E EB018090C7FCA5B512C0EA0E01B0387F87F8151D809C17>I<EB7FC0EA01C1EA03031207 EA0E01A7B5FCEA0E01B0387FCFF8151D809C17>I<90383F07E03901C09C18380380F0D8 0701133C000E13E00100131892C7FCA5B612FC390E00E01CB03A7FC7FCFF80211D809C23 >I<EAFFFC0E017D9815>22 D<EA6060EAF0F0EAF8F8EA6868EA0808A3EA1010A2EA2020 EA4040EA80800D0C7F9C15>34 D<126012F012F812681208A31210A2122012401280050C 7C9C0C>39 D<13401380EA0100120212065AA25AA25AA212701260A312E0AC1260A31270 1230A27EA27EA27E12027EEA008013400A2A7D9E10>I<7E12407E7E12187EA27EA27EA2 13801201A313C0AC1380A312031300A21206A25AA25A12105A5A5A0A2A7E9E10>I<1306 ADB612E0A2D80006C7FCAD1B1C7E9720>43 D<126012F0A212701210A41220A212401280 040C7C830C>I<EAFFE0A20B0280890E>I<126012F0A2126004047C830C>I<1301130313 06A3130CA31318A31330A31360A213C0A3EA0180A3EA0300A31206A25AA35AA35AA35AA3 5AA210297E9E15>I<EA03C0EA0C30EA1818EA300CA2EA700EEA6006A2EAE007ADEA6006 A2EA700EEA300CA2EA1818EA0C30EA07E0101D7E9B15>I<12035A123F12C71207B3A4EA 0F80EAFFF80D1C7C9B15>I<EA07C0EA1830EA201CEA400C130EEAF00F12F81307A21270 EA000F130EA2131CA213381370136013C0EA0180EA0300EA0601120C1218EA1002EA3FFE 127F12FF101C7E9B15>I<EA07E0EA1830EA201CA2EA781E130E131E1238EA001CA21318 13301360EA07E0EA0030131CA2130E130FA2127012F8A3EAF00EEA401C1220EA1830EA07 E0101D7E9B15>I<130CA2131C133CA2135C13DC139CEA011C120312021204120C120812 1012301220124012C0B512C038001C00A73801FFC0121C7F9B15>I<EA300CEA3FF813F0 13C0EA2000A6EA23E0EA2430EA2818EA301CEA200E1200130FA3126012F0A3EA800EEA40 1E131CEA2038EA1870EA07C0101D7E9B15>I<13F0EA030CEA0604EA0C0EEA181E123013 0CEA7000A21260EAE3E0EAE430EAE818EAF00C130EEAE0061307A51260A2EA7006EA300E 130CEA1818EA0C30EA03E0101D7E9B15>I<1240387FFF801400A2EA4002485AA25B485A A25B1360134013C0A212015BA21203A41207A66CC7FC111D7E9B15>I<EA03E0EA0C30EA 1008EA200C13061260A31270EA780CEA3E08EA3FB0EA1FE0EA07F013F8EA18FCEA307EEA 601E130FEAC0071303A4EA60021304EA300CEA1C10EA07E0101D7E9B15>I<EA03C0EA0C 30EA1818EA300C1270EA600EEAE006A21307A51260EA700F1230EA1817EA0C27EA07C7EA 0006A2130EEA300C12781318EA7010EA2030EA30C0EA0F80101D7E9B15>I<126012F0A2 12601200AA126012F0A2126004127C910C>I<126012F0A212601200AA126012F0A21270 1210A41220A212401280041A7C910C>I<007FB512C0B612E0C9FCA8B612E06C14C01B0C 7E8F20>61 D<1306A3130FA3EB1780A3EB23C0A3EB41E0A3EB80F0A200017FEB0078EBFF F83803007C0002133CA20006133E0004131EA2000C131F121E39FF80FFF01C1D7F9C1F> 65 D<B512C0380F00F01438143C141C141EA4141C143C1478EB01F0EBFFE0EB0078143C 141E140E140FA5141EA2143C1478B512E0181C7E9B1D>I<90381F8080EBE06138018019 38070007000E13035A14015A00781300A2127000F01400A8007014801278A212386CEB01 00A26C13026C5B380180083800E030EB1FC0191E7E9C1E>I<B512C0380F00F0143C140E 80A2EC038015C01401A215E0A815C0A21403158014071500140E5C1470B512C01B1C7E9B 20>I<B512FC380F003C140C1404A214061402A213021400A3130613FE13061302A31401 13001402A31406A2140C143CB512FC181C7E9B1C>I<B512F8380F007814181408A2140C 1404A213021400A3130613FE13061302A490C7FCA77FEAFFF8161C7E9B1B>I<90381F80 80EBE0613801801938070007000E13035A14015A00781300A2127000F01400A6ECFFF0EC 0F80007013071278A212387EA27E6C130B380180113800E06090381F80001C1E7E9C21> I<39FFF3FFC0390F003C00ACEBFFFCEB003CAD39FFF3FFC01A1C7E9B1F>I<EAFFF0EA0F 00B3A8EAFFF00C1C7F9B0F>I<EA1FFFEA00F81378B3127012F8A3EAF0F0EA40E0EA21C0 EA1F00101D7F9B15>I<EAFFF8EA0F8090C7FCB01408A31418A2141014301470EB01F0B5 FC151C7E9B1A>76 D<B46CEBFF80000FECF800A2390BC00178A33809E002A23808F004A3 EB7808A3EB3C10A3EB1E20A3EB0F40A2EB0780A3EB0300121C3AFF8307FF80211C7E9B26 >I<B4EB7FC0390F800E001404EA0BC0EA09E0A2EA08F013F81378133CA2131E130FA2EB 078414C41303EB01E4A2EB00F4147CA2143CA2141C140C121C38FF80041A1C7E9B1F>I< EB3F80EBE0E03803803848487E000E7F487F003C148000381303007814C0A20070130100 F014E0A8007014C000781303A200381480003C1307001C14006C130E6C5B6C6C5A3800E0 E0EB3F801B1E7E9C20>I<B51280380F00E01478143C141C141EA5141C143C147814E0EB FF8090C7FCACEAFFF0171C7E9B1C>I<EB3F80EBE0E03803803848487E000E7F487F003C 148000381303007814C0A20070130100F014E0A8007014C000781303A200381480383C0E 07D81C111300380E208E0007135C3803A0783900F0E020133FEB0060EC3060EC38E0EC3F C0A2EC1F80EC0F001B257E9C20>I<B5FC380F01E0EB007880141C141EA4141C143C5CEB 01E001FFC7FCEB03C0EB00E0801478A61510A21438EC3C2038FFF01CC7EA07C01C1D7E9B 1F>I<3807E080EA1C19EA3005EA7003EA600112E01300A36C13007E127CEA7FC0EA3FF8 EA1FFEEA07FFC61380130FEB07C0130313011280A300C01380A238E00300EAD002EACC0C EA83F8121E7E9C17>I<007FB512C038700F010060130000401440A200C014201280A300 001400B1497E3803FFFC1B1C7F9B1E>I<39FFF07FC0390F000E001404B3A26C5B138000 035B12016C6C5AEB70C0011FC7FC1A1D7E9B1F>I<39FFE00FF0391F0003C06CEB018015 006D5A00071302A26C6C5AA36C6C5AA213F000005BA2EBF830EB7820A26D5AA36D5AA213 1F6DC7FCA21306A31C1D7F9B1F>I<3AFFE0FFE0FF3A1F001F003C001E011E13186C011F 1310A3D807801420EC2780A2D803C01440EC43C0A213E00001903881E080A33A00F100F1 00A3017913FA017A137AA2013E137C013C133CA301181318A3281D7F9B2B>I<12FEA212 C0B3B312FEA207297C9E0C>91 D<EA0808EA1010EA2020EA4040A2EA8080A3EAB0B0EAF8 F8EA7878EA30300D0C7A9C15>I<12FEA21206B3B312FEA20729809E0C>I<EA1FC0EA3070 EA78387F12301200A2EA01FCEA0F1C12381270126000E01340A3EA603C38304E80381F87 0012127E9115>97 D<12FC121CAA137CEA1D86EA1E03381C018014C0130014E0A614C013 011480381E0300EA1906EA10F8131D7F9C17>I<EA07E0EA0C30EA18781230EA7030EA60 0012E0A61260EA70041230EA1808EA0C30EA07C00E127E9112>I<133F1307AAEA03E7EA 0C17EA180F487E1270126012E0A61260127012306C5AEA0C373807C7E0131D7E9C17>I< EA03E0EA0C30EA1818EA300CEA700EEA600612E0EAFFFEEAE000A41260EA70021230EA18 04EA0C18EA03E00F127F9112>I<13F8EA018CEA071E1206EA0E0C1300A6EAFFE0EA0E00 B0EA7FE00F1D809C0D>I<EB03803803C4C0EA0C38001C138038181800EA381CA4EA1818 EA1C38EA0C30EA13C00010C7FC12307EEA1FF813FF1480EA3003386001C0EAC000A33860 018038300300EA1C0EEA07F8121C7F9215>I<12FC121CAA137C1387EA1D03001E138012 1CAD38FF9FF0141D7F9C17>I<1218123CA21218C7FCA712FC121CB0EAFF80091D7F9C0C> I<13C0EA01E0A2EA00C01300A7EA0FE01200B3A21260EAF0C012F1EA6180EA3E000B2583 9C0D>I<12FC121CAAEB3FC0EB0F00130C13085B5B5B13E0121DEA1E70EA1C781338133C 131C7F130F148038FF9FE0131D7F9C16>I<12FC121CB3A9EAFF80091D7F9C0C>I<39FC7E 07E0391C838838391D019018001EEBE01C001C13C0AD3AFF8FF8FF8021127F9124>I<EA FC7CEA1C87EA1D03001E1380121CAD38FF9FF014127F9117>I<EA03F0EA0E1CEA180648 7E00701380EA600100E013C0A600601380EA700300301300EA1806EA0E1CEA03F012127F 9115>I<EAFC7CEA1D86EA1E03381C018014C0130014E0A6EB01C0A21480381E0300EA1D 06EA1CF890C7FCA7B47E131A7F9117>I<EA03C1EA0C33EA180BEA300FEA7007A212E0A6 12601270EA300F1218EA0C37EA07C7EA0007A7EB3FE0131A7E9116>I<EAFCE0EA1D30EA 1E78A2EA1C301300ACEAFFC00D127F9110>I<EA1F90EA3070EA4030EAC010A212E0EAF8 00EA7F80EA3FE0EA0FF0EA00F8EA8038131812C0A2EAE010EAD060EA8FC00D127F9110> I<1204A4120CA2121C123CEAFFE0EA1C00A91310A5120CEA0E20EA03C00C1A7F9910>I< 38FC1F80EA1C03AD1307120CEA0E1B3803E3F014127F9117>I<38FF07E0383C0380381C 0100A2EA0E02A26C5AA3EA0388A213D8EA01D0A2EA00E0A3134013127F9116>I<39FF3F CFE0393C0F0380381C07011500130B000E1382A21311000713C4A213203803A0E8A2EBC0 6800011370A2EB8030000013201B127F911E>I<387F8FF0380F03801400EA0702EA0384 EA01C813D8EA00F01370137813F8139CEA010E1202EA060738040380381E07C038FF0FF8 1512809116>I<38FF07E0383C0380381C0100A2EA0E02A26C5AA3EA0388A213D8EA01D0 A2EA00E0A31340A25BA212F000F1C7FC12F31266123C131A7F9116>I<EA7FFCEA703812 60EA407013F013E0EA41C012031380EA0700EA0F04120E121CEA3C0CEA380812701338EA FFF80E127F9112>I<B812802901808B2A>124 D E /Fu 48 123 df<EB0FE0EB1830EB3070EB60601400A25BA33807FFC0EA00C0A2EA0180EB8180A43803 03001410A31420380601C090C7FCA2126412EC12C81270141D819614>12 D<3801E008EA0610EA0C08EA08380018131038303020EB0040148038370140383C8620EA 3084EA3888EA6F08EA600EEAC0061300A214401480124038600300EA180CEA07F015177B 961B>38 D<13081318A45BA45BB512F0A2380060005BA4485AA490C7FC14167B921B>43 D<121812381278123812081210A2122012401280050A7E830B>I<12FF12FE08027D870D> I<134013C0A2EA0380120D1201A2EA0300A41206A45AA45AEAFF800A157C9412>49 D<13F8EA010CEA02061205EA0886A2EA0904EA060CEA00181370EA03E0EA00301310A213 18EA603012E0EAC020EA8060EA4180EA3E000F157D9412>51 D<130CA31318A31330A213 60A2134013C0EA018013181202EA0630120412081210EA7F60EA80FEEA0060A213C0A313 800F1B7F9412>I<13E0EA0310EA0608120C1218A213181230A213381210EA18F0EA0730 12001360A2EAE0C01380EA8100128612780D157C9412>57 D<383FFFFCA2C8FCA6B512F0 A2160A7C8C1B>61 D<EB0180A21303A21307A2130B1313A2EB23C01321134113C11381EA 010113FFEA0201A212041208A2121838FE0FF815177E961A>65 D<EB3F04EBE088380380 58380600385A001C13105A123012700060130012E0A35A1440A214807EEB0100EA60026C 5AEA1818EA07E016177A961A>67 D<3803FFF03800E018140C140614073801C003A43803 8007A43807000EA2140C141C000E13181430146014C0381C038038FFFC0018177E961B> I<3803FFFE3800E00E1404A3EA01C0A2EBC100A2EA0382A213FE1386EA07041408A2EB00 10120E143014201460381C01C0B5FC17177E9618>I<EB3F04EBE0883803805838060038 5A001C13105A123012700060130012E0A338C01FF8EB01C0A338E00380A21260EA300738 181B00EA07E116177A961C>71 D<3903FE3FE03900E00E00A448485AA448485AA2EBFFF8 EB803848485AA4000E5BA448485A38FF8FF81B177E961A>I<EA07FEEA00E0A4EA01C0A4 EA0380A4EA0700A4120EA45AEAFF800F177E960E>I<EA03FFEA00E0A4485AA4485AA448 C7FC1420A21440120E14C014801301EA1C07B5120013177E9616>76 D<D803F0EB3F800000EC780013B815B8EC0138D801385B1402A214040002495A131C1410 A20004EB21C01441A2148139081D0380A2130EA226180C07C7FC39FE083FE021177E9620 >I<EB1F80EBE0C03801806038030030000613385A001C131812180038133812301270A3 14705A14E01260387001C0EB038000301300EA380EEA1C18EA07E015177B961B>79 D<3803FFE03800E038141C140CA23801C01CA314383803807014E0EBFF80EB800048C7FC A4120EA45AB47E16177E9618>I<3803FFE03800E038141CA3EA01C0A3143838038070EB 81C0EBFF00EB8180380700C014E0A3380E01C0A214C2A2381C00C438FF807817177E961A >82 D<EB7C4038018280EA03011206A2000C1300A290C7FC120EEA0FC0EA07F86C7EEA00 7C130EA213061220485AA2EA60085BEAD860EA87C012177D9614>I<381FFFFC3838381C 00201308126012401370128000001300A25BA4485AA4485AA41207EA7FF816177A961A> I<387FC1FC381C00601440A3481380A438700100A4EAE002A45B5BA2EA6030EA3040EA1F 80161779961A>I<EA0720EA08E01218EA306013C01260A3EAC1801388A21243EA6590EA 38E00D0E7C8D12>97 D<123E120CA45AA41237EA3880EA30C0A21260A4EAC180A2130012 43126612380A177C9610>I<EA03C0EA0C60EA18E0123013005AA3124012C0EA4020EA60 40EA2180EA1E000B0E7C8D10>I<137C1318A41330A4EA0760EA08E01218EA306013C012 60A3EAC1801388A21243EA6590EA38E00E177C9612>I<1207EA1880EA30401260EA4080 EAFF0012C0A35AEAC0401380EA4300123C0A0E7B8D10>I<131C1336132E136C1360A313 C0A2EA07FCEA00C0A212011380A5EA0300A51206A2126612E45A12700F1D81960B>I<EA 01C8EA02381206EA0C1813301218A3EA3060A3EA10E0EA19C0120E1200A2EA618012E1EA C300127C0D147E8D10>I<121F1206A45AA4EA19C0EA1A60EA1C20EA1830EA3060A4EA60 C013C4EA61841388EAC09813E00E177D9612>I<1203120712061200A61238124CA3128C 1218A3123012321262A21224123808177D960B>I<121F1206A45AA4EA18701398EA1938 EA1A30EA34001238123E123312631310A3EAC320EAC1C00D177D9610>107 D<123E120CA41218A41230A41260A412C012D0A4126007177C9609>I<3838787838448C 8C38470504EA4606388C0C0C120CA348485A15801430EC310038303013141C190E7D8D1D >I<EA3870EA4498EA4708EA460CEA8C18120CA3EA1830133113611362EA30261338100E 7D8D14>I<EA0780EA18C0EA3040EA6060A212C0A3EA80C0A2EA8180EAC1001246123C0B 0E7B8D12>I<EA1C70EA2288EA230CA212461206A3EA0C18A213101330EA1A60EA1B80EA 1800A25AA312FC0E147E8D12>I<EA38F0EA4518EA46381330EA8C00120CA35AA45AA20D 0E7D8D0F>114 D<EA0780EA0C40EA18E0A2EA3800121EEA1F80EA07C01200126012E0EA C180EAC300123E0B0E7D8D0F>I<1203A21206A4EAFF80EA0C00A35AA45A1231A3123212 1C09147D930C>I<EA1C08EA26181246A2EA8630120CA3EA18601362A3EA08E4EA07380F 0E7D8D13>I<EA1C10EA26181246A2EA8610120CA3EA1820A21340A2EA0880EA07000D0E 7D8D10>I<381C041038260C181246A238861810120CA338183020A21440A2380C588038 078F00150E7D8D18>I<EA1C08EA26181246A2EA8630120CA3EA1860A4EA08C012071200 13801271EA73001266123C0D147D8D11>121 D<EA0708EA0F88EA10701320EA00401380 EA01001202120CEA10101220EA3C20EA47C0EA83800D0E7E8D0F>I E /Fv 13 122 df<1306130FA2497EA3EB37C0A2EB63E0A2EBE3F013C1A2380180F8A248 B47EA23807007E0006133E000E133F000C7F39FF80FFF0A21C177F961F>65 D<39FF807FE013C0390FE0060013F0120DEA0CF8137C137E133E131FEB0F8614C6EB07E6 1303EB01F6EB00FEA2147E143E141EA238FFC00E14061B177E9620>78 D<EA0FE0EA3838EA3C1C131E1218120013FEEA0F9EEA3C1E127812F0A338786FC0EA1F87 120F7F8E14>97 D<EA07F0EA1C1CEA383C1278EA7018EAF000A512701278EA3806EA1C0C EA07F80F0F7F8E12>99 D<EA07F0EA1C18EA380CEA7806EA700712F0A2B5FCEAF000A212 701278EA3803EA1E06EA03FC100F7F8E13>101 D<1238127CA312381200A412FCA2123C AB12FFA208187F970B>105 D<12FCA2123CB312FFA208177F960B>108 D<39FC7E0FC039FD8730E0393E07C0F0A2003C1380A939FF1FE3FCA21E0F7E8E23>I<EA FC7CEAFD8EEA3E0FA2123CA938FF3FC0A2120F7E8E17>I<EAF8E0EAF938EA3A78A2EA3C 301300A8EAFF80A20D0F7E8E11>114 D<EA1FF0EA6070EA403012C0EAE000B4FCEA7FE0 EA3FF0EA0FF8EA0078EAC018A2EAE010EAF020EACFC00D0F7F8E10>I<EAFC3FA2EA3C0F AA5B381C2FC0EA0FCF120F7E8E17>117 D<38FF0FC0A2383C0300EA1E06A26C5AA2EA07 98A2EA03F85BA26C5AA26C5AA21261EAF18012F348C7FC123C12157F8E15>121 D E /Fw 80 125 df<EBFCF83807839CEA0E07001C13081400A5B512E0381C0700AC38FF 1FE01617809615>11 D<13FCEA0782EA0E07121C130290C7FCA4B5FCEA1C07AC38FF1FE0 1317809614>I<13FFEA0707120E121CA6B5FCEA1C07AC38FFBFE01317809614>I<EBFC7E 380703C1390E078380001C1303EC010091C7FCA4B61280381C0703AC39FF1FCFF01C1780 961D>I<EA60C0EAF1E0A21270EA1020A2EA2040A2EA4080A20B0A7F9612>34 D<EB1830A3EB3060A5EB60C0A2B6FCA23800C180A338018300A3B6FCA238030600EA060C A5485AA3181D7E961D>I<120112021204120C1218A21230A212701260A312E0AA1260A3 12701230A21218A2120C12041202120108227D980E>40 D<12801240122012301218A212 0CA2120E1206A31207AA1206A3120E120CA21218A2123012201240128008227E980E>I< 1330ABB512FCA238003000AB16187E931B>43 D<126012F0A212701210A21220A21240A2 040A7D830A>I<EAFF80A2090280870C>I<126012F0A2126004047D830A>I<EA07C0EA18 30EA3018EA701CEA600CA2EAE00EA9EA600CA2EA701CEA3018EA1C70EA07C00F157F9412 >48 D<12035AB4FC1207B1EA7FF00C157E9412>I<EA0F80EA30E0EA4070EA8030EAC038 12E0124012001370A2136013C0EA0180EA03001206EA0C081208EA1018EA3FF0127F12FF 0D157E9412>I<EA0FE0EA3030EA6018EA701CA21200131813381360EA07E0EA00301318 130C130EA212E0A2EAC00CEA4018EA3030EA0FE00F157F9412>I<1330A2137013F01201 1370120212041208121812101220124012C0EAFFFEEA0070A5EA03FE0F157F9412>I<EA 2030EA3FE013C0EA24001220A4EA2F80EA30E0EA2070EA00301338A2124012E0A2EA8030 EA4060EA20C0EA1F000D157E9412>I<EA01F0EA0608EA080CEA181C1230EA7000126012 E0EAE3E0EAEC30EAF018130CEAE00EA31260A2EA300C1318EA1830EA07C00F157F9412> I<1240EA7FFE13FC13F8EAC008EA80101320EA00401380A2EA0100A25A12021206A2120E A512040F167E9512>I<EA07E0EA1830EA2018EA600CA21270EA7818EA3E10EA1F60EA0F C013F0EA18F8EA607C131EEAC00E1306A21304EA600CEA3830EA0FE00F157F9412>I<EA 07C0EA1830EA30181260EAE00CA2130EA3EA601E1230EA186EEA0F8EEA000E130C131CEA 7018A2EA6030EA20C0EA1F800F157F9412>I<126012F0A212601200A6126012F0A21260 040E7D8D0A>I<126012F0A212601200A6126012F0A212701210A21220A21240A204147D 8D0A>I<13FCEA0303380C00C0001013203820781013C438418208384383883883038412 87A51283EA438300411388EA20C5EB78F06CC7FC000C131C000313F03800FF0016177E96 1B>64 D<13101338A3135CA3138EA3EA0107A200031380EA0203A23807FFC0EA0401A238 0800E0A21218003813F038FE03FE17177F961A>I<EAFFFE381C0380EB00E014601470A4 14E0EB01C0381FFF8014C0381C00E0147014301438A4147014E0EB01C0B5120015177F96 19>I<EBFC1038038330380E00B0481370481330123000701310126012E01400A5141012 6012700030132012386C13406C138038038300EA00FC14177E9619>I<B5FC381C01C0EB 00E0143014381418141C140C140EA7140C141CA2143814301460EB01C0B5120017177F96 1B>I<B512E0EA1C00146014201410A3EB0400A3130CEA1FFCEA1C0C13041408A2130014 181410A2143014F0B5FC15177F9618>I<B512E0EA1C00146014201410A3EB0400A3130C EA1FFCEA1C0C1304A390C7FCA6EAFFC014177F9617>I<EB7E0838038198380600584813 384813185A00701308A25A1400A4EB03FEEB00381270A212307E7E7E380380D838007F08 17177E961C>I<38FF83FE381C0070AA381FFFF0381C0070AA38FF83FE17177F961A>I<EA FFE0EA0E00B3A3EAFFE00B177F960D>I<EA0FFCEA00E0B112E0A2EAC1C0EA6180EA1F00 0E177E9612>I<38FF80FE381C0078146014401480EB0100130613085B13381378139CEA 1D0E121EEA1C07EB0380EB01C0A2EB00E014701478147C38FF80FF18177F961B>I<00FE EB03F8001E14C000171305A338138009A23811C011A33810E021A2EB7041A3EB3881A2EB 1D01A2130EA2123839FE040FF81D177F9620>77 D<00FC13FE001E1338001F13101217EA 1380EA11C0A2EA10E013701338A2131C130E130F1307EB0390EB01D0A2EB00F014701430 123800FE131017177F961A>I<13FCEA0303380E01C0381C00E048137000301330007013 380060131800E0131CA700701338A200301330003813706C13E0380E01C038030300EA00 FC16177E961B>I<EAFFFE381C0380EB00C014601470A4146014C0EB0380381FFE00001C C7FCAAB47E14177F9618>I<13FCEA0303380E01C0381C00E04813700030133000701338 A248131CA700601318007013380030133038387870381C84E0380E85C0380387003800FE 0413071303148CEB01F8A2EB00F0161D7E961B>I<EAFFFC381C0380EB00C014E01470A4 14E014C0EB0380381FFE00381C0780EB01C0EB00E0A514E1A2147238FF803C18177F961A >I<EA0FC4EA302CEA601CEA400CEAC004A3EAE0001270127FEA3FE0EA0FF8EA01FCEA00 1C130E13061280A3EAC004EAE008EAD810EA87E00F177E9614>I<387FFFF83860381800 401308A200801304A300001300AF3807FFC016177F9619>I<38FF80FE381C00381410B0 6C132012066C13403801818038007E0017177F961A>I<38FF80FE383C0038001C1310A2 6C1320A26C1340A338038080A213C100011300A2EA00E2A213F61374A21338A313101717 7F961A>I<3AFF07FC3F803A3C01E00E00D81C001304A2EB0170000E5CA2EB023800075C A2EB041CD803845BA2EB880ED801C85BA2EBD80F3900F00780A3D96003C7FCA321177F96 24>I<38FF83FC381F01E0380E00807EEB8100EA0382EA01C213E4EA00E81378A2133813 7C135E138EEA0187EB0780EA0203380601C0000413E0EA0C00001C13F038FF03FE17177F 961A>I<39FFC03F80391E001C006C13086C5BEB8030000313206C6C5A13E000005B13F1 0171C7FC133A133E131CA9EBFF80191780961A>I<12FCA212C0B3AB12FCA206217D980A> 91 D<EA2040A2EA4080A2EA8100A2EAE1C0EAF1E0A2EA60C00B0A7B9612>I<12FCA2120C B3AB12FCA2062180980A>I<EA1FC0EA38601330EA10381200EA03F8EA1E3812301270EA E039A21379EA70FFEA1F1E100E7F8D12>97 D<12FC121CA813F8EA1F06EA1C0314801301 14C0A4148013031400EA1B0EEA10F81217809614>I<EA07F0EA18381230EA7010EA6000 12E0A41260EA70081230EA1830EA07C00D0E7F8D10>I<137E130EA8EA07CEEA1C3EEA30 0E1270126012E0A412601270EA301EEA182E3807CFC012177F9614>I<EA0FC0EA1860EA 3030EA7038EAE018EAFFF8EAE000A31260EA7008EA3010EA1830EA07C00D0E7F8D10>I< EA03E0EA0670120EEA1C201300A5EAFF80EA1C00ACEAFF800C1780960B>I<EA0F9EEA18 E3EA3060EA7070A3EA3060EA18C0EA2F80EA20001260EA3FE013F813FCEA600EEAC006A3 EA600CEA3838EA0FE010157F8D12>I<12FC121CA8137CEA1D8EEA1E07121CAA38FF9FE0 1317809614>I<1218123CA212181200A5127C121CAC12FF081780960A>I<1203EA0780A2 EA0300C7FCA5EA1F801203AF1243EAE30012E7127C091D82960B>I<12FC121CA8EB3F80 EB1C00131813205B13C0EA1FE0EA1CF0137013787F7FA238FF3FC01217809613>I<12FC 121CB3A3EAFF80091780960A>I<38FC7C1F391D8E6380391E0781C0001C1301AA39FF9F E7F81D0E808D1E>I<EAFC7CEA1D8EEA1E07121CAA38FF9FE0130E808D14>I<EA07C0EA18 30EA3018EA600CA2EAE00EA5EA701CEA3018EA1830EA07C00F0E7F8D12>I<EAFCF8EA1F 0EEA1C031480130114C0A414801303EB0700EA1F0EEA1CF890C7FCA5B47E1214808D14> I<EA07C2EA1C26EA381EEA700E126012E0A412601270EA301EEA1C2EEA07CEEA000EA5EB 7FC012147F8D13>I<EAFCF0EA1D38121EEA1C101300A9EAFF800D0E808D0E>I<EA1F40EA 60C0EAC040A2EAE000B4FCEA7F80EA1FC0EA01E0EA8060A212C0EAE0C0EA9F000B0E7F8D 0E>I<1208A31218A21238EAFF80EA3800A71340A4EA1C80EA0F000A147F930E>I<EAFC3F EA1C07AA5BEA0E173803E7E0130E808D14>I<EAFE1FEA3C0E130CEA1C08A2EA0E10A2EA 0720A2EA03C0A3EA0180A2100E7F8D13>I<38FCFE7C383838381410381C3C20A2134C38 0E4E40A2138638078780A2130300031300A2160E7F8D19>I<EAFE3FEA3C18EA1C10EA0E 20EA074013C0EA0380EA01C0EA02E0EA04F0EA0870EA1838EA383CEAFC7F100E7F8D13> I<EAFE1FEA3C0E130CEA1C08A2EA0E10A2EA0720A2EA03C0A3EA0180A21300A212E2A212 A4127810147F8D13>I<EAFFF0EAC0E01280EA81C0EA83801287EA0700120EEA1E08121C EA3818EA70101330EAFFF00D0E7F8D10>I<B512801101808812>I<B712C02201808823> I E /Fx 49 123 df<9038FC1F800001133F0003137F390700E000380E01C0A738FFE1FC A2380E01C0B0191D809C18>11 D<12E0A312601240A312C003087C820C>44 D<12E0A303037C820C>46 D<5A1207123FB4FC12C71207B3A3EAFFF8A20D1C7C9B15>49 D<EA07C0EA1FF0EA3878EA701CEA601EEAE00EEAC00F124013071200A2130F130E131E13 1C133C137813F0EA01E013C0EA0380EA0700120E5A5A5AB5FCA2101C7E9B15>I<EA07E0 EA1FF0EA3838EA701CEAE01E1240A21200A2131C133C1378EA07F013E013F0EA003C131C 131E130FA41280A2EAC01EEA601CEA383CEA1FF0EA07E0101D7E9B15>I<133C137C135C 13DC1201139C1203A2EA071CA2120EA2121C123C12381278127012F0B512C0A238001C00 A7121B7F9A15>I<EA7FFEA2EA7000A7EA73E0EA7FF013F8EA7E3CEA7C1E1278130F1200 A6EA401E12C0EA603CEA3878EA1FF0EA0FC0101C7E9A15>I<12E0A31200AC12E0A30312 7C910C>58 D<131C133EA2132E1367A2EBE78013C713C300017F1383138100037FA248C6 7EA21206000E1378380FFFF8A2381C003CA2121800387FA248131F80A248EB0780191D7F 9C1C>65 D<EAFFF813FF38F00F80EB03C0EB01E0EB00F0A5EB01E0EB07C0B51280EBFE00 EBFF8038F03FC0EB03E0EB01F013001478A514F0EB01E0EB07C0B51280EBFC00151D7C9C 1C>I<EB3FC0EBFFF0EA03C03807803048C7FC121E5AA25AA35AA91278A37EA27E6C1308 380780183803C0783800FFF0EB3F80151F7D9D1B>I<EAFFFC13FF38F00F80EB03E0EB01 F0130014781438143CA2141C141EA8143CA3147814F0A2EB03E0EB0FC0B5120013FC171D 7C9C1E>I<B512C0A200F0C7FCABB51280A200F0C7FCACB512C0A2121D7C9C19>I<B51280 A200F0C7FCABB5FCA200F0C7FCAE111D7C9C18>I<EB3F803801FFF03803C0F838078038 380F0018001E13005AA25AA35AA6EB07F8A2EB00381278A37EA27E7EEA07803803C0F838 01FFF038003F80151F7D9D1C>I<00F013F0ADB5FCA2EAF000AE141D7C9C1D>I<12F0B3AB 041D7C9C0C>I<1378B3A712C0EAE0F012FFEA7FE0EA1F800D1E7E9C14>I<00F0133C1478 14F0EB01E0EB03C0EB0780EB0F00131E5B5B5B5BEAF1F012F3EAF778EAFE7CEAFC3C7FEA F81F487E14801307EB03C014E01301EB00F0A21478147C161D7C9C1D>I<12F0B3A9EAFF FEA20F1D7C9C16>I<00FCEB07E0A300EE130DA300E71319A3EB803900E31331EBC071A2 00E11361A2EBE0E1A200E013C113F1EB7181A3EB3B01A3131EA313001B1D7C9C24>I<00 FC1370A27E12EE12EF12E7A2138012E313C0A2EAE1E0A212E013F013701378A2133CA213 1C131E130EA2130F130714F01303A2141D7C9C1D>I<133F3801FFE0487F3807C0F8380F 807C381E001E003E131F003C7F48EB0780A348EB03C0A86C130700781480A2007C130F00 3C1400003E5B6C133E6C6C5A6C6C5A6CB45A6C5BD8003FC7FC1A1F7E9D1F>I<EAFFFC13 FF38F00F80EB03C0EB01E0EB00F0A6EB01E01303EB0FC0B51280EBFE0000F0C7FCAD141D 7C9C1B>I<EAFFF813FF38F00F80EB03C0EB01E0EB00F0A5EB01E01303EB0FC0B5128014 0013F8EAF03C131C131E7FA2EB0780A2EB03C0A2EB01E0EB00F0A21478151D7C9C1B>82 D<EA03F8EA0FFEEA1C0F487E487E0060C7FC12E0A47E1278127FEA3FE0EA1FFCEA07FEEA 01FF38001F801307EB03C0A21301A400C01380EAE00338F00700EA7C0EEA1FFCEA07F012 1F7E9D17>I<B61280A2D8001EC7FCB3A9191D7F9C1C>I<00F01370B3A5007813E0A2383C 01C0381E0380EA0F073807FE00EA01F8141E7C9C1D>I<00F8EB01E0007C14C06CEB0380 001E1307001F1400380F800E0007131EEBC01C3803E03C000113386D5A000013F0EB78E0 EB7DC0133F6D5A91C7FC7FAC1B1D809C1C>89 D<EA0FC0EA3FF0EA7FF8EA7038EA401C12 00A213FC120F123FEA781C12E0A3EAF07CEA7FFC13DCEA3F1C0E127E9114>97 D<EA07E0EA0FF8EA1FFCEA3C1CEA700413005AA612701304EA3C1CEA1FFCEA0FF8EA07E0 0E127E9112>99 D<130EABEA0F8EEA1FEEEA3FFEEA7C3EEA700EA212E0A612F0EA701EEA 7C3EEA3FFEEA1FEEEA0F8E0F1D7E9C15>I<EA07C0EA1FE0EA3FF0EA7878EA7018EA601C EAFFFCA3EAE000A312701304EA3C1CEA3FFCEA1FF8EA07E00E127E9112>I<12E0ABEAE3 E0EAEFF0EAFFF8EAF83CEAF01C12E0AD0E1D7D9C15>104 D<12F0A41200A71270B2041D 7E9C0A>I<12E0AB133C137813F0EAE1E0EAE3C0EAE780EAEF00B4FC138012FBEAF9C0EA F1E012E013F013781338133C131E0F1D7D9C14>107 D<12E0B3AB031D7D9C0A>I<38E3F0 3F39EFF8FF80D8FFFD13C039F81F81E038F00F00EAE00EAD1B127D9122>I<EAE3E0EAEF F0EAFFF8EAF83CEAF01C12E0AD0E127D9115>I<EA03F0EA0FFC487EEA3C0F38780780EA 700338E001C0A5EAF00300701380EA7807383C0F00EA1FFE6C5AEA03F012127F9115>I< EAE3E0EAEFF0EAFFF8EAF87CEAF01CEAE01E130EA6131CEAF03CEAF87CEAFFF8EAEFF0EA E3C0EAE000A80F1A7D9115>I<EAE38012E712EFEAFC005A5AA25AAB09127D910E>114 D<EA1FC0EA3FF0127FEAF030EAE000A27E127FEA3FC0EA1FE0EA00F01338A21280EAF078 EAFFF0EA7FE0EA1FC00D127F9110>I<121CA6EAFFE0A2EA1C00AC1320EA1FF0120FEA07 C00C187F970F>I<EAE01CAE137CEAFFFCEA7FDCEA3F1C0E127D9115>I<EAE007A2EA7006 130EA2EA381CA3EA1C38A3EA0E70A2EA0660120713E0EA03C0A210127F9113>I<EAE007 A2EA700EA21278EA381CA2EA1C181338120CEA0E3013701206EA0760120313C01201A213 80A2EA0300A25A12FE5A5A101A7F9113>121 D<EA7FFCA3EA007813F013E01201EA03C0 1380EA07005A121E121C123C5AEAFFFCA30E127F9112>I E /Fy 24 123 df<12FCA61200B312FCA6061F7A9E13>58 D<147EA214FFA3903801EF80A39038 03CFC014C7A290380787E01483010F7FA21403496C7EA2131E90383E00FCA2133C017C13 7EA2137801F87FA25B0001EC1F80A25B48B612C0A34815E09038C000075B000FEC03F0A2 48C713F81501A2003E15FC1500A24815FE167EA248157F163F28327EB12D>65 D<B612F0A500FCC8FCB2B61280A400FCC8FCB3A51C327AB126>70 D<EC3FE0903801FFFC010713FF011F14C04914E090387FC03F9038FF0007D801FCEB01C0 4848130048481440484814005B121F5B123F90C9FCA2127EA312FE5AA8913803FFF0A27E 127EEC0001A27EA27F121F7F120F7F6C7E6C7E6C7E6CB4130390387FC01F6DB5FC6D14E0 010714800101EBFC009038003FE024347CB22D>I<12FCB3B3AE06327AB113>73 D<B46CEC07FCA36D140FA200FB150E6D141EA2D8F9F0143CA36D147C00F81578A26D14F8 017C14F0A2017E1301A2013E14E0013F1303A26D14C0EC8007A2010F1480ECC00FA20107 14006E5AA20103131EECF03E0101133CA2ECF87C01001378A3EC7CF0A3EC3CE0A2143F6E 5AA36E5A91C8FC2E327AB13B>77 D<147F903803FFE0010F13F8013F13FE90387F80FF90 39FE003F8048486D7ED803F0EB07E048486D7EA248486D7E48486D7EA290C8127C48157E 003E153E007E153FA3007C8100FC1680AB6C153F007E1600A46C157EA26D14FE001F5D6D 1301000F5D6C6C495A6D13076C6C495A6C6C495A6C6C495A90267F80FFC7FC6DB45A010F 13F8010313E0D9007FC8FC29347CB232>79 D<13FE3807FF80001F13C04813E0EB03F038 3800F812300020137CC7FCA5EB07FC13FF12075A383FC07C1300127C5AA414FCEAFC01EA 7F0713FF6C137CEA1FFCEA0FE0161F7D9E20>97 D<12F8B3EB1F80EBFFE000F97FB57EEB 83FCEAFE0048137E48133E80A3EC0F80A9EC1F00A25C143E6C137E6C5B38FF03F8EBFFF0 00FB5B00F85B013FC7FC19327AB123>I<EB3FC0EBFFF8000313FE4813FF380FE03F381F 800FEB0002003E1300127E127CA25AA9127CA2127E003E13016C1303EB800F380FE07F6C B5FC6C13FEC613F8EB3FC0181F7D9E1E>I<EB3F80EBFFE0000313F8487FEA0FE0381F80 3E383F001E003E131F487FA2EC0780B6FCA400F8C8FCA5127CA27EA26C1480EBC003380F F01F6CB5FC000114006C13FCEB1FE0191F7E9E1E>101 D<EB07FC131F133F137FEBFC04 EBF00012015B1203ABB512C0A43803E000B3A916327FB115>I<017F13F83901FFC7FC48 13FF5A390FC1FC00EA1F80EB007CA2003E7FA66C5BA2EB80FC380FC1F8EBFFF0485B001D 5BD81C7FC7FC003CC8FCA37E381FFFF814FF6C14804814C04814E0393E000FF048130300 FCEB01F8481300A46C1301007EEB03F06CEB07E0EBE03F000FB512806C1400000113FC38 003FE01E2E7E9E22>I<12F8B3EB3F80EBFFE000F913F000FB13F8EAFF8313004813FC48 137CA35AB3A316327AB123>I<12FCA61200AB127CB3AD06307CAF10>I<12F8B3B3AE0532 7BB110>108 D<3AF81FC007F090397FF01FFC3AF9FFF87FFE00FB14FF3AFF81FDE07F90 39007FC01F48028013804890383F000FA348133EB3A3291F7A9E36>I<38F83F80EBFFE0 00F913F000FB13F8EAFF8313004813FC48137CA35AB3A3161F7A9E23>I<EB1FC0EBFFF8 487F000713FF390FE03F80391F800FC0EB0007003EEB03E0A248EB01F0A20078130000F8 14F8A76C1301007C14F0A26CEB03E0003F13076C14C0EBC01F390FF07F806CB512000001 13FC6C5BEB1FC01D1F7E9E22>I<38F81F80EBFFE000F97FB57EEB83FCEAFE0048137E48 133E143F80A2EC0F80A8141F1500A25C143E6C137E6C5B38FF03F8EBFFF000FB5B00F85B 013FC7FC90C8FCAE192D7A9E23>I<EAF81E137E13FE12F912FBEAFFF0138013005AA25A A25AB30F1F7A9E17>114 D<EA03E0A9B512E0A43803E000B3A31420EBF0E03801FFF0A2 6C13C0EB7E0014287FA718>116 D<00F8137CB3A514FCA21301EAFC07EA7FFFEBFE7CEA 3FFCEA0FE0161F7A9E23>I<007FB5FCA314FEC7127E14FC14F81301EB03F0EB07E014C0 130FEB1F8014005B137E5B5B1201485A5B1207485A485A90C7FC5A127E007FB5FCB6FCA3 181F7E9E1D>122 D E end %%EndProlog %%BeginSetup %%Feature: *Resolution 300dpi TeXDict begin %%EndSetup %%Page: 1 1 1 0 bop 225 193 a Fy(A)22 b(Genetic)h(Algo)n(rithm)e(fo)n(r)h(F)n (unction)g(Optimization:)29 b(A)225 276 y(Matlab)23 b(Implementation) 225 392 y Fx(Christopher)15 b(R.)e(Houck)225 450 y(No)o(rth)h(Ca)o (rolina)g(State)g(Universit)o(y)225 509 y(and)225 567 y(Je\013ery)h(A.)e(Joines)225 625 y(No)o(rth)h(Ca)o(rolina)g(State)g (Universit)o(y)225 683 y(and)225 741 y(Michael)h(G.)e(Ka)o(y)225 799 y(No)o(rth)h(Ca)o(rolina)g(State)g(Universit)o(y)p 225 861 1495 1 v 225 938 a Fw(A)c(genetic)e(algorithm)e(implemen)o(ted) g(in)j(Matlab)f(is)i(presen)o(ted.)i(Matlab)c(is)i(used)e(for)h(the)g (follo)o(wing)e(reasons:)225 980 y(it)15 b(pro)o(vides)f(man)o(y)g (built)g(in)h(auxiliary)e(functions)g(useful)h(for)h(function)e (optimization;)h(it)h(is)h(completely)225 1021 y(p)q(ortable;)9 b(and)h(it)g(is)h(e\016cien)o(t)f(for)g(n)o(umerical)e(computation)o (s.)13 b(The)e(genetic)e(algorithm)f(to)q(olb)q(o)o(x)g(dev)o(elop)q (ed)225 1063 y(is)15 b(tested)f(on)h(a)h(series)e(of)h(non-linear,)f(m) o(ulti-mo)q(d)o(al,)f(non-con)o(v)o(ex)g(test)h(problems)g(and)g (compared)f(with)225 1104 y(results)e(using)f(sim)o(ulated)g (annealing.)j(The)f(genetic)e(algorithm)f(using)i(a)h(\015oat)f (represen)o(tati)o(on)e(is)j(found)e(to)225 1146 y(b)q(e)g(sup)q(erior) f(to)h(b)q(oth)g(a)g(binary)f(genetic)g(algorithm)f(and)h(sim)o(ulated) g(annealing)e(in)k(terms)e(of)h(e\016ciency)g(and)225 1187 y(qualit)o(y)g(of)h(solution.)j(The)e(use)f(of)h(genetic)d (algorithm)g(to)q(olb)q(o)o(x)h(as)i(w)o(ell)f(as)h(the)f(co)q(de)g(is) g(in)o(tro)q(duced)e(in)i(the)225 1229 y(pap)q(er.)225 1289 y(Categories)f(and)i(Sub)r(ject)e(Descriptors:)k(G.1)d([)p Fv(Numerical)i(Analysis)p Fw(]:)j(Optimization|)p Fu(Unc)n(onstr)n (aine)n(d)225 1330 y(Optimization,)d(nonline)n(ar)h(pr)n(o)n(gr)n (amming,)h(gr)n(adient)f(metho)n(ds)225 1389 y Fw(General)c(T)m(erms:)k (Optimization,)9 b(Algorithms)225 1447 y(Additional)f(Key)i(W)m(ords)f (and)g(Phrases:)k(genetic)8 b(algorithms,)g(m)o(ultimo)q(d)o(al)f (noncon)o(v)o(ex)g(functions,)h(Matlab)p 225 1505 V 225 1652 a Fx(1.)20 b(INTRODUCTION)225 1720 y Ft(Algorithms)12 b(for)i(function)h(optimization)c(are)k(generally)f(limited)e(to)i(con) o(v)o(ex)h(regular)f(func-)225 1770 y(tions.)24 b(Ho)o(w)o(ev)o(er,)17 b(man)o(y)d(functions)i(are)g(m)o(ulti-modal,)d(discon)o(tin)o(uous,)j (and)g(nondi\013eren-)p 225 1860 V 225 1910 a Fw(Name:)f(Christopher)9 b(R.)i(Houc)o(k)225 1951 y(Address:)21 b(North)14 b(Carolina)f(State)g (Univ)o(ersit)o(y)m(,)h(Bo)o(x)g(7906,)g(Raleigh,)f(NC,)j(27695-7906)o (,USA,\(91)o(9\))c(515-)225 1993 y(5188,\(919\))d(515-1543,c)n(hou)o(c) o(k)o(@eos.nc)o(su.e)o(du)225 2034 y(A\016liation:)14 b(North)d(Carolina)f(State)g(Univ)o(ersit)o(y)225 2076 y(Name:)15 b(Je\013ery)10 b(A.)i(Joines)225 2117 y(Address:)21 b(North)14 b(Carolina)f(State)g(Univ)o(ersit)o(y)m(,)h(Bo)o(x)g(7906,)g (Raleigh,)f(NC,)j(27695-7906)o(,USA,\(91)o(9\))c(515-)225 2159 y(5188,\(919\))d(515-1543,j)o(join)o(e@eos.)o(ncsu)o(.ed)o(u)225 2200 y(A\016liation:)14 b(North)d(Carolina)f(State)g(Univ)o(ersit)o(y) 225 2242 y(Name:)15 b(Mic)o(hael)10 b(G.)h(Ka)o(y)225 2283 y(Address:)21 b(North)14 b(Carolina)f(State)g(Univ)o(ersit)o(y)m (,)h(Bo)o(x)g(7906,)g(Raleigh,)f(NC,)j(27695-7906)o(,USA,\(91)o(9\))c (515-)225 2325 y(2008,\(919\))d(515-1543,k)m(a)o(y@eo)o(s.nc)o(su.e)o (du)225 2366 y(A\016liation:)14 b(North)d(Carolina)f(State)g(Univ)o (ersit)o(y)225 2408 y(Sp)q(onsor:)j(This)e(researc)o(h)e(w)o(as)i (funded)e(in)h(part)g(b)o(y)g(the)g(National)f(Science)g(F)m(oundation) f(under)i(gran)o(t)f(n)o(um-)225 2449 y(b)q(er)i(DMI-9322834.)p eop %%Page: 2 2 2 1 bop 225 125 a Fs(2)71 b Fr(\001)78 b Fs(C.)12 b(Houck)h(et)g(al.) 225 233 y Ft(tiable.)25 b(Sto)q(c)o(hastic)17 b(sampling)d(metho)q(ds)i (ha)o(v)o(e)h(b)q(een)g(used)h(to)e(optimize)f(these)j(functions.)225 283 y(Whereas)e(traditional)d(searc)o(h)j(tec)o(hniques)g(use)g(c)o (haracteristics)g(of)f(the)g(problem)f(to)g(deter-)225 332 y(mine)f(the)i(next)h(sampling)c(p)q(oin)o(t)i(\(e.g.,)f(gradien)o (ts,)i(Hessians,)g(linearit)o(y)m(,)e(and)i(con)o(tin)o(uit)o(y\),)225 382 y(sto)q(c)o(hastic)f(searc)o(h)g(tec)o(hniques)g(mak)o(e)d(no)i (suc)o(h)h(assumptions.)i(Instead,)e(the)f(next)h(sampled)225 432 y(p)q(oin)o(t\(s\))e(is\(are\))g(determined)f(based)i(on)e(sto)q(c) o(hastic)i(sampling/decision)c(rules)j(rather)g(than)225 482 y(a)i(set)g(of)g(deterministic)f(decision)h(rules.)267 532 y(Genetic)21 b(algorithms)d(ha)o(v)o(e)i(b)q(een)i(used)f(to)g (solv)o(e)f(di\016cult)g(problems)g(with)g(ob)r(jectiv)o(e)225 582 y(functions)13 b(that)h(do)f(not)h(p)q(ossess)h(\\nice")e(prop)q (erties)i(suc)o(h)f(as)g(con)o(tin)o(uit)o(y)m(,)d(di\013eren)o (tiabilit)o(y)m(,)225 631 y(satisfaction)18 b(of)f(the)i(Lipsc)o(hitz)f (Condition,)g(etc.[Da)o(vis)f(1991;)i(Goldb)q(erg)f(1989;)h(Holland)225 681 y(1975;)c(Mic)o(halewicz)h(1994].)22 b(These)c(algorithms)13 b(main)o(tain)g(and)j(manipulate)e(a)h(family)m(,)d(or)225 731 y(p)q(opulation,)h(of)g(solutions)h(and)g(implemen)o(t)e(a)i (\\surviv)n(al)e(of)i(the)h(\014ttest")g(strategy)g(in)f(their)225 781 y(searc)o(h)h(for)e(b)q(etter)i(solutions.)i(This)c(pro)o(vides)h (an)f(implicit)e(as)i(w)o(ell)g(as)g(explicit)g(parallelism)225 831 y(that)i(allo)o(ws)e(for)i(the)g(exploitation)e(of)h(sev)o(eral)i (promising)c(areas)j(of)g(the)g(solution)f(space)h(at)225 880 y(the)g(same)e(time.)19 b(The)14 b(implicit)e(parallelism)g(is)i (due)h(to)f(the)h(sc)o(hema)f(theory)h(dev)o(elop)q(ed)g(b)o(y)225 930 y(Holland,)10 b(while)i(the)g(explicit)f(parallelism)f(arises)i (from)e(the)i(manipulation)d(of)i(a)h(p)q(opulation)225 980 y(of)19 b(p)q(oin)o(ts|the)g(ev)n(aluation)e(of)i(the)h(\014tness)g (of)f(these)h(p)q(oin)o(ts)g(is)f(easy)g(to)g(accomplish)f(in)225 1030 y(parallel.)267 1080 y(Section)13 b(2)f(presen)o(ts)j(the)f(basic) f(genetic)h(algorithm,)c(and)i(in)h(Section)g(3)g(the)g(GA)g(is)g (tested)225 1130 y(on)k(sev)o(eral)h(m)o(ulti-m)o(o)q(dal)13 b(functions)18 b(and)f(sho)o(wn)g(to)g(b)q(e)h(an)f(e\016cien)o(t)h (optimization)d(to)q(ol.)225 1179 y(Finally)m(,)e(Section)i(4)g (brie\015y)g(describ)q(es)i(the)f(co)q(de)g(and)e(presen)o(ts)j(the)f (list)f(of)f(parameters)h(of)225 1229 y(the)f(Matlab)g(implem)o(en)o (tation.)225 1326 y Fx(2.)20 b(GENETIC)13 b(ALGORITHMS)225 1393 y Ft(Genetic)i(algorithms)c(searc)o(h)16 b(the)e(solution)g(space) h(of)e(a)h(function)g(through)g(the)h(use)g(of)e(sim-)225 1443 y(ulated)19 b(ev)o(olution,)g(i.e.,)f(the)i(surviv)n(al)e(of)g (the)i(\014ttest)g(strategy)m(.)34 b(In)19 b(general,)h(the)f (\014ttest)225 1492 y(individuals)d(of)g(an)o(y)h(p)q(opulation)f(tend) i(to)f(repro)q(duce)i(and)e(surviv)o(e)h(to)f(the)h(next)g(genera-)225 1542 y(tion,)d(th)o(us)g(impro)o(ving)e(successiv)o(e)k(generations.)23 b(Ho)o(w)o(ev)o(er,)16 b(inferior)f(individuals)e(can,)j(b)o(y)225 1592 y(c)o(hance,)g(surviv)o(e)f(and)g(also)g(repro)q(duce.)24 b(Genetic)15 b(algorithms)e(ha)o(v)o(e)i(b)q(een)h(sho)o(wn)g(to)f (solv)o(e)225 1642 y(linear)h(and)g(nonlinear)g(problems)g(b)o(y)g (exploring)g(all)f(regions)i(of)f(the)h(state)g(space)h(and)e(ex-)225 1692 y(p)q(onen)o(tially)f(exploiting)f(promising)g(areas)i(through)g (m)o(utation,)e(crosso)o(v)o(er,)j(and)f(selection)225 1742 y(op)q(erations)i(applied)g(to)g(individuals)f(in)h(the)h(p)q (opulation)e([Mic)o(halewicz)g(1994].)30 b(A)18 b(more)225 1791 y(complete)c(discussion)g(of)g(genetic)h(algorithms,)c(including)j (extensions)h(and)f(related)h(topics,)225 1841 y(can)g(b)q(e)h(found)f (in)f(the)i(b)q(o)q(oks)f(b)o(y)g(Da)o(vis)f([Da)o(vis)g(1991],)f (Goldb)q(erg)i([Goldb)q(erg)f(1989],)f(Hol-)225 1891 y(land[Holland)c(1975],)g(and)i(Mic)o(halewicz)g([Mic)o(halewicz)f (1994].)16 b(A)11 b(genetic)g(algorithm)d(\(GA\))225 1941 y(is)16 b(summarized)e(in)h(Fig.)g(1,)g(and)h(eac)o(h)g(of)f(the)i (ma)r(jor)d(comp)q(onen)o(ts)h(is)h(discussed)i(in)d(detail)225 1991 y(b)q(elo)o(w.)225 2098 y Fw(\(1\))28 b(Supply)9 b(a)j(p)q(opulation)c Fq(P)646 2103 y Fp(0)676 2098 y Fw(of)j Fq(N)k Fw(individuals)9 b(and)h(resp)q(ectiv)o(e)f(function)g (v)n(alues.)225 2144 y(\(2\))28 b Fq(i)10 b Fo( )g Fw(1)225 2190 y(\(3\))28 b Fq(P)326 2178 y Fn(0)321 2201 y Fm(i)347 2190 y Fo( )10 b Fq(selection)p 531 2190 11 2 v 14 w(f)t(unction)p Fw(\()p Fq(P)719 2195 y Fm(i)741 2190 y Fo(\000)f Fw(1\))225 2235 y(\(4\))28 b Fq(P)321 2240 y Fm(i)344 2235 y Fo( )10 b Fq(r)q(epr)q(oduction)p 592 2235 V 14 w(f)t(unction)p Fw(\()p Fq(P)785 2224 y Fn(0)780 2247 y Fm(i)797 2235 y Fw(\))225 2281 y(\(5\))28 b Fq(ev)q(aluate)p Fw(\()p Fq(P)467 2286 y Fm(i)481 2281 y Fw(\))225 2327 y(\(6\))g Fq(i)10 b Fo( )g Fq(i)e Fw(+)g(1)225 2372 y(\(7\))28 b(Rep)q(eat)10 b(step)h(3)g(un)o(til)f(termination)225 2418 y(\(8\))28 b(Prin)o(t)10 b(out)h(b)q(est)g(solution)e(found)684 2526 y(Fig.)i(1.)35 b(A)12 b(Simple)e(Genetic)f(Algorithm)p eop %%Page: 3 3 3 2 bop 1034 125 a Fs(A)12 b(GA)g(fo)o(r)h(function)e(optimization)77 b Fr(\001)70 b Fs(3)267 233 y Ft(The)19 b(use)g(of)f(a)g(genetic)i (algorithm)c(requires)j(the)h(determination)d(of)h(six)g(fundamen)o (tal)225 283 y(issues:)f(c)o(hromosome)8 b(represen)o(tation,)k (selection)e(function,)g(the)g(genetic)h(op)q(erators)g(making)225 332 y(up)18 b(the)g(repro)q(duction)h(function,)f(the)g(creation)h(of)e (the)h(initial)e(p)q(opulation,)h(termination)225 382 y(criteria,)j(and)f(the)g(ev)n(aluation)f(function.)33 b(The)19 b(rest)h(of)f(this)g(section)g(describ)q(es)i(eac)o(h)f(of)225 432 y(these)15 b(issues.)225 519 y Fx(2.1)20 b(Solution)14 b(Rep)o(resentation)225 586 y Ft(F)m(or)f(an)o(y)g(GA,)g(a)g(c)o (hromosome)e(represen)o(tation)k(is)f(needed)h(to)e(describ)q(e)i(eac)o (h)f(individual)e(in)225 636 y(the)h(p)q(opulation)e(of)h(in)o(terest.) 19 b(The)13 b(represen)o(tation)h(sc)o(heme)f(determines)g(ho)o(w)f (the)h(problem)225 686 y(is)j(structured)j(in)d(the)h(GA)f(and)g(also)g (determines)g(the)h(genetic)g(op)q(erators)h(that)e(are)h(used.)225 735 y(Eac)o(h)f(individual)e(or)i(c)o(hromosome)d(is)j(made)f(up)g(of)h (a)f(sequence)j(of)d(genes)i(from)d(a)i(certain)225 785 y(alphab)q(et.)h(An)c(alphab)q(et)g(could)f(consist)h(of)f(binary)g (digits)g(\(0)g(and)g(1\),)g(\015oating)g(p)q(oin)o(t)g(n)o(um-)225 835 y(b)q(ers,)g(in)o(tegers,)g(sym)o(b)q(ols)d(\(i.e.,)h(A,)h(B,)g(C,) f(D\),)g(matrices,)g(etc.)18 b(In)11 b(Holland's)f(original)f(design,) 225 885 y(the)15 b(alphab)q(et)g(w)o(as)g(limited)e(to)h(binary)h (digits.)20 b(Since)15 b(then,)g(problem)f(represen)o(tation)i(has)225 935 y(b)q(een)d(the)f(sub)r(ject)i(of)d(m)o(uc)o(h)f(in)o(v)o (estigation.)16 b(It)c(has)g(b)q(een)h(sho)o(wn)f(that)g(more)f (natural)g(repre-)225 984 y(sen)o(tations)k(are)g(more)f(e\016cien)o(t) h(and)f(pro)q(duce)i(b)q(etter)g(solutions[Mic)o(halewicz)e(1994].)19 b(One)225 1034 y(useful)14 b(represen)o(tation)h(of)f(an)f(individual)f (or)i(c)o(hromosome)e(for)h(function)h(optimization)d(in-)225 1084 y(v)o(olv)o(es)16 b(genes)i(or)e(v)n(ariables)g(from)f(an)i (alphab)q(et)f(of)g(\015oating)g(p)q(oin)o(t)g(n)o(um)o(b)q(ers)g(with) h(v)n(alues)225 1134 y(within)e(the)h(v)n(ariables)f(upp)q(er)i(and)f (lo)o(w)o(er)f(b)q(ounds.)24 b(Mic)o(halewicz[Mic)o(halewicz)16 b(1994])e(has)225 1184 y(done)g(extensiv)o(e)i(exp)q(erimen)o(tation)d (comparing)f(real-v)n(alued)i(and)g(binary)g(GAs)g(and)g(sho)o(ws)225 1234 y(that)i(the)g(real-v)n(alued)f(GA)g(is)h(an)g(order)g(of)f (magnitude)f(more)h(e\016cien)o(t)h(in)f(terms)h(of)f(CPU)225 1283 y(time.)29 b(He)18 b(also)f(sho)o(ws)i(that)f(a)f(real-v)n(alued)g (represen)o(tation)j(mo)o(v)o(es)d(the)h(problem)f(closer)225 1333 y(to)g(the)h(problem)e(represen)o(tation)i(whic)o(h)f(o\013ers)h (higher)g(precision)f(with)g(more)f(consisten)o(t)225 1383 y(results)f(across)g(replications.)j([Mic)o(halewicz)13 b(1994])225 1470 y Fx(2.2)20 b(Selection)15 b(F)o(unction)225 1537 y Ft(The)h(selection)h(of)e(individuals)f(to)i(pro)q(duce)h (successiv)o(e)h(generations)f(pla)o(ys)e(an)h(extremely)225 1587 y(imp)q(ortan)o(t)c(role)h(in)g(a)g(genetic)h(algorithm.)h(A)f (probabilistic)e(selection)i(is)g(p)q(erformed)f(based)225 1637 y(up)q(on)19 b(the)h(individual's)d(\014tness)k(suc)o(h)f(that)f (the)h(b)q(etter)g(individuals)e(ha)o(v)o(e)h(an)g(increased)225 1686 y(c)o(hance)g(of)f(b)q(eing)g(selected.)33 b(An)18 b(individual)e(in)i(the)h(p)q(opulation)e(can)h(b)q(e)h(selected)h (more)225 1736 y(than)14 b(once)i(with)e(all)f(individuals)g(in)h(the)h (p)q(opulation)e(ha)o(ving)h(a)g(c)o(hance)h(of)f(b)q(eing)g(selected) 225 1786 y(to)g(repro)q(duce)j(in)o(to)d(the)h(next)g(generation.)20 b(There)15 b(are)g(sev)o(eral)g(sc)o(hemes)g(for)g(the)g(selection)225 1836 y(pro)q(cess:)j(roulette)11 b(wheel)g(selection)g(and)f(its)g (extensions,)i(scaling)e(tec)o(hniques,)i(tournamen)o(t,)225 1886 y(elitist)i(mo)q(dels,)e(and)i(ranking)f(metho)q(ds)g([Goldb)q (erg)g(1989;)f(Mic)o(halewicz)i(1994].)267 1936 y(A)e(common)e (selection)j(approac)o(h)g(assigns)f(a)h(probabilit)o(y)e(of)g (selection,)i Fl(P)1453 1942 y Fk(j)1471 1936 y Ft(,)f(to)g(eac)o(h)h (indi-)225 1985 y(vidual,)d Fl(j)15 b Ft(based)d(on)f(its)h(\014tness)h (v)n(alue.)k(A)12 b(series)h(of)e Fl(N)16 b Ft(random)11 b(n)o(um)o(b)q(ers)g(is)g(generated)j(and)225 2035 y(compared)k (against)g(the)h(cum)o(ulativ)o(e)e(probabilit)o(y)m(,)g Fl(C)1115 2041 y Fk(i)1148 2035 y Ft(=)1199 2004 y Fj(P)1243 2014 y Fk(i)1243 2048 y(j)r Fi(=1)1310 2035 y Fl(P)1337 2041 y Fk(j)1354 2035 y Ft(,)i(of)f(the)h(p)q(opulation.)225 2085 y(The)g(appropriate)g(individual,)e Fl(i)p Ft(,)i(is)g(selected)h (and)f(copied)g(in)o(to)f(the)h(new)g(p)q(opulation)e(if)225 2135 y Fl(C)255 2141 y Fk(i)p Fh(\000)p Fi(1)324 2135 y Fl(<)c(U)5 b Ft(\(0)p Fl(;)i Ft(1\))12 b Fg(\024)h Fl(C)582 2141 y Fk(i)595 2135 y Ft(.)20 b(V)m(arious)14 b(metho)q(ds)h(exist)f(to)h(assign)f(probabilities)g(to)g(individuals:) 225 2185 y(roulette)h(wheel,)e(linear)h(ranking)f(and)h(geometric)f (ranking.)267 2235 y(Roulette)20 b(wheel,)j(dev)o(elop)q(ed)e(b)o(y)g (Holland)e([Holland)g(1975],)i(w)o(as)g(the)g(\014rst)h(selection)225 2285 y(metho)q(d.)17 b(The)e(probabilit)o(y)m(,)c Fl(P)725 2291 y Fk(i)738 2285 y Ft(,)j(for)f(eac)o(h)i(individual)d(is)h (de\014ned)i(b)o(y:)587 2420 y Fl(P)6 b Ft([)13 b(Individual)f Fl(i)j Ft(is)e(c)o(hosen)i(])c(=)1209 2392 y Fl(F)1236 2398 y Fk(i)p 1118 2411 223 2 v 1118 2425 a Fj(P)1162 2435 y Fk(P)t(opS)r(iz)q(e)1162 2469 y(j)r Fi(=1)1296 2456 y Fl(F)1323 2462 y Fk(j)1346 2420 y Fl(;)308 b Ft(\(1\))225 2532 y(where)12 b Fl(F)369 2538 y Fk(i)394 2532 y Ft(equals)f(the)h (\014tness)h(of)d(individual)g Fl(i)p Ft(.)17 b(The)12 b(use)g(of)e(roulette)i(wheel)g(selection)g(limits)p eop %%Page: 4 4 4 3 bop 225 125 a Fs(4)71 b Fr(\001)78 b Fs(C.)12 b(Houck)h(et)g(al.) 225 233 y Ft(the)h(genetic)g(algorithm)d(to)i(maximi)o(zation)d(since)k (the)g(ev)n(aluation)e(function)i(m)o(ust)e(map)g(the)225 283 y(solutions)f(to)h(a)f(fully)f(ordered)j(set)g(of)e(v)n(alues)g(on) h Fg(<)1032 267 y Fi(+)1059 283 y Ft(.)18 b(Extensions,)12 b(suc)o(h)h(as)e(windo)o(wing)g(and)225 332 y(scaling,)i(ha)o(v)o(e)h (b)q(een)h(prop)q(osed)f(to)g(allo)o(w)e(for)i(minim)o(izatio)o(n)d (and)j(negativit)o(y)m(.)267 382 y(Ranking)h(metho)q(ds)h(only)g (require)h(the)h(ev)n(aluation)d(function)h(to)h(map)e(the)i(solutions) f(to)225 432 y(a)i(partially)f(ordered)j(set,)g(th)o(us)f(allo)o(wing)e (for)h(minim)o(izati)o(on)e(and)i(negativit)o(y)m(.)31 b(Ranking)225 482 y(metho)q(ds)17 b(assign)g Fl(P)549 488 y Fk(i)579 482 y Ft(based)h(on)f(the)h(rank)f(of)f(solution)h Fl(i)g Ft(when)h(all)e(solutions)g(are)i(sorted.)225 532 y(Normalized)d(geometric)g(ranking,)h([Joines)g(and)g(Houc)o(k)g (1994],)f(de\014nes)i Fl(P)1445 538 y Fk(i)1475 532 y Ft(for)f(eac)o(h)g(indi-)225 581 y(vidual)d(b)o(y:)498 695 y Fl(P)6 b Ft([)13 b(Selecting)h(the)g Fl(i)p Ft(th)h(individual)d (])22 b(=)h Fl(q)q Fg(0)7 b Ft(\(1)j Fg(\000)f Fl(q)q Ft(\))1316 678 y Fk(r)q Fh(\000)p Fi(1)1377 695 y Ft(;)277 b(\(2\))225 759 y(where:)493 812 y Fl(q)34 b Ft(=)21 b(the)14 b(probabilit)o(y)f(of)g(selecting)i(the)f(b)q(est)h (individual)n Fl(;)493 862 y(r)34 b Ft(=)21 b(the)14 b(rank)g(of)g(the)g(individual,)d(where)k(1)f(is)g(the)g(b)q(est)q Fl(:)493 911 y(P)26 b Ft(=)21 b(the)14 b(p)q(opulation)f(size)493 961 y Fl(q)q Fg(0)22 b Ft(=)671 943 y Fk(q)p 604 952 152 2 v 604 976 a Fi(1)p Fh(\000)p Fi(\(1)p Fh(\000)p Fk(q)q Fi(\))732 967 y Ff(P)267 1030 y Ft(T)m(ournamen)o(t)8 b(selection,)i(lik)o(e)f(ranking)g(metho)q(ds,)h(only)f(requires)i(the) f(ev)n(aluation)f(function)225 1080 y(to)i(map)e(solutions)h(to)h(a)f (partially)f(ordered)j(set,)g(ho)o(w)o(ev)o(er,)g(it)e(do)q(es)i(not)e (assign)h(probabilities.)225 1130 y(T)m(ournamen)o(t)f(selection)j(w)o (orks)f(b)o(y)g(selecting)h Fl(j)h Ft(individuals)d(randomly)m(,)e (with)j(replacemen)o(t,)225 1179 y(from)i(the)j(p)q(opulation,)d(and)i (inserts)h(the)g(b)q(est)g(of)e(the)h Fl(j)j Ft(in)o(to)c(the)h(new)h (p)q(opulation.)22 b(This)225 1229 y(pro)q(cedure)16 b(is)e(rep)q(eated)h(un)o(til)e Fl(N)19 b Ft(individuals)12 b(ha)o(v)o(e)i(b)q(een)h(selected.)225 1309 y Fx(2.3)20 b(Genetic)15 b(Op)q(erato)o(rs)225 1375 y Ft(Genetic)10 b(Op)q(erators)i(pro)o(vide)d(the)i(basic)f(searc)o(h)h(mec)o(hanism)c (of)i(the)i(GA.)e(The)h(op)q(erators)h(are)225 1425 y(used)16 b(to)f(create)h(new)g(solutions)f(based)g(on)g(existing)g(solutions)f (in)h(the)h(p)q(opulation.)k(There)225 1475 y(are)g(t)o(w)o(o)e(basic)h (t)o(yp)q(es)h(of)f(op)q(erators:)29 b(crosso)o(v)o(er)21 b(and)e(m)o(utation.)31 b(Crosso)o(v)o(er)20 b(tak)o(es)g(t)o(w)o(o)225 1524 y(individuals)12 b(and)h(pro)q(duces)i(t)o(w)o(o)e(new)h (individuals)e(while)h(m)o(utation)e(alters)j(one)f(individual)225 1574 y(to)20 b(pro)q(duce)i(a)e(single)g(new)h(solution.)37 b(The)21 b(application)e(of)g(these)j(t)o(w)o(o)e(basic)h(t)o(yp)q(es)g (of)225 1624 y(op)q(erators)15 b(and)f(their)g(deriv)n(ativ)o(es)g(dep) q(ends)h(on)f(the)g(c)o(hromosome)e(represen)o(tation)j(used.)267 1674 y(Let)354 1663 y(\026)342 1674 y Fl(X)20 b Ft(and)484 1663 y(\026)478 1674 y Fl(Y)25 b Ft(b)q(e)16 b(t)o(w)o(o)f Fl(m)p Ft(-dimensional)e(ro)o(w)i(v)o(ectors)i(denoting)e(individuals)f (\(paren)o(ts\))225 1724 y(from)j(the)i(p)q(opulation.)31 b(F)m(or)734 1713 y(\026)722 1724 y Fl(X)22 b Ft(and)870 1713 y(\026)864 1724 y Fl(Y)28 b Ft(binary)m(,)18 b(the)h(follo)o(wing) d(op)q(erators)k(are)f(de\014ned:)225 1773 y(binary)13 b(m)o(utation)f(and)i(simple)e(crosso)o(v)o(er.)267 1823 y(Binary)h(m)o(utation)f(\015ips)h(eac)o(h)h(bit)g(in)f(ev)o(ery)i (individual)c(in)i(the)i(p)q(opulation)d(with)i(proba-)225 1873 y(bilit)o(y)e Fl(p)354 1879 y Fk(m)400 1873 y Ft(according)i(to)f (equation)h(3.)691 2001 y Fl(x)715 1984 y Fh(0)715 2011 y Fk(i)740 2001 y Ft(=)784 1943 y Fj(\032)826 1976 y Ft(1)9 b Fg(\000)g Fl(x)921 1982 y Fk(i)935 1976 y Fl(;)20 b Ft(if)13 b Fl(U)5 b Ft(\(0)p Fl(;)i Ft(1\))k Fl(<)g(p)1206 1982 y Fk(m)861 2026 y Fl(x)885 2032 y Fk(i)899 2026 y Fl(;)56 b Ft(otherwise)1666 2001 y(\(3\))267 2088 y(Simple)10 b(crosso)o(v)o(er)k(generates)g(a)f(random)e(n)o(um)o(b)q(er)h Fl(r)h Ft(from)e(a)h(uniform)f(distribution)h(from)225 2137 y(1)f(to)g Fl(m)h Ft(and)f(creates)i(t)o(w)o(o)e(new)h (individuals)d(\()965 2127 y(\026)950 2137 y Fl(X)987 2125 y Fh(0)1011 2137 y Ft(and)1101 2127 y(\026)1089 2137 y Fl(Y)1122 2125 y Fh(0)1134 2137 y Ft(\))i(according)h(to)f (equations)g(4)g(and)g(5.)764 2273 y Fl(x)788 2256 y Fh(0)788 2283 y Fk(i)823 2273 y Ft(=)876 2214 y Fj(\032)917 2247 y Fl(x)941 2253 y Fk(i)955 2247 y Fl(;)20 b Ft(if)13 b Fl(i)f(<)g(r)919 2297 y(y)939 2303 y Fk(i)953 2297 y Fl(;)22 b Ft(otherwise)1666 2273 y(\(4\))768 2389 y Fl(y)789 2372 y Fh(0)788 2399 y Fk(i)823 2389 y Ft(=)876 2330 y Fj(\032)919 2364 y Fl(y)939 2370 y Fk(i)953 2364 y Fl(;)g Ft(if)13 b Fl(i)f(<)g(r)917 2413 y(x)941 2419 y Fk(i)955 2413 y Fl(;)20 b Ft(otherwise)1666 2389 y(\(5\))267 2483 y(Op)q(erators)g(for)f(real-v)n(alued)f(represen)o(tations,)k (i.e.,)c(an)h(alphab)q(et)g(of)f(\015oats,)i(w)o(ere)g(de-)225 2532 y(v)o(elop)q(ed)c(b)o(y)g(Mic)o(halewicz)h([Mic)o(halewicz)e (1994].)24 b(F)m(or)16 b(real)1224 2522 y(\026)1212 2532 y Fl(X)k Ft(and)1355 2522 y(\026)1349 2532 y Fl(Y)9 b Ft(,)16 b(the)h(follo)o(wing)d(op-)p eop %%Page: 5 5 5 4 bop 1034 125 a Fs(A)12 b(GA)g(fo)o(r)h(function)e(optimization)77 b Fr(\001)70 b Fs(5)225 233 y Ft(erators)17 b(are)g(de\014ned:)25 b(uniform)14 b(m)o(utation,)h(non-uniform)f(m)o(utation,)g(m)o (ulti-non-uniform)225 283 y(m)o(utation,)g(b)q(oundary)h(m)o(utation,)f (simple)g(crosso)o(v)o(er,)j(arithmetic)d(crosso)o(v)o(er,)j(and)f (heuris-)225 332 y(tic)g(crosso)o(v)o(er.)26 b(Let)17 b Fl(a)586 338 y Fk(i)616 332 y Ft(and)f Fl(b)717 338 y Fk(i)747 332 y Ft(b)q(e)h(the)f(lo)o(w)o(er)g(and)g(upp)q(er)h(b)q (ound,)g(resp)q(ectiv)o(ely)m(,)g(for)f(eac)o(h)225 382 y(v)n(ariable)d Fl(i)p Ft(.)267 432 y(Uniform)7 b(m)o(utation)g (randomly)g(selects)k(one)f(v)n(ariable,)f Fl(j)r Ft(,)h(and)f(sets)i (it)e(equal)g(to)g(an)g(uniform)225 482 y(random)j(n)o(um)o(b)q(er)h Fl(U)5 b Ft(\()p Fl(a)599 488 y Fk(i)613 482 y Fl(;)i(b)650 488 y Fk(i)663 482 y Ft(\):)720 619 y Fl(x)744 602 y Fh(0)744 629 y Fk(i)769 619 y Ft(=)813 560 y Fj(\032)855 593 y Fl(U)e Ft(\()p Fl(a)926 599 y Fk(i)939 593 y Fl(;)i(b)976 599 y Fk(i)989 593 y Ft(\))p Fl(;)21 b Ft(if)13 b Fl(i)f Ft(=)g Fl(j)911 643 y(x)935 649 y Fk(i)949 643 y Fl(;)77 b Ft(otherwise)1666 619 y(\(6\))267 714 y(Boundary)14 b(m)o(utation)f(randomly)g(selects)j(one)f(v)n(ariable,)f Fl(j)r Ft(,)g(and)h(sets)h(it)e(equal)h(to)g(either)225 764 y(its)f(lo)o(w)o(er)f(or)h(upp)q(er)h(b)q(ound,)f(where)h Fl(r)d Ft(=)g Fl(U)5 b Ft(\(0)p Fl(;)i Ft(1\):)724 925 y Fl(x)748 908 y Fh(0)748 936 y Fk(i)773 925 y Ft(=)817 840 y Fj(8)817 878 y(<)817 952 y(:)865 875 y Fl(a)887 881 y Fk(i)901 875 y Fl(;)21 b Ft(if)13 b Fl(i)f Ft(=)f Fl(j;)c(r)12 b(<)g Ft(0)p Fl(:)p Ft(5)867 925 y Fl(b)885 931 y Fk(i)898 925 y Fl(;)24 b Ft(if)13 b Fl(i)f Ft(=)f Fl(j;)c(r)12 b Fg(\025)g Ft(0)p Fl(:)p Ft(5)864 975 y Fl(x)888 981 y Fk(i)901 975 y Fl(;)21 b Ft(otherwise)1666 925 y(\(7\))267 1046 y(Non-uniform)13 b(m)o(utation)g(randomly)g (selects)k(one)f(v)n(ariable,)e Fl(j)r Ft(,)i(and)f(sets)h(it)f(equal)g (to)h(an)225 1095 y(non-uniform)11 b(random)i(n)o(um)o(b)q(er:)608 1257 y Fl(x)632 1240 y Fh(0)632 1267 y Fk(i)657 1257 y Ft(=)701 1172 y Fj(8)701 1209 y(<)701 1284 y(:)750 1207 y Fl(x)774 1213 y Fk(i)797 1207 y Ft(+)c(\()p Fl(b)872 1213 y Fk(i)895 1207 y Fg(\000)h Fl(x)961 1213 y Fk(i)974 1207 y Ft(\))p Fl(f)t Ft(\()p Fl(G)p Ft(\))24 b(if)13 b Fl(r)1160 1213 y Fi(1)1201 1207 y Fl(<)24 b Ft(0)p Fl(:)p Ft(5,)748 1257 y Fl(x)772 1263 y Fk(i)795 1257 y Fg(\000)9 b Ft(\()p Fl(x)876 1263 y Fk(i)899 1257 y Ft(+)h Fl(a)963 1263 y Fk(i)976 1257 y Ft(\))p Fl(f)t Ft(\()p Fl(G)p Ft(\))22 b(if)13 b Fl(r)1160 1263 y Fi(1)1201 1257 y Fg(\025)24 b Ft(0)p Fl(:)p Ft(5,)890 1307 y Fl(x)914 1313 y Fk(i)928 1307 y Fl(;)163 b Ft(otherwise)1666 1257 y(\(8\))225 1377 y(where)521 1451 y Fl(f)t Ft(\()p Fl(G)p Ft(\))21 b(=)g(\()p Fl(r)719 1457 y Fi(2)738 1451 y Ft(\(1)9 b Fg(\000)860 1435 y Fk(G)p 830 1442 86 2 v 830 1465 a(G)856 1469 y Ff(max)921 1451 y Ft(\)\))953 1434 y Fk(b)970 1451 y Fl(;)684 b Ft(\(9\))517 1513 y Fl(r)536 1519 y Fi(1)554 1513 y Fl(;)7 b(r)592 1519 y Fi(2)631 1513 y Ft(=)21 b(a)14 b(uniform)d(random)i(n)o(um)o(b)q(er)g(b)q(et)o(w)o(een) i(\(0,1\),)578 1576 y Fl(G)20 b Ft(=)h(the)15 b(curren)o(t)g (generation,)509 1638 y Fl(G)542 1644 y Fk(max)631 1638 y Ft(=)21 b(the)15 b(maxim)n(um)9 b(n)o(um)o(b)q(er)k(of)h (generations,)592 1700 y Fl(b)21 b Ft(=)g(a)14 b(shap)q(e)g(parameter.) 267 1774 y(The)j(m)o(ulti-non-unif)o(orm)c(m)o(utation)i(op)q(erator)i (applies)g(the)g(non-uniform)e(op)q(erator)i(to)225 1824 y(all)c(of)g(the)h(v)n(ariables)g(in)f(the)h(paren)o(t)836 1814 y(\026)824 1824 y Fl(X)t Ft(.)267 1874 y(Real-v)n(alued)h(simple)g (crosso)o(v)o(er)j(is)f(iden)o(tical)f(to)g(the)i(binary)e(v)o(ersion)h (presen)o(ted)i(ab)q(o)o(v)o(e)225 1924 y(in)g(equations)h(4)f(and)g (5.)35 b(Arithmetic)19 b(crosso)o(v)o(er)h(pro)q(duces)h(t)o(w)o(o)e (complimen)o(tary)e(linear)225 1973 y(com)o(binations)12 b(of)h(the)i(paren)o(ts,)f(where)h Fl(r)d Ft(=)g Fl(U)5 b Ft(\(0)p Fl(;)i Ft(1\):)790 2087 y(\026)778 2097 y Fl(X)815 2080 y Fh(0)848 2097 y Ft(=)21 b Fl(r)933 2087 y Ft(\026)921 2097 y Fl(X)13 b Ft(+)c(\(1)h Fg(\000)f Fl(r)q Ft(\))1139 2087 y(\026)1133 2097 y Fl(Y)489 b Ft(\(10\))789 2149 y(\026)782 2160 y Fl(Y)816 2142 y Fh(0)848 2160 y Ft(=)21 b(\(1)9 b Fg(\000)h Fl(r)q Ft(\))1037 2149 y(\026)1025 2160 y Fl(X)j Ft(+)c Fl(r)1139 2149 y Ft(\026)1133 2160 y Fl(Y)489 b Ft(\(11\))267 2234 y(Heuristic)13 b(crosso)o(v)o(er)h(pro)q(duces)h(an)d(linear)g(extrap)q(olation)h(of)f (the)h(t)o(w)o(o)f(individuals.)k(This)225 2283 y(is)k(the)g(only)f(op) q(erator)h(that)g(utilizes)f(\014tness)j(information.)32 b(A)20 b(new)g(individual,)1621 2273 y(\026)1610 2283 y Fl(X)1647 2268 y Fh(0)1659 2283 y Ft(,)g(is)225 2333 y(created)d(using)f(equation)f(12,)g(where)i Fl(r)e Ft(=)g Fl(U)5 b Ft(\(0)p Fl(;)i Ft(1\))14 b(and)1161 2323 y(\026)1149 2333 y Fl(X)19 b Ft(is)d(b)q(etter)h(than)1476 2323 y(\026)1469 2333 y Fl(Y)25 b Ft(in)16 b(terms)f(of)225 2383 y(\014tness.)25 b(If)429 2373 y(\026)417 2383 y Fl(X)454 2368 y Fh(0)482 2383 y Ft(is)15 b(infeasible,)g(i.e.,)g Fl(f)t(easibil)q(ity)k Ft(equals)d(0)f(as)h(giv)o(en)f(b)o(y)g(equation)h(14,)f(then)225 2433 y(generate)20 b(a)e(new)h(random)e(n)o(um)o(b)q(er)h Fl(r)h Ft(and)f(create)i(a)e(new)h(solution)f(using)g(equation)g(12,) 225 2483 y(otherwise)13 b(stop.)k(T)m(o)11 b(ensure)i(halting,)e(after) h Fl(t)g Ft(failures,)f(let)h(the)g(c)o(hildren)g(equal)f(the)h(paren)o (ts)225 2532 y(and)i(stop.)p eop %%Page: 6 6 6 5 bop 225 125 a Fs(6)71 b Fr(\001)78 b Fs(C.)12 b(Houck)h(et)g(al.) 791 309 y Ft(\026)780 319 y Fl(X)817 302 y Fh(0)850 319 y Ft(=)915 309 y(\026)903 319 y Fl(X)f Ft(+)e Fl(r)q Ft(\()1039 309 y(\026)1027 319 y Fl(X)j Fg(\000)1122 309 y Ft(\026)1115 319 y Fl(Y)d Ft(\))481 b(\(12\))790 371 y(\026)784 381 y Fl(Y)817 364 y Fh(0)850 381 y Ft(=)915 371 y(\026)903 381 y Fl(X)709 b Ft(\(13\))586 569 y Fl(f)t(easibil)q (ity)15 b Ft(=)837 511 y Fj(\032)879 544 y Ft(1)p Fl(;)20 b Ft(if)13 b Fl(x)994 529 y Fh(0)994 555 y Fk(i)1019 544 y Fg(\025)f Fl(a)1085 550 y Fk(i)1099 544 y Fl(;)7 b(x)1142 529 y Fh(0)1142 555 y Fk(i)1166 544 y Fg(\024)12 b Fl(b)1228 550 y Fk(i)1265 544 y Fg(8)p Fl(i)879 594 y Ft(0)p Fl(;)20 b Ft(otherwise)1646 569 y(\(14\))225 687 y Fx(2.4)g(Initialization,)13 b(T)m(ermination,)g(and)i(Evaluation) f(F)o(unctions)225 754 y Ft(The)k(GA)e(m)o(ust)h(b)q(e)g(pro)o(vided)g (an)g(initial)e(p)q(opulation)h(as)i(indicated)f(in)g(step)h(1)f(of)f (Fig.)g(1.)225 804 y(The)d(most)e(common)f(metho)q(d)i(is)g(to)g (randomly)f(generate)j(solutions)e(for)g(the)h(en)o(tire)g(p)q(opula-) 225 854 y(tion.)19 b(Ho)o(w)o(ev)o(er,)14 b(since)h(GAs)g(can)f (iterativ)o(ely)g(impro)o(v)o(e)f(existing)h(solutions)g(\(i.e.,)f (solutions)225 904 y(from)i(other)i(heuristics)h(and/or)f(curren)o(t)h (practices\),)h(the)e(b)q(eginning)f(p)q(opulation)g(can)h(b)q(e)225 954 y(seeded)d(with)f(p)q(oten)o(tially)e(go)q(o)q(d)h(solutions,)g (with)g(the)h(remainder)f(of)g(the)h(p)q(opulation)e(b)q(eing)225 1003 y(randomly)h(generated)j(solutions.)267 1054 y(The)f(GA)f(mo)o(v)o (es)g(from)f(generation)i(to)g(generation)g(selecting)g(and)g(repro)q (ducing)g(paren)o(ts)225 1104 y(un)o(til)e(a)g(termination)f(criterion) j(is)e(met.)17 b(The)c(most)f(frequen)o(tly)h(used)h(stopping)e (criterion)h(is)225 1153 y(a)d(sp)q(eci\014ed)j(maxim)n(um)6 b(n)o(um)o(b)q(er)k(of)g(generations.)18 b(Another)11 b(termination)e(strategy)i(in)o(v)o(olv)o(es)225 1203 y(p)q(opulation)h(con)o(v)o(ergence)i(criteria.)k(In)13 b(general,)g(GAs)g(will)f(force)h(m)o(uc)o(h)f(of)g(the)i(en)o(tire)g (p)q(op-)225 1253 y(ulation)i(to)g(con)o(v)o(erge)i(to)e(a)h(single)f (solution.)26 b(When)17 b(the)g(sum)f(of)g(the)h(deviations)f(among)225 1303 y(individuals)f(b)q(ecomes)j(smaller)d(than)i(some)g(sp)q (eci\014ed)h(threshold,)g(the)g(algorithm)c(can)k(b)q(e)225 1353 y(terminated.)24 b(The)17 b(algorithm)c(can)k(also)e(b)q(e)i (terminated)e(due)i(to)f(a)g(lac)o(k)g(of)f(impro)o(v)o(emen)o(t)225 1402 y(in)h(the)i(b)q(est)g(solution)e(o)o(v)o(er)h(a)f(sp)q(eci\014ed) j(n)o(um)o(b)q(er)d(of)g(generations.)28 b(Alternativ)o(ely)m(,)16 b(a)g(tar-)225 1452 y(get)f(v)n(alue)g(for)f(the)i(ev)n(aluation)d (measure)i(can)h(b)q(e)f(established)h(based)g(on)e(some)g(arbitrarily) 225 1502 y(\\acceptable")k(threshold.)31 b(Sev)o(eral)18 b(strategies)h(can)g(b)q(e)f(used)h(in)e(conjunction)h(with)g(eac)o(h) 225 1552 y(other.)267 1602 y(Ev)n(aluation)10 b(functions)i(of)g(man)o (y)e(forms)h(can)h(b)q(e)h(used)g(in)f(a)g(GA,)f(sub)r(ject)j(to)e(the) h(minim)o(al)225 1652 y(requiremen)o(t)g(that)h(the)f(function)g(can)h (map)d(the)j(p)q(opulation)e(in)o(to)h(a)g(partially)e(ordered)k(set.) 225 1702 y(As)c(stated,)g(the)h(ev)n(aluation)d(function)h(is)g(indep)q (enden)o(t)i(of)e(the)h(GA)f(\(i.e.,)g(sto)q(c)o(hastic)h(decision)225 1752 y(rules\).)225 1867 y Fx(3.)20 b(TESTING)14 b(AND)g(CONCLUSIONS) 225 1934 y Ft(The)h(Matlab)f(implemen)o(tation)e(of)i(the)h(algorithm)e (has)i(b)q(een)h(tested)g(with)f(resp)q(ect)i(to)e(e\016-)225 1984 y(ciency)i(and)e(reliabilit)o(y)f(b)o(y)h(optimizing)e(a)j(family) c(of)k(m)o(ulti-m)o(odal)d(non-linear)i(test)h(prob-)225 2034 y(lems.)34 b(The)20 b(family)c(of)j(test)i(problems)d(is)i(tak)o (en)g(from)d(Corana,)j([Corana)f(et)h(al.)e(1987],)225 2084 y(whic)o(h)11 b(compare)g(the)i(use)f(of)f(the)h(sim)o(ulated)e (annealing)h(algorithm)e(to)i(the)h(simplex)e(metho)q(d)225 2133 y(of)k(Nelder-Mead)h(and)g(adaptiv)o(e)e(random)g(searc)o(h.)21 b(In)15 b([Houc)o(k)f(et)h(al.)e(1995a])g(w)o(e)h(rep)q(ort)i(in)225 2183 y(detail)c(the)h(e\013ectiv)o(eness)i(of)d(the)h(genetic)g (algorithm)d(for)i(solving)f(the)i(con)o(tin)o(uous)f(lo)q(cation-)225 2233 y(allo)q(cation)c(problem,)h(and)h(in)f([Houc)o(k)h(et)g(al.)f (1995b])f(on)i(the)g(use)h(of)e(the)i(genetic)g(algorithm)c(in)225 2283 y(conjunction)k(with)g(lo)q(cal-impro)o(v)o(em)o(en)o(t)d (heuristics)13 b(for)d(non-linear)h(function)g(optimization,)225 2333 y(lo)q(cation-allo)q(cation,)g(and)i(the)i(quadratic)f(assignmen)o (t)f(problem.)267 2383 y(The)k(Corana)f(family[Co)o(rana)e(et)k(al.)d (1987])h(of)g(parameterized)h(functions,)p Fl(q)1519 2389 y Fk(n)1541 2383 y Ft(,)g(are)g(v)o(ery)225 2433 y(simple)e(to)h(compute)f(and)h(con)o(tain)g(a)g(large)g(n)o(um)o(b)q (er)g(of)f(lo)q(cal)g(minima.)21 b(This)c(function)e(is)225 2483 y(basically)9 b(a)h Fl(n)p Ft(-dimensional)e(parab)q(ola)h(with)h (rectangular)h(p)q(o)q(c)o(k)o(ets)h(remo)o(v)o(ed)d(and)h(where)i(the) 225 2532 y(global)g(minima)e(o)q(ccurs)15 b(at)f(the)h(origin)d(\(0)p Fl(;)7 b Ft(0)p Fl(;)g(:)g(:)g(:)t(;)g Ft(0\).)18 b(This)13 b(family)e(is)j(de\014ned)h(as)f(follo)o(ws:)p eop %%Page: 7 7 7 6 bop 1034 125 a Fs(A)12 b(GA)g(fo)o(r)h(function)e(optimization)77 b Fr(\001)70 b Fs(7)348 310 y Fl(D)382 316 y Fk(f)425 310 y Fg(\021)21 b(f)p Fe(x)11 b Fg(2)g(<)604 292 y Fk(n)638 310 y Ft(:)g Fg(\000)p Fl(a)715 316 y Fi(1)746 310 y Fg(\024)h Fl(x)814 316 y Fi(1)844 310 y Fg(\024)f Fl(a)909 316 y Fi(1)928 310 y Fl(;)c(:)g(:)g(:)e(;)i Fg(\000)p Fl(a)1075 316 y Fk(n)1109 310 y Fg(\024)k Fl(x)1176 316 y Fk(n)1210 310 y Fg(\024)h Fl(a)1276 316 y Fk(n)1299 310 y Ft(;)7 b Fe(a)k Fg(2)g(<)1421 292 y Fk(n)1421 320 y Fi(+)1448 310 y Fg(g)259 400 y Fl(d)281 406 y Fk(k)299 410 y Fd(1)314 406 y Fk(;:::;k)382 410 y Ff(n)425 400 y Fg(\021)478 342 y Fj(\032)498 375 y Fe(x)h Fg(2)f Fl(D)608 381 y Fk(f)635 375 y Ft(:)g Fl(k)680 381 y Fi(1)698 375 y Fl(s)717 381 y Fi(1)738 375 y Fg(\000)f Fl(t)795 381 y Fi(1)818 375 y Fl(<)5 b(x)879 381 y Fi(1)902 375 y Fl(<)g(k)961 381 y Fi(1)979 375 y Fl(s)998 381 y Fi(1)1020 375 y Ft(+)k Fl(t)1076 381 y Fi(1)1095 375 y Fl(;)e(:)g(:)g(:)t(;)g(k) 1209 381 y Fk(n)1231 375 y Fl(s)1250 381 y Fk(n)1276 375 y Fg(\000)i Fl(t)1332 381 y Fk(n)1359 375 y Fl(<)c(x)1420 381 y Fk(n)1447 375 y Fl(<)g(k)1506 381 y Fk(n)1528 375 y Fl(s)1547 381 y Fk(n)1573 375 y Ft(+)k Fl(t)1629 381 y Fk(n)1652 375 y Ft(;)653 425 y Fl(k)675 431 y Fi(1)693 425 y Fl(;)e(:)g(:)g(:)e(;)i(k)808 431 y Fk(n)841 425 y Fg(2)12 b(Z)s Ft(;)933 417 y(\026)933 425 y Fl(t)o(;)d Ft(\026)-23 b Fl(s)12 b Fg(2)f(<)1066 409 y Fk(n)1066 435 y Fi(+)1094 425 y Ft(;)c Fl(t)1128 431 y Fk(i)1152 425 y Fl(<)1201 408 y Fk(s)1217 412 y Ff(i)p 1201 415 29 2 v 1207 439 a Fi(2)1235 425 y Fl(;)g(i)k Ft(=)h(1)p Fl(;)7 b(:)g(:)g(:)e(;)i(n)338 500 y(D)372 506 y Fk(m)425 500 y Fg(\021)534 460 y Fj([)478 550 y Fk(k)496 554 y Fd(1)511 550 y Fk(:::;k)569 554 y Ff(n)589 550 y Fh(2Z)644 500 y Fl(d)666 506 y Fk(k)684 510 y Fd(1)700 506 y Fk(;:::)o(;k)767 510 y Ff(n)798 500 y Fg(\000)j Fl(d)862 506 y Fi(0)p Fk(;)p Fi(0)p Fk(;:::)n(;)p Fi(0)351 604 y Fl(D)385 610 y Fk(r)425 604 y Fg(\021)21 b Fl(D)512 610 y Fk(f)543 604 y Fg(\000)9 b Fl(D)618 610 y Fk(m)305 701 y Fl(q)324 707 y Fk(n)346 701 y Ft(\()p Fe(x)p Ft(\))22 b Fg(\021)497 650 y Fk(n)478 662 y Fj(X)481 750 y Fk(i)p Fi(=1)544 701 y Fl(d)566 707 y Fk(i)580 701 y Fl(x)604 684 y Fi(2)604 712 y Fk(i)622 701 y Fl(;)41 b Fe(x)12 b Fg(2)f Fl(D)785 707 y Fk(r)804 701 y Fl(;)c Fe(d)j Fg(2)i(<)930 684 y Fk(n)930 712 y Fi(+)957 701 y Fl(;)305 840 y(q)324 846 y Fk(n)346 840 y Ft(\()p Fe(x)p Ft(\))22 b Fg(\021)497 788 y Fk(n)478 800 y Fj(X)481 889 y Fk(i)p Fi(=1)544 840 y Fl(d)566 846 y Fk(i)580 840 y Fl(z)601 823 y Fi(2)599 850 y Fk(i)620 840 y Fl(;)41 b Fe(x)11 b Fg(2)h Fl(d)771 846 y Fk(k)789 850 y Fd(1)804 846 y Fk(;:::;k)872 850 y Ff(n)893 840 y Fl(;)7 b Ft(\()p Fl(k)950 846 y Fi(1)968 840 y Fl(;)g(:)g(:)g(:)e(;)i(k)1083 846 y Fk(n)1105 840 y Ft(\))k Fg(6)p Ft(=)h(0)p Fl(;)371 995 y(z)390 1001 y Fk(i)425 995 y Ft(=)478 909 y Fj(8)478 947 y(<)478 1021 y(:)525 944 y Fl(k)547 950 y Fk(i)560 944 y Fl(s)579 950 y Fk(i)603 944 y Ft(+)d Fl(t)659 950 y Fk(i)694 944 y Ft(if)k Fl(k)754 950 y Fk(i)779 944 y Fl(<)f Ft(0,)525 994 y(0)148 b(if)13 b Fl(k)754 1000 y Fk(i)779 994 y Ft(=)f(0,)525 1044 y Fl(k)547 1050 y Fk(i)560 1044 y Fl(s)579 1050 y Fk(i)603 1044 y Fg(\000)d Fl(t)659 1050 y Fk(i)694 1044 y Ft(if)k Fl(k)754 1050 y Fk(i)779 1044 y Fl(>)f Ft(0,)267 1119 y(F)m(or)g(the)h(optimization)c(of)j(the)h (test)h(function)e(t)o(w)o(o)g(di\013eren)o(t)h(represen)o(tations)i(w) o(ere)e(used.)225 1169 y(A)j(real-v)n(alued)f(alphab)q(et)g(w)o(as)h (emplo)o(y)o(ed)e(in)i(conjunction)f(with)h(the)g(selection,)h(m)o (utation)225 1219 y(and)h(crosso)o(v)o(er)h(op)q(erators)f(with)g (their)g(resp)q(ectiv)o(e)i(options)d(as)h(sho)o(wn)g(in)g(table)f(I.) 30 b(Also,)225 1268 y(a)15 b(binary)g(represen)o(tation)i(w)o(as)f (used)g(in)f(conjunction)h(with)f(the)h(selection,)g(m)o(utation)e(and) 225 1318 y(crosso)o(v)o(er)e(op)q(erators)g(with)f(their)g(resp)q (ectiv)o(e)i(options)e(as)g(sho)o(wn)g(in)g(table)f(I)q(I.)18 b(A)11 b(description)225 1368 y(of)e(the)i(options)e(for)h(eac)o(h)g (of)f(the)i(functions)f(is)f(pro)o(vided)h(in)f(the)i(follo)o(wing)c (section,)k(Section)f(4.)339 1536 y Fw(T)m(able)h(I.)35 b(GA)o(OT)13 b(P)o(arameters)c(used)h(for)h(Real-V)m(alued)f(Corana)g (F)m(unction)g(Optimization)p 582 1548 770 2 v 581 1590 2 42 v 607 1577 a(Name)p 1126 1590 V 455 w(P)o(arameters)p 1350 1590 V 582 1591 770 2 v 581 1633 2 42 v 607 1621 a(Uniform)g(Mutation)p 1126 1633 V 260 w(4)p 1350 1633 V 581 1674 V 607 1662 a(Non-Uniform)f(Mutation)p 1126 1674 V 185 w([4)i Fq(G)1218 1666 y Fm(max)1294 1662 y Fw(3])p 1350 1674 V 581 1716 V 607 1704 a(Multi-Non-Uniform)d(Mutation) p 1126 1716 V 88 w([6)j Fq(G)1218 1708 y Fm(max)1294 1704 y Fw(3])p 1350 1716 V 581 1758 V 607 1745 a(Boundary)e(Mutation)p 1126 1758 V 236 w(4)p 1350 1758 V 581 1799 V 607 1787 a(Simple)g(Crosso)o(v)o(er)p 1126 1799 V 280 w(4)p 1350 1799 V 581 1841 V 607 1828 a(Arithmetic)g(Crosso)o(v)o(er)p 1126 1841 V 216 w(4)p 1350 1841 V 581 1882 V 607 1870 a(Heuristic)h(Crosso)o(v)o(er)p 1126 1882 V 245 w([2)h(3])p 1350 1882 V 581 1924 V 607 1911 a(Normalized)e(Geometric)g(Selection)p 1126 1924 V 47 w(0.08)p 1350 1924 V 582 1925 770 2 v 373 2172 a(T)m(able)i(I)q(I.)35 b(GA)o(OT)13 b(P)o(arameters)c(used)h (for)h(Binary)f(Corana)h(F)m(unction)e(Optimization)p 582 2184 V 581 2226 2 42 v 607 2213 a(Name)p 1126 2226 V 455 w(P)o(arameters)p 1350 2226 V 582 2228 770 2 v 581 2269 2 42 v 607 2257 a(Binary)h(Mutation)p 1126 2269 V 283 w(0.05)p 1350 2269 V 581 2311 V 607 2298 a(Simple)f(Crosso)o(v)o (er)p 1126 2311 V 280 w(0.6)p 1350 2311 V 581 2352 V 607 2340 a(Normalized)g(Geometric)g(Selection)p 1126 2352 V 47 w(0.08)p 1350 2352 V 582 2354 770 2 v 267 2483 a Ft(Tw)o(o)h(di\013eren)o(t)h(ev)n(aluation)f(functions)g(w)o(ere)i (used)f(for)g(b)q(oth)f(the)i(\015oat)e(and)g(binary)h(genetic)225 2532 y(algorithm,)h(the)j(\014rst)h(simply)d(returned)j(the)g(v)n(alue) e(of)g(the)i(Corana)e(function)h(at)f(the)i(p)q(oin)o(t)p eop %%Page: 8 8 8 7 bop 225 125 a Fs(8)71 b Fr(\001)78 b Fs(C.)12 b(Houck)h(et)g(al.) 225 233 y Ft(as)i(determined)f(b)o(y)h(the)g(genetic)g(string.)21 b(The)15 b(second)h(ev)n(aluation)d(function)h(utilizes)h(a)f(Se-)225 283 y(quen)o(tial)f(Quadratic)g(Programming)d(\(SQP\))15 b(\(a)o(v)n(ailable)c(in)i(Matlab\))g(metho)q(d)g(to)g(optimize)225 332 y(the)k(Corana)f(function)g(starting)g(from)e(the)j(p)q(oin)o(t)f (as)g(determined)h(b)o(y)f(the)h(genetic)g(string.)225 382 y(This)f(pro)o(vides)g(the)g(genetic)h(algorithm)c(with)j(a)g(lo)q (cal)f(impro)o(v)o(emen)o(t)e(op)q(erator)j(whic)o(h,)g(as)225 432 y(sho)o(wn)e(in)g([Houc)o(k)f(et)i(al.)e(1995b],)f(can)i(greatly)g (enhance)h(the)g(p)q(erformance)f(of)f(the)i(genetic)225 482 y(algorithm.)g(Man)o(y)d(researc)o(hers)j(ha)o(v)o(e)d(sho)o(wn)g (that)h(GAs)f(p)q(erform)f(w)o(ell)h(for)g(a)g(global)e(searc)o(h)225 532 y(but)i(p)q(erform)e(v)o(ery)i(p)q(o)q(orly)e(in)h(a)g(lo)q (calized)g(searc)o(h)i([Da)o(vis)d(1991;)g(Mic)o(halewicz)i(1994;)e (Houc)o(k)225 581 y(et)i(al.)f(1995a;)g(Bersini)h(and)g(Renders)h (1994].)j(GAs)11 b(are)i(capable)f(of)f(quic)o(kly)g(\014nding)g (promis-)225 631 y(ing)17 b(regions)g(of)g(the)h(searc)o(h)h(space)g (but)e(ma)o(y)f(tak)o(e)h(a)h(relativ)o(ely)e(long)h(time)f(to)h(reac)o (h)i(the)225 681 y(optimal)11 b(solution.)267 731 y(Both)f(the)g (\015oat)g(genetic)g(algorithm)e(\(F)o(GA\))h(and)h(binary)f(genetic)i (algorithm)c(\(BGA\))j(w)o(ere)225 781 y(run)17 b(10)g(times)f(with)g (di\013eren)o(t)i(random)e(seeds.)28 b(The)18 b(sim)o(ulated)d (annealing)h(\(SA\))h(results)225 831 y(are)c(tak)o(en)h(from)d(the)i (10)g(replications)g(of)f(these)j(test)f(problems)e(rep)q(orted)i(in)f ([Corana)f(et)i(al.)225 881 y(1987].)21 b(The)15 b(resulting)h (solution)e(v)n(alue)h(found)f(and)h(the)h(n)o(um)o(b)q(er)f(of)f (function)h(ev)n(aluations)225 930 y(to)i(obtain)g(that)g(solution)g (are)g(sho)o(wn)h(in)e(T)m(able)h(I)q(I)q(I.)28 b(Since)18 b(Corana)f(et)h(al.)27 b(did)17 b(not)h(use)225 980 y(an)d(impro)o(v)o (emen)o(t)e(pro)q(cedure,)k(b)q(oth)e(the)h(F)o(GA)f(and)g(BGA)h(w)o (ere)g(run)g(without)f(the)h(use)g(of)225 1030 y(SQP)m(.)g(As)g(sho)o (wn)g(in)f(the)i(table,)f(the)g(F)o(GA)g(outp)q(erformed)f(b)q(oth)h (BGA)g(and)g(SA)g(in)g(terms)225 1080 y(of)i(computational)e (e\016ciency)j(and)g(solution)e(qualit)o(y)m(.)31 b(With)17 b(resp)q(ect)k(to)e(the)g(epsilon)f(of)225 1130 y(1)p Fl(e)265 1115 y Fh(\000)p Fi(6)328 1130 y Ft(as)h(used)g(in)g([Corana)e (et)j(al.)d(1987],)h(F)o(GA)g(found)g(the)h(optimal)d(in)j(all)e(three) j(cases)225 1180 y(in)e(all)e(replications,)j(while)e(SA)h(w)o(as)g (unable)g(to)g(\014nd)g(the)h(optimal)c(t)o(w)o(o)i(times)g(for)h(the)h (4)225 1229 y(dimensional)12 b(case)k(and)f(not)g(at)f(all)g(for)g(the) i(10)e(dimensional)e(case.)22 b(The)15 b(table)g(also)f(sho)o(ws)225 1279 y(that)g(the)g(use)g(of)g(the)g(lo)q(cal)f(impro)o(v)o(em)o(en)o (t)f(op)q(erator)i(signi\014can)o(tly)e(increases)k(the)e(p)q(o)o(w)o (er)g(of)225 1329 y(the)h(genetic)g(algorithm)c(in)j(terms)g(of)g (solution)f(qualit)o(y)g(and)h(sp)q(eed)i(of)e(con)o(v)o(ergence)i(to)e (the)225 1379 y(optimal.)555 1597 y Fw(T)m(able)d(I)q(I)q(I.)34 b(Solution)10 b(Qualit)o(y)g(and)h(Pro)q(cedure)e(E\016ciency)p 265 1610 1415 2 v 264 1651 2 42 v 390 1651 V 602 1651 V 787 1651 V 827 1639 a(Std.)15 b(of)p 972 1651 V 1166 1651 V 258 w(Avg.)g(#)p 1336 1651 V 57 w(Std.)g(#)p 1505 1651 V 66 w(Min)d(#)p 1679 1651 V 264 1693 V 290 1659 a(Dim.)p 390 1693 V 70 w(Metho)q(d)p 602 1693 V 71 w(Avg)g(Sol.)p 787 1693 V 852 1680 a(Sol.)p 972 1693 V 998 1659 a(Min.)j(Sol.)p 1166 1693 V 1197 1680 a(of)c(ev)n(al.)p 1336 1693 V 58 w(of)h(ev)n(al.)p 1505 1693 V 60 w(of)f(ev)n(al.)p 1679 1693 V 265 1694 1415 2 v 264 1736 2 42 v 390 1736 V 459 1723 a(F)o(GA)p 602 1736 V 100 w(5)p Fq(:)p Fw(75)p Fq(e)715 1712 y Fn(\000)p Fp(7)p 787 1736 V 820 1723 a Fw(2)p Fq(:)p Fw(87)p Fq(e)900 1712 y Fn(\000)p Fp(7)p 972 1736 V 1010 1723 a Fw(2)p Fq(:)p Fw(09)p Fq(e)1090 1712 y Fn(\000)p Fp(7)p 1166 1736 V 1192 1723 a Fw(6)p Fq(:)p Fw(90)p Fq(e)1272 1712 y Fp(+3)p 1336 1736 V 1362 1723 a Fw(1)p Fq(:)p Fw(33)p Fq(e)1442 1712 y Fp(+3)p 1505 1736 V 1533 1723 a Fw(5)p Fq(:)p Fw(87)p Fq(e)1613 1712 y Fp(+3)p 1679 1736 V 391 1737 1289 2 v 264 1777 2 42 v 390 1777 V 417 1765 a Fw(F)o(GA-SQP)p 602 1777 V 59 w(0)p Fq(:)p Fw(00)p Fq(e)715 1753 y Fp(+0)p 787 1777 V 821 1765 a Fw(0)p Fq(:)p Fw(00)p Fq(e)901 1753 y Fp(+0)p 972 1777 V 1010 1765 a Fw(0)p Fq(:)p Fw(00)p Fq(e)1090 1753 y Fp(+0)p 1166 1777 V 1192 1765 a Fw(6)p Fq(:)p Fw(02)p Fq(e)1272 1753 y Fp(+2)p 1336 1777 V 1362 1765 a Fw(1)p Fq(:)p Fw(89)p Fq(e)1442 1753 y Fp(+2)p 1505 1777 V 1533 1765 a Fw(3)p Fq(:)p Fw(95)p Fq(e)1613 1753 y Fp(+2)p 1679 1777 V 391 1779 1289 2 v 264 1819 2 42 v 319 1806 a Fw(2)p 390 1819 V 120 w(BGA)p 602 1819 V 99 w(4)p Fq(:)p Fw(51)p Fq(e)715 1795 y Fn(\000)p Fp(7)p 787 1819 V 820 1806 a Fw(3)p Fq(:)p Fw(40)p Fq(e)900 1795 y Fn(\000)p Fp(7)p 972 1819 V 1010 1806 a Fw(3)p Fq(:)p Fw(31)p Fq(e)1090 1795 y Fn(\000)p Fp(8)p 1166 1819 V 1192 1806 a Fw(9)p Fq(:)p Fw(60)p Fq(e)1272 1795 y Fp(+3)p 1336 1819 V 1362 1806 a Fw(3)p Fq(:)p Fw(56)p Fq(e)1442 1795 y Fp(+3)p 1505 1819 V 1533 1806 a Fw(4)p Fq(:)p Fw(56)p Fq(e)1613 1795 y Fp(+3)p 1679 1819 V 391 1820 1289 2 v 264 1860 2 42 v 390 1860 V 416 1848 a Fw(BGA-SQP)p 602 1860 V 49 w(8)p Fq(:)p Fw(45)p Fq(e)707 1836 y Fn(\000)p Fp(15)p 787 1860 V 813 1848 a Fw(2)p Fq(:)p Fw(67)p Fq(e)893 1836 y Fn(\000)p Fp(15)p 972 1860 V 1002 1848 a Fw(5)p Fq(:)p Fw(40)p Fq(e)1082 1836 y Fn(\000)p Fp(79)p 1166 1860 V 1192 1848 a Fw(8)p Fq(:)p Fw(48)p Fq(e)1272 1836 y Fp(+2)p 1336 1860 V 1362 1848 a Fw(2)p Fq(:)p Fw(61)p Fq(e)1442 1836 y Fp(+2)p 1505 1860 V 1531 1848 a Fw(6)p Fq(:)p Fw(03)c(+)h(2)p 1679 1860 V 391 1862 1289 2 v 264 1902 2 42 v 390 1902 V 474 1889 a(SA)p 602 1902 V 115 w(1)p Fq(:)p Fw(13)p Fq(e)715 1878 y Fn(\000)p Fp(8)p 787 1902 V 820 1889 a Fw(1)p Fq(:)p Fw(42)p Fq(e)900 1878 y Fn(\000)p Fp(8)p 972 1902 V 1002 1889 a Fw(4)p Fq(:)p Fw(21)p Fq(e)1082 1878 y Fn(\000)p Fp(10)p 1166 1902 V 1192 1889 a Fw(6)p Fq(:)p Fw(89)p Fq(e)1272 1878 y Fp(+5)p 1336 1902 V 1362 1889 a Fw(1)p Fq(:)p Fw(73)p Fq(e)1442 1878 y Fp(+4)p 1505 1902 V 1533 1889 a Fw(6)p Fq(:)p Fw(56)p Fq(e)1613 1878 y Fp(+5)p 1679 1902 V 265 1903 1415 2 v 264 1945 2 42 v 390 1945 V 459 1932 a Fw(F)o(GA)p 602 1945 V 100 w(6)p Fq(:)p Fw(80)p Fq(e)715 1921 y Fn(\000)p Fp(7)p 787 1945 V 820 1932 a Fw(3)p Fq(:)p Fw(35)p Fq(e)900 1921 y Fn(\000)p Fp(7)p 972 1945 V 1010 1932 a Fw(1)p Fq(:)p Fw(58)p Fq(e)1090 1921 y Fn(\000)p Fp(7)p 1166 1945 V 1192 1932 a Fw(1)p Fq(:)p Fw(06)p Fq(e)1272 1921 y Fp(+5)p 1336 1945 V 1362 1932 a Fw(5)p Fq(:)p Fw(56)p Fq(e)1442 1921 y Fp(+4)p 1505 1945 V 1533 1932 a Fw(4)p Fq(:)p Fw(81)p Fq(e)1613 1921 y Fp(+4)p 1679 1945 V 391 1947 1289 2 v 264 1986 2 42 v 390 1986 V 417 1974 a Fw(F)o(GA-SQP)p 602 1986 V 59 w(0)p Fq(:)p Fw(00)p Fq(e)715 1962 y Fp(+0)p 787 1986 V 821 1974 a Fw(0)p Fq(:)p Fw(00)p Fq(e)901 1962 y Fp(+0)p 972 1986 V 1010 1974 a Fw(0)p Fq(:)p Fw(00)p Fq(e)1090 1962 y Fp(+0)p 1166 1986 V 1192 1974 a Fw(3)p Fq(:)p Fw(76)p Fq(e)1272 1962 y Fp(+3)p 1336 1986 V 1362 1974 a Fw(1)p Fq(:)p Fw(27)p Fq(e)1442 1962 y Fp(+3)p 1505 1986 V 1533 1974 a Fw(1)p Fq(:)p Fw(66)p Fq(e)1613 1962 y Fp(+3)p 1679 1986 V 391 1988 1289 2 v 264 2028 2 42 v 319 2016 a Fw(4)p 390 2028 V 120 w(BGA)p 602 2028 V 99 w(5)p Fq(:)p Fw(34)p Fq(e)715 2004 y Fn(\000)p Fp(7)p 787 2028 V 820 2016 a Fw(2)p Fq(:)p Fw(99)p Fq(e)900 2004 y Fn(\000)p Fp(7)p 972 2028 V 1010 2016 a Fw(3)p Fq(:)p Fw(57)p Fq(e)1090 2004 y Fn(\000)p Fp(9)p 1166 2028 V 1192 2016 a Fw(3)p Fq(:)p Fw(07)p Fq(e)1272 2004 y Fp(+5)p 1336 2028 V 1362 2016 a Fw(7)p Fq(:)p Fw(25)p Fq(e)1442 2004 y Fp(+4)p 1505 2028 V 1533 2016 a Fw(1)p Fq(:)p Fw(93)p Fq(e)1613 2004 y Fp(+5)p 1679 2028 V 391 2030 1289 2 v 264 2069 2 42 v 390 2069 V 416 2057 a Fw(BGA-SQP)p 602 2069 V 57 w(2)p Fq(:)p Fw(53)p Fq(e)715 2045 y Fn(\000)p Fp(9)p 787 2069 V 820 2057 a Fw(7)p Fq(:)p Fw(71)p Fq(e)900 2045 y Fn(\000)p Fp(9)p 972 2069 V 1002 2057 a Fw(6)p Fq(:)p Fw(80)p Fq(e)1082 2045 y Fn(\000)p Fp(26)p 1166 2069 V 1192 2057 a Fw(3)p Fq(:)p Fw(32)p Fq(e)1272 2045 y Fp(+4)p 1336 2069 V 1362 2057 a Fw(1)p Fq(:)p Fw(78)p Fq(e)1442 2045 y Fp(+4)p 1505 2069 V 1533 2057 a Fw(1)p Fq(:)p Fw(32)p Fq(e)1613 2045 y Fp(+4)p 1679 2069 V 391 2071 1289 2 v 264 2111 2 42 v 390 2111 V 474 2099 a Fw(SA)p 602 2111 V 115 w(6)p Fq(:)p Fw(18)p Fq(e)715 2087 y Fn(\000)p Fp(4)p 787 2111 V 820 2099 a Fw(1)p Fq(:)p Fw(40)p Fq(e)900 2087 y Fn(\000)p Fp(3)p 972 2111 V 1010 2099 a Fw(8)p Fq(:)p Fw(70)p Fq(e)1090 2087 y Fn(\000)p Fp(8)p 1166 2111 V 1192 2099 a Fw(1)p Fq(:)p Fw(38)p Fq(e)1272 2087 y Fp(+6)p 1336 2111 V 1362 2099 a Fw(1)p Fq(:)p Fw(11)p Fq(e)1442 2087 y Fp(+5)p 1505 2111 V 1533 2099 a Fw(1)p Fq(:)p Fw(18)p Fq(e)1613 2087 y Fp(+6)p 1679 2111 V 265 2113 1415 2 v 264 2154 2 42 v 390 2154 V 459 2142 a Fw(F)o(GA)p 602 2154 V 100 w(6)p Fq(:)p Fw(15)p Fq(e)715 2130 y Fn(\000)p Fp(7)p 787 2154 V 820 2142 a Fw(4)p Fq(:)p Fw(01)p Fq(e)900 2130 y Fn(\000)p Fp(7)p 972 2154 V 1010 2142 a Fw(1)p Fq(:)p Fw(68)p Fq(e)1090 2130 y Fn(\000)p Fp(8)p 1166 2154 V 1192 2142 a Fw(2)p Fq(:)p Fw(31)p Fq(e)1272 2130 y Fp(+5)p 1336 2154 V 1362 2142 a Fw(3)p Fq(:)p Fw(06)p Fq(e)1442 2130 y Fp(+4)p 1505 2154 V 1533 2142 a Fw(1)p Fq(:)p Fw(77)p Fq(e)1613 2130 y Fp(+5)p 1679 2154 V 391 2156 1289 2 v 264 2196 2 42 v 390 2196 V 417 2183 a Fw(F)o(GA-SQP)p 602 2196 V 59 w(0)p Fq(:)p Fw(00)p Fq(e)715 2171 y Fp(+0)p 787 2196 V 821 2183 a Fw(0)p Fq(:)p Fw(00)p Fq(e)901 2171 y Fp(+0)p 972 2196 V 1010 2183 a Fw(0)p Fq(:)p Fw(00)p Fq(e)1090 2171 y Fp(+0)p 1166 2196 V 1192 2183 a Fw(5)p Fq(:)p Fw(38)p Fq(e)1272 2171 y Fp(+4)p 1336 2196 V 1362 2183 a Fw(3)p Fq(:)p Fw(29)p Fq(e)1442 2171 y Fp(+4)p 1505 2196 V 1533 2183 a Fw(3)p Fq(:)p Fw(80)p Fq(e)1613 2171 y Fp(+4)p 1679 2196 V 391 2197 1289 2 v 264 2237 2 42 v 310 2225 a Fw(10)p 390 2237 V 111 w(BGA)p 602 2237 V 99 w(1)p Fq(:)p Fw(74)p Fq(e)715 2213 y Fp(+2)p 787 2237 V 821 2225 a Fw(1)p Fq(:)p Fw(85)p Fq(e)901 2213 y Fp(+2)p 972 2237 V 1010 2225 a Fw(2)p Fq(:)p Fw(29)p Fq(e)1090 2213 y Fp(+1)p 1166 2237 V 1192 2225 a Fw(1)p Fq(:)p Fw(47)p Fq(e)1272 2213 y Fp(+6)p 1336 2237 V 1362 2225 a Fw(6)p Fq(:)p Fw(96)p Fq(e)1442 2213 y Fp(+4)p 1505 2237 V 1533 2225 a Fw(1)p Fq(:)p Fw(34)p Fq(e)1613 2213 y Fp(+6)p 1679 2237 V 391 2239 1289 2 v 264 2279 2 42 v 390 2279 V 416 2266 a Fw(BGA-SQP)p 602 2279 V 57 w(5)p Fq(:)p Fw(74)p Fq(e)715 2255 y Fp(+2)p 787 2279 V 821 2266 a Fw(1)p Fq(:)p Fw(09)p Fq(e)901 2255 y Fp(+3)p 972 2279 V 1010 2266 a Fw(4)p Fq(:)p Fw(23)p Fq(e)1090 2255 y Fp(+0)p 1166 2279 V 1192 2266 a Fw(8)p Fq(:)p Fw(26)p Fq(e)1272 2255 y Fp(+2)p 1336 2279 V 1362 2266 a Fw(1)p Fq(:)p Fw(63)p Fq(e)1442 2255 y Fp(+2)p 1505 2279 V 1533 2266 a Fw(5)p Fq(:)p Fw(27)p Fq(e)1613 2255 y Fp(+2)p 1679 2279 V 391 2280 1289 2 v 264 2320 2 42 v 390 2320 V 474 2308 a Fw(SA)p 602 2320 V 115 w(5)p Fq(:)p Fw(40)p Fq(e)715 2296 y Fn(\000)p Fp(4)p 787 2320 V 821 2308 a Fw(0)p Fq(:)p Fw(00)p Fq(e)901 2296 y Fp(+0)p 972 2320 V 1010 2308 a Fw(5)p Fq(:)p Fw(40)p Fq(e)1090 2296 y Fn(\000)p Fp(4)p 1166 2320 V 1192 2308 a Fw(1)p Fq(:)p Fw(62)p Fq(e)1272 2296 y Fp(+6)p 1336 2320 V 1362 2308 a Fw(3)p Fq(:)p Fw(65)p Fq(e)1442 2296 y Fp(+4)p 1505 2320 V 1533 2308 a Fw(1)p Fq(:)p Fw(55)p Fq(e)1613 2296 y Fp(+6)p 1679 2320 V 265 2322 1415 2 v 267 2483 a Ft(The)21 b(results)g(of)f(this)h(testing)g(sho)o(w)f(that)h(the)g (use)h(of)d(genetic)j(algorithms)c(for)i(func-)225 2532 y(tion)15 b(optimization)d(is)j(highly)f(e\016cien)o(t)h(and)g (e\013ectiv)o(e.)23 b(The)16 b(use)g(of)e(a)h(lo)q(cal)f(impro)o(v)o (emen)o(t)p eop %%Page: 9 9 9 8 bop 1034 125 a Fs(A)12 b(GA)g(fo)o(r)h(function)e(optimization)77 b Fr(\001)70 b Fs(9)225 233 y Ft(pro)q(cedure,)19 b(in)e(this)g(case)h (SQP)m(,)e(can)h(greatly)g(enhance)h(the)g(p)q(erformance)f(of)f(the)i (genetic)225 283 y(algorithm.)225 380 y Fx(4.)i(GA)o(OT:)12 b(A)i(MA)m(TLAB)f(IMPLEMENT)m(A)m(TION)225 446 y Ft(Matlab)i(is)h(a)f (tec)o(hnical)h(computing)e(en)o(vironmen)o(t)h(for)g(high-p)q (erformance)g(n)o(umeric)g(com-)225 496 y(putation.)20 b(Matlab)14 b(in)o(tegrates)i(n)o(umerical)d(analysis,)h(matrix)f (computation)g(and)h(graphics)225 546 y(in)g(an)g(easy-to-use)h(en)o (vironmen)o(t.)i(User-de\014ned)g(Matlab)c(functions)h(are)h(simple)d (text)j(\014les)225 596 y(of)i(in)o(terpreted)i(instructions.)31 b(Therefore,)19 b(Matlab)e(functions)h(are)g(completely)e(p)q(ortable) 225 646 y(from)c(one)i(hardw)o(are)g(arc)o(hitecture)i(to)e(another)g (without)g(ev)o(en)g(a)g(recompilation)e(step.)267 696 y(The)f(algorithm)d(discussed)13 b(in)d(Section)22 b(2)11 b(has)g(b)q(een)h(implem)o(en)o(ted)d(as)i(a)g(Matlab)f(to)q(olb)q(o)o (x,)225 745 y(i.e.,)i(a)g(group)h(of)f(related)i(functions,)e(named)g (GA)o(OT,)g(Genetic)i(Algorithms)d(for)h(Optimiza-)225 795 y(tion)i(T)m(o)q(olb)q(o)o(x.)k(Eac)o(h)d(mo)q(dule)e(of)h(the)h (algorithm)d(is)j(implem)o(en)o(ted)e(using)h(a)h(Matlab)e(func-)225 845 y(tion.)k(This)c(pro)o(vides)f(for)h(easy)g(extensibilit)o(y)m(,)e (as)i(w)o(ell)f(as)g(mo)q(dularit)o(y)m(.)j(The)e(basic)g(function)225 895 y(is)j(the)i Fe(ga)e Ft(function,)h(whic)o(h)f(runs)i(the)f(sim)o (ulated)e(ev)o(olution.)25 b(The)17 b(basic)g(call)f(to)g(the)h Fe(ga)225 945 y Ft(function)d(is)f(giv)o(en)h(b)o(y)f(the)i(follo)o (wing)c(Matlab)i(command.)225 1022 y Fc([x,endPop,bPop,tr)o(aceIn)o (fo])19 b(=)i(ga\(bounds,evalFN,e)o(valPa)o(rams,)o(param)o(s,sta)o (rtPop)o(,...)225 1072 y(termFN,termParams)o(,sele)o(ctFN,)o(selec)o (tPara)o(ms,xO)o(verF)o(Ns,xO)o(verPa)o(rams,)o(mutFN)o(s,mut)o(Para)o (ms\))225 1150 y Ft(Output)15 b(parameters)225 1229 y(|)p Fb(x)f Ft(is)f(the)i(b)q(est)g(solution)e(string,)g(i.e.)18 b(\014nal)13 b(solution,)225 1290 y(|)p Fb(endPop)p Ft(\()p Fe(optional)p Ft(\))f(is)i(the)g(\014nal)f(p)q(opulation,)225 1351 y(|)p Fb(bPop)p Ft(\()p Fe(optional)p Ft(\))d(is)j(a)f(matrix)f (of)h(the)i(b)q(est)g(individuals)d(and)h(the)i(corresp)q(onding)g (gener-)267 1401 y(ation)f(they)h(w)o(ere)h(found,)225 1462 y(|)p Fb(tr)n(ac)n(eInfo)p Ft(\()p Fe(optional)o Ft(\))f(is)i(a)g(matrix)f(of)g(maxim)o(um)d(and)k(mean)f(functional)g (v)n(alue)h(of)g(the)267 1512 y(p)q(opulation)c(for)i(eac)o(h)g (generation.)225 1589 y(Input)g(parameters)225 1668 y(|)p Fb(b)n(ounds)g Ft(is)g(a)g(matrix)e(of)h(upp)q(er)i(and)f(lo)o(w)o(er)f (b)q(ounds)h(on)g(the)h(v)n(ariables,)225 1729 y(|)p Fb(evalFN)e Ft(is)h(the)h(ev)n(aluation)d(function,)h(usually)g(a)h(.m) e(\014le,)225 1790 y(|)p Fb(evalPar)n(ams)p Ft(\()p Fe(optional)p Ft(\))d(is)k(a)f(ro)o(w)h(matrix)d(of)i(an)o(y)h(parameters)f(to)h(the) g(ev)n(aluation)e(func-)267 1840 y(tion)i(defaults)h(to)f([)p Fb(NULL)p Ft(],)225 1901 y(|)p Fb(p)n(ar)n(ams)p Ft(\()p Fe(optional)p Ft(\))i(is)k(a)f(v)o(ector)i(of)e(options,)h(i.e.)32 b([)p Fb(epsilon)19 b(pr)n(ob)p 1367 1901 13 2 v 15 w(p)n(ar)n(am)h (disp)p 1585 1901 V 15 w(p)n(ar)n(am)p Ft(])267 1951 y(where)i Fb(epsilon)g Ft(is)g(the)g(c)o(hange)g(required)g(to)g (consider)h(t)o(w)o(o)e(solutions)g(di\013eren)o(t)i(and)267 2001 y Fb(pr)n(ob)p 347 2001 V 15 w(p)n(ar)n(ams)18 b Ft(is)g(0)g(if)g(y)o(ou)g(w)o(an)o(t)f(to)i(use)g(the)g(binary)f(v)o (ersion)g(of)g(the)h(algorithm,)d(or)j(1)267 2051 y(for)13 b(the)h(\015oat)g(v)o(ersion.)k Fb(disp)p 728 2051 V 15 w(p)n(ar)n(am)c Ft(con)o(trols)g(the)g(displa)o(y)f(of)g(the)h (progress)h(of)e(the)i(algo-)267 2100 y(rithm,)g(1)h(displa)o(ys)f(the) i(curren)o(t)h(generation)f(and)f(the)h(the)g(v)n(alue)f(of)g(the)h(b)q (est)g(solution)267 2150 y(in)d(the)i(p)q(opulation,)d(while)i(0)f (prev)o(en)o(ts)j(an)o(y)d(output)h(during)g(the)g(run.)22 b(This)15 b(parameter)267 2200 y(defaults)e(to)h([1)p Fl(e)525 2185 y Fh(\000)p Fi(6)584 2200 y Fb(1)h(0)p Ft(].)225 2261 y(|)p Fb(startPop)p Ft(\()p Fe(optional)p Ft(\))7 b(is)j(a)g(matrix)e(of)i(solutions)f(and)h(their)h(resp)q (ectiv)o(e)h(functional)d(v)n(alues.)267 2311 y(The)14 b(starting)f(p)q(opulation)f(defaults)i(to)f(a)h(randomly)d(created)k (p)q(opulation)e(created)i(with)267 2361 y Fe(initi)o(ali)o(ze)p Ft(,)225 2422 y(|)p Fb(termFN)p Ft(\()p Fe(optional)o Ft(\))h(is)j(the)h(name)e(of)g(the)i(termination)e(function)g(whic)o(h) h(defaults)g(to)267 2471 y([)p Fb('maxGenT)m(erm')p Ft(],)225 2532 y(|)p Fb(termPar)n(ams)p Ft(\()p Fe(option)o(al)p Ft(\))11 b(is)j(a)f(ro)o(w)h(matrix)e(of)h(parameters)h(whic)o(h)g (defaults)g(to)g([)p Fb(100)p Ft(],)p eop %%Page: 10 10 10 9 bop 225 125 a Fs(10)71 b Fr(\001)78 b Fs(C.)12 b(Houck)h(et)g(al.) 225 233 y Ft(|)p Fb(sele)n(ctFN)p Ft(\()p Fe(optional)o Ft(\))d(is)i(the)h(name)e(of)h(the)g(selection)i(function)e(whic)o(h)g (defaults)g(to)g([)p Fb('nor-)267 283 y(mGe)n(omSele)n(ct')p Ft(],)225 340 y(|)p Fb(sele)n(ctPar)n(ams)p Ft(\()p Fe(optional)o Ft(\))f(is)j(a)f(ro)o(w)h(matrix)e(of)h(parameters)g(for)h(the)g (selection)h(function)267 390 y(whic)o(h)e(defaults)h(to)g([)p Fb(0.08)p Ft(],)225 448 y(|)p Fb(xOverFNs)p Ft(\()p Fe(optional)o Ft(\))f(is)j(a)f(blank)g(separated)i(string)e(of)g(the)h(names)f(of)g (the)h(cross-o)o(v)o(er)267 498 y(functions)9 b(whic)o(h)g(defaults)h (to)f([)p Fb('arithXover)g(heuristicXover)h(simpleXover')p Ft(])e(for)i(the)g(\015oat)267 548 y(v)o(ersion)k(and)f([)p Fb('simpleXover)p Ft(])f(for)i(the)g(binary)g(v)o(ersion.)225 605 y(|)p Fb(xOverPar)n(ams)p Ft(\()p Fe(optional)o Ft(\))g(is)j(a)g (matrix)e(of)h(the)i(crosso)o(v)o(er)g(parameters)f(whic)o(h)g(default) 267 655 y(to)c([)p Fb(2)i(0;2)g(3;2)g(0)p Ft(])e(for)h(the)g(\015oat)g (v)o(ersion)g(and)g([)p Fb(0.6)p Ft(])f(for)g(the)i(binary)225 713 y(|)p Fb(mutFNs)p Ft(\()p Fe(optional)p Ft(\))d(is)j(a)g(blank)f (separated)j(string)e(of)g(m)o(utation)e(op)q(erators)j(whic)o(h)f(de-) 267 763 y(fault)d(to)i([)p Fb('b)n(oundaryMutation)h (multiNonUnifMutation)f(nonUnifMutation)i(unifMuta-)267 813 y(tion)l(')p Ft(])c(for)i(the)g(\015oat)g(v)o(ersion)g(and)g (['binaryMutation'])d(for)i(the)i(binary)e(v)o(ersion.)225 870 y(|)p Fb(mutPar)n(ams)p Ft(\()p Fe(optional)p Ft(\))g(is)i(a)h (matrix)e(of)h(m)o(utation)e(parameters)j(whic)o(h)g(defaults)g(to)f Fb([4)267 920 y(0;6)g(100)g(3;4)g(100)h(3;4)f(0])e Ft(for)h(the)g (\015oat)g(v)o(ersion)g(and)g([)p Fb(0.05)p Ft(])f(for)g(the)i(binary)m (.)267 994 y(GA)f(p)q(erforms)g(the)i(sim)o(ulated)d(ev)o(olution)h (using)h(the)g Fb(evalFN)g Ft(to)g(determine)f(the)i(\014tness)225 1044 y(of)d(the)h(solution)e(strings.)18 b(The)c(GA)f(uses)i(the)f(op)q (erators)g Fb(xOverFNs)f Ft(and)g Fb(mutFNs)g Ft(to)g(alter)225 1093 y(the)g(solution)f(strings)h(during)g(the)g(searc)o(h.)19 b(The)13 b(program)e(has)i(b)q(een)h(run)f(successfully)h(on)f(a)225 1143 y(DecStation)h(3100,)e(a)i(DecStation)g(5000/25,)d(Motorolla)i (604)g(and)h(an)f(HP)i(715.)267 1193 y(The)h(system)f(main)o(tains)f(a) h(high)g(degree)i(of)e(mo)q(dularit)o(y)f(and)h(\015exibilit)o(y)f(as)i (a)f(result)i(of)225 1243 y(the)f(decision)g(to)f(pass)h(the)g (selection,)g(ev)n(aluation,)e(termination)g(functions)i(to)f(the)h(GA) f(as)225 1293 y(w)o(ell)e(as)i(a)e(list)h(of)g(genetic)g(op)q(erators.) 20 b(Th)o(us,)14 b(the)h(base)f(genetic)h(algorithm)d(is)i(able)g(to)g (p)q(er-)225 1342 y(form)e(ev)o(olution)h(using)h(an)o(y)f(com)o (bination)f(of)h(selection,)i(crosso)o(v)o(er,)f(m)o(utation,)e(ev)n (aluation)225 1392 y(and)h(termination)e(functions)i(that)g(conform)e (to)i(the)g(functional)f(sp)q(eci\014cations)i(as)f(outlined)225 1442 y(b)q(elo)o(w)h(or)f(can)i(easily)e(b)q(e)h(used)h(with)f(the)g (default)g(parameters.)225 1525 y Fx(4.1)20 b(Evaluation)14 b(F)o(unction)225 1591 y Ft(The)d(ev)n(aluation)e(function)h(is)h(the)g (driving)f(force)h(b)q(ehind)g(the)g(GA.)e(The)i(ev)n(aluation)f (function)225 1641 y(is)18 b(called)g(from)e(the)i(GA)g(to)g(determine) g(the)g(\014tness)i(of)d(eac)o(h)i(solution)e(string)h(generated)225 1691 y(during)c(the)g(searc)o(h.)19 b(An)14 b(example)f(ev)n(aluation)f (function)i(is)g(giv)o(en)f(b)q(elo)o(w:)269 1764 y Fc(function)20 b([x,)h(val])g(=)g(gaDemo1Eval\(x,parame)o(ters)o(\))269 1814 y(val)g(=)g(x\(1\))g(+)h(10*sin\(5*x\(1\)\)+7*)o(cos\(4)o(*x\(2\)) o(\);)225 1887 y Ft(T)m(o)11 b(run)h(the)h Fe(ga)e Ft(using)h(this)g (test)h(function)e(use)i(either)f(of)g(the)g(follo)o(wing)d(function)j (calls)f(from)225 1937 y(Matlab.)247 2011 y Fc(bstX)21 b(=)g(ga\([0)g(10;)g(0)h(-10],'gaDemo1Eval)o('\))247 2060 y(bstX)f(=)g(ga\([0)g(10;)g(0)h(-10],'x\(1\))e(+)h (10*sin\(5*x\(1\)\)+7*c)o(os\(4*)o(x\(2\)\))o('\);)225 2134 y Ft(where)14 b(gaDemo1Ev)n(al.m)8 b(is)13 b(con)o(tains)g(the)g (ev)n(aluation)f(function)g(as)h(giv)o(en)g(ab)q(o)o(v)o(e.)k(Usually)m (,)225 2184 y(a)g(.m)f(\014le)i(will)e(b)q(e)i(more)f(con)o(v)o(enien)o (t)h(to)g(use)g(as)g(the)g(ev)n(aluation)e(function)i(will)e(b)q(e)i (more)225 2234 y(complex)d(than)i(the)g(simple)e(example)g(pro)o (vided.)25 b(This)17 b(function)f(call)f(will)g(use)j(all)d(of)h(the) 225 2283 y(default)g(parameters)h(of)g(the)g Fe(ga)g Ft(and)f(return)i(only)e(the)i(b)q(est)g(solution)e(found)g(during)h (the)225 2333 y(course)e(of)e(the)i(sim)o(ulated)d(ev)o(olution.)267 2383 y(Note)k(that)h(the)g(ev)n(aluation)e(function)i(m)o(ust)e(tak)o (e)i(t)o(w)o(o)f(parameters,)h Fb(x)f Ft(and)h Fb(options)p Ft(.)26 b Fb(x)225 2433 y Ft(is)14 b(a)h(ro)o(w)f(v)o(ector)i(of)d Fl(n)d Ft(+)g(1)k(elemen)o(ts)h(where)h(the)f(\014rst)g Fl(n)g Ft(elemen)o(ts)f(are)h(the)g(parameters)g(of)225 2483 y(in)o(terest.)k(The)14 b Fl(n)7 b Ft(+)i(1'th)j(elemen)o(t)h(is)g (the)h(v)n(alue)e(of)h(this)g(solution.)k(The)d Fb(p)n(ar)n(ameters)e Ft(matrix)225 2532 y(is)i(a)f(ro)o(w)h(matrix)e(of)p eop %%Page: 11 11 11 10 bop 1014 125 a Fs(A)13 b(GA)f(fo)o(r)h(function)e(optimization)77 b Fr(\001)70 b Fs(11)247 233 y Fc([current_generat)o(ion,)18 b(evalParams])225 305 y Ft(The)12 b(ev)n(aluation)f(function)g(m)o(ust) g(return)i(b)q(oth)f(the)g(v)n(alue)f(of)g(the)i(string,)f Fb(val)f Ft(and)h(the)g(string)225 355 y(itself,)19 b Fb(x)p Ft(.)32 b(This)19 b(is)f(done)h(so)f(that)h(an)f(ev)n(aluation)g (can)g(repair)h(or)g(impro)o(v)o(e)d(the)k(string)e(if)225 404 y(desired.)28 b(This)17 b(allo)o(ws)f(for)g(the)i(use)f(of)g(lo)q (cal)f(impro)o(v)o(emen)o(t)e(pro)q(cedures)19 b(as)e(discussed)i(in) 225 454 y(Section)28 b(3.)267 504 y(An)19 b(ev)n(aluation)e(function)i (is)g(unique)g(to)f(the)i(optimization)c(of)i(the)i(problem)e(at)g (hand)225 554 y(therefore,)d(ev)o(ery)f(time)e(the)i Fe(ga)f Ft(is)h(used)g(for)f(a)g(di\013eren)o(t)i(problem,)c(an)j(ev)n (aluation)e(function)225 604 y(m)o(ust)h(b)q(e)h(dev)o(elop)q(ed)h(to)f (determine)f(the)i(\014tness)g(of)f(the)g(individuals.)267 653 y(The)e(remainder)f(of)h(this)g(section)h(describ)q(es)h(the)e (other)h(mo)q(dules)e(of)g(the)i(genetic)g(to)q(olb)q(o)o(x.)225 703 y(While)g(GA)o(OT)h(allo)o(ws)e(for)i(easy)g(mo)q(di\014cation)e (of)h(an)o(y)g(of)g(these)j(mo)q(dules,)c(the)i(defaults)g(as)225 753 y(giv)o(en)e(w)o(ork)h(w)o(ell)f(for)g(a)h(wide)g(class)g(of)f (optimization)e(problems)i(as)h(sho)o(wn)f(in)h([Houc)o(k)f(et)i(al.) 225 803 y(1995b].)225 884 y Fx(4.2)20 b(Op)q(erato)o(r)14 b(F)o(unctions)225 951 y Ft(Op)q(erators)21 b(pro)o(vide)d(the)i(searc) o(h)g(mec)o(hanism)d(of)i(the)g(GA.)g(The)g(op)q(erators)h(are)g(used)f (to)225 1001 y(create)d(new)g(solutions)e(based)i(on)e(existing)h (solutions)g(in)f(the)h(p)q(opulation.)20 b(There)c(are)g(t)o(w)o(o)225 1051 y(basic)f(t)o(yp)q(es)h(of)f(op)q(erators,)g(crosso)o(v)o(er)i (and)e(m)o(utation.)k(Crosso)o(v)o(er)d(tak)o(es)f(t)o(w)o(o)g (individuals)225 1100 y(and)f(pro)q(duces)h(t)o(w)o(o)e(new)h (individuals)e(while)h(m)o(utation)f(alters)i(one)g(individual)e(to)h (pro)q(duce)225 1150 y(a)h(single)g(new)h(solution.)k(The)c Fe(ga)f Ft(function)g(calls)g(eac)o(h)h(of)f(the)h(op)q(erators)g(to)f (pro)q(duce)i(new)225 1200 y(solutions.)i(The)c(function)f(call)h(for)f (crosso)o(v)o(ers)j(is)d(as)h(follo)o(ws:)225 1272 y Fc([c1,c2])20 b(=)i(crossover\(p1,p2,b)o(ounds)o(,para)o(ms\))225 1344 y Ft(where)17 b Fb(p1)e Ft(is)h(the)g(\014rst)g(paren)o(t,)g([)p Fb(solution)p 909 1344 13 2 v 15 w(string)g(function)p 1192 1344 V 16 w(value)p Ft(],)f Fb(p2)h Ft(is)f(the)h(second)g(par-) 225 1394 y(en)o(t,)h Fb(b)n(ounds)g Ft(is)f(the)h(b)q(ounds)g(matrix)e (for)g(the)i(solution)f(space)h(and)f Fb(p)n(ar)n(ams)g Ft(is)h(the)g(v)o(ector)225 1443 y(of)d Fb([curr)n(ent)h(gener)n (ation,)h(op)n(er)n(atorPar)n(ams])p Ft(,)d(where)j Fb(op)n(er)n (atorPar)n(ams)e Ft(is)h(the)g(appropriate)225 1493 y(ro)o(w)f(of)g (parameters)g(for)h(this)f(crosso)o(v)o(er/m)o(utation)f(op)q(erator.) 20 b(The)15 b(\014rst)h(v)n(alue)d(of)h(the)h Fb(op-)225 1543 y(er)n(atorPar)n(ams)f Ft(is)h(frequency)h(of)e(application)g(of)g (this)h(op)q(erator.)22 b(F)m(or)14 b(the)i(\015oat)e(ga,)h(this)f(is) 225 1593 y(the)j(discrete)h(n)o(um)o(b)q(er)d(of)h(times)f(to)i(call)e (this)h(op)q(erator)h(ev)o(ery)g(generation,)g(while)f(for)g(the)225 1643 y(binary)h(ga)h(it)f(is)h(the)g(probabilit)o(y)e(of)i(application) e(to)i(eac)o(h)g(mem)o(b)q(er)e(of)i(the)g(p)q(opulation.)225 1693 y(The)f(m)o(utation)d(function)j(call)e(is)i(similar,)d(but)j (only)f(tak)o(es)h(one)g(paren)o(t)g(and)f(returns)i(one)225 1742 y(c)o(hild:)225 1814 y Fc([c1])j(=)h(mutation\(p1,bou)o(nds,p)o (arams)o(\))267 1886 y Ft(The)11 b(crosso)o(v)o(er)g(op)q(erator)h(m)o (ust)d(tak)o(e)i(all)e(four)i(argumen)o(ts,)f(the)h(t)o(w)o(o)f(paren)o (ts,)i(the)f(b)q(ounds)225 1936 y(of)i(the)h(searc)o(h)h(space,)g(the)f (information)d(on)i(ho)o(w)h(m)o(uc)o(h)e(of)h(the)i(ev)o(olution)d (has)i(tak)o(en)g(place)225 1986 y(and)20 b(an)o(y)f(other)i(sp)q (ecial)f(options)f(required.)37 b(Similarly)l(,)18 b(m)o(utations)g(m)o (ust)h(all)g(tak)o(e)h(the)225 2036 y(three)c(argumen)o(ts)e(and)g (return)i(the)f(resulting)g(c)o(hild.)20 b(T)m(able)14 b(IV)h(sho)o(ws)g(the)g(op)q(erators)g(im-)225 2086 y(plemen)o(ted)k (in)h(Matlab,)g(their)g(corresp)q(onding)g(\014le)g(names,)g(and)f(an)o (y)h(options)f(that)h(the)225 2135 y(op)q(erator)15 b(tak)o(es)g(in)f (addition)g(to)h(the)g(\014rst)g(option,)f(the)h(n)o(um)o(b)q(er)f(of)g (applications)g(p)q(er)h(gen-)225 2185 y(eration.)225 2267 y Fx(4.3)20 b(Selection)15 b(F)o(unction)225 2333 y Ft(The)c(selection)h(function)e(determines)h(whic)o(h)g(of)f(the)h (individuals)e(will)h(surviv)o(e)h(and)f(con)o(tin)o(ue)225 2383 y(on)j(to)g(the)h(next)g(generation.)k(The)c Fe(ga)g Ft(function)f(calls)g(the)h(selection)g(function)f(eac)o(h)h(gener-)225 2433 y(ation)g(after)h(all)f(the)i(new)f(c)o(hildren)g(ha)o(v)o(e)g(b)q (een)h(ev)n(aluated)e(to)h(create)i(the)e(new)h(p)q(opulation)225 2483 y(from)c(the)j(old)e(one.)267 2532 y(The)h(basic)g(function)f (call)h(used)g(in)g Fe(ga)g Ft(for)f(selection)i(is:)p eop %%Page: 12 12 12 11 bop 225 125 a Fs(12)71 b Fr(\001)78 b Fs(C.)12 b(Houck)h(et)g(al.)564 289 y Fw(T)m(able)e(IV.)35 b(Matlab)10 b(Implemen)o(ted)e(Op)q(erator)i(F)m(unctions)p 225 336 1630 2 v 224 378 2 42 v 433 365 a(Name)p 730 378 V 730 378 V 361 w(File)p 1096 378 V 1096 378 V 472 w(Options)p 1854 378 V 225 380 1630 2 v 224 421 2 42 v 250 409 a(Arithmetic)f (Crosso)o(v)o(er)p 730 421 V 176 w(arithXo)o(v)o(er.m)p 1096 421 V 160 w(none)p 1854 421 V 224 463 V 250 450 a(Heuristic)h(Crosso)o(v)o(er)p 730 463 V 205 w(heuristicXo)o(v)o(er.m) p 1096 463 V 102 w(n)o(um)o(b)q(er)f(of)i(retries)f(\(t\))p 1854 463 V 224 504 V 250 492 a(Simple)g(Crosso)o(v)o(er)p 730 504 V 239 w(simpleXo)o(v)o(er.m)p 1096 504 V 136 w(none)p 1854 504 V 224 546 V 250 533 a(Boundary)f(Mutation)p 730 546 V 196 w(b)q(oundary)m(.m)p 1096 546 V 180 w(none)p 1854 546 V 224 587 V 250 575 a(Multi-Non-Uniform)g(Mutation)p 730 587 V 47 w(m)o(ultiNonUnifMut.m)p 1096 587 V 47 w(max)h(n)o(um)g (of)i(generation)o(s,)d(shap)q(e)h(parameter)f(\(b\))p 1854 587 V 224 629 V 250 616 a(Non-Uniform)h(Mutation)p 730 629 V 144 w(nonUnifMut.m)p 1096 629 V 136 w(max)g(n)o(um)g(of)i (generation)o(s,)d(shap)q(e)h(parameter)f(\(b\))p 1854 629 V 224 670 V 250 658 a(Uniform)h(Mutation)p 730 670 V 220 w(unifMut.m)p 1096 670 V 200 w(none)p 1854 670 V 225 672 1630 2 v 225 788 a Fc([newPop])20 b(=)i(selectFunction\(o)o (ldPop)o(,opti)o(ons\))225 863 y Ft(where)d Fb(newPop)f Ft(is)g(the)h(new)f(p)q(opulation)f(selected,)j Fb(oldPop)e Ft(is)g(the)h(curren)o(t)g(p)q(opulation,)225 913 y(and)14 b Fb(options)g Ft(is)g(a)f(v)o(ector)i(for)f(an)o(y)f(other)h(optional) f(parameters.)267 963 y(Notice)g(that)h(all)e(selection)i(routines)g(m) o(ust)e(tak)o(e)h(b)q(oth)h(parameters,)f(the)h(old)f(p)q(opulation)225 1012 y(from)k(whic)o(h)i(to)g(select)h(mem)o(b)q(ers)d(from,)h(and)h (an)o(y)f(sp)q(eci\014c)j(options)d(to)h(that)g(particular)225 1062 y(selection)e(routine.)27 b(The)17 b(function)g(m)o(ust)e(return)j (the)g(new)f(p)q(opulation.)25 b(T)m(able)16 b(V)h(sho)o(ws)225 1112 y(the)g(selection)g(routines)h(that)e(ha)o(v)o(e)h(b)q(een)g (implemen)o(ted)e(in)h(GA)o(OT.)g(The)h(\014le)f(names)g(are)225 1162 y(pro)o(vided,)c(as)h(they)h(are)f(the)g(function)g(names)f(to)g (b)q(e)i(used)f(in)g(Matlab,)e(and)i(the)g(options)g(for)225 1212 y(eac)o(h)h(function)g(is)g(also)f(pro)o(vided.)572 1386 y Fw(T)m(able)e(V.)35 b(Matlab)11 b(Implemen)n(ted)d(Selection)h (F)m(unctions)p 225 1399 1554 2 v 224 1440 2 42 v 429 1428 a(Name)p 722 1440 V 722 1440 V 350 w(File)p 1072 1440 V 1072 1440 V 437 w(Options)p 1778 1440 V 225 1442 1554 2 v 224 1483 2 42 v 250 1471 a(Roulette)g(Wheel)p 722 1483 V 257 w(roulette.m)p 1072 1483 V 188 w(None)p 1778 1483 V 224 1525 V 250 1512 a(Normalized)g(Geometric)g(Select)p 722 1525 V 48 w(normGeomS)o(ele)o(ct.m)p 1072 1525 V 46 w(Probabilit)o(y)g(of)i(Selecting)e(Best)p 1778 1525 V 224 1566 V 250 1554 a(T)m(ournamen)o(t)p 722 1566 V 307 w(tourn.m)p 1072 1566 V 224 w(Num)o(b)q(er)h(of)h(individuals)e(in) i(eac)o(h)f(tournamen)o(t)p 1778 1566 V 225 1568 1554 2 v 225 1719 a Fx(4.4)20 b(Initialization)13 b(and)i(T)m(ermination)f (F)o(unctions)225 1785 y Ft(Initialization)e(of)h(a)h(p)q(opulation)f (to)h(pro)o(vide)g(the)g Fe(ga)h Ft(a)e(starting)h(p)q(oin)o(t)g(is)g (usually)f(done)i(b)o(y)225 1835 y(generating)e(random)e(strings)i (within)f(the)h(searc)o(h)h(space,)f(and)g(this)g(is)f(the)h(default)g (b)q(eha)o(vior)225 1885 y(of)18 b(the)h Fe(ga)g Ft(function.)32 b(Ho)o(w)o(ev)o(er,)20 b(it)e(is)h(p)q(ossible)g(to)f('seed')h(the)g (initial)e(p)q(opulation)h(with)225 1934 y(individuals,)13 b(or)h(generate)i(solutions)e(in)g(some)g(other)h(form.)k(The)c Fe(ga)f Ft(allo)o(ws)g(for)g(this)h(with)225 1984 y(the)j(optional)e Fb(startPop)i Ft(parameter)f(whic)o(h)g(pro)o(vides)h(the)g Fe(ga)g Ft(with)f(an)g(explicit)g(starting)225 2034 y(p)q(opulation.) 267 2084 y(The)e(termination)f(function)g(determines)i(when)g(to)f (stop)g(the)h(sim)o(ulated)d(ev)o(olution)i(and)225 2134 y(return)k(the)g(resulting)g(p)q(opulation.)30 b(The)18 b Fe(ga)h Ft(function)e(calls)h(the)h(termination)e(function)225 2184 y(once)d(ev)o(ery)g(generation)g(after)g(the)g(application)e(of)h (all)f(of)h(the)h(op)q(erator)g(functions)f(and)h(the)225 2233 y(ev)n(aluation)e(function)i(for)g(the)g(resulting)g(c)o(hildren.) k(The)d(function)e(call)g(is)h(of)f(the)i(format:)225 2308 y Fc(done)21 b(=)h(terminateFuncti)o(on\(op)o(tions)o(,best)o (Pop,p)o(op\))225 2383 y Ft(where)d Fb(options)f Ft(is)g(a)f(v)o(ector) i(of)e(termination)f(options)i(the)g(\014rst)g(of)g(whic)o(h)f(is)h (alw)o(a)o(ys)f(the)225 2433 y(curren)o(t)g(generation.)22 b Fb(b)n(estPop)15 b Ft(is)g(a)g(matrix)e(of)i(the)h(b)q(est)g (individuals)e(and)h(the)g(resp)q(ectiv)o(e)225 2483 y(generation)f(it)g(w)o(as)g(found.)k Fb(p)n(op)d Ft(is)f(the)h(curren) o(t)g(p)q(opulation.)j(T)m(able)13 b(VI)h(sho)o(ws)h(the)g(termi-)225 2532 y(nation)c(routines)h(that)g(ha)o(v)o(e)f(b)q(een)i(implemen)o (ted)c(in)i(GA)o(OT.)g(The)h(\014le)g(names)e(are)i(pro)o(vided)p eop %%Page: 13 13 13 12 bop 1014 125 a Fs(A)13 b(GA)f(fo)o(r)h(function)e(optimization)77 b Fr(\001)70 b Fs(13)225 233 y Ft(as)19 b(they)g(are)g(the)g(function)g (names)e(to)i(b)q(e)g(used)h(in)e(Matlab,)h(and)f(the)h(options)g(for)f (eac)o(h)225 283 y(function)c(is)f(also)h(pro)o(vided.)539 473 y Fw(T)m(able)d(VI.)35 b(Matlab)11 b(Implemen)o(te)o(d)e(T)m (ermination)g(F)m(unctions)p 225 486 1589 2 v 224 527 2 42 v 471 515 a(Name)p 806 527 V 806 527 V 396 w(File)p 1165 527 V 1165 527 V 413 w(Options)p 1812 527 V 225 529 1589 2 v 224 570 2 42 v 250 558 a(T)m(erminate)g(at)j(Sp)q (eci\014ed)d(Generation)p 806 570 V 46 w(maxGenT)m(erm.m)p 1165 570 V 107 w(\014nal)h(generation)p 1812 570 V 224 612 V 250 599 a(T)m(erminate)f(at)j(Optimal)e(or)h(max)f(gen)p 806 612 V 55 w(maxGenOptT)m(erm.m)p 1165 612 V 46 w(\014nal)g (generation,)f(optimal)g(v)n(alue,)h(epsilon)p 1812 612 V 225 614 1589 2 v 225 783 a Fx(4.5)20 b(Online)14 b(T)m(uto)o(rial)225 849 y Ft(Sev)o(eral)g(Matlab)g(demos)f(are)i(pro)o(vided)f(as)h(a)f (tutorial)f(to)h(the)h(genetic)g(algorithm)d(to)q(olb)q(o)o(x.)225 899 y(The)19 b(\014rst)h(demo,)f Fb(gademo1)p Ft(,)i(giv)o(es)e(a)f (brief)h(in)o(tro)q(duction)g(to)g(GAs)g(using)g(a)g(simple)e(one)225 949 y(v)n(ariable)d(function.)22 b(The)16 b(second)h(demo,)d Fb(gademo2)p Ft(,)i(uses)h(a)e(more)f(complicated)g(example,)225 999 y(the)e(4-dimensional)d(Corana)i(function,)g(to)h(further)g (illustrate)g(the)g(use)g(of)f(the)i(to)q(olb)q(o)o(x.)j(The)225 1049 y(\014nal)e(demo,)g Fb(gademo3)p Ft(,)i(is)e(a)h(reference)i(to)e (the)h(format)d(used)j(for)e(the)i(op)q(erator,)f(selection,)225 1098 y(ev)n(aluation,)d(and)i(termination)e(functions.)225 1196 y Fx(5.)20 b(SUMMARY)225 1262 y Ft(A)f(genetic)h(algorithm)c (capable)j(of)f(either)i(using)e(a)h(\015oating)f(p)q(oin)o(t)g (represen)o(tation)j(or)e(a)225 1312 y(binary)e(represen)o(tation)j (has)e(b)q(een)h(implemen)o(ted)d(as)i(a)f(Matlab)g(to)q(olb)q(o)o(x.) 30 b(This)17 b(to)q(olb)q(o)o(x)225 1362 y(pro)o(vides)12 b(a)f(mo)q(dular,)f(extensible,)j(p)q(ortable)f(algorithm)d(in)i(an)g (en)o(vironmen)o(t)g(ric)o(h)h(in)f(math-)225 1412 y(ematical)j (capabilities.)23 b(The)16 b(to)q(olb)q(o)o(x)e(has)i(b)q(een)h(tested) h(on)d(a)g(series)j(of)d(non-linear,)g(non-)225 1461 y(con)o(v)o(ex,)f(m)o(ulti-modal)d(functions.)20 b(The)15 b(results)h(of)e(these)i(tests)g(sho)o(w)e(that)h(the)g(algorithm)225 1511 y(is)f(capable)g(of)f(\014nding)g(b)q(etter)j(solutions)d(with)g (less)i(function)e(ev)n(aluations)g(than)h(sim)o(ulated)225 1561 y(annealing.)225 1650 y Fw(REFERENCES)265 1708 y Fa(Bersini,)h(H.)f(and)g(Renders,)g(B.)f Fw(1994.)f(Hybridizing)g (genetic)g(algorithms)f(with)i(hill-clim)o(bing)d(meth-)328 1749 y(o)q(ds)i(for)h(global)f(optimization)o(:)17 b(Tw)o(o)d(p)q (ossible)e(w)o(a)o(ys.)h(In)g Fu(1994)j(IEEE)e(International)h(Symp)n (osium)328 1791 y(Evolutionary)f(Computation)p Fw(,)e(Orlando,)e(Fl,)h (pp.)g(312{317.)265 1837 y Fa(Corana,)h(A.)p Fw(,)d Fa(Mar)o(chesi,)i (M.)p Fw(,)e Fa(Mar)n(tini,)h(C.)p Fw(,)f Fa(and)h(Ridella,)g(S.)f Fw(1987.)e(Minimizing)g(m)o(ultimo)q(dal)f(func-)328 1879 y(tions)i(of)i(con)o(tin)o(uous)c(v)n(ariables)i(with)h(the)g (\\sim)o(ulated)e(annealing")g(algorithm.)f Fu(A)o(CM)11 b(T)m(r)n(ansactions)328 1921 y(on)i(Mathematic)n(al)h(Softwar)n(e)h (13,)d Fw(3,)f(262{280.)265 1967 y Fa(D)o(a)m(vis,)i(L.)e Fw(1991.)f Fu(The)j(Handb)n(o)n(ok)i(of)e(Genetic)h(A)o(lgorithms)p Fw(.)e(V)m(an)g(Nostrand)e(Reingold,)f(New)j(Y)m(ork.)265 2014 y Fa(Goldber)o(g,)20 b(D.)c Fw(1989.)g Fu(Genetic)i(A)o(lgorithms) h(in)f(Se)n(ar)n(ch,)i(Optimization,)g(and)e(Machine)h(L)n(e)n(arning)p Fw(.)328 2055 y(Addison-W)m(esley)m(.)265 2102 y Fa(Holland,)d(J.)e Fw(1975.)e Fu(A)n(daptation)17 b(in)d(natur)n(al)i(and)g(arti\014cial)f (systems)p Fw(.)f(The)g(Univ)o(ersit)o(y)e(of)h(Mic)o(higan)328 2143 y(Press,)d(Ann)i(Arb)q(or.)265 2190 y Fa(Houck,)19 b(C.)p Fw(,)e Fa(Joines,)h(J.)p Fw(,)g Fa(and)f(Ka)n(y,)h(M.)e Fw(1995a.)f(A)i(comparison)d(of)i(genetic)e(algorithms,)h(random)328 2232 y(restart,)9 b(and)g(t)o(w)o(o-opt)g(switc)o(hing)g(for)h(solving) f(large)g(lo)q(cation-allocati)o(on)e(problems.)h Fu(Computers)k(&)328 2273 y(Op)n(er)n(ations)i(R)n(ese)n(ar)n(ch)i(forthc)n(oming)e(in)f(sp) n(e)n(cial)h(issue)e(on)h(evolution)h(c)n(omputation)p Fw(.)265 2320 y Fa(Houck,)e(C.)p Fw(,)e Fa(Joines,)h(J.)p Fw(,)f Fa(and)h(Ka)n(y,)h(M.)e Fw(1995b.)f(The)h(e\013ectiv)o(e)e(use)i (of)g(lo)q(cal)f(impro)o(v)o(emen)n(t)e(pro)q(cedures)328 2361 y(in)13 b(conjunction)d(with)j(genetic)f(algorithms.)e(T)m(ec)o (hnical)i(Rep)q(ort)g(NCSU-IE)i(T)m(ec)o(hnical)e(Rep)q(ort)g(95,)328 2403 y(North)f(Carolina)f(State)g(Univ)o(ersit)o(y)m(.)265 2449 y Fa(Joines,)j(J.)f(and)h(Houck,)g(C.)f Fw(1994.)f(On)h(the)g(use) f(of)h(non-stationa)o(ry)d(p)q(enalt)o(y)h(functions)g(to)i(solv)o(e)f (con-)328 2491 y(strained)d(optimization)f(problems)h(with)j(genetic)d (algorithms.)g(In)i Fu(1994)j(IEEE)f(International)g(Sym-)328 2532 y(p)n(osium)h(Evolutionary)h(Computation)p Fw(,)e(Orlando,)e(Fl,)h (pp.)g(579{584.)p eop %%Page: 14 14 14 13 bop 225 125 a Fs(14)71 b Fr(\001)78 b Fs(C.)12 b(Houck)h(et)g(al.)265 233 y Fa(Michalewicz,)19 b(Z.)e Fw(1994.)f Fu(Genetic)i(A)o(lgorithms)i(+)e(Data)g(Structur)n(es)h(=)f (Evolution)i(Pr)n(o)n(gr)n(ams)p Fw(.)e(AI)328 274 y(Series.)10 b(Springer-V)m(erla)o(g,)e(New)13 b(Y)m(ork.)p eop %%Trailer end userdict /end-hook known{end-hook}if %%EOF
PostScript
3
xingshulicc/Using-Genetic-Algorithm-to-improve-Artificial-Neural-Network
gaot/gaotv5.ps
[ "MIT" ]
<div> <h1>{{yield to='title'}}</h1> <div>{{yield to='body'}}</div> </div>
Handlebars
3
asksyllable/storybook
examples/ember-cli/app/templates/components/named-block.hbs
[ "MIT" ]
#!/usr/bin/env io // Try running this script with some command line arguments. Example: // ./io CommandLineArgs.io a b c d writeln("Command line arguments:") System args foreach(println)
Io
4
akluth/io
samples/misc/CommandLineArgs.io
[ "BSD-3-Clause" ]
def g: 1;
JSONiq
0
aakropotkin/jq
tests/modules/home2/.jq/g.jq
[ "CC-BY-3.0" ]
%%% %%% Authors: %%% Martin Henz ([email protected]) %%% Christian Schulte <[email protected]> %%% %%% Copyright: %%% Martin Henz, 1997 %%% Christian Schulte, 1997 %%% %%% Last change: %%% $Date$ by $Author$ %%% $Revision$ %%% %%% This file is part of Mozart, an implementation %%% of Oz 3 %%% http://www.mozart-oz.org %%% %%% See the file "LICENSE" or %%% http://www.mozart-oz.org/LICENSE.html %%% for information on usage and redistribution %%% of this file, and for a DISCLAIMER OF ALL %%% WARRANTIES. %%% %% %% For %% local %% some speedup if +1 is statically known proc {HelpPlusOne C To P} if C=<To then {P C} {HelpPlusOne C+1 To P} end end %% some speedup if -1 is statically known proc {HelpMinusOne C To P} if C>=To then {P C} {HelpMinusOne C-1 To P} end end proc {HelpPlus C To Step P} if C=<To then {P C} {HelpPlus C+Step To Step P} end end proc {HelpMinus C To Step P} if C>=To then {P C} {HelpMinus C+Step To Step P} end end in proc {For From To Step P} if Step==1 then {HelpPlusOne From To P} elseif Step==~1 then {HelpMinusOne From To P} elseif Step>0 then {HelpPlus From To Step P} else {HelpMinus From To Step P} end end end local fun {HelpPlusOne C To P In} if C=<To then {HelpPlusOne C+1 To P {P In C}} else In end end fun {HelpMinusOne C To P In} if C>=To then {HelpMinusOne C-1 To P {P In C}} else In end end fun {HelpPlus C To Step P In} if C=<To then {HelpPlus C+Step To Step P {P In C}} else In end end fun {HelpMinus C To Step P In} if C>=To then {HelpMinus C+Step To Step P {P In C}} else In end end in fun {ForThread From To Step P In} if Step==1 then {HelpPlusOne From To P In} elseif Step==~1 then {HelpMinusOne From To P In} elseif Step>0 then {HelpPlus From To Step P In} else {HelpMinus From To Step P In} end end end local proc {MultiFor Size P} proc {Help LSize Index} case LSize of nil then {P {Reverse Index}} [] R|T then Low#High#Step=R in {For Low High Step proc {$ I} {Help T I|Index} end} end end in {Help Size nil} end fun {MultiForThread Size P In} fun {Help LSize Index InH} case LSize of nil then {P InH {Reverse Index}} [] R|T then Low#High#Step=R in {ForThread Low High Step fun {$ LIn I} {Help T I|Index LIn} end InH} end end in {Help Size nil In} end in Loop=loop('for': For forThread: ForThread multiFor: MultiFor multiForThread: MultiForThread) end
Oz
4
Ahzed11/mozart2
lib/main/base/Loop.oz
[ "BSD-2-Clause" ]
/*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. * * %sccs.include.proprietary.c% * * @(#)gram.io 5.2 (Berkeley) 04/12/91 */ /* Input/Output Statements */ io: io1 { endio(); } ; io1: iofmove ioctl | iofmove unpar_fexpr { ioclause(IOSUNIT, $2); endioctl(); } | iofmove SSTAR { ioclause(IOSUNIT, PNULL); endioctl(); } | iofmove SPOWER { ioclause(IOSUNIT, IOSTDERR); endioctl(); } | iofctl ioctl | read ioctl { doio(PNULL); } | read infmt { doio(PNULL); } | read ioctl inlist { doio($3); } | read infmt SCOMMA inlist { doio($4); } | read ioctl SCOMMA inlist { doio($4); } | write ioctl { doio(PNULL); } | write ioctl outlist { doio($3); } | print { doio(PNULL); } | print SCOMMA outlist { doio($3); } ; iofmove: fmkwd end_spec in_ioctl ; fmkwd: SBACKSPACE { iostmt = IOBACKSPACE; } | SREWIND { iostmt = IOREWIND; } | SENDFILE { iostmt = IOENDFILE; } ; iofctl: ctlkwd end_spec in_ioctl ; ctlkwd: SINQUIRE { iostmt = IOINQUIRE; } | SOPEN { iostmt = IOOPEN; } | SCLOSE { iostmt = IOCLOSE; } ; infmt: unpar_fexpr { ioclause(IOSUNIT, PNULL); ioclause(IOSFMT, $1); endioctl(); } | SSTAR { ioclause(IOSUNIT, PNULL); ioclause(IOSFMT, PNULL); endioctl(); } ; ioctl: SLPAR fexpr SRPAR { if($2->headblock.vtype == TYCHAR) { ioclause(IOSUNIT, PNULL); ioclause(IOSFMT, $2); } else ioclause(IOSUNIT, $2); endioctl(); } | SLPAR ctllist SRPAR { endioctl(); } ; ctllist: ioclause | ctllist SCOMMA ioclause ; ioclause: fexpr { ioclause(IOSPOSITIONAL, $1); } | SSTAR { ioclause(IOSPOSITIONAL, PNULL); } | SPOWER { ioclause(IOSPOSITIONAL, IOSTDERR); } | nameeq expr { ioclause($1, $2); } | nameeq SSTAR { ioclause($1, PNULL); } | nameeq SPOWER { ioclause($1, IOSTDERR); } ; nameeq: SNAMEEQ { $$ = iocname(); } ; read: SREAD end_spec in_ioctl { iostmt = IOREAD; } ; write: SWRITE end_spec in_ioctl { iostmt = IOWRITE; } ; print: SPRINT end_spec fexpr in_ioctl { iostmt = IOWRITE; ioclause(IOSUNIT, PNULL); ioclause(IOSFMT, $3); endioctl(); } | SPRINT end_spec SSTAR in_ioctl { iostmt = IOWRITE; ioclause(IOSUNIT, PNULL); ioclause(IOSFMT, PNULL); endioctl(); } ; inlist: inelt { $$ = mkchain($1, CHNULL); } | inlist SCOMMA inelt { $$ = hookup($1, mkchain($3, CHNULL)); } ; inelt: lhs { $$ = (tagptr) $1; } | SLPAR inlist SCOMMA dospec SRPAR { $$ = (tagptr) mkiodo($4,$2); } ; outlist: uexpr { $$ = mkchain($1, CHNULL); } | other { $$ = mkchain($1, CHNULL); } | out2 ; out2: uexpr SCOMMA uexpr { $$ = mkchain($1, mkchain($3, CHNULL) ); } | uexpr SCOMMA other { $$ = mkchain($1, mkchain($3, CHNULL) ); } | other SCOMMA uexpr { $$ = mkchain($1, mkchain($3, CHNULL) ); } | other SCOMMA other { $$ = mkchain($1, mkchain($3, CHNULL) ); } | out2 SCOMMA uexpr { $$ = hookup($1, mkchain($3, CHNULL) ); } | out2 SCOMMA other { $$ = hookup($1, mkchain($3, CHNULL) ); } ; other: complex_const { $$ = (tagptr) $1; } | SLPAR uexpr SCOMMA dospec SRPAR { $$ = (tagptr) mkiodo($4, mkchain($2, CHNULL) ); } | SLPAR other SCOMMA dospec SRPAR { $$ = (tagptr) mkiodo($4, mkchain($2, CHNULL) ); } | SLPAR out2 SCOMMA dospec SRPAR { $$ = (tagptr) mkiodo($4, $2); } ; in_ioctl: { startioctl(); } ;
Io
3
weiss/original-bsd
usr.bin/f77/pass1.vax/gram.io
[ "Unlicense" ]
module endpoint_phy_wrapper ( input clk_sys_i, input clk_ref_i, input clk_rx_i, input rst_n_i, IWishboneMaster.master src, IWishboneSlave.slave snk, IWishboneMaster.master sys, output [9:0] td_o, input [9:0] rd_i, output txn_o, output txp_o, input rxn_i, input rxp_i ); wire rx_clock; parameter g_phy_type = "GTP"; wire[15:0] gtx_data; wire [1:0]gtx_k; wire gtx_disparity; wire gtx_enc_error; wire [15:0] grx_data; wire grx_clk; wire [1:0]grx_k; wire grx_enc_error; wire [3:0] grx_bitslide; wire gtp_rst; wire tx_clock; generate if(g_phy_type == "TBI") begin assign rx_clock = clk_ref_i; assign tx_clock = clk_rx_i; wr_tbi_phy U_Phy ( .serdes_rst_i (gtp_rst), .serdes_loopen_i(1'b0), .serdes_prbsen_i(1'b0), .serdes_enable_i(1'b1), .serdes_syncen_i(1'b1), .serdes_tx_data_i (gtx_data[7:0]), .serdes_tx_k_i (gtx_k[0]), .serdes_tx_disparity_o (gtx_disparity), .serdes_tx_enc_err_o (gtx_enc_error), .serdes_rx_data_o (grx_data[7:0]), .serdes_rx_k_o (grx_k[0]), .serdes_rx_enc_err_o (grx_enc_error), .serdes_rx_bitslide_o (grx_bitslide), .tbi_refclk_i (clk_ref_i), .tbi_rbclk_i (clk_rx_i), .tbi_td_o (td_o), .tbi_rd_i (rd_i), .tbi_syncen_o (), .tbi_loopen_o (), .tbi_prbsen_o (), .tbi_enable_o () ); end else if (g_phy_type == "GTX") begin // if (g_phy_type == "TBI") wr_gtx_phy_virtex6 #( .g_simulation(1) ) U_PHY ( .clk_ref_i(clk_ref_i), .tx_clk_o (tx_clock), .tx_data_i (gtx_data), .tx_k_i (gtx_k), .tx_disparity_o (gtx_disparity), .tx_enc_err_o(gtx_enc_error), .rx_rbclk_o (rx_clock), .rx_data_o (grx_data), .rx_k_o (grx_k), .rx_enc_err_o (grx_enc_error), .rx_bitslide_o (), .rst_i (!rst_n_i), .loopen_i (1'b0), .pad_txn_o (txn_o), .pad_txp_o (txp_o), .pad_rxn_i (rxn_i), .pad_rxp_i (rxp_i) ); end else if (g_phy_type == "GTP") begin // if (g_phy_type == "TBI") assign #1 tx_clock = clk_ref_i; wr_gtp_phy_spartan6 #( .g_simulation(1) ) U_PHY ( .gtp_clk_i(clk_ref_i), .ch0_ref_clk_i(clk_ref_i), .ch0_tx_data_i (gtx_data[7:0]), .ch0_tx_k_i (gtx_k[0]), .ch0_tx_disparity_o (gtx_disparity), .ch0_tx_enc_err_o(gtx_enc_error), .ch0_rx_rbclk_o (rx_clock), .ch0_rx_data_o (grx_data[7:0]), .ch0_rx_k_o (grx_k[0]), .ch0_rx_enc_err_o (grx_enc_error), .ch0_rx_bitslide_o (), .ch0_rst_i (!rst_n_i), .ch0_loopen_i (1'b0), .pad_txn0_o (txn_o), .pad_txp0_o (txp_o), .pad_rxn0_i (rxn_i), .pad_rxp0_i (rxp_i) ); end // else: !if(g_phy_type == "TBI") endgenerate wr_endpoint #( .g_simulation (1), .g_pcs_16bit(g_phy_type == "GTX" ? 1: 0), .g_rx_buffer_size (1024), .g_with_rx_buffer(0), .g_with_timestamper (1), .g_with_dmtd (0), .g_with_dpi_classifier (1), .g_with_vlans (0), .g_with_rtu (0) ) DUT ( .clk_ref_i (clk_ref_i), .clk_sys_i (clk_sys_i), .clk_dmtd_i (clk_ref_i), .rst_n_i (rst_n_i), .pps_csync_p1_i (1'b0), .phy_rst_o (), .phy_loopen_o (), .phy_enable_o (), .phy_syncen_o (), .phy_ref_clk_i (tx_clock), .phy_tx_data_o (gtx_data), .phy_tx_k_o (gtx_k), .phy_tx_disparity_i (gtx_disparity), .phy_tx_enc_err_i (gtx_enc_error), .phy_rx_data_i (grx_data), .phy_rx_clk_i (rx_clock), .phy_rx_k_i (grx_k), .phy_rx_enc_err_i (grx_enc_error), .phy_rx_bitslide_i (5'b0), .src_dat_o (snk.dat_i), .src_adr_o (snk.adr), .src_sel_o (snk.sel), .src_cyc_o (snk.cyc), .src_stb_o (snk.stb), .src_we_o (snk.we), .src_stall_i (snk.stall), .src_ack_i (snk.ack), .src_err_i(1'b0), .snk_dat_i (src.dat_o[15:0]), .snk_adr_i (src.adr[1:0]), .snk_sel_i (src.sel[1:0]), .snk_cyc_i (src.cyc), .snk_stb_i (src.stb), .snk_we_i (src.we), .snk_stall_o (src.stall), .snk_ack_o (src.ack), .snk_err_o (src.err), .snk_rty_o (src.rty), .txtsu_ack_i (1'b1), .rtu_full_i (1'b0), .rtu_almost_full_i (1'b0), .rtu_rq_strobe_p1_o (), .rtu_rq_smac_o (), .rtu_rq_dmac_o (), .rtu_rq_vid_o (), .rtu_rq_has_vid_o (), .rtu_rq_prio_o (), .rtu_rq_has_prio_o (), .wb_cyc_i(sys.cyc), .wb_stb_i (sys.stb), .wb_we_i (sys.we), .wb_sel_i(sys.sel), .wb_adr_i(sys.adr[7:0]), .wb_dat_i(sys.dat_o), .wb_dat_o(sys.dat_i), .wb_ack_o (sys.ack) ); endmodule // endpoint_phy_wrapper
SystemVerilog
3
JavascriptID/sourcerer-app
src/test/resources/samples/langs/SystemVerilog/endpoint_phy_wrapper.svh
[ "MIT" ]
#!/usr/bin/env bash # Generate type stubs for .proto definition files. # This should be run from as # ./gen_proto_typestubs.sh # (i.e., from inside the proto/ directory) # assumes mypy-protobuf installed to ~/.local; i.e. via # pip3 install mypy-protobuf --user set -euxo pipefail MYPY_PROTOBUF_HOME="${1:-${HOME}/.local/bin}" pushd ../../ buck run fbsource//third-party/protobuf:protoc -- --plugin=protoc-gen-mypy="${MYPY_PROTOBUF_HOME}"/protoc-gen-mypy --mypy_out=./ caffe2/proto/*.proto popd # get rid of 'builtins.' prefix, which pyre does not like sed -E -i 's/builtins\.//g' ./*.pyi # mypy-protobuf references types from other mypy-protobuf-generated stubs as # 'type.V', but it should just be 'type', so we get rid of the '.V' suffix # when it's not followed by parens to indicate a particular enum value. sed -E -i 's/\.V([^(_[:alnum:]])/\1/g' ./*.pyi # --------------------------- # Freedom-patched DeviceTypes # --------------------------- # # In order to make DeviceTypes like CPU, CUDA, etc. directly accessible from # the caffe2_pb2 module, they are currently freedom-patched into it in # caffe2/python/__init__.py. This is not ideal: it would be better if these # were autogenerated when the protobuf definitions were created by using # allow_alias = true in the DeviceTypeProto definition in caffe2.proto. # # However, it is impossible to do this currently without significant effort. # The issue is that the generated proto constants would conflict with various # constants defined in the C++ caffe2 codebase (`caffe2_pb2.h`). We cannot # simply remove these constants and replace them with the caffe2 # DeviceTypeProto constants, because a huge portion of code expects # at::DeviceType constants defined in `core/DeviceType.h` (apparently # duplicated to avoid having to figure out how to autogenerate the protobuf # definitions using cmake for ATen). # # Instead, we make a best-effort to add additional definitions in # `caffe2_pb2.py` by looking for any freedom-patched constants in # `caffe2/python/__init__.py` and making sure they have corresponding stubs in # the pyi (see `gen_proto_typestubs_helper.py`). python3 ./gen_proto_typestubs_helper.py >> caffe2_pb2.pyi
Shell
4
Hacky-DH/pytorch
caffe2/proto/gen_proto_typestubs.sh
[ "Intel" ]
<!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" style="-webkit-text-size-adjust:none;"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta name="HandheldFriendly" content="true" /> <meta name="viewport" content="width=device-width; initial-scale=0.666667; maximum-scale=0.666667; user-scalable=0" /> <meta name="viewport" content="width=device-width" /> <title></title> <style type="text/css">@media all and (max-width:590px) { *[class].responsive { width:290px !important; } *[id]#center { width:50%; margin:0 auto; display:table; } *[class].display-none { display:none !important; } *[class].display-block { display:block !important; } *[class].fix-table-content { table-layout:fixed; } *[class].hide-for-mobile { display:none !important; } *[class].show-for-mobile { width:auto !important; max-height:none !important; visibility:visible !important; overflow:visible !important; float:none !important; height:auto !important; display:block !important; } *[class].responsive_header { display:table-cell !important; width:100% !important; color:#0077b5 !important; font-size:12px !important; } *[class].res-font10 { font-size:10px !important; } *[class].res-font12 { font-size:12px !important; } *[class].res-font13 { font-size:13px !important; } *[class].res-font14 { font-size:14px !important; } *[class].res-font16 { font-size:16px !important; } *[class].res-font18 { font-size:18px !important; } *[class].res-font20 { font-size:20px !important; } *[class].res-width10 { width:10px !important; } *[class].res-width20 { width:20px !important; } *[class].res-width25 { width:25px !important; } *[class].res-width120 { width:120px !important; } *[class].res-height0 { height:0px !important; } *[class].res-height10 { height:10px !important; } *[class].res-height20 { height:20px !important; } *[class].res-height30 { height:30px !important; } *[class].res-img40 { width:40px !important; height:40px !important; } *[class].res-img60 { width:60px !important; height:60px !important; } *[class].res-img75 { width:75px !important; height:75px !important; } *[class].res-img100 { width:100px !important; height:100px !important; } *[class].res-img150 { width:150px !important; height:150px !important; } *[class].res-img320 { width:320px !important; height:auto !important; } *[class].hideIMG { display:none; height:0px !important; width:0px !important; } *[class].responsive-spacer { width:10px !important; } *[class].header-spacer { table-layout:auto !important; width:250px !important; } *[class].header-spacer td, *[class].header-spacer div { width:250px !important; } *[class].center-content { text-align:center !important; } *[class].responsive-fullwidth { width:100% !important; } *[class].cellpadding-none, *[class].cellpadding-none table, *[class].cellpadding-none table td { border-collapse:collapse !important; padding:0 !important; } *[class].remove-margin { margin:0 !important; } *[class].remove-border { border:none !important; } table[class].responsive:not(.responsive-footer) { width:100% !important; } *[class].responsive-hidden { display:none !important; max-height:0 !important; font-size:0 !important; overflow:hidden !important; mso-hide:all !important; } *[class].responsive-body { width:100% !important; } *[class].responsive-logo, *[class].responsive-article, *[class].responsive-footer, *[class].responsive-headline { margin:0 auto; text-align:0 left; width:268px !important; } *[class].text-link { color:#008CC9; text-decoration:none; } *[class].res-font16 { font-size:16px !important; line-height:20px !important; } @media only screen and (max-width:532px) { *[class].responsive-logo, *[class].responsive-article, *[class].responsive-footer, *[class].responsive-headline { width:96% !important; max-width:532px; text-align:left; } } *[class].responsive-promo { margin:0 auto; text-align:0 left; width:100% !important; max-width:532px; text-align:left; } *[class].mobile-hidden { display:none; } } @media all and (-webkit-min-device-pixel-ratio:1.5) { *[id]#base-header-logo { background-image:url(https://static.licdn.com/scds/common/u/images/email/logos/logo_linkedin_tm_email_197x48_v1.png) !important; background-size:95px; background-repeat:no-repeat; width:95px !important; height:21px !important; } *[id]#base-header-logo img { display:none; } *[id]#base-header-logo a { height:21px !important; } *[id]#base-header-logo-china { background-image:url(https://static.licdn.com/scds/common/u/images/email/logos/logo_linkedin_tm_china_email_266x42_v1.png) !important; background-size:133px; background-repeat:no-repeat; width:133px !important; height:21px !important; } *[id]#base-header-logo-china img { display:none; } *[id]#base-header-logo-china a { height:21px !important; } } </style> </head> <body style="background-color:#dfdfdf;padding:0;margin:0 auto;width:100%;"> <span style="visibility:hidden;color:transparent;display:none !important;mso-hide:all;width:0;font-size:1px;opacity:0;height:0;"></span> <table border="0" cellspacing="0" cellpadding="0" style="background-color:#dfdfdf;font-family:Helvetica,Arial,sans-serif;" width="100%" bgcolor="#dfdfdf"> <tbody> <tr> <td> <table border="0" cellspacing="0" cellpadding="0" style="background-color:#dfdfdf;font-family:Helvetica,Arial,sans-serif;" width="1" bgcolor="#dfdfdf"> <tbody> <tr> <td> <div style="height:5px;font-size:5px;line-height:5px;"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="table-layout:fixed;font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td align="center"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;min-width:290px;" width="100%" class="responsive"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" class="responsive-body"> <tbody> <tr> <td align="center"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-logo"> <tbody> <tr> <td align="left"> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:7px;font-size:7px;line-height:7px"> &nbsp; </div></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" class="responsive-logo" bgcolor="#DFDFDF" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:8px;font-size:8px;line-height:8px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td valign="middle" align="left" height="35" width="260"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" class="responsive-logo"> <tbody> <tr> <td align="left" valign="middle" width="95" height="21" id="base-header-logo"><a style="text-decoration:none;cursor:pointer;border:none;display:block;height:21px;width:100%;" href="https://www.linkedin.com/comm/nhome/?midToken=AQHp7WCc2qHESg&amp;trk=eml-b2_content_ecosystem_digest-null-10-null&amp;trkEmail=eml-b2_content_ecosystem_digest-null-10-null-null-6m81ta%7Eihd6z5md%7E7"><img src="https://static.licdn.com/scds/common/u/images/email/logos/logo_linkedin_tm_email_95x21_v1.png" width="95" height="21" alt="LinkedIn" style="border:none;text-decoration:none;" /></a></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table width="1" border="0" cellspacing="0" cellpadding="0" class="responsive-logo" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:8px;font-size:8px;line-height:8px"> &nbsp; </div></td> </tr> </tbody> </table> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:12px;font-size:12px;line-height:12px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" bgcolor="#ffffff" class="responsive-body" align="center"> <tbody> <tr> <td align="center"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" class="responsive-article"> <tbody> <tr> <td align="center"> <table width="1" border="0" cellspacing="0" cellpadding="1" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:25px;font-size:25px;line-height:25px"> &nbsp; </div></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" class="responsive-article" align="center"> <tbody> <tr> <td align="center"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%"> <tbody> <tr> <td align="center" data-qa="section_votd"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body" align="left"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-article"> <tbody> <tr> <td align="left" data-qa="votd_author_link" style="color:#666666;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/e/v2?e=6m81ta-ihd6z5md-7&amp;t=plh&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=11&amp;m=hero&amp;urlhash=EPM7&amp;url=https%3A%2F%2Fwww%2Elinkedin%2Ecom%2Ftoday%2Fauthor%2F83392170" style="color:#303030;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:right;">Jake Anderson, Co-Founder at FertilityIQ</a></td> </tr> <tr> <td colspan="3"> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-article"> <tbody> <tr> <td align="left" data-qa="votd_article_title_link"></td> </tr> <tr> <td align="left" style="margin-left:0;color:#008CC9;font-weight:100;font-size:22px;line-height:26px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;t=plh&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=12&amp;m=hero&amp;urlhash=Os_Q&amp;url=https%3A%2F%2Fwww%2Elinkedin%2Ecom%2Fpulse%2Fpaternity-leave-its-harder-than-ever-mark-zuckerberg-you-anderson" title="Paternity Leave Or Not, It’s Harder Than Ever For Zuckerberg (And You) To Be A Good Father" style="margin-left:0;color:#008CC9;font-weight:100;text-decoration:none;text-align:left;">Paternity Leave Or Not, It’s Harder Than Ever For Zuckerberg (And You) To Be A Good Father</a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-article"> <tbody> <tr> <td align="left" data-qa="votd_article_title_link"></td> </tr> <tr> <td data-qa="_summary_link" align="left" style="margin:0;color:#666666;font-weight:100;font-size:16px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;t=plh&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=13&amp;m=hero&amp;urlhash=Os_Q&amp;url=https%3A%2F%2Fwww%2Elinkedin%2Ecom%2Fpulse%2Fpaternity-leave-its-harder-than-ever-mark-zuckerberg-you-anderson" style="color:#868686;font-weight:100;text-decoration:none;"></a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:20px;font-size:20px;line-height:20px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-article"> <tbody> <tr> <td align="left" data-qa="votd_summary_link"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;t=plh&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=14&amp;m=hero&amp;urlhash=Os_Q&amp;url=https%3A%2F%2Fwww%2Elinkedin%2Ecom%2Fpulse%2Fpaternity-leave-its-harder-than-ever-mark-zuckerberg-you-anderson" title="Paternity Leave Or Not, It’s Harder Than Ever For Zuckerberg (And You) To Be A Good Father"><img src="https://media.licdn.com/media/AAEAAQAAAAAAAAYvAAAAJDQzOThlNzFhLTYwM2YtNDZjZC1iZGE5LWZlZTgxNTI2NDgwYg.png" alt="Highlight of the day" style="max-width:100%;border-width:0;" /></a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:20px;font-size:20px;line-height:20px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td bgcolor="#dddddd" style="background-color:#dddddd;"> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:1px;font-size:1px;line-height:1px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:25px;font-size:25px;line-height:25px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" class="responsive-article"> <tbody> <tr> <td align="center" data-qa="section_promo"> <!-- Deprecated i18n Tags --> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-promo" align="center"> <tbody> <tr> <td><a href="https://www.linkedin.com/e/v2?e=6m81ta-ihd6z5md-7&amp;a=pulse-fe-storeLink&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=15&amp;m=footer_promo&amp;ts=eml-ced-appstore-body" target="_blank" style="margin:0;color:#262626;font-weight:100;text-decoration:none;font-size:16px;text-align:center;"><p style="margin:0;color:#262626;font-weight:100;text-decoration:none;font-size:16px;text-align:center;">Download LinkedIn Pulse to get more top stories of the day</p></a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:15px;font-size:15px;line-height:15px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-promo" align="center"> <tbody> <tr> <td align="right" width="45%"><a href="https://www.linkedin.com/e/v2?e=6m81ta-ihd6z5md-7&amp;a=pulse-fe-storeLink&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=15&amp;m=footer_promo&amp;ts=eml-ced-appstore-body" target="_blank"><img src="https://static.licdn.com/scds/common/u/images/email/campaigns/pulse_ced/apple_appstore_v1.png" height="90%" alt="Get the App" style="outline: none; border: none;" /></a></td> <td width="1%"> <table width="8" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:0px;font-size:0px;line-height:0px"> &nbsp; </div></td> </tr> </tbody> </table></td> <td align="left" width="42%"><a href="https://www.linkedin.com/e/v2?e=6m81ta-ihd6z5md-7&amp;a=pulse-fe-storeLink&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=15&amp;m=footer_promo&amp;ts=eml-ced-appstore-body" target="_blank"><img src="https://static.licdn.com/scds/common/u/images/email/campaigns/pulse_ced/google_appstore_v1.png" height="90%" alt="Get the App" style="outline: none; border: none;" /></a></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-promo" align="center"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:25px;font-size:25px;line-height:25px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td width="520" bgcolor="#dddddd" style="background-color:#dddddd;"> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:1px;font-size:1px;line-height:1px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:25px;font-size:25px;line-height:25px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" class="responsive-article"> <tbody> <tr> <td align="center"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body" align="left"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" align="center"> <tbody> <tr> <td align="left" data-qa="section_network_publishes"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%"> <tbody> <tr> <td valign="middle" align="left" data-qa="network_publishes_section_header" style="margin-left:0;color:#666666;font-weight:100;text-decoration:none;font-size:16px;line-height:20px;text-align:left;">Published by your network</td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" class="res-height10" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:25px;font-size:25px;line-height:25px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td width="24"><img width="24" height="24" src="https://media.licdn.com/mpr/mpr/shrinknp_100_100/p/5/005/030/230/060551c.jpg" style="border:none; text-decoration:none; outline:hidden;" alt="linkedin.com" /></td> <td width="7"> <table width="7px" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:0px;font-size:0px;line-height:0px"> &nbsp; </div></td> </tr> </tbody> </table></td> <td align="left" data-qa="network_publishes_author_link" style="color:#666666;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/comm/profile/view?id=AAsAAACl_IUB62sJErqek1a4XmvD4rSXrL20rQM&amp;ref=CONTENT&amp;midToken=AQHp7WCc2qHESg&amp;trk=eml-b2_content_ecosystem_digest-network_publishes-33-null&amp;trkEmail=eml-b2_content_ecosystem_digest-network_publishes-33-null-null-6m81ta%7Eihd6z5md%7E7" style="color:#303030;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:right;">Richard A. Moran</a></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td class="res-font16" data-qa="network_publishes_article_title_link" align="left" style="margin-left:0;color:#008CC9;font-weight:100;font-size:22px;line-height:26px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=31&amp;m=network_publishes&amp;permLink=steve-jobs-again-still-richard-a-moran" style="margin-left:0;color:#008CC9;font-weight:100;text-decoration:none;text-align:left;">Steve Jobs - Again or Still? </a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td data-qa="network_publishes_summary_link" align="left" style="margin:0;color:#666666;font-weight:100;font-size:16px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=32&amp;m=network_publishes&amp;permLink=steve-jobs-again-still-richard-a-moran" style="color:#868686;font-weight:100;text-decoration:none;">Hard to believe, but Steve Jobs has been gone for four years.&nbsp; But he's really not gone.&nbsp; His influence on leadership, technology, innovation and jus</a></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:30px;font-size:30px;line-height:30px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td width="24"><img width="24" height="24" src="https://media.licdn.com/mpr/mpr/shrinknp_100_100/p/1/000/1c8/0ad/1ad0d0d.jpg" style="border:none; text-decoration:none; outline:hidden;" alt="linkedin.com" /></td> <td width="7"> <table width="7px" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:0px;font-size:0px;line-height:0px"> &nbsp; </div></td> </tr> </tbody> </table></td> <td align="left" data-qa="network_publishes_author_link" style="color:#666666;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/comm/profile/view?id=AAsAAAAtR9cBIf5DoWAFDE3YQ2jjApX2h4Refjs&amp;ref=CONTENT&amp;midToken=AQHp7WCc2qHESg&amp;trk=eml-b2_content_ecosystem_digest-network_publishes-39-null&amp;trkEmail=eml-b2_content_ecosystem_digest-network_publishes-39-null-null-6m81ta%7Eihd6z5md%7E7" style="color:#303030;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:right;">Ryan Holmes</a></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td class="res-font16" data-qa="network_publishes_article_title_link" align="left" style="margin-left:0;color:#008CC9;font-weight:100;font-size:22px;line-height:26px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=37&amp;m=network_publishes&amp;permLink=3-ways-tap-hottest-marketing-tactic-right-now-ryan-holmes" style="margin-left:0;color:#008CC9;font-weight:100;text-decoration:none;text-align:left;">3 Ways to Tap Into the Hottest Marketing Tactic Right Now </a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td data-qa="network_publishes_summary_link" align="left" style="margin:0;color:#666666;font-weight:100;font-size:16px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=38&amp;m=network_publishes&amp;permLink=3-ways-tap-hottest-marketing-tactic-right-now-ryan-holmes" style="color:#868686;font-weight:100;text-decoration:none;">Southern Biscuits and Gravy is one of the more interesting potato chip flavors to hit American snack aisles recently. Last month, Lay’s announced tha</a></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:30px;font-size:30px;line-height:30px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td bgcolor="#dddddd" style="background-color:#dddddd;"> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:1px;font-size:1px;line-height:1px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" class="res-height10" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:25px;font-size:25px;line-height:25px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body" align="left"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" align="center"> <tbody> <tr> <td align="left" data-qa="section_recommended_articles"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%"> <tbody> <tr> <td valign="middle" align="left" data-qa="recommended_articles_section_header" style="margin-left:0;color:#666666;font-weight:100;text-decoration:none;font-size:16px;line-height:20px;text-align:left;">Recommended for you</td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" class="res-height10" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:25px;font-size:25px;line-height:25px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td width="24"><img width="24" height="24" src="https://media.licdn.com/mpr/mpr/shrinknp_100_100/p/6/000/1cd/2c8/0b00d8a.jpg" style="border:none; text-decoration:none; outline:hidden;" alt="linkedin.com" /></td> <td width="7"> <table width="7px" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:0px;font-size:0px;line-height:0px"> &nbsp; </div></td> </tr> </tbody> </table></td> <td align="left" data-qa="recommended_articles_author_link" style="color:#666666;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/comm/profile/view?id=AAsAAAExb3oBO9pn_apeWKktkimPWp12DcbRGQs&amp;ref=CONTENT&amp;midToken=AQHp7WCc2qHESg&amp;trk=eml-b2_content_ecosystem_digest-recommended_articles-75-null&amp;trkEmail=eml-b2_content_ecosystem_digest-recommended_articles-75-null-null-6m81ta%7Eihd6z5md%7E7" style="color:#303030;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:right;">Jeff Haden</a></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td class="res-font16" data-qa="recommended_articles_article_title_link" align="left" style="margin-left:0;color:#008CC9;font-weight:100;font-size:22px;line-height:26px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=73&amp;m=recommended_articles&amp;permLink=why-doesnt-anyone-ever-feel-rich-even-happy-jeff-haden" style="margin-left:0;color:#008CC9;font-weight:100;text-decoration:none;text-align:left;">Why Doesn't Anyone Ever Feel Rich? (Or Even Happy?)</a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td data-qa="recommended_articles_summary_link" align="left" style="margin:0;color:#666666;font-weight:100;font-size:16px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=74&amp;m=recommended_articles&amp;permLink=why-doesnt-anyone-ever-feel-rich-even-happy-jeff-haden" style="color:#868686;font-weight:100;text-decoration:none;">One day I'd like to meet someone who is actually rich. Sometimes I think I've found one but it always turns out I'm wrong. No matter how rich I assume</a></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:30px;font-size:30px;line-height:30px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td width="24"><img width="24" height="24" src="https://media.licdn.com/mpr/mpr/shrinknp_100_100/p/8/005/093/3ae/01eefce.jpg" style="border:none; text-decoration:none; outline:hidden;" alt="linkedin.com" /></td> <td width="7"> <table width="7px" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:0px;font-size:0px;line-height:0px"> &nbsp; </div></td> </tr> </tbody> </table></td> <td align="left" data-qa="recommended_articles_author_link" style="color:#666666;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/comm/profile/view?id=AAsAAAMDxhcBDYxYriW1LuClTZtD2HPi26f38E4&amp;ref=CONTENT&amp;midToken=AQHp7WCc2qHESg&amp;trk=eml-b2_content_ecosystem_digest-recommended_articles-81-null&amp;trkEmail=eml-b2_content_ecosystem_digest-recommended_articles-81-null-null-6m81ta%7Eihd6z5md%7E7" style="color:#303030;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:right;">Dr. Travis Bradberry</a></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td class="res-font16" data-qa="recommended_articles_article_title_link" align="left" style="margin-left:0;color:#008CC9;font-weight:100;font-size:22px;line-height:26px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=79&amp;m=recommended_articles&amp;permLink=why-smart-people-act-so-stupid-dr-travis-bradberry" style="margin-left:0;color:#008CC9;font-weight:100;text-decoration:none;text-align:left;">Why Smart People Act So Stupid</a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td data-qa="recommended_articles_summary_link" align="left" style="margin:0;color:#666666;font-weight:100;font-size:16px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=80&amp;m=recommended_articles&amp;permLink=why-smart-people-act-so-stupid-dr-travis-bradberry" style="color:#868686;font-weight:100;text-decoration:none;">It’s good to be smart. After all, intelligent people earn more money, accumulate more wealth, and even live longer. On the surface, being smart looks </a></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:30px;font-size:30px;line-height:30px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td width="24"><img width="24" height="24" src="https://media.licdn.com/mpr/mpr/shrinknp_100_100/AAEAAQAAAAAAAAP_AAAAJDAzZTEwODg4LTQ1MjAtNDQzMC1iNGI5LTM4ZDFjOTg2MWY5ZA.jpg" style="border:none; text-decoration:none; outline:hidden;" alt="linkedin.com" /></td> <td width="7"> <table width="7px" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:0px;font-size:0px;line-height:0px"> &nbsp; </div></td> </tr> </tbody> </table></td> <td align="left" data-qa="recommended_articles_author_link" style="color:#666666;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/comm/profile/view?id=AAsAAAGF3QQBt058ke-fjSJf3Lv1mQVTQNvy8n4&amp;ref=CONTENT&amp;midToken=AQHp7WCc2qHESg&amp;trk=eml-b2_content_ecosystem_digest-recommended_articles-87-null&amp;trkEmail=eml-b2_content_ecosystem_digest-recommended_articles-87-null-null-6m81ta%7Eihd6z5md%7E7" style="color:#303030;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:right;">Katie Carroll</a></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td class="res-font16" data-qa="recommended_articles_article_title_link" align="left" style="margin-left:0;color:#008CC9;font-weight:100;font-size:22px;line-height:26px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=85&amp;m=recommended_articles&amp;permLink=daily-pulse-china-responds-isis-biggest-pharma-deal-ever-carroll" style="margin-left:0;color:#008CC9;font-weight:100;text-decoration:none;text-align:left;">Daily Pulse: BREAKING: Paris Attacks Leader Killed, China Responds to...</a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td data-qa="recommended_articles_summary_link" align="left" style="margin:0;color:#666666;font-weight:100;font-size:16px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=86&amp;m=recommended_articles&amp;permLink=daily-pulse-china-responds-isis-biggest-pharma-deal-ever-carroll" style="color:#868686;font-weight:100;text-decoration:none;">BREAKING:&nbsp;Abdelhamid Abaooud, the purported leader of the Paris attacks,&nbsp;was confirmed dead by French authorities. His body was identified using papil</a></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:30px;font-size:30px;line-height:30px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td width="24"><img width="24" height="24" src="https://media.licdn.com/mpr/mpr/shrinknp_100_100/p/8/005/093/3ae/01eefce.jpg" style="border:none; text-decoration:none; outline:hidden;" alt="linkedin.com" /></td> <td width="7"> <table width="7px" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:0px;font-size:0px;line-height:0px"> &nbsp; </div></td> </tr> </tbody> </table></td> <td align="left" data-qa="recommended_articles_author_link" style="color:#666666;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/comm/profile/view?id=AAsAAAMDxhcBDYxYriW1LuClTZtD2HPi26f38E4&amp;ref=CONTENT&amp;midToken=AQHp7WCc2qHESg&amp;trk=eml-b2_content_ecosystem_digest-recommended_articles-93-null&amp;trkEmail=eml-b2_content_ecosystem_digest-recommended_articles-93-null-null-6m81ta%7Eihd6z5md%7E7" style="color:#303030;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:right;">Dr. Travis Bradberry</a></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td class="res-font16" data-qa="recommended_articles_article_title_link" align="left" style="margin-left:0;color:#008CC9;font-weight:100;font-size:22px;line-height:26px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=91&amp;m=recommended_articles&amp;permLink=how-make-yourself-work-when-youre-mood-dr-travis-bradberry" style="margin-left:0;color:#008CC9;font-weight:100;text-decoration:none;text-align:left;">How To Make Yourself Work When You're Not In The Mood</a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td data-qa="recommended_articles_summary_link" align="left" style="margin:0;color:#666666;font-weight:100;font-size:16px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=92&amp;m=recommended_articles&amp;permLink=how-make-yourself-work-when-youre-mood-dr-travis-bradberry" style="color:#868686;font-weight:100;text-decoration:none;">Procrastination affects everyone. It sneaks up on most people when they’re tired or bored, but for some, procrastination can be a full-fledged addicti</a></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:30px;font-size:30px;line-height:30px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td width="24"><img width="24" height="24" src="https://media.licdn.com/mpr/mpr/shrinknp_100_100/p/8/000/285/228/33907b3.jpg" style="border:none; text-decoration:none; outline:hidden;" alt="linkedin.com" /></td> <td width="7"> <table width="7px" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:0px;font-size:0px;line-height:0px"> &nbsp; </div></td> </tr> </tbody> </table></td> <td align="left" data-qa="recommended_articles_author_link" style="color:#666666;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/comm/profile/view?id=AAsAAAAAzXIBrf8iPyriw5pG3z8vxMDDp-pdANE&amp;ref=CONTENT&amp;midToken=AQHp7WCc2qHESg&amp;trk=eml-b2_content_ecosystem_digest-recommended_articles-99-null&amp;trkEmail=eml-b2_content_ecosystem_digest-recommended_articles-99-null-null-6m81ta%7Eihd6z5md%7E7" style="color:#303030;font-weight:100;text-decoration:none;font-size:13px;line-height:20px;text-align:right;">Liz Ryan</a></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-body"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td class="res-font16" data-qa="recommended_articles_article_title_link" align="left" style="margin-left:0;color:#008CC9;font-weight:100;font-size:22px;line-height:26px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=97&amp;m=recommended_articles&amp;permLink=real-reason-you-didnt-get-job-liz-ryan" style="margin-left:0;color:#008CC9;font-weight:100;text-decoration:none;text-align:left;">The Real Reason You Didn't Get That Job</a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td data-qa="recommended_articles_summary_link" align="left" style="margin:0;color:#666666;font-weight:100;font-size:16px;line-height:20px;text-align:left;"><a href="https://www.linkedin.com/e/v2/pulse?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_view_article_detail_new_url&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=98&amp;m=recommended_articles&amp;permLink=real-reason-you-didnt-get-job-liz-ryan" style="color:#868686;font-weight:100;text-decoration:none;">At Human Workplace we teach&nbsp;our clients a five-step protocol to follow after every job interview. The first step is to go home (or back to the office,</a></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:30px;font-size:30px;line-height:30px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td bgcolor="#dddddd" style="background-color:#dddddd;"> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:1px;font-size:1px;line-height:1px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" class="res-height10" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:25px;font-size:25px;line-height:25px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" class="responsive-article" align="center"> <tbody> <tr> <td align="center" data-qa="section_start_writing" class="mobile-hidden"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="520" class="responsive-article" align="center"> <tbody> <tr> <td align="center"></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:5px;font-size:5px;line-height:5px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td align="center" style="color:#666666;font-weight:100;font-size:18px;line-height:20px;text-align:center;">Have your own perspective to share?</td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:20px;font-size:20px;line-height:20px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td align="center" width="100%" height="40" bgcolor="#008CC9" class="res-font16" style="font-weight:200;width:100%;font-size:20px;text-align:center;"><a href="https://www.linkedin.com/e/v2?e=6m81ta-ihd6z5md-7&amp;a=pulse_web_create_article&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;li=102&amp;m=footer_promo&amp;ts=pub_upsell" target="_blank" style="color:#FFFFFF;text-decoration:none;">Start writing on LinkedIn</a></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:40px;font-size:40px;line-height:40px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> <tr> <td></td> </tr> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;" width="100%" class="responsive"> <tbody> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td align="left"> <table border="0" cellspacing="0" cellpadding="0" style="color:#999999;font-size:11px;font-family:Helvetica,Arial,sans-serif;" width="100%"> <tbody> <tr> <td>You are receiving notification emails from LinkedIn. <a style="color:#0077B5;text-decoration:none;" href="https://www.linkedin.com/e/v2?e=6m81ta-ihd6z5md-7&amp;t=lun&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;loid=AQFuT4vuXECaYwAAAVE53xL5xFgXxKXqjevO9odGDbZLvLwW0KFPs2TIv9hn3SeTRG7xg9zK6p6NfgqsH56X&amp;eid=6m81ta-ihd6z5md-7">Unsubscribe</a></td> </tr> <tr> <td></td> </tr> <tr> <td>This email was intended for Benjamin Hartester (Software Developer). <a href="https://www.linkedin.com/e/v2?e=6m81ta-ihd6z5md-7&amp;a=customerServiceUrl&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest&amp;articleId=4788" style="color:#2e8dd7;text-decoration:none;">Learn why we included this.</a></td> </tr> <tr> <td>If you need assistance or have questions, please contact <a target="_blank" href="https://www.linkedin.com/e/v2?e=6m81ta-ihd6z5md-7&amp;a=customerServiceUrl&amp;midToken=AQHp7WCc2qHESg&amp;ek=b2_content_ecosystem_digest" style="color:#2e8dd7;text-decoration:none;">LinkedIn Customer Service</a>.</td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td>&copy; 2015 LinkedIn Corporation, 2029 Stierlin Court, Mountain View CA 94043. LinkedIn and the LinkedIn logo are registered trademarks of LinkedIn.</td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> <tr> <td></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:10px;font-size:10px;line-height:10px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:20px;font-size:20px;line-height:20px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> <tr> <td> <table width="1" border="0" cellspacing="0" cellpadding="0" style="font-family:Helvetica,Arial,sans-serif;"> <tbody> <tr> <td> <div style="height:20px;font-size:20px;line-height:20px"> &nbsp; </div></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <img src="http://www.linkedin.com/emimp/6m81ta-ihd6z5md-7.gif" style="width:1px; height:1px;" /> </body> </html>
HTML
1
cnheider/nylas-mail
packages/client-app/internal_packages/message-autoload-images/spec/fixtures/linkedin-in.html
[ "MIT" ]
@font-face { font-family: "iconfont"; /* Project id 2742392 */ src: url('../iconfont/iconfont.woff2') format('woff2'), url('../iconfont/iconfont.woff') format('woff'), url('../iconfont/iconfont.ttf') format('truetype'); } .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-icon:before { content: "\e60b"; } .icon-liulan:before { content: "\e663"; } .icon-gonggongziliao:before { content: "\e7d1"; } .icon-02:before { content: "\e64a"; }
CSS
3
EleveShi/apollo
apollo-portal/src/main/resources/static/vendor/iconfont/iconfont.css
[ "Apache-2.0" ]
{ buildPythonPackage , fetchFromGitHub , lib , pytestCheckHook }: buildPythonPackage rec { pname = "in-place"; version = "0.5.0"; format = "pyproject"; src = fetchFromGitHub { owner = "jwodder"; repo = "inplace"; rev = "v${version}"; sha256 = "1w6q3d0gqz4mxvspd08l1nhsrw6rpzv1gnyj4ckx61b24f84p5gk"; }; postPatch = '' substituteInPlace tox.ini --replace "--cov=in_place --no-cov-on-fail" "" ''; checkInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "in_place" ]; meta = with lib; { description = "In-place file processing"; homepage = "https://github.com/jwodder/inplace"; license = licenses.mit; maintainers = with maintainers; [ samuela ]; }; }
Nix
4
siddhantk232/nixpkgs
pkgs/development/python-modules/in-place/default.nix
[ "MIT" ]
@contributor{ name = First Contributor email = [email protected] } @contributor{ name = Second Contributor email = [email protected] } @documentation{ Data type and function definitions for basic types } declaration template pan/types; include 'pan/legacy'; @documentation{ This type implements a date/time format consistent with ASN.1 typically used by LDAP. The actual specification is the "GeneralizedTime" format as specified on page 38 of the X.208 ITU-T recommendation and references within. Ex: 20040825120123Z 20040825120123+0100 20040825120123,5 20040825120123.5 20040825120123.5-0123 } function is_asndate = { # Check cardinality and type of argument. if (ARGC != 1 || !is_string(ARGV[0])) error("usage: is_asndate(string)"); # Match the datetime pattern, extracting interesting fields. result = matches(ARGV[0], '^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(?:[,\.](\d+))?([Zz]|(?:[-+]\d{2}\d{2}))?$'); if (length(result) >= 7) { # Do further tests on various components of the date. # NOTE: the to_long(to_double(x)) construct below is to avoid having # the to_long function treat strings with leading zeros as octal # numbers. E.g. to_long("09") will throw an exception because '9' is # not a valid octal digit. year = to_long(result[1]); month = to_long(to_double(result[2])); day = to_long(to_double(result[3])); hour = to_long(to_double(result[4])); minute = to_long(to_double(result[5])); second = to_long(to_double(result[6])); frac = 0; if (length(result) > 7) { frac = to_long(to_double(result[7])); }; zone = '+0000'; if (length(result) > 8) { zone = result[8]; }; # Check the range of months. if (month < 1 || month > 12) { error("is_asndate: invalid month"); return(false); }; # Check the range of days. if (day < 1 || day > 31) { error("is_asndate: invalid day"); return(false); }; # Be more specific on the days in each month. if (month == 4 || month == 6 || month == 9 || month == 11) { if (day > 30) { error("is_asndate: invalid day"); }; }; # February is always a bother. Too lazy to check that the leap # years have been specified correctly. if (month == 2 && day > 29) { error("is_asndate: invalid day"); }; # Check the time. if (hour > 23) { error("is_asndate: invalid hour"); return(false); }; if (minute > 59) { error("is_asndate: invalid minute"); return(false); }; # Allow for leap seconds here (since it is easy). if (second > 60) { error("is_asndate: invalid minute"); return(false); }; # Check the time zone format. if (zone != "Z" && zone != "z") { tz = matches(zone, '^[-+](\d{2})(\d{2})$'); hoffset = to_long(to_double(tz[1])); moffset = to_long(to_double(tz[2])); if (hoffset >= 12) { error("is_asndate: invalid hour offset in time zone"); return(false); }; if (moffset > 59) { error("is_asndate: invalid minute offset in time zone"); return(false); }; }; } else { error("is_asndate: invalid format for time"); return(false); }; # If it gets to this point, then the date must be OK. true; }; type type_asndate = string with { is_asndate(SELF); }; @documentation{ desc = Type that enforces the existence of a named interface. } type valid_interface = string with { if (exists(format('/system/network/interfaces/%s', SELF))) { return(true); }; foreach(ifc; attr; value('/system/network/interfaces')) { if (attr['device'] == SELF){ return(true); }; }; false; }; @documentation{ desc = CPU architectures understood by Quattor } type cpu_architecture = string with match (SELF, '^(i386|ia64|x86_64|sparc|aarch64|ppc64(le)?)$');
Pan
5
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Pan/types.pan
[ "MIT" ]
/*++ Copyright (c) Microsoft Corporation Licensed under the MIT license. Module Name: - Module.hpp Abstract: - Lists all the interfaces for which there exist multiple implementations that can be picked amongst depending on API's available on the host OS. Author(s): - Hernan Gatta (HeGatta) 29-Mar-2017 --*/ #pragma once namespace Microsoft::Console::Interactivity { enum class Module { AccessibilityNotifier, ConsoleControl, ConsoleInputThread, ConsoleWindowMetrics, HighDpiApi, SystemConfigurationProvider }; }
C++
4
sonvt1710/terminal
src/interactivity/inc/Module.hpp
[ "MIT" ]
.NoCommitData { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; } .Header { font-size: var(--font-size-sans-large); margin-bottom: 0.5rem; } .FilterMessage { display: flex; align-items: center; }
CSS
3
vegYY/react
packages/react-devtools-shared/src/devtools/views/Profiler/NoCommitData.css
[ "MIT" ]
#N canvas 717 133 337 338 12; #X obj 59 38 inlet~; #X obj 77 140 cos~; #X obj 202 115 +~ -0.25; #X obj 202 137 cos~; #X obj 147 38 inlet~; #X obj 59 176 *~; #X obj 147 177 *~; #X obj 59 222 -~; #X obj 59 255 outlet~; #X obj 129 256 outlet~; #X obj 129 223 +~; #X text 57 281 positive; #X text 130 282 negative; #X obj 202 75 phasor~; #X obj 202 39 inlet~; #X connect 0 0 5 0; #X connect 1 0 5 1; #X connect 2 0 3 0; #X connect 3 0 6 1; #X connect 4 0 6 0; #X connect 5 0 7 0; #X connect 5 0 10 0; #X connect 6 0 7 1; #X connect 6 0 10 1; #X connect 7 0 8 0; #X connect 10 0 9 0; #X connect 13 0 2 0; #X connect 13 0 1 0; #X connect 14 0 13 0;
Pure Data
3
myQwil/pure-data
extra/complex-mod~.pd
[ "TCL" ]
<!DOCTYPE html> <!-- 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. --> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script src="lib/simpleRequire.js"></script> <script src="lib/config.js"></script> <script src="lib/jquery.min.js"></script> <script src="lib/facePrint.js"></script> <script src="lib/testHelper.js"></script> <!-- <script src="ut/lib/canteen.js"></script> --> <link rel="stylesheet" href="lib/reset.css" /> </head> <body> <style> </style> <div id="main0"></div> <script> require(['echarts'/*, 'map/js/china' */], function (echarts) { var FIXED_IDX = -1; var xAxisDataRaw = ['05:15:43', '05:15:46', '05:15:48']; var seriesDataRaw0 = [3547546, 3903750, 1628242]; var seriesDataRaw1 = [-167033, -2092606, -1622461]; var xAxisData = ['05:15:41']; var seriesData0 = [0]; var seriesData1 = [0]; var option; option = { xAxis: [{ data: xAxisData }], yAxis: {}, series: [{ name: 'A', type: 'line', areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{offset: 0, color: 'green'}, {offset: 1, color: 'yellow'}], global: false }, shadowColor: 'green', shadowBlur: 10 }, data: seriesData0 }, { name: 'B', type: 'line', areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{offset: 0, color: 'green'}, {offset: 1, color: 'yellow'}], global: false }, shadowColor: 'green', shadowBlur: 10 }, data: seriesData1 }] }; var chart = testHelper.create(echarts, 'main0', { title: [ 'There should be no animation and won\'t crash in safari after addData' ], option: option, // height: 300, buttons: [{ text: 'Add Data', onclick: function () { FIXED_IDX++; if (FIXED_IDX >= xAxisDataRaw.length) { return; } xAxisData.push(xAxisDataRaw[FIXED_IDX]); seriesData0.push(seriesDataRaw0[FIXED_IDX]); seriesData1.push(seriesDataRaw1[FIXED_IDX]); chart.setOption({ xAxis: { data: xAxisData }, series: [{ animationDurationUpdate: 10000, data: seriesData0 }, { animationDurationUpdate: 10000, data: seriesData1 }] }); } }], // recordCanvas: true, }); }); </script> </body> </html>
HTML
3
DominiqueDeCordova/echarts
test/line-crash.html
[ "Apache-2.0" ]
Module: orb-utilities Author: Jason Trenouth Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: See License.txt in this distribution for details. Warranty: Distributed WITHOUT WARRANTY OF ANY KIND /// <TICKET> /// /// This is intended for use by invalidation mechanisms. /// /// The producer of some information also provides a ticket /// that consumers can store alongside their caches. /// /// When there is new information the producer can invalidate the /// cache by reissuing the ticket and publishing it alongside the new /// information. /// PROTOCOL define constant <ticket> = <object>; /// Checks if this ticket is valid, when compared to a know valid ticket. define open generic valid-ticket? (ticket :: <ticket>, valid-ticket :: <ticket>) => (valid? :: <boolean>); /// Returns a new valid ticket, invalidating the given old valid ticket. define open generic reissue-ticket (ticket :: false-or(<ticket>)) => (ticket); /// Returns an initial valid ticket. define open generic initial-ticket (type :: <type>) => (ticket); /// Returns a known invalid ticket. define open generic invalid-ticket (type :: <type>) => (ticket); /// BOOLEAN TICKETS define class <boolean-ticket> (<ticket>) sealed atomic slot %valid-ticket? :: <boolean> = #t, init-keyword: valid?:; end class; define sealed domain make (subclass(<boolean-ticket>)); define sealed domain initialize (<boolean-ticket>); define method valid-ticket? (ticket :: <boolean-ticket>, valid-ticket :: <boolean-ticket>) => (valid? :: <boolean>) %valid-ticket?(ticket) end method; define method initial-ticket (class == <boolean-ticket>) => (ticket :: <boolean-ticket>) make(<boolean-ticket>) end method; define method reissue-ticket (ticket :: <boolean-ticket>) => (ticket :: <boolean-ticket>) let new-ticket = make(<boolean-ticket>); %valid-ticket?(ticket) := #f; new-ticket end method; define constant $invalid-ticket :: <boolean-ticket> = make(<boolean-ticket>, valid?: #f); define method invalid-ticket (type == <boolean-ticket>) => (ticket :: <boolean-ticket>) $invalid-ticket end method; /// INTEGER TICKETS define constant <integer-ticket> = <integer>; define method valid-ticket? (ticket :: <integer-ticket>, valid-ticket :: <integer-ticket>) => (valid? :: <boolean>) ticket = valid-ticket end method; define method initial-ticket (type == <integer-ticket>) => (ticket :: <integer-ticket>) 1 end method; define method reissue-ticket (ticket :: <integer-ticket>) => (ticket :: <integer-ticket>) ticket + 1 end method; define method invalid-ticket (type == <integer-ticket>) => (ticket :: <integer-ticket>) 0 end method; /* /// Example define class <producer> (<object>) slot producer-data; slot producer-data-ticket :: <boolean-ticket> = initial-ticket(<boolean-ticket>); end class; define class <consumer> (<object>) slot consumer-data; slot consumer-data-ticket :: <boolean-ticket> = invalid-ticket(<boolean-ticket>); slot consumer-producer; end class; define method produce (p :: <producer>) // atomically producer-data(p) := new-data; producer-data-ticket(p) := reissue-ticket(producer-data-ticket(p)); end method; define method consume (c :: <consumer>) let p = consumer-producer(c); unless (valid-ticket?(consumer-data-ticket(c), producer-data-ticket(p))) /// atomically consumer-data(c) := producer-data(p); consumer-data-ticket(c) := producer-data-ticket(p); end unless; end method; */
Dylan
4
kryptine/opendylan
sources/corba/orb/utilities/tickets.dylan
[ "BSD-2-Clause" ]
(report prolog-tests (load "prolog.shen") loaded (prolog? (f a)) true (prolog? (g a)) false (prolog? (g b)) true (prolog? (mem 1 [X | 2]) (return X)) 1 (prolog? (rev [1 2] X) (return X)) [2 1] (load "einstein.shen") loaded (prolog? (einsteins_riddle X) (return X)) german (prolog? (enjoys mark X) (return X)) chocolate (prolog? (fads mark)) [tea chocolate] (prolog? (prop [] [p <=> p])) true (prolog? (mapit consit [1 2 3] Out) (return Out)) [[1 1] [1 2] [1 3]] (prolog? (different a b)) true (prolog? (different a a)) false (prolog? (likes john Who) (return Who)) mary (load "parse.prl") loaded (prolog? (pparse ["the" + ["boy" + "jumps"]] [[s = [np + vp]] [np = [det + n]] [det = "the"] [n = "girl"] [n = "boy"] [vp = vintrans] [vp = [vtrans + np]] [vintrans = "jumps"] [vtrans = "likes"] [vtrans = "loves"]])) true) (reset)
Shen
4
ragnard/shen-truffle
src/test/resources/test-programs/tests_prolog.shen
[ "BSD-3-Clause" ]
\2d- {}
CSS
0
mengxy/swc
crates/swc_css_parser/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/input.css
[ "Apache-2.0" ]
%%% %%% Authors: %%% Christian Schulte <[email protected]> %%% %%% Copyright: %%% Christian Schulte, 1998 %%% %%% Last change: %%% $Date$ by $Author$ %%% $Revision$ %%% %%% This file is part of Mozart, an implementation %%% of Oz 3 %%% http://www.mozart-oz.org/ %%% %%% See the file "LICENSE" or %%% http://www.mozart-oz.org/LICENSE %%% for information on usage and redistribution %%% of this file, and for a DISCLAIMER OF ALL %%% WARRANTIES. %%% functor require Server at 'ParServer.ozf' import Process at 'ParProcess.ozf' Logging at 'x-oz://system/ParLogging.ozf' Manager at 'ParManager.ozf' Module export Engine define fun {UnRoll N X Xr} if N>0 then X|{UnRoll N-1 X Xr} else Xr end end class Engine feat Hosts Names attr Trace: false CurManager: unit CurLogger: unit prop locking meth init(...) = M lock Spec = {List.toTuple '#' {Record.foldRInd M fun {$ F X Ps} H#N#M = if {IsInt F} then X#1#automatic else if {IsInt X} then F#X#automatic elseif {IsAtom X} then F#1#X else F#X.1#X.2 end end in {UnRoll N H#M Ps} end nil}} in self.Hosts = {Record.mapInd Spec fun {$ I H#M} {New Process.worker init(name:H fork:M id:I)} end} self.Names = {Record.map Spec fun {$ H#_} H end} end end meth trace(OnOff <= unit) lock if OnOff==unit then Trace <- {Not @Trace} else Trace <- OnOff end if {Not @Trace} andthen @CurLogger\=unit then {@CurLogger close} CurLogger <- unit end end end meth GetLogger($) if @Trace then if @CurLogger==unit then CurLogger <- {Server.new Logging.reader init(self.Names)} else {@CurLogger reset} end @CurLogger else unit end end meth one(SF ?Ss) lock CurManager <- M L={self GetLogger($)} M={Server.new Manager.one init(logger: L worker: {Record.map self.Hosts fun {$ H} {H plain(manager: M logger: L script: SF $)} end})} in {M start} {M get(?Ss)} {Wait {M sync($)}} CurManager <- unit end end meth all(SF ?Ss) lock CurManager <- M L={self GetLogger($)} M={Server.new Manager.all init(logger: L worker: {Record.map self.Hosts fun {$ H} {H plain(manager: M logger: L script: SF $)} end})} in {M start} {M get(?Ss)} {Wait {M sync($)}} CurManager <- unit end end meth best(SF ?Ss) lock %% Get the script module [S] = if {Functor.is SF} then {Module.apply [SF]} else {Module.link [SF]} end CurManager <- M L={self GetLogger($)} M={Server.new Manager.best init(logger: L order: S.order worker: {Record.map self.Hosts fun {$ H} {H best(manager: M logger: L script: SF $)} end})} in {M start} {M get(?Ss)} {Wait {M sync($)}} CurManager <- unit end end meth stop M=@CurManager in if M\=unit then {M stop} end end meth close Engine,stop lock {Record.forAll self.Hosts proc {$ H} {H close} end} end end end end
Oz
4
Ahzed11/mozart2
lib/main/cp/par/ParSearch.oz
[ "BSD-2-Clause" ]
#import <Foundation/Foundation.h> void noescapeBlock(__attribute__((noescape)) void (^block)(void)); void noescapeBlock3(__attribute__((noescape)) void (^block)(NSString *s), __attribute__((noescape)) void (^block2)(NSString *s), NSString *f);
C
3
lwhsu/swift
test/SILOptimizer/Inputs/Closure.h
[ "Apache-2.0" ]
//This file is part of "GZE - GroundZero Engine" //The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0). //For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code. package { import GZ.Gfx.Object; import GZ.Sys.Interface.Window; import GZ.Gfx.Shape; import GZ.Gfx.Face; import GZ.Gfx.Root; import GZ.Gfx.Clip; import GZ.Base.Math.Math; import GZ.Gfx.Triangle; import GZ.File.RcImg; import GZ.Base.PtA; import GZ.Base.Pt; import GZ.Base.Poly4; import GZ.Sys.Interface.Context; import GZ.Gfx.Vector.Line; import GZ.Gfx.Vector.VectorShape; /** * @author Maeiky */ public class Box extends VectorShape { //public var nSize : Float; // public var oShape : Shape; // public var aLine : Array<Line>; // public var oLine : Line; public function Box( _nX : Float, _nY: Float, _nWidth : Float, _nHeight: Float, _nLineSize : Float = 1):Void { <cpp> oItf = ((cRoot*)parent.get())->oItf; oDstBuff = ((cRoot*)parent.get())->oDstBuff; </cpp> vPos.nX = _nX; vPos.nY = _nY; var _oCenter : Pt<Float> = new Pt<Float>(_nWidth/2, _nHeight/2); var _oShape:Shape = new Shape(this, 0,0,0,false); var _oPtTL : PtA = new PtA(0 , 0 ); var _oPtTR : PtA = new PtA(_nWidth, 0 ); var _oPtBR : PtA = new PtA(_nWidth , _nHeight ); var _oPtBL : PtA = new PtA(0, _nHeight ); _oShape.fAddPt(_oPtTL, _oCenter); _oShape.fAddPt(_oPtTR, _oCenter); _oShape.fAddPt(_oPtBR, _oCenter); _oShape.fAddPt(_oPtBL, _oCenter); VectorShape(parent, _nLineSize,_oShape ); //VectorShape(parent, _nLineSize ); } } }
Redcode
4
VLiance/GZE
src/Lib_GZ/Gfx/Vector/Box.cw
[ "Apache-2.0" ]
#include "CBitsCom.h" CBitsCom::CBitsCom() { HRESULT hRes; m_guidGroup = BITSCOM_GUID_GROUP; hRes = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); hRes = CoCreateGuid(&m_guidJob); m_pUnkNewJobInterface = nullptr; } CBitsCom::~CBitsCom() { m_pUnkNewJobInterface = nullptr; m_pBackgroundCopyJob1->Release(); m_pBackgroundCopyGroup->Release(); m_pBackgroundCopyQMgr->Release(); CoUninitialize(); // NOTE: CoUninitialize() OK } DWORD CBitsCom::PrepareJob(LPCWSTR pwszJobLocalFilename) { HRESULT hRes; // --- Create an instance of BackgroundCopyQMgr --- //IBackgroundCopyQMgr* pBackgroundCopyQMgr; //hRes = CoCreateInstance(__uuidof(BackgroundCopyQMgr), NULL, CLSCTX_LOCAL_SERVER, __uuidof(IBackgroundCopyQMgr), (void**)&pBackgroundCopyQMgr); hRes = CoCreateInstance(__uuidof(BackgroundCopyQMgr), NULL, CLSCTX_LOCAL_SERVER, __uuidof(IBackgroundCopyQMgr), (void**)&m_pBackgroundCopyQMgr); if (FAILED(hRes)) { wprintf(L"[-] CoCreateInstance() failed. HRESULT=0x%08Xd\n", hRes); return BITSCOM_ERR_COCREATEINSTANCE_BCQMGR; } if (DEBUG) { wprintf_s(L"[DEBUG] CoCreateInstance() OK\n"); } // --- Create a Group or use existing one --- OLECHAR* groupGuidStr; //IBackgroundCopyGroup* pBackgroundCopyGroup; hRes = StringFromCLSID(m_guidGroup, &groupGuidStr); if (DEBUG) { wprintf_s(L"[DEBUG] Using Group GUID %ls\n", groupGuidStr); } //hRes = pBackgroundCopyQMgr->GetGroup(m_guidGroup, &pBackgroundCopyGroup); //hRes = m_pBackgroundCopyQMgr->GetGroup(m_guidGroup, &pBackgroundCopyGroup); hRes = m_pBackgroundCopyQMgr->GetGroup(m_guidGroup, &m_pBackgroundCopyGroup); if (SUCCEEDED(hRes)) { //hRes = pBackgroundCopyGroup->CancelGroup(); hRes = m_pBackgroundCopyGroup->CancelGroup(); if (FAILED(hRes)) { wprintf(L"[-] IBackgroundCopyGroup->CancelGroup() failed.\n"); wprintf(L" |__ HRESULT = 0x%08X\n", hRes); return BITSCOM_ERR_CANCELGROUP; } } if (DEBUG) { wprintf_s(L"[DEBUG] IBackgroundCopyGroup->CancelGroup() OK\n"); } //hRes = pBackgroundCopyQMgr->CreateGroup(m_guidGroup, &pBackgroundCopyGroup); //hRes = m_pBackgroundCopyQMgr->CreateGroup(m_guidGroup, &pBackgroundCopyGroup); hRes = m_pBackgroundCopyQMgr->CreateGroup(m_guidGroup, &m_pBackgroundCopyGroup); if (FAILED(hRes)) { wprintf(L"[-] IBackgroundCopyQMgr->CreateGroup() failed.\n"); wprintf(L" |__ Group GUID = %ls\n", groupGuidStr); //wprintf(L" |__ IBackgroundCopyGroup = %p\n", (void*)pBackgroundCopyGroup); wprintf(L" |__ IBackgroundCopyGroup = %p\n", (void*)m_pBackgroundCopyGroup); wprintf(L" |__ HRESULT = 0x%08X\n", hRes); return BITSCOM_ERR_CREATEGROUP; } if (DEBUG) { wprintf_s(L"[DEBUG] IBackgroundCopyQMgr->CreateGroup() OK\n"); } // --- Create a Job --- OLECHAR* jobGuidStr; //IBackgroundCopyJob1* backgroundCopyJob1; hRes = StringFromCLSID(m_guidJob, &jobGuidStr); if (DEBUG) { wprintf_s(L"[DEBUG] Using Job GUID %ls\n", jobGuidStr); } //hRes = pBackgroundCopyGroup->CreateJob(m_guidJob, &backgroundCopyJob1); //hRes = pBackgroundCopyGroup->CreateJob(m_guidJob, &m_pBackgroundCopyJob1); hRes = m_pBackgroundCopyGroup->CreateJob(m_guidJob, &m_pBackgroundCopyJob1); if (FAILED(hRes)) { wprintf(L"[-] IBackgroundCopyGroup->CreateJob() failed.\n"); wprintf(L" |__ Job GUID = %ls\n", jobGuidStr); //wprintf(L" |__ IBackgroundCopyJob1 = %p\n", (void *)backgroundCopyJob1); wprintf(L" |__ IBackgroundCopyJob1 = %p\n", (void *)m_pBackgroundCopyJob1); wprintf(L" |__ HRESULT = 0x%08X\n", hRes); return BITSCOM_ERR_CREATEJOB; } if (DEBUG) { wprintf_s(L"[DEBUG] IBackgroundCopyGroup->CreateJob() OK\n"); } // --- Add file to job --- FILESETINFO fileSetInfo; BSTR bstrRemoteFile = SysAllocString(L"\\\\127.0.0.1\\C$\\Windows\\System32\\drivers\\etc\\hosts"); BSTR bstrLocalFile = SysAllocString(pwszJobLocalFilename); fileSetInfo.bstrRemoteFile = bstrRemoteFile; fileSetInfo.bstrLocalFile = bstrLocalFile; FILESETINFO* fileSetInfoArray = (FILESETINFO*)malloc(1 * sizeof(FILESETINFO)); if (!fileSetInfoArray) { SysFreeString(bstrRemoteFile); SysFreeString(bstrLocalFile); wprintf(L"[-] malloc() failed (Err: %d).\n", GetLastError()); return BITSCOM_ERR_ALLOC_FILESETINFO; } fileSetInfoArray[0] = fileSetInfo; //hRes = backgroundCopyJob1->AddFiles(1, &fileSetInfoArray); hRes = m_pBackgroundCopyJob1->AddFiles(1, &fileSetInfoArray); if (FAILED(hRes)) { wprintf(L"[-] IBackgroundCopyJob1->AddFiles() failed.\n"); wprintf(L" |__ HRESULT = 0x%08X\n", hRes); free(fileSetInfoArray); SysFreeString(bstrRemoteFile); SysFreeString(bstrLocalFile); return BITSCOM_ERR_ALLOC_ADDFILES; } free(fileSetInfoArray); SysFreeString(bstrRemoteFile); SysFreeString(bstrLocalFile); if (DEBUG) { wprintf_s(L"[DEBUG] IBackgroundCopyJob1->AddFiles() OK\n"); } return BITSCOM_ERR_SUCCESS; } DWORD CBitsCom::ResumeJob() { HRESULT hRes; // --- Query new job interface --- hRes = m_pBackgroundCopyGroup->QueryNewJobInterface(__uuidof(IBackgroundCopyJob), &m_pUnkNewJobInterface); if (FAILED(hRes)) { wprintf(L"[-] IBackgroundCopyJob1->QueryNewJobInterface() failed.\n"); wprintf(L" |__ HRESULT = 0x%08X\n", hRes); return BITSCOM_ERR_QUERYNEWJOBINTERFACE; } if (DEBUG) { wprintf_s(L"[DEBUG] IBackgroundCopyJob1->QueryNewJobInterface() OK"); } CComQIPtr<IBackgroundCopyJob> pBackgrounCopyJob(m_pUnkNewJobInterface); if (!pBackgrounCopyJob) { wprintf(L"[-] Interface pointer cast failed.\n"); return BITSCOM_ERR_JOBINTERFACECAST; } // --- Resume job --- hRes = pBackgrounCopyJob->Resume(); if (FAILED(hRes)) { wprintf(L"[-] IBackgroundCopyJob->Resume() failed. HRESULT=0x%08X\n", hRes); return BITSCOM_ERR_RESUMEJOB; } if (DEBUG) { wprintf_s(L"[DEBUG] IBackgroundCopyJob->Resume() OK"); } return BITSCOM_ERR_SUCCESS; } DWORD CBitsCom::CompleteJob() { HRESULT hRes; // --- Check whether we have a valid interface pointer --- if (m_pUnkNewJobInterface == nullptr) { wprintf(L"[-] New job interface pointer is null.\n"); return BITSCOM_ERR_NEWJOBINTERFACEISNULL; } // --- Cast interface poiter to IBackgroundCopyJob --- CComQIPtr<IBackgroundCopyJob> pBackgrounCopyJob(m_pUnkNewJobInterface); if (!pBackgrounCopyJob) { wprintf(L"[-] Interface pointer cast failed.\n"); return BITSCOM_ERR_JOBINTERFACECAST; } // --- Monitor job state --- DWORD dwJobState = -1; DWORD dwMaxAttempts = 10; do { BG_JOB_STATE bgJobStateCurrent; hRes = pBackgrounCopyJob->GetState(&bgJobStateCurrent); if (FAILED(hRes)) { wprintf(L"[-] IBackgroundCopyJob->GetState() failed.\n"); wprintf(L" |__ HRESULT = 0x%08X\n", hRes); } if (bgJobStateCurrent != dwJobState) { WCHAR bgJobStateName[MAX_JOBSTATE_NAME]; ZeroMemory(bgJobStateName, MAX_JOBSTATE_NAME * sizeof(WCHAR)); GetJobStateName(bgJobStateCurrent, bgJobStateName); wprintf(L"[*] Job state: %ls\n", bgJobStateName); dwJobState = bgJobStateCurrent; } dwMaxAttempts--; Sleep(1000); } while (dwJobState != BG_JOB_STATE_TRANSFERRED && dwMaxAttempts != 0); // If job state isn't BG_JOB_STATE_TRANSFERRED, the job failed if (dwJobState != BG_JOB_STATE_TRANSFERRED) { return BITSCOM_ERR_JOB; } // --- Complete job --- hRes = pBackgrounCopyJob->Complete(); if (FAILED(hRes)) { wprintf(L"[-] IBackgroundCopyJob->Complete() failed.\n"); wprintf(L" |__ HRESULT = 0x%08X\n", hRes); return BITSCOM_ERR_COMPLETEJOB; } if (DEBUG) { wprintf_s(L"[DEBUG] IBackgroundCopyJob->Complete() OK\n"); } return BITSCOM_ERR_SUCCESS; } BOOL CBitsCom::GetJobStateName(BG_JOB_STATE bgJobState, LPWSTR pwszJobName) { const WCHAR* res; BOOL bRes = TRUE; switch (bgJobState) { case BG_JOB_STATE_QUEUED: res = L"BG_JOB_STATE_QUEUED"; break; case BG_JOB_STATE_CONNECTING: res = L"BG_JOB_STATE_CONNECTING"; break; case BG_JOB_STATE_TRANSFERRING: res = L"BG_JOB_STATE_TRANSFERRING"; break; case BG_JOB_STATE_SUSPENDED: res = L"BG_JOB_STATE_SUSPENDED"; break; case BG_JOB_STATE_ERROR: res = L"BG_JOB_STATE_ERROR"; break; case BG_JOB_STATE_TRANSIENT_ERROR: res = L"BG_JOB_STATE_TRANSIENT_ERROR"; break; case BG_JOB_STATE_TRANSFERRED: res = L"BG_JOB_STATE_TRANSFERRED"; break; case BG_JOB_STATE_ACKNOWLEDGED: res = L"BG_JOB_STATE_ACKNOWLEDGED"; break; case BG_JOB_STATE_CANCELLED: res = L"BG_JOB_STATE_CANCELLED"; break; default: res = L"UNKNOWN"; bRes = FALSE; } swprintf_s(pwszJobName, MAX_JOBSTATE_NAME, L"%ls", res); return bRes; }
C++
5
OsmanDere/metasploit-framework
external/source/exploits/CVE-2020-0787/BitsArbitraryFileMove/CBitsCom.cpp
[ "BSD-2-Clause", "BSD-3-Clause" ]
package com.alibaba.json.bvt; import junit.framework.TestCase; import com.alibaba.fastjson.JSON; public class IntKeyMapTest extends TestCase { public void test_0() throws Exception { JSON.parse("{1:\"AA\",2:{}}"); } }
Java
2
Czarek93/fastjson
src/test/java/com/alibaba/json/bvt/IntKeyMapTest.java
[ "Apache-2.0" ]
--TEST-- mysqli_stmt_attr_set() - mysqlnd does not check for invalid codes --EXTENSIONS-- mysqli --SKIPIF-- <?php require_once('skipifconnectfailure.inc'); ?> --FILE-- <?php require_once("connect.inc"); require('table.inc'); $valid_attr = array(MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH); $valid_attr[] = MYSQLI_STMT_ATTR_CURSOR_TYPE; $valid_attr[] = MYSQLI_CURSOR_TYPE_NO_CURSOR; $valid_attr[] = MYSQLI_CURSOR_TYPE_READ_ONLY; $valid_attr[] = MYSQLI_CURSOR_TYPE_FOR_UPDATE; $valid_attr[] = MYSQLI_CURSOR_TYPE_SCROLLABLE; $valid_attr[] = MYSQLI_STMT_ATTR_PREFETCH_ROWS; $stmt = mysqli_stmt_init($link); try { mysqli_stmt_attr_set($stmt, 0, 0); } catch (\Throwable $e) { echo get_class($e) . ': ' . $e->getMessage() . PHP_EOL; } $stmt->prepare("SELECT * FROM test"); // Invalid Attribute (2nd argument) try { mysqli_stmt_attr_set($stmt, -1, 0); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } // Invalid mode for MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH try { $stmt->attr_set(MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH, -1); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } $stmt->close(); // // MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH // // expecting max_length not to be set and be 0 in all cases $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT label FROM test"); $stmt->execute(); $stmt->store_result(); $res = $stmt->result_metadata(); $fields = $res->fetch_fields(); $max_lengths = array(); foreach ($fields as $k => $meta) { $max_lengths[$meta->name] = $meta->max_length; if ($meta->max_length !== 0) printf("[007] max_length should be not set (= 0), got %s for field %s\n", $meta->max_length, $meta->name); } $res->close(); $stmt->close(); // MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH is no longer supported, expect no change in behavior. $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT label FROM test"); var_dump($stmt->attr_set(MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH, 1)); $res = $stmt->attr_get(MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH); if ($res !== 1) printf("[007.1] max_length should be 1, got %s\n", $res); $stmt->execute(); $stmt->store_result(); $res = $stmt->result_metadata(); $fields = $res->fetch_fields(); $max_lengths = array(); foreach ($fields as $k => $meta) { $max_lengths[$meta->name] = $meta->max_length; if ($meta->max_length !== 0) printf("[008] max_length should be not set (= 0), got %s for field %s\n", $meta->max_length, $meta->name); } $res->close(); $stmt->close(); // expecting max_length not to be set $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT label FROM test"); $stmt->attr_set(MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH, 0); $res = $stmt->attr_get(MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH); if ($res !== 0) printf("[008.1] max_length should be 0, got %s\n", $res); $stmt->execute(); $stmt->store_result(); $res = $stmt->result_metadata(); $fields = $res->fetch_fields(); $max_lengths = array(); foreach ($fields as $k => $meta) { $max_lengths[$meta->name] = $meta->max_length; if ($meta->max_length !== 0) printf("[009] max_length should not be set (= 0), got %s for field %s\n", $meta->max_length, $meta->name); } $res->close(); $stmt->close(); // // Cursors // $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT id, label FROM test"); // Invalid cursor type try { $stmt->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE, -1); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } if (false !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_CURSOR_TYPE_FOR_UPDATE))) printf("[011] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); if (false !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_CURSOR_TYPE_SCROLLABLE))) printf("[012] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); if (true !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_CURSOR_TYPE_NO_CURSOR))) printf("[013] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); if (true !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_CURSOR_TYPE_READ_ONLY))) printf("[014] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); $stmt->close(); $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT id, label FROM test"); $stmt->execute(); $id = $label = NULL; $stmt->bind_result($id, $label); $results = array(); while ($stmt->fetch()) $results[$id] = $label; $stmt->close(); if (empty($results)) printf("[015] Results should not be empty, subsequent tests will probably fail!\n"); $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT id, label FROM test"); if (true !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_CURSOR_TYPE_NO_CURSOR))) printf("[016] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); $stmt->execute(); $id = $label = NULL; $stmt->bind_result($id, $label); $results2 = array(); while ($stmt->fetch()) $results2[$id] = $label; $stmt->close(); if ($results != $results2) { printf("[017] Results should not differ. Dumping both result sets.\n"); var_dump($results); var_dump($results2); } $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT id, label FROM test"); if (true !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_CURSOR_TYPE_READ_ONLY))) printf("[018] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); $stmt->execute(); $id = $label = NULL; $stmt->bind_result($id, $label); $results2 = array(); while ($stmt->fetch()) $results2[$id] = $label; $stmt->close(); if ($results != $results2) { printf("[019] Results should not differ. Dumping both result sets.\n"); var_dump($results); var_dump($results2); } // // MYSQLI_STMT_ATTR_PREFETCH_ROWS // $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT id, label FROM test"); // Invalid prefetch value try { $stmt->attr_set(MYSQLI_STMT_ATTR_PREFETCH_ROWS, 0); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } if (true !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_PREFETCH_ROWS, 1))) printf("[020] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); $stmt->execute(); $id = $label = NULL; $stmt->bind_result($id, $label); $results = array(); while ($stmt->fetch()) $results[$id] = $label; $stmt->close(); if (empty($results)) printf("[021] Results should not be empty, subsequent tests will probably fail!\n"); /* prefetch is not supported $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT label FROM test"); if (false !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_PREFETCH_ROWS, -1))) printf("[022] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); $stmt->close(); $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT label FROM test"); if (true !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_PREFETCH_ROWS, PHP_INT_MAX))) printf("[023] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); $stmt->close(); $stmt = mysqli_stmt_init($link); $stmt->prepare("SELECT id, label FROM test"); if (true !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_PREFETCH_ROWS, 2))) printf("[024] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); $stmt->execute(); $id = $label = NULL; $stmt->bind_result($id, $label); $results2 = array(); while ($stmt->fetch()) $results2[$id] = $label; $stmt->close(); if ($results != $results2) { printf("[025] Results should not differ. Dumping both result sets.\n"); var_dump($results); var_dump($results2); } */ mysqli_close($link); print "done!"; ?> --CLEAN-- <?php require_once("clean_table.inc"); ?> --EXPECT-- Error: mysqli_stmt object is not fully initialized mysqli_stmt_attr_set(): Argument #2 ($attribute) must be one of MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH, MYSQLI_STMT_ATTR_PREFETCH_ROWS, or STMT_ATTR_CURSOR_TYPE mysqli_stmt::attr_set(): Argument #2 ($value) must be 0 or 1 for attribute MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH bool(true) mysqli_stmt::attr_set(): Argument #2 ($value) must be one of the MYSQLI_CURSOR_TYPE_* constants for attribute MYSQLI_STMT_ATTR_CURSOR_TYPE mysqli_stmt::attr_set(): Argument #2 ($value) must be greater than 0 for attribute MYSQLI_STMT_ATTR_PREFETCH_ROWS done!
PHP
4
NathanFreeman/php-src
ext/mysqli/tests/mysqli_stmt_attr_set.phpt
[ "PHP-3.01" ]
FancySpec describe: File with: { it: "returns an array with the openmodes symbols" with: 'open:modes: when: { file = File open: "README.md" modes: ['read] file modes is: ['read] file close } it: "reads a file correctly" with: 'read:with: when: { lines = File read: "README.md" . lines idx = 0 File read: "README.md" with: |f| { until: { f eof? } do: { lines[idx] is: (f readline chomp) idx = idx + 1 } } } it: "reads all lines in a file correctly" with: 'readlines: when: { File readlines: "README.md" . is: $ File read: "README.md" with: @{ readlines } } it: "writes a file correctly" with: 'write:with: when: { dirname = "tmp" filename = "#{dirname}/write_test.txt" Directory create!: dirname File write: filename with: |f| { 10 times: |i| { f println: i } } File read: filename . lines is: $ ["0","1","2","3","4","5","6","7","8","9"] File delete: filename Directory delete: dirname } it: "is open after opening it and closed after closing" with: 'close when: { file = File open: "README.md" modes: ['read] file open? is: true file close file open? is: false } it: "is closed when not correctly opened" with: 'open? when: { { file = File new } raises: ArgumentError } it: "writes and reads from a file correctly" with: 'println: when: { filename = "/tmp/read_write_test.txt" file = File open: filename modes: ['write] file println: "hello, world!" file println: "line number two" file close File exists?: filename . is: true file = File open: filename modes: ['read] lines = [] 2 times: { lines << (file readln) } lines[0] is: "hello, world!\n" lines[1] is: "line number two\n" lines is: ["hello, world!\n", "line number two\n"] # delete file File delete: filename File exists?: filename . is: false } it: "raises an IOError exception when trying to open an invalid file" when: { { file = File open: "/foo/bar/baz" modes: ['read] } raises: IOError } it: "renames a File" when: { dirname = "tmp/" filename = dirname ++ "foobar" Directory create: dirname File write: filename with: @{ println: "testing!" } Directory exists?: dirname . is: true File exists?: dirname . is: true File directory?: dirname . is: true File rename: filename to: (filename ++ "-new") File exists?: filename . is: false File exists?: (filename ++ "-new") . is: true File delete: (filename ++ "-new") Directory delete: "tmp/" } it: "is a directory" with: 'directory?: when: { File directory?: "lib/" . is: true File directory?: "lib/rbx" . is: true } it: "is NOT a directory" with: 'directory?: when: { File directory?: "src/Makefile" . is: false File directory?: "README" . is: false File directory?: "src/bootstrap/Makefile" . is: false } it: "evals a file" with: 'eval: when: { "/tmp/test_#{Time now to_i}.fy" tap: |filename| { File tap: @{ write: filename with: @{ print: "2 * 3 to_s inspect" } eval: filename . is: $ 6 to_s inspect delete: filename } # File write: filename with: @{ print: "2 * 3 to_s inspect" } # File eval: filename . is: $ 6 to_s inspect # File delete: filename } } it: "reads a config file" with: 'read_config: when: { contents = """ { test: 'value other: 123 more: { again: 'foo yup: [1,2,3] } } """ filename = "/tmp/#{Time now to_i random}_fy_test.txt" File write: filename with: @{ print: contents } File read_config: filename . is: <[ 'test => 'value, 'other => 123, 'more => <[ 'again => 'foo, 'yup => [1,2,3] ]> ]> File delete: filename } it: "overwrites a file correctly" with: 'overwrite:with: when: { filename = "/tmp/#{Time now to_i random}_overwrite_test.fy" try { File write: filename with: @{ println: "foo"; println: "bar" } File read: filename . is: "foo\nbar\n" File overwrite: filename with: @{ println: "bar"; println: "foo" } File read: filename . is: "bar\nfoo\n" } finally { File delete!: filename } } }
Fancy
5
bakkdoor/fancy
tests/file.fy
[ "BSD-3-Clause" ]
html, body { margin: 0; font-family: sans-serif; } a, a:visited, a:link, a:active { color: #2da6b0; text-decoration: none; } a:hover { color: #2da6b0; text-decoration: underline; } #topbar { background-color: #2da6b0; height: 60px; margin:auto; } #topbar .title { position: relative; top: 24px; left: 24px; color: white; font-family: sans-serif; font-weight: bold; } #main { max-width:1100px; margin:auto; } #main h2 { text-align: left; } #main table { width:100%; border-collapse: collapse; font-size: small; font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', Courier, monospace; } #main table tr td { border: solid black 1px; padding: 5px; } #main table tr td.hash { text-align: right; border-left: none; font-size: x-small; } #main table tr td.name { text-align: left; border-right: none; } p.description { font-size: smaller; } #metadata { margin-top: 15px; padding: 15px; font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', Courier, monospace; } #metadata span.fieldname { font-family: sans-serif; }
CSS
4
samotarnik/grpc
tools/package_hosting/style.css
[ "Apache-2.0" ]
module.exports = -> <div>Bar</div>
CoffeeScript
2
justinforbes/cypress
packages/server/test/support/fixtures/server/cjsx.cjsx
[ "MIT" ]
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. using namespace System.Management.Automation #region "Replace existing function" function Invoke-AzureFunction { [Experimental("ExpTest.FeatureOne", [ExperimentAction]::Hide)] param( [string] $Token, [string] $Command ) "Invoke-AzureFunction Version ONE" } function Invoke-AzureFunctionV2 { [Experimental("ExpTest.FeatureOne", [ExperimentAction]::Show)] [Alias("Invoke-AzureFunction")] [CmdletBinding()] param( [Parameter(Mandatory)] [string] $Token, [Parameter(Mandatory)] [string] $Command ) "Invoke-AzureFunction Version TWO" } #endregion #region "Make parameter set experimental" function Get-GreetingMessage { [CmdletBinding(DefaultParameterSetName = "Default")] param( [Parameter(Mandatory)] [string] $Name, ## If only one parameter attribute is declared for a parameter, then the parameter is ## hidden when the parameter attribute needs to be hide. [Parameter("ExpTest.FeatureOne", [ExperimentAction]::Show, ParameterSetName = "SwitchOneSet")] [switch] $SwitchOne, [Parameter("ExpTest.FeatureOne", [ExperimentAction]::Show, ParameterSetName = "SwitchTwoSet")] [switch] $SwitchTwo ) $message = "Hello World $Name." if ([ExperimentalFeature]::IsEnabled("ExpTest.FeatureOne")) { if ($SwitchOne) { $message += "-SwitchOne is on." } if ($SwitchTwo) { $message += "-SwitchTwo is on." } } Write-Output $message } function Invoke-MyCommand { param( [Parameter(Mandatory, ParameterSetName = "ComputerSet")] [string] $UserName, [Parameter(Mandatory, ParameterSetName = "ComputerSet")] [string] $ComputerName, [Parameter(Mandatory, ParameterSetName = "VMSet")] [string] $VMName, ## Enable web socket only if the feature is turned on. [Parameter("ExpTest.FeatureOne", [ExperimentAction]::Show, Mandatory, ParameterSetName = "WebSocketSet")] [string] $Token, [Parameter("ExpTest.FeatureOne", [ExperimentAction]::Show, Mandatory, ParameterSetName = "WebSocketSet")] [string] $WebSocketUrl, ## Add -ConfigurationName to parameter set "WebSocketSet" only if the feature is turned on. [Parameter(ParameterSetName = "ComputerSet")] [Parameter("ExpTest.FeatureOne", [ExperimentAction]::Show, ParameterSetName = "WebSocketSet")] [string] $ConfigurationName, ## Add -Port to parameter set "WebSocketSet" only if the feature is turned on. [Parameter(ParameterSetName = "VMSet")] [Parameter("ExpTest.FeatureOne", [ExperimentAction]::Show, ParameterSetName = "WebSocketSet")] [int] $Port, [int] $ThrottleLimit, [string] $Command ) switch ($PSCmdlet.ParameterSetName) { "ComputerSet" { "Invoke-MyCommand with ComputerSet" } "VMSet" { "Invoke-MyCommand with VMSet" } "WebSocketSet" { "Invoke-MyCommand with WebSocketSet" } } } function Test-MyRemoting { param( ## Replace one parameter with another one when the feature is turned on. [Parameter("ExpTest.FeatureOne", [ExperimentAction]::Hide)] [string] $SessionName, [Parameter("ExpTest.FeatureOne", [ExperimentAction]::Show)] [string] $ComputerName ) } #endregion #region "Use 'Experimental' attribute on parameters" function Save-MyFile { param( [Parameter(ParameterSetName = "UrlSet")] [switch] $ByUrl, [Parameter(ParameterSetName = "RadioSet")] [switch] $ByRadio, [string] $FileName, [Experimental("ExpTest.FeatureOne", [ExperimentAction]::Show)] [string] $Destination, [Experimental("ExpTest.FeatureOne", [ExperimentAction]::Hide)] [Parameter(ParameterSetName = "UrlSet")] [Parameter(ParameterSetName = "RadioSet")] [string] $Configuration ) } #endregion #region "Dynamic parameters" function Test-MyDynamicParamOne { [CmdletBinding()] param( [string] $Name ) ## Use the parameter attribute to hide or show a dynamic parameter. DynamicParam { if ($Name -eq "Joe") { $runtimeParams = [RuntimeDefinedParameterDictionary]::new() $configFileAttributes = [System.Collections.ObjectModel.Collection[Attribute]]::new() $configFileAttributes.Add([Parameter]::new("ExpTest.FeatureOne", [ExperimentAction]::Show)) $configFileAttributes.Add([ValidateNotNullOrEmpty]::new()) $configFileParam = [RuntimeDefinedParameter]::new("ConfigFile", [string], $configFileAttributes) $configNameAttributes = [System.Collections.ObjectModel.Collection[Attribute]]::new() $configNameAttributes.Add([Parameter]::new("ExpTest.FeatureOne", [ExperimentAction]::Hide)) $configNameAttributes.Add([ValidateNotNullOrEmpty]::new()) $ConfigNameParam = [RuntimeDefinedParameter]::new("ConfigName", [string], $configNameAttributes) $runtimeParams.Add("ConfigFile", $configFileParam) $runtimeParams.Add("ConfigName", $ConfigNameParam) return $runtimeParams } } } function Test-MyDynamicParamTwo { [CmdletBinding()] param( [string] $Name ) ## Use the experimental attribute to hide or show a dynamic parameter. DynamicParam { if ($Name -eq "Joe") { $runtimeParams = [RuntimeDefinedParameterDictionary]::new() $configFileAttributes = [System.Collections.ObjectModel.Collection[Attribute]]::new() $configFileAttributes.Add([Experimental]::new("ExpTest.FeatureOne", [ExperimentAction]::Show)) $configFileAttributes.Add([Parameter]::new()) $configFileAttributes.Add([ValidateNotNullOrEmpty]::new()) $configFileParam = [RuntimeDefinedParameter]::new("ConfigFile", [string], $configFileAttributes) $configNameAttributes = [System.Collections.ObjectModel.Collection[Attribute]]::new() $configNameAttributes.Add([Experimental]::new("ExpTest.FeatureOne", [ExperimentAction]::Hide)) $configNameAttributes.Add([Parameter]::new()) $configNameAttributes.Add([ValidateNotNullOrEmpty]::new()) $ConfigNameParam = [RuntimeDefinedParameter]::new("ConfigName", [string], $configNameAttributes) $runtimeParams.Add("ConfigFile", $configFileParam) $runtimeParams.Add("ConfigName", $ConfigNameParam) return $runtimeParams } } } #endregion
PowerShell
5
rdtechie/PowerShell
test/powershell/engine/ExperimentalFeature/assets/ExpTest/ExpTest.psm1
[ "MIT" ]
#!/bin/tcsh set nl=10 set N=128 echo nl=$nl echo N=$N #compile lu chpl --fast lu.chpl -o lu echo 'Cyclic (C)' ./lu -nl $nl --dist=C --N=$N --messages ./lu -nl $nl --dist=C --N=$N --timeit echo 'Cyclic with modulo unrolling (CM)' ./lu -nl $nl --dist=CM --N=$N --correct ./lu -nl $nl --dist=CM --N=$N --messages ./lu -nl $nl --dist=CM --N=$N --timeit echo 'Block (B)' ./lu -nl $nl --dist=B --N=$N --messages ./lu -nl $nl --dist=B --N=$N --timeit echo 'No distribution (NONE)' ./lu -nl $nl --dist=NONE --N=$N --timeit
Tcsh
4
jhh67/chapel
test/users/aroonsharma/LinearAlgebra/dolubench.tcsh
[ "ECL-2.0", "Apache-2.0" ]
.intermediate { composes: test from './mixins.module.css'; height: 300px; }
CSS
3
zowesiouff/parcel
packages/core/integration-tests/test/integration/postcss-composes/mixins-intermediate.module.css
[ "MIT" ]
#!/usr/bin/env fish # TODO: This is only a basic draft. set -l return_code 0 omf list | grep apt 2>&1 >/dev/null set -l apt_installed_previously $status if test $apt_installed_previously -eq 0 omf remove apt end set commands "omf help" "omf doctor" "omf install apt" for cmd in $commands echo \$ $cmd if not eval $cmd set return_code 1 end end if test $apt_installed_previously -ne 0 omf remove apt end exit $return_code
fish
2
e-ntro-py/oh-my-fish
tests/run.fish
[ "MIT" ]
; CLW file contains information for the MFC ClassWizard [General Info] Version=1 ClassCount=1 ResourceCount=1 NewFileInclude1=#include "stdafx.h" Class1=CPortView LastClass=CPortView LastTemplate=CFormView Resource1=IDD_NODEVIEW [DLG:IDD_NODEVIEW] Type=1 Class=CPortView ControlCount=15 Control1=IDC_EDIT2,edit,1350631552 Control2=IDC_BUTTON1,button,1342242816 Control3=IDC_BUTTON2,button,1342242816 Control4=IDC_EDIT6,edit,1350631552 Control5=IDC_EDIT5,edit,1350631552 Control6=IDC_HOTKEY1,msctls_hotkey32,1350631424 Control7=IDC_BUTTON3,button,1342242816 Control8=IDC_CHECK1,button,1342242819 Control9=IDC_STATIC,static,1342308352 Control10=IDC_STATIC,static,1342308352 Control11=IDC_EDIT1,edit,1350633600 Control12=IDC_STATIC,static,1342308352 Control13=IDC_STATIC,static,1342308352 Control14=IDC_STATIC,static,1342177288 Control15=IDC_CHECK2,button,1342242819 [CLS:CPortView] Type=0 HeaderFile=PortView.h ImplementationFile=PortView.cpp BaseClass=CFormView Filter=D LastObject=IDC_CHECK2 VirtualFilter=VWC
Clarion
2
CarysT/medusa
Tools/WindowButtonPort/WindowButtonPort.clw
[ "MIT" ]
/******************************************************************************** * Copyright (c) {date} Red Hat Inc. and/or its affiliates and others * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * http://www.apache.org/licenses/LICENSE-2.0 * * SPDX-License-Identifier: Apache-2.0 ********************************************************************************/ import com.intellij.ide.util { ModuleRendererFactory, PsiElementModuleRenderer } import com.intellij.openapi.\imodule { Module } import com.intellij.openapi.vfs { JarFileSystem { jarFs=instance } } import com.intellij.psi.impl.compiled { ClsClassImpl } import com.intellij.util.ui { UIUtil } import org.eclipse.ceylon.ide.common.model { AnyProjectSourceFile } import java.awt { Component } import javax.swing { DefaultListCellRenderer, JList, SwingConstants, BorderFactory } import org.eclipse.ceylon.ide.intellij.compiled { classFileDecompilerUtil } import org.eclipse.ceylon.ide.intellij.util { icons } shared class DeclarationModuleRendererFactory() extends ModuleRendererFactory() { moduleRenderer => declarationListCellRenderer; handles(Object? element) => element is DeclarationNavigationItem|ClsClassImpl; } "Renders a Ceylon declaration, for example in the results of Go To Class." shared object declarationListCellRenderer extends DefaultListCellRenderer() { value delegate = PsiElementModuleRenderer(); shared actual Component getListCellRendererComponent(JList<out Object>? list, Object? val, Integer index, Boolean isSelected, Boolean cellHasFocus) { function superComponent() { value oldText = text; value oldIcon = icon; value cmp = super.getListCellRendererComponent(list, val, index, isSelected, cellHasFocus); text = oldText; icon = oldIcon; border = BorderFactory.createEmptyBorder(0, 0, 0, UIUtil.listCellHPadding); horizontalTextPosition = SwingConstants.left; background = isSelected then UIUtil.listSelectionBackground else UIUtil.listBackground; foreground = isSelected then UIUtil.listSelectionForeground else UIUtil.inactiveTextColor; return cmp; } if (is DeclarationNavigationItem val) { value mod = val.declaration.unit.\ipackage.\imodule; value text = StringBuilder(); if (is AnyProjectSourceFile psf = val.declaration.unit, is Module proj = psf.resourceProject) { text.append(proj.name); icon = icons.project; } else { text.append(mod.nameAsString).append("/").append(mod.version); icon = icons.moduleArchives; } this.text = text.string; return superComponent(); } else if (is ClsClassImpl val, exists vfile = val.containingFile?.virtualFile, classFileDecompilerUtil.hasValidCeylonBinaryData(vfile)) { if (exists jar = jarFs.getVirtualFileForJar(vfile)) { if (exists pos = jar.nameWithoutExtension.firstOccurrence('-')) { text = jar.nameWithoutExtension.replaceFirst("-", "/"); } else { text = jar.name; } } else { text = vfile.name; } icon = icons.moduleArchives; return superComponent(); } else { return delegate.getListCellRendererComponent(list, val, index, isSelected, cellHasFocus); } } }
Ceylon
4
Kopilov/ceylon-ide-intellij
source/org/eclipse/ceylon/ide/intellij/codeInsight/navigation/DeclarationModuleRendererFactory.ceylon
[ "Apache-2.0" ]
// This file contains various error functions. fn redundant_cli_flag() : void fn bad_file(string) : void fn bad_directory(string) : void fn bad_flag(string) : void fn error_flag(string) : void fn internal_error() : void fn bad_exclude(string) : void fn maybe_err(string) : void
ATS
3
lambdaxymox/polyglot
SATS/error.sats
[ "BSD-3-Clause" ]
(defmodule sc.backend (export (start 1))) (include-lib "logjam/include/logjam.hrl") (defun start (cfg) (log-notice "Starting SuperCollider backend ...") 'ok)
LFE
4
cyblue9/undertone
src/sc/backend.lfe
[ "Apache-2.0" ]
# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # # Original Author: Mario Tanev # Purpose: # ECLASS="sourceforge" INHERITED="$INHERITED $ECLASS" ECVS_BRANCH="" # If no module indicated in ebuild, assume package name is it [ -z $ESF_MODULE ] && ESF_MODULE="$PN" [ -z $ESF_SUBDIR ] && ESF_SUBDIR="$ESF_MODULE" ECVS_MODULE="$ESF_SUBDIR" # If no user indicated in ebuild, assume anonymous login [ -z $ESF_USER ] && ESF_USER="anonymous" ECVS_USER="$ESF_USER" # If no server indicated in ebuild, assume cvs.sourceforge.net [ -z $ESF_SERVER ] && ESF_SERVER="cvs.sourceforge.net" ECVS_SERVER="$ESF_SERVER:/cvsroot/${ESF_MODULE}" # S=$WORKDIR/$ESF_SUBDIR inherit cvs function sourceforge_src_unpack() { cvs_src_unpack } EXPORT_FUNCTIONS src_unpack
Gentoo Eclass
3
yamadharma/gentoo-portage-local
eclass/sourceforge.eclass
[ "CC-BY-4.0" ]
At: "076.hac":10: parse error: syntax error parser stacks: state value #STATE# (null) #STATE# list<(root_item)>: (process-prototype) ... [3:1--8:7] #STATE# (type-ref) [10:1..9] #STATE# list<(declaration-id)>: (declaration-array): identifier: plist<(range)>: (range) ... ... [10:11..16] #STATE# ( [10:18] in state #STATE#, possible rules are: type_instance_declaration: type_id instance_id_list . ';' (#RULE#) instance_id_list: instance_id_list . ',' instance_id_item (#RULE#) acceptable tokens are: ',' (shift) ';' (shift)
Bison
1
broken-wheel/hacktist
hackt_docker/hackt/test/parser/connect/076.stderr.bison
[ "MIT" ]
import structs/ArrayList import ../frontend/[Token, BuildParams] import Expression, Visitor, Type, Node, VariableDecl, FunctionDecl import tinker/[Trail, Resolver, Response] AddressOf: class extends Expression { expr: Expression isForGenerics := false // hack - see FunctionCall handleGenerics() init: func ~addressOf (=expr, .token) { super(token) } clone: func -> This { copy := new(expr, token) copy isForGenerics = isForGenerics // not that this should never be needed. copy } accept: func (visitor: Visitor) { visitor visitAddressOf(this) } hasSideEffects : func -> Bool { expr hasSideEffects() } getType: func -> Type { expr getType() ? expr getType() reference() : null } toString: func -> String { return expr toString() + "&" } resolve: func (trail: Trail, res: Resolver) -> Response { trail push(this) { response := expr resolve(trail, res) if(!response ok()) { trail pop(this) return response } } trail pop(this) if(!expr isReferencable()) { expr = VariableDecl new(null, generateTempName("unreferencable"), expr, expr token) res wholeAgain(this, "replaced expr with varDecl, need to unwrap") } return Response OK } replace: func (oldie, kiddo: Node) -> Bool { match oldie { case expr => expr = kiddo; true case => false } } }
ooc
3
fredrikbryntesson/launchtest
source/rock/middle/AddressOf.ooc
[ "MIT" ]
{% use "bootstrap_5_layout.html.twig" %} {# Labels #} {% block form_label -%} {%- if label is same as(false) -%} <div class="{{ block('form_label_class') }}"></div> {%- else -%} {%- set row_class = row_class|default(row_attr.class|default('')) -%} {%- if 'form-floating' not in row_class and 'input-group' not in row_class -%} {%- if expanded is not defined or not expanded -%} {%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' col-form-label')|trim}) -%} {%- endif -%} {%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ block('form_label_class'))|trim}) -%} {%- endif -%} {{- parent() -}} {%- endif -%} {%- endblock form_label %} {% block form_label_class -%} col-sm-2 {%- endblock form_label_class %} {# Rows #} {% block form_row -%} {%- if expanded is defined and expanded -%} {{ block('fieldset_form_row') }} {%- else -%} {%- set widget_attr = {} -%} {%- if help is not empty -%} {%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%} {%- endif -%} {%- set row_class = row_class|default(row_attr.class|default('mb-3')) -%} {%- set is_form_floating = is_form_floating|default('form-floating' in row_class) -%} {%- set is_input_group = is_input_group|default('input-group' in row_class) -%} {#- Remove behavior class from the main container -#} {%- set row_class = row_class|replace({'form-floating': '', 'input-group': ''}) -%} <div{% with {attr: row_attr|merge({class: (row_class ~ ' row' ~ ((not compound or force_error|default(false)) and not valid ? ' is-invalid'))|trim})} %}{{ block('attributes') }}{% endwith %}> {%- if is_form_floating or is_input_group -%} <div class="{{ block('form_label_class') }}"></div> <div class="{{ block('form_group_class') }}"> {%- if is_form_floating -%} <div class="form-floating"> {{- form_widget(form, widget_attr) -}} {{- form_label(form) -}} </div> {%- elseif is_input_group -%} <div class="input-group"> {{- form_label(form) -}} {{- form_widget(form, widget_attr) -}} {#- Hack to properly display help with input group -#} {{- form_help(form) -}} </div> {%- endif -%} {%- if not is_input_group -%} {{- form_help(form) -}} {%- endif -%} {{- form_errors(form) -}} </div> {%- else -%} {{- form_label(form) -}} <div class="{{ block('form_group_class') }}"> {{- form_widget(form, widget_attr) -}} {{- form_help(form) -}} {{- form_errors(form) -}} </div> {%- endif -%} {##}</div> {%- endif -%} {%- endblock form_row %} {% block fieldset_form_row -%} {%- set widget_attr = {} -%} {%- if help is not empty -%} {%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%} {%- endif -%} <fieldset{% with {attr: row_attr|merge({class: row_attr.class|default('mb-3')|trim})} %}{{ block('attributes') }}{% endwith %}> <div class="row{% if (not compound or force_error|default(false)) and not valid %} is-invalid{% endif %}"> {{- form_label(form) -}} <div class="{{ block('form_group_class') }}"> {{- form_widget(form, widget_attr) -}} {{- form_help(form) -}} {{- form_errors(form) -}} </div> </div> </fieldset> {%- endblock fieldset_form_row %} {% block submit_row -%} <div{% with {attr: row_attr|merge({class: (row_attr.class|default('mb-3') ~ ' row')|trim})} %}{{ block('attributes') }}{% endwith %}>{#--#} <div class="{{ block('form_label_class') }}"></div>{#--#} <div class="{{ block('form_group_class') }}"> {{- form_widget(form) -}} </div>{#--#} </div> {%- endblock submit_row %} {% block reset_row -%} <div{% with {attr: row_attr|merge({class: (row_attr.class|default('mb-3') ~ ' row')|trim})} %}{{ block('attributes') }}{% endwith %}>{#--#} <div class="{{ block('form_label_class') }}"></div>{#--#} <div class="{{ block('form_group_class') }}"> {{- form_widget(form) -}} </div>{#--#} </div> {%- endblock reset_row %} {% block button_row -%} <div{% with {attr: row_attr|merge({class: (row_attr.class|default('mb-3') ~ ' row')|trim})} %}{{ block('attributes') }}{% endwith %}>{#--#} <div class="{{ block('form_label_class') }}"></div>{#--#} <div class="{{ block('form_group_class') }}"> {{- form_widget(form) -}} </div>{#--#} </div> {%- endblock button_row %} {% block checkbox_row -%} <div{% with {attr: row_attr|merge({class: (row_attr.class|default('mb-3') ~ ' row')|trim})} %}{{ block('attributes') }}{% endwith %}>{#--#} <div class="{{ block('form_label_class') }}"></div>{#--#} <div class="{{ block('form_group_class') }}"> {{- form_widget(form) -}} {{- form_help(form) -}} {{- form_errors(form) -}} </div>{#--#} </div> {%- endblock checkbox_row %} {% block form_group_class -%} col-sm-10 {%- endblock form_group_class %}
Twig
4
gjuric/symfony
src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_5_horizontal_layout.html.twig
[ "MIT" ]
(***********************************************************************) (* *) (* Applied Type System *) (* *) (***********************************************************************) (* ** ATS/Postiats - Unleashing the Potential of Types! ** Copyright (C) 2011-20?? Hongwei Xi, ATS Trustful Software, Inc. ** All rights reserved ** ** ATS is free software; you can redistribute it and/or modify it under ** the terms of the GNU GENERAL PUBLIC LICENSE (GPL) as published by the ** Free Software Foundation; either version 3, or (at your option) any ** later version. ** ** ATS 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 ATS; see the file COPYING. If not, please write to the ** Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA ** 02110-1301, USA. *) (* ****** ****** *) (* ** Source: ** $PATSHOME/prelude/DATS/CODEGEN/string.atxt ** Time of generation: Thu Jul 3 21:15:48 2014 *) (* ****** ****** *) (* Author: Hongwei Xi *) (* Authoremail: hwxi AT cs DOT bu DOT edu *) (* Start time: April, 2012 *) (* ****** ****** *) #include "config.hats" staload "{$TOP}/avr_prelude/SATS/string0.sats" staload UN = "prelude/SATS/unsafe.sats" (* ****** ****** *) #define CNUL '\000' (* ****** ****** *) implement{env} string0_foreach$cont (c, env) = true implement{env} string0_foreach$fwork (c, env) = ((*void*)) implement{} string0_foreach (str) = let var env: void = () in string0_foreach_env (str, env) end // end of [string0_foreach] implement{env} string0_foreach_env (str, env) = let // fun loop ( p: ptr, env: &env ) : ptr = let val c = $UN.ptr0_get<char> (p) val cont = ( if c != CNUL then string0_foreach$cont<env> (c, env) else false ) : bool // end of [val] in if cont then let val () = string0_foreach$fwork<env> (c, env) in loop (ptr_succ<char> (p), env) // end of [val] end else (p) // end of [if] end // end of [fun] // val p0 = string2ptr (str) val p1 = loop (p0, env) // in $UN.cast{size_t}(p1 - p0) end // end of [string0_foreach_env] (* ****** ****** *) implement{env} string0_rforeach$cont (c, env) = true implement{env} string0_rforeach$fwork (c, env) = ((*void*)) implement{} string0_rforeach (str) = let var env: void = () in string0_rforeach_env (str, env) end // end of [string0_rforeach] implement {env}(*tmp*) string0_rforeach_env (str, env) = let // fun loop ( p0: ptr, p1: ptr, env: &env >> _ ) : ptr = let in // if (p1 > p0) then let val p2 = ptr_pred<char> (p1) val c2 = $UN.ptr0_get<charNZ> (p2) val cont = string0_rforeach$cont<env> (c2, env) // end of [val] in if cont then let val () = string0_rforeach$fwork<env> (c2, env) in loop (p0, p2, env) end // end of [then] else (p1) // end of [else] end // end of [then] else (p1) // end of [else] // end // end of [loop] // val p0 = ptrcast(str) val p1 = ptr_add<char> (p0, length(str)) // in $UN.cast{size_t}(p1 - loop (p0, p1, env)) end // end of [string0_rforeach_env] (* end of [string0.dats] *)
ATS
4
Proclivis/arduino-ats
avr_prelude/DATS/string0.dats
[ "MIT" ]
/* * Copyright (c) 2017, Lee Keitel * This file is released under the BSD 3-Clause license. * * This file demonstrates "object-oriented" programming * using hashmaps. */ const account = fn(name) { // The "object" is declared inside the fntion making it unique // Since oBalance is not in the dispatch map, it can't be modified // except through the exposed fntions. let oBalance = 0 let dispatch = { "withdraw": nil, "deposit": nil, "balance": nil, } // "methods" are added as key pairs to the map dispatch.withdraw = fn(amount) { if amount > oBalance { return 'Insufficent balance' } oBalance = oBalance - amount return oBalance } dispatch.deposit = fn(amount) { oBalance = oBalance + amount return oBalance } dispatch.balance = fn() { oBalance } dispatch.name = name return dispatch } const main = fn() { let me = account("John Smith") println(me.name) println(me.balance()) println(me.deposit(200)) // "methods" are invoked by simply looking up the key in the map println(me.withdraw(50)) println(me.withdraw(250)) println(me.balance()) // Multiple invocations of account() create new, unique "objects" let me2 = account("John Smith2") println(me2.name) println(me2.balance()) println(me2.deposit(90)) // Show original account was not modified println(me.name) println(me.balance()) } main()
Inform 7
4
lfkeitel/nitrogen
examples/objects.ni
[ "BSD-3-Clause" ]
#!/usr/bin/env awk -f # # @license Apache-2.0 # # Copyright (c) 2017 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Generates a frequency table. # # Usage: tabulate # # Input: # - a column of numbers # # Output: # - frequency table { total += 1 table[$1] += 1 } END { for (v in table) { count = table[v] print v OFS count OFS count/total } }
Awk
4
ghalimi/stdlib
tools/awk/tabulate.awk
[ "BSL-1.0" ]
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} {-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_HADDOCK prune #-} -------------------------------------------------------------------------------- -- | -- Module : Foreign.CUDA.Driver.Module.Base -- Copyright : [2009..2020] Trevor L. McDonell -- License : BSD -- -- Module loading for low-level driver interface -- -------------------------------------------------------------------------------- module Foreign.CUDA.Driver.Module.Base ( -- * Module Management Module(..), JITOption(..), JITTarget(..), JITResult(..), JITFallback(..), JITInputType(..), JITOptionInternal(..), -- ** Loading and unloading modules loadFile, loadData, loadDataFromPtr, loadDataEx, loadDataFromPtrEx, unload, -- Internal jitOptionUnpack, jitTargetOfCompute, ) where #include "cbits/stubs.h" {# context lib="cuda" #} -- Friends import Foreign.CUDA.Analysis.Device import Foreign.CUDA.Driver.Error import Foreign.CUDA.Internal.C2HS import Foreign.C.Extra -- System import Foreign import Foreign.C import Unsafe.Coerce import Control.Monad ( liftM ) import Data.ByteString.Char8 ( ByteString ) import qualified Data.ByteString.Char8 as B import qualified Data.ByteString.Internal as B -------------------------------------------------------------------------------- -- Data Types -------------------------------------------------------------------------------- -- | -- A reference to a Module object, containing collections of device functions -- newtype Module = Module { useModule :: {# type CUmodule #}} deriving (Eq, Show) -- | -- Just-in-time compilation and linking options -- data JITOption = MaxRegisters !Int -- ^ maximum number of registers per thread | ThreadsPerBlock !Int -- ^ number of threads per block to target for | OptimisationLevel !Int -- ^ level of optimisation to apply (1-4, default 4) | Target !Compute -- ^ compilation target, otherwise determined from context | FallbackStrategy !JITFallback -- ^ fallback strategy if matching cubin not found | GenerateDebugInfo -- ^ generate debug info (-g) (requires cuda >= 5.5) | GenerateLineInfo -- ^ generate line number information (-lineinfo) (requires cuda >= 5.5) | Verbose -- ^ verbose log messages (requires cuda >= 5.5) deriving (Show) -- | -- Results of online compilation -- data JITResult = JITResult { jitTime :: !Float, -- ^ milliseconds spent compiling PTX jitInfoLog :: !ByteString, -- ^ information about PTX assembly jitModule :: !Module -- ^ the compiled module } deriving (Show) -- | -- Online compilation target architecture -- {# enum CUjit_target as JITTarget { underscoreToCase } with prefix="CU_TARGET" deriving (Eq, Show) #} -- | -- Online compilation fallback strategy -- {# enum CUjit_fallback as JITFallback { underscoreToCase , CU_PREFER_PTX as PreferPTX } with prefix="CU" deriving (Eq, Show) #} -- | -- Device code formats that can be used for online linking -- #if CUDA_VERSION < 5050 data JITInputType #else {# enum CUjitInputType as JITInputType { underscoreToCase , CU_JIT_INPUT_PTX as PTX } with prefix="CU_JIT_INPUT" deriving (Eq, Show) #} #endif {# enum CUjit_option as JITOptionInternal { } with prefix="CU" deriving (Eq, Show) #} -------------------------------------------------------------------------------- -- Module management -------------------------------------------------------------------------------- -- | -- Load the contents of the specified file (either a ptx or cubin file) to -- create a new module, and load that module into the current context. -- -- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MODULE.html#group__CUDA__MODULE_1g366093bd269dafd0af21f1c7d18115d3> -- {-# INLINEABLE loadFile #-} loadFile :: FilePath -> IO Module loadFile !ptx = resultIfOk =<< cuModuleLoad ptx {-# INLINE cuModuleLoad #-} {# fun unsafe cuModuleLoad { alloca- `Module' peekMod* , withCString* `FilePath' } -> `Status' cToEnum #} -- | -- Load the contents of the given image into a new module, and load that module -- into the current context. The image is (typically) the contents of a cubin or -- PTX file. -- -- Note that the 'ByteString' will be copied into a temporary staging area so -- that it can be passed to C. -- -- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MODULE.html#group__CUDA__MODULE_1g04ce266ce03720f479eab76136b90c0b> -- {-# INLINEABLE loadData #-} loadData :: ByteString -> IO Module loadData !img = B.useAsCString img (\p -> loadDataFromPtr (castPtr p)) -- | -- As 'loadData', but read the image data from the given pointer. The image is a -- NULL-terminated sequence of bytes. -- {-# INLINEABLE loadDataFromPtr #-} loadDataFromPtr :: Ptr Word8 -> IO Module loadDataFromPtr !img = resultIfOk =<< cuModuleLoadData img {-# INLINE cuModuleLoadData #-} {# fun unsafe cuModuleLoadData { alloca- `Module' peekMod* , castPtr `Ptr Word8' } -> ` Status' cToEnum #} -- | -- Load the contents of the given image into a module with online compiler -- options, and load the module into the current context. The image is -- (typically) the contents of a cubin or PTX file. The actual attributes of the -- compiled kernel can be probed using 'requires'. -- -- Note that the 'ByteString' will be copied into a temporary staging area so -- that it can be passed to C. -- -- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MODULE.html#group__CUDA__MODULE_1g9e8047e9dbf725f0cd7cafd18bfd4d12> -- {-# INLINEABLE loadDataEx #-} loadDataEx :: ByteString -> [JITOption] -> IO JITResult loadDataEx !img !options = B.useAsCString img (\p -> loadDataFromPtrEx (castPtr p) options) -- | -- As 'loadDataEx', but read the image data from the given pointer. The image is -- a NULL-terminated sequence of bytes. -- {-# INLINEABLE loadDataFromPtrEx #-} loadDataFromPtrEx :: Ptr Word8 -> [JITOption] -> IO JITResult loadDataFromPtrEx !img !options = do let logSize = 2048 fp_ilog <- B.mallocByteString logSize allocaArray logSize $ \p_elog -> do withForeignPtr fp_ilog $ \p_ilog -> do let (opt,val) = unzip $ [ (JIT_WALL_TIME, 0) -- must be first, this is extracted below , (JIT_INFO_LOG_BUFFER_SIZE_BYTES, logSize) , (JIT_ERROR_LOG_BUFFER_SIZE_BYTES, logSize) , (JIT_INFO_LOG_BUFFER, unsafeCoerce (p_ilog :: CString)) , (JIT_ERROR_LOG_BUFFER, unsafeCoerce (p_elog :: CString)) ] ++ map jitOptionUnpack options withArrayLen (map cFromEnum opt) $ \i p_opts -> do withArray (map unsafeCoerce val) $ \ p_vals -> do (s,mdl) <- cuModuleLoadDataEx img i p_opts p_vals case s of Success -> do time <- peek (castPtr p_vals) bytes <- c_strnlen p_ilog logSize let infoLog | bytes == 0 = B.empty | otherwise = B.fromForeignPtr (castForeignPtr fp_ilog) 0 bytes return $! JITResult time infoLog mdl _ -> do errLog <- peekCString p_elog cudaErrorIO (unlines [describe s, errLog]) {-# INLINE cuModuleLoadDataEx #-} {# fun unsafe cuModuleLoadDataEx { alloca- `Module' peekMod* , castPtr `Ptr Word8' , `Int' , id `Ptr CInt' , id `Ptr (Ptr ())' } -> `Status' cToEnum #} -- | -- Unload a module from the current context. -- -- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MODULE.html#group__CUDA__MODULE_1g8ea3d716524369de3763104ced4ea57b> -- {-# INLINEABLE unload #-} unload :: Module -> IO () unload !m = nothingIfOk =<< cuModuleUnload m {-# INLINE cuModuleUnload #-} {# fun unsafe cuModuleUnload { useModule `Module' } -> `Status' cToEnum #} -------------------------------------------------------------------------------- -- Internal -------------------------------------------------------------------------------- {-# INLINE peekMod #-} peekMod :: Ptr {# type CUmodule #} -> IO Module peekMod = liftM Module . peek {-# INLINE jitOptionUnpack #-} jitOptionUnpack :: JITOption -> (JITOptionInternal, Int) jitOptionUnpack (MaxRegisters x) = (JIT_MAX_REGISTERS, x) jitOptionUnpack (ThreadsPerBlock x) = (JIT_THREADS_PER_BLOCK, x) jitOptionUnpack (OptimisationLevel x) = (JIT_OPTIMIZATION_LEVEL, x) jitOptionUnpack (Target x) = (JIT_TARGET, fromEnum (jitTargetOfCompute x)) jitOptionUnpack (FallbackStrategy x) = (JIT_FALLBACK_STRATEGY, fromEnum x) #if CUDA_VERSION >= 5050 jitOptionUnpack GenerateDebugInfo = (JIT_GENERATE_DEBUG_INFO, fromEnum True) jitOptionUnpack GenerateLineInfo = (JIT_GENERATE_LINE_INFO, fromEnum True) jitOptionUnpack Verbose = (JIT_LOG_VERBOSE, fromEnum True) #else jitOptionUnpack GenerateDebugInfo = requireSDK 'GenerateDebugInfo 5.5 jitOptionUnpack GenerateLineInfo = requireSDK 'GenerateLineInfo 5.5 jitOptionUnpack Verbose = requireSDK 'Verbose 5.5 #endif {-# INLINE jitTargetOfCompute #-} jitTargetOfCompute :: Compute -> JITTarget jitTargetOfCompute (Compute x y) = toEnum (10*x + y)
C2hs Haskell
5
jmatsushita/cuda
src/Foreign/CUDA/Driver/Module/Base.chs
[ "BSD-3-Clause" ]
module M1 (X(..)) where data X = X | Y data Z = Z
PureScript
1
andys8/purescript
tests/purs/failing/ExportExplicit3/M1.purs
[ "BSD-3-Clause" ]
(defprotocol ISound (sound [])) (deftype Cat [] ISound (sound [_] "Meow!")) (deftype Dog [] ISound (sound [_] "Woof!")) (extend-type default ISound (sound [_] "... silence ...")) (sound 1) ;; => "... silence ..."
Clojure
4
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Clojure/protocol.cljs
[ "MIT" ]
#include <vector> #include <tuple> #include <iostream> using namespace std; tuple<int, int> readTwoIntegers() int a, b ? a b return a, b int vectorSum(vector<int> v) sum = 0 for int i : v sum += i return sum
COBOL
2
saviour07/CPY
Examples/Hybrid project/cpyFunction.cpy
[ "MIT" ]
<!DOCTYPE html> <html lang="en"> <head> <!-- @import "imports/app/head.kit" --> <title>Cryptee | Docs</title> <link rel="stylesheet" href="../css/lib/swiper-bundle.min.css"> <link rel="stylesheet" href="../css/lib/quill.snow.css" /> <link rel="stylesheet" href="../css/lib/quill.bubble.css" /> <link rel="stylesheet" href="../css/lib/atom-one-light-10.1.2.css" /> <link rel="stylesheet" href="../css/lib/katex-0.12.0/katex.css" /> <link rel="stylesheet" href="../css/lib/tribute-5.1.3/tribute.css" /> <!-- INSERT MORE CSS HERE --> <link rel="stylesheet" href="../css/docs.css"> <link rel="stylesheet" href="../css/quill-overrides.css"> <link rel="stylesheet" href="../css/typography.css"> <link rel="stylesheet" href="../css/papermode.css"> <link rel="stylesheet" href="../css/adapters.css"> </head> <body class="app-body fixed no-doc starting" msg="starting up..."> <div class="swiper-container docs-swiper-container"> <div class="swiper-wrapper"> <div class="swiper-slide" id="leftSlide"> <!-- @import "imports/app/docs-left.kit" --> </div> <div class="swiper-slide" id="rightSlide"> <!-- @import "imports/app/docs-right.kit" --> </div> </div> </div> <div id="fileViewerWrapper"> <!-- @import "imports/app/docs-file-viewer.kit" --> </div> <div id="dropzone"> <div id="explorer-dropzone"> <span></span> <progress class="progress white" value="100" max="100"></progress> <h3> DROP HERE TO UPLOAD<br> IMAGES / FILES </h3> <p>into your currently open folder: </p> <p> <i class="ri-folder-fill"></i> <span id="dropzone-folder">Inbox</span> </p> </div> <div id="document-dropzone"> <span></span> <progress class="progress" value="100" max="100"></progress> <h3> DROP HERE TO EMBED<br> IMAGES / FILES </h3> <p>into your document</p> </div> </div> <!-- @import "imports/app/docs-modal-make-selections-online.kit" --> <!-- @import "imports/app/docs-modal-delete-selections.kit" --> <!-- @import "imports/app/docs-modal-delete-folder.kit" --> <!-- @import "imports/app/docs-modal-rename.kit" --> <!-- @import "imports/app/docs-modal-saveas.kit" --> <!-- @import "imports/app/docs-modal-katex.kit" --> <!-- @import "imports/app/docs-modal-embed.kit" --> <!-- @import "imports/app/docs-modal-hotkeys.kit" --> <!-- @import "imports/app/docs-modal-toc.kit" --> <!-- @import "imports/app/docs-modal-summon.kit" --> <!-- @import "imports/app/docs-modal-ghost.kit" --> <!-- @import "imports/app/docs-modal-import-ecd.kit" --> <!-- @import "imports/app/docs-modal-export-ecd.kit" --> <!-- @import "imports/app/docs-modal-ecd-failsafe.kit" --> <!-- @import "imports/app/docs-dropdowns.kit" --> <!-- @import "imports/app/docs-panel-sort.kit" --> <!-- @import "imports/app/docs-panel-export.kit" --> <!-- @import "imports/app/docs-panel-docfile.kit" --> <!-- @import "imports/app/docs-panel-docinfo.kit" --> <!-- @import "imports/app/docs-panel-doctools.kit" --> <!-- @import "imports/app/docs-panel-pagesetup.kit" --> <!-- @import "imports/app/docs-panel-saveas-pdf.kit" --> <!-- @import "imports/app/docs-panels.kit" --> <!-- @import "imports/app/docs-tips.kit" --> <!-- @import "imports/app/docs-popup-enote.kit" --> <!-- @import "imports/app/docs-popup-download.kit" --> <div id="create-popups-before-placeholder" style="display: none !important;"></div> <!-- @import "imports/app/modal-key.kit" --> <!-- @import "imports/app/modal-help.kit" --> <!-- @import "imports/app/modal-exceeded-storage.kit" --> <!-- @import "imports/app/modal-low-storage.kit" --> <!-- @import "imports/app/modal-offline-storage-full.kit" --> <!-- @import "imports/app/modal-canvas-blocked.kit" --> <!-- @import "imports/app/modal-remote-images.kit" --> <input style="display:none!important;" type="file" id="upload-input" name="files[]" multiple/> <!-- @import "imports/app/footer.kit" --> <script src="../js/lib/swiper-6.1.2/swiper-bundle.min.js"></script> <script src="../js/lib/exif-reader-3.12.3/exif-reader.js"></script> <script src="../js/lib/highlightjs-10.1.2/highlight.min.js"></script> <!-- markdown imports --> <script src="../js/lib/showdown-1.9.1/showdown.min.js"></script> <!-- markdown exports --> <script src="../js/lib/turndown-7.0.0/turndown.js"></script> <script src="../js/lib/turndown-7.0.0/turndown-plugin-gfm.js"></script> <!-- XML / EVERNOTE imports --> <script src="../js/lib/xml2json/xml2json.js"></script> <!-- DOCX / WORD imports --> <script src="../adapters/mammoth-1.4.16/mammoth.browser.min.js"></script> <!-- zip imports / exports --> <!-- <script src="../js/lib/jszip/jszip.min.js"></script> --> <!-- docx exports --> <script src="../js/lib/docx-5.4.1/index.min.js"></script> <!-- pdf exports --> <script src="../js/lib/jspdf-2.4.0/jspdf.umd.min.js"></script> <script src="../js/lib/html2canvas-1.3.2/html2canvas.min.js"></script> <script src="../js/lib/html2pdf-0.10.1/html2pdf.min.js"></script> <script src="../js/lib/quill-1.3.7/quill.min.js"></script> <script src="../js/quill-modules/imports.js"></script> <script src="../js/quill-modules/clipboard.js"></script> <script src="../js/quill-modules/divider.js"></script> <script src="../js/quill-modules/pagebreak.js"></script> <script src="../js/quill-modules/image-resize.js"></script> <script src="../js/quill-modules/image-format.js"></script> <script src="../js/quill-modules/crypteefile.js"></script> <script src="../js/quill-modules/crypteefolder.js"></script> <script src="../js/quill-modules/crypteetag.js"></script> <script src="../js/quill-modules/crypteepaper.js"></script> <script src="../js/quill-modules/history.js"></script> <script src="../js/quill-modules/tables.js"></script> <script src="../js/quill-modules/markdown.js"></script> <script src="../js/quill-modules/magicurl.js"></script> <script src="../js/quill-modules/lineheight.js"></script> <script src="../js/quill-modules/katex-0.12.0/katex.min.js"></script> <script src="../js/quill-modules/tribute-5.1.3/tribute.min.js"></script> <!-- ++ add more quill modules here ++ --> <script src="../js/quill-modules/keyboard-bindings-and-hotkeys.js"></script> <script src="../js/quill-modules/init.js"></script> <script src="../js/docs.js"></script> <script src="../js/docs/apis.js"></script> <!-- api operations--> <script src="../js/docs/catalog.js"></script> <!-- catalog operations--> <script src="../js/docs/abstractions.js"></script> <!-- all api / catalog abstractions & shortcuts--> <script src="../js/docs/renderers.js"></script> <!-- all element renderers--> <script src="../js/docs/load-doc.js"></script> <!-- document loader / preloader --> <script src="../js/docs/save-doc.js"></script> <!-- document saver / uploader --> <script src="../js/docs/sync.js"></script> <!-- all sync operations --> <script src="../js/docs/html-to-docx.js"></script> <!-- docx pre-processor --> <script src="../js/docs/exporters.js"></script> <!-- all exporters --> <script src="../js/docs/importers.js"></script> <!-- all importers --> <script src="../js/docs/uploader.js"></script> <!-- file uploader --> <script src="../js/docs/search.js"></script> <!-- search --> <script src="../js/docs/adapters.js"></script> <!-- all file viewers / adapters --> <!-- ++ add more docs modules here ++ --> </body></html>
Kit
2
pws1453/web-client
source/docs.kit
[ "MIT" ]
component { public void function function1() { var testStructure = { testKey = "testValue" }; } }
ColdFusion CFC
1
tonym128/CFLint
src/test/resources/com/cflint/tests/VarScoper/structureKeys_197.cfc
[ "BSD-3-Clause" ]
@el1-style: dotted; /* Test that package-relative imports work from within a * package-relative-imported file */ @import "/tests/top3.import.less"; // Make sure regular CSS import doesn't make the compiler explode - this was // a regression from 1.1.0.3 caught in QA @import url("http://hello.myfonts.net/count/2c4b9d");
Less
4
joseconstela/meteor
packages/non-core/less/tests/top.import.less
[ "Apache-2.0", "BSD-2-Clause", "MIT" ]
10 5 0 1 4 1 4 2 3 [0] [0] [0] [0] 1 1 1 7 [11] 2 1 1 9 [1] 3 1 2 10 5 [9] [-1] 4 1 1 8 [1] 5 1 1 6 [2] 6 1 1 10 [1] 7 1 3 5 8 11 [-7] [-2] [10] 8 1 1 7 [2] 9 1 2 11 2 [9] [-2] 10 1 2 11 5 [10] [-5] 11 1 0 0 1 0 0 0 0 0 1 1 0 0 -1 -1 0 2 1 -1 0 -1 1 0 3 1 2 1 2 0 0 4 1 2 -1 -1 0 -1 5 1 0 0 -2 -2 0 6 1 2 -1 -1 0 -1 7 1 1 -2 0 -2 1 8 1 0 0 1 2 -1 9 1 2 -2 0 0 0 10 1 0 1 2 -2 1 11 1 0 0 0 0 0 4 -4 -4 -4 -2 8 0 -1 0 -1
Eagle
0
klorel/or-tools
examples/data/rcpsp/single_mode_consumer_producer/ubo10_cum_2/psp10_8.sch
[ "Apache-2.0" ]
/*All Dimensions in inches */ Fragments = 100; BasePlateH = 0.25; BasePlateW = 2; BasePlateL = 2; ShaftDiam = (12/25.4); ShaftOffsetH = 2; ClampNotchW = .125; ClampNotchH = 10; SupportH = 2.5; SupportW = 1.; SupportL = 1; ClampScrewDiam = .138; ClampScrewOffsetH = SupportH - .15; HoleDiam = 0.25; HoleX = .5; HoleY = .75; ChamferCubeS = .6; ChamferCubeL = 1; BottomCutCubeS = 10; difference(){ union(){ /*Base plate */ translate([0,0, BasePlateH/2]) cube(size = [BasePlateW, BasePlateL, BasePlateH], center = true); /*Shaft support */ translate([0,0, SupportH/2]) cube(size = [SupportW, SupportL, SupportH], center = true); /*Base chamfers */ translate([SupportW/2,0,BasePlateH/2]) rotate([0, 45, 0]) cube(size = [ChamferCubeS, ChamferCubeL, ChamferCubeS], center = true); translate([-SupportW/2,0,BasePlateH/2]) rotate([0, 45, 0]) cube(size = [ChamferCubeS, ChamferCubeL, ChamferCubeS], center = true); } /* Drill base mounting holes */ translate([HoleX, HoleY, 0]) cylinder(h = SupportH, d=HoleDiam, $fn = Fragments, center = true); translate([-HoleX, HoleY, 0]) cylinder(h = SupportH, d=HoleDiam, $fn = Fragments, center = true); translate([HoleX, -HoleY, 0]) cylinder(h = SupportH, d=HoleDiam, $fn = Fragments, center = true); translate([-HoleX, -HoleY, 0]) cylinder(h = SupportH, d=HoleDiam, $fn = Fragments, center = true); /* Drill shaft hole */ translate([0, 0, ShaftOffsetH]) rotate([90, 0, 0]) cylinder(h = SupportH, d=ShaftDiam, $fn = Fragments, center = true); /*Create the clamp notch */ translate([0, 0, ShaftOffsetH + ClampNotchH/2]) cube(size =[ClampNotchW, SupportL, ClampNotchH], center = true); /*Drill clamp holes */ translate([0, .25, ClampScrewOffsetH]) rotate([0, 90, 0]) cylinder(h = SupportH, d=ClampScrewDiam, $fn = Fragments, center = true); translate([0, -.25, ClampScrewOffsetH]) rotate([0, 90, 0]) cylinder(h = SupportH, d=ClampScrewDiam, $fn = Fragments, center = true); /* Cut off everything below the bottom */ translate([0,0, -BottomCutCubeS/2]) cube(size = [BottomCutCubeS,BottomCutCubeS,BottomCutCubeS], center = true); }
OpenSCAD
4
nygrenj/Windows-iotcore-samples
Demos/AirHockeyRobot/CS/Robot Parts/ShaftSupport12MM.scad
[ "MIT" ]
/** * */ import Util; import OpenApi; import EndpointUtil; extends OpenApi; init(config: OpenApi.Config){ super(config); @endpointRule = 'regional'; @endpointMap = { ap-northeast-1 = 'afs.aliyuncs.com', ap-northeast-2-pop = 'afs.aliyuncs.com', ap-south-1 = 'afs.aliyuncs.com', ap-southeast-1 = 'afs.aliyuncs.com', ap-southeast-2 = 'afs.aliyuncs.com', ap-southeast-3 = 'afs.aliyuncs.com', ap-southeast-5 = 'afs.aliyuncs.com', cn-beijing = 'afs.aliyuncs.com', cn-beijing-finance-1 = 'afs.aliyuncs.com', cn-beijing-finance-pop = 'afs.aliyuncs.com', cn-beijing-gov-1 = 'afs.aliyuncs.com', cn-beijing-nu16-b01 = 'afs.aliyuncs.com', cn-chengdu = 'afs.aliyuncs.com', cn-edge-1 = 'afs.aliyuncs.com', cn-fujian = 'afs.aliyuncs.com', cn-haidian-cm12-c01 = 'afs.aliyuncs.com', cn-hangzhou-bj-b01 = 'afs.aliyuncs.com', cn-hangzhou-finance = 'afs.aliyuncs.com', cn-hangzhou-internal-prod-1 = 'afs.aliyuncs.com', cn-hangzhou-internal-test-1 = 'afs.aliyuncs.com', cn-hangzhou-internal-test-2 = 'afs.aliyuncs.com', cn-hangzhou-internal-test-3 = 'afs.aliyuncs.com', cn-hangzhou-test-306 = 'afs.aliyuncs.com', cn-hongkong = 'afs.aliyuncs.com', cn-hongkong-finance-pop = 'afs.aliyuncs.com', cn-huhehaote = 'afs.aliyuncs.com', cn-north-2-gov-1 = 'afs.aliyuncs.com', cn-qingdao = 'afs.aliyuncs.com', cn-qingdao-nebula = 'afs.aliyuncs.com', cn-shanghai = 'afs.aliyuncs.com', cn-shanghai-et15-b01 = 'afs.aliyuncs.com', cn-shanghai-et2-b01 = 'afs.aliyuncs.com', cn-shanghai-finance-1 = 'afs.aliyuncs.com', cn-shanghai-inner = 'afs.aliyuncs.com', cn-shanghai-internal-test-1 = 'afs.aliyuncs.com', cn-shenzhen = 'afs.aliyuncs.com', cn-shenzhen-finance-1 = 'afs.aliyuncs.com', cn-shenzhen-inner = 'afs.aliyuncs.com', cn-shenzhen-st4-d01 = 'afs.aliyuncs.com', cn-shenzhen-su18-b01 = 'afs.aliyuncs.com', cn-wuhan = 'afs.aliyuncs.com', cn-yushanfang = 'afs.aliyuncs.com', cn-zhangbei-na61-b01 = 'afs.aliyuncs.com', cn-zhangjiakou = 'afs.aliyuncs.com', cn-zhangjiakou-na62-a01 = 'afs.aliyuncs.com', cn-zhengzhou-nebula-1 = 'afs.aliyuncs.com', eu-central-1 = 'afs.aliyuncs.com', eu-west-1 = 'afs.aliyuncs.com', eu-west-1-oxs = 'afs.aliyuncs.com', me-east-1 = 'afs.aliyuncs.com', rus-west-1-pop = 'afs.aliyuncs.com', us-east-1 = 'afs.aliyuncs.com', us-west-1 = 'afs.aliyuncs.com', }; checkConfig(config); @endpoint = getEndpoint('afs', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint); } function getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: map[string]string, endpoint: string) throws: string{ if (!Util.empty(endpoint)) { return endpoint; } if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) { return endpointMap[regionId]; } return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix); } model AnalyzeNvcRequest { sourceIp?: string(name='SourceIp'), scoreJsonStr?: string(name='ScoreJsonStr'), data?: string(name='Data'), } model AnalyzeNvcResponseBody = { requestId?: string(name='RequestId'), bizCode?: string(name='BizCode'), } model AnalyzeNvcResponse = { headers: map[string]string(name='headers'), body: AnalyzeNvcResponseBody(name='body'), } async function analyzeNvcWithOptions(request: AnalyzeNvcRequest, runtime: Util.RuntimeOptions): AnalyzeNvcResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('AnalyzeNvc', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function analyzeNvc(request: AnalyzeNvcRequest): AnalyzeNvcResponse { var runtime = new Util.RuntimeOptions{}; return analyzeNvcWithOptions(request, runtime); } model AuthenticateSigRequest { sourceIp?: string(name='SourceIp'), sessionId?: string(name='SessionId'), appKey?: string(name='AppKey'), sig?: string(name='Sig'), token?: string(name='Token'), scene?: string(name='Scene'), remoteIp?: string(name='RemoteIp'), } model AuthenticateSigResponseBody = { msg?: string(name='Msg'), requestId?: string(name='RequestId'), riskLevel?: string(name='RiskLevel'), code?: int32(name='Code'), detail?: string(name='Detail'), } model AuthenticateSigResponse = { headers: map[string]string(name='headers'), body: AuthenticateSigResponseBody(name='body'), } async function authenticateSigWithOptions(request: AuthenticateSigRequest, runtime: Util.RuntimeOptions): AuthenticateSigResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('AuthenticateSig', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function authenticateSig(request: AuthenticateSigRequest): AuthenticateSigResponse { var runtime = new Util.RuntimeOptions{}; return authenticateSigWithOptions(request, runtime); } model ConfigurationStyleRequest { sourceIp?: string(name='SourceIp'), applyType?: string(name='ApplyType'), scene?: string(name='Scene'), configurationMethod?: string(name='ConfigurationMethod'), refExtId?: string(name='RefExtId'), } model ConfigurationStyleResponseBody = { codeData?: { nodeJs?: string(name='NodeJs'), javaUrl?: string(name='JavaUrl'), python?: string(name='Python'), java?: string(name='Java'), nodeJsUrl?: string(name='NodeJsUrl'), pythonUrl?: string(name='PythonUrl'), html?: string(name='Html'), phpUrl?: string(name='PhpUrl'), netUrl?: string(name='NetUrl'), php?: string(name='Php'), net?: string(name='Net'), }(name='CodeData'), requestId?: string(name='RequestId'), bizCode?: string(name='BizCode'), } model ConfigurationStyleResponse = { headers: map[string]string(name='headers'), body: ConfigurationStyleResponseBody(name='body'), } async function configurationStyleWithOptions(request: ConfigurationStyleRequest, runtime: Util.RuntimeOptions): ConfigurationStyleResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('ConfigurationStyle', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function configurationStyle(request: ConfigurationStyleRequest): ConfigurationStyleResponse { var runtime = new Util.RuntimeOptions{}; return configurationStyleWithOptions(request, runtime); } model CreateConfigurationRequest { sourceIp?: string(name='SourceIp'), configurationName?: string(name='ConfigurationName'), applyType?: string(name='ApplyType'), scene?: string(name='Scene'), maxPV?: string(name='MaxPV'), configurationMethod?: string(name='ConfigurationMethod'), } model CreateConfigurationResponseBody = { refExtId?: string(name='RefExtId'), requestId?: string(name='RequestId'), bizCode?: string(name='BizCode'), } model CreateConfigurationResponse = { headers: map[string]string(name='headers'), body: CreateConfigurationResponseBody(name='body'), } async function createConfigurationWithOptions(request: CreateConfigurationRequest, runtime: Util.RuntimeOptions): CreateConfigurationResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('CreateConfiguration', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function createConfiguration(request: CreateConfigurationRequest): CreateConfigurationResponse { var runtime = new Util.RuntimeOptions{}; return createConfigurationWithOptions(request, runtime); } model DescribeAfsConfigNameRequest { sourceIp?: string(name='SourceIp'), productName?: string(name='ProductName'), } model DescribeAfsConfigNameResponseBody = { requestId?: string(name='RequestId'), configNames?: [ { configName?: string(name='ConfigName'), appKey?: string(name='AppKey'), refExtId?: string(name='RefExtId'), aliUid?: string(name='AliUid'), scene?: string(name='Scene'), } ](name='ConfigNames'), bizCode?: string(name='BizCode'), hasData?: boolean(name='HasData'), } model DescribeAfsConfigNameResponse = { headers: map[string]string(name='headers'), body: DescribeAfsConfigNameResponseBody(name='body'), } async function describeAfsConfigNameWithOptions(request: DescribeAfsConfigNameRequest, runtime: Util.RuntimeOptions): DescribeAfsConfigNameResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeAfsConfigName', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeAfsConfigName(request: DescribeAfsConfigNameRequest): DescribeAfsConfigNameResponse { var runtime = new Util.RuntimeOptions{}; return describeAfsConfigNameWithOptions(request, runtime); } model DescribeAfsOneConfDataRequest { sourceIp?: string(name='SourceIp'), appKey?: string(name='AppKey'), scene?: string(name='Scene'), productName?: string(name='ProductName'), } model DescribeAfsOneConfDataResponseBody = { requestId?: string(name='RequestId'), icOneConfDatas?: [ { icSigCnt?: long(name='IcSigCnt'), icBlockCnt?: long(name='IcBlockCnt'), tableDate?: string(name='TableDate'), icVerifyCnt?: long(name='IcVerifyCnt'), icSecVerifyCnt?: long(name='IcSecVerifyCnt'), icInitCnt?: long(name='IcInitCnt'), icNoActionCnt?: long(name='IcNoActionCnt'), } ](name='IcOneConfDatas'), ncOneConfDatas?: [ { tableDate?: string(name='TableDate'), ncSigCnt?: long(name='NcSigCnt'), ncVerifyCnt?: long(name='NcVerifyCnt'), ncNoActionCnt?: long(name='NcNoActionCnt'), ncVerifyBlockCnt?: long(name='NcVerifyBlockCnt'), ncInitCnt?: int32(name='NcInitCnt'), ncSigBlockCnt?: long(name='NcSigBlockCnt'), } ](name='NcOneConfDatas'), nvcOneConfDatas?: [ { nvcNoActionCnt?: long(name='NvcNoActionCnt'), nvcSecVerifyCnt?: long(name='NvcSecVerifyCnt'), tableDate?: string(name='TableDate'), nvcVerifyCnt?: long(name='NvcVerifyCnt'), nvcBlockCnt?: long(name='NvcBlockCnt'), nvcInitCnt?: long(name='NvcInitCnt'), } ](name='NvcOneConfDatas'), bizCode?: string(name='BizCode'), hasData?: boolean(name='HasData'), } model DescribeAfsOneConfDataResponse = { headers: map[string]string(name='headers'), body: DescribeAfsOneConfDataResponseBody(name='body'), } async function describeAfsOneConfDataWithOptions(request: DescribeAfsOneConfDataRequest, runtime: Util.RuntimeOptions): DescribeAfsOneConfDataResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeAfsOneConfData', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeAfsOneConfData(request: DescribeAfsOneConfDataRequest): DescribeAfsOneConfDataResponse { var runtime = new Util.RuntimeOptions{}; return describeAfsOneConfDataWithOptions(request, runtime); } model DescribeAfsTotalConfDataRequest { sourceIp?: string(name='SourceIp'), productName?: string(name='ProductName'), } model DescribeAfsTotalConfDataResponseBody = { requestId?: string(name='RequestId'), icTotalConfSigDatas?: [ { time?: string(name='Time'), value?: long(name='Value'), category?: string(name='Category'), } ](name='IcTotalConfSigDatas'), nvcTotalConfSecVerifyDatas?: [ { time?: string(name='Time'), value?: long(name='Value'), category?: string(name='Category'), } ](name='NvcTotalConfSecVerifyDatas'), icTotalConfVerifyDatas?: [ { time?: string(name='Time'), value?: long(name='Value'), category?: string(name='Category'), } ](name='IcTotalConfVerifyDatas'), nvcTotalConfVerifyDatas?: [ { time?: string(name='Time'), value?: long(name='Value'), category?: string(name='Category'), } ](name='NvcTotalConfVerifyDatas'), icTotalConfSecVerifyDatas?: [ { time?: string(name='Time'), value?: long(name='Value'), category?: string(name='Category'), } ](name='IcTotalConfSecVerifyDatas'), ncTotalConfBlockDatas?: [ { time?: string(name='Time'), value?: long(name='Value'), category?: string(name='Category'), } ](name='NcTotalConfBlockDatas'), icTotalConfBlockDatas?: [ { time?: string(name='Time'), value?: long(name='Value'), category?: string(name='Category'), } ](name='IcTotalConfBlockDatas'), ncTotalConfSigDatas?: [ { time?: string(name='Time'), value?: long(name='Value'), category?: string(name='Category'), } ](name='NcTotalConfSigDatas'), bizCode?: string(name='BizCode'), hasData?: boolean(name='HasData'), ncTotalConfVerifyDatas?: [ { time?: string(name='Time'), value?: long(name='Value'), category?: string(name='Category'), } ](name='NcTotalConfVerifyDatas'), } model DescribeAfsTotalConfDataResponse = { headers: map[string]string(name='headers'), body: DescribeAfsTotalConfDataResponseBody(name='body'), } async function describeAfsTotalConfDataWithOptions(request: DescribeAfsTotalConfDataRequest, runtime: Util.RuntimeOptions): DescribeAfsTotalConfDataResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeAfsTotalConfData', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeAfsTotalConfData(request: DescribeAfsTotalConfDataRequest): DescribeAfsTotalConfDataResponse { var runtime = new Util.RuntimeOptions{}; return describeAfsTotalConfDataWithOptions(request, runtime); } model DescribeAfsVerifySigDataRequest { sourceIp?: string(name='SourceIp'), appKey?: string(name='AppKey'), scene?: string(name='Scene'), productName?: string(name='ProductName'), } model DescribeAfsVerifySigDataResponseBody = { nvcCodeDatas?: [ { time?: string(name='Time'), nvcCode400?: long(name='NvcCode400'), nvcCode200?: long(name='NvcCode200'), nvcCode800?: long(name='NvcCode800'), nvcCode600?: long(name='NvcCode600'), } ](name='NvcCodeDatas'), nvcSecDatas?: [ { time?: string(name='Time'), nvcSecBlock?: long(name='NvcSecBlock'), nvcSecPass?: long(name='NvcSecPass'), } ](name='NvcSecDatas'), icVerifyDatas?: [ { icSigCnt?: long(name='IcSigCnt'), time?: string(name='Time'), icBlockCnt?: long(name='IcBlockCnt'), icSecVerifyCnt?: long(name='IcSecVerifyCnt'), icVerifyCnt?: long(name='IcVerifyCnt'), } ](name='IcVerifyDatas'), requestId?: string(name='RequestId'), ncVerifyDatas?: [ { time?: string(name='Time'), ncVerifyPass?: long(name='NcVerifyPass'), ncVerifyBlock?: long(name='NcVerifyBlock'), } ](name='NcVerifyDatas'), nvcVerifyDatas?: [ { time?: string(name='Time'), nvcSecVerifyCnt?: long(name='NvcSecVerifyCnt'), nvcVerifyCnt?: long(name='NvcVerifyCnt'), } ](name='NvcVerifyDatas'), icSecVerifyDatas?: [ { icSecBlock?: long(name='IcSecBlock'), time?: string(name='Time'), icSecPass?: long(name='IcSecPass'), } ](name='IcSecVerifyDatas'), ncSigDatas?: [ { time?: string(name='Time'), ncSigBlock?: long(name='NcSigBlock'), ncSigPass?: long(name='NcSigPass'), } ](name='NcSigDatas'), bizCode?: string(name='BizCode'), hasData?: boolean(name='HasData'), } model DescribeAfsVerifySigDataResponse = { headers: map[string]string(name='headers'), body: DescribeAfsVerifySigDataResponseBody(name='body'), } async function describeAfsVerifySigDataWithOptions(request: DescribeAfsVerifySigDataRequest, runtime: Util.RuntimeOptions): DescribeAfsVerifySigDataResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeAfsVerifySigData', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeAfsVerifySigData(request: DescribeAfsVerifySigDataRequest): DescribeAfsVerifySigDataResponse { var runtime = new Util.RuntimeOptions{}; return describeAfsVerifySigDataWithOptions(request, runtime); } model DescribeCaptchaDayRequest { sourceIp?: string(name='SourceIp'), configName?: string(name='ConfigName'), type?: string(name='Type'), time?: string(name='Time'), refExtId?: string(name='RefExtId'), } model DescribeCaptchaDayResponseBody = { captchaDay?: { checkTested?: int32(name='CheckTested'), direcetStrategyInterception?: int32(name='DirecetStrategyInterception'), maliciousFlow?: int32(name='MaliciousFlow'), pass?: int32(name='Pass'), legalSign?: int32(name='LegalSign'), uncheckTested?: int32(name='UncheckTested'), askForVerify?: int32(name='AskForVerify'), init?: int32(name='Init'), twiceVerify?: int32(name='TwiceVerify'), }(name='CaptchaDay'), requestId?: string(name='RequestId'), bizCode?: string(name='BizCode'), hasData?: boolean(name='HasData'), } model DescribeCaptchaDayResponse = { headers: map[string]string(name='headers'), body: DescribeCaptchaDayResponseBody(name='body'), } async function describeCaptchaDayWithOptions(request: DescribeCaptchaDayRequest, runtime: Util.RuntimeOptions): DescribeCaptchaDayResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeCaptchaDay', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeCaptchaDay(request: DescribeCaptchaDayRequest): DescribeCaptchaDayResponse { var runtime = new Util.RuntimeOptions{}; return describeCaptchaDayWithOptions(request, runtime); } model DescribeCaptchaIpCityRequest { sourceIp?: string(name='SourceIp'), configName?: string(name='ConfigName'), type?: string(name='Type'), time?: string(name='Time'), refExtId?: string(name='RefExtId'), } model DescribeCaptchaIpCityResponseBody = { captchaIps?: [ { value?: int32(name='Value'), ip?: string(name='Ip'), } ](name='CaptchaIps'), captchaCities?: [ { pv?: int32(name='Pv'), lng?: string(name='Lng'), lat?: string(name='Lat'), location?: string(name='Location'), } ](name='CaptchaCities'), requestId?: string(name='RequestId'), bizCode?: string(name='BizCode'), hasData?: boolean(name='HasData'), } model DescribeCaptchaIpCityResponse = { headers: map[string]string(name='headers'), body: DescribeCaptchaIpCityResponseBody(name='body'), } async function describeCaptchaIpCityWithOptions(request: DescribeCaptchaIpCityRequest, runtime: Util.RuntimeOptions): DescribeCaptchaIpCityResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeCaptchaIpCity', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeCaptchaIpCity(request: DescribeCaptchaIpCityRequest): DescribeCaptchaIpCityResponse { var runtime = new Util.RuntimeOptions{}; return describeCaptchaIpCityWithOptions(request, runtime); } model DescribeCaptchaMinRequest { sourceIp?: string(name='SourceIp'), configName?: string(name='ConfigName'), type?: string(name='Type'), time?: string(name='Time'), refExtId?: string(name='RefExtId'), } model DescribeCaptchaMinResponseBody = { requestId?: string(name='RequestId'), captchaMins?: [ { time?: string(name='Time'), pass?: string(name='Pass'), interception?: string(name='Interception'), } ](name='CaptchaMins'), bizCode?: string(name='BizCode'), hasData?: boolean(name='HasData'), } model DescribeCaptchaMinResponse = { headers: map[string]string(name='headers'), body: DescribeCaptchaMinResponseBody(name='body'), } async function describeCaptchaMinWithOptions(request: DescribeCaptchaMinRequest, runtime: Util.RuntimeOptions): DescribeCaptchaMinResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeCaptchaMin', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeCaptchaMin(request: DescribeCaptchaMinRequest): DescribeCaptchaMinResponse { var runtime = new Util.RuntimeOptions{}; return describeCaptchaMinWithOptions(request, runtime); } model DescribeCaptchaOrderRequest { sourceIp?: string(name='SourceIp'), lang?: string(name='Lang'), } model DescribeCaptchaOrderResponseBody = { requestId?: string(name='RequestId'), bizCode?: string(name='BizCode'), } model DescribeCaptchaOrderResponse = { headers: map[string]string(name='headers'), body: DescribeCaptchaOrderResponseBody(name='body'), } async function describeCaptchaOrderWithOptions(request: DescribeCaptchaOrderRequest, runtime: Util.RuntimeOptions): DescribeCaptchaOrderResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeCaptchaOrder', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeCaptchaOrder(request: DescribeCaptchaOrderRequest): DescribeCaptchaOrderResponse { var runtime = new Util.RuntimeOptions{}; return describeCaptchaOrderWithOptions(request, runtime); } model DescribeCaptchaRiskRequest { sourceIp?: string(name='SourceIp'), configName?: string(name='ConfigName'), time?: string(name='Time'), refExtId?: string(name='RefExtId'), } model DescribeCaptchaRiskResponseBody = { requestId?: string(name='RequestId'), numOfLastMonth?: int32(name='NumOfLastMonth'), riskLevel?: string(name='RiskLevel'), numOfThisMonth?: int32(name='NumOfThisMonth'), bizCode?: string(name='BizCode'), } model DescribeCaptchaRiskResponse = { headers: map[string]string(name='headers'), body: DescribeCaptchaRiskResponseBody(name='body'), } async function describeCaptchaRiskWithOptions(request: DescribeCaptchaRiskRequest, runtime: Util.RuntimeOptions): DescribeCaptchaRiskResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeCaptchaRisk', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeCaptchaRisk(request: DescribeCaptchaRiskRequest): DescribeCaptchaRiskResponse { var runtime = new Util.RuntimeOptions{}; return describeCaptchaRiskWithOptions(request, runtime); } model DescribeConfigNameRequest { sourceIp?: string(name='SourceIp'), } model DescribeConfigNameResponseBody = { requestId?: string(name='RequestId'), configNames?: [ { configName?: string(name='ConfigName'), refExtId?: string(name='RefExtId'), aliUid?: string(name='AliUid'), } ](name='ConfigNames'), hasConfig?: boolean(name='HasConfig'), bizCode?: string(name='BizCode'), } model DescribeConfigNameResponse = { headers: map[string]string(name='headers'), body: DescribeConfigNameResponseBody(name='body'), } async function describeConfigNameWithOptions(request: DescribeConfigNameRequest, runtime: Util.RuntimeOptions): DescribeConfigNameResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeConfigName', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeConfigName(request: DescribeConfigNameRequest): DescribeConfigNameResponse { var runtime = new Util.RuntimeOptions{}; return describeConfigNameWithOptions(request, runtime); } model DescribeEarlyWarningRequest { sourceIp?: string(name='SourceIp'), } model DescribeEarlyWarningResponseBody = { requestId?: string(name='RequestId'), hasWarning?: boolean(name='HasWarning'), earlyWarnings?: [ { frequency?: string(name='Frequency'), timeBegin?: string(name='TimeBegin'), timeEnd?: string(name='TimeEnd'), channel?: string(name='Channel'), warnOpen?: boolean(name='WarnOpen'), title?: string(name='Title'), content?: string(name='Content'), timeOpen?: boolean(name='TimeOpen'), } ](name='EarlyWarnings'), bizCode?: string(name='BizCode'), } model DescribeEarlyWarningResponse = { headers: map[string]string(name='headers'), body: DescribeEarlyWarningResponseBody(name='body'), } async function describeEarlyWarningWithOptions(request: DescribeEarlyWarningRequest, runtime: Util.RuntimeOptions): DescribeEarlyWarningResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeEarlyWarning', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeEarlyWarning(request: DescribeEarlyWarningRequest): DescribeEarlyWarningResponse { var runtime = new Util.RuntimeOptions{}; return describeEarlyWarningWithOptions(request, runtime); } model DescribeOrderInfoRequest { sourceIp?: string(name='SourceIp'), } model DescribeOrderInfoResponseBody = { orderLevel?: string(name='OrderLevel'), requestId?: string(name='RequestId'), num?: string(name='Num'), endDate?: string(name='EndDate'), bizCode?: string(name='BizCode'), beginDate?: string(name='BeginDate'), } model DescribeOrderInfoResponse = { headers: map[string]string(name='headers'), body: DescribeOrderInfoResponseBody(name='body'), } async function describeOrderInfoWithOptions(request: DescribeOrderInfoRequest, runtime: Util.RuntimeOptions): DescribeOrderInfoResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribeOrderInfo', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describeOrderInfo(request: DescribeOrderInfoRequest): DescribeOrderInfoResponse { var runtime = new Util.RuntimeOptions{}; return describeOrderInfoWithOptions(request, runtime); } model DescribePersonMachineListRequest { sourceIp?: string(name='SourceIp'), } model DescribePersonMachineListResponseBody = { personMachineRes?: { personMachines?: [ { configurationName?: string(name='ConfigurationName'), configurationMethod?: string(name='ConfigurationMethod'), extId?: string(name='ExtId'), applyType?: string(name='ApplyType'), lastUpdate?: string(name='LastUpdate'), scene?: string(name='Scene'), sceneOriginal?: string(name='SceneOriginal'), appkey?: string(name='Appkey'), } ](name='PersonMachines'), hasConfiguration?: string(name='HasConfiguration'), }(name='PersonMachineRes'), requestId?: string(name='RequestId'), bizCode?: string(name='BizCode'), } model DescribePersonMachineListResponse = { headers: map[string]string(name='headers'), body: DescribePersonMachineListResponseBody(name='body'), } async function describePersonMachineListWithOptions(request: DescribePersonMachineListRequest, runtime: Util.RuntimeOptions): DescribePersonMachineListResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('DescribePersonMachineList', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function describePersonMachineList(request: DescribePersonMachineListRequest): DescribePersonMachineListResponse { var runtime = new Util.RuntimeOptions{}; return describePersonMachineListWithOptions(request, runtime); } model SetEarlyWarningRequest { sourceIp?: string(name='SourceIp'), warnOpen?: boolean(name='WarnOpen'), channel?: string(name='Channel'), frequency?: string(name='Frequency'), timeOpen?: boolean(name='TimeOpen'), timeBegin?: string(name='TimeBegin'), timeEnd?: string(name='TimeEnd'), title?: string(name='Title'), } model SetEarlyWarningResponseBody = { requestId?: string(name='RequestId'), bizCode?: string(name='BizCode'), } model SetEarlyWarningResponse = { headers: map[string]string(name='headers'), body: SetEarlyWarningResponseBody(name='body'), } async function setEarlyWarningWithOptions(request: SetEarlyWarningRequest, runtime: Util.RuntimeOptions): SetEarlyWarningResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('SetEarlyWarning', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function setEarlyWarning(request: SetEarlyWarningRequest): SetEarlyWarningResponse { var runtime = new Util.RuntimeOptions{}; return setEarlyWarningWithOptions(request, runtime); } model UpdateConfigNameRequest { sourceIp?: string(name='SourceIp'), lang?: string(name='Lang'), refExtId?: string(name='RefExtId'), configName?: string(name='ConfigName'), } model UpdateConfigNameResponseBody = { requestId?: string(name='RequestId'), bizCode?: string(name='BizCode'), } model UpdateConfigNameResponse = { headers: map[string]string(name='headers'), body: UpdateConfigNameResponseBody(name='body'), } async function updateConfigNameWithOptions(request: UpdateConfigNameRequest, runtime: Util.RuntimeOptions): UpdateConfigNameResponse { Util.validateModel(request); var req = new OpenApi.OpenApiRequest{ body = Util.toMap(request), }; return doRPCRequest('UpdateConfigName', '2018-01-12', 'HTTPS', 'POST', 'AK', 'json', req, runtime); } async function updateConfigName(request: UpdateConfigNameRequest): UpdateConfigNameResponse { var runtime = new Util.RuntimeOptions{}; return updateConfigNameWithOptions(request, runtime); }
Tea
4
aliyun/alibabacloud-sdk
afs-20180112/main.tea
[ "Apache-2.0" ]
<GameFile> <PropertyGroup Name="MainLayer" Type="Layer" ID="9b25395d-399e-4fb9-9251-3add4cff12e4" Version="3.10.0.0" /> <Content ctype="GameProjectContent"> <Content> <Animation Duration="0" Speed="1.0000" /> <ObjectData Name="Layer" Tag="5" ctype="GameLayerObjectData"> <Size X="960.0000" Y="640.0000" /> <Children> <AbstractNodeData Name="HelloWorld_1" ActionTag="-566508409" Tag="6" IconVisible="False" PositionPercentXEnabled="True" PositionPercentYEnabled="True" LeftMargin="-349.0560" RightMargin="349.0560" TopMargin="-160.0000" BottomMargin="160.0000" ctype="SpriteObjectData"> <Size X="960.0000" Y="640.0000" /> <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> <Position X="130.9440" Y="480.0000" /> <Scale ScaleX="0.3146" ScaleY="0.3406" /> <CColor A="255" R="255" G="255" B="255" /> <PrePosition X="0.1364" Y="0.7500" /> <PreSize X="1.0000" Y="1.0000" /> <FileData Type="Normal" Path="HelloWorld.png" Plist="" /> <BlendFunc Src="770" Dst="771" /> </AbstractNodeData> <AbstractNodeData Name="Text_2" ActionTag="1418980696" Tag="8" IconVisible="False" LeftMargin="103.0000" RightMargin="763.0000" TopMargin="176.5000" BottomMargin="436.5000" FontSize="20" LabelText="Text Label" VerticalAlignmentType="VT_Bottom" OutlineSize="2" OutlineEnabled="True" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> <Size X="94.0000" Y="27.0000" /> <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> <Position X="150.0000" Y="450.0000" /> <Scale ScaleX="1.0000" ScaleY="1.0000" /> <CColor A="255" R="255" G="255" B="255" /> <PrePosition X="0.1563" Y="0.7031" /> <PreSize X="0.0979" Y="0.0422" /> <FontResource Type="Normal" Path="arial.ttf" Plist="" /> <OutlineColor A="255" R="255" G="0" B="0" /> <ShadowColor A="255" R="110" G="110" B="110" /> </AbstractNodeData> <AbstractNodeData Name="Text_1" ActionTag="-459803446" Tag="4" IconVisible="False" LeftMargin="100.0000" RightMargin="760.0000" TopMargin="150.0000" BottomMargin="470.0000" FontSize="20" LabelText="Text Label" VerticalAlignmentType="VT_Bottom" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="TextObjectData"> <Size X="100.0000" Y="20.0000" /> <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> <Position X="150.0000" Y="480.0000" /> <Scale ScaleX="1.0000" ScaleY="1.0000" /> <CColor A="255" R="255" G="255" B="255" /> <PrePosition X="0.1563" Y="0.7500" /> <PreSize X="0.1042" Y="0.0313" /> <OutlineColor A="255" R="255" G="0" B="0" /> <ShadowColor A="255" R="110" G="110" B="110" /> </AbstractNodeData> <AbstractNodeData Name="Image_1" ActionTag="-270573152" Tag="7" IconVisible="False" LeftMargin="360.9984" RightMargin="-360.9984" TopMargin="179.0003" BottomMargin="-179.0003" LeftEage="43" RightEage="43" TopEage="82" BottomEage="82" Scale9OriginX="43" Scale9OriginY="82" Scale9Width="874" Scale9Height="476" ctype="ImageViewObjectData"> <Size X="960.0000" Y="640.0000" /> <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> <Position X="840.9984" Y="140.9997" /> <Scale ScaleX="0.1114" ScaleY="0.1606" /> <CColor A="255" R="255" G="255" B="255" /> <PrePosition X="0.8760" Y="0.2203" /> <PreSize X="1.0000" Y="1.0000" /> <FileData Type="Normal" Path="HelloWorld.png" Plist="" /> </AbstractNodeData> <AbstractNodeData Name="Image_2" ActionTag="595942739" Tag="8" IconVisible="False" LeftMargin="446.5291" RightMargin="383.4709" TopMargin="195.2845" BottomMargin="276.7155" Scale9Enable="True" LeftEage="21" RightEage="22" TopEage="24" BottomEage="23" Scale9OriginX="21" Scale9OriginY="24" Scale9Width="87" Scale9Height="121" ctype="ImageViewObjectData"> <Size X="130.0000" Y="168.0000" /> <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> <Position X="511.5291" Y="360.7155" /> <Scale ScaleX="1.0000" ScaleY="1.0000" /> <CColor A="255" R="255" G="255" B="255" /> <PrePosition X="0.5328" Y="0.5636" /> <PreSize X="0.1354" Y="0.2625" /> <FileData Type="MarkedSubImage" Path="Poker/RedJoker.png" Plist="Poker.plist" /> </AbstractNodeData> <AbstractNodeData Name="ddz_lzc_gjc_1" ActionTag="1863526592" Tag="7" IconVisible="False" LeftMargin="-89.4090" RightMargin="641.4090" TopMargin="491.2409" BottomMargin="-49.2409" ctype="SpriteObjectData"> <Size X="408.0000" Y="198.0000" /> <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> <Position X="114.5910" Y="49.7591" /> <Scale ScaleX="0.5368" ScaleY="0.5227" /> <CColor A="255" R="255" G="255" B="255" /> <PrePosition X="0.1194" Y="0.0777" /> <PreSize X="0.4250" Y="0.3094" /> <FileData Type="Normal" Path="UI/ddz_lzc_gjc.png" Plist="" /> <BlendFunc Src="1" Dst="771" /> </AbstractNodeData> <AbstractNodeData Name="StartButton" ActionTag="-1085084258" CallBackType="Click" CallBackName="OnStart" UserData="MyUserData" Tag="8" FrameEvent="MyFrame" IconVisible="False" LeftMargin="313.0000" RightMargin="601.0000" TopMargin="309.0001" BottomMargin="294.9999" TouchEnable="True" FontSize="14" ButtonText="Start" Scale9Enable="True" LeftEage="15" RightEage="15" TopEage="11" BottomEage="11" Scale9OriginX="15" Scale9OriginY="11" Scale9Width="16" Scale9Height="14" ShadowOffsetX="2.0000" ShadowOffsetY="-2.0000" ctype="ButtonObjectData"> <Size X="46.0000" Y="36.0000" /> <AnchorPoint ScaleX="0.5000" ScaleY="0.5000" /> <Position X="336.0000" Y="312.9999" /> <Scale ScaleX="1.8696" ScaleY="2.2222" /> <CColor A="255" R="255" G="255" B="255" /> <PrePosition X="0.3500" Y="0.4891" /> <PreSize X="0.0479" Y="0.0562" /> <TextColor A="255" R="65" G="65" B="70" /> <DisabledFileData Type="Default" Path="Default/Button_Disable.png" Plist="" /> <PressedFileData Type="Default" Path="Default/Button_Press.png" Plist="" /> <NormalFileData Type="Default" Path="Default/Button_Normal.png" Plist="" /> <OutlineColor A="255" R="255" G="0" B="0" /> <ShadowColor A="255" R="110" G="110" B="110" /> </AbstractNodeData> </Children> </ObjectData> </Content> </Content> </GameFile>
Csound
2
tony2u/Medusa
Test/Test/Art/Src/Test/cocosstudio/MainLayer.csd
[ "MIT" ]
// [feature] run-pass // revisions: normal feature #![cfg_attr(feature, feature(generic_arg_infer))] fn foo<const N: usize>(_: [u8; N]) -> [u8; N] { [0; N] } fn main() { let _x = foo::<_>([1,2]); //[normal]~^ ERROR: type provided when a constant was expected }
Rust
4
mbc-git/rust
src/test/ui/feature-gates/feature-gate-generic_arg_infer.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
diagram "slash_in_label" { generic.component component [label="A/Slash"]; }
Redcode
1
ralphtq/cloudgram
tests/fixtures/slash_in_label.cw
[ "Apache-2.0" ]
- breadcrumb_title @milestone.title - add_to_breadcrumbs _("Milestones"), group_milestones_path(@group)
Haml
3
Testiduk/gitlabhq
app/views/groups/milestones/_header_title.html.haml
[ "MIT" ]