answer
stringlengths
15
1.25M
layout: politician2 title: ajeet mani profile: party: SP constituency: Maharajganj state: Uttar Pradesh education: level: details: doctorate m.a.,ll.b.,ph.d.lucknow university photo: sex: caste: religion: <API key>: <API key>: 0 date-of-birth: 1969 profession: networth: assets: 1,97,09,687 liabilities: 6,75,416 pan: twitter: website: youtube-interview: wikipedia: candidature: - election: Lok Sabha 2009 myneta-link: http://myneta.info/ls2009/candidate.php?candidate_id=986 affidavit-link: expenses-link: constituency: Maharajganj party: SP criminal-cases: 0 assets: 1,97,09,687 liabilities: 6,75,416 result: crime-record: date: 2014-01-28 version: 0.0.5 tags: ##Summary ##Education {% include "education.html" %} ##Political Career {% include "political-career.html" %} ##Criminal Record {% include "criminal-record.html" %} ##Personal Wealth {% include "personal-wealth.html" %} ##Public Office Track Record {% include "track-record.html" %} ##References {% include "references.html" %}
package trafficsim.network; import java.io.IOException; import java.net.ConnectException; import java.net.InetSocketAddress; import java.net.Socket; import java.net.SocketException; import java.util.logging.Level; import java.util.logging.Logger; public class ClientThread implements Runnable { private static Logger s_log = Logger.getLogger(ClientThread.class.toString()); private Socket clientSocket = null; private InetSocketAddress address = null; private ProcessorThread<ConnectionInfo> connectionProcessor = null; private boolean running = false; public ClientThread(InetSocketAddress address) { setAddress(address); } @Override public void run() { InetSocketAddress address = getAddress(); try { setClientSocket(new Socket()); System.out.println("Connecting..."+address.getHostName()+":"+address.getPort()); getClientSocket().connect(address); if (getClientSocket().isConnected()) { System.out.println("Connected..."); ProcessorThread<ConnectionInfo> sp = <API key>(); if (sp!=null) { sp.addEvent(new ConnectionInfo(getClientSocket())); } } else System.out.println("Not connected..."); } catch(ConnectException e) { s_log.log(Level.SEVERE,"Can't connect to server", e); } catch(SocketException e) { s_log.log(Level.SEVERE,"Client Socket Exception", e); } catch (IOException e) { s_log.log(Level.SEVERE,"Client IO Exception", e); } catch (<API key> e) { s_log.log(Level.SEVERE,"Client interrupted", e); } } public void setAddress(final InetSocketAddress address) { this.address = address; } public InetSocketAddress getAddress() { return address; } public synchronized void setRunning(boolean running) { this.running = running; } public synchronized boolean isRunning() { return running; } public synchronized void <API key>(ProcessorThread<ConnectionInfo> connectionProcessor) { this.connectionProcessor = connectionProcessor; } public synchronized ProcessorThread<ConnectionInfo> <API key>() { return connectionProcessor; } public void setClientSocket(Socket clientSocket) { this.clientSocket = clientSocket; } public Socket getClientSocket() { return clientSocket; } } /* vim: set ts=4 sts=4 sw=4 expandtab foldmethod=marker : */
/** * Provides components related to the retrieval of user input using text fields. * * @author hlfernandez */ package org.sing_group.gc4s.input.text;
#include "SDL2/SDL.h" #include <stdio.h> #include "tsplib.h" #include "init.h" //#include "SDL2/SDL_ttf.h" #define SCALE 10 static void draw_point(struct city* point, SDL_Renderer * renderer); static void draw_line(struct city* point1, struct city* point2, SDL_Renderer * renderer); struct SDL_Window * window = NULL; struct SDL_Renderer* renderer = NULL; void draw_map(struct list *all_list) { struct list_elem *curr = all_list->head; /*if(TTF_Init()==-1) { printf("TTF_Init: %s\n", TTF_GetError()); //exit(2); }*/ if (window == NULL) window = SDL_CreateWindow("Map", <API key>, <API key>, 1500, 750, SDL_WINDOW_SHOWN); if (renderer == NULL) renderer = SDL_CreateRenderer(window, -1, <API key>); SDL_RenderClear(renderer); do { draw_line(curr->data->id, curr->right->data->id, renderer); draw_point(curr->data->id, renderer); curr = curr->right; } while (curr != all_list->head); SDL_RenderPresent(renderer); //SDL_Delay(60); // /getchar(); } static void draw_point(struct city* point, SDL_Renderer * renderer) { /*printf("hi\n"); TTF_Font* Sans; if((Sans = TTF_OpenFont("Sans.ttf", 24)) == NULL){ printf("oh no\n"); } printf("hi\n"); SDL_Color White = {255, 255, 255}; printf("hi\n"); SDL_Surface* surfaceMessage = <API key>(Sans, "1", White); printf("hi\n"); SDL_Texture* Message = <API key>(renderer, surfaceMessage); printf("hi\n"); SDL_Rect Message_rect; //create a rect Message_rect.x = 0; //controls the rect's x coordinate Message_rect.y = 0; // controls the rect's y coordinte Message_rect.w = 100; // controls the width of the rect Message_rect.h = 100; // controls the height of the rect printf("hi\n"); SDL_RenderCopy(renderer, Message, NULL, &Message_rect); TTF_CloseFont(Sans);*/ SDL_RenderDrawPoint(renderer, point->x * SCALE, point->y * SCALE); } static void draw_line(struct city* point1, struct city* point2, SDL_Renderer * renderer) { //<API key>(renderer, 255, 255, 255, 255); SDL_RenderDrawLine(renderer, point1->x * SCALE, point1->y * SCALE, point2->x * SCALE, point2->y * SCALE); }
<!DOCTYPE html PUBLIC "- <html> <head> <title>Singular 2-0-4 Manual: 3.10.4 Printing of data</title> <meta name="description" content="Singular 2-0-4 Manual: 3.10.4 Printing of data"> <meta name="keywords" content="Singular 2-0-4 Manual: 3.10.4 Printing of data"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2html"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> <! a.summary-letter {text-decoration: none} blockquote.smallquotation {font-size: smaller} div.display {margin-left: 3.2em} div.example {margin-left: 3.2em} div.lisp {margin-left: 3.2em} div.smalldisplay {margin-left: 3.2em} div.smallexample {margin-left: 3.2em} div.smalllisp {margin-left: 3.2em} pre.display {font-family: serif} pre.format {font-family: serif} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} pre.smalldisplay {font-family: serif; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: serif; font-size: smaller} pre.smalllisp {font-size: smaller} span.nocodebreak {white-space:pre} span.nolinebreak {white-space:pre} span.roman {font-family:serif; font-weight:normal} span.sansserif {font-family:sans-serif; font-weight:normal} ul.no-bullet {list-style: none} </style> </head> <body lang="en" background="../singular_images/Mybg.png"> <a name="Printing-of-data"></a> <table border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td align="left"> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr valign="top" align="left"> <td valign="middle" align="left"> <a href="index.htm"><img src="../singular_images/<API key>.png" width="50" border="0" alt="Top"></a> </td> </tr> <tr valign="top" align="left"> <td valign="middle" align="left"><a href="Break-points.html#Break-points" title="Previous section in reading order"><img src="../singular_images/a_left.png" border="0" alt="Back: 3.10.3 Break points" align="middle"></a></td> </tr> <tr valign="top" align="left"> <td valign="middle" align="left"><a href="libparse.html#libparse" title="Next section in reading order"><img src="../singular_images/a_right.png" border="0" alt="Forward: 3.10.5 libparse" align="middle"></a></td> </tr> <tr valign="top" align="left"> <td valign="middle" align="left"><a href="General-concepts.html#General-concepts" title="Beginning of this chapter or previous chapter"><img src="../singular_images/a_leftdouble.png" border="0" alt="FastBack: 3 General concepts" align="middle"></a></td> </tr> <tr valign="top" align="left"> <td valign="middle" align="left"><a href="Data-types.html#Data-types" title="Next chapter"><img src="../singular_images/a_rightdouble.png" border="0" alt="FastForward: 4 Data types" align="middle"></a></td> </tr> <tr valign="top" align="left"> <td valign="middle" align="left"><a href="Debugging-tools.html#Debugging-tools" title="Up section"><img src="../singular_images/a_up.png" border="0" alt="Up: 3.10 Debugging tools" align="middle"></a></td> </tr> <tr valign="top" align="left"> <td valign="middle" align="left"><a href="index.htm#Preface" title="Cover (top) of document"><img src="../singular_images/a_top.png" border="0" alt="Top: 1 Preface" align="middle"></a></td> </tr> <tr valign="top" align="left"> <td valign="middle" align="left"><a href="sing_toc.htm#SEC_Contents" title="Table of contents"><img src="../singular_images/a_tableofcon.png" border="0" alt="Contents: Table of Contents" align="middle"></a></td> </tr> <tr valign="top" align="left"> <td valign="middle" align="left"><a href="Index.html#Index" title="Index"><img src="../singular_images/a_index.png" border="0" alt="Index: F Index" align="middle"></a></td> </tr> <tr valign="top" align="left"> <td valign="middle" align="left"><a href="sing_abt.htm#SEC_About" title="About (help)"><img src="../singular_images/a_help.png" border="0" alt="About: About This Document" align="middle"></a></td> </tr> </table> </td> <td align="left"> <a name="Printing-of-data-1"></a> <h3 class="subsection">3.10.4 Printing of data</h3> <p>The procedure <code>dbprint</code> is useful for optional output of data: it takes 2 arguments and prints the second argument, if the first argument is positive; it does nothing otherwise. </p><blockquote><table class="menu" border="0" cellspacing="0"> <tr><td align="left" valign="top"><a href="dbprint.html#dbprint">5.1.12 dbprint</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> </td></tr> <tr><td align="left" valign="top"><a href="voice.html#voice">5.3.11 voice</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> </td></tr> </table></blockquote> </td> </tr> </table> <hr> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left"> <a href="index.htm"><img src="../singular_images/<API key>.png" width="50" border="0" alt="Top"></a> </td> <td valign="middle" align="left"><a href="Break-points.html#Break-points" title="Previous section in reading order"><img src="../singular_images/a_left.png" border="0" alt="Back: 3.10.3 Break points" align="middle"></a></td> <td valign="middle" align="left"><a href="libparse.html#libparse" title="Next section in reading order"><img src="../singular_images/a_right.png" border="0" alt="Forward: 3.10.5 libparse" align="middle"></a></td> <td valign="middle" align="left"><a href="General-concepts.html#General-concepts" title="Beginning of this chapter or previous chapter"><img src="../singular_images/a_leftdouble.png" border="0" alt="FastBack: 3 General concepts" align="middle"></a></td> <td valign="middle" align="left"><a href="Data-types.html#Data-types" title="Next chapter"><img src="../singular_images/a_rightdouble.png" border="0" alt="FastForward: 4 Data types" align="middle"></a></td> <td valign="middle" align="left"><a href="Debugging-tools.html#Debugging-tools" title="Up section"><img src="../singular_images/a_up.png" border="0" alt="Up: 3.10 Debugging tools" align="middle"></a></td> <td valign="middle" align="left"><a href="index.htm#Preface" title="Cover (top) of document"><img src="../singular_images/a_top.png" border="0" alt="Top: 1 Preface" align="middle"></a></td> <td valign="middle" align="left"><a href="sing_toc.htm#SEC_Contents" title="Table of contents"><img src="../singular_images/a_tableofcon.png" border="0" alt="Contents: Table of Contents" align="middle"></a></td> <td valign="middle" align="left"><a href="Index.html#Index" title="Index"><img src="../singular_images/a_index.png" border="0" alt="Index: F Index" align="middle"></a></td> <td valign="middle" align="left"><a href="sing_abt.htm#SEC_About" title="About (help)"><img src="../singular_images/a_help.png" border="0" alt="About: About This Document" align="middle"></a></td> </tr></table> <font size="-1"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User manual for <a href="http: generated by <a href="http: </font> </body> </html>
# BoatGrid ## Rescue Boat Math Class Challenge Implemented in Objective-C With a GUI Task Backstory: You are leading a team of 3 rescue craft, stationed in the water ready for an emergency. The sea can be pictured as a grid of regions, like bellow. You have three craft stationed in the water, The craft can move nicely but they can only travel North, South, East and West through the grid, they cannot travel diagonally. A craft can move through one square in one minute. | | | C | | | | C = Craft `---` = Water Each region is protected by the craft closest to it, as measured by the time it takes each craft to reach it, if a region is equally close to each craft it is protected by both. What this app does This app allows the user to input 3 ship coordinates on a 7 by 7 grid, then it shows how far each block is away from the ship. There is also an additional empty grid view for fun.
// Desc: Lock Types // Tabs: 3 // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // This library is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // You should have received a copy of the GNU Lesser General Public // To contact Novell about this file by physical or electronic mail, package xflaim; /** * Static class representing lock types. */ public class LockType { public static final int FLM_LOCK_NONE = 0; public static final int FLM_LOCK_EXCLUSIVE = 1; public static final int FLM_LOCK_SHARED = 2; }
#include "arm_math.h" /** * @ingroup groupMath */ /** * @addtogroup BasicAbs * @{ */ /** * @brief Q31 vector absolute value. * @param[in] *pSrc points to the input buffer * @param[out] *pDst points to the output buffer * @param[in] blockSize number of samples in each vector * @return none. * * <b>Scaling and Overflow Behavior:</b> * \par * The function uses saturating arithmetic. * The Q31 value -1 (0x80000000) will be saturated to the maximum allowable positive value 0x7FFFFFFF. */ void arm_abs_q31( q31_t * pSrc, q31_t * pDst, uint32_t blockSize) { uint32_t blkCnt; /* loop counter */ q31_t in; /* Input value */ #ifndef ARM_MATH_CM0_FAMILY /* Run the below code for Cortex-M4 and Cortex-M3 */ q31_t in1, in2, in3, in4; /*loop Unrolling */ blkCnt = blockSize >> 2u; /* First part of the processing with loop unrolling. Compute 4 outputs at a time. ** a second loop below computes the remaining 1 to 3 samples. */ while(blkCnt > 0u) { /* C = |A| */ /* Calculate absolute of input (if -1 then saturated to 0x7fffffff) and then store the results in the destination buffer. */ in1 = *pSrc++; in2 = *pSrc++; in3 = *pSrc++; in4 = *pSrc++; *pDst++ = (in1 > 0) ? in1 : (q31_t)__QSUB(0, in1); *pDst++ = (in2 > 0) ? in2 : (q31_t)__QSUB(0, in2); *pDst++ = (in3 > 0) ? in3 : (q31_t)__QSUB(0, in3); *pDst++ = (in4 > 0) ? in4 : (q31_t)__QSUB(0, in4); /* Decrement the loop counter */ blkCnt } /* If the blockSize is not a multiple of 4, compute any remaining output samples here. ** No loop unrolling is used. */ blkCnt = blockSize % 0x4u; #else /* Run the below code for Cortex-M0 */ /* Initialize blkCnt with number of samples */ blkCnt = blockSize; #endif /* #ifndef ARM_MATH_CM0_FAMILY */ while(blkCnt > 0u) { /* C = |A| */ /* Calculate absolute value of the input (if -1 then saturated to 0x7fffffff) and then store the results in the destination buffer. */ in = *pSrc++; *pDst++ = (in > 0) ? in : ((in == INT32_MIN) ? INT32_MAX : -in); /* Decrement the loop counter */ blkCnt } } /** * @} end of BasicAbs group */
GAS=as LD=ld ASFLAGS=--32 LDFLAGS=-I/lib/ld-linux.so.2 -m elf_i386 -lc .PHONY: clean all all: collatz_as # Binario generado con AS y LD (ensamblador y enlazador) collatz_as: collatz_as.o $(LD) $(LDFLAGS) $^ -o $@ collatz_as.o: collatz_as.s $(AS) $(ASFLAGS) $< -o $@ clean: rm -f *.o rm -f collatz_as
#include<stdio.h> #include<string.h> #include<algorithm> using namespace std; struct data2 { int a,b,cha,id; }data[1000]; int cmp(data2 x,data2 y) { if(x.cha==y.cha) { if(x.b==y.b) { return x.id<y.id; } else return x.b<y.b; } return x.cha>y.cha; } int main() { int n; while(scanf("%d",&n)!=EOF) { for(int i=0;i<n;i++) { scanf("%d%d",&data[i].a,&data[i].b); data[i].id=i; data[i].cha=data[i].a-data[i].b; } sort(data,data+n,cmp); for(int i=0;i<n;i++) { if(i!=0) { printf(" "); } printf("%d",data[i].id); } printf("\n"); } return 0; }
#ifndef CLEANDNS_NS_MSG_H_ #define CLEANDNS_NS_MSG_H_ #include <stdint.h> #ifdef WINDOWS #include "../windows/win.h" #else #include <arpa/inet.h> #endif #include "stream.h" #ifdef __cplusplus extern "C" { #endif #define NS_PAYLOAD_SIZE 1024 #define NS_LABEL_SIZE 63 #define NS_NAME_SIZE 255 #define NS_QNAME_SIZE NS_NAME_SIZE #define NS_EDNS_VERSION 0 #define NS_MAX_LABEL_COUNT 512 #define NS_QTYPE_A 1 #define NS_QTYPE_NS 2 #define NS_QTYPE_MD 3 #define NS_QTYPE_MF 4 #define NS_QTYPE_CNAME 5 #define NS_QTYPE_SOA 6 #define NS_QTYPE_MB 7 #define NS_QTYPE_MG 8 #define NS_QTYPE_MR 9 #define NS_QTYPE_NULL 10 #define NS_QTYPE_WKS 11 #define NS_QTYPE_PTR 12 #define NS_QTYPE_HINFO 13 #define NS_QTYPE_MINFO 14 #define NS_QTYPE_MX 15 #define NS_QTYPE_TXT 16 #define NS_QTYPE_AAAA 28 #define NS_QTYPE_OPT 41 #define NS_QTYPE_AXFR 252 #define NS_QTYPE_MAILB 253 #define NS_QTYPE_MAILA 254 #define NS_QTYPE_ANY 255 #define NS_QCLASS_IN 1 #define NS_QCLASS_CS 2 #define NS_QCLASS_CH 3 #define NS_QCLASS_HS 4 #define NS_QCLASS_ANY 255 #define NS_TYPE_A NS_QTYPE_A #define NS_TYPE_NS NS_QTYPE_NS #define NS_TYPE_MD NS_QTYPE_MD #define NS_TYPE_MF NS_QTYPE_MF #define NS_TYPE_CNAME NS_QTYPE_CNAME #define NS_TYPE_SOA NS_QTYPE_SOA #define NS_TYPE_MB NS_QTYPE_MB #define NS_TYPE_MG NS_QTYPE_MG #define NS_TYPE_MR NS_QTYPE_MR #define NS_TYPE_NULL NS_QTYPE_NULL #define NS_TYPE_WKS NS_QTYPE_WKS #define NS_TYPE_PTR NS_QTYPE_PTR #define NS_TYPE_HINFO NS_QTYPE_HINFO #define NS_TYPE_MINFO NS_QTYPE_MINFO #define NS_TYPE_MX NS_QTYPE_MX #define NS_TYPE_TXT NS_QTYPE_TXT #define NS_TYPE_AAAA NS_QTYPE_AAAA #define NS_TYPE_OPT NS_QTYPE_OPT #define NS_CLASS_IN NS_QCLASS_IN #define NS_CLASS_CS NS_QCLASS_CS #define NS_CLASS_CH NS_QCLASS_CH #define NS_CLASS_HS NS_QCLASS_HS #define NS_OPTCODE_ECS 8 /* edns-client-subnet */ #define NS_OPTCODE_SVR 65530 /* customer code, which store the dns server name */ #define ADDR_FAMILY_NUM_IP 1 /*IPv4*/ #define ADDR_FAMILY_NUM_IP6 2 /*IPv6*/ #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif typedef struct ns_hinfo_t { char *cpu; char *os; } ns_hinfo_t; typedef struct ns_minfo_t { char *rmailbx; char *emailbx; } ns_minfo_t; typedef struct ns_mx_t { uint16_t preference; char *exchange; } ns_mx_t; typedef struct ns_soa_t { char *mname; char *rname; uint32_t serial; uint32_t refresh; uint32_t retry; uint32_t expire; uint32_t minimum; } ns_soa_t; typedef struct ns_ecs_t { uint16_t family; uint8_t src_prefix_len; uint8_t scope_prefix_len; uint8_t subnet[16]; } ns_ecs_t; typedef struct ns_opt_t { uint16_t code; uint16_t length; void *data; } ns_opt_t; typedef struct ns_optlist_t { ns_opt_t *opts; int optcount; } ns_optlist_t; typedef struct ns_rr_t { char *name; uint16_t type; uint16_t cls; /* class */ uint32_t ttl; uint16_t rdlength; union { void* rdata; ns_optlist_t *opts; }; } ns_rr_t; typedef struct ns_qr_t { char *qname; uint16_t qtype; uint16_t qclass; } ns_qr_t; typedef struct ns_msg_t { uint16_t id; uint16_t flags; uint16_t qdcount; uint16_t ancount; uint16_t nscount; uint16_t arcount; ns_qr_t *qrs; ns_rr_t *rrs; } ns_msg_t; int init_ns_msg(ns_msg_t *msg); void ns_msg_free(ns_msg_t *msg); int ns_parse(ns_msg_t *msg, uint8_t *bytes, int nbytes); ns_rr_t *ns_find_rr(ns_msg_t *msg, int type); int ns_remove_rr(ns_msg_t* msg, ns_rr_t* rr); #define ns_find_opt_rr(msg) \ ns_find_rr((msg), NS_TYPE_OPT) ns_rr_t *ns_add_optrr(ns_msg_t *msg); /* remove first find optrr */ int ns_remove_optrr(ns_msg_t *msg); #define ns_remove_all_optrr(msg) while (ns_remove_optrr(msg) == 0){} ns_opt_t* ns_optrr_find_opt(ns_rr_t* rr, uint16_t code); /* remove first find opt */ int ns_optrr_remove_opt(ns_rr_t* rr, uint16_t code); #define <API key>(rr, code) while (ns_optrr_remove_opt((msg), (code)) == 0){} #define ns_optrr_find_ecs(rr) ns_optrr_find_opt((rr), NS_OPTCODE_ECS) #define ns_optrr_remove_ecs(rr) ns_optrr_remove_opt((rr), NS_OPTCODE_ECS) #define <API key>(rr) while (ns_optrr_remove_ecs(rr) == 0){} /*create new ns_opt_t, then append to 'opts'. return new created ns_opt_t. */ ns_opt_t* ns_optrr_new_opt(ns_optlist_t* opts, int optcode); ns_opt_t* ns_optrr_set_opt(ns_rr_t* rr, uint16_t code, uint16_t len, const char* data); static inline ns_opt_t* ns_find_ecs(ns_msg_t* msg, ns_rr_t** prr) { ns_rr_t* rr; ns_opt_t* opt; rr = ns_find_opt_rr(msg); if (rr == NULL) return NULL; opt = ns_optrr_find_ecs(rr); if (opt == NULL) return NULL; if (prr) (*prr) = rr; return opt; } int ns_optrr_set_ecs(ns_rr_t *rr, struct sockaddr *addr, int srcprefix, int scopeprefix); int ns_try_read_ecs(ns_msg_t* msg, ns_ecs_t* ecs); int ns_serialize(stream_t *s, ns_msg_t *msg, int compression); void ns_print(ns_msg_t *msg); const char *ns_typename(uint16_t type); const char *ns_classname(uint16_t cls); /* parse subnet like "192.168.1.1/24" */ int ns_ecs_parse_subnet(struct sockaddr *addr /*out*/, int *pmask /*out*/, const char *subnet /*in*/); #define ns_flag_qr(msg) ((((msg)->flags) >> 15) & 1) #define ns_flag_opcode(msg) ((((msg)->flags) >> 11) & 0xf) #define ns_flag_aa(msg) ((((msg)->flags) >> 10) & 1) #define ns_flag_tc(msg) ((((msg)->flags) >> 9) & 1) #define ns_flag_rd(msg) ((((msg)->flags) >> 8) & 1) #define ns_flag_ra(msg) ((((msg)->flags) >> 7) & 1) #define ns_flag_z(msg) ((((msg)->flags) >> 4) & 7) static inline int ns_flag_rcode(ns_msg_t *msg) { int rcode = (msg->flags) & 0xf; ns_rr_t *rr = ns_find_rr(msg, NS_TYPE_OPT); if (rr) { rcode |= (rr->ttl >> 20) & 0xff00; } return rcode; } #define ns_is_edns_rr(rr) ((rr)->type == NS_QTYPE_OPT) #define ns_rrcount(msg) ((msg)->ancount + (msg)->nscount + (msg)->arcount) #ifdef __cplusplus } #endif #endif /*CLEANDNS_NS_MSG_H_*/
<?xml version="1.0" encoding="utf-8"?> <html> <head> <title>GLib.SeekType.SET -- Vala Binding Reference</title> <link href="../style.css" rel="stylesheet" type="text/css"/><script src="../scripts.js" type="text/javascript"> </script> </head> <body> <div class="site_header">GLib.SeekType.SET Reference Manual</div> <div class="site_body"> <div class="site_navigation"> <ul class="navi_main"> <li class="package_index"><a href="../index.html">Packages</a></li> </ul> <hr class="navi_hr"/> <ul class="navi_main"> <li class="package"><a href="index.htm">glib-2.0</a></li> </ul> <hr class="navi_hr"/> <ul class="navi_main"> <li class="namespace"><a href="GLib.html">GLib</a></li> </ul> <hr class="navi_hr"/> <ul class="navi_main"> <li class="enum"><a href="GLib.SeekType.html">SeekType</a></li> </ul> <hr class="navi_hr"/> <ul class="navi_main"> <li class="enumvalue">SET</li> </ul> <hr class="navi_hr"/> <ul class="navi_main"> </ul> </div> <div class="site_content"> <h1 class="main_title">SET</h1> <hr class="main_hr"/> <h2 class="main_title">Description:</h2> <div class="<API key>"><b><span css="enumvalue">SET</span></b> </div> </div> </div><br/> <div class="site_footer">Generated by <a href="http: </div> </body> </html>
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace MyFirstWebApp { public partial class Money : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void <API key>(object sender, EventArgs e) { } protected void fortuneResult_Click(object sender, EventArgs e) { string age = ageTextBox.Text; string funds = fortuneTextBox.Text; string result = "I would of expected more money at " + age + ", you only have " + funds + " pathetic!"; resultLabelText.Text = result; } } }
package adams.gui.visualization.report.reportfactory; import adams.data.report.AbstractField; import adams.gui.core.GUIHelper; import adams.gui.dialog.TextDialog; import adams.gui.visualization.report.ReportFactory; import java.awt.event.ActionEvent; /** * Allows the user to view values. * * @author fracpete (fracpete at waikato dot ac dot nz) * @version $Revision$ */ public class ViewValue extends AbstractTableAction { /** for serialization. */ private static final long serialVersionUID = -<API key>; /** * Default constructor. */ public ViewValue() { super("View"); } /** * Sets the fields to use. * * @param value the fields */ @Override protected void setFields(AbstractField[] value) { super.setFields(value); setName(createName("View", value, 50)); } /** * Checks whether the action is applicable and should be added to the popup * menu. * * @param table the table the popup menu is for * @param row the currently selected row * @param field the field in the specified row * @param value the current value * @return true if the action is applicable, i.e., should be * included in the popup menu */ @Override public boolean isApplicable(ReportFactory.Table table, int row, AbstractField field, String value) { return true; } /** * Invoked when an action occurs. * * @param e the event */ @Override protected void doActionPerformed(ActionEvent e) { int i; StringBuilder content; TextDialog dialog; content = new StringBuilder(); for (i = 0; i < getFields().length; i++) { if (content.length() > 0) content.append("\n"); content.append(getFields()[i] + "\n"); content.append(getValues()[i] + "\n"); } dialog = new TextDialog(); dialog.setDialogTitle("Report values"); dialog.setContent(content.toString()); dialog.setSize( GUIHelper.getInteger("DefaultSmallDialog.Width", 600), GUIHelper.getInteger("DefaultSmallDialog.Width", 600)); dialog.<API key>(getTable()); dialog.setVisible(true); } }
using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Threading.Tasks; namespace PerfectMedia.UI.Actors { public interface <API key> : <API key> { <API key><IActorViewModel> Actors { get; } IActorViewModel SelectedActor { get; } void Initialize(IEnumerable<IActorViewModel> actors); Task Save(); } }
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-04 14:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='worker', name='jobcategories', ), migrations.AddField( model_name='worker', name='jobcategories', field=models.ManyToManyField(to='web.JobCategory', verbose_name='Услуги'), ), ]
package net.thevpc.upa.filters; import net.thevpc.upa.Entity; import java.util.Collection; import java.util.HashSet; import java.util.Set; /** * @author Taha BEN SALAH <taha.bensalah@gmail.com> */ public class EntityNameFilter extends <API key> { private Set<String> names; public EntityNameFilter(Collection<String> names) { this.names = new HashSet<String>(names); } public boolean accept(Entity entity) { return names.contains(entity.getName()); } }
package com.projectreddog.machinemod.block; import javax.annotation.Nullable; import com.projectreddog.machinemod.creativetab.<API key>; import com.projectreddog.machinemod.init.ModBlocks; import com.projectreddog.machinemod.init.ModDimensions; import com.projectreddog.machinemod.reference.Reference; import com.projectreddog.machinemod.world.BleakTeleporter; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyDirection; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.util.BlockRenderLayer; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class <API key> extends BlockMachineMod { public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL); protected <API key>(Material material) { super(Material.PORTAL); // can override later ;) this.setCreativeTab(<API key>.<API key>); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); this.setUnlocalizedName(Reference.<API key>); this.setRegistryName(Reference.<API key>); // this.setBlockTextureName(Reference.<API key>); // this.setHardness(15f);// not sure on the hardness this.setSoundType(SoundType.METAL); this.setHardness(-1f); this.setLightLevel(1.0F); } public <API key>() { this(Material.ANVIL); } /** * Called When an Entity Collided with the Block */ public void <API key>(World worldIn, BlockPos pos, IBlockState state, Entity entityIn) { if (!entityIn.isRiding() && !entityIn.isBeingRidden() && entityIn.isNonBoss()) { if (!entityIn.world.isRemote) { // server if (entityIn instanceof EntityPlayerMP && entityIn.isSneaking()) { int targetDim = ModDimensions.bleakDimID; if (entityIn.world.provider.getDimension() == ModDimensions.bleakDimID) { targetDim = 0; } // if (player.isSneaking()) { // BleakTeleporter.teleportToDimension(player, 0, pos.getX(), pos.getY(), pos.getZ()); // } else { BlockPos bp = pos; if (state.getValue(FACING) == EnumFacing.EAST || state.getValue(FACING) == EnumFacing.WEST) { bp = pos.offset(EnumFacing.NORTH, 1); } else { bp = pos.offset(EnumFacing.EAST, 1); } entityIn.setSneaking(false); BleakTeleporter.teleportToDimension((EntityPlayerMP) entityIn, targetDim, bp.getX(), bp.getY(), bp.getZ(), pos, state.getValue(FACING)); } } } } @Nullable public AxisAlignedBB <API key>(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) { return NULL_AABB; } @Override public boolean isOpaqueCube(IBlockState state) { return false; } public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite());// .withProperty(HAS_STAR, false); } /** * Possibly modify the given BlockState before rendering it on an Entity (Minecarts, Endermen, ...) */ @SideOnly(Side.CLIENT) public IBlockState <API key>(IBlockState state) { return this.getDefaultState().withProperty(FACING, EnumFacing.SOUTH); } /** * Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstate */ public IBlockState <API key>(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite()); } /** * Convert the given metadata into a BlockState for this Block */ public IBlockState getStateFromMeta(int meta) { return this.getDefaultState().withProperty(FACING, EnumFacing.getHorizontal(meta & 3)); } /** * Convert the BlockState into the correct metadata value */ public int getMetaFromState(IBlockState state) { int i = 0; i = i | ((EnumFacing) state.getValue(FACING)).getHorizontalIndex(); return i; } protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { FACING }); } @Override @SideOnly(Side.CLIENT) public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.TRANSLUCENT; } public boolean isFullCube(IBlockState state) { return false; } @Override public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) { if (!validatePortal(worldIn, pos)) { // TODO actually turn everything off if above line is false ! <API key>(worldIn, pos); } } public void <API key>(World world, BlockPos bottomOfOneSide) { EnumFacing ef = world.getBlockState(bottomOfOneSide).getValue(FACING); if (world.getBlockState(bottomOfOneSide).getBlock() == ModBlocks.machinebleakportal) { world.setBlockToAir(bottomOfOneSide); } } public BlockPos findCenterBottom(World world, BlockPos pos) { if (world.getBlockState(pos).getBlock() == ModBlocks.machinebleakportal) { EnumFacing ef = world.getBlockState(pos).getValue(FACING); BlockPos portalColumn = pos; while (world.getBlockState(portalColumn.down()).getBlock() == ModBlocks.machinebleakportal) { portalColumn = portalColumn.down(); } return portalColumn; } return null; } public boolean validatePortal(World world, BlockPos pos) { boolean result = true; EnumFacing ef = world.getBlockState(pos).getValue(FACING); BlockPos bp = findCenterBottom(world, pos); if (bp == null) { result = false; return result; } else { for (int i = 0; i < 3; i++) { if (world.getBlockState(bp.up(i)).getBlock() != ModBlocks.machinebleakportal) { result = false; return result; } if (world.getBlockState(bp.up(i).offset(ef)).getBlock() != ModBlocks.<API key>) { result = false; return result; } if (world.getBlockState(bp.up(i).offset(ef.getOpposite())).getBlock() != ModBlocks.<API key>) { result = false; return result; } } } return result; } }
// This program is free software: you can redistribute it and/or modify // (at your option) any later version. // This program is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // <summary> // Better CMS is a publishing focused and developer friendly .NET open source CMS. // Email: info@bettercms.com // </summary> using System; using System.Collections.Generic; using System.Linq; using BetterCms.Core.Security; using BetterCms.Module.Root.Models; namespace BetterCms.Module.MediaManager.Models { [Serializable] public class MediaFile : Media, <API key> { public const string <API key> = "Files"; public virtual string OriginalFileName { get; set; } public virtual string <API key> { get; set; } public virtual Uri FileUri { get; set; } public virtual string PublicUrl { get; set; } public virtual long Size { get; set; } public virtual bool IsTemporary { get; set; } public virtual bool? IsUploaded { get; set; } public virtual bool IsCanceled { get; set; } public virtual IList<AccessRule> AccessRules { get; set; } public virtual bool SaveUnsecured { get; set; } <summary> Gets or sets the rules. </summary> <value> The rules. </value> IList<IAccessRule> <API key>.AccessRules { get { if (AccessRules == null) { return null; } return AccessRules.Cast<IAccessRule>().ToList(); } } public virtual bool IsMovedToTrash { get; set; } public virtual DateTime? <API key> { get; set; } public virtual void AddRule(IAccessRule accessRule) { if (AccessRules == null) { AccessRules = new List<AccessRule>(); } AccessRules.Add((AccessRule)accessRule); } public virtual void RemoveRule(IAccessRule accessRule) { AccessRules.Remove((AccessRule)accessRule); } public override string <API key>() { return <API key>; } public override Media Clone() { return CopyDataTo(new MediaFile()); } public override Media CopyDataTo(Media media, bool copyCollections = true) { var copy = (MediaFile)base.CopyDataTo(media, copyCollections); copy.OriginalFileName = OriginalFileName; copy.<API key> = <API key>; copy.FileUri = FileUri; copy.PublicUrl = PublicUrl; copy.Size = Size; copy.IsTemporary = IsTemporary; copy.IsUploaded = IsUploaded; copy.IsCanceled = IsCanceled; return copy; } } }
package nc.noumea.mairie.pdc.services; import nc.noumea.mairie.pdc.core.services.GenericService; import nc.noumea.mairie.pdc.dto.AnalyseCentroideSig; import nc.noumea.mairie.pdc.entity.AnalyseCentroide; import nc.noumea.mairie.pdc.entity.RensUrba; import nc.noumea.mairie.pdc.entity.RequeteSig; public interface <API key> extends GenericService<AnalyseCentroide> { AnalyseCentroide <API key>(Long id); void <API key>(AnalyseCentroide analyseCentroide, AnalyseCentroideSig analyseCentroideSig); void <API key>(); AnalyseCentroideSig <API key>(String reponseSig); void <API key>(RensUrba rensUrba, RequeteSig requeteSig); }
#ifndef __SOUND_MODULE_H__ #define __SOUND_MODULE_H__ #ifndef LI_DISABLE_SOUND #include "sound-manager.h" #include "sound-source.h" #endif #include "lipsofsuna/extension.h" #define LIEXT_SCRIPT_SOUND "Sound" #define <API key> "SoundSource" enum { <API key> = 0x1, <API key> = 0x2 }; typedef struct _LIExtModule LIExtModule; struct _LIExtModule { int music_looping; float music_fading; float music_volume; LIMaiProgram* program; LIMatVector listener_position; LIMatVector listener_velocity; LIMatQuaternion listener_rotation; #ifndef LI_DISABLE_SOUND LICalHandle calls[1]; LISndSystem* system; LISndManager* sound; LISndSource* music; LISndSource* music_fade; #endif }; LIExtModule* liext_sound_new ( LIMaiProgram* program); void liext_sound_free ( LIExtModule* self); void <API key> ( LIExtModule* self, LIMaiMemstat* stat); #ifndef LI_DISABLE_SOUND LISndSample* <API key> ( LIExtModule* self, const char* name); int <API key> ( LIExtModule* self, const char* value); void <API key> ( LIExtModule* self, float value); void <API key> ( LIExtModule* self, int value); void <API key> ( LIExtModule* self, float value); #endif void liext_script_sound ( LIScrScript* self); void <API key> ( LIScrScript* self); #endif
#!/usr/bin/julia # Generate a random Julia set as a PNG image. # See also: using Images @inline function hsv2rgb(h, s, v) c = v * s x = c * (1 - abs(((h/60) % 2) - 1)) m = v - c if h < 60 r,g,b = (c, x, 0) elseif h < 120 r,g,b = (x, c, 0) elseif h < 180 r,g,b = (0, c, x) elseif h < 240 r,g,b = (0, x, c) elseif h < 300 r,g,b = (x, 0, c) else r,g,b = (c, 0, x) end (r + m), (b + m), (g + m) end function julia_set() w, h = 1000, 1000 zoom = 0.5 # the zoom factor moveX = 0 # the amount of shift on the x axis moveY = 0 # the amount of shift on the y axis L = 2 # the maximum value of |z| I = 30 # the maximum number of iterations img = zeros(RGB{Float64}, h, w) c = Complex(-rand(), 2 * rand() * (rand() < 0.5 ? 1 : -1)) for x in 1:w, y in 1:h n = 0 z = Complex( (2*x - w) / (w * zoom) + moveX, (2*y - h) / (h * zoom) + moveY ) while abs(z) < L && (n += 1) < I z = z^2 + c end v = (I - n) / I r,g,b = hsv2rgb(v*360, 1, v) img[y,x] = RGB{Float64}(r, g, b) end println("Generating image...") save("$c-$zoom.png", img) end julia_set()
#!/usr/bin/env python import sys import os import math # ensure that the <API key> directory is available #sys.path.append(os.environ.get('<API key>')) # enable package import from parent directory #sys.path.append("D:\hardware\KiCAD\<API key>") # enable package import from parent directory sys.path.append(os.path.join(sys.path[0],"..","..","kicad_mod")) # load kicad_mod path sys.path.append(os.path.join(sys.path[0],"..","..")) # load kicad_mod path sys.path.append(os.path.join(sys.path[0],"..","tools")) # load kicad_mod path from KicadModTree import * # NOQA from <API key> import * if __name__ == '__main__': <API key>="script-generated using https://github.com/pointhi/<API key>/scripts/TerminalBlock_WAGO"; classname="TerminalBlock_WAGO" pins=[1,2,3,4,5,6,7,8,9,10,12,16,24] rm=7.5 package_height=15 leftbottom_offset=[2.75, 6.7, 3.75] ddrill=1.2 pad=[2,3] screw_diameter=2.2 bevel_height=[2.9] <API key>=[-1.25] opening=[2.9,2.3] opening_xoffset=1.25 opening_yoffset=1.45 opening_elliptic=True secondDrillDiameter=ddrill secondDrillOffset=[2.5,-5] secondDrillPad=pad secondHoleDiameter=[4,4.4] secondHoleOffset=[1.25,0] thirdHoleDiameter=[4,1] thirdHoleOffset=[1.25,0] fourthHoleDiameter=3 fourthHoleOffset=[1.25,-5.75] fifthHoleDiameter=0 fifthHoleOffset=[2.5,-0.75] secondEllipseSize=[0,0] secondEllipseOffset=[1.25,2.5] fabref_offset=[0,-1] nibbleSize=[] nibblePos=[] for p in pins: name="804-{0}".format(300+p); webpage=""; <API key>="Terminal Block WAGO {0}".format(name); footprint_name="TerminalBlock_WAGO_{0}_1x{2:02}_P{1:3.2f}mm_45Degree".format(name, rm, p) <API key>(footprint_name=footprint_name, pins=p, rm=rm, package_height=package_height, leftbottom_offset=leftbottom_offset, ddrill=ddrill, pad=pad, <API key>=<API key>, opening=opening, opening_xoffset=opening_xoffset, opening_yoffset=opening_yoffset, opening_elliptic=opening_elliptic, bevel_height=bevel_height, secondHoleDiameter=secondHoleDiameter, secondHoleOffset=secondHoleOffset, thirdHoleDiameter=thirdHoleDiameter, thirdHoleOffset=thirdHoleOffset, fourthHoleDiameter=fourthHoleDiameter, fourthHoleOffset=fourthHoleOffset, fifthHoleDiameter=fifthHoleDiameter,fifthHoleOffset=fifthHoleOffset, secondDrillDiameter=secondDrillDiameter,secondDrillOffset=secondDrillOffset,secondDrillPad=secondDrillPad, secondEllipseSize=secondEllipseSize,secondEllipseOffset=secondEllipseOffset, nibbleSize=nibbleSize, nibblePos=nibblePos, fabref_offset=fabref_offset, tags_additional=[], lib_name="${KISYS3DMOD}/"+classname, classname=classname, <API key>=<API key>, webpage=webpage, <API key>=<API key>) pins=[1,2,3,4,5,6,7,8,9,10,12,16,24] rm=5 package_height=15 leftbottom_offset=[2.75, 6.7, 3.75] ddrill=1.2 pad=[2,3] screw_diameter=2.2 bevel_height=[2.9] <API key>=[-1.25] opening=[2.9,2.3] opening_xoffset=1.25 opening_yoffset=1.45 opening_elliptic=True secondDrillDiameter=ddrill secondDrillOffset=[2.5,-5] secondDrillPad=pad secondHoleDiameter=[4,4.4] secondHoleOffset=[1.25,0] thirdHoleDiameter=[4,1] thirdHoleOffset=[1.25,0] fourthHoleDiameter=3 fourthHoleOffset=[1.25,-5.75] fifthHoleDiameter=0 fifthHoleOffset=[1.25,-0.75] secondEllipseSize=[0,0] secondEllipseOffset=[1.25,2.5] fabref_offset=[0,-1] nibbleSize=[] nibblePos=[] for p in pins: name="804-{0}".format(100+p); webpage=""; <API key>="Terminal Block WAGO {0}".format(name); footprint_name="TerminalBlock_WAGO_{0}_1x{2:02}_P{1:3.2f}mm_45Degree".format(name, rm, p) <API key>(footprint_name=footprint_name, pins=p, rm=rm, package_height=package_height, leftbottom_offset=leftbottom_offset, ddrill=ddrill, pad=pad, <API key>=<API key>, opening=opening, opening_xoffset=opening_xoffset, opening_yoffset=opening_yoffset, opening_elliptic=opening_elliptic, bevel_height=bevel_height, secondHoleDiameter=secondHoleDiameter, secondHoleOffset=secondHoleOffset, thirdHoleDiameter=thirdHoleDiameter, thirdHoleOffset=thirdHoleOffset, fourthHoleDiameter=fourthHoleDiameter, fourthHoleOffset=fourthHoleOffset, fifthHoleDiameter=fifthHoleDiameter,fifthHoleOffset=fifthHoleOffset, secondDrillDiameter=secondDrillDiameter,secondDrillOffset=secondDrillOffset,secondDrillPad=secondDrillPad, secondEllipseSize=secondEllipseSize,secondEllipseOffset=secondEllipseOffset, nibbleSize=nibbleSize, nibblePos=nibblePos, fabref_offset=fabref_offset, tags_additional=[], lib_name="${KISYS3DMOD}/"+classname, classname=classname, <API key>=<API key>, webpage=webpage, <API key>=<API key>) pins=[1,2,3,4,5,6,7,8,9,10,12,16,24] rm=5 package_height=14 leftbottom_offset=[3.5, 4, 3] ddrill=1.0 pad=[1.5,3] screw_diameter=2.2 bevel_height=[1,6.7,9.5] opening=[4,3.3] opening_xoffset=0.5 opening_yoffset=1.3#<API key>[1]-opening[1]/2 secondDrillDiameter=ddrill secondDrillOffset=[0,-5] secondDrillPad=pad secondHoleDiameter=[5,14] secondHoleOffset=[0.5,-3] thirdHoleDiameter=[4,1] thirdHoleOffset=[0.5,-2.2] fourthHoleDiameter=[1,2.5] fourthHoleOffset=[0.5,-8.4] fabref_offset=[0,-1] nibbleSize=[] nibblePos=[] for p in pins: name="236-{0}".format(100+p); webpage=""; <API key>="Terminal Block WAGO {0}".format(name); footprint_name="TerminalBlock_WAGO_{0}_1x{2:02}_P{1:3.2f}mm_45Degree".format(name, rm, p) <API key>(footprint_name=footprint_name, pins=p, rm=rm, package_height=package_height, leftbottom_offset=leftbottom_offset, ddrill=ddrill, pad=pad, opening=opening, opening_xoffset=opening_xoffset, opening_yoffset=opening_yoffset, bevel_height=bevel_height, secondHoleDiameter=secondHoleDiameter, secondHoleOffset=secondHoleOffset, thirdHoleDiameter=thirdHoleDiameter, thirdHoleOffset=thirdHoleOffset, fourthHoleDiameter=fourthHoleDiameter, fourthHoleOffset=fourthHoleOffset, secondDrillDiameter=secondDrillDiameter,secondDrillOffset=secondDrillOffset,secondDrillPad=secondDrillPad, nibbleSize=nibbleSize, nibblePos=nibblePos, fabref_offset=fabref_offset, tags_additional=[], lib_name="${KISYS3DMOD}/"+classname, classname=classname, <API key>=<API key>, webpage=webpage, <API key>=<API key>) pins=[1,2,3,4,5,6,7,8,9,10,12,16,24] rm=7.5 package_height=14 leftbottom_offset=[3.5, 4, 5.5] ddrill=1.0 pad=[1.5,3] screw_diameter=2.2 bevel_height=[1,6.7,9.5] opening=[4,3.3] opening_xoffset=0.5 opening_yoffset=1.3#<API key>[1]-opening[1]/2 secondDrillDiameter=ddrill secondDrillOffset=[0,-5] secondDrillPad=pad secondHoleDiameter=[rm,package_height] secondHoleOffset=[1.75,-3] thirdHoleDiameter=[4,1] thirdHoleOffset=[0.5,-2.2] fourthHoleDiameter=1,2.5 fourthHoleOffset=[0.5,-8.4] fabref_offset=[0,-1] nibbleSize=[] nibblePos=[] for p in pins: name="236-{0}".format(200+p); webpage=""; <API key>="Terminal Block WAGO {0}".format(name); footprint_name="TerminalBlock_WAGO_{0}_1x{2:02}_P{1:3.2f}mm_45Degree".format(name, rm, p) <API key>(footprint_name=footprint_name, pins=p, rm=rm, package_height=package_height, leftbottom_offset=leftbottom_offset, ddrill=ddrill, pad=pad, opening=opening, opening_xoffset=opening_xoffset, opening_yoffset=opening_yoffset, bevel_height=bevel_height, secondHoleDiameter=secondHoleDiameter, secondHoleOffset=secondHoleOffset, thirdHoleDiameter=thirdHoleDiameter, thirdHoleOffset=thirdHoleOffset, fourthHoleDiameter=fourthHoleDiameter, fourthHoleOffset=fourthHoleOffset, secondDrillDiameter=secondDrillDiameter,secondDrillOffset=secondDrillOffset,secondDrillPad=secondDrillPad, nibbleSize=nibbleSize, nibblePos=nibblePos, fabref_offset=fabref_offset, tags_additional=[], lib_name="${KISYS3DMOD}/"+classname, classname=classname, <API key>=<API key>, webpage=webpage, <API key>=<API key>) pins=[1,2,3,4,5,6,7,8,9,10,12,16,24] rm=10 package_height=14 leftbottom_offset=[3.5, 4, 8] ddrill=1.0 pad=[1.5,3] screw_diameter=2.2 bevel_height=[1,6.7,9.5] opening=[4,3.3] opening_xoffset=0.5 opening_yoffset=1.3#<API key>[1]-opening[1]/2 secondDrillDiameter=ddrill secondDrillOffset=[0,-5] secondDrillPad=pad secondHoleDiameter=[rm,package_height] secondHoleOffset=[3,-3] thirdHoleDiameter=[4,1] thirdHoleOffset=[0.5,-2.2] fourthHoleDiameter=1,2.5 fourthHoleOffset=[0.5,-8.4] fabref_offset=[0,-1] nibbleSize=[] nibblePos=[] for p in pins: name="236-{0}".format(300+p); webpage=""; <API key>="Terminal Block WAGO {0}".format(name); footprint_name="TerminalBlock_WAGO_{0}_1x{2:02}_P{1:3.2f}mm_45Degree".format(name, rm, p) <API key>(footprint_name=footprint_name, pins=p, rm=rm, package_height=package_height, leftbottom_offset=leftbottom_offset, ddrill=ddrill, pad=pad, opening=opening, opening_xoffset=opening_xoffset, opening_yoffset=opening_yoffset, bevel_height=bevel_height, secondHoleDiameter=secondHoleDiameter, secondHoleOffset=secondHoleOffset, thirdHoleDiameter=thirdHoleDiameter, thirdHoleOffset=thirdHoleOffset, fourthHoleDiameter=fourthHoleDiameter, fourthHoleOffset=fourthHoleOffset, secondDrillDiameter=secondDrillDiameter,secondDrillOffset=secondDrillOffset,secondDrillPad=secondDrillPad, nibbleSize=nibbleSize, nibblePos=nibblePos, fabref_offset=fabref_offset, tags_additional=[], lib_name="${KISYS3DMOD}/"+classname, classname=classname, <API key>=<API key>, webpage=webpage, <API key>=<API key>)
#include "MySensors.h" #include "<API key>.h" #include "<API key>.h" #include "IOFactory.h" using namespace Calaos; REGISTER_IO(<API key>) <API key>::<API key>(Params &p): InputSwitch(p) { // Define IO documentation ioDoc->friendlyNameSet("<API key>"); ioDoc->descriptionSet(_("Input switch with MySensors node")); MySensors::commonDoc(ioDoc); ioDoc->paramAdd("node_id", _("Node ID as set in your network"), IODoc::TYPE_STRING, true); ioDoc->paramAdd("sensor_id", _("Sensor ID, as set in your node"), IODoc::TYPE_STRING, true); string nodeId = get_param("node_id"); string sensorId = get_param("sensor_id"); ctrl = <API key>::Instance().get_controller(get_params()); ctrl->registerIO(nodeId, sensorId, [=]() { hasChanged(); }); cInfoDom("input") << "node_id: " << nodeId << " sensor_id: " << sensorId; } <API key>::~<API key>() { } bool <API key>::readValue() { // Read the value string nodeId = get_param("node_id"); string sensorId = get_param("sensor_id"); string sv = ctrl->getValue(nodeId, sensorId); return sv == "true" || sv == "1"; }
#include "recordfilterbox.hpp" #include <QHBoxLayout> #include <QLabel> #include "editwidget.hpp" CSVFilter::RecordFilterBox::RecordFilterBox (CSMWorld::Data& data, QWidget *parent) : QWidget (parent) { QHBoxLayout *layout = new QHBoxLayout (this); layout->setContentsMargins (0, 0, 0, 0); layout->addWidget (new QLabel ("Record Filter", this)); mEdit = new EditWidget (data, this); layout->addWidget (mEdit); setLayout (layout); connect ( mEdit, SIGNAL (filterChanged (boost::shared_ptr<CSMFilter::Node>)), this, SIGNAL (filterChanged (boost::shared_ptr<CSMFilter::Node>))); } void CSVFilter::RecordFilterBox::setFilter (const std::string& filter) { mEdit->clear(); mEdit->setText (QString::fromUtf8 (filter.c_str())); } void CSVFilter::RecordFilterBox::createFilterRequest (std::vector< std::pair< std::string, std::vector< std::string > > >& filterSource, Qt::DropAction action) { mEdit->createFilterRequest(filterSource, action); }
from __future__ import (absolute_import, division, print_function) import os import numpy as np from mantid import config, mtd, logger from mantid.kernel import StringListValidator, Direction from mantid.api import PythonAlgorithm, <API key>, FileProperty, \ <API key>, FileAction, Progress from mantid.simpleapi import * # noqa def _ws_or_none(s): return mtd[s] if s != '' else None def _extract_workspace(ws, ws_out, x_start, x_end): """ Extracts a part of the workspace and shifts the x-axis to start from 0 @param ws :: input workspace name @param ws_out :: output workspace name @param x_start :: start bin of workspace to be extracted @param x_end :: end bin of workspace to be extracted """ CropWorkspace(InputWorkspace=ws, OutputWorkspace=ws_out, XMin=x_start, XMax=x_end) ScaleX(InputWorkspace=ws_out, OutputWorkspace=ws_out, Factor=-x_start, Operation='Add') class <API key>(PythonAlgorithm): _run_file = None _map_file = None _parameter_file = None _reduction_type = None _mirror_sense = None _doppler_energy = None _velocity_profile = None _instrument_name = None _instrument = None _analyser = None _reflection = None _dead_channels = None _ws = None _red_ws = None _psd_int_range = None _use_map_file = None _spectrum_axis = None _efixed = None def category(self): return "Workflow\\MIDAS;Workflow\\Inelastic;Inelastic\\Indirect;Inelastic\\Reduction;ILL\\Indirect" def summary(self): return 'Performs initial energy transfer reduction for ILL indirect geometry data, instrument IN16B.' def seeAlso(self): return [ "<API key>","<API key>" ] def name(self): return "<API key>" def PyInit(self): self.declareProperty(<API key>('Run', extensions=['nxs']), doc='File path of run (s).') self.declareProperty(FileProperty('MapFile', '', action=FileAction.OptionalLoad, extensions=['map','xml']), doc='Filename of the detector grouping map file to use. \n' 'By default all the pixels will be summed per each tube. \n' 'Use .map or .xml file (see GroupDetectors documentation) ' 'only if different range is needed for each tube.') self.declareProperty(name='<API key>',defaultValue=[1,128], doc='Integration range of vertical pixels in each PSD tube. \n' 'By default all the pixels will be summed per each tube. \n' 'Use this option if the same range (other than default) ' 'is needed for all the tubes.') self.declareProperty(name='Analyser', defaultValue='silicon', validator=StringListValidator(['silicon']), doc='Analyser crystal.') self.declareProperty(name='Reflection', defaultValue='111', validator=StringListValidator(['111', '311']), doc='Analyser reflection.') self.declareProperty(name='<API key>',defaultValue=False, doc='Whether or not to exclude the first and last few channels ' 'with 0 monitor count in the energy transfer formula.') self.declareProperty(<API key>('OutputWorkspace', '', direction=Direction.Output), doc='Group name for the reduced workspace(s).') self.declareProperty(name='SpectrumAxis', defaultValue='SpectrumNumber', validator=StringListValidator(['SpectrumNumber', '2Theta', 'Q', 'Q2']), doc='The spectrum axis conversion target.') def validateInputs(self): issues = dict() self._psd_int_range = self.getProperty('<API key>').value if not self.getPropertyValue('MapFile'): if len(self._psd_int_range) != 2: issues['<API key>'] = 'Specify comma separated pixel range, e.g. 1,128' elif self._psd_int_range[0] < 1 or self._psd_int_range[1] > 128 \ or self._psd_int_range[0] >= self._psd_int_range[1]: issues['<API key>'] = 'Start or end pixel number out is of range [1-128], or has wrong order' return issues def setUp(self): self._run_file = self.getPropertyValue('Run').replace(',','+') # automatic summing self._analyser = self.getPropertyValue('Analyser') self._map_file = self.getPropertyValue('MapFile') self._reflection = self.getPropertyValue('Reflection') self._dead_channels = self.getProperty('<API key>').value self._red_ws = self.getPropertyValue('OutputWorkspace') self._spectrum_axis = self.getPropertyValue('SpectrumAxis') if self._map_file or (self._psd_int_range[0] == 1 and self._psd_int_range[1] == 128): self._use_map_file = True else: self._use_map_file = False def _load_map_file(self): """ Loads the detector grouping map file @throws RuntimeError :: if neither the user defined nor the default file is found """ self._instrument_name = self._instrument.getName() self._analyser = self.getPropertyValue('Analyser') self._reflection = self.getPropertyValue('Reflection') idf_directory = config['<API key>.directory'] ipf_name = self._instrument_name + '_' + self._analyser + '_' + self._reflection + '_Parameters.xml' self._parameter_file = os.path.join(idf_directory, ipf_name) self.log().information('Set parameter file : {0}'.format(self._parameter_file)) if self._use_map_file: if self._map_file == '': # path name for default map file if self._instrument.hasParameter('Workflow.GroupingFile'): grouping_filename = self._instrument.getStringParameter('Workflow.GroupingFile')[0] self._map_file = os.path.join(config['groupingFiles.directory'], grouping_filename) else: raise RuntimeError("Failed to find default detector grouping file. Please specify manually.") self.log().information('Set detector map file : {0}'.format(self._map_file)) def _mask(self, ws, xstart, xend): """ Masks the first and last bins @param ws :: input workspace name @param xstart :: MaskBins between x[0] and x[xstart] @param xend :: MaskBins between x[xend] and x[-1] """ x_values = mtd[ws].readX(0) if xstart > 0: logger.debug('Mask bins smaller than {0}'.format(xstart)) MaskBins(InputWorkspace=ws, OutputWorkspace=ws, XMin=x_values[0], XMax=x_values[xstart]) if xend < len(x_values) - 1: logger.debug('Mask bins larger than {0}'.format(xend)) MaskBins(InputWorkspace=ws, OutputWorkspace=ws, XMin=x_values[xend + 1], XMax=x_values[-1]) def _convert_to_energy(self, ws): """ Converts the x-axis from raw channel number to energy transfer @param ws :: input workspace name """ x = mtd[ws].readX(0) size = mtd[ws].blocksize() mid = (x[-1] + x[0])/ 2. scale = 0.001 # from micro ev to mili ev factor = size / (size - 1) if self._doppler_energy != 0: formula = '(x/{0} - 1)*{1}'.format(mid, self._doppler_energy * scale * factor) else: # Center the data for elastic fixed window scan, for integration over the elastic peak formula = '(x-{0})*{1}'.format(mid-0.5, 1. / scale) self.log().notice('The only energy value is 0 meV. Ignore the x-axis.') self.log().information('Energy conversion formula is: {0}'.format(formula)) <API key>(InputWorkspace=ws, OutputWorkspace=ws, Axis='X', Formula=formula, AxisUnits = 'DeltaE') def _monitor_max_range(self, ws): """ Gives the bin indices of the first and last peaks in the monitor @param ws :: input workspace name return :: [xmin,xmax] """ y = mtd[ws].readY(0) size = len(y) mid = int(size / 2) imin = np.nanargmax(y[0:mid]) imax = np.nanargmax(y[mid:size]) + mid return imin, imax def _monitor_zero_range(self, ws): """ Gives the bin indices of the first and last non-zero bins in monitor @param ws :: input workspace name return :: [start,end] """ y = mtd[ws].readY(0) nonzero = np.argwhere(y!=0) start = nonzero[0][0] if nonzero.any() else 0 end = nonzero[-1][0] if nonzero.any() else len(y) return start,end def <API key>(self): """ Sets up the doppler properties, and deduces the reduction type @throws RuntimeError :: If anyone of the 3 required entries is missing """ run = mtd[self._ws].getRun() message = 'is not defined. Check your data.' if run.hasProperty('Doppler.mirror_sense'): self._mirror_sense = run.getLogData('Doppler.mirror_sense').value else: raise RuntimeError('Mirror sense '+ message) if run.hasProperty('Doppler.<API key>'): self._doppler_energy = run.getLogData('Doppler.<API key>').value else: raise RuntimeError('Maximum delta energy '+ message) if run.hasProperty('Doppler.velocity_profile'): self._velocity_profile = run.getLogData('Doppler.velocity_profile').value else: raise RuntimeError('Velocity profile '+ message) if self._doppler_energy == 0.: self._reduction_type = 'EFWS' else: if self._velocity_profile == 0: self._reduction_type = 'QENS' else: self._reduction_type = 'IFWS' def PyExec(self): self.setUp() self._progress = Progress(self, start=0.0, end=1.0, nreports=self._run_file.count('+')) LoadAndMerge(Filename=self._run_file, OutputWorkspace=self._red_ws, LoaderName='LoadILLIndirect') self._instrument = mtd[self._red_ws].getInstrument() self._load_map_file() run = '{0:06d}'.format(mtd[self._red_ws].getRunNumber()) self._ws = self._red_ws + '_' + run if self._run_file.count('+') > 0: # multiple summed files self._ws += '_multiple' RenameWorkspace(InputWorkspace=self._red_ws, OutputWorkspace=self._ws) LoadParameterFile(Workspace=self._ws, Filename=self._parameter_file) self._efixed = self._instrument.getNumberParameter('Efixed')[0] self.<API key>() if self._mirror_sense == 14: # two wings, extract left and right size = mtd[self._ws].blocksize() left = self._ws + '_left' right = self._ws + '_right' _extract_workspace(self._ws, left, 0, int(size/2)) _extract_workspace(self._ws, right, int(size/2), size) DeleteWorkspace(self._ws) self._reduce_one_wing(left) self._reduce_one_wing(right) GroupWorkspaces(InputWorkspaces=[left,right],OutputWorkspace=self._red_ws) elif self._mirror_sense == 16: # one wing self._reduce_one_wing(self._ws) GroupWorkspaces(InputWorkspaces=[self._ws],OutputWorkspace=self._red_ws) self.setProperty('OutputWorkspace',self._red_ws) def _reduce_one_wing(self, ws): """ Reduces given workspace assuming it is one wing already @param ws :: input workspace name """ mon = '__mon_'+ws <API key>(InputWorkspace=ws, OutputWorkspace=mon, WorkspaceIndex=0) if self._use_map_file: GroupDetectors(InputWorkspace=ws, OutputWorkspace=ws, MapFile=self._map_file) else: self.<API key>(ws) xmin, xmax = self._monitor_zero_range(mon) self.<API key>(ws, mon) if self._reduction_type == 'QENS': if self._dead_channels: CropWorkspace(InputWorkspace=ws,OutputWorkspace=ws,XMin=float(xmin),XMax=float(xmax+1.)) ScaleX(InputWorkspace=ws, OutputWorkspace=ws, Factor=-float(xmin), Operation='Add') else: self._mask(ws, xmin, xmax) DeleteWorkspace(mon) self._convert_to_energy(ws) target = None if self._spectrum_axis == '2Theta': target = 'Theta' elif self._spectrum_axis == 'Q': target = 'ElasticQ' elif self._spectrum_axis == 'Q2': target = 'ElasticQSquared' if self._spectrum_axis != 'SpectrumNumber': ConvertSpectrumAxis(InputWorkspace=ws,OutputWorkspace=ws, EMode='Indirect',Target=target,EFixed=self._efixed) def <API key>(self, ws): """ Groups (sums) the multi-detector's pixels according to given range @param ws :: input workspace name """ pattern = '' for tube in range(1,17): pattern += str((tube - 1) * 128 + self._psd_int_range[0]) pattern += '-' pattern += str((tube - 1) * 128 + self._psd_int_range[1]) pattern += ',' num_single_det = mtd[ws].getNumberHistograms()-16*128-1 for single_det in range(num_single_det): sd_index = 16*128 + single_det + 1 pattern += str(sd_index) pattern += ',' pattern = pattern.rstrip(',') self.log().information("Grouping the detectors with pattern:\n {0}" .format(pattern)) GroupDetectors(InputWorkspace=ws,OutputWorkspace=ws,GroupingPattern=pattern) def <API key>(self, ws, mon): """ Normalises the ws to the monitor dependent on the reduction type @param ws :: input workspace name @param mon :: ws's monitor """ x = mtd[ws].readX(0) if self._reduction_type == 'QENS': # Normalise bin-to-bin, do not use NormaliseToMonitor, it uses scaling that we don't want Divide(LHSWorkspace=ws,OutputWorkspace=ws,RHSWorkspace=mon) elif self._reduction_type == 'EFWS': # Integrate over the whole range int = '__integral1_' + ws Integration(InputWorkspace=mon, OutputWorkspace=int, RangeLower=x[0], RangeUpper=x[-1]) if mtd[int].readY(0)[0] !=0: # this needs to be checked Scale(InputWorkspace=ws, OutputWorkspace=ws, Factor=1. / mtd[int].readY(0)[0]) # remember the integral of the monitor AddSampleLog(Workspace=ws, LogName="MonitorIntegral", LogType="Number", LogText=str(mtd[int].readY(0)[0]), EnableLogging = False) DeleteWorkspace(int) elif self._reduction_type == 'IFWS': # Integrate over the two peaks at the beginning and at the end and sum size = mtd[ws].blocksize() x_start, x_end = self._monitor_max_range(mon) i1 = '__integral1_' + ws i2 = '__integral2_' + ws int = '__integral_' + ws Integration(InputWorkspace=mon, OutputWorkspace=i1, RangeLower=x[0], RangeUpper=x[2*x_start]) Integration(InputWorkspace=mon, OutputWorkspace=i2, RangeLower=x[-2*(size - x_end)], RangeUpper=x[-1]) Plus(LHSWorkspace=i1,RHSWorkspace=i2,OutputWorkspace=int) if mtd[int].readY(0)[0] != 0: # this needs to be checked Scale(InputWorkspace = ws, OutputWorkspace = ws, Factor = 1./mtd[int].readY(0)[0]) # remember the integral of the monitor AddSampleLog(Workspace=ws, LogName="MonitorIntegral", LogType="Number", LogText=str(mtd[int].readY(0)[0]), EnableLogging = False) DeleteWorkspace(i1) DeleteWorkspace(i2) DeleteWorkspace(int) <API key>(InputWorkspace=ws, OutputWorkspace=ws, NaNValue=0, NaNError=0, InfinityValue=0, InfinityError=0) # Register algorithm with Mantid AlgorithmFactory.subscribe(<API key>)
#import "DBTableRowView.h" @interface DBTopicTableRowView : DBTableRowView @end
ALTER TABLE products ADD nestable_percentage float(12) NULL; UPDATE configuration SET configuration_value = '2.1.1' WHERE configuration_key = '<API key>' LIMIT 1;
Namespace org.omg.IOP ''' <summary> ''' org/omg/IOP/TAG_CODE_SETS.java . ''' Generated by the IDL-to-Java compiler (portable), version "3.2" ''' from d:/re/puppet/workspace/<API key>/jdk8u73/6086/corba/src/share/classes/org/omg/PortableInterceptor/IOP.idl ''' Friday, January 29, 2016 5:40:18 PM PST ''' </summary> Public Interface TAG_CODE_SETS ''' <summary> ''' The code set component of the IOR multi-component profile structure ''' contains: ''' <ul> ''' <li>server's native char code set and conversion code sets, and</li> ''' <li>server's native wchar code set and conversion code sets.</li> ''' preference. ''' </summary> 'JAVA TO VB CONVERTER TODO TASK: Interfaces cannot contain fields in .NET: ' public static final int value = (int)(1L); End Interface End Namespace
@namespace xul url("http: /* Variables that start with --gnome- are added by me and are assigned * to elements somewhere in this code. The rest of the variables are * built-in in Firefox, so you need to add an !important if you wanna * override them. */ @media (<API key>: dark) { :root { --<API key>: #ffffff; --<API key>: #2eb398; /* Browser area before a page starts loading */ --<API key>: #303b3e; /* Toolbars */ --<API key>: #1b2224; --gnome-toolbar-color: #ccd7d4; --<API key>: #14191B; --<API key>: #1b2224; --<API key>: #14191B; /* Sidebar */ --<API key>: #303b3e; --<API key>: #303b3e; /* Popups */ --<API key>: #222b2e; --<API key>: #14191B; --<API key>: #222b2e; --<API key>: #14191B; --<API key>: 0 1px 2px rgba(0, 0, 0, 0.3); --<API key>: #353f43; --<API key>: rgba(0, 0, 0, 0.1); /* Header bar */ --<API key>: #ccd7d4; --<API key>: #141A1B; --<API key>: #0e1112; --<API key>: inset 0 1px rgba(238, 238, 236, 0.07); --<API key>: #1b2224; --<API key>: #14191B; --<API key>: inset 0 1px rgba(238, 238, 236, 0.07); /* Buttons */ --<API key>: #263034; --<API key>: #14191B; --<API key>: #14191B; --<API key>: inset 0 1px rgba(255, 255, 255, 0.02), 0 1px 2px rgba(0, 0, 0, 0.07); --<API key>: rgba(255, 255, 255, 0.1); --<API key>: #2eb398; --<API key>: #2eb398; --<API key>: #14191B; --<API key>: inset 0 1px rgba(255, 255, 255, 0); --<API key>: #20292C; --<API key>: #1c2326; --<API key>: inset 0 1px rgba(255, 255, 255, 0); --<API key>: #20292C; --<API key>: #1c2326; --<API key>: inset 0 1px rgba(255, 255, 255, 0); --<API key>: rgba(255, 255, 255, 0.1); --<API key>: rgba(255, 255, 255, 0.2); --<API key>: rgba(255, 255, 255, 0.1); --<API key>: #2eb398; --<API key>: linear-gradient(to top, #155099 2px, #15539e); --<API key>: #0f3b71; --<API key>: #092444;; --<API key>: inset 0 1px rgba(255, 255, 255, 0.02), 0 1px 2px rgba(0, 0, 0, 0.07); --<API key>: linear-gradient(to top, #155099, #1655a2 1px); --<API key>: #103e75; --<API key>: #0f3b71; --<API key>: inset 0 1px rgba(255, 255, 255, 0); --<API key>: linear-gradient(to top, #ae151c 2px, #b2161d); --<API key>: #851015; --<API key>: #570b0e; --<API key>: inset 0 1px rgba(255, 255, 255, 0.02), 0 1px 2px rgba(0, 0, 0, 0.07); --<API key>: linear-gradient(to top, #ae151c, #b7161d 1px); --<API key>: #8a1116; --<API key>: #851015; --<API key>: inset 0 1px rgba(255, 255, 255, 0); /* TitleButtons */ --<API key>: rgba(255, 255, 255, 0.1); --<API key>: rgba(255, 255, 255, 0.1); --<API key>: transparent; --<API key>: #2eb398; --<API key>: #2eb398; --<API key>: transparent; /* Entries */ --<API key>: #222B2E; --<API key>: #14191B; --<API key>: none; --gnome-entry-color: #D3DAE3; --<API key>: #1E2629; --<API key>: #14191B; --<API key>: none; --<API key>: #d6d6d6; --<API key>: #2eb398; --<API key>: #25003e; --<API key>: #D3DAE3; --<API key>: #1b2224; --<API key>: #0e1112; --<API key>: #d6d6d6; --<API key>: #1E2629; --<API key>: #14191B; /* Switch */ --<API key>: #282828; --<API key>: #1b1b1b; --<API key>: linear-gradient(to bottom, #3c3c3c 20%, #353535 90%); --<API key>: #111111; --<API key>: inset 0 1px rgba(255, 255, 255, 0.02), 0 1px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.07); --<API key>: #15539e; --<API key>: #030c17; --<API key>: #030c17; /* Tabs */ --<API key>: #D3DAE3; --<API key>: transparent; --<API key>: #226356; --<API key>: #D3DAE3; --<API key>: transparent; --<API key>: transparent; --<API key>: #2eb398; --<API key>: #2eb398; --<API key>: #abb9b6; --<API key>: transparent; --<API key>: #808690; --<API key>: transparent; --<API key>: var(--<API key>); --<API key>: var(--<API key>); } }
package com.eventyay.organizer.data.user; import io.reactivex.Observable; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.PATCH; import retrofit2.http.Path; public interface UserApi { @PATCH("users/{id}") Observable<User> patchUser(@Path("id") long id, @Body User user); @GET("users/{id}") Observable<User> getOrganizer(@Path("id") long id); }
package de.anycook.einkaufszettel.activities.fragments; import com.google.android.gms.analytics.HitBuilders; import com.google.android.gms.analytics.Tracker; import android.app.Fragment; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.SimpleItemAnimator; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import de.anycook.einkaufszettel.R; import de.anycook.einkaufszettel.adapter.RecipeArrayAdapter; import de.anycook.einkaufszettel.tasks.<API key>; import de.anycook.einkaufszettel.util.<API key>; import java.util.Locale; public class DiscoverFragment extends Fragment { private static final String URL_PATTERN = "https://api.anycook.de/discover/%s?recipeNumber=20&offset=%d"; private Tracker tracker; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final <API key> application = (<API key>) getActivity().getApplication(); tracker = application.getDefaultTracker(); } @Override public View onCreateView(@NonNull final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) { final View view = inflater.inflate(R.layout.discover_list, container, false); final RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view); final RecipeArrayAdapter adapter = new RecipeArrayAdapter(getActivity(), tracker); recyclerView.setAdapter(adapter); RecyclerView.ItemAnimator animator = recyclerView.getItemAnimator(); if (animator instanceof SimpleItemAnimator) { ((SimpleItemAnimator) animator).<API key>(false); } final GridLayoutManager layoutManager = new GridLayoutManager(getActivity(), 2, LinearLayoutManager.VERTICAL, false); recyclerView.setLayoutManager(layoutManager); final SwipeRefreshLayout refreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.refresh); final <API key> scrollListener = new <API key>(adapter, layoutManager, refreshLayout); refreshLayout.<API key>(new SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { adapter.clear(); scrollListener.reset(); loadRecipes(adapter); refreshLayout.setRefreshing(false); } }); refreshLayout.<API key>(R.color.any_green, R.color.accent_color); loadRecipes(adapter); recyclerView.addOnScrollListener(scrollListener); return view; } @Override public void onResume() { super.onResume(); final String discoverType = getArguments().getString("type"); tracker.setScreenName("Discover~" + discoverType); tracker.send(new HitBuilders.ScreenViewBuilder().build()); } private void loadRecipes(final RecipeArrayAdapter adapter) { final int offset = adapter.getItemCount(); final String url = String.format(Locale.getDefault(), URL_PATTERN, getArguments().getString("type"), offset); final <API key> <API key> = new <API key>(adapter, getActivity()); <API key>.execute(url); } private class <API key> extends RecyclerView.OnScrollListener { private final int visibleThreshold = 2; private final RecipeArrayAdapter adapter; private final GridLayoutManager layoutManager; private SwipeRefreshLayout refreshLayout; private boolean loading = false; private int previousTotal = 0; <API key>(final RecipeArrayAdapter adapter, final GridLayoutManager layoutManager, final SwipeRefreshLayout refreshLayout) { this.adapter = adapter; this.layoutManager = layoutManager; this.refreshLayout = refreshLayout; } @Override public void onScrolled(final RecyclerView recyclerView, final int dx, final int dy) { super.onScrolled(recyclerView, dx, dy); int visibleItemCount = recyclerView.getChildCount(); int totalItemCount = layoutManager.getItemCount(); int firstVisibleItem = layoutManager.<API key>(); if (loading) { if (totalItemCount > previousTotal) { refreshLayout.setRefreshing(false); loading = false; previousTotal = totalItemCount; } } if (!loading && (totalItemCount - visibleItemCount) <= (firstVisibleItem + visibleThreshold)) { refreshLayout.setRefreshing(true); loading = true; loadRecipes(adapter); } } void reset() { this.previousTotal = 0; } } }
""" Tests for the dokomo database """ import unittest import uuid from sqlalchemy import cast, Text, Boolean from datetime import timedelta from passlib.hash import bcrypt_sha256 from dokomoforms.db import update_record, delete_record from dokomoforms import db from dokomoforms.db.answer import answer_insert, answer_table, get_answers, \ get_geo_json, \ <API key> from dokomoforms.db.answer_choice import <API key>, \ get_answer_choices, \ <API key> from dokomoforms.db.auth_user import auth_user_table, get_auth_user, \ create_auth_user, \ generate_api_token, set_api_token, verify_api_token, \ <API key>, \ <API key> from dokomoforms.db.question import <API key>, \ question_select, \ question_table, \ <API key>, question_insert, get_questions, \ <API key>, get_required from dokomoforms.db.question_branch import get_branches, \ <API key>, \ <API key> from dokomoforms.db.question_choice import get_choices, \ <API key>, \ <API key>, <API key>, \ <API key> from dokomoforms.db.submission import submission_table, submission_insert, \ submission_select, <API key>, <API key>, \ <API key> from dokomoforms.db.survey import survey_table, survey_insert, survey_select, \ <API key>, display, <API key>, \ <API key>, <API key>, \ <API key>, get_email_address, get_free_title, \ <API key> connection = db.engine.connect() class TestAnswer(unittest.TestCase): def tearDown(self): connection.execute(submission_table.delete()) def testAnswerInsert(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'integer') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] answer_exec = connection.execute(answer_insert( answer=1, question_id=question_id, answer_metadata={}, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, is_type_exception=False, sequence_number=seq, allow_multiple=mul)) answer_id = answer_exec.<API key>[0] self.assertIsNotNone(answer_id) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'integer') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] answer_exec = connection.execute(answer_insert( answer=1, question_id=question_id, answer_metadata=None, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, is_type_exception=False, sequence_number=seq, allow_multiple=mul)) answer_id = answer_exec.<API key>[0] self.assertIsNotNone(answer_id) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'integer') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] answer_exec = connection.execute(answer_insert( answer='one', question_id=question_id, answer_metadata={'type_exception': 'dont_know'}, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, is_type_exception=True, sequence_number=seq, allow_multiple=mul)) answer_id = answer_exec.<API key>[0] self.assertIsNotNone(answer_id) def testInsertLocation(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'location') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute(submission_insert( submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] answer_exec = connection.execute(answer_insert( answer={'lon': 90, 'lat': 0}, answer_metadata={}, question_id=question_id, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, is_type_exception=False, sequence_number=seq, allow_multiple=mul)) answer_id = answer_exec.<API key>[0] self.assertIsNotNone(answer_id) condition = answer_table.c.answer_id == answer_id answer = connection.execute( answer_table.select().where(condition)).first() location = get_geo_json(connection, answer)['coordinates'] self.assertEqual(location, [90, 0]) submission_2_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_2_id = submission_2_exec.<API key>[0] answer_2_exec = connection.execute(answer_insert( answer=None, question_id=question_id, answer_metadata={}, submission_id=submission_2_id, survey_id=survey_id, <API key>=tcn, is_type_exception=False, sequence_number=seq, allow_multiple=mul)) answer_2_id = answer_2_exec.<API key>[0] condition_2 = answer_table.c.answer_id == answer_2_id answer_2 = connection.execute( answer_table.select().where(condition_2)).first() location_2 = get_geo_json(connection, answer_2) self.assertEqual(location_2, {'coordinates': [], 'type': 'MultiPoint'}) def testInsertFacility(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'facility') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] answer_exec = connection.execute(answer_insert( answer={'id': 'revisit ID', 'lon': 90, 'lat': 0}, answer_metadata={'facility_name': 'cool facility', 'facility_sector': 'health'}, question_id=question_id, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, is_type_exception=False, sequence_number=seq, allow_multiple=mul)) answer_id = answer_exec.<API key>[0] self.assertIsNotNone(answer_id) condition = answer_table.c.answer_id == answer_id answer = connection.execute( answer_table.select().where(condition)).first() location = get_geo_json(connection, answer)['coordinates'] self.assertEqual(location, [90, 0]) facility_id = answer.answer_text self.assertEqual(facility_id, 'revisit ID') def testGetAnswers(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'integer') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] connection.execute(answer_insert(answer=1, question_id=question_id, answer_metadata={}, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, is_type_exception=False, sequence_number=seq, allow_multiple=mul)) self.assertEqual(get_answers(connection, submission_id).rowcount, 1) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'integer') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] connection.execute(answer_insert(answer=1, question_id=question_id, answer_metadata={}, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, is_type_exception=False, sequence_number=seq, allow_multiple=mul)) self.assertEqual( <API key>(connection, question_id).rowcount, 1) class TestAnswerChoice(unittest.TestCase): def tearDown(self): connection.execute(submission_table.delete()) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'multiple_choice') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute(submission_insert( submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] choices = get_choices(connection, question_id) the_choice = choices.first() exec_stmt = connection.execute(<API key>( question_choice_id=the_choice.question_choice_id, <API key>={}, question_id=question_id, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, sequence_number=seq, allow_multiple=mul)) answer_id = exec_stmt.<API key>[0] self.assertIsNotNone(answer_id) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'multiple_choice') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute(submission_insert( submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] choices = get_choices(connection, question_id) the_choice = choices.first() exec_stmt = connection.execute(<API key>( question_choice_id=the_choice.question_choice_id, <API key>=None, question_id=question_id, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, sequence_number=seq, allow_multiple=mul)) answer_id = exec_stmt.<API key>[0] self.assertIsNotNone(answer_id) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'multiple_choice') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute(submission_insert( submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] choices = get_choices(connection, question_id) the_choice = choices.first() connection.execute(<API key>( question_choice_id=the_choice.question_choice_id, <API key>={}, question_id=question_id, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, sequence_number=seq, allow_multiple=mul)) self.assertEqual( get_answer_choices(connection, submission_id).rowcount, 1) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'multiple_choice') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple submission_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] choices = get_choices(connection, question_id) the_choice = choices.first() connection.execute(<API key>( question_choice_id=the_choice.question_choice_id, <API key>={}, question_id=question_id, submission_id=submission_id, survey_id=survey_id, <API key>=tcn, sequence_number=seq, allow_multiple=mul)) gacfci = <API key> actual_choices = gacfci(connection, the_choice.question_choice_id) self.assertEqual(actual_choices.rowcount, 1) class TestAuthUser(unittest.TestCase): def tearDown(self): connection.execute(auth_user_table.delete().where( auth_user_table.c.email.in_(('a',)))) def testGetAuthUser(self): result = connection.execute(auth_user_table.insert({'email': 'a'})) user_id = result.<API key>[0] user = get_auth_user(connection, user_id) self.assertEqual(user.email, 'a') def testNoGetAuthUser(self): fake_id = str(uuid.uuid4()) self.assertRaises(<API key>, get_auth_user, connection, fake_id) def <API key>(self): connection.execute(auth_user_table.insert({'email': 'a'})) user = <API key>(connection, 'a') self.assertEqual(user.email, 'a') def testCreateAuthUser(self): connection.execute(create_auth_user(email='a')) self.assertEqual(len(connection.execute( auth_user_table.select().where( auth_user_table.c.email == 'a')).fetchall()), 1) def <API key>(self): token_1 = generate_api_token() self.assertEqual(len(token_1), 32) token_2 = generate_api_token() self.assertNotEqual(token_1, token_2) def testSetAPIToken(self): result = connection.execute(auth_user_table.insert({'email': 'a'})) user_id = result.<API key>[0] <API key>() connection.execute(set_api_token(token=token, auth_user_id=user_id)) user = get_auth_user(connection, user_id) self.assertTrue(bcrypt_sha256.verify(token, user.token)) def testVerifyAPIToken(self): result = connection.execute(auth_user_table.insert({'email': 'a'})) user_id = result.<API key>[0] <API key>() connection.execute(set_api_token(token=token, auth_user_id=user_id)) self.assertTrue( verify_api_token(connection, token=token, email='a')) self.assertFalse( verify_api_token(connection, <API key>(), email='a')) def testVerifyAPI<API key>(self): self.assertFalse( verify_api_token(connection, <API key>(), email='nope')) def testNoDefaultToken(self): connection.execute(auth_user_table.insert({'email': 'a'})) self.assertFalse( verify_api_token(connection, <API key>(), email='a')) def testTokenExpires(self): result = connection.execute(auth_user_table.insert({'email': 'a'})) user_id = result.<API key>[0] <API key>() exp = timedelta(hours=1) connection.execute( set_api_token(token=token, auth_user_id=user_id, expiration=exp)) self.assertTrue( verify_api_token(connection, token=token, email='a')) token2 = generate_api_token() exp2 = timedelta(hours=-1) connection.execute(set_api_token( token=token2, auth_user_id=user_id, expiration=exp2)) self.assertFalse( verify_api_token(connection, token=token2, email='a')) class TestQuestion(unittest.TestCase): def tearDown(self): condition = question_table.c.question_title == 'test insert' connection.execute(question_table.delete().where(condition)) def testQuestionSelect(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id question_id = <API key>( connection, survey_id).first().question_id question = question_select(connection, question_id) self.assertEqual(question.question_id, question_id) def <API key>(self): self.assertRaises(<API key>, question_select, connection, str(uuid.uuid4())) def testGetQuestions(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id questions = get_questions(connection, survey_id, email='test_email') self.assertGreater(questions.rowcount, 0) auth_user_id = <API key>(connection, 'test_email').auth_user_id questions = get_questions(connection, survey_id, auth_user_id=auth_user_id) self.assertGreater(questions.rowcount, 0) self.assertRaises(TypeError, get_questions, connection, survey_id) self.assertRaises(TypeError, get_questions, connection, survey_id, auth_user_id='', email='') def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id questions = <API key>(connection, survey_id) self.assertGreater(questions.rowcount, 0) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id self.assertEqual( <API key>(connection, survey_id), 11) def testQuestionInsert(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id sequence_number = <API key>(connection, survey_id) stmt = question_insert(hint=None, allow_multiple=None, logic={ 'required': False, 'allow_other': False, 'allow_dont_know': False }, sequence_number=sequence_number, question_title='test insert', <API key>='text', <API key>=sequence_number + 1, survey_id=survey_id) question_id = connection.execute(stmt).<API key>[0] condition = question_table.c.question_title == 'test insert' self.assertEqual(connection.execute(question_table.select().where( condition)).first().question_id, question_id) def testNoLogic(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id sequence_number = <API key>(connection, survey_id) with self.assertRaises(TypeError) as exc: question_insert(hint=None, allow_multiple=None, logic=None, sequence_number=sequence_number, <API key>=1, question_title='test insert', <API key>='text', survey_id=survey_id) self.assertEqual(str(exc.exception), 'logic must not be None') def testGetRequired(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'what is life')).first().survey_id reqs = get_required(connection, survey_id) self.assertEqual(reqs.rowcount, 2) class TestQuestionBranch(unittest.TestCase): def tearDown(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id to_question = <API key>( connection, survey_id).fetchall()[-1] connection.execute(<API key>.delete().where( <API key>.c.to_question_id == to_question.question_id)) def testGetBranches(self): q_where = question_table.select().where( question_table.c.<API key> == 'multiple_choice') question_id = connection.execute(q_where).first().question_id branches = get_branches(connection, question_id) self.assertGreater(branches.rowcount, 0) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id to_question = <API key>( connection, survey_id).fetchall()[-1] q_where = question_table.select().where( cast(cast(question_table.c.logic['allow_other'], Text), Boolean)) from_question = connection.execute(q_where).fetchall()[0] choice = get_choices( connection, from_question.question_id).fetchall()[0] from_tcn = from_question.<API key> branch_dict = {'question_choice_id': choice.question_choice_id, 'from_question_id': from_question.question_id, '<API key>': from_tcn, '<API key>': from_question.sequence_number, 'from_allow_multiple': from_question.allow_multiple, 'from_survey_id': survey_id, 'to_question_id': to_question.question_id, 'to_type_constraint': to_question.<API key>, 'to_sequence_number': to_question.sequence_number, 'to_allow_multiple': to_question.allow_multiple, 'to_survey_id': survey_id} branch_exec = connection.execute(<API key>(**branch_dict)) inserted_id = branch_exec.<API key>[0] the_branch = connection.execute(<API key>.select().where( <API key>.c.question_branch_id == inserted_id)).first() self.assertEqual(the_branch.to_question_id, to_question.question_id) class TestQuestionChoice(unittest.TestCase): def tearDown(self): condition = question_table.c.question_title == 'test choice' connection.execute(question_table.delete().where(condition)) def testGetChoices(self): q_where = question_table.select().where( question_table.c.<API key> == 'multiple_choice') question_id = connection.execute(q_where).first().question_id choices = get_choices(connection, question_id) self.assertGreater(choices.rowcount, 0) def <API key>(self): q_where = question_table.select().where( question_table.c.<API key> == 'multiple_choice') question_id = connection.execute(q_where).first().question_id choice_id = get_choices(connection, question_id).first().question_choice_id choice = <API key>(connection, choice_id) self.assertIsNotNone(choice) self.assertRaises(<API key>, <API key>, connection, str(uuid.uuid4())) def <API key>(self): survey_id = connection.execute( survey_table.select().where( survey_table.c.survey_title == 'test_title' )).first().survey_id seq_number = <API key>(connection, survey_id) stmt = question_insert(hint=None, allow_multiple=None, logic={ 'required': False, 'allow_other': False, 'allow_dont_know': False }, sequence_number=seq_number, question_title='test choice', <API key>='multiple_choice', <API key>=-1, survey_id=survey_id) question_id = connection.execute(stmt).<API key>[0] c_stmt = <API key>(question_id=question_id, choice='test choice', choice_number=1, <API key>='multiple_choice', <API key>=seq_number, allow_multiple=False, survey_id=survey_id) choice_id = connection.execute(c_stmt).<API key>[0] cond = <API key>.c.question_id == question_id self.assertEqual(connection.execute( <API key>.select().where(cond) ).first().question_choice_id, choice_id) class TestSubmission(unittest.TestCase): def tearDown(self): connection.execute(submission_table.delete()) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id submission_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] submission = submission_select(connection, submission_id, email='test_email') self.assertEqual(submission_id, submission.submission_id) user_id = connection.execute(auth_user_table.select().where( auth_user_table.c.email == 'test_email')).first().auth_user_id submission2 = submission_select(connection, submission_id, auth_user_id=user_id) self.assertEqual(submission_id, submission2.submission_id) self.assertRaises(TypeError, submission_select, connection, submission_id, auth_user_id='', email='') self.assertRaises(TypeError, submission_select, connection, submission_id) def <API key>(self): self.assertRaises(<API key>, submission_select, connection, str(uuid.uuid4()), email='test_email') def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id for i in range(2): connection.execute(submission_insert( submitter='test_submitter{}'.format(i), submitter_email='anon@anon.org', survey_id=survey_id)) submissions = <API key>( connection, 'test_email', survey_id=survey_id ) self.assertEqual(submissions.rowcount, 2) submissions = <API key>( connection, 'test_email', survey_id=survey_id, submitters=['test_submitter1'] ) self.assertEqual(submissions.rowcount, 1) submissions = <API key>( connection, 'test_email', survey_id=survey_id, order_by='submitter', direction='desc' ) self.assertEqual( submissions.first()['submitter'], 'test_submitter1' ) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id q_where = question_table.select().where( question_table.c.<API key> == 'integer') question = connection.execute(q_where).first() question_id = question.question_id tcn = question.<API key> seq = question.sequence_number mul = question.allow_multiple for i in range(2): submission_exec = connection.execute(submission_insert( submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] connection.execute(answer_insert( answer=i, question_id=question_id, submission_id=submission_id, answer_metadata={}, survey_id=survey_id, <API key>=tcn, is_type_exception=False, sequence_number=seq, allow_multiple=mul)) self.assertEqual( len(<API key>( connection, 'test_email', survey_id=survey_id ).fetchall()), 2) f_result = <API key>( connection, 'test_email', survey_id=survey_id, filters=[ { 'question_id': question_id, 'answer_integer': 1 } ] ).fetchall() self.assertEqual(len(f_result), 1) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id submission_exec = connection.execute(submission_insert( submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] sub_exec = connection.execute(submission_table.select().where( submission_table.c.submission_id == submission_id)) submission = sub_exec.first() self.assertEqual(submission_id, submission.submission_id) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id time = '2015-02-17 04:44:00' submission_exec = connection.execute(submission_insert( submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id, submission_time=time)) submission_id = submission_exec.<API key>[0] sub_exec = connection.execute(submission_table.select().where( submission_table.c.submission_id == submission_id)) submission = sub_exec.first() self.assertEqual(submission_id, submission.submission_id) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id time = '2015-02-17 04:44:00' submission_exec = connection.execute(submission_insert( submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id, save_time=time)) submission_id = submission_exec.<API key>[0] sub_exec = connection.execute( submission_table.select().where( submission_table.c.submission_id == submission_id)) submission = sub_exec.first() self.assertEqual(submission_id, submission.submission_id) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id submission_exec = connection.execute( submission_insert(submitter='test_submitter', submitter_email='anon@anon.org', survey_id=survey_id)) submission_id = submission_exec.<API key>[0] connection.execute(submission_table.select().where( submission_table.c.submission_id == submission_id)) self.assertEqual(<API key>(connection, survey_id), 1) class TestSurvey(unittest.TestCase): def tearDown(self): connection.execute(survey_table.delete().where( survey_table.c.survey_title.like('test insert%'))) connection.execute(auth_user_table.delete().where( auth_user_table.c.email == 'TestSurveyEmail' )) def <API key>(self): user = connection.execute(auth_user_table.select().where( auth_user_table.c.email == 'test_email')).first() condition = survey_table.c.auth_user_id == user.auth_user_id surveys = connection.execute(survey_table.select().where( condition)).fetchall() surveys_by_email = <API key>(connection, user.email) self.assertEqual(len(surveys), len(surveys_by_email)) self.assertEqual(surveys[0].survey_id, surveys_by_email[0].survey_id) def <API key>(self): number_of_surveys = <API key>(connection, 'test_email') self.assertEqual(number_of_surveys, 1) connection.execute(create_auth_user(email='TestSurveyEmail')) zero_surveys = <API key>(connection, 'TestSurveyEmail') self.assertEqual(zero_surveys, 0) def <API key>(self): survey_id = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first().survey_id self.assertEqual( <API key>(connection, survey_id[:10]), survey_id) self.assertRaises(<API key>, <API key>, connection, str(uuid.uuid4())) def testPrefixTooShort(self): self.assertRaises(<API key>, <API key>, connection, 'a') def testDisplay(self): survey = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first() self.assertEqual(survey.survey_title, display(connection, survey.survey_id).survey_title) self.assertRaises(<API key>, display, connection, str(uuid.uuid4())) def testSurveySelect(self): user = connection.execute(auth_user_table.select().where( auth_user_table.c.email == 'test_email')).first() survey = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first() self.assertEqual(survey.survey_title, survey_select(connection, survey.survey_id, auth_user_id=user.auth_user_id) .survey_title) self.assertEqual(survey.survey_title, survey_select(connection, survey.survey_id, email=user.email).survey_title) self.assertRaises(TypeError, survey_select, connection, survey.survey_id, auth_user_id=user.auth_user_id, email=user.email) self.assertRaises(TypeError, survey_select, connection, survey.survey_id) def <API key>(self): self.assertRaises(<API key>, survey_select, connection, str(uuid.uuid4()), email='test_email') def testSurveyInsert(self): auth_user_id = connection.execute(auth_user_table.select().where( auth_user_table.c.email == 'test_email')).first().auth_user_id stmt = survey_insert(survey_title='test insert', survey_metadata=None, auth_user_id=auth_user_id) survey_id = connection.execute(stmt).<API key>[0] condition = survey_table.c.survey_title == 'test insert' get_stmt = connection.execute( survey_table.select().where(condition)).first() self.assertEqual(get_stmt.survey_id, survey_id) def testGetFreeTitle(self): auth_user_id = connection.execute(auth_user_table.select().where( auth_user_table.c.email == 'test_email')).first().auth_user_id self.assertEqual( get_free_title(connection, 'test insert', auth_user_id), 'test insert') stmt = survey_insert(survey_title='test insert', survey_metadata={}, auth_user_id=auth_user_id) connection.execute(stmt) self.assertEqual( get_free_title(connection, 'test insert', auth_user_id), 'test insert(1)') stmt2 = survey_insert(survey_title='test insert(1)', survey_metadata={}, auth_user_id=auth_user_id) connection.execute(stmt2) self.assertEqual( get_free_title(connection, 'test insert', auth_user_id), 'test insert(2)') def testGetEmailAddress(self): survey = connection.execute(survey_table.select().where( survey_table.c.survey_title == 'test_title')).first() self.assertEqual( get_email_address(connection, survey.survey_id), 'test_email') class TestUtils(unittest.TestCase): def tearDown(self): connection.execute(survey_table.delete().where( survey_table.c.survey_title == 'update2')) def testGeometryColumn(self): geom = db.Geometry() self.assertEqual(geom.get_col_spec(), 'GEOMETRY') def <API key>(self): engine = db.engine db.set_testing_engine(None) self.assertIsNone(db.engine) db.set_testing_engine(engine) self.assertIsNotNone(db.engine) def testGetColumn(self): self.assertIs(db.get_column(answer_table, 'answer_integer'), answer_table.c.answer_integer) self.assertRaises(db.NoSuchColumnError, db.get_column, answer_table, 'garbage') def testDeleteRecord(self): auth_user_id = connection.execute(auth_user_table.select().where( auth_user_table.c.email == 'test_email')).first().auth_user_id exec_stmt = connection.execute(survey_insert( survey_title='delete me', survey_metadata={}, auth_user_id=auth_user_id)) survey_id = exec_stmt.<API key>[0] connection.execute(delete_record(survey_table, 'survey_id', survey_id)) condition = survey_table.c.survey_id == survey_id self.assertEqual( connection.execute( survey_table.select().where(condition)).rowcount, 0) def testUpdateRecord(self): auth_user_id = connection.execute(auth_user_table.select().where( auth_user_table.c.email == 'test_email')).first().auth_user_id exec_stmt = connection.execute(survey_insert( survey_title='update me', survey_metadata={}, auth_user_id=auth_user_id)) survey_id = exec_stmt.<API key>[0] connection.execute(update_record(survey_table, 'survey_id', survey_id, survey_title='updated')) condition = survey_table.c.survey_id == survey_id new_record = connection.execute( survey_table.select().where(condition)).first() self.assertEqual(new_record.survey_title, 'updated') self.assertNotEqual(new_record.<API key>, new_record.created_on) connection.execute(update_record( survey_table, 'survey_id', survey_id, values_dict={'survey_title': 'update2'})) new_record = connection.execute(survey_table.select().where( condition)).first() self.assertEqual(new_record.survey_title, 'update2') self.assertRaises(TypeError, update_record, survey_table, 'survey_id', survey_id, values_dict={'survey_title': 'updated2'}, survey_title='updated3') self.assertRaises(TypeError, update_record, survey_table, 'survey_id', survey_id) connection.execute(delete_record(survey_table, 'survey_id', survey_id)) if __name__ == '__main__': unittest.main()
#include<stdio.h> #include<stdlib.h> #include<math.h> bool IsPrime(int n){ int sq = sqrt(n); for(int i=2;i<=sq;i++){ if(n%i==0) return false; } return true; } int main(){ char word[22]; int sum; while(gets(word)){ sum = 0; for(int i=0;word[i]!='\0';i++){ if(word[i]>='A' && word[i]<='Z') sum+=word[i]%64+26; else if(word[i]>='a' && word[i]<='z') sum+=(word[i]%96); } if(IsPrime(sum)) printf("It is a prime word.\n"); else printf("It is not a prime word.\n"); } return 0; }
package me.gahoi.personalfinance.metadata; import static java.lang.annotation.ElementType.CONSTRUCTOR; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.LOCAL_VARIABLE; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PACKAGE; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.ElementType.TYPE; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Documented @Retention(RetentionPolicy.RUNTIME) @Target(value = { CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE }) public @interface InflationProtected { }
package com.ghb.coltpath.core.validators; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Validation annotation to validate that 2 fields have the same value. * An array of fields and their matching confirmation fields can be supplied. * <p/> * Example, compare 1 pair of fields: * * @FieldMatch(first = "password", second = "confirmPassword", message = "The password fields must match") * <p/> */ @Target({TYPE, ANNOTATION_TYPE}) @Retention(RUNTIME) @Constraint(validatedBy = FieldMatchValidator.class) @Documented public @interface FieldMatch { String message(); Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; /** * @return The first field */ String first(); /** * @return The second field */ String second(); }
'use strict'; const Mongoose = require('mongoose'); const ItemArmor = new Mongoose.Schema({ inject: { type: Number, default: 0, required: true }, kick: { type: Number, default: 0, required: true }, cut: { type: Number, default: 0, required: true }, magic: { type: Number, default: 0, required: true } }, { id: false, _id: false, versionKey: false }); module.exports = Mongoose.model('ItemArmor', ItemArmor);
<?php include_once(PHPREPORT_ROOT . '/model/facade/action/Action.php'); include_once(PHPREPORT_ROOT . '/model/dao/DAOFactory.php'); include_once(PHPREPORT_ROOT . '/model/vo/ProjectVO.php'); class CreateProjectAction extends Action{ /** The Project * * This variable contains the Project we want to create. * * @var ProjectVO */ private $project; /** CreateProjectAction constructor. * * This is just the constructor of this action. * * @param ProjectVO $project the Project value object we want to create. */ public function __construct(ProjectVO $project) { $this->project=$project; $this->preActionParameter="<API key>"; $this->postActionParameter="<API key>"; } /** Specific code execute. * * This is the function that contains the code that creates the new Project, storing it persistently. * * @return int it just indicates if there was any error (<i>-1</i>) or not (<i>0</i>). * @throws {@link <API key>} */ protected function doExecute() { $dao = DAOFactory::getProjectDAO(); if ($dao->create($this->project)!=1) { return -1; } return 0; } } /*//Test code $projectvo = new ProjectVO(); $projectvo->setInit(date_create("1999-12-31")); $projectvo->setAreaId(1); $projectvo->setEnd(date_create("2999-12-31")); $projectvo->setDescription("Good news, everyone!"); $projectvo->setActivation(TRUE); $projectvo->setSchedType("Good news, everyone!"); $projectvo->setType("I've taught the toaster to feel love!"); $projectvo->setMovedHours(3.14); $projectvo->setInvoice(5.55); $projectvo->setEstHours(3.25); $action= new CreateProjectAction($projectvo); var_dump($action); $action->execute(); var_dump($projectvo); */
<?php abstract class Model_Base { /* Non-configurable constants go here */ const MODEL_PATH = 'model'; const CONTROLLER_PATH = 'controller'; const VIEW_PATH = 'view'; protected function __construct() { } /* Implement Singleton pattern for all classes */ final public static function getInstance() { static $instances = array(); $calledClass = get_called_class(); if (!isset($instances[$calledClass])) { $instances[$calledClass] = new $calledClass(); } return $instances[$calledClass]; } }
package com.shatteredpixel.<API key>.windows; import com.shatteredpixel.<API key>.SPDAction; import com.shatteredpixel.<API key>.<API key>; import com.shatteredpixel.<API key>.messages.Messages; import com.shatteredpixel.<API key>.scenes.PixelScene; import com.shatteredpixel.<API key>.sprites.CharSprite; import com.shatteredpixel.<API key>.ui.RedButton; import com.shatteredpixel.<API key>.ui.RenderedTextBlock; import com.shatteredpixel.<API key>.ui.ScrollPane; import com.shatteredpixel.<API key>.ui.Window; import com.watabou.input.GameAction; import com.watabou.input.KeyBindings; import com.watabou.input.KeyEvent; import com.watabou.noosa.ColorBlock; import com.watabou.noosa.ui.Component; import java.util.ArrayList; import java.util.LinkedHashMap; public class WndKeyBindings extends Window { private static final int WIDTH = 120; private static final int BTN_HEIGHT = 16; private static final int COL1_CENTER = WIDTH/4; private static final int COL2_CENTER = 5*WIDTH/8; private static final int COL3_CENTER = 7*WIDTH/8; private Component bindingsList; private ArrayList<BindingItem> listItems = new ArrayList<>(); private LinkedHashMap<Integer, GameAction> changedBindings; public WndKeyBindings() { changedBindings = KeyBindings.getAllBindings(); RenderedTextBlock ttlAction = PixelScene.renderTextBlock(Messages.get(this, "ttl_action"), 9); ttlAction.setPos( COL1_CENTER - ttlAction.width()/2, (BTN_HEIGHT - ttlAction.height())/2); add(ttlAction); ColorBlock ttlSep1 = new ColorBlock(1, BTN_HEIGHT, 0xFF222222); ttlSep1.x = WIDTH/2; add(ttlSep1); RenderedTextBlock ttlKey1 = PixelScene.renderTextBlock(Messages.get(this, "ttl_key1"), 9); ttlKey1.setPos(COL2_CENTER - ttlKey1.width()/2, (BTN_HEIGHT - ttlKey1.height())/2); add(ttlKey1); ColorBlock ttlSep2 = new ColorBlock(1, BTN_HEIGHT, 0xFF222222); ttlSep2.x = 3*WIDTH/4; add(ttlSep2); RenderedTextBlock ttlKey2 = PixelScene.renderTextBlock(Messages.get(this, "ttl_key2"), 9); ttlKey2.setPos(COL3_CENTER - ttlKey2.width()/2, (BTN_HEIGHT - ttlKey2.height())/2); add(ttlKey2); ColorBlock ttlSep3 = new ColorBlock(WIDTH, 1, 0xFF222222); ttlSep3.y = BTN_HEIGHT; add(ttlSep3); bindingsList = new Component(); ScrollPane scrollingList = new ScrollPane(bindingsList){ @Override public void onClick(float x, float y) { for (BindingItem i : listItems) { if (i.onClick( x, y )) { break; } } } }; add(scrollingList); int y = 0; for (GameAction action : GameAction.allActions()){ //start at 1. No bindings for NONE if (action.code() < 1) continue; BindingItem item = new BindingItem(action); item.setRect(0, y, WIDTH, BindingItem.HEIGHT); bindingsList.add(item); listItems.add(item); y += item.height(); } bindingsList.setSize(WIDTH, y+1); resize(WIDTH, Math.min(BTN_HEIGHT *3 + 3 + BindingItem.HEIGHT*listItems.size(), PixelScene.uiCamera.height-20)); RedButton btnDefaults = new RedButton(Messages.get(this, "default"), 9){ @Override protected void onClick() { changedBindings = SPDAction.getDefaults(); for (BindingItem i : listItems){ int key1 = 0; int key2 = 0; for( int k : changedBindings.keySet()){ if (changedBindings.get(k) == i.gameAction){ if (key1 == 0) key1 = k; else key2 = k; } } i.updateBindings(key1, key2); } } }; btnDefaults.setRect(0, height - BTN_HEIGHT *2 -1, WIDTH, BTN_HEIGHT); add(btnDefaults); RedButton btnConfirm = new RedButton(Messages.get(this, "confirm"), 9){ @Override protected void onClick() { KeyBindings.setAllBindings(changedBindings); SPDAction.saveBindings(); hide(); } }; btnConfirm.setRect(0, height - BTN_HEIGHT, WIDTH/2, BTN_HEIGHT); add(btnConfirm); RedButton btnCancel = new RedButton(Messages.get(this, "cancel"), 9){ @Override protected void onClick() { hide(); //close and don't save } }; btnCancel.setRect(WIDTH/2 + 1, height - BTN_HEIGHT, WIDTH/2 - 1, BTN_HEIGHT); add(btnCancel); scrollingList.setRect(0, BTN_HEIGHT +1, WIDTH, btnDefaults.top()- BTN_HEIGHT - 1); } @Override public void onBackPressed() { //do nothing, avoids accidental back presses which would lose progress. } private class BindingItem extends Component { private static final int HEIGHT = 12; private static final int CHANGED = TITLE_COLOR; private static final int DEFAULT = 0xFFFFFF; private static final int UNBOUND = 0x888888; private static final int UNBOUND_CHANGED = 0x888822; private GameAction gameAction; private int key1; private int key2; private int origKey1; private int origKey2; private RenderedTextBlock actionName; private RenderedTextBlock key1Name; private RenderedTextBlock key2Name; private ColorBlock sep1; private ColorBlock sep2; private ColorBlock sep3; public BindingItem( GameAction action ){ gameAction = action; actionName = PixelScene.renderTextBlock(Messages.get(WndKeyBindings.class, action.name()), 6 ); actionName.setHightlighting(false); add(actionName); ArrayList<Integer> keys = KeyBindings.<API key>(action); origKey1 = key1 = keys.isEmpty() ? 0 : keys.remove(0); origKey2 = key2 = keys.isEmpty() ? 0 : keys.remove(0); key1Name = PixelScene.renderTextBlock( KeyBindings.getKeyName(key1), 6 ); if (key1 == 0) key1Name.hardlight(UNBOUND); add(key1Name); key2Name = PixelScene.renderTextBlock( KeyBindings.getKeyName(key2), 6 ); if (key2 == 0) key2Name.hardlight(UNBOUND); add(key2Name); sep1 = new ColorBlock(1, 1, 0xFF222222); add(sep1); sep2 = new ColorBlock(1, 1, 0xFF222222); add(sep2); sep3 = new ColorBlock(1, 1, 0xFF222222); add(sep3); } public void updateBindings(int first, int second){ if (first == 0){ key1 = second; key2 = first; } else { key1 = first; key2 = second; } key1Name.text(KeyBindings.getKeyName(key1)); if (key1 != origKey1) key1Name.hardlight( key1 == 0 ? UNBOUND_CHANGED : CHANGED); else key1Name.hardlight( key1 == 0 ? UNBOUND : DEFAULT); key2Name.text(KeyBindings.getKeyName(key2)); if (key2 != origKey2) key2Name.hardlight( key2 == 0 ? UNBOUND_CHANGED : CHANGED); else key2Name.hardlight( key2 == 0 ? UNBOUND : DEFAULT); layout(); } @Override protected void layout() { super.layout(); actionName.setPos( x, y + (height() - actionName.height())/2); key1Name.setPos(x + width()/2 + 2, y + (height() - key1Name.height())/2); key2Name.setPos(x + 3*width()/4 + 2, y + (height() - key2Name.height())/2); sep1.size(width, 1); sep1.x = x; sep1.y = bottom(); sep2.size(1, height); sep2.x = key1Name.left()-2; sep2.y = y; sep3.size(1, height); sep3.x = key2Name.left()-2; sep3.y = y; } private boolean onClick( float x, float y ){ if (inside(x, y)){ //assigning second key if (x >= this.x + 3*width()/4 && key1 != 0) { <API key>.scene().addToFront( new WndChangeBinding(gameAction, this, false, key2, key1)); //assigning first key } else if (x >= this.x + width()/2){ <API key>.scene().addToFront( new WndChangeBinding(gameAction, this, true, key1, key2)); } return true; } else { return false; } } } private class WndChangeBinding extends Window { private int curKeyCode; private int otherBoundKey; private int changedKeyCode = -1; private BindingItem changedAction; private RenderedTextBlock changedKey; private RenderedTextBlock warnErr; private RedButton btnConfirm; public WndChangeBinding(GameAction action, BindingItem listItem, boolean firstKey, int curKeyCode, int otherBoundKey ){ this.curKeyCode = curKeyCode; this.otherBoundKey = otherBoundKey; RenderedTextBlock desc = PixelScene.renderTextBlock( Messages.get(this, firstKey ? "desc_first" : "desc_second", Messages.get(WndKeyBindings.class, action.name()), KeyBindings.getKeyName(curKeyCode)), 6 ); desc.maxWidth(WIDTH); desc.setRect(0, 0, WIDTH, desc.height()); add(desc); RenderedTextBlock curBind; curBind = PixelScene.renderTextBlock(Messages.get(this, "desc_current", KeyBindings.getKeyName(curKeyCode)), 6); curBind.maxWidth(WIDTH); curBind.setRect((WIDTH - curBind.width())/2, desc.bottom()+6, WIDTH, curBind.height()); add(curBind); changedKey = PixelScene.renderTextBlock(6); changedKey.maxWidth(WIDTH); changedKey.setRect(0, curBind.bottom()+2, WIDTH, changedKey.height()); add(changedKey); warnErr = PixelScene.renderTextBlock(6); warnErr.maxWidth(WIDTH); warnErr.setRect(0, changedKey.bottom() + 10, WIDTH, warnErr.height()); add(warnErr); RedButton btnUnbind = new RedButton(Messages.get(this, "unbind"), 9){ @Override protected void onClick() { onSignal(new KeyEvent(0, true)); } }; btnUnbind.setRect(0, warnErr.bottom() + 6, WIDTH, BTN_HEIGHT); add(btnUnbind); btnConfirm = new RedButton(Messages.get(this, "confirm"), 9){ @Override protected void onClick() { if (changedKeyCode != -1){ changedBindings.remove(changedKeyCode); changedBindings.remove(listItem.key1); changedBindings.remove(listItem.key2); if (firstKey){ if (changedKeyCode != 0) changedBindings.put(changedKeyCode, action); if (listItem.key2 != 0) changedBindings.put(listItem.key2, action); listItem.updateBindings(changedKeyCode, listItem.key2); } else { if (listItem.key1 != 0) changedBindings.put(listItem.key1, action); if (changedKeyCode != 0) changedBindings.put(changedKeyCode, action); listItem.updateBindings(listItem.key1, changedKeyCode); } if (changedAction != null){ if (changedAction.key1 != changedKeyCode){ changedAction.updateBindings(changedAction.key1, 0); } else if (changedAction.key2 != changedKeyCode){ changedAction.updateBindings(changedAction.key2, 0); } else { changedAction.updateBindings(0, 0); } } } hide(); } }; btnConfirm.setRect(0, btnUnbind.bottom()+1, WIDTH/2, BTN_HEIGHT); btnConfirm.enable(false); add(btnConfirm); RedButton btnCancel = new RedButton(Messages.get(this, "cancel"), 9){ @Override protected void onClick() { hide(); } }; btnCancel.setRect(btnConfirm.right()+1, btnUnbind.bottom()+1, WIDTH/2-1, BTN_HEIGHT); add(btnCancel); resize(WIDTH, (int)btnCancel.bottom()); KeyBindings.acceptUnbound = true; } @Override public boolean onSignal(KeyEvent event) { if (event.pressed){ changedKey.text(Messages.get(this, "changed_bind", KeyBindings.getKeyName(event.code))); changedKey.setPos((WIDTH - changedKey.width())/2, changedKey.top()); changedKeyCode = event.code; changedAction = null; if (event.code != 0 && (event.code == curKeyCode || event.code == otherBoundKey)){ warnErr.text(Messages.get(this, "error")); warnErr.hardlight(CharSprite.NEGATIVE); btnConfirm.enable(false); } else if (event.code != 0 && changedBindings.get(changedKeyCode) != null){ for (BindingItem i : listItems) { if (i.gameAction == changedBindings.get(changedKeyCode)) { changedAction = i; break; } } warnErr.text(Messages.get(this, "warning", Messages.get(WndKeyBindings.class, changedBindings.get(changedKeyCode).name() ))); warnErr.hardlight(CharSprite.WARNING); btnConfirm.enable(true); } else { warnErr.text(" "); btnConfirm.enable(true); } } return true; } @Override public void destroy() { super.destroy(); KeyBindings.acceptUnbound = false; } } }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <title>Uses of Package org.apache.poi.util (POI API Documentation)</title> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><! if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Package org.apache.poi.util (POI API Documentation)"; } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar_top"> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li class="navBarCell1Rev">Use</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>PREV</li> <li>NEXT</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/apache/poi/util/package-use.html" target="_top">FRAMES</a></li> <li><a href="package-use.html" target="_top">NO FRAMES</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_top"> </a></div> <div class="header"> <h1 title="Uses of Package org.apache.poi.util" class="title">Uses of Package<br>org.apache.poi.util</h1> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi">org.apache.poi</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.common.usermodel">org.apache.poi.common.usermodel</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.ddf">org.apache.poi.ddf</a></td> <td class="colLast"> <div class="block">This package contains classes for decoding the Microsoft Office Drawing format otherwise known as escher henceforth known in POI as the Dreadful Drawing Format.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.extractor">org.apache.poi.extractor</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hdgf">org.apache.poi.hdgf</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hemf.extractor">org.apache.poi.hemf.extractor</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hemf.hemfplus.record">org.apache.poi.hemf.hemfplus.record</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hemf.record">org.apache.poi.hemf.record</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hmef">org.apache.poi.hmef</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hpsf">org.apache.poi.hpsf</a></td> <td class="colLast"> <div class="block"><div></div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hslf.model">org.apache.poi.hslf.model</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hslf.model.textproperties">org.apache.poi.hslf.model.textproperties</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hslf.record">org.apache.poi.hslf.record</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hslf.usermodel">org.apache.poi.hslf.usermodel</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hsmf.extractor">org.apache.poi.hsmf.extractor</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.converter">org.apache.poi.hssf.converter</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.dev">org.apache.poi.hssf.dev</a></td> <td class="colLast"> <div class="block">DEV package serves two purposes.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.model">org.apache.poi.hssf.model</a></td> <td class="colLast"> <div class="block">Provides low level API structures for reading, writing, modifying XLS files.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.record">org.apache.poi.hssf.record</a></td> <td class="colLast"> <div class="block">Record package contains class representations for XLS binary strutures.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.record.cf">org.apache.poi.hssf.record.cf</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.record.chart">org.apache.poi.hssf.record.chart</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.record.common">org.apache.poi.hssf.record.common</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.record.cont">org.apache.poi.hssf.record.cont</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.record.crypto">org.apache.poi.hssf.record.crypto</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.record.pivottable">org.apache.poi.hssf.record.pivottable</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.usermodel">org.apache.poi.hssf.usermodel</a></td> <td class="colLast"> <div class="block">usermodel package maps HSSF low level strutures to familiar workbook/sheet model</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.usermodel.helpers">org.apache.poi.hssf.usermodel.helpers</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hssf.util">org.apache.poi.hssf.util</a></td> <td class="colLast"> <div class="block">util package contains tools needed for writing HSSF files that are not necesarily "real" HSSF concepts.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hwmf.record">org.apache.poi.hwmf.record</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hwpf">org.apache.poi.hwpf</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hwpf.converter">org.apache.poi.hwpf.converter</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hwpf.dev">org.apache.poi.hwpf.dev</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hwpf.model">org.apache.poi.hwpf.model</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hwpf.model.io">org.apache.poi.hwpf.model.io</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hwpf.model.types">org.apache.poi.hwpf.model.types</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.hwpf.sprm">org.apache.poi.hwpf.sprm</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.hwpf.usermodel">org.apache.poi.hwpf.usermodel</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.openxml4j.opc">org.apache.poi.openxml4j.opc</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.poifs.crypt">org.apache.poi.poifs.crypt</a></td> <td class="colLast"> <div class="block">Implementation of the <a href="http://msdn.microsoft.com/en-us/library/dd952186(v=office.12).aspx">ECMA-376 Document Encryption</a></div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.poifs.crypt.agile">org.apache.poi.poifs.crypt.agile</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.poifs.crypt.binaryrc4">org.apache.poi.poifs.crypt.binaryrc4</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.poifs.crypt.cryptoapi">org.apache.poi.poifs.crypt.cryptoapi</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.poifs.crypt.standard">org.apache.poi.poifs.crypt.standard</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.poifs.crypt.temp">org.apache.poi.poifs.crypt.temp</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.poifs.crypt.xor">org.apache.poi.poifs.crypt.xor</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.poifs.filesystem">org.apache.poi.poifs.filesystem</a></td> <td class="colLast"> <div class="block">filesystem package maps OLE 2 Compound document files to a more familiar filesystem interface.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.poifs.storage">org.apache.poi.poifs.storage</a></td> <td class="colLast"> <div class="block">storage package contains low level binary structures for POIFS's implementation of the OLE 2 Compound Document Format.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.sl.draw">org.apache.poi.sl.draw</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.sl.image">org.apache.poi.sl.image</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.sl.usermodel">org.apache.poi.sl.usermodel</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.ss.extractor">org.apache.poi.ss.extractor</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.ss.format">org.apache.poi.ss.format</a></td> <td class="colLast"> <div class="block">This package contains classes that implement cell formatting</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.ss.formula">org.apache.poi.ss.formula</a></td> <td class="colLast"> <div class="block">This package contains common internal POI code for manipulating formulas.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.ss.formula.atp">org.apache.poi.ss.formula.atp</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.ss.formula.constant">org.apache.poi.ss.formula.constant</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.ss.formula.ptg">org.apache.poi.ss.formula.ptg</a></td> <td class="colLast"> <div class="block">formula package contains binary PTG structures used in Formulas</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.ss.formula.udf">org.apache.poi.ss.formula.udf</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.ss.usermodel">org.apache.poi.ss.usermodel</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.ss.usermodel.charts">org.apache.poi.ss.usermodel.charts</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.ss.usermodel.helpers">org.apache.poi.ss.usermodel.helpers</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.ss.util">org.apache.poi.ss.util</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.util">org.apache.poi.util</a></td> <td class="colLast"> <div class="block">Top-level util package are classes that are useful throughout the project.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.xdgf.usermodel">org.apache.poi.xdgf.usermodel</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.xdgf.usermodel.section">org.apache.poi.xdgf.usermodel.section</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.xdgf.usermodel.section.geometry">org.apache.poi.xdgf.usermodel.section.geometry</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.xslf.model">org.apache.poi.xslf.model</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.xslf.usermodel">org.apache.poi.xslf.usermodel</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.xssf.model">org.apache.poi.xssf.model</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.xssf.streaming">org.apache.poi.xssf.streaming</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.xssf.usermodel">org.apache.poi.xssf.usermodel</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.xssf.usermodel.charts">org.apache.poi.xssf.usermodel.charts</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.xssf.usermodel.extensions">org.apache.poi.xssf.usermodel.extensions</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.xssf.usermodel.helpers">org.apache.poi.xssf.usermodel.helpers</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.apache.poi.xwpf.model">org.apache.poi.xwpf.model</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.poi.xwpf.usermodel">org.apache.poi.xwpf.usermodel</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/package-summary.html">org.apache.poi</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.common.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/common/usermodel/package-summary.html">org.apache.poi.common.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.common.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.common.usermodel">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ddf"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ddf/package-summary.html">org.apache.poi.ddf</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.ddf">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndian.<API key>.html#org.apache.poi.ddf">LittleEndian.<API key></a> <div class="block">Exception to handle buffer underruns</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.ddf">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.extractor"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/extractor/package-summary.html">org.apache.poi.extractor</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.extractor">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hdgf"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hdgf/package-summary.html">org.apache.poi.hdgf</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LZWDecompresser.html#org.apache.poi.hdgf">LZWDecompresser</a> <div class="block">This class provides common functionality for the various LZW implementations in the different file formats.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hemf.extractor"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hemf/extractor/package-summary.html">org.apache.poi.hemf.extractor</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hemf.extractor">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hemf.hemfplus.record"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hemf/hemfplus/record/package-summary.html">org.apache.poi.hemf.hemfplus.record</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hemf.hemfplus.record">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hemf.record"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hemf/record/package-summary.html">org.apache.poi.hemf.record</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hemf.record">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.hemf.record"><API key></a> <div class="block">Wraps an <code>InputStream</code> providing <a href="../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util"><code>LittleEndianInput</code></a><p/> This class does not buffer any input, so the stream read position maintained by this class is consistent with that of the inner stream.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hmef"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hmef/package-summary.html">org.apache.poi.hmef</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LZWDecompresser.html#org.apache.poi.hmef">LZWDecompresser</a> <div class="block">This class provides common functionality for the various LZW implementations in the different file formats.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hpsf"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hpsf/package-summary.html">org.apache.poi.hpsf</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hpsf">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.hpsf">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/SuppressForbidden.html#org.apache.poi.hpsf">SuppressForbidden</a> <div class="block">Marking class for elements to be ignored by the forbidden apis check</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hslf.model"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hslf/model/package-summary.html">org.apache.poi.hslf.model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hslf.model">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.hslf.model">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/SuppressForbidden.html#org.apache.poi.hslf.model">SuppressForbidden</a> <div class="block">Marking class for elements to be ignored by the forbidden apis check</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hslf.model.textproperties"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hslf/model/textproperties/package-summary.html">org.apache.poi.hslf.model.textproperties</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/POILogger.html#org.apache.poi.hslf.model.textproperties">POILogger</a> <div class="block">A logger interface that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hslf.record"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hslf/record/package-summary.html">org.apache.poi.hslf.record</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.hslf.record"><API key></a> <div class="block">Adapts a plain byte array to <a href="../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util"><code>LittleEndianInput</code></a></div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/POILogger.html#org.apache.poi.hslf.record">POILogger</a> <div class="block">A logger interface that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hslf.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hslf/usermodel/package-summary.html">org.apache.poi.hslf.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.hslf.usermodel">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hslf.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/POILogger.html#org.apache.poi.hslf.usermodel">POILogger</a> <div class="block">A logger interface that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.hslf.usermodel">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hsmf.extractor"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hsmf/extractor/package-summary.html">org.apache.poi.hsmf.extractor</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/StringUtil.StringsIterator.html#org.apache.poi.hsmf.extractor">StringUtil.StringsIterator</a> <div class="block">An Iterator over an array of Strings.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.converter"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/converter/package-summary.html">org.apache.poi.hssf.converter</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.hssf.converter">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.dev"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/dev/package-summary.html">org.apache.poi.hssf.dev</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.hssf.dev"><API key></a> <div class="block">A common exception thrown by our binary format parsers (especially HSSF and DDF), when they hit invalid format or data when processing a record.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.model"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/model/package-summary.html">org.apache.poi.hssf.model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hssf.model">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.hssf.model"><API key></a> <div class="block">A common exception thrown by our binary format parsers (especially HSSF and DDF), when they hit invalid format or data when processing a record.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.hssf.model">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.record"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/record/package-summary.html">org.apache.poi.hssf.record</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hssf.record">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.hssf.record">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.hssf.record">LittleEndianOutput</a>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/POILogger.html#org.apache.poi.hssf.record">POILogger</a> <div class="block">A logger interface that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.hssf.record"><API key></a> <div class="block">A common exception thrown by our binary format parsers (especially HSSF and DDF), when they hit invalid format or data when processing a record.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.record.cf"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/record/cf/package-summary.html">org.apache.poi.hssf.record.cf</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.hssf.record.cf">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.hssf.record.cf">LittleEndianOutput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.record.chart"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/record/chart/package-summary.html">org.apache.poi.hssf.record.chart</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.hssf.record.chart">LittleEndianOutput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.record.common"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/record/common/package-summary.html">org.apache.poi.hssf.record.common</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.hssf.record.common">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.hssf.record.common">LittleEndianOutput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.record.cont"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/record/cont/package-summary.html">org.apache.poi.hssf.record.cont</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.hssf.record.cont">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.hssf.record.cont">LittleEndianOutput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.record.crypto"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/record/crypto/package-summary.html">org.apache.poi.hssf.record.crypto</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.hssf.record.crypto">LittleEndianInput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.record.pivottable"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/record/pivottable/package-summary.html">org.apache.poi.hssf.record.pivottable</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.hssf.record.pivottable">LittleEndianOutput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/usermodel/package-summary.html">org.apache.poi.hssf.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hssf.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.hssf.usermodel">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.hssf.usermodel">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/SuppressForbidden.html#org.apache.poi.hssf.usermodel">SuppressForbidden</a> <div class="block">Marking class for elements to be ignored by the forbidden apis check</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.usermodel.helpers"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/usermodel/helpers/package-summary.html">org.apache.poi.hssf.usermodel.helpers</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hssf.usermodel.helpers">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.hssf.usermodel.helpers">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hssf.util"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hssf/util/package-summary.html">org.apache.poi.hssf.util</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.hssf.util">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.hssf.util">LittleEndianOutput</a>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.hssf.util">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hwmf.record"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hwmf/record/package-summary.html">org.apache.poi.hwmf.record</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.hwmf.record"><API key></a> <div class="block">Wraps an <code>InputStream</code> providing <a href="../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util"><code>LittleEndianInput</code></a><p/> This class does not buffer any input, so the stream read position maintained by this class is consistent with that of the inner stream.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hwpf"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hwpf/package-summary.html">org.apache.poi.hwpf</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hwpf">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hwpf.converter"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hwpf/converter/package-summary.html">org.apache.poi.hwpf.converter</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.hwpf.converter">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hwpf.converter">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hwpf.dev"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hwpf/dev/package-summary.html">org.apache.poi.hwpf.dev</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.hwpf.dev">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hwpf.dev">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hwpf.model"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hwpf/model/package-summary.html">org.apache.poi.hwpf.model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hwpf.model">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/POILogger.html#org.apache.poi.hwpf.model">POILogger</a> <div class="block">A logger interface that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hwpf.model.io"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hwpf/model/io/package-summary.html">org.apache.poi.hwpf.model.io</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hwpf.model.io">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hwpf.model.types"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hwpf/model/types/package-summary.html">org.apache.poi.hwpf.model.types</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hwpf.model.types">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hwpf.sprm"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hwpf/sprm/package-summary.html">org.apache.poi.hwpf.sprm</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hwpf.sprm">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.hwpf.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/hwpf/usermodel/package-summary.html">org.apache.poi.hwpf.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.hwpf.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.openxml4j.opc"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/openxml4j/opc/package-summary.html">org.apache.poi.openxml4j.opc</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.openxml4j.opc">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.poifs.crypt"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/poifs/crypt/package-summary.html">org.apache.poi.poifs.crypt</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/BitField.html#org.apache.poi.poifs.crypt">BitField</a> <div class="block">Manage operations dealing with bit-mapped fields.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.poifs.crypt">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.poifs.crypt"><API key></a> <div class="block">Adapts a plain byte array to <a href="../../../../org/apache/poi/util/LittleEndianOutput.html" title="interface in org.apache.poi.util"><code>LittleEndianOutput</code></a></div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.poifs.crypt">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.poifs.crypt"><API key></a> <div class="block">Wraps an <code>InputStream</code> providing <a href="../../../../org/apache/poi/util/LittleEndianInput.html" title="interface in org.apache.poi.util"><code>LittleEndianInput</code></a><p/> This class does not buffer any input, so the stream read position maintained by this class is consistent with that of the inner stream.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.poifs.crypt">LittleEndianOutput</a>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.poifs.crypt">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.poifs.crypt.agile"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/poifs/crypt/agile/package-summary.html">org.apache.poi.poifs.crypt.agile</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.poifs.crypt.agile"><API key></a> <div class="block">Adapts a plain byte array to <a href="../../../../org/apache/poi/util/LittleEndianOutput.html" title="interface in org.apache.poi.util"><code>LittleEndianOutput</code></a></div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.poifs.crypt.agile">LittleEndianInput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.poifs.crypt.binaryrc4"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/poifs/crypt/binaryrc4/package-summary.html">org.apache.poi.poifs.crypt.binaryrc4</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.poifs.crypt.binaryrc4"><API key></a> <div class="block">Adapts a plain byte array to <a href="../../../../org/apache/poi/util/LittleEndianOutput.html" title="interface in org.apache.poi.util"><code>LittleEndianOutput</code></a></div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.poifs.crypt.binaryrc4">LittleEndianInput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.poifs.crypt.cryptoapi"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/poifs/crypt/cryptoapi/package-summary.html">org.apache.poi.poifs.crypt.cryptoapi</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.poifs.crypt.cryptoapi">LittleEndianInput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.poifs.crypt.standard"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/poifs/crypt/standard/package-summary.html">org.apache.poi.poifs.crypt.standard</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.poifs.crypt.standard"><API key></a> <div class="block">Adapts a plain byte array to <a href="../../../../org/apache/poi/util/LittleEndianOutput.html" title="interface in org.apache.poi.util"><code>LittleEndianOutput</code></a></div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.poifs.crypt.standard">LittleEndianInput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.poifs.crypt.temp"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/poifs/crypt/temp/package-summary.html">org.apache.poi.poifs.crypt.temp</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.poifs.crypt.temp">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.poifs.crypt.xor"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/poifs/crypt/xor/package-summary.html">org.apache.poi.poifs.crypt.xor</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.poifs.crypt.xor"><API key></a> <div class="block">Adapts a plain byte array to <a href="../../../../org/apache/poi/util/LittleEndianOutput.html" title="interface in org.apache.poi.util"><code>LittleEndianOutput</code></a></div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.poifs.crypt.xor">LittleEndianInput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.poifs.filesystem"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/poifs/filesystem/package-summary.html">org.apache.poi.poifs.filesystem</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.poifs.filesystem">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.poifs.filesystem">LittleEndianInput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.poifs.storage"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/poifs/storage/package-summary.html">org.apache.poi.poifs.storage</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.poifs.storage">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/IntList.html#org.apache.poi.poifs.storage">IntList</a> <div class="block">A List of int's; as full an implementation of the java.util.List interface as possible, with an eye toward minimal creation of objects the mimicry of List is as follows: if possible, operations designated 'optional' in the List interface are attempted wherever the List interface refers to an Object, substitute int wherever the List interface refers to a Collection or List, substitute IntList the mimicry is not perfect, however: operations involving Iterators or ListIterators are not supported remove(Object) becomes removeValue to distinguish it from remove(int index) subList is not supported </div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.sl.draw"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/sl/draw/package-summary.html">org.apache.poi.sl.draw</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.sl.draw">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.sl.draw">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/POILogger.html#org.apache.poi.sl.draw">POILogger</a> <div class="block">A logger interface that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/SuppressForbidden.html#org.apache.poi.sl.draw">SuppressForbidden</a> <div class="block">Marking class for elements to be ignored by the forbidden apis check</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.sl.image"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/sl/image/package-summary.html">org.apache.poi.sl.image</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.sl.image">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.sl.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/sl/usermodel/package-summary.html">org.apache.poi.sl.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.sl.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.extractor"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/extractor/package-summary.html">org.apache.poi.ss.extractor</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.ss.extractor">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.format"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/format/package-summary.html">org.apache.poi.ss.format</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.ss.format">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.formula"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/formula/package-summary.html">org.apache.poi.ss.formula</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.ss.formula">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.ss.formula">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.ss.formula">LittleEndianOutput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.formula.atp"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/formula/atp/package-summary.html">org.apache.poi.ss.formula.atp</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.ss.formula.atp">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.formula.constant"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/formula/constant/package-summary.html">org.apache.poi.ss.formula.constant</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.ss.formula.constant">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.ss.formula.constant">LittleEndianOutput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.formula.ptg"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/formula/ptg/package-summary.html">org.apache.poi.ss.formula.ptg</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.ss.formula.ptg">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.ss.formula.ptg">LittleEndianOutput</a>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.formula.udf"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/formula/udf/package-summary.html">org.apache.poi.ss.formula.udf</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.ss.formula.udf">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/usermodel/package-summary.html">org.apache.poi.ss.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.ss.usermodel">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.ss.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.ss.usermodel">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.usermodel.charts"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/usermodel/charts/package-summary.html">org.apache.poi.ss.usermodel.charts</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.ss.usermodel.charts">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.usermodel.helpers"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/usermodel/helpers/package-summary.html">org.apache.poi.ss.usermodel.helpers</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.ss.usermodel.helpers">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.ss.util"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/ss/util/package-summary.html">org.apache.poi.ss.util</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.ss.util">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.ss.util">LittleEndianOutput</a>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.ss.util">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.util"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/BitField.html#org.apache.poi.util">BitField</a> <div class="block">Manage operations dealing with bit-mapped fields.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.util"><API key></a> <div class="block">Default implementation of the <a href="../../../../org/apache/poi/util/<API key>.html" title="interface in org.apache.poi.util"><code><API key></code></a> used by <a href="../../../../org/apache/poi/util/TempFile.html" title="class in org.apache.poi.util"><code>TempFile</code></a>: Files are collected into one directory and by default are deleted on exit from the VM.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.util"><API key></a> <div class="block">Implementors of this interface allow client code to 'delay' writing to a certain section of a data output stream.<br/> A typical application is for writing BIFF records when the size is not known until well after the header has been written.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/FixedField.html#org.apache.poi.util">FixedField</a> <div class="block">behavior of a field at a fixed location within a byte array</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.util">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/IntList.html#org.apache.poi.util">IntList</a> <div class="block">A List of int's; as full an implementation of the java.util.List interface as possible, with an eye toward minimal creation of objects the mimicry of List is as follows: if possible, operations designated 'optional' in the List interface are attempted wherever the List interface refers to an Object, substitute int wherever the List interface refers to a Collection or List, substitute IntList the mimicry is not perfect, however: operations involving Iterators or ListIterators are not supported remove(Object) becomes removeValue to distinguish it from remove(int index) subList is not supported </div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndian.<API key>.html#org.apache.poi.util">LittleEndian.<API key></a> <div class="block">Exception to handle buffer underruns</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianConsts.html#org.apache.poi.util">LittleEndianConsts</a> <div class="block">a repository for constants shared by classes within this package</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianInput.html#org.apache.poi.util">LittleEndianInput</a>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/LittleEndianOutput.html#org.apache.poi.util">LittleEndianOutput</a>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/POILogger.html#org.apache.poi.util">POILogger</a> <div class="block">A logger interface that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/SuppressForbidden.html#org.apache.poi.util">SuppressForbidden</a> <div class="block">Marking class for elements to be ignored by the forbidden apis check</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/<API key>.html#org.apache.poi.util"><API key></a> <div class="block">Interface used by the <a href="../../../../org/apache/poi/util/TempFile.html" title="class in org.apache.poi.util"><code>TempFile</code></a> utility class to create temporary files.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xdgf.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xdgf/usermodel/package-summary.html">org.apache.poi.xdgf.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xdgf.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xdgf.usermodel.section"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xdgf/usermodel/section/package-summary.html">org.apache.poi.xdgf.usermodel.section</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xdgf.usermodel.section">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xdgf.usermodel.section.geometry"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xdgf/usermodel/section/geometry/package-summary.html">org.apache.poi.xdgf.usermodel.section.geometry</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.xdgf.usermodel.section.geometry">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xslf.model"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xslf/model/package-summary.html">org.apache.poi.xslf.model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xslf.model">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xslf.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xslf/usermodel/package-summary.html">org.apache.poi.xslf.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.xslf.usermodel">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xslf.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.xslf.usermodel">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.xslf.usermodel">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xssf.model"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xssf/model/package-summary.html">org.apache.poi.xssf.model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xssf.model">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xssf.streaming"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xssf/streaming/package-summary.html">org.apache.poi.xssf.streaming</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xssf.streaming">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.xssf.streaming">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.xssf.streaming">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xssf.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xssf/usermodel/package-summary.html">org.apache.poi.xssf.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.xssf.usermodel">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xssf.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/NotImplemented.html#org.apache.poi.xssf.usermodel">NotImplemented</a> <div class="block">This feature has not been implemented yet.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.xssf.usermodel">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xssf.usermodel.charts"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xssf/usermodel/charts/package-summary.html">org.apache.poi.xssf.usermodel.charts</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Beta.html#org.apache.poi.xssf.usermodel.charts">Beta</a> <div class="block">Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xssf.usermodel.charts">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xssf.usermodel.extensions"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xssf/usermodel/extensions/package-summary.html">org.apache.poi.xssf.usermodel.extensions</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xssf.usermodel.extensions">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xssf.usermodel.helpers"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xssf/usermodel/helpers/package-summary.html">org.apache.poi.xssf.usermodel.helpers</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xssf.usermodel.helpers">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.xssf.usermodel.helpers">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xwpf.model"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xwpf/model/package-summary.html">org.apache.poi.xwpf.model</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Removal.html#org.apache.poi.xwpf.model">Removal</a> <div class="block">Program elements annotated &#64;Removal track the earliest final release when a deprecated feature will be removed.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.apache.poi.xwpf.usermodel"> </a> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../org/apache/poi/util/package-summary.html">org.apache.poi.util</a> used by <a href="../../../../org/apache/poi/xwpf/usermodel/package-summary.html">org.apache.poi.xwpf.usermodel</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../org/apache/poi/util/class-use/Internal.html#org.apache.poi.xwpf.usermodel">Internal</a> <div class="block">Program elements annotated &#64;Internal are intended for POI internal use only.</div> </td> </tr> </tbody> </table> </li> </ul> </div> <div class="bottomNav"><a name="navbar_bottom"> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li class="navBarCell1Rev">Use</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>PREV</li> <li>NEXT</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/apache/poi/util/package-use.html" target="_top">FRAMES</a></li> <li><a href="package-use.html" target="_top">NO FRAMES</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_bottom"> </a></div> <p class="legalCopy"><small> <i>Copyright 2017 The Apache Software Foundation or its licensors, as applicable.</i> </small></p> </body> </html>
package com.entrepidea; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; @Path("myresource") public class MyResource { /** * Method handling HTTP GET requests. The returned object will be sent * to the client as "text/plain" media type. * * @return String that will be returned as a text/plain response. */ @GET @Produces(MediaType.TEXT_PLAIN) public String getIt() { return "Got it!"; } }
// <API key>.h // MeiJiaLove #import <UIKit/UIKit.h> @protocol <API key>; @protocol <API key> <NSObject> - (void)<API key>:(UIImage *)image; - (void)<API key>; @end @interface <API key> : UIViewController <<API key>> @property (nonatomic, strong) id <<API key>> delegate; @property (nonatomic, strong) UIImage *currentImage; @property (nonatomic, strong) UIImageView *rootImageView; @property (nonatomic, strong) UIScrollView *scrollerView; @end
function c20322011.initial_effect(c) c:EnableReviveLimit() --spsummon from hand local e1=Effect.CreateEffect(c) e1:SetProperty(<API key>) e1:SetType(EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_HAND) e1:SetCode(<API key>) e1:SetCondition(c20322011.hspcon) e1:SetOperation(c20322011.hspop) c:RegisterEffect(e1) --active(spsummon) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE+<API key>) e2:SetCode(<API key>) e2:SetTarget(c20322011.target) e2:SetOperation(c20322011.operation) c:RegisterEffect(e2) end function c20322011.hspfilter(c) return c:GetLevel()>=10 and c:IsAbleToDeck() end function c20322011.hspcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.<API key>(c20322011.hspfilter,c:GetControler(),LOCATION_HAND,0,c)>0 end function c20322011.hspop(e,tp,eg,ep,ev,re,r,rp,c) local g=Duel.SelectMatchingCard(c:GetControler(),c20322011.hspfilter,tp,LOCATION_HAND,0,1,1,c) Duel.SendtoDeck(g,nil,2,REASON_COST) end function c20322011.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end end function c20322011.filter1(c) return c:IsAbleToHand() and c:IsSetCard(0x282) and c:IsLevelBelow(4) and c:IsType(TYPE_MONSTER) end function c20322011.filter2(c) return c:IsAbleToHand() and c:IsSetCard(0x282) and c:IsLevelAbove(10) and c:IsType(TYPE_MONSTER) end function c20322011.operation(e,tp,eg,ep,ev,re,r,rp) local p=0 if Duel.<API key>(c20322011.filter1,tp,LOCATION_DECK,0,1,nil) then p=p+1 end if Duel.<API key>(c20322011.filter2,tp,LOCATION_GRAVE,0,1,nil) then p=p+2 end if p==0 then return end if p==3 then p=Duel.SelectOption(tp,aux.Stringid(20322011,0),aux.Stringid(20322011,1))+1 end if p==1 then local g=Duel.SelectMatchingCard(tp,c20322011.filter1,tp,LOCATION_DECK,0,1,1,nil) Duel.SendtoHand(g,tp,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end if p==2 then local g=Duel.SelectMatchingCard(tp,c20322011.filter2,tp,LOCATION_GRAVE,0,1,1,nil) Duel.SendtoHand(g,tp,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end end
/* avrsnippets - Some useful code snippets for the Atmega Microcontroller */ /* This program is free software: you can redistribute it and/or modify */ /* (at your option) any later version. */ /* This program is distributed in the hope that it will be useful, */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /** * @file random.h * @author Julian Iseringhausen <julian.iseringhausen@gmail.com> * @date Wed Oct 24 23:10:35 2012 * * @brief Lightweight random number generators. * */ #ifndef <API key> #define <API key> #include <stdint.h> extern uint32_t random_val; extern void random_init(); extern uint32_t random_xorshift32(); extern uint8_t random_variate(uint8_t base, uint8_t bottom, uint8_t top, uint8_t var); static inline uint8_t random_shift_8(uint8_t num_bits) __attribute__((always_inline)); static inline uint8_t random_shift_8(uint8_t num_bits) { uint8_t tmp; asm ( "loop%=: " "lsl %A[random_val]" "\n\t" "rol %B[random_val]" "\n\t" "rol %C[random_val]" "\n\t" "rol %D[random_val]" "\n\t" "mov %[tmp], %D[random_val]" "\n\t" "andi %[tmp], %[MASK]" "\n\t" "breq no_xor%=" "\n\t" // Both bits cleared "cpi %[tmp], %[MASK]" "\n\t" "breq no_xor%=" "\n\t" // Both bits set "inc %A[random_val]" "\n\t" // LSB <- XOR "no_xor%=: " "dec %[num_bits]" "\n\t" "brne loop%=" : [random_val] "+r" (random_val), [num_bits] "+r" (num_bits), [tmp] "=d" (tmp) : [MASK] "M" ((1<<4) | (1<<7)) ); return (uint8_t)random_val; } static inline uint16_t random_shift_16(uint8_t num_bits) __attribute__((always_inline)); static inline uint16_t random_shift_16(uint8_t num_bits) { uint8_t tmp; asm ( "loop%=: " "lsl %A[random_val]" "\n\t" "rol %B[random_val]" "\n\t" "rol %C[random_val]" "\n\t" "rol %D[random_val]" "\n\t" "mov %[tmp], %D[random_val]" "\n\t" "andi %[tmp], %[MASK]" "\n\t" "breq no_xor%=" "\n\t" // Both bits cleared "cpi %[tmp], %[MASK]" "\n\t" "breq no_xor%=" "\n\t" // Both bits set "inc %A[random_val]" "\n\t" // LSB <- XOR "no_xor%=: " "dec %[num_bits]" "\n\t" "brne loop%=" : [random_val] "+r" (random_val), [num_bits] "+r" (num_bits), [tmp] "=d" (tmp) : [MASK] "M" ((1<<4) | (1<<7)) ); return (uint16_t)random_val; } #endif /* <API key> */
package org.vesalainen.grammar.math; /** * * @author Timo Vesalainen <timo.vesalainen@iki.fi> */ public class <API key> { public static final String <API key> = "org.vesalainen.grammar.impl.<API key>"; public static <T,M,F,P> <API key><T,M,F,P> getInstance() { try { Class<?> cls = Class.forName(<API key>); return (<API key>) cls.newInstance(); } catch (<API key> | <API key> | <API key> ex) { throw new <API key>(ex); } } }
from django.db import models from flocs import entities from flocsweb.mixins import ImportExportMixin class Instruction(models.Model, ImportExportMixin): entity_class = entities.Instruction instruction_id = models.CharField(max_length=256, primary_key=True) def __str__(self): return self.instruction_id
<?php global $advance;?> <div class="row"> <div class="large-9 columns <?php if ( !is_active_sidebar( 'sidebar' ) ){ ?> nosid <?php }?>"> <!--Content <?php if(!empty($advance['blog_cat_id'])){ $blogcat = $advance['blog_cat_id']; $blogcats =implode(',', $blogcat); }else{$blogcats = '';} $args = array( 'post_type' => 'post', 'cat' => ''.$blogcats.'', 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1), 'posts_per_page' => ''.absint($advance['blog_num_id']).''); $the_query = new WP_Query( $args ); ?> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> </div> <div class="content_blog blog_style_b1" role="main"> <article class="<API key> odd"> <div class="title_area"> <?php the_title( sprintf( '<h1 class="post_title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?> </div> <div class="post_info post_info_2"> <span class="post_author"> <i class="fa fa-calendar"></i> <a class="post_date"><?php the_time( get_option('date_format') ); ?></a> </span> <span class="post_info_delimiter"></span> <span class="post_author"><i class="fa fa-user"></i> <a class="post_author" href="<?php echo esc_url( <API key>( get_the_author_meta( 'ID' ) ) ); ?>"><?php the_author(); ?></a></span> <span class="post_info_delimiter"></span> <?php if( has_category() ) { ?> <span class="post_categories"> <span class="cats_label"><i class="fa fa-th-list"></i></span> <a class="cat_link"><?php the_category(' '); ?></a> </span> <?php } ?> <div class="post_comments"><a><i class="fa fa-comments"></i><span class="comments_number"> <?php comments_popup_link( __('0 Comment', 'advance'), __('1 Comment', 'advance'), __('% Comments', 'advance'), '', __('Off' , 'advance')); ?> </span><span class="icon-comment"></span></a></div> </div> <div class="post_content"> <p><?php the_excerpt(); ?></p> </div> <div class="readmore"> <a href="<?php echo get_permalink();?>" rel="bookmark" class="more-link"> <?php echo esc_attr__('Read more','advance');?> </a> </div> <div class="post_info post_info_3 clearboth"> <span class="post_tags"> <?php if( has_tag() ) { ?><i class="fa fa-tag fa-lg"></i><?php } ?> <?php if( has_tag() ) { ?><a class="tag_link"><?php the_tags('',' '); ?></a> </span><?php } ?> </div> </article> <div class="share"> <?php get_template_part('share_this');?></div> <div class="sep-20"><img src="<?php echo esc_url (<API key>(). '/images/sep-shadow.png');?>" /></div> </div> <?php endwhile ?> <?php get_template_part('pagination'); ?> </div> <div class=" wow fadeIn large-3 columns"> <?php get_sidebar();?> </div> </div>
// <auto-generated> // Dieser Code wurde von einem Tool generiert. // der Code erneut generiert wird. // </auto-generated> namespace xServer.Properties { using System; <summary> Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. </summary> // Diese Klasse wurde von der <API key> automatisch generiert // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. [global::System.CodeDom.Compiler.<API key>("System.Resources.Tools.<API key>", "4.0.0.0")] [global::System.Diagnostics.<API key>()] [global::System.Runtime.CompilerServices.<API key>()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.<API key>("Microsoft.Performance", "CA1811:<API key>")] internal Resources() { } <summary> Gibt die <API key> <API key> zurück, die von dieser Klasse verwendet wird. </summary> [global::System.ComponentModel.<API key>(global::System.ComponentModel.<API key>.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("xServer.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } <summary> Überschreibt die <API key> des aktuellen Threads für alle <API key>, die diese stark typisierte Ressourcenklasse verwenden. </summary> [global::System.ComponentModel.<API key>(global::System.ComponentModel.<API key>.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap actions { get { object obj = ResourceManager.GetObject("actions", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap application_add { get { object obj = ResourceManager.GetObject("application_add", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap bricks { get { object obj = ResourceManager.GetObject("bricks", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap cancel { get { object obj = ResourceManager.GetObject("cancel", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap computer { get { object obj = ResourceManager.GetObject("computer", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap copy { get { object obj = ResourceManager.GetObject("copy", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap delete { get { object obj = ResourceManager.GetObject("delete", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap download { get { object obj = ResourceManager.GetObject("download", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap drive_go { get { object obj = ResourceManager.GetObject("drive_go", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap eye { get { object obj = ResourceManager.GetObject("eye", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap folder { get { object obj = ResourceManager.GetObject("folder", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap information { get { object obj = ResourceManager.GetObject("information", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap key_go { get { object obj = ResourceManager.GetObject("key_go", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap lightning { get { object obj = ResourceManager.GetObject("lightning", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap logger { get { object obj = ResourceManager.GetObject("logger", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap monitor { get { object obj = ResourceManager.GetObject("monitor", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap mouse_add { get { object obj = ResourceManager.GetObject("mouse_add", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap mouse_delete { get { object obj = ResourceManager.GetObject("mouse_delete", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap refresh { get { object obj = ResourceManager.GetObject("refresh", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap restart { get { object obj = ResourceManager.GetObject("restart", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap run { get { object obj = ResourceManager.GetObject("run", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap server { get { object obj = ResourceManager.GetObject("server", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap server_add { get { object obj = ResourceManager.GetObject("server_add", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap server_disconnect { get { object obj = ResourceManager.GetObject("server_disconnect", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap server_reconnect { get { object obj = ResourceManager.GetObject("server_reconnect", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap server_uninstall { get { object obj = ResourceManager.GetObject("server_uninstall", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap shutdown { get { object obj = ResourceManager.GetObject("shutdown", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap standby { get { object obj = ResourceManager.GetObject("standby", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap startup_programs { get { object obj = ResourceManager.GetObject("startup_programs", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap task_manager { get { object obj = ResourceManager.GetObject("task_manager", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap terminal { get { object obj = ResourceManager.GetObject("terminal", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Zeichenfolge, die xRAT 2.0 Copyright (C) 2015 MaxX0r xRAT 2.0 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. xRAT 2.0 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 [Rest der Zeichenfolge wurde abgeschnitten]&quot;; ähnelt. </summary> internal static string TermsOfUse { get { return ResourceManager.GetString("TermsOfUse", resourceCulture); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap textfield_rename { get { object obj = ResourceManager.GetObject("textfield_rename", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap uac_shield { get { object obj = ResourceManager.GetObject("uac_shield", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap upload { get { object obj = ResourceManager.GetObject("upload", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap world_go { get { object obj = ResourceManager.GetObject("world_go", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap world_link { get { object obj = ResourceManager.GetObject("world_link", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } <summary> Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. </summary> internal static System.Drawing.Bitmap xRAT_64x64 { get { object obj = ResourceManager.GetObject("xRAT_64x64", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } } }
#ifndef WSYNCDOWNLOAD_H__ #define WSYNCDOWNLOAD_H__ #include <wx/event.h> #include <wx/progdlg.h> #include "cevent.h" #include "Timer.h" #include "boost/asio.hpp" #include "boost/filesystem.hpp" class WsyncDownload; typedef struct job_info { WsyncDownload *parent; int jobID; bool showProgress; wxProgressDialog *wxp; Timer *dlStartTime; Timer *speedTimer; boost::uintmax_t predDownloadSize; boost::uintmax_t realDownloadSize; boost::uintmax_t downloadDoneSize; boost::uintmax_t filesize_left; boost::uintmax_t datacounter; boost::uintmax_t dataspeed; double lastTime; } job_info_t; class WsyncDownload { public: WsyncDownload(wxEvtHandler* parent=0); // main functions int downloadFile(int jobID, boost::filesystem::path localFile, std::string server, std::string remoteDir, boost::uintmax_t predDownloadSize=0, boost::uintmax_t *fileSize=0, bool showProgress=false); int <API key>(int jobID, std::string server, std::string url, std::vector< std::map< std::string, std::string > > &list, bool showProgress=false); int downloadConfigFile(int jobID, std::string server, std::string url, std::vector< std::vector< std::string > > &list, bool showProgress=false); // utils static void tryRemoveFile(boost::filesystem::path filename, int jobID=-1); static void increaseServerStats(std::string server, boost::uintmax_t bytes); void setDownloadMessage(wxString msg) { mDownloadMessage = msg; }; void <API key>(int jobID, Timer dlStartTime, boost::uintmax_t predDownloadSize, boost::uintmax_t downloaded); protected: wxEvtHandler* parent; static std::map < std::string, boost::uintmax_t > traffic_stats; void updateCallback(int jobID, int type, std::string txt = std::string(), float percent=-1); wxString mDownloadMessage; }; #endif //WSYNCDOWNLOAD_H__
package visGrid.tests; import junit.textui.TestRunner; import visGrid.Solar; import visGrid.VisGridFactory; /** * <!-- begin-user-doc --> * A test case for the model object '<em><b>Solar</b></em>'. * <!-- end-user-doc --> * @generated */ public class SolarTest extends ConnectionTest { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static void main(String[] args) { TestRunner.run(SolarTest.class); } /** * Constructs a new Solar test case with the given name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SolarTest(String name) { super(name); } /** * Returns the fixture for this Solar test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected Solar getFixture() { return (Solar)fixture; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#setUp() * @generated */ @Override protected void setUp() throws Exception { setFixture(VisGridFactory.eINSTANCE.createSolar()); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#tearDown() * @generated */ @Override protected void tearDown() throws Exception { setFixture(null); } } //SolarTest
#include "dingo-application.h" #include <libintl.h> int main(int argc, char** argv) { bindtextdomain(GETTEXT_PACKAGE, DINGO_LOCALEDIR); <API key>(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); Dingo::Application dingo_application(argc, argv); return dingo_application.run(); }
// Jericho HTML Parser - Java based library for analysing and manipulating HTML // Version 3.1 // This library is free software; you can redistribute it and/or // modify it under the terms of either one of the following licences: // included in this distribution in the file licence-epl-1.0.html // included in this distribution in the file licence-lgpl-2.1.txt // This library is distributed on an "AS IS" basis, // See the individual licence texts for more details. package net.htmlparser.jericho; import java.util.*; import java.io.*; import java.nio.charset.*; import java.net.*; final class <API key> { private final InputStream inputStream; private String encoding=null; private String <API key>=null; private boolean definitive=true; private boolean <API key>=true; private static final String UTF_16="UTF-16"; private static final String UTF_16BE="UTF-16BE"; private static final String UTF_16LE="UTF-16LE"; private static final String UTF_8="UTF-8"; private static final String ISO_8859_1="ISO-8859-1"; private static final String EBCDIC="Cp037"; // aka IBM037, not guaranteed, but available on most platforms // All of the following encodings are generally not supported in java and will usually throw an exception if decoding is attempted. // Specified explicitly using Byte Order Mark: private static final String SCSU="SCSU"; private static final String UTF_7="UTF-7"; private static final String UTF_EBCDIC="UTF-EBCDIC"; private static final String BOCU_1="BOCU-1"; private static final String UTF_32="UTF-32"; // Guessed from presence of 00 bytes in first four bytes: private static final String UTF_32BE="UTF-32BE"; private static final String UTF_32LE="UTF-32LE"; public <API key>(final URLConnection urlConnection) throws IOException { final HttpURLConnection httpURLConnection=(urlConnection instanceof HttpURLConnection) ? (HttpURLConnection)urlConnection : null; // urlConnection.setRequestProperty("Accept-Charset","UTF-8, ISO-8859-1;q=0"); // used for debugging final InputStream urlInputStream=urlConnection.getInputStream(); final String contentType=urlConnection.getContentType(); if (contentType!=null) { encoding=Source.<API key>(contentType); if (encoding!=null) { inputStream=urlInputStream; <API key>="HTTP header Content-Type: "+contentType; return; } } inputStream=urlInputStream.markSupported() ? urlInputStream : new BufferedInputStream(urlInputStream); init(); } public <API key>(final InputStream inputStream) throws IOException { this.inputStream=inputStream.markSupported() ? inputStream : new BufferedInputStream(inputStream); init(); } public InputStream getInputStream() { return inputStream; } public String getEncoding() { return encoding; } public String <API key>() { return <API key>; } public boolean isDifinitive() { return definitive; } public boolean <API key>() { return <API key>; } public Reader openReader() throws <API key> { if (encoding==null) return new InputStreamReader(inputStream,ISO_8859_1); // encoding==null only if input stream is empty so use an arbitrary encoding. if (!Charset.isSupported(encoding)) throw new <API key>(encoding+" - "+<API key>); return new InputStreamReader(inputStream,encoding); } private boolean setEncoding(final String encoding, final String <API key>) { this.encoding=encoding; this.<API key>=<API key>; return true; } private boolean init() throws IOException { inputStream.mark(4); final int b1=inputStream.read(); if (b1==-1) return setEncoding(null,"empty input stream"); final int b2=inputStream.read(); final int b3=inputStream.read(); final int b4=inputStream.read(); inputStream.reset(); // Check for Unicode Byte Order Mark: if (b1==0xEF) { if (b2==0xBB && b3==0xBF) return setEncoding(UTF_8,"UTF-8 Byte Order Mark (EF BB BF)"); } else if (b1==0xFE) { if (b2==0xFF) return setEncoding(UTF_16,"UTF-16 big-endian Byte Order Mark (FE FF)"); } else if (b1==0xFF) { if (b2==0xFE) { if (b3==0 && b4==0) return setEncoding(UTF_32,"UTF-32 little-endian Byte Order Mark (FF EE 00 00)"); return setEncoding(UTF_16,"UTF-16 little-endian Byte Order Mark (FF EE)"); } } else if (b1==0) { if (b2==0 && b3==0xFE && b4==0xFF) return setEncoding(UTF_32,"UTF-32 big-endian Byte Order Mark (00 00 FE FF)"); } else if (b1==0x0E) { if (b2==0xFE && b3==0xFF) return setEncoding(SCSU,"SCSU Byte Order Mark (0E FE FF)"); } else if (b1==0x2B) { if (b2==0x2F && b3==0x76) return setEncoding(UTF_7,"UTF-7 Byte Order Mark (2B 2F 76)"); } else if (b1==0xDD) { if (b2==0x73 && b3==0x66 && b4==0x73) return setEncoding(UTF_EBCDIC,"UTF-EBCDIC Byte Order Mark (DD 73 66 73)"); } else if (b1==0xFB) { if (b2==0xEE && b3==0x28) return setEncoding(BOCU_1,"BOCU-1 Byte Order Mark (FB EE 28)"); } // No Unicode Byte Order Mark found. Have to start guessing. definitive=false; // The best we can do is to provide an encoding that reflects the correct number and ordering of bytes for characters in the ASCII range. // The result will be one of ISO_8859_1, EBCDIC, UTF_16BE, UTF_16LE, UTF_32BE or UTF_32LE. // Assumes 00 bytes indicate multi-byte encodings rather than the presence of NUL characters or characters with a code that is a multiple of 0x100. if (b4==-1) { // The stream contains between 1 and 3 bytes. // This means the document can't possibly specify the encoding, so make a best guess based on the first 3 bytes. <API key>=false; // It might be possible to rule out some encodings based on these bytes, but it is impossible to make a definite determination. // The main thing to determine is whether it is an 8-bit or 16-bit encoding. // In order to guess the most likely encoding, assume that the text contains only ASCII characters, and that any 00 bytes indicate a 16-bit encoding. // The only strictly 8-bit encoding guaranteed to be supported on all java platforms is ISO-8859-1 (UTF-8 uses a variable number of bytes per character). // If no 00 bytes are present it is safest to assume ISO-8859-1, as this accepts the full range of values 00-FF in every byte. if (b2==-1 || b3!=-1) return setEncoding(ISO_8859_1,"default 8-bit ASCII-compatible encoding (stream 3 bytes long)"); // The stream contains exactly 1 or 3 bytes, so assume an 8-bit encoding regardless of whether any 00 bytes are present. // The stream contains exactly 2 bytes. if (b1==0) return setEncoding(UTF_16BE,"default 16-bit BE encoding (byte stream starts with 00, stream 2 bytes long)"); if (b2==0) return setEncoding(UTF_16LE,"default 16-bit LE encoding (byte stream pattern XX 00, stream 2 bytes long)"); // No 00 bytes present, assume 8-bit encoding: return setEncoding(ISO_8859_1,"default 8-bit ASCII-compatible encoding (no 00 bytes present, stream 2 bytes long)"); } // Stream contains at least 4 bytes. // The patterns used for documentation are made up of: // 0 - zero byte // X - non-zero byte // ? - byte value not yet determined if (b1==0) { // pattern 0??? if (b2==0) return setEncoding(UTF_32BE,"default 32-bit BE encoding (byte stream starts with 00 00)"); // pattern 00?? most likely indicates UTF-32BE // pattern 0X?? // Regardless of the final two bytes, assume that the first two bytes indicate a 16-bit BE encoding. // There are many circumstances where this could be an incorrect assumption, for example: // - UTF-16LE encoding with first character U+0100 (or any other character whose code is a multiple of 100Hex) // - any encoding with first character NUL // - UTF-32BE encoding with first character outside of Basic Multilingual Plane (BMP) // Checking the final two bytes might give some clues as to whether any of these other situations are more likely, // but none of the clues will yield less than a 50% chance that the encoding is in fact UTF-16BE as suggested by the first two bytes. return setEncoding(UTF_16BE,"default 16-bit BE encoding (byte stream starts with 00)"); // >=50% chance that encoding is UTF-16BE } // pattern X??? if (b4==0) { // pattern X??0 if (b3==0) return setEncoding(UTF_32LE,"default 32-bit LE encoding (byte stream starts with pattern XX ?? 00 00)"); // pattern X?00 most likely indicates UTF-32LE // pattern X?X0 return setEncoding(UTF_16LE,"default 16-bit LE encoding (byte stream stars with pattern XX ?? XX 00)"); // Regardless of the second byte, assume the fourth 00 byte indicates UTF-16LE. } // pattern X??X if (b2==0) { // pattern X0?X // Assuming the second 00 byte doesn't indicate a NUL character, and that it is very unlikely that this is a 32-bit encoding // of a character outside of the BMP, we can assume that it indicates a 16-bit encoding. // If the pattern is X00X, there is a 50/50 chance that the encoding is BE or LE, with one of the characters have a code that is a multiple of 0x100. // This should be a very rare occurrence, and there is no more than a 50% chance that the encoding // will be different to that assumed (UTF-16LE) without checking for this occurrence, so don't bother checking for it. // If the pattern is X0XX, this is likely to indicate a 16-bit LE encoding with the second character > U+00FF. return setEncoding(UTF_16LE,"default 16-bit LE encoding (byte stream starts with pattern XX 00 ?? XX)"); } // pattern XX?X if (b3==0) return setEncoding(UTF_16BE,"default 16-bit BE encoding (byte stream starts with pattern XX XX 00 XX)"); // pattern XX0X likely to indicate a 16-bit BE encoding with the first character > U+00FF. // pattern XXXX // Although it is still possible that this is a 16-bit encoding with the first two characters > U+00FF // Assume the more likely case of four 8-bit characters <= U+00FF. // Check whether it fits some common EBCDIC strings that might be found at the start of a document: if (b1==0x4C) { // first character is EBCDIC '<' (ASCII 'L'), check a couple more characters before assuming EBCDIC encoding: if (b2==0x6F && b3==0xA7 && b4==0x94) return setEncoding(EBCDIC,"default EBCDIC encoding (<?xml...> detected)"); if (b2==0x5A && b3==0xC4 && b4==0xD6) return setEncoding(EBCDIC,"default EBCDIC encoding (<!DOCTYPE...> detected)"); if ((b2&b3&b4&0x80)!=0) return setEncoding(EBCDIC,"default EBCDIC-compatible encoding (HTML element detected)"); // although this is not an exhaustive check for EBCDIC, it is safer to assume a more common preliminary encoding if none of these conditions are met. } // Now confident that it is not EBCDIC, but some other 8-bit encoding. // Most other 8-bit encodings are compatible with ASCII. // Since a document specified encoding requires only ASCII characters, just choose an arbitrary 8-bit preliminary encoding. // UTF-8 is however not a good choice as it is not strictly an 8-bit encoding. // Therefore, choose the only true 8-bit encoding that accepts all byte values and is guaranteed to be available on all java implementations. return setEncoding(ISO_8859_1,"default 8-bit ASCII-compatible encoding (no 00 bytes present in first four bytes of stream)"); } }
--3L·Look for the Truth local m=37564806 local cm=_G["c"..m] xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end) cm.fusion_att_3L=ATTRIBUTE_EARTH function cm.initial_effect(c) Senya.Fusion_3L_Attribute(c,cm) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(<API key>) e3:SetProperty(<API key>) e3:SetRange(LOCATION_MZONE) e3:SetValue(aux.tgoval) c:RegisterEffect(e3) end
import React, { Component } from 'react'; import dpr from './lib/dpr' var homeStats = { games: null, stats: null, } class Home extends Component { componentWillMount = () => { var games = {} var stats = {} if ( homeStats.games !== null ) { games = homeStats.games } if ( homeStats.stats !== null ) { stats = homeStats.stats } this.setState({ topChannels: 6, topGames: 8, fetching: false, games: games, stats: stats }) } fetch = () => { if ( this.state.fetching === false ) { this.pullGameActivity() } } componentDidMount = () => { this.fetch() } componentDidUpdate = () => { this.fetch() } pullGameActivity = async () => { this.setState({fetching: "games"}) try { var response = await this.props.state.api.raw.fetch('games/played/top/'+this.props.state.days+'/'+this.state.topGames+'.json', "v0"); var json = {} if (response.ok) { json = await response.json(); var max = 0; for ( var i=0; i<json.length; i++ ) { if ( json[i].players > max ) { max = json[i].players } } for ( i=0; i<json.length; i++ ) { json[i].pct = Math.round((json[i].players / max) * 100) } homeStats.games = json } else { window.Rollbar.warning('Unable to load Game data', 'warning', { status: response.status, statusText: response.statusText }); json["error"] = { name: "Game data unavailable", id: "error", pct: 0, players: "", } } this.setState({ games: json, }) } catch(err) { console.error("Unable to pull game activity - " + err ) } } games = () => { var zoom = dpr() var rval = [] for ( var i in this.state.games ) { var img = null if ( this.state.games[i].image !== "" ) { img = (<img style={{height: "32px", width: "32px"}} className="float-right" src={"//i"+(i%3)+".wp.com/dashboard.fofgaming.com" + this.state.games[i].image+ "?h=32&w=32&zoom=" + zoom} alt="" game-id={this.state.games[i].id}/>) } rval.push(( <div key={this.state.games[i].name} className="d-flex flex-row" game-id={this.state.games[i].id} onClick={(e) =>{ this.props.state.hasher.replace({ main: "game", id: e.target.getAttribute("game-id"), }) }}> <div game-id={this.state.games[i].id} className="text-nowrap w-75 mw-75 text-truncate" style={{ paddingTop: "0.25em", marginBottom: "0.1em", height: "2em", textOverflow: "ellipsis", paddingLeft: "1em", borderRadius: "0.5em", backgroundImage: "-<API key>(left, #157EFB, #157EFB " + ( this.state.games[i].pct - 10 ) + "%, transparent "+this.state.games[i].pct+"%, transparent 100%)", }}> {this.state.games[i].name} </div> <div className="w-25 text-left clearfix" game-id={this.state.games[i].id}> <div className="float-left py-1" game-id={this.state.games[i].id}>{this.state.games[i].players.toLocaleString()}</div> &nbsp; {img} </div> </div> )) } return ( <div> <div className="d-flex flex-row"> <div className="w-75"><strong>Most Played Games</strong></div> <div className="w-25 text-left"><strong>Players</strong></div> </div> {rval} </div> ) } render = () => { return ( <div> {this.games()} </div> ) } } export default Home
# -*- coding: utf-8 -*- # tvalacarta - XBMC Plugin # Canal para ecuador tv import os import sys import urlparse,re import urllib import datetime from core import logger from core import scrapertools from core.item import Item import youtube_channel __channel__ = "ecuadortv" DEBUG = True YOUTUBE_CHANNEL_ID = "RTVEcuador" def isGeneric(): return True def mainlist(item): logger.info("tvalacarta.channels.ecuadortv mainlist") return youtube_channel.playlists(item,YOUTUBE_CHANNEL_ID)
package com.baeldung.concurrent.countdownlatch; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicInteger; public class <API key> { private int count; private int threadCount; private final AtomicInteger updateCount; <API key>(int count, int threadCount) { updateCount = new AtomicInteger(0); this.count = count; this.threadCount = threadCount; } public int countWaits() { CountDownLatch countDownLatch = new CountDownLatch(count); ExecutorService es = Executors.newFixedThreadPool(threadCount); for (int i = 0; i < threadCount; i++) { es.execute(() -> { long prevValue = countDownLatch.getCount(); countDownLatch.countDown(); if (countDownLatch.getCount() != prevValue) { updateCount.incrementAndGet(); } }); } es.shutdown(); return updateCount.get(); } public static void main(String[] args) { <API key> ex = new <API key>(5, 20); System.out.println("Count : " + ex.countWaits()); } }
using MinionReloggerLib.Interfaces; namespace MinionReloggerLib.Core { public class ComponentClass { internal IRelogComponent Component { get; set; } internal bool IsEnabled { get; set; } } }
#import <Cocoa/Cocoa.h> #if <API key> >= <API key> #include <Security/AuthorizationDB.h> #else enum { err<API key> = 0, /* The operation completed successfully. */ // rest omitted }; #endif @interface RPTKeyValuePair : NSObject { id _key; id _value; } - (id)initWithKey:(id)key value:(id)value; - (id)key; - (id)value; - (NSString *)description; - (void)dealloc; @end @interface RPTRightsDataSource : NSObject /*<API key>*/ { NSArray *_rights; } - (id)initWithRightsDB:(NSDictionary *)rightsDB; - (int)<API key>:(NSComboBox *)comboBox; - (id)comboBox:(NSComboBox *)comboBox <API key>:(int)index; - (void)dealloc; @end @interface <API key> : NSObject /*<API key>*/ { NSDictionary *_right; NSMutableSet *_pairs; } - (id)<API key>:(NSDictionary *)rightDefinition; - (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item; - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item; - (int)outlineView:(NSOutlineView *)outlineView <API key>:(id)item; - (id)outlineView:(NSOutlineView *)outlineView <API key>:(NSTableColumn *)tableColumn byItem:(id)item; - (void)dealloc; @end @interface <API key> : NSObject { IBOutlet NSWindow *inspectorWindow; IBOutlet NSComboBox *rightChooser; IBOutlet NSOutlineView *rightView; NSDictionary *_rightsDB; NSString *_displayedRight; NSString *<API key>; } - (id)init; - (IBAction)<API key>:(id)sender; - (IBAction)refreshView:(id)sender; - (IBAction)<API key>:(id)sender; - (IBAction)comboBoxAction:(NSComboBox *)sender; - (NSDictionary *)<API key>:(NSString *)name; - (void)dealloc; @end
#include "<API key>.h" QT_BEGIN_NAMESPACE namespace Qt3DCore { QBackendNodeFactory::~QBackendNodeFactory() { } } // namespace Qt3DCore QT_END_NAMESPACE
Copyright (c) 2012 Ecma International. All rights reserved. Ecma International makes this code available under the terms and conditions set forth on http: "Use Terms"). Any redistribution of this code must retain the above copyright and this notice and otherwise comply with the Use Terms. /** * @path ch15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-76.js * @description Object.defineProperties throws TypeError when P.configurable is false, P.writalbe is false, properties.value is +0 and P.value is -0 (8.12.9 step 10.a.ii.1) */ function testcase() { var obj = {}; Object.defineProperty(obj, "foo", { value: -0, writable: false, configurable: false }); try { Object.defineProperties(obj, { foo: { value: +0 } }); return false; } catch (e) { return (e instanceof TypeError) && <API key>(obj, "foo", -0, false, false, false); } } runTestCase(testcase);
CREATE TABLE [dbo].[evaluation]( [id] [numeric](19, 0) IDENTITY(1,1) NOT NULL, [version] [numeric](19, 0) NOT NULL, [date_evaluated] [datetime] NOT NULL, [time_evaluated] [int] NOT NULL, [evaluator_id] [numeric](19, 0) NOT NULL, [care_activity_id] [numeric](19, 0) NOT NULL, PRIMARY KEY CLUSTERED ( [id] ASC )WITH (PAD_INDEX = OFF, <API key> = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]
{{extend 'layout.html'}} <h1>{{=T('Sales')}}</h1> {{if data:}} {{delete_enabled = True}} {{include 'selection_menu.html'}} {{=data}} {{else:}} {{=T('No sales found')}} {{pass}} {{core_action = URL('scan_for_invoice')}} {{core_action_icon = "description"}} {{include 'core_button.html'}}
Copyright (c) 2012 Ecma International. All rights reserved. Ecma International makes this code available under the terms and conditions set forth on http: "Use Terms"). Any redistribution of this code must retain the above copyright and this notice and otherwise comply with the Use Terms. /** * @path ch15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-1.js * @description Date.now must exist as a function */ function testcase() { return typeof Date.now === "function"; } runTestCase(testcase);
#!/bin/sh export path_htsa_dir=/media/StorageOne/HTS #path to HTSA analysis dir export path_pipeline=VirusMeta export Project_dir=$1 export virus_index_file=$2 export case_control_id=$3 #tab delimited file: column1 - index names; column2 - 1 if case and 0 if ctrl export NR_cases=$4 export NR_ctrl=$5 export CLUSTER_cutoff=$6 export pos_cutoff=$7 export <API key>=$8 $path_htsa_dir/$path_pipeline/blast_module/blast_two_fasta.sh $path_htsa_dir $path_htsa_dir/PublicData/nt_pb/TTV_ref_coplete.fasta $Project_dir/PB/TTV.fasta $Project_dir/PB/TTV_ref TTV_ref $path_htsa_dir/$path_pipeline/blast_module/blast_two_fasta.sh $path_htsa_dir $path_htsa_dir/PublicData/nt_pb/TTV_ORF1.fasta $Project_dir/PB/TTV.fasta $Project_dir/PB/TTV_ORF1 TTV_ORF1 $path_htsa_dir/$path_pipeline/blast_module/blast_two_fasta.sh $path_htsa_dir $path_htsa_dir/PublicData/nt_pb/<API key>.fasta $Project_dir/PB/TTV.fasta $Project_dir/PB/Anelloviridae Anelloviridae filename_extention=$(basename $case_control_id) casectrl_dir="${filename_extention%%.txt*}" rm -r $Project_dir/PB/report_files/$casectrl_dir.ttv.$pos_cutoff mkdir $Project_dir/PB/report_files/$casectrl_dir.ttv.$pos_cutoff for taxa in "Family" "Genus" "Species" "Complete_TTV_name" ; do #"Cluster" echo "$taxa" Rscript $path_htsa_dir/$path_pipeline/SAM_BAM/ttv_positivity_OR.R $path_htsa_dir/$path_pipeline $Project_dir $virus_index_file $Project_dir/aggregated_dir/self_blast_tmp/$CLUSTER_cutoff.CLUSTER_BLAST.txt $case_control_id $Project_dir/PB/nt_final.csv $Project_dir/PB/report_files/$casectrl_dir.ttv.$pos_cutoff/ttv_$taxa-OR.csv $Project_dir/PB/report_files/$casectrl_dir.ttv.$pos_cutoff/TTV_cluster_nt_OR.csv $NR_cases $NR_ctrl $taxa $pos_cutoff $<API key> done
// Scintilla source code edit control /** @file ContractionState.h ** Manages visibility of lines for folding and wrapping. **/ #ifndef CONTRACTIONSTATE_H #define CONTRACTIONSTATE_H /* C::B begin */ #include "RunStyles.h" /* C::B end */ #ifdef SCI_NAMESPACE namespace Scintilla { #endif class ContractionState { // These contain 1 element for every document line. RunStyles *visible; RunStyles *expanded; RunStyles *heights; Partitioning *displayLines; int linesInDocument; void EnsureData(); bool OneToOne() const { // True when each document line is exactly one display line so need for // complex data structures. return visible == 0; } public: ContractionState(); virtual ~ContractionState(); void Clear(); int LinesInDoc() const; int LinesDisplayed() const; int DisplayFromDoc(int lineDoc) const; int DocFromDisplay(int lineDisplay) const; void InsertLine(int lineDoc); void InsertLines(int lineDoc, int lineCount); void DeleteLine(int lineDoc); void DeleteLines(int lineDoc, int lineCount); bool GetVisible(int lineDoc) const; bool SetVisible(int lineDocStart, int lineDocEnd, bool visible); bool HiddenLines() const; bool GetExpanded(int lineDoc) const; bool SetExpanded(int lineDoc, bool expanded); int ContractedNext(int lineDocStart) const; int GetHeight(int lineDoc) const; bool SetHeight(int lineDoc, int height); void ShowAll(); void Check() const; }; #ifdef SCI_NAMESPACE } #endif #endif
<?php namespace MediaCloud\Vendor\Symfony\Component\Routing\Loader\Configurator; use MediaCloud\Vendor\Symfony\Component\Routing\Route; use MediaCloud\Vendor\Symfony\Component\Routing\RouteCollection; /** * @author Nicolas Grekas <p@tchwork.com> */ class <API key> { use Traits\AddTrait; use Traits\HostTrait; use Traits\RouteTrait; private $parent; private $parentConfigurator; private $parentPrefixes; private $host; public function __construct(RouteCollection $parent, string $name, self $parentConfigurator = null, array $parentPrefixes = null) { $this->parent = $parent; $this->name = $name; $this->collection = new RouteCollection(); $this->route = new Route(''); $this->parentConfigurator = $parentConfigurator; // for GC control $this->parentPrefixes = $parentPrefixes; } /** * @return array */ public function __sleep() { throw new \<API key>('Cannot serialize '.__CLASS__); } public function __wakeup() { throw new \<API key>('Cannot unserialize '.__CLASS__); } public function __destruct() { if (null === $this->prefixes) { $this->collection->addPrefix($this->route->getPath()); } if (null !== $this->host) { $this->addHost($this->collection, $this->host); } $this->parent->addCollection($this->collection); } /** * Creates a sub-collection. */ final public function collection(string $name = ''): self { return new self($this->collection, $this->name.$name, $this, $this->prefixes); } /** * Sets the prefix to add to the path of all child routes. * * @param string|array $prefix the prefix, or the localized prefixes * * @return $this */ final public function prefix($prefix): self { if (\is_array($prefix)) { if (null === $this->parentPrefixes) { // no-op } elseif ($missing = array_diff_key($this->parentPrefixes, $prefix)) { throw new \LogicException(sprintf('Collection "%s" is missing prefixes for locale(s) "%s".', $this->name, implode('", "', array_keys($missing)))); } else { foreach ($prefix as $locale => $localePrefix) { if (!isset($this->parentPrefixes[$locale])) { throw new \LogicException(sprintf('Collection "%s" with locale "%s" is missing a corresponding prefix in its parent collection.', $this->name, $locale)); } $prefix[$locale] = $this->parentPrefixes[$locale].$localePrefix; } } $this->prefixes = $prefix; $this->route->setPath('/'); } else { $this->prefixes = null; $this->route->setPath($prefix); } return $this; } /** * Sets the host to use for all child routes. * * @param string|array $host the host, or the localized hosts * * @return $this */ final public function host($host): self { $this->host = $host; return $this; } private function createRoute(string $path): Route { return (clone $this->route)->setPath($path); } }
<?php namespace App\Services\Cipher; class SALTED2SHA512 extends BaseCipher { /** * SHA512 hash with salt */ public function hash($value, $salt = "") { return hash('sha512', hash('sha512', $value).$salt); } }
#pragma once #include <oa_common.h> extern "C" { //#include <openastro/camera.h> //#include <openastro/demosaic.h> #include <openastro/video/formats.h> } #include <iostream> #include <stdint.h> #include <limits> #include <algorithm> #include <string.h> #include "boostAlgorithms.h" class ImageBuffer { public: ImageBuffer(); ~ImageBuffer(); //ImageBuffer clone() const; void reset(void* img, int fmt, int width, int height); int getPixelFormat() const { return pixelFormat; } bool is8bit() const; int width() const { return x; } int height() const { return y; } int frameLength() const { return length; } const void* read_buffer() const { return current; } void* write_buffer(); void ensure8BitGreyOrRaw(); void ensure24BitRGB(); void convert(int newPixelFormat); void demosaic(int pattern, int method); void greyscale(int targetPixelFormat = -1); void flip(bool flipX, bool flipY); void boost(bool stretch, int sharpen, int multiply, int gamma, int algorithm ); private: bool reserve(int newBufferLength); void* nextBuffer(); template <size_t D> void convolve(const int8_t (&kernel)[D], double factor = 1.0, double bias = 0.0) { switch (pixelFormat) { case OA_PIX_FMT_GREY8: { const uint8_t* source = reinterpret_cast<const uint8_t*>(current); uint8_t* next = reinterpret_cast<uint8_t*>(nextBuffer()); oaconvolve(source, next, x, y, kernel, factor, bias); current = next; } break; case OA_PIX_FMT_GREY16LE: { const uint16_t* source = reinterpret_cast<const uint16_t*>(current); uint16_t* next = reinterpret_cast<uint16_t*>(nextBuffer()); oaconvolve(source, next, x, y, kernel, factor, bias); current = next; } break; } } void bin_NxN(int N, bool avg=false); void adpb(int Rb, double lambda); static void processFlip8Bit(uint8_t* imageData, int x, int y, bool flipX, bool flipY); static void processFlip16Bit(uint8_t* imageData, int x, int y, bool flipX, bool flipY); static void <API key>(uint8_t* imageData, int x, int y, bool flipX, bool flipY); const void* imageData; const void* current; void* buffer[2]; int nBuffer; int bufferLength; int pixelFormat; int x; int y; int length; bool isDemosaicked; };
<a name="0.4.2"></a> Bug Fixes * **package:** update multihashes to version 0.4.0 ([1d0c3c8](https://github.com/ipld/js-cid/commit/1d0c3c8)) <a name="0.4.1"></a> <a name="0.4.0"></a> Bug Fixes * make toV0 and toV1 return CID objects ([32902e3](https://github.com/ipld/js-cid/commit/32902e3)) * throw an error if another base is picked for cidv0 ([24f2c0b](https://github.com/ipld/js-cid/commit/24f2c0b)) <a name="0.3.6"></a> <a name="0.3.5"></a> Features * add prefix feature ([7dae38e](https://github.com/ipld/js-cid/commit/7dae38e)) <a name="0.3.4"></a> <a name="0.3.3"></a> <a name="0.3.2"></a> <a name="0.3.1"></a> Bug Fixes * dependencies ([54f29f9](https://github.com/ipfs/js-cid/commit/54f29f9)) <a name="0.3.0"></a> Features * **deps:** update to multihashes[@0](https: <a name="0.2.0"></a> Features * cidV0 and cidV1 support ([211970b](https://github.com/ipfs/js-cid/commit/211970b)) <a name="0.1.1"></a> ## 0.1.1 (2016-09-09)
""" This is an extension of the HyperNetwork, where the layer specific input z's will be conditioned on the input. We first find the max of the input across the feature channel, then we project this reduced input to the dimension of z's, which is 4 here. """ import keras.backend as K from keras.engine.topology import Layer from keras.utils.np_utils import conv_output_length from keras import initializations import numpy as np class HyperNetwork_max(Layer): """ Implements the generator network proposed by HyperNetwork paper """ def __init__(self, weight_shape, hidden_dim, strides=(1, 1), border_mode="same", nb_filters=1, dim_ordering="th", **kwargs): """ :param weight_shape: :param layer_sizes: """ self.strides = strides self.dim_ordering = dim_ordering self.border_mode = border_mode self.weight_shape = weight_shape self.nb_filters = nb_filters self.hidden_dim = hidden_dim super().__init__(**kwargs) def build(self, input_dim): self.input_channels = input_dim[1] rows, cols = input_dim[2], input_dim[3] self.ppn_gen = HyperNetwork_gen(output_shape=self.weight_shape, rows=rows, cols=cols, hidden_dim=self.hidden_dim, num_filters=self.nb_filters, input_channels=self.input_channels) self.gen_weights = self.ppn_gen.weights # Weight of the generator self.gen_bias = self.ppn_gen.biases self.b = K.zeros((self.nb_filters)) self.trainable_weights = self.gen_weights + self.gen_bias + [self.b] self.built = True def call(self, x, mask=None): self.W = self.ppn_gen.setup_output(x) # PPN generator output, used as filter # self.<API key> = [self.W] output = K.conv2d(x, self.W, border_mode=self.border_mode, strides=self.strides) output += K.reshape(self.b, (1, self.nb_filters, 1, 1)) return output def <API key>(self, input_shape): rows = input_shape[2] cols = input_shape[3] rows = conv_output_length(rows, self.weight_shape[0], self.border_mode, self.strides[0]) cols = conv_output_length(cols, self.weight_shape[1], self.border_mode, self.strides[1]) return (input_shape[0], self.nb_filters, rows, cols) class HyperNetwork_gen(object): """ Simple feed forward generator Doesn't take any explicit input """ def __init__(self, input_channels, rows, cols, output_shape, num_filters, hidden_dim, init="glorot_uniform"): self.input_rows = rows self.input_cols = cols self.input_channels = input_channels self.num_filters = num_filters self.output_shape = output_shape self.hidden_dim = hidden_dim self.init = initializations.get(init) self.bias_init = initializations.get("zero") self.setup_weights() self.num_param = np.prod(self.output_shape) * self.num_filters * \ self.input_channels def setup_weights(self): """ Setup weights for the generator """ # Layers with input and output self.w_proj_to_z = self.init((self.input_cols * self.input_rows, 4)) # self.b_proj_to_z = self.bias_init((4)) w1 = self.init((4, self.hidden_dim * self.input_channels)) b1 = self.bias_init((self.hidden_dim * self.input_channels)) w2 = self.init((self.hidden_dim, np.prod(self.output_shape) * self.num_filters)) # (hid X 3*3*33) b2 = self.bias_init((np.prod(self.output_shape) * self.num_filters)) # self.z = self.init((1, 4)) self.weights = [w1, w2, self.w_proj_to_z] self.biases = [b1, b2] def setup_output(self, x): """ Setup output tensor """ x_max = K.max(x, axis=1) x_max = K.flatten(x_max) z = K.dot(x_max, self.w_proj_to_z) #+ self.b_proj_to_z hidden = K.dot(z, self.weights[0]) + self.biases[0] hidden = K.reshape(hidden, shape=(self.input_channels, self.hidden_dim)) output = K.dot(hidden, self.weights[1]) + self.biases[1] self.output = K.reshape(output, (self.num_filters, self.input_channels, *self.output_shape)) return self.output
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Tools Reference</title> <meta name="generator" content="DocBook XSL Stylesheets V1.78.0"> <link rel="home" href="index.html" title="GDK-PixBuf Reference Manual"> <link rel="up" href="index.html" title="GDK-PixBuf Reference Manual"> <link rel="prev" href="gdk-pixbuf-XlibRGB.html" title="XlibRGB"> <link rel="next" href="gdk-pixbuf-csource.html" title="gdk-pixbuf-csource"> <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"> <td><a accesskey="p" href="gdk-pixbuf-XlibRGB.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> <td> </td> <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> <th width="100%" align="center">GDK-PixBuf Reference Manual</th> <td><a accesskey="n" href="gdk-pixbuf-csource.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> </tr></table> <div class="reference"> <div class="titlepage"> <div><div><h1 class="title"> <a name="idm140492202337440"></a>Tools Reference</h1></div></div> <hr> </div> <div class="partintro"> <div></div> <p> This part presents the tools which are shipped with the <span class="application">gdk-pixbuf</span> library. </p> <div class="toc"> <p><b>Table of Contents</b></p> <dl class="toc"> <dt> <span class="refentrytitle"><a href="gdk-pixbuf-csource.html">gdk-pixbuf-csource</a></span><span class="refpurpose"> — C code generation utility for GdkPixbuf images</span> </dt> <dt> <span class="refentrytitle"><a href="<API key>.html"><API key></a></span><span class="refpurpose"> — GdkPixbuf loader registration utility</span> </dt> </dl> </div> </div> </div> <div class="footer"> <hr> Generated by GTK-Doc V1.18.1</div> </body> </html>
package net.sf.jasperreports.components.table.fill; import java.util.HashMap; import java.util.Map; import net.sf.jasperreports.engine.JRExpression; import net.sf.jasperreports.engine.design.JRDesignExpression; import net.sf.jasperreports.engine.fill.<API key>; import net.sf.jasperreports.engine.fill.<API key>; /** * @author Lucian Chirita (lucianc@users.sourceforge.net) */ public class <API key> { private final Map<JRExpression, <API key>> builtinEvaluators; public <API key>() { builtinEvaluators = new HashMap<JRExpression, <API key>>(); } public JRDesignExpression createExpression(<API key> evaluator) { // we only need an empty expression object here // the evaluation logic is separate JRDesignExpression expression = new JRDesignExpression(); builtinEvaluators.put(expression, evaluator); return expression; } public JRDesignExpression <API key>(Object value) { <API key> evaluator = new <API key>(value); return createExpression(evaluator); } public <API key> decorate(<API key> evaluator) { if (builtinEvaluators.isEmpty()) { return evaluator; } // use the builtin expression evaluators return new <API key>(evaluator, builtinEvaluators); } public <API key> decorate(<API key> evaluator) { // always use the builtin expression evaluators, bultin expression can be added after decoration return new <API key>(evaluator, builtinEvaluators); } }
<?php abstract class Plugin{ public function __construct(){ } abstract public function run($data); }
# Yaml text yaml YAML sh #go get gopkg.in/yaml.v1 yamltest.yaml yaml enable: true hitcount: 100 servers: port: 80 host: [192.168.1.1, 192.168.1.2] seconds: 1 yaml go package main import ( "fmt" "log" "io/ioutil" "gopkg.in/yaml.v1" ) type RateLimitConfig struct { Enable bool HitCount int Servers []struct{Port int,Host []string} Seconds int } func main() { t := T{} data, err := ioutil.ReadFile("test.yaml") if err!= nil{ log.Fatal(err) } err = yaml.Unmarshal([]byte(data), &t) if err != nil { log.Fatalf("error: %v", err) } fmt.Printf("--- t:\n%v\n\n", t) d, err := yaml.Marshal(&t) if err != nil { log.Fatalf("error: %v", err) } fmt.Printf("--- t dump:\n%s\n\n", string(d)) m := make(map[interface{}]interface{}) err = yaml.Unmarshal([]byte(data), &m) if err != nil { log.Fatalf("error: %v", err) } fmt.Printf("--- m:\n%v\n\n", m) d, err = yaml.Marshal(&m) if err != nil { log.Fatalf("error: %v", err) } fmt.Printf("--- m dump:\n%s\n\n", string(d)) } 1. 2. yaml.Unmarshal 3. yaml.Marshal 4.
#ifndef AMR_AMR_H #define AMR_AMR_H #include <p4est_to_p8est.h> #include <p8est_connectivity.h> #include <p8est.h> #include <p8est_extended.h> #include <p8est_vtk.h> #include <p8est_iterate.h> #include <time.h> #include <p8est_iterate.h> #include <p8est.h> #include <p8est_bits.h> #include <p8est_mesh.h> /** * Data set for each cell */ typedef struct data { double f0; /* init function value */ double dfdx, dfdy, dfdz; double V; double S; double f1; /* first function value */ double f2; /* second function value */ double e; /* error estimate - fabs(f1-f2) */ } data_t; typedef struct point { double x; double y; double z; } point_t; /** * Solver function for 3 params * @param x * @param y * @param z * @return */ typedef double (*t_func_3)(double, double, double); typedef double (*t_func_5)(double, double, double, double, double); /** * Describes current problem */ typedef struct ctx { double center[P4EST_DIM]; // coordinates of the center double width; double count; double level; double err; t_func_3 f; } ctx_t; /** * Solver function * @param x * @param y * @param z * @return */ double s_func(double x, double y, double z) { return pow(x, 2.) + pow(y, 2.) + pow(z, 2.); } double grad(t_func_3 f, double x, double y, double z, double nx, double ny, double nz, double dt) { return (nx * (f(x+dt, y, z) - f(x+dt,y,z)) / dt / 2 + ny * (f(x, y+dt, z) - f(x+dt,y,z)) / dt / 2 + nz * (f(x, y, z+dt) - f(x+dt,y,z)) / dt / 2); } double laplacian(t_func_3 f, double x, double y, double z, double dt) { return 1/pow(dt,2.) * (f(x + dt, y, z) + f(x - dt, y, z) + f(x, y + dt, z) + f(x, y - dt, z) + f(x, y, z + dt) + f(x, y, z - dt) - 6 * f(x, y, z)); } void get_midpoint(p8est_t *p8est, p4est_topidx_t tree, p8est_quadrant_t *q, double xyz[3]); void init(p8est_t *p4est, p4est_topidx_t which_tree, p8est_quadrant_t *q); int refine_always (p8est_t *p8est, p4est_topidx_t which_tree, p8est_quadrant_t *q); int refine_fn (p8est_t *p8est, p4est_topidx_t which_tree, p8est_quadrant_t *q); int coarsen_fn (p8est_t *p8est, p4est_topidx_t which_tree, p8est_quadrant_t **children); void volume_iter(<API key> *info, void *user_data); void face_iter_f1(<API key> *info, void *user_data); void calc_error_iter(<API key> *info, void *user_data); void mesh_iter(p8est_t *p8est, p8est_mesh_t *mesh); void mesh_neighbors_iter(p8est_t *p8est, p8est_ghost_t *ghost, p8est_mesh_t *mesh, void *ghost_data); void get_solution(<API key> *info, void *user_data, int f); void get_solution_f1(<API key> *info, void *user_data); void get_solution_f2(<API key> *info, void *user_data); void get_error_estimate(<API key> *info, void *user_data); void write_solution(p8est_t *p8est, int step); void solve(p8est_t *p8est, int step); /** * Debug print quadrant * @param q * @param rank */ void quadrant_print(p8est_quadrant_t *, int); #endif //AMR_AMR_H
use async_graphql::{Context, FieldResult}; use chrono::prelude::*; use eyre::{ // eyre, Result, // Context as _, }; use <API key>::{JsonRow, Record}; // use async_graphql::{ // // Context, // FieldResult, // use <API key>::Record as _; use crate::{built_info, server::Server}; #[derive(Default)] pub struct ServerQuery; #[derive(async_graphql::InputObject, Default, Debug)] pub struct FeatureFlagsInput { filter: Option<Vec<String>>, } #[async_graphql::Object] impl ServerQuery { async fn server_version(&self) -> String { let version_number = built_info::GIT_VERSION.unwrap_or("DEV"); let dirty_string = if built_info::GIT_DIRTY.unwrap_or(false) { " + Uncommitted Changes" } else { "" }; // eg. Teg 0.1.0 for linux/x86_64 format!( "Teg {version_number}{dirty_string}", version_number = version_number, dirty_string = dirty_string, ) } Returns the current date time from the server. Useful for determining the connection latency. async fn ping(&self) -> DateTime<Utc> { Utc::now() } // TODO: Do we need pending updates still in the new architecture? // hasPendingUpdates #[instrument(skip(self, ctx))] async fn server_name<'ctx>( &self, ctx: &'ctx Context<'_>, ) -> FieldResult<Option<String>> { let db: &crate::Db = ctx.data()?; async move { let servers = sqlx::query_as!( JsonRow, r SELECT servers.props FROM servers WHERE (servers.props->'is_self')::boolean IS TRUE " ) .fetch_all(db) .await?; let servers = Server::from_rows(servers)?; let name = servers.into_iter().next().map(|server| server.name); Result::<_>::Ok(name) } // log the backtrace which is otherwise lost by FieldResult .await .map_err(|err| { warn!("{:?}", err); err.into() }) } #[instrument(skip(self))] async fn feature_flags( &self, #[graphql(default)] input: FeatureFlagsInput, ) -> FieldResult<Vec<String>> { let mut flags: Vec<String> = vec![ // Feature Flags Go Here! // "slicer".to_string(), ]; if std::env::var("ENABLE_SLICER") == Ok("1".to_string()) { flags.push("slicer".to_string()); } if let Some(filter) = input.filter { flags = flags .into_iter() .filter(|flag| filter.contains(flag)) .collect(); } Ok(flags) } }
using System; using System.Collections.Generic; // Lists using System.Text; // stringbuilder using System.Drawing; // pens etc using System.IO; // file io using System.IO.Ports; // serial using System.Windows.Forms; // Forms using System.Collections; // hashs using System.Text.RegularExpressions; // regex using System.Xml; // GE xml alt reader using System.Net; // dns, ip address using System.Net.Sockets; // tcplistner using GMap.NET; using GMap.NET.WindowsForms; using System.Globalization; // language using GMap.NET.WindowsForms.Markers; using ZedGraph; // Graphs using System.Drawing.Drawing2D; // written by michael oborne namespace ArdupilotMega.GCSViews { partial class FlightData : MyUserControl { ArdupilotMega.MAVLink comPort = MainV2.comPort; public static int threadrun = 0; StreamWriter swlog; int tickStart = 0; <API key> list1 = new <API key>(1200); <API key> list2 = new <API key>(1200); <API key> list3 = new <API key>(1200); <API key> list4 = new <API key>(1200); <API key> list5 = new <API key>(1200); <API key> list6 = new <API key>(1200); <API key> list7 = new <API key>(1200); <API key> list8 = new <API key>(1200); <API key> list9 = new <API key>(1200); <API key> list10 = new <API key>(1200); System.Reflection.PropertyInfo list1item = null; System.Reflection.PropertyInfo list2item = null; System.Reflection.PropertyInfo list3item = null; System.Reflection.PropertyInfo list4item = null; System.Reflection.PropertyInfo list5item = null; System.Reflection.PropertyInfo list6item = null; System.Reflection.PropertyInfo list7item = null; System.Reflection.PropertyInfo list8item = null; System.Reflection.PropertyInfo list9item = null; System.Reflection.PropertyInfo list10item = null; CurveItem list1curve; CurveItem list2curve; CurveItem list3curve; CurveItem list4curve; CurveItem list5curve; CurveItem list6curve; CurveItem list7curve; CurveItem list8curve; CurveItem list9curve; CurveItem list10curve; internal static GMapOverlay kmlpolygons; internal static GMapOverlay geofence; bool huddropout = false; bool huddropoutresize = false; List<PointLatLng> trackPoints = new List<PointLatLng>(); const float rad2deg = (float)(180 / Math.PI); const float deg2rad = (float)(1.0 / rad2deg); public static hud.HUD myhud = null; public static GMapControl mymap = null; bool playingLog = false; public static PointLatLngAlt GuidedModeWP = new PointLatLngAlt(); AviWriter aviwriter; public SplitContainer MainHcopy = null; public static FlightData instance; protected override void Dispose(bool disposing) { threadrun = 0; MainV2.comPort.logreadmode = false; MainV2.config["FlightSplitter"] = MainH.SplitterDistance.ToString(); System.Threading.Thread.Sleep(100); base.Dispose(disposing); } public FlightData() { InitializeComponent(); instance = this; mymap = gMapControl1; myhud = hud1; MainHcopy = MainH; // setup default tuning graph if (MainV2.config["<API key>"] != null) { string line = MainV2.config["<API key>"].ToString(); string[] lines = line.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries); foreach (string option in lines) { <API key>((object)(new CheckBox() { Name = option, Checked = true }), new EventArgs()); } } else { <API key>((object)(new CheckBox() { Name = "roll", Checked = true }), new EventArgs()); <API key>((object)(new CheckBox() { Name = "pitch", Checked = true }), new EventArgs()); <API key>((object)(new CheckBox() { Name = "nav_roll", Checked = true }), new EventArgs()); <API key>((object)(new CheckBox() { Name = "nav_pitch", Checked = true }), new EventArgs()); } List<string> list = new List<string>(); //foreach (object obj in Enum.GetValues(typeof(MAVLink.MAV_ACTION))) #if MAVLINK10 { list.Add("LOITER_UNLIM"); list.Add("RETURN_TO_LAUNCH"); list.Add("<API key>"); } #else { list.Add("RETURN"); list.Add("HALT"); list.Add("CONTINUE"); list.Add("SET_MANUAL"); list.Add("SET_AUTO"); list.Add("STORAGE_READ"); list.Add("STORAGE_WRITE"); list.Add("CALIBRATE_RC"); list.Add("NAVIGATE"); list.Add("LOITER"); list.Add("TAKEOFF"); list.Add("CALIBRATE_GYRO"); } #endif CMB_action.DataSource = list; CMB_modes.DataSource = Enum.GetNames(typeof(Common.apmmodes)); CMB_setwp.SelectedIndex = 0; zg1.Visible = true; CreateChart(zg1); // config map gMapControl1.MapType = MapType.GoogleSatellite; gMapControl1.MinZoom = 1; gMapControl1.CacheLocation = Path.GetDirectoryName(Application.ExecutablePath) + "/gmapcache/"; gMapControl1.OnMapZoomChanged += new MapZoomChanged(<API key>); gMapControl1.Zoom = 3; gMapControl1.RoutesEnabled = true; gMapControl1.PolygonsEnabled = true; kmlpolygons = new GMapOverlay(gMapControl1, "kmlpolygons"); gMapControl1.Overlays.Add(kmlpolygons); geofence = new GMapOverlay(gMapControl1, "geofence"); gMapControl1.Overlays.Add(geofence); polygons = new GMapOverlay(gMapControl1, "polygons"); gMapControl1.Overlays.Add(polygons); routes = new GMapOverlay(gMapControl1, "routes"); gMapControl1.Overlays.Add(routes); try { if (MainV2.getConfig("GspeedMAX") != "") { Gspeed.MaxValue = float.Parse(MainV2.getConfig("GspeedMAX")); } } catch { } } void <API key>(object sender, DrawItemEventArgs e) { // Draw the background of the ListBox control for each item. //e.DrawBackground(); // Define the default color of the brush as black. Brush myBrush = Brushes.Black; LinearGradientBrush linear = new LinearGradientBrush(e.Bounds, Color.FromArgb(0x94, 0xc1, 0x1f), Color.FromArgb(0xcd, 0xe2, 0x96), LinearGradientMode.Vertical); e.Graphics.FillRectangle(linear, e.Bounds); // Draw the current item text based on the current Font // and the custom brush settings. e.Graphics.DrawString(((TabControl)sender).TabPages[e.Index].Text.ToString(), e.Font, myBrush, e.Bounds, StringFormat.GenericDefault); // If the ListBox has focus, draw a focus rectangle around the selected item. e.DrawFocusRectangle(); } void <API key>() { Zoomlevel.Value = Convert.ToDecimal(gMapControl1.Zoom); } private void FlightData_Load(object sender, EventArgs e) { MainV2.bs = bindingSource1; System.Threading.Thread t11 = new System.Threading.Thread(new System.Threading.ThreadStart(mainloop)) { IsBackground = true, Name = "FlightData updater" }; t11.Start(); //MainH.threads.Add(t11); Zoomlevel.Minimum = gMapControl1.MinZoom; Zoomlevel.Maximum = gMapControl1.MaxZoom + 1; Zoomlevel.Value = Convert.ToDecimal(gMapControl1.Zoom); if (MainV2.config["CHK_autopan"] != null) CHK_autopan.Checked = bool.Parse(MainV2.config["CHK_autopan"].ToString()); } private void mainloop() { //System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US"); //System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); threadrun = 1; EndPoint Remote = (EndPoint)(new IPEndPoint(IPAddress.Any, 0)); DateTime lastdata = DateTime.MinValue; DateTime tracklast = DateTime.Now.AddSeconds(0); DateTime tunning = DateTime.Now.AddSeconds(0); DateTime vidrec = DateTime.Now.AddSeconds(0); DateTime waypoints = DateTime.Now.AddSeconds(0); //comPort.stopall(true); while (threadrun == 1) { if (threadrun == 0) { return; } if (MainV2.giveComport == true) { System.Threading.Thread.Sleep(20); continue; } if (!comPort.BaseStream.IsOpen) lastdata = DateTime.MinValue; // re-request servo data if (!(lastdata.AddSeconds(8) > DateTime.Now) && comPort.BaseStream.IsOpen) { //Console.WriteLine("REQ streams - flightdata"); try { //System.Threading.Thread.Sleep(1000); //comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.RAW_CONTROLLER, 0); // request servoout comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.EXTENDED_STATUS, MainV2.cs.ratestatus); // mode comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.POSITION, MainV2.cs.rateposition); // request gps comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.EXTRA1, MainV2.cs.rateattitude); // request attitude comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.EXTRA2, MainV2.cs.rateattitude); // request vfr comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.EXTRA3, MainV2.cs.ratesensors); // request extra stuff - tridge comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.RAW_SENSORS, MainV2.cs.ratesensors); // request raw sensor comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.RC_CHANNELS, MainV2.cs.raterc); // request rc info } catch { } lastdata = DateTime.Now.AddSeconds(12); // prevent flooding } if (!MainV2.comPort.logreadmode) System.Threading.Thread.Sleep(100); // max is only ever 10 hz try { if (aviwriter != null && vidrec.AddMilliseconds(100) <= DateTime.Now) { vidrec = DateTime.Now; hud1.streamjpgenable = true; //aviwriter.avi_start("test.avi"); // add a frame aviwriter.avi_add(hud1.streamjpg.ToArray(), (uint)hud1.streamjpg.Length); // write header - so even partial files will play aviwriter.avi_end(hud1.Width, hud1.Height, 10); } } catch { } if (MainV2.comPort.logreadmode && MainV2.comPort.logplaybackfile != null) { if (threadrun == 0) { return; } <API key>(true); if (comPort.BaseStream.IsOpen) MainV2.comPort.logreadmode = false; DateTime logplayback = MainV2.comPort.lastlogread; try { MainV2.comPort.readPacket(); } catch { } <API key>(); int act = (int)(MainV2.comPort.lastlogread - logplayback).TotalMilliseconds; if (act > 9999 || act < 0) act = 0; int ts = 0; try { ts = (int)(act / (double)NUM_playbackspeed.Value); } catch { } if (ts > 0) System.Threading.Thread.Sleep(ts); if (threadrun == 0) { return; } tracklast = tracklast.AddMilliseconds(ts - act); tunning = tunning.AddMilliseconds(ts - act); if (tracklast.Month != DateTime.Now.Month) { tracklast = DateTime.Now; tunning = DateTime.Now; } if (MainV2.comPort.logplaybackfile.BaseStream.Position == MainV2.comPort.logplaybackfile.BaseStream.Length) { MainV2.comPort.logreadmode = false; } } else { // ensure we know to stop if (MainV2.comPort.logreadmode) MainV2.comPort.logreadmode = false; <API key>(false); if (!playingLog && MainV2.comPort.logplaybackfile != null) { continue; } } try { //Console.WriteLine(DateTime.Now.Millisecond); updateBindingSource(); //Console.WriteLine(DateTime.Now.Millisecond + " done "); if (tunning.AddMilliseconds(50) < DateTime.Now && CB_tuning.Checked == true) { double time = (Environment.TickCount - tickStart) / 1000.0; if (list1item != null) list1.Add(time, (float)list1item.GetValue((object)MainV2.cs, null)); if (list2item != null) list2.Add(time, (float)list2item.GetValue((object)MainV2.cs, null)); if (list3item != null) list3.Add(time, (float)list3item.GetValue((object)MainV2.cs, null)); if (list4item != null) list4.Add(time, (float)list4item.GetValue((object)MainV2.cs, null)); if (list5item != null) list5.Add(time, (float)list5item.GetValue((object)MainV2.cs, null)); if (list6item != null) list6.Add(time, (float)list6item.GetValue((object)MainV2.cs, null)); if (list7item != null) list7.Add(time, (float)list7item.GetValue((object)MainV2.cs, null)); if (list8item != null) list8.Add(time, (float)list8item.GetValue((object)MainV2.cs, null)); if (list9item != null) list9.Add(time, (float)list9item.GetValue((object)MainV2.cs, null)); if (list10item != null) list10.Add(time, (float)list10item.GetValue((object)MainV2.cs, null)); } if (tracklast.AddSeconds(1) < DateTime.Now) { gMapControl1.HoldInvalidation = true; while (gMapControl1.inOnPaint == true) { System.Threading.Thread.Sleep(1); } if (trackPoints.Count > int.Parse(MainV2.config["NUM_tracklength"].ToString())) { trackPoints.RemoveRange(0, trackPoints.Count - int.Parse(MainV2.config["NUM_tracklength"].ToString())); } if (MainV2.cs.lat != 0) trackPoints.Add(new PointLatLng(MainV2.cs.lat, MainV2.cs.lng)); // if (CB_tuning.Checked == false) // draw if in view { if (MainV2.comPort.logreadmode && MainV2.comPort.logplaybackfile != null) { // this is for the pulled wp list from a mavlink logfile FlightPlanner.pointlist.Clear(); FlightPlanner.pointlist.AddRange(MainV2.comPort.wps); } while (gMapControl1.inOnPaint == true) { System.Threading.Thread.Sleep(1); } updateClearRoutes(); route = new GMapRoute(trackPoints, "track"); //track.Stroke = Pens.Red; //route.Stroke = new Pen(Color.FromArgb(144, Color.Red)); //route.Stroke.Width = 5; //route.Tag = "track"; routes.Routes.Add(route); if (waypoints.AddSeconds(10) < DateTime.Now) { //Console.WriteLine("Doing FD WP's"); polygons.Markers.Clear(); foreach (PointLatLngAlt plla in FlightPlanner.pointlist) { if (plla == null || plla.Lng == 0 || plla.Lat == 0) break; addpolygonmarker(plla.Tag, plla.Lng, plla.Lat, (int)plla.Alt,plla.color,polygons); } RegeneratePolygon(); waypoints = DateTime.Now; } if (MainV2.cs.mode.ToLower() == "guided" && GuidedModeWP != null && GuidedModeWP.Lat != 0) { addpolygonmarker("Guided Mode", GuidedModeWP.Lng, GuidedModeWP.Lat, (int)GuidedModeWP.Alt, Color.Blue, routes); } //routes.Polygons.Add(poly); if (trackPoints.Count > 0) { PointLatLng currentloc = new PointLatLng(MainV2.cs.lat, MainV2.cs.lng); if (MainV2.cs.firmware == MainV2.Firmwares.ArduPlane) { routes.Markers.Add(new GMapMarkerPlane(currentloc, MainV2.cs.yaw, MainV2.cs.groundcourse, MainV2.cs.nav_bearing, MainV2.cs.target_bearing)); } else { routes.Markers.Add(new GMapMarkerQuad(currentloc, MainV2.cs.yaw, MainV2.cs.groundcourse, MainV2.cs.nav_bearing)); } if (trackPoints[trackPoints.Count - 1].Lat != 0 && (DateTime.Now.Second % 4 == 0) && CHK_autopan.Checked) { updateMapPosition(currentloc); } if (trackPoints.Count == 1 && gMapControl1.Zoom == 3) // 3 is the default load zoom { updateMapPosition(currentloc); updateMapZoom(17); //gMapControl1.<API key>("routes");// ZoomAndCenterRoutes("routes"); } } gMapControl1.HoldInvalidation = false; gMapControl1.Invalidate(); } tracklast = DateTime.Now; } } catch (Exception ex) { Console.WriteLine("FD Main loop exception " + ex.ToString()); } } Console.WriteLine("FD Main loop exit"); } // to prevent cross thread calls while in a draw and exception private void updateClearRoutes() { // not async this.Invoke((System.Windows.Forms.MethodInvoker)delegate() { routes.Markers.Clear(); routes.Routes.Clear(); }); } private void <API key>(bool playing) { if (playing) { this.BeginInvoke((System.Windows.Forms.MethodInvoker)delegate() { try { BUT_playlog.Text = "Pause"; } catch { } }); } else { this.BeginInvoke((System.Windows.Forms.MethodInvoker)delegate() { try { BUT_playlog.Text = "Play"; } catch { } }); } } private void updateBindingSource() { this.BeginInvoke((System.Windows.Forms.MethodInvoker)delegate() { try { MainV2.cs.<API key>(bindingSource1); } catch { } }); } private void updateMapPosition(PointLatLng currentloc) { this.BeginInvoke((MethodInvoker)delegate() { try { gMapControl1.Position = currentloc; hud1.Refresh(); } catch { } }); } private void updateMapZoom(int zoom) { this.BeginInvoke((MethodInvoker)delegate() { try { gMapControl1.Zoom = zoom; } catch { } }); } private void <API key>() { this.BeginInvoke((MethodInvoker)delegate() { try { tracklog.Value = (int)(MainV2.comPort.logplaybackfile.BaseStream.Position / (double)MainV2.comPort.logplaybackfile.BaseStream.Length * 100); lbl_logpercent.Text = (MainV2.comPort.logplaybackfile.BaseStream.Position / (double)MainV2.comPort.logplaybackfile.BaseStream.Length).ToString("0.00%"); } catch { } }); } private void addpolygonmarker(string tag, double lng, double lat, int alt, Color? color, GMapOverlay overlay) { try { PointLatLng point = new PointLatLng(lat, lng); <API key> m = new <API key>(point); m.ToolTipMode = MarkerTooltipMode.Always; m.ToolTipText = tag; m.Tag = tag; GMapMarkerRect mBorders = new GMapMarkerRect(point); { mBorders.InnerMarker = m; try { mBorders.wprad = (int)float.Parse(ArdupilotMega.MainV2.config["TXT_WPRad"].ToString()); } catch { } mBorders.MainMap = gMapControl1; if (color.HasValue) { mBorders.Color = color.Value; } } overlay.Markers.Add(m); overlay.Markers.Add(mBorders); } catch (Exception) { } } <summary> used to redraw the polygon </summary> void RegeneratePolygon() { List<PointLatLng> polygonPoints = new List<PointLatLng>(); if (routes == null) return; foreach (GMapMarker m in polygons.Markers) { if (m is GMapMarkerRect) { m.Tag = polygonPoints.Count; polygonPoints.Add(m.Position); } } if (polygon == null) { polygon = new GMapPolygon(polygonPoints, "polygon test"); polygons.Polygons.Add(polygon); } else { polygon.Points.Clear(); polygon.Points.AddRange(polygonPoints); polygon.Stroke = new Pen(Color.Yellow, 4); if (polygons.Polygons.Count == 0) { polygons.Polygons.Add(polygon); } else { gMapControl1.<API key>(polygon); } } } GMapPolygon polygon; GMapOverlay polygons; GMapOverlay routes; GMapRoute route; public void CreateChart(ZedGraphControl zgc) { GraphPane myPane = zgc.GraphPane; // Set the titles and axis labels myPane.Title.Text = "Tuning"; myPane.XAxis.Title.Text = "Time (s)"; myPane.YAxis.Title.Text = "Unit"; // Show the x axis grid myPane.XAxis.MajorGrid.IsVisible = true; myPane.XAxis.Scale.Min = 0; myPane.XAxis.Scale.Max = 5; // Make the Y axis scale red myPane.YAxis.Scale.FontSpec.FontColor = Color.White; myPane.YAxis.Title.FontSpec.FontColor = Color.White; // turn off the opposite tics so the Y tics don't show up on the Y2 axis myPane.YAxis.MajorTic.IsOpposite = false; myPane.YAxis.MinorTic.IsOpposite = false; // Don't display the Y zero line myPane.YAxis.MajorGrid.IsZeroLine = true; // Align the Y axis labels so they are flush to the axis myPane.YAxis.Scale.Align = AlignP.Inside; // Manually set the axis range //myPane.YAxis.Scale.Min = -1; //myPane.YAxis.Scale.Max = 1; // Fill the axis background with a gradient //myPane.Chart.Fill = new Fill(Color.White, Color.LightGray, 45.0f); // Sample at 50ms intervals ZedGraphTimer.Interval = 100; //timer1.Enabled = true; //timer1.Start(); // Calculate the Axis Scale Ranges zgc.AxisChange(); tickStart = Environment.TickCount; } private void timer1_Tick(object sender, EventArgs e) { try { // Make sure that the curvelist has at least one curve if (zg1.GraphPane.CurveList.Count <= 0) return; // Get the first CurveItem in the graph LineItem curve = zg1.GraphPane.CurveList[0] as LineItem; if (curve == null) return; // Get the PointPairList IPointListEdit list = curve.Points as IPointListEdit; // If this is null, it means the reference at curve.Points does not // support IPointListEdit, so we won't be able to modify it if (list == null) return; // Time is measured in seconds double time = (Environment.TickCount - tickStart) / 1000.0; // Keep the X scale at a rolling 30 second interval, with one // major step between the max X value and the end of the axis Scale xScale = zg1.GraphPane.XAxis.Scale; if (time > xScale.Max - xScale.MajorStep) { xScale.Max = time + xScale.MajorStep; xScale.Min = xScale.Max - 10.0; } // Make sure the Y axis is rescaled to accommodate actual data zg1.AxisChange(); // Force a redraw zg1.Invalidate(); } catch { } } private void <API key>(object sender, <API key> e) { ZedGraphTimer.Stop(); threadrun = 0; if (comPort.BaseStream.IsOpen) { comPort.Close(); } } private void <API key>(object sender, EventArgs e) { trackPoints.Clear(); } private void BUT_save_log_Click(object sender, EventArgs e) { // close existing log first if (swlog != null) swlog.Close(); try { Directory.CreateDirectory(Path.GetDirectoryName(Application.ExecutablePath) + Path.<API key> + @"logs"); swlog = new StreamWriter(Path.GetDirectoryName(Application.ExecutablePath) + Path.<API key> + @"logs" + Path.<API key> + DateTime.Now.ToString("yyyy-MM-dd HH-mm") + " telem.log"); } catch { CustomMessageBox.Show("Log creation error"); } } private void BUTactiondo_Click(object sender, EventArgs e) { try { ((Button)sender).Enabled = false; #if MAVLINK10 comPort.doCommand((MAVLink.MAV_CMD)Enum.Parse(typeof(MAVLink.MAV_CMD), CMB_action.Text),0,0,0,0,0,0,0); #else comPort.doAction((MAVLink.MAV_ACTION)Enum.Parse(typeof(MAVLink.MAV_ACTION), "MAV_ACTION_" + CMB_action.Text)); #endif } catch { CustomMessageBox.Show("The Command failed to execute"); } ((Button)sender).Enabled = true; } private void <API key>(object sender, EventArgs e) { try { ((Button)sender).Enabled = false; //comPort.doAction(MAVLink.MAV_ACTION.MAV_ACTION_RETURN); // set nav from //System.Threading.Thread.Sleep(100); comPort.setWPCurrent(1); // set nav to //System.Threading.Thread.Sleep(100); //comPort.doAction(MAVLink.MAV_ACTION.MAV_ACTION_SET_AUTO); // set auto } catch { CustomMessageBox.Show("The command failed to execute"); } ((Button)sender).Enabled = true; } private void FlightData_Resize(object sender, EventArgs e) { //Gspeed; //Galt; //Gheading; //<API key>; } private void <API key>(object sender, EventArgs e) { if (CB_tuning.Checked) { splitContainer1.Panel1Collapsed = false; ZedGraphTimer.Enabled = true; ZedGraphTimer.Start(); zg1.Visible = true; zg1.Refresh(); } else { splitContainer1.Panel1Collapsed = true; ZedGraphTimer.Enabled = false; ZedGraphTimer.Stop(); zg1.Visible = false; } } private void <API key>(object sender, EventArgs e) { hud1.Width = MainH.SplitterDistance; SubMainLeft.SplitterDistance = hud1.Height + 2; } private void BUT_RAWSensor_Click(object sender, EventArgs e) { Form temp = new RAW_Sensor(); ThemeManager.ApplyThemeTo(temp); temp.Show(); } private void gMapControl1_Click(object sender, EventArgs e) { } PointLatLng gotolocation = new PointLatLng(); private void <API key>(object sender, MouseEventArgs e) { gotolocation = gMapControl1.FromLocalToLatLng(e.X, e.Y); } private void <API key>(object sender, EventArgs e) { if (!MainV2.comPort.BaseStream.IsOpen) { CustomMessageBox.Show("Please Connect First"); return; } string alt = "100"; if (MainV2.cs.firmware == MainV2.Firmwares.ArduCopter2) { alt = (10 * MainV2.cs.multiplierdist).ToString("0"); } else { alt = (100 * MainV2.cs.multiplierdist).ToString("0"); } if (DialogResult.Cancel == Common.InputBox("Enter Alt", "Enter Guided Mode Alt", ref alt)) return; int intalt = (int)(100 * MainV2.cs.multiplierdist); if (!int.TryParse(alt, out intalt)) { CustomMessageBox.Show("Bad Alt"); return; } if (gotolocation.Lat == 0 || gotolocation.Lng == 0) { CustomMessageBox.Show("Bad Lat/Long"); return; } Locationwp gotohere = new Locationwp(); gotohere.id = (byte)MAVLink.MAV_CMD.WAYPOINT; gotohere.alt = (float)(intalt / MainV2.cs.multiplierdist); // back to m gotohere.lat = (float)(gotolocation.Lat); gotohere.lng = (float)(gotolocation.Lng); try { MainV2.giveComport = true; MainV2.comPort.setWP(gotohere, 0, MAVLink.MAV_FRAME.GLOBAL_RELATIVE_ALT, (byte)2); GuidedModeWP = new PointLatLngAlt(gotohere.lat, gotohere.lng, gotohere.alt,"Guided Mode"); MainV2.giveComport = false; } catch (Exception ex) { MainV2.giveComport = false; CustomMessageBox.Show("Error sending command : " + ex.Message); } } private void <API key>(object sender, EventArgs e) { try { if (gMapControl1.MaxZoom + 1 == (double)Zoomlevel.Value) { gMapControl1.Zoom = (double)Zoomlevel.Value - .1; } else { gMapControl1.Zoom = (double)Zoomlevel.Value; } } catch { } } private void <API key>(object sender, MouseEventArgs e) { PointLatLng point = gMapControl1.FromLocalToLatLng(e.X, e.Y); if (e.Button == MouseButtons.Left) { double latdif = gotolocation.Lat - point.Lat; double lngdif = gotolocation.Lng - point.Lng; try { gMapControl1.Position = new PointLatLng(gMapControl1.Position.Lat + latdif, gMapControl1.Position.Lng + lngdif); } catch { } } } private void <API key>(object sender, EventArgs e) { if (MainV2.cam != null) { MainV2.cam.camimage += new WebCamService.CamImage(cam_camimage); } } void cam_camimage(Image camimage) { hud1.bgimage = camimage; } private void BUT_Homealt_Click(object sender, EventArgs e) { if (MainV2.cs.altoffsethome != 0) { MainV2.cs.altoffsethome = 0; } else { MainV2.cs.altoffsethome = MainV2.cs.alt / MainV2.cs.multiplierdist; } } private void gMapControl1_Resize(object sender, EventArgs e) { gMapControl1.Zoom = gMapControl1.Zoom + 0.01; } private void BUT_loadtelem_Click(object sender, EventArgs e) { if (MainV2.comPort.logplaybackfile != null) { try { MainV2.comPort.logplaybackfile.Close(); MainV2.comPort.logplaybackfile = null; } catch { } } OpenFileDialog fd = new OpenFileDialog(); fd.AddExtension = true; fd.Filter = "Ardupilot Telemtry log (*.tlog)|*.tlog|Mavlink Log (*.mavlog)|*.mavlog"; fd.InitialDirectory = Path.GetDirectoryName(Application.ExecutablePath) + Path.<API key> + @"logs"; fd.DefaultExt = ".tlog"; DialogResult result = fd.ShowDialog(); string file = fd.FileName; if (file != "") { try { <API key>(sender, e); MainV2.comPort.logreadmode = false; MainV2.comPort.logplaybackfile = new BinaryReader(File.OpenRead(file)); MainV2.comPort.lastlogread = DateTime.MinValue; tracklog.Value = 0; tracklog.Minimum = 0; tracklog.Maximum = 100; } catch { CustomMessageBox.Show("Error: Failed to write log file"); } } } private void BUT_playlog_Click(object sender, EventArgs e) { if (MainV2.comPort.logreadmode) { MainV2.comPort.logreadmode = false; ZedGraphTimer.Stop(); playingLog = false; } else { // <API key>(sender, e); MainV2.comPort.logreadmode = true; list1.Clear(); list2.Clear(); list3.Clear(); list4.Clear(); list5.Clear(); list6.Clear(); list7.Clear(); list8.Clear(); list9.Clear(); list10.Clear(); tickStart = Environment.TickCount; zg1.GraphPane.XAxis.Scale.Min = 0; zg1.GraphPane.XAxis.Scale.Max = 1; ZedGraphTimer.Start(); playingLog = true; } } private void tracklog_Scroll(object sender, EventArgs e) { <API key>(sender, e); MainV2.comPort.lastlogread = DateTime.MinValue; if (MainV2.comPort.logplaybackfile != null) MainV2.comPort.logplaybackfile.BaseStream.Position = (long)(MainV2.comPort.logplaybackfile.BaseStream.Length * (tracklog.Value / 100.0)); <API key>(); } bool loaded = false; private void MainH_SplitterMoved(object sender, SplitterEventArgs e) { if (loaded == true) { // startup check MainV2.config["FlightSplitter"] = MainH.SplitterDistance.ToString(); } loaded = true; hud1.Width = MainH.Panel1.Width; } private void tabPage1_Resize(object sender, EventArgs e) { int mywidth; if (tabGauges.Width < 500) { Gvspeed.Visible = false; mywidth = tabGauges.Width / 3; Gspeed.Height = mywidth; Galt.Height = mywidth; Gheading.Height = mywidth; Gspeed.Location = new Point(0, 0); } else { Gvspeed.Visible = true; mywidth = tabGauges.Width / 4; Gvspeed.Height = mywidth; Gspeed.Height = mywidth; Galt.Height = mywidth; Gheading.Height = mywidth; Gvspeed.Location = new Point(0, 0); Gspeed.Location = new Point(Gvspeed.Right, 0); } Galt.Location = new Point(Gspeed.Right, 0); Gheading.Location = new Point(Galt.Right, 0); } private void BUT_setmode_Click(object sender, EventArgs e) { MainV2.comPort.setMode(CMB_modes.Text); } private void BUT_setwp_Click(object sender, EventArgs e) { try { ((Button)sender).Enabled = false; comPort.setWPCurrent((ushort)CMB_setwp.SelectedIndex); // set nav to } catch { CustomMessageBox.Show("The command failed to execute"); } ((Button)sender).Enabled = true; } private void CMB_setwp_Click(object sender, EventArgs e) { CMB_setwp.Items.Clear(); CMB_setwp.Items.Add("0 (Home)"); if (MainV2.comPort.param["CMD_TOTAL"] != null) { int wps = int.Parse(MainV2.comPort.param["CMD_TOTAL"].ToString()); for (int z = 1; z <= wps; z++) { CMB_setwp.Items.Add(z.ToString()); } } } private void BUT_quickauto_Click(object sender, EventArgs e) { try { ((Button)sender).Enabled = false; #if MAVLINK10 MainV2.comPort.setMode("AUTO"); #else comPort.doAction(MAVLink.MAV_ACTION.MAV_ACTION_SET_AUTO); #endif } catch { CustomMessageBox.Show("The Command failed to execute"); } ((Button)sender).Enabled = true; } private void BUT_quickrtl_Click(object sender, EventArgs e) { try { ((Button)sender).Enabled = false; #if MAVLINK10 MainV2.comPort.setMode("RTL"); #else comPort.doAction(MAVLink.MAV_ACTION.MAV_ACTION_RETURN); #endif } catch { CustomMessageBox.Show("The Command failed to execute"); } ((Button)sender).Enabled = true; } private void <API key>(object sender, EventArgs e) { try { ((Button)sender).Enabled = false; #if MAVLINK10 MainV2.comPort.setMode("MANUAL"); #else comPort.doAction(MAVLink.MAV_ACTION.<API key>); #endif } catch { CustomMessageBox.Show("The Command failed to execute"); } ((Button)sender).Enabled = true; } private void BUT_log2kml_Click(object sender, EventArgs e) { if (DialogResult.Cancel == Common.MessageShowAgain("Tlog to KML Firmware Version", "When converting logs, ensure your Firmware version is set correctly.\n(Near your com port selection.)")) { return; } Form frm = new MavlinkLog(); ThemeManager.ApplyThemeTo(frm); frm.ShowDialog(); } private void BUT_joystick_Click(object sender, EventArgs e) { Form joy = new JoystickSetup(); ThemeManager.ApplyThemeTo(joy); joy.Show(); } private void CMB_modes_Click(object sender, EventArgs e) { CMB_modes.DataSource = Enum.GetNames(Common.getModes()); } private void hud1_DoubleClick(object sender, EventArgs e) { if (huddropout) return; SubMainLeft.Panel1Collapsed = true; Form dropout = new Form(); dropout.Size = new System.Drawing.Size(hud1.Width, hud1.Height + 20); SubMainLeft.Panel1.Controls.Remove(hud1); dropout.Controls.Add(hud1); dropout.Resize += new EventHandler(dropout_Resize); dropout.FormClosed += new <API key>(dropout_FormClosed); dropout.Show(); huddropout = true; } void dropout_FormClosed(object sender, FormClosedEventArgs e) { SubMainLeft.Panel1.Controls.Add(hud1); SubMainLeft.Panel1Collapsed = false; huddropout = false; } void dropout_Resize(object sender, EventArgs e) { if (huddropoutresize) return; huddropoutresize = true; int hudw = hud1.Width; int hudh = hud1.Height; int formh = ((Form)sender).Height - 30; int formw = ((Form)sender).Width; if (((Form)sender).Height < hudh) { if (((Form)sender).WindowState == FormWindowState.Maximized) { Point tl = ((Form)sender).DesktopLocation; ((Form)sender).WindowState = FormWindowState.Normal; ((Form)sender).Location = tl; } ((Form)sender).Width = (int)(formh * 1.333f); ((Form)sender).Height = (int)(formh) + 20; } hud1.Refresh(); huddropoutresize = false; } private void <API key>(object sender, EventArgs e) { if (tabControl1.SelectedTab == tabStatus) { tabControl1.SuspendLayout(); foreach (Control temp in tabStatus.Controls) { temp.DataBindings.Clear(); //temp.Dispose(); } //tabStatus.Controls.Clear(); int x = 10; int y = 10; object thisBoxed = MainV2.cs; Type test = thisBoxed.GetType(); foreach (var field in test.GetProperties()) { // field.Name has the field's name. object fieldValue; try { fieldValue = field.GetValue(thisBoxed, null); // Get value } catch { continue; } // Get the TypeCode enumeration. Multiple types get mapped to a common typecode. TypeCode typeCode = Type.GetTypeCode(fieldValue.GetType()); bool add = true; MyLabel lbl1 = new MyLabel(); MyLabel lbl2 = new MyLabel(); try { lbl1 = (MyLabel)tabStatus.Controls.Find(field.Name, false)[0]; lbl2 = (MyLabel)tabStatus.Controls.Find(field.Name + "value", false)[0]; add = false; } catch { } lbl1.Location = new Point(x, y); lbl1.Size = new System.Drawing.Size(75, 13); lbl1.Text = field.Name; lbl1.Name = field.Name; lbl2.AutoSize = false; lbl2.Location = new Point(lbl1.Right + 5, y); lbl2.Size = new System.Drawing.Size(50, 13); //if (lbl2.Name == "") lbl2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bindingSource1, field.Name, true, System.Windows.Forms.<API key>.OnValidation, "")); lbl2.Name = field.Name + "value"; //lbl2.Text = fieldValue.ToString(); if (add) { tabStatus.Controls.Add(lbl1); tabStatus.Controls.Add(lbl2); } //Application.DoEvents(); x += 0; y += 15; if (y > tabStatus.Height - 30) { x += 140; y = 10; } } tabStatus.Width = x; tabControl1.ResumeLayout(); } else { foreach (Control temp in tabStatus.Controls) { temp.DataBindings.Clear(); } } } private void Gspeed_DoubleClick(object sender, EventArgs e) { string max = "60"; if (DialogResult.OK == Common.InputBox("Enter Max", "Enter Max Speed", ref max)) { Gspeed.MaxValue = float.Parse(max); MainV2.config["GspeedMAX"] = Gspeed.MaxValue.ToString(); } } private void <API key>(object sender, EventArgs e) { <API key>(sender, e); CustomMessageBox.Show("Output avi will be saved to the log folder"); aviwriter = new AviWriter(); Directory.CreateDirectory(Path.GetDirectoryName(Application.ExecutablePath) + Path.<API key> + @"logs"); aviwriter.avi_start(Path.GetDirectoryName(Application.ExecutablePath) + Path.<API key> + @"logs" + Path.<API key> + DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss") + ".avi"); <API key>.Text = "Recording"; } private void <API key>(object sender, EventArgs e) { <API key>.Text = "Start Recording"; if (aviwriter != null) aviwriter.avi_close(); aviwriter = null; } void setupPropertyInfo(ref System.Reflection.PropertyInfo input, string name, object source) { Type test = source.GetType(); foreach (var field in test.GetProperties()) { if (field.Name == name) { input = field; return; } } } private void zg1_DoubleClick(object sender, EventArgs e) { Form selectform = new Form() { Name = "select", Width = 50, Height = 250, Text = "Graph This" }; int x = 10; int y = 10; { CheckBox chk_box = new CheckBox(); chk_box.Text = "Logarithmic"; chk_box.Name = "Logarithmic"; chk_box.Location = new Point(x, y); chk_box.Size = new System.Drawing.Size(100, 20); chk_box.CheckedChanged += new EventHandler(<API key>); selectform.Controls.Add(chk_box); } y += 20; object thisBoxed = MainV2.cs; Type test = thisBoxed.GetType(); foreach (var field in test.GetProperties()) { // field.Name has the field's name. object fieldValue; try { fieldValue = field.GetValue(thisBoxed, null); // Get value } catch { continue; } // Get the TypeCode enumeration. Multiple types get mapped to a common typecode. TypeCode typeCode = Type.GetTypeCode(fieldValue.GetType()); if (!(typeCode == TypeCode.Single)) continue; CheckBox chk_box = new CheckBox(); if (list1item != null && list1item.Name == field.Name) chk_box.Checked = true; if (list2item != null && list2item.Name == field.Name) chk_box.Checked = true; if (list3item != null && list3item.Name == field.Name) chk_box.Checked = true; if (list4item != null && list4item.Name == field.Name) chk_box.Checked = true; if (list5item != null && list5item.Name == field.Name) chk_box.Checked = true; if (list6item != null && list6item.Name == field.Name) chk_box.Checked = true; if (list7item != null && list7item.Name == field.Name) chk_box.Checked = true; if (list8item != null && list8item.Name == field.Name) chk_box.Checked = true; if (list9item != null && list9item.Name == field.Name) chk_box.Checked = true; if (list10item != null && list10item.Name == field.Name) chk_box.Checked = true; chk_box.Text = field.Name; chk_box.Name = field.Name; chk_box.Location = new Point(x, y); chk_box.Size = new System.Drawing.Size(100, 20); chk_box.CheckedChanged += new EventHandler(<API key>); selectform.Controls.Add(chk_box); Application.DoEvents(); x += 0; y += 20; if (y > selectform.Height - 50) { x += 100; y = 10; selectform.Width = x + 100; } } ThemeManager.ApplyThemeTo(selectform); selectform.Show(); } void <API key>(object sender, EventArgs e) { if (((CheckBox)sender).Checked) { zg1.GraphPane.YAxis.Type = AxisType.Log; } else { zg1.GraphPane.YAxis.Type = AxisType.Linear; } } void <API key>(object sender, EventArgs e) { if (((CheckBox)sender).Checked) { if (list1item == null) { setupPropertyInfo(ref list1item, ((CheckBox)sender).Name, MainV2.cs); list1curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list1, Color.Red, SymbolType.None); } else if (list2item == null) { setupPropertyInfo(ref list2item, ((CheckBox)sender).Name, MainV2.cs); list2curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list2, Color.Blue, SymbolType.None); } else if (list3item == null) { setupPropertyInfo(ref list3item, ((CheckBox)sender).Name, MainV2.cs); list3curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list3, Color.Green, SymbolType.None); } else if (list4item == null) { setupPropertyInfo(ref list4item, ((CheckBox)sender).Name, MainV2.cs); list4curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list4, Color.Orange, SymbolType.None); } else if (list5item == null) { setupPropertyInfo(ref list5item, ((CheckBox)sender).Name, MainV2.cs); list5curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list5, Color.Yellow, SymbolType.None); } else if (list6item == null) { setupPropertyInfo(ref list6item, ((CheckBox)sender).Name, MainV2.cs); list6curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list6, Color.Magenta, SymbolType.None); } else if (list7item == null) { setupPropertyInfo(ref list7item, ((CheckBox)sender).Name, MainV2.cs); list7curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list7, Color.Purple, SymbolType.None); } else if (list8item == null) { setupPropertyInfo(ref list8item, ((CheckBox)sender).Name, MainV2.cs); list8curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list8, Color.LimeGreen, SymbolType.None); } else if (list9item == null) { setupPropertyInfo(ref list9item, ((CheckBox)sender).Name, MainV2.cs); list9curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list9, Color.Cyan, SymbolType.None); } else if (list10item == null) { setupPropertyInfo(ref list10item, ((CheckBox)sender).Name, MainV2.cs); list10curve = zg1.GraphPane.AddCurve(((CheckBox)sender).Name, list10, Color.Violet, SymbolType.None); } else { CustomMessageBox.Show("Max 10 at a time."); ((CheckBox)sender).Checked = false; } ThemeManager.ApplyThemeTo(this); string selected = ""; try { selected = selected + zg1.GraphPane.CurveList[0].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[1].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[2].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[3].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[4].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[5].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[6].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[7].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[8].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[9].Label.Text + "|"; selected = selected + zg1.GraphPane.CurveList[10].Label.Text + "|"; } catch { } MainV2.config["<API key>"] = selected; } else { // reset old stuff if (list1item != null && list1item.Name == ((CheckBox)sender).Name) { list1item = null; zg1.GraphPane.CurveList.Remove(list1curve); } if (list2item != null && list2item.Name == ((CheckBox)sender).Name) { list2item = null; zg1.GraphPane.CurveList.Remove(list2curve); } if (list3item != null && list3item.Name == ((CheckBox)sender).Name) { list3item = null; zg1.GraphPane.CurveList.Remove(list3curve); } if (list4item != null && list4item.Name == ((CheckBox)sender).Name) { list4item = null; zg1.GraphPane.CurveList.Remove(list4curve); } if (list5item != null && list5item.Name == ((CheckBox)sender).Name) { list5item = null; zg1.GraphPane.CurveList.Remove(list5curve); } if (list6item != null && list6item.Name == ((CheckBox)sender).Name) { list6item = null; zg1.GraphPane.CurveList.Remove(list6curve); } if (list7item != null && list7item.Name == ((CheckBox)sender).Name) { list7item = null; zg1.GraphPane.CurveList.Remove(list7curve); } if (list8item != null && list8item.Name == ((CheckBox)sender).Name) { list8item = null; zg1.GraphPane.CurveList.Remove(list8curve); } if (list9item != null && list9item.Name == ((CheckBox)sender).Name) { list9item = null; zg1.GraphPane.CurveList.Remove(list9curve); } if (list10item != null && list10item.Name == ((CheckBox)sender).Name) { list10item = null; zg1.GraphPane.CurveList.Remove(list10curve); } } } private void <API key>(object sender, EventArgs e) { if (!MainV2.comPort.BaseStream.IsOpen) { CustomMessageBox.Show("Please Connect First"); return; } string alt = (100 * MainV2.cs.multiplierdist).ToString("0"); Common.InputBox("Enter Alt", "Enter Target Alt (absolute)", ref alt); int intalt = (int)(100 * MainV2.cs.multiplierdist); if (!int.TryParse(alt, out intalt)) { CustomMessageBox.Show("Bad Alt"); return; } if (gotolocation.Lat == 0 || gotolocation.Lng == 0) { CustomMessageBox.Show("Bad Lat/Long"); return; } MainV2.comPort.setMountConfigure(MAVLink.MAV_MOUNT_MODE.GPS_POINT, true, true, true); MainV2.comPort.setMountControl(gotolocation.Lat, gotolocation.Lng, (int)(intalt / MainV2.cs.multiplierdist), true); } private void BUT_script_Click(object sender, EventArgs e) { System.Threading.Thread t11 = new System.Threading.Thread(new System.Threading.ThreadStart(ScriptStart)) { IsBackground = true, Name = "Script Thread" }; t11.Start(); } void ScriptStart() { string myscript = @" # cs.???? = currentstate, any variable on the status tab in the planner can be used. # Script = options are # Script.Sleep(ms) # Script.ChangeParam(name,value) # Script.GetParam(name) # Script.ChangeMode(mode) - same as displayed in mode setup screen 'AUTO' # Script.WaitFor(string,timeout) # Script.SendRC(channel,pwm,sendnow) print 'Start Script' for chan in range(1,9): Script.SendRC(chan,1500,False) Script.SendRC(3,Script.GetParam('RC3_MIN'),True) Script.Sleep(5000) while cs.lat == 0: print 'Waiting for GPS' Script.Sleep(1000) print 'Got GPS' jo = 10 * 13 print jo Script.SendRC(3,1000,False) Script.SendRC(4,2000,True) cs.messages.Clear() Script.WaitFor('ARMING MOTORS',30000) Script.SendRC(4,1500,True) print 'Motors Armed!' Script.SendRC(3,1700,True) while cs.alt < 50: Script.Sleep(50) Script.SendRC(5,2000,True) # acro Script.SendRC(1,2000,False) # roll Script.SendRC(3,1370,True) # throttle while cs.roll > -45: # top hald 0 - 180 Script.Sleep(5) while cs.roll < -45: # -180 - -45 Script.Sleep(5) Script.SendRC(5,1500,False) # stabalise Script.SendRC(1,1500,True) # level roll Script.Sleep(2000) # 2 sec to stabalise Script.SendRC(3,1300,True) # throttle back to land thro = 1350 # will decend while cs.alt > 0.1: Script.Sleep(300) Script.SendRC(3,1000,False) Script.SendRC(4,1000,True) Script.WaitFor('DISARMING MOTORS',30000) Script.SendRC(4,1500,True) print 'Roll complete' "; CustomMessageBox.Show("This is Very ALPHA"); Form scriptedit = new Form(); scriptedit.Size = new System.Drawing.Size(500,500); TextBox tb = new TextBox(); tb.Dock = DockStyle.Fill; tb.ScrollBars = ScrollBars.Both; tb.Multiline = true; tb.Location = new Point(0,0); tb.Size = new System.Drawing.Size(scriptedit.Size.Width-30,scriptedit.Size.Height-30); scriptedit.Controls.Add(tb); tb.Text = myscript; scriptedit.ShowDialog(); if (DialogResult.Yes == CustomMessageBox.Show("Run Script", "Run this script?", MessageBoxButtons.YesNo)) { Script scr = new Script(); scr.runScript(tb.Text); } } private void <API key>(object sender, EventArgs e) { MainV2.config["CHK_autopan"] = CHK_autopan.Checked.ToString(); } } }
#ifndef <API key> #define <API key> #include "components/ogre/<API key>.h" #include <sigc++/trackable.h> namespace Ember { namespace OgreView { class EmberEntity; namespace Environment { class IWater; /** * @author Erik Hjortsberg <erik.hjortsberg@gmail.com> * * @brief Represents an entity as the ocean. * * The ocean is a little special, so we can't use the normal ModelRepresentation for it. Instead this class will bind an entity to an IWater instance. * Currently the only logic there is is to alter the level of the water depending on the vertical position of the entity. */ class OceanRepresentation: public <API key>, public virtual sigc::trackable { public: OceanRepresentation(EmberEntity& entity, IWater& water); virtual ~OceanRepresentation(); /** * @brief Gets the unique type name for a subclass of this. * The main purpose of this is to allow late binding casts, so that it's possible to more safely cast an instance into a concrete subclass. */ virtual const std::string& getType() const; /** * @brief Gets the shared class type name, which is the same one returned through getType(). * This can be used to do lookups to see whether any instance of <API key> if an instance of this class. * @returns The string "OceanRepresentation". */ static const std::string& getTypeNameForClass(); /** * General method for turning on and off debug visualizations. Subclasses might support more types of visualizations than the ones defined here. * @param visualization The type of visualization. Currently supports "OgreBBox" and "ErisBBox". * @param visualize Whether to visualize or not. */ virtual void setVisualize(const std::string& visualization, bool visualize); /** * @brief Gets whether a certain visualization is turned on or off. * @param visualization The type of visualization. Currently supports "OgreBBox" and "ErisBBox". * @return true if visualization is turned on, else false */ virtual bool getVisualize(const std::string& visualization) const; private: /** * @brief The entity which this representation is bound to. */ EmberEntity & mEntity; /** * @brief The water to which this representation is connected to. */ IWater& mWater; /** * @brief The type name for the class. */ static std::string sTypeName; void entity_Moved(); /** * @brief Updates the height of the water level from the vertical position of the entity. */ void updateWaterPosition(); }; } } } #endif /* <API key> */
# coding: utf8 Paises=( (4, 'AF', 'AFG', 93, 'Afganistán', 'Asia', '', 'AFN', 'Afgani afgano'), (8, 'AL', 'ALB', 355, 'Albania', 'Europa', '', 'ALL', 'Lek albanés'), (10, 'AQ', 'ATA', 672, 'Antártida', 'Antártida', '', '', ''), (12, 'DZ', 'DZA', 213, 'Argelia', 'África', '', 'DZD', 'Dinar algerino'), (16, 'AS', 'ASM', 1684, 'Samoa Americana', 'Oceanía', '', '', ''), (20, 'AD', 'AND', 376, 'Andorra', 'Europa', '', 'EUR', 'Euro'), (24, 'AO', 'AGO', 244, 'Angola', 'África', '', 'AOA', 'Kwanza angoleño'), (28, 'AG', 'ATG', 1268, 'Antigua y Barbuda', 'América', 'El Caribe', '', ''), (31, 'AZ', 'AZE', 994, 'Azerbaiyán', 'Asia', '', 'AZM', 'Manat azerbaiyano'), (32, 'AR', 'ARG', 54, 'Argentina', 'América', 'América del Sur', 'ARS', 'Peso argentino'), (36, 'AU', 'AUS', 61, 'Australia', 'Oceanía', '', 'AUD', 'Dólar australiano'), (40, 'AT', 'AUT', 43, 'Austria', 'Europa', '', 'EUR', 'Euro'), (44, 'BS', 'BHS', 1242, 'Bahamas', 'América', 'El Caribe', 'BSD', 'Dólar bahameño'), (48, 'BH', 'BHR', 973, 'Bahréin', 'Asia', '', 'BHD', 'Dinar bahreiní'), (50, 'BD', 'BGD', 880, 'Bangladesh', 'Asia', '', 'BDT', 'Taka de Bangladesh'), (51, 'AM', 'ARM', 374, 'Armenia', 'Asia', '', 'AMD', 'Dram armenio'), (52, 'BB', 'BRB', 1246, 'Barbados', 'América', 'El Caribe', 'BBD', 'Dólar de Barbados'), (56, 'BE', 'BEL', 32, 'Bélgica', 'Europa', '', 'EUR', 'Euro'), (60, 'BM', 'BMU', 1441, 'Bermudas', 'América', 'El Caribe', 'BMD', 'Dólar de Bermuda'), (64, 'BT', 'BTN', 975, 'Bhután', 'Asia', '', 'BTN', 'Ngultrum de Bután'), (68, 'BO', 'BOL', 591, 'Bolivia', 'América', 'América del Sur', 'BOB', 'Boliviano'), (70, 'BA', 'BIH', 387, 'Bosnia y Herzegovina', 'Europa', '', 'BAM', 'Marco convertible de Bosnia-Herzegovina'), (72, 'BW', 'BWA', 267, 'Botsuana', 'África', '', 'BWP', 'Pula de Botsuana'), (74, 'BV', 'BVT', 0, 'Isla Bouvet', '', '', '', ''), (76, 'BR', 'BRA', 55, 'Brasil', 'América', 'América del Sur', 'BRL', 'Real brasileño'), (84, 'BZ', 'BLZ', 501, 'Belice', 'América', 'América Central', 'BZD', 'Dólar de Belice'), (86, 'IO', 'IOT', 0, 'Territorio Británico del Océano Índico', '', '', '', ''), (90, 'SB', 'SLB', 677, 'Islas Salomón', 'Oceanía', '', 'SBD', 'Dólar de las Islas Salomón'), (92, 'VG', 'VGB', 1284, 'Islas Vírgenes Británicas', 'América', 'El Caribe', '', ''), (96, 'BN', 'BRN', 673, 'Brunéi', 'Asia', '', 'BND', 'Dólar de Brunéi'), (100, 'BG', 'BGR', 359, 'Bulgaria', 'Europa', '', 'BGN', 'Lev búlgaro'), (104, 'MM', 'MMR', 95, 'Myanmar', 'Asia', '', 'MMK', 'Kyat birmano'), (108, 'BI', 'BDI', 257, 'Burundi', 'África', '', 'BIF', 'Franco burundés'), (112, 'BY', 'BLR', 375, 'Bielorrusia', 'Europa', '', 'BYR', 'Rublo bielorruso'), (116, 'KH', 'KHM', 855, 'Camboya', 'Asia', '', 'KHR', 'Riel camboyano'), (120, 'CM', 'CMR', 237, 'Camerún', 'África', '', '', ''), (124, 'CA', 'CAN', 1, 'Canadá', 'América', 'América del Norte', 'CAD', 'Dólar canadiense'), (132, 'CV', 'CPV', 238, 'Cabo Verde', 'África', '', 'CVE', 'Escudo caboverdiano'), (136, 'KY', 'CYM', 1345, 'Islas Caimán', 'América', 'El Caribe', 'KYD', 'Dólar caimano de Islas Caimán'), (140, 'CF', 'CAF', 236, 'República Centroafricana', 'África', '', '', ''), (144, 'LK', 'LKA', 94, 'Sri Lanka', 'Asia', '', 'LKR', 'Rupia de Sri Lanka'), (148, 'TD', 'TCD', 235, 'Chad', 'África', '', '', ''), (152, 'CL', 'CHL', 56, 'Chile', 'América', 'América del Sur', 'CLP', 'Peso chileno'), (156, 'CN', 'CHN', 86, 'China', 'Asia', '', 'CNY', 'Yuan Renminbi de China'), (158, 'TW', 'TWN', 886, 'Taiwán', 'Asia', '', 'TWD', 'Dólar taiwanés'), (162, 'CX', 'CXR', 61, 'Isla de Navidad', 'Oceanía', '', '', ''), (166, 'CC', 'CCK', 61, 'Islas Cocos', 'Óceanía', '', '', ''), (170, 'CO', 'COL', 57, 'Colombia', 'América', 'América del Sur', 'COP', 'Peso colombiano'), (174, 'KM', 'COM', 269, 'Comoras', 'África', '', 'KMF', 'Franco comoriano de Comoras'), (175, 'YT', 'MYT', 262, 'Mayotte', 'África', '', '', ''), (178, 'CG', 'COG', 242, 'Congo', 'África', '', '', ''), (180, 'CD', 'COD', 243, 'República Democrática del Congo', 'África', '', 'CDF', 'Franco congoleño'), (184, 'CK', 'COK', 682, 'Islas Cook', 'Oceanía', '', '', ''), (188, 'CR', 'CRI', 506, 'Costa Rica', 'América', 'América Central', 'CRC', 'Colón costarricense'), (191, 'HR', 'HRV', 385, 'Croacia', 'Europa', '', 'HRK', 'Kuna croata'), (192, 'CU', 'CUB', 53, 'Cuba', 'América', 'El Caribe', 'CUP', 'Peso cubano'), (196, 'CY', 'CYP', 357, 'Chipre', 'Europa', '', 'CYP', 'Libra chipriota'), (203, 'CZ', 'CZE', 420, 'República Checa', 'Europa', '', 'CZK', 'Koruna checa'), (204, 'BJ', 'BEN', 229, 'Benín', 'África', '', '', ''), (208, 'DK', 'DNK', 45, 'Dinamarca', 'Europa', '', 'DKK', 'Corona danesa'), (212, 'DM', 'DMA', 1767, 'Dominica', 'América', 'El Caribe', '', ''), (214, 'DO', 'DOM', 1809, 'República Dominicana', 'América', 'El Caribe', 'DOP', 'Peso dominicano'), (218, 'EC', 'ECU', 593, 'Ecuador', 'América', 'América del Sur', '', ''), (222, 'SV', 'SLV', 503, 'El Salvador', 'América', 'América Central', 'SVC', 'Colón salvadoreño'), (226, 'GQ', 'GNQ', 240, 'Guinea Ecuatorial', 'África', '', '', ''), (231, 'ET', 'ETH', 251, 'Etiopía', 'África', '', 'ETB', 'Birr etíope'), (232, 'ER', 'ERI', 291, 'Eritrea', 'África', '', 'ERN', 'Nakfa eritreo'), (233, 'EE', 'EST', 372, 'Estonia', 'Europa', '', 'EEK', 'Corona estonia'), (234, 'FO', 'FRO', 298, 'Islas Feroe', 'Europa', '', '', ''), (238, 'FK', 'FLK', 500, 'Islas Malvinas', 'América', 'América del Sur', 'FKP', 'Libra malvinense'), (239, 'GS', 'SGS', 0, 'Islas Georgias del Sur y Sandwich del Sur', 'América', 'América del Sur', '', ''), (242, 'FJ', 'FJI', 679, 'Fiyi', 'Oceanía', '', 'FJD', 'Dólar fijiano'), (246, 'FI', 'FIN', 358, 'Finlandia', 'Europa', '', 'EUR', 'Euro'), (248, 'AX', 'ALA', 0, 'Islas Gland', 'Europa', '', '', ''), (250, 'FR', 'FRA', 33, 'Francia', 'Europa', '', 'EUR', 'Euro'), (254, 'GF', 'GUF', 0, 'Guayana Francesa', 'América', 'América del Sur', '', ''), (258, 'PF', 'PYF', 689, 'Polinesia Francesa', 'Oceanía', '', '', ''), (260, 'TF', 'ATF', 0, 'Territorios Australes Franceses', '', '', '', ''), (262, 'DJ', 'DJI', 253, 'Yibuti', 'África', '', 'DJF', 'Franco yibutiano'), (266, 'GA', 'GAB', 241, 'Gabón', 'África', '', '', ''), (268, 'GE', 'GEO', 995, 'Georgia', 'Europa', '', 'GEL', 'Lari georgiano'), (270, 'GM', 'GMB', 220, 'Gambia', 'África', '', 'GMD', 'Dalasi gambiano'), (275, 'PS', 'PSE', 0, 'Palestina', 'Asia', '', '', ''), (276, 'DE', 'DEU', 49, 'Alemania', 'Europa', '', 'EUR', 'Euro'), (288, 'GH', 'GHA', 233, 'Ghana', 'África', '', 'GHC', 'Cedi ghanés'), (292, 'GI', 'GIB', 350, 'Gibraltar', 'Europa', '', 'GIP', 'Libra de Gibraltar'), (296, 'KI', 'KIR', 686, 'Kiribati', 'Oceanía', '', '', ''), (300, 'GR', 'GRC', 30, 'Grecia', 'Europa', '', 'EUR', 'Euro'), (304, 'GL', 'GRL', 299, 'Groenlandia', 'América', 'América del Norte', '', ''), (308, 'GD', 'GRD', 1473, 'Granada', 'América', 'El Caribe', '', ''), (312, 'GP', 'GLP', 0, 'Guadalupe', 'América', 'El Caribe', '', ''), (316, 'GU', 'GUM', 1671, 'Guam', 'Oceanía', '', '', ''), (320, 'GT', 'GTM', 502, 'Guatemala', 'América', 'América Central', 'GTQ', 'Quetzal guatemalteco'), (324, 'GN', 'GIN', 224, 'Guinea', 'África', '', 'GNF', 'Franco guineano'), (328, 'GY', 'GUY', 592, 'Guyana', 'América', 'América del Sur', 'GYD', 'Dólar guyanés'), (332, 'HT', 'HTI', 509, 'Haití', 'América', 'El Caribe', 'HTG', 'Gourde haitiano'), (334, 'HM', 'HMD', 0, 'Islas Heard y McDonald', 'Oceanía', '', '', ''), (336, 'VA', 'VAT', 39, 'Ciudad del Vaticano', 'Europa', '', '', ''), (340, 'HN', 'HND', 504, 'Honduras', 'América', 'América Central', 'HNL', 'Lempira hondureño'), (344, 'HK', 'HKG', 852, 'Hong Kong', 'Asia', '', 'HKD', 'Dólar de Hong Kong'), (348, 'HU', 'HUN', 36, 'Hungría', 'Europa', '', 'HUF', 'Forint húngaro'), (352, 'IS', 'ISL', 354, 'Islandia', 'Europa', '', 'ISK', 'Króna islandesa'), (356, 'IN', 'IND', 91, 'India', 'Asia', '', 'INR', 'Rupia india'), (360, 'ID', 'IDN', 62, 'Indonesia', 'Asia', '', 'IDR', 'Rupiah indonesia'), (364, 'IR', 'IRN', 98, 'Irán', 'Asia', '', 'IRR', 'Rial iraní'), (368, 'IQ', 'IRQ', 964, 'Iraq', 'Asia', '', 'IQD', 'Dinar iraquí'), (372, 'IE', 'IRL', 353, 'Irlanda', 'Europa', '', 'EUR', 'Euro'), (376, 'IL', 'ISR', 972, 'Israel', 'Asia', '', 'ILS', 'Nuevo shéquel israelí'), (380, 'IT', 'ITA', 39, 'Italia', 'Europa', '', 'EUR', 'Euro'), (384, 'CI', 'CIV', 225, 'Costa de Marfil', 'África', '', '', ''), (388, 'JM', 'JAM', 1876, 'Jamaica', 'América', 'El Caribe', 'JMD', 'Dólar jamaicano'), (392, 'JP', 'JPN', 81, 'Japón', 'Asia', '', 'JPY', 'Yen japonés'), (398, 'KZ', 'KAZ', 7, 'Kazajstán', 'Asia', '', 'KZT', 'Tenge kazajo'), (400, 'JO', 'JOR', 962, 'Jordania', 'Asia', '', 'JOD', 'Dinar jordano'), (404, 'KE', 'KEN', 254, 'Kenia', 'África', '', 'KES', 'Chelín keniata'), (408, 'KP', 'PRK', 850, 'Corea del Norte', 'Asia', '', 'KPW', 'Won norcoreano'), (410, 'KR', 'KOR', 82, 'Corea del Sur', 'Asia', '', 'KRW', 'Won surcoreano'), (414, 'KW', 'KWT', 965, 'Kuwait', 'Asia', '', 'KWD', 'Dinar kuwaití'), (417, 'KG', 'KGZ', 996, 'Kirguistán', 'Asia', '', 'KGS', 'Som kirguís de Kirguistán'), (418, 'LA', 'LAO', 856, 'Laos', 'Asia', '', 'LAK', 'Kip lao'), (422, 'LB', 'LBN', 961, 'Líbano', 'Asia', '', 'LBP', 'Libra libanesa'), (426, 'LS', 'LSO', 266, 'Lesotho', 'África', '', 'LSL', 'Loti lesotense'), (428, 'LV', 'LVA', 371, 'Letonia', 'Europa', '', 'LVL', 'Lat letón'), (430, 'LR', 'LBR', 231, 'Liberia', 'África', '', 'LRD', 'Dólar liberiano'), (434, 'LY', 'LBY', 218, 'Libia', 'África', '', 'LYD', 'Dinar libio'), (438, 'LI', 'LIE', 423, 'Liechtenstein', 'Europa', '', '', ''), (440, 'LT', 'LTU', 370, 'Lituania', 'Europa', '', 'LTL', 'Litas lituano'), (442, 'LU', 'LUX', 352, 'Luxemburgo', 'Europa', '', 'EUR', 'Euro'), (446, 'MO', 'MAC', 853, 'Macao', 'Asia', '', 'MOP', 'Pataca de Macao'), (450, 'MG', 'MDG', 261, 'Madagascar', 'África', '', 'MGA', 'Ariary malgache'), (454, 'MW', 'MWI', 265, 'Malaui', 'África', '', 'MWK', 'Kwacha malauiano'), (458, 'MY', 'MYS', 60, 'Malasia', 'Asia', '', 'MYR', 'Ringgit malayo'), (462, 'MV', 'MDV', 960, 'Maldivas', 'Asia', '', 'MVR', 'Rufiyaa maldiva'), (466, 'ML', 'MLI', 223, 'Malí', 'África', '', '', ''), (470, 'MT', 'MLT', 356, 'Malta', 'Europa', '', 'MTL', 'Lira maltesa'), (474, 'MQ', 'MTQ', 0, 'Martinica', 'América', 'El Caribe', '', ''), (478, 'MR', 'MRT', 222, 'Mauritania', 'África', '', 'MRO', 'Ouguiya mauritana'), (480, 'MU', 'MUS', 230, 'Mauricio', 'África', '', 'MUR', 'Rupia mauricia'), (484, 'MX', 'MEX', 52, 'México', 'América', 'América del Norte', 'MXN', 'Peso mexicano'), (492, 'MC', 'MCO', 377, 'Mónaco', 'Europa', '', '', ''), (496, 'MN', 'MNG', 976, 'Mongolia', 'Asia', '', 'MNT', 'Tughrik mongol'), (498, 'MD', 'MDA', 373, 'Moldavia', 'Europa', '', 'MDL', 'Leu moldavo'), (499, 'ME', 'MNE', 382, 'Montenegro', 'Europa', '', '', ''), (500, 'MS', 'MSR', 1664, 'Montserrat', 'América', 'El Caribe', '', ''), (504, 'MA', 'MAR', 212, 'Marruecos', 'África', '', 'MAD', 'Dirham marroquí'), (508, 'MZ', 'MOZ', 258, 'Mozambique', 'África', '', 'MZM', 'Metical mozambiqueño'), (512, 'OM', 'OMN', 968, 'Omán', 'Asia', '', 'OMR', 'Rial omaní'), (516, 'NA', 'NAM', 264, 'Namibia', 'África', '', 'NAD', 'Dólar namibio'), (520, 'NR', 'NRU', 674, 'Nauru', 'Oceanía', '', '', ''), (524, 'NP', 'NPL', 977, 'Nepal', 'Asia', '', 'NPR', 'Rupia nepalesa'), (528, 'NL', 'NLD', 31, 'Países Bajos', 'Europa', '', 'EUR', 'Euro'), (530, 'AN', 'ANT', 599, 'Antillas Holandesas', 'América', 'El Caribe', 'ANG', 'Florín antillano neerlandés'), (533, 'AW', 'ABW', 297, 'Aruba', 'América', 'El Caribe', 'AWG', 'Florín arubeño'), (540, 'NC', 'NCL', 687, 'Nueva Caledonia', 'Oceanía', '', '', ''), (548, 'VU', 'VUT', 678, 'Vanuatu', 'Oceanía', '', 'VUV', 'Vatu vanuatense'), (554, 'NZ', 'NZL', 64, 'Nueva Zelanda', 'Oceanía', '', 'NZD', 'Dólar neozelandés'), (558, 'NI', 'NIC', 505, 'Nicaragua', 'América', 'América Central', 'NIO', 'Córdoba nicaragüense'), (562, 'NE', 'NER', 227, 'Níger', 'África', '', '', ''), (566, 'NG', 'NGA', 234, 'Nigeria', 'África', '', 'NGN', 'Naira nigeriana'), (570, 'NU', 'NIU', 683, 'Niue', 'Oceanía', '', '', ''), (574, 'NF', 'NFK', 0, 'Isla Norfolk', 'Oceanía', '', '', ''), (578, 'NO', 'NOR', 47, 'Noruega', 'Europa', '', 'NOK', 'Corona noruega'), (580, 'MP', 'MNP', 1670, 'Islas Marianas del Norte', 'Oceanía', '', '', ''), (581, 'UM', 'UMI', 0, 'Islas Ultramarinas de Estados Unidos', '', '', '', ''), (583, 'FM', 'FSM', 691, 'Micronesia', 'Oceanía', '', '', ''), (584, 'MH', 'MHL', 692, 'Islas Marshall', 'Oceanía', '', '', ''), (585, 'PW', 'PLW', 680, 'Palaos', 'Oceanía', '', '', ''), (586, 'PK', 'PAK', 92, 'Pakistán', 'Asia', '', 'PKR', 'Rupia pakistaní'), (591, 'PA', 'PAN', 507, 'Panamá', 'América', 'América Central', 'PAB', 'Balboa panameña'), (598, 'PG', 'PNG', 675, 'Papúa Nueva Guinea', 'Oceanía', '', 'PGK', 'Kina de Papúa Nueva Guinea'), (600, 'PY', 'PRY', 595, 'Paraguay', 'América', 'América del Sur', 'PYG', 'Guaraní paraguayo'), (604, 'PE', 'PER', 51, 'Perú', 'América', 'América del Sur', 'PEN', 'Nuevo sol peruano'), (608, 'PH', 'PHL', 63, 'Filipinas', 'Asia', '', 'PHP', 'Peso filipino'), (612, 'PN', 'PCN', 870, 'Islas Pitcairn', 'Oceanía', '', '', ''), (616, 'PL', 'POL', 48, 'Polonia', 'Europa', '', 'PLN', 'zloty polaco'), (620, 'PT', 'PRT', 351, 'Portugal', 'Europa', '', 'EUR', 'Euro'), (624, 'GW', 'GNB', 245, 'Guinea-Bissau', 'África', '', '', ''), (626, 'TL', 'TLS', 670, 'Timor Oriental', 'Asia', '', '', ''), (630, 'PR', 'PRI', 1, 'Puerto Rico', 'América', 'El Caribe', '', ''), (634, 'QA', 'QAT', 974, 'Qatar', 'Asia', '', 'QAR', 'Rial qatarí'), (638, 'RE', 'REU', 262, 'Reunión', 'África', '', '', ''), (642, 'RO', 'ROU', 40, 'Rumania', 'Europa', '', 'RON', 'Leu rumano'), (643, 'RU', 'RUS', 7, 'Rusia', 'Asia', '', 'RUB', 'Rublo ruso'), (646, 'RW', 'RWA', 250, 'Ruanda', 'África', '', 'RWF', 'Franco ruandés'), (654, 'SH', 'SHN', 290, 'Santa Helena', 'África', '', 'SHP', 'Libra de Santa Helena'), (659, 'KN', 'KNA', 1869, 'San Cristóbal y Nieves', 'América', 'El Caribe', '', ''), (660, 'AI', 'AIA', 1264, 'Anguila', 'América', 'El Caribe', '', ''), (662, 'LC', 'LCA', 1758, 'Santa Lucía', 'América', 'El Caribe', '', ''), (666, 'PM', 'SPM', 508, 'San Pedro y Miquelón', 'América', 'América del Norte', '', ''), (670, 'VC', 'VCT', 1784, 'San Vicente y las Granadinas', 'América', 'El Caribe', '', ''), (674, 'SM', 'SMR', 378, 'San Marino', 'Europa', '', '', ''), (678, 'ST', 'STP', 239, 'Santo Tomé y Príncipe', 'África', '', 'STD', 'Dobra de Santo Tomé y Príncipe'), (682, 'SA', 'SAU', 966, 'Arabia Saudí', 'Asia', '', 'SAR', 'Riyal saudí'), (686, 'SN', 'SEN', 221, 'Senegal', 'África', '', '', ''), (688, 'RS', 'SRB', 381, 'Serbia', 'Europa', '', '', ''), (690, 'SC', 'SYC', 248, 'Seychelles', 'África', '', 'SCR', 'Rupia de Seychelles'), (694, 'SL', 'SLE', 232, 'Sierra Leona', 'África', '', 'SLL', 'Leone de Sierra Leona'), (702, 'SG', 'SGP', 65, 'Singapur', 'Asia', '', 'SGD', 'Dólar de Singapur'), (703, 'SK', 'SVK', 421, 'Eslovaquia', 'Europa', '', 'SKK', 'Corona eslovaca'), (704, 'VN', 'VNM', 84, 'Vietnam', 'Asia', '', 'VND', 'Dong vietnamita'), (705, 'SI', 'SVN', 386, 'Eslovenia', 'Europa', '', '', ''), (706, 'SO', 'SOM', 252, 'Somalia', 'África', '', 'SOS', 'Chelín somalí'), (710, 'ZA', 'ZAF', 27, 'Sudáfrica', 'África', '', 'ZAR', 'Rand sudafricano'), (716, 'ZW', 'ZWE', 263, 'Zimbabue', 'África', '', 'ZWL', 'Dólar zimbabuense'), (724, 'ES', 'ESP', 34, 'España', 'Europa', '', 'EUR', 'Euro'), (732, 'EH', 'ESH', 0, 'Sahara Occidental', 'África', '', '', ''), (736, 'SD', 'SDN', 249, 'Sudán', 'África', '', 'SDD', 'Dinar sudanés'), (740, 'SR', 'SUR', 597, 'Surinam', 'América', 'América del Sur', 'SRD', 'Dólar surinamés'), (744, 'SJ', 'SJM', 0, 'Svalbard y Jan Mayen', 'Europa', '', '', ''), (748, 'SZ', 'SWZ', 268, 'Suazilandia', 'África', '', 'SZL', 'Lilangeni suazi'), (752, 'SE', 'SWE', 46, 'Suecia', 'Europa', '', 'SEK', 'Corona sueca'), (756, 'CH', 'CHE', 41, 'Suiza', 'Europa', '', 'CHF', 'Franco suizo'), (760, 'SY', 'SYR', 963, 'Siria', 'Asia', '', 'SYP', 'Libra siria'), (762, 'TJ', 'TJK', 992, 'Tayikistán', 'Asia', '', 'TJS', 'Somoni tayik de Tayikistán'), (764, 'TH', 'THA', 66, 'Tailandia', 'Asia', '', 'THB', 'Baht tailandés'), (768, 'TG', 'TGO', 228, 'Togo', 'África', '', '', ''), (772, 'TK', 'TKL', 690, 'Tokelau', 'Oceanía', '', '', ''), (776, 'TO', 'TON', 676, 'Tonga', 'Oceanía', '', 'TOP', 'Pa''anga tongano'), (780, 'TT', 'TTO', 1868, 'Trinidad y Tobago', 'América', 'El Caribe', 'TTD', 'Dólar de Trinidad y Tobago'), (784, 'AE', 'ARE', 971, 'Emiratos Árabes Unidos', 'Asia', '', 'AED', 'Dirham de los Emiratos Árabes Unidos'), (788, 'TN', 'TUN', 216, 'Túnez', 'África', '', 'TND', 'Dinar tunecino'), (792, 'TR', 'TUR', 90, 'Turquía', 'Asia', '', 'TRY', 'Lira turca'), (795, 'TM', 'TKM', 993, 'Turkmenistán', 'Asia', '', 'TMM', 'Manat turcomano'), (796, 'TC', 'TCA', 1649, 'Islas Turcas y Caicos', 'América', 'El Caribe', '', ''), (798, 'TV', 'TUV', 688, 'Tuvalu', 'Oceanía', '', '', ''), (800, 'UG', 'UGA', 256, 'Uganda', 'África', '', 'UGX', 'Chelín ugandés'), (804, 'UA', 'UKR', 380, 'Ucrania', 'Europa', '', 'UAH', 'Grivna ucraniana'), (807, 'MK', 'MKD', 389, 'Macedonia', 'Europa', '', 'MKD', 'Denar macedonio'), (818, 'EG', 'EGY', 20, 'Egipto', 'África', '', 'EGP', 'Libra egipcia'), (826, 'GB', 'GBR', 44, 'Reino Unido', 'Europa', '', 'GBP', 'Libra esterlina libra de Gran Bretaña'), (834, 'TZ', 'TZA', 255, 'Tanzania', 'África', '', 'TZS', 'Chelín tanzano'), (840, 'US', 'USA', 1, 'Estados Unidos', 'América', 'América del Norte', 'USD', 'Dólar estadounidense'), (850, 'VI', 'VIR', 1340, 'Islas Vírgenes de los Estados Unidos', 'América', 'El Caribe', '', ''), (854, 'BF', 'BFA', 226, 'Burkina Faso', 'África', '', '', ''), (858, 'UY', 'URY', 598, 'Uruguay', 'América', 'América del Sur', 'UYU', 'Peso uruguayo'), (860, 'UZ', 'UZB', 998, 'Uzbekistán', 'Asia', '', 'UZS', 'Som uzbeko'), (862, 'VE', 'VEN', 58, 'Venezuela', 'América', 'América del Sur', 'VEB', 'Bolívar venezolano'), (876, 'WF', 'WLF', 681, 'Wallis y Futuna', 'Oceanía', '', '', ''), (882, 'WS', 'WSM', 685, 'Samoa', 'Oceanía', '', 'WST', 'Tala samoana'), (887, 'YE', 'YEM', 967, 'Yemen', 'Asia', '', 'YER', 'Rial yemení de Yemen'), (894, 'ZM', 'ZMB', 260, 'Zambia', 'África', '', 'ZMK', 'Kwacha zambiano') )
[Link - Script ZFS Iostat (bundgas)](https://github.com/bundgas/<API key>)
package org.integratedmodelling.thinklab.api.listeners; /** * Glorified listener with control capabilities. A monitor is passed to observe(). If it also implements * any other listener interfaces, these will also be honored appropriately. * * @author Ferd * */ public interface IMonitor { /** * Pass a string. Will also take an exception, but usually exceptions shouldn't turn into warnings. * These will be reported to the user unless the verbosity is set lowest. * * @param o */ public void warn(Object o); /** * Pass a string. Will also take an exception, but usually exceptions shouldn't turn into warnings. * These will be reported to the user unless the verbosity is set low. Do not abuse of these - * there should be only few, really necessary info messages so that things do not get lost. The * class parameter is used by the client to categorize messages so they can be shown in special * ways and easily identified in a list of info messages. You can leave it null or devise your own * class. * * @param o */ public void info(Object info, String infoClass); /** * Pass a string or an exception (usually the latter as a reaction to an exception in the execution). * These will interrupt execution from outside, so you should return after raising one of these. * * @param o */ public void error(Object o); /** * Any message that is just for you or is too verbose to be an info message should be sent as * debug, which is not shown by default unless you enable a higher verbosity. Don't abuse of * these, either - it's still passing stuff around through REST so it's not cheap to show a * hundred messages. * * @param o */ public void debug(Object o); /** * This is called from the OUTSIDE as a reaction to a user action. You should not call this, but * simply raise an error and return if you encounter an error condition. * * @param o */ public void stop(Object o); /** * When this returns true, the user has asked to interrupt the process. You should call it * regularly at strategic points in your program and react appropriately if it ever returns * true. The only processes that can dispense with checking it are those that are guaranteed * to run to completion quickly. * * @return */ boolean isStopped(); /** * Call this once before the processing starts to define how many steps your process will * take. You are required to report a total of n steps using addProgress() after you do this * unless you raise an error. * * @param n */ public void defineProgressSteps(int n); /** * Add the given amount of steps to the progress monitor. The total reported in normal * processing should add up to the parameter passed to defineProgressSteps and never remain * below it unless errors are thrown. Descriptions are optional (pass a null) but they can * be used to document "milestones" in execution, they just work like info messages with a * special class. * * @param steps * @param description */ public void addProgress(int steps, String description); /* * change status based on control message. This is only for CLIENT use. */ public void send(String message); /* * pass INotification.DEBUG, INotification.INFO or INotification.ERROR. Only for CLIENT use. */ public void setLogLevel(int level); /* * return one of INotification.DEBUG, INotification.INFO or INotification.ERROR, taken from * the appropriate preferences and with sensible defaults. Only for CLIENT use. */ public int getDefaultLogLevel(); /* * true if at least one error has been reported */ public boolean hasErrors(); }
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <string.h> #include "../weechat.h" #include "../wee-config.h" #include "../wee-hook.h" #include "../wee-infolist.h" #include "../wee-list.h" #include "../wee-log.h" #include "../wee-string.h" #include "../wee-utf8.h" #include "../../gui/gui-chat.h" #include "../../plugins/plugin.h" /* * Searches for a command hook in list. * * Returns pointer to hook found, NULL if not found. */ struct t_hook * hook_command_search (struct t_weechat_plugin *plugin, const char *command) { struct t_hook *ptr_hook; for (ptr_hook = weechat_hooks[HOOK_TYPE_COMMAND]; ptr_hook; ptr_hook = ptr_hook->next_hook) { if (!ptr_hook->deleted && (ptr_hook->plugin == plugin) && (string_strcasecmp (HOOK_COMMAND(ptr_hook, command), command) == 0)) return ptr_hook; } /* command hook not found for plugin */ return NULL; } /* * Builds variables/arrays that will be used for completion of commands * arguments. */ void <API key> (struct t_hook_command *hook_command) { int i, j, k, length, num_items; struct t_weelist *list; char *pos_completion, *pos_double_pipe, *pos_start, *pos_end; char **items; const char *last_space, *ptr_template; /* split templates using "||" as separator */ hook_command->cplt_num_templates = 1; pos_completion = hook_command->completion; while ((pos_double_pipe = strstr (pos_completion, "||")) != NULL) { hook_command->cplt_num_templates++; pos_completion = pos_double_pipe + 2; } hook_command->cplt_templates = malloc (hook_command->cplt_num_templates * sizeof (*hook_command->cplt_templates)); for (i = 0; i < hook_command->cplt_num_templates; i++) { hook_command->cplt_templates[i] = NULL; } pos_completion = hook_command->completion; i = 0; while (pos_completion) { pos_double_pipe = strstr (pos_completion, "||"); if (!pos_double_pipe) pos_double_pipe = pos_completion + strlen (pos_completion); pos_start = pos_completion; pos_end = pos_double_pipe - 1; if (pos_end < pos_start) { hook_command->cplt_templates[i] = strdup (""); } else { while (pos_start[0] == ' ') { pos_start++; } pos_end = pos_double_pipe - 1; while ((pos_end > pos_start) && (pos_end[0] == ' ')) { pos_end } hook_command->cplt_templates[i] = string_strndup (pos_start, pos_end - pos_start + 1); } i++; if (!pos_double_pipe[0]) pos_completion = NULL; else pos_completion = pos_double_pipe + 2; } /* for each template, split/count args */ hook_command-><API key> = malloc (hook_command->cplt_num_templates * sizeof (*hook_command-><API key>)); hook_command-><API key> = malloc (hook_command->cplt_num_templates * sizeof (*hook_command-><API key>)); hook_command->cplt_template_args = malloc (hook_command->cplt_num_templates * sizeof (*hook_command->cplt_template_args)); hook_command-><API key> = 0; for (i = 0; i < hook_command->cplt_num_templates; i++) { /* * build static part of template: it's first argument(s) which does not * contain "%" */ last_space = NULL; ptr_template = hook_command->cplt_templates[i]; while (ptr_template && ptr_template[0]) { if (ptr_template[0] == ' ') { last_space = ptr_template; break; } else if (ptr_template[0] == '%') break; ptr_template = utf8_next_char (ptr_template); } if (last_space) { last_space while (last_space > hook_command->cplt_templates[i]) { if (last_space[0] != ' ') break; } if (last_space < hook_command->cplt_templates[i]) last_space = NULL; else last_space++; } if (last_space) hook_command-><API key>[i] = string_strndup (hook_command->cplt_templates[i], last_space - hook_command->cplt_templates[i]); else hook_command-><API key>[i] = strdup (hook_command->cplt_templates[i]); /* build arguments for each template */ hook_command->cplt_template_args[i] = string_split (hook_command->cplt_templates[i], " ", 0, 0, &(hook_command-><API key>[i])); if (hook_command-><API key>[i] > hook_command-><API key>) hook_command-><API key> = hook_command-><API key>[i]; } /* * build strings with concatenation of items from different templates * for each argument: these strings will be used when completing argument * if we can't find which template to use (for example for first argument) */ if (hook_command-><API key> == 0) hook_command-><API key> = NULL; else { hook_command-><API key> = malloc (hook_command-><API key> * sizeof (*hook_command-><API key>)); list = weelist_new (); for (i = 0; i < hook_command-><API key>; i++) { /* first compute length */ length = 1; for (j = 0; j < hook_command->cplt_num_templates; j++) { if (i < hook_command-><API key>[j]) length += strlen (hook_command->cplt_template_args[j][i]) + 1; } /* alloc memory */ hook_command-><API key>[i] = malloc (length); if (hook_command-><API key>[i]) { /* concatenate items with "|" as separator */ weelist_remove_all (list); hook_command-><API key>[i][0] = '\0'; for (j = 0; j < hook_command->cplt_num_templates; j++) { if (i < hook_command-><API key>[j]) { items = string_split (hook_command->cplt_template_args[j][i], "|", 0, 0, &num_items); for (k = 0; k < num_items; k++) { if (!weelist_search (list, items[k])) { if (hook_command-><API key>[i][0]) strcat (hook_command-><API key>[i], "|"); strcat (hook_command-><API key>[i], items[k]); weelist_add (list, items[k], <API key>, NULL); } } string_free_split (items); } } } } weelist_free (list); } } /* * Hooks a command. * * Returns pointer to new hook, NULL if error. */ struct t_hook * hook_command (struct t_weechat_plugin *plugin, const char *command, const char *description, const char *args, const char *args_description, const char *completion, <API key> *callback, const void *callback_pointer, void *callback_data) { struct t_hook *new_hook; struct t_hook_command *new_hook_command; int priority; const char *ptr_command; if (!callback) return NULL; if (hook_command_search (plugin, command)) { gui_chat_printf (NULL, _("%sError: another command \"%s\" already exists " "for plugin \"%s\""), gui_chat_prefix[<API key>], command, plugin_get_name (plugin)); return NULL; } new_hook = malloc (sizeof (*new_hook)); if (!new_hook) return NULL; new_hook_command = malloc (sizeof (*new_hook_command)); if (!new_hook_command) { free (new_hook); return NULL; } <API key> (command, &priority, &ptr_command); hook_init_data (new_hook, plugin, HOOK_TYPE_COMMAND, priority, callback_pointer, callback_data); new_hook->hook_data = new_hook_command; new_hook_command->callback = callback; new_hook_command->command = strdup ((ptr_command) ? ptr_command : ((command) ? command : "")); new_hook_command->description = strdup ((description) ? description : ""); new_hook_command->args = strdup ((args) ? args : ""); new_hook_command->args_description = strdup ((args_description) ? args_description : ""); new_hook_command->completion = strdup ((completion) ? completion : ""); /* build completion variables for command */ new_hook_command->cplt_num_templates = 0; new_hook_command->cplt_templates = NULL; new_hook_command-><API key> = NULL; new_hook_command-><API key> = NULL; new_hook_command->cplt_template_args = NULL; new_hook_command-><API key> = 0; new_hook_command-><API key> = NULL; <API key> (new_hook_command); hook_add_to_list (new_hook); return new_hook; } /* * Executes a command hook. * * Returns: * <API key>: command executed successfully * <API key>: command executed and failed * <API key>: command not found * <API key>: command is ambiguous (same command * exists for another plugin, and we don't know which one to run) * <API key>: command is ambiguous (incomplete * command and multiple commands start with this name) * <API key>: command is already running */ int hook_command_exec (struct t_gui_buffer *buffer, int any_plugin, struct t_weechat_plugin *plugin, const char *string) { struct t_hook *ptr_hook, *next_hook; struct t_hook *hook_plugin, *hook_other_plugin, *hook_other_plugin2; struct t_hook *<API key>; char **argv, **argv_eol; const char *ptr_command_name; int argc, rc, length_command_name, <API key>; int count_other_plugin, <API key>; if (!buffer || !string || !string[0]) return <API key>; if (<API key> (buffer, string) == WEECHAT_RC_OK_EAT) return <API key>; argv = string_split (string, " ", 0, 0, &argc); if (argc == 0) { string_free_split (argv); return <API key>; } argv_eol = string_split (string, " ", 1, 0, NULL); ptr_command_name = utf8_next_char (argv[0]); length_command_name = strlen (ptr_command_name); hook_exec_start (); hook_plugin = NULL; hook_other_plugin = NULL; hook_other_plugin2 = NULL; <API key> = NULL; count_other_plugin = 0; <API key> = CONFIG_BOOLEAN(<API key>); <API key> = 0; ptr_hook = weechat_hooks[HOOK_TYPE_COMMAND]; while (ptr_hook) { next_hook = ptr_hook->next_hook; if (!ptr_hook->deleted) { if (string_strcasecmp (ptr_command_name, HOOK_COMMAND(ptr_hook, command)) == 0) { if (ptr_hook->plugin == plugin) { if (!hook_plugin) hook_plugin = ptr_hook; } else { if (any_plugin) { if (!hook_other_plugin) hook_other_plugin = ptr_hook; else if (!hook_other_plugin2) hook_other_plugin2 = ptr_hook; count_other_plugin++; } } } else if (<API key> && (string_strncasecmp (ptr_command_name, HOOK_COMMAND(ptr_hook, command), length_command_name) == 0)) { <API key> = ptr_hook; <API key>++; } } ptr_hook = next_hook; } rc = <API key>; ptr_hook = NULL; if (hook_plugin || hook_other_plugin) { if (!hook_plugin && (count_other_plugin > 1) && (hook_other_plugin->priority == hook_other_plugin2->priority)) { /* * ambiguous: no command for current plugin, but more than one * command was found for other plugins with the same priority * => we don't know which one to run! */ rc = <API key>; } else { if (hook_plugin && hook_other_plugin) { /* * if we have a command in current plugin and another plugin, * choose the command with the higher priority (if priority * is the same, always choose the command for the current * plugin) */ ptr_hook = (hook_other_plugin->priority > hook_plugin->priority) ? hook_other_plugin : hook_plugin; } else { /* * choose the command for current plugin, if found, otherwise * use command found in another plugin */ ptr_hook = (hook_plugin) ? hook_plugin : hook_other_plugin; } } } else if (<API key>) { if (<API key> == 1) ptr_hook = <API key>; else rc = <API key>; } /* execute the command for the hook found */ if (ptr_hook) { if (ptr_hook->running >= <API key>) { /* loop in execution of command => do NOT execute again */ rc = <API key>; } else { /* execute the command! */ ptr_hook->running++; rc = (int) (HOOK_COMMAND(ptr_hook, callback)) (ptr_hook->callback_pointer, ptr_hook->callback_data, buffer, argc, argv, argv_eol); ptr_hook->running if (rc == WEECHAT_RC_ERROR) rc = <API key>; else rc = <API key>; } } string_free_split (argv); string_free_split (argv_eol); hook_exec_end (); return rc; } /* * Frees data in a command hook. */ void <API key> (struct t_hook *hook) { int i; if (!hook || !hook->hook_data) return; if (HOOK_COMMAND(hook, command)) { free (HOOK_COMMAND(hook, command)); HOOK_COMMAND(hook, command) = NULL; } if (HOOK_COMMAND(hook, description)) { free (HOOK_COMMAND(hook, description)); HOOK_COMMAND(hook, description) = NULL; } if (HOOK_COMMAND(hook, args)) { free (HOOK_COMMAND(hook, args)); HOOK_COMMAND(hook, args) = NULL; } if (HOOK_COMMAND(hook, args_description)) { free (HOOK_COMMAND(hook, args_description)); HOOK_COMMAND(hook, args_description) = NULL; } if (HOOK_COMMAND(hook, completion)) { free (HOOK_COMMAND(hook, completion)); HOOK_COMMAND(hook, completion) = NULL; } if (HOOK_COMMAND(hook, cplt_templates)) { for (i = 0; i < HOOK_COMMAND(hook, cplt_num_templates); i++) { if (HOOK_COMMAND(hook, cplt_templates)[i]) free (HOOK_COMMAND(hook, cplt_templates)[i]); if (HOOK_COMMAND(hook, <API key>)[i]) free (HOOK_COMMAND(hook, <API key>)[i]); string_free_split (HOOK_COMMAND(hook, cplt_template_args)[i]); } free (HOOK_COMMAND(hook, cplt_templates)); } if (HOOK_COMMAND(hook, <API key>)) { free (HOOK_COMMAND(hook, <API key>)); HOOK_COMMAND(hook, <API key>) = NULL; } if (HOOK_COMMAND(hook, <API key>)) { free (HOOK_COMMAND(hook, <API key>)); HOOK_COMMAND(hook, <API key>) = NULL; } if (HOOK_COMMAND(hook, cplt_template_args)) { free (HOOK_COMMAND(hook, cplt_template_args)); HOOK_COMMAND(hook, cplt_template_args) = NULL; } if (HOOK_COMMAND(hook, <API key>)) { for (i = 0; i < HOOK_COMMAND(hook, <API key>); i++) { free (HOOK_COMMAND(hook, <API key>[i])); } free (HOOK_COMMAND(hook, <API key>)); HOOK_COMMAND(hook, <API key>) = NULL; } free (hook->hook_data); hook->hook_data = NULL; } /* * Adds command hook data in the infolist item. * * Returns: * 1: OK * 0: error */ int <API key> (struct t_infolist_item *item, struct t_hook *hook) { if (!item || !hook || !hook->hook_data) return 0; if (!<API key> (item, "callback", HOOK_COMMAND(hook, callback))) return 0; if (!<API key> (item, "command", HOOK_COMMAND(hook, command))) return 0; if (!<API key> (item, "description", HOOK_COMMAND(hook, description))) return 0; if (!<API key> (item, "description_nls", (HOOK_COMMAND(hook, description) && HOOK_COMMAND(hook, description)[0]) ? _(HOOK_COMMAND(hook, description)) : "")) return 0; if (!<API key> (item, "args", HOOK_COMMAND(hook, args))) return 0; if (!<API key> (item, "args_nls", (HOOK_COMMAND(hook, args) && HOOK_COMMAND(hook, args)[0]) ? _(HOOK_COMMAND(hook, args)) : "")) return 0; if (!<API key> (item, "args_description", HOOK_COMMAND(hook, args_description))) return 0; if (!<API key> (item, "<API key>", (HOOK_COMMAND(hook, args_description) && HOOK_COMMAND(hook, args_description)[0]) ? _(HOOK_COMMAND(hook, args_description)) : "")) return 0; if (!<API key> (item, "completion", HOOK_COMMAND(hook, completion))) return 0; return 1; } /* * Prints command hook data in WeeChat log file (usually for crash dump). */ void <API key> (struct t_hook *hook) { int i, j; if (!hook || !hook->hook_data) return; log_printf (" command data:"); log_printf (" callback. . . . . . . : 0x%lx", HOOK_COMMAND(hook, callback)); log_printf (" command . . . . . . . : '%s'", HOOK_COMMAND(hook, command)); log_printf (" description . . . . . : '%s'", HOOK_COMMAND(hook, description)); log_printf (" args. . . . . . . . . : '%s'", HOOK_COMMAND(hook, args)); log_printf (" args_description. . . : '%s'", HOOK_COMMAND(hook, args_description)); log_printf (" completion. . . . . . : '%s'", HOOK_COMMAND(hook, completion)); log_printf (" cplt_num_templates. . : %d", HOOK_COMMAND(hook, cplt_num_templates)); for (i = 0; i < HOOK_COMMAND(hook, cplt_num_templates); i++) { log_printf (" cplt_templates[%04d] . . . : '%s'", i, HOOK_COMMAND(hook, cplt_templates)[i]); log_printf (" <API key>[%04d]: '%s'", i, HOOK_COMMAND(hook, <API key>)[i]); log_printf (" num_args. . . . . . : %d", HOOK_COMMAND(hook, <API key>)[i]); for (j = 0; j < HOOK_COMMAND(hook, <API key>)[i]; j++) { log_printf (" args[%04d]. . . . . : '%s'", j, HOOK_COMMAND(hook, cplt_template_args)[i][j]); } } log_printf (" num_args_concat . . . : %d", HOOK_COMMAND(hook, <API key>)); for (i = 0; i < HOOK_COMMAND(hook, <API key>); i++) { log_printf (" args_concat[%04d] . . : '%s'", i, HOOK_COMMAND(hook, <API key>)[i]); } }
PROJECT_NAME := ppi_pca10040 TARGETS := nrf52832_xxaa OUTPUT_DIRECTORY := _build SDK_ROOT := ../../../../../.. PROJ_DIR := ../../.. $(OUTPUT_DIRECTORY)/nrf52832_xxaa.out: \ LINKER_SCRIPT := ppi_gcc_nrf52.ld # Source files common to all targets SRC_FILES += \ $(SDK_ROOT)/components/libraries/log/src/<API key>.c \ $(SDK_ROOT)/components/libraries/log/src/nrf_log_frontend.c \ $(SDK_ROOT)/components/boards/boards.c \ $(SDK_ROOT)/components/libraries/util/app_error.c \ $(SDK_ROOT)/components/libraries/util/app_error_weak.c \ $(SDK_ROOT)/components/libraries/util/app_util_platform.c \ $(SDK_ROOT)/components/libraries/util/nrf_assert.c \ $(SDK_ROOT)/components/libraries/strerror/nrf_strerror.c \ $(SDK_ROOT)/components/drivers_nrf/common/nrf_drv_common.c \ $(SDK_ROOT)/components/drivers_nrf/ppi/nrf_drv_ppi.c \ $(SDK_ROOT)/components/drivers_nrf/timer/nrf_drv_timer.c \ $(SDK_ROOT)/components/drivers_nrf/uart/nrf_drv_uart.c \ $(PROJ_DIR)/main.c \ $(SDK_ROOT)/external/segger_rtt/RTT_Syscalls_GCC.c \ $(SDK_ROOT)/external/segger_rtt/SEGGER_RTT.c \ $(SDK_ROOT)/external/segger_rtt/SEGGER_RTT_printf.c \ $(SDK_ROOT)/components/toolchain/gcc/gcc_startup_nrf52.S \ $(SDK_ROOT)/components/toolchain/system_nrf52.c \ # Include folders common to all targets INC_FOLDERS += \ $(SDK_ROOT)/components \ $(SDK_ROOT)/components/libraries/util \ $(SDK_ROOT)/components/toolchain/gcc \ $(SDK_ROOT)/components/drivers_nrf/uart \ ../config \ $(SDK_ROOT)/components/drivers_nrf/common \ $(SDK_ROOT)/components/libraries/strerror \ $(PROJ_DIR) \ $(SDK_ROOT)/external/segger_rtt \ $(SDK_ROOT)/components/libraries/log \ $(SDK_ROOT)/components/libraries/bsp \ $(SDK_ROOT)/components/drivers_nrf/nrf_soc_nosd \ $(SDK_ROOT)/components/toolchain \ $(SDK_ROOT)/components/device \ $(SDK_ROOT)/components/drivers_nrf/ppi \ $(SDK_ROOT)/components/boards \ $(SDK_ROOT)/components/drivers_nrf/delay \ $(SDK_ROOT)/components/toolchain/cmsis/include \ $(SDK_ROOT)/components/libraries/log/src \ $(SDK_ROOT)/components/drivers_nrf/hal \ $(SDK_ROOT)/components/drivers_nrf/timer \ # Libraries common to all targets LIB_FILES += \ # C flags common to all targets CFLAGS += -DBOARD_PCA10040 CFLAGS += -DBSP_DEFINES_ONLY CFLAGS += -<API key> CFLAGS += -DNRF52 CFLAGS += -DNRF52832_XXAA CFLAGS += -DNRF52_PAN_12 CFLAGS += -DNRF52_PAN_15 CFLAGS += -DNRF52_PAN_20 CFLAGS += -DNRF52_PAN_31 CFLAGS += -DNRF52_PAN_36 CFLAGS += -DNRF52_PAN_51 CFLAGS += -DNRF52_PAN_54 CFLAGS += -DNRF52_PAN_55 CFLAGS += -DNRF52_PAN_58 CFLAGS += -DNRF52_PAN_64 CFLAGS += -DNRF52_PAN_74 CFLAGS += -mcpu=cortex-m4 CFLAGS += -mthumb -mabi=aapcs CFLAGS += -Wall -Werror -O3 -g3 CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 # keep every function in separate section, this allows linker to discard unused ones CFLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing CFLAGS += -fno-builtin --short-enums # C++ flags common to all targets CXXFLAGS += \ # Assembler flags common to all targets ASMFLAGS += -x assembler-with-cpp ASMFLAGS += -DBOARD_PCA10040 ASMFLAGS += -DBSP_DEFINES_ONLY ASMFLAGS += -<API key> ASMFLAGS += -DNRF52 ASMFLAGS += -DNRF52832_XXAA ASMFLAGS += -DNRF52_PAN_12 ASMFLAGS += -DNRF52_PAN_15 ASMFLAGS += -DNRF52_PAN_20 ASMFLAGS += -DNRF52_PAN_31 ASMFLAGS += -DNRF52_PAN_36 ASMFLAGS += -DNRF52_PAN_51 ASMFLAGS += -DNRF52_PAN_54 ASMFLAGS += -DNRF52_PAN_55 ASMFLAGS += -DNRF52_PAN_58 ASMFLAGS += -DNRF52_PAN_64 ASMFLAGS += -DNRF52_PAN_74 # Linker flags LDFLAGS += -mthumb -mabi=aapcs -L $(TEMPLATE_PATH) -T$(LINKER_SCRIPT) LDFLAGS += -mcpu=cortex-m4 LDFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 # let linker to dump unused sections LDFLAGS += -Wl,--gc-sections # use newlib in nano version LDFLAGS += --specs=nano.specs -lc -lnosys .PHONY: $(TARGETS) default all clean help flash # Default target - first one defined default: nrf52832_xxaa # Print all targets that can be built help: @echo following targets are available: @echo nrf52832_xxaa TEMPLATE_PATH := $(SDK_ROOT)/components/toolchain/gcc include $(TEMPLATE_PATH)/Makefile.common $(foreach target, $(TARGETS), $(call define_target, $(target))) # Flash the program flash: $(OUTPUT_DIRECTORY)/nrf52832_xxaa.hex @echo Flashing: $< nrfjprog --program $< -f nrf52 --sectorerase nrfjprog --reset -f nrf52 erase: nrfjprog --eraseall -f nrf52
package org.schabi.newpipe.local.holder; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.Nullable; import androidx.core.content.ContextCompat; import org.schabi.newpipe.R; import org.schabi.newpipe.database.LocalItem; import org.schabi.newpipe.database.stream.<API key>; import org.schabi.newpipe.extractor.NewPipe; import org.schabi.newpipe.local.LocalItemBuilder; import org.schabi.newpipe.local.history.<API key>; import org.schabi.newpipe.util.AnimationUtils; import org.schabi.newpipe.util.<API key>; import org.schabi.newpipe.util.Localization; import org.schabi.newpipe.views.AnimatedProgressBar; import java.time.format.DateTimeFormatter; import java.util.concurrent.TimeUnit; public class <API key> extends LocalItemHolder { public final ImageView itemThumbnailView; public final TextView itemVideoTitleView; public final TextView itemUploaderView; public final TextView itemDurationView; @Nullable public final TextView <API key>; private final AnimatedProgressBar itemProgressView; public <API key>(final LocalItemBuilder itemBuilder, final ViewGroup parent) { this(itemBuilder, R.layout.list_stream_item, parent); } <API key>(final LocalItemBuilder infoItemBuilder, final int layoutId, final ViewGroup parent) { super(infoItemBuilder, layoutId, parent); itemThumbnailView = itemView.findViewById(R.id.itemThumbnailView); itemVideoTitleView = itemView.findViewById(R.id.itemVideoTitleView); itemUploaderView = itemView.findViewById(R.id.itemUploaderView); itemDurationView = itemView.findViewById(R.id.itemDurationView); <API key> = itemView.findViewById(R.id.<API key>); itemProgressView = itemView.findViewById(R.id.itemProgressView); } private String <API key>(final <API key> entry, final DateTimeFormatter dateTimeFormatter) { final String watchCount = Localization .shortViewCount(itemBuilder.getContext(), entry.getWatchCount()); final String uploadDate = dateTimeFormatter.format(entry.getLatestAccessDate()); final String serviceName = NewPipe.getNameOfService(entry.getStreamEntity().getServiceId()); return Localization.concatenateStrings(watchCount, uploadDate, serviceName); } @Override public void updateFromItem(final LocalItem localItem, final <API key> <API key>, final DateTimeFormatter dateTimeFormatter) { if (!(localItem instanceof <API key>)) { return; } final <API key> item = (<API key>) localItem; itemVideoTitleView.setText(item.getStreamEntity().getTitle()); itemUploaderView.setText(item.getStreamEntity().getUploader()); if (item.getStreamEntity().getDuration() > 0) { itemDurationView. setText(Localization.getDurationString(item.getStreamEntity().getDuration())); itemDurationView.setBackgroundColor(ContextCompat.getColor(itemBuilder.getContext(), R.color.<API key>)); itemDurationView.setVisibility(View.VISIBLE); if (item.getProgressTime() > 0) { itemProgressView.setVisibility(View.VISIBLE); itemProgressView.setMax((int) item.getStreamEntity().getDuration()); itemProgressView.setProgress((int) TimeUnit.MILLISECONDS .toSeconds(item.getProgressTime())); } else { itemProgressView.setVisibility(View.GONE); } } else { itemDurationView.setVisibility(View.GONE); itemProgressView.setVisibility(View.GONE); } if (<API key> != null) { <API key>.setText(<API key>(item, dateTimeFormatter)); } // Default thumbnail is shown on error, while loading and if the url is empty itemBuilder.displayImage(item.getStreamEntity().getThumbnailUrl(), itemThumbnailView, <API key>.<API key>); itemView.setOnClickListener(view -> { if (itemBuilder.<API key>() != null) { itemBuilder.<API key>().selected(item); } }); itemView.setLongClickable(true); itemView.<API key>(view -> { if (itemBuilder.<API key>() != null) { itemBuilder.<API key>().held(item); } return true; }); } @Override public void updateState(final LocalItem localItem, final <API key> <API key>) { if (!(localItem instanceof <API key>)) { return; } final <API key> item = (<API key>) localItem; if (item.getProgressTime() > 0 && item.getStreamEntity().getDuration() > 0) { itemProgressView.setMax((int) item.getStreamEntity().getDuration()); if (itemProgressView.getVisibility() == View.VISIBLE) { itemProgressView.setProgressAnimated((int) TimeUnit.MILLISECONDS .toSeconds(item.getProgressTime())); } else { itemProgressView.setProgress((int) TimeUnit.MILLISECONDS .toSeconds(item.getProgressTime())); AnimationUtils.animateView(itemProgressView, true, 500); } } else if (itemProgressView.getVisibility() == View.VISIBLE) { AnimationUtils.animateView(itemProgressView, false, 500); } } }
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.11"/> <title>QtNets: Class Members - Variables</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="logo_polito.jpg"/></td> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">QtNets &#160;<span id="projectnumber">Version 1.0</span> </div> <div id="projectbrief">An open-source library to manage complex networks</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.11 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li class="current"><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="functions.html"><span>All</span></a></li> <li><a href="functions_func.html"><span>Functions</span></a></li> <li class="current"><a href="functions_vars.html"><span>Variables</span></a></li> <li><a href="functions_enum.html"><span>Enumerations</span></a></li> <li><a href="functions_eval.html"><span>Enumerator</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="functions_vars.html#index__"><span>_</span></a></li> <li><a href="functions_vars_a.html#index_a"><span>a</span></a></li> <li><a href="functions_vars_b.html#index_b"><span>b</span></a></li> <li><a href="functions_vars_c.html#index_c"><span>c</span></a></li> <li><a href="functions_vars_d.html#index_d"><span>d</span></a></li> <li><a href="functions_vars_e.html#index_e"><span>e</span></a></li> <li><a href="functions_vars_f.html#index_f"><span>f</span></a></li> <li><a href="functions_vars_h.html#index_h"><span>h</span></a></li> <li><a href="functions_vars_i.html#index_i"><span>i</span></a></li> <li><a href="functions_vars_l.html#index_l"><span>l</span></a></li> <li><a href="functions_vars_m.html#index_m"><span>m</span></a></li> <li><a href="functions_vars_n.html#index_n"><span>n</span></a></li> <li><a href="functions_vars_o.html#index_o"><span>o</span></a></li> <li><a href="functions_vars_p.html#index_p"><span>p</span></a></li> <li><a href="functions_vars_r.html#index_r"><span>r</span></a></li> <li><a href="functions_vars_s.html#index_s"><span>s</span></a></li> <li><a href="functions_vars_t.html#index_t"><span>t</span></a></li> <li class="current"><a href="functions_vars_v.html#index_v"><span>v</span></a></li> <li><a href="functions_vars_w.html#index_w"><span>w</span></a></li> <li><a href="functions_vars_z.html#index_z"><span>z</span></a></li> </ul> </div> </div><!-- top --> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="<API key>"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160; <h3><a class="anchor" id="index_v"></a>- v -</h3><ul> <li>valid : <a class="el" href="class_optional_bool.html#<API key>">OptionalBool</a> </li> <li>value : <a class="el" href="class_optional_bool.html#<API key>">OptionalBool</a> , <a class="el" href="<API key>.html#<API key>">SmileProperty</a> </li> <li>version : <a class="el" href="class_q_n_network.html#<API key>">QNNetwork</a> , <a class="el" href="<API key>.html#<API key>">QNNetworkModel</a> , <a class="el" href="class_q_n_style.html#<API key>">QNStyle</a> , <a class="el" href="<API key>.html#<API key>">SmileGenieExt</a> </li> <li>view : <a class="el" href="class_main_window.html#<API key>">MainWindow</a> </li> <li>viewMenu : <a class="el" href="class_main_window.html#<API key>">MainWindow</a> </li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by & <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.11 </small></address> </body> </html>
using System; using System.Collections.Generic; using System.Linq; using System.Text; using JaCagueiAqui.Model; using JaCagueiAqui.Data; namespace JaCagueiAqui.Negocio { public class PostBLL { public Post RetornaPost(int id) { using (var db = new DataBase()) { return db.Posts.Where(x => x.ID == id).FirstOrDefault(); } } public object ListaItens() { using (var db = new DataBase()) { var post = (from c in db.Posts select c).ToList(); return post; } } public void Salvar(Post post) { using (var db = new DataBase()) { db.Posts.Add(post); db.SaveChanges(); } } public object RegistrarNaoGostei(int ID) { using (var db = new DataBase()) { try { var post = db.Posts.FirstOrDefault(x => x.ID == ID); post.NaoGostei++; db.Posts.Attach(post); var entry = db.Entry(post); entry.Property(x => x.NaoGostei).IsModified = true; db.SaveChanges(); return new { total = post.NaoGostei }; } catch (Exception) { throw; } } } public object RegistrarGostei(int ID) { using (var db = new DataBase()) { try { var post = db.Posts.FirstOrDefault(x => x.ID == ID); post.Gostei++; db.Posts.Attach(post); var entry = db.Entry(post); entry.Property(x => x.Gostei).IsModified = true; db.SaveChanges(); return new { total = post.Gostei }; } catch (Exception) { throw; } } } public int <API key>() { using (var db = new DataBase()) { return (from c in db.Posts select c.ID).Count(); } } public List<Post> RetornaMaisCurtidas(int tamanho, int pagina = 1) { using (var db = new DataBase()) { return (from c in db.Posts orderby c.Gostei descending select c).Skip((pagina - 1) * tamanho).Take(tamanho).ToList(); } } public List<Post> <API key>(int tamanho, int pagina = 1) { using (var db = new DataBase()) { return (from c in db.Posts orderby c.NumeroComentarios descending select c).Skip((pagina - 1) * tamanho).Take(tamanho).ToList(); } } } }
package it.unibas.lunatic.model.chase.chasemc; import it.unibas.lunatic.model.dependency.FormulaVariable; import speedy.model.database.AttributeRef; public class BackwardAttribute { private AttributeRef attributeRef; private FormulaVariable variable; public BackwardAttribute(AttributeRef attributeRef, FormulaVariable variable) { this.attributeRef = attributeRef; this.variable = variable; } public AttributeRef getAttributeRef() { return attributeRef; } public FormulaVariable getVariable() { return variable; } @Override public int hashCode() { int hash = 7; hash = 13 * hash + (this.attributeRef != null ? this.attributeRef.hashCode() : 0); hash = 13 * hash + (this.variable != null ? this.variable.hashCode() : 0); return hash; } @Override public boolean equals(Object obj) { if (obj == null) return false; if (getClass() != obj.getClass()) return false; final BackwardAttribute other = (BackwardAttribute) obj; if (this.attributeRef != other.attributeRef && (this.attributeRef == null || !this.attributeRef.equals(other.attributeRef))) return false; if (this.variable != other.variable && (this.variable == null || !this.variable.equals(other.variable))) return false; return true; } @Override public String toString() { return "[" + attributeRef + ", var=" + variable + "]"; } }
# A very thin wrapper around the scanner that breaks quantified literal runs, # collects emitted tokens into an array, calculates their nesting depth, and # normalizes tokens for the parser, and checks if they are implemented by the # given syntax flavor. class Regexp::Lexer OPENING_TOKENS = [ :capture, :passive, :lookahead, :nlookahead, :lookbehind, :nlookbehind, :atomic, :options, :options_switch, :named, :absence ].freeze CLOSING_TOKENS = [:close].freeze def self.lex(input, syntax = "ruby/#{RUBY_VERSION}", &block) new.lex(input, syntax, &block) end def lex(input, syntax = "ruby/#{RUBY_VERSION}", &block) syntax = Regexp::Syntax.new(syntax) self.tokens = [] self.nesting = 0 self.set_nesting = 0 self.conditional_nesting = 0 self.shift = 0 last = nil Regexp::Scanner.scan(input) do |type, token, text, ts, te| type, token = *syntax.normalize(type, token) syntax.check! type, token ascend(type, token) if type == :quantifier and last break_literal(last) if last.type == :literal <API key>(last) if last.token == :codepoint_list end current = Regexp::Token.new(type, token, text, ts + shift, te + shift, nesting, set_nesting, conditional_nesting) current = merge_condition(current) if type == :conditional and [:condition, :condition_close].include?(token) last.next = current if last current.previous = last if last tokens << current last = current descend(type, token) end if block_given? tokens.map { |t| block.call(t) } else tokens end end class << self alias :scan :lex end private attr_accessor :tokens, :nesting, :set_nesting, :conditional_nesting, :shift def ascend(type, token) case type when :group, :assertion self.nesting = nesting - 1 if CLOSING_TOKENS.include?(token) when :set self.set_nesting = set_nesting - 1 if token == :close when :conditional self.conditional_nesting = conditional_nesting - 1 if token == :close end end def descend(type, token) case type when :group, :assertion self.nesting = nesting + 1 if OPENING_TOKENS.include?(token) when :set self.set_nesting = set_nesting + 1 if token == :open when :conditional self.conditional_nesting = conditional_nesting + 1 if token == :open end end # called by scan to break a literal run that is longer than one character # into two separate tokens when it is followed by a quantifier def break_literal(token) lead, last, _ = token.text.partition(/.\z/mu) return if lead.empty? tokens.pop tokens << Regexp::Token.new(:literal, :literal, lead, token.ts, (token.te - last.bytesize), nesting, set_nesting, conditional_nesting) tokens << Regexp::Token.new(:literal, :literal, last, (token.ts + lead.bytesize), token.te, nesting, set_nesting, conditional_nesting) end def <API key>(token) lead, _, tail = token.text.rpartition(' ') return if lead.empty? tokens.pop tokens << Regexp::Token.new(:escape, :codepoint_list, lead + '}', token.ts, (token.te - tail.length), nesting, set_nesting, conditional_nesting) tokens << Regexp::Token.new(:escape, :codepoint_list, '\u{' + tail, (token.ts + lead.length + 1), (token.te + 3), nesting, set_nesting, conditional_nesting) self.shift = shift + 3 # one space less, but extra \, u, {, and } end def merge_condition(current) last = tokens.pop Regexp::Token.new(:conditional, :condition, last.text + current.text, last.ts, current.te, nesting, set_nesting, conditional_nesting) end end # module Regexp::Lexer
// Altaxo: a data processing and data plotting program // This program is free software; you can redistribute it and/or modify // (at your option) any later version. // This program is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #nullable enable namespace Altaxo.Main.Services { <summary> Interface for the other site of a <see cref="IProgressReporter"/>, i.e. the site that reads the progress and bring it to display. </summary> public interface IProgressMonitor { <summary> Indicates that new report text has arrived that was not displayed yet. </summary> bool HasReportText { get; } <summary> Gets the report text. When called, the function has to reset the <see cref="HasReportText"/> flag. </summary> string GetReportText(); <summary>Gets the progress as fraction. If you are not able to calculate the progress, this function should return <see cref="double.NaN"/>.</summary> <returns>The progress as fraction value [0..1], or <see cref="double.NaN"/>.</returns> double GetProgressFraction(); } }
# alignment-nf ## Nextflow pipeline for BAM realignment or fastq alignment [![CircleCI](https: [![Docker Hub](https: [![https: ![Workflow representation](WESpipeline.png?raw=true "Scheme of alignment/realignment Workflow") ## Description Nextflow pipeline to perform BAM realignment or fastq alignment and QC, with/without local indel realignment and base quality score recalibration. ## Dependencies 1. Nextflow : for common installation procedures see the [IARC-nf](https://github.com/IARCbioinfo/IARC-nf) repository. Basic fastq alignment 2. [*bwa2*](https: 3. [*samblaster*](https://github.com/GregoryFaust/samblaster) 4. [*sambamba*](https://github.com/lomereiter/sambamba) BAM files realignment 5. [*samtools*](http://samtools.sourceforge.net/) Adapter sequence trimming 6. [*AdapterRemoval*](https://github.com/MikkelSchubert/adapterremoval) ALT contigs handling 7. the *k8* javascript execution shell (e.g., available in the [*bwakit*](https://sourceforge.net/projects/bio-bwa/files/bwakit/) archive); must be in the PATH 8. javascript bwa-postalt.js and the additional fasta reference *.alt* file from [*bwakit*](https://github.com/lh3/bwa/tree/master/bwakit) must be in the same directory as the reference genome file. QC 9. [Qualimap](http://qualimap.bioinfo.cipf.es). 10. [Multiqc](http://multiqc.info). Base quality score recalibration 11. [GATK4](https://software.broadinstitute.org/gatk/guide/quickstart); wrapper 'gatk' must be in the path 12. [GATK bundle](https://software.broadinstitute.org/gatk/download/bundle) VCF files with lists of indels and SNVs (recommended: Mills gold standard indels VCFs, dbsnp VCF), and corresponding tabix indexes (.tbi) **A conda receipe, and docker and singularity containers are available with all the tools needed to run the pipeline (see "Usage")** ## Input | Type | Description | | | --input_folder | a folder with fastq files or bam files | ## Parameters * | Name | Example value | Description | | |--ref | hg19.fasta | genome reference with its index files (*.fai*, *.sa*, *.bwt*, *.ann*, *.amb*, *.pac*, and *.dict*; in the same directory) | * | Name | Default value | Description | | |--input_file | null | Input file (comma-separated) with 4 columns: SM (sample name), RG (read group ID), pair1 (first fastq of the pair), and pair2 (second fastq of the pair). | |--output_folder | . | Output folder for aligned BAMs| |--cpu | 8 | number of CPUs | |--cpu\_BQSR | 2 | number of CPUs for GATK base quality score recalibration | |--mem | 32 | memory| |--mem\_BQSR | 10 | memory for GATK base quality score recalibration | |--RG | PL:ILLUMINA | sequencing information for aligned (for *bwa*)| |--fastq_ext | fastq.gz | extension of fastq files| |--suffix1 | \_1 | suffix for second element of read files pair| |--suffix2 | \_2 | suffix for second element of read files pair| |--bed | | bed file with interval list| |--snp_vcf | dbsnp.vcf | path to SNP VCF from GATK bundle (default : dbsnp.vcf) | |--indel_vcf | Mills_1000G_indels.vcf | path to indel VCF from GATK bundle (default : Mills_1000G_indels.vcf) | |--postaltjs | bwa-postalt.js" | path to postalignment javascript *bwa-postalt.js*| |--feature_file | null | Path to feature file for qualimap | |--multiqc_config | null | config yaml file for multiqc | |--adapterremoval_opt | null | Command line options for AdapterRemoval | |--bwa_mem | bwa-mem2 mem | bwa-mem command; use "bwa mem" to switch to regular bwa-mem (both are in the docker and singularity containers) | * Flags are special parameters without value. | Name | Description | | | --help | print usage and optional parameters | |--trim | enable adapter sequence trimming| |--recalibration | perform quality score recalibration (GATK)| |--alt | enable alternative contig handling (for reference genome hg38)| |--bwa_option_M | Trigger the -M option in bwa and the corresponding compatibility option in samblaster (marks shorter split hits as secondary) | ## Usage To run the pipeline on a series of fastq or BAM files in folder *input* and a fasta reference file hg19.fasta, one can type: bash nextflow run iarcbioinfo/alignment-nf -r v1.3 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output To run the pipeline without singularity just remove "-profile singularity". Alternatively, one can run the pipeline using a docker container (-profile docker) the conda receipe containing all required dependencies (-profile conda). Use bwa-mem instead of bwa-mem2 To use bwa-mem, one can type: bash nextflow run iarcbioinfo/alignment-nf -r v1.3 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output --bwa_mem "bwa mem" Enable adapter trimming To use the adapter trimming step, you must add the ***--trim* option**, as well as satisfy the requirements above mentionned. For example: bash nextflow run iarcbioinfo/alignment-nf -r v1.3 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output --trim Enable ALT mode To use the alternative contigs handling mode, you must provide the **path to an ALT aware genome reference** (e.g., hg38) AND add the ***--alt* option**, as well as satisfy the above-mentionned requirements. For example: bash nextflow run iarcbioinfo/alignment-nf -r v1.3 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output --postaltjs /user/bin/bwa-0.7.15/bwakit/bwa-postalt.js --alt Enable base quality score recalibration To use the base quality score recalibration step, you must provide the **path to 2 GATK bundle VCF files** with lists of known snps and indels, respectively, AND add the ***--recalibration* option**, as well as satisfy the requirements above mentionned. For example: bash nextflow run iarcbioinfo/alignment-nf -r v1.3 -profile singularity --input_folder input/ --ref hg19.fasta --output_folder output --snp_vcf GATKbundle/dbsnp.vcf.gz --indel_vcf GATKbundle/Mills_1000G_indels.vcf.gz --recalibration ## Output | Type | Description | | | BAM/ | folder with BAM and BAI files of alignments or realignments | | QC/BAM/<API key>*report.html | multiQC report for qualimap and samtools flagstat (duplicates) | | QC/BAM/<API key>*report_data | data used for the multiQC report | | QC/qualimap/<API key>.stats.txt | qualimap summary file | | QC/qualimap/<API key>/ | qualimap files | | QC/BAM/BQSR/ | GATK base quality score recalibration outputs (tables and pdf comparing scores before/after recalibration)| ## Directed Acyclic Graph [![DAG](dag.png)](http: ## FAQ Why did Indel realignment disappear from version 1.0? Indel realignment was removed following new GATK best practices for pre-processing. ## Contributions | Name | Email | Description | | | Nicolas Alcala* | AlcalaN@fellows.iarc.fr | Developer to contact for support | | Catherine Voegele | VoegeleC@iarc.fr | Tester | | Vincent Cahais | CahaisV@iarc.fr | Tester | | Alexis Robitaille | RobitailleA@students.iarc.fr | Tester |
<?php namespace GeminiLabs\Pollux\Tests\Unit; use GeminiLabs\Pollux\Tests\Unit\UnitTest; class TestPostType extends UnitTest { public function testThis() { $this->assertTrue( true ); } }
<div id="answer" ng-if="$ctrl.item.hasAnswer" layout-fill> <p class="md-caption" style="color: gray;">Resposta</p> <p ng-show="$ctrl.filters.fillingBox">{{$ctrl.item.answer.date | date:'dd/MM/yyyy'}}</p> </div> <div id="metadata" ng-if="$ctrl.item.hasMetadata" layout-fill> <p class="md-caption" style="color: gray;">Metadado</p> <p ng-bind-html="$ctrl.item.metadata.label.ptBR.formattedText"></p> </div> <div id="comment" ng-if="$ctrl.item.hasComment" layout-fill> <p class="md-caption" style="color: gray;">Comentário</p> <p ng-bind-html="$ctrl.item.comment"></p> </div>
#ifndef <API key> #define <API key> #include "DifficultySettings.h" namespace difficulty { #define <API key> "atdm:<API key>" #define <API key> "atdm:difficulty_settings" // number of difficulty levels #define DIFFICULTY_COUNT 3 /** * greebo: The Difficulty Manager provides methods to load * the various spawnargs into the entities based on the * selected mission difficulty. * * During initialisation, the manager reads the default difficulty settings * from the def/ folder. The procedure is as follows: * * 1) Read global default settings from the entities matching <API key>. * 2) Search the map for <API key> entities: these settings * will override any default settings found in step 1 (settings that target the same * entityclass/spawnarg combination will be removed and replaced by the ones defined in the map). */ class DifficultyManager { // The selected difficulty [0 .. DIFFICULTY_COUNT-1] int _difficulty; // The global difficulty settings (parsed from the entityDefs) DifficultySettings _globalSettings[DIFFICULTY_COUNT]; // The difficulty settings affecting CVARs <API key> _cvarSettings[DIFFICULTY_COUNT]; // The name of each difficultylevel idStr _difficultyNames[DIFFICULTY_COUNT]; public: // Constructor DifficultyManager(); // Clears everything associated with difficulty settings. void Clear(); /** * greebo: Initialises this class. This means loading the global default * difficulty settings from the entityDef files and the ones * from the map file (worldspawn setting, map-specific difficulty). */ void Init(idMapFile* mapFile); // Accessor methods for the currently chosen difficulty level void SetDifficultyLevel(const int difficulty); int GetDifficultyLevel() const; // Returns the display name for the given level, which must an integer in [0..DIFFICULTY_COUNT) idStr GetDifficultyName(int level); /** * greebo: Applies the spawnarg modifiers of the currently chosen * difficulty level to the given set of spawnargs. */ void <API key>(idDict& target); /** * greebo: Applies the CVAR difficulty settings, call this once before map start. */ void <API key>(); /** * greebo: Checks whether the given entity (represented by "target") is allowed to spawn. * * @returns: TRUE if the entity should NOT be spawned. */ bool InhibitEntitySpawn(const idDict& target); // Save/Restore methods void Save(idSaveGame* savefile); void Restore(idRestoreGame* savefile); private: // Loads the default difficulty settings from the entityDefs void <API key>(); // Loads the map-specific difficulty settings (these will override the default ones) void <API key>(idMapFile* mapFile); // Loads the map-specific difficulty settings from the given map entity void <API key>(idMapEntity* ent); }; } // namespace difficulty #endif /* <API key> */
package com.emagic.loginexample; import com.emagic.loginexample.R; import android.app.Activity; import android.app.Dialog; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public class HomeActivity extends Activity { private SharedPreferences mPreferences; Button btnSignIn,btnSignUp,btnLogout; <API key> <API key>; SessionManager session; TextView lblName, lblEmail; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_login); session = new SessionManager(<API key>()); Toast.makeText(<API key>(), "User Login Status: " + session.isUserLoggedIn(), Toast.LENGTH_LONG).show(); if(session.isUserLoggedIn() == true) { Intent intentSignUP=new Intent(<API key>(),SignUPActivity.class); startActivity(intentSignUP); } else { // create a instance of SQLite Database <API key>=new <API key>(this); <API key>=<API key>.open(); // Get The Refference Of Buttons btnSignIn=(Button)findViewById(R.id.buttonSignIN); btnSignUp=(Button)findViewById(R.id.buttonSignUP); btnLogout = (Button) findViewById(R.id.btnLogout); TextView lblName = (TextView) findViewById(R.id.lblName); Toast.makeText(<API key>(), "User Login Status: " + session.isUserLoggedIn(), Toast.LENGTH_LONG).show(); // Set OnClick Listener on SignUp button btnSignUp.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub Create Intent for SignUpActivity and Start The Activity Intent intentSignUP=new Intent(<API key>(),SignUPActivity.class); startActivity(intentSignUP); } }); } } // Methos to handleClick Event of Sign In Button public void signIn(View V) { final Dialog dialog = new Dialog(HomeActivity.this); dialog.setContentView(R.layout.login); mPreferences = PreferenceManager.<API key>(HomeActivity.this); dialog.setTitle("Login"); // get the Refferences of views final EditText editTextUserName=(EditText)dialog.findViewById(R.id.<API key>); final EditText editTextPassword=(EditText)dialog.findViewById(R.id.<API key>); final Button btnSignIn=(Button)dialog.findViewById(R.id.buttonSignIn); // Set On ClickListener btnSignIn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // get The User name and Password String userName=editTextUserName.getText().toString(); String <API key>.getText().toString(); String stored<API key>.getSinlgeEntry(userName); if(password.equals(storedPassword)) { Toast.makeText(HomeActivity.this, "Congrats: Login Successfull", Toast.LENGTH_LONG).show(); session.<API key>(userName, password); dialog.dismiss(); } else { Toast.makeText(HomeActivity.this, "User Name or Password does not match", Toast.LENGTH_LONG).show(); } } }); dialog.show(); } @Override protected void onDestroy() { super.onDestroy(); // Close The Database <API key>.close(); } }
<?php $actarif=$_GET["actarif"]; $typetarif=$_GET["typetarif"]; $idtarif=$_GET["idtarif"]; $espaces= implode('-',$_POST['espace']); switch ($actarif) { case 1: // creation des tarifs switch($typetarif) { case 1: //impressions et divers $nomtarif = addslashes($_POST["newnomtarif"]); $prixtarif=$_POST["newprixtarif"]; $comment=addslashes($_POST["newdescriptiontarif"]); $categoryTarif=$_POST["catTarif"]; $duree="0"; if (!$nomtarif | !$prixtarif ) { $mess= getError(4) ; //autres champs manquants } else { if (FALSE == newTarif($nomtarif,$prixtarif,$comment,0,$categoryTarif,$duree,$espaces)) { echo getError(0); }else{ header("Location:index.php?a=47&catTarif=1&mesno=32") ; } } break; case 2: //ateliers $nomtarif = addslashes($_POST["newnomtarifa"]); $prixtarif=$_POST["newprixtarifa"]; //$prixtarif=preg_replace("/[^0-9]/","",$prixtarif0); $comment=addslashes($_POST["<API key>"]); $categoryTarif=5; $typeduree=$_POST["typedureetarifa"]; //0=illimite if($typeduree>0){ $duree=$_POST["dureetarifa"].'-'.$_POST["typedureetarifa"]; } $nbatelier=$_POST['newnumbertarifa']; if (!$nomtarif | !$prixtarif | !$typeduree | !$nbatelier) { $mess= getError(4) ; //autres champs manquants }else{ if (FALSE == newTarif($nomtarif,$prixtarif,$comment,$nbatelier,$categoryTarif,$duree,$espaces)) { echo getError(0); }else{ header("Location:index.php?a=47&mesno=32") ; } } break; case 3: //consult $nom_forfait= addslashes($_POST["nom_forfait"]); $prix_forfait = $_POST["prix_forfait"]; $critere_forfait= ""; $comment_forfait= addslashes($_POST["comment_forfait"]); $date_debut_forfait = date('d/m/Y'); $date_creat_forfait = date("d/m/Y"); $<API key>= 0; $status_forfait=1; $type_forfait = 1; // type affectation normal $<API key>=0; $<API key> = $_POST["<API key>"]; $<API key> = $_POST["<API key>"]; $<API key>= $_POST["<API key>"]; /* //pour une affectation occasionnelle if($_POST["<API key>"]>0){ $<API key>=$_POST["<API key>"]; $type_forfait = 4; // type affectation occasionnel $<API key> =0; $<API key> =0; $<API key>= 0; }else{ $type_forfait = 1; // type affectation normal $<API key>=0; $<API key> = $_POST["<API key>"]; $<API key> = $_POST["<API key>"]; $<API key>= $_POST["<API key>"]; } */ if ( $_POST["unite_duree_forfait"]==4){ $<API key>=1; $<API key> =0; $unite_duree_forfait=0; }else{ $<API key>=0; $<API key> = $_POST["<API key>"]; $unite_duree_forfait= $_POST["unite_duree_forfait"]; } $espacesselected=$_POST['espace']; // AJOUT DU FORFAIT if (!$nom_forfait || !$<API key>) { $mess= getError(4) ; //autres champs manquants } else { $newid=addForfait($date_creat_forfait, $type_forfait, $nom_forfait, $prix_forfait, $critere_forfait, $comment_forfait, $<API key>, $unite_duree_forfait, $<API key>, $date_debut_forfait,$status_forfait,$<API key>, $<API key>, $<API key>, $<API key>,$<API key>); if (FALSE == $newid) { echo getError(0); }else{ //inserer la relation pour les epn foreach($espacesselected as $key => $value ){ modConfigForfaitEsp(1, $value); addForfaitEspace($newid, $value); } header("Location:index.php?a=47&mesno=32") ; } } break; } break; case 2: // modification $categoryTarif=$_POST["catTarif"]; if($categoryTarif<6) { $nomtarif = addslashes($_POST["nomtarif"]); $prixtarif=$_POST["prixtarif"]; $desctarif=addslashes($_POST["descriptiontarif"]); $typeduree=$_POST["typedureetarif"]; //0=illimite if($typeduree>0){ $duree=$_POST["dureetarif"].'-'.$_POST["typedureetarif"]; } $nbatelier=$_POST['numberatelier']; if (!$nomtarif | !$prixtarif ) { $mess= getError(4) ; //champs manquants } else { if (FALSE == modifTarif($idtarif,$nomtarif,$prixtarif,$desctarif,$nbatelier,$categoryTarif,$duree,$espaces)) { echo getError(0); }else{ header("Location:index.php?a=47&catTarif=".$categoryTarif."&mesno=33") ; } } //categorie 6 : la consultation } else{ $idforfait=$_POST["id_forfait"]; $nom_forfait= addslashes($_POST["nom_forfait"]); $prix_forfait = $_POST["prix_forfait"]; $comment_forfait= addslashes($_POST["commentaire_forfait"]); //pour une affectation occasionnelle if($_POST["<API key>"]>0){ $<API key>=$_POST["<API key>"]; $type_forfait = 4; // type affectation occasionnel $<API key> =0; $<API key> =0; $<API key>= 0; }else{ $type_forfait = 1; // type affectation normal $<API key>=0; $<API key> = $_POST["<API key>"]; $<API key> = $_POST["<API key>"]; $<API key>= $_POST["<API key>"]; } // $<API key>= $_POST["unite_duree_forfait"]; if ($_POST["unite_duree_forfait"]==4){ $<API key>=1; $<API key> =0; $unite_duree_forfait=0; }else{ $<API key>=0; $<API key> = $_POST["<API key>"]; $unite_duree_forfait= $_POST["unite_duree_forfait"]; } $espacesselected=$_POST['espace']; Modification des données dans la base if (!$idforfait || !$prix_forfait || !$type_forfait ) { $mess= getError(4) ; //champs manquants } else { if (FALSE == modForfait($idforfait,$type_forfait, $nom_forfait, $prix_forfait,$comment_forfait, $<API key>, $unite_duree_forfait, $<API key>, $<API key>, $<API key>, $<API key>, $<API key>, $<API key>)){ echo getError(0); }else{ // vider les liaisons espace & tab config $delF= <API key>($idforfait); if($delF==TRUE){ //inserer la relation pour les epn foreach($espacesselected as $key => $value ){ modConfigForfaitEsp(1, $value); addForfaitEspace($idforfait, $value); } } header("Location:index.php?a=47&catTarif=6&mesno=33") ; } } } break; case 3: // suppression if($typetarif<3){ if (FALSE == deletarif($idtarif)) { echo getError(0); }else{ header("Location:index.php?a=47&mesno=34") ; } }else{ if (FALSE == deletarifConsult($idtarif)) { echo getError(0); }else{ header("Location:index.php?a=47&mesno=34") ; } } break; } ?>
#include "unittest++/UnitTest++.h" #include "../core/Element.h" #include "../core/MaterialBehavior.h" #include "../core/Matrix.h" #include "../core/<API key>.h" #include <stdexcept> SUITE(Element) { TEST(ElementConstructor) { //Create a dummy material PetitPas::MaterialBehavior material(0., 0., PetitPas::MaterialBehavior::<API key>); //Check bad number of nodes std::vector<PetitPas::Node*> emptyNodes; CHECK_THROW(PetitPas::Element badElement(emptyNodes, 0, material), std::runtime_error); //Check incompatible node dimensions std::vector<double> coords(2); PetitPas::Point point1(coords); PetitPas::Node node1(point1, 1); coords.resize(3); PetitPas::Point point2(coords); PetitPas::Node node2(point2, 2); std::vector<PetitPas::Node*> nodes; nodes.push_back(&node1); nodes.push_back(&node2); CHECK_THROW(PetitPas::Element badElement(nodes, 0, material), std::runtime_error); } TEST(ElementNodeCount) { std::vector<double> coords(2); PetitPas::Point point(coords); PetitPas::Node node1(point, 1); PetitPas::Node node2(point, 2); PetitPas::Node node3(point, 3); std::vector<PetitPas::Node*> nodes; nodes.push_back(&node1); nodes.push_back(&node2); nodes.push_back(&node3); //Create a dummy material PetitPas::MaterialBehavior material(0., 0., PetitPas::MaterialBehavior::<API key>); PetitPas::Element element(nodes, 0, material); CHECK_EQUAL((unsigned int)3, element.GetNodeCount()); } TEST(ElementDimension) { std::vector<double> coords(2); PetitPas::Point point(coords); PetitPas::Node node1(point, 1); PetitPas::Node node2(point, 2); PetitPas::Node node3(point, 3); std::vector<PetitPas::Node*> nodes; nodes.push_back(&node1); nodes.push_back(&node2); nodes.push_back(&node3); //Create a dummy material PetitPas::MaterialBehavior material(0., 0., PetitPas::MaterialBehavior::<API key>); PetitPas::Element element(nodes, 0, material); CHECK_EQUAL((unsigned int)2, element.GetDimension()); } TEST(ElementGetNodes) { std::vector<double> coords(2); coords[0] = 1.0; coords[1] = 2.0; PetitPas::Point point1(coords); PetitPas::Node node1(point1, 1); coords[0] = 3.0; coords[1] = 4.0; PetitPas::Point point2(coords); PetitPas::Node node2(point2, 2); coords[0] = -5.0; coords[1] = -6.0; PetitPas::Point point3(coords); PetitPas::Node node3(point3, 3); std::vector<PetitPas::Node*> nodes; nodes.push_back(&node1); nodes.push_back(&node2); nodes.push_back(&node3); //Create a dummy material PetitPas::MaterialBehavior material(0., 0., PetitPas::MaterialBehavior::<API key>); PetitPas::Element element(nodes, 0, material); std::vector<PetitPas::Node*> elementNodes = element.GetNodes(); CHECK_EQUAL((unsigned int)3, elementNodes.size()); const std::vector<double>& coordinates1 = elementNodes[0]->GetCoordinates(); CHECK_CLOSE(1.0, coordinates1[0], 1e-6); CHECK_CLOSE(2.0, coordinates1[1], 1e-6); const std::vector<double>& coordinates2 = elementNodes[1]->GetCoordinates(); CHECK_CLOSE(3.0, coordinates2[0], 1e-6); CHECK_CLOSE(4.0, coordinates2[1], 1e-6); const std::vector<double>& coordinates3 = elementNodes[2]->GetCoordinates(); CHECK_CLOSE(-5.0, coordinates3[0], 1e-6); CHECK_CLOSE(-6.0, coordinates3[1], 1e-6); } TEST(<API key>) { //Create the reference triangle in 2D std::vector<double> coords1(2); coords1[0] = 0.0; coords1[1] = 0.0; PetitPas::Point point1(coords1); PetitPas::Node node1(point1, 1); std::vector<double> coords2(2); coords2[0] = 1.0; coords2[1] = 0.0; PetitPas::Point point2(coords2); PetitPas::Node node2(point2, 2); std::vector<double> coords3(2); coords3[0] = 0.0; coords3[1] = 1.0; PetitPas::Point point3(coords3); PetitPas::Node node3(point3, 3); std::vector<PetitPas::Node*> nodes; nodes.push_back(&node1); nodes.push_back(&node2); nodes.push_back(&node3); //Create a simple material with: // Young Modulus E = 1 // Poisson Coefficient v = 0 // In 2D Plane Stress, the Hooke matrix will be: // [ E 0 0 [ 1 0 0 // 0 E 0 = 0 1 0 // 0 0 E/2 ] 0 0 1/2 ] PetitPas::MaterialBehavior material(1., 0., PetitPas::MaterialBehavior::<API key>); PetitPas::Element element(nodes, 0, material); //Get stiffness matrix for 2D plane stress hypothesis PetitPas::Matrix stiffnessMatrix = element.<API key>(); CHECK_CLOSE(3.0/4.0, stiffnessMatrix.GetValueAt(0,0), 1e-6); CHECK_CLOSE(1.0/4.0, stiffnessMatrix.GetValueAt(0,1), 1e-6); CHECK_CLOSE(-2.0/4.0, stiffnessMatrix.GetValueAt(0,2), 1e-6); CHECK_CLOSE(-1.0/4.0, stiffnessMatrix.GetValueAt(0,3), 1e-6); CHECK_CLOSE(-1.0/4.0, stiffnessMatrix.GetValueAt(0,4), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(0,5), 1e-6); CHECK_CLOSE(1.0/4.0, stiffnessMatrix.GetValueAt(1,0), 1e-6); CHECK_CLOSE(3.0/4.0, stiffnessMatrix.GetValueAt(1,1), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(1,2), 1e-6); CHECK_CLOSE(-1.0/4.0, stiffnessMatrix.GetValueAt(1,3), 1e-6); CHECK_CLOSE(-1.0/4.0, stiffnessMatrix.GetValueAt(1,4), 1e-6); CHECK_CLOSE(-2.0/4.0, stiffnessMatrix.GetValueAt(1,5), 1e-6); CHECK_CLOSE(-2.0/4.0, stiffnessMatrix.GetValueAt(2,0), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(2,1), 1e-6); CHECK_CLOSE(2.0/4.0, stiffnessMatrix.GetValueAt(2,2), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(2,3), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(2,4), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(2,5), 1e-6); CHECK_CLOSE(-1.0/4.0, stiffnessMatrix.GetValueAt(3,0), 1e-6); CHECK_CLOSE(-1.0/4.0, stiffnessMatrix.GetValueAt(3,1), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(3,2), 1e-6); CHECK_CLOSE(1.0/4.0, stiffnessMatrix.GetValueAt(3,3), 1e-6); CHECK_CLOSE(1.0/4.0, stiffnessMatrix.GetValueAt(3,4), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(3,5), 1e-6); CHECK_CLOSE(-1.0/4.0, stiffnessMatrix.GetValueAt(4,0), 1e-6); CHECK_CLOSE(-1.0/4.0, stiffnessMatrix.GetValueAt(4,1), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(4,2), 1e-6); CHECK_CLOSE(1.0/4.0, stiffnessMatrix.GetValueAt(4,3), 1e-6); CHECK_CLOSE(1.0/4.0, stiffnessMatrix.GetValueAt(4,4), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(4,5), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(5,0), 1e-6); CHECK_CLOSE(-2.0/4.0, stiffnessMatrix.GetValueAt(5,1), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(5,2), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(5,3), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(5,4), 1e-6); CHECK_CLOSE(2.0/4.0, stiffnessMatrix.GetValueAt(5,5), 1e-6); } TEST(<API key>) { //Create the real triangle in 2D std::vector<double> coords1(2); coords1[0] = 3.0; coords1[1] = 0.0; PetitPas::Point point1(coords1); PetitPas::Node node1(point1, 1); std::vector<double> coords2(2); coords2[0] = 3.0; coords2[1] = 3.0; PetitPas::Point point2(coords2); PetitPas::Node node2(point2, 2); std::vector<double> coords3(2); coords3[0] = 0.0; coords3[1] = 3.0; PetitPas::Point point3(coords3); PetitPas::Node node3(point3, 3); std::vector<PetitPas::Node*> nodes; nodes.push_back(&node1); nodes.push_back(&node2); nodes.push_back(&node3); //Create a material: E = 72, v = 0.2 (and G = 30) PetitPas::MaterialBehavior material(72., 0.2, PetitPas::MaterialBehavior::<API key>); PetitPas::Element element(nodes, 0, material); //Get stiffness matrix for 2D plane strain hypothesis PetitPas::Matrix stiffnessMatrix = element.<API key>(); CHECK_CLOSE(15.0, stiffnessMatrix.GetValueAt(0,0), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(0,1), 1e-6); CHECK_CLOSE(-15.0, stiffnessMatrix.GetValueAt(0,2), 1e-6); CHECK_CLOSE(-15.0, stiffnessMatrix.GetValueAt(0,3), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(0,4), 1e-6); CHECK_CLOSE(15.0, stiffnessMatrix.GetValueAt(0,5), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(1,0), 1e-6); CHECK_CLOSE(40.0, stiffnessMatrix.GetValueAt(1,1), 1e-6); CHECK_CLOSE(-10.0, stiffnessMatrix.GetValueAt(1,2), 1e-6); CHECK_CLOSE(-40.0, stiffnessMatrix.GetValueAt(1,3), 1e-6); CHECK_CLOSE(10.0, stiffnessMatrix.GetValueAt(1,4), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(1,5), 1e-6); CHECK_CLOSE(-15.0, stiffnessMatrix.GetValueAt(2,0), 1e-6); CHECK_CLOSE(-10.0, stiffnessMatrix.GetValueAt(2,1), 1e-6); CHECK_CLOSE(55.0, stiffnessMatrix.GetValueAt(2,2), 1e-6); CHECK_CLOSE(25.0, stiffnessMatrix.GetValueAt(2,3), 1e-6); CHECK_CLOSE(-40.0, stiffnessMatrix.GetValueAt(2,4), 1e-6); CHECK_CLOSE(-15.0, stiffnessMatrix.GetValueAt(2,5), 1e-6); CHECK_CLOSE(-15.0, stiffnessMatrix.GetValueAt(3,0), 1e-6); CHECK_CLOSE(-40.0, stiffnessMatrix.GetValueAt(3,1), 1e-6); CHECK_CLOSE(25.0, stiffnessMatrix.GetValueAt(3,2), 1e-6); CHECK_CLOSE(55.0, stiffnessMatrix.GetValueAt(3,3), 1e-6); CHECK_CLOSE(-10.0, stiffnessMatrix.GetValueAt(3,4), 1e-6); CHECK_CLOSE(-15.0, stiffnessMatrix.GetValueAt(3,5), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(4,0), 1e-6); CHECK_CLOSE(10.0, stiffnessMatrix.GetValueAt(4,1), 1e-6); CHECK_CLOSE(-40.0, stiffnessMatrix.GetValueAt(4,2), 1e-6); CHECK_CLOSE(-10.0, stiffnessMatrix.GetValueAt(4,3), 1e-6); CHECK_CLOSE(40.0, stiffnessMatrix.GetValueAt(4,4), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(4,5), 1e-6); CHECK_CLOSE(15.0, stiffnessMatrix.GetValueAt(5,0), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(5,1), 1e-6); CHECK_CLOSE(-15.0, stiffnessMatrix.GetValueAt(5,2), 1e-6); CHECK_CLOSE(-15.0, stiffnessMatrix.GetValueAt(5,3), 1e-6); CHECK_CLOSE(0.0, stiffnessMatrix.GetValueAt(5,4), 1e-6); CHECK_CLOSE(15.0, stiffnessMatrix.GetValueAt(5,5), 1e-6); } TEST(<API key>) { // Create an element std::vector<double> coords1(2); coords1[0] = 0.0; coords1[1] = 3.0; PetitPas::Point point1(coords1); PetitPas::Node node1(point1, 1); std::vector<double> coords2(2); coords2[0] = 3.0; coords2[1] = 3.0; PetitPas::Point point2(coords2); PetitPas::Node node2(point2, 2); std::vector<double> coords3(2); coords3[0] = 0.0; coords3[1] = 6.0; PetitPas::Point point3(coords3); PetitPas::Node node3(point3, 3); std::vector<PetitPas::Node*> nodes; nodes.push_back(&node1); nodes.push_back(&node2); nodes.push_back(&node3); //Create a material: E = 72, v = 0.2 (and G = 30) PetitPas::MaterialBehavior material(72., 0.2, PetitPas::MaterialBehavior::<API key>); PetitPas::Element element(nodes, 0, material); //Create a displacement vector PetitPas::Matrix displacementVector(6, 1); displacementVector.SetValueAt(0, 0, 6.0231); displacementVector.SetValueAt(1, 0, -5.8758); displacementVector.SetValueAt(2, 0, 4.8456); displacementVector.SetValueAt(3, 0, -4.7899); displacementVector.SetValueAt(4, 0, 7.3373); displacementVector.SetValueAt(5, 0, -7.8315); // Get the derivative field for the three nodes. for(unsigned int nodeIndex = 0; nodeIndex < 3; nodeIndex++) { PetitPas::Matrix derivativeMatrix = element.<API key>(displacementVector, nodeIndex); CHECK_EQUAL((unsigned int)1, derivativeMatrix.GetColumnCount()); CHECK_EQUAL((unsigned int)3, derivativeMatrix.GetRowCount()); CHECK_CLOSE(-0.3925, derivativeMatrix.GetValueAt(0, 0), 1e-6); CHECK_CLOSE(-0.6519, derivativeMatrix.GetValueAt(1, 0), 1e-6); CHECK_CLOSE(0.8000333, derivativeMatrix.GetValueAt(2, 0), 1e-6); } // Check exceptions. CHECK_THROW(element.<API key>(displacementVector, 3), std::runtime_error); CHECK_THROW(element.<API key>(PetitPas::Matrix(6,2), 0), std::runtime_error); CHECK_THROW(element.<API key>(PetitPas::Matrix(5,1), 0), std::runtime_error); } TEST(<API key>) { // 3D Materials in 2D std::vector<double> coords2D(2); PetitPas::Point point2D(coords2D); PetitPas::Node node1(point2D, 1); PetitPas::Node node2(point2D, 2); PetitPas::Node node3(point2D, 3); std::vector<PetitPas::Node*> nodes2D; nodes2D.push_back(&node1); nodes2D.push_back(&node2); nodes2D.push_back(&node3); PetitPas::MaterialBehavior material3D(0., 0., PetitPas::MaterialBehavior::<API key>); CHECK_THROW(PetitPas::Element(nodes2D, 0, material3D), std::runtime_error); // 2D Materials in 3D std::vector<double> coords3D(3); PetitPas::Point point3D(coords3D); PetitPas::Node node4(point3D, 4); PetitPas::Node node5(point3D, 5); PetitPas::Node node6(point3D, 6); PetitPas::Node node7(point3D, 7); std::vector<PetitPas::Node*> nodes3D; nodes3D.push_back(&node4); nodes3D.push_back(&node5); nodes3D.push_back(&node6); nodes3D.push_back(&node7); PetitPas::MaterialBehavior <API key>(0., 0., PetitPas::MaterialBehavior::<API key>); CHECK_THROW(PetitPas::Element(nodes3D, 0, <API key>), std::runtime_error); PetitPas::MaterialBehavior <API key>(0., 0., PetitPas::MaterialBehavior::<API key>); CHECK_THROW(PetitPas::Element(nodes3D, 0, <API key>), std::runtime_error); } TEST(<API key>) { std::vector<double> coords2D(2); PetitPas::Point point2D(coords2D); PetitPas::Node node1(point2D, 1); PetitPas::Node node2(point2D, 2); PetitPas::Node node3(point2D, 3); std::vector<PetitPas::Node*> nodes2D; nodes2D.push_back(&node1); nodes2D.push_back(&node2); nodes2D.push_back(&node3); PetitPas::MaterialBehavior material(0., 0., PetitPas::MaterialBehavior::<API key>); unsigned int elementId = 123456; std::stringstream <API key>; <API key> << elementId; std::string elementIdString = <API key>.str(); PetitPas::Element element(nodes2D, elementId, material); // Check that exception is thrown. CHECK_THROW(element.GetStiffnessMatrix(), PetitPas::<API key>); // Check exception content. bool isExceptionCatched = false; try { element.GetStiffnessMatrix(); } catch(PetitPas::<API key>& e) { isExceptionCatched = true; std::string exceptionMessage(e.what()); CHECK_EQUAL(true, exceptionMessage.find(elementIdString) != exceptionMessage.npos); } CHECK_EQUAL(true, isExceptionCatched); // Check that exception is thrown. PetitPas::Matrix nodalValues(6,1); CHECK_THROW(element.<API key>(nodalValues, 0), PetitPas::<API key>); // Check exception content. isExceptionCatched = false; try { element.<API key>(nodalValues, 0); } catch(PetitPas::<API key>& e) { isExceptionCatched = true; std::string exceptionMessage(e.what()); CHECK_EQUAL(true, exceptionMessage.find(elementIdString) != exceptionMessage.npos); } CHECK_EQUAL(true, isExceptionCatched); } } // SUITE Element
<?php if(isset($access)){if(!$access == true){exit;}}else{exit;} ?> <body class="hold-transition skin-blue sidebar-mini"> <div class="wrapper"> <?php include("menu.php"); ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Dashboard <small>Support</small> </h1> <ol class="breadcrumb"> <li class="active"><i class="fa fa-dashboard"></i> Support</li> </ol> </section> <!-- Main content --> <section class="content animated fadeIn"> <div class="row"> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-aqua"> <div class="inner"> <h3> <?php $sql = "SELECT * FROM players ORDER BY insert_time DESC LIMIT 1"; $statement = $pdo->prepare($sql); $statement->execute(array()); $pdash = $statement->fetch(); echo utf8_encode($pdash['name']); ?> </h3> <p>Neuster Spieler</p> </div> <a href="?page=support_player&id=<?php echo $pdash['uid']; ?>" class="small-box-footer"> Anzeigen <i class="fa <API key>"></i> </a> </div> </div> <!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-green"> <div class="inner"> <h3> <?php $statement = $pdo->prepare("SELECT COUNT(*) AS count FROM players"); $statement->execute(array()); $rowcount = $statement->fetch(); echo $rowcount['count']; ?> </h3> <p>Spieler insgesamt</p> </div> <a href="?page=support_players" class="small-box-footer"> Anzeigen <i class="fa <API key>"></i> </a> </div> </div> <!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-yellow"> <div class="inner"> <h3> <?php $statement = $pdo->prepare("SELECT COUNT(*) AS count FROM vehicles"); $statement->execute(array()); $rowcount = $statement->fetch(); echo $rowcount['count']; ?> </h3> <p>Fahrzeuge insgesamt</p> </div> <a href="?page=support_vehicles" class="small-box-footer"> Anzeigen <i class="fa <API key>"></i> </a> </div> </div> <!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-red"> <div class="inner"> <h3> <?php $statement = $pdo->prepare("SELECT COUNT(*) AS count FROM houses"); $statement->execute(array()); $rowcount = $statement->fetch(); echo $rowcount['count']; ?> </h3> <p>Häuser in Besitz</p> </div> <a href="?page=support_houses" class="small-box-footer"> Anzeigen <i class="fa <API key>"></i> </a> </div> </div> <!-- ./col --> </div> <div class="row"> <div class="col-md-3"> <div class="box box-primary"> <div class="box-header with-border"> <h4 class="box-title"> Top 5 Bargeld </h4> </div> <div class="box-body"> <table class="table table-hover"> <?php $rank = 0; ?> <thead> <th>Platz</th> <th>Name</th> <th>Geld</th> </thead> <tbody> <?php $sql = "SELECT * FROM players ORDER BY cash DESC LIMIT 5"; foreach ($pdo->query($sql) as $row) { $rank = $rank + 1; echo '<tr>'; echo '<td>'.$rank.'</td>'; echo '<td><a href="?page=support_player&id='.$row['uid'].'">'.utf8_encode($row['name']).'</a></td>'; echo '<td>'.number_format($row['cash'], 0, ",", ".").' $</td>'; echo '</tr>'; } ?> </tbody> </table> </div> </div> </div> <div class="col-md-3"> <div class="box box-primary"> <div class="box-header with-border"> <h4 class="box-title"> Top 5 Bankkonto </h4> </div> <div class="box-body"> <table class="table table-hover"> <?php $rank = 0; ?> <thead> <th>Platz</th> <th>Name</th> <th>Geld</th> </thead> <tbody> <?php $sql = "SELECT * FROM players ORDER BY bankacc DESC LIMIT 5"; foreach ($pdo->query($sql) as $row) { $rank = $rank + 1; echo '<tr>'; echo '<td>'.$rank.'</td>'; echo '<td><a href="?page=support_player&id='.$row['uid'].'">'.utf8_encode($row['name']).'</a></td>'; echo '<td>'.number_format($row['bankacc'], 0, ",", ".").' $</td>'; echo '</tr>'; } ?> </tbody> </table> </div> </div> </div> </div> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include("foot.php"); ?> </div> <!-- ./wrapper -->
{-# LANGUAGE <API key> #-} module ChibiOSWrap where import Foreign.Ptr import Foreign.C.String import Data.Word newtype {-# CTYPE "ioportid_t" #-} IoportidT = IoportidT Word32 type SystimeT = Word32 foreign import primitive "const.GPIOD" c_GPIOD :: IoportidT foreign import primitive "const.GPIOD_LED3" c_GPIOD_LED3 :: Int foreign import capi "c_extern.h palSetPad" c_palSetPad :: IoportidT -> Int -> IO () foreign import capi "c_extern.h palClearPad" c_palClearPad :: IoportidT -> Int -> IO () foreign import capi "c_extern.h <API key>" <API key> :: SystimeT -> IO () foreign import capi "c_extern.h chRegSetThreadName" <API key> :: CString -> IO ()
title: "उम्मीद ने दीवाली पर चलाया सफ़ाई अभियान" layout: item category: ["lucknow"] date: 2016-11-01T11:00:36.471Z image: 1477998036471ummeed.jpg <p>लखनऊ: उम्मीद संस्था, शराब बंदी संगर्ष समिति, खालसा द हेल्पिंग हैंड्स सदर गुरुदवारा लखनऊ द्वारा लखनऊ शहर में विशेष सफाई अभियान चलाया गया जिसका उद्देश् अपने शहर को पटाको की गन्दगी से साफ़ करना था I आज सुबह से संस्थाओ ने मिलकर 1090 चौराहा से अभियान की शुरुवात करते हुए हज़रतगंज चौराहा, श्रीराम टावर, डालीबाग, विवेक खंड गोमती नगर से होते हुए मुंशीपुलिया चौराहा तक अभियान चलाया I रास्तो में पटाको की गन्दगी का अम्बार लगा हुवा था और कई जगह तो पटाको के कूड़े से सड़क भरी हुई थी I संस्थाओ के लोगो को झाड़ू लगते देख स्थानीय लोगो ने इस प्रयास की बहुत सराहना की और आगे से ऐसी गन्दगी ना फैलाने का भी प्रण लिया I संस्थाओ में सदर गुरुदवारा के अध्यक्ष सरदार हरपाल सिंह जग्गी, शराब बंदी समिति के अध्यक्ष श्री मुर्तज़ा अली , एआईएम्आईएम् के जिला अध्यक्ष डॉ.लाईक हसन एवं उम्मीद संस्था के संस्थापक श्री बलबीर सिंह मान की अगुवाई में सफाई अभियान चलाया गया I</p>