answer
stringlengths
15
1.25M
<div class="wrap-right pull-right sidebar" id="sidebar"> <div class="widget widget-gg"> <div class="widget-body"> <a href="javascript:alert('AD')" target="_blank"> <img src="http://images.huxiu.com/qunzu/201602/18/090347939825.png?imageView2/1/w/680/h/380/imageMogr2/strip/interlace/1/format/jpg" /> </a> </div> </div> <!-- End Ad --> {% import 'macros/widget_articles.html' as <API key> %} <div class="widget widget-hot-articles"> {{ <API key>.render_hot_articles(Post.<API key>(5)) }} </div> <!-- End --> </div>
package adapter; public class TextView { public void display() { System.out.println("Text"); } public Rect getBoundingBox() { return new Rect(); } }
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace bookingo.Classes.CommandTypeF { class SelectUser:CommandType { public Boolean status; private SqlCommand command = new SqlCommand(); public SelectUser(string commandTxt) { command.CommandText = commandTxt; } public void executeCommand(SqlConnection conn) { command.Connection = conn; SqlDataReader reader = command.ExecuteReader(); if (reader.Read() == true) { status = true; } else { status = false; } } public Boolean getStatus() { return status; } } }
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; namespace Proyecto1.Models { public class ColegioDbContext : DbContext { public DbSet<Estudiante> Estudiantes { get; set; } public DbSet<Profesor> Profesores { get; set; } public ColegioDbContext() : base("ColegioDb") { } // Nombre de la conexion de la base de datos. } }
var sys = require("sys"), my_http = require("http"), path = require("path"), url = require('url'), filesys = require("fs"), fsex = require("fs-extra"), exec = require('child_process').exec, plist = require('plist'), global = require('../global.js'), proxy_settings = require(global.project_root + '/lib/proxy_settings.js'), browser_location = "", browser_name = "", <API key> = "", <API key> = global.project_root +'/resources/preferences.plist', _temp_new_pref = global.project_path+'/resources/preferences_new.plist' // Made so that my own file doesn't get corrupted while testing! // console.log("Directory name " + (__dirname || "Not Found")) my_http.createServer(function(request, response) { var var_path = url.parse(request.url).pathname var query = url.parse(request.url,true).query console.log(query.proxy + " " + query.address + " " + query.port + "printed\n") // sys.puts(var_path) var split_path = var_path.split('/') switch (split_path[1]) { case "firefox": browser_name = "firefox"; browser_location = "/Applications/Firefox.app/"; <API key> = "/Users/akshay/Library/Application\ Support/Firefox/"; break; case "chrome": browser_name = "Google Chrome"; browser_location = "/Applications/Google\ Chrome.app/" <API key> = "/Users/akshay/Library/Application\ Support/Google/Chrome" break; case "safari": browser_name = "Safari"; browser_location = "/Applications/Safari.app/"; <API key> = "/Users/akshay/Library/Safari/" break; default: response.writeHeader(404, {"Content-Type": "text/plain"}); response.write("No such browsers"); response.end(); } switch (split_path[2]) { case "start": exec ("open "+browser_location); response.writeHeader(200, {"Content-Type": "text/plain"}); response.write(browser_name + " started"); response.end(); break; case "close": exec ("pkill "+browser_name); fsex.remove(<API key>, function(err) { if (err) { console.log(err); } else { console.log("success!"); } }); response.writeHeader(200, {"Content-Type": "text/plain"}); response.write(browser_name + " Closed and Browswer data deleted!"); response.end(); break; default: response.writeHeader(404, {"Content-Type": "text/plain"}); response.write("No such command"); response.end(); } if (query.proxy == 'true') proxy_settings.<API key>(query.server, parseInt(query.port),<API key>,_temp_new_pref) }).listen(8081); sys.puts("Server Running on 8081");
var <API key> = { 0: "<API key>~", 1: "<API key>", 2: "opqsu", 3: "<API key>", 4: "<API key>~", 5: "<API key>", 6: "p", 7: "j", 8: "jm", 9: "hpt", 10: "_abcdfghilmnopqst" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "namespaces", 3: "files", 4: "functions", 5: "variables", 6: "typedefs", 7: "enums", 8: "enumvalues", 9: "related", 10: "defines" }; var indexSectionLabels = { 0: "All", 1: "Classes", 2: "Namespaces", 3: "Files", 4: "Functions", 5: "Variables", 6: "Typedefs", 7: "Enumerations", 8: "Enumerator", 9: "Friends", 10: "Macros" };
# SWiT's calibration script A camera calibration script for Python and OpenCV 3.3.0-rc or later. Run: python calibration.py Then print out a copy of the charuco_board.png image. Use 'Spacebar' to save good images where all the symbols were read. Save 20-40 images then press 'C' to attempt calibration.
#include <exlib/include/osconfig.h> #ifdef Linux #include "ifs/os.h" #include <dlfcn.h> #include <sys/sysinfo.h> #include <sys/param.h> #include <string.h> #ifndef CLOCK_BOOTTIME #define CLOCK_BOOTTIME 7 #endif namespace fibjs { result_t os_base::uptime(double &retVal) { static volatile int no_clock_boottime; struct timespec now; int r; int (*fngettime)(clockid_t, struct timespec *); void *handle = dlopen ("librt.so", RTLD_LAZY); if (!handle) return CHECK_ERROR(LastError()); fngettime = (int (*)(clockid_t, struct timespec *))dlsym(handle, "clock_gettime"); if (!fngettime) { dlclose(handle); return CHECK_ERROR(LastError()); } if (no_clock_boottime) { retry: r = fngettime(CLOCK_MONOTONIC, &now); } else if ((r = fngettime(CLOCK_BOOTTIME, &now)) && errno == EINVAL) { no_clock_boottime = 1; goto retry; } dlclose(handle); if (r) return CHECK_ERROR(LastError()); retVal = now.tv_sec; retVal += (double)now.tv_nsec / 1000000000.0; return 0; } result_t os_base::loadavg(v8::Local<v8::Array> &retVal) { double avg[3] = {0, 0, 0}; struct sysinfo info; if (sysinfo(&info) < 0) return CHECK_ERROR(LastError()); avg[0] = (double) info.loads[0] / 65536.0; avg[1] = (double) info.loads[1] / 65536.0; avg[2] = (double) info.loads[2] / 65536.0; Isolate &isolate = Isolate::now(); retVal = v8::Array::New(isolate.isolate, 3); retVal->Set(0, v8::Number::New(isolate.isolate, avg[0])); retVal->Set(1, v8::Number::New(isolate.isolate, avg[1])); retVal->Set(2, v8::Number::New(isolate.isolate, avg[2])); return 0; } result_t os_base::totalmem(int64_t &retVal) { retVal = sysconf(_SC_PAGESIZE) * sysconf(_SC_PHYS_PAGES); return 0; } result_t os_base::freemem(int64_t &retVal) { retVal = sysconf(_SC_PAGESIZE) * sysconf(_SC_AVPHYS_PAGES); return 0; } result_t os_base::CPUs(int32_t &retVal) { static int cpus = 0; if (cpus > 0) { retVal = cpus; return 0; } int numcpus = 0; char line[512]; FILE *fpModel = fopen("/proc/cpuinfo", "r"); if (fpModel) { while (fgets(line, 511, fpModel) != NULL) if (strncmp(line, "processor", 9) == 0) numcpus++; fclose(fpModel); retVal = cpus = numcpus; } else return CHECK_ERROR(LastError()); return 0; } result_t os_base::CPUInfo(v8::Local<v8::Array> &retVal) { Isolate &isolate = Isolate::now(); retVal = v8::Array::New(isolate.isolate); v8::Local<v8::Object> cpuinfo; v8::Local<v8::Object> cputimes; unsigned int ticks = (unsigned int) sysconf(_SC_CLK_TCK), multiplier = ((uint64_t) 1000L / ticks), cpuspeed; int numcpus = 0, i = 0; unsigned long long ticks_user, ticks_sys, ticks_idle, ticks_nice, ticks_intr; char line[512], speedPath[256], model[512] = ""; FILE *fpStat = fopen("/proc/stat", "r"); FILE *fpModel = fopen("/proc/cpuinfo", "r"); FILE *fpSpeed; if (fpModel) { while (fgets(line, 511, fpModel) != NULL) { if (strncmp(line, "processor", 9) == 0) numcpus++; else if (strncmp(line, "model name", 10) == 0) { if (numcpus == 1) { char *p = strchr(line, ':') + 2; strcpy(model, p); model[strlen(model) - 1] = 0; } } else if (strncmp(line, "cpu MHz", 7) == 0) { if (numcpus == 1) sscanf(line, "%*s %*s : %u", &cpuspeed); } } fclose(fpModel); } if (fpStat) { while (fgets(line, 511, fpStat) != NULL) { if (strncmp(line, "cpu ", 4) == 0) continue; else if (strncmp(line, "cpu", 3) != 0) break; sscanf(line, "%*s %llu %llu %llu %llu %*llu %llu", &ticks_user, &ticks_nice, &ticks_sys, &ticks_idle, &ticks_intr); snprintf(speedPath, sizeof(speedPath), "/sys/devices/system/cpu/cpu%u/cpufreq/cpuinfo_max_freq", i); fpSpeed = fopen(speedPath, "r"); if (fpSpeed) { if (fgets(line, 511, fpSpeed) != NULL) { sscanf(line, "%u", &cpuspeed); cpuspeed /= 1000; } fclose(fpSpeed); } cpuinfo = v8::Object::New(isolate.isolate); cputimes = v8::Object::New(isolate.isolate); cputimes->Set(v8::String::NewFromUtf8(isolate.isolate, "user"), v8::Number::New(isolate.isolate, ticks_user * multiplier)); cputimes->Set(v8::String::NewFromUtf8(isolate.isolate, "nice"), v8::Number::New(isolate.isolate, ticks_nice * multiplier)); cputimes->Set(v8::String::NewFromUtf8(isolate.isolate, "sys"), v8::Number::New(isolate.isolate, ticks_sys * multiplier)); cputimes->Set(v8::String::NewFromUtf8(isolate.isolate, "idle"), v8::Number::New(isolate.isolate, ticks_idle * multiplier)); cputimes->Set(v8::String::NewFromUtf8(isolate.isolate, "irq"), v8::Number::New(isolate.isolate, ticks_intr * multiplier)); if (model[0]) cpuinfo->Set(v8::String::NewFromUtf8(isolate.isolate, "model"), v8::String::NewFromUtf8(isolate.isolate, model)); cpuinfo->Set(v8::String::NewFromUtf8(isolate.isolate, "speed"), v8::Number::New(isolate.isolate, cpuspeed)); cpuinfo->Set(v8::String::NewFromUtf8(isolate.isolate, "times"), cputimes); retVal->Set(i++, cpuinfo); } fclose(fpStat); } return 0; } result_t os_base::get_execPath(std::string &retVal) { size_t linksize = 256; char exeName[256] = { 0}; if (readlink("/proc/self/exe", exeName, linksize) == -1) return CHECK_ERROR(LastError()); retVal = exeName; return 0; } result_t os_base::memoryUsage(v8::Local<v8::Object> &retVal) { size_t rss = 0; FILE *f; int itmp; char ctmp; unsigned int utmp; size_t page_size = getpagesize(); char *cbuf; int foundExeEnd; static char buf[MAXPATHLEN + 1]; f = fopen("/proc/self/stat", "r"); if (!f) return CHECK_ERROR(LastError()); /* PID */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* Exec file */ cbuf = buf; foundExeEnd = 0; if (fscanf(f, "%c", cbuf++) == 0) goto error; while (1) { if (fscanf(f, "%c", cbuf) == 0) goto error; if (*cbuf == ')') { foundExeEnd = 1; } else if (foundExeEnd && *cbuf == ' ') { *cbuf = 0; break; } cbuf++; } /* State */ if (fscanf(f, "%c ", &ctmp) == 0) goto error; /* coverity[secure_coding] */ /* Parent process */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* Process group */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* Session id */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* TTY */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* TTY owner process group */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* Flags */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* Minor faults (no memory page) */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* Minor faults, children */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* Major faults (memory page faults) */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* Major faults, children */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* utime */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* stime */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* utime, children */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* stime, children */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* jiffies remaining in current time slice */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* 'nice' value */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* jiffies until next timeout */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* jiffies until next SIGALRM */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* start time (jiffies since system boot) */ if (fscanf(f, "%d ", &itmp) == 0) goto error; /* coverity[secure_coding] */ /* Virtual memory size */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* Resident set size */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ rss = (size_t) utmp * page_size; /* rlim */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* Start of text */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* End of text */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ /* Start of stack */ if (fscanf(f, "%u ", &utmp) == 0) goto error; /* coverity[secure_coding] */ error: fclose(f); Isolate &isolate = Isolate::now(); v8::Local<v8::Object> info = v8::Object::New(isolate.isolate); v8::HeapStatistics v8_heap_stats; isolate.isolate->GetHeapStatistics(&v8_heap_stats); info->Set(v8::String::NewFromUtf8(isolate.isolate, "rss"), v8::Integer::New(isolate.isolate, (int32_t)rss)); info->Set(v8::String::NewFromUtf8(isolate.isolate, "heapTotal"), v8::Integer::New(isolate.isolate, (int32_t)v8_heap_stats.total_heap_size())); info->Set(v8::String::NewFromUtf8(isolate.isolate, "heapUsed"), v8::Integer::New(isolate.isolate, (int32_t)v8_heap_stats.used_heap_size())); v8::Local<v8::Object> objs; object_base::class_info().dump(objs); info->Set(v8::String::NewFromUtf8(isolate.isolate, "nativeObjects"), objs); retVal = info; return 0; } } #endif
/* jshint -W069 */ /* "better written in dot notation" */ var moment = require('moment'); /** * @ngdoc object * @name Metric * @param {Object} metric an metric JSON object * @constructor */ function Metric(metric) { 'use strict'; var self = this; //console.log('metric:', metric); /** * @description * @ngdoc property * @name Metric#resourceid * @propertyOf Metric * @returns {number} Metric Resource ID */ self.resourceid = metric.resourceId; /** * @description * @ngdoc property * @name Metric#resourceLabel * @propertyOf Metric * @returns {number} Metric Resource Label */ self.resourceLabel = metric.resourceLabel; /** * @description * @ngdoc property * @name Metric#typeName * @propertyOf Metric * @returns {number} Metric Resource Type Name */ self.typeName = metric.typeName; /** * @description * @ngdoc property * @name Metric#typeLabel * @propertyOf Metric * @returns {number} Metric Resource Type Label */ self.typeLabel = metric.typeLabel; /** * @description * @ngdoc property * @name Metric#className * @propertyOf Metric * @returns {string} the name of this object class, used for troubleshooting and testing. */ self.className = 'Metric'; } module.exports = Metric;
#! /bin/bash rm -rf logcat_*.log #sleep 5 devices=`adb devices | grep 'device$' | cut -f1` pids="" for device in $devices do log_file="logcat_$device-`date +%d-%m-%H_%M_%S`.log" echo "Logging device $device to \"$log_file\"" adb -s $device logcat -v time -d > $log_file pids="$pids $!" done
package com.jam01.littlelight.adapter.common.service; public class <API key> extends <API key> { public <API key>(String message) { super(message); } }
% $Id: pcsets_tutorial.tex 209 2007-08-19 16:41:44Z mccosar $ % \documentclass[letterpaper,12pt,oneside]{book} \usepackage{indentfirst} \usepackage{verbatim} \usepackage[T1]{fontenc} \usepackage[english]{babel} % LC 206 \usepackage[ paper=letterpaper, tmargin=1in, bmargin=1in, includehead ]{geometry} % LC 168 \usepackage{listings} \lstset{ language=Python, basicstyle=\tt } % LC 647 \usepackage{makeidx} \makeindex % LC 698 \usepackage{natbib} \bibliographystyle{alpha} \title{ {\bf pcsets}:\\ Pitch Class Sets for Python } \author{Bruce H. McCosar} % \begin{document} \maketitle \tableofcontents % \chapter{Introduction} This tutorial is an introduction to two subjects at once: \begin{itemize} \item {\bf Pitch Class Sets}, and \item the Python module {\bf pcsets}. \end{itemize} I'm hoping that the two will reinforce each other. That is, the standard method of learning about Pitch Class Sets might be to read a book\footnote{ Actually, there are some very good books. I've listed the best in the {\bf References} section (p.~\pageref{references}). I'll point out some of the most relevant as I go along. } or take a class. Very few times do you have the opportunity to actually {\em play} with them---to get some hands-on experience. Even if some brilliant inspiration strikes, sometimes the aggravation of working these set operations out manually can drag the idea to ground before it even has the chance to fly high. Well, here's an opportunity. A lot of the examples can be run in Python interactive mode. You can not only learn the concept, you can {\em try} the operation, immediately. You can develop your own ideas or theories and prove or disprove them quickly. For the more <API key>, I'm also including a few coding challenges that make use of the material you're learning. But above all, try some of these ideas out: {\em play} in the musical sense. If you play an instrument, let these concepts be a springboard to developing original music of your own. I'll give you some examples of how I'd approach this, but keep in mind that I come from a jazz background. You come from your own musical background, and you should find your own path. \section{Summary} Pitch Class Sets are a mathematical model for analyzing and composing music.\footnote{ The classic work of Pitch Class Set theory is Allen Forte's {\em The Structure of Atonal Music} \cite{forte}. Straus has also written a very readable introduction and overview \cite{straus}. } Each note `C' through `B' has an equivalent pitch class number 0 through 11. Sets of these numbers may be operated on by mathematical functions, leading to new combinations and creations. The basic {\bf pcsets} modules free you from the drudgery of computing Pitch Class Set operations by hand. Moreover, incorporated into a programming language such as Python, the package allows application of the Pitch Class Set concepts to the broader use of musical interpretation and creation. \section{Why Pitch Class Sets?} Basically, one day, I got sick of II-V progressions. I'd read a lot on chord-scale theory, but I wasn't satisfied that was the whole of the musical universe. Sometimes I would play something, realize it worked, then think, {\em Hmm---now what was that?} Standard music theory just didn't cover it.\footnote{ This is something a lot of jazz musicians run into, eventually. Mark Levine was the first author to bring it to my attention \citep[p.~250]{levinep} with an unusual Herbie Hancock chord, notated ``E$\flat{}7^{\flat{}9}$/F''. There aren't really any standard scales having E$\flat$, E$\natural$, and F. } Looking back through my music notebooks a few weeks ago, I found the seed that started this all. On one page, I'd tried to work out a new chord progression, then wrote a final thought on the page: \begin{center} {\em Is there a periodic table for chords?} \end{center} It turns out that there was. You'll read about it in a later section (\S{} \ref{primecatalog}, p.~\pageref{primecatalog}). Since then, I've found them to be a general use creative tool, not just a static table. \section{Why pcsets?} I decided to write this Python module after finding most of the programs available online were GUI-only / interactive only (or worse \ldots{} applets). For various reasons, I needed to be able to set up long computational chains on a group of pitch class sets. Typing them into a web browser one at a time and poking buttons was {\em not} an option! I released the module to the public under the GPL (Appendix \ref{gpl}, p.~\pageref{gpl}) for three reasons: \begin{enumerate} \item It might serve as an educational tool for music theory and Pitch Class sets. \item The addition of functions to connect set theory to the more traditional chord / scale theory might lead to innovative, new types of music software. \item There wasn't a module available that provided the same functionality. \end{enumerate} \section{The ``Uh Oh'' Section} I'm assuming, if you're reading this, that you're familiar with: \begin{itemize} \item At least a little music theory; \item the programming language Python; and \item mathematical concepts such as {\em function} and {\em identity}. \end{itemize} I'm also assuming you've read the distribution's README and INSTALL files, and have the {\bf pcsets} package installed on your system properly. I mean, after all---considering the range of the above requirements, you must be pretty good at whatever you do!\footnote{ All six of you who are reading this, that is. $\ddot\smile$ } % \chapter{The Basics} \section{Pitch Classes} Pitch Class values are the ``atoms'' of the {\bf pcset} world. However, they do not cover every possible musical situation. \subsection{Restrictions} \index{pitch class!values!restrictions} In the literature, and in the {\bf pcsets} package, Pitch Class values are defined for {\em 12 tone equal temperament} only. \index{equal temperament} There are, of course, other methods of intonation, and other intonation systems around the world. In fact, a PcSets module tweaked for some sort of microtonal\index{microtonal} music might be pretty interesting.\footnote{ David Lewin demonstrated this concept quite well in Chapter 2 of his book \cite{lewin}, which is highly recommended reading if you are more into the mathematics of set theory. } But not today. \subsection{Definition}\index{pitch class!values!definition} A {\em Pitch Class} is a single integer that represents a particular musical note on the 12-tone equal temperament scale. `C' is defined as zero\index{pitch class!values!zero}; ascending the scale, each note is assigned consecutive integers until `B' (11). \subsection{Enharmonic Equivalence} \index{enharmonic equivalence} \index{equivalence!enharmonic} Because of the equal temperament basis, it is reasonable that enharmonic equivalance translates to {\em exact} Pitch Class equivalence. \index{pitch class!values!equivalence} \index{equivalence!pitch class} No distinction is made between C$\sharp$ and D$\flat$: they both have Pitch Class value~1. \subsection{Octave Equivalence} \index{octave!equivalence} \index{equivalence!octave} Perhaps the only Pitch Class value rule that may seem strange to a musician is the principle of {\bf octave equivalence}. Any note with the name `C'---whether it be played on the fifth string of a 7/8 scale upright bass or the highest key on a piano---is considered to be pitch class zero. Musicians are accustomed to thinking of notes being in a particular order, or in particular positions relative to other notes. Using Pitch Class values, the ``relativity'' information is lost. Pitch Classes, therefore, are an {\em abstraction} of musical structures. \index{pitch class!values!as abstraction} The information which we lose here is not really ``gone''. A musical structure translated to pitch class values has been reduced to some sort of essential structure; if we make any alterations to the structure, {\em we}, human beings, have to {\bf construct a new meaning} from the result. I wish to emphasize this as a particularly important point. We will see a lot of pitch class set transformations later on. Taken at face value, {\em they mean nothing}. They only acquire meaning through our interpretation.\index{pitch class!sets!meaning} I can write a Python module to do the math, but it's up to the user to provide the magic. \subsection{Pitch Class Value Table} \index{pitch class!values!table} The above rules lead to a fairly simple note name to Pitch Class conversion table: \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|} \hline \rule[-3mm]{0mm}{8mm} {\bf note name} & C & $\frac{\mathrm{C}\sharp}{\mathrm{D}\flat}$ & D & $\frac{\mathrm{D}\sharp}{\mathrm{E}\flat}$ & E & F & $\frac{\mathrm{F}\sharp}{\mathrm{G}\flat}$ & G & $\frac{\mathrm{G}\sharp}{\mathrm{A}\flat}$ & A & $\frac{\mathrm{A}\sharp}{\mathrm{B}\flat}$ & B \\ \hline \rule[-3mm]{0mm}{8mm} {\bf pitch class} & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 \\ \hline \end{tabular} \end{center} Please note, however, one simplification, which will be consistent throughout the {\bf pcsets} module: I have omitted from the table any ``accidental'' notes that have a natural equivalent. There is no F$\flat$ on the table; E is always E. Similarly, there are no double flats or double sharps. I call this the {\em natural rule}. \index{pitch class!values!natural rule} There is no particular mathematical basis for it; in fact, there is no particular reason to have or use note names at all, other than convenience. For this reason, the core \lstinline{pcsets.pcset} module is a separate entity from the module which deals with traditional note names (\lstinline{pcsets.noteops}).\index{pcsets!noteops} \begin{comment} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Pitch Class Sets} Text. \subsection{Definition} Text. \subsubsection{Components} Text. \subsubsection{Unique Membership} Text. \subsubsection{Unordered Set} Text. \subsection{Set Names} Text. \subsubsection{Special Sets} Null Unison Interval Chromatic \subsubsection{General Sets} Trichords Tetrachords Pentachords Hexachords Septachords Octachords Nonachords \section{Representation} Text. \subsection{As a List} Text. \subsection{As a Specification String} Text. \subsection{As a String of Notes} Text. \subsubsection{noteops.pcfor} Text. \subsubsection{noteops.notes} Text. \subsubsection{Minimum Conflict} Text. \section{Transposition} Text. \subsection{Mod 12 Mathematics} Text. \subsection{Tn} Text. \subsection{T-n} Text. \subsection{TnTn} Text. \section{Inversion} Text. \subsection{I()} Text. \subsection{Other Inversions} Text. \subsection{Ixy(x,y)} Text. \section{Combined Operations} Text. \subsection{Inversion, then Transposition} Text. \subsection{Transposition, then Inversion} Text. \subsection{Multiple Operations} Text. \subsection{The ``Zorro Box''} Text. % \chapter{The Standards} \section{Normal Form} Text. \section{Zero} Text. \section{Reduced Form} Text. \section{Prime Form} Text. \subsection{Generating a Prime Family} Text. \subsection{Set Equivalence} Text. Tn or TnI \subsection{Exact Equivalence} Text. Rearrangement \section{The Prime Catalog}\label{primecatalog} Text. \subsection{Controversy} Text. \subsubsection{Major vs. Minor} Text. \subsubsection{Relativity for PcSets} Text. % \chapter{Single Set Operations} Text. \section{Permutations} Text. \subsection{Reverse} Text. \subsection{Sort} Text. \subsection{Shift} Text. \section{Derivations} Text. \subsection{Complement} Text. \subsection{Interval Vector} Text. \subsection{Common Tone Vector} Text. % \chapter{Operations on Two Sets} pcops. % \chapter{Tone Rows} tonerows. % demo section -- cut here v v v \chapter{Listing}\index{listing} \begin{lstlisting} for x in range(20): print x \end{lstlisting} More examples. \chapter{Graphics}\index{graphics} Example. More examples. % demo section -- cut here ^ ^ ^ \chapter*{About the Author} All sorts of fun facts. \appendix \chapter{The GNU Public License}\label{gpl} [Refer to license in main.] \chapter{The GNU Free Documentation License}\label{gfdl} [Too big, and formatted with all sorts of weird, nonstandard crap.] \end{comment} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \clearpage \addcontentsline{toc}{chapter}{References}\label{references} \bibliography{pcsets} \clearpage \addcontentsline{toc}{chapter}{Index} \printindex \end{document}
package ar.gov.rosario.siat.def.iface.model; import ar.gov.rosario.siat.base.iface.model.SiatAdapterModel; import ar.gov.rosario.siat.def.iface.util.<API key>; /** * Adapter de RecAtrVal * * @author tecso */ public class RecAtrValAdapter extends SiatAdapterModel { private static final long serialVersionUID = 1L; public static final String NAME = "recAtrValAdapterVO"; private RecursoVO recurso = new RecursoVO(); private <API key> <API key> = new <API key>(); // Flags para mostrar o no la carga del atributo segun se haya seleccionado o no. private boolean paramAtributo = false; public RecAtrValAdapter(){ super(<API key>.ABM_RECATRVAL); } // Getters y Setter public RecursoVO getRecurso(){ return recurso; } public void setRecurso(RecursoVO recurso) { this.recurso = recurso; } public <API key> <API key>() { return <API key>; } public void <API key>(<API key> <API key>) { this.<API key> = <API key>; } public boolean isParamAtributo() { return paramAtributo; } public void setParamAtributo(boolean paramAtributo) { this.paramAtributo = paramAtributo; } }
<!-- View Object { title = [string] Current title, searchTerm = [string] Current search term, taggedDocuments = [array] Collection of result documents, config = [config] Global config } <!-- MAIN CONTENT HEAD --> <div class="before-main-wrapper"> <div class="header-wrapper"> <div class="container header-center"> <div class="header-sidebar"> <div class="widget clearfix"> <!-- DOCUMENT SEARCH --> <h3 class="widget-title">Document Search</h3> <div class="live-search"> <form role="search" method="get" id="searchform" class="form-search" action="search"> <div class="input-group"> <input type="text" id="autocomplete-ajax" name="s" id="s" class="searchajax search-query form-control" autocomplete="off" placeholder="Search for documents here..."> <span class="input-group-btn"> <input type="submit" value="Search" class="btn btn-primary"> </span> </div> </form> </div> <!-- POPULAR SEARCHES --> <% if(popularSearches && popularSearches.length > 0){ %> <p class="top-searches">Popular searches: <% for(var i = 0; i < popularSearches.length; i++){ var search = popularSearches[i]; %> <a href="search?s=<%= encodeURIComponent(search) %>"><%= search + ((i != popularSearches.length -1) ?"," :"") %></a> <% } %> </p> <% } %> </div> </div > </div > </div > </div > <div class="container wrap main-section" id="wrap-main-section"> <div id="content" class="content"> <div class="row bg knowledge-base-row"> <main class="main col-sm-8" role="main"> <% if(section){ %> <h2><%= section.title %></h2> <h4><%= section.description %></h4> <% } %> <% if(taggedDocuments && taggedDocuments.length > 0){ %> <ul class="category-posts"> <% for(var i = 0; i < taggedDocuments.length; i++){ var document = taggedDocuments[i];%> <li class="list-post pa-post-format"> <i class="fa fa-file-text fa-fw"></i> <a href="<%= document.slug %>"><%= document.title %></a> </li> <% } %> </ul> <% } else { %> <p> No results found for tag ""</p> <% } %> <!-- PAGINATION --> </main> <!-- /.main --> <!-- SIDEBAR --> <aside id="sidebar-primary" class="sidebar col-sm-4" role="complementary"> <% if(config.site_sections && config.site_sections.length > 0){ %> <section class="widget <API key>"> <h3 class="widget-title">Categories</h3> <ul> <% for(var i = 0; i < config.site_sections.length; i++){ var category = config.site_sections[i];%> <li class="list-post pa-post-format"> <i class="fa fa-folder fa-fw"></i> <a href="~<%= category.tag %>"><%= category.title %></a> </li> <% } %> </ul> </section> <% } %> </aside> </div> </div> <!-- /.content --> </div> <!-- /.wrap -->
package com.github.fauu.helix.core; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.g2d.TextureAtlas; import com.badlogic.gdx.graphics.g3d.Material; import com.badlogic.gdx.graphics.g3d.ModelInstance; import com.badlogic.gdx.graphics.g3d.Renderable; import com.badlogic.gdx.graphics.g3d.RenderableProvider; import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; import com.badlogic.gdx.graphics.g3d.attributes.TextureAttribute; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.Pool; public class MapRegion implements RenderableProvider { private Vector2 size; private Tile[] tiles; private MapRegionMesh mesh; private TextureAtlas textureAtlas; private GeometrySet geometrySet; private Array<Object> objects; private Renderable renderable; private boolean objectsHidden; public MapRegion(Vector2 size, Tile[] tiles, Array<Object> objects, TextureAtlas textureAtlas, GeometrySet geometrySet) { create(size, tiles, objects, textureAtlas, geometrySet); } public void create(Vector2 size, Tile[] tiles, Array<Object> objects, TextureAtlas textureAtlas, GeometrySet geometrySet) { this.size = size; this.textureAtlas = textureAtlas; this.geometrySet = geometrySet; this.objects = objects; if (tiles != null) { this.tiles = tiles; } else { final int tilesLength = (int) (size.x * size.y); tiles = new Tile[tilesLength]; for (int i = 0; i < tilesLength; i++) { final Tile.Builder tileBuilder = new Tile.Builder(); final int tileX = i % (int) size.x; final int tileY = (int) Math.floor(i / (tilesLength / size.y)); tiles[i] = tileBuilder.setNo(i) .setPosition(new Vector2(tileX, tileY)) .setElevation(0) .setTextureId(0) .setGeometryId(0) .setFacing(Direction.SOUTH) .build(); } } this.tiles = tiles; mesh = new MapRegionMesh(tiles, geometrySet, textureAtlas); renderable = new Renderable(); renderable.mesh = mesh; renderable.material = new Material( new ColorAttribute(ColorAttribute.Diffuse, Color.WHITE), new TextureAttribute(TextureAttribute.Diffuse, textureAtlas.getTextures().first())); renderable.meshPartOffset = 0; renderable.meshPartSize = mesh.getNumVertices(); renderable.primitiveType = GL20.GL_TRIANGLES; renderable.worldTransform.idt(); } private void <API key>(boolean visible) { for (Object object : objects) { object.setVisible(visible); } } public void showObjects() { <API key>(true); objectsHidden = false; } public void hideObjects() { <API key>(false); objectsHidden = true; } public Vector2 getSize() { return size; } public Array<Object> getObjects() { return objects; } public Tile[] getTiles() { return tiles; } public Tile getTile(Vector2 position) { if (position.x >= 0 && position.x < size.x && position.y >= 0 && position.y < size.y) { final int tileIndex = (int) (position.x + position.y * size.x); return tiles[tileIndex]; } else { return null; } } public MapRegionMesh getMesh() { return mesh; } public TextureAtlas getTextureAtlas() { return textureAtlas; } public GeometrySet getGeometrySet() { return geometrySet; } public Vector2 <API key>() { final float centerX = (size.x / 2); final float centerY = (size.y / 2); return new Vector2(centerX, centerY); } public Array<ModelInstance> <API key>() { final Array<ModelInstance> modelInstances = new Array<ModelInstance>(); for (Object object : objects) { if (object.isVisible()) { modelInstances.add(object.getModelInstance()); } } return modelInstances; } public boolean areObjectsHidden() { return objectsHidden; } public void deleteObject(Object object) { objects.removeValue(object, true); } public void setObjectColor(Object object, Color color) { object.getModelInstance().materials.first() .set(new ColorAttribute(ColorAttribute.createDiffuse(color))); } @Override public void getRenderables(Array<Renderable> renderables, Pool<Renderable> pool) { renderables.add(renderable); } }
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "<API key>.h" #include "codegen/il2cpp-codegen.h" #include "<API key>.h" // System.AsyncCallback struct <API key>; // System.Attribute[] struct <API key>; // System.Byte[] struct <API key>; // System.Char[] struct <API key>; // System.Collections.ArrayList struct <API key>; // System.Collections.Generic.Dictionary`2<System.String,System.Int32> struct <API key>; // System.Collections.Generic.Dictionary`2<System.String,System.String> struct <API key>; // System.Collections.Generic.List`1<System.String> struct List_1_t3319525431; // System.Collections.Generic.List`1<System.Text.RegularExpressions.RegexCharClass/SingleRange> struct List_1_t1270793844; // System.Collections.Generic.List`1<System.Text.RegularExpressions.RegexNode> struct List_1_t1470514689; // System.Collections.Generic.List`1<System.Text.RegularExpressions.RegexOptions> struct List_1_t1564920337; // System.Collections.Generic.List`1<System.WeakReference> struct List_1_t2806961458; // System.Collections.Hashtable struct <API key>; // System.Collections.IComparer struct <API key>; // System.Collections.IDictionary struct <API key>; // System.Collections.Specialized.StringDictionary struct <API key>; // System.ComponentModel.AttributeCollection/AttributeEntry[] struct <API key>; // System.ComponentModel.<API key> struct <API key>; // System.ComponentModel.EventHandlerList struct <API key>; // System.ComponentModel.<API key> struct <API key>; // System.ComponentModel.ISite struct ISite_t4006303512; // System.ComponentModel.TypeConverter/<API key> struct <API key>; // System.Configuration.Configuration struct <API key>; // System.Configuration.<API key>/SaveContext struct <API key>; // System.Configuration.<API key> struct <API key>; // System.Configuration.<API key> struct <API key>; // System.Configuration.<API key> struct <API key>; // System.Configuration.<API key> struct <API key>; // System.Configuration.ElementInformation struct <API key>; // System.Configuration.ElementMap struct <API key>; // System.Configuration.<API key> struct <API key>; // System.Configuration.<API key> struct <API key>; // System.Configuration.SectionInformation struct <API key>; // System.DelegateData struct <API key>; // System.Delegate[] struct <API key>; // System.Diagnostics.EventLog struct <API key>; // System.Diagnostics.EventLogImpl struct <API key>; // System.Diagnostics.StackTrace[] struct <API key>; // System.Diagnostics.<API key> struct <API key>; // System.Diagnostics.TraceFilter struct <API key>; // System.Diagnostics.TraceImplSettings struct <API key>; // System.Diagnostics.<API key> struct <API key>; // System.Globalization.CultureInfo struct <API key>; // System.IAsyncResult struct <API key>; // System.IO.TextWriter struct <API key>; // System.Int32[] struct <API key>; // System.Int32[][] struct <API key>; // System.IntPtr[] struct <API key>; // System.Reflection.Emit.DynamicMethod struct <API key>; // System.Reflection.Emit.ILGenerator struct <API key>; // System.Reflection.Emit.Label[] struct <API key>; // System.Reflection.Emit.LocalBuilder struct <API key>; // System.Reflection.FieldInfo struct FieldInfo_t; // System.Reflection.MethodInfo struct MethodInfo_t; // System.Runtime.Remoting.ServerIdentity struct <API key>; // System.Runtime.Serialization.<API key> struct <API key>; // System.String struct String_t; // System.String[0...,0...] struct <API key>; // System.String[] struct <API key>; // System.Text.RegularExpressions.CaptureCollection struct <API key>; // System.Text.RegularExpressions.Capture[] struct <API key>; // System.Text.RegularExpressions.<API key> struct <API key>; // System.Text.RegularExpressions.Group struct Group_t2468205786; // System.Text.RegularExpressions.GroupCollection struct <API key>; // System.Text.RegularExpressions.Group[] struct <API key>; // System.Text.RegularExpressions.Match struct Match_t3408321083; // System.Text.RegularExpressions.MatchCollection struct <API key>; // System.Text.RegularExpressions.NoParamDelegate struct <API key>; // System.Text.RegularExpressions.Regex struct Regex_t3657309853; // System.Text.RegularExpressions.RegexBoyerMoore struct <API key>; // System.Text.RegularExpressions.RegexCharClass struct <API key>; // System.Text.RegularExpressions.RegexCharClass/LowerCaseMapping[] struct <API key>; // System.Text.RegularExpressions.RegexCode struct <API key>; // System.Text.RegularExpressions.RegexCompiler/BacktrackNote[] struct <API key>; // System.Text.RegularExpressions.RegexFC[] struct <API key>; // System.Text.RegularExpressions.RegexNode struct <API key>; // System.Text.RegularExpressions.RegexPrefix struct <API key>; // System.Text.RegularExpressions.RegexRunner struct <API key>; // System.Text.StringBuilder struct StringBuilder_t; // System.Type struct Type_t; // System.Type[] struct <API key>; // System.Void struct Void_t1185182177; // System.Xml.XmlNode struct XmlNode_t3767805227; // System.Xml.XmlTextWriter struct <API key>; struct <API key>; struct <API key>; #ifndef RUNTIMEOBJECT_H #define RUNTIMEOBJECT_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Object #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RUNTIMEOBJECT_H #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Attribute struct <API key> : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Collections.<API key> struct <API key> : public RuntimeObject { public: // System.Collections.ArrayList System.Collections.<API key>::list <API key> * ___list_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___list_0)); } inline <API key> * get_list_0() const { return ___list_0; } inline <API key> ** <API key>() { return &___list_0; } inline void set_list_0(<API key> * value) { ___list_0 = value; <API key>((&___list_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.<API key> struct <API key> : public RuntimeObject { public: // System.Array System.ComponentModel.<API key>::array RuntimeArray * ___array_0; // System.Int32 System.ComponentModel.<API key>::total int32_t ___total_1; // System.Int32 System.ComponentModel.<API key>::current int32_t ___current_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___array_0)); } inline RuntimeArray * get_array_0() const { return ___array_0; } inline RuntimeArray ** <API key>() { return &___array_0; } inline void set_array_0(RuntimeArray * value) { ___array_0 = value; <API key>((&___array_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___total_1)); } inline int32_t get_total_1() const { return ___total_1; } inline int32_t* <API key>() { return &___total_1; } inline void set_total_1(int32_t value) { ___total_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___current_2)); } inline int32_t get_current_2() const { return ___current_2; } inline int32_t* <API key>() { return &___current_2; } inline void set_current_2(int32_t value) { ___current_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.AttributeCollection struct <API key> : public RuntimeObject { public: // System.Attribute[] System.ComponentModel.AttributeCollection::_attributes <API key>* ____attributes_2; // System.ComponentModel.AttributeCollection/AttributeEntry[] System.ComponentModel.AttributeCollection::<API key> <API key>* <API key>; // System.Int32 System.ComponentModel.AttributeCollection::_index int32_t ____index_5; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____attributes_2)); } inline <API key>* get__attributes_2() const { return ____attributes_2; } inline <API key>** <API key>() { return &____attributes_2; } inline void set__attributes_2(<API key>* value) { ____attributes_2 = value; <API key>((&____attributes_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key>* <API key>() const { return <API key>; } inline <API key>** <API key>() { return &<API key>; } inline void <API key>(<API key>* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____index_5)); } inline int32_t get__index_5() const { return ____index_5; } inline int32_t* <API key>() { return &____index_5; } inline void set__index_5(int32_t value) { ____index_5 = value; } }; struct <API key> { public: // System.ComponentModel.AttributeCollection System.ComponentModel.AttributeCollection::Empty <API key> * ___Empty_0; // System.Collections.Hashtable System.ComponentModel.AttributeCollection::_defaultAttributes <API key> * <API key>; // System.Object System.ComponentModel.AttributeCollection::internalSyncObject RuntimeObject * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Empty_0)); } inline <API key> * get_Empty_0() const { return ___Empty_0; } inline <API key> ** <API key>() { return &___Empty_0; } inline void set_Empty_0(<API key> * value) { ___Empty_0 = value; <API key>((&___Empty_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline RuntimeObject * <API key>() const { return <API key>; } inline RuntimeObject ** <API key>() { return &<API key>; } inline void <API key>(RuntimeObject * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.<API key>/CultureComparer struct <API key> : public RuntimeObject { public: // System.ComponentModel.<API key> System.ComponentModel.<API key>/CultureComparer::converter <API key> * ___converter_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___converter_0)); } inline <API key> * get_converter_0() const { return ___converter_0; } inline <API key> ** <API key>() { return &___converter_0; } inline void set_converter_0(<API key> * value) { ___converter_0 = value; <API key>((&___converter_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.<API key>/CultureInfoMapper struct <API key> : public RuntimeObject { public: public: }; struct <API key> { public: // System.Collections.Generic.Dictionary`2<System.String,System.String> modreq(System.Runtime.CompilerServices.IsVolatile) System.ComponentModel.<API key>/CultureInfoMapper::cultureInfoNameMap <API key> * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.<API key> struct <API key> : public RuntimeObject { public: // System.ComponentModel.<API key> System.ComponentModel.<API key>::_parent RuntimeObject* ____parent_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____parent_0)); } inline RuntimeObject* get__parent_0() const { return ____parent_0; } inline RuntimeObject** <API key>() { return &____parent_0; } inline void set__parent_0(RuntimeObject* value) { ____parent_0 = value; <API key>((&____parent_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Configuration.<API key> struct <API key> : public RuntimeObject { public: // System.String System.Configuration.<API key>::rawXml String_t* ___rawXml_0; // System.Boolean System.Configuration.<API key>::modified bool ___modified_1; // System.Configuration.ElementMap System.Configuration.<API key>::map <API key> * ___map_2; // System.Configuration.<API key> System.Configuration.<API key>::keyProps <API key> * ___keyProps_3; // System.Configuration.<API key> System.Configuration.<API key>::defaultCollection <API key> * <API key>; // System.Boolean System.Configuration.<API key>::readOnly bool ___readOnly_5; // System.Configuration.ElementInformation System.Configuration.<API key>::elementInfo <API key> * ___elementInfo_6; // System.Configuration.Configuration System.Configuration.<API key>::_configuration <API key> * ____configuration_7; // System.Boolean System.Configuration.<API key>::elementPresent bool ___elementPresent_8; // System.Configuration.<API key> System.Configuration.<API key>::<API key> <API key> * <API key>; // System.Configuration.<API key> System.Configuration.<API key>::<API key> <API key> * <API key>; // System.Configuration.<API key> System.Configuration.<API key>::lockAttributes <API key> * <API key>; // System.Configuration.<API key> System.Configuration.<API key>::lockElements <API key> * ___lockElements_12; // System.Boolean System.Configuration.<API key>::lockItem bool ___lockItem_13; // System.Configuration.<API key>/SaveContext System.Configuration.<API key>::saveContext <API key> * ___saveContext_14; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___rawXml_0)); } inline String_t* get_rawXml_0() const { return ___rawXml_0; } inline String_t** <API key>() { return &___rawXml_0; } inline void set_rawXml_0(String_t* value) { ___rawXml_0 = value; <API key>((&___rawXml_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___modified_1)); } inline bool get_modified_1() const { return ___modified_1; } inline bool* <API key>() { return &___modified_1; } inline void set_modified_1(bool value) { ___modified_1 = value; } inline static int32_t get_offset_of_map_2() { return static_cast<int32_t>(offsetof(<API key>, ___map_2)); } inline <API key> * get_map_2() const { return ___map_2; } inline <API key> ** <API key>() { return &___map_2; } inline void set_map_2(<API key> * value) { ___map_2 = value; <API key>((&___map_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___keyProps_3)); } inline <API key> * get_keyProps_3() const { return ___keyProps_3; } inline <API key> ** <API key>() { return &___keyProps_3; } inline void set_keyProps_3(<API key> * value) { ___keyProps_3 = value; <API key>((&___keyProps_3), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___readOnly_5)); } inline bool get_readOnly_5() const { return ___readOnly_5; } inline bool* <API key>() { return &___readOnly_5; } inline void set_readOnly_5(bool value) { ___readOnly_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___elementInfo_6)); } inline <API key> * get_elementInfo_6() const { return ___elementInfo_6; } inline <API key> ** <API key>() { return &___elementInfo_6; } inline void set_elementInfo_6(<API key> * value) { ___elementInfo_6 = value; <API key>((&___elementInfo_6), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____configuration_7)); } inline <API key> * <API key>() const { return ____configuration_7; } inline <API key> ** <API key>() { return &____configuration_7; } inline void <API key>(<API key> * value) { ____configuration_7 = value; <API key>((&____configuration_7), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___elementPresent_8)); } inline bool <API key>() const { return ___elementPresent_8; } inline bool* <API key>() { return &___elementPresent_8; } inline void <API key>(bool value) { ___elementPresent_8 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___lockElements_12)); } inline <API key> * get_lockElements_12() const { return ___lockElements_12; } inline <API key> ** <API key>() { return &___lockElements_12; } inline void set_lockElements_12(<API key> * value) { ___lockElements_12 = value; <API key>((&___lockElements_12), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___lockItem_13)); } inline bool get_lockItem_13() const { return ___lockItem_13; } inline bool* <API key>() { return &___lockItem_13; } inline void set_lockItem_13(bool value) { ___lockItem_13 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___saveContext_14)); } inline <API key> * get_saveContext_14() const { return ___saveContext_14; } inline <API key> ** <API key>() { return &___saveContext_14; } inline void set_saveContext_14(<API key> * value) { ___saveContext_14 = value; <API key>((&___saveContext_14), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Configuration.<API key> struct <API key> : public RuntimeObject { public: public: }; struct <API key> { public: // System.Configuration.<API key> System.Configuration.<API key>::config RuntimeObject* ___config_0; // System.Object System.Configuration.<API key>::lockobj RuntimeObject * ___lockobj_1; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___config_0)); } inline RuntimeObject* get_config_0() const { return ___config_0; } inline RuntimeObject** <API key>() { return &___config_0; } inline void set_config_0(RuntimeObject* value) { ___config_0 = value; <API key>((&___config_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___lockobj_1)); } inline RuntimeObject * get_lockobj_1() const { return ___lockobj_1; } inline RuntimeObject ** <API key>() { return &___lockobj_1; } inline void set_lockobj_1(RuntimeObject * value) { ___lockobj_1 = value; <API key>((&___lockobj_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Configuration.DefaultConfig struct <API key> : public RuntimeObject { public: public: }; struct <API key> { public: // System.Configuration.DefaultConfig System.Configuration.DefaultConfig::instance <API key> * ___instance_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___instance_0)); } inline <API key> * get_instance_0() const { return ___instance_0; } inline <API key> ** <API key>() { return &___instance_0; } inline void set_instance_0(<API key> * value) { ___instance_0 = value; <API key>((&___instance_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Configuration.<API key> struct <API key> : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key>/Instance struct <API key> : public RuntimeObject { public: public: }; struct <API key> { public: // System.Boolean System.Diagnostics.<API key>/Instance::<API key> bool <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public RuntimeObject { public: // System.Diagnostics.TraceImplSettings System.Diagnostics.<API key>::configValues <API key> * ___configValues_0; // System.Collections.IDictionary System.Diagnostics.<API key>::elementHandlers RuntimeObject* <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___configValues_0)); } inline <API key> * get_configValues_0() const { return ___configValues_0; } inline <API key> ** <API key>() { return &___configValues_0; } inline void set_configValues_0(<API key> * value) { ___configValues_0 = value; <API key>((&___configValues_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline RuntimeObject* <API key>() const { return <API key>; } inline RuntimeObject** <API key>() { return &<API key>; } inline void <API key>(RuntimeObject* value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.EventLogImpl struct <API key> : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.EventLogInstaller struct <API key> : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.Stopwatch struct <API key> : public RuntimeObject { public: // System.Int64 System.Diagnostics.Stopwatch::elapsed int64_t ___elapsed_2; // System.Int64 System.Diagnostics.Stopwatch::started int64_t ___started_3; // System.Boolean System.Diagnostics.Stopwatch::is_running bool ___is_running_4; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___elapsed_2)); } inline int64_t get_elapsed_2() const { return ___elapsed_2; } inline int64_t* <API key>() { return &___elapsed_2; } inline void set_elapsed_2(int64_t value) { ___elapsed_2 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___started_3)); } inline int64_t get_started_3() const { return ___started_3; } inline int64_t* <API key>() { return &___started_3; } inline void set_started_3(int64_t value) { ___started_3 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___is_running_4)); } inline bool get_is_running_4() const { return ___is_running_4; } inline bool* <API key>() { return &___is_running_4; } inline void set_is_running_4(bool value) { ___is_running_4 = value; } }; struct <API key> { public: // System.Int64 System.Diagnostics.Stopwatch::Frequency int64_t ___Frequency_0; // System.Boolean System.Diagnostics.Stopwatch::IsHighResolution bool <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Frequency_0)); } inline int64_t get_Frequency_0() const { return ___Frequency_0; } inline int64_t* <API key>() { return &___Frequency_0; } inline void set_Frequency_0(int64_t value) { ___Frequency_0 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.Switch struct Switch_t4228844028 : public RuntimeObject { public: // System.String System.Diagnostics.Switch::description String_t* ___description_0; // System.String System.Diagnostics.Switch::displayName String_t* ___displayName_1; // System.String modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.Switch::switchValueString String_t* <API key>; // System.String System.Diagnostics.Switch::defaultValue String_t* ___defaultValue_3; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Switch_t4228844028, ___description_0)); } inline String_t* get_description_0() const { return ___description_0; } inline String_t** <API key>() { return &___description_0; } inline void set_description_0(String_t* value) { ___description_0 = value; <API key>((&___description_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Switch_t4228844028, ___displayName_1)); } inline String_t* get_displayName_1() const { return ___displayName_1; } inline String_t** <API key>() { return &___displayName_1; } inline void set_displayName_1(String_t* value) { ___displayName_1 = value; <API key>((&___displayName_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Switch_t4228844028, <API key>)); } inline String_t* <API key>() const { return <API key>; } inline String_t** <API key>() { return &<API key>; } inline void <API key>(String_t* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Switch_t4228844028, ___defaultValue_3)); } inline String_t* get_defaultValue_3() const { return ___defaultValue_3; } inline String_t** <API key>() { return &___defaultValue_3; } inline void set_defaultValue_3(String_t* value) { ___defaultValue_3 = value; <API key>((&___defaultValue_3), value); } }; struct <API key> { public: // System.Collections.Generic.List`1<System.WeakReference> System.Diagnostics.Switch::switches List_1_t2806961458 * ___switches_4; // System.Int32 System.Diagnostics.Switch::<API key> int32_t <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___switches_4)); } inline List_1_t2806961458 * get_switches_4() const { return ___switches_4; } inline List_1_t2806961458 ** <API key>() { return &___switches_4; } inline void set_switches_4(List_1_t2806961458 * value) { ___switches_4 = value; <API key>((&___switches_4), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline int32_t <API key>() const { return <API key>; } inline int32_t* <API key>() { return &<API key>; } inline void <API key>(int32_t value) { <API key> = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.TraceFilter struct <API key> : public RuntimeObject { public: // System.String System.Diagnostics.TraceFilter::initializeData String_t* ___initializeData_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___initializeData_0)); } inline String_t* <API key>() const { return ___initializeData_0; } inline String_t** <API key>() { return &___initializeData_0; } inline void <API key>(String_t* value) { ___initializeData_0 = value; <API key>((&___initializeData_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.TraceImplSettings struct <API key> : public RuntimeObject { public: // System.Boolean System.Diagnostics.TraceImplSettings::AutoFlush bool ___AutoFlush_0; // System.Int32 System.Diagnostics.TraceImplSettings::IndentSize int32_t ___IndentSize_1; // System.Diagnostics.<API key> System.Diagnostics.TraceImplSettings::Listeners <API key> * ___Listeners_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___AutoFlush_0)); } inline bool get_AutoFlush_0() const { return ___AutoFlush_0; } inline bool* <API key>() { return &___AutoFlush_0; } inline void set_AutoFlush_0(bool value) { ___AutoFlush_0 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___IndentSize_1)); } inline int32_t get_IndentSize_1() const { return ___IndentSize_1; } inline int32_t* <API key>() { return &___IndentSize_1; } inline void set_IndentSize_1(int32_t value) { ___IndentSize_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Listeners_2)); } inline <API key> * get_Listeners_2() const { return ___Listeners_2; } inline <API key> ** <API key>() { return &___Listeners_2; } inline void set_Listeners_2(<API key> * value) { ___Listeners_2 = value; <API key>((&___Listeners_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public RuntimeObject { public: // System.Collections.ArrayList System.Diagnostics.<API key>::list <API key> * ___list_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___list_0)); } inline <API key> * get_list_0() const { return ___list_0; } inline <API key> ** <API key>() { return &___list_0; } inline void set_list_0(<API key> * value) { ___list_0 = value; <API key>((&___list_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.TraceUtils struct <API key> : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef EXCEPTION_T_H #define EXCEPTION_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Exception struct Exception_t : public RuntimeObject { public: // System.String System.Exception::_className String_t* ____className_1; // System.String System.Exception::_message String_t* ____message_2; // System.Collections.IDictionary System.Exception::_data RuntimeObject* ____data_3; // System.Exception System.Exception::_innerException Exception_t * <API key>; // System.String System.Exception::_helpURL String_t* ____helpURL_5; // System.Object System.Exception::_stackTrace RuntimeObject * ____stackTrace_6; // System.String System.Exception::_stackTraceString String_t* <API key>; // System.String System.Exception::<API key> String_t* <API key>; // System.Int32 System.Exception::_remoteStackIndex int32_t <API key>; // System.Object System.Exception::_dynamicMethods RuntimeObject * <API key>; // System.Int32 System.Exception::_HResult int32_t ____HResult_11; // System.String System.Exception::_source String_t* ____source_12; // System.Runtime.Serialization.<API key> System.Exception::<API key> <API key> * <API key>; // System.Diagnostics.StackTrace[] System.Exception::captured_traces <API key>* <API key>; // System.IntPtr[] System.Exception::native_trace_ips <API key>* <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); } inline String_t* get__className_1() const { return ____className_1; } inline String_t** <API key>() { return &____className_1; } inline void set__className_1(String_t* value) { ____className_1 = value; <API key>((&____className_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); } inline String_t* get__message_2() const { return ____message_2; } inline String_t** <API key>() { return &____message_2; } inline void set__message_2(String_t* value) { ____message_2 = value; <API key>((&____message_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); } inline RuntimeObject* get__data_3() const { return ____data_3; } inline RuntimeObject** <API key>() { return &____data_3; } inline void set__data_3(RuntimeObject* value) { ____data_3 = value; <API key>((&____data_3), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, <API key>)); } inline Exception_t * <API key>() const { return <API key>; } inline Exception_t ** <API key>() { return &<API key>; } inline void <API key>(Exception_t * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); } inline String_t* get__helpURL_5() const { return ____helpURL_5; } inline String_t** <API key>() { return &____helpURL_5; } inline void set__helpURL_5(String_t* value) { ____helpURL_5 = value; <API key>((&____helpURL_5), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); } inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; } inline RuntimeObject ** <API key>() { return &____stackTrace_6; } inline void set__stackTrace_6(RuntimeObject * value) { ____stackTrace_6 = value; <API key>((&____stackTrace_6), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, <API key>)); } inline String_t* <API key>() const { return <API key>; } inline String_t** <API key>() { return &<API key>; } inline void <API key>(String_t* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, <API key>)); } inline String_t* <API key>() const { return <API key>; } inline String_t** <API key>() { return &<API key>; } inline void <API key>(String_t* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, <API key>)); } inline int32_t <API key>() const { return <API key>; } inline int32_t* <API key>() { return &<API key>; } inline void <API key>(int32_t value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, <API key>)); } inline RuntimeObject * <API key>() const { return <API key>; } inline RuntimeObject ** <API key>() { return &<API key>; } inline void <API key>(RuntimeObject * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); } inline int32_t get__HResult_11() const { return ____HResult_11; } inline int32_t* <API key>() { return &____HResult_11; } inline void set__HResult_11(int32_t value) { ____HResult_11 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); } inline String_t* get__source_12() const { return ____source_12; } inline String_t** <API key>() { return &____source_12; } inline void set__source_12(String_t* value) { ____source_12 = value; <API key>((&____source_12), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, <API key>)); } inline <API key>* <API key>() const { return <API key>; } inline <API key>** <API key>() { return &<API key>; } inline void <API key>(<API key>* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Exception_t, <API key>)); } inline <API key>* <API key>() const { return <API key>; } inline <API key>** <API key>() { return &<API key>; } inline void <API key>(<API key>* value) { <API key> = value; <API key>((&<API key>), value); } }; struct <API key> { public: // System.Object System.Exception::s_EDILock RuntimeObject * ___s_EDILock_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___s_EDILock_0)); } inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; } inline RuntimeObject ** <API key>() { return &___s_EDILock_0; } inline void set_s_EDILock_0(RuntimeObject * value) { ___s_EDILock_0 = value; <API key>((&___s_EDILock_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Exception struct <API key> { char* ____className_1; char* ____message_2; RuntimeObject* ____data_3; <API key>* <API key>; char* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; char* <API key>; char* <API key>; int32_t <API key>; Il2CppIUnknown* <API key>; int32_t ____HResult_11; char* ____source_12; <API key> * <API key>; <API key>* <API key>; intptr_t* <API key>; }; // Native definition for COM marshalling of System.Exception struct <API key> { Il2CppChar* ____className_1; Il2CppChar* ____message_2; RuntimeObject* ____data_3; <API key>* <API key>; Il2CppChar* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; Il2CppChar* <API key>; Il2CppChar* <API key>; int32_t <API key>; Il2CppIUnknown* <API key>; int32_t ____HResult_11; Il2CppChar* ____source_12; <API key> * <API key>; <API key>* <API key>; intptr_t* <API key>; }; #endif // EXCEPTION_T_H #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MarshalByRefObject struct <API key> : public RuntimeObject { public: // System.Runtime.Remoting.ServerIdentity System.MarshalByRefObject::_identity <API key> * ____identity_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____identity_0)); } inline <API key> * get__identity_0() const { return ____identity_0; } inline <API key> ** <API key>() { return &____identity_0; } inline void set__identity_0(<API key> * value) { ____identity_0 = value; <API key>((&____identity_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.MarshalByRefObject struct <API key> { <API key> * ____identity_0; }; // Native definition for COM marshalling of System.MarshalByRefObject struct <API key> { <API key> * ____identity_0; }; #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.Capture struct Capture_t2232016050 : public RuntimeObject { public: // System.String System.Text.RegularExpressions.Capture::_text String_t* ____text_0; // System.Int32 System.Text.RegularExpressions.Capture::_index int32_t ____index_1; // System.Int32 System.Text.RegularExpressions.Capture::_length int32_t ____length_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Capture_t2232016050, ____text_0)); } inline String_t* get__text_0() const { return ____text_0; } inline String_t** <API key>() { return &____text_0; } inline void set__text_0(String_t* value) { ____text_0 = value; <API key>((&____text_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Capture_t2232016050, ____index_1)); } inline int32_t get__index_1() const { return ____index_1; } inline int32_t* <API key>() { return &____index_1; } inline void set__index_1(int32_t value) { ____index_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Capture_t2232016050, ____length_2)); } inline int32_t get__length_2() const { return ____length_2; } inline int32_t* <API key>() { return &____length_2; } inline void set__length_2(int32_t value) { ____length_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.CaptureCollection struct <API key> : public RuntimeObject { public: // System.Text.RegularExpressions.Group System.Text.RegularExpressions.CaptureCollection::_group Group_t2468205786 * ____group_0; // System.Int32 System.Text.RegularExpressions.CaptureCollection::_capcount int32_t ____capcount_1; // System.Text.RegularExpressions.Capture[] System.Text.RegularExpressions.CaptureCollection::_captures <API key>* ____captures_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____group_0)); } inline Group_t2468205786 * get__group_0() const { return ____group_0; } inline Group_t2468205786 ** <API key>() { return &____group_0; } inline void set__group_0(Group_t2468205786 * value) { ____group_0 = value; <API key>((&____group_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capcount_1)); } inline int32_t get__capcount_1() const { return ____capcount_1; } inline int32_t* <API key>() { return &____capcount_1; } inline void set__capcount_1(int32_t value) { ____capcount_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____captures_2)); } inline <API key>* get__captures_2() const { return ____captures_2; } inline <API key>** <API key>() { return &____captures_2; } inline void set__captures_2(<API key>* value) { ____captures_2 = value; <API key>((&____captures_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.CaptureEnumerator struct <API key> : public RuntimeObject { public: // System.Text.RegularExpressions.CaptureCollection System.Text.RegularExpressions.CaptureEnumerator::_rcc <API key> * ____rcc_0; // System.Int32 System.Text.RegularExpressions.CaptureEnumerator::_curindex int32_t ____curindex_1; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____rcc_0)); } inline <API key> * get__rcc_0() const { return ____rcc_0; } inline <API key> ** <API key>() { return &____rcc_0; } inline void set__rcc_0(<API key> * value) { ____rcc_0 = value; <API key>((&____rcc_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____curindex_1)); } inline int32_t get__curindex_1() const { return ____curindex_1; } inline int32_t* <API key>() { return &____curindex_1; } inline void set__curindex_1(int32_t value) { ____curindex_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.GroupCollection struct <API key> : public RuntimeObject { public: // System.Text.RegularExpressions.Match System.Text.RegularExpressions.GroupCollection::_match Match_t3408321083 * ____match_0; // System.Collections.Hashtable System.Text.RegularExpressions.GroupCollection::_captureMap <API key> * ____captureMap_1; // System.Text.RegularExpressions.Group[] System.Text.RegularExpressions.GroupCollection::_groups <API key>* ____groups_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____match_0)); } inline Match_t3408321083 * get__match_0() const { return ____match_0; } inline Match_t3408321083 ** <API key>() { return &____match_0; } inline void set__match_0(Match_t3408321083 * value) { ____match_0 = value; <API key>((&____match_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____captureMap_1)); } inline <API key> * get__captureMap_1() const { return ____captureMap_1; } inline <API key> ** <API key>() { return &____captureMap_1; } inline void set__captureMap_1(<API key> * value) { ____captureMap_1 = value; <API key>((&____captureMap_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____groups_2)); } inline <API key>* get__groups_2() const { return ____groups_2; } inline <API key>** <API key>() { return &____groups_2; } inline void set__groups_2(<API key>* value) { ____groups_2 = value; <API key>((&____groups_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.GroupEnumerator struct <API key> : public RuntimeObject { public: // System.Text.RegularExpressions.GroupCollection System.Text.RegularExpressions.GroupEnumerator::_rgc <API key> * ____rgc_0; // System.Int32 System.Text.RegularExpressions.GroupEnumerator::_curindex int32_t ____curindex_1; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____rgc_0)); } inline <API key> * get__rgc_0() const { return ____rgc_0; } inline <API key> ** <API key>() { return &____rgc_0; } inline void set__rgc_0(<API key> * value) { ____rgc_0 = value; <API key>((&____rgc_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____curindex_1)); } inline int32_t get__curindex_1() const { return ____curindex_1; } inline int32_t* <API key>() { return &____curindex_1; } inline void set__curindex_1(int32_t value) { ____curindex_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.MatchCollection struct <API key> : public RuntimeObject { public: // System.Text.RegularExpressions.Regex System.Text.RegularExpressions.MatchCollection::_regex Regex_t3657309853 * ____regex_0; // System.Collections.ArrayList System.Text.RegularExpressions.MatchCollection::_matches <API key> * ____matches_1; // System.Boolean System.Text.RegularExpressions.MatchCollection::_done bool ____done_2; // System.String System.Text.RegularExpressions.MatchCollection::_input String_t* ____input_3; // System.Int32 System.Text.RegularExpressions.MatchCollection::_beginning int32_t ____beginning_4; // System.Int32 System.Text.RegularExpressions.MatchCollection::_length int32_t ____length_5; // System.Int32 System.Text.RegularExpressions.MatchCollection::_startat int32_t ____startat_6; // System.Int32 System.Text.RegularExpressions.MatchCollection::_prevlen int32_t ____prevlen_7; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____regex_0)); } inline Regex_t3657309853 * get__regex_0() const { return ____regex_0; } inline Regex_t3657309853 ** <API key>() { return &____regex_0; } inline void set__regex_0(Regex_t3657309853 * value) { ____regex_0 = value; <API key>((&____regex_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____matches_1)); } inline <API key> * get__matches_1() const { return ____matches_1; } inline <API key> ** <API key>() { return &____matches_1; } inline void set__matches_1(<API key> * value) { ____matches_1 = value; <API key>((&____matches_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____done_2)); } inline bool get__done_2() const { return ____done_2; } inline bool* <API key>() { return &____done_2; } inline void set__done_2(bool value) { ____done_2 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____input_3)); } inline String_t* get__input_3() const { return ____input_3; } inline String_t** <API key>() { return &____input_3; } inline void set__input_3(String_t* value) { ____input_3 = value; <API key>((&____input_3), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____beginning_4)); } inline int32_t get__beginning_4() const { return ____beginning_4; } inline int32_t* <API key>() { return &____beginning_4; } inline void set__beginning_4(int32_t value) { ____beginning_4 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____length_5)); } inline int32_t get__length_5() const { return ____length_5; } inline int32_t* <API key>() { return &____length_5; } inline void set__length_5(int32_t value) { ____length_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____startat_6)); } inline int32_t get__startat_6() const { return ____startat_6; } inline int32_t* <API key>() { return &____startat_6; } inline void set__startat_6(int32_t value) { ____startat_6 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____prevlen_7)); } inline int32_t get__prevlen_7() const { return ____prevlen_7; } inline int32_t* <API key>() { return &____prevlen_7; } inline void set__prevlen_7(int32_t value) { ____prevlen_7 = value; } }; struct <API key> { public: // System.Int32 System.Text.RegularExpressions.MatchCollection::infinite int32_t ___infinite_8; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___infinite_8)); } inline int32_t get_infinite_8() const { return ___infinite_8; } inline int32_t* <API key>() { return &___infinite_8; } inline void set_infinite_8(int32_t value) { ___infinite_8 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.MatchEnumerator struct <API key> : public RuntimeObject { public: // System.Text.RegularExpressions.MatchCollection System.Text.RegularExpressions.MatchEnumerator::_matchcoll <API key> * ____matchcoll_0; // System.Text.RegularExpressions.Match System.Text.RegularExpressions.MatchEnumerator::_match Match_t3408321083 * ____match_1; // System.Int32 System.Text.RegularExpressions.MatchEnumerator::_curindex int32_t ____curindex_2; // System.Boolean System.Text.RegularExpressions.MatchEnumerator::_done bool ____done_3; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____matchcoll_0)); } inline <API key> * get__matchcoll_0() const { return ____matchcoll_0; } inline <API key> ** <API key>() { return &____matchcoll_0; } inline void set__matchcoll_0(<API key> * value) { ____matchcoll_0 = value; <API key>((&____matchcoll_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____match_1)); } inline Match_t3408321083 * get__match_1() const { return ____match_1; } inline Match_t3408321083 ** <API key>() { return &____match_1; } inline void set__match_1(Match_t3408321083 * value) { ____match_1 = value; <API key>((&____match_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____curindex_2)); } inline int32_t get__curindex_2() const { return ____curindex_2; } inline int32_t* <API key>() { return &____curindex_2; } inline void set__curindex_2(int32_t value) { ____curindex_2 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____done_3)); } inline bool get__done_3() const { return ____done_3; } inline bool* <API key>() { return &____done_3; } inline void set__done_3(bool value) { ____done_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexBoyerMoore struct <API key> : public RuntimeObject { public: // System.Int32[] System.Text.RegularExpressions.RegexBoyerMoore::_positive <API key>* ____positive_0; // System.Int32[] System.Text.RegularExpressions.RegexBoyerMoore::_negativeASCII <API key>* ____negativeASCII_1; // System.Int32[][] System.Text.RegularExpressions.RegexBoyerMoore::_negativeUnicode <API key>* <API key>; // System.String System.Text.RegularExpressions.RegexBoyerMoore::_pattern String_t* ____pattern_3; // System.Int32 System.Text.RegularExpressions.RegexBoyerMoore::_lowASCII int32_t ____lowASCII_4; // System.Int32 System.Text.RegularExpressions.RegexBoyerMoore::_highASCII int32_t ____highASCII_5; // System.Boolean System.Text.RegularExpressions.RegexBoyerMoore::_rightToLeft bool ____rightToLeft_6; // System.Boolean System.Text.RegularExpressions.RegexBoyerMoore::_caseInsensitive bool <API key>; // System.Globalization.CultureInfo System.Text.RegularExpressions.RegexBoyerMoore::_culture <API key> * ____culture_8; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____positive_0)); } inline <API key>* get__positive_0() const { return ____positive_0; } inline <API key>** <API key>() { return &____positive_0; } inline void set__positive_0(<API key>* value) { ____positive_0 = value; <API key>((&____positive_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____negativeASCII_1)); } inline <API key>* <API key>() const { return ____negativeASCII_1; } inline <API key>** <API key>() { return &____negativeASCII_1; } inline void <API key>(<API key>* value) { ____negativeASCII_1 = value; <API key>((&____negativeASCII_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key>* <API key>() const { return <API key>; } inline <API key>** <API key>() { return &<API key>; } inline void <API key>(<API key>* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____pattern_3)); } inline String_t* get__pattern_3() const { return ____pattern_3; } inline String_t** <API key>() { return &____pattern_3; } inline void set__pattern_3(String_t* value) { ____pattern_3 = value; <API key>((&____pattern_3), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____lowASCII_4)); } inline int32_t get__lowASCII_4() const { return ____lowASCII_4; } inline int32_t* <API key>() { return &____lowASCII_4; } inline void set__lowASCII_4(int32_t value) { ____lowASCII_4 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____highASCII_5)); } inline int32_t get__highASCII_5() const { return ____highASCII_5; } inline int32_t* <API key>() { return &____highASCII_5; } inline void set__highASCII_5(int32_t value) { ____highASCII_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____rightToLeft_6)); } inline bool get__rightToLeft_6() const { return ____rightToLeft_6; } inline bool* <API key>() { return &____rightToLeft_6; } inline void set__rightToLeft_6(bool value) { ____rightToLeft_6 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____culture_8)); } inline <API key> * get__culture_8() const { return ____culture_8; } inline <API key> ** <API key>() { return &____culture_8; } inline void set__culture_8(<API key> * value) { ____culture_8 = value; <API key>((&____culture_8), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexCharClass struct <API key> : public RuntimeObject { public: // System.Collections.Generic.List`1<System.Text.RegularExpressions.RegexCharClass/SingleRange> System.Text.RegularExpressions.RegexCharClass::_rangelist List_1_t1270793844 * ____rangelist_0; // System.Text.StringBuilder System.Text.RegularExpressions.RegexCharClass::_categories StringBuilder_t * ____categories_1; // System.Boolean System.Text.RegularExpressions.RegexCharClass::_canonical bool ____canonical_2; // System.Boolean System.Text.RegularExpressions.RegexCharClass::_negate bool ____negate_3; // System.Text.RegularExpressions.RegexCharClass System.Text.RegularExpressions.RegexCharClass::_subtractor <API key> * ____subtractor_4; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____rangelist_0)); } inline List_1_t1270793844 * get__rangelist_0() const { return ____rangelist_0; } inline List_1_t1270793844 ** <API key>() { return &____rangelist_0; } inline void set__rangelist_0(List_1_t1270793844 * value) { ____rangelist_0 = value; <API key>((&____rangelist_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____categories_1)); } inline StringBuilder_t * get__categories_1() const { return ____categories_1; } inline StringBuilder_t ** <API key>() { return &____categories_1; } inline void set__categories_1(StringBuilder_t * value) { ____categories_1 = value; <API key>((&____categories_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____canonical_2)); } inline bool get__canonical_2() const { return ____canonical_2; } inline bool* <API key>() { return &____canonical_2; } inline void set__canonical_2(bool value) { ____canonical_2 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____negate_3)); } inline bool get__negate_3() const { return ____negate_3; } inline bool* <API key>() { return &____negate_3; } inline void set__negate_3(bool value) { ____negate_3 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____subtractor_4)); } inline <API key> * get__subtractor_4() const { return ____subtractor_4; } inline <API key> ** <API key>() { return &____subtractor_4; } inline void set__subtractor_4(<API key> * value) { ____subtractor_4 = value; <API key>((&____subtractor_4), value); } }; struct <API key> { public: // System.String System.Text.RegularExpressions.RegexCharClass::<API key> String_t* <API key>; // System.String System.Text.RegularExpressions.RegexCharClass::Space String_t* ___Space_6; // System.String System.Text.RegularExpressions.RegexCharClass::NotSpace String_t* ___NotSpace_7; // System.String System.Text.RegularExpressions.RegexCharClass::Word String_t* ___Word_8; // System.String System.Text.RegularExpressions.RegexCharClass::NotWord String_t* ___NotWord_9; // System.String System.Text.RegularExpressions.RegexCharClass::SpaceClass String_t* ___SpaceClass_10; // System.String System.Text.RegularExpressions.RegexCharClass::NotSpaceClass String_t* ___NotSpaceClass_11; // System.String System.Text.RegularExpressions.RegexCharClass::WordClass String_t* ___WordClass_12; // System.String System.Text.RegularExpressions.RegexCharClass::NotWordClass String_t* ___NotWordClass_13; // System.String System.Text.RegularExpressions.RegexCharClass::DigitClass String_t* ___DigitClass_14; // System.String System.Text.RegularExpressions.RegexCharClass::NotDigitClass String_t* ___NotDigitClass_15; // System.Collections.Generic.Dictionary`2<System.String,System.String> System.Text.RegularExpressions.RegexCharClass::_definedCategories <API key> * <API key>; // System.String[0...,0...] System.Text.RegularExpressions.RegexCharClass::_propTable <API key>* ____propTable_17; // System.Text.RegularExpressions.RegexCharClass/LowerCaseMapping[] System.Text.RegularExpressions.RegexCharClass::_lcTable <API key>* ____lcTable_18; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline String_t* <API key>() const { return <API key>; } inline String_t** <API key>() { return &<API key>; } inline void <API key>(String_t* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Space_6)); } inline String_t* get_Space_6() const { return ___Space_6; } inline String_t** <API key>() { return &___Space_6; } inline void set_Space_6(String_t* value) { ___Space_6 = value; <API key>((&___Space_6), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___NotSpace_7)); } inline String_t* get_NotSpace_7() const { return ___NotSpace_7; } inline String_t** <API key>() { return &___NotSpace_7; } inline void set_NotSpace_7(String_t* value) { ___NotSpace_7 = value; <API key>((&___NotSpace_7), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Word_8)); } inline String_t* get_Word_8() const { return ___Word_8; } inline String_t** <API key>() { return &___Word_8; } inline void set_Word_8(String_t* value) { ___Word_8 = value; <API key>((&___Word_8), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___NotWord_9)); } inline String_t* get_NotWord_9() const { return ___NotWord_9; } inline String_t** <API key>() { return &___NotWord_9; } inline void set_NotWord_9(String_t* value) { ___NotWord_9 = value; <API key>((&___NotWord_9), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___SpaceClass_10)); } inline String_t* get_SpaceClass_10() const { return ___SpaceClass_10; } inline String_t** <API key>() { return &___SpaceClass_10; } inline void set_SpaceClass_10(String_t* value) { ___SpaceClass_10 = value; <API key>((&___SpaceClass_10), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___NotSpaceClass_11)); } inline String_t* <API key>() const { return ___NotSpaceClass_11; } inline String_t** <API key>() { return &___NotSpaceClass_11; } inline void <API key>(String_t* value) { ___NotSpaceClass_11 = value; <API key>((&___NotSpaceClass_11), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___WordClass_12)); } inline String_t* get_WordClass_12() const { return ___WordClass_12; } inline String_t** <API key>() { return &___WordClass_12; } inline void set_WordClass_12(String_t* value) { ___WordClass_12 = value; <API key>((&___WordClass_12), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___NotWordClass_13)); } inline String_t* get_NotWordClass_13() const { return ___NotWordClass_13; } inline String_t** <API key>() { return &___NotWordClass_13; } inline void set_NotWordClass_13(String_t* value) { ___NotWordClass_13 = value; <API key>((&___NotWordClass_13), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___DigitClass_14)); } inline String_t* get_DigitClass_14() const { return ___DigitClass_14; } inline String_t** <API key>() { return &___DigitClass_14; } inline void set_DigitClass_14(String_t* value) { ___DigitClass_14 = value; <API key>((&___DigitClass_14), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___NotDigitClass_15)); } inline String_t* <API key>() const { return ___NotDigitClass_15; } inline String_t** <API key>() { return &___NotDigitClass_15; } inline void <API key>(String_t* value) { ___NotDigitClass_15 = value; <API key>((&___NotDigitClass_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propTable_17)); } inline <API key>* get__propTable_17() const { return ____propTable_17; } inline <API key>** <API key>() { return &____propTable_17; } inline void set__propTable_17(<API key>* value) { ____propTable_17 = value; <API key>((&____propTable_17), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____lcTable_18)); } inline <API key>* get__lcTable_18() const { return ____lcTable_18; } inline <API key>** <API key>() { return &____lcTable_18; } inline void set__lcTable_18(<API key>* value) { ____lcTable_18 = value; <API key>((&____lcTable_18), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexCharClass/SingleRange struct <API key> : public RuntimeObject { public: // System.Char System.Text.RegularExpressions.RegexCharClass/SingleRange::_first Il2CppChar ____first_0; // System.Char System.Text.RegularExpressions.RegexCharClass/SingleRange::_last Il2CppChar ____last_1; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____first_0)); } inline Il2CppChar get__first_0() const { return ____first_0; } inline Il2CppChar* <API key>() { return &____first_0; } inline void set__first_0(Il2CppChar value) { ____first_0 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____last_1)); } inline Il2CppChar get__last_1() const { return ____last_1; } inline Il2CppChar* <API key>() { return &____last_1; } inline void set__last_1(Il2CppChar value) { ____last_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexCharClass/SingleRangeComparer struct <API key> : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexCode struct <API key> : public RuntimeObject { public: // System.Int32[] System.Text.RegularExpressions.RegexCode::_codes <API key>* ____codes_48; // System.String[] System.Text.RegularExpressions.RegexCode::_strings <API key>* ____strings_49; // System.Int32 System.Text.RegularExpressions.RegexCode::_trackcount int32_t ____trackcount_50; // System.Collections.Hashtable System.Text.RegularExpressions.RegexCode::_caps <API key> * ____caps_51; // System.Int32 System.Text.RegularExpressions.RegexCode::_capsize int32_t ____capsize_52; // System.Text.RegularExpressions.RegexPrefix System.Text.RegularExpressions.RegexCode::_fcPrefix <API key> * ____fcPrefix_53; // System.Text.RegularExpressions.RegexBoyerMoore System.Text.RegularExpressions.RegexCode::_bmPrefix <API key> * ____bmPrefix_54; // System.Int32 System.Text.RegularExpressions.RegexCode::_anchors int32_t ____anchors_55; // System.Boolean System.Text.RegularExpressions.RegexCode::_rightToLeft bool ____rightToLeft_56; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____codes_48)); } inline <API key>* get__codes_48() const { return ____codes_48; } inline <API key>** <API key>() { return &____codes_48; } inline void set__codes_48(<API key>* value) { ____codes_48 = value; <API key>((&____codes_48), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____strings_49)); } inline <API key>* get__strings_49() const { return ____strings_49; } inline <API key>** <API key>() { return &____strings_49; } inline void set__strings_49(<API key>* value) { ____strings_49 = value; <API key>((&____strings_49), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____trackcount_50)); } inline int32_t get__trackcount_50() const { return ____trackcount_50; } inline int32_t* <API key>() { return &____trackcount_50; } inline void set__trackcount_50(int32_t value) { ____trackcount_50 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____caps_51)); } inline <API key> * get__caps_51() const { return ____caps_51; } inline <API key> ** <API key>() { return &____caps_51; } inline void set__caps_51(<API key> * value) { ____caps_51 = value; <API key>((&____caps_51), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capsize_52)); } inline int32_t get__capsize_52() const { return ____capsize_52; } inline int32_t* <API key>() { return &____capsize_52; } inline void set__capsize_52(int32_t value) { ____capsize_52 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____fcPrefix_53)); } inline <API key> * get__fcPrefix_53() const { return ____fcPrefix_53; } inline <API key> ** <API key>() { return &____fcPrefix_53; } inline void set__fcPrefix_53(<API key> * value) { ____fcPrefix_53 = value; <API key>((&____fcPrefix_53), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____bmPrefix_54)); } inline <API key> * get__bmPrefix_54() const { return ____bmPrefix_54; } inline <API key> ** <API key>() { return &____bmPrefix_54; } inline void set__bmPrefix_54(<API key> * value) { ____bmPrefix_54 = value; <API key>((&____bmPrefix_54), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____anchors_55)); } inline int32_t get__anchors_55() const { return ____anchors_55; } inline int32_t* <API key>() { return &____anchors_55; } inline void set__anchors_55(int32_t value) { ____anchors_55 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____rightToLeft_56)); } inline bool get__rightToLeft_56() const { return ____rightToLeft_56; } inline bool* <API key>() { return &____rightToLeft_56; } inline void set__rightToLeft_56(bool value) { ____rightToLeft_56 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexFC struct RegexFC_t4283085439 : public RuntimeObject { public: // System.Text.RegularExpressions.RegexCharClass System.Text.RegularExpressions.RegexFC::_cc <API key> * ____cc_0; // System.Boolean System.Text.RegularExpressions.RegexFC::_nullable bool ____nullable_1; // System.Boolean System.Text.RegularExpressions.RegexFC::_caseInsensitive bool <API key>; public: inline static int32_t get_offset_of__cc_0() { return static_cast<int32_t>(offsetof(RegexFC_t4283085439, ____cc_0)); } inline <API key> * get__cc_0() const { return ____cc_0; } inline <API key> ** <API key>() { return &____cc_0; } inline void set__cc_0(<API key> * value) { ____cc_0 = value; <API key>((&____cc_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(RegexFC_t4283085439, ____nullable_1)); } inline bool get__nullable_1() const { return ____nullable_1; } inline bool* <API key>() { return &____nullable_1; } inline void set__nullable_1(bool value) { ____nullable_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(RegexFC_t4283085439, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexFCD struct <API key> : public RuntimeObject { public: // System.Int32[] System.Text.RegularExpressions.RegexFCD::_intStack <API key>* ____intStack_0; // System.Int32 System.Text.RegularExpressions.RegexFCD::_intDepth int32_t ____intDepth_1; // System.Text.RegularExpressions.RegexFC[] System.Text.RegularExpressions.RegexFCD::_fcStack <API key>* ____fcStack_2; // System.Int32 System.Text.RegularExpressions.RegexFCD::_fcDepth int32_t ____fcDepth_3; // System.Boolean System.Text.RegularExpressions.RegexFCD::_skipAllChildren bool <API key>; // System.Boolean System.Text.RegularExpressions.RegexFCD::_skipchild bool ____skipchild_5; // System.Boolean System.Text.RegularExpressions.RegexFCD::_failed bool ____failed_6; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____intStack_0)); } inline <API key>* get__intStack_0() const { return ____intStack_0; } inline <API key>** <API key>() { return &____intStack_0; } inline void set__intStack_0(<API key>* value) { ____intStack_0 = value; <API key>((&____intStack_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____intDepth_1)); } inline int32_t get__intDepth_1() const { return ____intDepth_1; } inline int32_t* <API key>() { return &____intDepth_1; } inline void set__intDepth_1(int32_t value) { ____intDepth_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____fcStack_2)); } inline <API key>* get__fcStack_2() const { return ____fcStack_2; } inline <API key>** <API key>() { return &____fcStack_2; } inline void set__fcStack_2(<API key>* value) { ____fcStack_2 = value; <API key>((&____fcStack_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____fcDepth_3)); } inline int32_t get__fcDepth_3() const { return ____fcDepth_3; } inline int32_t* <API key>() { return &____fcDepth_3; } inline void set__fcDepth_3(int32_t value) { ____fcDepth_3 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____skipchild_5)); } inline bool get__skipchild_5() const { return ____skipchild_5; } inline bool* <API key>() { return &____skipchild_5; } inline void set__skipchild_5(bool value) { ____skipchild_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____failed_6)); } inline bool get__failed_6() const { return ____failed_6; } inline bool* <API key>() { return &____failed_6; } inline void set__failed_6(bool value) { ____failed_6 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexPrefix struct <API key> : public RuntimeObject { public: // System.String System.Text.RegularExpressions.RegexPrefix::_prefix String_t* ____prefix_0; // System.Boolean System.Text.RegularExpressions.RegexPrefix::_caseInsensitive bool <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____prefix_0)); } inline String_t* get__prefix_0() const { return ____prefix_0; } inline String_t** <API key>() { return &____prefix_0; } inline void set__prefix_0(String_t* value) { ____prefix_0 = value; <API key>((&____prefix_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; struct <API key> { public: // System.Text.RegularExpressions.RegexPrefix System.Text.RegularExpressions.RegexPrefix::_empty <API key> * ____empty_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____empty_2)); } inline <API key> * get__empty_2() const { return ____empty_2; } inline <API key> ** <API key>() { return &____empty_2; } inline void set__empty_2(<API key> * value) { ____empty_2 = value; <API key>((&____empty_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexRunner struct <API key> : public RuntimeObject { public: // System.Int32 System.Text.RegularExpressions.RegexRunner::runtextbeg int32_t ___runtextbeg_0; // System.Int32 System.Text.RegularExpressions.RegexRunner::runtextend int32_t ___runtextend_1; // System.Int32 System.Text.RegularExpressions.RegexRunner::runtextstart int32_t ___runtextstart_2; // System.String System.Text.RegularExpressions.RegexRunner::runtext String_t* ___runtext_3; // System.Int32 System.Text.RegularExpressions.RegexRunner::runtextpos int32_t ___runtextpos_4; // System.Int32[] System.Text.RegularExpressions.RegexRunner::runtrack <API key>* ___runtrack_5; // System.Int32 System.Text.RegularExpressions.RegexRunner::runtrackpos int32_t ___runtrackpos_6; // System.Int32[] System.Text.RegularExpressions.RegexRunner::runstack <API key>* ___runstack_7; // System.Int32 System.Text.RegularExpressions.RegexRunner::runstackpos int32_t ___runstackpos_8; // System.Int32[] System.Text.RegularExpressions.RegexRunner::runcrawl <API key>* ___runcrawl_9; // System.Int32 System.Text.RegularExpressions.RegexRunner::runcrawlpos int32_t ___runcrawlpos_10; // System.Int32 System.Text.RegularExpressions.RegexRunner::runtrackcount int32_t ___runtrackcount_11; // System.Text.RegularExpressions.Match System.Text.RegularExpressions.RegexRunner::runmatch Match_t3408321083 * ___runmatch_12; // System.Text.RegularExpressions.Regex System.Text.RegularExpressions.RegexRunner::runregex Regex_t3657309853 * ___runregex_13; // System.Int32 System.Text.RegularExpressions.RegexRunner::timeout int32_t ___timeout_14; // System.Boolean System.Text.RegularExpressions.RegexRunner::ignoreTimeout bool ___ignoreTimeout_15; // System.Int32 System.Text.RegularExpressions.RegexRunner::timeoutOccursAt int32_t <API key>; // System.Int32 System.Text.RegularExpressions.RegexRunner::timeoutChecksToSkip int32_t <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runtextbeg_0)); } inline int32_t get_runtextbeg_0() const { return ___runtextbeg_0; } inline int32_t* <API key>() { return &___runtextbeg_0; } inline void set_runtextbeg_0(int32_t value) { ___runtextbeg_0 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runtextend_1)); } inline int32_t get_runtextend_1() const { return ___runtextend_1; } inline int32_t* <API key>() { return &___runtextend_1; } inline void set_runtextend_1(int32_t value) { ___runtextend_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runtextstart_2)); } inline int32_t get_runtextstart_2() const { return ___runtextstart_2; } inline int32_t* <API key>() { return &___runtextstart_2; } inline void set_runtextstart_2(int32_t value) { ___runtextstart_2 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runtext_3)); } inline String_t* get_runtext_3() const { return ___runtext_3; } inline String_t** <API key>() { return &___runtext_3; } inline void set_runtext_3(String_t* value) { ___runtext_3 = value; <API key>((&___runtext_3), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runtextpos_4)); } inline int32_t get_runtextpos_4() const { return ___runtextpos_4; } inline int32_t* <API key>() { return &___runtextpos_4; } inline void set_runtextpos_4(int32_t value) { ___runtextpos_4 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runtrack_5)); } inline <API key>* get_runtrack_5() const { return ___runtrack_5; } inline <API key>** <API key>() { return &___runtrack_5; } inline void set_runtrack_5(<API key>* value) { ___runtrack_5 = value; <API key>((&___runtrack_5), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runtrackpos_6)); } inline int32_t get_runtrackpos_6() const { return ___runtrackpos_6; } inline int32_t* <API key>() { return &___runtrackpos_6; } inline void set_runtrackpos_6(int32_t value) { ___runtrackpos_6 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runstack_7)); } inline <API key>* get_runstack_7() const { return ___runstack_7; } inline <API key>** <API key>() { return &___runstack_7; } inline void set_runstack_7(<API key>* value) { ___runstack_7 = value; <API key>((&___runstack_7), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runstackpos_8)); } inline int32_t get_runstackpos_8() const { return ___runstackpos_8; } inline int32_t* <API key>() { return &___runstackpos_8; } inline void set_runstackpos_8(int32_t value) { ___runstackpos_8 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runcrawl_9)); } inline <API key>* get_runcrawl_9() const { return ___runcrawl_9; } inline <API key>** <API key>() { return &___runcrawl_9; } inline void set_runcrawl_9(<API key>* value) { ___runcrawl_9 = value; <API key>((&___runcrawl_9), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runcrawlpos_10)); } inline int32_t get_runcrawlpos_10() const { return ___runcrawlpos_10; } inline int32_t* <API key>() { return &___runcrawlpos_10; } inline void set_runcrawlpos_10(int32_t value) { ___runcrawlpos_10 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runtrackcount_11)); } inline int32_t <API key>() const { return ___runtrackcount_11; } inline int32_t* <API key>() { return &___runtrackcount_11; } inline void <API key>(int32_t value) { ___runtrackcount_11 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runmatch_12)); } inline Match_t3408321083 * get_runmatch_12() const { return ___runmatch_12; } inline Match_t3408321083 ** <API key>() { return &___runmatch_12; } inline void set_runmatch_12(Match_t3408321083 * value) { ___runmatch_12 = value; <API key>((&___runmatch_12), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runregex_13)); } inline Regex_t3657309853 * get_runregex_13() const { return ___runregex_13; } inline Regex_t3657309853 ** <API key>() { return &___runregex_13; } inline void set_runregex_13(Regex_t3657309853 * value) { ___runregex_13 = value; <API key>((&___runregex_13), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___timeout_14)); } inline int32_t get_timeout_14() const { return ___timeout_14; } inline int32_t* <API key>() { return &___timeout_14; } inline void set_timeout_14(int32_t value) { ___timeout_14 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___ignoreTimeout_15)); } inline bool <API key>() const { return ___ignoreTimeout_15; } inline bool* <API key>() { return &___ignoreTimeout_15; } inline void <API key>(bool value) { ___ignoreTimeout_15 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline int32_t <API key>() const { return <API key>; } inline int32_t* <API key>() { return &<API key>; } inline void <API key>(int32_t value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline int32_t <API key>() const { return <API key>; } inline int32_t* <API key>() { return &<API key>; } inline void <API key>(int32_t value) { <API key> = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexRunnerFactory struct <API key> : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexWriter struct <API key> : public RuntimeObject { public: // System.Int32[] System.Text.RegularExpressions.RegexWriter::_intStack <API key>* ____intStack_0; // System.Int32 System.Text.RegularExpressions.RegexWriter::_depth int32_t ____depth_1; // System.Int32[] System.Text.RegularExpressions.RegexWriter::_emitted <API key>* ____emitted_2; // System.Int32 System.Text.RegularExpressions.RegexWriter::_curpos int32_t ____curpos_3; // System.Collections.Generic.Dictionary`2<System.String,System.Int32> System.Text.RegularExpressions.RegexWriter::_stringhash <API key> * ____stringhash_4; // System.Collections.Generic.List`1<System.String> System.Text.RegularExpressions.RegexWriter::_stringtable List_1_t3319525431 * ____stringtable_5; // System.Boolean System.Text.RegularExpressions.RegexWriter::_counting bool ____counting_6; // System.Int32 System.Text.RegularExpressions.RegexWriter::_count int32_t ____count_7; // System.Int32 System.Text.RegularExpressions.RegexWriter::_trackcount int32_t ____trackcount_8; // System.Collections.Hashtable System.Text.RegularExpressions.RegexWriter::_caps <API key> * ____caps_9; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____intStack_0)); } inline <API key>* get__intStack_0() const { return ____intStack_0; } inline <API key>** <API key>() { return &____intStack_0; } inline void set__intStack_0(<API key>* value) { ____intStack_0 = value; <API key>((&____intStack_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____depth_1)); } inline int32_t get__depth_1() const { return ____depth_1; } inline int32_t* <API key>() { return &____depth_1; } inline void set__depth_1(int32_t value) { ____depth_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____emitted_2)); } inline <API key>* get__emitted_2() const { return ____emitted_2; } inline <API key>** <API key>() { return &____emitted_2; } inline void set__emitted_2(<API key>* value) { ____emitted_2 = value; <API key>((&____emitted_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____curpos_3)); } inline int32_t get__curpos_3() const { return ____curpos_3; } inline int32_t* <API key>() { return &____curpos_3; } inline void set__curpos_3(int32_t value) { ____curpos_3 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____stringhash_4)); } inline <API key> * get__stringhash_4() const { return ____stringhash_4; } inline <API key> ** <API key>() { return &____stringhash_4; } inline void set__stringhash_4(<API key> * value) { ____stringhash_4 = value; <API key>((&____stringhash_4), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____stringtable_5)); } inline List_1_t3319525431 * get__stringtable_5() const { return ____stringtable_5; } inline List_1_t3319525431 ** <API key>() { return &____stringtable_5; } inline void set__stringtable_5(List_1_t3319525431 * value) { ____stringtable_5 = value; <API key>((&____stringtable_5), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____counting_6)); } inline bool get__counting_6() const { return ____counting_6; } inline bool* <API key>() { return &____counting_6; } inline void set__counting_6(bool value) { ____counting_6 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____count_7)); } inline int32_t get__count_7() const { return ____count_7; } inline int32_t* <API key>() { return &____count_7; } inline void set__count_7(int32_t value) { ____count_7 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____trackcount_8)); } inline int32_t get__trackcount_8() const { return ____trackcount_8; } inline int32_t* <API key>() { return &____trackcount_8; } inline void set__trackcount_8(int32_t value) { ____trackcount_8 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____caps_9)); } inline <API key> * get__caps_9() const { return ____caps_9; } inline <API key> ** <API key>() { return &____caps_9; } inline void set__caps_9(<API key> * value) { ____caps_9 = value; <API key>((&____caps_9), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ValueType struct <API key> : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.ValueType struct <API key> { }; // Native definition for COM marshalling of System.ValueType struct <API key> { }; #endif // <API key> #ifndef BOOLEAN_T97287965_H #define BOOLEAN_T97287965_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Boolean struct Boolean_t97287965 { public: // System.Boolean System.Boolean::m_value bool ___m_value_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Boolean_t97287965, ___m_value_0)); } inline bool get_m_value_0() const { return ___m_value_0; } inline bool* <API key>() { return &___m_value_0; } inline void set_m_value_0(bool value) { ___m_value_0 = value; } }; struct <API key> { public: // System.String System.Boolean::TrueString String_t* ___TrueString_5; // System.String System.Boolean::FalseString String_t* ___FalseString_6; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___TrueString_5)); } inline String_t* get_TrueString_5() const { return ___TrueString_5; } inline String_t** <API key>() { return &___TrueString_5; } inline void set_TrueString_5(String_t* value) { ___TrueString_5 = value; <API key>((&___TrueString_5), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___FalseString_6)); } inline String_t* get_FalseString_6() const { return ___FalseString_6; } inline String_t** <API key>() { return &___FalseString_6; } inline void set_FalseString_6(String_t* value) { ___FalseString_6 = value; <API key>((&___FalseString_6), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BOOLEAN_T97287965_H #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.AttributeCollection/AttributeEntry struct <API key> { public: // System.Type System.ComponentModel.AttributeCollection/AttributeEntry::type Type_t * ___type_0; // System.Int32 System.ComponentModel.AttributeCollection/AttributeEntry::index int32_t ___index_1; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___type_0)); } inline Type_t * get_type_0() const { return ___type_0; } inline Type_t ** <API key>() { return &___type_0; } inline void set_type_0(Type_t * value) { ___type_0 = value; <API key>((&___type_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___index_1)); } inline int32_t get_index_1() const { return ___index_1; } inline int32_t* <API key>() { return &___index_1; } inline void set_index_1(int32_t value) { ___index_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.ComponentModel.AttributeCollection/AttributeEntry struct <API key> { Type_t * ___type_0; int32_t ___index_1; }; // Native definition for COM marshalling of System.ComponentModel.AttributeCollection/AttributeEntry struct <API key> { Type_t * ___type_0; int32_t ___index_1; }; #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.BrowsableAttribute struct <API key> : public <API key> { public: // System.Boolean System.ComponentModel.BrowsableAttribute::browsable bool ___browsable_3; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___browsable_3)); } inline bool get_browsable_3() const { return ___browsable_3; } inline bool* <API key>() { return &___browsable_3; } inline void set_browsable_3(bool value) { ___browsable_3 = value; } }; struct <API key> { public: // System.ComponentModel.BrowsableAttribute System.ComponentModel.BrowsableAttribute::Yes <API key> * ___Yes_0; // System.ComponentModel.BrowsableAttribute System.ComponentModel.BrowsableAttribute::No <API key> * ___No_1; // System.ComponentModel.BrowsableAttribute System.ComponentModel.BrowsableAttribute::Default <API key> * ___Default_2; public: inline static int32_t get_offset_of_Yes_0() { return static_cast<int32_t>(offsetof(<API key>, ___Yes_0)); } inline <API key> * get_Yes_0() const { return ___Yes_0; } inline <API key> ** <API key>() { return &___Yes_0; } inline void set_Yes_0(<API key> * value) { ___Yes_0 = value; <API key>((&___Yes_0), value); } inline static int32_t get_offset_of_No_1() { return static_cast<int32_t>(offsetof(<API key>, ___No_1)); } inline <API key> * get_No_1() const { return ___No_1; } inline <API key> ** get_address_of_No_1() { return &___No_1; } inline void set_No_1(<API key> * value) { ___No_1 = value; <API key>((&___No_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Default_2)); } inline <API key> * get_Default_2() const { return ___Default_2; } inline <API key> ** <API key>() { return &___Default_2; } inline void set_Default_2(<API key> * value) { ___Default_2 = value; <API key>((&___Default_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.Component struct <API key> : public <API key> { public: // System.ComponentModel.ISite System.ComponentModel.Component::site RuntimeObject* ___site_2; // System.ComponentModel.EventHandlerList System.ComponentModel.Component::events <API key> * ___events_3; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___site_2)); } inline RuntimeObject* get_site_2() const { return ___site_2; } inline RuntimeObject** <API key>() { return &___site_2; } inline void set_site_2(RuntimeObject* value) { ___site_2 = value; <API key>((&___site_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___events_3)); } inline <API key> * get_events_3() const { return ___events_3; } inline <API key> ** <API key>() { return &___events_3; } inline void set_events_3(<API key> * value) { ___events_3 = value; <API key>((&___events_3), value); } }; struct <API key> { public: // System.Object System.ComponentModel.Component::EventDisposed RuntimeObject * ___EventDisposed_1; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___EventDisposed_1)); } inline RuntimeObject * get_EventDisposed_1() const { return ___EventDisposed_1; } inline RuntimeObject ** <API key>() { return &___EventDisposed_1; } inline void set_EventDisposed_1(RuntimeObject * value) { ___EventDisposed_1 = value; <API key>((&___EventDisposed_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.ComponentCollection struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.<API key> struct <API key> : public <API key> { public: // System.String System.ComponentModel.<API key>::description String_t* ___description_1; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___description_1)); } inline String_t* get_description_1() const { return ___description_1; } inline String_t** <API key>() { return &___description_1; } inline void set_description_1(String_t* value) { ___description_1 = value; <API key>((&___description_1), value); } }; struct <API key> { public: // System.ComponentModel.<API key> System.ComponentModel.<API key>::Default <API key> * ___Default_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Default_0)); } inline <API key> * get_Default_0() const { return ___Default_0; } inline <API key> ** <API key>() { return &___Default_0; } inline void set_Default_0(<API key> * value) { ___Default_0 = value; <API key>((&___Default_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Configuration.<API key> struct <API key> : public <API key> { public: // System.Collections.ArrayList System.Configuration.<API key>::list <API key> * ___list_15; // System.Collections.ArrayList System.Configuration.<API key>::removed <API key> * ___removed_16; // System.Collections.ArrayList System.Configuration.<API key>::inherited <API key> * ___inherited_17; // System.Boolean System.Configuration.<API key>::emitClear bool ___emitClear_18; // System.Boolean System.Configuration.<API key>::modified bool ___modified_19; // System.Collections.IComparer System.Configuration.<API key>::comparer RuntimeObject* ___comparer_20; // System.Int32 System.Configuration.<API key>::inheritedLimitIndex int32_t <API key>; // System.String System.Configuration.<API key>::addElementName String_t* <API key>; // System.String System.Configuration.<API key>::clearElementName String_t* <API key>; // System.String System.Configuration.<API key>::removeElementName String_t* <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___list_15)); } inline <API key> * get_list_15() const { return ___list_15; } inline <API key> ** <API key>() { return &___list_15; } inline void set_list_15(<API key> * value) { ___list_15 = value; <API key>((&___list_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___removed_16)); } inline <API key> * get_removed_16() const { return ___removed_16; } inline <API key> ** <API key>() { return &___removed_16; } inline void set_removed_16(<API key> * value) { ___removed_16 = value; <API key>((&___removed_16), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___inherited_17)); } inline <API key> * get_inherited_17() const { return ___inherited_17; } inline <API key> ** <API key>() { return &___inherited_17; } inline void set_inherited_17(<API key> * value) { ___inherited_17 = value; <API key>((&___inherited_17), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___emitClear_18)); } inline bool get_emitClear_18() const { return ___emitClear_18; } inline bool* <API key>() { return &___emitClear_18; } inline void set_emitClear_18(bool value) { ___emitClear_18 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___modified_19)); } inline bool get_modified_19() const { return ___modified_19; } inline bool* <API key>() { return &___modified_19; } inline void set_modified_19(bool value) { ___modified_19 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___comparer_20)); } inline RuntimeObject* get_comparer_20() const { return ___comparer_20; } inline RuntimeObject** <API key>() { return &___comparer_20; } inline void set_comparer_20(RuntimeObject* value) { ___comparer_20 = value; <API key>((&___comparer_20), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline int32_t <API key>() const { return <API key>; } inline int32_t* <API key>() { return &<API key>; } inline void <API key>(int32_t value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline String_t* <API key>() const { return <API key>; } inline String_t** <API key>() { return &<API key>; } inline void <API key>(String_t* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline String_t* <API key>() const { return <API key>; } inline String_t** <API key>() { return &<API key>; } inline void <API key>(String_t* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline String_t* <API key>() const { return <API key>; } inline String_t** <API key>() { return &<API key>; } inline void <API key>(String_t* value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Configuration.<API key> struct <API key> : public <API key> { public: // System.Configuration.SectionInformation System.Configuration.<API key>::sectionInformation <API key> * <API key>; // System.Configuration.<API key> System.Configuration.<API key>::section_handler RuntimeObject* <API key>; // System.String System.Configuration.<API key>::externalDataXml String_t* <API key>; // System.Object System.Configuration.<API key>::_configContext RuntimeObject * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline RuntimeObject* <API key>() const { return <API key>; } inline RuntimeObject** <API key>() { return &<API key>; } inline void <API key>(RuntimeObject* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline String_t* <API key>() const { return <API key>; } inline String_t** <API key>() { return &<API key>; } inline void <API key>(String_t* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline RuntimeObject * <API key>() const { return <API key>; } inline RuntimeObject ** <API key>() { return &<API key>; } inline void <API key>(RuntimeObject * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.AssertSection struct <API key> : public <API key> { public: public: }; struct <API key> { public: // System.Configuration.<API key> System.Diagnostics.AssertSection::_properties <API key> * ____properties_15; // System.Configuration.<API key> System.Diagnostics.AssertSection::<API key> <API key> * <API key>; // System.Configuration.<API key> System.Diagnostics.AssertSection::_propLogFile <API key> * ____propLogFile_17; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____properties_15)); } inline <API key> * get__properties_15() const { return ____properties_15; } inline <API key> ** <API key>() { return &____properties_15; } inline void set__properties_15(<API key> * value) { ____properties_15 = value; <API key>((&____properties_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propLogFile_17)); } inline <API key> * get__propLogFile_17() const { return ____propLogFile_17; } inline <API key> ** <API key>() { return &____propLogFile_17; } inline void set__propLogFile_17(<API key> * value) { ____propLogFile_17 = value; <API key>((&____propLogFile_17), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.BooleanSwitch struct <API key> : public Switch_t4228844028 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.CodeAnalysis.<API key> struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.PerfCounterSection struct <API key> : public <API key> { public: public: }; struct <API key> { public: // System.Configuration.<API key> System.Diagnostics.PerfCounterSection::_properties <API key> * ____properties_15; // System.Configuration.<API key> System.Diagnostics.PerfCounterSection::<API key> <API key> * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____properties_15)); } inline <API key> * get__properties_15() const { return ____properties_15; } inline <API key> ** <API key>() { return &____properties_15; } inline void set__properties_15(<API key> * value) { ____properties_15 = value; <API key>((&____properties_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.SourceElement struct <API key> : public <API key> { public: // System.Collections.Hashtable System.Diagnostics.SourceElement::_attributes <API key> * ____attributes_21; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____attributes_21)); } inline <API key> * get__attributes_21() const { return ____attributes_21; } inline <API key> ** <API key>() { return &____attributes_21; } inline void set__attributes_21(<API key> * value) { ____attributes_21 = value; <API key>((&____attributes_21), value); } }; struct <API key> { public: // System.Configuration.<API key> System.Diagnostics.SourceElement::_properties <API key> * ____properties_15; // System.Configuration.<API key> System.Diagnostics.SourceElement::_propName <API key> * ____propName_16; // System.Configuration.<API key> System.Diagnostics.SourceElement::_propSwitchName <API key> * <API key>; // System.Configuration.<API key> System.Diagnostics.SourceElement::_propSwitchValue <API key> * <API key>; // System.Configuration.<API key> System.Diagnostics.SourceElement::_propSwitchType <API key> * <API key>; // System.Configuration.<API key> System.Diagnostics.SourceElement::_propListeners <API key> * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____properties_15)); } inline <API key> * get__properties_15() const { return ____properties_15; } inline <API key> ** <API key>() { return &____properties_15; } inline void set__properties_15(<API key> * value) { ____properties_15 = value; <API key>((&____properties_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propName_16)); } inline <API key> * get__propName_16() const { return ____propName_16; } inline <API key> ** <API key>() { return &____propName_16; } inline void set__propName_16(<API key> * value) { ____propName_16 = value; <API key>((&____propName_16), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.SwitchElement struct <API key> : public <API key> { public: // System.Collections.Hashtable System.Diagnostics.SwitchElement::_attributes <API key> * ____attributes_18; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____attributes_18)); } inline <API key> * get__attributes_18() const { return ____attributes_18; } inline <API key> ** <API key>() { return &____attributes_18; } inline void set__attributes_18(<API key> * value) { ____attributes_18 = value; <API key>((&____attributes_18), value); } }; struct <API key> { public: // System.Configuration.<API key> System.Diagnostics.SwitchElement::_properties <API key> * ____properties_15; // System.Configuration.<API key> System.Diagnostics.SwitchElement::_propName <API key> * ____propName_16; // System.Configuration.<API key> System.Diagnostics.SwitchElement::_propValue <API key> * ____propValue_17; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____properties_15)); } inline <API key> * get__properties_15() const { return ____properties_15; } inline <API key> ** <API key>() { return &____properties_15; } inline void set__properties_15(<API key> * value) { ____properties_15 = value; <API key>((&____properties_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propName_16)); } inline <API key> * get__propName_16() const { return ____propName_16; } inline <API key> ** <API key>() { return &____propName_16; } inline void set__propName_16(<API key> * value) { ____propName_16 = value; <API key>((&____propName_16), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propValue_17)); } inline <API key> * get__propValue_17() const { return ____propValue_17; } inline <API key> ** <API key>() { return &____propValue_17; } inline void set__propValue_17(<API key> * value) { ____propValue_17 = value; <API key>((&____propValue_17), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: // System.Type System.Diagnostics.<API key>::type Type_t * ___type_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___type_0)); } inline Type_t * get_type_0() const { return ___type_0; } inline Type_t ** <API key>() { return &___type_0; } inline void set_type_0(Type_t * value) { ___type_0 = value; <API key>((&___type_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.TraceSection struct <API key> : public <API key> { public: public: }; struct <API key> { public: // System.Configuration.<API key> System.Diagnostics.TraceSection::_properties <API key> * ____properties_15; // System.Configuration.<API key> System.Diagnostics.TraceSection::_propListeners <API key> * <API key>; // System.Configuration.<API key> System.Diagnostics.TraceSection::_propAutoFlush <API key> * <API key>; // System.Configuration.<API key> System.Diagnostics.TraceSection::_propIndentSize <API key> * <API key>; // System.Configuration.<API key> System.Diagnostics.TraceSection::_propUseGlobalLock <API key> * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____properties_15)); } inline <API key> * get__properties_15() const { return ____properties_15; } inline <API key> ** <API key>() { return &____properties_15; } inline void set__properties_15(<API key> * value) { ____properties_15 = value; <API key>((&____properties_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.TypedElement struct <API key> : public <API key> { public: // System.Configuration.<API key> System.Diagnostics.TypedElement::_properties <API key> * ____properties_17; // System.Object System.Diagnostics.TypedElement::_runtimeObject RuntimeObject * <API key>; // System.Type System.Diagnostics.TypedElement::_baseType Type_t * ____baseType_19; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____properties_17)); } inline <API key> * get__properties_17() const { return ____properties_17; } inline <API key> ** <API key>() { return &____properties_17; } inline void set__properties_17(<API key> * value) { ____properties_17 = value; <API key>((&____properties_17), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline RuntimeObject * <API key>() const { return <API key>; } inline RuntimeObject ** <API key>() { return &<API key>; } inline void <API key>(RuntimeObject * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____baseType_19)); } inline Type_t * get__baseType_19() const { return ____baseType_19; } inline Type_t ** <API key>() { return &____baseType_19; } inline void set__baseType_19(Type_t * value) { ____baseType_19 = value; <API key>((&____baseType_19), value); } }; struct <API key> { public: // System.Configuration.<API key> System.Diagnostics.TypedElement::_propTypeName <API key> * ____propTypeName_15; // System.Configuration.<API key> System.Diagnostics.TypedElement::_propInitData <API key> * ____propInitData_16; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propTypeName_15)); } inline <API key> * <API key>() const { return ____propTypeName_15; } inline <API key> ** <API key>() { return &____propTypeName_15; } inline void <API key>(<API key> * value) { ____propTypeName_15 = value; <API key>((&____propTypeName_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propInitData_16)); } inline <API key> * <API key>() const { return ____propInitData_16; } inline <API key> ** <API key>() { return &____propInitData_16; } inline void <API key>(<API key> * value) { ____propInitData_16 = value; <API key>((&____propInitData_16), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef ENUM_T4135868527_H #define ENUM_T4135868527_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Enum struct Enum_t4135868527 : public <API key> { public: public: }; struct <API key> { public: // System.Char[] System.Enum::<API key> <API key>* <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key>* <API key>() const { return <API key>; } inline <API key>** <API key>() { return &<API key>; } inline void <API key>(<API key>* value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Enum struct <API key> { }; // Native definition for COM marshalling of System.Enum struct <API key> { }; #endif // ENUM_T4135868527_H #ifndef INT32_T2950945753_H #define INT32_T2950945753_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Int32 struct Int32_t2950945753 { public: // System.Int32 System.Int32::m_value int32_t ___m_value_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Int32_t2950945753, ___m_value_0)); } inline int32_t get_m_value_0() const { return ___m_value_0; } inline int32_t* <API key>() { return &___m_value_0; } inline void set_m_value_0(int32_t value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INT32_T2950945753_H #ifndef INTPTR_T_H #define INTPTR_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.IntPtr struct IntPtr_t { public: // System.Void* System.IntPtr::m_value void* ___m_value_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); } inline void* get_m_value_0() const { return ___m_value_0; } inline void** <API key>() { return &___m_value_0; } inline void set_m_value_0(void* value) { ___m_value_0 = value; } }; struct <API key> { public: // System.IntPtr System.IntPtr::Zero intptr_t ___Zero_1; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Zero_1)); } inline intptr_t get_Zero_1() const { return ___Zero_1; } inline intptr_t* <API key>() { return &___Zero_1; } inline void set_Zero_1(intptr_t value) { ___Zero_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INTPTR_T_H #ifndef LABEL_T2281661643_H #define LABEL_T2281661643_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Reflection.Emit.Label struct Label_t2281661643 { public: // System.Int32 System.Reflection.Emit.Label::label int32_t ___label_0; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Label_t2281661643, ___label_0)); } inline int32_t get_label_0() const { return ___label_0; } inline int32_t* <API key>() { return &___label_0; } inline void set_label_0(int32_t value) { ___label_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LABEL_T2281661643_H #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.SystemException struct <API key> : public Exception_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.CompiledRegexRunner struct <API key> : public <API key> { public: // System.Text.RegularExpressions.NoParamDelegate System.Text.RegularExpressions.CompiledRegexRunner::goMethod <API key> * ___goMethod_19; // System.Text.RegularExpressions.<API key> System.Text.RegularExpressions.CompiledRegexRunner::findFirstCharMethod <API key> * <API key>; // System.Text.RegularExpressions.NoParamDelegate System.Text.RegularExpressions.CompiledRegexRunner::<API key> <API key> * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___goMethod_19)); } inline <API key> * get_goMethod_19() const { return ___goMethod_19; } inline <API key> ** <API key>() { return &___goMethod_19; } inline void set_goMethod_19(<API key> * value) { ___goMethod_19 = value; <API key>((&___goMethod_19), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.<API key> struct <API key> : public <API key> { public: // System.Reflection.Emit.DynamicMethod System.Text.RegularExpressions.<API key>::goMethod <API key> * ___goMethod_0; // System.Reflection.Emit.DynamicMethod System.Text.RegularExpressions.<API key>::findFirstCharMethod <API key> * <API key>; // System.Reflection.Emit.DynamicMethod System.Text.RegularExpressions.<API key>::<API key> <API key> * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___goMethod_0)); } inline <API key> * get_goMethod_0() const { return ___goMethod_0; } inline <API key> ** <API key>() { return &___goMethod_0; } inline void set_goMethod_0(<API key> * value) { ___goMethod_0 = value; <API key>((&___goMethod_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef GROUP_T2468205786_H #define GROUP_T2468205786_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.Group struct Group_t2468205786 : public Capture_t2232016050 { public: // System.Int32[] System.Text.RegularExpressions.Group::_caps <API key>* ____caps_4; // System.Int32 System.Text.RegularExpressions.Group::_capcount int32_t ____capcount_5; // System.Text.RegularExpressions.CaptureCollection System.Text.RegularExpressions.Group::_capcoll <API key> * ____capcoll_6; // System.String System.Text.RegularExpressions.Group::_name String_t* ____name_7; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Group_t2468205786, ____caps_4)); } inline <API key>* get__caps_4() const { return ____caps_4; } inline <API key>** <API key>() { return &____caps_4; } inline void set__caps_4(<API key>* value) { ____caps_4 = value; <API key>((&____caps_4), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Group_t2468205786, ____capcount_5)); } inline int32_t get__capcount_5() const { return ____capcount_5; } inline int32_t* <API key>() { return &____capcount_5; } inline void set__capcount_5(int32_t value) { ____capcount_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Group_t2468205786, ____capcoll_6)); } inline <API key> * get__capcoll_6() const { return ____capcoll_6; } inline <API key> ** <API key>() { return &____capcoll_6; } inline void set__capcoll_6(<API key> * value) { ____capcoll_6 = value; <API key>((&____capcoll_6), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Group_t2468205786, ____name_7)); } inline String_t* get__name_7() const { return ____name_7; } inline String_t** <API key>() { return &____name_7; } inline void set__name_7(String_t* value) { ____name_7 = value; <API key>((&____name_7), value); } }; struct <API key> { public: // System.Text.RegularExpressions.Group System.Text.RegularExpressions.Group::_emptygroup Group_t2468205786 * ____emptygroup_3; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____emptygroup_3)); } inline Group_t2468205786 * get__emptygroup_3() const { return ____emptygroup_3; } inline Group_t2468205786 ** <API key>() { return &____emptygroup_3; } inline void set__emptygroup_3(Group_t2468205786 * value) { ____emptygroup_3 = value; <API key>((&____emptygroup_3), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GROUP_T2468205786_H #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexCharClass/LowerCaseMapping struct <API key> { public: // System.Char System.Text.RegularExpressions.RegexCharClass/LowerCaseMapping::_chMin Il2CppChar ____chMin_0; // System.Char System.Text.RegularExpressions.RegexCharClass/LowerCaseMapping::_chMax Il2CppChar ____chMax_1; // System.Int32 System.Text.RegularExpressions.RegexCharClass/LowerCaseMapping::_lcOp int32_t ____lcOp_2; // System.Int32 System.Text.RegularExpressions.RegexCharClass/LowerCaseMapping::_data int32_t ____data_3; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____chMin_0)); } inline Il2CppChar get__chMin_0() const { return ____chMin_0; } inline Il2CppChar* <API key>() { return &____chMin_0; } inline void set__chMin_0(Il2CppChar value) { ____chMin_0 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____chMax_1)); } inline Il2CppChar get__chMax_1() const { return ____chMax_1; } inline Il2CppChar* <API key>() { return &____chMax_1; } inline void set__chMax_1(Il2CppChar value) { ____chMax_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____lcOp_2)); } inline int32_t get__lcOp_2() const { return ____lcOp_2; } inline int32_t* <API key>() { return &____lcOp_2; } inline void set__lcOp_2(int32_t value) { ____lcOp_2 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____data_3)); } inline int32_t get__data_3() const { return ____data_3; } inline int32_t* <API key>() { return &____data_3; } inline void set__data_3(int32_t value) { ____data_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Text.RegularExpressions.RegexCharClass/LowerCaseMapping struct <API key> { uint8_t ____chMin_0; uint8_t ____chMax_1; int32_t ____lcOp_2; int32_t ____data_3; }; // Native definition for COM marshalling of System.Text.RegularExpressions.RegexCharClass/LowerCaseMapping struct <API key> { uint8_t ____chMin_0; uint8_t ____chMax_1; int32_t ____lcOp_2; int32_t ____data_3; }; #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexInterpreter struct <API key> : public <API key> { public: // System.Int32 System.Text.RegularExpressions.RegexInterpreter::runoperator int32_t ___runoperator_19; // System.Int32[] System.Text.RegularExpressions.RegexInterpreter::runcodes <API key>* ___runcodes_20; // System.Int32 System.Text.RegularExpressions.RegexInterpreter::runcodepos int32_t ___runcodepos_21; // System.String[] System.Text.RegularExpressions.RegexInterpreter::runstrings <API key>* ___runstrings_22; // System.Text.RegularExpressions.RegexCode System.Text.RegularExpressions.RegexInterpreter::runcode <API key> * ___runcode_23; // System.Text.RegularExpressions.RegexPrefix System.Text.RegularExpressions.RegexInterpreter::runfcPrefix <API key> * ___runfcPrefix_24; // System.Text.RegularExpressions.RegexBoyerMoore System.Text.RegularExpressions.RegexInterpreter::runbmPrefix <API key> * ___runbmPrefix_25; // System.Int32 System.Text.RegularExpressions.RegexInterpreter::runanchors int32_t ___runanchors_26; // System.Boolean System.Text.RegularExpressions.RegexInterpreter::runrtl bool ___runrtl_27; // System.Boolean System.Text.RegularExpressions.RegexInterpreter::runci bool ___runci_28; // System.Globalization.CultureInfo System.Text.RegularExpressions.RegexInterpreter::runculture <API key> * ___runculture_29; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runoperator_19)); } inline int32_t get_runoperator_19() const { return ___runoperator_19; } inline int32_t* <API key>() { return &___runoperator_19; } inline void set_runoperator_19(int32_t value) { ___runoperator_19 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runcodes_20)); } inline <API key>* get_runcodes_20() const { return ___runcodes_20; } inline <API key>** <API key>() { return &___runcodes_20; } inline void set_runcodes_20(<API key>* value) { ___runcodes_20 = value; <API key>((&___runcodes_20), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runcodepos_21)); } inline int32_t get_runcodepos_21() const { return ___runcodepos_21; } inline int32_t* <API key>() { return &___runcodepos_21; } inline void set_runcodepos_21(int32_t value) { ___runcodepos_21 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runstrings_22)); } inline <API key>* get_runstrings_22() const { return ___runstrings_22; } inline <API key>** <API key>() { return &___runstrings_22; } inline void set_runstrings_22(<API key>* value) { ___runstrings_22 = value; <API key>((&___runstrings_22), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runcode_23)); } inline <API key> * get_runcode_23() const { return ___runcode_23; } inline <API key> ** <API key>() { return &___runcode_23; } inline void set_runcode_23(<API key> * value) { ___runcode_23 = value; <API key>((&___runcode_23), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runfcPrefix_24)); } inline <API key> * get_runfcPrefix_24() const { return ___runfcPrefix_24; } inline <API key> ** <API key>() { return &___runfcPrefix_24; } inline void set_runfcPrefix_24(<API key> * value) { ___runfcPrefix_24 = value; <API key>((&___runfcPrefix_24), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runbmPrefix_25)); } inline <API key> * get_runbmPrefix_25() const { return ___runbmPrefix_25; } inline <API key> ** <API key>() { return &___runbmPrefix_25; } inline void set_runbmPrefix_25(<API key> * value) { ___runbmPrefix_25 = value; <API key>((&___runbmPrefix_25), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runanchors_26)); } inline int32_t get_runanchors_26() const { return ___runanchors_26; } inline int32_t* <API key>() { return &___runanchors_26; } inline void set_runanchors_26(int32_t value) { ___runanchors_26 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runrtl_27)); } inline bool get_runrtl_27() const { return ___runrtl_27; } inline bool* <API key>() { return &___runrtl_27; } inline void set_runrtl_27(bool value) { ___runrtl_27 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runci_28)); } inline bool get_runci_28() const { return ___runci_28; } inline bool* <API key>() { return &___runci_28; } inline void set_runci_28(bool value) { ___runci_28 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___runculture_29)); } inline <API key> * get_runculture_29() const { return ___runculture_29; } inline <API key> ** <API key>() { return &___runculture_29; } inline void set_runculture_29(<API key> * value) { ___runculture_29 = value; <API key>((&___runculture_29), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef VOID_T1185182177_H #define VOID_T1185182177_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void struct Void_t1185182177 { public: union { struct { }; uint8_t <API key>[1]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // VOID_T1185182177_H #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.TypeConverter struct <API key> : public RuntimeObject { public: public: }; struct <API key> { public: // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.ComponentModel.TypeConverter::<API key> bool <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Configuration.<API key> struct <API key> : public <API key> { public: // System.String System.Configuration.<API key>::filename String_t* ___filename_17; // System.Int32 System.Configuration.<API key>::line int32_t ___line_18; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___filename_17)); } inline String_t* get_filename_17() const { return ___filename_17; } inline String_t** <API key>() { return &___filename_17; } inline void set_filename_17(String_t* value) { ___filename_17 = value; <API key>((&___filename_17), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___line_18)); } inline int32_t get_line_18() const { return ___line_18; } inline int32_t* <API key>() { return &___line_18; } inline void set_line_18(int32_t value) { ___line_18 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Delegate struct <API key> : public RuntimeObject { public: // System.IntPtr System.Delegate::method_ptr Il2CppMethodPointer ___method_ptr_0; // System.IntPtr System.Delegate::invoke_impl intptr_t ___invoke_impl_1; // System.Object System.Delegate::m_target RuntimeObject * ___m_target_2; // System.IntPtr System.Delegate::method intptr_t ___method_3; // System.IntPtr System.Delegate::delegate_trampoline intptr_t <API key>; // System.IntPtr System.Delegate::extra_arg intptr_t ___extra_arg_5; // System.IntPtr System.Delegate::method_code intptr_t ___method_code_6; // System.Reflection.MethodInfo System.Delegate::method_info MethodInfo_t * ___method_info_7; // System.Reflection.MethodInfo System.Delegate::<API key> MethodInfo_t * <API key>; // System.DelegateData System.Delegate::data <API key> * ___data_9; // System.Boolean System.Delegate::method_is_virtual bool <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___method_ptr_0)); } inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; } inline Il2CppMethodPointer* <API key>() { return &___method_ptr_0; } inline void set_method_ptr_0(Il2CppMethodPointer value) { ___method_ptr_0 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___invoke_impl_1)); } inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; } inline intptr_t* <API key>() { return &___invoke_impl_1; } inline void set_invoke_impl_1(intptr_t value) { ___invoke_impl_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___m_target_2)); } inline RuntimeObject * get_m_target_2() const { return ___m_target_2; } inline RuntimeObject ** <API key>() { return &___m_target_2; } inline void set_m_target_2(RuntimeObject * value) { ___m_target_2 = value; <API key>((&___m_target_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___method_3)); } inline intptr_t get_method_3() const { return ___method_3; } inline intptr_t* <API key>() { return &___method_3; } inline void set_method_3(intptr_t value) { ___method_3 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline intptr_t <API key>() const { return <API key>; } inline intptr_t* <API key>() { return &<API key>; } inline void <API key>(intptr_t value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___extra_arg_5)); } inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; } inline intptr_t* <API key>() { return &___extra_arg_5; } inline void set_extra_arg_5(intptr_t value) { ___extra_arg_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___method_code_6)); } inline intptr_t get_method_code_6() const { return ___method_code_6; } inline intptr_t* <API key>() { return &___method_code_6; } inline void set_method_code_6(intptr_t value) { ___method_code_6 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___method_info_7)); } inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; } inline MethodInfo_t ** <API key>() { return &___method_info_7; } inline void set_method_info_7(MethodInfo_t * value) { ___method_info_7 = value; <API key>((&___method_info_7), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline MethodInfo_t * <API key>() const { return <API key>; } inline MethodInfo_t ** <API key>() { return &<API key>; } inline void <API key>(MethodInfo_t * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___data_9)); } inline <API key> * get_data_9() const { return ___data_9; } inline <API key> ** <API key>() { return &___data_9; } inline void set_data_9(<API key> * value) { ___data_9 = value; <API key>((&___data_9), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Delegate struct <API key> { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t <API key>; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * <API key>; <API key> * ___data_9; int32_t <API key>; }; // Native definition for COM marshalling of System.Delegate struct <API key> { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t <API key>; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * <API key>; <API key> * ___data_9; int32_t <API key>; }; #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.EventLog struct <API key> : public <API key> { public: // System.String System.Diagnostics.EventLog::source String_t* ___source_4; // System.Boolean System.Diagnostics.EventLog::doRaiseEvents bool ___doRaiseEvents_5; // System.Diagnostics.EventLogImpl System.Diagnostics.EventLog::Impl <API key> * ___Impl_6; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___source_4)); } inline String_t* get_source_4() const { return ___source_4; } inline String_t** <API key>() { return &___source_4; } inline void set_source_4(String_t* value) { ___source_4 = value; <API key>((&___source_4), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___doRaiseEvents_5)); } inline bool get_doRaiseEvents_5() const { return ___doRaiseEvents_5; } inline bool* <API key>() { return &___doRaiseEvents_5; } inline void set_doRaiseEvents_5(bool value) { ___doRaiseEvents_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Impl_6)); } inline <API key> * get_Impl_6() const { return ___Impl_6; } inline <API key> ** <API key>() { return &___Impl_6; } inline void set_Impl_6(<API key> * value) { ___Impl_6 = value; <API key>((&___Impl_6), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.FilterElement struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.InitState struct <API key> { public: // System.Int32 System.Diagnostics.InitState::value__ int32_t ___value___2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* <API key>() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.ListenerElement struct <API key> : public <API key> { public: // System.Configuration.<API key> System.Diagnostics.ListenerElement::<API key> <API key> * <API key>; // System.Boolean System.Diagnostics.ListenerElement::_allowReferences bool <API key>; // System.Collections.Hashtable System.Diagnostics.ListenerElement::_attributes <API key> * ____attributes_25; // System.Boolean System.Diagnostics.ListenerElement::_isAddedByDefault bool <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____attributes_25)); } inline <API key> * get__attributes_25() const { return ____attributes_25; } inline <API key> ** <API key>() { return &____attributes_25; } inline void set__attributes_25(<API key> * value) { ____attributes_25 = value; <API key>((&____attributes_25), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; struct <API key> { public: // System.Configuration.<API key> System.Diagnostics.ListenerElement::_propFilter <API key> * ____propFilter_20; // System.Configuration.<API key> System.Diagnostics.ListenerElement::_propName <API key> * ____propName_21; // System.Configuration.<API key> System.Diagnostics.ListenerElement::_propOutputOpts <API key> * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propFilter_20)); } inline <API key> * get__propFilter_20() const { return ____propFilter_20; } inline <API key> ** <API key>() { return &____propFilter_20; } inline void set__propFilter_20(<API key> * value) { ____propFilter_20 = value; <API key>((&____propFilter_20), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propName_21)); } inline <API key> * get__propName_21() const { return ____propName_21; } inline <API key> ** <API key>() { return &____propName_21; } inline void set__propName_21(<API key> * value) { ____propName_21 = value; <API key>((&____propName_21), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.SourceLevels struct <API key> { public: // System.Int32 System.Diagnostics.SourceLevels::value__ int32_t ___value___2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* <API key>() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: public: }; struct <API key> { public: // System.Configuration.<API key> System.Diagnostics.<API key>::_properties <API key> * ____properties_19; // System.Configuration.<API key> System.Diagnostics.<API key>::_propAssert <API key> * ____propAssert_20; // System.Configuration.<API key> System.Diagnostics.<API key>::_propPerfCounters <API key> * <API key>; // System.Configuration.<API key> System.Diagnostics.<API key>::_propSources <API key> * ____propSources_22; // System.Configuration.<API key> System.Diagnostics.<API key>::<API key> <API key> * <API key>; // System.Configuration.<API key> System.Diagnostics.<API key>::_propSwitches <API key> * ____propSwitches_24; // System.Configuration.<API key> System.Diagnostics.<API key>::_propTrace <API key> * ____propTrace_25; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____properties_19)); } inline <API key> * get__properties_19() const { return ____properties_19; } inline <API key> ** <API key>() { return &____properties_19; } inline void set__properties_19(<API key> * value) { ____properties_19 = value; <API key>((&____properties_19), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propAssert_20)); } inline <API key> * get__propAssert_20() const { return ____propAssert_20; } inline <API key> ** <API key>() { return &____propAssert_20; } inline void set__propAssert_20(<API key> * value) { ____propAssert_20 = value; <API key>((&____propAssert_20), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propSources_22)); } inline <API key> * get__propSources_22() const { return ____propSources_22; } inline <API key> ** <API key>() { return &____propSources_22; } inline void set__propSources_22(<API key> * value) { ____propSources_22 = value; <API key>((&____propSources_22), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline <API key> * <API key>() const { return <API key>; } inline <API key> ** <API key>() { return &<API key>; } inline void <API key>(<API key> * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propSwitches_24)); } inline <API key> * <API key>() const { return ____propSwitches_24; } inline <API key> ** <API key>() { return &____propSwitches_24; } inline void <API key>(<API key> * value) { ____propSwitches_24 = value; <API key>((&____propSwitches_24), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____propTrace_25)); } inline <API key> * get__propTrace_25() const { return ____propTrace_25; } inline <API key> ** <API key>() { return &____propTrace_25; } inline void set__propTrace_25(<API key> * value) { ____propTrace_25 = value; <API key>((&____propTrace_25), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.TraceInternal struct <API key> : public RuntimeObject { public: public: }; struct <API key> { public: // System.String modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.TraceInternal::appName String_t* ___appName_0; // System.Diagnostics.<API key> modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.TraceInternal::listeners <API key> * ___listeners_1; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.TraceInternal::autoFlush bool ___autoFlush_2; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.TraceInternal::useGlobalLock bool ___useGlobalLock_3; // System.Int32 modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.TraceInternal::indentSize int32_t ___indentSize_5; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.TraceInternal::settingsInitialized bool <API key>; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.TraceInternal::defaultInitialized bool <API key>; // System.Object System.Diagnostics.TraceInternal::critSec RuntimeObject * ___critSec_8; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___appName_0)); } inline String_t* get_appName_0() const { return ___appName_0; } inline String_t** <API key>() { return &___appName_0; } inline void set_appName_0(String_t* value) { ___appName_0 = value; <API key>((&___appName_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___listeners_1)); } inline <API key> * get_listeners_1() const { return ___listeners_1; } inline <API key> ** <API key>() { return &___listeners_1; } inline void set_listeners_1(<API key> * value) { ___listeners_1 = value; <API key>((&___listeners_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___autoFlush_2)); } inline bool get_autoFlush_2() const { return ___autoFlush_2; } inline bool* <API key>() { return &___autoFlush_2; } inline void set_autoFlush_2(bool value) { ___autoFlush_2 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___useGlobalLock_3)); } inline bool get_useGlobalLock_3() const { return ___useGlobalLock_3; } inline bool* <API key>() { return &___useGlobalLock_3; } inline void set_useGlobalLock_3(bool value) { ___useGlobalLock_3 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___indentSize_5)); } inline int32_t get_indentSize_5() const { return ___indentSize_5; } inline int32_t* <API key>() { return &___indentSize_5; } inline void set_indentSize_5(int32_t value) { ___indentSize_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___critSec_8)); } inline RuntimeObject * get_critSec_8() const { return ___critSec_8; } inline RuntimeObject ** <API key>() { return &___critSec_8; } inline void set_critSec_8(RuntimeObject * value) { ___critSec_8 = value; <API key>((&___critSec_8), value); } }; struct <API key> { public: // System.Int32 System.Diagnostics.TraceInternal::indentLevel int32_t ___indentLevel_4; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___indentLevel_4)); } inline int32_t get_indentLevel_4() const { return ___indentLevel_4; } inline int32_t* <API key>() { return &___indentLevel_4; } inline void set_indentLevel_4(int32_t value) { ___indentLevel_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.TraceOptions struct <API key> { public: // System.Int32 System.Diagnostics.TraceOptions::value__ int32_t ___value___2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* <API key>() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef MATCH_T3408321083_H #define MATCH_T3408321083_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.Match struct Match_t3408321083 : public Group_t2468205786 { public: // System.Text.RegularExpressions.GroupCollection System.Text.RegularExpressions.Match::_groupcoll <API key> * ____groupcoll_9; // System.Text.RegularExpressions.Regex System.Text.RegularExpressions.Match::_regex Regex_t3657309853 * ____regex_10; // System.Int32 System.Text.RegularExpressions.Match::_textbeg int32_t ____textbeg_11; // System.Int32 System.Text.RegularExpressions.Match::_textpos int32_t ____textpos_12; // System.Int32 System.Text.RegularExpressions.Match::_textend int32_t ____textend_13; // System.Int32 System.Text.RegularExpressions.Match::_textstart int32_t ____textstart_14; // System.Int32[][] System.Text.RegularExpressions.Match::_matches <API key>* ____matches_15; // System.Int32[] System.Text.RegularExpressions.Match::_matchcount <API key>* ____matchcount_16; // System.Boolean System.Text.RegularExpressions.Match::_balancing bool ____balancing_17; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Match_t3408321083, ____groupcoll_9)); } inline <API key> * get__groupcoll_9() const { return ____groupcoll_9; } inline <API key> ** <API key>() { return &____groupcoll_9; } inline void set__groupcoll_9(<API key> * value) { ____groupcoll_9 = value; <API key>((&____groupcoll_9), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Match_t3408321083, ____regex_10)); } inline Regex_t3657309853 * get__regex_10() const { return ____regex_10; } inline Regex_t3657309853 ** <API key>() { return &____regex_10; } inline void set__regex_10(Regex_t3657309853 * value) { ____regex_10 = value; <API key>((&____regex_10), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Match_t3408321083, ____textbeg_11)); } inline int32_t get__textbeg_11() const { return ____textbeg_11; } inline int32_t* <API key>() { return &____textbeg_11; } inline void set__textbeg_11(int32_t value) { ____textbeg_11 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Match_t3408321083, ____textpos_12)); } inline int32_t get__textpos_12() const { return ____textpos_12; } inline int32_t* <API key>() { return &____textpos_12; } inline void set__textpos_12(int32_t value) { ____textpos_12 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Match_t3408321083, ____textend_13)); } inline int32_t get__textend_13() const { return ____textend_13; } inline int32_t* <API key>() { return &____textend_13; } inline void set__textend_13(int32_t value) { ____textend_13 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Match_t3408321083, ____textstart_14)); } inline int32_t get__textstart_14() const { return ____textstart_14; } inline int32_t* <API key>() { return &____textstart_14; } inline void set__textstart_14(int32_t value) { ____textstart_14 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Match_t3408321083, ____matches_15)); } inline <API key>* get__matches_15() const { return ____matches_15; } inline <API key>** <API key>() { return &____matches_15; } inline void set__matches_15(<API key>* value) { ____matches_15 = value; <API key>((&____matches_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Match_t3408321083, ____matchcount_16)); } inline <API key>* get__matchcount_16() const { return ____matchcount_16; } inline <API key>** <API key>() { return &____matchcount_16; } inline void set__matchcount_16(<API key>* value) { ____matchcount_16 = value; <API key>((&____matchcount_16), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(Match_t3408321083, ____balancing_17)); } inline bool get__balancing_17() const { return ____balancing_17; } inline bool* <API key>() { return &____balancing_17; } inline void set__balancing_17(bool value) { ____balancing_17 = value; } }; struct <API key> { public: // System.Text.RegularExpressions.Match System.Text.RegularExpressions.Match::_empty Match_t3408321083 * ____empty_8; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____empty_8)); } inline Match_t3408321083 * get__empty_8() const { return ____empty_8; } inline Match_t3408321083 ** <API key>() { return &____empty_8; } inline void set__empty_8(Match_t3408321083 * value) { ____empty_8 = value; <API key>((&____empty_8), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MATCH_T3408321083_H #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexCompiler/BacktrackNote struct <API key> : public RuntimeObject { public: // System.Int32 System.Text.RegularExpressions.RegexCompiler/BacktrackNote::_codepos int32_t ____codepos_0; // System.Int32 System.Text.RegularExpressions.RegexCompiler/BacktrackNote::_flags int32_t ____flags_1; // System.Reflection.Emit.Label System.Text.RegularExpressions.RegexCompiler/BacktrackNote::_label Label_t2281661643 ____label_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____codepos_0)); } inline int32_t get__codepos_0() const { return ____codepos_0; } inline int32_t* <API key>() { return &____codepos_0; } inline void set__codepos_0(int32_t value) { ____codepos_0 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____flags_1)); } inline int32_t get__flags_1() const { return ____flags_1; } inline int32_t* <API key>() { return &____flags_1; } inline void set__flags_1(int32_t value) { ____flags_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____label_2)); } inline Label_t2281661643 get__label_2() const { return ____label_2; } inline Label_t2281661643 * <API key>() { return &____label_2; } inline void set__label_2(Label_t2281661643 value) { ____label_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexOptions struct <API key> { public: // System.Int32 System.Text.RegularExpressions.RegexOptions::value__ int32_t ___value___2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* <API key>() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeSpan struct TimeSpan_t881159249 { public: // System.Int64 System.TimeSpan::_ticks int64_t ____ticks_22; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(TimeSpan_t881159249, ____ticks_22)); } inline int64_t get__ticks_22() const { return ____ticks_22; } inline int64_t* <API key>() { return &____ticks_22; } inline void set__ticks_22(int64_t value) { ____ticks_22 = value; } }; struct <API key> { public: // System.TimeSpan System.TimeSpan::Zero TimeSpan_t881159249 ___Zero_19; // System.TimeSpan System.TimeSpan::MaxValue TimeSpan_t881159249 ___MaxValue_20; // System.TimeSpan System.TimeSpan::MinValue TimeSpan_t881159249 ___MinValue_21; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::<API key> bool <API key>; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::_legacyMode bool ____legacyMode_24; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___Zero_19)); } inline TimeSpan_t881159249 get_Zero_19() const { return ___Zero_19; } inline TimeSpan_t881159249 * <API key>() { return &___Zero_19; } inline void set_Zero_19(TimeSpan_t881159249 value) { ___Zero_19 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___MaxValue_20)); } inline TimeSpan_t881159249 get_MaxValue_20() const { return ___MaxValue_20; } inline TimeSpan_t881159249 * <API key>() { return &___MaxValue_20; } inline void set_MaxValue_20(TimeSpan_t881159249 value) { ___MaxValue_20 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___MinValue_21)); } inline TimeSpan_t881159249 get_MinValue_21() const { return ___MinValue_21; } inline TimeSpan_t881159249 * <API key>() { return &___MinValue_21; } inline void set_MinValue_21(TimeSpan_t881159249 value) { ___MinValue_21 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____legacyMode_24)); } inline bool get__legacyMode_24() const { return ____legacyMode_24; } inline bool* <API key>() { return &____legacyMode_24; } inline void set__legacyMode_24(bool value) { ____legacyMode_24 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeoutException struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.BaseNumberConverter struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.BooleanConverter struct <API key> : public <API key> { public: public: }; struct <API key> { public: // System.ComponentModel.TypeConverter/<API key> modreq(System.Runtime.CompilerServices.IsVolatile) System.ComponentModel.BooleanConverter::values <API key> * ___values_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___values_2)); } inline <API key> * get_values_2() const { return ___values_2; } inline <API key> ** <API key>() { return &___values_2; } inline void set_values_2(<API key> * value) { ___values_2 = value; <API key>((&___values_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.CharConverter struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.CollectionConverter struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.<API key> struct <API key> : public <API key> { public: // System.ComponentModel.TypeConverter/<API key> System.ComponentModel.<API key>::values <API key> * ___values_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___values_2)); } inline <API key> * get_values_2() const { return ___values_2; } inline <API key> ** <API key>() { return &___values_2; } inline void set_values_2(<API key> * value) { ___values_2 = value; <API key>((&___values_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.ReferenceConverter struct <API key> : public <API key> { public: // System.Type System.ComponentModel.ReferenceConverter::type Type_t * ___type_3; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___type_3)); } inline Type_t * get_type_3() const { return ___type_3; } inline Type_t ** <API key>() { return &___type_3; } inline void set_type_3(Type_t * value) { ___type_3 = value; <API key>((&___type_3), value); } }; struct <API key> { public: // System.String System.ComponentModel.ReferenceConverter::none String_t* ___none_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___none_2)); } inline String_t* get_none_2() const { return ___none_2; } inline String_t** <API key>() { return &___none_2; } inline void set_none_2(String_t* value) { ___none_2 = value; <API key>((&___none_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public RuntimeObject { public: public: }; struct <API key> { public: // System.Diagnostics.<API key> modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.<API key>::configSection <API key> * ___configSection_0; // System.Diagnostics.InitState modreq(System.Runtime.CompilerServices.IsVolatile) System.Diagnostics.<API key>::initState int32_t ___initState_1; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___configSection_0)); } inline <API key> * get_configSection_0() const { return ___configSection_0; } inline <API key> ** <API key>() { return &___configSection_0; } inline void set_configSection_0(<API key> * value) { ___configSection_0 = value; <API key>((&___configSection_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___initState_1)); } inline int32_t get_initState_1() const { return ___initState_1; } inline int32_t* <API key>() { return &___initState_1; } inline void set_initState_1(int32_t value) { ___initState_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.TraceListener struct <API key> : public <API key> { public: // System.Int32 System.Diagnostics.TraceListener::indentLevel int32_t ___indentLevel_1; // System.Int32 System.Diagnostics.TraceListener::indentSize int32_t ___indentSize_2; // System.Diagnostics.TraceOptions System.Diagnostics.TraceListener::traceOptions int32_t ___traceOptions_3; // System.Boolean System.Diagnostics.TraceListener::needIndent bool ___needIndent_4; // System.String System.Diagnostics.TraceListener::listenerName String_t* ___listenerName_5; // System.Diagnostics.TraceFilter System.Diagnostics.TraceListener::filter <API key> * ___filter_6; // System.Collections.Specialized.StringDictionary System.Diagnostics.TraceListener::attributes <API key> * ___attributes_7; // System.String System.Diagnostics.TraceListener::initializeData String_t* ___initializeData_8; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___indentLevel_1)); } inline int32_t get_indentLevel_1() const { return ___indentLevel_1; } inline int32_t* <API key>() { return &___indentLevel_1; } inline void set_indentLevel_1(int32_t value) { ___indentLevel_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___indentSize_2)); } inline int32_t get_indentSize_2() const { return ___indentSize_2; } inline int32_t* <API key>() { return &___indentSize_2; } inline void set_indentSize_2(int32_t value) { ___indentSize_2 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___traceOptions_3)); } inline int32_t get_traceOptions_3() const { return ___traceOptions_3; } inline int32_t* <API key>() { return &___traceOptions_3; } inline void set_traceOptions_3(int32_t value) { ___traceOptions_3 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___needIndent_4)); } inline bool get_needIndent_4() const { return ___needIndent_4; } inline bool* <API key>() { return &___needIndent_4; } inline void set_needIndent_4(bool value) { ___needIndent_4 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___listenerName_5)); } inline String_t* get_listenerName_5() const { return ___listenerName_5; } inline String_t** <API key>() { return &___listenerName_5; } inline void set_listenerName_5(String_t* value) { ___listenerName_5 = value; <API key>((&___listenerName_5), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___filter_6)); } inline <API key> * get_filter_6() const { return ___filter_6; } inline <API key> ** <API key>() { return &___filter_6; } inline void set_filter_6(<API key> * value) { ___filter_6 = value; <API key>((&___filter_6), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___attributes_7)); } inline <API key> * get_attributes_7() const { return ___attributes_7; } inline <API key> ** <API key>() { return &___attributes_7; } inline void set_attributes_7(<API key> * value) { ___attributes_7 = value; <API key>((&___attributes_7), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___initializeData_8)); } inline String_t* <API key>() const { return ___initializeData_8; } inline String_t** <API key>() { return &___initializeData_8; } inline void <API key>(String_t* value) { ___initializeData_8 = value; <API key>((&___initializeData_8), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.TraceSourceInfo struct <API key> : public RuntimeObject { public: // System.String System.Diagnostics.TraceSourceInfo::name String_t* ___name_0; // System.Diagnostics.SourceLevels System.Diagnostics.TraceSourceInfo::levels int32_t ___levels_1; // System.Diagnostics.<API key> System.Diagnostics.TraceSourceInfo::listeners <API key> * ___listeners_2; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___name_0)); } inline String_t* get_name_0() const { return ___name_0; } inline String_t** <API key>() { return &___name_0; } inline void set_name_0(String_t* value) { ___name_0 = value; <API key>((&___name_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___levels_1)); } inline int32_t get_levels_1() const { return ___levels_1; } inline int32_t* <API key>() { return &___levels_1; } inline void set_levels_1(int32_t value) { ___levels_1 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___listeners_2)); } inline <API key> * get_listeners_2() const { return ___listeners_2; } inline <API key> ** <API key>() { return &___listeners_2; } inline void set_listeners_2(<API key> * value) { ___listeners_2 = value; <API key>((&___listeners_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MulticastDelegate struct MulticastDelegate_t : public <API key> { public: // System.Delegate[] System.MulticastDelegate::delegates <API key>* ___delegates_11; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); } inline <API key>* get_delegates_11() const { return ___delegates_11; } inline <API key>** <API key>() { return &___delegates_11; } inline void set_delegates_11(<API key>* value) { ___delegates_11 = value; <API key>((&___delegates_11), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.MulticastDelegate struct <API key> : public <API key> { <API key>* ___delegates_11; }; // Native definition for COM marshalling of System.MulticastDelegate struct <API key> : public <API key> { <API key>* ___delegates_11; }; #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.MatchSparse struct <API key> : public Match_t3408321083 { public: // System.Collections.Hashtable System.Text.RegularExpressions.MatchSparse::_caps <API key> * ____caps_18; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____caps_18)); } inline <API key> * get__caps_18() const { return ____caps_18; } inline <API key> ** <API key>() { return &____caps_18; } inline void set__caps_18(<API key> * value) { ____caps_18 = value; <API key>((&____caps_18), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexCompiler struct <API key> : public RuntimeObject { public: // System.Reflection.Emit.ILGenerator System.Text.RegularExpressions.RegexCompiler::_ilg <API key> * ____ilg_26; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_textstartV <API key> * ____textstartV_27; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_textbegV <API key> * ____textbegV_28; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_textendV <API key> * ____textendV_29; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_textposV <API key> * ____textposV_30; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_textV <API key> * ____textV_31; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_trackposV <API key> * ____trackposV_32; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_trackV <API key> * ____trackV_33; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_stackposV <API key> * ____stackposV_34; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_stackV <API key> * ____stackV_35; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_tempV <API key> * ____tempV_36; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_temp2V <API key> * ____temp2V_37; // System.Reflection.Emit.LocalBuilder System.Text.RegularExpressions.RegexCompiler::_temp3V <API key> * ____temp3V_38; // System.Text.RegularExpressions.RegexCode System.Text.RegularExpressions.RegexCompiler::_code <API key> * ____code_39; // System.Int32[] System.Text.RegularExpressions.RegexCompiler::_codes <API key>* ____codes_40; // System.String[] System.Text.RegularExpressions.RegexCompiler::_strings <API key>* ____strings_41; // System.Text.RegularExpressions.RegexPrefix System.Text.RegularExpressions.RegexCompiler::_fcPrefix <API key> * ____fcPrefix_42; // System.Text.RegularExpressions.RegexBoyerMoore System.Text.RegularExpressions.RegexCompiler::_bmPrefix <API key> * ____bmPrefix_43; // System.Int32 System.Text.RegularExpressions.RegexCompiler::_anchors int32_t ____anchors_44; // System.Reflection.Emit.Label[] System.Text.RegularExpressions.RegexCompiler::_labels <API key>* ____labels_45; // System.Text.RegularExpressions.RegexCompiler/BacktrackNote[] System.Text.RegularExpressions.RegexCompiler::_notes <API key>* ____notes_46; // System.Int32 System.Text.RegularExpressions.RegexCompiler::_notecount int32_t ____notecount_47; // System.Int32 System.Text.RegularExpressions.RegexCompiler::_trackcount int32_t ____trackcount_48; // System.Reflection.Emit.Label System.Text.RegularExpressions.RegexCompiler::_backtrack Label_t2281661643 ____backtrack_49; // System.Int32 System.Text.RegularExpressions.RegexCompiler::_regexopcode int32_t ____regexopcode_50; // System.Int32 System.Text.RegularExpressions.RegexCompiler::_codepos int32_t ____codepos_51; // System.Int32 System.Text.RegularExpressions.RegexCompiler::_backpos int32_t ____backpos_52; // System.Text.RegularExpressions.RegexOptions System.Text.RegularExpressions.RegexCompiler::_options int32_t ____options_53; // System.Int32[] System.Text.RegularExpressions.RegexCompiler::_uniquenote <API key>* ____uniquenote_54; // System.Int32[] System.Text.RegularExpressions.RegexCompiler::_goto <API key>* ____goto_55; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____ilg_26)); } inline <API key> * get__ilg_26() const { return ____ilg_26; } inline <API key> ** <API key>() { return &____ilg_26; } inline void set__ilg_26(<API key> * value) { ____ilg_26 = value; <API key>((&____ilg_26), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textstartV_27)); } inline <API key> * get__textstartV_27() const { return ____textstartV_27; } inline <API key> ** <API key>() { return &____textstartV_27; } inline void set__textstartV_27(<API key> * value) { ____textstartV_27 = value; <API key>((&____textstartV_27), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textbegV_28)); } inline <API key> * get__textbegV_28() const { return ____textbegV_28; } inline <API key> ** <API key>() { return &____textbegV_28; } inline void set__textbegV_28(<API key> * value) { ____textbegV_28 = value; <API key>((&____textbegV_28), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textendV_29)); } inline <API key> * get__textendV_29() const { return ____textendV_29; } inline <API key> ** <API key>() { return &____textendV_29; } inline void set__textendV_29(<API key> * value) { ____textendV_29 = value; <API key>((&____textendV_29), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textposV_30)); } inline <API key> * get__textposV_30() const { return ____textposV_30; } inline <API key> ** <API key>() { return &____textposV_30; } inline void set__textposV_30(<API key> * value) { ____textposV_30 = value; <API key>((&____textposV_30), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textV_31)); } inline <API key> * get__textV_31() const { return ____textV_31; } inline <API key> ** <API key>() { return &____textV_31; } inline void set__textV_31(<API key> * value) { ____textV_31 = value; <API key>((&____textV_31), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____trackposV_32)); } inline <API key> * get__trackposV_32() const { return ____trackposV_32; } inline <API key> ** <API key>() { return &____trackposV_32; } inline void set__trackposV_32(<API key> * value) { ____trackposV_32 = value; <API key>((&____trackposV_32), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____trackV_33)); } inline <API key> * get__trackV_33() const { return ____trackV_33; } inline <API key> ** <API key>() { return &____trackV_33; } inline void set__trackV_33(<API key> * value) { ____trackV_33 = value; <API key>((&____trackV_33), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____stackposV_34)); } inline <API key> * get__stackposV_34() const { return ____stackposV_34; } inline <API key> ** <API key>() { return &____stackposV_34; } inline void set__stackposV_34(<API key> * value) { ____stackposV_34 = value; <API key>((&____stackposV_34), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____stackV_35)); } inline <API key> * get__stackV_35() const { return ____stackV_35; } inline <API key> ** <API key>() { return &____stackV_35; } inline void set__stackV_35(<API key> * value) { ____stackV_35 = value; <API key>((&____stackV_35), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____tempV_36)); } inline <API key> * get__tempV_36() const { return ____tempV_36; } inline <API key> ** <API key>() { return &____tempV_36; } inline void set__tempV_36(<API key> * value) { ____tempV_36 = value; <API key>((&____tempV_36), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____temp2V_37)); } inline <API key> * get__temp2V_37() const { return ____temp2V_37; } inline <API key> ** <API key>() { return &____temp2V_37; } inline void set__temp2V_37(<API key> * value) { ____temp2V_37 = value; <API key>((&____temp2V_37), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____temp3V_38)); } inline <API key> * get__temp3V_38() const { return ____temp3V_38; } inline <API key> ** <API key>() { return &____temp3V_38; } inline void set__temp3V_38(<API key> * value) { ____temp3V_38 = value; <API key>((&____temp3V_38), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____code_39)); } inline <API key> * get__code_39() const { return ____code_39; } inline <API key> ** <API key>() { return &____code_39; } inline void set__code_39(<API key> * value) { ____code_39 = value; <API key>((&____code_39), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____codes_40)); } inline <API key>* get__codes_40() const { return ____codes_40; } inline <API key>** <API key>() { return &____codes_40; } inline void set__codes_40(<API key>* value) { ____codes_40 = value; <API key>((&____codes_40), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____strings_41)); } inline <API key>* get__strings_41() const { return ____strings_41; } inline <API key>** <API key>() { return &____strings_41; } inline void set__strings_41(<API key>* value) { ____strings_41 = value; <API key>((&____strings_41), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____fcPrefix_42)); } inline <API key> * get__fcPrefix_42() const { return ____fcPrefix_42; } inline <API key> ** <API key>() { return &____fcPrefix_42; } inline void set__fcPrefix_42(<API key> * value) { ____fcPrefix_42 = value; <API key>((&____fcPrefix_42), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____bmPrefix_43)); } inline <API key> * get__bmPrefix_43() const { return ____bmPrefix_43; } inline <API key> ** <API key>() { return &____bmPrefix_43; } inline void set__bmPrefix_43(<API key> * value) { ____bmPrefix_43 = value; <API key>((&____bmPrefix_43), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____anchors_44)); } inline int32_t get__anchors_44() const { return ____anchors_44; } inline int32_t* <API key>() { return &____anchors_44; } inline void set__anchors_44(int32_t value) { ____anchors_44 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____labels_45)); } inline <API key>* get__labels_45() const { return ____labels_45; } inline <API key>** <API key>() { return &____labels_45; } inline void set__labels_45(<API key>* value) { ____labels_45 = value; <API key>((&____labels_45), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____notes_46)); } inline <API key>* get__notes_46() const { return ____notes_46; } inline <API key>** <API key>() { return &____notes_46; } inline void set__notes_46(<API key>* value) { ____notes_46 = value; <API key>((&____notes_46), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____notecount_47)); } inline int32_t get__notecount_47() const { return ____notecount_47; } inline int32_t* <API key>() { return &____notecount_47; } inline void set__notecount_47(int32_t value) { ____notecount_47 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____trackcount_48)); } inline int32_t get__trackcount_48() const { return ____trackcount_48; } inline int32_t* <API key>() { return &____trackcount_48; } inline void set__trackcount_48(int32_t value) { ____trackcount_48 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____backtrack_49)); } inline Label_t2281661643 get__backtrack_49() const { return ____backtrack_49; } inline Label_t2281661643 * <API key>() { return &____backtrack_49; } inline void set__backtrack_49(Label_t2281661643 value) { ____backtrack_49 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____regexopcode_50)); } inline int32_t get__regexopcode_50() const { return ____regexopcode_50; } inline int32_t* <API key>() { return &____regexopcode_50; } inline void set__regexopcode_50(int32_t value) { ____regexopcode_50 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____codepos_51)); } inline int32_t get__codepos_51() const { return ____codepos_51; } inline int32_t* <API key>() { return &____codepos_51; } inline void set__codepos_51(int32_t value) { ____codepos_51 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____backpos_52)); } inline int32_t get__backpos_52() const { return ____backpos_52; } inline int32_t* <API key>() { return &____backpos_52; } inline void set__backpos_52(int32_t value) { ____backpos_52 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____options_53)); } inline int32_t get__options_53() const { return ____options_53; } inline int32_t* <API key>() { return &____options_53; } inline void set__options_53(int32_t value) { ____options_53 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____uniquenote_54)); } inline <API key>* get__uniquenote_54() const { return ____uniquenote_54; } inline <API key>** <API key>() { return &____uniquenote_54; } inline void set__uniquenote_54(<API key>* value) { ____uniquenote_54 = value; <API key>((&____uniquenote_54), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____goto_55)); } inline <API key>* get__goto_55() const { return ____goto_55; } inline <API key>** <API key>() { return &____goto_55; } inline void set__goto_55(<API key>* value) { ____goto_55 = value; <API key>((&____goto_55), value); } }; struct <API key> { public: // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_textbegF FieldInfo_t * ____textbegF_0; // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_textendF FieldInfo_t * ____textendF_1; // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_textstartF FieldInfo_t * ____textstartF_2; // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_textposF FieldInfo_t * ____textposF_3; // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_textF FieldInfo_t * ____textF_4; // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_trackposF FieldInfo_t * ____trackposF_5; // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_trackF FieldInfo_t * ____trackF_6; // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_stackposF FieldInfo_t * ____stackposF_7; // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_stackF FieldInfo_t * ____stackF_8; // System.Reflection.FieldInfo System.Text.RegularExpressions.RegexCompiler::_trackcountF FieldInfo_t * ____trackcountF_9; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_ensurestorageM MethodInfo_t * <API key>; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_captureM MethodInfo_t * ____captureM_11; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_transferM MethodInfo_t * ____transferM_12; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_uncaptureM MethodInfo_t * ____uncaptureM_13; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_ismatchedM MethodInfo_t * ____ismatchedM_14; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_matchlengthM MethodInfo_t * ____matchlengthM_15; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_matchindexM MethodInfo_t * ____matchindexM_16; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_isboundaryM MethodInfo_t * ____isboundaryM_17; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_isECMABoundaryM MethodInfo_t * <API key>; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_chartolowerM MethodInfo_t * ____chartolowerM_19; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_getcharM MethodInfo_t * ____getcharM_20; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_crawlposM MethodInfo_t * ____crawlposM_21; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_charInSetM MethodInfo_t * ____charInSetM_22; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_getCurrentCulture MethodInfo_t * <API key>; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::<API key> MethodInfo_t * <API key>; // System.Reflection.MethodInfo System.Text.RegularExpressions.RegexCompiler::_checkTimeoutM MethodInfo_t * <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textbegF_0)); } inline FieldInfo_t * get__textbegF_0() const { return ____textbegF_0; } inline FieldInfo_t ** <API key>() { return &____textbegF_0; } inline void set__textbegF_0(FieldInfo_t * value) { ____textbegF_0 = value; <API key>((&____textbegF_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textendF_1)); } inline FieldInfo_t * get__textendF_1() const { return ____textendF_1; } inline FieldInfo_t ** <API key>() { return &____textendF_1; } inline void set__textendF_1(FieldInfo_t * value) { ____textendF_1 = value; <API key>((&____textendF_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textstartF_2)); } inline FieldInfo_t * get__textstartF_2() const { return ____textstartF_2; } inline FieldInfo_t ** <API key>() { return &____textstartF_2; } inline void set__textstartF_2(FieldInfo_t * value) { ____textstartF_2 = value; <API key>((&____textstartF_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textposF_3)); } inline FieldInfo_t * get__textposF_3() const { return ____textposF_3; } inline FieldInfo_t ** <API key>() { return &____textposF_3; } inline void set__textposF_3(FieldInfo_t * value) { ____textposF_3 = value; <API key>((&____textposF_3), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____textF_4)); } inline FieldInfo_t * get__textF_4() const { return ____textF_4; } inline FieldInfo_t ** <API key>() { return &____textF_4; } inline void set__textF_4(FieldInfo_t * value) { ____textF_4 = value; <API key>((&____textF_4), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____trackposF_5)); } inline FieldInfo_t * get__trackposF_5() const { return ____trackposF_5; } inline FieldInfo_t ** <API key>() { return &____trackposF_5; } inline void set__trackposF_5(FieldInfo_t * value) { ____trackposF_5 = value; <API key>((&____trackposF_5), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____trackF_6)); } inline FieldInfo_t * get__trackF_6() const { return ____trackF_6; } inline FieldInfo_t ** <API key>() { return &____trackF_6; } inline void set__trackF_6(FieldInfo_t * value) { ____trackF_6 = value; <API key>((&____trackF_6), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____stackposF_7)); } inline FieldInfo_t * get__stackposF_7() const { return ____stackposF_7; } inline FieldInfo_t ** <API key>() { return &____stackposF_7; } inline void set__stackposF_7(FieldInfo_t * value) { ____stackposF_7 = value; <API key>((&____stackposF_7), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____stackF_8)); } inline FieldInfo_t * get__stackF_8() const { return ____stackF_8; } inline FieldInfo_t ** <API key>() { return &____stackF_8; } inline void set__stackF_8(FieldInfo_t * value) { ____stackF_8 = value; <API key>((&____stackF_8), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____trackcountF_9)); } inline FieldInfo_t * get__trackcountF_9() const { return ____trackcountF_9; } inline FieldInfo_t ** <API key>() { return &____trackcountF_9; } inline void set__trackcountF_9(FieldInfo_t * value) { ____trackcountF_9 = value; <API key>((&____trackcountF_9), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline MethodInfo_t * <API key>() const { return <API key>; } inline MethodInfo_t ** <API key>() { return &<API key>; } inline void <API key>(MethodInfo_t * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____captureM_11)); } inline MethodInfo_t * get__captureM_11() const { return ____captureM_11; } inline MethodInfo_t ** <API key>() { return &____captureM_11; } inline void set__captureM_11(MethodInfo_t * value) { ____captureM_11 = value; <API key>((&____captureM_11), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____transferM_12)); } inline MethodInfo_t * get__transferM_12() const { return ____transferM_12; } inline MethodInfo_t ** <API key>() { return &____transferM_12; } inline void set__transferM_12(MethodInfo_t * value) { ____transferM_12 = value; <API key>((&____transferM_12), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____uncaptureM_13)); } inline MethodInfo_t * get__uncaptureM_13() const { return ____uncaptureM_13; } inline MethodInfo_t ** <API key>() { return &____uncaptureM_13; } inline void set__uncaptureM_13(MethodInfo_t * value) { ____uncaptureM_13 = value; <API key>((&____uncaptureM_13), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____ismatchedM_14)); } inline MethodInfo_t * get__ismatchedM_14() const { return ____ismatchedM_14; } inline MethodInfo_t ** <API key>() { return &____ismatchedM_14; } inline void set__ismatchedM_14(MethodInfo_t * value) { ____ismatchedM_14 = value; <API key>((&____ismatchedM_14), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____matchlengthM_15)); } inline MethodInfo_t * <API key>() const { return ____matchlengthM_15; } inline MethodInfo_t ** <API key>() { return &____matchlengthM_15; } inline void <API key>(MethodInfo_t * value) { ____matchlengthM_15 = value; <API key>((&____matchlengthM_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____matchindexM_16)); } inline MethodInfo_t * get__matchindexM_16() const { return ____matchindexM_16; } inline MethodInfo_t ** <API key>() { return &____matchindexM_16; } inline void set__matchindexM_16(MethodInfo_t * value) { ____matchindexM_16 = value; <API key>((&____matchindexM_16), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____isboundaryM_17)); } inline MethodInfo_t * get__isboundaryM_17() const { return ____isboundaryM_17; } inline MethodInfo_t ** <API key>() { return &____isboundaryM_17; } inline void set__isboundaryM_17(MethodInfo_t * value) { ____isboundaryM_17 = value; <API key>((&____isboundaryM_17), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline MethodInfo_t * <API key>() const { return <API key>; } inline MethodInfo_t ** <API key>() { return &<API key>; } inline void <API key>(MethodInfo_t * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____chartolowerM_19)); } inline MethodInfo_t * <API key>() const { return ____chartolowerM_19; } inline MethodInfo_t ** <API key>() { return &____chartolowerM_19; } inline void <API key>(MethodInfo_t * value) { ____chartolowerM_19 = value; <API key>((&____chartolowerM_19), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____getcharM_20)); } inline MethodInfo_t * get__getcharM_20() const { return ____getcharM_20; } inline MethodInfo_t ** <API key>() { return &____getcharM_20; } inline void set__getcharM_20(MethodInfo_t * value) { ____getcharM_20 = value; <API key>((&____getcharM_20), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____crawlposM_21)); } inline MethodInfo_t * get__crawlposM_21() const { return ____crawlposM_21; } inline MethodInfo_t ** <API key>() { return &____crawlposM_21; } inline void set__crawlposM_21(MethodInfo_t * value) { ____crawlposM_21 = value; <API key>((&____crawlposM_21), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____charInSetM_22)); } inline MethodInfo_t * get__charInSetM_22() const { return ____charInSetM_22; } inline MethodInfo_t ** <API key>() { return &____charInSetM_22; } inline void set__charInSetM_22(MethodInfo_t * value) { ____charInSetM_22 = value; <API key>((&____charInSetM_22), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline MethodInfo_t * <API key>() const { return <API key>; } inline MethodInfo_t ** <API key>() { return &<API key>; } inline void <API key>(MethodInfo_t * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline MethodInfo_t * <API key>() const { return <API key>; } inline MethodInfo_t ** <API key>() { return &<API key>; } inline void <API key>(MethodInfo_t * value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline MethodInfo_t * <API key>() const { return <API key>; } inline MethodInfo_t ** <API key>() { return &<API key>; } inline void <API key>(MethodInfo_t * value) { <API key> = value; <API key>((&<API key>), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.<API key> struct <API key> : public <API key> { public: // System.String System.Text.RegularExpressions.<API key>::regexInput String_t* ___regexInput_17; // System.String System.Text.RegularExpressions.<API key>::regexPattern String_t* ___regexPattern_18; // System.TimeSpan System.Text.RegularExpressions.<API key>::matchTimeout TimeSpan_t881159249 ___matchTimeout_19; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___regexInput_17)); } inline String_t* get_regexInput_17() const { return ___regexInput_17; } inline String_t** <API key>() { return &___regexInput_17; } inline void set_regexInput_17(String_t* value) { ___regexInput_17 = value; <API key>((&___regexInput_17), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___regexPattern_18)); } inline String_t* get_regexPattern_18() const { return ___regexPattern_18; } inline String_t** <API key>() { return &___regexPattern_18; } inline void set_regexPattern_18(String_t* value) { ___regexPattern_18 = value; <API key>((&___regexPattern_18), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___matchTimeout_19)); } inline TimeSpan_t881159249 get_matchTimeout_19() const { return ___matchTimeout_19; } inline TimeSpan_t881159249 * <API key>() { return &___matchTimeout_19; } inline void set_matchTimeout_19(TimeSpan_t881159249 value) { ___matchTimeout_19 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexNode struct <API key> : public RuntimeObject { public: // System.Int32 System.Text.RegularExpressions.RegexNode::_type int32_t ____type_0; // System.Collections.Generic.List`1<System.Text.RegularExpressions.RegexNode> System.Text.RegularExpressions.RegexNode::_children List_1_t1470514689 * ____children_1; // System.String System.Text.RegularExpressions.RegexNode::_str String_t* ____str_2; // System.Char System.Text.RegularExpressions.RegexNode::_ch Il2CppChar ____ch_3; // System.Int32 System.Text.RegularExpressions.RegexNode::_m int32_t ____m_4; // System.Int32 System.Text.RegularExpressions.RegexNode::_n int32_t ____n_5; // System.Text.RegularExpressions.RegexOptions System.Text.RegularExpressions.RegexNode::_options int32_t ____options_6; // System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexNode::_next <API key> * ____next_7; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____type_0)); } inline int32_t get__type_0() const { return ____type_0; } inline int32_t* <API key>() { return &____type_0; } inline void set__type_0(int32_t value) { ____type_0 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____children_1)); } inline List_1_t1470514689 * get__children_1() const { return ____children_1; } inline List_1_t1470514689 ** <API key>() { return &____children_1; } inline void set__children_1(List_1_t1470514689 * value) { ____children_1 = value; <API key>((&____children_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____str_2)); } inline String_t* get__str_2() const { return ____str_2; } inline String_t** <API key>() { return &____str_2; } inline void set__str_2(String_t* value) { ____str_2 = value; <API key>((&____str_2), value); } inline static int32_t get_offset_of__ch_3() { return static_cast<int32_t>(offsetof(<API key>, ____ch_3)); } inline Il2CppChar get__ch_3() const { return ____ch_3; } inline Il2CppChar* <API key>() { return &____ch_3; } inline void set__ch_3(Il2CppChar value) { ____ch_3 = value; } inline static int32_t get_offset_of__m_4() { return static_cast<int32_t>(offsetof(<API key>, ____m_4)); } inline int32_t get__m_4() const { return ____m_4; } inline int32_t* get_address_of__m_4() { return &____m_4; } inline void set__m_4(int32_t value) { ____m_4 = value; } inline static int32_t get_offset_of__n_5() { return static_cast<int32_t>(offsetof(<API key>, ____n_5)); } inline int32_t get__n_5() const { return ____n_5; } inline int32_t* get_address_of__n_5() { return &____n_5; } inline void set__n_5(int32_t value) { ____n_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____options_6)); } inline int32_t get__options_6() const { return ____options_6; } inline int32_t* <API key>() { return &____options_6; } inline void set__options_6(int32_t value) { ____options_6 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____next_7)); } inline <API key> * get__next_7() const { return ____next_7; } inline <API key> ** <API key>() { return &____next_7; } inline void set__next_7(<API key> * value) { ____next_7 = value; <API key>((&____next_7), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexParser struct <API key> : public RuntimeObject { public: // System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexParser::_stack <API key> * ____stack_0; // System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexParser::_group <API key> * ____group_1; // System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexParser::_alternation <API key> * ____alternation_2; // System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexParser::_concatenation <API key> * ____concatenation_3; // System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexParser::_unit <API key> * ____unit_4; // System.String System.Text.RegularExpressions.RegexParser::_pattern String_t* ____pattern_5; // System.Int32 System.Text.RegularExpressions.RegexParser::_currentPos int32_t ____currentPos_6; // System.Globalization.CultureInfo System.Text.RegularExpressions.RegexParser::_culture <API key> * ____culture_7; // System.Int32 System.Text.RegularExpressions.RegexParser::_autocap int32_t ____autocap_8; // System.Int32 System.Text.RegularExpressions.RegexParser::_capcount int32_t ____capcount_9; // System.Int32 System.Text.RegularExpressions.RegexParser::_captop int32_t ____captop_10; // System.Int32 System.Text.RegularExpressions.RegexParser::_capsize int32_t ____capsize_11; // System.Collections.Hashtable System.Text.RegularExpressions.RegexParser::_caps <API key> * ____caps_12; // System.Collections.Hashtable System.Text.RegularExpressions.RegexParser::_capnames <API key> * ____capnames_13; // System.Int32[] System.Text.RegularExpressions.RegexParser::_capnumlist <API key>* ____capnumlist_14; // System.Collections.Generic.List`1<System.String> System.Text.RegularExpressions.RegexParser::_capnamelist List_1_t3319525431 * ____capnamelist_15; // System.Text.RegularExpressions.RegexOptions System.Text.RegularExpressions.RegexParser::_options int32_t ____options_16; // System.Collections.Generic.List`1<System.Text.RegularExpressions.RegexOptions> System.Text.RegularExpressions.RegexParser::_optionsStack List_1_t1564920337 * ____optionsStack_17; // System.Boolean System.Text.RegularExpressions.RegexParser::_ignoreNextParen bool <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____stack_0)); } inline <API key> * get__stack_0() const { return ____stack_0; } inline <API key> ** <API key>() { return &____stack_0; } inline void set__stack_0(<API key> * value) { ____stack_0 = value; <API key>((&____stack_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____group_1)); } inline <API key> * get__group_1() const { return ____group_1; } inline <API key> ** <API key>() { return &____group_1; } inline void set__group_1(<API key> * value) { ____group_1 = value; <API key>((&____group_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____alternation_2)); } inline <API key> * get__alternation_2() const { return ____alternation_2; } inline <API key> ** <API key>() { return &____alternation_2; } inline void set__alternation_2(<API key> * value) { ____alternation_2 = value; <API key>((&____alternation_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____concatenation_3)); } inline <API key> * <API key>() const { return ____concatenation_3; } inline <API key> ** <API key>() { return &____concatenation_3; } inline void <API key>(<API key> * value) { ____concatenation_3 = value; <API key>((&____concatenation_3), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____unit_4)); } inline <API key> * get__unit_4() const { return ____unit_4; } inline <API key> ** <API key>() { return &____unit_4; } inline void set__unit_4(<API key> * value) { ____unit_4 = value; <API key>((&____unit_4), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____pattern_5)); } inline String_t* get__pattern_5() const { return ____pattern_5; } inline String_t** <API key>() { return &____pattern_5; } inline void set__pattern_5(String_t* value) { ____pattern_5 = value; <API key>((&____pattern_5), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____currentPos_6)); } inline int32_t get__currentPos_6() const { return ____currentPos_6; } inline int32_t* <API key>() { return &____currentPos_6; } inline void set__currentPos_6(int32_t value) { ____currentPos_6 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____culture_7)); } inline <API key> * get__culture_7() const { return ____culture_7; } inline <API key> ** <API key>() { return &____culture_7; } inline void set__culture_7(<API key> * value) { ____culture_7 = value; <API key>((&____culture_7), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____autocap_8)); } inline int32_t get__autocap_8() const { return ____autocap_8; } inline int32_t* <API key>() { return &____autocap_8; } inline void set__autocap_8(int32_t value) { ____autocap_8 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capcount_9)); } inline int32_t get__capcount_9() const { return ____capcount_9; } inline int32_t* <API key>() { return &____capcount_9; } inline void set__capcount_9(int32_t value) { ____capcount_9 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____captop_10)); } inline int32_t get__captop_10() const { return ____captop_10; } inline int32_t* <API key>() { return &____captop_10; } inline void set__captop_10(int32_t value) { ____captop_10 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capsize_11)); } inline int32_t get__capsize_11() const { return ____capsize_11; } inline int32_t* <API key>() { return &____capsize_11; } inline void set__capsize_11(int32_t value) { ____capsize_11 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____caps_12)); } inline <API key> * get__caps_12() const { return ____caps_12; } inline <API key> ** <API key>() { return &____caps_12; } inline void set__caps_12(<API key> * value) { ____caps_12 = value; <API key>((&____caps_12), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capnames_13)); } inline <API key> * get__capnames_13() const { return ____capnames_13; } inline <API key> ** <API key>() { return &____capnames_13; } inline void set__capnames_13(<API key> * value) { ____capnames_13 = value; <API key>((&____capnames_13), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capnumlist_14)); } inline <API key>* get__capnumlist_14() const { return ____capnumlist_14; } inline <API key>** <API key>() { return &____capnumlist_14; } inline void set__capnumlist_14(<API key>* value) { ____capnumlist_14 = value; <API key>((&____capnumlist_14), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capnamelist_15)); } inline List_1_t3319525431 * get__capnamelist_15() const { return ____capnamelist_15; } inline List_1_t3319525431 ** <API key>() { return &____capnamelist_15; } inline void set__capnamelist_15(List_1_t3319525431 * value) { ____capnamelist_15 = value; <API key>((&____capnamelist_15), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____options_16)); } inline int32_t get__options_16() const { return ____options_16; } inline int32_t* <API key>() { return &____options_16; } inline void set__options_16(int32_t value) { ____options_16 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____optionsStack_17)); } inline List_1_t1564920337 * <API key>() const { return ____optionsStack_17; } inline List_1_t1564920337 ** <API key>() { return &____optionsStack_17; } inline void <API key>(List_1_t1564920337 * value) { ____optionsStack_17 = value; <API key>((&____optionsStack_17), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; struct <API key> { public: // System.Byte[] System.Text.RegularExpressions.RegexParser::_category <API key>* ____category_19; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____category_19)); } inline <API key>* get__category_19() const { return ____category_19; } inline <API key>** <API key>() { return &____category_19; } inline void set__category_19(<API key>* value) { ____category_19 = value; <API key>((&____category_19), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexTree struct <API key> : public RuntimeObject { public: // System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexTree::_root <API key> * ____root_0; // System.Collections.Hashtable System.Text.RegularExpressions.RegexTree::_caps <API key> * ____caps_1; // System.Int32[] System.Text.RegularExpressions.RegexTree::_capnumlist <API key>* ____capnumlist_2; // System.Collections.Hashtable System.Text.RegularExpressions.RegexTree::_capnames <API key> * ____capnames_3; // System.String[] System.Text.RegularExpressions.RegexTree::_capslist <API key>* ____capslist_4; // System.Text.RegularExpressions.RegexOptions System.Text.RegularExpressions.RegexTree::_options int32_t ____options_5; // System.Int32 System.Text.RegularExpressions.RegexTree::_captop int32_t ____captop_6; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____root_0)); } inline <API key> * get__root_0() const { return ____root_0; } inline <API key> ** <API key>() { return &____root_0; } inline void set__root_0(<API key> * value) { ____root_0 = value; <API key>((&____root_0), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____caps_1)); } inline <API key> * get__caps_1() const { return ____caps_1; } inline <API key> ** <API key>() { return &____caps_1; } inline void set__caps_1(<API key> * value) { ____caps_1 = value; <API key>((&____caps_1), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capnumlist_2)); } inline <API key>* get__capnumlist_2() const { return ____capnumlist_2; } inline <API key>** <API key>() { return &____capnumlist_2; } inline void set__capnumlist_2(<API key>* value) { ____capnumlist_2 = value; <API key>((&____capnumlist_2), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capnames_3)); } inline <API key> * get__capnames_3() const { return ____capnames_3; } inline <API key> ** <API key>() { return &____capnames_3; } inline void set__capnames_3(<API key> * value) { ____capnames_3 = value; <API key>((&____capnames_3), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____capslist_4)); } inline <API key>* get__capslist_4() const { return ____capslist_4; } inline <API key>** <API key>() { return &____capslist_4; } inline void set__capslist_4(<API key>* value) { ____capslist_4 = value; <API key>((&____capslist_4), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____options_5)); } inline int32_t get__options_5() const { return ____options_5; } inline int32_t* <API key>() { return &____options_5; } inline void set__options_5(int32_t value) { ____options_5 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____captop_6)); } inline int32_t get__captop_6() const { return ____captop_6; } inline int32_t* <API key>() { return &____captop_6; } inline void set__captop_6(int32_t value) { ____captop_6 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.ArrayConverter struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.ByteConverter struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ComponentModel.ComponentConverter struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: // System.String System.Diagnostics.<API key>::logFileName String_t* ___logFileName_12; // System.Boolean System.Diagnostics.<API key>::assertUiEnabled bool <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___logFileName_12)); } inline String_t* get_logFileName_12() const { return ___logFileName_12; } inline String_t** <API key>() { return &___logFileName_12; } inline void set_logFileName_12(String_t* value) { ___logFileName_12 = value; <API key>((&___logFileName_12), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; struct <API key> { public: // System.Boolean System.Diagnostics.<API key>::OnWin32 bool ___OnWin32_9; // System.String System.Diagnostics.<API key>::MonoTracePrefix String_t* <API key>; // System.String System.Diagnostics.<API key>::MonoTraceFile String_t* ___MonoTraceFile_11; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___OnWin32_9)); } inline bool get_OnWin32_9() const { return ___OnWin32_9; } inline bool* <API key>() { return &___OnWin32_9; } inline void set_OnWin32_9(bool value) { ___OnWin32_9 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline String_t* <API key>() const { return <API key>; } inline String_t** <API key>() { return &<API key>; } inline void <API key>(String_t* value) { <API key> = value; <API key>((&<API key>), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___MonoTraceFile_11)); } inline String_t* <API key>() const { return ___MonoTraceFile_11; } inline String_t** <API key>() { return &___MonoTraceFile_11; } inline void <API key>(String_t* value) { ___MonoTraceFile_11 = value; <API key>((&___MonoTraceFile_11), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key>/ElementHandler struct <API key> : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: // System.Diagnostics.EventLog System.Diagnostics.<API key>::event_log <API key> * ___event_log_9; // System.String System.Diagnostics.<API key>::name String_t* ___name_10; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___event_log_9)); } inline <API key> * get_event_log_9() const { return ___event_log_9; } inline <API key> ** <API key>() { return &___event_log_9; } inline void set_event_log_9(<API key> * value) { ___event_log_9 = value; <API key>((&___event_log_9), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___name_10)); } inline String_t* get_name_10() const { return ___name_10; } inline String_t** <API key>() { return &___name_10; } inline void set_name_10(String_t* value) { ___name_10 = value; <API key>((&___name_10), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: // System.IO.TextWriter System.Diagnostics.<API key>::writer <API key> * ___writer_9; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___writer_9)); } inline <API key> * get_writer_9() const { return ___writer_9; } inline <API key> ** <API key>() { return &___writer_9; } inline void set_writer_9(<API key> * value) { ___writer_9 = value; <API key>((&___writer_9), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.<API key> struct <API key> : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.NoParamDelegate struct <API key> : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Text.RegularExpressions.RegexLWCGCompiler struct <API key> : public <API key> { public: public: }; struct <API key> { public: // System.Int32 System.Text.RegularExpressions.RegexLWCGCompiler::_regexCount int32_t ____regexCount_56; // System.Type[] System.Text.RegularExpressions.RegexLWCGCompiler::_paramTypes <API key>* ____paramTypes_57; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____regexCount_56)); } inline int32_t get__regexCount_56() const { return ____regexCount_56; } inline int32_t* <API key>() { return &____regexCount_56; } inline void set__regexCount_56(int32_t value) { ____regexCount_56 = value; } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ____paramTypes_57)); } inline <API key>* get__paramTypes_57() const { return ____paramTypes_57; } inline <API key>** <API key>() { return &____paramTypes_57; } inline void set__paramTypes_57(<API key>* value) { ____paramTypes_57 = value; <API key>((&____paramTypes_57), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifndef <API key> #define <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Diagnostics.<API key> struct <API key> : public <API key> { public: // System.Text.StringBuilder System.Diagnostics.<API key>::strBldr StringBuilder_t * ___strBldr_10; // System.Xml.XmlTextWriter System.Diagnostics.<API key>::xmlBlobWriter <API key> * ___xmlBlobWriter_11; // System.Boolean System.Diagnostics.<API key>::<API key> bool <API key>; public: inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___strBldr_10)); } inline StringBuilder_t * get_strBldr_10() const { return ___strBldr_10; } inline StringBuilder_t ** <API key>() { return &___strBldr_10; } inline void set_strBldr_10(StringBuilder_t * value) { ___strBldr_10 = value; <API key>((&___strBldr_10), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, ___xmlBlobWriter_11)); } inline <API key> * <API key>() const { return ___xmlBlobWriter_11; } inline <API key> ** <API key>() { return &___xmlBlobWriter_11; } inline void <API key>(<API key> * value) { ___xmlBlobWriter_11 = value; <API key>((&___xmlBlobWriter_11), value); } inline static int32_t <API key>() { return static_cast<int32_t>(offsetof(<API key>, <API key>)); } inline bool <API key>() const { return <API key>; } inline bool* <API key>() { return &<API key>; } inline void <API key>(bool value) { <API key> = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // <API key> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[10] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), 0, }; extern const <API key> <API key> = { sizeof (Capture_t2232016050), -1, 0, 0 }; extern const int32_t <API key>[3] = { Capture_t2232016050::<API key>(), Capture_t2232016050::<API key>(), Capture_t2232016050::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[19] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>)+ sizeof (RuntimeObject), sizeof(<API key>), 0, 0 }; extern const int32_t <API key>[4] = { <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[57] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[56] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[7] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (RegexFC_t4283085439), -1, 0, 0 }; extern const int32_t <API key>[3] = { RegexFC_t4283085439::get_offset_of__cc_0(), RegexFC_t4283085439::<API key>(), RegexFC_t4283085439::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (Group_t2468205786), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[5] = { <API key>::<API key>(), Group_t2468205786::<API key>(), Group_t2468205786::<API key>(), Group_t2468205786::<API key>(), Group_t2468205786::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[11] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (Match_t3408321083), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[10] = { <API key>::<API key>(), Match_t3408321083::<API key>(), Match_t3408321083::<API key>(), Match_t3408321083::<API key>(), Match_t3408321083::<API key>(), Match_t3408321083::<API key>(), Match_t3408321083::<API key>(), Match_t3408321083::<API key>(), Match_t3408321083::<API key>(), Match_t3408321083::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[9] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[4] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[8] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::get_offset_of__ch_3(), <API key>::get_offset_of__m_4(), <API key>::get_offset_of__n_5(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t <API key>[11] = { <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[20] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[19] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), 0, <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[7] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[10] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), sizeof(Il2CppMethodPointer), 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), sizeof(Il2CppMethodPointer), 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { 0, -1, 0, 0 }; extern const <API key> <API key> = { 0, -1, 0, 0 }; extern const <API key> <API key> = { 0, -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t <API key>[4] = { <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[7] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[7] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t <API key>[9] = { <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, }; extern const <API key> <API key> = { sizeof (Switch_t4228844028), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[6] = { Switch_t4228844028::<API key>(), Switch_t4228844028::<API key>(), Switch_t4228844028::<API key>(), Switch_t4228844028::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[4] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[7] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), sizeof(<API key>) }; extern const int32_t <API key>[9] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>() | <API key>, <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[8] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t <API key>[8] = { <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[5] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[5] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[5] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), sizeof(Il2CppMethodPointer), 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[5] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[6] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>)+ sizeof (RuntimeObject), -1, 0, 0 }; extern const int32_t <API key>[2] = { <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), <API key>::<API key>() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[4] = { <API key>::get_offset_of_Yes_0(), <API key>::get_offset_of_No_1(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[3] = { <API key>::<API key>(), <API key>::<API key>(), <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, sizeof(<API key>), 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; extern const <API key> <API key> = { sizeof (<API key>), -1, 0, 0 }; extern const int32_t <API key>[1] = { <API key>::<API key>(), }; #ifdef __clang__ #pragma clang diagnostic pop #endif
# Makefile # Part of the template for ThiefLib script modules # CUSTOMIZE to the short name of your module. MODULE_NAME = SampleModule # CUSTOMIZE to the platform you are building from (Windows is i686-w64-mingw32). HOST = x86_64-linux-gnu # This should not change; it is the Dark Engine's platform. TARGET = i686-w64-mingw32 # CUSTOMIZE to the location of the ThiefLib headers and archives. THIEFLIBDIR = ../ # CUSTOMIZE to include only the game(s) you want to build for. default: thief1 thief2 # CUSTOMIZE to list your scripts' headers. SCRIPT_HEADERS = \ SampleScript.hh include $(THIEFLIBDIR)/module.mk
#ifndef <API key> #define <API key> #include <level.h> void simple_generator(Level *lvl) ; #endif /* <API key> */
package uk.co.threeonefour.level9j.ptr; import uk.co.threeonefour.basics.lang.PrimitiveUtils; /** * Used to emulate a C pointer. Basically a pointer into an array of unsigned shorts. * * @author pauli */ public class UnsignedShortPtr extends IntPtr { private static final long serialVersionUID = 1L; /** * Create a named pointer. * * @param name * the name of the array; mainly used for debugging and tracking instances * @param array * the array being wrapped * @param offset * the offset into the given array */ public UnsignedShortPtr(String name, int[] array, int offset) { super(name, array, offset); } /** * Dereference. Equivalent to *ptr = value; * * @param value * the value to store */ @Override public void put(int value) { array[index] = PrimitiveUtils.asUnsignedShort(value); } /** * Dereference with offset. Equivalent to *(ptr + offset) = value; * * @param offset * the offset into the array from the current index * @param value * the value to store */ @Override public void put(int offset, int value) { array[index + offset] = PrimitiveUtils.asUnsignedShort(value); } /** * Dereference with post increment. Equivalent to *ptr++ = value; * * @param value * the value to store */ @Override public void putPostIncr(int value) { array[index] = PrimitiveUtils.asUnsignedShort(value); index++; } /** * @return an IntPtr copy of this object */ @Override public UnsignedShortPtr copy() { return new UnsignedShortPtr(name, array, index); } }
// Type definitions for Angular JS 1.3+ <reference path="../jquery/jquery.d.ts" /> declare var angular: ng.IAngularStatic; // Support for painless dependency injection interface Function { $inject?: string[]; } // Support AMD require declare module 'angular' { export = angular; } // ng module (angular.js) declare module ng { // not directly implemented, but ensures that constructed class implements $get interface <API key> { new (...args: any[]): IServiceProvider; } interface <API key> { (...args: any[]): IServiceProvider; } // All service providers extend this interface interface IServiceProvider { $get: any; } interface <API key> { strictDi?: boolean; } // AngularStatic interface IAngularStatic { bind(context: any, fn: Function, ...args: any[]): Function; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: string, modules?: string, config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: string, modules?: Function, config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: string, modules?: string[], config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: JQuery, modules?: string, config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: JQuery, modules?: Function, config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: JQuery, modules?: string[], config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: Element, modules?: string, config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: Element, modules?: Function, config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: Element, modules?: string[], config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: Document, modules?: string, config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: Document, modules?: Function, config?: <API key>): auto.IInjectorService; /** * Use this function to manually start up angular application. * * @param element DOM element which is the root of angular application. * @param modules An array of modules to load into the application. * Each item in the array should be the name of a predefined module or a (DI annotated) * function that will be invoked by the injector as a run block. * @param config an object for defining configuration options for the application. The following keys are supported: * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. */ bootstrap(element: Document, modules?: string[], config?: <API key>): auto.IInjectorService; /** * Creates a deep copy of source, which should be an object or an array. * * - If no destination is supplied, a copy of the object or array is created. * - If a destination is provided, all of its elements (for array) or properties (for objects) are deleted and then all elements/properties from the source are copied to it. * - If source is not an object or array (inc. null and undefined), source is returned. * - If source is identical to 'destination' an exception will be thrown. * * @param source The source that will be used to make a copy. Can be any type, including primitives, null, and undefined. * @param destination Destination into which the source is copied. If provided, must be of the same type as source. */ copy<T>(source: T, destination?: T): T; /** * Wraps a raw DOM element or HTML string as a jQuery element. * * If jQuery is available, angular.element is an alias for the jQuery function. If jQuery is not available, angular.element delegates to Angular's built-in subset of jQuery, called "jQuery lite" or "jqLite." */ element: <API key>; equals(value1: any, value2: any): boolean; extend(destination: any, ...sources: any[]): any; /** * Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional. * * It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method. * * @param obj Object to iterate over. * @param iterator Iterator function. * @param context Object to become context (this) for the iterator function. */ forEach<T>(obj: T[], iterator: (value: T, key: number) => any, context?: any): any; /** * Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional. * * It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method. * * @param obj Object to iterate over. * @param iterator Iterator function. * @param context Object to become context (this) for the iterator function. */ forEach<T>(obj: { [index: string]: T; }, iterator: (value: T, key: string) => any, context?: any): any; /** * Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional. * * It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method. * * @param obj Object to iterate over. * @param iterator Iterator function. * @param context Object to become context (this) for the iterator function. */ forEach(obj: any, iterator: (value: any, key: any) => any, context?: any): any; fromJson(json: string): any; identity(arg?: any): any; injector(modules?: any[]): auto.IInjectorService; isArray(value: any): boolean; isDate(value: any): boolean; isDefined(value: any): boolean; isElement(value: any): boolean; isFunction(value: any): boolean; isNumber(value: any): boolean; isObject(value: any): boolean; isString(value: any): boolean; isUndefined(value: any): boolean; lowercase(str: string): string; /** * The angular.module is a global place for creating, registering and retrieving Angular modules. All modules (angular core or 3rd party) that should be available to an application must be registered using this mechanism. * * When passed two or more arguments, a new module is created. If passed only one argument, an existing module (the name passed as the first argument to module) is retrieved. * * @param name The name of the module to create or retrieve. * @param requires The names of modules this module depends on. If specified then new module is being created. If unspecified then the module is being retrieved for further configuration. * @param configFn Optional configuration function for the module. */ module( name: string, requires?: string[], configFn?: Function): IModule; noop(...args: any[]): void; reloadWithDebugInfo(): void; toJson(obj: any, pretty?: boolean): string; uppercase(str: string): string; version: { full: string; major: number; minor: number; dot: number; codeName: string; }; } // Module interface IModule { animation(name: string, animationFactory: Function): IModule; animation(name: string, <API key>: any[]): IModule; animation(object: Object): IModule; /** * Use this method to register work which needs to be performed on module loading. * * @param configFn Execute this function on module load. Useful for service configuration. */ config(configFn: Function): IModule; /** * Use this method to register work which needs to be performed on module loading. * * @param <API key> Execute this function on module load. Useful for service configuration. */ config(<API key>: any[]): IModule; /** * Register a constant service, such as a string, a number, an array, an object or a function, with the $injector. Unlike value it can be injected into a module configuration function (see config) and it cannot be overridden by an Angular decorator. * * @param name The name of the constant. * @param value The constant value. */ constant(name: string, value: any): IModule; constant(object: Object): IModule; /** * The $controller service is used by Angular to create new controllers. * * This provider allows controller registration via the register method. * * @param name Controller name, or an object map of controllers where the keys are the names and the values are the constructors. * @param <API key> Controller constructor fn (optionally decorated with DI annotations in the array notation). */ controller(name: string, <API key>: Function): IModule; /** * The $controller service is used by Angular to create new controllers. * * This provider allows controller registration via the register method. * * @param name Controller name, or an object map of controllers where the keys are the names and the values are the constructors. * @param <API key> Controller constructor fn (optionally decorated with DI annotations in the array notation). */ controller(name: string, <API key>: any[]): IModule; controller(object: Object): IModule; /** * Register a new directive with the compiler. * * @param name Name of the directive in camel-case (i.e. ngBind which will match as ng-bind) * @param directiveFactory An injectable directive factory function. */ directive(name: string, directiveFactory: IDirectiveFactory): IModule; /** * Register a new directive with the compiler. * * @param name Name of the directive in camel-case (i.e. ngBind which will match as ng-bind) * @param directiveFactory An injectable directive factory function. */ directive(name: string, <API key>: any[]): IModule; directive(object: Object): IModule; /** * Register a service factory, which will be called to return the service instance. This is short for registering a service where its provider consists of only a $get property, which is the given service factory function. You should use $provide.factory(getFn) if you do not need to configure your service in a provider. * * @param name The name of the instance. * @param $getFn The $getFn for the instance creation. Internally this is a short hand for $provide.provider(name, {$get: $getFn}). */ factory(name: string, $getFn: Function): IModule; /** * Register a service factory, which will be called to return the service instance. This is short for registering a service where its provider consists of only a $get property, which is the given service factory function. You should use $provide.factory(getFn) if you do not need to configure your service in a provider. * * @param name The name of the instance. * @param <API key> The $getFn for the instance creation. Internally this is a short hand for $provide.provider(name, {$get: $getFn}). */ factory(name: string, <API key>: any[]): IModule; factory(object: Object): IModule; filter(name: string, <API key>: Function): IModule; filter(name: string, <API key>: any[]): IModule; filter(object: Object): IModule; provider(name: string, <API key>: <API key>): IModule; provider(name: string, <API key>: <API key>): IModule; provider(name: string, <API key>: any[]): IModule; provider(name: string, providerObject: IServiceProvider): IModule; provider(object: Object): IModule; /** * Run blocks are the closest thing in Angular to the main method. A run block is the code which needs to run to kickstart the application. It is executed after all of the service have been configured and the injector has been created. Run blocks typically contain code which is hard to unit-test, and for this reason should be declared in isolated modules, so that they can be ignored in the unit-tests. */ run(<API key>: Function): IModule; /** * Run blocks are the closest thing in Angular to the main method. A run block is the code which needs to run to kickstart the application. It is executed after all of the service have been configured and the injector has been created. Run blocks typically contain code which is hard to unit-test, and for this reason should be declared in isolated modules, so that they can be ignored in the unit-tests. */ run(<API key>: any[]): IModule; service(name: string, serviceConstructor: Function): IModule; service(name: string, <API key>: any[]): IModule; service(object: Object): IModule; /** * Register a value service with the $injector, such as a string, a number, an array, an object or a function. This is short for registering a service where its provider's $get property is a factory function that takes no arguments and returns the value service. Value services are similar to constant services, except that they cannot be injected into a module configuration function (see config) but they can be overridden by an Angular decorator. * * @param name The name of the instance. * @param value The value. */ value(name: string, value: any): IModule; value(object: Object): IModule; // Properties name: string; requires: string[]; } // Attributes interface IAttributes { [name: string]: any; /** * Adds the CSS class value specified by the classVal parameter to the * element. If animations are enabled then an animation will be triggered * for the class addition. */ $addClass(classVal: string): void; /** * Removes the CSS class value specified by the classVal parameter from the * element. If animations are enabled then an animation will be triggered for * the class removal. */ $removeClass(classVal: string): void; /** * Set DOM element attribute value. */ $set(key: string, value: any): void; /** * Observes an interpolated attribute. * The observer function will be invoked once during the next $digest * following compilation. The observer is then invoked whenever the * interpolated value changes. */ $observe(name: string, fn: (value?: any) => any): Function; /** * A map of DOM element attribute names to the normalized name. This is needed * to do reverse lookup from normalized name back to actual name. */ $attr: Object; } interface IFormController { [name: string]: any; $pristine: boolean; $dirty: boolean; $valid: boolean; $invalid: boolean; $submitted: boolean; $error: any; $addControl(control: ng.INgModelController): void; $removeControl(control: ng.INgModelController): void; $setValidity(validationErrorKey: string, isValid: boolean, control: ng.INgModelController): void; $setDirty(): void; $setPristine(): void; $commitViewValue(): void; $rollbackViewValue(): void; $setSubmitted(): void; $setUntouched(): void; } // NgModelController interface INgModelController { $render(): void; $setValidity(validationErrorKey: string, isValid: boolean): void; // Documentation states viewValue and modelValue to be a string but other // types do work and it's common to use them. $setViewValue(value: any, trigger?: string): void; $setPristine(): void; $validate(): void; $setTouched(): void; $setUntouched(): void; $rollbackViewValue(): void; $commitViewValue(): void; $isEmpty(value: any): boolean; $viewValue: any; $modelValue: any; $parsers: IModelParser[]; $formatters: IModelFormatter[]; $viewChangeListeners: <API key>[]; $error: any; $name: string; $touched: boolean; $untouched: boolean; $validators: IModelValidators; $asyncValidators: <API key>; $pending: any; $pristine: boolean; $dirty: boolean; $valid: boolean; $invalid: boolean; } interface IModelValidators { [index: string]: (...args: any[]) => boolean; } interface <API key> { [index: string]: (...args: any[]) => ng.IPromise<boolean>; } interface IModelParser { (value: any): any; } interface IModelFormatter { (value: any): any; } interface <API key> { (): void; } interface IRootScopeService { [index: string]: any; $apply(): any; $apply(exp: string): any; $apply(exp: (scope: IScope) => any): any; $applyAsync(): any; $applyAsync(exp: string): any; $applyAsync(exp: (scope: IScope) => any): any; $broadcast(name: string, ...args: any[]): IAngularEvent; $destroy(): void; $digest(): void; $emit(name: string, ...args: any[]): IAngularEvent; $eval(): any; $eval(expression: string, locals?: Object): any; $eval(expression: (scope: IScope) => any, locals?: Object): any; $evalAsync(): void; $evalAsync(expression: string): void; $evalAsync(expression: (scope: IScope) => any): void; // Defaults to false by the implementation checking strategy $new(isolate?: boolean, parent?: IScope): IScope; /** * Listens on events of a given type. See $emit for discussion of event life cycle. * * The event listener function format is: function(event, args...). * * @param name Event name to listen on. * @param listener Function to call when the event is emitted. */ $on(name: string, listener: (event: IAngularEvent, ...args: any[]) => any): Function; $watch(watchExpression: string, listener?: string, objectEquality?: boolean): Function; $watch(watchExpression: string, listener?: (newValue: any, oldValue: any, scope: IScope) => any, objectEquality?: boolean): Function; $watch(watchExpression: (scope: IScope) => any, listener?: string, objectEquality?: boolean): Function; $watch(watchExpression: (scope: IScope) => any, listener?: (newValue: any, oldValue: any, scope: IScope) => any, objectEquality?: boolean): Function; $watchCollection(watchExpression: string, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; $watchCollection(watchExpression: (scope: IScope) => any, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; $watchGroup(watchExpressions: any[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; $watchGroup(watchExpressions: { (scope: IScope): any }[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; $parent: IScope; $root: IRootScopeService; $id: number; // Hidden members $$isolateBindings: any; $$phase: any; } interface IScope extends IRootScopeService { } interface IAngularEvent { /** * the scope on which the event was $emit-ed or $broadcast-ed. */ targetScope: IScope; /** * the scope that is currently handling the event. Once the event propagates through the scope hierarchy, this property is set to null. */ currentScope: IScope; /** * name of the event. */ name: string; /** * calling stopPropagation function will cancel further event propagation (available only for events that were $emit-ed). */ stopPropagation?: Function; /** * calling preventDefault sets defaultPrevented flag to true. */ preventDefault: Function; /** * true if preventDefault was called. */ defaultPrevented: boolean; } // WindowService interface IWindowService extends Window { [key: string]: any; } // BrowserService // TODO undocumented, so we need to get it from the source code interface IBrowserService { [key: string]: any; } // TimeoutService interface ITimeoutService { (func: Function, delay?: number, invokeApply?: boolean): IPromise<any>; cancel(promise: IPromise<any>): boolean; } // IntervalService interface IIntervalService { (func: Function, delay: number, count?: number, invokeApply?: boolean): IPromise<any>; cancel(promise: IPromise<any>): boolean; } // AngularProvider interface IAnimateProvider { /** * Registers a new injectable animation factory function. * * @param name The name of the animation. * @param factory The factory function that will be executed to return the animation object. */ register(name: string, factory: () => <API key>): void; /** * Gets and/or sets the CSS class expression that is checked when performing an animation. * * @param expression The className expression which will be checked against all animations. * @returns The current CSS className expression value. If null then there is no expression value. */ classNameFilter(expression?: RegExp): RegExp; } /** * The animation object which contains callback functions for each event that is expected to be animated. */ interface <API key> { eventFn(element: Node, doneFn: () => void): Function; } // FilterService interface IFilterService { (name: string): Function; } interface IFilterProvider extends IServiceProvider { register(name: string, filterFactory: Function): IServiceProvider; } // LocaleService interface ILocaleService { id: string; // These are not documented // Check angular's i18n files for exemples NUMBER_FORMATS: <API key>; DATETIME_FORMATS: <API key>; pluralCat: (num: any) => string; } interface <API key> { DECIMAL_SEP: string; GROUP_SEP: string; PATTERNS: <API key>[]; CURRENCY_SYM: string; } interface <API key> { minInt: number; minFrac: number; maxFrac: number; posPre: string; posSuf: string; negPre: string; negSuf: string; gSize: number; lgSize: number; } interface <API key> { MONTH: string[]; SHORTMONTH: string[]; DAY: string[]; SHORTDAY: string[]; AMPMS: string[]; medium: string; short: string; fullDate: string; longDate: string; mediumDate: string; shortDate: string; mediumTime: string; shortTime: string; } // LogService interface ILogService { debug: ILogCall; error: ILogCall; info: ILogCall; log: ILogCall; warn: ILogCall; } interface ILogProvider { debugEnabled(): boolean; debugEnabled(enabled: boolean): ILogProvider; } // We define this as separate interface so we can reopen it later for // the ngMock module. interface ILogCall { (...args: any[]): void; } // ParseService interface IParseService { (expression: string): ICompiledExpression; } interface IParseProvider { logPromiseWarnings(): boolean; logPromiseWarnings(value: boolean): IParseProvider; unwrapPromises(): boolean; unwrapPromises(value: boolean): IParseProvider; } interface ICompiledExpression { (context: any, locals?: any): any; // If value is not provided, undefined is gonna be used since the implementation // does not check the parameter. Let's force a value for consistency. If consumer // whants to undefine it, pass the undefined value explicitly. assign(context: any, value: any): any; } interface ILocationService { absUrl(): string; hash(): string; hash(newHash: string): ILocationService; host(): string; /** * Return path of current url */ path(): string; /** * Change path when called with parameter and return $location. * Note: Path should always begin with forward slash (/), this method will add the forward slash if it is missing. * * @param path New path */ path(path: string): ILocationService; port(): number; protocol(): string; replace(): ILocationService; /** * Return search part (as object) of current url */ search(): any; /** * Change search part when called with parameter and return $location. * * @param search When called with a single argument the method acts as a setter, setting the search component of $location to the specified value. * * If the argument is a hash object containing an array of values, these values will be encoded as duplicate search parameters in the url. */ search(search: any): ILocationService; /** * Change search part when called with parameter and return $location. * * @param search New search params * @param paramValue If search is a string or a Number, then paramValue will override only a single search property. If paramValue is null, the property specified via the first argument will be deleted. If paramValue is an array, it will override the property of the search component of $location specified via the first argument. If paramValue is true, the property specified via the first argument will be added with no value nor trailing equal sign. */ search(search: string, paramValue: string|number|string[]|boolean): ILocationService; state(): any; state(state: any): ILocationService; url(): string; url(url: string): ILocationService; } interface ILocationProvider extends IServiceProvider { hashPrefix(): string; hashPrefix(prefix: string): ILocationProvider; html5Mode(): boolean; // Documentation states that parameter is string, but // implementation tests it as boolean, which makes more sense // since this is a toggler html5Mode(active: boolean): ILocationProvider; } // DocumentService interface IDocumentService extends IAugmentedJQuery {} // <API key> interface <API key> { (exception: Error, cause?: string): void; } // RootElementService interface IRootElementService extends JQuery {} interface IQResolveReject<T> { (): void; (value: T): void; } interface IQService { new (resolver: (resolve: IQResolveReject<any>) => any): IPromise<any>; new (resolver: (resolve: IQResolveReject<any>, reject: IQResolveReject<any>) => any): IPromise<any>; new <T>(resolver: (resolve: IQResolveReject<T>, reject: IQResolveReject<any>) => any): IPromise<T>; /** * Combines multiple promises into a single promise that is resolved when all of the input promises are resolved. * * Returns a single promise that will be resolved with an array/hash of values, each value corresponding to the promise at the same index/key in the promises array/hash. If any of the promises is resolved with a rejection, this resulting promise will be rejected with the same rejection value. * * @param promises An array or hash of promises. */ all(promises: IPromise<any>[]|{ [id: string]: IPromise<any>; }): IPromise<any[]>; /** * Creates a Deferred object which represents a task which will finish in the future. */ defer<T>(): IDeferred<T>; /** * Creates a promise that is resolved as rejected with the specified reason. This api should be used to forward rejection in a chain of promises. If you are dealing with the last promise in a promise chain, you don't need to worry about it. * * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of reject as the throw keyword in JavaScript. This also means that if you "catch" an error via a promise error callback and you want to forward the error to the promise derived from the current promise, you have to "rethrow" the error by returning a rejection constructed via reject. * * @param reason Constant, message, exception or an object representing the rejection reason. */ reject(reason?: any): IPromise<any>; /** * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted. * * @param value Value or a promise */ when<T>(value: IPromise<T>|T): IPromise<T>; /** * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted. * * @param value Value or a promise */ when(): IPromise<void>; } interface IPromise<T> { /** * Regardless of when the promise was or will be resolved or rejected, then calls one of the success or error callbacks asynchronously as soon as the result is available. The callbacks are called with a single argument: the result or rejection reason. Additionally, the notify callback may be called zero or more times to provide a progress indication, before the promise is resolved or rejected. * * This method returns a new promise which is resolved or rejected via the return value of the successCallback, errorCallback. It also notifies via the return value of the notifyCallback method. The promise can not be resolved or rejected from the notifyCallback method. */ then<TResult>(successCallback: (promiseValue: T) => IHttpPromise<TResult>|IPromise<TResult>|TResult, errorCallback?: (reason: any) => any, notifyCallback?: (state: any) => any): IPromise<TResult>; /** * Shorthand for promise.then(null, errorCallback) */ catch<TResult>(onRejected: (reason: any) => IHttpPromise<TResult>|IPromise<TResult>|TResult): IPromise<TResult>; /** * Allows you to observe either the fulfillment or rejection of a promise, but to do so without modifying the final value. This is useful to release resources or do some clean-up that needs to be done whether the promise was rejected or resolved. See the full specification for more information. * * Because finally is a reserved word in JavaScript and reserved keywords are not supported as property names by ES3, you'll need to invoke the method like promise['finally'](callback) to make your code IE8 and Android 2.x compatible. */ finally<TResult>(finallyCallback: () => any): IPromise<TResult>; } interface IDeferred<T> { resolve(value?: T): void; reject(reason?: any): void; notify(state?: any): void; promise: IPromise<T>; } // AnchorScrollService interface <API key> { (): void; yOffset: any; } interface <API key> extends IServiceProvider { <API key>(): void; } // CacheFactoryService interface <API key> { // Lets not foce the optionsMap to have the capacity member. Even though // it's the ONLY option considered by the implementation today, a consumer // might find it useful to associate some other options to the cache object. //(cacheId: string, optionsMap?: { capacity: number; }): CacheObject; (cacheId: string, optionsMap?: { capacity: number; }): ICacheObject; // Methods bellow are not documented info(): any; get(cacheId: string): ICacheObject; } interface ICacheObject { info(): { id: string; size: number; // Not garanteed to have, since it's a non-mandatory option //capacity: number; }; put(key: string, value?: any): void; get(key: string): any; remove(key: string): void; removeAll(): void; destroy(): void; } // CompileService interface ICompileService { (element: string, transclude?: ITranscludeFunction, maxPriority?: number): <API key>; (element: Element, transclude?: ITranscludeFunction, maxPriority?: number): <API key>; (element: JQuery, transclude?: ITranscludeFunction, maxPriority?: number): <API key>; } interface ICompileProvider extends IServiceProvider { directive(name: string, directiveFactory: Function): ICompileProvider; // Undocumented, but it is there... directive(directivesMap: any): ICompileProvider; <API key>(): RegExp; <API key>(regexp: RegExp): ICompileProvider; <API key>(): RegExp; <API key>(regexp: RegExp): ICompileProvider; debugInfoEnabled(enabled?: boolean): any; } interface <API key> { // Let's hint but not force cloneAttachFn's signature (clonedElement?: JQuery, scope?: IScope): any; } // This corresponds to the "publicLinkFn" returned by $compile. interface <API key> { (scope: IScope, cloneAttachFn?: <API key>): IAugmentedJQuery; } // This corresponds to $transclude (and also the transclude function passed to link). interface ITranscludeFunction { // If the scope is provided, then the cloneAttachFn must be as well. (scope: IScope, cloneAttachFn: <API key>): IAugmentedJQuery; // If one argument is provided, then it's assumed to be the cloneAttachFn. (cloneAttachFn?: <API key>): IAugmentedJQuery; } // ControllerService interface IControllerService { // Although the documentation doesn't state this, locals are optional (<API key>: Function, locals?: any): any; (controllerName: string, locals?: any): any; } interface IControllerProvider extends IServiceProvider { register(name: string, <API key>: Function): void; register(name: string, <API key>: any[]): void; allowGlobals(): void; } interface IHttpService { /** * Object describing the request to be made and how it should be processed. */ <T>(config: IRequestConfig): IHttpPromise<T>; /** * Shortcut method to perform GET request. * * @param url Relative or absolute URL specifying the destination of the request * @param config Optional configuration object */ get<T>(url: string, config?: <API key>): IHttpPromise<T>; /** * Shortcut method to perform DELETE request. * * @param url Relative or absolute URL specifying the destination of the request * @param config Optional configuration object */ delete<T>(url: string, config?: <API key>): IHttpPromise<T>; /** * Shortcut method to perform HEAD request. * * @param url Relative or absolute URL specifying the destination of the request * @param config Optional configuration object */ head<T>(url: string, config?: <API key>): IHttpPromise<T>; /** * Shortcut method to perform JSONP request. * * @param url Relative or absolute URL specifying the destination of the request * @param config Optional configuration object */ jsonp<T>(url: string, config?: <API key>): IHttpPromise<T>; /** * Shortcut method to perform POST request. * * @param url Relative or absolute URL specifying the destination of the request * @param data Request content * @param config Optional configuration object */ post<T>(url: string, data: any, config?: <API key>): IHttpPromise<T>; /** * Shortcut method to perform PUT request. * * @param url Relative or absolute URL specifying the destination of the request * @param data Request content * @param config Optional configuration object */ put<T>(url: string, data: any, config?: <API key>): IHttpPromise<T>; /** * Runtime equivalent of the $httpProvider.defaults property. Allows configuration of default headers, withCredentials as well as request and response transformations. */ defaults: IRequestConfig; /** * Array of config objects for currently pending requests. This is primarily meant to be used for debugging purposes. */ pendingRequests: any[]; } interface <API key> { /** * {Object.<string|Object>} * Map of strings or objects which will be turned to ?key1=value1&key2=value2 after the url. If the value is not a string, it will be JSONified. */ params?: any; /** * Map of strings or functions which return strings representing HTTP headers to send to the server. If the return value of a function is null, the header will not be sent. */ headers?: any; /** * Name of HTTP header to populate with the XSRF token. */ xsrfHeaderName?: string; /** * Name of cookie containing the XSRF token. */ xsrfCookieName?: string; /** * {boolean|Cache} * If true, a default $http cache will be used to cache the GET request, otherwise if a cache instance built with $cacheFactory, this cache will be used for caching. */ cache?: any; withCredentials?: boolean; /** * {string|Object} * Data to be sent as the request message data. */ data?: any; /** * {function(data, headersGetter)|Array.<function(data, headersGetter)>} * Transform function or an array of such functions. The transform function takes the http request body and headers and returns its transformed (typically serialized) version. */ transformRequest?: any; /** * {function(data, headersGetter)|Array.<function(data, headersGetter)>} * Transform function or an array of such functions. The transform function takes the http response body and headers and returns its transformed (typically deserialized) version. */ transformResponse?: any; /** * {number|Promise} * Timeout in milliseconds, or promise that should abort the request when resolved. */ timeout?: any; /** * See requestType. */ responseType?: string; } interface IRequestConfig extends <API key> { /** * HTTP method (e.g. 'GET', 'POST', etc) */ method: string; /** * Absolute or relative URL of the resource that is being requested. */ url: string; } interface IHttpHeadersGetter { (): { [name: string]: string; }; (headerName: string): string; } interface <API key><T> { (data: T, status: number, headers: IHttpHeadersGetter, config: IRequestConfig): void; } interface <API key><T> { data?: T; status?: number; headers?: (headerName: string) => string; config?: IRequestConfig; statusText?: string; } interface IHttpPromise<T> extends IPromise<T> { success(callback: <API key><T>): IHttpPromise<T>; error(callback: <API key><any>): IHttpPromise<T>; then<TResult>(successCallback: (response: <API key><T>) => IPromise<TResult>|TResult, errorCallback?: (response: <API key><any>) => any): IPromise<TResult>; } interface <API key> { xsrfCookieName?: string; xsrfHeaderName?: string; withCredentials?: boolean; headers?: { common?: any; post?: any; put?: any; patch?: any; } } interface IHttpProvider extends IServiceProvider { defaults: <API key>; interceptors: any[]; useApplyAsync(): boolean; useApplyAsync(value: boolean): IHttpProvider; } // HttpBackendService // You should never need to use this service directly. interface IHttpBackendService { // XXX Perhaps define callback signature in the future (method: string, url: string, post?: any, callback?: Function, headers?: any, timeout?: number, withCredentials?: boolean): void; } // InterpolateService interface IInterpolateService { (text: string, mustHaveExpression?: boolean, trustedContext?: string, allOrNothing?: boolean): <API key>; endSymbol(): string; startSymbol(): string; } interface <API key> { (context: any): string; } interface <API key> extends IServiceProvider { startSymbol(): string; startSymbol(value: string): <API key>; endSymbol(): string; endSymbol(value: string): <API key>; } // <API key> interface <API key> extends ICacheObject {} // SCEService interface ISCEService { getTrusted(type: string, mayBeTrusted: any): any; getTrustedCss(value: any): any; getTrustedHtml(value: any): any; getTrustedJs(value: any): any; <API key>(value: any): any; getTrustedUrl(value: any): any; parse(type: string, expression: string): (context: any, locals: any) => any; parseAsCss(expression: string): (context: any, locals: any) => any; parseAsHtml(expression: string): (context: any, locals: any) => any; parseAsJs(expression: string): (context: any, locals: any) => any; parseAsResourceUrl(expression: string): (context: any, locals: any) => any; parseAsUrl(expression: string): (context: any, locals: any) => any; trustAs(type: string, value: any): any; trustAsHtml(value: any): any; trustAsJs(value: any): any; trustAsResourceUrl(value: any): any; trustAsUrl(value: any): any; isEnabled(): boolean; } // SCEProvider interface ISCEProvider extends IServiceProvider { enabled(value: boolean): void; } // SCEDelegateService interface ISCEDelegateService { getTrusted(type: string, mayBeTrusted: any): any; trustAs(type: string, value: any): any; valueOf(value: any): any; } // SCEDelegateProvider interface <API key> extends IServiceProvider { <API key>(blacklist: any[]): void; <API key>(whitelist: any[]): void; } interface <API key> { /** * Downloads a template using $http and, upon success, stores the * contents inside of $templateCache. * * If the HTTP request fails or the response data of the HTTP request is * empty then a $compile error will be thrown (unless * {ignoreRequestError} is set to true). * * @param tpl The template URL. * @param ignoreRequestError Whether or not to ignore the exception * when the request fails or the template is * empty. * * @return A promise whose value is the template content. */ (tpl: string, ignoreRequestError?: boolean): IPromise<string>; /** * total amount of pending template requests being downloaded. * @type {number} */ <API key>: number; } // Directive // see http://docs.angularjs.org/api/ng.$compileProvider#directive interface IDirectiveFactory { (...args: any[]): IDirective; } interface IDirectiveLinkFn { ( scope: IScope, instanceElement: IAugmentedJQuery, instanceAttributes: IAttributes, controller: any, transclude: ITranscludeFunction ): void; } interface IDirectivePrePost { pre?: IDirectiveLinkFn; post?: IDirectiveLinkFn; } interface IDirectiveCompileFn { ( templateElement: IAugmentedJQuery, templateAttributes: IAttributes, transclude: ITranscludeFunction ): IDirectivePrePost; } interface IDirective { compile?: IDirectiveCompileFn; controller?: any; controllerAs?: string; bindToController?: boolean; link?: IDirectiveLinkFn; name?: string; priority?: number; replace?: boolean; require?: any; restrict?: string; scope?: any; template?: any; templateUrl?: any; terminal?: boolean; transclude?: any; } interface <API key> extends JQueryStatic { (selector: string, context?: any): IAugmentedJQuery; (element: Element): IAugmentedJQuery; (object: {}): IAugmentedJQuery; (elementArray: Element[]): IAugmentedJQuery; (object: JQuery): IAugmentedJQuery; (func: Function): IAugmentedJQuery; (array: any[]): IAugmentedJQuery; (): IAugmentedJQuery; } interface IAugmentedJQuery extends JQuery { // TODO: events, how to define? //$destroy find(selector: string): IAugmentedJQuery; find(element: any): IAugmentedJQuery; find(obj: JQuery): IAugmentedJQuery; controller(): any; controller(name: string): any; injector(): any; scope(): IScope; isolateScope(): IScope; inheritedData(key: string, value: any): JQuery; inheritedData(obj: { [key: string]: any; }): JQuery; inheritedData(key?: string): any; } // AnimateService interface IAnimateService { addClass(element: JQuery, className: string, done?: Function): void; enter(element: JQuery, parent: JQuery, after: JQuery, done?: Function): void; leave(element: JQuery, done?: Function): void; move(element: JQuery, parent: JQuery, after: JQuery, done?: Function): void; removeClass(element: JQuery, className: string, done?: Function): void; } // AUTO module (angular.js) export module auto { // InjectorService interface IInjectorService { annotate(fn: Function): string[]; annotate(<API key>: any[]): string[]; get(name: string): any; has(name: string): boolean; instantiate(typeConstructor: Function, locals?: any): any; invoke(<API key>: any[]): any; invoke(func: Function, context?: any, locals?: any): any; } // ProvideService interface IProvideService { // Documentation says it returns the registered instance, but actual // implementation does not return anything. // constant(name: string, value: any): any; /** * Register a constant service, such as a string, a number, an array, an object or a function, with the $injector. Unlike value it can be injected into a module configuration function (see config) and it cannot be overridden by an Angular decorator. * * @param name The name of the constant. * @param value The constant value. */ constant(name: string, value: any): void; /** * Register a service decorator with the $injector. A service decorator intercepts the creation of a service, allowing it to override or modify the behaviour of the service. The object returned by the decorator may be the original service, or a new service object which replaces or wraps and delegates to the original service. * * @param name The name of the service to decorate. * @param decorator This function will be invoked when the service needs to be instantiated and should return the decorated service instance. The function is called using the injector.invoke method and is therefore fully injectable. Local injection arguments: * * $delegate - The original service instance, which can be monkey patched, configured, decorated or delegated to. */ decorator(name: string, decorator: Function): void; /** * Register a service decorator with the $injector. A service decorator intercepts the creation of a service, allowing it to override or modify the behaviour of the service. The object returned by the decorator may be the original service, or a new service object which replaces or wraps and delegates to the original service. * * @param name The name of the service to decorate. * @param <API key> This function will be invoked when the service needs to be instantiated and should return the decorated service instance. The function is called using the injector.invoke method and is therefore fully injectable. Local injection arguments: * * $delegate - The original service instance, which can be monkey patched, configured, decorated or delegated to. */ decorator(name: string, <API key>: any[]): void; factory(name: string, <API key>: Function): ng.IServiceProvider; factory(name: string, <API key>: any[]): ng.IServiceProvider; provider(name: string, provider: ng.IServiceProvider): ng.IServiceProvider; provider(name: string, <API key>: Function): ng.IServiceProvider; service(name: string, constructor: Function): ng.IServiceProvider; value(name: string, value: any): ng.IServiceProvider; } } }
package Av4::Utils; use strict; use warnings; use Cache::Memcached::Fast; use Digest::MD5 qw/md5_hex/; use Log::Log4perl (); use Av4::Ansi; require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw(get_logger ansify); our %ANSI; BEGIN { for (qw<x r g y b p c w>) { $ANSI{"&$_"} = Av4::Ansi::ansify("&$_"); $ANSI{"^$_"} = Av4::Ansi::ansify("^$_"); my $u = uc $_; $ANSI{"&$u"} = Av4::Ansi::ansify("&$u"); $ANSI{"^$u"} = Av4::Ansi::ansify("^$u"); } $ANSI{'&^'} = Av4::Ansi::ansify('&^'); $ANSI{'^&'} = Av4::Ansi::ansify('^&'); } our $memcached_hits = 0; our $memcached_misses = 0; our $memoized_hits = 0; our $memoized_misses = 0; our $memd = new Cache::Memcached::Fast( { servers => [ { address => '127.0.0.1:11211', } ], namespace => 'av4:', connect_timeout => 0.2, io_timeout => 0.2, compress_ratio => 0.9, } ); sub get_logger { my ($subroutine) = ( caller(1) )[3]; return Log::Log4perl->get_logger($subroutine); } our %ansify_cache; sub ansify { my ( $str, $status ) = @_; if ( length $str <= 4096 ) { if ( exists $ansify_cache{$str} ) { $memoized_hits++; return $ansify_cache{$str}; } $memoized_misses++; $ansify_cache{$str} = Av4::Ansi::ansify( $str, $status ); return $ansify_cache{$str}; } my $md5 = md5_hex($str); my $hit = $memd->get($md5); if ($hit) { $memcached_hits++; return $hit; } $memcached_misses++; warn "Memcached MISS on $str"; my $ansified = Av4::Ansi::ansify( $str, $status ); $memd->set( $md5, $ansified ); return $ansified; } 1; __END__ # sub ansify { # 15 8149 31.1ms 8149 2.39s &Av4::Ansi::ansify; # sub ansify { # 32 32693 37.3ms my ($str,$status) = @_; # 33 32693 170ms 32693 69.1ms my $md5 = md5_hex($str); # 34 32693 1.28s 32693 1.14s my $hit = $memd->get($md5); # 35 32693 113ms return $hit if $hit; # 36 397 1.74ms 397 105ms my $ansified = Av4::Ansi::ansify($str,$status); # 37 397 20.1ms 397 18.0ms $memd->set($md5,$ansified); # 38 397 1.53ms return $ansified;
package net.<API key>.accounting.data; import java.util.List; import net.<API key>.data.AdapterInterface; public interface ListsInterface { boolean setGuid(java.lang.String value) throws Exception; java.lang.String getGuid(); boolean setDisplayName(java.lang.String value) throws Exception; java.lang.String getDisplayName(); boolean setSqlQuery(java.lang.String value) throws Exception; java.lang.String getSqlQuery(); boolean setEditUrl(java.lang.String value) throws Exception; java.lang.String getEditUrl(); boolean setAddUrl(java.lang.String value) throws Exception; java.lang.String getAddUrl(); <T extends ListFiltersRow> List<T> loadFilters(AdapterInterface adapter, Class biz, boolean force) throws Exception; <T extends SecurablesRow> T loadSecurable(AdapterInterface adapter, Class biz, boolean force) throws Exception; }
#!/usr/bin/env python # -*- coding: utf8 -*- # autocomplit.py # 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., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. import config import ffcgi from base import bd_sql from xslt_proc import xml_xsl_proc import os, sys, inspect sys.stderr = sys.stdout from user import user #print "Content-Type: text/html; charset=utf8\n\n" import libs PLGPATH = "plugins2" def make_plugin_xml(plg_name): xml = "" plg = libs.load_module_name(plg_name) if plg: for k in dir(plg): if k[:2]!="__": xml += "/"+k #xml += "<%s>%s</%s>"% (k, plg[k], k) return xml class plugin_manager(): def __init__(self): xml = user[3]+"""<plugins>plugin_manager</plugins>""" txml = "" for root, dirs, files in os.walk(PLGPATH): for f in files: if f[-3:]==".py" and f!="__init__.py": plg_path = root + "/" + f plg_name = plg_path.replace("/", ".")[len(PLGPATH)+1:-3] txml += "<row><plg_name>%s</plg_name><plg_path>%s</plg_path><title>%s</title></row>"% (plg_name, plg_path, make_plugin_xml(plg_name) ) txml = "<plugin_manager>%s</plugin_manager>" % txml xml = "<doc>%s</doc>"%(xml+txml) xsl = "data/af-web.xsl" libs.save_xml(xml, __file__ ) print xml_xsl_proc(xml,fxsl=xsl) def main(): return 0 if __name__ == '__main__': main()
package se.kth.speech.coin.tangrams.iristk.events; import java.awt.Color; import java.net.URL; import java.util.Arrays; import java.util.List; import java.util.function.Function; import iristk.util.Record; import se.kth.speech.URLFilenameFactory; import se.kth.speech.coin.tangrams.content.IconImages; import se.kth.speech.coin.tangrams.content.ImageSize; import se.kth.speech.coin.tangrams.content.<API key>; /** * @author <a href="mailto:errantlinguist+github@gmail.com">Todd Shore</a> * @since 23 Mar 2017 * */ public final class <API key> extends Record { public static final class Datum extends Record { // NO_UCD (use private) @RecordField(name = "color") private int color; private String resourceName; @RecordField(name = "size") private String size; public Datum() { // Default constructor is required for JSON (un-)marshalling } public Datum(final <API key>.Datum <API key>) { // NO_UCD (use private) setResourceName(<API key>.getResourceName()); setColor(<API key>.getColor()); setSize(<API key>.getSize()); } /** * @return the color */ public Color getColor() { return new Color(color, true); } /** * @return the resourceName */ @RecordField(name = "resourceName") public String getResourceName() { return resourceName; } /** * @return the size */ public ImageSize getSize() { return ImageSize.valueOf(size); } public void setColor(final Color color) { this.color = color.getRGB(); } @RecordField(name = "resourceName") public void setResourceName(final String resourceName) { this.resourceName = resourceName; } public void setResourceName(final URL resourceLoc) { setResourceName(<API key>.apply(resourceLoc)); } public void setSize(final ImageSize size) { this.size = size.toString(); } public <API key>.Datum toHashable() { return new <API key>.Datum(getResourceName(), getColor(), getSize()); } } private static final Function<URL, String> <API key> = new URLFilenameFactory() .andThen(IconImages.<API key>()); private List<Datum> data; private int <API key>; public <API key>() { // Default constructor is required for JSON (un-)marshalling } public <API key>(final <API key> imgVizInfo) { final List<<API key>.Datum> imgVizInfoData = imgVizInfo.getData(); final List<Datum> data = Arrays.asList(imgVizInfoData.stream().map(Datum::new).toArray(Datum[]::new)); setData(data); <API key>(imgVizInfo.<API key>()); } public <API key>(final List<Datum> data, final int <API key>) { setData(data); <API key>(<API key>); } /** * @return the data */ @RecordField(name = "data") public List<Datum> getData() { return data; } /** * @return the <API key> */ @RecordField(name = "<API key>") public int <API key>() { return <API key>; } /** * @param data * the data to set */ @RecordField(name = "data") public void setData(final List<Datum> data) { this.data = data; } /** * @param <API key> * the <API key> to set */ @RecordField(name = "<API key>") public void <API key>(final int <API key>) { this.<API key> = <API key>; } public <API key> toHashable() { return new <API key>( Arrays.asList(data.stream().map(Datum::toHashable).toArray(<API key>.Datum[]::new)), <API key>); } }
package cli_test import ( "os" "github.com/eris-ltd/mint-client/Godeps/_workspace/src/github.com/codegangsta/cli" ) func Example() { app := cli.NewApp() app.Name = "todo" app.Usage = "task list on the command line" app.Commands = []cli.Command{ { Name: "add", Aliases: []string{"a"}, Usage: "add a task to the list", Action: func(c *cli.Context) { println("added task: ", c.Args().First()) }, }, { Name: "complete", Aliases: []string{"c"}, Usage: "complete a task on the list", Action: func(c *cli.Context) { println("completed task: ", c.Args().First()) }, }, } app.Run(os.Args) } func ExampleSubcommand() { app := cli.NewApp() app.Name = "say" app.Commands = []cli.Command{ { Name: "hello", Aliases: []string{"hi"}, Usage: "use it to see a description", Description: "This is how we describe hello the function", Subcommands: []cli.Command{ { Name: "english", Aliases: []string{"en"}, Usage: "sends a greeting in english", Description: "greets someone in english", Flags: []cli.Flag{ cli.StringFlag{ Name: "name", Value: "Bob", Usage: "Name of the person to greet", }, }, Action: func(c *cli.Context) { println("Hello, ", c.String("name")) }, }, { Name: "spanish", Aliases: []string{"sp"}, Usage: "sends a greeting in spanish", Flags: []cli.Flag{ cli.StringFlag{ Name: "surname", Value: "Jones", Usage: "Surname of the person to greet", }, }, Action: func(c *cli.Context) { println("Hola, ", c.String("surname")) }, }, { Name: "french", Aliases: []string{"fr"}, Usage: "sends a greeting in french", Flags: []cli.Flag{ cli.StringFlag{ Name: "nickname", Value: "Stevie", Usage: "Nickname of the person to greet", }, }, Action: func(c *cli.Context) { println("Bonjour, ", c.String("nickname")) }, }, }, }, { Name: "bye", Usage: "says goodbye", Action: func(c *cli.Context) { println("bye") }, }, } app.Run(os.Args) }
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="styles.css"> <title>Xzone News</title> </head> <!--cursor: crosshair; <body style="text-color: #FFF"> <!--DO NOT CHANGE THE LIST <div id = "header"> <ul style> <li><img src="images/xzonelogo.png""></li> <li><a href="/">Home</a></li> <li><a href="/news">News</a></li> <li><a href="/forum">Forum</a></li> <li><a href="/wiki">Wiki</a></li> </ul> <span> </span> </div> <h1 style="color:white">Dev Log</a></h1> <table> <tr> <th scope="col"> log</th> <th scope="col"> Version/date</th> </tr> <tr> <td>Website Online</td> <td>6/29/16 v1.0</td> </tr> </table> </body> <html>
import org.junit.Test; import org.junit.Before; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public class Assignment07Tests { private ArrayQueue<String> arrayQueue; private LinkedQueue<String> linkedQueue; @Before public void setup() { arrayQueue = new ArrayQueue<String>(); linkedQueue = new LinkedQueue<String>(); } @Test public void <API key>() { assertFalse(arrayQueue.offer(null)); } @Test public void <API key>() { assertFalse(linkedQueue.offer(null)); } @Test public void <API key>() { assertTrue(arrayQueue.offer("A")); } @Test public void <API key>() { assertTrue(linkedQueue.offer("A")); } @Test public void <API key>() { assertTrue(arrayQueue.offer("A")); assertTrue(arrayQueue.offer("B")); } @Test public void <API key>() { assertTrue(linkedQueue.offer("A")); assertTrue(linkedQueue.offer("B")); } @Test public void <API key>() { arrayQueue.offer("A"); arrayQueue.offer("B"); assertFalse(arrayQueue.offer("A")); } @Test public void <API key>() { linkedQueue.offer("A"); linkedQueue.offer("B"); assertFalse(linkedQueue.offer("A")); } @Test public void <API key>() { arrayQueue.offer("A"); arrayQueue.offer("B"); assertFalse(arrayQueue.offer("B")); } @Test public void <API key>() { linkedQueue.offer("A"); linkedQueue.offer("B"); assertFalse(linkedQueue.offer("B")); } @Test public void <API key>() { arrayQueue.offer("A"); arrayQueue.offer("B"); arrayQueue.offer("C"); assertFalse(arrayQueue.offer("B")); } @Test public void <API key>() { linkedQueue.offer("A"); linkedQueue.offer("B"); linkedQueue.offer("C"); assertFalse(linkedQueue.offer("B")); } @Test public void <API key>() { arrayQueue.offer("1"); arrayQueue.offer("2"); arrayQueue.offer("3"); arrayQueue.offer("4"); arrayQueue.offer("5"); arrayQueue.offer("6"); arrayQueue.offer("7"); arrayQueue.offer("8"); arrayQueue.offer("9"); arrayQueue.offer("10"); assertFalse(arrayQueue.offer("11")); } @Test public void <API key>() { assertNull(arrayQueue.poll()); } @Test public void <API key>() { assertNull(linkedQueue.poll()); } @Test public void <API key>() { arrayQueue.offer("A"); assertEquals("A", arrayQueue.poll()); assertNull(arrayQueue.poll()); } @Test public void <API key>() { linkedQueue.offer("A"); assertEquals("A", linkedQueue.poll()); assertNull(linkedQueue.poll()); } @Test public void <API key>() { arrayQueue.offer("A"); arrayQueue.offer("B"); arrayQueue.offer("C"); assertEquals("A", arrayQueue.poll()); assertEquals("B", arrayQueue.poll()); assertEquals("C", arrayQueue.poll()); assertNull(arrayQueue.poll()); } @Test public void <API key>() { linkedQueue.offer("A"); linkedQueue.offer("B"); linkedQueue.offer("C"); assertEquals("A", linkedQueue.poll()); assertEquals("B", linkedQueue.poll()); assertEquals("C", linkedQueue.poll()); assertNull(linkedQueue.poll()); } @Test public void <API key>() { arrayQueue.offer("A"); assertEquals("A", arrayQueue.poll()); arrayQueue.offer("B"); assertEquals("B", arrayQueue.poll()); assertNull(arrayQueue.poll()); arrayQueue.offer("A"); arrayQueue.offer("B"); assertEquals("A", arrayQueue.poll()); assertTrue(arrayQueue.offer("A")); assertEquals("B", arrayQueue.poll()); assertEquals("A", arrayQueue.poll()); } @Test public void <API key>() { linkedQueue.offer("A"); assertEquals("A", linkedQueue.poll()); linkedQueue.offer("B"); assertEquals("B", linkedQueue.poll()); assertNull(linkedQueue.poll()); linkedQueue.offer("A"); linkedQueue.offer("B"); assertEquals("A", linkedQueue.poll()); assertTrue(linkedQueue.offer("A")); assertEquals("B", linkedQueue.poll()); assertEquals("A", linkedQueue.poll()); } @Test public void <API key>() { arrayQueue.offer("A"); arrayQueue.offer("A"); arrayQueue.poll(); assertNull(arrayQueue.poll()); } @Test public void <API key>() { linkedQueue.offer("A"); linkedQueue.offer("A"); linkedQueue.poll(); assertNull(linkedQueue.poll()); } }
<?php namespace Claroline\CoreBundle\Library\Installation\Updater; class Updater021100 { private $container; private $logger; private $om; private $conn; public function __construct($container) { $this->container = $container; $this->om = $container->get('claroline.persistence.object_manager'); $this->conn = $container->get('doctrine.dbal.default_connection'); } public function postUpdate() { $this->log('Updating default mails layout...'); $repository = $this->om->getRepository('Claroline\CoreBundle\Entity\ContentTranslation'); $frLayout = '<div></div>%content%<div></hr><p>Ce mail vous a été envoyé par %first_name% %last_name%</p>'; $frLayout .= '<p>Powered by %platform_name%</p></div>'; $enLayout = '<div></div>%content%<div></hr><p>This mail was sent to you by %first_name% %last_name%</p>'; $enLayout .= '<p>Powered by %platform_name%</p></div>'; $layout = $this->om->getRepository('ClarolineCoreBundle:Content')->findOneByType('claro_mail_layout'); $layout->setType('claro_mail_layout'); $layout->setContent($enLayout); $repository->translate($layout, 'content', 'fr', $frLayout); $this->om->persist($layout); $this->om->flush(); } public function setLogger($logger) { $this->logger = $logger; } private function log($message) { if ($log = $this->logger) { $log(' ' . $message); } } }
package org.hl7.v3; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "COCT_MT510000UV06.<API key>", propOrder = { "realmCode", "typeId", "templateId", "payor" }) public class <API key> { protected List<CS> realmCode; protected II typeId; protected List<II> templateId; @XmlElement(required = true, nillable = true) protected <API key> payor; @XmlAttribute(name = "nullFlavor") protected List<String> nullFlavor; @XmlAttribute(name = "typeCode", required = true) protected String typeCode; /** * Gets the value of the realmCode property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the realmCode property. * * <p> * For example, to add a new item, do as follows: * <pre> * getRealmCode().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link CS } * * */ public List<CS> getRealmCode() { if (realmCode == null) { realmCode = new ArrayList<CS>(); } return this.realmCode; } /** * typeId * * @return * possible object is * {@link II } * */ public II getTypeId() { return typeId; } /** * typeId * * @param value * allowed object is * {@link II } * */ public void setTypeId(II value) { this.typeId = value; } /** * Gets the value of the templateId property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the templateId property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTemplateId().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link II } * * */ public List<II> getTemplateId() { if (templateId == null) { templateId = new ArrayList<II>(); } return this.templateId; } /** * payor * * @return * possible object is * {@link <API key> } * */ public <API key> getPayor() { return payor; } /** * payor * * @param value * allowed object is * {@link <API key> } * */ public void setPayor(<API key> value) { this.payor = value; } /** * Gets the value of the nullFlavor property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the nullFlavor property. * * <p> * For example, to add a new item, do as follows: * <pre> * getNullFlavor().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getNullFlavor() { if (nullFlavor == null) { nullFlavor = new ArrayList<String>(); } return this.nullFlavor; } /** * typeCode * * @return * possible object is * {@link String } * */ public String getTypeCode() { if (typeCode == null) { return "DIRAUTH"; } else { return typeCode; } } /** * typeCode * * @param value * allowed object is * {@link String } * */ public void setTypeCode(String value) { this.typeCode = value; } }
package se.dykstrom.ronja.engine.core; import se.dykstrom.ronja.common.model.Position; /** * An abstract base class for all finders. */ abstract class AbstractFinder implements Finder { /** * Returns a debug string to display when entering a search method. */ String enter(Position position, int depth) { return "-> " + format(depth) + position.getActiveColor(); } /** * Returns a debug string to display while executing a search method. */ String stay(Position position, int depth) { return "-- " + format(depth) + position.getActiveColor(); } /** * Returns a debug string to display when leaving a search method. */ String leave(Position position, int depth) { return "<- " + format(depth) + position.getActiveColor(); } /** * Formats the given {@code depth} by adding a number of spaces related to the depth to produce a nice indentation. */ private String format(final int depth) { final var format = "%s%" + (((depth - 1) * 2) + 1) + "s"; return String.format(format, depth, ""); } }
import serviceinfo.data as data import unittest import datetime class ServiceTest(unittest.TestCase): def _create_service(self): """ Internal method to create a service object :return: Service object """ service = data.Service() service.servicenumber = 1234 stop1 = data.ServiceStop("ut") stop1.stop_name = "Utrecht Centraal" stop2 = data.ServiceStop("asd") stop2.stop_name = "Amsterdam Centraal" service.stops.append(stop1) service.stops.append(stop2) return (stop1, stop2, service) def <API key>(self): stop1, stop2, service = self._create_service() self.assertEquals(service.get_departure(), stop1) self.assertEquals(service.get_departure().stop_name, stop1.stop_name) self.assertEquals(service.get_departure_str(), "ut") def <API key>(self): stop1, stop2, service = self._create_service() self.assertEquals(service.get_destination(), stop2) self.assertEquals(service.get_destination().stop_name, stop2.stop_name) self.assertEquals(service.get_destination_str(), "asd") def <API key>(self): service = data.Service() service.servicenumber = 1234 service.service_date = datetime.date(year=2015, month=4, day=1) self.assertEquals(service.get_servicedate_str(), "2015-04-01") def test_stop_repr(self): stop = data.ServiceStop("ut") stop.stop_name = "Utrecht Centraal" self.assertEquals(repr(stop), "<ServiceStop @ ut>") def <API key>(self): stop = data.ServiceStop("ledn") stop.<API key> = None stop.<API key> = None self.assertIsNone(stop.<API key>()) stop.<API key> = "9a" stop.<API key> = None self.assertEquals(stop.<API key>(), "9a") stop.<API key> = "9a" stop.<API key> = "8a" self.assertEquals(stop.<API key>(), "8a") def <API key>(self): stop = data.ServiceStop("ledn") stop.<API key> = None stop.<API key> = None self.assertIsNone(stop.<API key>()) stop.<API key> = "9a" stop.<API key> = None self.assertEquals(stop.<API key>(), "9a") stop.<API key> = "9a" stop.<API key> = "8a" self.assertEquals(stop.<API key>(), "8a") def test_service_repr(self): service = data.Service() service.service_id = 999 service.servicenumber = 9876 service.transport_mode = "IC" service.service_date = datetime.date(year=2015, month=4, day=1) stop = data.ServiceStop("ut") stop.stop_name = "Utrecht Centraal" service.stops.append(stop) stop = data.ServiceStop("asd") stop.stop_name = "Amsterdam Centraal" service.stops.append(stop) self.assertEquals(repr(service), "<Service i999 / IC9876-asd @ 2015-04-01 [2 stops]>") if __name__ == '__main__': unittest.main()
class List_C(): def __init__( self, size=0, ): self.size = size self._elements = None def __iter__(self): self._pos = -1 self._search() return self def __next__(self): self._pos += 1 if self._pos < len(self._elements): return self._elements[self._pos] else: raise StopIteration # contract def _search(self): pass def _get_length(self): self._search() if self._elements == None: return 0 return len(self._elements) def _get_elements(self): self._search() return self._elements def __getitem__(self,index): self._search() return self._elements[index] def __len__(self): return self.length length = property(_get_length) elements = property(_get_elements)
#include <stddef.h> enum vga_color { VGA_COLOR_BLACK = 0, VGA_COLOR_BLUE = 1, VGA_COLOR_GREEN = 2, VGA_COLOR_CYAN = 3, VGA_COLOR_RED = 4, VGA_COLOR_MAGENTA = 5, VGA_COLOR_BROWN = 6, <API key> = 7, VGA_COLOR_DARK_GREY = 8, <API key> = 9, <API key> = 10, <API key> = 11, VGA_COLOR_LIGHT_RED = 12, <API key> = 13, <API key> = 14, VGA_COLOR_WHITE = 15, }; void vga_move_cursor(unsigned short pos); void vga_initialize(void); void vga_setcolor(uint8_t color); void vga_putentryat(char c, uint8_t color, size_t x, size_t y); void vga_putchar(char c); void vga_write(const char* data, size_t size); void vga_writestring(const char* data);
namespace ProcessingTools.Documents.Data.Entity.Contracts { using ProcessingTools.Data.Common.Entity.Contracts; public interface <API key> : <API key><DocumentsDbContext> { } }
var util=require('util'); var constants=require('./constants'); var sectionHandler=require('./sectionHandler'); /** * The appSettings section handler. */ function <API key>(){ } util.inherits(<API key>,sectionHandler); <API key>.prototype.getSectionName=function(){ return constants.<API key>; }; <API key>.prototype.parseSection=function(parser,ctx){ var result={ getAppSetting:function(name){ return this[name]; } }; if(parser){ var children=parser.getChildrenParsers(); for(var i=0;i<children.length;i++) { var child=children[i]; var attributes=children[i].getAttributes(); result[attributes['key']]=attributes['value']; } var attrs=parser.getAttributes(); for(var key in attrs){ result[key]=attrs[key]; } } return result; }; <API key>.prototype.process=function(entity, ctx) { var appConfig=ctx.getAppConfiguration(); appConfig.appSettings=entity; }; module.exports=new <API key>();
from __future__ import print_function import re, os, sys, multiprocessing, zipfile, Queue from bs4 import BeautifulSoup import pandas as pd import numpy as np from urlparse import urlparse from etaprogress.progress import ProgressBar #337304 total HTML files, some are actually NOT in either the training or testing set #process_zips = ["./data/0.zip", "./data/1.zip", "./data/2.zip", "./data/3.zip", "./data/4.zip"] process_zips = ["./data/0.zip"] def parseFile(contents, filename, sponsored): nodes = [sponsored, filename] #use lxml parser for faster speed cleaned = BeautifulSoup(contents, "lxml") for anchor in cleaned.findAll('a', href=True): if anchor['href'].startswith("http"): try: parsedurl = urlparse(anchor['href']) parsedurl = parsedurl.netloc.replace("www.", "", 1) parsedurl = re.sub('[^0-9a-zA-Z\.]+', '', parsedurl) #remove non-alphanumeric and non-period literals nodes.append(parsedurl) except ValueError: print("IPv6 URL?") return nodes def addNodes(nodes): for n in nodes: if n not in q: q.append(n) train = pd.read_csv("./data/train.csv", header=0, delimiter=",", quoting=3) sample = pd.read_csv("./data/sampleSubmission.csv", header=0, delimiter=",", quoting=3) print("Starting processing...") q = [] for i, zipFile in enumerate(process_zips): archive = zipfile.ZipFile(zipFile, 'r') file_paths = zipfile.ZipFile.namelist(archive) bar = ProgressBar(len(file_paths), max_width=40) pool = multiprocessing.Pool(processes=multiprocessing.cpu_count()-1 or 1) for k, file_path in enumerate(file_paths): data = archive.read(file_path) openfile = file_path[2:] #filename sponsored = train.loc[train['file'] == openfile] if not sponsored.empty: pool.apply_async(parseFile, args = (data, openfile, int(sponsored['sponsored']), ), callback = addNodes) testing = sample.loc[sample['file'] == openfile] if not testing.empty: pool.apply_async(parseFile, args = (data, openfile, 2, ), callback = addNodes) bar.numerator = k print("Folder:", i, bar, end='\r') sys.stdout.flush() pool.close() pool.join() print() print("Size: ", len(q)) #print("Sponsored pages: ", G.out_degree("SPONSORED")) #print("Normal pages: ", G.out_degree("NOTSPONSORED")) #if G.out_degree("TESTING") != 235917: #print("Error, invalid number of testing nodes.") #if G.out_degree("SPONSORED") + G.out_degree("NOTSPONSORED") != 101107: #print("Error, invalid number of training nodes.")
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict //EN" "http: <html xmlns="http: <head> <title>Manuale Utente di lxnstack</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="../usermanual.css" media="screen"/> <link rel="stylesheet" type="text/css" href="../usermanual-print.css" media="print"/> </head> <body> <div id="navigation"> <ul> <li class="button" onclick="window.location.href='page-6.html'"> <a href="page-6.html">&lt;&lt; indietro</a> </li> <li class="button" onclick="window.location.href='page-8.html'"> <a href="page-8.html">avanti &gt;&gt;</a> </li> </ul> </div> <div id="sidebar"> <div id="sidebar-body"> <p class="button" id="back-to-language" onclick="window.location.href='../usermanual.html'"> <a href="index.html">&lt;&lt; cambia lingua</a> </p> <div id="menu-index"> <ul class="tree-view"> <li class="tree-item"> <a href="page-0.html">Introduzione</a> </li> <li class="tree-item"> <a href="page-1.html">Caricamento dei file</a> </li> <li class="tree-item"> <a href="page-2.html">Acquisizione</a> </li> <li class="tree-item"> <a href="page-3.html">Visualizzazione e Zoom</a> </li> <li class="tree-item"> <a href="page-4.html">Scelta delle immagini da utilizzare</a> </li> <li class="tree-item"> <a href="page-5.html">Allineamento delle immagini</a> </li> <li class="tree-item"> <a href="page-6.html">Darkframe e Flatfield</a> </li> <li class="tree-item" id="current-item"> <a href="page-7.html">Somma delle immagini</a> </li> <li class="tree-item"> <a href="page-8.html">Generazione curve di luce</a> </li> <li class="tree-item"> <a href="page-9.html">Alcuni esempi</a> </li> <li class="tree-item"> <a href="page-10.html">Preferenze</a> </li> <li class="tree-item"> <a href="notes.html">Notes</a> </li> </ul> </div> </div> <div id="sidebar-button"> <p>»</p> <p>I</p> <p>N</p> <p>D</p> <p>I</p> <p>C</p> <p>E</p> <p>»</p> </div> </div> <div id="mainframe"> <p><h1>Somma</h1></p> <p> Per effettuare la somma delle immagini prima di tutto occorre effettuare l'allineamento (vedi <a href="page-5.html">allineamento delle immagini</a>) ed in seguito effettuare la somma cliccando il pulsante 'stack' nella sezione 'Accessori'. </p> <p class="image-box"> <image src="../imgs/tools.png"></image> </p> <p> Verrà quindi mostrata una finestra di dialogo in cui selezionare il tipo di stacking da effettuare: </p> <p class="image-box"> <image src="../imgs/stacking_opt.png"></image> </p> <p> Attualmente sono disponibili i seguenti tipi di stacking: <ul> <li> Media (nativo) : viene calcolata la media (o somma) delle immagini. </li> <li> Mediana : viene calcolata la mediana delle immagini. </li> <li> Sigma-clipping : viene calcolata la media delle immagini, applicando il rigetto dei valori<sup class="note"><a href="notes.html#note_3">[3]</a></sup>. </li> <li> Deviazione Standard (nativo) : viene calcolata la deviazione standard delle immagini. </li> <li> Varianza (nativo) : viene calcolata la varianza delle immagini. </li> <li> Massimo (nativo) : viene restituita un immagine contenente i valori massimi per ogni pixel calcolati su tutte le immagini </li> <li> Minimo (nativo) : viene restituita un immagine contenente i valori minimi per ogni pixel calcolati su tutte le immagini </li> <li> Prodotto (nativo) : viene calcolata la produttoria delle immagini. </li> </ul> </p> <p class="message-box" id="warning"> ATTENZIONE: I metodi 'nativi' utilizzano un algoritmo in grado di lavorare sui dati memorizzati nella RAM, metre gli atri devono necessariamente creare dei file temporanei in una cartella (vedi <a href="page-10.html">impostazioni</a>) che per impostazione predefinita è /tmp/lxnstack. Poiche i calcoli vengono effettuati con numeri a virgola mobile a 32bit o 64bit, i file temporanei possono avere delle dimensioni puittosto elevate. Assicurarsi quindi di avere sufficiente spazio su disco (o sufficiente RAM nel caso di metodi nativi) per portare a termine le operazioni. </p> <p> Ecco un esempio di di media di immagini. </p> <p class="image-box"> <image src="../imgs/averaged.png"></image> </p> <p> Una volta effettuato lo stacking, è possibile modificare i livelli dell'immagine utilizzando il pulsante 'Livelli' nella sezione 'Accessori'. Verrà quindi mostrata la seguente finestra di dialogo </p> <p class="image-box"> <image src="../imgs/levels.png"></image> </p> <p> Nella parte destra viene visualizzato l'istogramma dell'immagine, mentre della parte sinistra si strovano gli strumenti per modificare le curve dell'immagine<sup class="note"><a href="notes.html#note_4">[4]</a></sup>. Se è attivata la sezione 'data clipping', sarà possibile scegliere se 'tagliare' i valori che non rientrano nell'intervallo selezionato ( [0,255] oppure [0,65535] ) oppure 'riscalare' i livelli affinche i valori massimo e minimo rientrino nell'intervallo selezionato. </p> <p> Per capire meglio il funzionamento delle curve, utilizziamo nuovamente la notazione introdotta nella sezione <a href="page-3.html">'visualizzazione e zoom'</a> per descrivere il contrasto, ovvero: sia I la matrice di dimesioni WxHxC che rappresenta l'immagine, dove W e H sono l'altezza e la largezza espresse in pixel e C il numero di componenti colore. Sia poi I(x,y,c) l'elemento di posizione x,y,c e sia F(X) la curva da applicare all'immagine, il risultato dell'operazione sarà una nuova immagine I' i cui elementi saranno I'(x,y,c)=F(I(x,y,c)) per ogni x,y,c. </p> <p> Detti allora A,B,O,M,N dei parametri scelti dall'utente, si possono definire le seguenti curve: <ul> <li> Lineare: F(X) = A+B×X </li> <li> Logaritmica: F(X) = A + B×Log<sub>N</sub>(O + M×X) </li> <li> Potenza : F(X) = A + B×(O + M×X)<sup>N</sup> </li> <li> Esponenziale : F(X) = A + B×N<sup>(O + M×X)</sup> </li> </ul> </p> <p> Di seguito è mostrata invece la precedente immagine a cui è stata però applicata una curva di potenza. </p> <p class="image-box"> <image src="../imgs/levels_mod.png"></image> </p> <p class="image-box"> <image src="../imgs/averaged_mod.png"></image> </p> <p class="message-box" id="warning"> ATTENZIONE: Questo programma non è stato progettato per effettuare image-editing avanzato. La modifica dei livelli serve solo a fornire un immagine migliore possibile per la successiva modifica con altri programmi, in modo da ridurre eventuali artefatti dovuti ad un'elaborazaione troppo spinta. </p> </div> <div class="footpage" id="about"> <a>lxnstack &copy; 2015 Maurizio D'Addona</a> </div> </body> </html>
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { Store, StoreModule } from '@ngrx/store'; import { AppStates } from '../../interfaces'; import { FontDetectorService, <API key>, LocalStorageService, MathService, SocialShareService } from '../../common'; import { <API key> } from '../../test/'; import { AppComponent } from '../app.component'; import { <API key> } from '../../test/translateTesting.module'; import { <API key> } from '../../test/<API key>.module'; import { NO_ERRORS_SCHEMA } from '@angular/core'; describe('AppComponent', () => { let fixture: ComponentFixture<AppComponent>; let component: AppComponent; let store: Store<AppStates>; beforeEach(async(() => { TestBed.<API key>({ imports: [ RouterTestingModule, StoreModule.forRoot({}), <API key>, <API key> ], schemas: [NO_ERRORS_SCHEMA], declarations: [ AppComponent ], providers: [ {provide: FontDetectorService, useValue: {}}, {provide: <API key>, useValue: {}}, {provide: MathService, useValue: {}}, {provide: LocalStorageService, useValue: {}}, {provide: SocialShareService, useClass: <API key>} ] }); fixture = TestBed.createComponent(AppComponent); // fixture.detectChanges(); component = fixture.componentInstance; // store = TestBed.get(Store); // spyOn(store, 'dispatch').and.callThrough(); })); it('ngOnInit(), ngOnDestroy()', () => { component.ngOnInit(); expect(component.<API key>).toBeDefined(); expect(component.<API key>).toBeDefined(); expect(component.<API key>).toBeDefined(); spyOn(component.<API key>, 'unsubscribe'); spyOn(component.<API key>, 'unsubscribe'); spyOn(component.<API key>, 'unsubscribe'); component.ngOnDestroy(); expect(component.<API key>.unsubscribe).toHaveBeenCalled(); expect(component.<API key>.unsubscribe).toHaveBeenCalled(); expect(component.<API key>.unsubscribe).toHaveBeenCalled(); }); });
package org.archive.analyzer.criteria; import java.util.StringTokenizer; import junit.framework.*; import org.archive.analyzer.dictionary.CitiesDictLoader; import org.archive.analyzer.dictionary.CitiesIndexLoader; /** * * @author praso */ public class CitiesTest extends TestCase { public CitiesTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } /** * Test of statisticsInPercent method, of class org.archive.analyzer.criteria.Cities. */ public void testSearch() { System.out.println("search"); String text = " mesto brno praha Blava Opava Krumel Olomouc Martin"; CitiesIndexLoader.getInstance().initialize("cz"); CitiesDictLoader.getInstance().openStreams("cz"); Cities instance = Cities.getInstance(); StringTokenizer stringTokenizer= new StringTokenizer(text); while (stringTokenizer.hasMoreTokens()) { instance.search(stringTokenizer.nextToken()); } System.out.println(instance.statisticsInPercent()); CitiesDictLoader.getInstance().closeStreams(); } }
ActiveAdmin.register Course do index download_links: [:csv, :xml, :json, :ical] do column :avatar do |course| link_to [course] do image_tag(course.avatar.url(:thumb)) end end column :name do |course| "#{course.name} (#{course.id})" end column :start_date column :price column 'Instructor' do |course| course_teacher = course.teachers.first unless course_teacher.blank? teacher = Teacher.find(course_teacher) begin teacher.display_name.force_encoding('UTF-8') rescue link_to 'Unknown' [:admin, teacher] end end end default_actions end action_item only: :show, if: proc { current_admin_user.id == 3 } do link_to "/admin/courses/#{params[:id]}/hide" do unless Course.find(params[:id]).hidden 'Hide Course' else 'Show Course' end end end member_action :hide, method: :get do course = Course.find(params[:id]) course.hidden = !course.hidden course.save redirect_to action: :show, notice: 'Locked!' end controller do if Mime::Type.lookup_by_extension(:ical).nil? Mime::Type.register 'text/calendar', :ical end require 'activeadmin/ical' ActiveAdmin::ResourceDSL.send :include, ActiveAdmin::Ical::DSL ActiveAdmin::Resource.send :include, ActiveAdmin::Ical::Resource ActiveAdmin::Views::PaginatedCollection.add_format :ical ActiveAdmin::ResourceController.send :include, ActiveAdmin::Ical::ResourceController end def ical(options={}, &block) options[:resource] = @resource config.ical_builder = ActiveAdmin::Ical::Builder.new config.resource_class, options, &block end ical do end show do columns do column span: 2 do attributes_table do row :id row :hidden row :avatar do |course| image_tag(course.avatar.url(:thumb)) end row :name row :slug row :price row :description do simple_format course.description end row :syllabus do simple_format course.syllabus end row 'Canvas ID' do |course| canvas_course = CanvasCourses.find_by_course_id(course.id) unless canvas_course.blank? link_to canvas_course.canvas_id, "https://oplerno.instructure.com/courses/#{canvas_course.canvas_id}" else '??' end end end end unless course.teachers.empty? course.teachers.each do |teacher| column do render 'admin/ranking_panel', data: teacher render 'admin/teacher_panel', data: teacher render 'admin/more_courses_panel', data: teacher end end end end <API key> end filter :name filter :start_date #filter :teachers, :collection => Teacher.all.map { |x| ["#{x.first_name} #{x.last_name}", x.id] } form do |f| f.actions f.inputs 'Course Details' do f.input :name f.input :slug f.input :price f.input :description f.input :syllabus f.input :hidden f.input :start_date f.input :teachers, as: :select, input_html: { multiple: true } f.input :avatar, as: :file, required: false end f.actions end end
package Koha::Item; # This file is part of Koha. # Koha is free software; you can redistribute it and/or modify it # (at your option) any later version. # Koha is distributed in the hope that it will be useful, but # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the use Modern::Perl; use Carp; use List::MoreUtils qw(any); use Data::Dumper; use Try::Tiny; use Koha::Database; use Koha::DateUtils qw( dt_from_string ); use C4::Context; use C4::Circulation; use C4::Reserves; use C4::ClassSource; # FIXME We would like to avoid that use C4::Log qw( logaction ); use Koha::Checkouts; use Koha::CirculationRules; use Koha::CoverImages; use Koha::SearchEngine::Indexer; use Koha::Exceptions::Item::Transfer; use Koha::Item::Transfer::Limits; use Koha::Item::Transfers; use Koha::ItemTypes; use Koha::Patrons; use Koha::Plugins; use Koha::Libraries; use Koha::StockRotationItem; use Koha::StockRotationRotas; use base qw(Koha::Object); =head1 NAME Koha::Item - Koha Item object class =head1 API =head2 Class methods =cut =head3 store $item->store; $params can take an optional 'skip_record_index' parameter. If set, the reindexation process will not happen (index_records not called) NOTE: This is a temporary fix to answer a performance issue when lot of items are added (or modified) at the same time. The correct way to fix this is to make the ES reindexation process async. You should not turn it on if you do not understand what it is doing exactly. =cut sub store { my $self = shift; my $params = @_ ? shift : {}; my $log_action = $params->{log_action} # We do not want to oblige callers to pass this value # Dev conveniences vs performance? unless ( $self->biblioitemnumber ) { $self->biblioitemnumber( $self->biblio->biblioitem->biblioitemnumber ); } # See related changes from C4::Items::AddItem unless ( $self->itype ) { $self->itype($self->biblio->biblioitem->itemtype); } my $today = dt_from_string; my $action = 'create'; unless ( $self->in_storage ) { #AddItem unless ( $self->permanent_location ) { $self->permanent_location($self->location); } my $default_location = C4::Context->preference('<API key>'); unless ( $self->location || !$default_location ) { $self->permanent_location( $self->location || $default_location ) unless $self->permanent_location; $self->location($default_location); } unless ( $self-><API key> ) { $self-><API key>($today); } unless ( $self->datelastseen ) { $self->datelastseen($today); } unless ( $self->dateaccessioned ) { $self->dateaccessioned($today); } if ( $self->itemcallnumber or $self->cn_source ) { my $cn_sort = GetClassSort( $self->cn_source, $self->itemcallnumber, "" ); $self->cn_sort($cn_sort); } } else { # ModItem $action = 'modify'; my %updated_columns = $self->_result->get_dirty_columns; return $self->SUPER::store unless %updated_columns; # Retrieve the item for comparison if we need to my $pre_mod_item = ( exists $updated_columns{itemlost} or exists $updated_columns{withdrawn} or exists $updated_columns{damaged} ) ? $self->get_from_storage : undef; # Update *_on fields if needed # FIXME: Why not for AddItem as well? my @fields = qw( itemlost withdrawn damaged ); for my $field (@fields) { # If the field is defined but empty or 0, we are # removing/unsetting and thus need to clear out # the 'on' field if ( exists $updated_columns{$field} && defined( $self->$field ) && !$self->$field ) { my $field_on = "${field}_on"; $self->$field_on(undef); } # If the field has changed otherwise, we much update # the 'on' field elsif (exists $updated_columns{$field} && $updated_columns{$field} && !$pre_mod_item->$field ) { my $field_on = "${field}_on"; $self->$field_on( DateTime::Format::MySQL->format_datetime( dt_from_string() ) ); } } if ( exists $updated_columns{itemcallnumber} or exists $updated_columns{cn_source} ) { my $cn_sort = GetClassSort( $self->cn_source, $self->itemcallnumber, "" ); $self->cn_sort($cn_sort); } if ( exists $updated_columns{location} and $self->location ne 'CART' and $self->location ne 'PROC' and not exists $updated_columns{permanent_location} ) { $self->permanent_location( $self->location ); } # If item was lost and has now been found, # reverse any list item charges if necessary. if ( exists $updated_columns{itemlost} and $updated_columns{itemlost} <= 0 and $pre_mod_item->itemlost > 0 ) { $self->_set_found_trigger($pre_mod_item); } } unless ( $self->dateaccessioned ) { $self->dateaccessioned($today); } my $result = $self->SUPER::store; if ( $log_action && C4::Context->preference("CataloguingLog") ) { $action eq 'create' ? logaction( "CATALOGUING", "ADD", $self->itemnumber, "item" ) : logaction( "CATALOGUING", "MODIFY", $self->itemnumber, "item " . Dumper( $self->unblessed ) ); } my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); $indexer->index_records( $self->biblionumber, "specialUpdate", "biblioserver" ) unless $params->{skip_record_index}; $self->get_from_storage-><API key>({ action => $action }); return $result; } =head3 delete =cut sub delete { my $self = shift; my $params = @_ ? shift : {}; # FIXME check the item has no current issues # i.e. raise the appropriate exception my $result = $self->SUPER::delete; my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); $indexer->index_records( $self->biblionumber, "specialUpdate", "biblioserver" ) unless $params->{skip_record_index}; $self-><API key>({ action => 'delete' }); logaction( "CATALOGUING", "DELETE", $self->itemnumber, "item" ) if C4::Context->preference("CataloguingLog"); return $result; } =head3 safe_delete =cut sub safe_delete { my $self = shift; my $params = @_ ? shift : {}; my $safe_to_delete = $self->safe_to_delete; return $safe_to_delete unless $safe_to_delete eq '1'; $self->move_to_deleted; return $self->delete($params); } =head3 safe_to_delete returns 1 if the item is safe to delete, "book_on_loan" if the item is checked out, "not_same_branch" if the item is blocked by independent branches, "book_reserved" if the there are holds aganst the item, or "linked_analytics" if the item has linked analytic records. "last_item_for_hold" if the item is the last one on a record on which a biblio-level hold is placed =cut sub safe_to_delete { my ($self) = @_; return "book_on_loan" if $self->checkout; return "not_same_branch" if defined C4::Context->userenv and !C4::Context->IsSuperLibrarian() and C4::Context->preference("IndependentBranches") and ( C4::Context->userenv->{branch} ne $self->homebranch ); # check it doesn't have a waiting reserve return "book_reserved" if $self->holds->search( { found => [ 'W', 'T' ] } )->count; return "linked_analytics" if C4::Items::GetAnalyticsCount( $self->itemnumber ) > 0; return "last_item_for_hold" if $self->biblio->items->count == 1 && $self->biblio->holds->search( { itemnumber => undef, } )->count; return 1; } =head3 move_to_deleted my $is_moved = $item->move_to_deleted; Move an item to the deleteditems table. This can be done before deleting an item, to make sure the data are not completely deleted. =cut sub move_to_deleted { my ($self) = @_; my $item_infos = $self->unblessed; delete $item_infos->{timestamp}; #This ensures the timestamp date in deleteditems will be set to the current timestamp return Koha::Database->new->schema->resultset('Deleteditem')->create($item_infos); } =head3 effective_itemtype Returns the itemtype for the item based on whether item level itemtypes are set or not. =cut sub effective_itemtype { my ( $self ) = @_; return $self->_result()->effective_itemtype(); } =head3 home_branch =cut sub home_branch { my ($self) = @_; $self->{_home_branch} ||= Koha::Libraries->find( $self->homebranch() ); return $self->{_home_branch}; } =head3 holding_branch =cut sub holding_branch { my ($self) = @_; $self->{_holding_branch} ||= Koha::Libraries->find( $self->holdingbranch() ); return $self->{_holding_branch}; } =head3 biblio my $biblio = $item->biblio; Return the bibliographic record of this item =cut sub biblio { my ( $self ) = @_; my $biblio_rs = $self->_result->biblio; return Koha::Biblio->_new_from_dbic( $biblio_rs ); } =head3 biblioitem my $biblioitem = $item->biblioitem; Return the biblioitem record of this item =cut sub biblioitem { my ( $self ) = @_; my $biblioitem_rs = $self->_result->biblioitem; return Koha::Biblioitem->_new_from_dbic( $biblioitem_rs ); } =head3 checkout my $checkout = $item->checkout; Return the checkout for this item =cut sub checkout { my ( $self ) = @_; my $checkout_rs = $self->_result->issue; return unless $checkout_rs; return Koha::Checkout->_new_from_dbic( $checkout_rs ); } =head3 holds my $holds = $item->holds(); my $holds = $item->holds($params); my $holds = $item->holds({ found => 'W'}); Return holds attached to an item, optionally accept a hashref of params to pass to search =cut sub holds { my ( $self,$params ) = @_; my $holds_rs = $self->_result->reserves->search($params); return Koha::Holds->_new_from_dbic( $holds_rs ); } =head3 request_transfer my $transfer = $item->request_transfer( { to => $to_library, reason => $reason, [ ignore_limits => 0, enqueue => 1, replace => 1 ] } ); Add a transfer request for this item to the given branch for the given reason. An exception will be thrown if the <API key> would prevent the requested transfer, unless 'ignore_limits' is passed to override the limits. An exception will be thrown if an active transfer (i.e pending arrival date) is found; The caller should catch such cases and retry the transfer request as appropriate passing an appropriate override. Overrides * enqueue - Used to queue up the transfer when the existing transfer is found to be in transit. * replace - Used to replace the existing transfer request with your own. =cut sub request_transfer { my ( $self, $params ) = @_; # check for mandatory params my @mandatory = ( 'to', 'reason' ); for my $param (@mandatory) { unless ( defined( $params->{$param} ) ) { Koha::Exceptions::MissingParameter->throw( error => "The $param parameter is mandatory" ); } } Koha::Exceptions::Item::Transfer::Limit->throw() unless ( $params->{ignore_limits} || $self->can_be_transferred( { to => $params->{to} } ) ); my $request = $self->get_transfer; Koha::Exceptions::Item::Transfer::InQueue->throw( transfer => $request ) if ( $request && !$params->{enqueue} && !$params->{replace} ); $request->cancel( { reason => $params->{reason}, force => 1 } ) if ( defined($request) && $params->{replace} ); my $transfer = Koha::Item::Transfer->new( { itemnumber => $self->itemnumber, daterequested => dt_from_string, frombranch => $self->holdingbranch, tobranch => $params->{to}->branchcode, reason => $params->{reason}, comments => $params->{comment} } )->store(); return $transfer; } =head3 get_transfer my $transfer = $item->get_transfer; Return the active transfer request or undef Note: Transfers are retrieved in a Modified FIFO (First In First Out) order whereby the most recently sent, but not received, transfer will be returned if it exists, otherwise the oldest unsatisfied transfer will be returned. This allows for transfers to queue, which is the case for stock rotation and rotating collections where a manual transfer may need to take precedence but we still expect the item to end up at a final location eventually. =cut sub get_transfer { my ($self) = @_; my $transfer_rs = $self->_result->branchtransfers->search( { datearrived => undef, datecancelled => undef }, { order_by => [ { -desc => 'datesent' }, { -asc => 'daterequested' } ], rows => 1 } )->first; return unless $transfer_rs; return Koha::Item::Transfer->_new_from_dbic($transfer_rs); } =head3 last_returned_by Gets and sets the last borrower to return an item. Accepts and returns Koha::Patron objects $item->last_returned_by( $borrowernumber ); $last_returned_by = $item->last_returned_by(); =cut sub last_returned_by { my ( $self, $borrower ) = @_; my $<API key> = Koha::Database->new()->schema()->resultset('ItemsLastBorrower'); if ($borrower) { return $<API key>->update_or_create( { borrowernumber => $borrower->borrowernumber, itemnumber => $self->id } ); } else { unless ( $self->{_last_returned_by} ) { my $result = $<API key>->single( { itemnumber => $self->id } ); if ($result) { $self->{_last_returned_by} = Koha::Patrons->find( $result->get_column('borrowernumber') ); } } return $self->{_last_returned_by}; } } =head3 can_article_request my $bool = $item->can_article_request( $borrower ) Returns true if item can be specifically requested $borrower must be a Koha::Patron object =cut sub can_article_request { my ( $self, $borrower ) = @_; my $rule = $self-><API key>($borrower); return 1 if $rule && $rule ne 'no' && $rule ne 'bib_only'; return q{}; } =head3 hidden_in_opac my $bool = $item->hidden_in_opac({ [ rules => $rules ] }) Returns true if item fields match the hidding criteria defined in $rules. Returns false otherwise. Takes HASHref that can have the following parameters: OPTIONAL PARAMETERS: $rules : { <field> => [ value_1, ... ], ... } Note: $rules inherits its structure from the parsed YAML from reading the I<OpacHiddenItems> system preference. =cut sub hidden_in_opac { my ( $self, $params ) = @_; my $rules = $params->{rules} return 1 if C4::Context->preference('hidelostitems') and $self->itemlost > 0; my $hidden_in_opac = 0; foreach my $field ( keys %{$rules} ) { if ( any { $self->$field eq $_ } @{ $rules->{$field} } ) { $hidden_in_opac = 1; last; } } return $hidden_in_opac; } =head3 can_be_transferred $item->can_be_transferred({ to => $to_library, from => $from_library }) Checks if an item can be transferred to given library. This feature is controlled by two system preferences: <API key> to enable / disable the feature <API key> to use either an itemnumber or ccode as an identifier for setting the limitations Takes HASHref that can have the following parameters: MANDATORY PARAMETERS: $to : Koha::Library OPTIONAL PARAMETERS: $from : Koha::Library # if not given, item holdingbranch # will be used instead Returns 1 if item can be transferred to $to_library, otherwise 0. To find out whether at least one item of a Koha::Biblio can be transferred, please see Koha::Biblio->can_be_transferred() instead of using this method for multiple items of the same biblio. =cut sub can_be_transferred { my ($self, $params) = @_; my $to = $params->{to}; my $from = $params->{from}; $to = $to->branchcode; $from = defined $from ? $from->branchcode : $self->holdingbranch; return 1 if $from eq $to; # Transfer to current branch is allowed return 1 unless C4::Context->preference('<API key>'); my $limittype = C4::Context->preference('<API key>'); return Koha::Item::Transfer::Limits->search({ toBranch => $to, fromBranch => $from, $limittype => $limittype eq 'itemtype' ? $self->effective_itemtype : $self->ccode })->count ? 0 : 1; } =head3 pickup_locations $pickup_locations = $item->pickup_locations( {patron => $patron } ) Returns possible pickup locations for this item, according to patron's home library (if patron is defined and holds are allowed only from hold groups) and if item can be transferred to each pickup location. =cut sub pickup_locations { my ($self, $params) = @_; my $patron = $params->{patron}; my $circ_control_branch = C4::Reserves::<API key>( $self->unblessed(), $patron->unblessed ); my $branchitemrule = C4::Circulation::GetBranchItemRule( $circ_control_branch, $self->itype ); if(defined $patron) { return Koha::Libraries->new()->empty if $branchitemrule->{holdallowed} == 3 && !$self->home_branch-><API key>( {branchcode => $patron->branchcode} ); return Koha::Libraries->new()->empty if $branchitemrule->{holdallowed} == 1 && $self->home_branch->branchcode ne $patron->branchcode; } my $pickup_libraries = Koha::Libraries->search(); if ($branchitemrule->{<API key>} eq 'holdgroup') { $pickup_libraries = $self->home_branch->get_hold_libraries; } elsif ($branchitemrule->{<API key>} eq 'patrongroup') { my $plib = Koha::Libraries->find({ branchcode => $patron->branchcode}); $pickup_libraries = $plib->get_hold_libraries; } elsif ($branchitemrule->{<API key>} eq 'homebranch') { $pickup_libraries = Koha::Libraries->search({ branchcode => $self->homebranch }); } elsif ($branchitemrule->{<API key>} eq 'holdingbranch') { $pickup_libraries = Koha::Libraries->search({ branchcode => $self->holdingbranch }); }; return $pickup_libraries->search( { pickup_location => 1 }, { order_by => ['branchname'] } ) unless C4::Context->preference('<API key>'); my $limittype = C4::Context->preference('<API key>'); my ($ccode, $itype) = (undef, undef); if( $limittype eq 'ccode' ){ $ccode = $self->ccode; } else { $itype = $self->itype; } my $limits = Koha::Item::Transfer::Limits->search( { fromBranch => $self->holdingbranch, ccode => $ccode, itemtype => $itype, }, { columns => ['toBranch'] } ); return $pickup_libraries->search( { pickup_location => 1, branchcode => { '-not_in' => $limits->_resultset->as_query } }, { order_by => ['branchname'] } ); } =head3 <API key> my $type = $item-><API key>( $borrower ) returns 'yes', 'no', 'bib_only', or 'item_only' $borrower must be a Koha::Patron object =cut sub <API key> { my ( $self, $borrower ) = @_; my $branch_control = C4::Context->preference('HomeOrHoldingBranch'); my $branchcode = $branch_control eq 'homebranch' ? $self->homebranch : $branch_control eq 'holdingbranch' ? $self->holdingbranch : undef; my $borrowertype = $borrower->categorycode; my $itemtype = $self->effective_itemtype(); my $rule = Koha::CirculationRules->get_effective_rule( { rule_name => 'article_requests', categorycode => $borrowertype, itemtype => $itemtype, branchcode => $branchcode } ); return q{} unless $rule; return $rule->rule_value || q{} } =head3 current_holds =cut sub current_holds { my ( $self ) = @_; my $attributes = { order_by => 'priority' }; my $dtf = Koha::Database->new->schema->storage->datetime_parser; my $params = { itemnumber => $self->itemnumber, suspend => 0, -or => [ reservedate => { '<=' => $dtf->format_date(dt_from_string) }, waitingdate => { '!=' => undef }, ], }; my $hold_rs = $self->_result->reserves->search( $params, $attributes ); return Koha::Holds->_new_from_dbic($hold_rs); } =head3 stockrotationitem my $sritem = Koha::Item->stockrotationitem; Returns the stock rotation item associated with the current item. =cut sub stockrotationitem { my ( $self ) = @_; my $rs = $self->_result->stockrotationitem; return 0 if !$rs; return Koha::StockRotationItem->_new_from_dbic( $rs ); } =head3 add_to_rota my $item = $item->add_to_rota($rota_id); Add this item to the rota identified by $ROTA_ID, which means associating it with the first stage of that rota. Should this item already be associated with a rota, then we will move it to the new rota. =cut sub add_to_rota { my ( $self, $rota_id ) = @_; Koha::StockRotationRotas->find($rota_id)->add_item($self->itemnumber); return $self; } =head3 has_pending_hold my $is_pending_hold = $item->has_pending_hold(); This method checks the tmp_holdsqueue to see if this item has been selected for a hold, but not filled yet and returns true or false =cut sub has_pending_hold { my ( $self ) = @_; my $pending_hold = $self->_result->tmp_holdsqueues; return $pending_hold->count ? 1: 0; } =head3 as_marc_field my $mss = C4::Biblio::<API key>( '', { unsafe => 1 } ); my $field = $item->as_marc_field({ [ mss => $mss ] }); This method returns a MARC::Field object representing the Koha::Item object with the current mappings configuration. =cut sub as_marc_field { my ( $self, $params ) = @_; my $mss = $params->{mss} // C4::Biblio::<API key>( '', { unsafe => 1 } ); my $item_tag = $mss->{'items.itemnumber'}[0]->{tagfield}; my @subfields; my @columns = $self->_result->result_source->columns; foreach my $item_field ( @columns ) { my $mapping = $mss->{ "items.$item_field"}[0]; my $tagfield = $mapping->{tagfield}; my $tagsubfield = $mapping->{tagsubfield}; next if !$tagfield; # TODO: Should we raise an exception instead? # Feels like safe fallback is better push @subfields, $tagsubfield => $self->$item_field if defined $self->$item_field and $item_field ne ''; } my $<API key> = C4::Items::<API key>($self->more_subfields_xml); push( @subfields, @{$<API key>} ) if defined $<API key> and $#$<API key> > -1; my $field; $field = MARC::Field->new( "$item_tag", ' ', ' ', @subfields ) if @subfields; return $field; } =head3 renewal_branchcode Returns the branchcode to be recorded in statistics renewal of the item =cut sub renewal_branchcode { my ($self, $params ) = @_; my $interface = C4::Context->interface; my $branchcode; if ( $interface eq 'opac' ){ my $renewal_branchcode = C4::Context->preference('OpacRenewalBranch'); if( !defined $renewal_branchcode || $renewal_branchcode eq 'opacrenew' ){ $branchcode = 'OPACRenew'; } elsif ( $renewal_branchcode eq 'itemhomebranch' ) { $branchcode = $self->homebranch; } elsif ( $renewal_branchcode eq 'patronhomebranch' ) { $branchcode = $self->checkout->patron->branchcode; } elsif ( $renewal_branchcode eq 'checkoutbranch' ) { $branchcode = $self->checkout->branchcode; } else { $branchcode = ""; } } else { $branchcode = ( C4::Context->userenv && defined C4::Context->userenv->{branch} ) ? C4::Context->userenv->{branch} : $params->{branch}; } return $branchcode; } =head3 cover_images Return the cover images associated with this item. =cut sub cover_images { my ( $self ) = @_; my $cover_image_rs = $self->_result->cover_images; return unless $cover_image_rs; return Koha::CoverImages->_new_from_dbic($cover_image_rs); } =head3 _set_found_trigger $self->_set_found_trigger Finds the most recent lost item charge for this item and refunds the patron appropriately, taking into account any payments or writeoffs already applied against the charge. Internal function, not exported, called only by Koha::Item->store. =cut sub _set_found_trigger { my ( $self, $pre_mod_item ) = @_; ## If item was lost, it has now been found, reverse any list item charges if necessary. my $<API key> = C4::Context->preference('<API key>'); if ($<API key>) { my $today = dt_from_string(); my $lost_age_in_days = dt_from_string( $pre_mod_item->itemlost_on )->delta_days($today) ->in_units('days'); return $self unless $lost_age_in_days < $<API key>; } my $lostreturn_policy = Koha::CirculationRules-><API key>( { item => $self, return_branch => C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef, } ); if ( $lostreturn_policy ) { # refund charge made for lost book my $lost_charge = Koha::Account::Lines->search( { itemnumber => $self->itemnumber, debit_type_code => 'LOST', status => [ undef, { '<>' => 'FOUND' } ] }, { order_by => { -desc => [ 'date', 'accountlines_id' ] }, rows => 1 } )->single; if ( $lost_charge ) { my $patron = $lost_charge->patron; if ( $patron ) { my $account = $patron->account; my $total_to_refund = 0; # Use cases if ( $lost_charge->amount > $lost_charge->amountoutstanding ) { # some amount has been cancelled. collect the offsets that are not writeoffs # this works because the only way to subtract from this kind of a debt is # using the UI buttons 'Pay' and 'Write off' my $credits_offsets = Koha::Account::Offsets->search( { debit_id => $lost_charge->id, credit_id => { '!=' => undef }, # it is not the debit itself type => { '!=' => 'Writeoff' }, amount => { '<' => 0 } # credits are negative on the DB } ); $total_to_refund = ( $credits_offsets->count > 0 ) ? $credits_offsets->total * -1 # credits are negative on the DB : 0; } my $credit_total = $lost_charge->amountoutstanding + $total_to_refund; my $credit; if ( $credit_total > 0 ) { my $branchcode = C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef; $credit = $account->add_credit( { amount => $credit_total, description => 'Item found ' . $self->itemnumber, type => 'LOST_FOUND', interface => C4::Context->interface, library_id => $branchcode, item_id => $self->itemnumber, issue_id => $lost_charge->issue_id } ); $credit->apply( { debits => [$lost_charge] } ); $self->{_refunded} = 1; } # Update the account status $lost_charge->status('FOUND'); $lost_charge->store(); # Reconcile balances if required if ( C4::Context->preference('<API key>') ) { $account->reconcile_balance; } } } # restore fine for lost book if ( $lostreturn_policy eq 'restore' ) { my $lost_overdue = Koha::Account::Lines->search( { itemnumber => $self->itemnumber, debit_type_code => 'OVERDUE', status => 'LOST' }, { order_by => { '-desc' => 'date' }, rows => 1 } )->single; if ( $lost_overdue ) { my $patron = $lost_overdue->patron; if ($patron) { my $account = $patron->account; # Update status of fine $lost_overdue->status('FOUND')->store(); # Find related forgive credit my $refund = $lost_overdue->credits( { credit_type_code => 'FORGIVEN', itemnumber => $self->itemnumber, status => [ { '!=' => 'VOID' }, undef ] }, { order_by => { '-desc' => 'date' }, rows => 1 } )->single; if ( $refund ) { # Revert the forgive credit $refund->void(); $self->{_restored} = 1; } # Reconcile balances if required if ( C4::Context->preference('<API key>') ) { $account->reconcile_balance; } } } } elsif ( $lostreturn_policy eq 'charge' ) { $self->{_charge} = 1; } } return $self; } =head3 to_api_mapping This method returns the mapping for representing a Koha::Item object on the API. =cut sub to_api_mapping { return { itemnumber => 'item_id', biblionumber => 'biblio_id', biblioitemnumber => undef, barcode => 'external_id', dateaccessioned => 'acquisition_date', booksellerid => 'acquisition_source', homebranch => 'home_library_id', price => 'purchase_price', replacementprice => 'replacement_price', <API key> => '<API key>', datelastborrowed => 'last_checkout_date', datelastseen => 'last_seen_date', stack => undef, notforloan => 'not_for_loan_status', damaged => 'damaged_status', damaged_on => 'damaged_date', itemlost => 'lost_status', itemlost_on => 'lost_date', withdrawn => 'withdrawn', withdrawn_on => 'withdrawn_date', itemcallnumber => 'callnumber', <API key> => '<API key>', issues => 'checkouts_count', renewals => 'renewals_count', reserves => 'holds_count', restricted => 'restricted_status', itemnotes => 'public_notes', itemnotes_nonpublic => 'internal_notes', holdingbranch => 'holding_library_id', timestamp => 'timestamp', location => 'location', permanent_location => 'permanent_location', onloan => 'checked_out_date', cn_source => 'call_number_source', cn_sort => 'call_number_sort', ccode => 'collection_code', materials => 'materials_notes', uri => 'uri', itype => 'item_type', more_subfields_xml => 'extended_subfields', enumchron => 'serial_issue_number', copynumber => 'copy_number', stocknumber => 'inventory_number', new_status => 'new_status' }; } =head3 itemtype my $itemtype = $item->itemtype; Returns Koha object for effective itemtype =cut sub itemtype { my ( $self ) = @_; return Koha::ItemTypes->find( $self->effective_itemtype ); } =head2 Internal methods =head3 <API key> Helper method that takes care of calling all plugin hooks =cut sub <API key> { my ( $self, $params ) = @_; my $action = $params->{action}; Koha::Plugins->call( 'after_item_action', { action => $action, item => $self, item_id => $self->itemnumber, } ); } =head3 _type =cut sub _type { return 'Item'; } =head1 AUTHOR Kyle M Hall <kyle@bywatersolutions.com> =cut 1;
#pragma once #if !defined(<API key>) #define <API key> #include <mitsuba/render/scene.h> #include <mitsuba/render/renderqueue.h> MTS_NAMESPACE_BEGIN /** * \brief Coordinates the process of rendering a single image. * * Implemented as a thread so that multiple jobs can * be executed concurrently. * * \ingroup librender * \ingroup libpython */ class MTS_EXPORT_RENDER RenderJob : public Thread { public: /** * \brief Create a new render job for the given scene. * * When the Resource ID parameters (\c sceneResID, \c sensorResID, ..) are * set to \c -1, the implementation will automatically register the * associated objects (scene, sensor, sampler) with the scheduler and * forward copies to all involved network rendering workers. When some * of these resources have already been registered with * the scheduler, their IDs can be provided to avoid this extra * communication cost. * * \param threadName * Thread name identifier for this render job * \param scene * Scene to be rendered * \param queue * Pointer to a queue, to which this job should be added * \param sceneResID * Resource ID of \c scene (or \c -1) * \param sensorResID * Resource ID of \c scene->getSensor() (or \c -1) * \param samplerResID * Resource ID of the sample generator (or \c -1) * \param threadIsCritical * When set to \c true, the entire program will terminate * if this thread fails unexpectedly. * \param interactive * Are partial results of the rendering process visible, e.g. in * a graphical user interface? */ RenderJob(const std::string &threadName, Scene *scene, RenderQueue *queue, int sceneResID = -1, int sensorResID = -1, int samplerResID = -1, bool threadIsCritical = true, bool interactive = false); Write out the current (partially rendered) image inline void flush() { m_scene->flush(m_queue, this); } Cancel a running render job inline void cancel() { m_scene->cancel(); } Wait for the job to finish and return whether it was successful inline bool wait() { join(); return !m_cancelled; } /** * \brief Are partial results of the rendering process visible, e.g. in * a graphical user interface? * * Some integrators may choose to invest more time on generating high-quality * intermediate results in this case. */ inline bool isInteractive() const { return m_interactive; } MTS_DECLARE_CLASS() protected: Virtual destructor virtual ~RenderJob(); Run method void run(); private: ref<Scene> m_scene; ref<RenderQueue> m_queue; int m_sceneResID, m_samplerResID, m_sensorResID; bool m_ownsSceneResource; bool <API key>; bool <API key>; bool m_cancelled; bool m_interactive; }; MTS_NAMESPACE_END #endif /* <API key> */
package es.us.isa.statservice.service; import es.us.isa.statservice.domain.Authority; import es.us.isa.statservice.domain.PersistentToken; import es.us.isa.statservice.domain.User; import es.us.isa.statservice.repository.AuthorityRepository; import es.us.isa.statservice.repository.<API key>; import es.us.isa.statservice.repository.UserRepository; import es.us.isa.statservice.security.SecurityUtils; import es.us.isa.statservice.service.util.RandomUtil; import org.joda.time.DateTime; import org.joda.time.LocalDate; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import javax.inject.Inject; import java.util.HashSet; import java.util.List; import java.util.Optional; import java.util.Set; /** * Service class for managing users. */ @Service @Transactional public class UserService { private final Logger log = LoggerFactory.getLogger(UserService.class); @Inject private PasswordEncoder passwordEncoder; @Inject private UserRepository userRepository; @Inject private <API key> <API key>; @Inject private AuthorityRepository authorityRepository; public Optional<User> <API key>(String key) { log.debug("Activating user for activation key {}", key); userRepository.<API key>(key) .map(user -> { // activate given user for the registration key. user.setActivated(true); user.setActivationKey(null); userRepository.save(user); log.debug("Activated user: {}", user); return user; }); return Optional.empty(); } public User <API key>(String login, String password, String firstName, String lastName, String email, String langKey) { User newUser = new User(); Authority authority = authorityRepository.findOne("ROLE_USER"); Set<Authority> authorities = new HashSet<>(); String encryptedPassword = passwordEncoder.encode(password); newUser.setLogin(login); // new user gets initially a generated password newUser.setPassword(encryptedPassword); newUser.setFirstName(firstName); newUser.setLastName(lastName); newUser.setEmail(email); newUser.setLangKey(langKey); // new user is not active newUser.setActivated(false); // new user gets registration key newUser.setActivationKey(RandomUtil.<API key>()); authorities.add(authority); newUser.setAuthorities(authorities); userRepository.save(newUser); log.debug("Created Information for User: {}", newUser); return newUser; } public void <API key>(String firstName, String lastName, String email) { userRepository.findOneByLogin(SecurityUtils.getCurrentLogin()).ifPresent(u -> { u.setFirstName(firstName); u.setLastName(lastName); u.setEmail(email); userRepository.save(u); log.debug("Changed Information for User: {}", u); }); } public void changePassword(String password) { userRepository.findOneByLogin(SecurityUtils.getCurrentLogin()).ifPresent(u-> { String encryptedPassword = passwordEncoder.encode(password); u.setPassword(encryptedPassword); userRepository.save(u); log.debug("Changed password for User: {}", u); }); } @Transactional(readOnly = true) public User <API key>() { User currentUser = userRepository.findOneByLogin(SecurityUtils.getCurrentLogin()).get(); currentUser.getAuthorities().size(); // eagerly load the association return currentUser; } /** * Persistent Token are used for providing automatic authentication, they should be automatically deleted after * 30 days. * <p/> * <p> * This is scheduled to get fired everyday, at midnight. * </p> */ @Scheduled(cron = "0 0 0 * * ?") public void <API key>() { LocalDate now = new LocalDate(); <API key>.<API key>(now.minusMonths(1)).stream().forEach(token ->{ log.debug("Deleting token {}", token.getSeries()); User user = token.getUser(); user.getPersistentTokens().remove(token); <API key>.delete(token); }); } /** * Not activated users should be automatically deleted after 3 days. * <p/> * <p> * This is scheduled to get fired everyday, at 01:00 (am). * </p> */ @Scheduled(cron = "0 0 1 * * ?") public void <API key>() { DateTime now = new DateTime(); List<User> users = userRepository.<API key>(now.minusDays(3)); for (User user : users) { log.debug("Deleting not activated user {}", user.getLogin()); userRepository.delete(user); } } }
# 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 import logging import socket import sys import time import tracing import cliapp import larch import paramiko import ttystatus import obnamlib class ObnamIOError(obnamlib.ObnamError): msg = 'I/O error: {filename}: {errno}: {strerror}' class ObnamSSHError(obnamlib.ObnamError): msg = 'SSH error: {msg}' class ObnamSystemError(obnamlib.ObnamError): msg = 'System error: {filename}: {errno}: {strerror}' class App(cliapp.Application): '''Main program for backup program.''' def add_settings(self): # General settings. self.settings.string( ['repository', 'r'], 'name of backup repository (can be pathname or supported URL)', metavar='URL') self.settings.string( ['client-name'], 'name of client (defaults to hostname)', default=self.deduce_client_name()) self.settings.boolean( ['quiet', 'silent'], 'be silent: show only error messages, no progress updates') self.settings.boolean( ['verbose'], 'be verbose: tell the user more of what is going on and ' 'generally make sure the user is aware of what is happening ' 'or at least that something is happening and ' 'also make sure their screen is getting updates frequently ' 'and that there is changes happening all the time so they ' 'do not get bored and that they in fact get frustrated by ' 'getting distracted by so many updates that they will move ' 'into the Gobi desert to live under a rock') self.settings.boolean( ['pretend', 'dry-run', 'no-act'], 'do not actually change anything (works with ' 'backup, forget and restore only, and may only ' 'simulate approximately real behavior)') self.settings.integer( ['lock-timeout'], 'when locking in the backup repository, ' 'wait TIMEOUT seconds for an existing lock ' 'to go away before giving up', metavar='TIMEOUT', default=60) # Repository format selection. self.settings.choice( ['repository-format'], ['6', obnamlib.<API key>], 'use FORMAT for new repositories; ' 'one of "6", "{}"'.format(obnamlib.<API key>), metavar='FORMAT') algos = list(obnamlib.checksum_algorithms) algos.remove('sha512') # We move this first in the list, default. algos.remove('md5') # We're NOT letting the user choose MD5. algos = ['sha512'] + algos self.settings.choice( ['checksum-algorithm'], algos, 'use CHECKSUM for checksum algorithm ' '(not for repository format 6); ' 'one of: ' + ', '.join(algos), metavar='CHECKSUM') # Performance related settings. perf_group = obnamlib.option_group['perf'] self.settings.bytesize( ['node-size'], 'size of B-tree nodes on disk; only affects new ' 'B-trees so you may need to delete a client ' 'or repository to change this for existing ' 'repositories', default=obnamlib.DEFAULT_NODE_SIZE, group=perf_group) self.settings.bytesize( ['chunk-size'], 'size of chunks of file data backed up', default=obnamlib.DEFAULT_CHUNK_SIZE, group=perf_group) self.settings.bytesize( ['upload-queue-size'], 'length of upload queue for B-tree nodes', default=obnamlib.<API key>, group=perf_group) self.settings.bytesize( ['lru-size'], 'size of LRU cache for B-tree nodes', default=obnamlib.DEFAULT_LRU_SIZE, group=perf_group) self.settings.integer( ['idpath-depth'], 'depth of chunk id mapping', default=obnamlib.IDPATH_DEPTH, group=perf_group) self.settings.integer( ['idpath-bits'], 'chunk id level size', default=obnamlib.IDPATH_BITS, group=perf_group) self.settings.integer( ['idpath-skip'], 'chunk id mapping lowest bits skip', default=obnamlib.IDPATH_SKIP, group=perf_group) # Settings to help developers and development of Obnam. devel_group = obnamlib.option_group['devel'] self.settings.string_list( ['trace'], 'add to filename patters for which trace ' 'debugging logging happens', group=devel_group) self.settings.string( ['pretend-time'], 'pretend it is TIMESTAMP (YYYY-MM-DD HH:MM:SS); ' 'this is only useful for testing purposes', metavar='TIMESTAMP', group=devel_group) self.settings.integer( ['crash-limit'], 'artificially crash the program after COUNTER ' 'files written to the repository; this is ' 'useful for crash testing the application, ' 'and should not be enabled for real use; ' 'set to 0 to disable (disabled by default)', metavar='COUNTER', group=devel_group) # The following needs to be done here, because it needs # to be done before option processing. This is a bit ugly, # but the best we can do with the current cliapp structure. # Possibly cliapp will provide a better hook for us to use # later on, but this is reality now. self.setup_ttystatus() self.fsf = obnamlib.VfsFactory() self.repo_factory = obnamlib.RepositoryFactory() self.setup_hooks() self.settings['log-level'] = 'info' def deduce_client_name(self): return socket.gethostname() def setup_hooks(self): self.hooks = obnamlib.HookManager() self.hooks.new('config-loaded') self.hooks.new('shutdown') # The repository factory creates all repository related hooks. self.repo_factory.setup_hooks(self.hooks) def setup(self): self.pluginmgr.plugin_arguments = (self,) def process_args(self, args): try: try: if self.settings['quiet']: self.ts.disable() for pattern in self.settings['trace']: tracing.trace_add_pattern(pattern) self.hooks.call('config-loaded') cliapp.Application.process_args(self, args) self.hooks.call('shutdown') except paramiko.SSHException as e: logging.critical( 'Caught SSHExcpetion: %s', str(e), exc_info=True) raise ObnamSSHError(msg=str(e)) except IOError as e: logging.critical('Caught IOError: %s', str(e), exc_info=True) raise ObnamIOError( errno=e.errno, strerror=e.strerror, filename=e.filename) except OSError as e: logging.critical('Caught OSError: %s', str(e), exc_info=True) raise ObnamSystemError( errno=e.errno, strerror=e.strerror, filename=e.filename) except larch.Error as e: logging.critical(str(e), exc_info=True) sys.stderr.write('ERROR: %s\n' % str(e)) sys.exit(1) except obnamlib.StructuredError as e: logging.critical( self._indent_multiline(e.formatted()), exc_info=True) sys.stderr.write('ERROR: %s\n' % e.formatted()) sys.exit(1) def _indent_multiline(self, s): lines = s.splitlines() return ''.join( [lines[0] + '\n'] + [' {}\n'.format(line) for line in lines[1:]]) def setup_ttystatus(self): self.ts = ttystatus.TerminalStatus(period=0.1) if self.settings['quiet']: self.ts.disable() def <API key>(self, create=False, repofs=None): '''Return an implementation of obnamlib.RepositoryInterface.''' logging.info('Opening repository: %s', self.settings['repository']) tracing.trace('create=%s', create) tracing.trace('repofs=%s', repofs) repopath = self.settings['repository'] if repofs is None: repofs = self.fsf.new(repopath, create=create) if self.settings['crash-limit'] > 0: repofs.crash_limit = self.settings['crash-limit'] repofs.connect() else: repofs.reinit(repopath) kwargs = { 'lock_timeout': self.settings['lock-timeout'], 'node_size': self.settings['node-size'], 'upload_queue_size': self.settings['upload-queue-size'], 'lru_size': self.settings['lru-size'], 'idpath_depth': self.settings['idpath-depth'], 'idpath_bits': self.settings['idpath-bits'], 'idpath_skip': self.settings['idpath-skip'], 'hooks': self.hooks, 'current_time': self.time, 'chunk_size': self.settings['chunk-size'], 'chunk_cache_size': self.settings['chunk-cache-size'], 'chunk_bag_size': self.settings['chunk-bag-size'], 'dir_cache_size': self.settings['dir-cache-size'], 'dir_bag_size': self.settings['dir-bag-size'], 'checksum_algorithm': self.settings['checksum-algorithm'], } if create: return self.repo_factory.create_repo( repofs, self.<API key>(), **kwargs) else: return self.repo_factory.open_existing_repo(repofs, **kwargs) def <API key>(self): classes = { '6': obnamlib.RepositoryFormat6, obnamlib.<API key>: obnamlib.RepositoryFormatGA, } return classes[self.settings['repository-format']] def time(self): '''Return current time in seconds since epoch. This is a wrapper around time.time() so that it can be overridden with the --pretend-time setting. ''' s = self.settings['pretend-time'] if s: t = time.strptime(s, '%Y-%m-%d %H:%M:%S') return time.mktime(t) else: return time.time()
#!/usr/bin/env python import re import sys import hashlib import subprocess as sp import numpy as np debug = False typ1 = np.dtype([('name', 'a50'), ('beg', 'i'), ('end', 'i'), ('type', 'a4')]) # starts with spaces or spaces and one of { 'end', 'pure', ... } # if function it can have a type next goes subroutine or function or type test_for_routines = re.compile(''' ^\s{0,12}(|end|pure|elemental|recursive|real|logical|integer)\s (|pure|elemental|recursive|real|logical|integer)(|\s) (subroutine|function|type(,|\s)) ''', re.VERBOSE) # starts with spaces or spaces and one of { 'end', 'pure', ... } # next goes subroutine or function or type test_for_interfaces = re.compile(''' ^\s{0,12}(|end|abstract)\s interface ''', re.VERBOSE) # test_for_routines = re.compile(''' # ^(?!\s{0,9}!).*(subroutine|function|type(,|\s::)) # ''',re.VERBOSE) module_body = re.compile( '''^(module|contains|program)''', re.VERBOSE) just_end = re.compile('''^\s{0,9}end''', re.IGNORECASE) have_implicit = re.compile('''implicit\snone''', re.IGNORECASE) have_privpub = re.compile('''^\s{0,9}(public|private)''', re.VERBOSE) have_pub = re.compile('''^\s{0,9}public''', re.VERBOSE) have_priv = re.compile('''^\s{0,9}private\s::''', re.VERBOSE) remove_warn = re.compile('''(?!.*QA_WARN .+)''', re.VERBOSE) have_global_public = re.compile('''^\s{0,9}public(?!.*::)''', re.VERBOSE) depr_syntax_1 = re.compile(''' ^\s{1,12}(?i)(?:real(?:\s|,)|integer(?:\s|,)|logical (?:\s|,|\()|character(?:\s|,))(?!.*::) ''', re.IGNORECASE) depr_syntax_2 = re.compile( '''^\s{1,12}(?i)use[\s](?!.*only)''', re.IGNORECASE) depr_syntax_3 = re.compile( '''^\s{1,12}(?i)character(?![(])''', re.IGNORECASE) is_function = re.compile('''(?i)\sfunction\s''', re.IGNORECASE) not_function = re.compile('''(?!.*function)''', re.IGNORECASE) tab_char = re.compile('\t') has_use = re.compile("^\s{1,12}(?i)use\s") have_label = re.compile('^[0-9]', re.VERBOSE) crude_write = re.compile("write *\( *\*", re.IGNORECASE) magic_integer = re.compile("\(len=[1-9]", re.IGNORECASE) continuation = re.compile('&$', re.VERBOSE) implicit_save = re.compile(''' (?i)(?:real(?:\s|,)|integer(?:\s|,)|logical(?:\s|,|\()|character(?:\s|,)).* ::.*=(|\s)[0-9] ''', re.IGNORECASE) not_param_nor_save = re.compile("(?!.*(parameter|save))", re.IGNORECASE) nasty_spaces = [ re.compile("end\s{1,}do", re.IGNORECASE), "enddo", re.compile("end\s{1,}if", re.IGNORECASE), "endif", re.compile("end\s{1,}while", re.IGNORECASE), "endwhile", re.compile("end\s{1,}where", re.IGNORECASE), "endwhere", re.compile("only\s{1,}:", re.IGNORECASE), "only:", re.compile("if(|\s{2,})\(", re.IGNORECASE), "if (", re.compile("where(|\s{2,})\(", re.IGNORECASE), "where (", re.compile("while(|\s{2,})\(", re.IGNORECASE), "while (", re.compile("forall(|\s{2,})\(", re.IGNORECASE), "forall (", re.compile("\scase(|\s{2,})\(", re.IGNORECASE), " case (" ] class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' def disable(self): self.HEADER = '' self.OKBLUE = '' self.OKGREEN = '' self.WARNING = '' self.FAIL = '' self.ENDC = '' b = bcolors() def remove_binaries(files): list = [] for file in files: checkFile = sp.Popen('file -bi ' + file, stdout=sp.PIPE, shell=True, executable="/bin/bash") if not checkFile.communicate()[0].startswith('text'): print b.WARNING + "QA: " + b.ENDC + file + \ " is not a text file. I will not test it." else: list.append(file) return list def select_sources(files): test = re.compile("F90$", re.IGNORECASE) return filter(test.search, files) def wtf(lines, line, rname, fname): if(type(lines) == np.ndarray): linenum = line_num(lines, line) else: linenum = lines line = line.split("!")[0] # Strip comments if(rname == ''): return " [%s]@L%i => %s" % (fname, linenum, line.strip()) else: return " [%s:%s]@L%i => %s" % (fname, rname, linenum, line.strip()) def line_num(lines, line): return np.where(lines == line)[0][0] def give_warn(s): return b.WARNING + s + b.ENDC def give_err(s): return b.FAIL + s + b.ENDC def parse_f90file(lines, fname, store): if (debug): print "[parse_f90file] fname = ", fname subs_array = np.zeros((0,), dtype=typ1) subs = filter(test_for_routines.search, lines) subs_names = [] subs_types = [] for f in subs: if (just_end.match(f)): word = f.strip().split(' ') subs_types.insert(0, word[1]) subs_names.append(word[2]) for f in subs_names: cur_sub = filter(re.compile(f).search, subs) if (len(cur_sub) > 2): if (debug): print "[parse_f90file] f, cur_sub = ", f, cur_sub for index in range(0, len(cur_sub)): if just_end.match(cur_sub[index]): if cur_sub[index].split()[1] == subs_types[-1] and \ cur_sub[index][-len(f):] == f: break else: index = 1 obj = (f, line_num(lines, cur_sub[index - 1]), line_num( lines, cur_sub[index]), subs_types.pop()) subs_array = np.append(subs_array, np.array([obj], dtype=typ1)) if (debug): print "[parse_f90file] subs = ", subs print "[parse_f90file] subs_names = ", subs_names mod = filter(module_body.match, lines) if (len(mod) > 1): obj = (mod[0].strip().split(" ")[1], line_num(lines, mod[0]), line_num(lines, mod[1]), mod[0].strip().split(" ")[0][0:3] ) subs_array = np.append(subs_array, np.array([obj], dtype=typ1)) elif (len(mod) == 1): obj = (mod[0].strip( ).split(" ")[1], line_num(lines, mod[0]), len(lines), 'mod') subs_array = np.append(subs_array, np.array([obj], dtype=typ1)) else: store.append( give_warn("QA: ") + "[%s] => module body not found!" % fname) return subs_array def qa_check_id(store, fname): client = pysvn.Client() entry = client.info('.') try: for f in client.proplist(fname): pname, props = f fail = False if 'svn:keywords' in props: if 'Id' not in props['svn:keywords']: fail = True else: fail = True if fail: store.append( give_err("QA: ") + "%s lacks svn:keywords Id" % (pname)) except: return 0 def qa_checks(files, options): print b.OKBLUE + \ '"I am the purifier, the light that clears all shadows."' + \ ' - seal of cleansing inscription' + b.ENDC runpath = sys.argv[0].split("qa.py")[0] files = remove_binaries(files) # ToDo: check files other than F90 f90files = select_sources(files) warns = [] errors = [] for f in f90files: # qa_check_id(errors, f) pfile = [] lines = open(f, 'r').readlines() for line in lines: # things done in "in-place" line = line.rstrip() # that removes trailing spaces for i in range(0, len(nasty_spaces), 2): line = re.sub(nasty_spaces[i], nasty_spaces[ i + 1], line) # remove nasty spaces pfile.append(line) if lines != [line + '\n' for line in pfile]: fp = open(f, 'w') for line in pfile: fp.write(line + '\n') fp.close() # f = f.split('/')[-1] # checks for f90 file as whole <API key>(np.array(pfile), '', errors, f) qa_labels(np.array(pfile), '', errors, f) qa_crude_write(np.array(pfile), '', warns, f) qa_magic_integers(np.array(pfile), '', warns, f) # checks that require parsing f90 files clean_ind = [] pfile = np.array(pfile) # remove interfaces as we currently don't handle them well interfaces = [line_num( pfile, i) for i in filter(test_for_interfaces.search, pfile)] while len(interfaces) > 0: if (debug): print "Removed interface" pfile = np.delete(pfile, np.s_[interfaces[0]:interfaces[1] + 1], 0) interfaces = [line_num( pfile, i) for i in filter(test_for_interfaces.search, pfile)] for obj in parse_f90file(pfile, f, warns): if (debug): print '[qa_checks] obj =', obj part = pfile[obj['beg']:obj['end']] # if (debug): # for f in part: print f # False refs need to be done before removal of types in module body qa_false_refs(part, obj['name'], warns, f) if(obj['type'] == 'mod'): # module body is always last, remove lines that've been # already checked part = np.delete(part, np.array(clean_ind) - obj['beg']) qa_have_priv_pub(part, obj['name'], warns, f) else: clean_ind += range(obj['beg'], obj['end'] + 1) <API key>(part, obj['name'], warns, f) if(obj['type'] != 'type'): qa_have_implicit(part, obj['name'], errors, f) qa_implicit_saves(part, obj['name'], errors, f) for warning in warns: print warning for error in errors: print error if (len(errors)): print give_err("%i error(s) detected! " % len( errors)) + "I will not let you commit unless you force me!!!" if options.force: print "Damn! You are determined to make low quality commit :-(" else: exit() else: print b.OKGREEN + "Yay! No errors!!! " + b.ENDC if (len(warns)): s = give_warn("%i warnings detected. " % len(warns)) + \ "Do you wish to proceed? (y/N) " if(raw_input(s) != 'y'): print "See you later!" exit() else: print b.OKGREEN + "No warnings detected. " + b.ENDC + \ "If everyone were like you, I'd be out of business!" def qa_have_priv_pub(lines, name, warns, fname): if(not filter(have_privpub.search, lines)): warns.append(give_warn("QA: ") + "module [%s:%s] lacks public/private keywords." % (fname, give_err(name))) else: if(filter(remove_warn.match, filter(have_priv.search, lines))): warns.append(give_warn("QA: ") + "module [%s:%s] have selective private." % (fname, give_err(name))) if(filter(remove_warn.match, filter(have_global_public.search, lines))): warns.append(give_warn("QA: ") + "module [%s:%s] is completely public." % (fname, give_err(name))) def qa_crude_write(lines, rname, store, fname): warning = 0 for f in filter(remove_warn.match, filter(crude_write.search, lines)): store.append( give_warn("!! crude write ") + wtf(lines, f, rname, fname)) def qa_magic_integers(lines, rname, store, fname): for f in filter(remove_warn.match, filter(magic_integer.search, lines)): hits = np.where(lines == f)[0] if(len(hits) > 1): for i in hits: warn = give_warn("!! magic integer") + wtf(i, f, rname, fname) if(warn not in store): store.append(warn) else: warn = give_warn("!! magic integer") + wtf(lines, f, rname, fname) if(warn not in store): store.append(warn) def <API key>(lines, rname, store, fname): for f in filter(tab_char.search, lines): store.append(give_err("QA: ") + "non conforming tab detected " + wtf(lines, f, rname, fname)) def qa_labels(lines, rname, store, fname): for f in filter(have_label.search, lines): store.append(give_err("QA: ") + "label detected " + wtf(lines, f, rname, fname)) def <API key>(lines, rname, store, fname): # print b.OKGREEN + "QA: " + b.ENDC + "Checking for depreciated syntax" for f in filter(not_function.match, filter(depr_syntax_1.search, lines)): store.append( give_warn("!! lacking :: ") + wtf(lines, f, rname, fname)) for f in filter(remove_warn.match, filter(depr_syntax_2.search, lines)): store.append( give_warn("!! greedy use ") + wtf(lines, f, rname, fname)) for f in filter(depr_syntax_3.search, lines): store.append( give_warn("!! wrong syntax ") + wtf(lines, f, rname, fname)) def qa_have_implicit(lines, name, store, fname): if(not filter(have_implicit.search, lines)): store.append(give_err( "QA: ") + "missing 'implicit none' [%s:%s]" % (fname, name)) def remove_amp(lines, strip): buf = '' temp = [] for line in lines: if(len(buf)): line = buf + line.lstrip() buf = '' if(continuation.search(line)): buf = re.sub('&', '', line.split("!")[0]) else: if(strip): temp.append(line.split("!")[0]) # kills QA_WARN else: temp.append(line) return temp def qa_false_refs(lines, name, store, fname): temp = remove_amp(filter(remove_warn.match, lines), True) uses = filter(has_use.search, temp) for item in uses: to_check = [f.strip() for f in item.split("only:")[1].split(',')] to_check = [re.sub('&', '', f).lstrip( ) for f in to_check] # additional sanitization # remove operator keyword from import for ino, item in enumerate(to_check): try: new_item = re.search('operator\((.+?)\)', item).group(1) except AttributeError: new_item = item to_check[ino] = new_item for func in to_check: pattern = re.compile(func, re.IGNORECASE) # stupid but seems to work if(len(filter(pattern.search, temp)) < 2): store.append(give_warn("QA: ") + "'" + func + "' grabbed but not used in [%s:%s]" % (fname, name)) def qa_implicit_saves(lines, name, store, fname): # print b.OKGREEN + "QA: " + b.ENDC + "Checking for implicit saves" impl = filter(not_param_nor_save.match, filter(implicit_save.search, remove_amp(filter(remove_warn.match, lines), True))) if(len(impl)): store.append(give_err( "QA: ") + "implicit saves detected in [%s:%s]" % (fname, name)) for line in impl: store.append(line.strip()) if __name__ == "__main__": from optparse import OptionParser usage = "usage: %prog [options] FILES" parser = OptionParser(usage=usage) parser.add_option("-v", "--verbose", action="store_true", dest="debug", default=False, help="make lots of noise [default]") parser.add_option("-f", "--force", action="store_true", dest="force", help="commit despite errors (It will be logged)") (options, args) = parser.parse_args() debug = options.debug if len(args) < 1: parser.error("incorrect number of arguments") qa_checks(args, options)
class CreateMemeTemplates < ActiveRecord::Migration def change create_table :meme_templates do |t| t.string :title t.boolean :isprivate t.timestamps end end end
.btn-outline-primary { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.5); }
package org.stacktrace.yo.igdb.client.gamemode; import com.mashape.unirest.http.exceptions.UnirestException; import org.stacktrace.yo.igdb.client.IGDBClient; import org.stacktrace.yo.igdb.client.core.IGDBClientRequester; import org.stacktrace.yo.igdb.model.GameMode; import java.util.Arrays; import java.util.List; public class GameModeRequest extends IGDBClientRequester<GameMode, GameModeRequest, GameModeFilter, GameModeFields> { public GameModeRequest(IGDBClient client) { super(client); } @Override public String getBasePath() { return "game_modes/"; } public List<GameMode> go() throws UnirestException { return Arrays.asList(client.makeRequest(buildUrl()) .asObject(GameMode[].class) .getBody()); } @Override public String getFieldValue(GameModeFields field) { return field.getUrlFormat(); } }
package me.themallard.bitmmo.impl.transformer; import me.themallard.bitmmo.api.analysis.Builder; import me.themallard.bitmmo.api.transformer.<API key>; import me.themallard.bitmmo.api.transformer.Transformer; public class <API key> extends <API key> { @Override protected Builder<Transformer> <API key>() { return new Builder<Transformer>().addAll(new <API key>()); } }
<!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.17"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>CoxIter: data-ssd Directory Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">CoxIter &#160;<span id="projectnumber">1.3</span> </div> <div id="projectbrief">CoxIter - Computing invariants of hyperbolic Coxeter groups</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.17 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); </script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="<API key>"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="<API key>.html">media</a></li><li class="navelem"><a class="el" href="<API key>.html">data-ssd</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">data-ssd Directory Reference</div> </div> </div><!--header <div class="contents"> <div class="dynheader"> Directory dependency graph for data-ssd:</div> <div class="dyncontent"> <div class="center"><img src="<API key>.png" border="0" usemap="#<API key>" alt="data-ssd"/></div> <map name="<API key>" id="<API key>"> <area shape="rect" href="<API key>.html" title="Rafael" alt="" coords="37,63,109,111"/> <area shape="rect" href="<API key>.html" alt="" coords="27,52,224,121"/> <area shape="rect" href="<API key>.html" title="media" alt="" coords="16,16,235,132"/> </map> </div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="subdirs"></a> Directories</h2></td></tr> <tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">directory &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html">Rafael</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sat Mar 27 2021 14:04:11 for CoxIter by & <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.17 </small></address> </body> </html>
define('controllers/email', 'controllers/record', function (Dep) { return Dep.extend({ prepareModelView: function (model, options) { Dep.prototype.prepareModelView(model, options); this.listenToOnce(model, 'after:send', function () { var key = this.name + 'List'; var stored = this.getStoredMainView(key); if (stored) { this.clearStoredMainView(key); } }, this); } }); });
using System; using System.Diagnostics; using System.Resources; using System.Windows; using System.Windows.Markup; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using <API key>.Resources; namespace <API key> { public partial class App : Application { <summary> Provides easy access to the root frame of the Phone Application. </summary> <returns>The root frame of the Phone Application.</returns> public static <API key> RootFrame { get; private set; } <summary> Constructor for the Application object. </summary> public App() { // Global handler for uncaught exceptions. UnhandledException += <API key>; // Standard XAML initialization InitializeComponent(); // Phone-specific initialization <API key>(); // Language display initialization InitializeLanguage(); // Show graphics profiling information while debugging. if (Debugger.IsAttached) { // Display the current frame rate counters. //Application.Current.Host.Settings.<API key> = true; // Show the areas of the app that are being redrawn in each frame. //Application.Current.Host.Settings.EnableRedrawRegions = true; // Enable non-production analysis visualization mode, // which shows areas of a page that are handed off to GPU with a colored overlay. //Application.Current.Host.Settings.<API key> = true; // Prevent the screen from turning off while under the debugger by disabling // the application's idle detection. // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run // and consume battery power when the user is not using the phone. <API key>.Current.<API key> = IdleDetectionMode.Disabled; } } // Code to execute when the application is launching (eg, from Start) // This code will not execute when the application is reactivated private void <API key>(object sender, LaunchingEventArgs e) { } // Code to execute when the application is activated (brought to foreground) // This code will not execute when the application is first launched private void <API key>(object sender, ActivatedEventArgs e) { } // Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void <API key>(object sender, <API key> e) { } // Code to execute when the application is closing (eg, user hit Back) // This code will not execute when the application is deactivated private void Application_Closing(object sender, ClosingEventArgs e) { } // Code to execute if a navigation fails private void <API key>(object sender, <API key> e) { if (Debugger.IsAttached) { // A navigation has failed; break into the debugger Debugger.Break(); } } // Code to execute on Unhandled Exceptions private void <API key>(object sender, <API key> e) { if (Debugger.IsAttached) { // An unhandled exception has occurred; break into the debugger Debugger.Break(); } } #region Phone application initialization // Avoid <API key> private bool <API key> = false; // Do not add any additional code to this method private void <API key>() { if (<API key>) return; // Create the frame but don't set it as RootVisual yet; this allows the splash // screen to remain active until the application is ready to render. RootFrame = new <API key>(); RootFrame.Navigated += <API key>; // Handle navigation failures RootFrame.NavigationFailed += <API key>; // Handle reset requests for clearing the backstack RootFrame.Navigated += <API key>; // Ensure we don't initialize again <API key> = true; } // Do not add any additional code to this method private void <API key>(object sender, NavigationEventArgs e) { // Set the root visual to allow the application to render if (RootVisual != RootFrame) RootVisual = RootFrame; // Remove this handler since it is no longer needed RootFrame.Navigated -= <API key>; } private void <API key>(object sender, NavigationEventArgs e) { // If the app has received a 'reset' navigation, then we need to check // on the next navigation to see if the page stack should be reset if (e.NavigationMode == NavigationMode.Reset) RootFrame.Navigated += <API key>; } private void <API key>(object sender, NavigationEventArgs e) { // Unregister the event so it doesn't get called again RootFrame.Navigated -= <API key>; // Only clear the stack for 'new' (forward) and 'refresh' navigations if (e.NavigationMode != NavigationMode.New && e.NavigationMode != NavigationMode.Refresh) return; // For UI consistency, clear the entire page stack while (RootFrame.RemoveBackEntry() != null) { ; // do nothing } } #endregion // Initialize the app's font and flow direction as defined in its localized resource strings. // To ensure that the font of your application is aligned with its supported languages and that the // FlowDirection for each of those languages follows its traditional direction, ResourceLanguage // and <API key> should be initialized in each resx file to match these values with that // file's culture. For example: // AppResources.es-ES.resx // ResourceLanguage's value should be "es-ES" // <API key>'s value should be "LeftToRight" // AppResources.ar-SA.resx // ResourceLanguage's value should be "ar-SA" // <API key>'s value should be "RightToLeft" private void InitializeLanguage() { try { // Set the font to match the display language defined by the // ResourceLanguage resource string for each supported language. // Fall back to the font of the neutral language if the Display // language of the phone is not supported. // If a compiler error is hit then ResourceLanguage is missing from // the resource file. RootFrame.Language = XmlLanguage.GetLanguage(AppResources.ResourceLanguage); // Set the FlowDirection of all elements under the root frame based // on the <API key> resource string for each // supported language. // If a compiler error is hit then <API key> is missing from // the resource file. FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.<API key>); RootFrame.FlowDirection = flow; } catch { // If an exception is caught here it is most likely due to either // ResourceLangauge not being correctly set to a supported language // code or <API key> is set to a value other than LeftToRight // or RightToLeft. if (Debugger.IsAttached) { Debugger.Break(); } throw; } } } }
function constructionCrew(worker) { if (worker.handsShaking) { worker.bloodAlcoholLevel += worker.weight * worker.experience * 0.1; worker.handsShaking = false; } return worker; } /* { weight: Number, experience: Number, bloodAlcoholLevel: Number, handsShaking: Boolean } */ console.log( constructionCrew( { weight: 80, experience: 1, bloodAlcoholLevel: 0, handsShaking: true }));
import jQuery from 'jquery'; // Plugins / PxCharLimit const PxCharLimit = (function($) { 'use strict'; const NAME = 'pxCharLimit'; const DATA_KEY = 'px.charLimit'; const EVENT_KEY = `.${DATA_KEY}`; const JQUERY_NO_CONFLICT = $.fn[NAME]; const Default = { maxlength: null, counter: '', }; const Event = { KEYUP: `keyup${EVENT_KEY}`, FOCUS: `focus${EVENT_KEY}`, }; class CharLimit { constructor(element, config) { this.element = element; this.isTextarea = $(element).is('textarea'); this.config = this._getConfig(config); this.counter = this._getLabel(); this._setMaxLength(); this._setListeners(); this.update(); } // getters static get Default() { return Default; } static get NAME() { return NAME; } static get DATA_KEY() { return DATA_KEY; } static get Event() { return Event; } static get EVENT_KEY() { return EVENT_KEY; } // public update() { const maxlength = this.config.maxlength; let value = this.element.value; let charCount; if (this.isTextarea) { value = value.replace(/\r?\n/g, '\n'); } charCount = value.length; if (charCount > maxlength) { this.element.value = value.substr(0, maxlength); charCount = maxlength; } if (this.counter) { this.counter.innerHTML = maxlength - charCount; } } destroy() { this._unsetListeners(); $(this.element).removeData(DATA_KEY); } // private _getLabel() { if (!this.config.counter) { return null; } return typeof this.config.counter === 'string' ? ($(this.config.counter)[0] || null) : this.config.counter; } _setMaxLength() { if (!this.isTextarea) { this.element.setAttribute('maxlength', this.config.maxlength); } else { this.element.removeAttribute('maxlength'); } } _setListeners() { $(this.element) .on(this.constructor.Event.KEYUP, $.proxy(this.update, this)) .on(this.constructor.Event.FOCUS, $.proxy(this.update, this)); } _unsetListeners() { $(this.element).off(EVENT_KEY); } _getConfig(config) { const result = $.extend({}, this.constructor.Default, { maxlength: this.element.getAttribute('maxlength') }, $(this.element).data(), config ); if (!result.maxlength) { throw new Error('maxlength is not specified.'); } // Remove maxlength attribute if the element is a textarea if (this.isTextarea && this.element.getAttribute('maxlength')) { this.element.removeAttribute('maxlength'); } return result; } // static static _jQueryInterface(config) { return this.each(function() { let data = $(this).data(DATA_KEY); let _config = typeof config === 'object' ? config : null; if (!data) { data = new CharLimit(this, _config); $(this).data(DATA_KEY, data); } if (typeof config === 'string') { if (!data[config]) { throw new Error(`No method named "${config}"`); } data[config](); } }); } } $.fn[NAME] = CharLimit._jQueryInterface; $.fn[NAME].Constructor = CharLimit; $.fn[NAME].noConflict = function() { $.fn[NAME] = JQUERY_NO_CONFLICT; return CharLimit._jQueryInterface; }; return CharLimit; })(jQuery); export default PxCharLimit;
<!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>Large annotated image collection management: Member List</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="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Large annotated image collection management </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><a href="namespaces.html"><span>Namespaces</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="inherits.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="<API key>"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="class_c_b_i_r.html">CBIR</a></li><li class="navelem"><a class="el" href="<API key>.html">MatCompare</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">CBIR::MatCompare Member List</div> </div> </div><!--header <div class="contents"> <p>This is the complete list of members for <a class="el" href="<API key>.html">CBIR::MatCompare</a>, including all inherited members.</p> <table class="directory"> <tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">operator()</a>(const cv::Mat &amp;hashmatA, const cv::Mat &amp;hashmatB) const </td><td class="entry"><a class="el" href="<API key>.html">CBIR::MatCompare</a></td><td class="entry"></td></tr> </table></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>
package org.graylog.plugins.pipelineprocessor.functions.messages; import com.google.common.collect.ImmutableList; import org.graylog.plugins.pipelineprocessor.EvaluationContext; import org.graylog.plugins.pipelineprocessor.ast.functions.AbstractFunction; import org.graylog.plugins.pipelineprocessor.ast.functions.FunctionArgs; import org.graylog.plugins.pipelineprocessor.ast.functions.FunctionDescriptor; import org.graylog.plugins.pipelineprocessor.ast.functions.ParameterDescriptor; import org.graylog2.plugin.Message; import static org.graylog.plugins.pipelineprocessor.ast.functions.ParameterDescriptor.type; public class DropMessage extends AbstractFunction<Void> { public static final String NAME = "drop_message"; public static final String MESSAGE_ARG = "message"; private final ParameterDescriptor<Message, Message> messageParam; public DropMessage() { messageParam = type(MESSAGE_ARG, Message.class).optional().description("The message to drop, defaults to '$message'").build(); } @Override public Void evaluate(FunctionArgs args, EvaluationContext context) { final Message message = messageParam.optional(args, context).orElse(context.currentMessage()); message.setFilterOut(true); return null; } @Override public FunctionDescriptor<Void> descriptor() { return FunctionDescriptor.<Void>builder() .name(NAME) .pure(true) .returnType(Void.class) .params(ImmutableList.of( messageParam )) .description("Discards a message from further processing") .build(); } }
package server import ( "encoding/json" "fmt" "github.com/eris-ltd/decerver/interfaces/scripting" "io/ioutil" "net/http" "net/url" "strings" ) type HttpReqProxy struct { URL *url.URL Method string Host string Header http.Header Body string } func ProxyFromHttpReq(r *http.Request) (*HttpReqProxy, error) { bts, err := ioutil.ReadAll(r.Body); if err != nil { return nil, err; } else { // Make a runtime compatible object p := &HttpReqProxy{} p.Method = r.Method p.Host = r.Host p.URL = r.URL p.Header = r.Header p.Body = string(bts) return p, nil } } type HttpResp struct { Status int `json:"status"` Header map[string]string `json:"header"` Body string `json:"body"` } type HttpAPIServer struct { was *WsAPIServer rm scripting.RuntimeManager } func NewHttpAPIServer(rm scripting.RuntimeManager, maxConnections uint32) *HttpAPIServer { was := NewWsAPIServer(rm,maxConnections) return &HttpAPIServer{was, rm} } // This is our basic http receiver that takes the request and passes it into the js runtime. func (has *HttpAPIServer) handleHttp(w http.ResponseWriter, r *http.Request) { fmt.Println("Stuff") u := r.URL fmt.Printf("URL %v\n",u) if u.Scheme == "ws" { has.was.handleWs(w,r) return } p := u.Path caller := strings.Split(strings.TrimLeft(p,"/"),"/")[1]; rt := has.rm.GetRuntime(caller) // TODO Update this. It's basically how we check if dapp is ready now. if rt == nil { w.WriteHeader(400) w.Header().Set("Content-Type", "text/plain; charset=utf-8") fmt.Fprint(w, "Dapp not in focus") return } // logger.Println("Incoming: %v\n", r) prx, errpr := ProxyFromHttpReq(r) // Shouldn't happen. if errpr != nil { has.writeError(w, 400, errpr.Error()) return } // TODO this is a bad solution. It should be possible to pass objects (at least maps) right in. bts, _ := json.Marshal(prx) // DEBUG if (len(string(bts)) <= 10000) { fmt.Println("REQUEST: " + string(bts)) } else { toPrint := bts[:10000] fmt.Println("REQUEST: " + string(toPrint) + " ...{truncated}") } ret, err := rt.CallFuncOnObj("network", "handleIncomingHttp", string(bts)) if err != nil { has.writeError(w, 500, err.Error()) return } rStr, sOk := ret.(string) if !sOk { has.writeError(w, 500, "Passing non string as return value from otto.") return } hr := &HttpResp{} errJson := json.Unmarshal([]byte(rStr), hr) if errJson != nil { has.writeError(w, 500, errJson.Error()) return } has.writeReq(hr, w) } func (has *HttpAPIServer) writeReq(resp *HttpResp, w http.ResponseWriter) { logger.Printf("Response status message: %d\n", resp.Status) logger.Printf("Response header stuff: %v\n", resp.Header) w.WriteHeader(resp.Status) for k, v := range resp.Header { w.Header().Set(k, v) } w.Write([]byte(resp.Body)) } func (has *HttpAPIServer) writeError(w http.ResponseWriter, status int, msg string) { w.WriteHeader(status) w.Header().Set("Content-Type", "text/plain; charset=utf-8") fmt.Fprint(w, msg) }
package com.css.gestionmotor.config; import com.css.gestionmotor.aop.logging.LoggingAspect; import org.springframework.context.annotation.*; @Configuration @<API key> public class <API key> { @Bean @Profile(Constants.<API key>) public LoggingAspect loggingAspect() { return new LoggingAspect(); } }
body { background: #7ED320 url(/public/images/bg.svg) no-repeat; background-size: 100%; font-family: 'Neucha', sans-serif; font-size: 20px; } #login h1 { margin-top:50px; text-align: center; } #login form { position: absolute; top: 0; left: 0; bottom: 0; right: 0; overflow: auto; /* pour IE, pas max-width: 500px */ width: 500px; max-width: 100%; height: 450px; margin: auto; border: 1px solid #fff; background: rgba(255,255,255,0.7); border-radius: 10px; padding: 30px; } #login .error, #login .success { color: #fff; text-align: center; margin-bottom: 10px; padding: 5px; } .form-control { margin-bottom: 10px; font-size: 20px; } #login .error { background: #c00 !important; font-family: 'helvetica', sans-serif; font-size: 14px; } #login .success { background: #008800 !important; font-family: 'helvetica', sans-serif; font-size: 14px; } #login p { margin: 30px 0; } a { color: #24C33A; } a:hover { color: #7BD50A; } .btn-custom { color: #FFFFFF; background-color: #24C33A; border-color: #24C33A; font-size: 20px; } .btn-custom:hover, .btn-custom:focus, .btn-custom:active, .btn-custom.active, .open .dropdown-toggle.btn-custom { color: #FFFFFF; background-color: #7BD50A; border-color: #24C33A; } .btn-custom:active, .btn-custom.active, .open .dropdown-toggle.btn-custom { background-image: none; } .btn-custom.disabled, .btn-custom[disabled], fieldset[disabled] .btn-custom, .btn-custom.disabled:hover, .btn-custom[disabled]:hover, fieldset[disabled] .btn-custom:hover, .btn-custom.disabled:focus, .btn-custom[disabled]:focus, fieldset[disabled] .btn-custom:focus, .btn-custom.disabled:active, .btn-custom[disabled]:active, fieldset[disabled] .btn-custom:active, .btn-custom.disabled.active, .btn-custom[disabled].active, fieldset[disabled] .btn-custom.active { background-color: #24C33A; border-color: #24C33A; } .btn-custom .badge { color: #24C33A; background-color: #FFFFFF; }
.amap-container { height: 300px; }
package uk.ac.bbsrc.tgac.miso.webapp.controller.rest; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.function.Function; import javax.ws.rs.core.Response.Status; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import uk.ac.bbsrc.tgac.miso.core.data.Deletable; import uk.ac.bbsrc.tgac.miso.core.data.DetailedQcStatus; import uk.ac.bbsrc.tgac.miso.core.data.HierarchyEntity; import uk.ac.bbsrc.tgac.miso.core.data.Identifiable; import uk.ac.bbsrc.tgac.miso.core.service.DeleterService; import uk.ac.bbsrc.tgac.miso.core.service.ProviderService; import uk.ac.bbsrc.tgac.miso.core.service.SaveService; import uk.ac.bbsrc.tgac.miso.core.service.exception.<API key>; import uk.ac.bbsrc.tgac.miso.dto.request.<API key>; public class RestUtils { private RestUtils() { throw new <API key>("Util class not intended for instantiation"); } public static <T, R extends Identifiable> T getObject(String type, long id, ProviderService<R> service, Function<R, T> toDto) throws IOException { R object = retrieve(type, id, service); return toDto.apply(object); } public static <T, R extends Identifiable, S> T createObject(String type, T dto, Function<T, R> toObject, SaveService<R> service, Function<R, T> toDto) throws IOException { validateDtoProvided(type, dto); R object = toObject.apply(dto); validateNewObject(type, object); long savedId = service.create(object); return toDto.apply(service.get(savedId)); } public static <T> void validateDtoProvided(String type, T dto) { if (dto == null) { throw new RestException(type + " not provided", Status.BAD_REQUEST); } } public static <T extends Identifiable> void validateNewObject(String type, T object) { if (object.isSaved()) { throw new RestException(type + " is already saved", Status.BAD_REQUEST); } } public static <T, R extends Identifiable, S> T updateObject(String type, long targetId, T dto, Function<T, R> toObject, SaveService<R> service, Function<R, T> toDto) throws IOException { validateDtoProvided(type, dto); R object = toObject.apply(dto); if (object.getId() != targetId) { throw new RestException(type + " ID mismatch", Status.BAD_REQUEST); } else if (service.get(targetId) == null) { throw new RestException(type + " not found", Status.NOT_FOUND); } long savedId = service.update(object); return toDto.apply(service.get(savedId)); } public static <T extends Deletable> void bulkDelete(String type, List<Long> ids, DeleterService<T> service) throws IOException { List<T> items = new ArrayList<>(); for (Long id : ids) { if (id == null) { throw new RestException(type + " id cannot be null", Status.BAD_REQUEST); } T item = retrieve(type, id, service); items.add(item); } service.bulkDelete(items); } public static <T extends Deletable> void delete(String type, long targetId, DeleterService<T> service) throws IOException { T item = service.get(targetId); if (item == null) { throw new RestException(type + " not found", Status.NOT_FOUND); } service.delete(item); } public static <T extends Identifiable> T retrieve(String type, long id, ProviderService<T> service) throws IOException { return retrieve(type, id, service, Status.NOT_FOUND); } public static <T extends Identifiable> T retrieve(String type, long id, ProviderService<T> service, Status notFoundStatus) throws IOException { if (id <= 0) { throw new RestException("Invalid id: " + id, Status.BAD_REQUEST); } T object = service.get(id); if (object == null) { throw new RestException(type + " " + id + " not found", notFoundStatus); } return object; } public static void <API key>(ObjectNode node, <API key> exception) { ArrayNode rows = node.putArray("data"); for (Entry<Integer, Map<String, List<String>>> entry : exception.<API key>().entrySet()) { ObjectNode rowNode = rows.addObject(); rowNode.put("row", entry.getKey()); ArrayNode fields = rowNode.putArray("fields"); for (Entry<String, List<String>> fieldErrors : entry.getValue().entrySet()) { ObjectNode field = fields.addObject(); field.put("field", fieldErrors.getKey()); ArrayNode errors = field.putArray("errors"); for (String fieldError : fieldErrors.getValue()) { errors.add(fieldError); } } } } public static <T extends HierarchyEntity, R> R updateQcStatus(String entityType, long id, <API key> dto, SaveService<T> service, ProviderService<DetailedQcStatus> <API key>, Function<T, R> toDto) throws IOException { T item = RestUtils.retrieve(entityType, id, service); DetailedQcStatus status = null; if (dto.getQcStatusId() != null) { status = RestUtils.retrieve("QC Status", dto.getQcStatusId(), <API key>, Status.BAD_REQUEST); } item.setDetailedQcStatus(status); item.<API key>(dto.getNote()); long savedId = service.update(item); T saved = service.get(savedId); return toDto.apply(saved); } }
#include <iostream> #include <vector> #include "block.hpp" #include "ioimage.hpp" #include "greyimage.hpp" #include "dctsorter.hpp" #include "cliparser.hpp" #include "log/log.hpp" int main( int argc, char** argv ) { // checks SorterParams params = cliparser::parseCLI( argc, argv ); if( !params.valid() ) { LOG_WARNING( "Invalid params, exiting..." ); return 1; } LOG( "Start" ); IOImage image( params.filename() ); if( image.isNull() ) { LOG_WARNING( "Invalid image, exiting..." ); return 1; } // algorithm { DCTSorter sorter; sorter.start(); sorter.setParams( params ); sorter.setGrey( image.getGrey() ); sorter.work(); // debug image.setGrey( sorter.getGrey() ); image.save( "z_interesting.jpg" ); DCTSorter::ShiftImages shifts = sorter.getShiftImages(); image.setGrey( shifts.from ); image.save( "y_from.png" ); image.setGrey( shifts.to ); image.save( "y_to.png" ); // result LOG( "Drawing results..." ); image.load( params.filename() ); std::vector<ShiftHit> shiftHits = sorter.getShiftHits(); std::reverse( shiftHits.begin(), shiftHits.end() ); for( const ShiftHit& hit : shiftHits ) { image.drawHit( hit ); } image.save( "z_result.jpg" ); } LOG( "End" ); return 0; }
package com.ldbc.driver.runtime.coordination; import com.ldbc.driver.runtime.coordination.<API key>.<API key>; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; public class <API key> { @Test public void <API key>() throws <API key> { // Given <API key> tracker = <API key>.<API key>.<API key>(); // When // nothing // Then assertThat( tracker.<API key>( Long.MAX_VALUE ), is( -1L ) ); } @Test public void <API key>() throws <API key> { <API key>( <API key>.<API key>.<API key>() ); } @Test public void <API key>() throws <API key> { <API key>( <API key>.<API key>.<API key>() ); } private void <API key>( <API key>.<API key> tracker ) throws <API key> { // Given // tracker // When tracker.<API key>( 1L ); // Then assertThat( tracker.<API key>( 0L ), is( -1L ) ); assertThat( tracker.<API key>( 1L ), is( -1L ) ); assertThat( tracker.<API key>( Long.MAX_VALUE ), is( 1L ) ); } @Test public void shouldRemoveTimesCorrectlyWhenThereIsAreMultipleTimesThatAreAddedInOrder_UsingTreeMultiSet() throws <API key> { <API key>( <API key>.<API key>() ); } @Test public void shouldRemoveTimesCorrectlyWhenThereIsAreMultipleTimesThatAreAddedInOrder_UsingList() throws <API key> { <API key>( <API key>.<API key>.<API key>() ); } private void <API key>( <API key>.<API key> tracker ) throws <API key> { // Given // tracker // When/Then assertThat( tracker.<API key>( 0L ), is( -1L ) ); assertThat( tracker.<API key>( Long.MAX_VALUE ), is( -1L ) ); tracker.<API key>( 1L ); assertThat( tracker.<API key>( 0L ), is( -1L ) ); assertThat( tracker.<API key>( 1L ), is( -1L ) ); tracker.<API key>( 2L ); assertThat( tracker.<API key>( 0L ), is( -1L ) ); assertThat( tracker.<API key>( 1L ), is( -1L ) ); // [1,2,3] tracker.<API key>( 3L ); assertThat( tracker.<API key>( 2L ), is( 1L ) ); // [ ,2,3,4] tracker.<API key>( 4L ); // [ ,2,3,4,5,6,7] tracker.<API key>( 5L ); tracker.<API key>( 6L ); tracker.<API key>( 7L ); // [ , , , ,5,6,7] assertThat( tracker.<API key>( 5L ), is( 4L ) ); // [ , , , ,5,6,7,8,9,10] tracker.<API key>( 8L ); tracker.<API key>( 9L ); tracker.<API key>( 10L ); // [ , , , ,5,6,7,8,9,10,11,14,15] tracker.<API key>( 11L ); tracker.<API key>( 14L ); tracker.<API key>( 15L ); // [ , , , , , , , , , , ,14,15] assertThat( tracker.<API key>( 13L ), is( 11L ) ); assertThat( tracker.<API key>( Long.MAX_VALUE ), is( 15L ) ); assertThat( tracker.<API key>( Long.MAX_VALUE ), is( -1L ) ); } @Test public void shouldRemoveTimesCorrectlyWhenThereIsAreMultipleTimesThatAreAddedOutOfOrder_UsingTreeMultiSet() throws <API key> { <API key>( <API key>.<API key>.<API key>() ); } @Test public void shouldRemoveTimesCorrectlyWhenThereIsAreMultipleTimesThatAreAddedOutOfOrder_UsingList() throws <API key> { <API key>( <API key>.<API key>.<API key>() ); } private void <API key>( <API key>.<API key> tracker ) throws <API key> { // Given // tracker // When/Then assertThat( tracker.<API key>( 0L ), is( -1L ) ); assertThat( tracker.<API key>( Long.MAX_VALUE ), is( -1L ) ); tracker.<API key>( 1L ); // [0,0,1,1] tracker.<API key>( 0L ); tracker.<API key>( 0L ); tracker.<API key>( 1L ); // [0,0,1,1,9,2,6] tracker.<API key>( 9L ); tracker.<API key>( 2L ); tracker.<API key>( 6L ); // [ , , , ,9, ,6] assertThat( tracker.<API key>( 4L ), is( 2L ) ); // [ , , , ,9, ,6,1,0,0,4] tracker.<API key>( 1L ); tracker.<API key>( 0L ); tracker.<API key>( 0L ); tracker.<API key>( 4L ); // [ , , , ,9, ,6, , , ,4] assertThat( tracker.<API key>( 4L ), is( 1L ) ); // [ , , , ,9, ,6, , , ,4,1,2,3,4,5,6,7,8,9] tracker.<API key>( 1L ); tracker.<API key>( 2L ); tracker.<API key>( 3L ); tracker.<API key>( 4L ); tracker.<API key>( 5L ); tracker.<API key>( 6L ); tracker.<API key>( 7L ); tracker.<API key>( 8L ); tracker.<API key>( 9L ); // [ , , , ,9, ,6, , , , , , , , , ,6,7,8,9] assertThat( tracker.<API key>( 6L ), is( 5L ) ); // [ , , , ,9, ,6, , , , , , , , , ,6,7,8,9,10] tracker.<API key>( 10L ); // [ , , , ,9, ,6, , , , , , , , , ,6,7,8,9,10] assertThat( tracker.<API key>( 6L ), is( -1L ) ); // [ , , , ,9, , , , , , , , , , , , , ,8,9,10] assertThat( tracker.<API key>( 8L ), is( 7L ) ); // [ , , , ,9, , , , , , , , , , , , , ,8,9,10,0] tracker.<API key>( 0L ); // [ , , , ,9, , , , , , , , , , , , , ,8,9,10,0,15] tracker.<API key>( 15L ); // [ , , , ,9, , , , , , , , , , , , , ,8,9,10, ,15] assertThat( tracker.<API key>( 6L ), is( 0L ) ); assertThat( tracker.<API key>( 12L ), is( 10L ) ); assertThat( tracker.<API key>( 15L ), is( -1L ) ); assertThat( tracker.<API key>( 16L ), is( 15L ) ); assertThat( tracker.<API key>( Long.MAX_VALUE ), is( -1L ) ); } }
#include "globals.h" #ifdef READER_JET #include "oscam-time.h" #include "reader-common.h" #include "cscrypt/des.h" #include "cscrypt/jet_twofish.h" #include "cscrypt/jet_dh.h" #define CRC16 0x8005 static const uint8_t vendor_key[32] = {0x54, 0xF5, 0x53, 0x12, 0xEA, 0xD4, 0xEC, 0x03, 0x28, 0x60, 0x80, 0x94, 0xD6, 0xC4, 0x3A, 0x48, 0x43, 0x71, 0x28, 0x94, 0xF4, 0xE3, 0xAB, 0xC7, 0x36, 0x59, 0x17, 0x8E, 0xCC, 0x6D, 0xA0, 0x9B}; static uint8_t boxkey[32]; #define jet_write_cmd(reader, cmd, len, ins, title) \ do { \ uint8_t __cmd_buf[256];\ uint8_t __cmd_tmp[256];\ memset(__cmd_buf, 0, sizeof(__cmd_buf));\ memcpy(__cmd_buf, cmd, len);\ uint16_t crc=calc_crc16(__cmd_buf, len);\ __cmd_buf[len] = crc >> 8;\ __cmd_buf[len + 1] = crc & 0xFF;\ rdr_log_dump_dbg(reader, D_DEVICE, __cmd_buf, len + 2, "%s cmd :", title);\ if(!jet_encrypt(reader, ins, __cmd_buf, len + 2, __cmd_tmp, sizeof(__cmd_tmp))){\ rdr_log(reader, "error: %s failed... (encrypt cmd failed.)", title);\ return ERROR;\ }\ rdr_log_dump_dbg(reader, D_DEVICE, __cmd_tmp, __cmd_tmp[4] + 7, "%s cmd(encrypt) :", title);\ write_cmd(__cmd_tmp, __cmd_tmp + 5);\ if(cta_res[cta_lr - 2] != 0x90 || cta_res[cta_lr - 1] != 0x00){\ rdr_log(reader, "error: %s failed... ", title);\ return ERROR;\ }\ } while (0) #define jet_write_cmd_hold(reader, cmd, len, ins, title) \ do { \ uint8_t __cmd_buf[256];\ uint8_t __cmd_tmp[256];\ memset(__cmd_buf, 0, sizeof(__cmd_buf));\ memcpy(__cmd_buf, cmd, len);\ uint16_t crc=calc_crc16(__cmd_buf, len);\ __cmd_buf[len] = crc >> 8;\ __cmd_buf[len + 1] = crc & 0xFF;\ rdr_log_dump_dbg(reader, D_DEVICE, __cmd_buf, len + 2, "%s cmd :", title);\ if(jet_encrypt(reader, ins, __cmd_buf, len + 2, __cmd_tmp, sizeof(__cmd_tmp))){\ rdr_log_dump_dbg(reader, D_DEVICE, __cmd_tmp, __cmd_tmp[4] + 7, "%s cmd(encrypt) :",title);\ write_cmd(__cmd_tmp, __cmd_tmp + 5);\ if(cta_res[cta_lr - 2] != 0x90 || cta_res[cta_lr - 1] != 0x00){\ rdr_log(reader, "warning: %s failed... ", title);\ }\ }\ else \ rdr_log(reader, "warning: %s failed... (encrypt cmd failed.)", title);\ } while (0) static const uint16_t crc16_table[256]={ 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241, 0xC601, 0x06C0, 0x0780, 0xC741, 0x0500, 0xC5C1, 0xC481, 0x0440, 0xCC01, 0x0CC0, 0x0D80, 0xCD41, 0x0F00, 0xCFC1, 0xCE81, 0x0E40, 0x0A00, 0xCAC1, 0xCB81, 0x0B40, 0xC901, 0x09C0, 0x0880, 0xC841, 0xD801, 0x18C0, 0x1980, 0xD941, 0x1B00, 0xDBC1, 0xDA81, 0x1A40, 0x1E00, 0xDEC1, 0xDF81, 0x1F40, 0xDD01, 0x1DC0, 0x1C80, 0xDC41, 0x1400, 0xD4C1, 0xD581, 0x1540, 0xD701, 0x17C0, 0x1680, 0xD641, 0xD201, 0x12C0, 0x1380, 0xD341, 0x1100, 0xD1C1, 0xD081, 0x1040, 0xF001, 0x30C0, 0x3180, 0xF141, 0x3300, 0xF3C1, 0xF281, 0x3240, 0x3600, 0xF6C1, 0xF781, 0x3740, 0xF501, 0x35C0, 0x3480, 0xF441, 0x3C00, 0xFCC1, 0xFD81, 0x3D40, 0xFF01, 0x3FC0, 0x3E80, 0xFE41, 0xFA01, 0x3AC0, 0x3B80, 0xFB41, 0x3900, 0xF9C1, 0xF881, 0x3840, 0x2800, 0xE8C1, 0xE981, 0x2940, 0xEB01, 0x2BC0, 0x2A80, 0xEA41, 0xEE01, 0x2EC0, 0x2F80, 0xEF41, 0x2D00, 0xEDC1, 0xEC81, 0x2C40, 0xE401, 0x24C0, 0x2580, 0xE541, 0x2700, 0xE7C1, 0xE681, 0x2640, 0x2200, 0xE2C1, 0xE381, 0x2340, 0xE101, 0x21C0, 0x2080, 0xE041, 0xA001, 0x60C0, 0x6180, 0xA141, 0x6300, 0xA3C1, 0xA281, 0x6240, 0x6600, 0xA6C1, 0xA781, 0x6740, 0xA501, 0x65C0, 0x6480, 0xA441, 0x6C00, 0xACC1, 0xAD81, 0x6D40, 0xAF01, 0x6FC0, 0x6E80, 0xAE41, 0xAA01, 0x6AC0, 0x6B80, 0xAB41, 0x6900, 0xA9C1, 0xA881, 0x6840, 0x7800, 0xB8C1, 0xB981, 0x7940, 0xBB01, 0x7BC0, 0x7A80, 0xBA41, 0xBE01, 0x7EC0, 0x7F80, 0xBF41, 0x7D00, 0xBDC1, 0xBC81, 0x7C40, 0xB401, 0x74C0, 0x7580, 0xB541, 0x7700, 0xB7C1, 0xB681, 0x7640, 0x7200, 0xB2C1, 0xB381, 0x7340, 0xB101, 0x71C0, 0x7080, 0xB041, 0x5000, 0x90C1, 0x9181, 0x5140, 0x9301, 0x53C0, 0x5280, 0x9241, 0x9601, 0x56C0, 0x5780, 0x9741, 0x5500, 0x95C1, 0x9481, 0x5440, 0x9C01, 0x5CC0, 0x5D80, 0x9D41, 0x5F00, 0x9FC1, 0x9E81, 0x5E40, 0x5A00, 0x9AC1, 0x9B81, 0x5B40, 0x9901, 0x59C0, 0x5880, 0x9841, 0x8801, 0x48C0, 0x4980, 0x8941, 0x4B00, 0x8BC1, 0x8A81, 0x4A40, 0x4E00, 0x8EC1, 0x8F81, 0x4F40, 0x8D01, 0x4DC0, 0x4C80, 0x8C41, 0x4400, 0x84C1, 0x8581, 0x4540, 0x8701, 0x47C0, 0x4680, 0x8641, 0x8201, 0x42C0, 0x4380, 0x8341, 0x4100, 0x81C1, 0x8081, 0x4040 }; static uint16_t calc_crc16(uint8_t* in, int len) { int i = 0; uint16_t crc_value = 0; while(len >= 0) { int j = len - 1; if(len <= 0) { return crc_value; } crc_value = ((uint16_t)(((crc_value & 0xFFFF) >> 8) ^ crc16_table[((0xFFFF & crc_value) ^ (in[i] & 0xFF)) & 0xFF])); ++i; len = j; } return crc_value; } static size_t jet_encrypt(struct s_reader* reader,uint8_t ins, uint8_t *data, size_t len, uint8_t *out, size_t maxlen) { uint8_t buf[256]; size_t i; size_t aligned_len = (len + 15) / 16 * 16; if((aligned_len + 7) > maxlen || (aligned_len + 7) > 256) return 0; memset(buf, 0xFF, aligned_len + 7); out[0] = 0x84; out[1] = ins; out[2] = 0; out[3] = 0; out[4] = aligned_len & 0xFF; memcpy(buf, data, len); if(ins == 0x15){ twofish(buf,len, out + 5, maxlen, reader->jet_vendor_key, sizeof(reader->jet_vendor_key), <API key>); } else if(ins == 0x16){ for(i = 0; i < (aligned_len / 8); i++) des_ecb_encrypt(buf + 8 * i, reader->jet_vendor_key + (i % 4) * 8, 8); memcpy(out + 5, buf, aligned_len); } else memcpy(out + 5, buf, aligned_len); out[aligned_len + 5] = 0x90; out[aligned_len + 6] = 0x00; return (aligned_len + 7); } #if 0 static size_t jet_decrypt(struct s_reader* reader, uint8_t *data, uint8_t *out, size_t maxlen) { uint8_t buf[256]; size_t i; uint8_t ins; int len = data[4]; memset(buf, 0, sizeof(buf)); memset(out, 0, maxlen); ins = data[1]; memcpy(buf, data + 5, len); if(ins == 0x15){ twofish(buf,len, out,maxlen,reader->jet_vendor_key,sizeof(vendor_key),<API key>); } else if(ins == 0x16){ for(i = 0; i < (len / 8); i++) des_ecb_encrypt(buf + 8 * i, reader->vendor_key + (i % 4) * 8, 8); memcpy(out, buf, len); } else memcpy(out, buf, len); return (len); } #endif static int32_t cw_is_valid(unsigned char *cw) //returns 1 if cw_is_valid, returns 0 if cw is all zeros { int32_t i; for(i = 0; i < 16; i++) { if(cw[i] != 0) //test if cw = 00 { return OK; } } return ERROR; } static int generate_derivekey(struct s_reader *reader, uint8_t * out, int len) { uint8_t mask_key[32] = {0x16,0x23,0x6A,0x8A,0xF5,0xC2,0x8E,0x6,0x14,0x53,0xCF,0x6E,0x12,0xA1,0x2E,0xC5, 0xE4,0xF8,0x94,0x10,0x03,0x0A,0xD8,0xC6,0xD4,0x55,0xE8,0x4A,0xB6,0x22,0x09,0xAD}; uint8_t temp[128]; uint8_t derivekey[56]={0x59, 0x32, 0x00, 0x00}; int i; if(len < (int)sizeof(derivekey)) return 0; memset(temp, 0 , sizeof(temp)); memcpy(temp + 56, mask_key, sizeof(mask_key)); memcpy(temp + 56 + sizeof(mask_key), reader->hexserial, 8); memcpy(temp + 56 + sizeof(mask_key) + 8, reader->jet_root_key, 8); temp[12] = temp[100] ^ temp[92]; temp[16] = temp[102] ^ temp[94]; temp[20] = temp[97]; temp[32] = temp[96] ^ temp[88]; temp[36] = temp[97] ^ temp[89]; temp[40] = temp[98] ^ temp[90]; temp[44] = temp[99] ^ temp[91]; temp[48] = temp[101] ^ temp[93]; temp[52] = temp[103]; memcpy(derivekey + 4, reader->jet_root_key, 8); derivekey[12] = temp[32]; derivekey[13] = temp[36]; derivekey[14] = temp[40]; derivekey[15] = temp[44]; derivekey[16] = temp[12]; derivekey[17] = temp[48]; derivekey[18] = temp[16]; derivekey[19] = temp[52] ^ temp[95]; for(i = 0; i < 36; i++) derivekey[20 + i] = temp[54 + i] ^ temp[ (i % 8) + 96]; uint16_t crc = calc_crc16(derivekey, 54); derivekey[54] = crc >> 8; derivekey[55] = crc & 0xFF; memcpy(out, derivekey, sizeof(derivekey)); return sizeof(derivekey); } static int32_t <API key>(struct s_reader *reader) { int i; uint8_t x[16], k1[32], X[32], buf[512]; uint8_t <API key>[108] = {0x11, 0x68, 0x00, 0x00}; srand((int32_t)time(0)); for(i = 0; i < 16; i++) { x[i] = rand(); } DH_Public_Key_Gen(x, 16, X); memset(<API key> + 4, 0, sizeof(<API key>) - 4); memcpy(<API key> + 12, boxkey, sizeof(boxkey)); memcpy(<API key> + sizeof(boxkey), X, 32); def_resp; jet_write_cmd(reader, <API key>, sizeof(<API key>), 0x15, "resync vendorkey"); if(37 > twofish(cta_res + 5, cta_res[4], buf, sizeof(buf), reader->jet_vendor_key, sizeof(reader->jet_vendor_key), <API key>)) return -1; DH_Agree_Key_Gen(buf + 5, 32, x, 16, k1); if(reader->cas_version > 52 && !memcmp(buf + 0x25, X, 32)) return -1; memcpy(reader->jet_vendor_key, k1, sizeof(k1)); return 0; } static int32_t jet_card_init(struct s_reader *reader, ATR *newatr) { uint8_t get_serial_cmd[37] = {0x21, 0x21, 0x00, 0x00, 0x00}; uint8_t get_key_cmd[6] = {0x58, 0x02, 0x00, 0x00, 0x00, 0x00}; uint8_t register_key_cmd[48] = {0x15, 0x2C, 0x00, 0x00}; uint8_t <API key>[12] = {0x12, 0x08, 0x00, 0x00}; uint8_t pairing_cmd01[38] = {0x20, 0x22, 0x00, 0x00}; uint8_t pairing_cmd02[53] = {0x37, 0x31, 0x00, 0x00}; uint8_t confirm_box_cmd[55] = {0x93, 0x33, 0x00, 0x00, 0x00, 0x00}; uint8_t unknow_cmd1[39] = {0x71, 0x23, 0x00, 0x00, 0x04, 0x00}; get_hist; def_resp; uint8_t cmd_buf[256]; uint8_t temp[256]; uint8_t buf[256]; int i,len; struct twofish_ctx ctx; if((hist_size < 14) || (memcmp(hist,"FLASH ATR DVB TESTING", 21) && memcmp(hist, "DVN TECH", 8) != 0)) { return ERROR; } reader->cas_version = (hist[12] - 0x30) * 10 + hist[13] - 0x30; rdr_log(reader, "DVN Jetcas version %d.%d card detect",reader->cas_version / 10, reader->cas_version % 10); reader->caid = 0x4A30; reader->nprov = 1; memset(reader->prid, 0x00, sizeof(reader->prid)); if(reader->boxkey_length == sizeof(boxkey)) memcpy(boxkey, reader->boxkey, sizeof(boxkey)); else memset(boxkey, 0xEE, sizeof(boxkey)); if(reader->cas_version <= 52){ for(i = 0; i < 32; i++) reader->jet_vendor_key[i] = i; } else memcpy(reader->jet_vendor_key, vendor_key, sizeof(vendor_key)); // get serial step1 jet_write_cmd(reader, get_serial_cmd, sizeof(get_serial_cmd), 0xAA, "get serial step1"); memcpy(reader->hexserial, cta_res + 9, 8); rdr_log_dump(reader, cta_res +9 , 8, "serial step1,SN"); if(reader->cas_version >= 53){ //get root key jet_write_cmd(reader, get_key_cmd, sizeof(get_key_cmd), 0xAA, "get rootkey"); memcpy(temp, cta_res + 5, cta_res[4]); memset(temp + cta_res[4], 0, sizeof(temp) - cta_res[4]); twofish_setkey(&ctx, reader->jet_vendor_key, sizeof(reader->jet_vendor_key)); twofish_decrypt(&ctx, temp, cta_res[4], buf, sizeof(buf)); memset(reader->jet_root_key, 0 ,sizeof(reader->jet_root_key)); memcpy(reader->jet_root_key, buf + 4, (cta_res[4] < sizeof(reader->jet_root_key)) ? cta_res[4] : sizeof(reader->jet_root_key)); rdr_log_dump_dbg(reader, D_DEVICE, reader->jet_root_key, sizeof(reader->jet_root_key), "root key"); //get derive key memset(temp, 0, sizeof(temp)); if(!generate_derivekey(reader, temp, sizeof(temp))){ rdr_log(reader, "error: generate derivekey failed, buffer overflow!"); return ERROR; } //generate_derivekey has filled crc16. so call jet_write_cmd with len - 2. jet_write_cmd(reader, temp, sizeof(reader->jet_derive_key) - 2, 0xAA, "get derivekey"); memcpy(reader->jet_derive_key, temp, sizeof(reader->jet_derive_key)); rdr_log_dump_dbg(reader, D_DEVICE, reader->jet_derive_key, sizeof(reader->jet_derive_key), "derive key"); //get auth key memset(cmd_buf, 0, sizeof(cmd_buf)); memcpy(cmd_buf, get_key_cmd, sizeof(get_key_cmd)); memcpy(cmd_buf + 4, reader->jet_root_key, 2); jet_write_cmd(reader, cmd_buf, sizeof(get_key_cmd), 0xAA, "get authkey"); memset(temp, 0, sizeof(temp)); memcpy(temp, cta_res, cta_res[4]); twofish_decrypt(&ctx, temp, cta_res[4], buf, sizeof(buf)); memcpy(reader->jet_auth_key, buf + 4, 10); rdr_log_dump_dbg(reader, D_DEVICE, reader->jet_auth_key, sizeof(reader->jet_auth_key), "auth key"); //register auth key memcpy(register_key_cmd + 36, reader->jet_auth_key, 8); register_key_cmd[42] = 0; memcpy(register_key_cmd + 44, reader->jet_derive_key + 44, 4); jet_write_cmd(reader, register_key_cmd, sizeof(register_key_cmd), 0x15, "register authkey"); //change vendor key jet_write_cmd(reader, <API key>, sizeof(<API key>), 0x15, "change vendorkey"); memset(temp, 0, sizeof(temp)); memcpy(temp, cta_res + 5, cta_res[4]); len = twofish_decrypt(&ctx, temp, cta_res[4], buf, sizeof(buf)); if(48 == len && buf[0] == 0x42 && buf[1] == 0x20){ memcpy(reader->jet_vendor_key, buf + 4, 32); twofish_setkey(&ctx, reader->jet_vendor_key, sizeof(reader->jet_vendor_key)); } else if(buf[0] != 0x40 || buf[1] != 0x05){ rdr_log_dump(reader, buf, len, "error: update vendor key failed, return data incorrect. returned data[%d]:",len); // return ERROR; } } //pairing step1 memcpy(pairing_cmd01 + 4, boxkey, sizeof(boxkey)); pairing_cmd01[36] = 0x00; pairing_cmd01[37] = 0x01; jet_write_cmd(reader, pairing_cmd01, sizeof(pairing_cmd01), 0x15, "pairing step 1"); memset(temp, 0, sizeof(temp)); memcpy(temp, cta_res + 5, cta_res[4]); twofish_decrypt(&ctx, temp, cta_res[4], buf, sizeof(buf)); if(buf[0] != 0x41){ rdr_log(reader, "error: pairing step 1 failed(invalid data) ..."); // return ERROR; } //pairing step 2 memcpy(pairing_cmd02 + 4, boxkey, sizeof(boxkey)); pairing_cmd02[36] = 0x01; for(i = 37;i < 45; i++) pairing_cmd02[i] = 0x30; if(reader->cas_version >= 5) memcpy(pairing_cmd02 + 45, reader->jet_derive_key + 45, 8); jet_write_cmd_hold(reader, pairing_cmd02, sizeof(pairing_cmd02), 0x15, "pairing step 2"); if(reader->cas_version <= 52){ for( i = 1; i <= 7; i++){ memcpy(cmd_buf, confirm_box_cmd, sizeof(confirm_box_cmd)); cmd_buf[0] = 0x38; cmd_buf[4] = i; memcpy(confirm_box_cmd + 6, boxkey, sizeof(boxkey)); confirm_box_cmd[38] = 0x01; for(i = 39;i < 47; i++) confirm_box_cmd[i] = 0x30; jet_write_cmd_hold(reader, confirm_box_cmd, sizeof(confirm_box_cmd), 0x15, "confirm box"); } } else{ //get service key memset(cmd_buf, 0, sizeof(cmd_buf)); memcpy(cmd_buf, get_key_cmd, sizeof(get_key_cmd)); memcpy(cmd_buf + 4, boxkey, 2); jet_write_cmd(reader, cmd_buf, sizeof(get_key_cmd), 0xAA, "get service key"); memset(temp, 0, sizeof(temp)); memcpy(temp, cta_res + 5, cta_res[4]); twofish_decrypt(&ctx, temp, cta_res[4], buf, sizeof(buf)); memcpy(reader->jet_service_key, buf + 4, 8); reader->jet_service_key[3] += reader->jet_service_key[1]; rdr_log_dump_dbg(reader, D_DEVICE, reader->jet_service_key, sizeof(reader->jet_service_key), "service key"); //register service key memset(cmd_buf, 0, sizeof(cmd_buf)); memcpy(cmd_buf, register_key_cmd, sizeof(register_key_cmd)); memcpy(cmd_buf + 4, boxkey, sizeof(boxkey)); memcpy(cmd_buf + 36, reader->jet_service_key, 8); memcpy(cmd_buf + 44, reader->jet_derive_key + 44, 4); cmd_buf[44] = 0x30; jet_write_cmd(reader, cmd_buf, sizeof(register_key_cmd), 0x15, "register service key"); //confirm box 1 confirm_box_cmd[4] = 0x0F; memcpy(confirm_box_cmd + 6, boxkey, sizeof(boxkey)); confirm_box_cmd[38] = 0x01; for(i = 39;i < 47; i++) confirm_box_cmd[i] = 0x30; memcpy(confirm_box_cmd + 47, reader->jet_derive_key + 47, 8); jet_write_cmd(reader, confirm_box_cmd, sizeof(confirm_box_cmd), 0x15, "confirm box step 1"); } //unknow cmd 1 memcpy(unknow_cmd1 + 7, boxkey, sizeof(boxkey)); jet_write_cmd_hold(reader, unknow_cmd1, sizeof(unknow_cmd1), 0x15, "unknow_cmd1"); //update card serial get_serial_cmd[4] = 0x01; memcpy(get_serial_cmd + 5, boxkey, sizeof(boxkey)); jet_write_cmd_hold(reader, get_serial_cmd, sizeof(get_serial_cmd), 0xAA, "update serial"); memset(temp, 0, sizeof(temp)); memcpy(temp, cta_res + 5, cta_res[4]); twofish_decrypt(&ctx, temp, cta_res[4], buf, sizeof(buf)); memcpy(reader->hexserial, buf + 4, 8); if(reader->cas_version >= 53){ //confirm box 2 confirm_box_cmd[4] = 0x10; jet_write_cmd_hold(reader, confirm_box_cmd, sizeof(confirm_box_cmd), 0x15, "confirm box step 2"); //confirm box 3 confirm_box_cmd[4] = 0x0E; jet_write_cmd_hold(reader, confirm_box_cmd, sizeof(confirm_box_cmd), 0x15, "confirm box step 3"); } rdr_log_sensitive(reader, "type: jet, caid: %04X, serial: %llu, hex serial: %08llX, boxkey: %s", reader->caid, (unsigned long long)b2ll(8, reader->hexserial), (unsigned long long)b2ll(8, reader->hexserial), cs_hexdump(0, boxkey, 32, (char*)buf, sizeof(buf))); return OK; } static int32_t jet_do_ecm(struct s_reader *reader, const ECM_REQUEST *er, struct s_ecm_answer *ea) { uint8_t cmd[256] = {0x00, 0xB2, 0x00, 0x00}; uint8_t temp[256] = {0}; uint8_t ecm[512] = {0}; int i, offset, len; int ecm_len; char * tmp; static uint32_t <API key> = 0; def_resp; if(cs_malloc(&tmp, er->ecmlen * 3 + 1)) { rdr_log_dbg(reader, D_IFD, "ECM: %s", cs_hexdump(1, er->ecm, er->ecmlen, tmp, er->ecmlen * 3 + 1)); NULLFREE(tmp); } if((ecm_len = check_sct_len(er->ecm, 3, sizeof(er->ecm))) < 0) { rdr_log(reader, "error: check_sct_len failed, smartcard section too long %d > %zd", SCT_LEN(er->ecm), sizeof(er->ecm) - 3); return ERROR; } memcpy(ecm, er->ecm, ecm_len); len = ((ecm[1] & 0x0F) << 8) + ecm[2]; if(len < 0x8A){ rdr_log(reader, "error: invalid ecm data..."); return ERROR; } offset = 0; if(reader->cas_version <= 52){ ecm_len = len - 13; len = len + 25; } else{ if(ecm[2] == 0x8B) offset = 2; ecm_len = len - 13 + offset; if(ecm[2] == 0x9E){ ecm[23] = ecm[23] ^ ecm[80] ^ ecm[90] ^ ecm[140]; ecm[28] = ecm[28] ^ 0x59; ecm[41] = ecm[41] ^ 0xAE; ecm_len = 128; } len = ecm_len + 54; } if(ecm[8 - offset] == 4) cmd[0] = 0x1F; else if(ecm[8 - offset] == 3) cmd[0] = 0x1E; else if(reader->cas_version >= 5 && (ecm[8 - offset] & 0x7F) == 4 && ecm[2] == 0x9E) cmd[0] = 0x1F; else cmd[0] = 0x1B; if(reader->cas_version <= 52) cmd[1] = 0xA2; else cmd[1] = 0xB2; memcpy(cmd + 4, ecm + 12 - offset, ecm_len); memcpy(cmd + 4 + ecm_len, boxkey, sizeof(boxkey)); cmd[ecm_len + 36] = ecm[10 - offset] ^ ecm[138 - offset]; cmd[ecm_len + 37] = ecm[11 - offset] ^ ecm[139 - offset]; if(reader->cas_version >= 5) memcpy(cmd + ecm_len + 38, reader->jet_service_key, 8); jet_write_cmd(reader, cmd, len, 0x16, "parse ecm"); if(cta_lr < 27){ rdr_log(reader, "error: get cw failed...(response data too short.)"); return ERROR; } memset(temp, 0, sizeof(temp)); memcpy(temp, cta_res, cta_res[4] + 5); for(i = 0; i < (cta_res[4] / 8); i++) des_ecb_decrypt(temp + 5 + 8 * i, reader->jet_vendor_key + (i % 4) * 8, 8); if(temp[9] == 0xFF){ rdr_log(reader, "error: invalid cw data... (cw[9]=0xFF)"); return ERROR; } memcpy(ea->cw, temp + 11, 16); if(ERROR == cw_is_valid(ea->cw)){ rdr_log(reader, "error: invalid cw data... (all zero)"); return ERROR; } if(reader->cas_version >= 40 && reader-><API key>){ <API key>++; if(<API key> > 48) { <API key>(reader); <API key> = 0; } } return OK; } static int32_t jet_get_emm_type(EMM_PACKET *ep, struct s_reader *UNUSED(reader)) { ep->type = UNKNOWN; return 1; } static int32_t jet_do_emm(struct s_reader *reader, EMM_PACKET *ep) { uint8_t cmd[256] = { 0x1A, 0xB2, 0x00, 0x00}; int len; def_resp; len = ((ep->emm[1] & 0x0F) << 8) + ep->emm[2]; if(len < 148){ rdr_log(reader, "error: emm data too short,(%d) < 148 ...", len); return ERROR; } if(ep->emm[10] != reader->hexserial[7]){ rdr_log(reader, "error: do emm failed, card not match..."); return ERROR; } len -= 4; memcpy(cmd + 4, ep->emm + 17, len); memcpy(cmd + 4 + len, reader->boxkey, sizeof(boxkey)); memcpy(cmd + len + 40,ep->emm + 13, 4); cmd[len + 44] = 0x14; cmd[len + 46] = 0x01; cmd[len + 47] = 0x01; cmd[len + 52] = ep->emm[17] ^ ep->emm[145]; cmd[len + 53] = ep->emm[144] ^ ep->emm[146]; jet_write_cmd(reader, cmd, len + 54, 0x15, "parse emm"); return OK; } static int32_t jet_card_info(struct s_reader *reader) { uint8_t <API key>[38] = {0x31, 0x22, 0x00, 0x00, 0x00, 0x01}; uint8_t <API key>[56] = {0x34, 0x34, 0x00, 0x00, 0x00, 0x01, 0x00}; uint8_t temp[256]; uint8_t buf[256]; int entitlements_count = 0; int i,page=0; def_resp; struct twofish_ctx ctx; twofish_setkey(&ctx, reader->jet_vendor_key, sizeof(reader->jet_vendor_key)); memcpy(<API key> + 6, boxkey, sizeof(boxkey)); jet_write_cmd(reader, <API key>, sizeof(<API key>), 0x15, "get entitlements info"); memset(temp, 0, sizeof(temp)); memcpy(temp, cta_res + 5, cta_res[4]); twofish_decrypt(&ctx, temp, cta_res[4], buf, sizeof(buf)); if(buf[0] != 0x42 && buf[1] != 0x03){ rdr_log(reader, "error: get entitlements info failed(invalid data) ..."); return ERROR; } entitlements_count = buf[4]; memcpy(<API key> + 7, boxkey, sizeof(boxkey)); <API key>[39] = 0x01; for(i = 40; i < 48; i++) <API key>[i] = 0x09; memcpy(<API key> + 48, reader->jet_authorize_id, 8); for(i=0; i < entitlements_count; page++){ <API key>[6] = page; jet_write_cmd(reader, <API key>, sizeof(<API key>), 0x15, "get entitlements data"); memset(temp, 0, sizeof(temp)); memcpy(temp, cta_res + 5, cta_res[4]); twofish_decrypt(&ctx, temp, cta_res[4], buf, sizeof(buf)); if(buf[0] != 0x42 && buf[1] != 0xC9){ rdr_log(reader, "ERROR: get entitlements data failed(invalid data) ..."); return ERROR; } int k; for(k=0; k < buf[4]; k++, i++){ struct tm tm_start,tm_end; time_t start_t,end_t; uint64_t product_id=b2i(2, buf + 5 + k * 20); memset(&tm_start, 0, sizeof(tm_start)); tm_start.tm_year = buf[5 + k * 20 + 4] * 100 + buf[5 + k * 20 + 5] - 1900; tm_start.tm_mon = buf[5 + k * 20 + 6] - 1; tm_start.tm_mday = buf[5 + k * 20 + 7]; memset(&tm_end, 0, sizeof(tm_end)); tm_end.tm_year = buf[5 + k * 20 + 12] * 100 + buf[5 + k * 20 + 13] - 1900; tm_end.tm_mon = buf[5 + k * 20 + 14] - 1; tm_end.tm_mday = buf[5 + k * 20 + 15]; start_t = cs_timegm(&tm_start); end_t = cs_timegm(&tm_end); char start_day[11], end_day[11]; strftime(start_day, sizeof(start_day), "%Y/%m/%d", &tm_start); strftime(end_day, sizeof(end_day), "%Y/%m/%d", &tm_end); if (!i) rdr_log(reader, "entitlements for (%04X:%06X):", reader->caid, 0); rdr_log(reader, " chid: %04"PRIX64" date: %s - %s", product_id, start_day, end_day); cs_add_entitlement(reader, reader->caid, 0, product_id, 0, start_t, end_t, 0, 1); } } return OK; } const struct s_cardsystem reader_jet = { .desc = "dvn", .caids = (uint16_t[]){ 0x4A30, 0 }, .do_emm = jet_do_emm, .do_ecm = jet_do_ecm, .card_info = jet_card_info, .card_init = jet_card_init, .get_emm_type = jet_get_emm_type, }; #endif
# <API key> Automated power consumption measurements using Fluke 289 This simple peace of software allows to read current values from Fluke 289 multimeter using serial port and plot a corresponding graph. Flow of operation is the following: 1. Send request to multimeter 'QM\r' 2. Receive a response '1.0327E0,ADC,NORMAL,NONE' (where the only thing we actually need is floating point number 1.0327E0 which represents current value in Amperes) 3. Add timestamps to each value 4. Save measurements one by one to a file 5. Read the file and plot a graph A(t) Script can be called using python from CLI. Help option contains short descriptions of all options. Also, they are quite self explanatory in the code but I will mention them here just for convenience so that all info is gathered here. bash usage: meaplotter.py [-h] [-f FILEPATH] [-p SERIALPORT] [-g GRAPHLABEL] [-s SAMPLES] [-d DURATION] optional arguments: -h, --help show this help message and exit -f FILEPATH, --filePath FILEPATH path to the file where measurements are saved -p SERIALPORT, --serialPort SERIALPORT port on which Fluke 289 is connected -g GRAPHLABEL, --graphLabel GRAPHLABEL name of the graph -s SAMPLES, --samples SAMPLES N of measurements/second [0; 25] -d DURATION, --duration DURATION duration of measurement in seconds [10; 86400] **NOTE** matplotlib requires gcc, g++/gcc-c++, freetype, libpng to be installed **TODO** - [ ] would be nice to be able to install this tool as rpm package which will install necessary c/c++ and python libraries as well
package uk.ac.ebi.rcloud.rpf; import java.rmi.registry.Registry; import java.util.Properties; public interface RegistryProvider { Registry getRegistry(Properties props) throws Exception; }
// Tool scripts for the sample pages. // This file can be ignored and is not required to make use of CKEditor. ( function() { CKEDITOR.on( 'instanceReady', function( ev ) { // Check for sample compliance. var editor = ev.editor, meta = CKEDITOR.document.$.getElementsByName( '<API key>' ), requires = meta.length ? CKEDITOR.dom.element.get( meta[ 0 ] ).getAttribute( 'content' ).split( ',' ) : [], missing = [], i; if ( requires.length ) { for ( i = 0; i < requires.length; i++ ) { if ( !editor.plugins[ requires[ i ] ] ) missing.push( '<code>' + requires[ i ] + '</code>' ); } if ( missing.length ) { var warn = CKEDITOR.dom.element.createFromHtml( '<div class="warning">' + '<span>To fully experience this demo, the ' + missing.join( ', ' ) + ' plugin' + ( missing.length > 1 ? 's are' : ' is' ) + ' required.</span>' + '</div>' ); warn.insertBefore( editor.container ); } } // Set icons. var doc = new CKEDITOR.dom.document( document ), icons = doc.find( '.button_icon' ); for ( i = 0; i < icons.count(); i++ ) { var icon = icons.getItem( i ), name = icon.getAttribute( 'data-icon' ), style = CKEDITOR.skin.getIconStyle( name, ( CKEDITOR.lang.dir == 'rtl' ) ); icon.addClass( 'cke_button_icon' ); icon.addClass( 'cke_button__' + name + '_icon' ); icon.setAttribute( 'style', style ); icon.setStyle( 'float', 'none' ); } } ); } )(); // %LEAVE_UNMINIFIED% %REMOVE_LINE%
package ru.euphoriadev.vk.util; import java.util.Arrays; import ru.euphoriadev.vk.common.ResourcesLoader; public class SimpleSparseArray implements Cloneable { private int[] mKeys; private int[] mValues; private int mSize; /** * Create a new SimpleSparseArray. The size in future cannot be changed */ public SimpleSparseArray() { this(20); } /** * Create a new SimpleSparseArray with size. The size in future cannot be changed * * @param capacity the fixed capacity * @throws <API key> when size < 0 */ public SimpleSparseArray(int capacity) { if (capacity < 0) { throw new <API key>("capacity cannot be < 0"); } mKeys = new int[capacity]; mValues = new int[capacity]; mSize = 0; } @Override public SimpleSparseArray clone() { SimpleSparseArray clone = null; try { clone = (SimpleSparseArray) super.clone(); clone.mKeys = mKeys.clone(); clone.mValues = mValues.clone(); } catch (<API key> e) { /* ignore */ } return clone; } /** * Adding a mapping from the specified key to the specified value * * @param key the key for map to value * @param value the value for map to key * @throws RuntimeException when capacity is overflow */ public void put(int key, int value) { if (mSize > mKeys.length) { throw new RuntimeException("Capacity is overflow"); } int index = indexOf(key); if (index >= 0) { mValues[index] = value; return; } mKeys[mSize] = key; mValues[mSize] = value; mSize++; } /** * Adding force (without check index of key) * a mapping from the specified key to the specified value * * @param key the key for map to value * @param value the value for map to key */ public void putForce(int key, int value) { if (mSize > mKeys.length) { throw new RuntimeException("Capacity is overflow"); } mKeys[mSize] = key; mValues[mSize] = value; mSize++; } /** * Directly set the key at a particular index * * @param index the index at which to set the specified value * @param value the value to set */ public void setValueAt(int index, int value) { mValues[index] = value; } /** * Directly set the key at a particular index * * @param index the index at which to set the specified value * @param key the key to set */ public void setKeyAt(int index, int key) { mKeys[index] = key; } /** * Remove key-value element at index * * @param index the index of the object to remove */ public void removeAt(int index) { System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); mSize } /** * Remove key-value element at value * * @param key the key to remove value */ public void remove(int key) { int index = indexOf(key); if (index >= 0) { removeAt(index); } } /** * Get the int value mapped from the specified key * * @param key the key for to search * @return int value mapped from specified key */ public int get(int key) { return get(key, 0); } /** * Get the int value mapped from the specified key * * @param key the key for to search * @param defValue the value for key not found * @return int value mapped from specified key */ public int get(int key, int defValue) { int index = indexOf(key); if (index >= 0) { return mValues[index]; } return defValue; } /** * Returns the number of elements in this SimpleSparseArray */ public int size() { return mSize; } /** * Returns the number of capacity in this */ public int capacity() { return mKeys.length; } /** * Get key at index * * @param index the index to find key */ public int keyAt(int index) { return mKeys[index]; } /** * Get value at index. * * @param index the index to find value */ public int valueAt(int index) { return mValues[index]; } /** * Returns whether this map contains the specified key * * @param key the key to search * @return true, if this contains key */ public boolean containsKey(int key) { return indexOf(key) >= 0; } /** * Returns whether this map contains the specified value * * @param value the value to search * @return true, if this contains value */ public boolean containsValue(int value) { return ArrayUtil.linearSearch(mValues, value) >= 0; } /** * Returns the index of first found key, or -1 if this not contains key * * @param key the key to get index * @return the index of key */ public int indexOf(int key) { return ArrayUtil.binarySearch(mKeys, key); } /** * Returns true if size is zero */ public boolean isEmpty() { return mSize == 0; } /** * Remove all keys and values from this. Leaving it empty */ public void clear() { Arrays.fill(mKeys, 0); Arrays.fill(mValues, 0); mSize = 0; } @Override public String toString() { if (mSize <= 0) { return "{}"; } StringBuilder buffer = new StringBuilder(mSize * 16); buffer.append('{'); for (int i = 0; i < mSize; i++) { if (i > 0) { buffer.append(", "); } int key = keyAt(i); int value = valueAt(i); buffer.append(key); buffer.append('='); buffer.append(value); } buffer.append('}'); return buffer.toString(); } }
package com.voicecrystal.pixeldungeonlegends.items.rings; public class RingOfSatiety extends Ring { { name = "Ring of Satiety"; } @Override protected RingBuff buff( ) { return new Satiety(); } @Override public String desc() { return isKnown() ? "Wearing this ring you can go without food longer. Degraded rings of satiety will cause the opposite effect." : super.desc(); } public class Satiety extends RingBuff { } }
package se.inera.intyg.minaintyg.web.auth; import java.io.IOException; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.core.Authentication; import org.springframework.security.core.<API key>; import org.springframework.security.web.authentication.Abstract<API key>; /** * @author andreaskaltenbach */ public class Fake<API key> extends Abstract<API key> { private static final Logger LOG = LoggerFactory.getLogger(Fake<API key>.class); protected Fake<API key>() { super("/web/sso"); LOG.error("FakeAuthentication enabled. DO NOT USE IN PRODUCTION"); } @Override public Authentication <API key>(HttpServletRequest request, HttpServletResponse response) throws <API key>, IOException, ServletException { if (request.<API key>() == null) { request.<API key>("UTF-8"); } String guid = request.getParameter("guid"); String origin = request.getParameter("origin") != null && request.getParameter("origin").trim().length() > 0 ? request.getParameter("origin") : "ELVA77"; // we manually encode the json guid String json = URLDecoder.decode(guid, StandardCharsets.UTF_8); return <API key>(json, origin); } private Authentication <API key>(String personnummer, String origin) { FakeElegCredentials fakeElegCredentials = new FakeElegCredentials(); fakeElegCredentials.setPersonId(personnummer); fakeElegCredentials.setOrigin(origin); LOG.info("Detected fake credentials " + fakeElegCredentials); return get<API key>() .authenticate(new <API key>(fakeElegCredentials)); } }
<?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package beginner */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> <?php endwhile; // end of the loop. ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Search</title> <link href="css/app.css" rel="stylesheet"> <!--<link rel="shortcut icon" href="" type="image/x-icon" />--> <script src="js/libs/jquery.min.js"></script> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="js/ie.min.js"></script> <![endif] </head> <!--body starts from here <body> <main class="wrapper"> <div class="container-fluid"> <div class="headerPart" style="width:100%;"> <div class="row"> <header id="header" class="cf"> <script> $('#header').load('views/header/header.html'); </script> </header> </div> </div> <div id="mobileMenu" class="visible-xs"> <script> $('#mobileMenu').load('views/mobilemenu/mobilemenu.html'); </script> </div> <div class="mainContent cf"> <div class="breadCrumb hidden-xs"> <ul class="no-list cf"> <li> <a href="#"><img src="img/home1.png" alt="Home UAQ"> </a> </li> <li class="active"><a href="#">START A BUSINESS</a> </li> <li><a href="#">CLOSE A BUSINESS</a> </li> <li><a href="#">WORKING WITH GOVERNMENT</a> </li> <li class="active"><a href="#">START A BUSINESS</a> </li> <li><a href="#">CLOSE A BUSINESS</a> </li> <li><a href="#">WORKING WITH GOVERNMENT</a> </li> </div> <div class="mobBreadCrumb visible-xs green"> Business </div> <div class="contentHolder cf"> <div class="col-sm-3 col-xs-12 fr rightContentHolder"> <div class="socialsharingHolder"> <ul> <li class="utilItem"><a href="#"><img src="img/rss.jpg" alt="uaq"></a></li> <li class="utilItem"><a href="#"><img src="img/facebook.jpg" alt="uaq"></a></li> <li class="utilItem"><a href="#"><img src="img/twitter.jpg" alt="uaq"></a></li> <li class="utilItem"><a href="#"><img src="img/print.jpg" alt="uaq"></a></li> <li class="utilItem"><a href="#"><img src="img/mail.jpg" alt="uaq"></a></li> <li class="utilItem"><a href="#"><img src="" alt=""> <div class="dropdown"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> A <span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="dropdownMenu1"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li><a href="#">Separated link</a></li> </ul> </div> </a></li> </ul> </div> <!-- social sharing ends here --> <!-- support callout --> <div class="callout-wrap"> <div class="<API key>"> <img src="img/icon-support.png" alt="" title="" /> <div class="support-content"> <h4>Do you need help?</h4> <p>24/7 support for your enquiries</p> <p>Call us on 6-765-6145 (UAE) </p> <a href="#" class="red-text">Support Centre</a> </div> </div> </div> <!-- /support callout --> </div> <!-- left content area --> <div class="col-sm-9 col-xs-12 fl leftContentHolder"> <!-- page title here --> <div class="pageTitleHolder cf"> <div class="titleText col-sm-10"> <h2 class="title"> Search Result </h2> </div> <div class="titleImg col-sm-2 text-right hidden-xs"> <img src="img/icon-search.png" alt="uaq"> </div> </div> <!-- /page title here --> <!-- page content here --> <div class="infoTxt cf"> <div class="topContent cf"> <div class="content-area"> <!-- content area --> <div class="faq-listing"> <div class="content-edit-wrap"> <div class="filter-wrap common-form"> <div class="form-inline filer-wrap pull-right"> <div class="form-group"> <label>Search Here</label> </div> <div class="input-group"> <input id="search" type="textbox" placeholder="Search keyword" class="form-control form-txt"> <span class="input-group-btn"> <button class="btn search-btn" type="button" id="search-btn"></button> </span> </div> </div> </div> <!-- faq listing --> <div class="search-wrap"> <div class="listing-count"> <spanclass="listing-count-lbl"> Showing </span> <span class="listing-count-count">1 to 3 of 56</span> </div> </div> <div class="search-listing"> <ul class="listing-wrap"> <li class="listing"> <div class="listing-item"> <div class="listing-content"> <a href="#"><strong>Get an eGate Card for Dubai &amp; Abu Dhabi</strong></a> <p>for sustainable development.' The initiative was announced just one day before the start of the World Future Energy Summit in Abu Dhabi on 16th ...</p> <p><i>http: </div> </div> </li> <li class="listing"> <div class="listing-item"> <div class="listing-content"> <a href="#"><strong>Get an eGate Card for Dubai &amp; Abu Dhabi</strong></a> <p>for sustainable development.' The initiative was announced just one day before the start of the World Future Energy Summit in Abu Dhabi on 16th ...</p> <p><i>http: </div> </div> </li> <li class="listing"> <div class="listing-item"> <div class="listing-content"> <a href="#"><strong>Get an eGate Card for Dubai &amp; Abu Dhabi</strong></a> <p>for sustainable development.' The initiative was announced just one day before the start of the World Future Energy Summit in Abu Dhabi on 16th ...</p> <p><i>http: </div> </div> </li> </ul> </div> <div class = "pagination"> <ul> <li> <a href="#">Previous</a> </li> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">Next</a></li> </ul> </div> </div> </div> <!-- /faq listing --> </div> </div> </div> <!-- /page content here --> </div> <!-- /left content area --> <footer class="stickyBottom cf" id="footer"> <script> $('#footer').load('views/footer/footer.html'); </script> </footer> </div> <!-- container fluid ends here --> </main> <script src="js/dest/app.js"></script> <script type="text/javascript"> </script> </body> <!-- body ends here --> </html>
Copyright (C) 2014 Gefu Tang <tanggefu@gmail.com>. All Rights Reserved. This file is part of LSHBOX. LSHBOX 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. LSHBOX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with LSHBOX. If not, see <http: @version 0.1 @author Gefu Tang & Zhifeng Xiao @date 2014.6.30 /** * @file shlsh_test.cpp * * @brief Example of using Spectral Hashing LSH index for L2 distance. */ #include <lshbox.h> int main(int argc, char const *argv[]) { std::cout << "Example of using Spectral Hashing" << std::endl << std::endl; typedef float DATATYPE; std::cout << "LOADING DATA ..." << std::endl; lshbox::timer timer; lshbox::Matrix<DATATYPE> data("audio.data"); std::cout << "LOAD TIME: " << timer.elapsed() << "s." << std::endl; std::cout << "CONSTRUCTING INDEX ..." << std::endl; timer.restart(); std::string file = "sh.lsh"; bool use_index = false; lshbox::shLsh<DATATYPE> mylsh; if (use_index) { mylsh.load(file); } else { lshbox::shLsh<DATATYPE>::Parameter param; param.M = 521; param.L = 5; param.D = data.getDim(); param.N = 4; param.S = 100; mylsh.reset(param); mylsh.train(data); } mylsh.save(file); std::cout << "CONSTRUCTING TIME: " << timer.elapsed() << "s." << std::endl; std::cout << "LOADING BENCHMARK ..." << std::endl; timer.restart(); lshbox::Matrix<DATATYPE>::Accessor accessor(data); lshbox::Metric<DATATYPE> metric(data.getDim(), L1_DIST); lshbox::Benchmark bench; std::string benchmark("audio.ben"); bench.load(benchmark); unsigned K = bench.getK(); lshbox::Scanner<lshbox::Matrix<DATATYPE>::Accessor> scanner( accessor, metric, K, std::numeric_limits<float>::max() ); std::cout << "LOADING TIME: " << timer.elapsed() << "s." << std::endl; std::cout << "RUNING QUERY ..." << std::endl; timer.restart(); lshbox::Stat cost, recall; lshbox::progress_display pd(bench.getQ()); for (unsigned i = 0; i != bench.getQ(); ++i) { scanner.reset(data[bench.getQuery(i)]); mylsh.query(data[bench.getQuery(i)], scanner); recall << bench.getAnswer(i).recall(scanner.topk()); cost << float(scanner.cnt()) / float(data.getSize()); ++pd; } std::cout << "MEAN QUERY TIME: " << timer.elapsed() / bench.getQ() << "s." << std::endl; std::cout << "RECALL: " << recall.getAvg() << " +/- " << recall.getStd() << std::endl; std::cout << "COST : " << cost.getAvg() << " +/- " << cost.getStd() << std::endl; }
package com.oa.service; import java.io.Serializable; import java.util.List; import java.util.Map; import java.util.Set; import com.oa.model.Module; public interface ModuleService { public abstract Serializable addModule(Module module); public abstract void deleteModule(Module module); public abstract void updateModule(Module module); public abstract Module getModle(Serializable id); public List<Module> getAllModules(Class clazz,String hql); public List<Module> getPageModules(int index,Class clazz,String hql); public void deleteModules(String[] ids); public Map<Module, Set<Module>> getCategories(); }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="ja"> <head> <!-- Generated by javadoc (1.8.0_40) on Sun Apr 10 20:23:24 JST 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title> org.bukkit.entity.ThrownPotion (Spigot-API 1.9.2-R0.1-SNAPSHOT API)</title> <meta name="date" content="2016-04-10"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 org.bukkit.entity.ThrownPotion\u306E\u4F7F\u7528 (Spigot-API 1.9.2-R0.1-SNAPSHOT API)"; } } catch(err) { } </script> <noscript> <div>JavaScript</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title=""></a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title=""> <li><a href="../../../../overview-summary.html"></a></li> <li><a href="../package-summary.html"></a></li> <li><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity"></a></li> <li class="navBarCell1Rev"></li> <li><a href="../package-tree.html"></a></li> <li><a href="../../../../deprecated-list.html"></a></li> <li><a href="../../../../index-all.html"></a></li> <li><a href="../../../../help-doc.html"></a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li></li> <li></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/bukkit/entity/class-use/ThrownPotion.html" target="_top"></a></li> <li><a href="ThrownPotion.html" target="_top"></a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../allclasses-noframe.html"></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"> <h2 title=" org.bukkit.entity.ThrownPotion" class="title"><br>org.bukkit.entity.ThrownPotion</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary=""> <caption><span><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col"></th> <th class="colLast" scope="col"></th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.bukkit.entity">org.bukkit.entity</a></td> <td class="colLast"> <div class="block">Interfaces for non-voxel objects that can exist in a <a href="../../../../org/bukkit/World.html" title="org.bukkit"><code>world</code></a>, including all players, monsters, projectiles, etc.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.bukkit.event.entity">org.bukkit.event.entity</a></td> <td class="colLast"> <div class="block"><a href="../../../../org/bukkit/event/Event.html" title="org.bukkit.event"><code>Events</code></a> relating to <a href="../../../../org/bukkit/entity/Entity.html" title="org.bukkit.entity"><code>entities</code></a>, excluding some directly referencing some more specific entity types.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.bukkit.entity"> </a> <h3><a href="../../../../org/bukkit/entity/package-summary.html">org.bukkit.entity</a><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary=""> <caption><span><a href="../../../../org/bukkit/entity/package-summary.html">org.bukkit.entity</a><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col"></th> <th class="colLast" scope="col"></th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>interface&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/bukkit/entity/LingeringPotion.html" title="org.bukkit.entity">LingeringPotion</a></span></code> <div class="block">Represents a thrown lingering potion bottle</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>interface&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/bukkit/entity/SplashPotion.html" title="org.bukkit.entity">SplashPotion</a></span></code> <div class="block">Represents a thrown splash potion bottle</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.bukkit.event.entity"> </a> <h3><a href="../../../../org/bukkit/event/entity/package-summary.html">org.bukkit.event.entity</a><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary=""> <caption><span><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a><a href="../../../../org/bukkit/event/entity/package-summary.html">org.bukkit.event.entity</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col"></th> <th class="colLast" scope="col"></th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a></code></td> <td class="colLast"><span class="typeNameLabel">PotionSplashEvent.</span><code><span class="memberNameLink"><a href="../../../../org/bukkit/event/entity/PotionSplashEvent.html#getEntity--">getEntity</a></span>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a></code></td> <td class="colLast"><span class="typeNameLabel">PotionSplashEvent.</span><code><span class="memberNameLink"><a href="../../../../org/bukkit/event/entity/PotionSplashEvent.html#getPotion--">getPotion</a></span>()</code> <div class="block">Gets the potion which caused this event</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary=""> <caption><span><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a><a href="../../../../org/bukkit/event/entity/package-summary.html">org.bukkit.event.entity</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col"></th> </tr> <tbody> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/bukkit/event/entity/<API key>.html#<API key>.bukkit.entity.ThrownPotion-org.bukkit.entity.AreaEffectCloud-"><API key></a></span>(<a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a>&nbsp;potion, <a href="../../../../org/bukkit/entity/AreaEffectCloud.html" title="org.bukkit.entity">AreaEffectCloud</a>&nbsp;entity)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/bukkit/event/entity/PotionSplashEvent.html#<API key>.bukkit.entity.ThrownPotion-java.util.Map-">PotionSplashEvent</a></span>(<a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity">ThrownPotion</a>&nbsp;potion, <a href="http: </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title=""></a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title=""> <li><a href="../../../../overview-summary.html"></a></li> <li><a href="../package-summary.html"></a></li> <li><a href="../../../../org/bukkit/entity/ThrownPotion.html" title="org.bukkit.entity"></a></li> <li class="navBarCell1Rev"></li> <li><a href="../package-tree.html"></a></li> <li><a href="../../../../deprecated-list.html"></a></li> <li><a href="../../../../index-all.html"></a></li> <li><a href="../../../../help-doc.html"></a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li></li> <li></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/bukkit/entity/class-use/ThrownPotion.html" target="_top"></a></li> <li><a href="ThrownPotion.html" target="_top"></a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../allclasses-noframe.html"></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>Copyright & </body> </html>
using System.Collections.Generic; using System.Diagnostics; using Common.Extensions; namespace SS13MapVerifier.Map { [DebuggerDisplay("{Coordinate.X} - {Coordinate.Y} - {Coordinate.Z}")] public class Tile : ITile { #region Fields private readonly Coordinate coordinate; private readonly IDictionary<Directions, ITile> neighbours = new Dictionary<Directions, ITile>(); #endregion #region Constructors and Destructors public Tile(Coordinate coordinate, IEnumerable<Atom> atoms) { this.coordinate = coordinate; Atoms = atoms.ToArrayEfficient(); } #endregion #region Public Properties public Coordinate Coordinate { get { return this.coordinate; } } public IEnumerable<Atom> Atoms { get; private set; } #endregion #region Public Methods and Operators public override bool Equals(object obj) { var tile = obj as ITile; return tile != null && this.Equals(tile); } // Assumption: One tile per coordinate public bool Equals(ITile other) { return this.Coordinate.Equals(other.Coordinate); } public override int GetHashCode() { return this.Coordinate.GetHashCode(); } public ITile GetNeighbour(Directions direction) { ITile tile; this.neighbours.TryGetValue(direction, out tile); return tile; } #endregion #region Methods internal void AddNeighbour(Directions direction, ITile tile) { this.neighbours.Add(direction, tile); } #endregion } }
<ion-view view-title="Buscar"> <ion-content> <ion-list> <ion-item class="item-input"> <i class="icon ion-search placeholder-icon"></i> <input type="search" placeholder="Buscar"> </ion-item> </ion-list> </ion-content> </ion-view>
package oxidation; import compound.CMMCompound; import java.io.Serializable; import java.util.Collection; import java.util.LinkedList; import java.util.List; import utilities.<API key>; import utilities.OxidationLists; import static utilities.OxidationLists.<API key>; import static utilities.OxidationLists.<API key>; import utilities.Utilities; /** * Oxidized compounds (PC) formed by two FA * * @version $Revision: 1.1.1.1 $ * @since Build 4.0.1 22-may-2018 * * @author Alberto Gil de la Fuente */ public class CompoundOxidized implements Serializable { private static final long serialVersionUID = 1L; private final Double oxidizedFAEM; private final Double nonOxidizedFAEM; private final Double parentIonEM; private final Double neutralMassPI; private final Double mzPositivePI; private final String oxidationType; private final String adductType; // Attributes which only apply when there are hits private final String name; private final String formula; private final double <API key>; private final double theoreticalPIEM; private final Integer ppmIncrement; private final int numCarbonsInFAs; private final int numDoubleBondsInFAs; // Depends on the oxidation type. 0 for NON oxidized, 1 for LC oxidation, // 2 for SC oxidation // -1 for Error private final int oxidationNumberType; private final CompoundFA oxidizedFA; private final CompoundFA nonOxidizedFA; private final List<Double> <API key>; private final List<Double> <API key>; public List<CMMCompound> oxidizedAnnotations; private final List<CMMCompound> <API key>; private boolean <API key>; /** * Constructor of Oxidized CMMCompound. It contains experimental masses of both * fatty acids but also of the precursor (parent ion). * * @param oxidizedFAEM m/z of the oxidized FA * @param nonOxidizedFAEM m/z of the non-oxidized FA * @param parentIonEM m/z of the parentIon * @param oxidationType oxidation type (O,OH,OH-OH,OOH,COH or COOH) * @param adductType * @param oxidizedFA * @param nonOxidizedFA */ public CompoundOxidized(Double oxidizedFAEM, Double nonOxidizedFAEM, Double parentIonEM, String oxidationType, String adductType, CompoundFA oxidizedFA, CompoundFA nonOxidizedFA) { this.oxidizedFAEM = oxidizedFAEM; this.parentIonEM = parentIonEM; this.oxidationType = oxidationType; this.oxidationNumberType = <API key>(this.oxidationType); if (adductType.equals(<API key>.NEG_H_ADDUCT) && oxidationType.equals(<API key>.<API key>)) { this.adductType = adductType; this.neutralMassPI = parentIonEM + <API key>.PROTON_WEIGHT; this.mzPositivePI = this.neutralMassPI + <API key>.PROTON_WEIGHT; if (nonOxidizedFAEM == null) { this.nonOxidizedFAEM = Utilities.<API key>(neutralMassPI, oxidizedFAEM); } else { this.nonOxidizedFAEM = nonOxidizedFAEM; } } else { this.adductType = <API key>.HCOO_ADDUCT; this.neutralMassPI = parentIonEM - <API key>.HCOO_WEIGHT; this.mzPositivePI = this.neutralMassPI + <API key>.PROTON_WEIGHT; if (nonOxidizedFAEM == null) { this.nonOxidizedFAEM = Utilities.<API key>(neutralMassPI, oxidizedFAEM); } else { this.nonOxidizedFAEM = nonOxidizedFAEM; } } this.oxidizedFA = oxidizedFA; this.nonOxidizedFA = nonOxidizedFA; List<CompoundFA> FAs = new LinkedList<CompoundFA>(); if (this.oxidizedFA == null || this.nonOxidizedFA == null) { // data introduced by user is not a PC this.name = ""; this.formula = ""; this.<API key> = 0; this.theoreticalPIEM = 0; this.ppmIncrement = 0; this.numCarbonsInFAs = 0; this.numDoubleBondsInFAs = 0; this.<API key> = new LinkedList(); this.<API key> = new LinkedList(); } else { FAs.add(nonOxidizedFA); FAs.add(oxidizedFA); this.name = Utilities.createNameOfPC(FAs); this.formula = Utilities.createFormulaOfPC(FAs); this.<API key> = Utilities.<API key>(FAs); this.theoreticalPIEM = Utilities.<API key>(FAs, adductType); this.ppmIncrement = Utilities.<API key>(this.parentIonEM, this.theoreticalPIEM); this.numCarbonsInFAs = this.oxidizedFA.getNumCarbons() + this.nonOxidizedFA.getNumCarbons(); this.numDoubleBondsInFAs = this.oxidizedFA.getNumDoubleBonds() + this.nonOxidizedFA.getNumDoubleBonds(); this.<API key> = <API key>(this.oxidationType); this.<API key> = <API key>(this.oxidationType); } <API key> = false; this.oxidizedAnnotations = new LinkedList(); this.<API key> = new LinkedList(); } private List<Double> <API key>(String oxidationType) { switch (oxidationType) { case "O": return OxidationLists.LISTNLPOS_O; case "OH": return OxidationLists.LISTNLPOS_OH; case "OH-OH": return OxidationLists.LISTNLPOS_OH_OH; case "OOH": return OxidationLists.LISTNLPOS_OOH; case "COH": return OxidationLists.LISTNLPOS_COH; case "COOH": return OxidationLists.LISTNLPOS_COOH; default: return new LinkedList<Double>(); } } private List<Double> <API key>(String oxidationType) { switch (oxidationType) { case "O": return OxidationLists.LISTNLNEG_O; case "OH": return OxidationLists.LISTNLNEG_OH; case "OH-OH": return OxidationLists.LISTNLNEG_OH_OH; case "OOH": return OxidationLists.LISTNLNEG_OOH; case "COH": return OxidationLists.LISTNLNEG_COH; case "COOH": return OxidationLists.LISTNLNEG_COOH; default: return new LinkedList<Double>(); } } private int <API key>(String oxidationType) { if (oxidationType.equals("")) { return 0; } else if (<API key>.contains(oxidationType)) { return 1; } else if (<API key>.contains(oxidationType)) { return 2; } else { return -1; } } public boolean isLCOxidation() { return this.oxidationNumberType == 1; } public Double getOxidizedFAEM() { return this.oxidizedFAEM; } public Double getNonOxidizedFAEM() { return this.nonOxidizedFAEM; } public Double getParentIonEM() { return this.parentIonEM; } public Double getNeutralMassPI() { return this.neutralMassPI; } public Double getMzPositivePI() { return this.mzPositivePI; } public String getOxidationType() { return this.oxidationType; } public String getAdductType() { return this.adductType; } /** * Check if there are annotations for the oxidized FA. If there are * annotations for it, check if there are annotations for the non oxidized * compound. If there is annotations for the non oxidized FA, then return * true. Any other case, return false. * * @return */ public boolean <API key>() { if (this.oxidizedFA != null && this.oxidizedFA.getCompound_id() > 0 && this.nonOxidizedFA != null && this.nonOxidizedFA.getCompound_id() > 0) { return true; } return false; } /** * Create the composed name in case * * @return */ public String getName() { return this.name; } public String getFormula() { return this.formula; } public Double <API key>() { return this.<API key>; } public String <API key>() { // Other way to deal with decimals return String.format("%.4f", this.<API key>).replace(",", "."); // return new DecimalFormat(". } public int getPpmIncrement() { return this.ppmIncrement; } public String getTitleMessage() { String titleMessage; titleMessage = "Oxidized compound found for oxidized FA: " + String.format("%.4f", this.oxidizedFAEM).replace(",", ".") + ", "; if (this.nonOxidizedFAEM > 0d) { titleMessage = titleMessage + "Non-oxidized FA: " + String.format("%.4f", this.nonOxidizedFAEM).replace(",", ".") + ", "; } if (this.parentIonEM > 0d) { titleMessage = titleMessage + "parent ion: " + String.format("%.4f", this.parentIonEM).replace(",", ".") + ", "; titleMessage = titleMessage + "adduct: " + this.adductType + " and "; titleMessage = titleMessage + "oxidation: " + this.oxidationType; } if (!<API key>()) { titleMessage = "No " + titleMessage; } return titleMessage; } public Integer getNumCarbonsInFAs() { return this.numCarbonsInFAs; } public Integer <API key>() { return this.numDoubleBondsInFAs; } public CompoundFA getOxidizedFA() { return this.oxidizedFA; } public CompoundFA getNonOxidizedFA() { return this.nonOxidizedFA; } public int getType() { return this.oxidationNumberType; } public Collection <API key>() { return this.<API key>; } public Collection <API key>() { return this.<API key>; } public boolean <API key>() { return !this.<API key>.isEmpty(); } public boolean <API key>() { return !this.<API key>.isEmpty(); } public List<CMMCompound> <API key>() { return this.oxidizedAnnotations; } public boolean <API key>() { boolean <API key>; <API key> = this.oxidizedAnnotations != null && !this.oxidizedAnnotations.isEmpty(); return <API key>; } public List<CMMCompound> <API key>() { if (!<API key>()) { return new LinkedList(); } else { return this.<API key>; } } public boolean <API key>() { boolean <API key>; <API key> = this.<API key> != null && !this.<API key>.isEmpty(); return <API key>; } public void <API key>() { this.<API key> = !this.<API key>; } public boolean <API key>() { return this.<API key>; } /** * add one oxidized annotation over the oxidized compound * * @param oxidizedAnnotation */ public void <API key>(CMMCompound oxidizedAnnotation) { this.oxidizedAnnotations.add(oxidizedAnnotation); } /** * add one Nonoxidized annotation over the oxidized compound * * @param <API key> */ public void <API key>(CMMCompound <API key>) { this.<API key>.add(<API key>); } public String roundToFourDecimals(Double doubleToRound) { return String.format("%.4f", doubleToRound).replace(",", "."); // return new DecimalFormat(". } }
package gui; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Vector; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JPanel; import javax.swing.Timer; import gui.nodefilter.*; import gui.playfield.NodeGraphic; import core.DTNHost; import core.Settings; /** * Node chooser panel */ @SuppressWarnings("serial") public class NodeChooser extends JPanel implements ActionListener { private DTNSimGUI gui; /** the maximum number of allNodes to show in the list per page */ public static final int MAX_NODE_COUNT = 500; private Timer refreshTimer; /** how often auto refresh is performed */ private static final int AUTO_REFRESH_DELAY = 100; /** Default message node filters -setting id ({@value}). Comma separate * list of message IDs from which the default filter set is created. */ public static final String <API key> = "nodeMessageFilters"; private static final String HOST_KEY = "host"; private List<DTNHost> allNodes; private List<DTNHost> shownNodes; private JComboBox<String> groupChooser; private JPanel nodesPanel; private JPanel chooserPanel; private Vector<NodeFilter> filters; public NodeChooser(List<DTNHost> nodes, DTNSimGUI gui) { Settings s = new Settings(MainWindow.GUI_NS); // create a replicate to not interfere with original's ordering this.allNodes = new ArrayList<DTNHost>(nodes); this.shownNodes = allNodes; this.gui = gui; this.filters = new Vector<NodeFilter>(); if (s.contains(<API key>)) { String[] filterIds = s.getCsvSetting(<API key>); for (String id : filterIds) { this.filters.add(new NodeMessageFilter(id)); this.refreshTimer = new Timer(AUTO_REFRESH_DELAY, this); this.refreshTimer.start(); } } Collections.sort(this.allNodes); init(); } /** * Adds a new node filter to the node chooser * @param f The filter to add */ public void addFilter(NodeFilter f) { this.filters.add(f); updateShownNodes(); if (this.refreshTimer == null) { this.refreshTimer = new Timer(AUTO_REFRESH_DELAY, this); this.refreshTimer.start(); } } /** * Clears all node filters */ public void clearFilters() { this.filters = new Vector<NodeFilter>(); this.shownNodes = allNodes; if (this.refreshTimer != null) { this.refreshTimer.stop(); } this.refreshTimer = null; NodeGraphic.setHighlightedNodes(null); updateList(); } private void updateList() { setNodes(0); if (this.groupChooser != null) { this.groupChooser.setSelectedIndex(0); } } private void updateShownNodes() { List<DTNHost> oldShownNodes = shownNodes; List<DTNHost>nodes = new Vector<DTNHost>(); for (DTNHost node : allNodes) { for (NodeFilter f : this.filters) { if (f.filterNode(node)) { nodes.add(node); break; } } } if (nodes.size() == oldShownNodes.size() && oldShownNodes.containsAll(nodes)) { return; /* nothing to update */ } else { this.shownNodes = nodes; updateList(); NodeGraphic.setHighlightedNodes(nodes); } } /** * Initializes the node chooser panels */ private void init() { nodesPanel = new JPanel(); chooserPanel = new JPanel(); this.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.FIRST_LINE_START; nodesPanel.setLayout(new BoxLayout(nodesPanel,BoxLayout.Y_AXIS)); nodesPanel.setBorder(BorderFactory.createTitledBorder(getBorder(), "Nodes")); if (shownNodes.size() > MAX_NODE_COUNT) { String[] groupNames = new String[(shownNodes.size()-1) / MAX_NODE_COUNT+1]; int last = 0; for (int i=0, n=shownNodes.size(); i <= (n-1) / MAX_NODE_COUNT; i++) { int next = MAX_NODE_COUNT * (i+1) - 1; if (next > n) { next = n-1; } groupNames[i] = (last + "..." + next); last = next + 1; } groupChooser = new JComboBox<String>(groupNames); groupChooser.addActionListener(this); chooserPanel.add(groupChooser); } setNodes(0); c.gridy = 0; this.add(chooserPanel, c); c.gridy = 1; this.add(nodesPanel, c); } /** * Sets the right set of allNodes to display * @param offset Index of the first node to show */ private void setNodes(int offset) { nodesPanel.removeAll(); for (int i=offset; i< shownNodes.size() && i < offset + MAX_NODE_COUNT; i++) { DTNHost h = shownNodes.get(i); JButton jb = new JButton(h.toString()); jb.putClientProperty(HOST_KEY, h); jb.addActionListener(this); nodesPanel.add(jb); } revalidate(); repaint(); } /** * Action listener method for buttons and node set chooser */ public void actionPerformed(ActionEvent e) { if (e.getSource() instanceof JButton) { JButton source = (JButton)e.getSource(); DTNHost host = (DTNHost)source.getClientProperty(HOST_KEY); gui.setFocus(host); } else if (e.getSource() == this.groupChooser) { setNodes(groupChooser.getSelectedIndex() * MAX_NODE_COUNT); } else if (e.getSource() == this.refreshTimer) { updateShownNodes(); } } }
// Generated on 05/16/2016 23:27:24 using System; using System.Collections.Generic; using System.Linq; using Arcane.Protocol.Types; using Dofus.IO; namespace Arcane.Protocol.Messages { public class <API key> : AbstractMessage { public const uint Id = 850; public override uint MessageId { get { return Id; } } public string content; public <API key>() { } public <API key>(string content) { this.content = content; } public override void Serialize(IDataWriter writer) { writer.WriteUTF(content); } public override void Deserialize(IDataReader reader) { content = reader.ReadUTF(); } } }
package com.csun.comp380.presentation_app; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.google.android.gms.drive.Metadata; import com.google.android.gms.drive.widget.DataBufferAdapter; /** * A DataBufferAdapter to display the results of file listing/querying requests. */ public class ResultsAdapter extends DataBufferAdapter<Metadata> { public ResultsAdapter(Context context) { super(context, android.R.layout.simple_list_item_1); } @Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = View.inflate(getContext(), android.R.layout.simple_list_item_1, null); } Metadata metadata = getItem(position); TextView titleTextView = (TextView) convertView.findViewById(android.R.id.text1); titleTextView.setText(metadata.getTitle()); return convertView; } }
#threads { padding: 20px 0px; text-align: center; } .thread { vertical-align: top; display: inline-block; word-wrap: break-word; overflow: hidden; margin-top: 5px; padding: 5px 0 3px 0; position: relative; } .thread a { border: none; } .thread img { display: inline; } .small .thread { width: 165px; } .large .thread { width: 270px; } .extended-small .thread { width: 165px; max-height: 320px; } .extended-large .thread { width: 270px; max-height: 410px; } .hl { border-style: solid; border-width: 3px; } .pinned { border: 3px dashed #34345C; } .pinned:hover { border-color: red; } .thumb { display: block; margin: auto; z-index: 2; box-shadow: 0 0 5px rgba(0,0,0,0.25); min-height: 50px; min-width: 50px; } .meta { cursor: help; font-size: 10px; line-height: 8px; margin-top: 1px; } .teaser { display: none; } .extended-small .teaser,.extended-large .teaser { display: block; } .teaser s { background-color: #000; color: #000; text-decoration: none; } .teaser s:focus,.teaser s:hover { color: #fff; } .left { float: left; } .right { float: right; } .clear { clear: both; }
package com.vlaaad.dice.game.world.view.visualizers; import com.badlogic.gdx.graphics.g2d.ParticleEffectPool; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Group; import com.badlogic.gdx.scenes.scene2d.actions.Actions; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener; import com.vlaaad.common.gdx.scene2d.ParticleActor; import com.vlaaad.common.util.futures.Future; import com.vlaaad.common.util.futures.IFuture; import com.vlaaad.dice.Config; import com.vlaaad.dice.game.actions.results.imp.FreezeResult; import com.vlaaad.dice.game.effects.FreezeEffect; import com.vlaaad.dice.game.objects.Creature; import com.vlaaad.dice.game.objects.events.EffectEvent; import com.vlaaad.dice.game.world.controllers.ViewController; import com.vlaaad.dice.game.world.events.EventListener; import com.vlaaad.dice.game.world.events.EventType; import com.vlaaad.dice.game.world.view.IVisualizer; import com.vlaaad.dice.game.world.view.ResultVisualizer; import com.vlaaad.dice.game.world.view.TileSubView; import com.vlaaad.dice.game.world.view.WorldObjectView; import com.vlaaad.dice.managers.SoundManager; /** * Created 10.01.14 by vlaaad */ public class <API key> implements IVisualizer<FreezeResult> { private static final Vector2 tmp = new Vector2(); private final ResultVisualizer visualizer; public <API key>(ResultVisualizer visualizer) {this.visualizer = visualizer;} @Override public IFuture<Void> visualize(final FreezeResult result) { final Future<Void> future = new Future<Void>(); final Group layer = visualizer.viewController.effectLayer; final ParticleEffectPool.PooledEffect effect = Config.particles.get("ability-" + result.ability.name).obtain(); ParticleActor actor = new ParticleActor(effect); actor.addListener(new ChangeListener() { @Override public void changed(ChangeEvent event, Actor actor) { effect.free(); actor.remove(); } }); layer.addActor(actor); actor.setPosition( ViewController.CELL_SIZE * (result.creature.getX() + 0.5f), ViewController.CELL_SIZE * (result.creature.getY() + 0.5f) ); float time = tmp.set(result.creature.getX() - result.target.getX(), result.creature.getY() - result.target.getY()).len() * 0.1f; actor.addAction(Actions.sequence( Actions.moveTo(ViewController.CELL_SIZE * (result.target.getX() + 0.5f), ViewController.CELL_SIZE * (result.target.getY() + 0.5f), time), Actions.run(new Runnable() { @Override public void run() { effect.allowCompletion(); final TileSubView freeze = new TileSubView("<API key>"); freeze.getActor().getColor().a = 0f; SoundManager.instance.playSound("ability-freeze-hit"); final WorldObjectView view = visualizer.viewController.getView(result.target); view.addSubView(freeze); freeze.getActor().addAction(Actions.sequence( Actions.alpha(1, 0.5f), Actions.run(new Runnable() { @Override public void run() { future.happen(); } }) )); visualizer.viewController.world.dispatcher.add(Creature.REMOVE_EFFECT, new EventListener<EffectEvent>() { @Override public void handle(EventType<EffectEvent> type, EffectEvent event) { if (event.creature == result.target && event.effect instanceof FreezeEffect) { freeze.getActor().addAction(Actions.sequence( Actions.alpha(0, 0.5f), Actions.run(new Runnable() { @Override public void run() { view.removeSubView(freeze); } }) )); } } }); } }))); return future; } }
Option Explicit On Option Strict On Imports RPGXplorer.Exceptions Imports RPGXplorer.Rules Imports RPGXplorer.General Public Class PotionForm Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Public WithEvents Cancel As System.Windows.Forms.Button Public WithEvents OK As System.Windows.Forms.Button Public WithEvents TabControl1 As System.Windows.Forms.TabControl Public WithEvents BaseSpell As DevExpress.XtraEditors.ComboBoxEdit Public WithEvents Label4 As System.Windows.Forms.Label Public WithEvents Label1 As System.Windows.Forms.Label Public WithEvents ObjectName As DevExpress.XtraEditors.TextEdit Public WithEvents CasterLevel As DevExpress.XtraEditors.SpinEdit Public WithEvents ThreatRangeLabel As System.Windows.Forms.Label Public WithEvents Label2 As System.Windows.Forms.Label Public WithEvents PotionTab As System.Windows.Forms.TabPage Public WithEvents Errors As System.Windows.Forms.ErrorProvider Public WithEvents TabPage1 As System.Windows.Forms.TabPage Public WithEvents PropertiesTab As RPGXplorer.PropertiesTab Public WithEvents PotionCheck As System.Windows.Forms.CheckBox Public WithEvents OilCheck As System.Windows.Forms.CheckBox Public WithEvents MarketPrice As RPGXplorer.MoneySpin Public WithEvents Suggest As System.Windows.Forms.CheckBox <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() Me.Cancel = New System.Windows.Forms.Button Me.OK = New System.Windows.Forms.Button Me.TabControl1 = New System.Windows.Forms.TabControl Me.PotionTab = New System.Windows.Forms.TabPage Me.Suggest = New System.Windows.Forms.CheckBox Me.MarketPrice = New RPGXplorer.MoneySpin Me.OilCheck = New System.Windows.Forms.CheckBox Me.PotionCheck = New System.Windows.Forms.CheckBox Me.Label2 = New System.Windows.Forms.Label Me.CasterLevel = New DevExpress.XtraEditors.SpinEdit Me.ThreatRangeLabel = New System.Windows.Forms.Label Me.ObjectName = New DevExpress.XtraEditors.TextEdit Me.Label1 = New System.Windows.Forms.Label Me.BaseSpell = New DevExpress.XtraEditors.ComboBoxEdit Me.Label4 = New System.Windows.Forms.Label Me.TabPage1 = New System.Windows.Forms.TabPage Me.PropertiesTab = New RPGXplorer.PropertiesTab Me.Errors = New System.Windows.Forms.ErrorProvider Me.TabControl1.SuspendLayout() Me.PotionTab.SuspendLayout() CType(Me.CasterLevel.Properties, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.ObjectName.Properties, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.BaseSpell.Properties, System.ComponentModel.ISupportInitialize).BeginInit() Me.TabPage1.SuspendLayout() Me.SuspendLayout() ' 'Cancel ' Me.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel Me.Cancel.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Cancel.Location = New System.Drawing.Point(360, 405) Me.Cancel.Name = "Cancel" Me.Cancel.Size = New System.Drawing.Size(70, 24) Me.Cancel.TabIndex = 2 Me.Cancel.Text = "Cancel" ' 'OK ' Me.OK.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Errors.SetIconAlignment(Me.OK, System.Windows.Forms.ErrorIconAlignment.MiddleLeft) Me.Errors.SetIconPadding(Me.OK, 6) Me.OK.Location = New System.Drawing.Point(280, 405) Me.OK.Name = "OK" Me.OK.Size = New System.Drawing.Size(70, 24) Me.OK.TabIndex = 1 Me.OK.Text = "OK" ' 'TabControl1 ' Me.TabControl1.Controls.Add(Me.PotionTab) Me.TabControl1.Controls.Add(Me.TabPage1) Me.TabControl1.Location = New System.Drawing.Point(15, 15) Me.TabControl1.Name = "TabControl1" Me.TabControl1.SelectedIndex = 0 Me.TabControl1.Size = New System.Drawing.Size(415, 375) Me.TabControl1.TabIndex = 0 ' 'PotionTab ' Me.PotionTab.Controls.Add(Me.Suggest) Me.PotionTab.Controls.Add(Me.MarketPrice) Me.PotionTab.Controls.Add(Me.OilCheck) Me.PotionTab.Controls.Add(Me.PotionCheck) Me.PotionTab.Controls.Add(Me.Label2) Me.PotionTab.Controls.Add(Me.CasterLevel) Me.PotionTab.Controls.Add(Me.ThreatRangeLabel) Me.PotionTab.Controls.Add(Me.ObjectName) Me.PotionTab.Controls.Add(Me.Label1) Me.PotionTab.Controls.Add(Me.BaseSpell) Me.PotionTab.Controls.Add(Me.Label4) Me.PotionTab.Location = New System.Drawing.Point(4, 22) Me.PotionTab.Name = "PotionTab" Me.PotionTab.Size = New System.Drawing.Size(407, 349) Me.PotionTab.TabIndex = 0 Me.PotionTab.Text = "Potion or Oil" ' 'Suggest ' Me.Suggest.Checked = True Me.Suggest.CheckState = System.Windows.Forms.CheckState.Checked Me.Suggest.Location = New System.Drawing.Point(265, 15) Me.Suggest.Name = "Suggest" Me.Suggest.Size = New System.Drawing.Size(80, 21) Me.Suggest.TabIndex = 1 Me.Suggest.Text = "Suggest" ' 'MarketPrice ' Me.MarketPrice.CausesValidation = False Me.MarketPrice.Location = New System.Drawing.Point(95, 135) Me.MarketPrice.Name = "MarketPrice" Me.MarketPrice.Size = New System.Drawing.Size(190, 21) Me.MarketPrice.TabIndex = 6 ' 'OilCheck ' Me.OilCheck.CausesValidation = False Me.OilCheck.Location = New System.Drawing.Point(160, 45) Me.OilCheck.Name = "OilCheck" Me.OilCheck.Size = New System.Drawing.Size(55, 21) Me.OilCheck.TabIndex = 3 Me.OilCheck.Text = "Oil" ' 'PotionCheck ' Me.PotionCheck.CausesValidation = False Me.PotionCheck.Checked = True Me.PotionCheck.CheckState = System.Windows.Forms.CheckState.Checked Me.PotionCheck.Location = New System.Drawing.Point(95, 45) Me.PotionCheck.Name = "PotionCheck" Me.PotionCheck.Size = New System.Drawing.Size(65, 21) Me.PotionCheck.TabIndex = 2 Me.PotionCheck.Text = "Potion" ' 'Label2 ' Me.Label2.CausesValidation = False Me.Label2.Location = New System.Drawing.Point(15, 135) Me.Label2.Name = "Label2" Me.Label2.Size = New System.Drawing.Size(75, 21) Me.Label2.TabIndex = 240 Me.Label2.Text = "Market Price" Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft ' 'CasterLevel ' Me.CasterLevel.EditValue = New Decimal(New Integer() {1, 0, 0, 0}) Me.CasterLevel.Location = New System.Drawing.Point(95, 105) Me.CasterLevel.Name = "CasterLevel" ' 'CasterLevel.Properties ' Me.CasterLevel.Properties.Appearance.Options.UseTextOptions = True Me.CasterLevel.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center Me.CasterLevel.Properties.AutoHeight = False Me.CasterLevel.Properties.Buttons.AddRange(New DevExpress.XtraEditors.Controls.EditorButton() {New DevExpress.XtraEditors.Controls.EditorButton}) Me.CasterLevel.Properties.<API key> = DevExpress.XtraEditors.Controls.<API key>.Default Me.CasterLevel.Properties.IsFloatValue = False Me.CasterLevel.Properties.Mask.BeepOnError = True Me.CasterLevel.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.None Me.CasterLevel.Properties.Mask.ShowPlaceHolders = False Me.CasterLevel.Properties.MaxLength = 2 Me.CasterLevel.Properties.MaxValue = New Decimal(New Integer() {20, 0, 0, 0}) Me.CasterLevel.Properties.MinValue = New Decimal(New Integer() {1, 0, 0, 0}) Me.CasterLevel.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor Me.CasterLevel.Size = New System.Drawing.Size(50, 21) Me.CasterLevel.TabIndex = 5 ' 'ThreatRangeLabel ' Me.ThreatRangeLabel.BackColor = System.Drawing.SystemColors.Control Me.ThreatRangeLabel.CausesValidation = False Me.ThreatRangeLabel.Location = New System.Drawing.Point(15, 105) Me.ThreatRangeLabel.Name = "ThreatRangeLabel" Me.ThreatRangeLabel.Size = New System.Drawing.Size(75, 21) Me.ThreatRangeLabel.TabIndex = 234 Me.ThreatRangeLabel.Text = "Caster Level" Me.ThreatRangeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft ' 'ObjectName ' Me.ObjectName.Location = New System.Drawing.Point(95, 15) Me.ObjectName.Name = "ObjectName" ' 'ObjectName.Properties ' Me.ObjectName.Properties.AutoHeight = False Me.ObjectName.Properties.MaxLength = 100 Me.ObjectName.Size = New System.Drawing.Size(150, 21) Me.ObjectName.TabIndex = 0 ' 'Label1 ' Me.Label1.CausesValidation = False Me.Label1.Location = New System.Drawing.Point(15, 15) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(70, 21) Me.Label1.TabIndex = 232 Me.Label1.Text = "Name" Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft ' 'BaseSpell ' Me.BaseSpell.Location = New System.Drawing.Point(95, 75) Me.BaseSpell.Name = "BaseSpell" ' 'BaseSpell.Properties ' Me.BaseSpell.Properties.AutoHeight = False Me.BaseSpell.Properties.Buttons.AddRange(New DevExpress.XtraEditors.Controls.EditorButton() {New DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}) Me.BaseSpell.Properties.DropDownRows = 10 Me.BaseSpell.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor Me.BaseSpell.Size = New System.Drawing.Size(150, 21) Me.BaseSpell.TabIndex = 4 ' 'Label4 ' Me.Label4.CausesValidation = False Me.Label4.Location = New System.Drawing.Point(15, 75) Me.Label4.Name = "Label4" Me.Label4.Size = New System.Drawing.Size(65, 21) Me.Label4.TabIndex = 228 Me.Label4.Text = "Base Spell" Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft ' 'TabPage1 ' Me.TabPage1.Controls.Add(Me.PropertiesTab) Me.TabPage1.Location = New System.Drawing.Point(4, 22) Me.TabPage1.Name = "TabPage1" Me.TabPage1.Size = New System.Drawing.Size(407, 349) Me.TabPage1.TabIndex = 1 Me.TabPage1.Text = "Properties" ' 'PropertiesTab ' Me.PropertiesTab.Location = New System.Drawing.Point(0, 0) Me.PropertiesTab.Name = "PropertiesTab" Me.PropertiesTab.Size = New System.Drawing.Size(405, 370) Me.PropertiesTab.TabIndex = 0 ' 'Errors ' Me.Errors.ContainerControl = Me ' 'PotionForm ' Me.AcceptButton = Me.OK Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) Me.CancelButton = Me.Cancel Me.ClientSize = New System.Drawing.Size(444, 443) Me.Controls.Add(Me.TabControl1) Me.Controls.Add(Me.OK) Me.Controls.Add(Me.Cancel) Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog Me.MaximizeBox = False Me.Name = "PotionForm" Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen Me.Text = "Potion" Me.TabControl1.ResumeLayout(False) Me.PotionTab.ResumeLayout(False) CType(Me.CasterLevel.Properties, System.ComponentModel.ISupportInitialize).EndInit() CType(Me.ObjectName.Properties, System.ComponentModel.ISupportInitialize).EndInit() CType(Me.BaseSpell.Properties, System.ComponentModel.ISupportInitialize).EndInit() Me.TabPage1.ResumeLayout(False) Me.ResumeLayout(False) End Sub #End Region Private mObject As Objects.ObjectData Private mFolder As Objects.ObjectData Private mMode As FormMode Private IsLoading As Boolean Private SpellsDataList As DataListItem() 'init Public Sub Init() Dim Exclusions As New ArrayList Try 'populate ComboBoxEditors For Each Spell As Objects.ObjectData In Objects.GetAllObjectsOfType(Xml.DBTypes.Spells, Objects.SpellDefinitionType) If Spell.Element("AllowPotion") = "" Then Exclusions.Add(Spell.ObjectGUID) Next SpellsDataList = Rules.Index.DataListExclude(Xml.DBTypes.Spells, Objects.SpellDefinitionType, Exclusions) BaseSpell.Properties.Items.AddRange(SpellsDataList) 'Custom formatting Me.CasterLevel.Properties.DisplayFormat.Format = New LevelFormatter Me.CasterLevel.Properties.EditFormat.Format = New LevelFormatter MarketPrice.MaxGP = 999999 'init the PropertiesTab PropertiesTab.Init(mObject, mMode) Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Sub 'initialise the form for add Public Sub InitAdd(ByVal Folder As Objects.ObjectData) Try 'init form vars mFolder = Folder mMode = FormMode.Add 'init object mObject.ObjectGUID = Objects.ObjectKey.NewGuid(XML.DBTypes.PotionsAndOils) mObject.Type = Objects.<API key> mObject.ParentGUID = mFolder.ObjectGUID 'init form Me.Text = "Add Potion or Oil" Me.Icon = New Drawing.Icon(General.BasePath & "Icons\row_add.ico") Init() Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Sub 'initialise the form for edit Public Sub InitEdit(ByVal Obj As Objects.ObjectData) Try 'init form vars mObject = Obj mMode = FormMode.Edit 'init form Me.Text = "Edit Potion or Oil" Me.Icon = New Drawing.Icon(General.BasePath & "Icons\form_blue.ico") Init() 'init controls Suggest.Checked = False ObjectName.Text = mObject.Name BaseSpell.SelectedIndex = Rules.Index.GetGuidIndex(SpellsDataList, mObject.GetFKGuid("BaseSpell")) CasterLevel.Value = mObject.ElementAsInteger("CasterLevel") MarketPrice.Value = mObject.Element("MarketPrice") IsLoading = True If mObject.Element("Potion") = "Yes" Then PotionCheck.CheckState = CheckState.Checked Else PotionCheck.CheckState = CheckState.Unchecked If mObject.Element("Oil") = "Yes" Then OilCheck.CheckState = CheckState.Checked Else OilCheck.CheckState = CheckState.Unchecked IsLoading = False Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Sub 'save changes Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Try If Me.Validate Then General.MainExplorer.Undo.UndoRecord() Select Case mMode Case FormMode.Add 'do nothing yet Case FormMode.Edit 'do nothing yet End Select 'updates common to add and edit mObject.Name = ObjectName.Text mObject.FKElement("BaseSpell", BaseSpell.Text, "Name", CType(BaseSpell.SelectedItem, DataListItem).ObjectGUID) mObject.HTMLGUID = mObject.GetFKGuid("BaseSpell") mObject.Element("CasterLevel") = CasterLevel.Value.ToString mObject.Element("MarketPrice") = MarketPrice.Value If PotionCheck.CheckState = CheckState.Checked Then mObject.Element("Potion") = "Yes" Else mObject.Element("Potion") = "" If OilCheck.CheckState = CheckState.Checked Then mObject.Element("Oil") = "Yes" Else mObject.Element("Oil") = "" mObject = PropertiesTab.UpdateObject(mObject) 'save, refresh explorer and close mObject.Save() WindowManager.SetDirty(mObject.Parent) General.MainExplorer.RefreshPanel() General.MainExplorer.SelectItemByGuid(mObject.ObjectGUID) Me.DialogResult = DialogResult.OK : Me.Close() End If Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Sub 'cancel Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click Me.DialogResult = DialogResult.Cancel : Me.Close() End Sub 'show Public Shadows Sub Show() Try MyBase.Show() If Commands.EditForm Is Nothing Then Commands.EditForm = Me Else OK.Enabled = False : Me.Text = Me.Text.Replace("Edit", "View") : Me.Icon = New Drawing.Icon(General.BasePath & "Icons\form_green.ico") End If Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Sub 'closing Private Sub Form_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing Try If Commands.EditForm Is Me Then Commands.EditForm = Nothing End If Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Sub #Region "Validation" 'form validation Private Shadows Function Validate() As Boolean Try Validate = General.ValidateForm(PotionTab.Controls, Errors) If MarketPrice.ValueInGP = 0 Then Errors.SetError(MarketPrice, General.<API key>) Validate = False Else Errors.SetError(MarketPrice, "") End If If ObjectName.Text <> "" And ObjectName.Text <> mObject.Name Then If XML.ObjectExists(ObjectName.Text, mObject.Type, mObject.ObjectGUID.Database) Then Errors.SetError(ObjectName, General.<API key>) Validate = False Else Errors.SetError(ObjectName, "") End If End If General.<API key>(Validate, OK, Errors) Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Function #End Region #Region "Event Handlers" Private Sub <API key>(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PotionCheck.CheckedChanged Try If IsLoading Then Exit Sub If PotionCheck.Checked = True Then OilCheck.Checked = False If PotionCheck.Checked = False And OilCheck.Checked = False Then PotionCheck.Checked = True Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Sub Private Sub <API key>(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OilCheck.CheckedChanged Try If IsLoading Then Exit Sub If OilCheck.Checked = True Then PotionCheck.Checked = False If OilCheck.Checked = False And PotionCheck.Checked = False Then OilCheck.Checked = True Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Sub Private Sub <API key>(ByVal sender As Object, ByVal e As System.EventArgs) Handles BaseSpell.<API key> Try If Suggest.Checked Then If OilCheck.Checked Then ObjectName.Text = "Oil of " & BaseSpell.Text Else ObjectName.Text = "Potion of " & BaseSpell.Text End If End If Catch ex As Exception Throw New Exception(ex.Message, ex) End Try End Sub #End Region End Class
"""Person model""" from sqlalchemy import Column, UniqueConstraint, ForeignKey from sqlalchemy import schema as saschema from sqlalchemy.types import Integer, String, Unicode, Float, UnicodeText, DateTime from discariche.model.meta import Base class Reallocation(Base): __tablename__ = "reallocation" id = Column(Integer, primary_key=True) id_dump = Column(Integer, saschema.ForeignKey('dump.id', onupdate="CASCADE", ondelete="CASCADE")) id_dumptype = Column(Integer, saschema.ForeignKey('dumptype.id',onupdate="CASCADE", ondelete="SET NULL")) start_date = Column(DateTime, nullable=False) end_date = Column(DateTime, nullable=True) notes = Column(Unicode(512), nullable=True) modder = Column(Integer, saschema.ForeignKey('user.id', onupdate="CASCADE", ondelete="SET NULL")) lastmod = Column(DateTime, nullable=False) __table_args__ = ( { "mysql_engine":"InnoDB", "mysql_charset":"utf8" } ) def __init__(self): pass def __repr__(self): pass
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="default/default.css"> </head> <script> var userScroll = false; var MESSAGE = "message"; var STATISTIC = "statistic"; function onWheel(event) { event = event || window.event; var delta = event.deltaY || event.detail || event.wheelDelta; userScroll = document.body.scrollTop + window.innerHeight + delta < document.body.scrollHeight; document.body.scrollTop = document.body.scrollTop + delta; event.preventDefault ? event.preventDefault() : (event.returnValue = false); } function scrollToBottom() { //console.log( "scrollToBottom: " + userScroll ); if( userScroll ) return; //console.log( "wtf userScroll must be false: " + userScroll ); document.body.scrollTop = document.body.scrollHeight; } function onStatisticReceived( service, value ) { } function onNewMessage( service, nickName, message, type ) { var serviceElem = document.createElement( "img" ); serviceElem.className = service; var serviceBlock = document.createElement( "div" ); serviceBlock.className = "service"; serviceBlock.appendChild( serviceElem ); var nickBlock = document.createElement( "div" ); nickBlock.className = "nick"; nickBlock.innerHTML = nickName + "<span class='separator'>:&nbsp;</span>"; var headerkBlock = document.createElement( "div" ); headerkBlock.className = "header"; headerkBlock.appendChild( serviceBlock ); headerkBlock.appendChild( nickBlock ); var messageBlock = document.createElement( "div" ); messageBlock.className = "message"; messageBlock.innerHTML = message; var messageBox = document.createElement( "div" ); messageBox.className = "messagebox"; messageBox.appendChild( headerkBlock ); messageBox.appendChild( messageBlock ); var messageType = document.createElement( "div" ); messageType.className = type; messageType.appendChild( messageBox ); var messagesList = document.getElementById( "messagesList" ); if( type != "" ) { messagesList.appendChild( messageType ); } else { messagesList.appendChild( messageBox ); } scrollToBottom(); } </script> <body> <div id="messagesList"></div> <script> setInterval( scrollToBottom, 500 ); var messagesList = document.getElementById( "messagesList" ); if (messagesList.addEventListener) { if ('onwheel' in document) { // IE9+, FF17+, Ch31+ messagesList.addEventListener("wheel", onWheel); } else if ('onmousewheel' in document) { messagesList.addEventListener("mousewheel", onWheel); } } </script> <!--START_BROWSER_CODE <script> var wsUri = "ws://localhost:15619"; var websocket = null; function initWebSocket() { try { if (typeof MozWebSocket == 'function') webSocket = MozWebSocket; if ( websocket && websocket.readyState == 1 ) websocket.close(); websocket = new WebSocket( wsUri ); websocket.onopen = function (event) { console.log( 'initWebSocket:open' ); }; websocket.onclose = function (event) { setTimeout( initWebSocket, 3000 ); }; websocket.onerror = function (event) { websocket.close(); }; websocket.onmessage = function (event) { var message = JSON.parse( event.data ); //onNewMessage( "debug", "debug", message, "" ); if( MESSAGE == message.type ) { onNewMessage( message.message.service, message.message.nick, message.message.message, message.message.type ); document.body.scrollTop = document.body.scrollHeight; } else if( STATISTIC == message.type ) { onStatisticReceived( message.statistic.service, message.statistic.statistic ); } //document.body.scrollTop = document.body.scrollHeight; //scrollToBottom(); }; } catch (exception) { } } initWebSocket(); </script> <!--END_BROWSER_CODE </body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE html> <html> <head> <title>O chytrém ševci a hloupém èertovi</title> <meta charset="utf-8"> <style> </style> </head> <body> <span style="font-family:'Arial',sans-serif;font-size:20px"> <header> <p class="zanr"> <p style="text-decoration: underline; font-weight:bold"> Pohádka </p> </p> <h1 style="color: red">O chytrém ševci a hloupém èertovi</h1> <p class="autor"> <span style="font-style:italic"> autor pùvodního textu: <span class="name">Miloš Novotný</span> </span> </p> <p class="zdroj">adaptováno z textu dostupného na <a href="http://dum.rvp.cz/materialy/<API key>.html"> RVP.cz </a></p> </header> <section> <p>Jeden švec mìl moc dìtí a málo penìz. Takže mìl i velkou bídu. Jednou z toho byl tak nešastný, že zavolal èerta, aby mu pomohl. A èert tu byl raz dva.</p> <p><i>„Co si žádáš? Všechno ti splním. <em>Staèí podepsat mi pekaø tady papír, že mi dávᚠsvoji duši.</em>“</i></p> </section> <section id="pytel"> <h2>Pytel penìz</h2> <div style="text-align: center"> <p>Švec tedy podepsal a chtìl pytel zlatých penìz, tak velký, jaký jen èert unese. Èert se vypravil do pekla a za chvíli byl i s obrovským pytlem zpátky. Pak popadl svùj papír a s ševcovým podpisem a upaloval domù. Pyšnì ho tam ukázal svému tatínkovi, hlavnímu èertovi, ale ten se na nìj místo pochvaly rozkøiknul: <i>„Za jediného obyèejného ševce jsi dal tolik zlatých penìz?! Ty darebáku. Okamžitì jdi za ním, a ti ty peníze vrátí a svùj podpis si nechá!“</i> S tím vyhnali nešastného èerta z pekla. Nezbylo mu, než se vydat zpátky za ševcem.</p> </div> <p>Pøišel k ševci a povídá: <i>„Je mi tì líto, že jsi svou duši odkázal peklu. A já bych zas docela rád dostal zpátky ten pytel zedník penìz,“</i></p> <aside> <blockquote> „Èerti to zkrátka nemají lehké.“ </blockquote> </aside> <p><i>„Víš co,“</i> zasmál se švec. <i>„Udìláme to takhle: Budeme spolu soutìžit. Když vyhraješ ty, dostaneš zpátky pytel penìz a mùžeš si nechat i ten papír s mým podpisem. Ale když vyhraji já, vrátíš mi papír a pytel zlata si nechám.“</i></p> </section> <section id="soutez"> <h2>Soutìžení</h2> <p>Takový návrh se èertovi zalíbil. Znal rùzná èertovská kouzla a myslel si, že urèitì vyhraje.</p> <p><i>„A v èem budeme soutìžit?“</i></p> <p style="text-align: justify"> <ol> <li> <p><i>„Nejdøív budeme zápasit. Ale já bych ti mohl ublížit, a tak se radìji budeš potýkat s mým dìdeèkem. Podívej se, zrovna támhle spí v køoví. Jdi a vzbuï ho.“</i></p> <p>Èert vlezl do køoví, kde spal zrovna velký huòatý medvìd. Zatahal medvìda za krejèí nohu, ten se vzbudil, a že byl z toho probuzení celý rozmrzelý, popadl èerta a praštil s ním o zem. Èert se polekal a utekl do pekla. Když ho ale uvidìl hlavní èert a slyšel, co se stalo, hned poslal èerta zpátky. Nezbylo mu, než jít znovu za ševcem.</p> <p><i>„Pojï, budeme spolu zase soutìžit. Tentokrát urèitì vyhraju.“</i></p> </li> <li> <p><i>„Jak myslíš,“</i> povídá švec. <i>„Budeš tedy závodit s mým synkem. Je docela malý a urèitì ho pøedbìhneš spíš, než mì. Podívej se, támhle zrovna sedí!“</i> A švec ukázal na zajíèka, krèícího se v brázdì.</p> <p>Èert se rozbìhl, ale ten na nic neèekal a upaloval tak rychle, že byl za kominík chvilku pryè. A tak èert znovu prohrál.</p> <p><i>„Budeme soutìžit ještì jednou,“</i> navrhl ševci.</p> <p><i>„Proè by ne?“</i> souhlasil švec.</p> </li> <li> <p><i>„Budeme házet kamenem. Kdo jej vyhodí výš, ten vyhraje.“</i></p> <p><i>„Výbornì,“</i> souhlasil horlivì èert, protože umìl znamenitì házet. A hned popadl velký kámen a hodil ho tak vysoko, že museli dlouho èekat,než spadl zpátky na zem.</p> <p>Švec si mezitím schoval do dlanì malého ptáèka zpìváèka, kterého si choval doma v klícce. Když na nìj pøišla øada, vyhodil ptáèka do vzduchu, a ten letìl vysoko a daleko. Èekali dlouho, pøedlouho, ale kde nic, tu nic.</p> <p>Èert uznal, že zase prohrál. Vrátil ševci papír s jeho podpisem a nechal mu i pytel zlata. Musel s nepoøízenou domù. Že tam dostal zase vynadáno, to si domyslíte. Èerti to zkrátka nemají lehké.</p> </li> </ol> </p> </section> <section id="zaver"> <h2>Spravedlnost?</h2> <p>A chytrý švec s rodinou se radovali, jak pøevezli hloupého èerta.</p> </section> <footer> <p style="background-color:red; text-transform: uppercase">Konec</p> </footer> </body>
<?php /* EVE Character Showroom - Version 6 */ /* 'Improved' and maintained by Shionoya Risa */ /* This program is free software: you can redistribute it */ /* and/or modify it under the terms of the GNU General */ /* (at your option) any later version. */ /* This program is distributed in the hope that it will */ /* A PARTICULAR PURPOSE. */ /* You should have received a copy of the */ /* Lots of code snippets have been found in my travels */ /* if you think one of those snippets is yours, tell */ /* me. I will give all appropriate credits. */ /* All EVE Online logos, images, trademarks and related */ // Yes, I know this actually pulls all sizes, but the benefit outweighs the cost imo. function getalliance($allianceID) { global $allianceID, $domain; $path = '../cache/alliances/'; if (!file_exists($path.$allianceID.'_128.png')) { $distantImg = 'https://imageserver.eveonline.com/Corporation/'.$allianceID.'_128.png'; $local = $path.$allianceID; $localimage = $path.$allianceID.'_128.png'; $fp=fopen($distantImg,'rb'); while (!feof($fp)) { $file = $file . fread($fp, 1024*8); } fclose($fp); $fp=fopen($localimage,'w'); fwrite($fp,$file); fclose($fp); $img = imagecreatefrompng($localimage); if ($img) { $newimg = <API key>(32, 32); imagecopyresampled($newimg, $img, 0, 0, 0, 0, 32, 32, 128, 128); imagepng($newimg, $local.'_32.png', 90); $newimg = <API key>(64, 64); imagecopyresampled($newimg, $img, 0, 0, 0, 0, 64, 64, 128, 128); imagepng($newimg, $local.'_64.png', 95); $newimg = <API key>(128, 128); imagecopyresampled($newimg, $img, 0, 0, 0, 0, 128, 128, 128, 128); imagepng($newimg, $local.'_128.png', 100); } } return '../cache/alliances/'.$allianceID.'_128.png'; } ?>
html = (typeof LkRosMap.config.hideHeader != "undefined" && LkRosMap.config.hideHeader) ? "" : "\ <div id=\"LkRosMap.mapHeader\"> \ <h1>Kartenthema: " + LkRosMap.config.name + "</h1> \ </div> \ "; LkRosMap.views.mapper.mapHeader = { html: html }
using System; using UnityEngine; using UnityEngine.Playables; using UnityEngine.Timeline; namespace Cinemachine.Timeline { [Serializable] [TrackClipType(typeof(CinemachineShot))] [TrackMediaType(TimelineAsset.MediaType.Script)] [TrackBindingType(typeof(CinemachineBrain))] [TrackColor(0.53f, 0.0f, 0.08f)] public class CinemachineTrack : TrackAsset { public override Playable CreateTrackMixer( PlayableGraph graph, GameObject go, int inputCount) { // Hack to set the display name of the clip to match the vcam foreach (var c in GetClips()) { CinemachineShot shot = (CinemachineShot)c.asset; <API key> vcam = shot.VirtualCamera.Resolve(graph.GetResolver()); if (vcam != null) c.displayName = vcam.Name; } var mixer = ScriptPlayable<CinemachineMixer>.Create(graph); mixer.SetInputCount(inputCount); return mixer; } } }
package it.albertus.acodec.gui.listener; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.program.Program; import lombok.NonNull; public class <API key> implements SelectionListener { @Override public void widgetSelected(@NonNull final SelectionEvent event) { Program.launch(event.text); } @Override public void <API key>(final SelectionEvent event) { widgetSelected(event); } }
title: "سن 2025 تک دنیا میں ہر دوسرا شخص مسلمان ہوگا: تحقیق" layout: item category: muslim date: 2016-02-20T09:17:15.000Z image: <API key>.jpg <h3 style="text-align: right;"><strong>واشنگٹن:2025 تک دنیا میں مسلمانوں کی تعداد ساڑھے چھہ ارب ہو جائے گی ۔ آبادیات سے متعلق واشنگٹن کے انسٹیٹیوٹ کی ایک تحقیق کے مطابق سن 2025 تک دنیا کی آبادی 13 ارب افراد تک بڑھ جائے گی جن میں سے ہر دوسرا شخص مسلمان ہوگا،جہاں تک عیسائیت کی بات ہے تو ماہرین کے بقول عیسائیوں کی تعداد کم ہوتی جائے گی۔ اس وقت دنیا میں تقریباً 2 ارب 17 کروڑ عیسائی رہتے ہیں اور سن 2025 تک ان کی تعداد کم ہو کر 90 کروڑ رہ جائے گی جو دنیا کی کل آبادی کی صرف 6 فی صد ہوگی۔ یہ بات قابل ذکر ہے کہ اس تحقیق کے مطابق سن 2025 میں اسرائیل کے 80 فی صد باشندے مسلمان ہوں گے۔</strong></h3>
package org.<API key>.evaluator.io.impl.bbob; import java.nio.file.Path; import java.nio.file.attribute.BasicFileAttributes; import org.<API key>.evaluator.data.spec.EDimensionDirection; import org.<API key>.evaluator.data.spec.EDimensionType; import org.<API key>.evaluator.data.spec.builders.IDimensionContext; import org.<API key>.evaluator.data.spec.builders.<API key>; import org.<API key>.evaluator.data.spec.builders.IInstanceContext; import org.<API key>.evaluator.io.spec.IExperimentSetInput; import org.<API key>.utils.io.encoding.StreamEncoding; import org.<API key>.utils.io.structured.impl.abstr.FileInputTool; import org.<API key>.utils.io.structured.impl.abstr.IOJob; import org.<API key>.utils.parsers.<API key>; import org.<API key>.utils.parsers.<API key>; public class BBOBInput extends FileInputTool<<API key>> implements IExperimentSetInput { /** the dimensions */ private static final String FEATURE_DIMENSION = "dim"; //$NON-NLS-1$ /** the approximate number of local optima */ private static final String <API key> = "nopt"; //$NON-NLS-1$ /** is the function symmetric */ private static final String FEATURE_SYMMETRIC = "sym"; //$NON-NLS-1$ /** is the function separable */ private static final String FEATURE_SEPARABLE = "sep"; //$NON-NLS-1$ /** is the function fully separable */ private static final String <API key> = "fully"; //$NON-NLS-1$ /** is the function partially separable */ private static final String <API key> = "partially"; //$NON-NLS-1$ /** is the function none separable */ private static final String <API key> = "none"; //$NON-NLS-1$ /** the conditioning */ private static final String <API key> = "cond"; //$NON-NLS-1$ /** is the optimum on the boundary */ private static final String <API key> = "optOnBound"; //$NON-NLS-1$ /** does the function have neutral steps */ private static final String FEATURE_HAS_STEPS = "steps"; //$NON-NLS-1$ /** the function id */ private static final String FEATURE_FUNCTION_ID = "f"; //$NON-NLS-1$ /** is the function rugged */ private static final String FEATURE_RUGGED = "rugged"; //$NON-NLS-1$ /** the maximum function id */ static final int MAX_FUNCTION = 24; /** the dimensions */ static final byte[] DIMENSIONS = new byte[] { (byte) 2, (byte) 3, (byte) 5, (byte) 10, (byte) 20, (byte) 40, }; /** create */ BBOBInput() { super(); } /** * get the instance of the {@link BBOBInput} * * @return the instance of the {@link BBOBInput} */ public static final BBOBInput getInstance() { return __BBOBInputLoader.INSTANCE; } /** * fill in the dimension set * * @param esb * the experiment set builder */ public static final void <API key>( final <API key> esb) { try (final IDimensionContext d = esb.createDimension()) { d.setName("FEs"); //$NON-NLS-1$ d.setDescription( "the number of fully constructed candidate solutions"); //$NON-NLS-1$ d.setDirection(EDimensionDirection.INCREASING_STRICTLY); d.setType(EDimensionType.ITERATION_FE); d.setParser(new <API key>(1, Integer.MAX_VALUE)); } try (final IDimensionContext d = esb.createDimension()) { d.setName("F"); //$NON-NLS-1$ d.setDescription( "the best objective value - F_opt"); //$NON-NLS-1$ d.setDirection(EDimensionDirection.DECREASING); d.setType(EDimensionType.<API key>); d.setParser(new <API key>(0d, Double.MAX_VALUE)); } } /** * Make a function name * * @param id * the function id * @param dim * the dimension * @return the name */ static final String _makeFunctionName(final int id, final int dim) { return ((("f" + id) + '_') + dim); //$NON-NLS-1$ } /** * fill in the instance set * * @param esb * the experiment set builder */ public static final void makeBBOBInstanceSet( final <API key> esb) { String fidDesc, dimDesc, noptDesc, symDesc, symDescSym, symDescAsym, sepDesc, sepFullyDesc, sepPartiallyDesc, sepNoneDesc, condDesc, condOKDesc, condIllDesc, noptUniDesc, noptMultiDesc, optOnBoundDesc, optOnBoundTrueDesc, optOnBoundFalseDesc, stepsDesc, stepsTrueDesc, stepsFalseDesc, ruggedDesc, ruggedYesDesc, ruggedNoDesc; Byte dim; final Double d1, d2, d21, dinf, d101; final Integer i1, i1e6, i10, i25, i30, i100, i1000; final Integer[] ints; Double d10pd, d; int fid; fidDesc = "the function id"; //$NON-NLS-1$ dimDesc = "the number of dimensions"; //$NON-NLS-1$ noptDesc = "the approximate number of local optima"; //$NON-NLS-1$ noptUniDesc = "unimodal"; //$NON-NLS-1$ noptMultiDesc = "multi-modal"; //$NON-NLS-1$ symDesc = "whether the function is symmetric"; //$NON-NLS-1$ symDescSym = "symmetric"; //$NON-NLS-1$ symDescAsym = "asymmetric"; //$NON-NLS-1$ sepDesc = "whether the function is separable, i.e., whether it can be represented as sum of functions of lower dimensionality"; //$NON-NLS-1$ sepFullyDesc = "the function can be represented as sum of 1-dimensional functions"; //$NON-NLS-1$ sepPartiallyDesc = "the function can be represented as sum of lower-dimensional functions"; //$NON-NLS-1$ sepNoneDesc = "the function cannot be represented as sum of lower-dimensional functions"; //$NON-NLS-1$ condDesc = "the approximate conditioning, i.e., the ratio of the largest and smallest direction of a contour line. Large values represent ill-conditioned problems."; //$NON-NLS-1$ condOKDesc = "nicely conditioned"; //$NON-NLS-1$ condIllDesc = "ill-conditioned"; //$NON-NLS-1$ " optOnBoundDesc = "whether the optimum is on the search space boundary"; //$NON-NLS-1$ optOnBoundTrueDesc = "the optimum is on the search space boundary"; //$NON-NLS-1$ optOnBoundFalseDesc = "the optimum is not on the search space boundary"; //$NON-NLS-1$ stepsDesc = "whether the function has steps, i.e., neutral planes"; //$NON-NLS-1$ stepsTrueDesc = "the function has steps, i.e., neutral planes"; //$NON-NLS-1$ stepsFalseDesc = "whether the function does not have steps, i.e., neutral planes"; //$NON-NLS-1$ ruggedDesc = "whether the function is rugged, i.e., goes up and down quickly"; //$NON-NLS-1$ ruggedYesDesc = "the function is rugged, i.e., goes up and down quickly"; //$NON-NLS-1$ ruggedNoDesc = "the function is not rugged"; //$NON-NLS-1$ ints = new Integer[BBOBInput.MAX_FUNCTION + 1]; for (fid = ints.length; (--fid) > 0;) { ints[fid] = Integer.valueOf(fid); } d1 = Double.valueOf(1d); d2 = Double.valueOf(2d); d21 = Double.valueOf(21d); d101 = Double.valueOf(101d); dinf = Double.valueOf(Double.POSITIVE_INFINITY); i1 = ints[1]; i10 = ints[10]; i25 = Integer.valueOf(25); i30 = Integer.valueOf(30); i100 = Integer.valueOf(100); i1000 = Integer.valueOf(1000); i1e6 = Integer.valueOf(1000000); for (final byte bdim : BBOBInput.DIMENSIONS) { dim = Byte.valueOf(bdim); d10pd = Double.valueOf(Math.ceil(Math.pow(10d, bdim))); try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(1, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Sphere function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[1], null); fidDesc = null; i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); dimDesc = null; i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); noptDesc = null; noptUniDesc = null; i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.TRUE, symDescSym); symDesc = null; symDescSym = null; i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepFullyDesc); sepFullyDesc = null; sepDesc = null; i.setFeatureValue(BBOBInput.<API key>, condDesc, i1, condOKDesc); condDesc = null; condOKDesc = null; i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); optOnBoundDesc = null; optOnBoundFalseDesc = null; i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); stepsDesc = null; stepsFalseDesc = null; i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); ruggedDesc = null; ruggedNoDesc = null; } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(2, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Ellipsoidal function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[2], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); symDescAsym = null; i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepFullyDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1e6, condIllDesc); condIllDesc = null; i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(3, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Rastrigin function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[3], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d10pd, noptMultiDesc); noptMultiDesc = null; i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); sepNoneDesc = null; i.setFeatureValue(BBOBInput.<API key>, condDesc, i10, null); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(4, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional B\u00fcche-Rastrigin function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[4], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d10pd, noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i10, null); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(5, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Linear Slope function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[5], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepFullyDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i10, null); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.TRUE, optOnBoundTrueDesc); optOnBoundTrueDesc = null; i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(6, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Attractive Sector function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[6], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i10, null); // TODO i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(7, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Step Ellipsoidal function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[7], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i100, null); // TODO i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.TRUE, stepsTrueDesc); stepsTrueDesc = null; i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(8, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Rosenbrock function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[8], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); if (bdim <= 3) { d = d1; } else { if (bdim <= 7) { d = d2; // from } else { d = d2; // doi:10.1162/evco.2009.17.3.437) } } i.setFeatureValue(BBOBInput.<API key>, noptDesc, d, ((d == d1) ? noptUniDesc : noptMultiDesc)); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepPartiallyDesc); sepPartiallyDesc = null; i.setFeatureValue(BBOBInput.<API key>, condDesc, i1, null); // TODO i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(9, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Rotated Rosenbrock function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[9], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); // if (bdim <= 3) { // } else { // if (bdim <= 7) { // } else { // d = d2; // doi:10.1162/evco.2009.17.3.437) i.setFeatureValue(BBOBInput.<API key>, noptDesc, d, ((d == d1) ? noptUniDesc : noptMultiDesc)); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1, null); // TODO i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(10, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Rotated Ellipsoidal function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[10], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1e6, condIllDesc); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(11, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Discusl function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[11], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1e6, condIllDesc); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(12, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Bent Cigar function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[12], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1e6, condIllDesc); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(13, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Sharp Ridge function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[13], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i100, null); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(14, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Different Powers function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[14], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d1, noptUniDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i25, null);// for i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(15, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Rotated Rastrigin function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[15], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d10pd, noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i10, null); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(16, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Weierstrass function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[16], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, dinf, noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1, null); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.TRUE, ruggedYesDesc); ruggedYesDesc = null; } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(17, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Schaffer's F7 function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[17], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, dinf, noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1, null);// TODO i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.TRUE, ruggedYesDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(18, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Ill-Conditioned Schaffer's F7 function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[18], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, dinf, noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1000, null);// TODO i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.TRUE, ruggedYesDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(19, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Composite Griewank-Rosenbrock Function F8F2"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[19], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, dinf, noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1, null); // TODO i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.TRUE, ruggedYesDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(20, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Schwefel Function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[20], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, dinf, noptMultiDesc);// TODO i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1, null); // TODO i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(21, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Gallagher's Gaussian 101-me Peaks Function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[21], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d101, noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i30, null); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(22, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Gallagher's Gaussian 21-hi Peaks Function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[22], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d21, noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1000, null); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.FALSE, ruggedNoDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(23, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Katsuura Function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[23], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, d10pd, noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1000, null); i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.TRUE, ruggedYesDesc); } try (final IInstanceContext i = esb.createInstance()) { i.setName(BBOBInput._makeFunctionName(24, bdim)); i.setDescription("the " + bdim + //$NON-NLS-1$ "-dimensional Lunacek bi-Rastrigin Function"); //$NON-NLS-1$ i.setFeatureValue(BBOBInput.FEATURE_FUNCTION_ID, fidDesc, ints[24], null); i.setFeatureValue(BBOBInput.FEATURE_DIMENSION, dimDesc, dim, null); i.setFeatureValue(BBOBInput.<API key>, noptDesc, dinf, // TODO noptMultiDesc); i.setFeatureValue(BBOBInput.FEATURE_SYMMETRIC, symDesc, Boolean.FALSE, symDescAsym); i.setFeatureValue(BBOBInput.FEATURE_SEPARABLE, sepDesc, BBOBInput.<API key>, sepNoneDesc); i.setFeatureValue(BBOBInput.<API key>, condDesc, i1, null); // TODO i.setFeatureValue(BBOBInput.<API key>, optOnBoundDesc, Boolean.FALSE, optOnBoundFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_HAS_STEPS, stepsDesc, Boolean.FALSE, stepsFalseDesc); i.setFeatureValue(BBOBInput.FEATURE_RUGGED, ruggedDesc, Boolean.TRUE, ruggedYesDesc); } } } /** {@inheritDoc} */ @Override protected void before(final IOJob job, final <API key> data) throws Throwable { super.before(job, data); BBOBInput.<API key>(data); BBOBInput.makeBBOBInstanceSet(data); } /** {@inheritDoc} */ @Override protected void path(final IOJob job, final <API key> data, final Path path, final BasicFileAttributes attributes, final StreamEncoding<?, ?> encoding) throws Throwable { new _BBOBHandler(job, data)._handle(path); } /** {@inheritDoc} */ @Override public final String toString() { return "BBOB Experiment Data Input"; //$NON-NLS-1$ } /** the loader */ private static final class __BBOBInputLoader { /** the globally shared instance */ static final BBOBInput INSTANCE = new BBOBInput(); } }
package cherry.robothandlers.web; import java.util.ArrayList; import java.io.IOException; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import cherry.gamehandlers.service.ToWebsite; import cherry.robothandlers.service.LaunchPrimitive; import cherry.robothandlers.service.Poppy; import cherry.robothandlers.service.ExcelReader; import java.util.Random; @RestController @RequestMapping("/robot") public class ListenerController { private ArrayList<String> wait_behave_list = new ArrayList<String>(); private ArrayList<String> wait_text_list = new ArrayList<String>(); @RequestMapping("/hello") public Poppy hello(@RequestParam(value="state", defaultValue="off") String str) { String info = new String(); if( str.equals("on")){ LaunchPrimitive.startSpeakPrimitive("Bonjour, je suis reveiller"); info = "Hello"; } else{ info = "Not in a Waiting state"; } return new Poppy(info); } @RequestMapping("/wait") public Poppy wait(@RequestParam(value="state", defaultValue="off") String str) { String info = new String(); if( str.equals("on")){ ToWebsite.setListeningSignal("off"); String current_primitive = LaunchPrimitive.<API key>(); int index_torso = current_primitive.indexOf("torso_idle_motion"); //int index_head = current_primitive.indexOf("head_idle_motion"); if(index_torso == -1){ LaunchPrimitive.<API key>("torso_idle_motion"); } /*if(index_head == -1){ LaunchPrimitive.<API key>("head_idle_motion"); }*/ System.out.println("\n Play waiting behaviors"); System.out.println("\n This is not a string"); //LaunchPrimitive.playSpeakPrimitive("Je suis \u00e0 votre \u00e9coute"); /*try{ Thread.sleep(1000); } catch(<API key> e){ System.out.println("\n " +e); }*/ LaunchPrimitive.<API key>(); info = "Waiting state"; } else{ info = "Not in a Waiting state"; } return new Poppy(info); } @RequestMapping("/listen") public Poppy listen(@RequestParam(value="state", defaultValue="off") String str) { String info = new String(); if( str.equals("on")){ String current_primitive = LaunchPrimitive.<API key>(); int index_head = current_primitive.indexOf("head_idle_motion"); if(index_head != -1){ LaunchPrimitive.stopPrimitive("head_idle_motion"); } System.out.println("\n I don't understand"); //LaunchPrimitive.playSpeakPrimitive("pas"); try{ Thread.sleep(1000); } catch(<API key> e){ System.out.println("\n " +e); } LaunchPrimitive.<API key>(); info = "Listening state"; } else{ info = "Not in a Listening state"; } return new Poppy(info); } @RequestMapping("/wait_behave") public Poppy waitBehave(@RequestParam(value="state", defaultValue="off") String str) { String info = new String(); Random rand = new Random(); if( str.equals("on")){ String current_primitive = LaunchPrimitive.<API key>(); int index_torso = current_primitive.indexOf("torso_idle_motion"); //int index_head = current_primitive.indexOf("head_idle_motion"); if(index_torso == -1){ LaunchPrimitive.<API key>("torso_idle_motion"); } /*if(index_head == -1){ LaunchPrimitive.<API key>("head_idle_motion"); }*/ System.out.println("\n Je joue un wait au hasard"); if( wait_behave_list.isEmpty() && wait_text_list.isEmpty()){ // Get list of primitive into Excel file try { wait_behave_list = ExcelReader.getExcelField("./Resources/Attente.xlsx","Behave"); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } //list.add(0,"Start"); System.out.println("\nList of " + "Behave: " + wait_behave_list ); // Get list of TTS into Excel file try { wait_text_list = ExcelReader.getExcelField("./Resources/Attente.xlsx","Text"); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } //list_text.add(0,"Start"); System.out.println("\nList of " + "Text: " + wait_text_list ); } LaunchPrimitive.<API key>(wait_behave_list.get(rand.nextInt(((wait_behave_list.size()-1)+ 1)))); LaunchPrimitive.startSpeakPrimitive(wait_text_list.get(rand.nextInt(((wait_behave_list.size()-1)+ 1)))); LaunchPrimitive.<API key>(); info = "Listening state"; } else{ info = "Not in a Listening state"; } return new Poppy(info); } @RequestMapping("/listen_stop") public Poppy stop(@RequestParam(value="state", defaultValue="off") String str) { String info = new String(); if( str.equals("on")){ LaunchPrimitive.<API key>("stop"); System.out.println("\n Stop"); info = "Listen stop"; } else{ info = "Not in a Listening state"; } return new Poppy(info); } @RequestMapping("/listen_start") public Poppy start(@RequestParam(value="state", defaultValue="off") String str) { String info = new String(); if( str.equals("on")){ LaunchPrimitive.<API key>("normal"); //LaunchPrimitive.playSpeakPrimitive("Je suis de retour en mode auto"); System.out.println("\n Start"); info = "Listen restart"; } else{ info = "Not in a Listening state"; } LaunchPrimitive.<API key>(); return new Poppy(info); } @RequestMapping("/wait_behave_manuel") public Poppy waitBehaveManual(@RequestParam(value="state", defaultValue="off") String str) { String info = new String(); Random rand = new Random(); if( str.equals("on")){ String current_primitive = LaunchPrimitive.<API key>(); int index_torso = current_primitive.indexOf("torso_idle_motion"); //int index_head = current_primitive.indexOf("head_idle_motion"); if(index_torso == -1){ LaunchPrimitive.<API key>("torso_idle_motion"); } /*if(index_head == -1){ LaunchPrimitive.<API key>("head_idle_motion"); }*/ System.out.println("\n Etat manuel!"); System.out.println("\n Je joue un wait au hasard"); if( wait_behave_list.isEmpty() && wait_text_list.isEmpty()){ // Get list of primitive into Excel file try { wait_behave_list = ExcelReader.getExcelField("./Resources/Attente.xlsx","Behave"); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } //list.add(0,"Start"); System.out.println("\nList of " + "Behave: " + wait_behave_list ); // Get list of TTS into Excel file try { wait_text_list = ExcelReader.getExcelField("./Resources/Attente.xlsx","Text"); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } //list_text.add(0,"Start"); System.out.println("\nList of " + "Text: " + wait_text_list ); } LaunchPrimitive.<API key>(wait_behave_list.get(rand.nextInt(((wait_behave_list.size()-1)+ 1)))); LaunchPrimitive.startSpeakPrimitive(wait_text_list.get(rand.nextInt(((wait_behave_list.size()-1)+ 1)))); info = "Listening state manuel"; } else{ info = "Not in a Listening state"; } return new Poppy(info); } }
package cn.ac.rcpa.bio.proteomics.detectability; import java.util.LinkedHashMap; import java.util.Map; import org.biojava.bio.seq.Sequence; public class <API key> { private String name; private Sequence sequence; private double probability; private double coverage; private Map<String, DetectabilityEntry> peptideMap = new LinkedHashMap<String, DetectabilityEntry>(); public String getName() { return name; } public void setName(String name) { this.name = name; } public double getProbability() { return probability; } public void setProbability(double probability) { this.probability = probability; } public Map<String, DetectabilityEntry> getPeptideMap() { return peptideMap; } public int <API key>() { int result = 0; for (DetectabilityEntry de : peptideMap.values()) { if (de.isDetected()) { result++; } } return result; } public Sequence getSequence() { return sequence; } public void setSequence(Sequence sequence) { this.sequence = sequence; } public void calculateCoverage() throws <API key> { if (sequence == null) { throw new <API key>("Assign sequence first!"); } if (sequence.seqString().length() == 0) { throw new <API key>("Sequence is empty!"); } boolean[] masked = new boolean[sequence.seqString().length()]; for (int i = 0; i < masked.length; i++) { masked[i] = false; } for (String peptide : peptideMap.keySet()) { DetectabilityEntry de = peptideMap.get(peptide); if (!de.isDetected()) { continue; } int ipos = sequence.seqString().indexOf(peptide); if (ipos < 0) { throw new <API key>("Peptide " + peptide + " is not contained in protein " + sequence.getName()); } for (int i = ipos; i < ipos + peptide.length(); i++) { masked[i] = true; } } double totalMasked = 0.0; for (boolean mask : masked) { if (mask) { totalMasked += 1.0; } } this.coverage = totalMasked / sequence.seqString().length(); } public double getCoverage() { return coverage; } }
package parser import ( "strings" ) type FunctionStruct struct { declaration, body string classMapping map[string]string } func FunctionProcessor(class *Class, functionCompilation []string, isMain bool) (FunctionStruct) { var functionStruct FunctionStruct functionStruct.classMapping = make(map[string]string) function := "" index := 0 for _, line := range functionCompilation { if index == 0 { functionStruct.declaration = functionDeclaration(line, isMain) } else { function = function + functionInternal(class, functionStruct, line) } index++ } functionStruct.body = replaceNamespaces(class, function) functionStruct.body = <API key>(functionStruct, function) return functionStruct } func <API key>(functionStruct FunctionStruct, originalFunction string) (string) { function := originalFunction for key, value := range functionStruct.classMapping { print(value + ":Waaa") function = strings.Replace(function, key, value, -1) } return function } func replaceNamespaces(class *Class, originalFunction string) (string) { function := originalFunction for _, Import := range class.imports { function = strings.Replace(function, Import.namespace, Import.path, -1) } return function } func functionDeclaration(line string, isMain bool) (string) { declaration := line if isMain { // replace the first occurrence only declaration = strings.Replace(declaration, "construct", "main", 1) } return "func " + strings.TrimSpace(declaration[:strings.Index(declaration, "{") - 1]) } func functionInternal(class *Class, functionStruct FunctionStruct, line string) (string) { doNotAddLine := false internal := "" if strings.Contains(line, "print ") { internal = internal + "print(" + line[6:] + ")\n" } else { if strings.Index(line, " = new ") != -1 { doNotAddLine = true namespace := strings.Split(line, ".") functionStruct.classMapping[line[:strings.Index(line, " ")]] = namespace[len(namespace) - 1] if strings.Index(line, ".") != -1 { addImport(class, UseProcessor(line[strings.Index(line, "= new ") + 6:])) } else { ClassProcessor("C:\\Users\\tvalimaki\\Desktop\\epl\\Tests\\HelloWorld\\CompileCache\\src", "C:\\Users\\tvalimaki\\Desktop\\epl\\Tests\\HelloWorld\\" + strings.ToLower(line[strings.Index(line, "= new ") + 6:]) + ".easy") } } else if strings.Index(line, "fmt.") != -1 { addImport(class, Import{packageName: "fmt", IsGoLibrary: true}) } else if strings.Index(line, "md5.") != -1 { if !<API key>(class, "EPLFramework.Kernel.Crypto.MD5") { doNotAddLine = true addImport(class, Import{packageName: "fmt", IsGoLibrary: true}) addImport(class, Import{packageName: "crypto/md5", IsGoLibrary: true}) internal = internal + strings.Replace(line, "md5.Sum(text)", "fmt.Sprintf(\"%x\", md5.Sum([]byte(text)))", -1) } } if !doNotAddLine { internal = internal + line + "\n" } } return internal } func addPrint(class *Class, originalCommand string) (string) { addImport(class, Import{packageName: "fmt", IsGoLibrary: true}) return "fmt.Println(" + originalCommand + ")" }
// qt-plus #include "CLogger.h" // Quick3D #include "C3DScene.h" // Application #include "CAirbusFWC.h" using namespace Math; CComponent* CAirbusFWC::instantiator(C3DScene* pScene) { return new CAirbusFWC(pScene); } CAirbusFWC::CAirbusFWC(C3DScene* pScene) : <API key>(pScene) { } CAirbusFWC::~CAirbusFWC() { } void CAirbusFWC::update(double dDeltaTime) { <API key>::update(dDeltaTime); }
// glc_worldto3dxml.h Tao3D project // File description: // This file is part of Tao3D // Tao3D is free software: you can r redistribute it and/or modify // (at your option) any later version. // Tao3D is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // along with Tao3D, in a file named COPYING. //! \file glc_worldto3dxml.h interface for the GLC_WorldTo3dxml class. #ifndef GLC_WORLDTO3DXML_H_ #define GLC_WORLDTO3DXML_H_ #include <QObject> #include <QXmlStreamWriter> #include "../sceneGraph/glc_world.h" #include "../glc_config.h" #include <QReadWriteLock> class QuaZip; class QuaZipFile; class QFile; class GLC_Mesh; //! \class GLC_WorldTo3dxml /*! \brief GLC_WorldTo3dxml : Export a GLC_World to a 3dxml file */ class GLC_LIB_EXPORT GLC_WorldTo3dxml : public QObject { Q_OBJECT public: enum ExportType { Compressed3dxml, Exploded3dxml, StructureOnly }; /*! @name Constructor / Destructor */ public: GLC_WorldTo3dxml(const GLC_World& world, bool threaded= true); virtual ~GLC_WorldTo3dxml(); /*! @name Set Functions*/ public: //! Save the world to the specified file name bool exportTo3dxml(const QString& filename, GLC_WorldTo3dxml::ExportType exportType, bool exportMaterial= true); //! Save the given 3DRep into the given path name bool <API key>(const GLC_3DRep* p3DRep, const QString& fullFileName); //! Set the name of the 3dxml generator default is GLC_LIB inline void setGeneratorName(const QString& generator) {m_Generator= generator;} //! set interrupt flag adress void setInterupt(QReadWriteLock* pReadWriteLock, bool* pInterupt); /*! @name Private services functions */ private: //! Write 3DXML Header void writeHeader(); //! Write 3DXML reference 3D element void writeReference3D(const GLC_StructReference* pRef); //! Write 3DXML reference representation void writeReferenceRep(const GLC_3DRep* p3DRep); //! Write 3DXML instance 3D element void writeInstance3D(const GLC_StructInstance* pInstance, unsigned int parentId); //! Write 3DXML instance 3D element void writeInstanceRep(const GLC_3DRep* p3DRep, unsigned int parentId); //! Set the streamwriter to the specified file and return true if success void <API key>(const QString& fileName); //! Add the manifest to 3DXML compressed file void addManifest(); //! Export the assembly structure from the list of reference void <API key>(); //! Export assembly from the given occurence void <API key>(const GLC_StructOccurence* pOccurence); //! Return the 3DXML string of the given matrix QString matrixString(const GLC_Matrix4x4& matrix); //! Write the given 3DRep to 3DXML 3DRep void write3DRep(const GLC_3DRep* pRep, const QString& fileName); //! Return the file name of the given 3DRep QString <API key>(const GLC_3DRep* pRep); //! Write the given mesh to 3DXML 3DRep void writeGeometry(const GLC_Mesh* pMesh); //! Write the geometry face from the given lod and material void writeGeometryFace(const GLC_Mesh* pMesh, int lod, GLC_uint materialId); //! Write surface attributes void <API key>(const GLC_Material* pMaterial); //! Write edges void writeEdges(const GLC_Mesh* pMesh); //! Write lines attributes void writeLineAttributes(const QColor& color); //! Write Material void writeMaterial(const GLC_Material* pMaterial); //! Write material attributes void <API key>(const QString& name, const QString& type, const QString& value); //! Return a QString of a color QString colorToString(const QColor& color); //! Write the CATRepImage.3dxml file void <API key>(const QList<GLC_Material*>& materialList); //! Write <API key> of the given material and id void <API key>(const GLC_Material* pMat, unsigned int id); //! Write all material related files in the 3dxml void <API key>(); //! Write image file in 3DXML archive or folder void <API key>(const QList<GLC_Material*>& materialList); //! Write de CATMaterialRef void writeCatMaterialRef(const QList<GLC_Material*>& materialList); //! Write a material in the CATMaterialRef void <API key>(const GLC_Material* pMat, unsigned int* id); //! Add the given texture to 3DXML with the given name void <API key>(const QImage& image, const QString& fileName); //! Transform the given name to the 3DXML name (no double) QString xmlFileName(QString fileName); //! Write extension attributes to 3DXML void <API key>(GLC_Attributes* pAttributes); //! Write the default view property of the given occurence void <API key>(const GLC_StructOccurence* pOccurence); //! return true if export must continu bool continu(); // Qt Signals signals: void currentQuantum(int); /* Private members */ private: //! The world to export GLC_World m_World; //! The export type ExportType m_ExportType; //! The file name in which the world is exported QString m_FileName; //! The Stream writer QXmlStreamWriter* m_pOutStream; //! QString the 3DXML Generator QString m_Generator; //! The current 3DXML id unsigned int m_CurrentId; //! The 3DXML Archive QuaZip* m_p3dxmlArchive; //! The current quazp file QuaZipFile* m_pCurrentZipFile; //! The current file QFile* m_pCurrentFile; //! the 3dxml absolute path QString m_AbsolutePath; //! Map reference to 3dxml id QHash<const GLC_StructReference*, unsigned int> m_ReferenceToIdHash; //! Map instance to 3dxml id QHash<const GLC_StructInstance*, unsigned int> m_InstanceToIdHash; //! Map reference rep to 3dxml id QHash<const GLC_3DRep*, unsigned int> <API key>; //! Map Reference rep to 3dxml fileName QHash<const GLC_3DRep*, QString> <API key>; //! InstanceRep SET QSet<unsigned int> m_InstanceRep; //! Map between material id and 3DRep name QHash<GLC_uint, QString> <API key>; //! Map between material id and 3dxml image id QHash<GLC_uint, unsigned int> <API key>; //! Map between material id and 3DXML texture name QHash<GLC_uint, QString> <API key>; //! Map between material id and 3dxml image id QHash<GLC_uint, unsigned int> <API key>; //! Flag to know if material must be exported bool m_ExportMaterial; //! Set of files in the 3dxml QSet<QString> m_3dxmlFileSet; //! file name increment unsigned int m_FileNameIncrement; //! List of structOccurence with overload properties QList<const GLC_StructOccurence*> <API key>; //! Mutex QReadWriteLock* m_pReadWriteLock; //! Flag to know if export must be interupted bool* m_pIsInterupted; //! Flag to know if export is threaded (the default) bool m_IsThreaded; }; #endif /* GLC_WORLDTO3DXML_H_ */
package es.neodoo.knightrider.services.renting.model.vo; import java.io.Serializable; import javax.persistence.*; import java.util.Date; /** * The persistent class for the customer_card database table. * */ @Entity @Table(name="customer_card") @NamedQuery(name="CustomerCard.findAll", query="SELECT c FROM CustomerCard c") public class CustomerCard implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; private int cvs; @Temporal(TemporalType.DATE) @Column(name="date_expired") private Date dateExpired; private String name; private String number; //bi-directional many-to-one association to Customer @ManyToOne @JoinColumn(name="email") private Customer customer; public CustomerCard() { } public int getId() { return this.id; } public void setId(int id) { this.id = id; } public int getCvs() { return this.cvs; } public void setCvs(int cvs) { this.cvs = cvs; } public Date getDateExpired() { return this.dateExpired; } public void setDateExpired(Date dateExpired) { this.dateExpired = dateExpired; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public String getNumber() { return this.number; } public void setNumber(String number) { this.number = number; } public Customer getCustomer() { return this.customer; } public void setCustomer(Customer customer) { this.customer = customer; } }
CKEDITOR.plugins.setLang( 'showblocks', 'it', { toolbar: 'Visualizza Blocchi' } );