content
stringlengths
10
4.9M
<reponame>blyoa/gatsby-remark-link-summary<gh_stars>0 import fsPromise from 'fs/promises' import path from 'path' import { CachedSiteSummaryStore } from '../src/store' jest.mock('fs') jest.mock('fs/promises') jest.mock('got', () => ({ got: { stream: jest.fn(), }, })) describe('store', () => { beforeEach(() => { jest.resetAllMocks() }) describe('CachedSiteSummaryStore', () => { const siteCatalog = { version: '1', items: { 'https://example.com/01': { metadata: { url: 'https://example.com/01', author: '<NAME>', date: '2010-01-01T01:01:01.001Z', description: 'a dummy website', image: 'https://example.com/img/logo.png', publisher: 'Dummy Publisher', title: 'Example Domain', }, updatedAt: '2022-01-01T01:01:01.001Z', }, 'https://example.com/02': { metadata: { url: 'https://example.com/02', author: '<NAME>', date: '2020-02-02T02:02:02.002Z', description: 'a dummy website', image: 'https://example.com/img/logo.png', publisher: 'Dummy Publisher', title: 'Example Domain', }, updatedAt: '2022-02-02T02:02:02.002Z', }, }, } as const describe('open', () => { it('should succeed if reading and parsing do not cause error', async () => { ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(siteCatalog)) const store = new CachedSiteSummaryStore() await expect(store.open('dummy.json')).resolves.toBeUndefined() }) it('should throw CacheCatalogNotFoundError if a file is not found and the ENOENT error is thrown', async () => { const enoentErr: NodeJS.ErrnoException = new Error( 'ENOENT: no such file or directory' ) enoentErr.code = 'ENOENT' enoentErr.errno = 2 ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockRejectedValueOnce(enoentErr) const store = new CachedSiteSummaryStore() await expect(store.open('dummy.json')).resolves.toBeUndefined() }) it('should throw an error if an error excluding the ENOENT is thrown during reading a file', async () => { ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockRejectedValueOnce(new Error('dummy readFile error')) const store = new CachedSiteSummaryStore() await expect(store.open('dummy.json')).rejects.toThrowError() }) it('should throw an error if a file fails to be parsed as a JSON object', async () => { ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(`{`) const store = new CachedSiteSummaryStore() await expect(store.open('dummy.json')).rejects.toThrowError() }) it('should throw an error if a catalog version is not supported', async () => { const unsupportedCatalog = { ...siteCatalog, version: 'unsupported', } ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(unsupportedCatalog)) const store = new CachedSiteSummaryStore() await expect(store.open('dummy.json')).rejects.toThrowError() }) }) describe('findItem', () => { it('should return an item if a requested url is stored', async () => { ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(siteCatalog)) const store = new CachedSiteSummaryStore() await expect(store.open('dummy.json')).resolves.toBeUndefined() expect(store.findItem('https://example.com/01')).toStrictEqual( siteCatalog.items['https://example.com/01'] ) }) it('should return null if a requested url is not stored', async () => { ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(siteCatalog)) const store = new CachedSiteSummaryStore() await expect(store.open('dummy.json')).resolves.toBeUndefined() expect(store.findItem('https://example.com/99')).toBeNull() }) it('should throw an error if the store is not open', async () => { const store = new CachedSiteSummaryStore() expect(() => store.findItem('https://example.com/01')).toThrowError() }) }) describe('updateItem', () => { it('should overwrite an item if a requested url is stored', async () => { const item = { metadata: { url: 'https://example.com/01', author: '<NAME>', date: '2010-09-09T09:09:09.009Z', description: 'a dummy website', image: 'https://example.com/img/logo.png', publisher: 'Dummy Publisher', title: 'Example Domain', }, updatedAt: '2022-09-09T09:09:09.009Z', } ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(siteCatalog)) const store = new CachedSiteSummaryStore() await expect(store.open('dummy.json')).resolves.toBeUndefined() expect(store.findItem('https://example.com/01')).toStrictEqual( siteCatalog.items['https://example.com/01'] ) store.updateItem('https://example.com/01', item) expect(store.findItem('https://example.com/01')).toStrictEqual(item) }) it('should add an item if a requested url is not stored', async () => { const item = { metadata: { url: 'https://example.com/01', author: '<NAME>', date: '2010-09-09T09:09:09.009Z', description: 'a dummy website', image: 'https://example.com/img/logo.png', publisher: 'Dummy Publisher', title: 'Example Domain', }, updatedAt: '2022-09-09T09:09:09.009Z', } ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(siteCatalog)) const store = new CachedSiteSummaryStore() await expect(store.open('dummy.json')).resolves.toBeUndefined() expect(store.findItem('https://example.com/99')).toBeNull() store.updateItem('https://example.com/99', item) expect(store.findItem('https://example.com/99')).toStrictEqual(item) }) it('should throw an error if the store is not open', async () => { const item = { metadata: { url: 'https://example.com/01', author: '<NAME>', date: '2010-09-09T09:09:09.009Z', description: 'a dummy website', image: 'https://example.com/img/logo.png', publisher: 'Dummy Publisher', title: 'Example Domain', }, updatedAt: '2022-09-09T09:09:09.009Z', } const store = new CachedSiteSummaryStore() expect(() => store.updateItem('https://example.com/01', item) ).toThrowError() }) }) describe('sync', () => { it('should not write items to a file if any item is updated', async () => { ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(siteCatalog)) const catalogFilePath = 'dummy.json' const store = new CachedSiteSummaryStore() await expect(store.open(catalogFilePath)).resolves.toBeUndefined() await expect(store.sync()).resolves.toBeUndefined() expect(fsPromise.mkdir).not.toHaveBeenCalledWith( path.dirname(catalogFilePath), { recursive: true } ) expect(fsPromise.writeFile).not.toHaveBeenCalledWith( catalogFilePath, JSON.stringify(siteCatalog), { encoding: 'utf-8' } ) }) it('should succeed if mkdir and writeFile do not cause error', async () => { const item = { metadata: { url: 'https://example.com/01', author: '<NAME>', date: '2010-01-01T01:01:01.001Z', description: 'a dummy website', image: 'https://example.com/img/logo.png', publisher: 'Dummy Publisher', title: 'Example Domain', }, updatedAt: '2022-01-01T01:01:01.001Z', } ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(siteCatalog)) const catalogFilePath = 'dummy.json' const store = new CachedSiteSummaryStore() await expect(store.open(catalogFilePath)).resolves.toBeUndefined() expect(() => store.updateItem('https://example.com/01', item) ).not.toThrowError() await expect(store.sync()).resolves.toBeUndefined() expect(fsPromise.mkdir).toHaveBeenCalledWith( path.dirname(catalogFilePath), { recursive: true } ) expect(fsPromise.writeFile).toHaveBeenCalledWith( catalogFilePath, JSON.stringify(siteCatalog), { encoding: 'utf-8' } ) }) it('should fails if mkdir causes error', async () => { const item = { metadata: { url: 'https://example.com/01', author: '<NAME>', date: '2010-01-01T01:01:01.001Z', description: 'a dummy website', image: 'https://example.com/img/logo.png', publisher: 'Dummy Publisher', title: 'Example Domain', }, updatedAt: '2022-01-01T01:01:01.001Z', } ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(siteCatalog)) ;(fsPromise.mkdir as jest.Mock).mockRejectedValueOnce( new Error('dummy mkdir error') ) const catalogFilePath = 'dummy.json' const store = new CachedSiteSummaryStore() await expect(store.open(catalogFilePath)).resolves.toBeUndefined() expect(() => store.updateItem('https://example.com/01', item) ).not.toThrowError() await expect(store.sync()).rejects.toThrowError() expect(fsPromise.mkdir).toHaveBeenCalledWith( path.dirname(catalogFilePath), { recursive: true } ) expect(fsPromise.writeFile).toHaveBeenCalledTimes(0) }) it('should fails if writeFile causes error', async () => { const item = { metadata: { url: 'https://example.com/01', author: '<NAME>', date: '2010-01-01T01:01:01.001Z', description: 'a dummy website', image: 'https://example.com/img/logo.png', publisher: 'Dummy Publisher', title: 'Example Domain', }, updatedAt: '2022-01-01T01:01:01.001Z', } ;( fsPromise.readFile as jest.MockedFunction<typeof fsPromise.readFile> ).mockResolvedValueOnce(JSON.stringify(siteCatalog)) ;(fsPromise.writeFile as jest.Mock).mockRejectedValueOnce( new Error('dummy writeFile error') ) const catalogFilePath = 'dummy.json' const store = new CachedSiteSummaryStore() await expect(store.open(catalogFilePath)).resolves.toBeUndefined() expect(() => store.updateItem('https://example.com/01', item) ).not.toThrowError() await expect(store.sync()).rejects.toThrowError() expect(fsPromise.mkdir).toHaveBeenCalledWith( path.dirname(catalogFilePath), { recursive: true } ) expect(fsPromise.writeFile).toHaveBeenCalledWith( catalogFilePath, JSON.stringify(siteCatalog), { encoding: 'utf-8' } ) }) }) }) })
1 team hasn't moved Ross County 25 15 6 4 46 25 21 51 L Lost 0 - 4 against Queen of the South on January 12th 2019. W Won 2 - 0 against Alloa Athletic on January 26th 2019. W Won 2 - 1 against Dunfermline on February 2nd 2019. W Won 4 - 2 against Partick Thistle on February 23rd 2019. W Won 3 - 2 against Ayr United on February 26th 2019. 2 team has moved up Dundee Utd 26 13 7 6 36 32 4 46 L Lost 0 - 1 against Ayr United on January 25th 2019. W Won 2 - 1 against Greenock Morton on February 2nd 2019. W Won 1 - 0 against Queen of the South on February 16th 2019. D Drew 1 - 1 against Falkirk on February 23rd 2019. W Won 1 - 0 against Inverness Caledonian Thistle on February 26th 2019. 3 team has moved down Ayr 26 12 7 7 42 26 16 43 L Lost 2 - 3 against Inverness Caledonian Thistle on January 29th 2019. W Won 3 - 1 against Alloa Athletic on February 2nd 2019. D Drew 0 - 0 against Greenock Morton on February 16th 2019. L Lost 0 - 1 against Dunfermline on February 23rd 2019. L Lost 2 - 3 against Ross County on February 26th 2019. 4 team hasn't moved Inverness CT 26 8 12 6 34 30 4 36 W Won 3 - 2 against Ayr United on January 29th 2019. L Lost 1 - 2 against Partick Thistle on February 2nd 2019. L Lost 0 - 1 against Dunfermline on February 16th 2019. W Won 1 - 0 against Greenock Morton on February 23rd 2019. L Lost 0 - 1 against Dundee United on February 26th 2019. 5 team hasn't moved Dunfermline 26 9 7 10 28 30 -2 34 D Drew 0 - 0 against Greenock Morton on January 26th 2019. L Lost 1 - 2 against Ross County on February 2nd 2019. W Won 1 - 0 against Inverness Caledonian Thistle on February 16th 2019. W Won 1 - 0 against Ayr United on February 23rd 2019. W Won 3 - 0 against Partick Thistle on February 26th 2019. 6 team has moved up Morton 26 8 9 9 26 33 -7 33 D Drew 0 - 0 against Dunfermline on January 26th 2019. L Lost 1 - 2 against Dundee United on February 2nd 2019. D Drew 0 - 0 against Ayr United on February 16th 2019. L Lost 0 - 1 against Inverness Caledonian Thistle on February 23rd 2019. W Won 1 - 0 against Queen of the South on February 26th 2019. 7 team has moved down Queen of Sth 26 7 9 10 35 32 3 30 L Lost 1 - 2 against Partick Thistle on January 26th 2019. L Lost 0 - 3 against Falkirk on February 2nd 2019. L Lost 0 - 1 against Dundee United on February 16th 2019. L Lost 1 - 2 against Alloa Athletic on February 23rd 2019. L Lost 0 - 1 against Greenock Morton on February 26th 2019. 8 team hasn't moved Alloa 26 6 8 12 27 40 -13 26 L Lost 0 - 2 against Ross County on January 26th 2019. L Lost 1 - 3 against Ayr United on February 2nd 2019. L Lost 1 - 2 against Falkirk on February 9th 2019. L Lost 0 - 2 against Partick Thistle on February 16th 2019. W Won 2 - 1 against Queen of the South on February 23rd 2019. 9 team hasn't moved Falkirk 25 6 7 12 26 36 -10 25 D Drew 1 - 1 against Partick Thistle on January 12th 2019. D Drew 2 - 2 against Inverness Caledonian Thistle on January 26th 2019. W Won 3 - 0 against Queen of the South on February 2nd 2019. W Won 2 - 1 against Alloa Athletic on February 9th 2019. D Drew 1 - 1 against Dundee United on February 23rd 2019.
/********************************************************************** * file: pp_profile.cc * license: Artistic License, see file LICENCE.TXT or * http://www.opensource.org/licenses/artistic-license.php * descr.: protein pattern search extension * authors: <NAME> * * date | author | changes * --------|---------------|------------------------------------------ * 22.03.07| <NAME> | creation of the file * 28.01.09| <NAME> | rev. 157, final forward-only version **********************************************************************/ #include "pp_profile.hh" // project includes #include "properties.hh" // for initConstants // standard C/C++ includes #include <iomanip> // for setw, setprecision #include <fstream> // for ifstream #include <stdexcept> // for out_of_range #include <iostream> using namespace PP; /* internal constants */ static const double default_amino_frq[NUM_AA] = { 0.07088, 0.05268, 0.06270, 0.05256, 0.05807, 0.04439, 0.04037, 0.07068, 0.05837, 0.07689, 0.06538, 0.09200, 0.05527, 0.03995, 0.03224, 0.01312, 0.02253, 0.02353, 0.01793, 0.05046 }; /*--- class Column -------------------------------------------------*/ const Column Column::background = default_amino_frq; const double Column::minFreq = 0.0001; const Double Column::stopCodonScore = pow(2.0L,-1000); // 2^(-1000), = almostZero^2 const Double Block::almostZero = pow(2.0L,-500); // upper bound for odds-Score // for any sequence containing stop codons double Block::min_spec = MIN_SPEC; double Block::min_sens = MIN_SENS; double Block::min_anchor_spec = MIN_ANCHOR_SPEC; int Profile::min_anchor_count = MIN_ANCHOR_COUNT; double Block::partial_spec = PARTIAL_SPEC; double Block::partial_sens = PARTIAL_SENS; double Profile::global_thresh = GLOBAL_THRESH; double Profile::absolute_malus_threshold = 0; double Column::weight = 1.0; double Column::invalidScore = 1.0; Column& Column::operator= (const double* val) { double sum = 0.0; for (int a=0; a<NUM_AA; a++) if (val[a]<0) throw out_of_range("Negative value for PP::Column"); else sum+=val[a]; if (sum <= 0.0) { throw out_of_range("No positive value in PP::Column"); } for (int a=0; a<NUM_AA; a++) values[a]=(val[a]/sum)*(1-minFreq*NUM_AA)+minFreq; initRatios(); return *this; } void Column::initRatios() { if (weight == 1.0) for (int a=0; a<NUM_AA; a++) oddRatios[a] = values[a]/background[a]; else for (int a=0; a<NUM_AA; a++) oddRatios[a] = std::pow(values[a]/background[a], weight); } Dist Column::getDist(const Column& model) const { Dist result; for (int a=0; a<NUM_AA; a++) { double logfactor = std::log(oddRatios[a]); double mu = model[a] * logfactor; result.add(mu, mu * logfactor); } result.var -= result.mu * result.mu; return result; } ostream& PP::operator<<(ostream& strm, const Column& c) { for (int a=0; a<NUM_AA; a++) strm << "\t" << c.values[a]; return strm; } istream& PP::operator>>(istream& strm, Column& c) { double buf[NUM_AA]; for (int a=0; a<NUM_AA; a++) if (!(strm >> buf[a])) return strm; c = buf; return strm; } /*--- class IntronProfile ------------------------------------------*/ /* void IntronProfile::set(const vector<string>& lines) { string line; for (int lineno=0; lineno<lines.size(); lineno++) { istringstream sstrm(lines[lineno]); int from, to; double prob; if ((sstrm >> from >> to >> prob >> ws) && sstrm.eof()) (*this)[from][to] = prob; else throw PartParseError(lines.size()-lineno); } } ostream& IntronProfile::pretty_print(ostream& strm) const { for (const_iterator it=begin(); it!=end(); it++) { strm << "from " << it->first << " to"; const mapped_type& submap = it->second; for (mapped_type::const_iterator it2=submap.begin(); it2!=submap.end(); it2++) strm << " " << it2->first << ":" << setw(6) << setprecision(3) << fixed << it2->second; } return strm << "\n"; } double IntronProfile::getP(int from) const { const_iterator it = find(from); if (it == end()) return 1.0; const mapped_type& submap = it->second; return accumulate(submap.begin(), submap.end(), 1.0, sub_second); } double IntronProfile::getP(int from, int to) const { const_iterator it = find(from); if (it == end()) return 0.0; const mapped_type& submap = it->second; return submap.count(to)? submap.find(to)->second : 0.0; } ostream& PP::operator<< (ostream& strm, const IntronProfile& prfl) { for(IntronProfile::const_iterator it = prfl.begin(); it != prfl.end(); ++it) { int from = it->first; IntronProfile::mapped_type target = it->second; for (IntronProfile::mapped_type::iterator it2 = target.begin(); it2 != target.end(); it2++) strm << from << "\t" << it2->first << "\t" << it2->second << "\n"; } return strm; } */ /*--- class Block --------------------------------------------------*/ const char* DNA::sequence = 0; int DNA::len = 0; Block::Block(DistanceType d, const vector<string>& lines, string default_id) : id(default_id), distance(d), iP(0) { // empty lines are ignored; lines saying "name=" set the id; all other lines lead to an exeption // if they cannot be read successfully for (int lineno=0; lineno<lines.size(); lineno++) { int n; Column col = default_amino_frq; if (istringstream(lines[lineno]) >> n >> col && n == size()) columns.push_back(col); else if (lines[lineno].compare(0,5,"name=")==0) id = lines[lineno].substr(5); else if (lines[lineno] != "") throw PartParseError(lines.size()-lineno); } } #ifdef DEBUG inline Double findThresh(Dist d0, Dist d1, double thr0, double thr1, int variant=0) { double min_thresh = d0.abs(thr0), max_thresh = d1.abs(thr1); if (min_thresh <= max_thresh) return Double::exp((min_thresh + max_thresh)/2); switch (variant) { case 1: return Double::exp(max_thresh); // return less default: return 0; } } inline void put_score_line(ostream& strm, double logscore, Dist d0, Dist d1, int size) { strm << setprecision(2) << scientific; strm << setw(8) << Double::exp(logscore) << setprecision(4) << fixed << setw(8) << Double::exp(logscore/size) << setw(8) << logscore << setw(8) << logscore/size << setw(8) << d0.normed(logscore) << setw(8) << d1.normed(logscore) << "\n"; } #endif void Block::initDistributions() { ownDists.assign(size()+1, Dist()); backDists.assign(size()+1, Dist()); for (int i=size(); i>0; i--) { backDists[i-1] = backDists[i] + columns[i-1].getBackDist(); ownDists[i-1] = ownDists[i] + columns[i-1].getOwnDist(); } } bool Block::initThresholds() { if (size() < MIN_BLOCKSIZE) return false; thresholdMatrix.resize(size()+1); for (int to=0; to <= size(); to++) { vector<Double>& current = thresholdMatrix[to]; current.clear(); for (int from=0; from<=to-MIN_CHECKCOUNT; from++) { double min_logthresh = getSpecThresh(partial_spec, from, to); double logthresh = getSensThresh(partial_sens, from, to); if (min_logthresh <= logthresh) logthresh = (min_logthresh + logthresh)/2; current.push_back(Double::exp(logthresh)); } if (to == size()) current.resize(size()+1, almostZero); else { if (to < MIN_CHECKCOUNT) current.push_back(almostZero); current.resize(to+1, Double::infinity()); } } #ifdef DEBUG prefixThresh.assign(MIN_CHECKCOUNT, almostZero); // here, allow everything except stop codons Dist d0; Dist& d1 = ownDists[0]; for (int i=0; i<size(); i++) { if (i>=MIN_CHECKCOUNT) prefixThresh.push_back(findThresh(d0, d1 - ownDists[i], partial_spec, -partial_sens, 1)); d0 += columns[i].getBackDist(); } if (abs(d0.var/backDists[0].var -1)>1e-5 || abs(d0.mu/backDists[0].mu-1)>1e-5) throw ProjectError("partialThresh bug"); #endif // blockscoreBack = backDists[0]; double sens_thresh = getSensThresh(min_sens); double spec_thresh = getSpecThresh(min_spec); #ifdef DEBUG Double prefixLast = findThresh(d0, d1, partial_spec, -partial_sens, 1); cerr << "--\nBlock: " << id << "\nThreshold calculation\n" << " score (av.) lgscore (av.) sdev(bk)sdev(blk)\n" << "upper bound: "; put_score_line(cerr, d1.abs(-min_sens), d0, d1, size()); cerr << "lower bound: "; put_score_line(cerr, d0.abs(min_spec), d0, d1 ,size()); cerr << "threshold: "; if (spec_thresh <= sens_thresh) { put_score_line(cerr, (spec_thresh + sens_thresh)/2, d0, d1 ,size()); // double dis0 = d0.normed(threshold.log()); // double dis1 = d1.normed(threshold.log()); // cerr << threshold.getRoot(size()) << " = (back)" << dis0 << "s = (block)" << dis1 << "s\n"; } else cerr << "N/A\n"; // size()-i is the length of the considered suffix and // must be at least MIN_CHECKCOUNT for (int i=0; i<=size()-MIN_CHECKCOUNT; i++) { suffixThresh.push_back(findThresh(d0, ownDists[i], partial_spec, -partial_sens, 1)); d0 -= columns[i].getBackDist(); } suffixThresh.resize(size(), almostZero); // cerr << "Prefix thresholds:"; // for (int i=0; i < size(); i++) // cerr << " " << prefixThresh[i]; // cerr << "\nSuffix thresholds:"; // for (int i=0; i < size(); i++) // cerr << " " << suffixThresh[i]; // cerr << "\n"; if (suffixThresh[0] != prefixLast) throw ProjectError("Should be equal!"); #endif if (spec_thresh <= sens_thresh) { threshold = Double::exp((spec_thresh + sens_thresh)/2); return true; } return false; } void Block::setIntronProfile(const vector<string>& lines) { iP = new ProfileMap(); for (int lineno=0; lineno<lines.size(); lineno++) { int n,f; double p; if (lines[lineno] == "") continue; if (istringstream(lines[lineno]) >> n >> f >> p && 0 <= n && n < size() && 0 <= f && f < 3 && 0 < p && p <= 1) iP->add(n,f,p); else throw PartParseError(lines.size()-lineno); } } bool BlockScoreType::addBlocksUntil(bool complement, int newbase, map<int,Double> *result) { // add the newly created blocks to (*result) // return true if blocks were added if (newbase > DNA::len-3) newbase=DNA::len-3; #ifdef DEBUG if (newbase < begin()) cerr << "addBlocksUntil: value for newbase doesn't make much sense!\n"; if (newbase < end()) return false; #endif for (int pos = end(); pos <= newbase; pos++) { aligned_type& new_vals = new_back(); new_vals.reserve(size()); Double value = 1; const char* dna = DNA::sequence + pos; int count = size(); if (pos + 3*size() > DNA::len) count = (DNA::len-pos)/3; if (complement) { int last = size()-count; for (int i=size()-1; i>=last; i--) { try { int aa = GeneticCode::map[Seq2Int(3).rc(dna)]; value *= (*partner)[i].Q(aa); } catch (InvalidNucleotideError e) { value *= Column::invalidScore; } new_vals.push_back(value); dna += 3; } } else { for (int i=0; i<count; i++) { try { int aa = GeneticCode::map[Seq2Int(3)(dna)]; value *= (*partner)[i].Q(aa); } catch (InvalidNucleotideError e) { value *= Column::invalidScore; } new_vals.push_back(value); dna += 3; } } new_vals.resize(size(), value * Column::stopCodonScore); #ifdef DEBUG if (count==size() && new_vals.back() != value) throw ProjectError("addBlocksUntil: something is wrong!"); #endif // value = new_vals.back(); if (count==size() && value > partner->getThreshold()) { hits[pos % 3][pos] = value; if (result) (*result)[pos] = value; } } return true; } // Double Block::saveNewScore() { // int offset = score.begin(); // Double val = score.get(offset); // = score.front().last() // score.pop_front(); // if (val > threshold) { // hits[offset % 3][offset] = val; // return val; // } else // return 0; // } Double Block::scoreFromScratch(bool complement, int dna_offset, int block_offset, int len) const { const char* dna = DNA::sequence + dna_offset; if (dna_offset + 3*len > DNA::len) return 0; Double result = 1; if (complement) { len = size() - len - block_offset; for (int i=size() - block_offset -1; i>=len; i--) { try { int aa = GeneticCode::map[Seq2Int(3).rc(dna)]; result *= columns[i].Q(aa); } catch (InvalidNucleotideError e) { result *= Column::invalidScore; } dna +=3; } } else { len += block_offset; for (int i=block_offset; i<len; i++) { try { int aa = GeneticCode::map[Seq2Int(3)(dna)]; result *= columns[i].Q(aa); } catch (InvalidNucleotideError e) { result *= Column::invalidScore; } dna += 3; } } return result; } Double Block::checkedSuffixScore(bool complement, int dna_offset, int block_offset) const { // if (dna_offset + 3*(size()-block_offset) > DNA::len) // return 0; if (block_offset >= size()) return 1; Double result = scoreFromScratch(complement, dna_offset, block_offset); #ifdef DEBUG const char* dna = DNA::sequence + dna_offset; Double result2 = 1; if (dna_offset + 3*(size()-block_offset) > DNA::len) result2 = 0; else if (complement) for (int i=size() - block_offset -1; i>=0; i--) { try { int aa = GeneticCode::map[Seq2Int(3).rc(dna)]; result2 *= columns[i].Q(aa); } catch (InvalidNucleotideError e) {} dna += 3; } else for (int i=block_offset; i<size(); i++) { try { int aa = GeneticCode::map[Seq2Int(3)(dna)]; result2 *= columns[i].Q(aa); } catch (InvalidNucleotideError e) {} dna += 3; } if (result2 != result) throw ProjectError("bug in Block::checkedSuffixScore"); #endif return result > getSuffixThresh(complement, block_offset) ? result : 0; } void getBestPartialProduct(vector<LLDouble>& vec, PartScoreType& result) { result.from=0; result.to=0; int locfrom = 0; LLDouble globmax = 1; LLDouble locmax = 1; for (int i=0; i<vec.size(); i++) { locmax *= vec[i]; if (locmax < 1) { locmax = 1; locfrom = i+1; } if (globmax < locmax) { globmax = locmax; result.from = locfrom; result.to = i+1; } } result.score = globmax.log(); } /* * bestPartialLogScore: Aligns blockstart with dna_offset and returns * the log of the best partial score. A sequence part * of MIN_BLOCKSIZE is considered a * valid part. Returns from=to, score=0 if block threshold is not * reached. */ void Block::bestPartialLogScore(bool complement, int dna_offset, PartScoreType& result) const { string aa_seq; const char* seq = DNA::sequence + dna_offset; if (complement) seq += 3 * (size()-1); while (aa_seq.length() < size()) if (complement) { aa_seq += GeneticCode::revtranslate(seq); seq -= 3; } else { aa_seq += GeneticCode::translate(seq); seq += 3; } int from=0; LLDouble locmax=1; LLDouble globmax=1; result.from=result.to=0; for (int t=0; t<aa_seq.length(); t++) { locmax *= columns[t].Q(aa_seq[t]); if (locmax < 1) { locmax=1; from = t+1; } if (globmax < locmax) { globmax = locmax; result.from = from; result.to = t+1; } } if (globmax >= getPartialThresh(false, result.from, result.to) || globmax >= getThreshold()) { result.score = globmax.log(); } else { result.score = 0; result.from = result.to = 0; } } /*--- class Profile ------------------------------------------------*/ Profile::Profile(string filename) { ifstream strm(expandHome(filename).c_str()); if (!strm) throw ProfileNotFoundError(filename); try { #ifdef DEBUG cerr << "Reading blocks. Here are the confidence ranges for average column scores:\n"; #endif parse_stream(strm); } catch (ProfileParseError e) { throw ProfileReadError(filename, e.lineno); } if (blocks.empty()) throw ProfileInsigError("No usable blocks found in file \"" + filename +"\""); if (blockCount() > MAX_BLOCKCOUNT) throw ProfileInsigError("More than " + itoa(MAX_BLOCKCOUNT) + " blocks in file \"" + filename + "\""); int anchorCount=0; for (int b=0; b<blockCount(); b++) if (blocks[b].isAnchor()) anchorCount++; if (anchorCount < min_anchor_count) throw ProfileInsigError("At least " + itoa(min_anchor_count) + " highly " "significant block" + (min_anchor_count==1 ? "" : "s") + "are required in profile, not found in \"" + filename + "\""); if (name == "") { name = filename.substr(filename.rfind("/")+1); name = name.substr(0, name.rfind(".")); } #ifdef DEBUG // reverse(); #endif // invertGlobalThreshs(); // moved to SubstateModel // copyOffset = Position(blockCount()+1,0).id(); // init(); } vector<string> readPart(istream& strm, string& next_type, int& lineno) { vector<string> result; string line; next_type = ""; while (getline(strm,line)) { line=line.substr(0, line.find("#")); line=line.substr(0, line.find_last_not_of("\t\n\v\f\r ")+1); if (line[0]=='[') { lineno++; next_type = line; break; } result.push_back(line); } lineno += result.size(); return result; } string readAndConcatPart(istream &strm, string& next_type, int& lineno) { vector<string> result = readPart(strm, next_type, lineno); if (result.empty()) return ""; for (int i=1; i<result.size(); i++) if (result[i].find_first_not_of("\t\n\v\f\r ") != string::npos) result[0] += "\n" + result[i]; return result[0]; } int newlinesFromPos(string s, int posn) { int result = 0; while ((posn = s.find('\n',posn)+1) > 0) result++; return result; } void Profile::calcGlobalThresh(const vector< vector<Dist> >& ownDists) { #ifdef DEBUG cerr << "Global thresholds for substate bonus:"; #endif Dist tail, fullDist; globalThresh[0].resize(blockCount()); globalThresh[1].resize(blockCount()); for (int b=0; b<blockCount(); b++) fullDist += ownDists[b][0]; for (int b=blockCount()-1; b>=0; b--) { #ifdef DEBUG cerr << "\nBlock " << b << ":"; #endif vector<Double>& current = globalThresh[0][b]; vector<Double>& current_rev = globalThresh[1][blockCount() -1 -b]; current.resize(blockSize(b)+1); current_rev.resize(blockSize(b)+1); for (int i=0; i<=blockSize(b); i++) { Dist currDist = tail + ownDists[b][i]; Dist currDist_rev = fullDist - currDist; current[i] = Double::exp(-currDist.abs(global_thresh)); current_rev[blockSize(b)-i] = Double::exp(-currDist_rev.abs(global_thresh)); if (current[i] < absolute_malus_threshold) current[i] = absolute_malus_threshold; if (current_rev[blockSize(b)-i] < absolute_malus_threshold) current_rev[blockSize(b)-i] = absolute_malus_threshold; } tail += ownDists[b][0]; #ifdef DEBUG cerr << scientific << "[0]: " << current[0] << ", [" << current.size()/2 << "]: " << current[current.size()/2] << ", [" << (current.size() -1) << "]: " << current.back(); #endif } #ifdef DEBUG cerr << "\n\n"; #endif } void Profile::parse_stream(istream & strm) { string type; vector<string> body; int lineno = 0; // lineno is the number of lines read // including the current line containing the type vector< vector<Dist> > ownDists; char blockName ='A'; if (readAndConcatPart(strm, type, lineno).find_first_not_of("\t\n\v\f\r ") != string::npos) throw ProfileParseError(lineno); // ignore part before first type id if (type == "[name]") name = readAndConcatPart(strm, type, lineno); try { while (true) { if (type == "[dist]") { // read in the allowed distance range istringstream lstrm(readAndConcatPart(strm, type, lineno)); DistanceType addDist; if(!(lstrm >> addDist >> ws && lstrm.eof())) throw ProfileParseError(lineno - newlinesFromPos(lstrm.str(), lstrm.tellg()) -1); finalDist += addDist; } else // if dist is not specified, assume arbitrary distance finalDist.setInfMax(); if (type != "[block]") break; blocks.push_back(Block(finalDist, readPart(strm, type, lineno), string("block_")+(blockName++))); if (type == "[intron profile]") blocks.back().setIntronProfile(readPart(strm, type, lineno)); blocks.back().initDistributions(); if (!blocks.back().initThresholds()) { // block not statistically significant, so we'll ignore it // and just add its size to the allowed distance range cerr << "Warning: Block " << blocks.back().id << " is not significant enough, removed from profile.\n"; finalDist.r += blocks.back().size(); blocks.pop_back(); } else { blocks.back().distance.makeTolerant(); finalDist = DistanceType(); ownDists.push_back(blocks.back().getAllOwnDists()); } } } catch (PartParseError err) { throw ProfileParseError(lineno - err.offset); } if (type != "") throw ProfileParseError(lineno); if (!blocks.empty()) calcGlobalThresh(ownDists); finalDist.makeTolerant(); } ostream& Profile::write(ostream& strm) const { strm << "[name]\n" << name << "\n"; Position pos(0,0); while (true) { strm << "\n[dist]\n" << interBlockDist(pos.b) << "\n"; if (pos.b >= blockCount()) break; while (pos.i < blockSize(pos.b)) { strm << pos.i << getColumn(pos) << "\n"; pos++; } pos.nextB(); } // strm << "\n[intron profile]\n" << iP << "\n"; return strm; } void PP::initConstants() { Properties::assignProperty("/ProteinModel/block_threshold_spec", Block::min_spec); Properties::assignProperty("/ProteinModel/block_threshold_sens", Block::min_sens); Properties::assignProperty("/ProteinModel/blockpart_threshold_spec", Block::partial_spec); Properties::assignProperty("/ProteinModel/blockpart_threshold_sens", Block::partial_sens); Properties::assignProperty("/ProteinModel/global_factor_threshold", Profile::global_thresh); Properties::assignProperty("/ProteinModel/absolute_malus_threshold", Profile::absolute_malus_threshold); Properties::assignProperty("/ProteinModel/invalid_score", Column::invalidScore); Properties::assignProperty("/ProteinModel/weight", Column::weight); }
Efficient Vulnerability Management Process in the Military Reducing vulnerabilities is one of the most effective ways to minimize the cyber risks that can occur to information systems. Given the characteristics of the military environment, particularly in operating a wide variety of information systems and dealing with critical information on national security, clear / concise management procedures are needed that enable more realistic and direct action to identify and address vulnerabilities. Also, five requirements for the efficient vulnerability management procedure in the military are proposed as follows: (i) quickness, (ii) continuousness, (iii) clearness, (iv) interdependence, and (v) completeness. By considering all information, this paper suggested 5 phases for the vulnerability management process in military: (i) Framing; (ii) Identification; (iii) Assessment; (iv) Remediation; and (v) Verification. In addition, the three-tiered concept was applied to the efficient management of the vulnerabilities, taking into consideration the characteristics of the organization with clear hierarchical relationships. As a result, it will contribute to reduce the cyber risk in the defense area, by presenting the specific procedures for vulnerability management in each hierarchical organization.
<gh_stars>0 {-# LANGUAGE FlexibleContexts #-} module Competition.Generic where import Data.IntMap as IntMap import Data.STRef import Data.Foldable import Data.Monoid import Control.Monad.ST import Control.Monad.STM import Control.Monad.Reader import Control.Monad.Base import Control.Concurrent.STM.TVar foldableToIntMap :: Foldable f => f a -> IntMap a foldableToIntMap xs = runST $ do k <- newSTRef 0 runReaderT (foldlM go mempty xs) k where go :: ( MonadReader (STRef s Int) m , MonadBase (ST s) m ) => IntMap a -> a -> m (IntMap a) go acc x = do k <- ask i <- liftBase $ readSTRef k liftBase $ modifySTRef k (+1) return $ IntMap.insert i x acc foldableToIntMap' :: Foldable f => f a -> IntMap a foldableToIntMap' xs = runST $ do k <- newSTRef 0 runReaderT (foldlM go mempty xs) k where go :: ( MonadReader (STRef s Int) m , MonadBase (ST s) m ) => IntMap a -> a -> m (IntMap a) go acc x = do k <- ask i <- liftBase $ readSTRef k liftBase $ modifySTRef' k (+1) return $ IntMap.insert i x acc foldableToIntMapSTM :: Foldable f => f a -> IO (IntMap a) foldableToIntMapSTM xs = atomically $ do k <- newTVar 0 runReaderT (foldlM go mempty xs) k where go :: ( MonadReader (TVar Int) m , MonadBase STM m ) => IntMap a -> a -> m (IntMap a) go acc x = do k <- ask i <- liftBase $ readTVar k liftBase $ modifyTVar' k (+1) return $ IntMap.insert i x acc
import React from 'react'; function Chase() { return ( <div className="sk-chase"> <div className="sk-chase-dot" /> <div className="sk-chase-dot" /> <div className="sk-chase-dot" /> <div className="sk-chase-dot" /> <div className="sk-chase-dot" /> <div className="sk-chase-dot" /> </div> ); } export default React.memo(Chase);
package com.bruce.travel.universal.utils; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Bitmap; import android.net.Uri; import android.provider.MediaStore; import android.support.v4.app.Fragment; import java.text.SimpleDateFormat; import java.util.Date; /** * Created by 梦亚 on 2016/8/22. */ public class ImageUtils { public static final int REQUEST_CODE_FROM_CAMERA = 5001; public static final int REQUEST_CODE_FROM_ALBUM = 5002; public static final int REQUEST_CODE_CROP = 5003; private static Context mContext; /** * 存放拍照图片的uri地址 */ private static Uri imageUriFromALBUM; private static Uri imageUriFromCamera; /** * 记录是处于什么状态:拍照or相册 */ private static int state = 0; public ImageUtils(Context context) { this.mContext = context; } public static void showImagePickDialog(final Activity activity) { String title = "获取图片方式"; String[] items = {"拍照","相册"}; new AlertDialog.Builder(activity) .setTitle(title) .setItems(items, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); switch(which) { case 0: state = 1; pickImageFromCamera(activity); break; case 1: state = 2; pickImageFromAlbum(activity); break; default: break; } } }).show(); } public static void pickImageFromCamera(Activity activity) { imageUriFromCamera = getImageUri(); Intent intent = new Intent(); intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUriFromCamera); activity.startActivityForResult(intent, REQUEST_CODE_FROM_CAMERA); } public static void pickImageFromAlbum(Activity activity) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); activity.startActivityForResult(intent,REQUEST_CODE_FROM_ALBUM); } private static Uri getImageUri() { String imageName = new SimpleDateFormat("yyMMddHHmmss").format(new Date()) + ".jpg"; String path = MyConstant.PhotoDir + imageName; return UriUtils.getUriFromFilePath(path); } /** * 复制一条Uri,避免因为操作而对原图片产生影响 */ public static void copyImageUri(Activity activity, Uri uri){ String imageName = new SimpleDateFormat("yyMMddHHmmss").format(new Date()) + ".jpg"; String copyPath = MyConstant.PhotoDir + imageName; FileUtils.copyfile(UriUtils.getRealFilePath(activity,uri),copyPath,true); imageUriFromALBUM = UriUtils.getUriFromFilePath(copyPath); } /** * 删除一条图片Uri */ public static void deleteImageUri(Context context, Uri uri){ context.getContentResolver().delete(uri, null, null); } /** * 裁剪图片返回 */ public static void cropImageUri(Activity activity, Uri uri, int outputX, int outputY){ Intent intent = new Intent("com.android.camera.action.CROP"); intent.setDataAndType(uri, "image/*"); intent.putExtra("crop", "true"); intent.putExtra("aspectX", 1); intent.putExtra("aspectY", 1); intent.putExtra("outputX", outputX); intent.putExtra("outputY", outputY); intent.putExtra("scale", true); intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); intent.putExtra("return-data", false); intent.putExtra("outputFormat", Bitmap.CompressFormat.JPEG.toString()); intent.putExtra("noFaceDetection", true); // no face detection activity.startActivityForResult(intent, REQUEST_CODE_CROP); } /** * 根据状态返回图片Uri */ public static Uri getCurrentUri(){ if (state == 1){ return imageUriFromCamera; } else if (state == 2){ return imageUriFromALBUM; } else return null; } }
// Save persistent workspace data to the json file func (w *Workspace) Save() { if w == nil { return } fjson, exist, err := w.checkDataExist() kingpin.FatalIfError(err, "Issue with '%s'", fjson) w.CleanUnwantedEntries() if !exist || w.dirty { err = w.persistent.save(fjson) } else { gotrace.Trace("No Workspace updates: File '%s' not saved.'", fjson) return } gotrace.Trace("File '%s' saved.", fjson) w.dirty = false }
def scrape_raw(): stats = Statistics() catalog = requests.get(catalog_url + '/programs') catalog_tree = html.fromstring(catalog.content) catalog_dict = {} programs = catalog_tree.xpath('//*[@id="alltextcontainer"]/ul')[0] for program in programs: program_name = program.text.strip()[:-1] if program_name in excluded_programs: log.info("Skipped excluded program {}.".format(program_name)) continue program_dict = {} log.info("Getting degree programs under {}".format(program_name)) for degree_type in program: subpath = degree_type.attrib['href'].strip() degree_name = degree_type.text.strip() full_degree_name = degree_name + " in " + program_name if full_degree_name in excluded_degrees: log.info("Skipped excluded degree {}.".format(full_degree_name)) continue if degree_name in supported_degrees: degree_dom = html.fromstring(requests.get(catalog_url + subpath).content) degree_dict = {'overview' : list(filter(None, get_overview(degree_dom)))} tabs = degree_dom.xpath('//*[@id="tabs"]') if not tabs: log.info("No tabs found for {}, only getting overview".format(full_degree_name)) else: reqs_tab = degree_dom.xpath('//*[@id="requirementstexttab"]') if not reqs_tab: concentrations_tab = degree_dom.xpath('//*[@id="concentrationstexttab"]') threads_tab = degree_dom.xpath('//*[@id="threadstexttab"]') container = None if concentrations_tab: log.info("Opening concentrations for {}".format(full_degree_name)) container = degree_dom.xpath('//*[@id="concentrationstextcontainer"]')[0] if threads_tab: log.info("Opening threads for {}".format(full_degree_name)) container = degree_dom.xpath('//*[@id="threadstextcontainer"]')[0] if container is None: log.info("{} had no requirements, threads, or concentrations".format(full_degree_name)) else: hrefs, degree_dict['threads'] = get_hrefs(container), {} for href in hrefs: thread_dom = html.fromstring(requests.get(catalog_url + href).content) result = get_reqs(thread_dom, stats, program_name in no_reqs_tabs, full_degree_name) if result: degree_dict['threads'][result[1]] = result[0] else: stats.num_threads_with_no_requirements += 1 stats.num_threads += 1 stats.num_degrees_with_threads += 1 else: result = get_reqs(degree_dom, stats, original_degree_name=full_degree_name) if result: degree_dict['requirements'] = result[0] else: stats.num_degrees_with_no_requirements += 1 program_dict[degree_name] = degree_dict stats.num_degrees += 1 catalog_dict[program_name] = program_dict stats.num_programs += 1 print("\n") log.info("{} degrees in {} programs processed.".format(stats.num_degrees, stats.num_programs)) log.info("{} degrees had no requirements information.".format(stats.num_degrees_with_no_requirements)) log.info("{} concentrations/threads in {} degrees processed.".format(stats.num_threads, stats.num_degrees_with_threads)) log.info("{} concentrations/threads had no requirements.".format(stats.num_threads_with_no_requirements)) log.info("{} out of {} processed table rows had no course codes.".format(stats.num_rows_with_no_course_codes, stats.num_rows)) log.info("{} rows were areaheaders.".format(stats.num_areaheaders)) log.info("{} rows were comments.".format(stats.num_comments)) log.info("{} rows were courses.".format(stats.num_courses)) log.info("{} tables had errors.".format(stats.num_tables_with_errors)) log.info("{} tables had {} unresolved comments.".format(stats.num_tables_with_unresolved_comments, stats.num_unresolved_comments)) log.info("Fun fact: have you noticed that EVERY degree is a science degree, according to our catalog?") return catalog_dict
/** * Load job types using the given loader, and store them in the global instance. * * @param loader * @throws InvalidJobTypeDefinitionException * When a definition is invalid, or multiple definitions have the same ID * @throws IOException * @see #getInstance */ public static void initialise(final Loader loader) throws InvalidJobTypeDefinitionException, IOException { INSTANCE = new JobTypes(loader); }
/** * STRICTLY TEMPORARY! Support a previous version of the Jetty deployment * plan syntax by converting it to the new unified web deployment plan * syntax. This should be removed as soon as possible. * * @version $Rev$ $Date$ */ public class TemporaryPlanAdapter { private final static Log log = LogFactory.getLog(TemporaryPlanAdapter.class); private final static String CORRECT_NAMESPACE = "http://geronimo.apache.org/xml/ns/web"; private final static String WRONG_NAMESPACE = "http://geronimo.apache.org/xml/ns/web/jetty"; /** * Convert a Jetty document to a web document. */ public static GerWebAppDocument convertJettyDocumentToWeb(XmlObject source) { XmlCursor cursor = source.newCursor(); while(!cursor.isStart()) { cursor.toNextToken(); } if(WRONG_NAMESPACE.equals(cursor.getName().getNamespaceURI())) { log.error("WAR includes a file using the old geronimo-jetty.xml format "+ "(including namespace http://geronimo.apache.org/xml/ns/web/jetty). "+ "While we're still using your file for now, the next release will not, "+ "and you should change to the new geronimo-web.xml format immediately. "+ "The main difference is that it uses the namespace http://geronimo.apache.org/xml/ns/web"); swapNamespace(cursor, CORRECT_NAMESPACE, WRONG_NAMESPACE); } XmlObject result = source.changeType(GerWebAppDocument.type); if (result != null) { return (GerWebAppDocument) result; } return (GerWebAppDocument) source; } /** * Convert a (presumably nested) Jetty element to a web element. */ public static GerWebAppType convertJettyElementToWeb(XmlObject source) { XmlCursor cursor = source.newCursor(); while(!cursor.isStart()) { cursor.toNextToken(); } if(WRONG_NAMESPACE.equals(cursor.getName().getNamespaceURI())) { log.error("EAR includes WAR deployment content using the old geronimo-jetty.xml format "+ "(including namespace http://geronimo.apache.org/xml/ns/web/jetty). "+ "While we're still using your WAR deployment content for now, the next release will not, "+ "and you should change to the new geronimo-web.xml format immediately. "+ "The main difference is that it uses the namespace http://geronimo.apache.org/xml/ns/web"); swapNamespace(cursor, CORRECT_NAMESPACE, WRONG_NAMESPACE); } XmlObject result = source.changeType(GerWebAppType.type); if (result != null) { return (GerWebAppType) result; } return (GerWebAppType) source; } /** * @return true if the schema was correct to begin with */ public static boolean swapNamespace(XmlCursor cursor, String correct, String wrong) { while (cursor.hasNextToken()) { if (cursor.isStart()) { String current = cursor.getName().getNamespaceURI(); if (correct.equals(current)) { //already has correct schema, exit return true; } else if(wrong.equals(current)) { cursor.setName(new QName(correct, cursor.getName().getLocalPart())); } } cursor.toNextToken(); } return false; } }
Now, we have a third one to share. No worries, it does something different and I think you’ll like it. Transparency Tiles is an app from developer Matthew Miller and it’s free to use. Its purpose? It generates new Tiles for Xbox Music, Xbox Games and Xbox Video that are now transparent. Today is evidently Start screen day, as more and more developers are quickly pumping out apps for Windows Phone 8.1 . Last night we gave you a guide on some ways to make your Start screen shine on 8.1, and this morning we gave you two more apps ( Tilesparency and Clock Hub ) to add to your list. The app is super simple to use: launch it, create transparent Tile, resize and reposition as needed. Miller has told us that he’s going to update it again today with even more Tiles for various apps. I imagine this could become a thing until devs update their own apps to support Tile transparency. In that regard, if you have a request, you can drop them off here in comments as I’m sure Miller will be listening! (I’m guessing one limitation with this method is these will be static Tiles only) Update: There was a technical problem with links to this story not working; it has now been fixed Pick up Transparency Tiles here in the Store for free. Windows Phone 8.1 only!
I’m gonna be perfectly honest. I didn’t expect DRIVECLUB to hold up so well, and I was one of those gamers that moaned about not getting the PS + edition. To be honest, this should have been off of my wishlist because tuning and customization were nonexistent, but as I played around with the game, I grew accustomed to the culture and its themes. I realized that the game was extremely challenging and fun, and while the launch was catastrophically terrible, developers Evolution Studios went above and beyond to create an addictive driving game. DRIVECLUB delivers. 1. DRIVECLUB is extremely gorgeous! If you want to give your friend a reason to purchase a PlayStation 4, show them this game. After the dynamic weather update (added earlier this year), DRIVECLUB looked STUNNING. This is totally subjective (as most articles are) but GT6, Forza, and even Project CARS couldn’t hold a candle to the beauty that is this game. The cars, atmosphere, and even fictional tracks were modeled with extreme care, and every leaf jostles in the wind. The rain is RIDICULOUS, and I’ve never seen anything like it in a game. Lightning lights up the night sky, the droplets of rain turn your tires into skates as you constantly hydroplane and get a grip of the course. The water moves on your windshield against the wipers like a real car would, and it truly feels next gen. 2. The online component is WAY better now. Advertisement I’m not going to sugar coat it: DRIVECLUB’s launch was horrible, and it was sad seeing it happen to the guys who made Motorstorm. Nothing social worked, and the game was already difficult to play, but Evolution Studios stuck to fixing many of the netcode issues that plagued the game. In that time, they’ve added replays for single and multiplayer, a slightly revised drifting mode, a proper photo mode, and bunch of other great things. Multiplayer races are still a destruction derby crash fest, but that’s more of the players fault more than the Evolution Studios. Advertisement 3. The car selection (while small) is still VERY diverse! While this game has fewer cars than your average racer, I bet they don’t have cars like the Icona Vulcano, or the Renault Twin’Run, or even the Peugeot Onyx concept. DRIVECLUB has the most electric cars I have ever seen in a game, like the SLS AMG Electric Drive and the Rimac Automobili, plus no two cars in this game drive the same. All of the iconic Lamborghinis, Ferraris, Bentleys, Aston Martins, BMWs, and even a goddamn Spyker is thrown into the mix (Except for Porsche, but hey we have RUF right!?). Advertisement There is even a buggy from the OG Motorstorm game called the Wombat that has boost. BOOST! Advertisement Evolution has also done a great job with DLC, mainly with adding a mix of free and paid content that added a lot, like new single player tours, liveries, and extra cars! There also recently announced that the Nissan GTR will be in the game! Before that, there were no Japanese cars in the game at all. Final Words DRIVECLUB surprised me. I play this more than I play Destiny nowadays, and I play a ton of Destiny! The racing is frantic and fun, but the learning curve is not terribly steep. I will say that you will need to work for those wins, especially in multiplayer however, and make sure you pick a car that fits your play style. Join a club too, so you can unlock more cars like the Pagani Zonda R and the BAC Mono. See you guys on the track. @ktfright
from django.shortcuts import render from django.views.generic import ListView from .models import ToDo # Create your views here. class ToDoList(ListView): model = ToDo template_name = 'todo/index.html'
def load_from_dict(spicedict): global DELTET_T_A, DELTET_K, DELTET_EB, DELTET_M0, DELTET_M1 global LS_YEAR0, LS_YEARS, LS_ARRAY1D, LS_ARRAY2D DELTET_T_A = spicedict["DELTA_T_A"] DELTET_K = spicedict["K"] DELTET_EB = spicedict["EB"] (DELTET_M0, DELTET_M1) = spicedict["M"] delta_at = spicedict["DELTA_AT"] LS_YEAR0 = delta_at[1].year - 1 LS_YEARS = delta_at[-1].year - LS_YEAR0 + 1 LS_ARRAY1D = np.zeros(2*LS_YEARS, dtype="int") for i in range(0, len(delta_at), 2): date = delta_at[i+1] indx = 2 * (date.year - LS_YEAR0) + (date.month - 1)//6 LS_ARRAY1D[indx:] = delta_at[i] LS_ARRAY2D = LS_ARRAY1D.reshape((LS_YEARS,2))
/** * Find whether "one toggle" mode is enabled. * @param btnm Button matrix object * @return whether "one toggle" mode is enabled */ bool lv_btnm_get_one_toggle(const lv_obj_t * btnm) { lv_btnm_ext_t * ext = lv_obj_get_ext_attr(btnm); return ext->one_toggle; }
def helicsCloseLibrary() -> "void": return _helics.helicsCloseLibrary()
pub mod entity; pub mod logger; pub mod repository; pub mod use_case; #[cfg(test)] mod tests;
/** * Send the game stats to the client. * @param gameId ID of the game. */ public void sendGameStats(int gameId) { GameStats stats = Database.getGameStats(gameId); sendMessage(ADDRESS_SERVER, MESSAGE_GAME_STATS, stats.toString()); }
<gh_stars>0 #include <iostream> #include <fstream> #include <sstream> #include <TGraph.h> #include<TH1F.h> #include<TProfile.h> #include<TLegend.h> #include <TCanvas.h> // canvas object #include "tempTrender.h" using namespace std; //Utils bool hasEnding (std::string const &fullString, std::string const &ending) { //compares two strings to check if the first string ends with the second string //e.g. hasEnding("binary", "nary") returns True //Function taken from https://stackoverflow.com/questions/874134/find-out-if-string-ends-with-another-string-in-c //maybe should go in its own file and then get included here ? if (fullString.length() >= ending.length()) { return (0 == fullString.compare (fullString.length() - ending.length(), ending.length(), ending)); } else { return false; } } int date_to_number (int month, int day) { //takes month and date and returns the corresponding # out of 365 days in a year int month_sum = 0; //contribution of months to the day number int days_in_month [12] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30}; for (int i=0; i<month; i++) { month_sum += days_in_month[i]; } return month_sum+day; } double VecAvg(vector<double> v){ //Average of vector elements double sum = 0; int denom = v.size(); for(int i=0; i < denom; i++){ sum += v[i]; } return sum/denom; } //Member Functions // #0 tempTrender::tempTrender(const string& filePath) : _path{filePath}{ //filePath has now been stored in member variable _path cout << "The user supplied " << filePath <<" as the path to the data file.\n"; //std::cout << "You should probably store this information in a member variable of the class! Good luck with the project! :)\n"; } // #1 void tempTrender::tempOnDay(int monthToCalculate, int dayToCalculate) const { //Make a histogram of the temperature on this day //Incorrect input handling if (monthToCalculate>12 || dayToCalculate>31) { cout << "Invalid date requested. Please input a valid date with the format tempOnDay(Month, Day)" << endl; return; } //Convert inputed ints to strings, and combine them in "02-14" format string month_prefix = ""; if (monthToCalculate < 10) { month_prefix = "0"; } string day_prefix = ""; if (dayToCalculate < 10) { day_prefix = "0"; } string dateToCalculate_string = month_prefix+to_string(monthToCalculate)+"-"+day_prefix+to_string(dayToCalculate); cout<<"The requested date was " << dateToCalculate_string << endl; //Code to open the csv files fstream fin; //File pointer fin.open(_path, ios::in); //Open file at '_path' if (fin.fail()) { //Check that file can be opened. cout << "File could not be opened. Please check that the provided path is correct." << endl; return; } // CREATE PROFILE HISTOGRAM that we will fill with data from specified date //(name, title;xlabel;ylabel, bins, xmin, xmax) TH1D* hDayTemp = new TH1D("one_day_tempt", "Temperature for date;Temperature [\xb0 C]; Entries", 100, -20, 40); //Iterate through file, line by line, checking if the date matches with input vector<string> row; string line, cell, date_string; int temp; int i = 0; while (getline(fin, line)){ //read whole file, row by row, store line in variable 'line' each loop i++; row.clear(); stringstream lineStream(line); //Slice line by ; and store each part in vector 'row' while (lineStream.good() && getline(lineStream, cell, ';')) { row.push_back(cell); } date_string = row[0]; //save the date of the line //If the date matches with requested date if (hasEnding(date_string, dateToCalculate_string)) { temp = stoi(row[2]); //cout << "line " << i << ", at date " << date_string << " the temperature was " << temp << endl; hDayTemp->Fill(temp); } } //Histogram drawing TCanvas* c1 = new TCanvas("c1", "1 - histogram canvas", 900, 600); hDayTemp->SetFillColorAlpha(kRed, 0.35); hDayTemp->Draw(); //Legend //TODO: make legend nicer auto legend = new TLegend(); legend->AddEntry(hDayTemp,("Temperature on "+dateToCalculate_string).c_str(),"f"); legend->Draw(); //Answering questions Double_t mean_val = hDayTemp->GetMean(1); Double_t stdev = hDayTemp->GetRMS(1); cout << "The mean value for date " << dateToCalculate_string << " is: " << mean_val << "C" << endl; cout << "The standard deviation is: " << stdev << endl; //TODO: Fit gaussian to histogram to calulcate probabilities? } // #2 void tempTrender::tempOnDay(int dateToCalculate) const { //Make a histogram of the temperature on this date //Incorrect input handling if (dateToCalculate>365) { cout << "Invalid date requested. Please input a valid day number between 1 and 365." << endl; return; } cout<<"The requested day was day number " << dateToCalculate << endl; //Code to open the csv files fstream fin; //File pointer fin.open(_path, ios::in); //Open file at '_path' if (fin.fail()) { //Check that file can be opened. cout << "File could not be opened. Please check that the provided path is correct." << endl; return; } // CREATE PROFILE HISTOGRAM that we will fill with data from specified date //(name, title;xlabel;ylabel, bins, xmin, xmax) TH1D* hDayTemp2 = new TH1D("one_day_tempt_2", "Temperature for date;Temperature [\xb0 C]; Entries", 100, -20, 40); //Iterate through file, line by line, checking if the date matches with input vector<string> row, year_month_day; string line, cell, date_string, date_item; int month, day, temp; int i = 0; while (getline(fin, line)){ //read whole file, row by row, store line in variable 'line' each loop i++; if(i>13) { //Skip header lines of the csv file. Not the cleanest but will do for now. row.clear(); year_month_day.clear(); stringstream lineStream(line); //Slice line by ; and store each part in vector 'row' while (lineStream.good() && getline(lineStream, cell, ';')) { row.push_back(cell); } temp = stoi(row[2]); //save the temperature in the lane date_string = row[0]; //save the date of the line stringstream dateStream(date_string); //split 'date_string' into year, month, day using 'getline()', save results in 'year_mont_day' vector while (dateStream.good() && getline(dateStream, date_item, '-')) { year_month_day.push_back(date_item); } month = stoi(year_month_day[1]); day = stoi(year_month_day[2]); if (month==2 && day==29) { //Deal with leap years by skipping 02/29 continue; } //If the date matches with requested date if (date_to_number(month,day)==dateToCalculate) { temp = stoi(row[2]); //cout << "line " << i << ", at date " << date_string << " the temperature was " << temp << endl; hDayTemp2->Fill(temp); } } } //Histogram drawing TCanvas* c2 = new TCanvas("c2", "2 - histogram canvas", 900, 600); hDayTemp2->SetFillColorAlpha(kRed, 0.35); hDayTemp2->Draw(); //Legend //TODO: make legend nicer auto legend2 = new TLegend(); legend2->AddEntry(hDayTemp2,("Temperature on day "+to_string(dateToCalculate)).c_str(), "f"); legend2->Draw(); } // #3 void tempTrender::tempPerDay() const { //Make a histogram of the average temperature of each day of the year //Code to open the csv files fstream fin; //File pointer fin.open(_path, ios::in); //Open file at '_path' if (fin.fail()) { //Check that file can be opened. cout << "File could not be opened. Please check that the provided path is correct." << endl; return; } // CREATE TProfile HISTOGRAM, specifying option "s" to draw standard deviation //(name, title;xlabel;ylabel, bins, xmin, xmax, option) auto* hTempPerDay = new TProfile("temp_per_day", "Temperature per day;Day of year;Temperature [\xb0 C]", 365, 1, 365, "s"); //Iterate through file, line by line, checking if the date matches with input vector<string> row, year_month_day; string line, cell, date_string, date_item; int month, day, temp; while (getline(fin, line)){ //read whole file, row by row, store line in variable 'line' each loop row.clear(); year_month_day.clear(); stringstream lineStream(line); //Slice line by ; and store each part in vector 'row' while (lineStream.good() && getline(lineStream, cell, ';')) { row.push_back(cell); } date_string = row[0]; //save the date of the line if (any_of(date_string.begin(), date_string.end(), ::isdigit)) { //crude check to see if 'date_string' is indeed a date temp = stoi(row[2]); stringstream dateStream(date_string); //split 'date_string' into year, month, day using 'getline()', save results in 'year_mont_day' vector while (dateStream.good() && getline(dateStream, date_item, '-')) { year_month_day.push_back(date_item); } month = stoi(year_month_day[1]); day = stoi(year_month_day[2]); if (month==2 && day==29) { //Deal with leap years by skipping 02/29 continue; } hTempPerDay->Fill(date_to_number(month,day), temp); //Fill temp value in corresponding bin } } TCanvas* c3 = new TCanvas("c3", "3 - TProfile histogram canvas", 900, 600); hTempPerDay->Draw(); } // void tempTrender::hotCold() const {} //Make a histogram of the hottest and coldest day of the year // void tempTrender::tempPerYear(int yearToExtrapolate) const {} //Make a histogram of average temperature per year, then fit and extrapolate to the given year // #4 void tempTrender::tempMeanYearly(int yearStart, int yearEnd) const { //create a line-graph showin mean-yearly temperature over time. cout<<"The requested time period was " << yearStart << "-" << yearEnd << endl; //Create graph to store/display our data auto graph1 = new TGraph(); //Code to open the csv files fstream fin; //File pointer fin.open(_path, ios::in); //Open file at '_path' if (fin.fail()) { //Check that file can be opened. cout << "File could not be opened. Please check that the provided path is correct." << endl; return; }; //Iterate through file, line by line, checking if the date matches with input vector<string> row, rowdate; string line, cell, date_string, YearString, Last_Date; double tempentry; double tempdailysum = 0; double tempyearlysum = 0; int sumentries = 0; vector<double> tempdailyaverage, YearlyAverage; double tempyearlyaverage; int i = 0 ; int k= 0; int Year_Last = 0; int Year_Count = 0; int YearCurrent = 0; bool RepeatedDate = false; while (getline(fin, line)){ //read whole file, row by row, store line in variable 'line' each loop i++; row.clear(); stringstream lineStream(line); //Slice line by ; and store each part in vector 'row' while (lineStream.good() && getline(lineStream, cell, ';')) { row.push_back(cell); } if(i >= 20){ //Does this mean that the user can't select the first year of a dataset? // Yes. Too bad! date_string = row[0]; //save the date of the line if (Last_Date==date_string) { RepeatedDate = true; } else { RepeatedDate = false; } YearString = date_string.substr(0, 4); YearCurrent = stoi(YearString);// Save year to integer } else { continue; } //If the year is within the specified range if (YearCurrent>=yearStart && YearCurrent<= yearEnd) { tempentry = stoi(row[2]); //Save temp as int //Check wheter current date matches last if (RepeatedDate){ //If yes: add temp entry to the sum of the days entries, increase sum of the entries by one tempdailysum += tempentry ; sumentries++ ; } else { //New day we haven't seen before if (Last_Date.empty()) { //first loop tempdailysum += tempentry ; sumentries++ ; } else { //all other loops beyond the first tempdailyaverage.push_back((tempdailysum / sumentries)); //if not: add sum to vector containing all daily averages tempdailysum = 0; //Reset tempdailysum & sumentries sumentries = 0; //Start calculation for new date tempdailysum += tempentry; sumentries++; if(Year_Last == 0 || Year_Last!=YearCurrent){ //If year has changed, sum up all daily entries and average them out. Year_Count++; //keep count of years we've seen //cout << Year_Last << YearCurrent << "Happy New Year" << endl; tempyearlyaverage = VecAvg(tempdailyaverage); tempdailyaverage.clear(); YearlyAverage.push_back(tempyearlyaverage); graph1->SetPoint(k,YearCurrent, tempyearlyaverage); k++ ; } } } } else { //if year not in the desired range continue; } //update a copy of the date to check against in the next iteration Last_Date = date_string; Year_Last = YearCurrent; } cout << "The average temperatures of " << YearlyAverage.size() << " years were calculated" << endl; TCanvas* c5 = new TCanvas("c5", "5- Yearly average temperature", 900, 600); c5->DrawFrame(yearStart-2,5,yearEnd+2,11.5); gPad->SetGrid(1, 1); graph1->Draw(); }
<gh_stars>1-10 import { responses } from "../../config/strings"; import constants from "../../config/constants"; import { Lesson } from "../../models/Lesson"; const { text, audio, video, pdf } = constants; export const lessonValidator = (lessonData: Lesson) => { if (lessonData.type === text && !lessonData.content) { throw new Error(responses.content_cannot_be_null); } if ( (lessonData.type === audio || lessonData.type === video || lessonData.type === pdf) && !lessonData.mediaId ) { throw new Error(responses.media_id_cannot_be_null); } };
<reponame>proglang/dts-generate-results export = CheckstyleFormatter; declare function CheckstyleFormatter(results: any[]): string;
async def play_next(self, ctx, *, title: str): try: await ctx.message.delete() except discord.HTTPException: pass player = self.bot.wavelink.get_player(ctx.guild.id, cls=Player) if not player.is_connected: return await ctx.send('I am not currently connected to voice!') if not player.entries: return await ctx.send('No tracks in the queue!', delete_after=15) for track in player.entries: if title.lower() in track.title.lower(): player.queue._queue.remove(track) player.queue._queue.appendleft(track) player.update = True return await ctx.send(f'Playing `{track.title}` next.', delete_after=15)
//Delete Row Function. Used in Delete function below void DeleteRow(int matrix[][colSize], int &userRows, int &userCols) { if (userRows == 0) { cout << "No entries left to delete" << endl; }else{ int row; do { cout << "Enter index of row(0 - " << userRows - 1 << ") : "; cin >> row; } while (row < 0 || row > userRows - 1); for (int i = row; i < userRows; i++) { for (int j = 0; j < userCols; j++) { matrix[i][j] = matrix[i + 1][j]; } } userRows--; if (userRows == 0) { userCols = 0; } cout << "Row deleted" << endl; } }
Abstract 4279: Heterogeneous LC3A expression regulates lung cancer cell plasticity Tumor metastasis is considered as the main cause that contributes to high mortality during lung cancer progression. Autophagy is a self-cleaning process to maintain cell integrity of intracellular organelles and proteins. To date, the role of autophagy in lung tumor metastasis remains elusive. Here, we report that lung tumors display a heterogeneous expression pattern of the autophagy mediator LC3A, the high expression of which is associated with low metastasis risk. We found a group of lung cancer cells contain differential LC3A expression levels and exhibit plasticity characterized by distinct proliferative and invasive properties. Immunofluorescence staining and immunoblotting assays revealed that LC3A-mediated autophagy is more active in highly proliferative but minimally invasive lung cancer cells than their lowly proliferative but highly invasive counterpart. Clonogenic analysis and cell cycle assays showed that LC3A silencing attenuated cellular growth, causing G1/S cell cycle arrest in highly proliferative lung cancer cells. Highly proliferative lung cancer cells exhibited a higher oxygen consumption rate, accompanied with an elevated oxygen species (ROS) level, compared to their lowly proliferative counterpart. Pharmacological inhibition of autophagy with chloroquine promoted the ROS production in highly proliferative lung cancer cells but not in the highly invasive counterpart. SOX2 expression enhanced LC3A expression and promoted proliferation but inhibited invasiveness in lung cancer cells. Knockdown of LC3A expression in SOX2-high proliferative cells enriched SOX2-low cells, exhibiting decreased proliferation but increased invasiveness. Combined, our findings provide substantial evidence to suggest that LC3A cooperates with SOX2 signaling to regulate lung cancer cell plasticity. Citation Format: Chia-Cheng Miao, Wen Hwang, Yu-Ting Chou. Heterogeneous LC3A expression regulates lung cancer cell plasticity . In: Proceedings of the American Association for Cancer Research Annual Meeting 2019; 2019 Mar 29-Apr 3; Atlanta, GA. Philadelphia (PA): AACR; Cancer Res 2019;79(13 Suppl):Abstract nr 4279.
/* * The line inputs are 2-channel stereo inputs with the left * and right channels sharing a common PGA power control signal. */ static int max98088_line_pga(struct snd_soc_dapm_widget *w, int event, int line, u8 channel) { struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); struct max98088_priv *max98088 = snd_soc_codec_get_drvdata(codec); u8 *state; if (WARN_ON(!(channel == 1 || channel == 2))) return -EINVAL; switch (line) { case LINE_INA: state = &max98088->ina_state; break; case LINE_INB: state = &max98088->inb_state; break; default: return -EINVAL; } switch (event) { case SND_SOC_DAPM_POST_PMU: *state |= channel; snd_soc_update_bits(codec, w->reg, (1 << w->shift), (1 << w->shift)); break; case SND_SOC_DAPM_POST_PMD: *state &= ~channel; if (*state == 0) { snd_soc_update_bits(codec, w->reg, (1 << w->shift), 0); } break; default: return -EINVAL; } return 0; }
Get the biggest daily stories by email Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Could not subscribe, try again later Invalid Email Celtic music group, the Thai Tims, are to appear as special guest on the Hogmanay special of the Graham Norton show. The group confirmed it on their Twitter feed after rumors were floated across fan message boards. Fans suspected that the group would appear after they had been interacting with the shows director, Adam Horton. The group, who were founded in the Chanthaburi region of Thailand, shot to internet fame after posting videos on YouTube singing Celtic anthems. The Thai Tims continued to grow, raising enough money to make a visit to Celtic Park in 2012, where they also performed. Video Loading Video Unavailable Click to play Tap to play The video will start in 8 Cancel Play now Now, the fan group is set to gain nationwide exposure on the BBC show, where it is thought they will be performing an original song.
use super::{ init, init::Init, messages::{Message, Notification}, util::fork, }; use crate::{ common::{container::Container, non_nul_string::NonNulString}, debug, runtime::{ fork::util::{self, set_log_target}, ipc::{self, owned_fd::OwnedFd, socket_pair, AsyncMessage, Message as IpcMessage}, ExitStatus, Pid, }, }; use futures::{ stream::{FuturesUnordered, StreamExt}, Future, }; use itertools::Itertools; use nix::{ errno::Errno, sys::{signal::Signal, wait::waitpid}, unistd, }; use std::{ collections::HashMap, os::unix::{ io::FromRawFd, net::UnixStream as StdUnixStream, prelude::{IntoRawFd, RawFd}, }, }; use tokio::{net::UnixStream, select}; type Inits = HashMap<Container, InitProcess>; /// Handle the communication between the forker and the init process. struct InitProcess { pid: Pid, /// Used to send messages to the init process. stream: AsyncMessage<UnixStream>, } /// Entry point of the forker process pub async fn run(stream: StdUnixStream, notifications: StdUnixStream) -> ! { let mut notifications: AsyncMessage<UnixStream> = notifications .try_into() .expect("failed to create async message"); let mut stream: AsyncMessage<UnixStream> = stream.try_into().expect("failed to create async message"); let mut inits = Inits::new(); let mut exits = FuturesUnordered::new(); debug!("Entering main loop"); loop { select! { request = recv(&mut stream) => { match request { Some(Message::CreateRequest { init, console }) => { debug!("Creating init process for {}", init.container); let container = init.container.clone(); let (pid, init) = create(init, console).await; if inits.insert(container.clone(), init).is_some() { panic!("duplicate init request for {}", container); } stream.send(Message::CreateResult { init: pid }).await.expect("failed to send response"); } Some(Message::ExecRequest { container, path, args, env, io }) => { let io = io.expect("exec request without io"); let init = inits.remove(&container).unwrap_or_else(|| panic!("failed to find init process for {}", container)); // There's a init - let's exec! let (response, exit) = exec(init, container, path, args, env, io).await; // Add exit status future of this exec request exits.push(exit); // Send the result of the exec request to the runtime stream.send(response).await.expect("failed to send response"); } Some(_) => unreachable!("Unexpected message"), None => { debug!("Forker request channel closed. Exiting "); std::process::exit(0); } } } exit = exits.next(), if !exits.is_empty() => { let (container, exit_status) = exit.expect("invalid exit status"); debug!("Forwarding exit status notification of {}: {}", container, exit_status); notifications.send(Notification::Exit { container, exit_status }).await.expect("failed to send exit notification"); } } } } /// Create a new init process ("container") async fn create(init: Init, console: Option<OwnedFd>) -> (Pid, InitProcess) { let container = init.container.clone(); debug!("Creating container {}", container); let mut stream = socket_pair().expect("failed to create socket pair"); let trampoline_pid = fork(|| { set_log_target("northstar::forker-trampoline".into()); util::set_parent_death_signal(Signal::SIGKILL); // Create pid namespace debug!("Creating pid namespace"); nix::sched::unshare(nix::sched::CloneFlags::CLONE_NEWPID) .expect("failed to create pid namespace"); // Work around the borrow checker and fork let stream = stream.second().into_raw_fd(); // Fork the init process debug!("Forking init of {}", container); let init_pid = fork(|| { let stream = unsafe { StdUnixStream::from_raw_fd(stream) }; // Dive into init and never return let stream = IpcMessage::from(stream); init.run(stream, console); }) .expect("failed to fork init"); let stream = unsafe { StdUnixStream::from_raw_fd(stream) }; // Send the pid of init to the forker process let mut stream = ipc::Message::from(stream); stream.send(init_pid).expect("failed to send init pid"); debug!("Exiting trampoline"); Ok(()) }) .expect("failed to fork trampoline process"); let mut stream: AsyncMessage<UnixStream> = stream .first_async() .map(Into::into) .expect("failed to turn socket into async UnixStream"); debug!("Waiting for init pid of container {}", container); let pid = stream .recv() .await .expect("failed to receive init pid") .expect("failed to receive init pid"); // Reap the trampoline process debug!("Waiting for trampoline process {} to exit", trampoline_pid); let trampoline_pid = unistd::Pid::from_raw(trampoline_pid as i32); match waitpid(Some(trampoline_pid), None) { Ok(_) | Err(Errno::ECHILD) => (), // Ok - or reaped by the reaper thread Err(e) => panic!("failed to wait for the trampoline process: {}", e), } debug!("Created container {} with pid {}", container, pid); (pid, InitProcess { pid, stream }) } /// Send a exec request to a container async fn exec( mut init: InitProcess, container: Container, path: NonNulString, args: Vec<NonNulString>, env: Vec<NonNulString>, io: [OwnedFd; 3], ) -> (Message, impl Future<Output = (Container, ExitStatus)>) { debug_assert!(io.len() == 3); debug!( "Forwarding exec request for container {}: {}", container, args.iter().map(ToString::to_string).join(" ") ); // Send the exec request to the init process let message = init::Message::Exec { path, args, env }; init.stream .send(message) .await .expect("failed to send exec to init"); // Send io file descriptors init.stream.send_fds(&io).await.expect("failed to send fd"); drop(io); match init.stream.recv().await.expect("failed to receive") { Some(init::Message::Forked { .. }) => (), _ => panic!("Unexpected init message"), } // Construct a future that waits to the init to signal a exit of it's child // Afterwards reap the init process which should have exited already let exit = async move { match init.stream.recv().await { Ok(Some(init::Message::Exit { pid: _, exit_status, })) => { // Reap init process debug!("Reaping init process of {} ({})", container, init.pid); waitpid(unistd::Pid::from_raw(init.pid as i32), None) .expect("failed to reap init process"); (container, exit_status) } Ok(None) | Err(_) => { // Reap init process debug!("Reaping init process of {} ({})", container, init.pid); waitpid(unistd::Pid::from_raw(init.pid as i32), None) .expect("failed to reap init process"); (container, ExitStatus::Exit(-1)) } Ok(_) => panic!("Unexpected message from init"), } }; (Message::ExecResult, exit) } async fn recv(stream: &mut AsyncMessage<UnixStream>) -> Option<Message> { let request = match stream.recv().await { Ok(request) => request, Err(e) => { debug!("Forker request error: {}. Breaking", e); std::process::exit(0); } }; match request { Some(Message::CreateRequest { init, console: _ }) => { let console = if init.console { debug!("Console is enabled. Waiting for console stream"); let console = stream .recv_fds::<RawFd, 1>() .await .expect("failed to receive console fd"); let console = unsafe { OwnedFd::from_raw_fd(console[0]) }; Some(console) } else { None }; Some(Message::CreateRequest { init, console }) } Some(Message::ExecRequest { container, path, args, env, .. }) => { let io = stream .recv_fds::<OwnedFd, 3>() .await .expect("failed to receive io"); Some(Message::ExecRequest { container, path, args, env, io: Some(io), }) } m => m, } }
import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ChartCardComponent } from './card/card.component'; import { MiniAreaComponent } from './mini-area/mini-area.component'; import { MiniBarComponent } from './mini-bar/mini-bar.component'; import { MiniProgressComponent } from './mini-progress/mini-progress.component'; import { G2BarComponent } from './bar/bar.component'; import { G2PieComponent } from './pie/pie.component'; import { TimelineComponent } from './timeline/timeline.component'; import { GaugeComponent } from './gauge/gauge.component'; import { TagCloudComponent } from './tag-cloud/tag-cloud.component'; import { WaterWaveComponent } from './water-wave/water-wave.component'; import { G2RadarComponent } from './radar/radar.component'; import { ChartComponent } from './chart/chart.component'; const COMPONENTS = [ ChartCardComponent, MiniAreaComponent, MiniBarComponent, MiniProgressComponent, G2BarComponent, G2PieComponent, TimelineComponent, GaugeComponent, TagCloudComponent, WaterWaveComponent, G2RadarComponent, ChartComponent ]; // region: zorro modules import { NzSpinModule, NzToolTipModule, NzGridModule } from 'ng-zorro-antd'; import { NzCardModule, NzDividerModule } from 'ng-zorro-antd-extra'; const ZORROMODULES = [ NzSpinModule, NzToolTipModule, NzGridModule, NzCardModule, NzDividerModule ]; // endregion if (typeof G2 !== 'undefined') G2.track(false); @NgModule({ imports: [CommonModule, ...ZORROMODULES], declarations: [...COMPONENTS], exports: [...COMPONENTS] }) export class AdChartsModule { static forRoot(): ModuleWithProviders { return { ngModule: AdChartsModule, providers: [] }; } }
/* Copyright © 2021 zc2638 <<EMAIL>>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package i18n import ( "fmt" ) type MultiData struct { lang string prefix string } func NewMultiData(lang string) *MultiData { return &MultiData{lang: lang} } func (d *MultiData) Prefix(prefix string) *MultiData { return &MultiData{ lang: d.lang, prefix: prefix, } } func (d *MultiData) Key(key string) *Data { return NewData().Lang(d.lang).Prefix(d.prefix).Key(key) } func (d *MultiData) Value(value string) *Data { return NewData().Lang(d.lang).Prefix(d.prefix).Text(value) } type Data struct { httpCode int lang string prefix string key string text string args []interface{} } func NewData() *Data { return &Data{} } func (d *Data) clone() *Data { return &Data{ httpCode: d.httpCode, lang: d.lang, prefix: d.prefix, key: d.key, text: d.text, } } func (d *Data) Lang(lang string) *Data { d.lang = lang return d } func (d *Data) Prefix(prefix string) *Data { d.prefix = prefix return d } func (d *Data) Key(key string) *Data { d.key = key return d } func (d *Data) Text(value string) *Data { d.text = value return d } func (d *Data) WithArgs(args ...interface{}) *Data { data := d.clone() data.args = args return data } func (d *Data) WithHttpCode(code int) *Data { d.httpCode = code return d } func (d *Data) HttpCode() int { return d.httpCode } func (d *Data) String() string { return fmt.Sprintf(d.text, d.args...) } func (d *Data) Option() Option { return Option{ Language: d.lang, Prefix: d.prefix, Key: d.key, Value: d.text, Args: d.args, } } func Verify(locales *Locales, data *Data) string { format := locales.Get(data.Option()) if format == "" { format = data.text } return fmt.Sprintf(format, data.args...) }
package storm.trident.spout; public interface ISpoutPartition { /** * This is used as a Zookeeper node path for storing metadata. */ String getId(); }
/** * Create CLDS Event. */ @Component public class CldsEventDelegate { protected static final EELFLogger logger = EELFManager.getInstance().getLogger(CldsEventDelegate.class); protected static final EELFLogger metricsLogger = EELFManager.getInstance().getMetricsLogger(); @Autowired private CldsDao cldsDao; /** * Insert event using process variables. * * @param camelExchange * The Camel Exchange object containing the properties */ @Handler public void execute(Exchange camelExchange) { String controlName = (String) camelExchange.getProperty("controlName"); String actionCd = (String) camelExchange.getProperty("actionCd"); String actionStateCd = ((String) camelExchange.getProperty("actionStateCd")) != null ? ((String) camelExchange.getProperty("actionStateCd")) : CldsEvent.ACTION_STATE_COMPLETED; // Flag indicate whether it is triggered by Validation Test button from // UI boolean isTest = (boolean) camelExchange.getProperty("isTest"); boolean isInsertTestEvent = (boolean) camelExchange.getProperty("isInsertTestEvent"); String userid = (String) camelExchange.getProperty("userid"); // do not insert events for test actions unless flag set to insert them if (!isTest || isInsertTestEvent) { // won't really have userid here... CldsEvent.insEvent(cldsDao, controlName, userid, actionCd, actionStateCd, camelExchange.getExchangeId()); } } }
/** * @author Gun Lee ([email protected]) on 2017. 2. 21. */ public class CallRunnableASM implements IASM, Opcodes { private Configure conf = Configure.getInstance(); private static final String CALLABLE = "java/util/concurrent/Callable"; private static final String RUNNABLE = "java/lang/Runnable"; private static List<String> scanScopePrefix = new ArrayList<String>(); public CallRunnableASM() { if(conf.hook_spring_async_enabled) { scanScopePrefix.add("org/springframework/aop/interceptor/AsyncExecutionInterceptor"); } if(conf.hook_async_callrunnable_enabled) { String[] prefixes = StringUtil.split(conf.hook_async_callrunnable_scan_package_prefixes, ','); for(int i=0; i<prefixes.length; i++) { Logger.println("Callable Runnable scan scope : " + prefixes[i]); scanScopePrefix.add(prefixes[i].replace('.', '/')); } } } public ClassVisitor transform(ClassVisitor cv, String className, ClassDesc classDesc) { String[] interfaces = classDesc.interfaces; for (int inx = 0; inx < interfaces.length; inx++) { if (CALLABLE.equals(interfaces[inx]) || RUNNABLE.equals(interfaces[inx])) { for (int jnx = 0; jnx < scanScopePrefix.size(); jnx++) { if(className.indexOf(scanScopePrefix.get(jnx)) == 0) { return new CallRunnableCV(cv, className); } } } } return cv; } }
The year 795 AD saw a new force arrive on the Irish political scene, the Vikings. These seaborne warriors were to have a significant impact on Irish life. Their attacks on religious centres and propensity for warfare are well documented, as is their contribution to the development of urban centres and new trade routes. However, something which is sometimes over-looked is their input, albeit small, to the Irish language. Unsurprisingly, considering the Viking’s seafaring roots, the majority of these words are associated with nautical activities. They include the Irish words for a boat (bád), as well as various parts of the sailing vessel, such as the anchor (ancaire), rudder (stiúir) and sail (scod). Fishing terms of Norse origin are also found, including the Irish words for fish such as cod ( trosc) and ling (langa) as well as for a fishing-line (dorú/dorgha). Facilitated by their naval expertise, the Vikings also excelled in trade. This is reflected in the Irish word for a market (margadh), which is borrowed from Old Norse (markadr). Similarly the Irish word for a penny (pinginn) is derived from the Norse word penninger. This latter example is not surprising, as the first person to mint coins in Ireland was the Hiberno-Norse king of Dublin, Sitric Silkbeard. A number of additional words are listed below. Some Irish words of Old Norse Origin (after Greene, 1973) Irish English Old Norse ancaire anchor akkeri bád boat bátr scod sheet/sail skaut stiúir rudder stýri tochta thwart popta dorú (dorgha) fishing-line dorga langa ling (fish) langa trosc cod (fish) porskr margadh market markadhr pinginn penny penninger cnaipe button knappr bróg shoe brók pónair beans baunir garrdha Enclosed plot/yard gardhr References Greene, D. 1973 ‘The influence of Scandinavian on Irish’ in Bo Almqvist & David Greene (eds.) Proceedings of the Seventh Viking Congress, Dundalgan Press, Dundalk, pp. 75-82 The image used is by Becherel and licensed under Creative Commons
X=input() cntS=0 SUM=0 for i in range(len(X)): if X[i]=="T": if cntS>0: cntS-=1 else: SUM+=1 if X[i]=="S": cntS+=1 print(SUM*2)
declare type MappingAction = 'remove' | 'cast' | 'move' | 'constant'; declare interface MappingRow { _srcField: string; _dstField: string; _action: MappingAction; } declare interface Mapping { _mappings: MappingRow[]; _keepUnmappedFields: boolean | number; }
KEVIN Rudd's sister, Loree, is waging a one-woman campaign against gay marriage, lobbying federal MPs and threatening to quit Labor if it backs the push at the party's national conference in December. The divorced nurse from the Sunshine Coast town of Nambour, who once trained as a nun, has accused Labor members supporting the proposed changes of being brainwashed by a "global gay Gestapo", which is lobbying political parties and governments worldwide. Four state ALP conferences have endorsed the changes to legalise same-sex marriage under federal law. NSW Labor last week refused to back the proposal and instead referred the issue to the national conference. Read Next In recent weeks, Ms Rudd has written to every MP in federal parliament, as well as newspapers and fellow Labor members in Queensland, voicing her opposition to the push. A devout Christian, Ms Rudd told The Australian that her brother, the Foreign Affairs Minister, was aware of her views but that she had embarked on her campaign without his knowledge. As prime minister, Mr Rudd opposed legalising same-sex marriage with his successor, Julia Gillard, also adopting the same stance. Ms Rudd said she would quit Labor if it endorsed the changes at the national conference: "I will quit the party and I think there are many other people in Labor who feel the same way. "I have been delighted with Kevin and then with Julia in her support of the traditional view of marriage." Ms Rudd said she did not want to demonise gay people, but was bound by her faith that marriage is only between a man and woman. She said there was a worldwide gay movement that "fed propaganda" to lobby for the changes. "I call them the global gay Gestapo: it is the lobbying movement that is brainwashing people, particularly the young in the community that this (homosexuality) is an optional extra in life," she said.
import mongoose from "mongoose"; import { connectToDB } from "~database"; import { missingSeasonId, unableToLocateSeason } from "~messages/errors"; import Season, { ISeasonDocument } from "~models/season"; import { staffSignIn } from "~test/utils/signIn"; import app from "~test/utils/testServer"; const newSeason = { seasonId: "20102011", startDate: new Date(2010, 8, 26), endDate: new Date(20011, 5, 12) }; describe("Edit Season Controller", () => { let cookie: string; let season: ISeasonDocument; beforeAll(async () => { await connectToDB(); season = await Season.create(newSeason); cookie = await staffSignIn(); }); afterAll(async () => { await mongoose.connection.close(); }); it("rejects requests where the season id is invalid", done => { app() .get("/api/seasons/edit/undefined") .set("Cookie", cookie) .expect("Content-Type", /json/) .expect(400) .then(res => { expect(res.body.err).toEqual(missingSeasonId); done(); }); }); it("rejects requests where the season id is non-existent", done => { app() .get("/api/seasons/edit/601dc43483adb35b1ca678ea") .set("Cookie", cookie) .expect("Content-Type", /json/) .expect(400) .then(res => { expect(res.body.err).toEqual(unableToLocateSeason); done(); }); }); it("accepts requests to edit a season", done => { app() .get(`/api/seasons/edit/${season._id}`) .set("Cookie", cookie) .expect("Content-Type", /json/) .expect(200) .then(res => { expect(res.body).toEqual({ _id: expect.any(String), endDate: expect.any(String), startDate: expect.any(String), seasonId: expect.any(String) }); done(); }); }); });
Isolation of an in vitro and ex vivo antiradical melanoidin from roasted barley. The antiradical properties of water-soluble components of both natural and roasted barley were determined in vitro, by means of DPPH* assay and the linoleic acid-beta-carotene system, and ex vivo, in rat liver hepatocyte microsomes against lipid peroxidation induced by CCl4. The results show the occurrence in natural barley of weak antioxidant components. These are able to react against low reactive peroxyl radicals, but offer little protection against stable DPPH radicals deriving from peroxidation in microsomal lipids. Conversely, roasted barley yielded strong antioxidant components that are able to efficiently scavenge free radicals in any system used. The results show that the barley grain roasting process induces the formation of soluble Maillard reaction products with powerful antiradical activity. From roasted barley solution (barley coffee) was isolated a brown high molecular mass melanoidinic component, resistant to acidic hydrolysis, that is responsible for most of the barley coffee antioxidant activity in the biosystem.
import LocalTag from './tag.vue'; import LocalCheckTag from './check-tag.vue'; import { withInstall, WithInstallType } from '../shared'; import { TdCheckTagProps, TdTagProps } from './type'; import './style'; export * from './type'; export type CheckTagProps = TdCheckTagProps; export type TagProps = TdTagProps; export const Tag: WithInstallType<typeof LocalTag> = withInstall(LocalTag); export const CheckTag: WithInstallType<typeof LocalCheckTag> = withInstall(LocalCheckTag);
// Generate StoreField code, value is passed in a0 register. // After executing generated code, the receiver_reg and name_reg // may be clobbered. void StubCompiler::GenerateStoreField(MacroAssembler* masm, Handle<JSObject> object, int index, Handle<Map> transition, Handle<String> name, Register receiver_reg, Register name_reg, Register scratch1, Register scratch2, Label* miss_label) { Label exit; LookupResult lookup(masm->isolate()); object->Lookup(*name, &lookup); if (lookup.IsFound() && (lookup.IsReadOnly() || !lookup.IsCacheable())) { __ jmp(miss_label); return; } CompareMapMode mode = transition.is_null() ? ALLOW_ELEMENT_TRANSITION_MAPS : REQUIRE_EXACT_MAP; __ CheckMap(receiver_reg, scratch1, Handle<Map>(object->map()), miss_label, DO_SMI_CHECK, mode); if (object->IsJSGlobalProxy()) { __ CheckAccessGlobalProxy(receiver_reg, scratch1, miss_label); } if (!transition.is_null() && object->GetPrototype()->IsJSObject()) { JSObject* holder; if (lookup.IsFound()) { holder = lookup.holder(); } else { holder = *object; do { holder = JSObject::cast(holder->GetPrototype()); } while (holder->GetPrototype()->IsJSObject()); } __ push(name_reg); Label miss_pop, done_check; CheckPrototypes(object, receiver_reg, Handle<JSObject>(holder), name_reg, scratch1, scratch2, name, &miss_pop); __ jmp(&done_check); __ bind(&miss_pop); __ pop(name_reg); __ jmp(miss_label); __ bind(&done_check); __ pop(name_reg); } ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); if (!transition.is_null() && (object->map()->unused_property_fields() == 0)) { __ push(receiver_reg); __ li(a2, Operand(transition)); __ Push(a2, a0); __ TailCallExternalReference( ExternalReference(IC_Utility(IC::kSharedStoreIC_ExtendStorage), masm->isolate()), 3, 1); return; } if (!transition.is_null()) { __ li(scratch1, Operand(transition)); __ sw(scratch1, FieldMemOperand(receiver_reg, HeapObject::kMapOffset)); __ RecordWriteField(receiver_reg, HeapObject::kMapOffset, scratch1, name_reg, kRAHasNotBeenSaved, kDontSaveFPRegs, OMIT_REMEMBERED_SET, OMIT_SMI_CHECK); } index -= object->map()->inobject_properties(); if (index < 0) { int offset = object->map()->instance_size() + (index * kPointerSize); __ sw(a0, FieldMemOperand(receiver_reg, offset)); __ JumpIfSmi(a0, &exit, scratch1); __ mov(name_reg, a0); __ RecordWriteField(receiver_reg, offset, name_reg, scratch1, kRAHasNotBeenSaved, kDontSaveFPRegs); } else { int offset = index * kPointerSize + FixedArray::kHeaderSize; __ lw(scratch1, FieldMemOperand(receiver_reg, JSObject::kPropertiesOffset)); __ sw(a0, FieldMemOperand(scratch1, offset)); __ JumpIfSmi(a0, &exit); __ mov(name_reg, a0); __ RecordWriteField(scratch1, offset, name_reg, receiver_reg, kRAHasNotBeenSaved, kDontSaveFPRegs); } __ bind(&exit); __ mov(v0, a0); __ Ret(); }
// GetLocalProvisionerImage return the image to be used for provisioner daemonset func GetLocalProvisionerImage() string { if provisionerImageFromEnv := os.Getenv(ProvisionerImageEnv); provisionerImageFromEnv != "" { return provisionerImageFromEnv } return defaultProvisionImage }
<filename>src/bitmap.rs use std::fmt; #[derive(Debug, Copy, Clone)] pub struct BitMap( pub [[u8; 8]; 8] ); impl fmt::Display for BitMap { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { writeln!(f, "___")?; for line in self.0.iter() { for bit in line.iter() { write!(f, "{}, ", bit)?; } writeln!(f, "")?; } writeln!(f, "---") } } impl BitMap { /*pub fn new() -> BitMap { BitMap([[0; 8]; 8]) }*/ pub fn compress_map(self) -> (u64, u64, u64) { let mut a:u64=0; let mut b:u64=0; let mut c:u64=0; let mut i=0; for line in self.0.iter() { for color in line.iter() { a |= ((*color as u64&4)>>2)<<i; b |= ((*color as u64&2)>>1)<<i; c |= (*color as u64&1)<<i; i+=1; } } (a, b, c) } pub fn from_compress(compressed: (u64, u64, u64)) -> BitMap { let (a, b, c) = compressed; let mut map: [[u8; 8]; 8] = [[0; 8]; 8]; let mut i=0; for line in 0..8 { for bit in 0..8 { let temp:u8 = ((((a&(1<<i))>>i)<<2) | (((b&(1<<i))>>i)<<1) | (c&(1<<i))>>i) as u8; map[line][bit] = temp; i+=1; } } BitMap(map) } pub fn invert_side(&mut self) { for i in 0..8 { for j in 0..4 { let temp = self.0[i][j]; self.0[i][j] = self.0[i][(7-j) as usize]; self.0[i][(7-j) as usize] = temp; } } } /*pub fn right_rotate(&mut self) { let mut temp = BitMap::new(); for i in 0..8 { for j in 0..8 { temp.0[i][j] = self.0[7-j][i]; } } for i in 0..8 { for j in 0..8 { self.0[i][j] = temp.0[i][j]; } } }*/ }
Dependence of Hysteresis Loops on Thickness of Thin Nickel Films Prepared by RF Sputtering Nickel films of varying thicknesses between 70 and 300 nm were deposited on glass substrates by RF sputtering and their broad (111) FCC peaks were identified by X-ray diffraction. The surface roughness and sub-micron grains were revealed by scanning electron microscopy. According to vibrating sample magnetometry, the films showed hysteresis loops with comparable coercive field and saturation field for the in-plane and perpendicular magnetizations. The increase in thickness substantially increased the magnetization and the squareness of the Ni films. The thickness can be classified into 2 regimes by the variation of squareness. The films are thinner than 200 nm showed the in-plane anisotropy whereas the perpendicular anisotropy was developed in the case of the thickness above 200 nm.
Spinal haematoma following epidural analgesia A patient who developed an epidural haematoma with multifactorial aetiology (bleeding diathesis, ankylosing spondylitis, chronic alcoholism and acute pancreatitis) after epidural analgesia for pain relief is described. Our conclusion is that adequate laboratory screening of blood coagulation, including platelet count, should be carried out in this category of patient before attempted epidural blockade, the risks of which must be weighed against the benefits. The block should be allowed to wear off intermittently and repeated neurological assessment performed if an epidural catheter is used for repeated injections or for a continuous infusion of local anaesthetic. Neuroradiological examination should be carried out promptly if an epidural haematoma is suspected and surgical decompression performed without delay if the diagnosis is confirmed.
def store_information_as_screenshot(self, fname: str = None): if not fname: now = datetime.datetime.now() fname = str(now).replace(":", ".") + ".png" if not fname.endswith(".png"): fname += ".png" path = self.screen_dir / fname fullpath = str(path.resolve()) self.driver.get_screenshot_as_file(fullpath) return path
/** * Spawn a thread to do periodic renewals of kerberos credentials. NEVER * directly call this method. This method should only be used for ticket cache * based kerberos credentials. * * @param force - used by tests to forcibly spawn thread */ @InterfaceAudience.Private @InterfaceStability.Unstable @VisibleForTesting void spawnAutoRenewalThreadForUserCreds(boolean force) { if (!force && (!shouldRelogin() || isFromKeytab())) { return; } KerberosTicket tgt = getTGT(); if (tgt == null) { return; } String cmd = conf.get("hadoop.kerberos.kinit.command", "kinit"); long nextRefresh = getRefreshTime(tgt); executeAutoRenewalTask(getUserName(), new TicketCacheRenewalRunnable(tgt, cmd, nextRefresh)); }
def _add_boolean_param_by_name(req_dict, param_name, param_value): if param_value is not None: param_value_as_lowercase_string = str(param_value).lower() if param_value_as_lowercase_string not in ("true", "false"): raise ValueError("%s must be true or false, found: %s" % (param_name, param_value)) req_dict[param_name] = param_value_as_lowercase_string
package unstable import ( "bytes" "image/png" "net/http" "strconv" "github.com/buckket/go-blurhash" "github.com/gorilla/mux" "github.com/turt2live/matrix-media-repo/api" "github.com/turt2live/matrix-media-repo/api/r0" "github.com/turt2live/matrix-media-repo/common/rcontext" "github.com/turt2live/matrix-media-repo/util" ) func RenderBlurhash(r *http.Request, rctx rcontext.RequestContext, user api.UserInfo) interface{} { params := mux.Vars(r) hash := params["blurhash"] width := rctx.Config.Features.MSC2448Blurhash.MaxRenderWidth / 2 height := rctx.Config.Features.MSC2448Blurhash.MaxRenderHeight / 2 wstr := r.URL.Query().Get("width") hstr := r.URL.Query().Get("height") if wstr != "" { i, err := strconv.Atoi(wstr) if err != nil { return api.BadRequest("width must be an integer") } width = i } if hstr != "" { i, err := strconv.Atoi(hstr) if err != nil { return api.BadRequest("height must be an integer") } height = i } if width > rctx.Config.Features.MSC2448Blurhash.MaxRenderWidth { width = rctx.Config.Features.MSC2448Blurhash.MaxRenderWidth } if height > rctx.Config.Features.MSC2448Blurhash.MaxRenderHeight { height = rctx.Config.Features.MSC2448Blurhash.MaxRenderHeight } img, err := blurhash.Decode(hash, width, height, rctx.Config.Features.MSC2448Blurhash.Punch) if err != nil { rctx.Log.Error(err) return api.InternalServerError("Unexpected error rendering blurhash") } buf := &bytes.Buffer{} err = png.Encode(buf, img) if err != nil { rctx.Log.Error(err) return api.InternalServerError("Unexpected error rendering blurhash") } return &r0.DownloadMediaResponse{ ContentType: "image/png", Filename: "blurhash.png", SizeBytes: int64(buf.Len()), Data: util.BufferToStream(buf), // convert to stream to avoid console spam } }
/** * JSON Web Key (JWK) set cache implementation. * * @author Vladimir Dzhuvinov * @author Sarvesh Sharma * @version 2021-01-08 */ @ThreadSafe public class DefaultJWKSetCache implements JWKSetCache { /** * The default lifespan for cached JWK sets (15 minutes). */ public static final long DEFAULT_LIFESPAN_MINUTES = 15; /** * The default refresh time for cached JWK sets (5 minutes). */ public static final long DEFAULT_REFRESH_TIME_MINUTES = 5; /** * The lifespan of the cached JWK set, in {@link #timeUnit}s, negative * means no expiration. */ private final long lifespan; /** * The refresh time of the cached JWK set, in {@link #timeUnit}s, * negative means no refresh time. */ private final long refreshTime; /** * The time unit, may be {@code null} if no expiration / refresh time. */ private final TimeUnit timeUnit; /** * The cached JWK set, {@code null} if none. */ private volatile JWKSetWithTimestamp jwkSetWithTimestamp; /** * Creates a new JWK set, the default lifespan of the cached JWK set is * set to 15 minutes, the refresh time to 5 minutes. */ public DefaultJWKSetCache() { this(DEFAULT_LIFESPAN_MINUTES, DEFAULT_REFRESH_TIME_MINUTES, TimeUnit.MINUTES); } /** * Creates a new JWK set cache. * * @param lifespan The lifespan of the cached JWK set before it * expires, negative means no expiration. * @param refreshTime The time after which the cached JWK set is marked * for refresh, negative if not specified. Should be * shorter or equal to the lifespan. * @param timeUnit The lifespan time unit, may be {@code null} if no * expiration or refresh time. */ public DefaultJWKSetCache(final long lifespan, final long refreshTime, final TimeUnit timeUnit) { this.lifespan = lifespan; this.refreshTime = refreshTime; if ((lifespan > -1 || refreshTime > -1) && timeUnit == null) { throw new IllegalArgumentException("A time unit must be specified for non-negative lifespans or refresh times"); } this.timeUnit = timeUnit; } @Override public void put(final JWKSet jwkSet) { final JWKSetWithTimestamp updatedJWKSetWithTs; if (jwkSet != null) { updatedJWKSetWithTs = new JWKSetWithTimestamp(jwkSet); } else { // clear cache updatedJWKSetWithTs = null; } jwkSetWithTimestamp = updatedJWKSetWithTs; } @Override public JWKSet get() { if (jwkSetWithTimestamp == null || isExpired()) { return null; } return jwkSetWithTimestamp.getJWKSet(); } @Override public boolean requiresRefresh() { return jwkSetWithTimestamp != null && refreshTime > -1 && new Date().getTime() > jwkSetWithTimestamp.getDate().getTime() + TimeUnit.MILLISECONDS.convert(refreshTime, timeUnit); } /** * Returns the cache put timestamp. * * @return The cache put timestamp, negative if not specified. */ public long getPutTimestamp() { return jwkSetWithTimestamp != null ? jwkSetWithTimestamp.getDate().getTime() : -1L; } /** * Returns {@code true} if the cached JWK set is expired. * * @return {@code true} if expired. */ public boolean isExpired() { return jwkSetWithTimestamp != null && lifespan > -1 && new Date().getTime() > jwkSetWithTimestamp.getDate().getTime() + TimeUnit.MILLISECONDS.convert(lifespan, timeUnit); } /** * Returns the configured lifespan of the cached JWK. * * @param timeUnit The time unit to use. * * @return The configured lifespan, negative means no expiration. */ public long getLifespan(final TimeUnit timeUnit) { if (lifespan < 0) { return lifespan; } return timeUnit.convert(lifespan, this.timeUnit); } /** * Returns the configured refresh time of the cached JWK. * * @param timeUnit The time unit to use. * * @return The configured refresh time, negative means no expiration. */ public long getRefreshTime(final TimeUnit timeUnit) { if (refreshTime < 0) { return refreshTime; } return timeUnit.convert(refreshTime, this.timeUnit); } }
import { HookContext } from '@feathersjs/feathers'; import { Forbidden } from '@feathersjs/errors'; export default { before: { all: [], find: [(context: HookContext) => { if(!context.params.query || context.params.query.apiInternalKey !== context.app.get('APIInternalKey')) { throw new Forbidden('Not allowed'); } }], get: [], create: [], update: [], patch: [], remove: [] }, after: { all: [], find: [], get: [], create: [], update: [], patch: [], remove: [] }, error: { all: [], find: [], get: [], create: [], update: [], patch: [], remove: [] } };
// handleIncoming handles an incoming serialised packet from the underlying connection. If the connection is // not yet logged in, the packet is immediately read and processed. func (conn *Conn) handleIncoming(data []byte) error { select { case conn.packets <- data: case <-conn.closeCtx.Done(): return nil } if !conn.loggedIn || conn.waitingForSpawn.Load().(bool) { pk, rawPk, tryNext, err := conn.readPacket() if tryNext { return nil } if err != nil { return err } found := false for _, id := range conn.expectedIDs.Load().([]uint32) { if id == pk.ID() || pk.ID() == packet.IDDisconnect { found = true break } } if !found { conn.pushedBackPackets = append(conn.pushedBackPackets, rawPk) return nil } return conn.handlePacket(pk) } return nil }
package hr.fer.zemris.java.gui.layouts; import static org.junit.jupiter.api.Assertions.*; import java.awt.Dimension; import javax.swing.JLabel; import javax.swing.JPanel; import org.junit.jupiter.api.Test; public class CalcLayoutTest { @Test public void testInvalidRows() { JPanel panel = new JPanel(new CalcLayout()); assertThrows(CalcLayoutException.class, () -> panel.add(new JLabel(), new RCPosition(-1, 3))); assertThrows(CalcLayoutException.class, () -> panel.add(new JLabel(), new RCPosition(0, 3))); assertThrows(CalcLayoutException.class, () -> panel.add(new JLabel(), "6,3")); } @Test public void testInvalidColumns() { JPanel panel = new JPanel(new CalcLayout()); assertThrows(CalcLayoutException.class, () -> panel.add(new JLabel(), new RCPosition(3, -1))); assertThrows(CalcLayoutException.class, () -> panel.add(new JLabel(), new RCPosition(3, 0))); assertThrows(CalcLayoutException.class, () -> panel.add(new JLabel(), "3,8")); } @Test public void testInvalidFirstRow() { JPanel panel = new JPanel(new CalcLayout()); assertThrows(CalcLayoutException.class, () -> panel.add(new JLabel(), new RCPosition(1, 3))); assertThrows(CalcLayoutException.class, () -> panel.add(new JLabel(), new RCPosition(1, 2))); assertThrows(CalcLayoutException.class, () -> panel.add(new JLabel(), "1,5")); } @Test public void testAddSamePosition() { JPanel p = new JPanel(new CalcLayout()); p.add(new JLabel(), "1,1"); assertThrows(CalcLayoutException.class, () -> p.add(new JLabel(), "1,1")); } @Test public void testPrefSize1() { JPanel p = new JPanel(new CalcLayout(2)); JLabel l1 = new JLabel(""); l1.setPreferredSize(new Dimension(10, 30)); JLabel l2 = new JLabel(""); l2.setPreferredSize(new Dimension(20, 15)); p.add(l1, new RCPosition(2, 2)); p.add(l2, new RCPosition(3, 3)); Dimension dim = p.getPreferredSize(); assertEquals(152, dim.width); assertEquals(158, dim.height); } @Test public void testPrefSize2() { JPanel p = new JPanel(new CalcLayout(2)); JLabel l1 = new JLabel(""); l1.setPreferredSize(new Dimension(108, 15)); JLabel l2 = new JLabel(""); l2.setPreferredSize(new Dimension(16, 30)); p.add(l1, new RCPosition(1, 1)); p.add(l2, new RCPosition(3, 3)); Dimension dim = p.getPreferredSize(); assertEquals(152, dim.width); assertEquals(158, dim.height); } }
<gh_stars>0 # Gum sound editor (https://github.com/stackp/Gum) # Copyright 2009 (C) <NAME> <<EMAIL>> # Licensed under the Revised BSD License. import alsaaudio import threading from gum.lib.event import Signal import numpy class AlsaBackend(object): def __init__(self, rate=44100): self._pcm = alsaaudio.PCM(type=alsaaudio.PCM_PLAYBACK, mode=alsaaudio.PCM_NORMAL) self._pcm.setchannels(2) self._pcm.setformat(alsaaudio.PCM_FORMAT_FLOAT_LE) self.set_samplerate(rate) # alsaaudio.PCM.setperiodsize() attempts to change the # periodsize and returns the actual period size. self.periodsize = self._pcm.setperiodsize(1024) def set_samplerate(self, rate): self._pcm.setrate(rate) def write(self, buf): if buf.ndim == 1: # converting mono to stereo buf = numpy.array([buf, buf]).transpose() if 0 < len(buf) < self.periodsize: # zero padding to flush the ALSA buffer padlen = self.periodsize - len(buf) padding = numpy.zeros((padlen, buf.ndim)) buf = numpy.concatenate((buf, padding)) bytes = buf.astype(numpy.float32).tostring() self._pcm.write(bytes) class Player(object): """Play sound using alsa. """ def __init__(self, sound): self._playing = False self._lock = threading.Lock() self.start_playing = Signal() self.stop_playing = Signal() self.position = 0 self._backend = AlsaBackend() self.set_sound(sound) def set_sound(self, sound): self._sound = sound self.start = 0 self.end = len(sound.frames) self.set_samplerate(self._sound.samplerate) def set_samplerate(self, rate): self._backend.set_samplerate(rate) def play(self): self.position = self.start self.start_playing() try: while self._playing: if self.position >= self.end: self._playing = False else: start = self.position end = min(self.position + self._backend.periodsize, self.end) buf = self._sound.frames[start:end] self.position = end self._backend.write(buf) finally: self.stop_playing() self._lock.release() def thread_play(self): # Only one thread at a time can play. If a thread is already # playing, stop it before creating a new thread. self._playing = False self._lock.acquire() self._playing = True t = threading.Thread(target=self.play, args=()) t.start() return t def stop(self): self._playing = False def is_playing(self): return self._playing # test def testPlayer(): from gum.lib.mock import Mock from math import sin SR = 44100 f0 = 440 time = 1 sine = numpy.array([sin(2 * 3.14 * f0/SR * x) for x in range(time * SR)]) sound = Mock({"numchan": 1}) sound.samplerate = 44100 sound.frames = sine player = Player(sound) player.thread_play().join() import pysndfile import gum f = pysndfile.PySndfile(gum.basedir + '/data/test/test1.wav') data = f.read_frames(f.frames()) sound.frames = data player.set_sound(sound) player.thread_play().join() player.thread_play().join() # Testing position player.start = 40000 player.thread_play().join() player.start = 0 # Test reentrancy print ("Two threads will attempt to play at a small interval, you should " "hear the first one being interrupted by the second one.") from time import sleep t1 = player.thread_play() sleep(0.5) t2 = player.thread_play() t1.join() t2.join() print ("Two threads will attempt to play simultaneously, you should " "hear only one.") from time import sleep t1 = player.thread_play() t2 = player.thread_play() t1.join() t2.join() # Testing stop print print "Testing stop(): the sound should stop after 0.3 seconds." player.thread_play() sleep(0.3) player.stop() # Testing stereo f = pysndfile.PySndfile(gum.basedir + '/data/test/test2.wav') data = f.read_frames(f.frames()) sound = Mock({"numchan": 2}) sound.samplerate = 44100 sound.frames = data player = Player(sound) player.thread_play().join() if __name__ == '__main__': testPlayer() print "done"
/*! * Source https://github.com/donmahallem/FlowServer */ import * as bodyParser from "body-parser"; import * as express from "express"; import { join, resolve } from "path"; import { IConfig } from "../../config"; import { createFlowApiRoute } from "./flow"; import { createGoogleApiRoute } from "./google"; export const createApiRoute = (config: IConfig): express.Router => { const route: express.Router = express.Router({ caseSensitive: true, }); route.use(bodyParser.json()); route.use("/flow", createFlowApiRoute(config)); route.use("/google", createGoogleApiRoute(config)); route.use((req: express.Request, res: express.Response, next: express.NextFunction) => { res.status(404) .json({ error: "Unknown route", }); }); return route; }; export const createErrorHandler = (): express.ErrorRequestHandler => (err: any, req: express.Request, res: express.Response, next: express.NextFunction) => { res.status(500).json({ error: "Server Error occured", }); }; export const createAngularRoute = (config: IConfig): express.Router => { const route: express.Router = express.Router(); route.use(express.static(config.general.static_files, { etag: true, fallthrough: true, })); route.use((req: express.Request, res: express.Response, next: express.NextFunction): void => { res.status(404) .sendFile(resolve(join(config.general.static_files, "index.html"))); }); return route; };
package Ciphers.HashFunctions.SHA3; import Ciphers.HashFunctions.SHA; public class SHA3 extends SHA { @Override public byte[] process(byte[] input) { return new byte[0]; } }
/** * This method makes sure any SQL NULLs will be cast to the correct type. * * @param castType The type to cast SQL parsed NULL's too. * @param fromList FromList to pass on to bindExpression if recast is performed * @param subqueryList SubqueryList to pass on to bindExpression if recast is performed * @param aggregates List of aggregates to pass on to bindExpression if recast is performed * * @exception StandardException Thrown on error. */ private void recastNullNodes( DataTypeDescriptor castType, FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates) throws StandardException { castType = castType.getNullabilityType(true); for (int i = 0; i < thenElseList.size(); i++) { ValueNode vn = thenElseList.elementAt(i); if (vn instanceof UntypedNullConstantNode) { CastNode cast = new CastNode(vn, castType, getContextManager()); cast.bindExpression(fromList, subqueryList, aggregates); thenElseList.setElementAt(cast, i); } } }
Employers in the scandal-plagued labour hire industry will face new rules banning anyone with criminal convictions, previous workplace breaches or links to collapsed businesses from operating in Victoria. A sweeping inquiry into the unregulated labour hire market has found a licensing system is crucial to stopping the abuse of vulnerable workers, particularly in low-paid sectors such as horticulture and contract cleaning. Casual boilermaker Harry Marshall was often hired out to unfamiliar factories and workshops Credit:Justin McManus The Andrews government on Thursday said it was alarmed at widespread exploitation at the hands of rogue labour hire operators, and committed to setting up a state-based licensing scheme. Victoria is now the second state in less than a month that has had an inquiry call for state-specific labour hire licensing. In the absence of a national response, a South Australian parliamentary committee has also recommended proceeding with its own licensing arrangements for labour hire operators.
use super::error::Error; use super::signature::Signature; use super::Message; use super::SECP256K1; use numext_fixed_hash::H512; use secp256k1::key; use secp256k1::Message as SecpMessage; use std::{fmt, ops}; #[derive(Debug, Eq, PartialEq, Hash, Clone)] pub struct Pubkey { inner: H512, } impl Pubkey { /// Checks that `signature` is a valid ECDSA signature for `message` using the public /// key `pubkey` pub fn verify(&self, message: &Message, signature: &Signature) -> Result<(), Error> { let context = &SECP256K1; // non-compressed key prefix 4 let prefix_key: [u8; 65] = { let mut temp = [4u8; 65]; temp[1..65].copy_from_slice(self.inner.as_bytes()); temp }; let pubkey = key::PublicKey::from_slice(&prefix_key)?; let recoverable_signature = signature.to_recoverable()?; let signature = recoverable_signature.to_standard(); let message = SecpMessage::from_slice(message.as_bytes())?; context.verify(&message, &signature, &pubkey)?; Ok(()) } pub fn serialize(&self) -> Vec<u8> { // non-compressed key prefix 4 let prefix_key: [u8; 65] = { let mut temp = [4u8; 65]; temp[1..65].copy_from_slice(self.inner.as_bytes()); temp }; let pubkey = key::PublicKey::from_slice(&prefix_key).unwrap(); Vec::from(&pubkey.serialize()[..]) } pub fn from_slice(data: &[u8]) -> Result<Self, Error> { Ok(key::PublicKey::from_slice(data)?.into()) } } impl From<[u8; 64]> for Pubkey { fn from(key: [u8; 64]) -> Self { Pubkey { inner: key.into() } } } impl From<H512> for Pubkey { fn from(key: H512) -> Self { Pubkey { inner: key } } } impl Into<H512> for Pubkey { fn into(self) -> H512 { self.inner } } impl ops::Deref for Pubkey { type Target = H512; fn deref(&self) -> &Self::Target { &self.inner } } impl From<key::PublicKey> for Pubkey { fn from(key: key::PublicKey) -> Self { let serialized = key.serialize_uncompressed(); let mut pubkey = [0u8; 64]; pubkey.copy_from_slice(&serialized[1..65]); Pubkey { inner: pubkey.into(), } } } impl fmt::Display for Pubkey { fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { write!(f, "{:x}", self.inner) } }
<reponame>guberti/tvm-arduino-demos<filename>binary_to_c.py import argparse PROGRAM = """static const char {}[{}] = {{ 0x{} }};""" def main(): parser = argparse.ArgumentParser(description='') parser.add_argument('input', type=str, help='input binary file') parser.add_argument('output', type=str, help='output c file') parser.add_argument('--name', type=str, default='data', help='variable name') args = parser.parse_args() with open(args.input, "rb") as in_file: input_bytes = in_file.read() # We don't need to explicitly specify the number of bytes, # but we'll do it anyway to make it easy to ensure the # data file has the right amount num_bytes = len(input_bytes) # Delimiter input to .hex() can only be one character, # so we use .replace() as a workaround input_hex = input_bytes.hex("-") input_hex = input_hex.replace("-", ",\n 0x") output_str = PROGRAM.format(args.name, num_bytes, input_hex) with open(args.output, "w") as out_file: out_file.write(output_str) if __name__ == '__main__': main()
/** * isShutdown * @return true if all thread pools are shutdown and false if one of more * thread pools aren't shutdown * @throws Exception */ public boolean isShutdown () throws Exception { if (this.runnablePool.isShutdown() == false) { return false; } if (this.cassandraPool.isShutdown() == false) { return false; } if (this.dispatcherPool.isShutdown() == false) { return false; } if (this.restClientPool.isShutdown() == false) { return false; } return true; }
// processHandshakeRequest handles the incoming handshake request message for a port forwarding session // and sends the required HandshakeResponse message. This must complete before sending data over the // forwarded connection. func (c *SsmDataChannel) processHandshakeRequest(msg *AgentMessage) error { req := new(HandshakeRequestPayload) if err := json.Unmarshal(msg.Payload, req); err != nil { return err } payload, err := json.Marshal(buildHandshakeResponse(req.RequestedClientActions)) if err != nil { return err } out := NewAgentMessage() out.MessageType = InputStreamData out.SequenceNumber = msg.SequenceNumber out.Flags = Data out.PayloadType = HandshakeResponse out.Payload = payload _, err = c.WriteMsg(out) return err }
The Stone is a forum for contemporary philosophers and other thinkers on issues both timely and timeless. Photo Few things are more annoying than watching a movie with someone who repeatedly tells you, “That couldn’t happen.” After all, we engage with artistic fictions by suspending disbelief. For the sake of enjoying a movie like “Back to the Future,” I may accept that time travel is possible even though I do not believe it. There seems no harm in that, and it does some good to the extent that it entertains and edifies me. Some of us act as if there were a God, even though we do not really believe God exists. Philosophy can take us in the other direction, by using reason and rigorous questioning to lead us to disbelieve what we would otherwise believe. Accepting the possibility of time travel is one thing, but relinquishing beliefs in God, free will, or objective morality would certainly be more troublesome. Let’s focus for a moment on morality. The philosopher Michael Ruse has argued that “morality is a collective illusion foisted upon us by our genes.” If that’s true, why have our genes played such a trick on us? One possible answer can be found in the work of another philosopher Richard Joyce, who has argued that this “illusion” — the belief in objective morality — evolved to provide a bulwark against weakness of the human will. So a claim like “stealing is morally wrong” is not true, because such beliefs have an evolutionary basis but no metaphysical basis. But let’s assume we want to avoid the consequences of weakness of will that would cause us to act imprudently. In that case, Joyce makes an ingenious proposal: moral fictionalism. Following a fictionalist account of morality, would mean that we would accept moral statements like “stealing is wrong” while not believing they are true. As a result, we would act as if it were true that “stealing is wrong,” but when pushed to give our answer to the theoretical, philosophical question of whether “stealing is wrong,” we would say no. The appeal of moral fictionalism is clear. It is supposed to help us overcome weakness of will and even take away the anxiety of choice, making decisions easier. Related Book The Stone Reader: Modern Philosophy in 133 Arguments An anthology of essays from The Times’s philosophy series. There is, though, a practical objection to moral fictionalism. Once we become aware that moral judgments have no objective basis in metaphysical reality, how can they function effectively? We are likely to recall that morality is a fiction whenever we are in a situation in which we would prefer not to follow what morality dictates. If I am a moral fictionalist who really wants to steal your pen, the only thing that will stop me is prudence, not a fictional moral belief. It is not clear that this practical objection can be overcome, but even if it could, moral fictionalism would still be disingenuous, encouraging us to turn a blind eye to what we really believe. It may not be the most pernicious kind of self-deception, but it is self-deception nonetheless, a fact that will bother anyone who places value on truth. Fictionalism has the understandable goal of facilitating what one wants to do — acting as a kind of commitment strategy — but it would be preferable if one could do what one wanted to do without this maneuver. If God foresaw that I would order pasta, was I really free to order steak? We would all like to be more truthful, but lying to ourselves about the morality of lying is unlikely to help. Life is too short to live in a fantasy world. We find engaging with movies and novels commendable only if the person does not spend more time in those fictional worlds than outside them. But in the case of moral fictionalism the person is spending nearly all of his time in a fictionalized world — only coming out of it briefly when he considers the philosophical question of the reality of morality. Joyce nonetheless contends that living in a morally fictionalized world is worthwhile because he thinks moral statements like “stealing is wrong” are mythologically true; they convey a deep truth about human nature despite being literally false. Joyce thus counsels us to voluntarily cultivate moral fictionalism, as Blaise Pascal counseled would-be believers to pray and go to church. Indeed, Joyce speculates that some people probably take a fictionalist approach to God; they accept the existence of God but they do not really believe God exists. They accept that God is love and that (the concept of) God has shaped human history and guides human lives, but when pinned down they admit that they do not really believe in the actual existence of such a God. Their considered judgment is that the existence of God is not literally true but is mythologically true. As an example, the philosopher Jean Kazez has written, “I am a religious fictionalist. I don’t just banish all religious sentences to the flames. I make believe some of them are true, and I think that’s all to the good.” At her family’s Seder, she wrote, “I pretended there was a deity to be praised for various things.” Kazez embraces this particular form of fictionalism for personal reasons: “I like pretending the Passover story is true because of the continuity it creates —it ties me to the other people at the table, past years that I’ve celebrated Passover (in many different ways, with different people). I like feeling tied to Jews over the centuries and across the world. I also like the themes of liberation and freedom that can be tied to the basic story.” Joyce advocates a similar voluntary fictionalism for morality. Fictionalism may not be voluntary for everyone, however. For example, it is possible that for some people religious fictionalism is involuntary. Whatever the reason, they cannot help but act as if there were a God, even though, when they stop to consider the matter, they do not really believe God exists. The same may be the case regarding morality for some people. We can call this phenomenon involuntary fictionalism. When a novel or movie is particularly engrossing, our reactions to it may be involuntary and resistant to our attempts to counter them. We form what the philosopher Tamar Szabo Gendler calls aliefs — automatic belief-like attitudes that contrast with our well considered beliefs. For example, despite our beliefs that it is only a movie and that the characters are not real, because of our aliefs, we end up screaming when the monster jumps out at the heroine from behind a tree, or weeping with sadness or compassion when a sympathetic character experiences pain. Related More From The Stone Read previous contributions to this series. Like our involuntary screams in the theater, there may be cases of involuntary moral fictionalism or religious fictionalism as well. Among philosophical issues, though, free will seems to be the clearest case of involuntary fictionalism. It seems clear that I have free will when, for example, I choose from many options to order pasta at a restaurant. Yet few, if any, philosophical notions are harder to defend than free will. Even dualists, who believe in a nonmaterial soul, run into problems with divine foreknowledge. If God foresaw that I would order pasta, then was I really free to do otherwise, to order steak? In the traditional sense, having free will means that multiple options are truly available to me. I am not a computer, running a decision-making program. No matter what I choose, I could have chosen otherwise. However, in a materialist, as opposed to dualist, worldview, there is no place in the causal chain of material things for the will to act in an uncaused way. Thus only one outcome of my decision-making process is possible. Not even quantum indeterminacy could give me the freedom to order steak. The moment after I recognize this, however, I go back to feeling as if my decision to order pasta was free and that my future decision of what to have for dessert will also be free. I am a free will fictionalist. I accept that I have free will even though I do not believe it. Giving up on the possibility of free will in the traditional sense of the term, I could adopt compatibilism, the view that actions can be both determined and free. As long as my decision to order pasta is caused by some part of me — say my higher order desires or a deliberative reasoning process — then my action is free even if that aspect of myself was itself caused and determined by a chain of cause and effect. And my action is free even if I really could not have acted otherwise by ordering the steak. Unfortunately, not even this will rescue me from involuntary free will fictionalism. Adopting compatibilism, I would still feel as if I have free will in the traditional sense and that I could have chosen steak and that the future is wide open concerning what I will have for dessert. There seems to be a “user illusion” that produces the feeling of free will. William James famously remarked that his first act of free will would be to believe in free will. Well, I cannot believe in free will, but I can accept it. In fact, if free will fictionalism is involuntary, I have no choice but to accept free will. That makes accepting free will easy and undeniably sincere. Accepting the reality of God or morality, on the other hand, are tougher tasks, and potentially disingenuous. William Irwin is a professor of philosophy at King’s College, the author of “The Free Market Existentialist: Capitalism Without Consumerism” and the general editor of the Blackwell Philosophy and Pop Culture Series. Follow The New York Times Opinion section on Facebook and on Twitter, and sign up for the Opinion Today newsletter.
package main /* actions: - create new directory - create new CA with name - create certificates signed from CA - create CRL - import CA template - import cert template - revoke CA - revoke cert - list CA - list certs - export CA cert - export cert cert - export cert private key - set/change config: - set default validity time for cert - git steps to phase1: - create directory if not exist - create CA and save ca.key.pem, ca.crt.pem - load ca.key.pem, ca.crt.pem when creating cert - save cert to issued/<name>.crt.pem - save key to private/<name>.key.pem - have a mandatory flag to set validity time - give a name for the certs -- CA/issued global-flags: - -path string: opt commands: - init: - path string: mandatory - create-ca: - -name string: mandatory - -valid-for duration: default 1 year - export: - -priv bool: default false - -name string: mandotary - -format string: default pem - create: - -name - -valid-for duration: default 3 month */ import ( "fmt" "os" "github.com/tehmoon/errors" "github.com/spf13/cobra" "github.com/abiosoft/ishell" flag "github.com/spf13/pflag" "path/filepath" "github.com/spf13/viper" ) func ExecuteCommand(command Command, ctx *ishell.Context) (func(cmd *cobra.Command, args []string) (error)) { return func(cmd *cobra.Command, args []string) (error) { err := command.Init(cmd.Flags(), args) if err != nil { return errors.Wrapf(err, "Error initializing %q command", cmd.Name()) } config := command.Config() flags := command.Flags() path := config.GetString("path") if path == "" { path = flags.GetString("path") if path == "" { return errors.Wrap(ErrCommandBadFlags, "Path flag cannot be empty") } config.Set("path", path) } flags.Set("path", path) if key := config.Get("key"); key == nil { err = CheckInitDirectory(path) if err != nil { return errors.Wrapf(err, "Path %q doesn't seem to have been initialized. Use \"init\" first", path) } password := <PASSWORD>(flags.GetString("env-password")) if password == "" { if ctx == nil { return ErrEmptyPassword } for tries := 1; password == ""; tries++ { ctx.Print("Enter password: ") password = ctx.ReadPassword() if tries == 3 { return ErrEmptyPassword } } } config.Set("password", password) file := filepath.Join(flags.GetString("path"), ".pass") salt, dk, err := ReadPasswordFile(file) if err != nil { if cmd.Name() == "init" { return command.Do() } return errors.Wrap(err, "Error reading the password file") } err = VerifyPassword(password, salt, dk) if err != nil { return err } config.Set("key", dk) } return command.Do() } } func NewCompleter(set *flag.FlagSet) ([]string) { completer := []string{"--help",} set.VisitAll(func(f *flag.Flag) { completer = append(completer, fmt.Sprintf("--%s", f.Name)) }) return completer } func CompleterFunc(cmd *cobra.Command) (func([]string) ([]string)) { completer := NewCompleter(cmd.Flags()) return func(args []string) ([]string) { if l := len(args); l > 0 { last := args[l-1] found := false cmd.Flags().VisitAll(func(f *flag.Flag) { if found { return } name := fmt.Sprintf("--%s", f.Name) if name == last { switch f.Value.Type() { case "bool": return } found = true } }) if found { return []string{} } } return completer } } func PivotRootFunc(config *viper.Viper, cmd *cobra.Command, root *cobra.Command) (func(*ishell.Context)) { return func(ctx *ishell.Context) { pivotRoot := &cobra.Command{} pivotRoot.SetArgs(append([]string{cmd.Name(),}, ctx.Args...)) for _, f := range CommandsFunc { flags := viper.New() flags.BindPFlags(root.PersistentFlags()) pivotRoot.AddCommand(f(config, flags, ctx)) } err := pivotRoot.Execute() if err != nil { ctx.Printf("err: %s\n", err.Error()) } } } func StartInteractiveFunc(config *viper.Viper) (func(*cobra.Command, []string)) { return func(cmd *cobra.Command, args []string) { shell := ishell.New() shell.AutoHelp(false) for _, c := range cmd.Commands() { func(cmd *cobra.Command, root *cobra.Command) { icmd := &ishell.Cmd{ Name: cmd.Name(), Completer: CompleterFunc(cmd), Func: PivotRootFunc(config, cmd, root), } shell.AddCmd(icmd) }(c, cmd) } shell.Run() } } func main() { config := viper.New() root := &cobra.Command{ Use: fmt.Sprintf(os.Args[0]), Args: cobra.MaximumNArgs(1), Run: StartInteractiveFunc(config), } root.PersistentFlags().StringP("path", "p", "", "Path to the easy-ca directory database") root.PersistentFlags().StringP("env-password", "e", "", "Environment variable for password") LinkCobraViper(root, root.PersistentFlags(), config, CommandsFunc) err := root.Execute() if err != nil { panic(err) } } func LinkCobraViper(cmd *cobra.Command, set *flag.FlagSet, config *viper.Viper, cbs []func(*viper.Viper, *viper.Viper, *ishell.Context) (*cobra.Command)) { for _, cb := range cbs { flags := viper.New() flags.BindPFlags(set) cmd.AddCommand(cb(config, flags, nil)) } }
One of the most frustrating things about being a wardeccer is that a huge chunk of your targets will drop corp, spend most of their time under war logged off or docked up, or retreat into wormholes where it’s basically impossible to find them. The usual counter to this is to dec a bunch more people. This can get somewhat expensive, though. So I’ve devised something to help all my friends and peers with this issue: Dec Sharing! The way it works is this. You apply your corp to the alliance. I’ll dec anyone you supply the fee for. You hunt your targets as per usual and when those are being inactive, you get to go hunt everyone else’s targets, too. Anyone who remembers Privateers can tell you that this could go to hilarious and fantastic places pretty quickly. This is meant to be a no-obligation thing, so there are several conventions common to wardec alliances we’ll be throwing out the window: No rules regarding comms, fleets, or anything else.You can crash in our TS if you want. We’ll make you a channel for just you and your corp or you can hang out in a public room. If you don’t want, then don’t. You don’t have to hang out with anybody or be in fleet with anybody. Shared intel is appreciated but not required. No rules about the killboard.You can shit up the alliance killboard if you want. Or you can be super picky about your corp killboard. Whatever. If you want to lose shitfit boats nobody will bug you about it. They’re your toys and you can break them if you want. No rules about activity.If you want to hunt, brawl or camp, either alone or in groups, that’s fine. If you want to sit on the Jita undock in a Tornado I might personally make fun of you a bit, but it’s all good. If you want to take merc contracts, scam merc contracts, honour ransoms (lol), dishonour ransoms or anything else, cool. If you dissapear for an extended period I may kick you, but probably not, as I’m lazy, and you’d be welcome to come back at any time anyways. The only rules are as follows: Don’t be annoying. If nobody can tolerate you in chat or voice comms or you’re an insufferable dick that calls people fag or nigger then you’ll probably get kicked. We’re all grown ups. We don’t want to hang out with that. If you see someone else out in space hunting a target, check in with them to see if there’s any systems you should be avoiding so as not to shit up someone else’s hunting. I’m not going to dec fellow wardec corps or someone you’re mad at because you got suicide ganked or something. This isn’t your personal army. This is so dudes who like killing pubbies have pubbies to kill. Plus a lot of them are my friends and that would be super awkward. If you want to get into wardeccing or like this idea but don’t have a corp, we can get you into Paper Snowstorm or some other corp in the alliance. Just watch out for awoxing because I’ll be letting in basically everyone, so if you’re in a corp with dudes you don’t know and trust then don’t fly expensive shit.
def download_filtered_utterances_file(self, bucket, input_file_path, local_path): input_file_path_abs = bucket + '/' + input_file_path Logger.info( f"Downloading file from path from {input_file_path_abs}" ) download_path = f'{local_path}{os.path.basename(input_file_path_abs)}' self.fs_interface.download_file_to_location( input_file_path_abs, download_path ) return download_path
/** * @param ccfg Cache configuration. * @throws Exception If failed. */ private void checkExpiredEvents(CacheConfiguration<Object, Object> ccfg) throws Exception { IgniteCache<Object, Object> cache = ignite(0).createCache(ccfg); try { evtCntr = new AtomicInteger(); CacheEntryListenerConfiguration<Object, Object> lsnrCfg = new MutableCacheEntryListenerConfiguration<>( new ExpiredListenerFactory(), null, true, false ); cache.registerCacheEntryListener(lsnrCfg); IgniteCache<Object, Object> expiryCache = cache.withExpiryPolicy(new ModifiedExpiryPolicy(new Duration(MILLISECONDS, 500))); expiryCache.put(1, 1); for (int i = 0; i < 10; i++) cache.get(i); boolean wait = GridTestUtils.waitForCondition(new GridAbsPredicate() { @Override public boolean apply() { return evtCntr.get() > 0; } }, 5000); assertTrue(wait); U.sleep(100); assertEquals(1, evtCntr.get()); } finally { ignite(0).destroyCache(cache.getName()); } }
def view_type(self): return self.container['view_type']
<gh_stars>10-100 #pragma once #include "mpfr.h" using namespace std; mpfr_t mval; template <class T> class Elementary { public : static double RangePropagation(double, double); static double ReverseRangePropagation(double, double); static bool FlipLbAndUb(double); static T MpfrCalculateFunction(T); static double RangeReduction(T, double&); static bool ComputeSpecialCase(T, T&); static T FromMPFR(mpfr_t); }; // Crazy contraption to make sure we do not do double rounding and cause error. template <> posit16 Elementary<posit16>::FromMPFR(mpfr_t _mval) { posit16 rv; // Check for special values if (mpfr_nan_p(_mval) != 0) { rv.value = 0x8000; return rv; } if (mpfr_inf_p(_mval) != 0) { rv.value = 0x8000; return rv; } if (mpfr_cmp_d(_mval, 0.0) == 0) { rv.value = 0; return rv; } if (mpfr_cmp_d(_mval, 0) > 0) { if (mpfr_cmp_d(_mval, pow(2, 27)) > 0) { rv.value = 0x7fff; return rv; } if (mpfr_cmp_d(_mval, 1.5 * pow(2, 25)) >= 0) { rv.value = 0x7ffe; return rv; } if (mpfr_cmp_d(_mval, 1.5 * pow(2, 24)) > 0) { rv.value = 0x7ffd; return rv; } if (mpfr_cmp_d(_mval, pow(2, 24)) >= 0) { rv.value = 0x7ffc; return rv; } if (mpfr_cmp_d(_mval, pow(2, -27)) < 0) { rv.value = 0x0001; return rv; } if (mpfr_cmp_d(_mval, 1.5 * pow(2, -26)) <= 0) { rv.value = 0x0002; return rv; } if (mpfr_cmp_d(_mval, 1.5 * pow(2, -25)) < 0) { rv.value = 0x0003; return rv; } if (mpfr_cmp_d(_mval, pow(2, -24)) <= 0) { rv.value = 0x0004; return rv; } } else { if (mpfr_cmp_d(_mval, -pow(2, 27)) < 0) { rv.value = 0x8001; return rv; } if (mpfr_cmp_d(_mval, -1.5 * pow(2, 25)) <= 0) { rv.value = 0x8002; return rv; } if (mpfr_cmp_d(_mval, -1.5 * pow(2, 24)) < 0) { rv.value = 0x8003; return rv; } if (mpfr_cmp_d(_mval, -pow(2, 24)) <= 0) { rv.value = 0x8004; return rv; } if (mpfr_cmp_d(_mval, -pow(2, -27)) > 0) { rv.value = 0xffff; return rv; } if (mpfr_cmp_d(_mval, -1.5 * pow(2, -26)) >= 0) { rv.value = 0xfffe; return rv; } if (mpfr_cmp_d(_mval, -1.5 * pow(2, -25)) > 0) { rv.value = 0xfffd; return rv; } if (mpfr_cmp_d(_mval, -pow(2, -24)) >= 0) { rv.value = 0xfffc; return rv; } } long exp; double fr = mpfr_get_d_2exp(&exp, _mval, MPFR_RNDN); long origExp = exp; fr *= 2; exp--; if (exp < 0) { exp *= -1; exp--;; } exp >>= 1; long p = 13 - exp; mpfr_t r; mpfr_init2(r, p); mpfr_set(r, _mval, MPFR_RNDN); double retVal = mpfr_get_d(r, MPFR_RNDN); mpfr_clear(r); rv = retVal; return rv; } template <> bfloat16 Elementary<bfloat16>::FromMPFR(mpfr_t _mval) { double retVal = mpfr_get_d(_mval, MPFR_RNDN); if (retVal == 0) return 0.0; if (retVal != retVal) { return retVal; } if (mpfr_cmp_d(_mval, pow(2, -134)) <= 0 && mpfr_cmp_d(_mval, -pow(2, -134)) >= 0) { return 0.0; } long exp; double fr = mpfr_get_d_2exp(&exp, _mval, MPFR_RNDN); fr *= 2; exp--; if (mpfr_cmp_d(_mval, 0.0) > 0) { if (mpfr_cmp_d(_mval, 1.5 * pow(2, -133)) < 0) return pow(2, -133); if (mpfr_cmp_d(_mval, pow(2, -132)) < 0) return pow(2, -132); } else { if (mpfr_cmp_d(_mval, -1.5 * pow(2, -133)) > 0) return -pow(2, -133); if (mpfr_cmp_d(_mval, -pow(2, -132)) > 0) return -pow(2, -132); } if (exp >= -132 && exp <= -127) { int prec = 134 + exp; mpfr_t r; mpfr_init2(r, prec); mpfr_set(r, _mval, MPFR_RNDN); retVal = mpfr_get_d(r, MPFR_RNDN); mpfr_clear(r); return retVal; } else { mpfr_t r; mpfr_init2(r, 8); mpfr_set(r, _mval, MPFR_RNDN); retVal = mpfr_get_d(r, MPFR_RNDN); mpfr_clear(r); return retVal; } } template <> float Elementary<float>::FromMPFR(mpfr_t _mval) { double retVal = mpfr_get_d(_mval, MPFR_RNDN); if (retVal == 0) return 0.0; if (retVal != retVal) { return retVal; } if (mpfr_cmp_d(_mval, pow(2, -150)) <= 0 && mpfr_cmp_d(_mval, -pow(2, -150)) >= 0) { return 0; } long exp; double fr = mpfr_get_d_2exp(&exp, _mval, MPFR_RNDN); fr *= 2; exp--; if (mpfr_cmp_d(_mval, 0.0) > 0) { if (mpfr_cmp_d(_mval, 1.5 * pow(2, -149)) < 0) return pow(2, -149); if (mpfr_cmp_d(_mval, pow(2, -148)) < 0) return pow(2, -148); } else { if (mpfr_cmp_d(_mval, -1.5 * pow(2, -149)) > 0) return -pow(2, -149); if (mpfr_cmp_d(_mval, -pow(2, -148)) > 0) return -pow(2, -148); } if (exp >= -148 && exp <= -127) { int prec = 150 + exp; mpfr_t r; mpfr_init2(r, prec); mpfr_set(r, _mval, MPFR_RNDN); retVal = mpfr_get_d(r, MPFR_RNDN); mpfr_clear(r); return retVal; } else { mpfr_t r; mpfr_init2(r, 24); mpfr_set(r, _mval, MPFR_RNDN); retVal = mpfr_get_d(r, MPFR_RNDN); mpfr_clear(r); return retVal; } }
<filename>src/client/pages/StatusPages/404.tsx<gh_stars>0 import React from 'react'; import { StatusPage } from '../../templates/StatusPage'; export const NotFound: React.FC<{ msg: string }> = ({ msg }): React.ReactElement => ( <StatusPage error={{ code: 404, text: 'Not Found', }} msg={msg} /> );
<reponame>kkan2020/evacc<gh_stars>1-10 /** * The MIT License (MIT) * * Copyright (c) 2017 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #ifndef __UTILS_H__ #define __UTILS_H__ #include <stdint.h> #define ENCRYPT_C1 52845 #define ENCRYPT_C2 11719 #define ENCRYPT_KEY 0xC5A3 typedef __packed union { __packed struct { uint8_t Lo: 4; uint8_t Hi: 4; } Bcd; uint8_t Byte; } TBinDigit; typedef __packed struct { TBinDigit Year, Month, Day, Hour, Min, Sec; } TDateTime; typedef __packed struct { TBinDigit Hour, Min; } TTimeSch; __inline void DelayLoop(uint32_t Count); uint8_t ByteToHexStr(char *Dest, uint8_t Value); uint8_t HexStrToByte(char *Hex); uint16_t IntToStr(char *Dest, int32_t Value); //return length of resulting string int32_t StrToInt(char* Src); uint32_t FloatToStr(char *Buf, float Value, uint32_t DecimalPt); //void Decrypt(uint8_t *Buf, uint8_t Size); //void Encrypt(uint8_t *Buf, uint8_t Size); uint32_t BcdToInt(TBinDigit BinDigit); TBinDigit IntToBcd(uint32_t Value); uint32_t DateToStr(char *Buf, TDateTime *DateTimePtr); uint32_t DateToFullYearStr(char *Buf, TDateTime *DateTimePtr); uint32_t TimeToStr(char *Buf, TDateTime *DateTimePtr); uint32_t TimeSchToStr(char *Buf, TTimeSch *SchPtr); void StrToTimeSch(TTimeSch *SchPtr, char *Text); uint32_t DateTimeToStr(char *Buf, TDateTime *DateTimePtr); void StrToDate(TDateTime *DateTimePtr, char *Text); void StrToTime(TDateTime *DateTimePtr, char *Text); uint16_t Reverse16(uint16_t Value); uint32_t Reverse32(uint32_t Value); void ReadRTC(TDateTime *DateTimePtr); void WriteRTC(TDateTime *DateTimePtr); #endif
n=int(input()) odd=[] even=[] g=[[] for i in range(n)] l= [int(x) for x in input().split()] ans=[-1 for i in range(n)] def bfs(start,end): d=[-2 for i in range(n)] q=[] qi=0 for i in range(len(start)): d[start[i]]=0 q.append(start[i]) while(len(q)!=qi): f=q[qi] qi+=1 for daughter in g[f]: if d[daughter]==-2: d[daughter]=1+d[f] q.append(daughter) for i in range(n): if d[i]!=-2 and d[i]!=0: ans[i]=d[i] return ans for i in range(n): left = i-l[i] right = i+l[i] if(left>=0): g[left].append(i) if(right<n): g[right].append(i) if l[i]&1: odd.append(i) else: even.append(i) bfs(odd,even) bfs(even,odd) print(*ans)
<gh_stars>1-10 package org.sharebook.vo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.sharebook.model.User; import org.sharebook.utils.DateFormatUtils; @Data @NoArgsConstructor @AllArgsConstructor public class UserVO { private Long id; private String username; private String email; private String phone; private String introduction; private Integer sex; private String birth; private String location; private Integer status; private Integer role; private String avatar; private String createTime; public UserVO(User user) { this.id = user.getId(); this.username = user.getUsername(); this.email = user.getEmail(); this.phone = user.getPhone(); this.sex = user.getSex(); this.location = user.getLocation(); this.status = user.getStatus(); this.role = user.getRole(); this.avatar = user.getAvatar(); //防止时间为空 if (user.getBirth() != null) { this.birth = DateFormatUtils.simpleDateFormat(user.getBirth()); } if (user.getCreateTime() != null) { this.createTime = DateFormatUtils.complexDateFormat(user.getCreateTime()); } } }
/** * A set of constants that can be used by runner plug-ins. */ public final class RunnerConstants { private RunnerConstants() {} public static final int MAX_RETURNED_SMALL_LOG_LINES = 500; public static final int MAX_RETURNED_SMALL_LOG_CHARACTERS = 10000; public static final int MAX_RETURNED_BIG_LOG_LINES = 10000; public static final int MAX_RETURNED_BIG_LOG_END_LINES = 100; // A list of common shells. Plug-ins should obviously not limit themselves to this list! public static final String SHELL_POWERSHELL = "shell.powershell"; public static final String SHELL_WINCMD = "shell.wincmd"; public static final String SHELL_BASH = "shell.bash"; public static final String SHELL_KSH = "shell.ksh"; public static final String SHELL_ZSH = "shell.zsh"; public static final String SHELL_CSH = "shell.csh"; public static final String SHELL_SH = "shell.sh"; }
<filename>packages/jsxstyle/utils/src/__tests__/getStyleCache.spec.ts import { getStyleCache } from '../getStyleCache'; import { kitchenSink } from './kitchenSink'; describe('getStyleCache', () => { it('combines class names if `className` prop is present', () => { const styleCache = getStyleCache(); const props = styleCache.getComponentProps({ display: 'inline', color: 'red', className: 'bla', }); expect(props?.className).toMatchInlineSnapshot(`"bla _1lvn9cc _1jvcvsh"`); }); it('generates deterministic class names', () => { const styleCache = getStyleCache(); const props = styleCache.getComponentProps({ wow: 'cool' }); expect(props?.className).toMatchInlineSnapshot(`"_1b8zaqn"`); }); it('generates a stable classname hash for the specified style object', () => { const styleCache = getStyleCache(); const props = styleCache.getComponentProps({ color: 'red', display: 'block', hoverColor: 'green', }); expect(props?.className).toMatchInlineSnapshot( `"_1jvcvsh _cmecz0 _hwodt1"` ); }); it('returns an object of known component props when given an object containing only those props', () => { const styleCache = getStyleCache(); const insertedRules: string[] = []; styleCache.injectOptions({ onInsertRule(css) { insertedRules.push(css); }, }); const exampleProps = { id: 'hello', name: 'test123', }; const componentProps = styleCache.getComponentProps(exampleProps); expect(componentProps).toEqual(exampleProps); expect(insertedRules).toEqual([]); }); it('returns a props object with a className when styles and allowed props are present', () => { const styleCache = getStyleCache(); const insertedRules: string[] = []; styleCache.injectOptions({ onInsertRule(css) { insertedRules.push(css); }, }); const componentProps = styleCache.getComponentProps({ color: 'red', display: 'block', id: 'hello', name: 'test123', }); expect(componentProps).toMatchInlineSnapshot(` Object { "className": "_1jvcvsh _cmecz0", "id": "hello", "name": "test123", } `); expect(insertedRules).toMatchInlineSnapshot(` Array [ "._1jvcvsh { color:red }", "._cmecz0 { display:block }", ] `); }); it('works with addRule injection', () => { const styleCache = getStyleCache(); const insertedRules: string[] = []; styleCache.injectOptions({ onInsertRule(css) { insertedRules.push(css); }, }); styleCache.getComponentProps(kitchenSink); expect(insertedRules).toMatchInlineSnapshot(` Array [ "._17w4vug { margin:1px }", "._1m680gx._1m680gx { margin-left:3px }", "._tn8y8r._tn8y8r { margin-right:2px }", "._11qejiy._11qejiy:hover { margin-left:4px }", "._r23nsx._r23nsx:active { margin-top:5px }", "._18b6tc5._18b6tc5:active { margin-bottom:5px }", "._12u3iza._12u3iza::placeholder { padding-top:8px }", "._1njps7w._1njps7w::placeholder { padding-bottom:6px }", "._1kzxzhu::placeholder { padding:7px }", "._16aryto:hover::placeholder { color:9px }", "@keyframes _141dqt4 { from { color:red; padding-left:69px; padding-right:69px } to { margin-top:123px; margin-bottom:123px; margin:456px } }", "._141dqt4._141dqt4 { animation-name:_141dqt4 }", "@keyframes _1feg296 { test { margin:456px; margin-top:123px; margin-bottom:123px } }", "._1feg296._1feg296:hover { animation-name:_1feg296 }", ] `); }); it('works with classname strategy injection', () => { const styleCache = getStyleCache(); let idx = -1; styleCache.injectOptions({ getClassName: () => 'jsxstyle' + ++idx }); const classNames = [ styleCache.getComponentProps({ a: 1 })?.className, styleCache.getComponentProps({ b: 2 })?.className, styleCache.getComponentProps({ c: 3 })?.className, styleCache.getComponentProps({ a: 1 })?.className, ]; expect(classNames).toEqual([ 'jsxstyle0', 'jsxstyle1', 'jsxstyle2', 'jsxstyle0', ]); }); it('resets', () => { const styleCache = getStyleCache(); let idx = -1; styleCache.injectOptions({ getClassName: () => 'jsxstyle' + ++idx }); expect(styleCache.getComponentProps({ a: 1 })?.className).toEqual( 'jsxstyle0' ); expect(styleCache.getComponentProps({ a: 1 })?.className).toEqual( 'jsxstyle0' ); styleCache.reset(); expect(styleCache.getComponentProps({ a: 1 })?.className).toEqual( 'jsxstyle1' ); }); it('throws an errors when injections are added incorrectly', () => { const styleCache = getStyleCache(); expect(() => styleCache.injectOptions({})).not.toThrow(); // no repeated injections expect(() => styleCache.injectOptions({}) ).toThrowErrorMatchingInlineSnapshot( `"jsxstyle error: \`injectOptions\` should be called once and only once."` ); styleCache.getComponentProps({ a: 1 }); // no injections after getComponentProps is called expect(() => styleCache.injectOptions({}) ).toThrowErrorMatchingInlineSnapshot( `"jsxstyle error: \`injectOptions\` must be called before any jsxstyle components mount."` ); }); });
Determinants of fractional exhaled nitric oxide in healthy men and women from the European Community Respiratory Health Survey III The fractional exhaled nitric oxide (FENO) is a marker for type 2 inflammation used in diagnostics and management of asthma. In order to use FENO as a reliable biomarker, it is important to investigate factors that influence FENO in healthy individuals. Men have higher levels of FENO than women, but it is unclear whether determinants of FENO differ by sex.
/** * Returns the number of rows (children) under the parent index. * * @param parent: Index of the parent item * @return Returns the number of children under the given parent. */ int BDirModel::rowCount(const QModelIndex &parent) const { TreeNode *parentNode; if(parent.isValid() == false) parentNode = root; else parentNode = static_cast<TreeNode *>(parent.internalPointer()); if (!parentNode->opened) { QDir dir(""); QFileInfoList list = dir.entryInfoList(); if (parentNode->fi.isDir()) { QDir dir(parentNode->fi.absoluteFilePath()); dir.setFilter(QDir::AllEntries | QDir::Hidden | QDir::System | QDir::NoDotAndDotDot); dir.setSorting(QDir::Name | QDir::DirsFirst); QFileInfoList list = dir.entryInfoList(); for (int i=0; i<list.count(); i++) { TreeNode *newNode = new TreeNode(parentNode, list[i]); parentNode->children.append(newNode); } } parentNode->opened = true; } return parentNode->children.count(); }
<filename>values.py import os from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager # Login Account Email = "<EMAIL>" Password = "<PASSWORD>" # Website logger Website_url = "https://siswa.smktelkom-mlg.sch.id" Website_url_absen = "https://siswa.smktelkom-mlg.sch.id/presnow" Website_key = "<KEY>" Captcha_api = "e4c1e7117adc63591e28c387080e7f9e" # ===================================== # DON'T CHANGE THIS SETUP! def account(): return Email, Password def sitelogger(): return Website_url, Website_key, Captcha_api, Website_url_absen def browser(): chromes = webdriver.ChromeOptions() # chromes.binary_location = "/usr/bin/google-chrome-stable" chromes.add_argument("--no-sandbox") # Bypass OS security model chromes.add_argument("--headless") chromes.add_argument("--disable-extensions") # disabling extensions chromes.add_argument("--disable-gpu") # applicable to windows os only chromes.add_argument("--disable-dev-shm-usage") # overcome limited resource problems # Release # browser = webdriver.Chrome(executable_path=os.environ.get( # "CHROMEDRIVER_PATH"), chrome_options=chromes) ## Development # browser = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver', chrome_options=chromes) browser = webdriver.Chrome(ChromeDriverManager().install(), options=chromes) return browser
Image copyright AFP Image caption Polish Prime Minister Beata Szydlo says Mr Tusk has "violated multiple times his European mandate" Poland has threatened to derail Thursday's EU summit as it attempts to block the re-election of Donald Tusk as president of the European Council. Prime Minister Beata Szydlo said nothing should be decided without Poland's agreement. The ruling Law and Justice Party (PiS) implacably opposes Mr Tusk, a former prime minister from a rival party. Correspondents say such hostility among compatriots is highly unusual in EU politics. But Mr Tusk is still expected to get enough support to keep his post. German Chancellor Angela Merkel has backed a new 30-month term for Mr Tusk, saying it would be a "sign of stability". As European Council president, he would play a major role in the UK's Brexit negotiations. Thursday's meeting of EU leaders in Brussels is the last that UK Prime Minister Theresa May will attend before formally launching the two-year Brexit process later this month. Although Brexit itself is not on the agenda, leaders will meet again on Friday - minus Mrs May - to discuss EU unity. What is Poland doing? Poland's government is desperately trying to prevent Mr Tusk from being re-elected to a second term as president of the European Council. Instead it has proposed its own candidate, a little-known Polish MEP called Jacek Saryusz-Wolski. Arriving for the summit, Ms Szydlo said Poland's voice had to be heard. "Nothing should be decided without our consent," she said. "Today in this building it would be good to recall this main principle of community building." In an interview earlier with Polish television, Foreign Minister Witold Waszczykowski said his country could even veto the summit's conclusions to scupper Mr Tusk's re-election. But Prime Minister Joseph Muscat of Malta, which currently holds the rotating EU presidency, suggested Mr Tusk's re-election could not be blocked. "One country, or a number of countries might be against that decision, but one country cannot block a decision," he said. "There are very clear rules of engagement and rules of procedure which we will follow." Image copyright AFP Image caption Poland's government has backed a rival Polish politician, Jacek Saryusz-Wolski, to replace Mr Tusk Ms Szydlo has also written a letter to EU leaders saying Mr Tusk has "violated multiple times his European mandate" by getting involved in Polish political disputes and supporting the opposition to the government. The EU has angered Poland's nationalist government by criticising changes to the country's top court, new restrictions on journalists and its opposition to resettling refugees by quota. Why is the Polish government so hostile to Mr Tusk? Mr Tusk was prime minister from 2007-2014. He led the centre-right Civic Platform when the PiS was in opposition. PiS leader Jaroslaw Kaczynski holds Mr Tusk "politically" responsible for the 2010 plane crash in Russia which killed his twin Lech Kaczynski, the then Poland's president, and all other 95 people on board. The plane crashed in dense fog. Official investigations ruled pilot error was the principal cause. In 2012, Jaroslaw Kaczynski told Mr Tusk in parliament: "In the political sense you bear 100% responsibility for the catastrophe in Smolensk." Many Poles believe Mr Tusk's government did not do enough to explain the causes of the crash. Critics say Mr Tusk should not have allowed the Russians to conduct the first crash investigation. Under the Chicago Convention, which covers international air travel, the state on whose territory a crash occurs bears responsibility for conducting the investigation. Jaroslaw Kaczynski also accused Mr Tusk of favouring "solutions that are extremely harmful to Poland". What does the European Council president do? The European Council brings together the heads of state and government of the 28 EU member states. Jointly they set the EU's strategic direction in key areas, such as reform of the eurozone, the Greek debt crisis, the migrant challenge and relations with Russia. The Council president aims to achieve consensus - deploying all his diplomatic skills - on these tricky issues, where national tensions often dictate how leaders behave. Mr Tusk took charge in late 2014 and his term ends on 31 May. If his fellow leaders back him on Thursday, he will stay in office until 30 November 2019. That period coincides with the expected two-year Brexit talks on UK withdrawal from the EU. Malta, currently chairing EU business, is likely to seek approval of Mr Tusk by consensus. Poland's hostility may push it to a vote - but then Mr Tusk is still likely to win by a qualified majority.
<reponame>opendatasoft/elasticsearch-custom-composite-aggregation package com.opendatasoft.elasticsearch.search.aggregations.bucket.customcomposite; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.index.SortedNumericDocValues; import org.elasticsearch.index.fielddata.SortedBinaryDocValues; import org.elasticsearch.index.fielddata.SortedNumericDoubleValues; import org.elasticsearch.search.aggregations.support.ValuesSource; import java.io.IOException; class HistogramValuesSource extends ValuesSource.Numeric { private final Numeric vs; private final double interval; /** * * @param vs The original values source */ HistogramValuesSource(Numeric vs, double interval) { this.vs = vs; this.interval = interval; } @Override public boolean isFloatingPoint() { return true; } @Override public SortedNumericDoubleValues doubleValues(LeafReaderContext context) throws IOException { SortedNumericDoubleValues values = vs.doubleValues(context); return new SortedNumericDoubleValues() { @Override public double nextValue() throws IOException { return Math.floor(values.nextValue() / interval) * interval; } @Override public int docValueCount() { return values.docValueCount(); } @Override public boolean advanceExact(int target) throws IOException { return values.advanceExact(target); } }; } @Override public SortedBinaryDocValues bytesValues(LeafReaderContext context) throws IOException { throw new UnsupportedOperationException("not applicable"); } @Override public SortedNumericDocValues longValues(LeafReaderContext context) throws IOException { throw new UnsupportedOperationException("not applicable"); } }
<gh_stars>0 package com.sweetmanor.demo.io; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.Charset; /** * 从进程读取数据示例 * * @version 1.0 2016-06-16 * @author wenz */ public class ReadFromProcessDemo1 { public static void main(String[] args) throws IOException { Process p = Runtime.getRuntime().exec("javac");// 创建进程运行javac命令 BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream(), Charset.forName("GBK")));// 以p进程创建缓冲流 String buffer = null; while ((buffer = br.readLine()) != null) { System.out.println(buffer); } } }
<gh_stars>0 #include <bits/stdc++.h> #define MAX 5000 using namespace std; vector<int> G[MAX]; int n, m; bool V[MAX]; map<string, int> A; struct Step { int x, v; Step() {} Step(int x, int v) : x(x), v(v) {} }; queue<Step> Q; int author(const string& a) { if (A.find(a) != A.end()) return A[a]; else return A[a] = A.size()-1; } char C[MAX]; void parseAuthors(const string& s) { vector<int> TA; int commas = 0, chars=0; for(int i=0;i<s.size();i++) { char c = s[i]; if (chars == 0 && c == ' ') continue; if ((c==',' || c==':') && ++commas == 2) { TA.push_back(author(string(C, chars))); chars = commas = 0; } else { C[chars++] = c; } } for(int i=0;i<TA.size(); i++) { for(int j=i+1;j<TA.size(); j++) { G[TA[i]].push_back(TA[j]); G[TA[j]].push_back(TA[i]); } } } int main() { string s; int t=0, tt; cin >> tt; while(t++ < tt) { cin >> n >> m; memset(G, 0, sizeof(G)); A.clear(); getline(cin, s); while(n--) { getline(cin, s); parseAuthors(s); } cout << "Scenario " << t << endl; for(int i=0;i<m;i++) { bool stop; memset(V, 0, sizeof(V)); getline(cin, s); int b = author(s); Q = queue<Step>(); Q.push(Step(author("<NAME>."), 0)); bool found = false; while(!Q.empty()) { Step it = Q.front(); Q.pop(); if (it.x == b) { cout << s << " " << it.v << endl; found = true; break; } V[it.x] = true; for(int i=0; i<G[it.x].size(); i++) if (!V[G[it.x][i]]) Q.push(Step(G[it.x][i], it.v+1)); } if (!found) cout << s << " infinity" << endl; } } return 0; }
def principal_component_regression(self, n_components=2, cv_percentage=20): if np.squeeze(self.calibration_integrated).ndim > 1: self.pcr_calibration = principal_component_regression( self.calibration_integrated.values.T, self.concentrations) self.pcr_components = n_components self.pcr_calibration.pcr_fit( cv_percentage=cv_percentage, n_components=self.pcr_components) else: self.pcr_calibration = None self.pcr_components = None
/*========================================================================= Program: Visualization Toolkit Module: vtkAbstractMapper.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ // .NAME vtkAbstractMapper - abstract class specifies interface to map data // .SECTION Description // vtkAbstractMapper is an abstract class to specify interface between data and // graphics primitives or software rendering techniques. Subclasses of // vtkAbstractMapper can be used for rendering 2D data, geometry, or volumetric // data. // // .SECTION See Also // vtkAbstractMapper3D vtkMapper vtkPolyDataMapper vtkVolumeMapper #ifndef vtkAbstractMapper_h #define vtkAbstractMapper_h #include "vtkRenderingCoreModule.h" // For export macro #include "vtkAlgorithm.h" #define VTK_SCALAR_MODE_DEFAULT 0 #define VTK_SCALAR_MODE_USE_POINT_DATA 1 #define VTK_SCALAR_MODE_USE_CELL_DATA 2 #define VTK_SCALAR_MODE_USE_POINT_FIELD_DATA 3 #define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA 4 #define VTK_SCALAR_MODE_USE_FIELD_DATA 5 #define VTK_GET_ARRAY_BY_ID 0 #define VTK_GET_ARRAY_BY_NAME 1 class vtkAbstractArray; class vtkDataSet; class vtkPlane; class vtkPlaneCollection; class vtkPlanes; class vtkTimerLog; class vtkWindow; class VTKRENDERINGCORE_EXPORT vtkAbstractMapper : public vtkAlgorithm { public: vtkTypeMacro(vtkAbstractMapper, vtkAlgorithm); void PrintSelf(ostream& os, vtkIndent indent); // Description: // Override Modifiedtime as we have added Clipping planes virtual unsigned long GetMTime(); // Description: // Release any graphics resources that are being consumed by this mapper. // The parameter window could be used to determine which graphic // resources to release. virtual void ReleaseGraphicsResources(vtkWindow *) {} // Description: // Get the time required to draw the geometry last time it was rendered vtkGetMacro( TimeToDraw, double ); // Description: // Specify clipping planes to be applied when the data is mapped // (at most 6 clipping planes can be specified). void AddClippingPlane(vtkPlane *plane); void RemoveClippingPlane(vtkPlane *plane); void RemoveAllClippingPlanes(); // Description: // Get/Set the vtkPlaneCollection which specifies the // clipping planes. virtual void SetClippingPlanes(vtkPlaneCollection*); vtkGetObjectMacro(ClippingPlanes, vtkPlaneCollection); // Description: // An alternative way to set clipping planes: use up to six planes found // in the supplied instance of the implicit function vtkPlanes. void SetClippingPlanes(vtkPlanes *planes); // Description: // Make a shallow copy of this mapper. void ShallowCopy(vtkAbstractMapper *m); // Description: // Internal helper function for getting the active scalars. The scalar // mode indicates where the scalars come from. The cellFlag is a // return value that is set when the scalars actually are cell scalars. // (0 for point scalars, 1 for cell scalars, 2 for field scalars) // The arrayAccessMode is used to indicate how to retrieve the scalars from // field data, per id or per name (if the scalarMode indicates that). static vtkDataArray *GetScalars(vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int& cellFlag); // Description: // Internal helper function for getting the active scalars as an // abstract array. The scalar mode indicates where the scalars come // from. The cellFlag is a return value that is set when the // scalars actually are cell scalars. (0 for point scalars, 1 for // cell scalars, 2 for field scalars) The arrayAccessMode is used to // indicate how to retrieve the scalars from field data, per id or // per name (if the scalarMode indicates that). static vtkAbstractArray *GetAbstractScalars(vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int& cellFlag); protected: vtkAbstractMapper(); ~vtkAbstractMapper(); vtkTimerLog *Timer; double TimeToDraw; vtkWindow *LastWindow; // Window used for the previous render vtkPlaneCollection *ClippingPlanes; private: vtkAbstractMapper(const vtkAbstractMapper&); // Not implemented. void operator=(const vtkAbstractMapper&); // Not implemented. }; #endif
def translate_results(self, data, options, mapping=None): json_data = json.loads(data) if(mapping is None): map_file = open(self.default_mapping_file_path).read() map_data = json.loads(map_file) else: map_data = json.loads(mapping) datasource = { 'id': '7c0de425-33bf-46be-9e38-e42319e36d95', 'name': 'events'} results = json_to_stix_translator.convert_to_stix(datasource, map_data, json_data, transformers.get_all_transformers(), options) return json.dumps(results, indent=4, sort_keys=True)
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import asyncio import os import re import sys from asyncio import exceptions from telethon import events, Button from .. import chat_id, jdbot, logger, ch_name, BOT_SET from ..bot.utils import press_event, V4 from ..diy.utils import read, write @jdbot.on(events.NewMessage(from_users=chat_id, pattern=r'(export\s)?\w*=(".*"|\'.*\')')) async def myaddexport(event): try: SENDER = event.sender_id messages = event.raw_text.split("\n") for message in messages: if "export " not in message: continue kv = message.replace("export ", "") kname = kv.split("=")[0] vname = re.findall(r"(\".*\"|'.*')", kv)[0][1:-1] btns = [Button.inline("是", data='yes'), Button.inline("否", data='cancel')] async with jdbot.conversation(SENDER, timeout=60) as conv: msg = await conv.send_message(f"我检测到你需要添加一个环境变量\n键名:{kname}\n值名:{vname}\n请问是这样吗?", buttons=btns) convdata = await conv.wait_event(press_event(SENDER)) res = bytes.decode(convdata.data) if res == 'cancel': await jdbot.edit_message(msg, '对话已取消,感谢你的使用') conv.cancel() return else: msg = await jdbot.edit_message(msg, f"好的,请稍等\n你设置变量为:{kname}=\"{vname}\"") conv.cancel() configs = read("str") await asyncio.sleep(1.5) if f"export {kname}=" in configs: configs = re.sub(f'{kname}=(\"|\').*(\"|\')', f'{kname}="{vname}"', configs) end = "替换环境变量成功" else: async with jdbot.conversation(SENDER, timeout=60) as conv: msg = await jdbot.edit_message(msg, f"这个环境变量是新增的,需要给他添加注释嘛?", buttons=btns) convdata = await conv.wait_event(press_event(SENDER)) res = bytes.decode(convdata.data) if res == 'cancel': msg = await jdbot.edit_message(msg, "那好吧,准备新增变量") note = '' else: await jdbot.delete_messages(chat_id, msg) msg = await conv.send_message("那请回复你所需要添加的注释") note = await conv.get_response() note = f" # {note.raw_text}" conv.cancel() if V4: configs = read("list") for config in configs: if "第五区域" in config and "↑" in config: end_line = configs.index(config) break configs.insert(end_line - 1, f'export {kname}="{vname}"{note}\n') configs = ''.join(configs) else: configs = read("str") configs += f'\nexport {kname}="{vname}"{note}' await asyncio.sleep(1.5) end = "新增环境变量成功" write(configs) await jdbot.edit_message(msg, end) except exceptions.TimeoutError: await jdbot.edit_message(msg, '选择已超时,对话已停止,感谢你的使用') except Exception as e: title = "【💥错误💥】" name = "文件名:" + os.path.split(__file__)[-1].split(".")[0] function = "函数名:" + sys._getframe().f_code.co_name tip = '建议百度/谷歌进行查询' await jdbot.send_message(chat_id, f"{title}\n\n{name}\n{function}\n错误原因:{str(e)}\n\n{tip}") logger.error(f"错误--->{str(e)}") if ch_name: jdbot.add_event_handler(myaddexport, events.NewMessage(from_users=chat_id, pattern=BOT_SET['命令别名']['cron']))
package com.doodl6.springboot.common.model; import lombok.Getter; import lombok.Setter; import java.io.Serializable; import java.util.List; /** * 分页数据模型类 */ @Getter @Setter public class Page<T> implements Serializable { private int pageNo = 1; private int pageSize = 10; private int total; private int pageCount; private List<T> list; }
package ChipmunkJava; import java.util.*; public abstract class TestUtil {}
/** * Command to import data in the application. */ @CommandDefinition(scope = "business", name = "import", description = "Import application data") public class DataImportCommand implements StreamCommand { @Inject private DataManager dataManager; @Option(name = "g", longName = "group", description = "The group of data to import (other groups are ignored)", hasArgument = true) private String group; @Option(name = "n", longName = "name", description = "The name of the data set of group to export (other items are ignored)", hasArgument = true) private String name; @Option(name = "c", longName = "clear", description = "Clear existing data before import") private boolean clear; @Override public void execute(InputStream inputStream, OutputStream outputStream, OutputStream errorStream) { dataManager.importData(inputStream, group, name); } @Override public Object execute(Object object) throws Exception { throw new IllegalStateException("This command cannot be invoked in interactive mode"); } }
/** * Concatenates two byte buffers/arrays and return the result. * * @param firstByteBuffer the 1st byte buffer/array * * @param secondByteBuffer the 2nd byte buffer/array * * @return the result of the two byte buffers/arrays concatenated */ public static byte[] concatenate(byte[] firstByteBuffer, byte[] secondByteBuffer) { byte[] concatenatedByteBuffer = new byte[firstByteBuffer.length + secondByteBuffer.length]; System.arraycopy(firstByteBuffer, 0, concatenatedByteBuffer, 0, firstByteBuffer.length); System.arraycopy(secondByteBuffer, 0, concatenatedByteBuffer, firstByteBuffer.length, secondByteBuffer.length); return concatenatedByteBuffer; }
#include "JassNativesHeader.h" AbilityId_FUNC AbilityId_org = nullptr; AbilityId_FUNC AbilityId_ptr = nullptr; AbilityId2String_FUNC AbilityId2String_org = nullptr; AbilityId2String_FUNC AbilityId2String_ptr = nullptr; Acos_FUNC Acos_org = nullptr; Acos_FUNC Acos_ptr = nullptr; AddAssault_FUNC AddAssault_org = nullptr; AddAssault_FUNC AddAssault_ptr = nullptr; AddDefenders_FUNC AddDefenders_org = nullptr; AddDefenders_FUNC AddDefenders_ptr = nullptr; AddGuardPost_FUNC AddGuardPost_org = nullptr; AddGuardPost_FUNC AddGuardPost_ptr = nullptr; AddHeroXP_FUNC AddHeroXP_org = nullptr; AddHeroXP_FUNC AddHeroXP_ptr = nullptr; AddIndicator_FUNC AddIndicator_org = nullptr; AddIndicator_FUNC AddIndicator_ptr = nullptr; AddItemToAllStock_FUNC AddItemToAllStock_org = nullptr; AddItemToAllStock_FUNC AddItemToAllStock_ptr = nullptr; AddItemToStock_FUNC AddItemToStock_org = nullptr; AddItemToStock_FUNC AddItemToStock_ptr = nullptr; AddLightning_FUNC AddLightning_org = nullptr; AddLightning_FUNC AddLightning_ptr = nullptr; AddLightningEx_FUNC AddLightningEx_org = nullptr; AddLightningEx_FUNC AddLightningEx_ptr = nullptr; AddPlayerTechResearched_FUNC AddPlayerTechResearched_org = nullptr; AddPlayerTechResearched_FUNC AddPlayerTechResearched_ptr = nullptr; AddResourceAmount_FUNC AddResourceAmount_org = nullptr; AddResourceAmount_FUNC AddResourceAmount_ptr = nullptr; AddSpecialEffect_FUNC AddSpecialEffect_org = nullptr; AddSpecialEffect_FUNC AddSpecialEffect_ptr = nullptr; AddSpecialEffectLoc_FUNC AddSpecialEffectLoc_org = nullptr; AddSpecialEffectLoc_FUNC AddSpecialEffectLoc_ptr = nullptr; AddSpecialEffectTarget_FUNC AddSpecialEffectTarget_org = nullptr; AddSpecialEffectTarget_FUNC AddSpecialEffectTarget_ptr = nullptr; AddSpellEffect_FUNC AddSpellEffect_org = nullptr; AddSpellEffect_FUNC AddSpellEffect_ptr = nullptr; AddSpellEffectById_FUNC AddSpellEffectById_org = nullptr; AddSpellEffectById_FUNC AddSpellEffectById_ptr = nullptr; AddSpellEffectByIdLoc_FUNC AddSpellEffectByIdLoc_org = nullptr; AddSpellEffectByIdLoc_FUNC AddSpellEffectByIdLoc_ptr = nullptr; AddSpellEffectLoc_FUNC AddSpellEffectLoc_org = nullptr; AddSpellEffectLoc_FUNC AddSpellEffectLoc_ptr = nullptr; AddSpellEffectTarget_FUNC AddSpellEffectTarget_org = nullptr; AddSpellEffectTarget_FUNC AddSpellEffectTarget_ptr = nullptr; AddSpellEffectTargetById_FUNC AddSpellEffectTargetById_org = nullptr; AddSpellEffectTargetById_FUNC AddSpellEffectTargetById_ptr = nullptr; AddUnitAnimationProperties_FUNC AddUnitAnimationProperties_org = nullptr; AddUnitAnimationProperties_FUNC AddUnitAnimationProperties_ptr = nullptr; AddUnitToAllStock_FUNC AddUnitToAllStock_org = nullptr; AddUnitToAllStock_FUNC AddUnitToAllStock_ptr = nullptr; AddUnitToStock_FUNC AddUnitToStock_org = nullptr; AddUnitToStock_FUNC AddUnitToStock_ptr = nullptr; AddWeatherEffect_FUNC AddWeatherEffect_org = nullptr; AddWeatherEffect_FUNC AddWeatherEffect_ptr = nullptr; AdjustCameraField_FUNC AdjustCameraField_org = nullptr; AdjustCameraField_FUNC AdjustCameraField_ptr = nullptr; And_FUNC And_org = nullptr; And_FUNC And_ptr = nullptr; Asin_FUNC Asin_org = nullptr; Asin_FUNC Asin_ptr = nullptr; Atan_FUNC Atan_org = nullptr; Atan_FUNC Atan_ptr = nullptr; Atan2_FUNC Atan2_org = nullptr; Atan2_FUNC Atan2_ptr = nullptr; AttachSoundToUnit_FUNC AttachSoundToUnit_org = nullptr; AttachSoundToUnit_FUNC AttachSoundToUnit_ptr = nullptr; AttackMoveKill_FUNC AttackMoveKill_org = nullptr; AttackMoveKill_FUNC AttackMoveKill_ptr = nullptr; AttackMoveXY_FUNC AttackMoveXY_org = nullptr; AttackMoveXY_FUNC AttackMoveXY_ptr = nullptr; CachePlayerHeroData_FUNC CachePlayerHeroData_org = nullptr; CachePlayerHeroData_FUNC CachePlayerHeroData_ptr = nullptr; CameraSetSmoothingFactor_FUNC CameraSetSmoothingFactor_org = nullptr; CameraSetSmoothingFactor_FUNC CameraSetSmoothingFactor_ptr = nullptr; CameraSetSourceNoise_FUNC CameraSetSourceNoise_org = nullptr; CameraSetSourceNoise_FUNC CameraSetSourceNoise_ptr = nullptr; CameraSetSourceNoiseEx_FUNC CameraSetSourceNoiseEx_org = nullptr; CameraSetSourceNoiseEx_FUNC CameraSetSourceNoiseEx_ptr = nullptr; CameraSetTargetNoise_FUNC CameraSetTargetNoise_org = nullptr; CameraSetTargetNoise_FUNC CameraSetTargetNoise_ptr = nullptr; CameraSetTargetNoiseEx_FUNC CameraSetTargetNoiseEx_org = nullptr; CameraSetTargetNoiseEx_FUNC CameraSetTargetNoiseEx_ptr = nullptr; CameraSetupApply_FUNC CameraSetupApply_org = nullptr; CameraSetupApply_FUNC CameraSetupApply_ptr = nullptr; CameraSetupApplyForceDuration_FUNC CameraSetupApplyForceDuration_org = nullptr; CameraSetupApplyForceDuration_FUNC CameraSetupApplyForceDuration_ptr = nullptr; CameraSetupApplyForceDurationWithZ_FUNC CameraSetupApplyForceDurationWithZ_org = nullptr; CameraSetupApplyForceDurationWithZ_FUNC CameraSetupApplyForceDurationWithZ_ptr = nullptr; CameraSetupApplyWithZ_FUNC CameraSetupApplyWithZ_org = nullptr; CameraSetupApplyWithZ_FUNC CameraSetupApplyWithZ_ptr = nullptr; CameraSetupGetDestPositionLoc_FUNC CameraSetupGetDestPositionLoc_org = nullptr; CameraSetupGetDestPositionLoc_FUNC CameraSetupGetDestPositionLoc_ptr = nullptr; CameraSetupGetDestPositionX_FUNC CameraSetupGetDestPositionX_org = nullptr; CameraSetupGetDestPositionX_FUNC CameraSetupGetDestPositionX_ptr = nullptr; CameraSetupGetDestPositionY_FUNC CameraSetupGetDestPositionY_org = nullptr; CameraSetupGetDestPositionY_FUNC CameraSetupGetDestPositionY_ptr = nullptr; CameraSetupGetField_FUNC CameraSetupGetField_org = nullptr; CameraSetupGetField_FUNC CameraSetupGetField_ptr = nullptr; CameraSetupSetDestPosition_FUNC CameraSetupSetDestPosition_org = nullptr; CameraSetupSetDestPosition_FUNC CameraSetupSetDestPosition_ptr = nullptr; CameraSetupSetField_FUNC CameraSetupSetField_org = nullptr; CameraSetupSetField_FUNC CameraSetupSetField_ptr = nullptr; CaptainAtGoal_FUNC CaptainAtGoal_org = nullptr; CaptainAtGoal_FUNC CaptainAtGoal_ptr = nullptr; CaptainAttack_FUNC CaptainAttack_org = nullptr; CaptainAttack_FUNC CaptainAttack_ptr = nullptr; CaptainGoHome_FUNC CaptainGoHome_org = nullptr; CaptainGoHome_FUNC CaptainGoHome_ptr = nullptr; CaptainGroupSize_FUNC CaptainGroupSize_org = nullptr; CaptainGroupSize_FUNC CaptainGroupSize_ptr = nullptr; CaptainInCombat_FUNC CaptainInCombat_org = nullptr; CaptainInCombat_FUNC CaptainInCombat_ptr = nullptr; CaptainIsEmpty_FUNC CaptainIsEmpty_org = nullptr; CaptainIsEmpty_FUNC CaptainIsEmpty_ptr = nullptr; CaptainIsFull_FUNC CaptainIsFull_org = nullptr; CaptainIsFull_FUNC CaptainIsFull_ptr = nullptr; CaptainIsHome_FUNC CaptainIsHome_org = nullptr; CaptainIsHome_FUNC CaptainIsHome_ptr = nullptr; CaptainReadiness_FUNC CaptainReadiness_org = nullptr; CaptainReadiness_FUNC CaptainReadiness_ptr = nullptr; CaptainReadinessHP_FUNC CaptainReadinessHP_org = nullptr; CaptainReadinessHP_FUNC CaptainReadinessHP_ptr = nullptr; CaptainReadinessMa_FUNC CaptainReadinessMa_org = nullptr; CaptainReadinessMa_FUNC CaptainReadinessMa_ptr = nullptr; CaptainRetreating_FUNC CaptainRetreating_org = nullptr; CaptainRetreating_FUNC CaptainRetreating_ptr = nullptr; CaptainVsPlayer_FUNC CaptainVsPlayer_org = nullptr; CaptainVsPlayer_FUNC CaptainVsPlayer_ptr = nullptr; CaptainVsUnits_FUNC CaptainVsUnits_org = nullptr; CaptainVsUnits_FUNC CaptainVsUnits_ptr = nullptr; ChangeLevel_FUNC ChangeLevel_org = nullptr; ChangeLevel_FUNC ChangeLevel_ptr = nullptr; Cheat_FUNC Cheat_org = nullptr; Cheat_FUNC Cheat_ptr = nullptr; ChooseRandomCreep_FUNC ChooseRandomCreep_org = nullptr; ChooseRandomCreep_FUNC ChooseRandomCreep_ptr = nullptr; ChooseRandomItem_FUNC ChooseRandomItem_org = nullptr; ChooseRandomItem_FUNC ChooseRandomItem_ptr = nullptr; ChooseRandomItemEx_FUNC ChooseRandomItemEx_org = nullptr; ChooseRandomItemEx_FUNC ChooseRandomItemEx_ptr = nullptr; ChooseRandomNPBuilding_FUNC ChooseRandomNPBuilding_org = nullptr; ChooseRandomNPBuilding_FUNC ChooseRandomNPBuilding_ptr = nullptr; ClearCaptainTargets_FUNC ClearCaptainTargets_org = nullptr; ClearCaptainTargets_FUNC ClearCaptainTargets_ptr = nullptr; ClearHarvestAI_FUNC ClearHarvestAI_org = nullptr; ClearHarvestAI_FUNC ClearHarvestAI_ptr = nullptr; ClearMapMusic_FUNC ClearMapMusic_org = nullptr; ClearMapMusic_FUNC ClearMapMusic_ptr = nullptr; ClearSelection_FUNC ClearSelection_org = nullptr; ClearSelection_FUNC ClearSelection_ptr = nullptr; ClearStackedSound_FUNC ClearStackedSound_org = nullptr; ClearStackedSound_FUNC ClearStackedSound_ptr = nullptr; ClearStackedSoundRect_FUNC ClearStackedSoundRect_org = nullptr; ClearStackedSoundRect_FUNC ClearStackedSoundRect_ptr = nullptr; ClearTextMessages_FUNC ClearTextMessages_org = nullptr; ClearTextMessages_FUNC ClearTextMessages_ptr = nullptr; CommandAI_FUNC CommandAI_org = nullptr; CommandAI_FUNC CommandAI_ptr = nullptr; CommandsWaiting_FUNC CommandsWaiting_org = nullptr; CommandsWaiting_FUNC CommandsWaiting_ptr = nullptr; Condition_FUNC Condition_org = nullptr; Condition_FUNC Condition_ptr = nullptr; ConvertAIDifficulty_FUNC ConvertAIDifficulty_org = nullptr; ConvertAIDifficulty_FUNC ConvertAIDifficulty_ptr = nullptr; ConvertAllianceType_FUNC ConvertAllianceType_org = nullptr; ConvertAllianceType_FUNC ConvertAllianceType_ptr = nullptr; ConvertAttackType_FUNC ConvertAttackType_org = nullptr; ConvertAttackType_FUNC ConvertAttackType_ptr = nullptr; ConvertBlendMode_FUNC ConvertBlendMode_org = nullptr; ConvertBlendMode_FUNC ConvertBlendMode_ptr = nullptr; ConvertCameraField_FUNC ConvertCameraField_org = nullptr; ConvertCameraField_FUNC ConvertCameraField_ptr = nullptr; ConvertDamageType_FUNC ConvertDamageType_org = nullptr; ConvertDamageType_FUNC ConvertDamageType_ptr = nullptr; ConvertDialogEvent_FUNC ConvertDialogEvent_org = nullptr; ConvertDialogEvent_FUNC ConvertDialogEvent_ptr = nullptr; ConvertEffectType_FUNC ConvertEffectType_org = nullptr; ConvertEffectType_FUNC ConvertEffectType_ptr = nullptr; ConvertFGameState_FUNC ConvertFGameState_org = nullptr; ConvertFGameState_FUNC ConvertFGameState_ptr = nullptr; ConvertFogState_FUNC ConvertFogState_org = nullptr; ConvertFogState_FUNC ConvertFogState_ptr = nullptr; ConvertGameDifficulty_FUNC ConvertGameDifficulty_org = nullptr; ConvertGameDifficulty_FUNC ConvertGameDifficulty_ptr = nullptr; ConvertGameEvent_FUNC ConvertGameEvent_org = nullptr; ConvertGameEvent_FUNC ConvertGameEvent_ptr = nullptr; ConvertGameSpeed_FUNC ConvertGameSpeed_org = nullptr; ConvertGameSpeed_FUNC ConvertGameSpeed_ptr = nullptr; ConvertGameType_FUNC ConvertGameType_org = nullptr; ConvertGameType_FUNC ConvertGameType_ptr = nullptr; ConvertIGameState_FUNC ConvertIGameState_org = nullptr; ConvertIGameState_FUNC ConvertIGameState_ptr = nullptr; ConvertItemType_FUNC ConvertItemType_org = nullptr; ConvertItemType_FUNC ConvertItemType_ptr = nullptr; ConvertLimitOp_FUNC ConvertLimitOp_org = nullptr; ConvertLimitOp_FUNC ConvertLimitOp_ptr = nullptr; ConvertMapControl_FUNC ConvertMapControl_org = nullptr; ConvertMapControl_FUNC ConvertMapControl_ptr = nullptr; ConvertMapDensity_FUNC ConvertMapDensity_org = nullptr; ConvertMapDensity_FUNC ConvertMapDensity_ptr = nullptr; ConvertMapFlag_FUNC ConvertMapFlag_org = nullptr; ConvertMapFlag_FUNC ConvertMapFlag_ptr = nullptr; ConvertMapSetting_FUNC ConvertMapSetting_org = nullptr; ConvertMapSetting_FUNC ConvertMapSetting_ptr = nullptr; ConvertMapVisibility_FUNC ConvertMapVisibility_org = nullptr; ConvertMapVisibility_FUNC ConvertMapVisibility_ptr = nullptr; ConvertPathingType_FUNC ConvertPathingType_org = nullptr; ConvertPathingType_FUNC ConvertPathingType_ptr = nullptr; ConvertPlacement_FUNC ConvertPlacement_org = nullptr; ConvertPlacement_FUNC ConvertPlacement_ptr = nullptr; ConvertPlayerColor_FUNC ConvertPlayerColor_org = nullptr; ConvertPlayerColor_FUNC ConvertPlayerColor_ptr = nullptr; ConvertPlayerEvent_FUNC ConvertPlayerEvent_org = nullptr; ConvertPlayerEvent_FUNC ConvertPlayerEvent_ptr = nullptr; ConvertPlayerGameResult_FUNC ConvertPlayerGameResult_org = nullptr; ConvertPlayerGameResult_FUNC ConvertPlayerGameResult_ptr = nullptr; ConvertPlayerScore_FUNC ConvertPlayerScore_org = nullptr; ConvertPlayerScore_FUNC ConvertPlayerScore_ptr = nullptr; ConvertPlayerSlotState_FUNC ConvertPlayerSlotState_org = nullptr; ConvertPlayerSlotState_FUNC ConvertPlayerSlotState_ptr = nullptr; ConvertPlayerState_FUNC ConvertPlayerState_org = nullptr; ConvertPlayerState_FUNC ConvertPlayerState_ptr = nullptr; ConvertPlayerUnitEvent_FUNC ConvertPlayerUnitEvent_org = nullptr; ConvertPlayerUnitEvent_FUNC ConvertPlayerUnitEvent_ptr = nullptr; ConvertRace_FUNC ConvertRace_org = nullptr; ConvertRace_FUNC ConvertRace_ptr = nullptr; ConvertRacePref_FUNC ConvertRacePref_org = nullptr; ConvertRacePref_FUNC ConvertRacePref_ptr = nullptr; ConvertRarityControl_FUNC ConvertRarityControl_org = nullptr; ConvertRarityControl_FUNC ConvertRarityControl_ptr = nullptr; ConvertSoundType_FUNC ConvertSoundType_org = nullptr; ConvertSoundType_FUNC ConvertSoundType_ptr = nullptr; ConvertStartLocPrio_FUNC ConvertStartLocPrio_org = nullptr; ConvertStartLocPrio_FUNC ConvertStartLocPrio_ptr = nullptr; ConvertTexMapFlags_FUNC ConvertTexMapFlags_org = nullptr; ConvertTexMapFlags_FUNC ConvertTexMapFlags_ptr = nullptr; ConvertUnitEvent_FUNC ConvertUnitEvent_org = nullptr; ConvertUnitEvent_FUNC ConvertUnitEvent_ptr = nullptr; ConvertUnitState_FUNC ConvertUnitState_org = nullptr; ConvertUnitState_FUNC ConvertUnitState_ptr = nullptr; ConvertUnitType_FUNC ConvertUnitType_org = nullptr; ConvertUnitType_FUNC ConvertUnitType_ptr = nullptr; ConvertUnits_FUNC ConvertUnits_org = nullptr; ConvertUnits_FUNC ConvertUnits_ptr = nullptr; ConvertVersion_FUNC ConvertVersion_org = nullptr; ConvertVersion_FUNC ConvertVersion_ptr = nullptr; ConvertVolumeGroup_FUNC ConvertVolumeGroup_org = nullptr; ConvertVolumeGroup_FUNC ConvertVolumeGroup_ptr = nullptr; ConvertWeaponType_FUNC ConvertWeaponType_org = nullptr; ConvertWeaponType_FUNC ConvertWeaponType_ptr = nullptr; ConvertWidgetEvent_FUNC ConvertWidgetEvent_org = nullptr; ConvertWidgetEvent_FUNC ConvertWidgetEvent_ptr = nullptr; CopySaveGame_FUNC CopySaveGame_org = nullptr; CopySaveGame_FUNC CopySaveGame_ptr = nullptr; Cos_FUNC Cos_org = nullptr; Cos_FUNC Cos_ptr = nullptr; CreateBlightedGoldmine_FUNC CreateBlightedGoldmine_org = nullptr; CreateBlightedGoldmine_FUNC CreateBlightedGoldmine_ptr = nullptr; CreateCameraSetup_FUNC CreateCameraSetup_org = nullptr; CreateCameraSetup_FUNC CreateCameraSetup_ptr = nullptr; CreateCaptains_FUNC CreateCaptains_org = nullptr; CreateCaptains_FUNC CreateCaptains_ptr = nullptr; CreateCorpse_FUNC CreateCorpse_org = nullptr; CreateCorpse_FUNC CreateCorpse_ptr = nullptr; CreateDeadDestructable_FUNC CreateDeadDestructable_org = nullptr; CreateDeadDestructable_FUNC CreateDeadDestructable_ptr = nullptr; CreateDeadDestructableZ_FUNC CreateDeadDestructableZ_org = nullptr; CreateDeadDestructableZ_FUNC CreateDeadDestructableZ_ptr = nullptr; CreateDefeatCondition_FUNC CreateDefeatCondition_org = nullptr; CreateDefeatCondition_FUNC CreateDefeatCondition_ptr = nullptr; CreateDestructable_FUNC CreateDestructable_org = nullptr; CreateDestructable_FUNC CreateDestructable_ptr = nullptr; CreateDestructableZ_FUNC CreateDestructableZ_org = nullptr; CreateDestructableZ_FUNC CreateDestructableZ_ptr = nullptr; CreateFogModifierRadius_FUNC CreateFogModifierRadius_org = nullptr; CreateFogModifierRadius_FUNC CreateFogModifierRadius_ptr = nullptr; CreateFogModifierRadiusLoc_FUNC CreateFogModifierRadiusLoc_org = nullptr; CreateFogModifierRadiusLoc_FUNC CreateFogModifierRadiusLoc_ptr = nullptr; CreateFogModifierRect_FUNC CreateFogModifierRect_org = nullptr; CreateFogModifierRect_FUNC CreateFogModifierRect_ptr = nullptr; CreateForce_FUNC CreateForce_org = nullptr; CreateForce_FUNC CreateForce_ptr = nullptr; CreateGroup_FUNC CreateGroup_org = nullptr; CreateGroup_FUNC CreateGroup_ptr = nullptr; CreateImage_FUNC CreateImage_org = nullptr; CreateImage_FUNC CreateImage_ptr = nullptr; CreateItem_FUNC CreateItem_org = nullptr; CreateItem_FUNC CreateItem_ptr = nullptr; CreateItemPool_FUNC CreateItemPool_org = nullptr; CreateItemPool_FUNC CreateItemPool_ptr = nullptr; CreateLeaderboard_FUNC CreateLeaderboard_org = nullptr; CreateLeaderboard_FUNC CreateLeaderboard_ptr = nullptr; CreateMIDISound_FUNC CreateMIDISound_org = nullptr; CreateMIDISound_FUNC CreateMIDISound_ptr = nullptr; CreateMultiboard_FUNC CreateMultiboard_org = nullptr; CreateMultiboard_FUNC CreateMultiboard_ptr = nullptr; CreateQuest_FUNC CreateQuest_org = nullptr; CreateQuest_FUNC CreateQuest_ptr = nullptr; CreateRegion_FUNC CreateRegion_org = nullptr; CreateRegion_FUNC CreateRegion_ptr = nullptr; CreateSound_FUNC CreateSound_org = nullptr; CreateSound_FUNC CreateSound_ptr = nullptr; CreateSoundFilenameWithLabel_FUNC CreateSoundFilenameWithLabel_org = nullptr; CreateSoundFilenameWithLabel_FUNC CreateSoundFilenameWithLabel_ptr = nullptr; CreateSoundFromLabel_FUNC CreateSoundFromLabel_org = nullptr; CreateSoundFromLabel_FUNC CreateSoundFromLabel_ptr = nullptr; CreateTextTag_FUNC CreateTextTag_org = nullptr; CreateTextTag_FUNC CreateTextTag_ptr = nullptr; CreateTimer_FUNC CreateTimer_org = nullptr; CreateTimer_FUNC CreateTimer_ptr = nullptr; CreateTimerDialog_FUNC CreateTimerDialog_org = nullptr; CreateTimerDialog_FUNC CreateTimerDialog_ptr = nullptr; CreateTrackable_FUNC CreateTrackable_org = nullptr; CreateTrackable_FUNC CreateTrackable_ptr = nullptr; CreateTrigger_FUNC CreateTrigger_org = nullptr; CreateTrigger_FUNC CreateTrigger_ptr = nullptr; CreateUbersplat_FUNC CreateUbersplat_org = nullptr; CreateUbersplat_FUNC CreateUbersplat_ptr = nullptr; CreateUnit_FUNC CreateUnit_org = nullptr; CreateUnit_FUNC CreateUnit_ptr = nullptr; CreateUnitAtLoc_FUNC CreateUnitAtLoc_org = nullptr; CreateUnitAtLoc_FUNC CreateUnitAtLoc_ptr = nullptr; CreateUnitAtLocByName_FUNC CreateUnitAtLocByName_org = nullptr; CreateUnitAtLocByName_FUNC CreateUnitAtLocByName_ptr = nullptr; CreateUnitByName_FUNC CreateUnitByName_org = nullptr; CreateUnitByName_FUNC CreateUnitByName_ptr = nullptr; CreateUnitPool_FUNC CreateUnitPool_org = nullptr; CreateUnitPool_FUNC CreateUnitPool_ptr = nullptr; CreepsOnMap_FUNC CreepsOnMap_org = nullptr; CreepsOnMap_FUNC CreepsOnMap_ptr = nullptr; CripplePlayer_FUNC CripplePlayer_org = nullptr; CripplePlayer_FUNC CripplePlayer_ptr = nullptr; DebugBreak_FUNC DebugBreak_org = nullptr; DebugBreak_FUNC DebugBreak_ptr = nullptr; DebugFI_FUNC DebugFI_org = nullptr; DebugFI_FUNC DebugFI_ptr = nullptr; DebugS_FUNC DebugS_org = nullptr; DebugS_FUNC DebugS_ptr = nullptr; DebugUnitID_FUNC DebugUnitID_org = nullptr; DebugUnitID_FUNC DebugUnitID_ptr = nullptr; DecUnitAbilityLevel_FUNC DecUnitAbilityLevel_org = nullptr; DecUnitAbilityLevel_FUNC DecUnitAbilityLevel_ptr = nullptr; DefeatConditionSetDescription_FUNC DefeatConditionSetDescription_org = nullptr; DefeatConditionSetDescription_FUNC DefeatConditionSetDescription_ptr = nullptr; DefineStartLocation_FUNC DefineStartLocation_org = nullptr; DefineStartLocation_FUNC DefineStartLocation_ptr = nullptr; DefineStartLocationLoc_FUNC DefineStartLocationLoc_org = nullptr; DefineStartLocationLoc_FUNC DefineStartLocationLoc_ptr = nullptr; Deg2Rad_FUNC Deg2Rad_org = nullptr; Deg2Rad_FUNC Deg2Rad_ptr = nullptr; DestroyBoolExpr_FUNC DestroyBoolExpr_org = nullptr; DestroyBoolExpr_FUNC DestroyBoolExpr_ptr = nullptr; DestroyCondition_FUNC DestroyCondition_org = nullptr; DestroyCondition_FUNC DestroyCondition_ptr = nullptr; DestroyDefeatCondition_FUNC DestroyDefeatCondition_org = nullptr; DestroyDefeatCondition_FUNC DestroyDefeatCondition_ptr = nullptr; DestroyEffect_FUNC DestroyEffect_org = nullptr; DestroyEffect_FUNC DestroyEffect_ptr = nullptr; DestroyFilter_FUNC DestroyFilter_org = nullptr; DestroyFilter_FUNC DestroyFilter_ptr = nullptr; DestroyFogModifier_FUNC DestroyFogModifier_org = nullptr; DestroyFogModifier_FUNC DestroyFogModifier_ptr = nullptr; DestroyForce_FUNC DestroyForce_org = nullptr; DestroyForce_FUNC DestroyForce_ptr = nullptr; DestroyGroup_FUNC DestroyGroup_org = nullptr; DestroyGroup_FUNC DestroyGroup_ptr = nullptr; DestroyImage_FUNC DestroyImage_org = nullptr; DestroyImage_FUNC DestroyImage_ptr = nullptr; DestroyItemPool_FUNC DestroyItemPool_org = nullptr; DestroyItemPool_FUNC DestroyItemPool_ptr = nullptr; DestroyLeaderboard_FUNC DestroyLeaderboard_org = nullptr; DestroyLeaderboard_FUNC DestroyLeaderboard_ptr = nullptr; DestroyLightning_FUNC DestroyLightning_org = nullptr; DestroyLightning_FUNC DestroyLightning_ptr = nullptr; DestroyMultiboard_FUNC DestroyMultiboard_org = nullptr; DestroyMultiboard_FUNC DestroyMultiboard_ptr = nullptr; DestroyQuest_FUNC DestroyQuest_org = nullptr; DestroyQuest_FUNC DestroyQuest_ptr = nullptr; DestroyTextTag_FUNC DestroyTextTag_org = nullptr; DestroyTextTag_FUNC DestroyTextTag_ptr = nullptr; DestroyTimer_FUNC DestroyTimer_org = nullptr; DestroyTimer_FUNC DestroyTimer_ptr = nullptr; DestroyTimerDialog_FUNC DestroyTimerDialog_org = nullptr; DestroyTimerDialog_FUNC DestroyTimerDialog_ptr = nullptr; DestroyTrigger_FUNC DestroyTrigger_org = nullptr; DestroyTrigger_FUNC DestroyTrigger_ptr = nullptr; DestroyUbersplat_FUNC DestroyUbersplat_org = nullptr; DestroyUbersplat_FUNC DestroyUbersplat_ptr = nullptr; DestroyUnitPool_FUNC DestroyUnitPool_org = nullptr; DestroyUnitPool_FUNC DestroyUnitPool_ptr = nullptr; DestructableRestoreLife_FUNC DestructableRestoreLife_org = nullptr; DestructableRestoreLife_FUNC DestructableRestoreLife_ptr = nullptr; DialogAddButton_FUNC DialogAddButton_org = nullptr; DialogAddButton_FUNC DialogAddButton_ptr = nullptr; DialogAddQuitButton_FUNC DialogAddQuitButton_org = nullptr; DialogAddQuitButton_FUNC DialogAddQuitButton_ptr = nullptr; DialogClear_FUNC DialogClear_org = nullptr; DialogClear_FUNC DialogClear_ptr = nullptr; DialogCreate_FUNC DialogCreate_org = nullptr; DialogCreate_FUNC DialogCreate_ptr = nullptr; DialogDestroy_FUNC DialogDestroy_org = nullptr; DialogDestroy_FUNC DialogDestroy_ptr = nullptr; DialogDisplay_FUNC DialogDisplay_org = nullptr; DialogDisplay_FUNC DialogDisplay_ptr = nullptr; DialogSetAsync_FUNC DialogSetAsync_org = nullptr; DialogSetAsync_FUNC DialogSetAsync_ptr = nullptr; DialogSetMessage_FUNC DialogSetMessage_org = nullptr; DialogSetMessage_FUNC DialogSetMessage_ptr = nullptr; DisablePathing_FUNC DisablePathing_org = nullptr; DisablePathing_FUNC DisablePathing_ptr = nullptr; DisableRestartMission_FUNC DisableRestartMission_org = nullptr; DisableRestartMission_FUNC DisableRestartMission_ptr = nullptr; DisableTrigger_FUNC DisableTrigger_org = nullptr; DisableTrigger_FUNC DisableTrigger_ptr = nullptr; DisplayCineFilter_FUNC DisplayCineFilter_org = nullptr; DisplayCineFilter_FUNC DisplayCineFilter_ptr = nullptr; DisplayLoadDialog_FUNC DisplayLoadDialog_org = nullptr; DisplayLoadDialog_FUNC DisplayLoadDialog_ptr = nullptr; DisplayText_FUNC DisplayText_org = nullptr; DisplayText_FUNC DisplayText_ptr = nullptr; DisplayTextI_FUNC DisplayTextI_org = nullptr; DisplayTextI_FUNC DisplayTextI_ptr = nullptr; DisplayTextII_FUNC DisplayTextII_org = nullptr; DisplayTextII_FUNC DisplayTextII_ptr = nullptr; DisplayTextIII_FUNC DisplayTextIII_org = nullptr; DisplayTextIII_FUNC DisplayTextIII_ptr = nullptr; DisplayTextToPlayer_FUNC DisplayTextToPlayer_org = nullptr; DisplayTextToPlayer_FUNC DisplayTextToPlayer_ptr = nullptr; DisplayTimedTextFromPlayer_FUNC DisplayTimedTextFromPlayer_org = nullptr; DisplayTimedTextFromPlayer_FUNC DisplayTimedTextFromPlayer_ptr = nullptr; DisplayTimedTextToPlayer_FUNC DisplayTimedTextToPlayer_org = nullptr; DisplayTimedTextToPlayer_FUNC DisplayTimedTextToPlayer_ptr = nullptr; DoAiScriptDebug_FUNC DoAiScriptDebug_org = nullptr; DoAiScriptDebug_FUNC DoAiScriptDebug_ptr = nullptr; DoNotSaveReplay_FUNC DoNotSaveReplay_org = nullptr; DoNotSaveReplay_FUNC DoNotSaveReplay_ptr = nullptr; EnableDragSelect_FUNC EnableDragSelect_org = nullptr; EnableDragSelect_FUNC EnableDragSelect_ptr = nullptr; EnableMinimapFilterButtons_FUNC EnableMinimapFilterButtons_org = nullptr; EnableMinimapFilterButtons_FUNC EnableMinimapFilterButtons_ptr = nullptr; EnableOcclusion_FUNC EnableOcclusion_org = nullptr; EnableOcclusion_FUNC EnableOcclusion_ptr = nullptr; EnablePreSelect_FUNC EnablePreSelect_org = nullptr; EnablePreSelect_FUNC EnablePreSelect_ptr = nullptr; EnableSelect_FUNC EnableSelect_org = nullptr; EnableSelect_FUNC EnableSelect_ptr = nullptr; EnableTrigger_FUNC EnableTrigger_org = nullptr; EnableTrigger_FUNC EnableTrigger_ptr = nullptr; EnableUserControl_FUNC EnableUserControl_org = nullptr; EnableUserControl_FUNC EnableUserControl_ptr = nullptr; EnableUserUI_FUNC EnableUserUI_org = nullptr; EnableUserUI_FUNC EnableUserUI_ptr = nullptr; EnableWeatherEffect_FUNC EnableWeatherEffect_org = nullptr; EnableWeatherEffect_FUNC EnableWeatherEffect_ptr = nullptr; EnableWorldFogBoundary_FUNC EnableWorldFogBoundary_org = nullptr; EnableWorldFogBoundary_FUNC EnableWorldFogBoundary_ptr = nullptr; EndCinematicScene_FUNC EndCinematicScene_org = nullptr; EndCinematicScene_FUNC EndCinematicScene_ptr = nullptr; EndGame_FUNC EndGame_org = nullptr; EndGame_FUNC EndGame_ptr = nullptr; EndThematicMusic_FUNC EndThematicMusic_org = nullptr; EndThematicMusic_FUNC EndThematicMusic_ptr = nullptr; EnumDestructablesInRect_FUNC EnumDestructablesInRect_org = nullptr; EnumDestructablesInRect_FUNC EnumDestructablesInRect_ptr = nullptr; EnumItemsInRect_FUNC EnumItemsInRect_org = nullptr; EnumItemsInRect_FUNC EnumItemsInRect_ptr = nullptr; ExecuteFunc_FUNC ExecuteFunc_org = nullptr; ExecuteFunc_FUNC ExecuteFunc_ptr = nullptr; FillGuardPosts_FUNC FillGuardPosts_org = nullptr; FillGuardPosts_FUNC FillGuardPosts_ptr = nullptr; Filter_FUNC Filter_org = nullptr; Filter_FUNC Filter_ptr = nullptr; FinishUbersplat_FUNC FinishUbersplat_org = nullptr; FinishUbersplat_FUNC FinishUbersplat_ptr = nullptr; FirstOfGroup_FUNC FirstOfGroup_org = nullptr; FirstOfGroup_FUNC FirstOfGroup_ptr = nullptr; FlashQuestDialogButton_FUNC FlashQuestDialogButton_org = nullptr; FlashQuestDialogButton_FUNC FlashQuestDialogButton_ptr = nullptr; FlushChildHashtable_FUNC FlushChildHashtable_org = nullptr; FlushChildHashtable_FUNC FlushChildHashtable_ptr = nullptr; FlushGameCache_FUNC FlushGameCache_org = nullptr; FlushGameCache_FUNC FlushGameCache_ptr = nullptr; FlushParentHashtable_FUNC FlushParentHashtable_org = nullptr; FlushParentHashtable_FUNC FlushParentHashtable_ptr = nullptr; FlushStoredBoolean_FUNC FlushStoredBoolean_org = nullptr; FlushStoredBoolean_FUNC FlushStoredBoolean_ptr = nullptr; FlushStoredInteger_FUNC FlushStoredInteger_org = nullptr; FlushStoredInteger_FUNC FlushStoredInteger_ptr = nullptr; FlushStoredMission_FUNC FlushStoredMission_org = nullptr; FlushStoredMission_FUNC FlushStoredMission_ptr = nullptr; FlushStoredReal_FUNC FlushStoredReal_org = nullptr; FlushStoredReal_FUNC FlushStoredReal_ptr = nullptr; FlushStoredString_FUNC FlushStoredString_org = nullptr; FlushStoredString_FUNC FlushStoredString_ptr = nullptr; FlushStoredUnit_FUNC FlushStoredUnit_org = nullptr; FlushStoredUnit_FUNC FlushStoredUnit_ptr = nullptr; FogEnable_FUNC FogEnable_org = nullptr; FogEnable_FUNC FogEnable_ptr = nullptr; FogMaskEnable_FUNC FogMaskEnable_org = nullptr; FogMaskEnable_FUNC FogMaskEnable_ptr = nullptr; FogModifierStart_FUNC FogModifierStart_org = nullptr; FogModifierStart_FUNC FogModifierStart_ptr = nullptr; FogModifierStop_FUNC FogModifierStop_org = nullptr; FogModifierStop_FUNC FogModifierStop_ptr = nullptr; ForForce_FUNC ForForce_org = nullptr; ForForce_FUNC ForForce_ptr = nullptr; ForGroup_FUNC ForGroup_org = nullptr; ForGroup_FUNC ForGroup_ptr = nullptr; ForceAddPlayer_FUNC ForceAddPlayer_org = nullptr; ForceAddPlayer_FUNC ForceAddPlayer_ptr = nullptr; ForceCampaignSelectScreen_FUNC ForceCampaignSelectScreen_org = nullptr; ForceCampaignSelectScreen_FUNC ForceCampaignSelectScreen_ptr = nullptr; ForceCinematicSubtitles_FUNC ForceCinematicSubtitles_org = nullptr; ForceCinematicSubtitles_FUNC ForceCinematicSubtitles_ptr = nullptr; ForceClear_FUNC ForceClear_org = nullptr; ForceClear_FUNC ForceClear_ptr = nullptr; ForceEnumAllies_FUNC ForceEnumAllies_org = nullptr; ForceEnumAllies_FUNC ForceEnumAllies_ptr = nullptr; ForceEnumEnemies_FUNC ForceEnumEnemies_org = nullptr; ForceEnumEnemies_FUNC ForceEnumEnemies_ptr = nullptr; ForceEnumPlayers_FUNC ForceEnumPlayers_org = nullptr; ForceEnumPlayers_FUNC ForceEnumPlayers_ptr = nullptr; ForceEnumPlayersCounted_FUNC ForceEnumPlayersCounted_org = nullptr; ForceEnumPlayersCounted_FUNC ForceEnumPlayersCounted_ptr = nullptr; ForcePlayerStartLocation_FUNC ForcePlayerStartLocation_org = nullptr; ForcePlayerStartLocation_FUNC ForcePlayerStartLocation_ptr = nullptr; ForceQuestDialogUpdate_FUNC ForceQuestDialogUpdate_org = nullptr; ForceQuestDialogUpdate_FUNC ForceQuestDialogUpdate_ptr = nullptr; ForceRemovePlayer_FUNC ForceRemovePlayer_org = nullptr; ForceRemovePlayer_FUNC ForceRemovePlayer_ptr = nullptr; ForceUICancel_FUNC ForceUICancel_org = nullptr; ForceUICancel_FUNC ForceUICancel_ptr = nullptr; ForceUIKey_FUNC ForceUIKey_org = nullptr; ForceUIKey_FUNC ForceUIKey_ptr = nullptr; GetAIDifficulty_FUNC GetAIDifficulty_org = nullptr; GetAIDifficulty_FUNC GetAIDifficulty_ptr = nullptr; GetAbilityEffect_FUNC GetAbilityEffect_org = nullptr; GetAbilityEffect_FUNC GetAbilityEffect_ptr = nullptr; GetAbilityEffectById_FUNC GetAbilityEffectById_org = nullptr; GetAbilityEffectById_FUNC GetAbilityEffectById_ptr = nullptr; GetAbilitySound_FUNC GetAbilitySound_org = nullptr; GetAbilitySound_FUNC GetAbilitySound_ptr = nullptr; GetAbilitySoundById_FUNC GetAbilitySoundById_org = nullptr; GetAbilitySoundById_FUNC GetAbilitySoundById_ptr = nullptr; GetAiPlayer_FUNC GetAiPlayer_org = nullptr; GetAiPlayer_FUNC GetAiPlayer_ptr = nullptr; GetAllianceTarget_FUNC GetAllianceTarget_org = nullptr; GetAllianceTarget_FUNC GetAllianceTarget_ptr = nullptr; GetAllyColorFilterState_FUNC GetAllyColorFilterState_org = nullptr; GetAllyColorFilterState_FUNC GetAllyColorFilterState_ptr = nullptr; GetAttacker_FUNC GetAttacker_org = nullptr; GetAttacker_FUNC GetAttacker_ptr = nullptr; GetBuilding_FUNC GetBuilding_org = nullptr; GetBuilding_FUNC GetBuilding_ptr = nullptr; GetBuyingUnit_FUNC GetBuyingUnit_org = nullptr; GetBuyingUnit_FUNC GetBuyingUnit_ptr = nullptr; GetCameraBoundMaxX_FUNC GetCameraBoundMaxX_org = nullptr; GetCameraBoundMaxX_FUNC GetCameraBoundMaxX_ptr = nullptr; GetCameraBoundMaxY_FUNC GetCameraBoundMaxY_org = nullptr; GetCameraBoundMaxY_FUNC GetCameraBoundMaxY_ptr = nullptr; GetCameraBoundMinX_FUNC GetCameraBoundMinX_org = nullptr; GetCameraBoundMinX_FUNC GetCameraBoundMinX_ptr = nullptr; GetCameraBoundMinY_FUNC GetCameraBoundMinY_org = nullptr; GetCameraBoundMinY_FUNC GetCameraBoundMinY_ptr = nullptr; GetCameraEyePositionLoc_FUNC GetCameraEyePositionLoc_org = nullptr; GetCameraEyePositionLoc_FUNC GetCameraEyePositionLoc_ptr = nullptr; GetCameraEyePositionX_FUNC GetCameraEyePositionX_org = nullptr; GetCameraEyePositionX_FUNC GetCameraEyePositionX_ptr = nullptr; GetCameraEyePositionY_FUNC GetCameraEyePositionY_org = nullptr; GetCameraEyePositionY_FUNC GetCameraEyePositionY_ptr = nullptr; GetCameraEyePositionZ_FUNC GetCameraEyePositionZ_org = nullptr; GetCameraEyePositionZ_FUNC GetCameraEyePositionZ_ptr = nullptr; GetCameraField_FUNC GetCameraField_org = nullptr; GetCameraField_FUNC GetCameraField_ptr = nullptr; GetCameraMargin_FUNC GetCameraMargin_org = nullptr; GetCameraMargin_FUNC GetCameraMargin_ptr = nullptr; GetCameraTargetPositionLoc_FUNC GetCameraTargetPositionLoc_org = nullptr; GetCameraTargetPositionLoc_FUNC GetCameraTargetPositionLoc_ptr = nullptr; GetCameraTargetPositionX_FUNC GetCameraTargetPositionX_org = nullptr; GetCameraTargetPositionX_FUNC GetCameraTargetPositionX_ptr = nullptr; GetCameraTargetPositionY_FUNC GetCameraTargetPositionY_org = nullptr; GetCameraTargetPositionY_FUNC GetCameraTargetPositionY_ptr = nullptr; GetCameraTargetPositionZ_FUNC GetCameraTargetPositionZ_org = nullptr; GetCameraTargetPositionZ_FUNC GetCameraTargetPositionZ_ptr = nullptr; GetCancelledStructure_FUNC GetCancelledStructure_org = nullptr; GetCancelledStructure_FUNC GetCancelledStructure_ptr = nullptr; GetChangingUnit_FUNC GetChangingUnit_org = nullptr; GetChangingUnit_FUNC GetChangingUnit_ptr = nullptr; GetChangingUnitPrevOwner_FUNC GetChangingUnitPrevOwner_org = nullptr; GetChangingUnitPrevOwner_FUNC GetChangingUnitPrevOwner_ptr = nullptr; GetClickedButton_FUNC GetClickedButton_org = nullptr; GetClickedButton_FUNC GetClickedButton_ptr = nullptr; GetClickedDialog_FUNC GetClickedDialog_org = nullptr; GetClickedDialog_FUNC GetClickedDialog_ptr = nullptr; GetConstructedStructure_FUNC GetConstructedStructure_org = nullptr; GetConstructedStructure_FUNC GetConstructedStructure_ptr = nullptr; GetConstructingStructure_FUNC GetConstructingStructure_org = nullptr; GetConstructingStructure_FUNC GetConstructingStructure_ptr = nullptr; GetCreatureDensity_FUNC GetCreatureDensity_org = nullptr; GetCreatureDensity_FUNC GetCreatureDensity_ptr = nullptr; GetCreepCamp_FUNC GetCreepCamp_org = nullptr; GetCreepCamp_FUNC GetCreepCamp_ptr = nullptr; GetCreepCampFilterState_FUNC GetCreepCampFilterState_org = nullptr; GetCreepCampFilterState_FUNC GetCreepCampFilterState_ptr = nullptr; GetCustomCampaignButtonVisible_FUNC GetCustomCampaignButtonVisible_org = nullptr; GetCustomCampaignButtonVisible_FUNC GetCustomCampaignButtonVisible_ptr = nullptr; GetDecayingUnit_FUNC GetDecayingUnit_org = nullptr; GetDecayingUnit_FUNC GetDecayingUnit_ptr = nullptr; GetDefaultDifficulty_FUNC GetDefaultDifficulty_org = nullptr; GetDefaultDifficulty_FUNC GetDefaultDifficulty_ptr = nullptr; GetDestructableLife_FUNC GetDestructableLife_org = nullptr; GetDestructableLife_FUNC GetDestructableLife_ptr = nullptr; GetDestructableMaxLife_FUNC GetDestructableMaxLife_org = nullptr; GetDestructableMaxLife_FUNC GetDestructableMaxLife_ptr = nullptr; GetDestructableName_FUNC GetDestructableName_org = nullptr; GetDestructableName_FUNC GetDestructableName_ptr = nullptr; GetDestructableOccluderHeight_FUNC GetDestructableOccluderHeight_org = nullptr; GetDestructableOccluderHeight_FUNC GetDestructableOccluderHeight_ptr = nullptr; GetDestructableTypeId_FUNC GetDestructableTypeId_org = nullptr; GetDestructableTypeId_FUNC GetDestructableTypeId_ptr = nullptr; GetDestructableX_FUNC GetDestructableX_org = nullptr; GetDestructableX_FUNC GetDestructableX_ptr = nullptr; GetDestructableY_FUNC GetDestructableY_org = nullptr; GetDestructableY_FUNC GetDestructableY_ptr = nullptr; GetDetectedUnit_FUNC GetDetectedUnit_org = nullptr; GetDetectedUnit_FUNC GetDetectedUnit_ptr = nullptr; GetDyingUnit_FUNC GetDyingUnit_org = nullptr; GetDyingUnit_FUNC GetDyingUnit_ptr = nullptr; GetEnemyBase_FUNC GetEnemyBase_org = nullptr; GetEnemyBase_FUNC GetEnemyBase_ptr = nullptr; GetEnemyExpansion_FUNC GetEnemyExpansion_org = nullptr; GetEnemyExpansion_FUNC GetEnemyExpansion_ptr = nullptr; GetEnemyPower_FUNC GetEnemyPower_org = nullptr; GetEnemyPower_FUNC GetEnemyPower_ptr = nullptr; GetEnteringUnit_FUNC GetEnteringUnit_org = nullptr; GetEnteringUnit_FUNC GetEnteringUnit_ptr = nullptr; GetEnumDestructable_FUNC GetEnumDestructable_org = nullptr; GetEnumDestructable_FUNC GetEnumDestructable_ptr = nullptr; GetEnumItem_FUNC GetEnumItem_org = nullptr; GetEnumItem_FUNC GetEnumItem_ptr = nullptr; GetEnumPlayer_FUNC GetEnumPlayer_org = nullptr; GetEnumPlayer_FUNC GetEnumPlayer_ptr = nullptr; GetEnumUnit_FUNC GetEnumUnit_org = nullptr; GetEnumUnit_FUNC GetEnumUnit_ptr = nullptr; GetEventDamage_FUNC GetEventDamage_org = nullptr; GetEventDamage_FUNC GetEventDamage_ptr = nullptr; GetEventDamageSource_FUNC GetEventDamageSource_org = nullptr; GetEventDamageSource_FUNC GetEventDamageSource_ptr = nullptr; GetEventDetectingPlayer_FUNC GetEventDetectingPlayer_org = nullptr; GetEventDetectingPlayer_FUNC GetEventDetectingPlayer_ptr = nullptr; GetEventGameState_FUNC GetEventGameState_org = nullptr; GetEventGameState_FUNC GetEventGameState_ptr = nullptr; GetEventPlayerChatString_FUNC GetEventPlayerChatString_org = nullptr; GetEventPlayerChatString_FUNC GetEventPlayerChatString_ptr = nullptr; GetEventPlayerChatStringMatched_FUNC GetEventPlayerChatStringMatched_org = nullptr; GetEventPlayerChatStringMatched_FUNC GetEventPlayerChatStringMatched_ptr = nullptr; GetEventPlayerState_FUNC GetEventPlayerState_org = nullptr; GetEventPlayerState_FUNC GetEventPlayerState_ptr = nullptr; GetEventTargetUnit_FUNC GetEventTargetUnit_org = nullptr; GetEventTargetUnit_FUNC GetEventTargetUnit_ptr = nullptr; GetEventUnitState_FUNC GetEventUnitState_org = nullptr; GetEventUnitState_FUNC GetEventUnitState_ptr = nullptr; GetExpansionFoe_FUNC GetExpansionFoe_org = nullptr; GetExpansionFoe_FUNC GetExpansionFoe_ptr = nullptr; GetExpansionPeon_FUNC GetExpansionPeon_org = nullptr; GetExpansionPeon_FUNC GetExpansionPeon_ptr = nullptr; GetExpansionX_FUNC GetExpansionX_org = nullptr; GetExpansionX_FUNC GetExpansionX_ptr = nullptr; GetExpansionY_FUNC GetExpansionY_org = nullptr; GetExpansionY_FUNC GetExpansionY_ptr = nullptr; GetExpiredTimer_FUNC GetExpiredTimer_org = nullptr; GetExpiredTimer_FUNC GetExpiredTimer_ptr = nullptr; GetFilterDestructable_FUNC GetFilterDestructable_org = nullptr; GetFilterDestructable_FUNC GetFilterDestructable_ptr = nullptr; GetFilterItem_FUNC GetFilterItem_org = nullptr; GetFilterItem_FUNC GetFilterItem_ptr = nullptr; GetFilterPlayer_FUNC GetFilterPlayer_org = nullptr; GetFilterPlayer_FUNC GetFilterPlayer_ptr = nullptr; GetFilterUnit_FUNC GetFilterUnit_org = nullptr; GetFilterUnit_FUNC GetFilterUnit_ptr = nullptr; GetFloatGameState_FUNC GetFloatGameState_org = nullptr; GetFloatGameState_FUNC GetFloatGameState_ptr = nullptr; GetFoodMade_FUNC GetFoodMade_org = nullptr; GetFoodMade_FUNC GetFoodMade_ptr = nullptr; GetFoodUsed_FUNC GetFoodUsed_org = nullptr; GetFoodUsed_FUNC GetFoodUsed_ptr = nullptr; GetGameDifficulty_FUNC GetGameDifficulty_org = nullptr; GetGameDifficulty_FUNC GetGameDifficulty_ptr = nullptr; GetGamePlacement_FUNC GetGamePlacement_org = nullptr; GetGamePlacement_FUNC GetGamePlacement_ptr = nullptr; GetGameSpeed_FUNC GetGameSpeed_org = nullptr; GetGameSpeed_FUNC GetGameSpeed_ptr = nullptr; GetGameTypeSelected_FUNC GetGameTypeSelected_org = nullptr; GetGameTypeSelected_FUNC GetGameTypeSelected_ptr = nullptr; GetGoldOwned_FUNC GetGoldOwned_org = nullptr; GetGoldOwned_FUNC GetGoldOwned_ptr = nullptr; GetHandleId_FUNC GetHandleId_org = nullptr; GetHandleId_FUNC GetHandleId_ptr = nullptr; GetHeroAgi_FUNC GetHeroAgi_org = nullptr; GetHeroAgi_FUNC GetHeroAgi_ptr = nullptr; GetHeroId_FUNC GetHeroId_org = nullptr; GetHeroId_FUNC GetHeroId_ptr = nullptr; GetHeroInt_FUNC GetHeroInt_org = nullptr; GetHeroInt_FUNC GetHeroInt_ptr = nullptr; GetHeroLevel_FUNC GetHeroLevel_org = nullptr; GetHeroLevel_FUNC GetHeroLevel_ptr = nullptr; GetHeroLevelAI_FUNC GetHeroLevelAI_org = nullptr; GetHeroLevelAI_FUNC GetHeroLevelAI_ptr = nullptr; GetHeroProperName_FUNC GetHeroProperName_org = nullptr; GetHeroProperName_FUNC GetHeroProperName_ptr = nullptr; GetHeroSkillPoints_FUNC GetHeroSkillPoints_org = nullptr; GetHeroSkillPoints_FUNC GetHeroSkillPoints_ptr = nullptr; GetHeroStr_FUNC GetHeroStr_org = nullptr; GetHeroStr_FUNC GetHeroStr_ptr = nullptr; GetHeroXP_FUNC GetHeroXP_org = nullptr; GetHeroXP_FUNC GetHeroXP_ptr = nullptr; GetIntegerGameState_FUNC GetIntegerGameState_org = nullptr; GetIntegerGameState_FUNC GetIntegerGameState_ptr = nullptr; GetIssuedOrderId_FUNC GetIssuedOrderId_org = nullptr; GetIssuedOrderId_FUNC GetIssuedOrderId_ptr = nullptr; GetItemCharges_FUNC GetItemCharges_org = nullptr; GetItemCharges_FUNC GetItemCharges_ptr = nullptr; GetItemLevel_FUNC GetItemLevel_org = nullptr; GetItemLevel_FUNC GetItemLevel_ptr = nullptr; GetItemName_FUNC GetItemName_org = nullptr; GetItemName_FUNC GetItemName_ptr = nullptr; GetItemPlayer_FUNC GetItemPlayer_org = nullptr; GetItemPlayer_FUNC GetItemPlayer_ptr = nullptr; GetItemType_FUNC GetItemType_org = nullptr; GetItemType_FUNC GetItemType_ptr = nullptr; GetItemTypeId_FUNC GetItemTypeId_org = nullptr; GetItemTypeId_FUNC GetItemTypeId_ptr = nullptr; GetItemUserData_FUNC GetItemUserData_org = nullptr; GetItemUserData_FUNC GetItemUserData_ptr = nullptr; GetItemX_FUNC GetItemX_org = nullptr; GetItemX_FUNC GetItemX_ptr = nullptr; GetItemY_FUNC GetItemY_org = nullptr; GetItemY_FUNC GetItemY_ptr = nullptr; GetKillingUnit_FUNC GetKillingUnit_org = nullptr; GetKillingUnit_FUNC GetKillingUnit_ptr = nullptr; GetLastCommand_FUNC GetLastCommand_org = nullptr; GetLastCommand_FUNC GetLastCommand_ptr = nullptr; GetLastData_FUNC GetLastData_org = nullptr; GetLastData_FUNC GetLastData_ptr = nullptr; GetLearnedSkill_FUNC GetLearnedSkill_org = nullptr; GetLearnedSkill_FUNC GetLearnedSkill_ptr = nullptr; GetLearnedSkillLevel_FUNC GetLearnedSkillLevel_org = nullptr; GetLearnedSkillLevel_FUNC GetLearnedSkillLevel_ptr = nullptr; GetLearningUnit_FUNC GetLearningUnit_org = nullptr; GetLearningUnit_FUNC GetLearningUnit_ptr = nullptr; GetLeavingUnit_FUNC GetLeavingUnit_org = nullptr; GetLeavingUnit_FUNC GetLeavingUnit_ptr = nullptr; GetLevelingUnit_FUNC GetLevelingUnit_org = nullptr; GetLevelingUnit_FUNC GetLevelingUnit_ptr = nullptr; GetLightningColorA_FUNC GetLightningColorA_org = nullptr; GetLightningColorA_FUNC GetLightningColorA_ptr = nullptr; GetLightningColorB_FUNC GetLightningColorB_org = nullptr; GetLightningColorB_FUNC GetLightningColorB_ptr = nullptr; GetLightningColorG_FUNC GetLightningColorG_org = nullptr; GetLightningColorG_FUNC GetLightningColorG_ptr = nullptr; GetLightningColorR_FUNC GetLightningColorR_org = nullptr; GetLightningColorR_FUNC GetLightningColorR_ptr = nullptr; GetLoadedUnit_FUNC GetLoadedUnit_org = nullptr; GetLoadedUnit_FUNC GetLoadedUnit_ptr = nullptr; GetLocalPlayer_FUNC GetLocalPlayer_org = nullptr; GetLocalPlayer_FUNC GetLocalPlayer_ptr = nullptr; GetLocalizedHotkey_FUNC GetLocalizedHotkey_org = nullptr; GetLocalizedHotkey_FUNC GetLocalizedHotkey_ptr = nullptr; GetLocalizedString_FUNC GetLocalizedString_org = nullptr; GetLocalizedString_FUNC GetLocalizedString_ptr = nullptr; GetLocationX_FUNC GetLocationX_org = nullptr; GetLocationX_FUNC GetLocationX_ptr = nullptr; GetLocationY_FUNC GetLocationY_org = nullptr; GetLocationY_FUNC GetLocationY_ptr = nullptr; GetLocationZ_FUNC GetLocationZ_org = nullptr; GetLocationZ_FUNC GetLocationZ_ptr = nullptr; GetManipulatedItem_FUNC GetManipulatedItem_org = nullptr; GetManipulatedItem_FUNC GetManipulatedItem_ptr = nullptr; GetManipulatingUnit_FUNC GetManipulatingUnit_org = nullptr; GetManipulatingUnit_FUNC GetManipulatingUnit_ptr = nullptr; GetMegaTarget_FUNC GetMegaTarget_org = nullptr; GetMegaTarget_FUNC GetMegaTarget_ptr = nullptr; GetMinesOwned_FUNC GetMinesOwned_org = nullptr; GetMinesOwned_FUNC GetMinesOwned_ptr = nullptr; GetNextExpansion_FUNC GetNextExpansion_org = nullptr; GetNextExpansion_FUNC GetNextExpansion_ptr = nullptr; GetObjectName_FUNC GetObjectName_org = nullptr; GetObjectName_FUNC GetObjectName_ptr = nullptr; GetOrderPointLoc_FUNC GetOrderPointLoc_org = nullptr; GetOrderPointLoc_FUNC GetOrderPointLoc_ptr = nullptr; GetOrderPointX_FUNC GetOrderPointX_org = nullptr; GetOrderPointX_FUNC GetOrderPointX_ptr = nullptr; GetOrderPointY_FUNC GetOrderPointY_org = nullptr; GetOrderPointY_FUNC GetOrderPointY_ptr = nullptr; GetOrderTarget_FUNC GetOrderTarget_org = nullptr; GetOrderTarget_FUNC GetOrderTarget_ptr = nullptr; GetOrderTargetDestructable_FUNC GetOrderTargetDestructable_org = nullptr; GetOrderTargetDestructable_FUNC GetOrderTargetDestructable_ptr = nullptr; GetOrderTargetItem_FUNC GetOrderTargetItem_org = nullptr; GetOrderTargetItem_FUNC GetOrderTargetItem_ptr = nullptr; GetOrderTargetUnit_FUNC GetOrderTargetUnit_org = nullptr; GetOrderTargetUnit_FUNC GetOrderTargetUnit_ptr = nullptr; GetOrderedUnit_FUNC GetOrderedUnit_org = nullptr; GetOrderedUnit_FUNC GetOrderedUnit_ptr = nullptr; GetOwningPlayer_FUNC GetOwningPlayer_org = nullptr; GetOwningPlayer_FUNC GetOwningPlayer_ptr = nullptr; GetPlayerAlliance_FUNC GetPlayerAlliance_org = nullptr; GetPlayerAlliance_FUNC GetPlayerAlliance_ptr = nullptr; GetPlayerColor_FUNC GetPlayerColor_org = nullptr; GetPlayerColor_FUNC GetPlayerColor_ptr = nullptr; GetPlayerController_FUNC GetPlayerController_org = nullptr; GetPlayerController_FUNC GetPlayerController_ptr = nullptr; GetPlayerHandicap_FUNC GetPlayerHandicap_org = nullptr; GetPlayerHandicap_FUNC GetPlayerHandicap_ptr = nullptr; GetPlayerHandicapXP_FUNC GetPlayerHandicapXP_org = nullptr; GetPlayerHandicapXP_FUNC GetPlayerHandicapXP_ptr = nullptr; GetPlayerId_FUNC GetPlayerId_org = nullptr; GetPlayerId_FUNC GetPlayerId_ptr = nullptr; GetPlayerName_FUNC GetPlayerName_org = nullptr; GetPlayerName_FUNC GetPlayerName_ptr = nullptr; GetPlayerRace_FUNC GetPlayerRace_org = nullptr; GetPlayerRace_FUNC GetPlayerRace_ptr = nullptr; GetPlayerScore_FUNC GetPlayerScore_org = nullptr; GetPlayerScore_FUNC GetPlayerScore_ptr = nullptr; GetPlayerSelectable_FUNC GetPlayerSelectable_org = nullptr; GetPlayerSelectable_FUNC GetPlayerSelectable_ptr = nullptr; GetPlayerSlotState_FUNC GetPlayerSlotState_org = nullptr; GetPlayerSlotState_FUNC GetPlayerSlotState_ptr = nullptr; GetPlayerStartLocation_FUNC GetPlayerStartLocation_org = nullptr; GetPlayerStartLocation_FUNC GetPlayerStartLocation_ptr = nullptr; GetPlayerStartLocationX_FUNC GetPlayerStartLocationX_org = nullptr; GetPlayerStartLocationX_FUNC GetPlayerStartLocationX_ptr = nullptr; GetPlayerStartLocationY_FUNC GetPlayerStartLocationY_org = nullptr; GetPlayerStartLocationY_FUNC GetPlayerStartLocationY_ptr = nullptr; GetPlayerState_FUNC GetPlayerState_org = nullptr; GetPlayerState_FUNC GetPlayerState_ptr = nullptr; GetPlayerStructureCount_FUNC GetPlayerStructureCount_org = nullptr; GetPlayerStructureCount_FUNC GetPlayerStructureCount_ptr = nullptr; GetPlayerTaxRate_FUNC GetPlayerTaxRate_org = nullptr; GetPlayerTaxRate_FUNC GetPlayerTaxRate_ptr = nullptr; GetPlayerTeam_FUNC GetPlayerTeam_org = nullptr; GetPlayerTeam_FUNC GetPlayerTeam_ptr = nullptr; GetPlayerTechCount_FUNC GetPlayerTechCount_org = nullptr; GetPlayerTechCount_FUNC GetPlayerTechCount_ptr = nullptr; GetPlayerTechMaxAllowed_FUNC GetPlayerTechMaxAllowed_org = nullptr; GetPlayerTechMaxAllowed_FUNC GetPlayerTechMaxAllowed_ptr = nullptr; GetPlayerTechResearched_FUNC GetPlayerTechResearched_org = nullptr; GetPlayerTechResearched_FUNC GetPlayerTechResearched_ptr = nullptr; GetPlayerTypedUnitCount_FUNC GetPlayerTypedUnitCount_org = nullptr; GetPlayerTypedUnitCount_FUNC GetPlayerTypedUnitCount_ptr = nullptr; GetPlayerUnitCount_FUNC GetPlayerUnitCount_org = nullptr; GetPlayerUnitCount_FUNC GetPlayerUnitCount_ptr = nullptr; GetPlayerUnitTypeCount_FUNC GetPlayerUnitTypeCount_org = nullptr; GetPlayerUnitTypeCount_FUNC GetPlayerUnitTypeCount_ptr = nullptr; GetPlayers_FUNC GetPlayers_org = nullptr; GetPlayers_FUNC GetPlayers_ptr = nullptr; GetRandomInt_FUNC GetRandomInt_org = nullptr; GetRandomInt_FUNC GetRandomInt_ptr = nullptr; GetRandomReal_FUNC GetRandomReal_org = nullptr; GetRandomReal_FUNC GetRandomReal_ptr = nullptr; GetRectCenterX_FUNC GetRectCenterX_org = nullptr; GetRectCenterX_FUNC GetRectCenterX_ptr = nullptr; GetRectCenterY_FUNC GetRectCenterY_org = nullptr; GetRectCenterY_FUNC GetRectCenterY_ptr = nullptr; GetRectMaxX_FUNC GetRectMaxX_org = nullptr; GetRectMaxX_FUNC GetRectMaxX_ptr = nullptr; GetRectMaxY_FUNC GetRectMaxY_org = nullptr; GetRectMaxY_FUNC GetRectMaxY_ptr = nullptr; GetRectMinX_FUNC GetRectMinX_org = nullptr; GetRectMinX_FUNC GetRectMinX_ptr = nullptr; GetRectMinY_FUNC GetRectMinY_org = nullptr; GetRectMinY_FUNC GetRectMinY_ptr = nullptr; GetRescuer_FUNC GetRescuer_org = nullptr; GetRescuer_FUNC GetRescuer_ptr = nullptr; GetResearched_FUNC GetResearched_org = nullptr; GetResearched_FUNC GetResearched_ptr = nullptr; GetResearchingUnit_FUNC GetResearchingUnit_org = nullptr; GetResearchingUnit_FUNC GetResearchingUnit_ptr = nullptr; GetResourceAmount_FUNC GetResourceAmount_org = nullptr; GetResourceAmount_FUNC GetResourceAmount_ptr = nullptr; GetResourceDensity_FUNC GetResourceDensity_org = nullptr; GetResourceDensity_FUNC GetResourceDensity_ptr = nullptr; GetRevivableUnit_FUNC GetRevivableUnit_org = nullptr; GetRevivableUnit_FUNC GetRevivableUnit_ptr = nullptr; GetRevivingUnit_FUNC GetRevivingUnit_org = nullptr; GetRevivingUnit_FUNC GetRevivingUnit_ptr = nullptr; GetSaveBasicFilename_FUNC GetSaveBasicFilename_org = nullptr; GetSaveBasicFilename_FUNC GetSaveBasicFilename_ptr = nullptr; GetSellingUnit_FUNC GetSellingUnit_org = nullptr; GetSellingUnit_FUNC GetSellingUnit_ptr = nullptr; GetSoldItem_FUNC GetSoldItem_org = nullptr; GetSoldItem_FUNC GetSoldItem_ptr = nullptr; GetSoldUnit_FUNC GetSoldUnit_org = nullptr; GetSoldUnit_FUNC GetSoldUnit_ptr = nullptr; GetSoundDuration_FUNC GetSoundDuration_org = nullptr; GetSoundDuration_FUNC GetSoundDuration_ptr = nullptr; GetSoundFileDuration_FUNC GetSoundFileDuration_org = nullptr; GetSoundFileDuration_FUNC GetSoundFileDuration_ptr = nullptr; GetSoundIsLoading_FUNC GetSoundIsLoading_org = nullptr; GetSoundIsLoading_FUNC GetSoundIsLoading_ptr = nullptr; GetSoundIsPlaying_FUNC GetSoundIsPlaying_org = nullptr; GetSoundIsPlaying_FUNC GetSoundIsPlaying_ptr = nullptr; GetSpellAbility_FUNC GetSpellAbility_org = nullptr; GetSpellAbility_FUNC GetSpellAbility_ptr = nullptr; GetSpellAbilityId_FUNC GetSpellAbilityId_org = nullptr; GetSpellAbilityId_FUNC GetSpellAbilityId_ptr = nullptr; GetSpellAbilityUnit_FUNC GetSpellAbilityUnit_org = nullptr; GetSpellAbilityUnit_FUNC GetSpellAbilityUnit_ptr = nullptr; GetSpellTargetDestructable_FUNC GetSpellTargetDestructable_org = nullptr; GetSpellTargetDestructable_FUNC GetSpellTargetDestructable_ptr = nullptr; GetSpellTargetItem_FUNC GetSpellTargetItem_org = nullptr; GetSpellTargetItem_FUNC GetSpellTargetItem_ptr = nullptr; GetSpellTargetLoc_FUNC GetSpellTargetLoc_org = nullptr; GetSpellTargetLoc_FUNC GetSpellTargetLoc_ptr = nullptr; GetSpellTargetUnit_FUNC GetSpellTargetUnit_org = nullptr; GetSpellTargetUnit_FUNC GetSpellTargetUnit_ptr = nullptr; GetSpellTargetX_FUNC GetSpellTargetX_org = nullptr; GetSpellTargetX_FUNC GetSpellTargetX_ptr = nullptr; GetSpellTargetY_FUNC GetSpellTargetY_org = nullptr; GetSpellTargetY_FUNC GetSpellTargetY_ptr = nullptr; GetStartLocPrio_FUNC GetStartLocPrio_org = nullptr; GetStartLocPrio_FUNC GetStartLocPrio_ptr = nullptr; GetStartLocPrioSlot_FUNC GetStartLocPrioSlot_org = nullptr; GetStartLocPrioSlot_FUNC GetStartLocPrioSlot_ptr = nullptr; GetStartLocationLoc_FUNC GetStartLocationLoc_org = nullptr; GetStartLocationLoc_FUNC GetStartLocationLoc_ptr = nullptr; GetStartLocationX_FUNC GetStartLocationX_org = nullptr; GetStartLocationX_FUNC GetStartLocationX_ptr = nullptr; GetStartLocationY_FUNC GetStartLocationY_org = nullptr; GetStartLocationY_FUNC GetStartLocationY_ptr = nullptr; GetStoredBoolean_FUNC GetStoredBoolean_org = nullptr; GetStoredBoolean_FUNC GetStoredBoolean_ptr = nullptr; GetStoredInteger_FUNC GetStoredInteger_org = nullptr; GetStoredInteger_FUNC GetStoredInteger_ptr = nullptr; GetStoredReal_FUNC GetStoredReal_org = nullptr; GetStoredReal_FUNC GetStoredReal_ptr = nullptr; GetStoredString_FUNC GetStoredString_org = nullptr; GetStoredString_FUNC GetStoredString_ptr = nullptr; GetSummonedUnit_FUNC GetSummonedUnit_org = nullptr; GetSummonedUnit_FUNC GetSummonedUnit_ptr = nullptr; GetSummoningUnit_FUNC GetSummoningUnit_org = nullptr; GetSummoningUnit_FUNC GetSummoningUnit_ptr = nullptr; GetTeams_FUNC GetTeams_org = nullptr; GetTeams_FUNC GetTeams_ptr = nullptr; GetTerrainCliffLevel_FUNC GetTerrainCliffLevel_org = nullptr; GetTerrainCliffLevel_FUNC GetTerrainCliffLevel_ptr = nullptr; GetTerrainType_FUNC GetTerrainType_org = nullptr; GetTerrainType_FUNC GetTerrainType_ptr = nullptr; GetTerrainVariance_FUNC GetTerrainVariance_org = nullptr; GetTerrainVariance_FUNC GetTerrainVariance_ptr = nullptr; GetTimeOfDayScale_FUNC GetTimeOfDayScale_org = nullptr; GetTimeOfDayScale_FUNC GetTimeOfDayScale_ptr = nullptr; GetTournamentFinishNowPlayer_FUNC GetTournamentFinishNowPlayer_org = nullptr; GetTournamentFinishNowPlayer_FUNC GetTournamentFinishNowPlayer_ptr = nullptr; GetTournamentFinishNowRule_FUNC GetTournamentFinishNowRule_org = nullptr; GetTournamentFinishNowRule_FUNC GetTournamentFinishNowRule_ptr = nullptr; GetTournamentFinishSoonTimeRemaining_FUNC GetTournamentFinishSoonTimeRemaining_org = nullptr; GetTournamentFinishSoonTimeRemaining_FUNC GetTournamentFinishSoonTimeRemaining_ptr = nullptr; GetTournamentScore_FUNC GetTournamentScore_org = nullptr; GetTournamentScore_FUNC GetTournamentScore_ptr = nullptr; GetTownUnitCount_FUNC GetTownUnitCount_org = nullptr; GetTownUnitCount_FUNC GetTownUnitCount_ptr = nullptr; GetTrainedUnit_FUNC GetTrainedUnit_org = nullptr; GetTrainedUnit_FUNC GetTrainedUnit_ptr = nullptr; GetTrainedUnitType_FUNC GetTrainedUnitType_org = nullptr; GetTrainedUnitType_FUNC GetTrainedUnitType_ptr = nullptr; GetTransportUnit_FUNC GetTransportUnit_org = nullptr; GetTransportUnit_FUNC GetTransportUnit_ptr = nullptr; GetTriggerDestructable_FUNC GetTriggerDestructable_org = nullptr; GetTriggerDestructable_FUNC GetTriggerDestructable_ptr = nullptr; GetTriggerEvalCount_FUNC GetTriggerEvalCount_org = nullptr; GetTriggerEvalCount_FUNC GetTriggerEvalCount_ptr = nullptr; GetTriggerEventId_FUNC GetTriggerEventId_org = nullptr; GetTriggerEventId_FUNC GetTriggerEventId_ptr = nullptr; GetTriggerExecCount_FUNC GetTriggerExecCount_org = nullptr; GetTriggerExecCount_FUNC GetTriggerExecCount_ptr = nullptr; GetTriggerPlayer_FUNC GetTriggerPlayer_org = nullptr; GetTriggerPlayer_FUNC GetTriggerPlayer_ptr = nullptr; GetTriggerUnit_FUNC GetTriggerUnit_org = nullptr; GetTriggerUnit_FUNC GetTriggerUnit_ptr = nullptr; GetTriggerWidget_FUNC GetTriggerWidget_org = nullptr; GetTriggerWidget_FUNC GetTriggerWidget_ptr = nullptr; GetTriggeringRegion_FUNC GetTriggeringRegion_org = nullptr; GetTriggeringRegion_FUNC GetTriggeringRegion_ptr = nullptr; GetTriggeringTrackable_FUNC GetTriggeringTrackable_org = nullptr; GetTriggeringTrackable_FUNC GetTriggeringTrackable_ptr = nullptr; GetTriggeringTrigger_FUNC GetTriggeringTrigger_org = nullptr; GetTriggeringTrigger_FUNC GetTriggeringTrigger_ptr = nullptr; GetUnitAbilityLevel_FUNC GetUnitAbilityLevel_org = nullptr; GetUnitAbilityLevel_FUNC GetUnitAbilityLevel_ptr = nullptr; GetUnitAcquireRange_FUNC GetUnitAcquireRange_org = nullptr; GetUnitAcquireRange_FUNC GetUnitAcquireRange_ptr = nullptr; GetUnitBuildTime_FUNC GetUnitBuildTime_org = nullptr; GetUnitBuildTime_FUNC GetUnitBuildTime_ptr = nullptr; GetUnitCount_FUNC GetUnitCount_org = nullptr; GetUnitCount_FUNC GetUnitCount_ptr = nullptr; GetUnitCountDone_FUNC GetUnitCountDone_org = nullptr; GetUnitCountDone_FUNC GetUnitCountDone_ptr = nullptr; GetUnitCurrentOrder_FUNC GetUnitCurrentOrder_org = nullptr; GetUnitCurrentOrder_FUNC GetUnitCurrentOrder_ptr = nullptr; GetUnitDefaultAcquireRange_FUNC GetUnitDefaultAcquireRange_org = nullptr; GetUnitDefaultAcquireRange_FUNC GetUnitDefaultAcquireRange_ptr = nullptr; GetUnitDefaultFlyHeight_FUNC GetUnitDefaultFlyHeight_org = nullptr; GetUnitDefaultFlyHeight_FUNC GetUnitDefaultFlyHeight_ptr = nullptr; GetUnitDefaultMoveSpeed_FUNC GetUnitDefaultMoveSpeed_org = nullptr; GetUnitDefaultMoveSpeed_FUNC GetUnitDefaultMoveSpeed_ptr = nullptr; GetUnitDefaultPropWindow_FUNC GetUnitDefaultPropWindow_org = nullptr; GetUnitDefaultPropWindow_FUNC GetUnitDefaultPropWindow_ptr = nullptr; GetUnitDefaultTurnSpeed_FUNC GetUnitDefaultTurnSpeed_org = nullptr; GetUnitDefaultTurnSpeed_FUNC GetUnitDefaultTurnSpeed_ptr = nullptr; GetUnitFacing_FUNC GetUnitFacing_org = nullptr; GetUnitFacing_FUNC GetUnitFacing_ptr = nullptr; GetUnitFlyHeight_FUNC GetUnitFlyHeight_org = nullptr; GetUnitFlyHeight_FUNC GetUnitFlyHeight_ptr = nullptr; GetUnitFoodMade_FUNC GetUnitFoodMade_org = nullptr; GetUnitFoodMade_FUNC GetUnitFoodMade_ptr = nullptr; GetUnitFoodUsed_FUNC GetUnitFoodUsed_org = nullptr; GetUnitFoodUsed_FUNC GetUnitFoodUsed_ptr = nullptr; GetUnitGoldCost_FUNC GetUnitGoldCost_org = nullptr; GetUnitGoldCost_FUNC GetUnitGoldCost_ptr = nullptr; GetUnitLevel_FUNC GetUnitLevel_org = nullptr; GetUnitLevel_FUNC GetUnitLevel_ptr = nullptr; GetUnitLoc_FUNC GetUnitLoc_org = nullptr; GetUnitLoc_FUNC GetUnitLoc_ptr = nullptr; GetUnitMoveSpeed_FUNC GetUnitMoveSpeed_org = nullptr; GetUnitMoveSpeed_FUNC GetUnitMoveSpeed_ptr = nullptr; GetUnitName_FUNC GetUnitName_org = nullptr; GetUnitName_FUNC GetUnitName_ptr = nullptr; GetUnitPointValue_FUNC GetUnitPointValue_org = nullptr; GetUnitPointValue_FUNC GetUnitPointValue_ptr = nullptr; GetUnitPointValueByType_FUNC GetUnitPointValueByType_org = nullptr; GetUnitPointValueByType_FUNC GetUnitPointValueByType_ptr = nullptr; GetUnitPropWindow_FUNC GetUnitPropWindow_org = nullptr; GetUnitPropWindow_FUNC GetUnitPropWindow_ptr = nullptr; GetUnitRace_FUNC GetUnitRace_org = nullptr; GetUnitRace_FUNC GetUnitRace_ptr = nullptr; GetUnitRallyDestructable_FUNC GetUnitRallyDestructable_org = nullptr; GetUnitRallyDestructable_FUNC GetUnitRallyDestructable_ptr = nullptr; GetUnitRallyPoint_FUNC GetUnitRallyPoint_org = nullptr; GetUnitRallyPoint_FUNC GetUnitRallyPoint_ptr = nullptr; GetUnitRallyUnit_FUNC GetUnitRallyUnit_org = nullptr; GetUnitRallyUnit_FUNC GetUnitRallyUnit_ptr = nullptr; GetUnitState_FUNC GetUnitState_org = nullptr; GetUnitState_FUNC GetUnitState_ptr = nullptr; GetUnitTurnSpeed_FUNC GetUnitTurnSpeed_org = nullptr; GetUnitTurnSpeed_FUNC GetUnitTurnSpeed_ptr = nullptr; GetUnitTypeId_FUNC GetUnitTypeId_org = nullptr; GetUnitTypeId_FUNC GetUnitTypeId_ptr = nullptr; GetUnitUserData_FUNC GetUnitUserData_org = nullptr; GetUnitUserData_FUNC GetUnitUserData_ptr = nullptr; GetUnitWoodCost_FUNC GetUnitWoodCost_org = nullptr; GetUnitWoodCost_FUNC GetUnitWoodCost_ptr = nullptr; GetUnitX_FUNC GetUnitX_org = nullptr; GetUnitX_FUNC GetUnitX_ptr = nullptr; GetUnitY_FUNC GetUnitY_org = nullptr; GetUnitY_FUNC GetUnitY_ptr = nullptr; GetUpgradeGoldCost_FUNC GetUpgradeGoldCost_org = nullptr; GetUpgradeGoldCost_FUNC GetUpgradeGoldCost_ptr = nullptr; GetUpgradeLevel_FUNC GetUpgradeLevel_org = nullptr; GetUpgradeLevel_FUNC GetUpgradeLevel_ptr = nullptr; GetUpgradeWoodCost_FUNC GetUpgradeWoodCost_org = nullptr; GetUpgradeWoodCost_FUNC GetUpgradeWoodCost_ptr = nullptr; GetWidgetLife_FUNC GetWidgetLife_org = nullptr; GetWidgetLife_FUNC GetWidgetLife_ptr = nullptr; GetWidgetX_FUNC GetWidgetX_org = nullptr; GetWidgetX_FUNC GetWidgetX_ptr = nullptr; GetWidgetY_FUNC GetWidgetY_org = nullptr; GetWidgetY_FUNC GetWidgetY_ptr = nullptr; GetWinningPlayer_FUNC GetWinningPlayer_org = nullptr; GetWinningPlayer_FUNC GetWinningPlayer_ptr = nullptr; GetWorldBounds_FUNC GetWorldBounds_org = nullptr; GetWorldBounds_FUNC GetWorldBounds_ptr = nullptr; GroupAddUnit_FUNC GroupAddUnit_org = nullptr; GroupAddUnit_FUNC GroupAddUnit_ptr = nullptr; GroupClear_FUNC GroupClear_org = nullptr; GroupClear_FUNC GroupClear_ptr = nullptr; GroupEnumUnitsInRange_FUNC GroupEnumUnitsInRange_org = nullptr; GroupEnumUnitsInRange_FUNC GroupEnumUnitsInRange_ptr = nullptr; GroupEnumUnitsInRangeCounted_FUNC GroupEnumUnitsInRangeCounted_org = nullptr; GroupEnumUnitsInRangeCounted_FUNC GroupEnumUnitsInRangeCounted_ptr = nullptr; GroupEnumUnitsInRangeOfLoc_FUNC GroupEnumUnitsInRangeOfLoc_org = nullptr; GroupEnumUnitsInRangeOfLoc_FUNC GroupEnumUnitsInRangeOfLoc_ptr = nullptr; GroupEnumUnitsInRangeOfLocCounted_FUNC GroupEnumUnitsInRangeOfLocCounted_org = nullptr; GroupEnumUnitsInRangeOfLocCounted_FUNC GroupEnumUnitsInRangeOfLocCounted_ptr = nullptr; GroupEnumUnitsInRect_FUNC GroupEnumUnitsInRect_org = nullptr; GroupEnumUnitsInRect_FUNC GroupEnumUnitsInRect_ptr = nullptr; GroupEnumUnitsInRectCounted_FUNC GroupEnumUnitsInRectCounted_org = nullptr; GroupEnumUnitsInRectCounted_FUNC GroupEnumUnitsInRectCounted_ptr = nullptr; GroupEnumUnitsOfPlayer_FUNC GroupEnumUnitsOfPlayer_org = nullptr; GroupEnumUnitsOfPlayer_FUNC GroupEnumUnitsOfPlayer_ptr = nullptr; GroupEnumUnitsOfType_FUNC GroupEnumUnitsOfType_org = nullptr; GroupEnumUnitsOfType_FUNC GroupEnumUnitsOfType_ptr = nullptr; GroupEnumUnitsOfTypeCounted_FUNC GroupEnumUnitsOfTypeCounted_org = nullptr; GroupEnumUnitsOfTypeCounted_FUNC GroupEnumUnitsOfTypeCounted_ptr = nullptr; GroupEnumUnitsSelected_FUNC GroupEnumUnitsSelected_org = nullptr; GroupEnumUnitsSelected_FUNC GroupEnumUnitsSelected_ptr = nullptr; GroupImmediateOrder_FUNC GroupImmediateOrder_org = nullptr; GroupImmediateOrder_FUNC GroupImmediateOrder_ptr = nullptr; GroupImmediateOrderById_FUNC GroupImmediateOrderById_org = nullptr; GroupImmediateOrderById_FUNC GroupImmediateOrderById_ptr = nullptr; GroupPointOrder_FUNC GroupPointOrder_org = nullptr; GroupPointOrder_FUNC GroupPointOrder_ptr = nullptr; GroupPointOrderById_FUNC GroupPointOrderById_org = nullptr; GroupPointOrderById_FUNC GroupPointOrderById_ptr = nullptr; GroupPointOrderByIdLoc_FUNC GroupPointOrderByIdLoc_org = nullptr; GroupPointOrderByIdLoc_FUNC GroupPointOrderByIdLoc_ptr = nullptr; GroupPointOrderLoc_FUNC GroupPointOrderLoc_org = nullptr; GroupPointOrderLoc_FUNC GroupPointOrderLoc_ptr = nullptr; GroupRemoveUnit_FUNC GroupRemoveUnit_org = nullptr; GroupRemoveUnit_FUNC GroupRemoveUnit_ptr = nullptr; GroupTargetOrder_FUNC GroupTargetOrder_org = nullptr; GroupTargetOrder_FUNC GroupTargetOrder_ptr = nullptr; GroupTargetOrderById_FUNC GroupTargetOrderById_org = nullptr; GroupTargetOrderById_FUNC GroupTargetOrderById_ptr = nullptr; GroupTimedLife_FUNC GroupTimedLife_org = nullptr; GroupTimedLife_FUNC GroupTimedLife_ptr = nullptr; HarvestGold_FUNC HarvestGold_org = nullptr; HarvestGold_FUNC HarvestGold_ptr = nullptr; HarvestWood_FUNC HarvestWood_org = nullptr; HarvestWood_FUNC HarvestWood_ptr = nullptr; HaveSavedBoolean_FUNC HaveSavedBoolean_org = nullptr; HaveSavedBoolean_FUNC HaveSavedBoolean_ptr = nullptr; HaveSavedHandle_FUNC HaveSavedHandle_org = nullptr; HaveSavedHandle_FUNC HaveSavedHandle_ptr = nullptr; HaveSavedInteger_FUNC HaveSavedInteger_org = nullptr; HaveSavedInteger_FUNC HaveSavedInteger_ptr = nullptr; HaveSavedReal_FUNC HaveSavedReal_org = nullptr; HaveSavedReal_FUNC HaveSavedReal_ptr = nullptr; HaveSavedString_FUNC HaveSavedString_org = nullptr; HaveSavedString_FUNC HaveSavedString_ptr = nullptr; HaveStoredBoolean_FUNC HaveStoredBoolean_org = nullptr; HaveStoredBoolean_FUNC HaveStoredBoolean_ptr = nullptr; HaveStoredInteger_FUNC HaveStoredInteger_org = nullptr; HaveStoredInteger_FUNC HaveStoredInteger_ptr = nullptr; HaveStoredReal_FUNC HaveStoredReal_org = nullptr; HaveStoredReal_FUNC HaveStoredReal_ptr = nullptr; HaveStoredString_FUNC HaveStoredString_org = nullptr; HaveStoredString_FUNC HaveStoredString_ptr = nullptr; HaveStoredUnit_FUNC HaveStoredUnit_org = nullptr; HaveStoredUnit_FUNC HaveStoredUnit_ptr = nullptr; I2R_FUNC I2R_org = nullptr; I2R_FUNC I2R_ptr = nullptr; I2S_FUNC I2S_org = nullptr; I2S_FUNC I2S_ptr = nullptr; IgnoredUnits_FUNC IgnoredUnits_org = nullptr; IgnoredUnits_FUNC IgnoredUnits_ptr = nullptr; IncUnitAbilityLevel_FUNC IncUnitAbilityLevel_org = nullptr; IncUnitAbilityLevel_FUNC IncUnitAbilityLevel_ptr = nullptr; InitAssault_FUNC InitAssault_org = nullptr; InitAssault_FUNC InitAssault_ptr = nullptr; InitGameCache_FUNC InitGameCache_org = nullptr; InitGameCache_FUNC InitGameCache_ptr = nullptr; InitHashtable_FUNC InitHashtable_org = nullptr; InitHashtable_FUNC InitHashtable_ptr = nullptr; IsCineFilterDisplayed_FUNC IsCineFilterDisplayed_org = nullptr; IsCineFilterDisplayed_FUNC IsCineFilterDisplayed_ptr = nullptr; IsDestructableInvulnerable_FUNC IsDestructableInvulnerable_org = nullptr; IsDestructableInvulnerable_FUNC IsDestructableInvulnerable_ptr = nullptr; IsFogEnabled_FUNC IsFogEnabled_org = nullptr; IsFogEnabled_FUNC IsFogEnabled_ptr = nullptr; IsFogMaskEnabled_FUNC IsFogMaskEnabled_org = nullptr; IsFogMaskEnabled_FUNC IsFogMaskEnabled_ptr = nullptr; IsFoggedToPlayer_FUNC IsFoggedToPlayer_org = nullptr; IsFoggedToPlayer_FUNC IsFoggedToPlayer_ptr = nullptr; IsGameTypeSupported_FUNC IsGameTypeSupported_org = nullptr; IsGameTypeSupported_FUNC IsGameTypeSupported_ptr = nullptr; IsHeroUnitId_FUNC IsHeroUnitId_org = nullptr; IsHeroUnitId_FUNC IsHeroUnitId_ptr = nullptr; IsItemIdPawnable_FUNC IsItemIdPawnable_org = nullptr; IsItemIdPawnable_FUNC IsItemIdPawnable_ptr = nullptr; IsItemIdPowerup_FUNC IsItemIdPowerup_org = nullptr; IsItemIdPowerup_FUNC IsItemIdPowerup_ptr = nullptr; IsItemIdSellable_FUNC IsItemIdSellable_org = nullptr; IsItemIdSellable_FUNC IsItemIdSellable_ptr = nullptr; IsItemInvulnerable_FUNC IsItemInvulnerable_org = nullptr; IsItemInvulnerable_FUNC IsItemInvulnerable_ptr = nullptr; IsItemOwned_FUNC IsItemOwned_org = nullptr; IsItemOwned_FUNC IsItemOwned_ptr = nullptr; IsItemPawnable_FUNC IsItemPawnable_org = nullptr; IsItemPawnable_FUNC IsItemPawnable_ptr = nullptr; IsItemPowerup_FUNC IsItemPowerup_org = nullptr; IsItemPowerup_FUNC IsItemPowerup_ptr = nullptr; IsItemSellable_FUNC IsItemSellable_org = nullptr; IsItemSellable_FUNC IsItemSellable_ptr = nullptr; IsItemVisible_FUNC IsItemVisible_org = nullptr; IsItemVisible_FUNC IsItemVisible_ptr = nullptr; IsLeaderboardDisplayed_FUNC IsLeaderboardDisplayed_org = nullptr; IsLeaderboardDisplayed_FUNC IsLeaderboardDisplayed_ptr = nullptr; IsLocationFoggedToPlayer_FUNC IsLocationFoggedToPlayer_org = nullptr; IsLocationFoggedToPlayer_FUNC IsLocationFoggedToPlayer_ptr = nullptr; IsLocationInRegion_FUNC IsLocationInRegion_org = nullptr; IsLocationInRegion_FUNC IsLocationInRegion_ptr = nullptr; IsLocationMaskedToPlayer_FUNC IsLocationMaskedToPlayer_org = nullptr; IsLocationMaskedToPlayer_FUNC IsLocationMaskedToPlayer_ptr = nullptr; IsLocationVisibleToPlayer_FUNC IsLocationVisibleToPlayer_org = nullptr; IsLocationVisibleToPlayer_FUNC IsLocationVisibleToPlayer_ptr = nullptr; IsMapFlagSet_FUNC IsMapFlagSet_org = nullptr; IsMapFlagSet_FUNC IsMapFlagSet_ptr = nullptr; IsMaskedToPlayer_FUNC IsMaskedToPlayer_org = nullptr; IsMaskedToPlayer_FUNC IsMaskedToPlayer_ptr = nullptr; IsMultiboardDisplayed_FUNC IsMultiboardDisplayed_org = nullptr; IsMultiboardDisplayed_FUNC IsMultiboardDisplayed_ptr = nullptr; IsMultiboardMinimized_FUNC IsMultiboardMinimized_org = nullptr; IsMultiboardMinimized_FUNC IsMultiboardMinimized_ptr = nullptr; IsNoDefeatCheat_FUNC IsNoDefeatCheat_org = nullptr; IsNoDefeatCheat_FUNC IsNoDefeatCheat_ptr = nullptr; IsNoVictoryCheat_FUNC IsNoVictoryCheat_org = nullptr; IsNoVictoryCheat_FUNC IsNoVictoryCheat_ptr = nullptr; IsPlayerAlly_FUNC IsPlayerAlly_org = nullptr; IsPlayerAlly_FUNC IsPlayerAlly_ptr = nullptr; IsPlayerEnemy_FUNC IsPlayerEnemy_org = nullptr; IsPlayerEnemy_FUNC IsPlayerEnemy_ptr = nullptr; IsPlayerInForce_FUNC IsPlayerInForce_org = nullptr; IsPlayerInForce_FUNC IsPlayerInForce_ptr = nullptr; IsPlayerObserver_FUNC IsPlayerObserver_org = nullptr; IsPlayerObserver_FUNC IsPlayerObserver_ptr = nullptr; IsPlayerRacePrefSet_FUNC IsPlayerRacePrefSet_org = nullptr; IsPlayerRacePrefSet_FUNC IsPlayerRacePrefSet_ptr = nullptr; IsPointBlighted_FUNC IsPointBlighted_org = nullptr; IsPointBlighted_FUNC IsPointBlighted_ptr = nullptr; IsPointInRegion_FUNC IsPointInRegion_org = nullptr; IsPointInRegion_FUNC IsPointInRegion_ptr = nullptr; IsQuestCompleted_FUNC IsQuestCompleted_org = nullptr; IsQuestCompleted_FUNC IsQuestCompleted_ptr = nullptr; IsQuestDiscovered_FUNC IsQuestDiscovered_org = nullptr; IsQuestDiscovered_FUNC IsQuestDiscovered_ptr = nullptr; IsQuestEnabled_FUNC IsQuestEnabled_org = nullptr; IsQuestEnabled_FUNC IsQuestEnabled_ptr = nullptr; IsQuestFailed_FUNC IsQuestFailed_org = nullptr; IsQuestFailed_FUNC IsQuestFailed_ptr = nullptr; IsQuestItemCompleted_FUNC IsQuestItemCompleted_org = nullptr; IsQuestItemCompleted_FUNC IsQuestItemCompleted_ptr = nullptr; IsQuestRequired_FUNC IsQuestRequired_org = nullptr; IsQuestRequired_FUNC IsQuestRequired_ptr = nullptr; IsSuspendedXP_FUNC IsSuspendedXP_org = nullptr; IsSuspendedXP_FUNC IsSuspendedXP_ptr = nullptr; IsTerrainPathable_FUNC IsTerrainPathable_org = nullptr; IsTerrainPathable_FUNC IsTerrainPathable_ptr = nullptr; IsTimerDialogDisplayed_FUNC IsTimerDialogDisplayed_org = nullptr; IsTimerDialogDisplayed_FUNC IsTimerDialogDisplayed_ptr = nullptr; IsTowered_FUNC IsTowered_org = nullptr; IsTowered_FUNC IsTowered_ptr = nullptr; IsTriggerEnabled_FUNC IsTriggerEnabled_org = nullptr; IsTriggerEnabled_FUNC IsTriggerEnabled_ptr = nullptr; IsTriggerWaitOnSleeps_FUNC IsTriggerWaitOnSleeps_org = nullptr; IsTriggerWaitOnSleeps_FUNC IsTriggerWaitOnSleeps_ptr = nullptr; IsUnit_FUNC IsUnit_org = nullptr; IsUnit_FUNC IsUnit_ptr = nullptr; IsUnitAlly_FUNC IsUnitAlly_org = nullptr; IsUnitAlly_FUNC IsUnitAlly_ptr = nullptr; IsUnitDetected_FUNC IsUnitDetected_org = nullptr; IsUnitDetected_FUNC IsUnitDetected_ptr = nullptr; IsUnitEnemy_FUNC IsUnitEnemy_org = nullptr; IsUnitEnemy_FUNC IsUnitEnemy_ptr = nullptr; IsUnitFogged_FUNC IsUnitFogged_org = nullptr; IsUnitFogged_FUNC IsUnitFogged_ptr = nullptr; IsUnitHidden_FUNC IsUnitHidden_org = nullptr; IsUnitHidden_FUNC IsUnitHidden_ptr = nullptr; IsUnitIdType_FUNC IsUnitIdType_org = nullptr; IsUnitIdType_FUNC IsUnitIdType_ptr = nullptr; IsUnitIllusion_FUNC IsUnitIllusion_org = nullptr; IsUnitIllusion_FUNC IsUnitIllusion_ptr = nullptr; IsUnitInForce_FUNC IsUnitInForce_org = nullptr; IsUnitInForce_FUNC IsUnitInForce_ptr = nullptr; IsUnitInGroup_FUNC IsUnitInGroup_org = nullptr; IsUnitInGroup_FUNC IsUnitInGroup_ptr = nullptr; IsUnitInRange_FUNC IsUnitInRange_org = nullptr; IsUnitInRange_FUNC IsUnitInRange_ptr = nullptr; IsUnitInRangeLoc_FUNC IsUnitInRangeLoc_org = nullptr; IsUnitInRangeLoc_FUNC IsUnitInRangeLoc_ptr = nullptr; IsUnitInRangeXY_FUNC IsUnitInRangeXY_org = nullptr; IsUnitInRangeXY_FUNC IsUnitInRangeXY_ptr = nullptr; IsUnitInRegion_FUNC IsUnitInRegion_org = nullptr; IsUnitInRegion_FUNC IsUnitInRegion_ptr = nullptr; IsUnitInTransport_FUNC IsUnitInTransport_org = nullptr; IsUnitInTransport_FUNC IsUnitInTransport_ptr = nullptr; IsUnitInvisible_FUNC IsUnitInvisible_org = nullptr; IsUnitInvisible_FUNC IsUnitInvisible_ptr = nullptr; IsUnitLoaded_FUNC IsUnitLoaded_org = nullptr; IsUnitLoaded_FUNC IsUnitLoaded_ptr = nullptr; IsUnitMasked_FUNC IsUnitMasked_org = nullptr; IsUnitMasked_FUNC IsUnitMasked_ptr = nullptr; IsUnitOwnedByPlayer_FUNC IsUnitOwnedByPlayer_org = nullptr; IsUnitOwnedByPlayer_FUNC IsUnitOwnedByPlayer_ptr = nullptr; IsUnitPaused_FUNC IsUnitPaused_org = nullptr; IsUnitPaused_FUNC IsUnitPaused_ptr = nullptr; IsUnitRace_FUNC IsUnitRace_org = nullptr; IsUnitRace_FUNC IsUnitRace_ptr = nullptr; IsUnitSelected_FUNC IsUnitSelected_org = nullptr; IsUnitSelected_FUNC IsUnitSelected_ptr = nullptr; IsUnitType_FUNC IsUnitType_org = nullptr; IsUnitType_FUNC IsUnitType_ptr = nullptr; IsUnitVisible_FUNC IsUnitVisible_org = nullptr; IsUnitVisible_FUNC IsUnitVisible_ptr = nullptr; IsVisibleToPlayer_FUNC IsVisibleToPlayer_org = nullptr; IsVisibleToPlayer_FUNC IsVisibleToPlayer_ptr = nullptr; IssueBuildOrder_FUNC IssueBuildOrder_org = nullptr; IssueBuildOrder_FUNC IssueBuildOrder_ptr = nullptr; IssueBuildOrderById_FUNC IssueBuildOrderById_org = nullptr; IssueBuildOrderById_FUNC IssueBuildOrderById_ptr = nullptr; IssueImmediateOrder_FUNC IssueImmediateOrder_org = nullptr; IssueImmediateOrder_FUNC IssueImmediateOrder_ptr = nullptr; IssueImmediateOrderById_FUNC IssueImmediateOrderById_org = nullptr; IssueImmediateOrderById_FUNC IssueImmediateOrderById_ptr = nullptr; IssueInstantPointOrder_FUNC IssueInstantPointOrder_org = nullptr; IssueInstantPointOrder_FUNC IssueInstantPointOrder_ptr = nullptr; IssueInstantPointOrderById_FUNC IssueInstantPointOrderById_org = nullptr; IssueInstantPointOrderById_FUNC IssueInstantPointOrderById_ptr = nullptr; IssueInstantTargetOrder_FUNC IssueInstantTargetOrder_org = nullptr; IssueInstantTargetOrder_FUNC IssueInstantTargetOrder_ptr = nullptr; IssueInstantTargetOrderById_FUNC IssueInstantTargetOrderById_org = nullptr; IssueInstantTargetOrderById_FUNC IssueInstantTargetOrderById_ptr = nullptr; IssueNeutralImmediateOrder_FUNC IssueNeutralImmediateOrder_org = nullptr; IssueNeutralImmediateOrder_FUNC IssueNeutralImmediateOrder_ptr = nullptr; IssueNeutralImmediateOrderById_FUNC IssueNeutralImmediateOrderById_org = nullptr; IssueNeutralImmediateOrderById_FUNC IssueNeutralImmediateOrderById_ptr = nullptr; IssueNeutralPointOrder_FUNC IssueNeutralPointOrder_org = nullptr; IssueNeutralPointOrder_FUNC IssueNeutralPointOrder_ptr = nullptr; IssueNeutralPointOrderById_FUNC IssueNeutralPointOrderById_org = nullptr; IssueNeutralPointOrderById_FUNC IssueNeutralPointOrderById_ptr = nullptr; IssueNeutralTargetOrder_FUNC IssueNeutralTargetOrder_org = nullptr; IssueNeutralTargetOrder_FUNC IssueNeutralTargetOrder_ptr = nullptr; IssueNeutralTargetOrderById_FUNC IssueNeutralTargetOrderById_org = nullptr; IssueNeutralTargetOrderById_FUNC IssueNeutralTargetOrderById_ptr = nullptr; IssuePointOrder_FUNC IssuePointOrder_org = nullptr; IssuePointOrder_FUNC IssuePointOrder_ptr = nullptr; IssuePointOrderById_FUNC IssuePointOrderById_org = nullptr; IssuePointOrderById_FUNC IssuePointOrderById_ptr = nullptr; IssuePointOrderByIdLoc_FUNC IssuePointOrderByIdLoc_org = nullptr; IssuePointOrderByIdLoc_FUNC IssuePointOrderByIdLoc_ptr = nullptr; IssuePointOrderLoc_FUNC IssuePointOrderLoc_org = nullptr; IssuePointOrderLoc_FUNC IssuePointOrderLoc_ptr = nullptr; IssueTargetOrder_FUNC IssueTargetOrder_org = nullptr; IssueTargetOrder_FUNC IssueTargetOrder_ptr = nullptr; IssueTargetOrderById_FUNC IssueTargetOrderById_org = nullptr; IssueTargetOrderById_FUNC IssueTargetOrderById_ptr = nullptr; ItemPoolAddItemType_FUNC ItemPoolAddItemType_org = nullptr; ItemPoolAddItemType_FUNC ItemPoolAddItemType_ptr = nullptr; ItemPoolRemoveItemType_FUNC ItemPoolRemoveItemType_org = nullptr; ItemPoolRemoveItemType_FUNC ItemPoolRemoveItemType_ptr = nullptr; KillDestructable_FUNC KillDestructable_org = nullptr; KillDestructable_FUNC KillDestructable_ptr = nullptr; KillSoundWhenDone_FUNC KillSoundWhenDone_org = nullptr; KillSoundWhenDone_FUNC KillSoundWhenDone_ptr = nullptr; KillUnit_FUNC KillUnit_org = nullptr; KillUnit_FUNC KillUnit_ptr = nullptr; LeaderboardAddItem_FUNC LeaderboardAddItem_org = nullptr; LeaderboardAddItem_FUNC LeaderboardAddItem_ptr = nullptr; LeaderboardClear_FUNC LeaderboardClear_org = nullptr; LeaderboardClear_FUNC LeaderboardClear_ptr = nullptr; LeaderboardDisplay_FUNC LeaderboardDisplay_org = nullptr; LeaderboardDisplay_FUNC LeaderboardDisplay_ptr = nullptr; LeaderboardGetItemCount_FUNC LeaderboardGetItemCount_org = nullptr; LeaderboardGetItemCount_FUNC LeaderboardGetItemCount_ptr = nullptr; LeaderboardGetLabelText_FUNC LeaderboardGetLabelText_org = nullptr; LeaderboardGetLabelText_FUNC LeaderboardGetLabelText_ptr = nullptr; LeaderboardGetPlayerIndex_FUNC LeaderboardGetPlayerIndex_org = nullptr; LeaderboardGetPlayerIndex_FUNC LeaderboardGetPlayerIndex_ptr = nullptr; LeaderboardHasPlayerItem_FUNC LeaderboardHasPlayerItem_org = nullptr; LeaderboardHasPlayerItem_FUNC LeaderboardHasPlayerItem_ptr = nullptr; LeaderboardRemoveItem_FUNC LeaderboardRemoveItem_org = nullptr; LeaderboardRemoveItem_FUNC LeaderboardRemoveItem_ptr = nullptr; LeaderboardRemovePlayerItem_FUNC LeaderboardRemovePlayerItem_org = nullptr; LeaderboardRemovePlayerItem_FUNC LeaderboardRemovePlayerItem_ptr = nullptr; LeaderboardSetItemLabel_FUNC LeaderboardSetItemLabel_org = nullptr; LeaderboardSetItemLabel_FUNC LeaderboardSetItemLabel_ptr = nullptr; LeaderboardSetItemLabelColor_FUNC LeaderboardSetItemLabelColor_org = nullptr; LeaderboardSetItemLabelColor_FUNC LeaderboardSetItemLabelColor_ptr = nullptr; LeaderboardSetItemStyle_FUNC LeaderboardSetItemStyle_org = nullptr; LeaderboardSetItemStyle_FUNC LeaderboardSetItemStyle_ptr = nullptr; LeaderboardSetItemValue_FUNC LeaderboardSetItemValue_org = nullptr; LeaderboardSetItemValue_FUNC LeaderboardSetItemValue_ptr = nullptr; LeaderboardSetItemValueColor_FUNC LeaderboardSetItemValueColor_org = nullptr; LeaderboardSetItemValueColor_FUNC LeaderboardSetItemValueColor_ptr = nullptr; LeaderboardSetLabel_FUNC LeaderboardSetLabel_org = nullptr; LeaderboardSetLabel_FUNC LeaderboardSetLabel_ptr = nullptr; LeaderboardSetLabelColor_FUNC LeaderboardSetLabelColor_org = nullptr; LeaderboardSetLabelColor_FUNC LeaderboardSetLabelColor_ptr = nullptr; LeaderboardSetSizeByItemCount_FUNC LeaderboardSetSizeByItemCount_org = nullptr; LeaderboardSetSizeByItemCount_FUNC LeaderboardSetSizeByItemCount_ptr = nullptr; LeaderboardSetStyle_FUNC LeaderboardSetStyle_org = nullptr; LeaderboardSetStyle_FUNC LeaderboardSetStyle_ptr = nullptr; LeaderboardSetValueColor_FUNC LeaderboardSetValueColor_org = nullptr; LeaderboardSetValueColor_FUNC LeaderboardSetValueColor_ptr = nullptr; LeaderboardSortItemsByLabel_FUNC LeaderboardSortItemsByLabel_org = nullptr; LeaderboardSortItemsByLabel_FUNC LeaderboardSortItemsByLabel_ptr = nullptr; LeaderboardSortItemsByPlayer_FUNC LeaderboardSortItemsByPlayer_org = nullptr; LeaderboardSortItemsByPlayer_FUNC LeaderboardSortItemsByPlayer_ptr = nullptr; LeaderboardSortItemsByValue_FUNC LeaderboardSortItemsByValue_org = nullptr; LeaderboardSortItemsByValue_FUNC LeaderboardSortItemsByValue_ptr = nullptr; LoadAbilityHandle_FUNC LoadAbilityHandle_org = nullptr; LoadAbilityHandle_FUNC LoadAbilityHandle_ptr = nullptr; LoadBoolean_FUNC LoadBoolean_org = nullptr; LoadBoolean_FUNC LoadBoolean_ptr = nullptr; LoadBooleanExprHandle_FUNC LoadBooleanExprHandle_org = nullptr; LoadBooleanExprHandle_FUNC LoadBooleanExprHandle_ptr = nullptr; LoadButtonHandle_FUNC LoadButtonHandle_org = nullptr; LoadButtonHandle_FUNC LoadButtonHandle_ptr = nullptr; LoadDefeatConditionHandle_FUNC LoadDefeatConditionHandle_org = nullptr; LoadDefeatConditionHandle_FUNC LoadDefeatConditionHandle_ptr = nullptr; LoadDestructableHandle_FUNC LoadDestructableHandle_org = nullptr; LoadDestructableHandle_FUNC LoadDestructableHandle_ptr = nullptr; LoadDialogHandle_FUNC LoadDialogHandle_org = nullptr; LoadDialogHandle_FUNC LoadDialogHandle_ptr = nullptr; LoadEffectHandle_FUNC LoadEffectHandle_org = nullptr; LoadEffectHandle_FUNC LoadEffectHandle_ptr = nullptr; LoadFogModifierHandle_FUNC LoadFogModifierHandle_org = nullptr; LoadFogModifierHandle_FUNC LoadFogModifierHandle_ptr = nullptr; LoadFogStateHandle_FUNC LoadFogStateHandle_org = nullptr; LoadFogStateHandle_FUNC LoadFogStateHandle_ptr = nullptr; LoadForceHandle_FUNC LoadForceHandle_org = nullptr; LoadForceHandle_FUNC LoadForceHandle_ptr = nullptr; LoadGame_FUNC LoadGame_org = nullptr; LoadGame_FUNC LoadGame_ptr = nullptr; LoadGroupHandle_FUNC LoadGroupHandle_org = nullptr; LoadGroupHandle_FUNC LoadGroupHandle_ptr = nullptr; LoadHashtableHandle_FUNC LoadHashtableHandle_org = nullptr; LoadHashtableHandle_FUNC LoadHashtableHandle_ptr = nullptr; LoadImageHandle_FUNC LoadImageHandle_org = nullptr; LoadImageHandle_FUNC LoadImageHandle_ptr = nullptr; LoadInteger_FUNC LoadInteger_org = nullptr; LoadInteger_FUNC LoadInteger_ptr = nullptr; LoadItemHandle_FUNC LoadItemHandle_org = nullptr; LoadItemHandle_FUNC LoadItemHandle_ptr = nullptr; LoadItemPoolHandle_FUNC LoadItemPoolHandle_org = nullptr; LoadItemPoolHandle_FUNC LoadItemPoolHandle_ptr = nullptr; LoadLeaderboardHandle_FUNC LoadLeaderboardHandle_org = nullptr; LoadLeaderboardHandle_FUNC LoadLeaderboardHandle_ptr = nullptr; LoadLightningHandle_FUNC LoadLightningHandle_org = nullptr; LoadLightningHandle_FUNC LoadLightningHandle_ptr = nullptr; LoadLocationHandle_FUNC LoadLocationHandle_org = nullptr; LoadLocationHandle_FUNC LoadLocationHandle_ptr = nullptr; LoadMultiboardHandle_FUNC LoadMultiboardHandle_org = nullptr; LoadMultiboardHandle_FUNC LoadMultiboardHandle_ptr = nullptr; LoadMultiboardItemHandle_FUNC LoadMultiboardItemHandle_org = nullptr; LoadMultiboardItemHandle_FUNC LoadMultiboardItemHandle_ptr = nullptr; LoadPlayerHandle_FUNC LoadPlayerHandle_org = nullptr; LoadPlayerHandle_FUNC LoadPlayerHandle_ptr = nullptr; LoadQuestHandle_FUNC LoadQuestHandle_org = nullptr; LoadQuestHandle_FUNC LoadQuestHandle_ptr = nullptr; LoadQuestItemHandle_FUNC LoadQuestItemHandle_org = nullptr; LoadQuestItemHandle_FUNC LoadQuestItemHandle_ptr = nullptr; LoadReal_FUNC LoadReal_org = nullptr; LoadReal_FUNC LoadReal_ptr = nullptr; LoadRectHandle_FUNC LoadRectHandle_org = nullptr; LoadRectHandle_FUNC LoadRectHandle_ptr = nullptr; LoadRegionHandle_FUNC LoadRegionHandle_org = nullptr; LoadRegionHandle_FUNC LoadRegionHandle_ptr = nullptr; LoadSoundHandle_FUNC LoadSoundHandle_org = nullptr; LoadSoundHandle_FUNC LoadSoundHandle_ptr = nullptr; LoadStr_FUNC LoadStr_org = nullptr; LoadStr_FUNC LoadStr_ptr = nullptr; LoadTextTagHandle_FUNC LoadTextTagHandle_org = nullptr; LoadTextTagHandle_FUNC LoadTextTagHandle_ptr = nullptr; LoadTimerDialogHandle_FUNC LoadTimerDialogHandle_org = nullptr; LoadTimerDialogHandle_FUNC LoadTimerDialogHandle_ptr = nullptr; LoadTimerHandle_FUNC LoadTimerHandle_org = nullptr; LoadTimerHandle_FUNC LoadTimerHandle_ptr = nullptr; LoadTrackableHandle_FUNC LoadTrackableHandle_org = nullptr; LoadTrackableHandle_FUNC LoadTrackableHandle_ptr = nullptr; LoadTriggerActionHandle_FUNC LoadTriggerActionHandle_org = nullptr; LoadTriggerActionHandle_FUNC LoadTriggerActionHandle_ptr = nullptr; LoadTriggerConditionHandle_FUNC LoadTriggerConditionHandle_org = nullptr; LoadTriggerConditionHandle_FUNC LoadTriggerConditionHandle_ptr = nullptr; LoadTriggerEventHandle_FUNC LoadTriggerEventHandle_org = nullptr; LoadTriggerEventHandle_FUNC LoadTriggerEventHandle_ptr = nullptr; LoadTriggerHandle_FUNC LoadTriggerHandle_org = nullptr; LoadTriggerHandle_FUNC LoadTriggerHandle_ptr = nullptr; LoadUbersplatHandle_FUNC LoadUbersplatHandle_org = nullptr; LoadUbersplatHandle_FUNC LoadUbersplatHandle_ptr = nullptr; LoadUnitHandle_FUNC LoadUnitHandle_org = nullptr; LoadUnitHandle_FUNC LoadUnitHandle_ptr = nullptr; LoadUnitPoolHandle_FUNC LoadUnitPoolHandle_org = nullptr; LoadUnitPoolHandle_FUNC LoadUnitPoolHandle_ptr = nullptr; LoadWidgetHandle_FUNC LoadWidgetHandle_org = nullptr; LoadWidgetHandle_FUNC LoadWidgetHandle_ptr = nullptr; LoadZepWave_FUNC LoadZepWave_org = nullptr; LoadZepWave_FUNC LoadZepWave_ptr = nullptr; Location_FUNC Location_org = nullptr; Location_FUNC Location_ptr = nullptr; MeleeDifficulty_FUNC MeleeDifficulty_org = nullptr; MeleeDifficulty_FUNC MeleeDifficulty_ptr = nullptr; MergeUnits_FUNC MergeUnits_org = nullptr; MergeUnits_FUNC MergeUnits_ptr = nullptr; MoveLightning_FUNC MoveLightning_org = nullptr; MoveLightning_FUNC MoveLightning_ptr = nullptr; MoveLightningEx_FUNC MoveLightningEx_org = nullptr; MoveLightningEx_FUNC MoveLightningEx_ptr = nullptr; MoveLocation_FUNC MoveLocation_org = nullptr; MoveLocation_FUNC MoveLocation_ptr = nullptr; MoveRectTo_FUNC MoveRectTo_org = nullptr; MoveRectTo_FUNC MoveRectTo_ptr = nullptr; MoveRectToLoc_FUNC MoveRectToLoc_org = nullptr; MoveRectToLoc_FUNC MoveRectToLoc_ptr = nullptr; MultiboardClear_FUNC MultiboardClear_org = nullptr; MultiboardClear_FUNC MultiboardClear_ptr = nullptr; MultiboardDisplay_FUNC MultiboardDisplay_org = nullptr; MultiboardDisplay_FUNC MultiboardDisplay_ptr = nullptr; MultiboardGetColumnCount_FUNC MultiboardGetColumnCount_org = nullptr; MultiboardGetColumnCount_FUNC MultiboardGetColumnCount_ptr = nullptr; MultiboardGetItem_FUNC MultiboardGetItem_org = nullptr; MultiboardGetItem_FUNC MultiboardGetItem_ptr = nullptr; MultiboardGetRowCount_FUNC MultiboardGetRowCount_org = nullptr; MultiboardGetRowCount_FUNC MultiboardGetRowCount_ptr = nullptr; MultiboardGetTitleText_FUNC MultiboardGetTitleText_org = nullptr; MultiboardGetTitleText_FUNC MultiboardGetTitleText_ptr = nullptr; MultiboardMinimize_FUNC MultiboardMinimize_org = nullptr; MultiboardMinimize_FUNC MultiboardMinimize_ptr = nullptr; MultiboardReleaseItem_FUNC MultiboardReleaseItem_org = nullptr; MultiboardReleaseItem_FUNC MultiboardReleaseItem_ptr = nullptr; MultiboardSetColumnCount_FUNC MultiboardSetColumnCount_org = nullptr; MultiboardSetColumnCount_FUNC MultiboardSetColumnCount_ptr = nullptr; MultiboardSetItemIcon_FUNC MultiboardSetItemIcon_org = nullptr; MultiboardSetItemIcon_FUNC MultiboardSetItemIcon_ptr = nullptr; MultiboardSetItemStyle_FUNC MultiboardSetItemStyle_org = nullptr; MultiboardSetItemStyle_FUNC MultiboardSetItemStyle_ptr = nullptr; MultiboardSetItemValue_FUNC MultiboardSetItemValue_org = nullptr; MultiboardSetItemValue_FUNC MultiboardSetItemValue_ptr = nullptr; MultiboardSetItemValueColor_FUNC MultiboardSetItemValueColor_org = nullptr; MultiboardSetItemValueColor_FUNC MultiboardSetItemValueColor_ptr = nullptr; MultiboardSetItemWidth_FUNC MultiboardSetItemWidth_org = nullptr; MultiboardSetItemWidth_FUNC MultiboardSetItemWidth_ptr = nullptr; MultiboardSetItemsIcon_FUNC MultiboardSetItemsIcon_org = nullptr; MultiboardSetItemsIcon_FUNC MultiboardSetItemsIcon_ptr = nullptr; MultiboardSetItemsStyle_FUNC MultiboardSetItemsStyle_org = nullptr; MultiboardSetItemsStyle_FUNC MultiboardSetItemsStyle_ptr = nullptr; MultiboardSetItemsValue_FUNC MultiboardSetItemsValue_org = nullptr; MultiboardSetItemsValue_FUNC MultiboardSetItemsValue_ptr = nullptr; MultiboardSetItemsValueColor_FUNC MultiboardSetItemsValueColor_org = nullptr; MultiboardSetItemsValueColor_FUNC MultiboardSetItemsValueColor_ptr = nullptr; MultiboardSetItemsWidth_FUNC MultiboardSetItemsWidth_org = nullptr; MultiboardSetItemsWidth_FUNC MultiboardSetItemsWidth_ptr = nullptr; MultiboardSetRowCount_FUNC MultiboardSetRowCount_org = nullptr; MultiboardSetRowCount_FUNC MultiboardSetRowCount_ptr = nullptr; MultiboardSetTitleText_FUNC MultiboardSetTitleText_org = nullptr; MultiboardSetTitleText_FUNC MultiboardSetTitleText_ptr = nullptr; MultiboardSetTitleTextColor_FUNC MultiboardSetTitleTextColor_org = nullptr; MultiboardSetTitleTextColor_FUNC MultiboardSetTitleTextColor_ptr = nullptr; MultiboardSuppressDisplay_FUNC MultiboardSuppressDisplay_org = nullptr; MultiboardSuppressDisplay_FUNC MultiboardSuppressDisplay_ptr = nullptr; NewSoundEnvironment_FUNC NewSoundEnvironment_org = nullptr; NewSoundEnvironment_FUNC NewSoundEnvironment_ptr = nullptr; Not_FUNC Not_org = nullptr; Not_FUNC Not_ptr = nullptr; Or_FUNC Or_org = nullptr; Or_FUNC Or_ptr = nullptr; OrderId_FUNC OrderId_org = nullptr; OrderId_FUNC OrderId_ptr = nullptr; OrderId2String_FUNC OrderId2String_org = nullptr; OrderId2String_FUNC OrderId2String_ptr = nullptr; PanCameraTo_FUNC PanCameraTo_org = nullptr; PanCameraTo_FUNC PanCameraTo_ptr = nullptr; PanCameraToTimed_FUNC PanCameraToTimed_org = nullptr; PanCameraToTimed_FUNC PanCameraToTimed_ptr = nullptr; PanCameraToTimedWithZ_FUNC PanCameraToTimedWithZ_org = nullptr; PanCameraToTimedWithZ_FUNC PanCameraToTimedWithZ_ptr = nullptr; PanCameraToWithZ_FUNC PanCameraToWithZ_org = nullptr; PanCameraToWithZ_FUNC PanCameraToWithZ_ptr = nullptr; PauseCompAI_FUNC PauseCompAI_org = nullptr; PauseCompAI_FUNC PauseCompAI_ptr = nullptr; PauseGame_FUNC PauseGame_org = nullptr; PauseGame_FUNC PauseGame_ptr = nullptr; PauseTimer_FUNC PauseTimer_org = nullptr; PauseTimer_FUNC PauseTimer_ptr = nullptr; PauseUnit_FUNC PauseUnit_org = nullptr; PauseUnit_FUNC PauseUnit_ptr = nullptr; PingMinimap_FUNC PingMinimap_org = nullptr; PingMinimap_FUNC PingMinimap_ptr = nullptr; PingMinimapEx_FUNC PingMinimapEx_org = nullptr; PingMinimapEx_FUNC PingMinimapEx_ptr = nullptr; PlaceRandomItem_FUNC PlaceRandomItem_org = nullptr; PlaceRandomItem_FUNC PlaceRandomItem_ptr = nullptr; PlaceRandomUnit_FUNC PlaceRandomUnit_org = nullptr; PlaceRandomUnit_FUNC PlaceRandomUnit_ptr = nullptr; PlayCinematic_FUNC PlayCinematic_org = nullptr; PlayCinematic_FUNC PlayCinematic_ptr = nullptr; PlayModelCinematic_FUNC PlayModelCinematic_org = nullptr; PlayModelCinematic_FUNC PlayModelCinematic_ptr = nullptr; PlayMusic_FUNC PlayMusic_org = nullptr; PlayMusic_FUNC PlayMusic_ptr = nullptr; PlayMusicEx_FUNC PlayMusicEx_org = nullptr; PlayMusicEx_FUNC PlayMusicEx_ptr = nullptr; PlayThematicMusic_FUNC PlayThematicMusic_org = nullptr; PlayThematicMusic_FUNC PlayThematicMusic_ptr = nullptr; PlayThematicMusicEx_FUNC PlayThematicMusicEx_org = nullptr; PlayThematicMusicEx_FUNC PlayThematicMusicEx_ptr = nullptr; Player_FUNC Player_org = nullptr; Player_FUNC Player_ptr = nullptr; PlayerGetLeaderboard_FUNC PlayerGetLeaderboard_org = nullptr; PlayerGetLeaderboard_FUNC PlayerGetLeaderboard_ptr = nullptr; PlayerSetLeaderboard_FUNC PlayerSetLeaderboard_org = nullptr; PlayerSetLeaderboard_FUNC PlayerSetLeaderboard_ptr = nullptr; PopLastCommand_FUNC PopLastCommand_org = nullptr; PopLastCommand_FUNC PopLastCommand_ptr = nullptr; Pow_FUNC Pow_org = nullptr; Pow_FUNC Pow_ptr = nullptr; Preload_FUNC Preload_org = nullptr; Preload_FUNC Preload_ptr = nullptr; PreloadEnd_FUNC PreloadEnd_org = nullptr; PreloadEnd_FUNC PreloadEnd_ptr = nullptr; PreloadEndEx_FUNC PreloadEndEx_org = nullptr; PreloadEndEx_FUNC PreloadEndEx_ptr = nullptr; PreloadGenClear_FUNC PreloadGenClear_org = nullptr; PreloadGenClear_FUNC PreloadGenClear_ptr = nullptr; PreloadGenEnd_FUNC PreloadGenEnd_org = nullptr; PreloadGenEnd_FUNC PreloadGenEnd_ptr = nullptr; PreloadGenStart_FUNC PreloadGenStart_org = nullptr; PreloadGenStart_FUNC PreloadGenStart_ptr = nullptr; PreloadRefresh_FUNC PreloadRefresh_org = nullptr; PreloadRefresh_FUNC PreloadRefresh_ptr = nullptr; PreloadStart_FUNC PreloadStart_org = nullptr; PreloadStart_FUNC PreloadStart_ptr = nullptr; Preloader_FUNC Preloader_org = nullptr; Preloader_FUNC Preloader_ptr = nullptr; PurchaseZeppelin_FUNC PurchaseZeppelin_org = nullptr; PurchaseZeppelin_FUNC PurchaseZeppelin_ptr = nullptr; QuestCreateItem_FUNC QuestCreateItem_org = nullptr; QuestCreateItem_FUNC QuestCreateItem_ptr = nullptr; QuestItemSetCompleted_FUNC QuestItemSetCompleted_org = nullptr; QuestItemSetCompleted_FUNC QuestItemSetCompleted_ptr = nullptr; QuestItemSetDescription_FUNC QuestItemSetDescription_org = nullptr; QuestItemSetDescription_FUNC QuestItemSetDescription_ptr = nullptr; QuestSetCompleted_FUNC QuestSetCompleted_org = nullptr; QuestSetCompleted_FUNC QuestSetCompleted_ptr = nullptr; QuestSetDescription_FUNC QuestSetDescription_org = nullptr; QuestSetDescription_FUNC QuestSetDescription_ptr = nullptr; QuestSetDiscovered_FUNC QuestSetDiscovered_org = nullptr; QuestSetDiscovered_FUNC QuestSetDiscovered_ptr = nullptr; QuestSetEnabled_FUNC QuestSetEnabled_org = nullptr; QuestSetEnabled_FUNC QuestSetEnabled_ptr = nullptr; QuestSetFailed_FUNC QuestSetFailed_org = nullptr; QuestSetFailed_FUNC QuestSetFailed_ptr = nullptr; QuestSetIconPath_FUNC QuestSetIconPath_org = nullptr; QuestSetIconPath_FUNC QuestSetIconPath_ptr = nullptr; QuestSetRequired_FUNC QuestSetRequired_org = nullptr; QuestSetRequired_FUNC QuestSetRequired_ptr = nullptr; QuestSetTitle_FUNC QuestSetTitle_org = nullptr; QuestSetTitle_FUNC QuestSetTitle_ptr = nullptr; QueueDestructableAnimation_FUNC QueueDestructableAnimation_org = nullptr; QueueDestructableAnimation_FUNC QueueDestructableAnimation_ptr = nullptr; QueueUnitAnimation_FUNC QueueUnitAnimation_org = nullptr; QueueUnitAnimation_FUNC QueueUnitAnimation_ptr = nullptr; R2I_FUNC R2I_org = nullptr; R2I_FUNC R2I_ptr = nullptr; R2S_FUNC R2S_org = nullptr; R2S_FUNC R2S_ptr = nullptr; R2SW_FUNC R2SW_org = nullptr; R2SW_FUNC R2SW_ptr = nullptr; Rad2Deg_FUNC Rad2Deg_org = nullptr; Rad2Deg_FUNC Rad2Deg_ptr = nullptr; Rect_FUNC Rect_org = nullptr; Rect_FUNC Rect_ptr = nullptr; RectFromLoc_FUNC RectFromLoc_org = nullptr; RectFromLoc_FUNC RectFromLoc_ptr = nullptr; RecycleGuardPosition_FUNC RecycleGuardPosition_org = nullptr; RecycleGuardPosition_FUNC RecycleGuardPosition_ptr = nullptr; RegionAddCell_FUNC RegionAddCell_org = nullptr; RegionAddCell_FUNC RegionAddCell_ptr = nullptr; RegionAddCellAtLoc_FUNC RegionAddCellAtLoc_org = nullptr; RegionAddCellAtLoc_FUNC RegionAddCellAtLoc_ptr = nullptr; RegionAddRect_FUNC RegionAddRect_org = nullptr; RegionAddRect_FUNC RegionAddRect_ptr = nullptr; RegionClearCell_FUNC RegionClearCell_org = nullptr; RegionClearCell_FUNC RegionClearCell_ptr = nullptr; RegionClearCellAtLoc_FUNC RegionClearCellAtLoc_org = nullptr; RegionClearCellAtLoc_FUNC RegionClearCellAtLoc_ptr = nullptr; RegionClearRect_FUNC RegionClearRect_org = nullptr; RegionClearRect_FUNC RegionClearRect_ptr = nullptr; RegisterStackedSound_FUNC RegisterStackedSound_org = nullptr; RegisterStackedSound_FUNC RegisterStackedSound_ptr = nullptr; ReloadGame_FUNC ReloadGame_org = nullptr; ReloadGame_FUNC ReloadGame_ptr = nullptr; ReloadGameCachesFromDisk_FUNC ReloadGameCachesFromDisk_org = nullptr; ReloadGameCachesFromDisk_FUNC ReloadGameCachesFromDisk_ptr = nullptr; RemoveAllGuardPositions_FUNC RemoveAllGuardPositions_org = nullptr; RemoveAllGuardPositions_FUNC RemoveAllGuardPositions_ptr = nullptr; RemoveDestructable_FUNC RemoveDestructable_org = nullptr; RemoveDestructable_FUNC RemoveDestructable_ptr = nullptr; RemoveGuardPosition_FUNC RemoveGuardPosition_org = nullptr; RemoveGuardPosition_FUNC RemoveGuardPosition_ptr = nullptr; RemoveInjuries_FUNC RemoveInjuries_org = nullptr; RemoveInjuries_FUNC RemoveInjuries_ptr = nullptr; RemoveItem_FUNC RemoveItem_org = nullptr; RemoveItem_FUNC RemoveItem_ptr = nullptr; RemoveItemFromAllStock_FUNC RemoveItemFromAllStock_org = nullptr; RemoveItemFromAllStock_FUNC RemoveItemFromAllStock_ptr = nullptr; RemoveItemFromStock_FUNC RemoveItemFromStock_org = nullptr; RemoveItemFromStock_FUNC RemoveItemFromStock_ptr = nullptr; RemoveLocation_FUNC RemoveLocation_org = nullptr; RemoveLocation_FUNC RemoveLocation_ptr = nullptr; RemovePlayer_FUNC RemovePlayer_org = nullptr; RemovePlayer_FUNC RemovePlayer_ptr = nullptr; RemoveRect_FUNC RemoveRect_org = nullptr; RemoveRect_FUNC RemoveRect_ptr = nullptr; RemoveRegion_FUNC RemoveRegion_org = nullptr; RemoveRegion_FUNC RemoveRegion_ptr = nullptr; RemoveSaveDirectory_FUNC RemoveSaveDirectory_org = nullptr; RemoveSaveDirectory_FUNC RemoveSaveDirectory_ptr = nullptr; RemoveSavedBoolean_FUNC RemoveSavedBoolean_org = nullptr; RemoveSavedBoolean_FUNC RemoveSavedBoolean_ptr = nullptr; RemoveSavedHandle_FUNC RemoveSavedHandle_org = nullptr; RemoveSavedHandle_FUNC RemoveSavedHandle_ptr = nullptr; RemoveSavedInteger_FUNC RemoveSavedInteger_org = nullptr; RemoveSavedInteger_FUNC RemoveSavedInteger_ptr = nullptr; RemoveSavedReal_FUNC RemoveSavedReal_org = nullptr; RemoveSavedReal_FUNC RemoveSavedReal_ptr = nullptr; RemoveSavedString_FUNC RemoveSavedString_org = nullptr; RemoveSavedString_FUNC RemoveSavedString_ptr = nullptr; RemoveSiege_FUNC RemoveSiege_org = nullptr; RemoveSiege_FUNC RemoveSiege_ptr = nullptr; RemoveUnit_FUNC RemoveUnit_org = nullptr; RemoveUnit_FUNC RemoveUnit_ptr = nullptr; RemoveUnitFromAllStock_FUNC RemoveUnitFromAllStock_org = nullptr; RemoveUnitFromAllStock_FUNC RemoveUnitFromAllStock_ptr = nullptr; RemoveUnitFromStock_FUNC RemoveUnitFromStock_org = nullptr; RemoveUnitFromStock_FUNC RemoveUnitFromStock_ptr = nullptr; RemoveWeatherEffect_FUNC RemoveWeatherEffect_org = nullptr; RemoveWeatherEffect_FUNC RemoveWeatherEffect_ptr = nullptr; RenameSaveDirectory_FUNC RenameSaveDirectory_org = nullptr; RenameSaveDirectory_FUNC RenameSaveDirectory_ptr = nullptr; ResetCaptainLocs_FUNC ResetCaptainLocs_org = nullptr; ResetCaptainLocs_FUNC ResetCaptainLocs_ptr = nullptr; ResetTerrainFog_FUNC ResetTerrainFog_org = nullptr; ResetTerrainFog_FUNC ResetTerrainFog_ptr = nullptr; ResetToGameCamera_FUNC ResetToGameCamera_org = nullptr; ResetToGameCamera_FUNC ResetToGameCamera_ptr = nullptr; ResetTrigger_FUNC ResetTrigger_org = nullptr; ResetTrigger_FUNC ResetTrigger_ptr = nullptr; ResetUbersplat_FUNC ResetUbersplat_org = nullptr; ResetUbersplat_FUNC ResetUbersplat_ptr = nullptr; ResetUnitLookAt_FUNC ResetUnitLookAt_org = nullptr; ResetUnitLookAt_FUNC ResetUnitLookAt_ptr = nullptr; RestartGame_FUNC RestartGame_org = nullptr; RestartGame_FUNC RestartGame_ptr = nullptr; RestoreUnit_FUNC RestoreUnit_org = nullptr; RestoreUnit_FUNC RestoreUnit_ptr = nullptr; ResumeMusic_FUNC ResumeMusic_org = nullptr; ResumeMusic_FUNC ResumeMusic_ptr = nullptr; ResumeTimer_FUNC ResumeTimer_org = nullptr; ResumeTimer_FUNC ResumeTimer_ptr = nullptr; ReturnGuardPosts_FUNC ReturnGuardPosts_org = nullptr; ReturnGuardPosts_FUNC ReturnGuardPosts_ptr = nullptr; ReviveHero_FUNC ReviveHero_org = nullptr; ReviveHero_FUNC ReviveHero_ptr = nullptr; ReviveHeroLoc_FUNC ReviveHeroLoc_org = nullptr; ReviveHeroLoc_FUNC ReviveHeroLoc_ptr = nullptr; S2I_FUNC S2I_org = nullptr; S2I_FUNC S2I_ptr = nullptr; S2R_FUNC S2R_org = nullptr; S2R_FUNC S2R_ptr = nullptr; SaveAbilityHandle_FUNC SaveAbilityHandle_org = nullptr; SaveAbilityHandle_FUNC SaveAbilityHandle_ptr = nullptr; SaveAgentHandle_FUNC SaveAgentHandle_org = nullptr; SaveAgentHandle_FUNC SaveAgentHandle_ptr = nullptr; SaveBoolean_FUNC SaveBoolean_org = nullptr; SaveBoolean_FUNC SaveBoolean_ptr = nullptr; SaveBooleanExprHandle_FUNC SaveBooleanExprHandle_org = nullptr; SaveBooleanExprHandle_FUNC SaveBooleanExprHandle_ptr = nullptr; SaveButtonHandle_FUNC SaveButtonHandle_org = nullptr; SaveButtonHandle_FUNC SaveButtonHandle_ptr = nullptr; SaveDefeatConditionHandle_FUNC SaveDefeatConditionHandle_org = nullptr; SaveDefeatConditionHandle_FUNC SaveDefeatConditionHandle_ptr = nullptr; SaveDestructableHandle_FUNC SaveDestructableHandle_org = nullptr; SaveDestructableHandle_FUNC SaveDestructableHandle_ptr = nullptr; SaveDialogHandle_FUNC SaveDialogHandle_org = nullptr; SaveDialogHandle_FUNC SaveDialogHandle_ptr = nullptr; SaveEffectHandle_FUNC SaveEffectHandle_org = nullptr; SaveEffectHandle_FUNC SaveEffectHandle_ptr = nullptr; SaveFogModifierHandle_FUNC SaveFogModifierHandle_org = nullptr; SaveFogModifierHandle_FUNC SaveFogModifierHandle_ptr = nullptr; SaveFogStateHandle_FUNC SaveFogStateHandle_org = nullptr; SaveFogStateHandle_FUNC SaveFogStateHandle_ptr = nullptr; SaveForceHandle_FUNC SaveForceHandle_org = nullptr; SaveForceHandle_FUNC SaveForceHandle_ptr = nullptr; SaveGame_FUNC SaveGame_org = nullptr; SaveGame_FUNC SaveGame_ptr = nullptr; SaveGameCache_FUNC SaveGameCache_org = nullptr; SaveGameCache_FUNC SaveGameCache_ptr = nullptr; SaveGameExists_FUNC SaveGameExists_org = nullptr; SaveGameExists_FUNC SaveGameExists_ptr = nullptr; SaveGroupHandle_FUNC SaveGroupHandle_org = nullptr; SaveGroupHandle_FUNC SaveGroupHandle_ptr = nullptr; SaveHashtableHandle_FUNC SaveHashtableHandle_org = nullptr; SaveHashtableHandle_FUNC SaveHashtableHandle_ptr = nullptr; SaveImageHandle_FUNC SaveImageHandle_org = nullptr; SaveImageHandle_FUNC SaveImageHandle_ptr = nullptr; SaveInteger_FUNC SaveInteger_org = nullptr; SaveInteger_FUNC SaveInteger_ptr = nullptr; SaveItemHandle_FUNC SaveItemHandle_org = nullptr; SaveItemHandle_FUNC SaveItemHandle_ptr = nullptr; SaveItemPoolHandle_FUNC SaveItemPoolHandle_org = nullptr; SaveItemPoolHandle_FUNC SaveItemPoolHandle_ptr = nullptr; SaveLeaderboardHandle_FUNC SaveLeaderboardHandle_org = nullptr; SaveLeaderboardHandle_FUNC SaveLeaderboardHandle_ptr = nullptr; SaveLightningHandle_FUNC SaveLightningHandle_org = nullptr; SaveLightningHandle_FUNC SaveLightningHandle_ptr = nullptr; SaveLocationHandle_FUNC SaveLocationHandle_org = nullptr; SaveLocationHandle_FUNC SaveLocationHandle_ptr = nullptr; SaveMultiboardHandle_FUNC SaveMultiboardHandle_org = nullptr; SaveMultiboardHandle_FUNC SaveMultiboardHandle_ptr = nullptr; SaveMultiboardItemHandle_FUNC SaveMultiboardItemHandle_org = nullptr; SaveMultiboardItemHandle_FUNC SaveMultiboardItemHandle_ptr = nullptr; SavePlayerHandle_FUNC SavePlayerHandle_org = nullptr; SavePlayerHandle_FUNC SavePlayerHandle_ptr = nullptr; SaveQuestHandle_FUNC SaveQuestHandle_org = nullptr; SaveQuestHandle_FUNC SaveQuestHandle_ptr = nullptr; SaveQuestItemHandle_FUNC SaveQuestItemHandle_org = nullptr; SaveQuestItemHandle_FUNC SaveQuestItemHandle_ptr = nullptr; SaveReal_FUNC SaveReal_org = nullptr; SaveReal_FUNC SaveReal_ptr = nullptr; SaveRectHandle_FUNC SaveRectHandle_org = nullptr; SaveRectHandle_FUNC SaveRectHandle_ptr = nullptr; SaveRegionHandle_FUNC SaveRegionHandle_org = nullptr; SaveRegionHandle_FUNC SaveRegionHandle_ptr = nullptr; SaveSoundHandle_FUNC SaveSoundHandle_org = nullptr; SaveSoundHandle_FUNC SaveSoundHandle_ptr = nullptr; SaveStr_FUNC SaveStr_org = nullptr; SaveStr_FUNC SaveStr_ptr = nullptr; SaveTextTagHandle_FUNC SaveTextTagHandle_org = nullptr; SaveTextTagHandle_FUNC SaveTextTagHandle_ptr = nullptr; SaveTimerDialogHandle_FUNC SaveTimerDialogHandle_org = nullptr; SaveTimerDialogHandle_FUNC SaveTimerDialogHandle_ptr = nullptr; SaveTimerHandle_FUNC SaveTimerHandle_org = nullptr; SaveTimerHandle_FUNC SaveTimerHandle_ptr = nullptr; SaveTrackableHandle_FUNC SaveTrackableHandle_org = nullptr; SaveTrackableHandle_FUNC SaveTrackableHandle_ptr = nullptr; SaveTriggerActionHandle_FUNC SaveTriggerActionHandle_org = nullptr; SaveTriggerActionHandle_FUNC SaveTriggerActionHandle_ptr = nullptr; SaveTriggerConditionHandle_FUNC SaveTriggerConditionHandle_org = nullptr; SaveTriggerConditionHandle_FUNC SaveTriggerConditionHandle_ptr = nullptr; SaveTriggerEventHandle_FUNC SaveTriggerEventHandle_org = nullptr; SaveTriggerEventHandle_FUNC SaveTriggerEventHandle_ptr = nullptr; SaveTriggerHandle_FUNC SaveTriggerHandle_org = nullptr; SaveTriggerHandle_FUNC SaveTriggerHandle_ptr = nullptr; SaveUbersplatHandle_FUNC SaveUbersplatHandle_org = nullptr; SaveUbersplatHandle_FUNC SaveUbersplatHandle_ptr = nullptr; SaveUnitHandle_FUNC SaveUnitHandle_org = nullptr; SaveUnitHandle_FUNC SaveUnitHandle_ptr = nullptr; SaveUnitPoolHandle_FUNC SaveUnitPoolHandle_org = nullptr; SaveUnitPoolHandle_FUNC SaveUnitPoolHandle_ptr = nullptr; SaveWidgetHandle_FUNC SaveWidgetHandle_org = nullptr; SaveWidgetHandle_FUNC SaveWidgetHandle_ptr = nullptr; SelectHeroSkill_FUNC SelectHeroSkill_org = nullptr; SelectHeroSkill_FUNC SelectHeroSkill_ptr = nullptr; SelectUnit_FUNC SelectUnit_org = nullptr; SelectUnit_FUNC SelectUnit_ptr = nullptr; SetAllItemTypeSlots_FUNC SetAllItemTypeSlots_org = nullptr; SetAllItemTypeSlots_FUNC SetAllItemTypeSlots_ptr = nullptr; SetAllUnitTypeSlots_FUNC SetAllUnitTypeSlots_org = nullptr; SetAllUnitTypeSlots_FUNC SetAllUnitTypeSlots_ptr = nullptr; SetAllianceTarget_FUNC SetAllianceTarget_org = nullptr; SetAllianceTarget_FUNC SetAllianceTarget_ptr = nullptr; SetAllyColorFilterState_FUNC SetAllyColorFilterState_org = nullptr; SetAllyColorFilterState_FUNC SetAllyColorFilterState_ptr = nullptr; SetAltMinimapIcon_FUNC SetAltMinimapIcon_org = nullptr; SetAltMinimapIcon_FUNC SetAltMinimapIcon_ptr = nullptr; SetAmphibious_FUNC SetAmphibious_org = nullptr; SetAmphibious_FUNC SetAmphibious_ptr = nullptr; SetBlight_FUNC SetBlight_org = nullptr; SetBlight_FUNC SetBlight_ptr = nullptr; SetBlightLoc_FUNC SetBlightLoc_org = nullptr; SetBlightLoc_FUNC SetBlightLoc_ptr = nullptr; SetBlightPoint_FUNC SetBlightPoint_org = nullptr; SetBlightPoint_FUNC SetBlightPoint_ptr = nullptr; SetBlightRect_FUNC SetBlightRect_org = nullptr; SetBlightRect_FUNC SetBlightRect_ptr = nullptr; SetCameraBounds_FUNC SetCameraBounds_org = nullptr; SetCameraBounds_FUNC SetCameraBounds_ptr = nullptr; SetCameraField_FUNC SetCameraField_org = nullptr; SetCameraField_FUNC SetCameraField_ptr = nullptr; SetCameraOrientController_FUNC SetCameraOrientController_org = nullptr; SetCameraOrientController_FUNC SetCameraOrientController_ptr = nullptr; SetCameraPosition_FUNC SetCameraPosition_org = nullptr; SetCameraPosition_FUNC SetCameraPosition_ptr = nullptr; SetCameraQuickPosition_FUNC SetCameraQuickPosition_org = nullptr; SetCameraQuickPosition_FUNC SetCameraQuickPosition_ptr = nullptr; SetCameraRotateMode_FUNC SetCameraRotateMode_org = nullptr; SetCameraRotateMode_FUNC SetCameraRotateMode_ptr = nullptr; SetCameraTargetController_FUNC SetCameraTargetController_org = nullptr; SetCameraTargetController_FUNC SetCameraTargetController_ptr = nullptr; SetCampaignAI_FUNC SetCampaignAI_org = nullptr; SetCampaignAI_FUNC SetCampaignAI_ptr = nullptr; SetCampaignAvailable_FUNC SetCampaignAvailable_org = nullptr; SetCampaignAvailable_FUNC SetCampaignAvailable_ptr = nullptr; SetCampaignMenuRace_FUNC SetCampaignMenuRace_org = nullptr; SetCampaignMenuRace_FUNC SetCampaignMenuRace_ptr = nullptr; SetCampaignMenuRaceEx_FUNC SetCampaignMenuRaceEx_org = nullptr; SetCampaignMenuRaceEx_FUNC SetCampaignMenuRaceEx_ptr = nullptr; SetCaptainChanges_FUNC SetCaptainChanges_org = nullptr; SetCaptainChanges_FUNC SetCaptainChanges_ptr = nullptr; SetCaptainHome_FUNC SetCaptainHome_org = nullptr; SetCaptainHome_FUNC SetCaptainHome_ptr = nullptr; SetCineFilterBlendMode_FUNC SetCineFilterBlendMode_org = nullptr; SetCineFilterBlendMode_FUNC SetCineFilterBlendMode_ptr = nullptr; SetCineFilterDuration_FUNC SetCineFilterDuration_org = nullptr; SetCineFilterDuration_FUNC SetCineFilterDuration_ptr = nullptr; SetCineFilterEndColor_FUNC SetCineFilterEndColor_org = nullptr; SetCineFilterEndColor_FUNC SetCineFilterEndColor_ptr = nullptr; SetCineFilterEndUV_FUNC SetCineFilterEndUV_org = nullptr; SetCineFilterEndUV_FUNC SetCineFilterEndUV_ptr = nullptr; SetCineFilterStartColor_FUNC SetCineFilterStartColor_org = nullptr; SetCineFilterStartColor_FUNC SetCineFilterStartColor_ptr = nullptr; SetCineFilterStartUV_FUNC SetCineFilterStartUV_org = nullptr; SetCineFilterStartUV_FUNC SetCineFilterStartUV_ptr = nullptr; SetCineFilterTexMapFlags_FUNC SetCineFilterTexMapFlags_org = nullptr; SetCineFilterTexMapFlags_FUNC SetCineFilterTexMapFlags_ptr = nullptr; SetCineFilterTexture_FUNC SetCineFilterTexture_org = nullptr; SetCineFilterTexture_FUNC SetCineFilterTexture_ptr = nullptr; SetCinematicCamera_FUNC SetCinematicCamera_org = nullptr; SetCinematicCamera_FUNC SetCinematicCamera_ptr = nullptr; SetCinematicScene_FUNC SetCinematicScene_org = nullptr; SetCinematicScene_FUNC SetCinematicScene_ptr = nullptr; SetCreatureDensity_FUNC SetCreatureDensity_org = nullptr; SetCreatureDensity_FUNC SetCreatureDensity_ptr = nullptr; SetCreepCampFilterState_FUNC SetCreepCampFilterState_org = nullptr; SetCreepCampFilterState_FUNC SetCreepCampFilterState_ptr = nullptr; SetCustomCampaignButtonVisible_FUNC SetCustomCampaignButtonVisible_org = nullptr; SetCustomCampaignButtonVisible_FUNC SetCustomCampaignButtonVisible_ptr = nullptr; SetDayNightModels_FUNC SetDayNightModels_org = nullptr; SetDayNightModels_FUNC SetDayNightModels_ptr = nullptr; SetDefaultDifficulty_FUNC SetDefaultDifficulty_org = nullptr; SetDefaultDifficulty_FUNC SetDefaultDifficulty_ptr = nullptr; SetDefendPlayer_FUNC SetDefendPlayer_org = nullptr; SetDefendPlayer_FUNC SetDefendPlayer_ptr = nullptr; SetDestructableAnimation_FUNC SetDestructableAnimation_org = nullptr; SetDestructableAnimation_FUNC SetDestructableAnimation_ptr = nullptr; SetDestructableAnimationSpeed_FUNC SetDestructableAnimationSpeed_org = nullptr; SetDestructableAnimationSpeed_FUNC SetDestructableAnimationSpeed_ptr = nullptr; SetDestructableInvulnerable_FUNC SetDestructableInvulnerable_org = nullptr; SetDestructableInvulnerable_FUNC SetDestructableInvulnerable_ptr = nullptr; SetDestructableLife_FUNC SetDestructableLife_org = nullptr; SetDestructableLife_FUNC SetDestructableLife_ptr = nullptr; SetDestructableMaxLife_FUNC SetDestructableMaxLife_org = nullptr; SetDestructableMaxLife_FUNC SetDestructableMaxLife_ptr = nullptr; SetDestructableOccluderHeight_FUNC SetDestructableOccluderHeight_org = nullptr; SetDestructableOccluderHeight_FUNC SetDestructableOccluderHeight_ptr = nullptr; SetDoodadAnimation_FUNC SetDoodadAnimation_org = nullptr; SetDoodadAnimation_FUNC SetDoodadAnimation_ptr = nullptr; SetDoodadAnimationRect_FUNC SetDoodadAnimationRect_org = nullptr; SetDoodadAnimationRect_FUNC SetDoodadAnimationRect_ptr = nullptr; SetEdCinematicAvailable_FUNC SetEdCinematicAvailable_org = nullptr; SetEdCinematicAvailable_FUNC SetEdCinematicAvailable_ptr = nullptr; SetExpansion_FUNC SetExpansion_org = nullptr; SetExpansion_FUNC SetExpansion_ptr = nullptr; SetFloatGameState_FUNC SetFloatGameState_org = nullptr; SetFloatGameState_FUNC SetFloatGameState_ptr = nullptr; SetFogStateRadius_FUNC SetFogStateRadius_org = nullptr; SetFogStateRadius_FUNC SetFogStateRadius_ptr = nullptr; SetFogStateRadiusLoc_FUNC SetFogStateRadiusLoc_org = nullptr; SetFogStateRadiusLoc_FUNC SetFogStateRadiusLoc_ptr = nullptr; SetFogStateRect_FUNC SetFogStateRect_org = nullptr; SetFogStateRect_FUNC SetFogStateRect_ptr = nullptr; SetGameDifficulty_FUNC SetGameDifficulty_org = nullptr; SetGameDifficulty_FUNC SetGameDifficulty_ptr = nullptr; SetGamePlacement_FUNC SetGamePlacement_org = nullptr; SetGamePlacement_FUNC SetGamePlacement_ptr = nullptr; SetGameSpeed_FUNC SetGameSpeed_org = nullptr; SetGameSpeed_FUNC SetGameSpeed_ptr = nullptr; SetGameTypeSupported_FUNC SetGameTypeSupported_org = nullptr; SetGameTypeSupported_FUNC SetGameTypeSupported_ptr = nullptr; SetGroupsFlee_FUNC SetGroupsFlee_org = nullptr; SetGroupsFlee_FUNC SetGroupsFlee_ptr = nullptr; SetHeroAgi_FUNC SetHeroAgi_org = nullptr; SetHeroAgi_FUNC SetHeroAgi_ptr = nullptr; SetHeroInt_FUNC SetHeroInt_org = nullptr; SetHeroInt_FUNC SetHeroInt_ptr = nullptr; SetHeroLevel_FUNC SetHeroLevel_org = nullptr; SetHeroLevel_FUNC SetHeroLevel_ptr = nullptr; SetHeroLevels_FUNC SetHeroLevels_org = nullptr; SetHeroLevels_FUNC SetHeroLevels_ptr = nullptr; SetHeroStr_FUNC SetHeroStr_org = nullptr; SetHeroStr_FUNC SetHeroStr_ptr = nullptr; SetHeroXP_FUNC SetHeroXP_org = nullptr; SetHeroXP_FUNC SetHeroXP_ptr = nullptr; SetHeroesBuyItems_FUNC SetHeroesBuyItems_org = nullptr; SetHeroesBuyItems_FUNC SetHeroesBuyItems_ptr = nullptr; SetHeroesFlee_FUNC SetHeroesFlee_org = nullptr; SetHeroesFlee_FUNC SetHeroesFlee_ptr = nullptr; SetHeroesTakeItems_FUNC SetHeroesTakeItems_org = nullptr; SetHeroesTakeItems_FUNC SetHeroesTakeItems_ptr = nullptr; SetIgnoreInjured_FUNC SetIgnoreInjured_org = nullptr; SetIgnoreInjured_FUNC SetIgnoreInjured_ptr = nullptr; SetImageAboveWater_FUNC SetImageAboveWater_org = nullptr; SetImageAboveWater_FUNC SetImageAboveWater_ptr = nullptr; SetImageColor_FUNC SetImageColor_org = nullptr; SetImageColor_FUNC SetImageColor_ptr = nullptr; SetImageConstantHeight_FUNC SetImageConstantHeight_org = nullptr; SetImageConstantHeight_FUNC SetImageConstantHeight_ptr = nullptr; SetImagePosition_FUNC SetImagePosition_org = nullptr; SetImagePosition_FUNC SetImagePosition_ptr = nullptr; SetImageRender_FUNC SetImageRender_org = nullptr; SetImageRender_FUNC SetImageRender_ptr = nullptr; SetImageRenderAlways_FUNC SetImageRenderAlways_org = nullptr; SetImageRenderAlways_FUNC SetImageRenderAlways_ptr = nullptr; SetImageType_FUNC SetImageType_org = nullptr; SetImageType_FUNC SetImageType_ptr = nullptr; SetIntegerGameState_FUNC SetIntegerGameState_org = nullptr; SetIntegerGameState_FUNC SetIntegerGameState_ptr = nullptr; SetIntroShotModel_FUNC SetIntroShotModel_org = nullptr; SetIntroShotModel_FUNC SetIntroShotModel_ptr = nullptr; SetIntroShotText_FUNC SetIntroShotText_org = nullptr; SetIntroShotText_FUNC SetIntroShotText_ptr = nullptr; SetItemCharges_FUNC SetItemCharges_org = nullptr; SetItemCharges_FUNC SetItemCharges_ptr = nullptr; SetItemDropID_FUNC SetItemDropID_org = nullptr; SetItemDropID_FUNC SetItemDropID_ptr = nullptr; SetItemDropOnDeath_FUNC SetItemDropOnDeath_org = nullptr; SetItemDropOnDeath_FUNC SetItemDropOnDeath_ptr = nullptr; SetItemDroppable_FUNC SetItemDroppable_org = nullptr; SetItemDroppable_FUNC SetItemDroppable_ptr = nullptr; SetItemInvulnerable_FUNC SetItemInvulnerable_org = nullptr; SetItemInvulnerable_FUNC SetItemInvulnerable_ptr = nullptr; SetItemPawnable_FUNC SetItemPawnable_org = nullptr; SetItemPawnable_FUNC SetItemPawnable_ptr = nullptr; SetItemPlayer_FUNC SetItemPlayer_org = nullptr; SetItemPlayer_FUNC SetItemPlayer_ptr = nullptr; SetItemPosition_FUNC SetItemPosition_org = nullptr; SetItemPosition_FUNC SetItemPosition_ptr = nullptr; SetItemTypeSlots_FUNC SetItemTypeSlots_org = nullptr; SetItemTypeSlots_FUNC SetItemTypeSlots_ptr = nullptr; SetItemUserData_FUNC SetItemUserData_org = nullptr; SetItemUserData_FUNC SetItemUserData_ptr = nullptr; SetItemVisible_FUNC SetItemVisible_org = nullptr; SetItemVisible_FUNC SetItemVisible_ptr = nullptr; SetLightningColor_FUNC SetLightningColor_org = nullptr; SetLightningColor_FUNC SetLightningColor_ptr = nullptr; SetMapDescription_FUNC SetMapDescription_org = nullptr; SetMapDescription_FUNC SetMapDescription_ptr = nullptr; SetMapFlag_FUNC SetMapFlag_org = nullptr; SetMapFlag_FUNC SetMapFlag_ptr = nullptr; SetMapMusic_FUNC SetMapMusic_org = nullptr; SetMapMusic_FUNC SetMapMusic_ptr = nullptr; SetMapName_FUNC SetMapName_org = nullptr; SetMapName_FUNC SetMapName_ptr = nullptr; SetMeleeAI_FUNC SetMeleeAI_org = nullptr; SetMeleeAI_FUNC SetMeleeAI_ptr = nullptr; SetMissionAvailable_FUNC SetMissionAvailable_org = nullptr; SetMissionAvailable_FUNC SetMissionAvailable_ptr = nullptr; SetMusicPlayPosition_FUNC SetMusicPlayPosition_org = nullptr; SetMusicPlayPosition_FUNC SetMusicPlayPosition_ptr = nullptr; SetMusicVolume_FUNC SetMusicVolume_org = nullptr; SetMusicVolume_FUNC SetMusicVolume_ptr = nullptr; SetNewHeroes_FUNC SetNewHeroes_org = nullptr; SetNewHeroes_FUNC SetNewHeroes_ptr = nullptr; SetOpCinematicAvailable_FUNC SetOpCinematicAvailable_org = nullptr; SetOpCinematicAvailable_FUNC SetOpCinematicAvailable_ptr = nullptr; SetPeonsRepair_FUNC SetPeonsRepair_org = nullptr; SetPeonsRepair_FUNC SetPeonsRepair_ptr = nullptr; SetPlayerAbilityAvailable_FUNC SetPlayerAbilityAvailable_org = nullptr; SetPlayerAbilityAvailable_FUNC SetPlayerAbilityAvailable_ptr = nullptr; SetPlayerAlliance_FUNC SetPlayerAlliance_org = nullptr; SetPlayerAlliance_FUNC SetPlayerAlliance_ptr = nullptr; SetPlayerColor_FUNC SetPlayerColor_org = nullptr; SetPlayerColor_FUNC SetPlayerColor_ptr = nullptr; SetPlayerController_FUNC SetPlayerController_org = nullptr; SetPlayerController_FUNC SetPlayerController_ptr = nullptr; SetPlayerHandicap_FUNC SetPlayerHandicap_org = nullptr; SetPlayerHandicap_FUNC SetPlayerHandicap_ptr = nullptr; SetPlayerHandicapXP_FUNC SetPlayerHandicapXP_org = nullptr; SetPlayerHandicapXP_FUNC SetPlayerHandicapXP_ptr = nullptr; SetPlayerName_FUNC SetPlayerName_org = nullptr; SetPlayerName_FUNC SetPlayerName_ptr = nullptr; SetPlayerOnScoreScreen_FUNC SetPlayerOnScoreScreen_org = nullptr; SetPlayerOnScoreScreen_FUNC SetPlayerOnScoreScreen_ptr = nullptr; SetPlayerRacePreference_FUNC SetPlayerRacePreference_org = nullptr; SetPlayerRacePreference_FUNC SetPlayerRacePreference_ptr = nullptr; SetPlayerRaceSelectable_FUNC SetPlayerRaceSelectable_org = nullptr; SetPlayerRaceSelectable_FUNC SetPlayerRaceSelectable_ptr = nullptr; SetPlayerStartLocation_FUNC SetPlayerStartLocation_org = nullptr; SetPlayerStartLocation_FUNC SetPlayerStartLocation_ptr = nullptr; SetPlayerState_FUNC SetPlayerState_org = nullptr; SetPlayerState_FUNC SetPlayerState_ptr = nullptr; SetPlayerTaxRate_FUNC SetPlayerTaxRate_org = nullptr; SetPlayerTaxRate_FUNC SetPlayerTaxRate_ptr = nullptr; SetPlayerTeam_FUNC SetPlayerTeam_org = nullptr; SetPlayerTeam_FUNC SetPlayerTeam_ptr = nullptr; SetPlayerTechMaxAllowed_FUNC SetPlayerTechMaxAllowed_org = nullptr; SetPlayerTechMaxAllowed_FUNC SetPlayerTechMaxAllowed_ptr = nullptr; SetPlayerTechResearched_FUNC SetPlayerTechResearched_org = nullptr; SetPlayerTechResearched_FUNC SetPlayerTechResearched_ptr = nullptr; SetPlayerUnitsOwner_FUNC SetPlayerUnitsOwner_org = nullptr; SetPlayerUnitsOwner_FUNC SetPlayerUnitsOwner_ptr = nullptr; SetPlayers_FUNC SetPlayers_org = nullptr; SetPlayers_FUNC SetPlayers_ptr = nullptr; SetProduce_FUNC SetProduce_org = nullptr; SetProduce_FUNC SetProduce_ptr = nullptr; SetRandomPaths_FUNC SetRandomPaths_org = nullptr; SetRandomPaths_FUNC SetRandomPaths_ptr = nullptr; SetRandomSeed_FUNC SetRandomSeed_org = nullptr; SetRandomSeed_FUNC SetRandomSeed_ptr = nullptr; SetRect_FUNC SetRect_org = nullptr; SetRect_FUNC SetRect_ptr = nullptr; SetRectFromLoc_FUNC SetRectFromLoc_org = nullptr; SetRectFromLoc_FUNC SetRectFromLoc_ptr = nullptr; SetReplacementCount_FUNC SetReplacementCount_org = nullptr; SetReplacementCount_FUNC SetReplacementCount_ptr = nullptr; SetReservedLocalHeroButtons_FUNC SetReservedLocalHeroButtons_org = nullptr; SetReservedLocalHeroButtons_FUNC SetReservedLocalHeroButtons_ptr = nullptr; SetResourceAmount_FUNC SetResourceAmount_org = nullptr; SetResourceAmount_FUNC SetResourceAmount_ptr = nullptr; SetResourceDensity_FUNC SetResourceDensity_org = nullptr; SetResourceDensity_FUNC SetResourceDensity_ptr = nullptr; SetSkyModel_FUNC SetSkyModel_org = nullptr; SetSkyModel_FUNC SetSkyModel_ptr = nullptr; SetSlowChopping_FUNC SetSlowChopping_org = nullptr; SetSlowChopping_FUNC SetSlowChopping_ptr = nullptr; SetSmartArtillery_FUNC SetSmartArtillery_org = nullptr; SetSmartArtillery_FUNC SetSmartArtillery_ptr = nullptr; SetSoundChannel_FUNC SetSoundChannel_org = nullptr; SetSoundChannel_FUNC SetSoundChannel_ptr = nullptr; SetSoundConeAngles_FUNC SetSoundConeAngles_org = nullptr; SetSoundConeAngles_FUNC SetSoundConeAngles_ptr = nullptr; SetSoundConeOrientation_FUNC SetSoundConeOrientation_org = nullptr; SetSoundConeOrientation_FUNC SetSoundConeOrientation_ptr = nullptr; SetSoundDistanceCutoff_FUNC SetSoundDistanceCutoff_org = nullptr; SetSoundDistanceCutoff_FUNC SetSoundDistanceCutoff_ptr = nullptr; SetSoundDistances_FUNC SetSoundDistances_org = nullptr; SetSoundDistances_FUNC SetSoundDistances_ptr = nullptr; SetSoundDuration_FUNC SetSoundDuration_org = nullptr; SetSoundDuration_FUNC SetSoundDuration_ptr = nullptr; SetSoundParamsFromLabel_FUNC SetSoundParamsFromLabel_org = nullptr; SetSoundParamsFromLabel_FUNC SetSoundParamsFromLabel_ptr = nullptr; SetSoundPitch_FUNC SetSoundPitch_org = nullptr; SetSoundPitch_FUNC SetSoundPitch_ptr = nullptr; SetSoundPlayPosition_FUNC SetSoundPlayPosition_org = nullptr; SetSoundPlayPosition_FUNC SetSoundPlayPosition_ptr = nullptr; SetSoundPosition_FUNC SetSoundPosition_org = nullptr; SetSoundPosition_FUNC SetSoundPosition_ptr = nullptr; SetSoundVelocity_FUNC SetSoundVelocity_org = nullptr; SetSoundVelocity_FUNC SetSoundVelocity_ptr = nullptr; SetSoundVolume_FUNC SetSoundVolume_org = nullptr; SetSoundVolume_FUNC SetSoundVolume_ptr = nullptr; SetStackedSound_FUNC SetStackedSound_org = nullptr; SetStackedSound_FUNC SetStackedSound_ptr = nullptr; SetStackedSoundRect_FUNC SetStackedSoundRect_org = nullptr; SetStackedSoundRect_FUNC SetStackedSoundRect_ptr = nullptr; SetStagePoint_FUNC SetStagePoint_org = nullptr; SetStagePoint_FUNC SetStagePoint_ptr = nullptr; SetStartLocPrio_FUNC SetStartLocPrio_org = nullptr; SetStartLocPrio_FUNC SetStartLocPrio_ptr = nullptr; SetStartLocPrioCount_FUNC SetStartLocPrioCount_org = nullptr; SetStartLocPrioCount_FUNC SetStartLocPrioCount_ptr = nullptr; SetTargetHeroes_FUNC SetTargetHeroes_org = nullptr; SetTargetHeroes_FUNC SetTargetHeroes_ptr = nullptr; SetTeams_FUNC SetTeams_org = nullptr; SetTeams_FUNC SetTeams_ptr = nullptr; SetTerrainFog_FUNC SetTerrainFog_org = nullptr; SetTerrainFog_FUNC SetTerrainFog_ptr = nullptr; SetTerrainFogEx_FUNC SetTerrainFogEx_org = nullptr; SetTerrainFogEx_FUNC SetTerrainFogEx_ptr = nullptr; SetTerrainPathable_FUNC SetTerrainPathable_org = nullptr; SetTerrainPathable_FUNC SetTerrainPathable_ptr = nullptr; SetTerrainType_FUNC SetTerrainType_org = nullptr; SetTerrainType_FUNC SetTerrainType_ptr = nullptr; SetTextTagAge_FUNC SetTextTagAge_org = nullptr; SetTextTagAge_FUNC SetTextTagAge_ptr = nullptr; SetTextTagColor_FUNC SetTextTagColor_org = nullptr; SetTextTagColor_FUNC SetTextTagColor_ptr = nullptr; SetTextTagFadepoint_FUNC SetTextTagFadepoint_org = nullptr; SetTextTagFadepoint_FUNC SetTextTagFadepoint_ptr = nullptr; SetTextTagLifespan_FUNC SetTextTagLifespan_org = nullptr; SetTextTagLifespan_FUNC SetTextTagLifespan_ptr = nullptr; SetTextTagPermanent_FUNC SetTextTagPermanent_org = nullptr; SetTextTagPermanent_FUNC SetTextTagPermanent_ptr = nullptr; SetTextTagPos_FUNC SetTextTagPos_org = nullptr; SetTextTagPos_FUNC SetTextTagPos_ptr = nullptr; SetTextTagPosUnit_FUNC SetTextTagPosUnit_org = nullptr; SetTextTagPosUnit_FUNC SetTextTagPosUnit_ptr = nullptr; SetTextTagSuspended_FUNC SetTextTagSuspended_org = nullptr; SetTextTagSuspended_FUNC SetTextTagSuspended_ptr = nullptr; SetTextTagText_FUNC SetTextTagText_org = nullptr; SetTextTagText_FUNC SetTextTagText_ptr = nullptr; SetTextTagVelocity_FUNC SetTextTagVelocity_org = nullptr; SetTextTagVelocity_FUNC SetTextTagVelocity_ptr = nullptr; SetTextTagVisibility_FUNC SetTextTagVisibility_org = nullptr; SetTextTagVisibility_FUNC SetTextTagVisibility_ptr = nullptr; SetThematicMusicPlayPosition_FUNC SetThematicMusicPlayPosition_org = nullptr; SetThematicMusicPlayPosition_FUNC SetThematicMusicPlayPosition_ptr = nullptr; SetTimeOfDayScale_FUNC SetTimeOfDayScale_org = nullptr; SetTimeOfDayScale_FUNC SetTimeOfDayScale_ptr = nullptr; SetTutorialCleared_FUNC SetTutorialCleared_org = nullptr; SetTutorialCleared_FUNC SetTutorialCleared_ptr = nullptr; SetUbersplatRender_FUNC SetUbersplatRender_org = nullptr; SetUbersplatRender_FUNC SetUbersplatRender_ptr = nullptr; SetUbersplatRenderAlways_FUNC SetUbersplatRenderAlways_org = nullptr; SetUbersplatRenderAlways_FUNC SetUbersplatRenderAlways_ptr = nullptr; SetUnitAbilityLevel_FUNC SetUnitAbilityLevel_org = nullptr; SetUnitAbilityLevel_FUNC SetUnitAbilityLevel_ptr = nullptr; SetUnitAcquireRange_FUNC SetUnitAcquireRange_org = nullptr; SetUnitAcquireRange_FUNC SetUnitAcquireRange_ptr = nullptr; SetUnitAnimation_FUNC SetUnitAnimation_org = nullptr; SetUnitAnimation_FUNC SetUnitAnimation_ptr = nullptr; SetUnitAnimationByIndex_FUNC SetUnitAnimationByIndex_org = nullptr; SetUnitAnimationByIndex_FUNC SetUnitAnimationByIndex_ptr = nullptr; SetUnitAnimationWithRarity_FUNC SetUnitAnimationWithRarity_org = nullptr; SetUnitAnimationWithRarity_FUNC SetUnitAnimationWithRarity_ptr = nullptr; SetUnitBlendTime_FUNC SetUnitBlendTime_org = nullptr; SetUnitBlendTime_FUNC SetUnitBlendTime_ptr = nullptr; SetUnitColor_FUNC SetUnitColor_org = nullptr; SetUnitColor_FUNC SetUnitColor_ptr = nullptr; SetUnitCreepGuard_FUNC SetUnitCreepGuard_org = nullptr; SetUnitCreepGuard_FUNC SetUnitCreepGuard_ptr = nullptr; SetUnitExploded_FUNC SetUnitExploded_org = nullptr; SetUnitExploded_FUNC SetUnitExploded_ptr = nullptr; SetUnitFacing_FUNC SetUnitFacing_org = nullptr; SetUnitFacing_FUNC SetUnitFacing_ptr = nullptr; SetUnitFacingTimed_FUNC SetUnitFacingTimed_org = nullptr; SetUnitFacingTimed_FUNC SetUnitFacingTimed_ptr = nullptr; SetUnitFlyHeight_FUNC SetUnitFlyHeight_org = nullptr; SetUnitFlyHeight_FUNC SetUnitFlyHeight_ptr = nullptr; SetUnitFog_FUNC SetUnitFog_org = nullptr; SetUnitFog_FUNC SetUnitFog_ptr = nullptr; SetUnitInvulnerable_FUNC SetUnitInvulnerable_org = nullptr; SetUnitInvulnerable_FUNC SetUnitInvulnerable_ptr = nullptr; SetUnitLookAt_FUNC SetUnitLookAt_org = nullptr; SetUnitLookAt_FUNC SetUnitLookAt_ptr = nullptr; SetUnitMoveSpeed_FUNC SetUnitMoveSpeed_org = nullptr; SetUnitMoveSpeed_FUNC SetUnitMoveSpeed_ptr = nullptr; SetUnitOwner_FUNC SetUnitOwner_org = nullptr; SetUnitOwner_FUNC SetUnitOwner_ptr = nullptr; SetUnitPathing_FUNC SetUnitPathing_org = nullptr; SetUnitPathing_FUNC SetUnitPathing_ptr = nullptr; SetUnitPosition_FUNC SetUnitPosition_org = nullptr; SetUnitPosition_FUNC SetUnitPosition_ptr = nullptr; SetUnitPositionLoc_FUNC SetUnitPositionLoc_org = nullptr; SetUnitPositionLoc_FUNC SetUnitPositionLoc_ptr = nullptr; SetUnitPropWindow_FUNC SetUnitPropWindow_org = nullptr; SetUnitPropWindow_FUNC SetUnitPropWindow_ptr = nullptr; SetUnitRescuable_FUNC SetUnitRescuable_org = nullptr; SetUnitRescuable_FUNC SetUnitRescuable_ptr = nullptr; SetUnitRescueRange_FUNC SetUnitRescueRange_org = nullptr; SetUnitRescueRange_FUNC SetUnitRescueRange_ptr = nullptr; SetUnitScale_FUNC SetUnitScale_org = nullptr; SetUnitScale_FUNC SetUnitScale_ptr = nullptr; SetUnitState_FUNC SetUnitState_org = nullptr; SetUnitState_FUNC SetUnitState_ptr = nullptr; SetUnitTimeScale_FUNC SetUnitTimeScale_org = nullptr; SetUnitTimeScale_FUNC SetUnitTimeScale_ptr = nullptr; SetUnitTurnSpeed_FUNC SetUnitTurnSpeed_org = nullptr; SetUnitTurnSpeed_FUNC SetUnitTurnSpeed_ptr = nullptr; SetUnitTypeSlots_FUNC SetUnitTypeSlots_org = nullptr; SetUnitTypeSlots_FUNC SetUnitTypeSlots_ptr = nullptr; SetUnitUseFood_FUNC SetUnitUseFood_org = nullptr; SetUnitUseFood_FUNC SetUnitUseFood_ptr = nullptr; SetUnitUserData_FUNC SetUnitUserData_org = nullptr; SetUnitUserData_FUNC SetUnitUserData_ptr = nullptr; SetUnitVertexColor_FUNC SetUnitVertexColor_org = nullptr; SetUnitVertexColor_FUNC SetUnitVertexColor_ptr = nullptr; SetUnitX_FUNC SetUnitX_org = nullptr; SetUnitX_FUNC SetUnitX_ptr = nullptr; SetUnitY_FUNC SetUnitY_org = nullptr; SetUnitY_FUNC SetUnitY_ptr = nullptr; SetUnitsFlee_FUNC SetUnitsFlee_org = nullptr; SetUnitsFlee_FUNC SetUnitsFlee_ptr = nullptr; SetUpgrade_FUNC SetUpgrade_org = nullptr; SetUpgrade_FUNC SetUpgrade_ptr = nullptr; SetWatchMegaTargets_FUNC SetWatchMegaTargets_org = nullptr; SetWatchMegaTargets_FUNC SetWatchMegaTargets_ptr = nullptr; SetWaterBaseColor_FUNC SetWaterBaseColor_org = nullptr; SetWaterBaseColor_FUNC SetWaterBaseColor_ptr = nullptr; SetWaterDeforms_FUNC SetWaterDeforms_org = nullptr; SetWaterDeforms_FUNC SetWaterDeforms_ptr = nullptr; SetWidgetLife_FUNC SetWidgetLife_org = nullptr; SetWidgetLife_FUNC SetWidgetLife_ptr = nullptr; ShiftTownSpot_FUNC ShiftTownSpot_org = nullptr; ShiftTownSpot_FUNC ShiftTownSpot_ptr = nullptr; ShowDestructable_FUNC ShowDestructable_org = nullptr; ShowDestructable_FUNC ShowDestructable_ptr = nullptr; ShowImage_FUNC ShowImage_org = nullptr; ShowImage_FUNC ShowImage_ptr = nullptr; ShowInterface_FUNC ShowInterface_org = nullptr; ShowInterface_FUNC ShowInterface_ptr = nullptr; ShowUbersplat_FUNC ShowUbersplat_org = nullptr; ShowUbersplat_FUNC ShowUbersplat_ptr = nullptr; ShowUnit_FUNC ShowUnit_org = nullptr; ShowUnit_FUNC ShowUnit_ptr = nullptr; Sin_FUNC Sin_org = nullptr; Sin_FUNC Sin_ptr = nullptr; Sleep_FUNC Sleep_org = nullptr; Sleep_FUNC Sleep_ptr = nullptr; SquareRoot_FUNC SquareRoot_org = nullptr; SquareRoot_FUNC SquareRoot_ptr = nullptr; StartCampaignAI_FUNC StartCampaignAI_org = nullptr; StartCampaignAI_FUNC StartCampaignAI_ptr = nullptr; StartGetEnemyBase_FUNC StartGetEnemyBase_org = nullptr; StartGetEnemyBase_FUNC StartGetEnemyBase_ptr = nullptr; StartMeleeAI_FUNC StartMeleeAI_org = nullptr; StartMeleeAI_FUNC StartMeleeAI_ptr = nullptr; StartSound_FUNC StartSound_org = nullptr; StartSound_FUNC StartSound_ptr = nullptr; StartThread_FUNC StartThread_org = nullptr; StartThread_FUNC StartThread_ptr = nullptr; StopCamera_FUNC StopCamera_org = nullptr; StopCamera_FUNC StopCamera_ptr = nullptr; StopGathering_FUNC StopGathering_org = nullptr; StopGathering_FUNC StopGathering_ptr = nullptr; StopMusic_FUNC StopMusic_org = nullptr; StopMusic_FUNC StopMusic_ptr = nullptr; StopSound_FUNC StopSound_org = nullptr; StopSound_FUNC StopSound_ptr = nullptr; StoreBoolean_FUNC StoreBoolean_org = nullptr; StoreBoolean_FUNC StoreBoolean_ptr = nullptr; StoreInteger_FUNC StoreInteger_org = nullptr; StoreInteger_FUNC StoreInteger_ptr = nullptr; StoreReal_FUNC StoreReal_org = nullptr; StoreReal_FUNC StoreReal_ptr = nullptr; StoreString_FUNC StoreString_org = nullptr; StoreString_FUNC StoreString_ptr = nullptr; StoreUnit_FUNC StoreUnit_org = nullptr; StoreUnit_FUNC StoreUnit_ptr = nullptr; StringCase_FUNC StringCase_org = nullptr; StringCase_FUNC StringCase_ptr = nullptr; StringHash_FUNC StringHash_org = nullptr; StringHash_FUNC StringHash_ptr = nullptr; StringLength_FUNC StringLength_org = nullptr; StringLength_FUNC StringLength_ptr = nullptr; SubString_FUNC SubString_org = nullptr; SubString_FUNC SubString_ptr = nullptr; SuicidePlayer_FUNC SuicidePlayer_org = nullptr; SuicidePlayer_FUNC SuicidePlayer_ptr = nullptr; SuicidePlayerUnits_FUNC SuicidePlayerUnits_org = nullptr; SuicidePlayerUnits_FUNC SuicidePlayerUnits_ptr = nullptr; SuicideUnit_FUNC SuicideUnit_org = nullptr; SuicideUnit_FUNC SuicideUnit_ptr = nullptr; SuicideUnitEx_FUNC SuicideUnitEx_org = nullptr; SuicideUnitEx_FUNC SuicideUnitEx_ptr = nullptr; SuspendHeroXP_FUNC SuspendHeroXP_org = nullptr; SuspendHeroXP_FUNC SuspendHeroXP_ptr = nullptr; SuspendTimeOfDay_FUNC SuspendTimeOfDay_org = nullptr; SuspendTimeOfDay_FUNC SuspendTimeOfDay_ptr = nullptr; SyncSelections_FUNC SyncSelections_org = nullptr; SyncSelections_FUNC SyncSelections_ptr = nullptr; SyncStoredBoolean_FUNC SyncStoredBoolean_org = nullptr; SyncStoredBoolean_FUNC SyncStoredBoolean_ptr = nullptr; SyncStoredInteger_FUNC SyncStoredInteger_org = nullptr; SyncStoredInteger_FUNC SyncStoredInteger_ptr = nullptr; SyncStoredReal_FUNC SyncStoredReal_org = nullptr; SyncStoredReal_FUNC SyncStoredReal_ptr = nullptr; SyncStoredString_FUNC SyncStoredString_org = nullptr; SyncStoredString_FUNC SyncStoredString_ptr = nullptr; SyncStoredUnit_FUNC SyncStoredUnit_org = nullptr; SyncStoredUnit_FUNC SyncStoredUnit_ptr = nullptr; Tan_FUNC Tan_org = nullptr; Tan_FUNC Tan_ptr = nullptr; TeleportCaptain_FUNC TeleportCaptain_org = nullptr; TeleportCaptain_FUNC TeleportCaptain_ptr = nullptr; TerrainDeformCrater_FUNC TerrainDeformCrater_org = nullptr; TerrainDeformCrater_FUNC TerrainDeformCrater_ptr = nullptr; TerrainDeformRandom_FUNC TerrainDeformRandom_org = nullptr; TerrainDeformRandom_FUNC TerrainDeformRandom_ptr = nullptr; TerrainDeformRipple_FUNC TerrainDeformRipple_org = nullptr; TerrainDeformRipple_FUNC TerrainDeformRipple_ptr = nullptr; TerrainDeformStop_FUNC TerrainDeformStop_org = nullptr; TerrainDeformStop_FUNC TerrainDeformStop_ptr = nullptr; TerrainDeformStopAll_FUNC TerrainDeformStopAll_org = nullptr; TerrainDeformStopAll_FUNC TerrainDeformStopAll_ptr = nullptr; TerrainDeformWave_FUNC TerrainDeformWave_org = nullptr; TerrainDeformWave_FUNC TerrainDeformWave_ptr = nullptr; TimerDialogDisplay_FUNC TimerDialogDisplay_org = nullptr; TimerDialogDisplay_FUNC TimerDialogDisplay_ptr = nullptr; TimerDialogSetRealTimeRemaining_FUNC TimerDialogSetRealTimeRemaining_org = nullptr; TimerDialogSetRealTimeRemaining_FUNC TimerDialogSetRealTimeRemaining_ptr = nullptr; TimerDialogSetSpeed_FUNC TimerDialogSetSpeed_org = nullptr; TimerDialogSetSpeed_FUNC TimerDialogSetSpeed_ptr = nullptr; TimerDialogSetTimeColor_FUNC TimerDialogSetTimeColor_org = nullptr; TimerDialogSetTimeColor_FUNC TimerDialogSetTimeColor_ptr = nullptr; TimerDialogSetTitle_FUNC TimerDialogSetTitle_org = nullptr; TimerDialogSetTitle_FUNC TimerDialogSetTitle_ptr = nullptr; TimerDialogSetTitleColor_FUNC TimerDialogSetTitleColor_org = nullptr; TimerDialogSetTitleColor_FUNC TimerDialogSetTitleColor_ptr = nullptr; TimerGetElapsed_FUNC TimerGetElapsed_org = nullptr; TimerGetElapsed_FUNC TimerGetElapsed_ptr = nullptr; TimerGetRemaining_FUNC TimerGetRemaining_org = nullptr; TimerGetRemaining_FUNC TimerGetRemaining_ptr = nullptr; TimerGetTimeout_FUNC TimerGetTimeout_org = nullptr; TimerGetTimeout_FUNC TimerGetTimeout_ptr = nullptr; TimerStart_FUNC TimerStart_org = nullptr; TimerStart_FUNC TimerStart_ptr = nullptr; TownHasHall_FUNC TownHasHall_org = nullptr; TownHasHall_FUNC TownHasHall_ptr = nullptr; TownHasMine_FUNC TownHasMine_org = nullptr; TownHasMine_FUNC TownHasMine_ptr = nullptr; TownThreatened_FUNC TownThreatened_org = nullptr; TownThreatened_FUNC TownThreatened_ptr = nullptr; TownWithMine_FUNC TownWithMine_org = nullptr; TownWithMine_FUNC TownWithMine_ptr = nullptr; TriggerAddAction_FUNC TriggerAddAction_org = nullptr; TriggerAddAction_FUNC TriggerAddAction_ptr = nullptr; TriggerAddCondition_FUNC TriggerAddCondition_org = nullptr; TriggerAddCondition_FUNC TriggerAddCondition_ptr = nullptr; TriggerClearActions_FUNC TriggerClearActions_org = nullptr; TriggerClearActions_FUNC TriggerClearActions_ptr = nullptr; TriggerClearConditions_FUNC TriggerClearConditions_org = nullptr; TriggerClearConditions_FUNC TriggerClearConditions_ptr = nullptr; TriggerEvaluate_FUNC TriggerEvaluate_org = nullptr; TriggerEvaluate_FUNC TriggerEvaluate_ptr = nullptr; TriggerExecute_FUNC TriggerExecute_org = nullptr; TriggerExecute_FUNC TriggerExecute_ptr = nullptr; TriggerExecuteWait_FUNC TriggerExecuteWait_org = nullptr; TriggerExecuteWait_FUNC TriggerExecuteWait_ptr = nullptr; TriggerRegisterDeathEvent_FUNC TriggerRegisterDeathEvent_org = nullptr; TriggerRegisterDeathEvent_FUNC TriggerRegisterDeathEvent_ptr = nullptr; TriggerRegisterDialogButtonEvent_FUNC TriggerRegisterDialogButtonEvent_org = nullptr; TriggerRegisterDialogButtonEvent_FUNC TriggerRegisterDialogButtonEvent_ptr = nullptr; TriggerRegisterDialogEvent_FUNC TriggerRegisterDialogEvent_org = nullptr; TriggerRegisterDialogEvent_FUNC TriggerRegisterDialogEvent_ptr = nullptr; TriggerRegisterEnterRegion_FUNC TriggerRegisterEnterRegion_org = nullptr; TriggerRegisterEnterRegion_FUNC TriggerRegisterEnterRegion_ptr = nullptr; TriggerRegisterFilterUnitEvent_FUNC TriggerRegisterFilterUnitEvent_org = nullptr; TriggerRegisterFilterUnitEvent_FUNC TriggerRegisterFilterUnitEvent_ptr = nullptr; TriggerRegisterGameEvent_FUNC TriggerRegisterGameEvent_org = nullptr; TriggerRegisterGameEvent_FUNC TriggerRegisterGameEvent_ptr = nullptr; TriggerRegisterGameStateEvent_FUNC TriggerRegisterGameStateEvent_org = nullptr; TriggerRegisterGameStateEvent_FUNC TriggerRegisterGameStateEvent_ptr = nullptr; TriggerRegisterLeaveRegion_FUNC TriggerRegisterLeaveRegion_org = nullptr; TriggerRegisterLeaveRegion_FUNC TriggerRegisterLeaveRegion_ptr = nullptr; TriggerRegisterPlayerAllianceChange_FUNC TriggerRegisterPlayerAllianceChange_org = nullptr; TriggerRegisterPlayerAllianceChange_FUNC TriggerRegisterPlayerAllianceChange_ptr = nullptr; TriggerRegisterPlayerChatEvent_FUNC TriggerRegisterPlayerChatEvent_org = nullptr; TriggerRegisterPlayerChatEvent_FUNC TriggerRegisterPlayerChatEvent_ptr = nullptr; TriggerRegisterPlayerEvent_FUNC TriggerRegisterPlayerEvent_org = nullptr; TriggerRegisterPlayerEvent_FUNC TriggerRegisterPlayerEvent_ptr = nullptr; TriggerRegisterPlayerStateEvent_FUNC TriggerRegisterPlayerStateEvent_org = nullptr; TriggerRegisterPlayerStateEvent_FUNC TriggerRegisterPlayerStateEvent_ptr = nullptr; TriggerRegisterPlayerUnitEvent_FUNC TriggerRegisterPlayerUnitEvent_org = nullptr; TriggerRegisterPlayerUnitEvent_FUNC TriggerRegisterPlayerUnitEvent_ptr = nullptr; TriggerRegisterTimerEvent_FUNC TriggerRegisterTimerEvent_org = nullptr; TriggerRegisterTimerEvent_FUNC TriggerRegisterTimerEvent_ptr = nullptr; TriggerRegisterTimerExpireEvent_FUNC TriggerRegisterTimerExpireEvent_org = nullptr; TriggerRegisterTimerExpireEvent_FUNC TriggerRegisterTimerExpireEvent_ptr = nullptr; TriggerRegisterTrackableHitEvent_FUNC TriggerRegisterTrackableHitEvent_org = nullptr; TriggerRegisterTrackableHitEvent_FUNC TriggerRegisterTrackableHitEvent_ptr = nullptr; TriggerRegisterTrackableTrackEvent_FUNC TriggerRegisterTrackableTrackEvent_org = nullptr; TriggerRegisterTrackableTrackEvent_FUNC TriggerRegisterTrackableTrackEvent_ptr = nullptr; TriggerRegisterUnitEvent_FUNC TriggerRegisterUnitEvent_org = nullptr; TriggerRegisterUnitEvent_FUNC TriggerRegisterUnitEvent_ptr = nullptr; TriggerRegisterUnitInRange_FUNC TriggerRegisterUnitInRange_org = nullptr; TriggerRegisterUnitInRange_FUNC TriggerRegisterUnitInRange_ptr = nullptr; TriggerRegisterUnitStateEvent_FUNC TriggerRegisterUnitStateEvent_org = nullptr; TriggerRegisterUnitStateEvent_FUNC TriggerRegisterUnitStateEvent_ptr = nullptr; TriggerRegisterVariableEvent_FUNC TriggerRegisterVariableEvent_org = nullptr; TriggerRegisterVariableEvent_FUNC TriggerRegisterVariableEvent_ptr = nullptr; TriggerRemoveAction_FUNC TriggerRemoveAction_org = nullptr; TriggerRemoveAction_FUNC TriggerRemoveAction_ptr = nullptr; TriggerRemoveCondition_FUNC TriggerRemoveCondition_org = nullptr; TriggerRemoveCondition_FUNC TriggerRemoveCondition_ptr = nullptr; TriggerSleepAction_FUNC TriggerSleepAction_org = nullptr; TriggerSleepAction_FUNC TriggerSleepAction_ptr = nullptr; TriggerSyncReady_FUNC TriggerSyncReady_org = nullptr; TriggerSyncReady_FUNC TriggerSyncReady_ptr = nullptr; TriggerSyncStart_FUNC TriggerSyncStart_org = nullptr; TriggerSyncStart_FUNC TriggerSyncStart_ptr = nullptr; TriggerWaitForSound_FUNC TriggerWaitForSound_org = nullptr; TriggerWaitForSound_FUNC TriggerWaitForSound_ptr = nullptr; TriggerWaitOnSleeps_FUNC TriggerWaitOnSleeps_org = nullptr; TriggerWaitOnSleeps_FUNC TriggerWaitOnSleeps_ptr = nullptr; UnitAddAbility_FUNC UnitAddAbility_org = nullptr; UnitAddAbility_FUNC UnitAddAbility_ptr = nullptr; UnitAddIndicator_FUNC UnitAddIndicator_org = nullptr; UnitAddIndicator_FUNC UnitAddIndicator_ptr = nullptr; UnitAddItem_FUNC UnitAddItem_org = nullptr; UnitAddItem_FUNC UnitAddItem_ptr = nullptr; UnitAddItemById_FUNC UnitAddItemById_org = nullptr; UnitAddItemById_FUNC UnitAddItemById_ptr = nullptr; UnitAddItemToSlotById_FUNC UnitAddItemToSlotById_org = nullptr; UnitAddItemToSlotById_FUNC UnitAddItemToSlotById_ptr = nullptr; UnitAddSleep_FUNC UnitAddSleep_org = nullptr; UnitAddSleep_FUNC UnitAddSleep_ptr = nullptr; UnitAddSleepPerm_FUNC UnitAddSleepPerm_org = nullptr; UnitAddSleepPerm_FUNC UnitAddSleepPerm_ptr = nullptr; UnitAddType_FUNC UnitAddType_org = nullptr; UnitAddType_FUNC UnitAddType_ptr = nullptr; UnitAlive_FUNC UnitAlive_org = nullptr; UnitAlive_FUNC UnitAlive_ptr = nullptr; UnitApplyTimedLife_FUNC UnitApplyTimedLife_org = nullptr; UnitApplyTimedLife_FUNC UnitApplyTimedLife_ptr = nullptr; UnitCanSleep_FUNC UnitCanSleep_org = nullptr; UnitCanSleep_FUNC UnitCanSleep_ptr = nullptr; UnitCanSleepPerm_FUNC UnitCanSleepPerm_org = nullptr; UnitCanSleepPerm_FUNC UnitCanSleepPerm_ptr = nullptr; UnitCountBuffsEx_FUNC UnitCountBuffsEx_org = nullptr; UnitCountBuffsEx_FUNC UnitCountBuffsEx_ptr = nullptr; UnitDamagePoint_FUNC UnitDamagePoint_org = nullptr; UnitDamagePoint_FUNC UnitDamagePoint_ptr = nullptr; UnitDamageTarget_FUNC UnitDamageTarget_org = nullptr; UnitDamageTarget_FUNC UnitDamageTarget_ptr = nullptr; UnitDropItemPoint_FUNC UnitDropItemPoint_org = nullptr; UnitDropItemPoint_FUNC UnitDropItemPoint_ptr = nullptr; UnitDropItemSlot_FUNC UnitDropItemSlot_org = nullptr; UnitDropItemSlot_FUNC UnitDropItemSlot_ptr = nullptr; UnitDropItemTarget_FUNC UnitDropItemTarget_org = nullptr; UnitDropItemTarget_FUNC UnitDropItemTarget_ptr = nullptr; UnitHasBuffsEx_FUNC UnitHasBuffsEx_org = nullptr; UnitHasBuffsEx_FUNC UnitHasBuffsEx_ptr = nullptr; UnitHasItem_FUNC UnitHasItem_org = nullptr; UnitHasItem_FUNC UnitHasItem_ptr = nullptr; UnitId_FUNC UnitId_org = nullptr; UnitId_FUNC UnitId_ptr = nullptr; UnitId2String_FUNC UnitId2String_org = nullptr; UnitId2String_FUNC UnitId2String_ptr = nullptr; UnitIgnoreAlarm_FUNC UnitIgnoreAlarm_org = nullptr; UnitIgnoreAlarm_FUNC UnitIgnoreAlarm_ptr = nullptr; UnitIgnoreAlarmToggled_FUNC UnitIgnoreAlarmToggled_org = nullptr; UnitIgnoreAlarmToggled_FUNC UnitIgnoreAlarmToggled_ptr = nullptr; UnitInventorySize_FUNC UnitInventorySize_org = nullptr; UnitInventorySize_FUNC UnitInventorySize_ptr = nullptr; UnitInvis_FUNC UnitInvis_org = nullptr; UnitInvis_FUNC UnitInvis_ptr = nullptr; UnitIsSleeping_FUNC UnitIsSleeping_org = nullptr; UnitIsSleeping_FUNC UnitIsSleeping_ptr = nullptr; UnitItemInSlot_FUNC UnitItemInSlot_org = nullptr; UnitItemInSlot_FUNC UnitItemInSlot_ptr = nullptr; UnitMakeAbilityPermanent_FUNC UnitMakeAbilityPermanent_org = nullptr; UnitMakeAbilityPermanent_FUNC UnitMakeAbilityPermanent_ptr = nullptr; UnitModifySkillPoints_FUNC UnitModifySkillPoints_org = nullptr; UnitModifySkillPoints_FUNC UnitModifySkillPoints_ptr = nullptr; UnitPauseTimedLife_FUNC UnitPauseTimedLife_org = nullptr; UnitPauseTimedLife_FUNC UnitPauseTimedLife_ptr = nullptr; UnitPoolAddUnitType_FUNC UnitPoolAddUnitType_org = nullptr; UnitPoolAddUnitType_FUNC UnitPoolAddUnitType_ptr = nullptr; UnitPoolRemoveUnitType_FUNC UnitPoolRemoveUnitType_org = nullptr; UnitPoolRemoveUnitType_FUNC UnitPoolRemoveUnitType_ptr = nullptr; UnitRemoveAbility_FUNC UnitRemoveAbility_org = nullptr; UnitRemoveAbility_FUNC UnitRemoveAbility_ptr = nullptr; UnitRemoveBuffs_FUNC UnitRemoveBuffs_org = nullptr; UnitRemoveBuffs_FUNC UnitRemoveBuffs_ptr = nullptr; UnitRemoveBuffsEx_FUNC UnitRemoveBuffsEx_org = nullptr; UnitRemoveBuffsEx_FUNC UnitRemoveBuffsEx_ptr = nullptr; UnitRemoveItem_FUNC UnitRemoveItem_org = nullptr; UnitRemoveItem_FUNC UnitRemoveItem_ptr = nullptr; UnitRemoveItemFromSlot_FUNC UnitRemoveItemFromSlot_org = nullptr; UnitRemoveItemFromSlot_FUNC UnitRemoveItemFromSlot_ptr = nullptr; UnitRemoveType_FUNC UnitRemoveType_org = nullptr; UnitRemoveType_FUNC UnitRemoveType_ptr = nullptr; UnitResetCooldown_FUNC UnitResetCooldown_org = nullptr; UnitResetCooldown_FUNC UnitResetCooldown_ptr = nullptr; UnitSetConstructionProgress_FUNC UnitSetConstructionProgress_org = nullptr; UnitSetConstructionProgress_FUNC UnitSetConstructionProgress_ptr = nullptr; UnitSetUpgradeProgress_FUNC UnitSetUpgradeProgress_org = nullptr; UnitSetUpgradeProgress_FUNC UnitSetUpgradeProgress_ptr = nullptr; UnitSetUsesAltIcon_FUNC UnitSetUsesAltIcon_org = nullptr; UnitSetUsesAltIcon_FUNC UnitSetUsesAltIcon_ptr = nullptr; UnitShareVision_FUNC UnitShareVision_org = nullptr; UnitShareVision_FUNC UnitShareVision_ptr = nullptr; UnitStripHeroLevel_FUNC UnitStripHeroLevel_org = nullptr; UnitStripHeroLevel_FUNC UnitStripHeroLevel_ptr = nullptr; UnitSuspendDecay_FUNC UnitSuspendDecay_org = nullptr; UnitSuspendDecay_FUNC UnitSuspendDecay_ptr = nullptr; UnitUseItem_FUNC UnitUseItem_org = nullptr; UnitUseItem_FUNC UnitUseItem_ptr = nullptr; UnitUseItemPoint_FUNC UnitUseItemPoint_org = nullptr; UnitUseItemPoint_FUNC UnitUseItemPoint_ptr = nullptr; UnitUseItemTarget_FUNC UnitUseItemTarget_org = nullptr; UnitUseItemTarget_FUNC UnitUseItemTarget_ptr = nullptr; UnitWakeUp_FUNC UnitWakeUp_org = nullptr; UnitWakeUp_FUNC UnitWakeUp_ptr = nullptr; UnregisterStackedSound_FUNC UnregisterStackedSound_org = nullptr; UnregisterStackedSound_FUNC UnregisterStackedSound_ptr = nullptr; Unsummon_FUNC Unsummon_org = nullptr; Unsummon_FUNC Unsummon_ptr = nullptr; VersionCompatible_FUNC VersionCompatible_org = nullptr; VersionCompatible_FUNC VersionCompatible_ptr = nullptr; VersionGet_FUNC VersionGet_org = nullptr; VersionGet_FUNC VersionGet_ptr = nullptr; VersionSupported_FUNC VersionSupported_org = nullptr; VersionSupported_FUNC VersionSupported_ptr = nullptr; VolumeGroupReset_FUNC VolumeGroupReset_org = nullptr; VolumeGroupReset_FUNC VolumeGroupReset_ptr = nullptr; VolumeGroupSetVolume_FUNC VolumeGroupSetVolume_org = nullptr; VolumeGroupSetVolume_FUNC VolumeGroupSetVolume_ptr = nullptr; WaitGetEnemyBase_FUNC WaitGetEnemyBase_org = nullptr; WaitGetEnemyBase_FUNC WaitGetEnemyBase_ptr = nullptr; WaygateActivate_FUNC WaygateActivate_org = nullptr; WaygateActivate_FUNC WaygateActivate_ptr = nullptr; WaygateGetDestinationX_FUNC WaygateGetDestinationX_org = nullptr; WaygateGetDestinationX_FUNC WaygateGetDestinationX_ptr = nullptr; WaygateGetDestinationY_FUNC WaygateGetDestinationY_org = nullptr; WaygateGetDestinationY_FUNC WaygateGetDestinationY_ptr = nullptr; WaygateIsActive_FUNC WaygateIsActive_org = nullptr; WaygateIsActive_FUNC WaygateIsActive_ptr = nullptr; WaygateSetDestination_FUNC WaygateSetDestination_org = nullptr; WaygateSetDestination_FUNC WaygateSetDestination_ptr = nullptr;
A study of urban heat island of Banda Aceh City, Indonesia based on land use/cover changes and land surface temperature This article described the spatial and temporal of land surface temperature (LST) patterns in Banda Aceh City, Indonesia, in the context of urban heat island (UHI) phenomenon. Landsat imaginary in 1998 and 2018 was used in this study, which represents the conditions before and after the tsunami. Geographic Information System (GIS) and Remote Sensing (RS) technique were used for data analysis. The 1998 and 2018 LUC maps were derived from remote sensing satellite images using a supervised classification method (maximum likelihood). Both LUC maps contained five categories, namely built-up area, vegetation, water body, vacant land, and wet land. The 1998 LUC map had a kappa coefficient 0.91, while the 2018 LUC map had 0.84. It was found that the built-up area increased by 100%, while the vegetation category fell 50%. The overall mean LST in the study area increased 5.90C between 1998 and 2018, with the highest mean increase in the built-up area category. The study recommends that LST should be taken into consideration in urban planning process to realize sustainable urban development. It also emphasizes the importance of optimizing the availability of green open space to reduce UHI effects and helps in improving the quality of the urban environment. 
package stochastic.network; import stochastic.domain.Leg; import stochastic.domain.Tail; import stochastic.solver.SolverUtility; import java.util.ArrayList; import java.util.HashMap; class PathEnumerator { /** * Class used to enumerate all paths for a particular tail. */ private Tail tail; private ArrayList<Leg> legs; private int[] primaryDelays; private HashMap<Integer, ArrayList<Integer>> adjacencyList; private ArrayList<Path> paths; private ArrayList<Integer> currentPath; private boolean[] onPath; /** * delayTimes[i] the delay of legs[i] on the current path stored in "currentPath". It is the * sum of delay propagated to it by upstream legs and its own random primary delay. */ private ArrayList<Integer> propagatedDelays; PathEnumerator( Tail tail, ArrayList<Leg> legs, int[] primaryDelays, HashMap<Integer, ArrayList<Integer>> adjacencyList) { this.tail = tail; this.legs = legs; this.primaryDelays = primaryDelays; this.adjacencyList = adjacencyList; paths = new ArrayList<>(); currentPath = new ArrayList<>(); propagatedDelays = new ArrayList<>(); onPath = new boolean[legs.size()]; for (int i = 0; i < legs.size(); ++i) onPath[i] = false; } ArrayList<Path> generatePaths() { for (int i = 0; i < legs.size(); ++i) { Leg leg = legs.get(i); if (!tail.getSourcePort().equals(leg.getDepPort())) continue; // generate paths starting from leg. depthFirstSearch(i, 0); } return paths; } /** * Uses DFS to recursively build and store paths including delay times on each path. * Delay incurred by a leg when added to a path is the sum of * - delay propagated to it by the previous leg * - its own random primary delay * * @param legIndex index of leg in "legs" member to add to the current path * @param propagatedDelay delay time incurred by leg when added to the current path */ private void depthFirstSearch(Integer legIndex, Integer propagatedDelay) { // add index to current path currentPath.add(legIndex); onPath[legIndex] = true; propagatedDelays.add(propagatedDelay); // if the last leg on the path can connect to the sink node, store the current path Leg leg = legs.get(legIndex); if (leg.getArrPort().equals(tail.getSinkPort())) storeCurrentPath(); // dive to current node's neighbors if (adjacencyList.containsKey(legIndex)) { ArrayList<Integer> neighbors = adjacencyList.get(legIndex); for (Integer neighborIndex : neighbors) { if (onPath[neighborIndex]) continue; Leg neighborLeg = legs.get(neighborIndex); final int propagatedDelayToNext = SolverUtility.getPropagatedDelay( leg, neighborLeg, propagatedDelay + primaryDelays[legIndex]); depthFirstSearch(neighborIndex, propagatedDelayToNext); } } currentPath.remove(currentPath.size() - 1); propagatedDelays.remove(propagatedDelays.size() - 1); onPath[legIndex] = false; } private void storeCurrentPath() { Path path = new Path(tail); for (int i = 0; i < currentPath.size(); ++i) { Leg leg = legs.get(currentPath.get(i)); path.addLeg(leg, propagatedDelays.get(i)); } paths.add(path); } }
<reponame>precorPhaniPutrevu/web-api-bridge<gh_stars>0 import { PostMessage } from "../lib"; /* * WebApiBridge should be left as a pure JS implementation. In order to * support typescript these declarations are supported in a separate .flow file. */ /** * `Message` objects are exchanged between the react native app and a * webview. They can be monitored by attaching a `Listener` to the `WebApiBridge` * through a `WebViewApi` object. */ export type Message = { type: "response" | "request", msgId: number, targetFunc: string, args: Array<any>, wantResult: boolean, } /** * `Listener` functions can monitor all `Message` objects exchanged between `WebApiBridge` * objects. `Listener` functions are attached to WebApiBridge` objects by setting the * `WebApiBridge listener` property. In a react application this would be done in the `WebViewApi` * that wants to listen to the bridge. */ export type Listener = (message: Message) => void export type Send = (apiCall: string, params: any[] | null, wantResult?: boolean) => void export type OnMessage = (event: string, data: {}) => void export default class WebApiBridge { listener: Listener | null; target: {}; useReactNativeWebView: boolean; send: Send; apis: {}[]; onMessage: OnMessage; }
<gh_stars>0 {-# LANGUAGE DataKinds, ExistentialQuantification, GADTs, KindSignatures, OverloadedStrings #-} module Parser (parseCards) where import Control.Arrow import Data.Char (isSpace) import Data.List (dropWhileEnd) import Data.Void import Text.Megaparsec import Text.Megaparsec.Char import Text.Wrap import Data.Text (pack, unpack) import Types import qualified Data.List.NonEmpty as NE type Parser = Parsec Void String uncurry3 f (a, b, c) = f a b c parseCards :: String -> Either String [Card] parseCards s = case parse pCards "failed when parsing cards" s of Left parseErrorBundle -> Left $ errorBundlePretty (parseErrorBundle :: ParseErrorBundle String Void) Right msgOrCards -> left wrap (sequence msgOrCards) where wrap = unlines . map unpack . wrapTextToLines (WrapSettings {preserveIndentation=False, breakLongWords=True}) 40 . pack pCards :: Parser [Either String Card] pCards = (pCard `sepEndBy1` seperator) <* eof pCard :: Parser (Either String Card) pCard = try pMultChoice <|> Right . uncurry MultipleAnswer <$> try pMultAnswer <|> try pReorder <|> Right . uncurry OpenQuestion <$> try pOpen <|> Right . uncurry Definition <$> pDef pHeader = do many eol char '#' spaceChar many (noneOf ['\n', '\r']) pMultChoice = do header <- pHeader many eol choices <- pChoice `sepBy1` lookAhead (try choicePrefix) msgOrResult <- makeMultipleChoice choices case msgOrResult of Left errMsg -> do pos <- getSourcePos return . Left $ sourcePosPretty pos <> "\n" <> errMsg Right (correct, incorrects) -> return . Right $ MultipleChoice header correct incorrects pChoice = do kind <- oneOf ['*','-'] spaceChar text <- manyTill anySingle $ lookAhead (try (try choicePrefix <|> seperator <|> eof')) return (kind, text) choicePrefix = string "- " <|> string "* " pMultAnswer = do header <- pHeader many eol options <- pOption `sepBy1` lookAhead (try (char '[')) return (header, NE.fromList options) pOption = do char '[' kind <- oneOf ['*','x',' '] string "] " text <- manyTill anySingle $ lookAhead (try (seperator <|> string "[" <|> eof')) return $ makeOption kind (dropWhileEnd isSpace' text) pReorder = do header <- pHeader many eol elements <- pReorderElement `sepBy1` lookAhead (try pReorderPrefix) let numbers = map fst elements if all (`elem` numbers) [1..length numbers] then return . Right $ Reorder header (NE.fromList elements) else do pos <- getSourcePos return . Left $ sourcePosPretty pos <> "\n" <> "A reordering question should have numbers starting from 1 and increase from there without skipping any numbers, but this is not the case:\n" <> unlines (map show numbers) pReorderElement = do int <- pReorderPrefix text <- manyTill anySingle $ lookAhead (try (try seperator <|> try pReorderPrefix <|> eof')) return (read int, dropWhileEnd isSpace' text) pReorderPrefix = do int <- some digitChar string ". " return int pOpen = do header <- pHeader many eol (pre, gap) <- pGap sentence <- pSentence return (header, P pre gap sentence) pSentence = try pPerforated <|> pNormal pPerforated = do (pre, gap) <- pGap Perforated pre gap <$> pSentence chars = try escaped <|> anySingle escaped = char '\\' >> char '_' pGap = do pre <- manyTill chars $ lookAhead (try (string "_" <|> seperator)) char '_' gaps <- manyTill (noneOf ['_','|']) (lookAhead (try gappedSpecialChars)) `sepBy1` string "|" char '_' return (pre, NE.fromList gaps) gappedSpecialChars = seperator <|> string "|" <|> string "_" pNormal = do text <- manyTill (noneOf ['_']) $ lookAhead $ try $ seperator <|> eof' return (Normal (dropWhileEnd isSpace' text)) pDef = do header <- pHeader many eol descr <- manyTill chars $ lookAhead $ try $ seperator <|> eof' return (header, dropWhileEnd isSpace' descr) eof' = eof >> return [] <?> "end of file" seperator = do sep <- string "---" many eol return sep makeMultipleChoice :: [(Char, String)] -> Parser (Either String (CorrectOption, [IncorrectOption])) makeMultipleChoice options = makeMultipleChoice' [] [] 0 options where -- makeMultipleChoice' [] _ _ [] = Left ("multiple choice had no correct answer: \n" ++ showPretty options) makeMultipleChoice' :: [CorrectOption] -> [IncorrectOption] -> Int -> [(Char, String)] -> Parser (Either String (CorrectOption, [IncorrectOption])) makeMultipleChoice' [] _ _ [] = fail "woops" makeMultipleChoice' [c] ics _ [] = return $ Right (c, reverse ics) makeMultipleChoice' _ _ _ [] = return $ Left ("multiple choice had multiple correct answers: \n" ++ showPretty options) makeMultipleChoice' cs ics i (('-', text) : opts) = makeMultipleChoice' cs (IncorrectOption (dropWhileEnd isSpace' text) : ics) (i+1) opts makeMultipleChoice' cs ics i (('*', text) : opts) = makeMultipleChoice' (CorrectOption i (dropWhileEnd isSpace' text) : cs) ics (i+1) opts makeMultipleChoice' _ _ _ _ = return $ Left "impossible" showPretty :: [(Char, String)] -> String showPretty = foldr ((<>) . showOne) "" showOne (c, s) = [c] <> " " <> s makeOption :: Char -> String -> Option makeOption kind text | kind `elem` ['*','x'] = Option Correct text | otherwise = Option Incorrect text isSpace' :: Char -> Bool isSpace' '\r' = True isSpace' a = isSpace a
Update January 19, 2012: title of and link to newly published article added in third paragraph. If you answered ‘animal agriculture’ or ‘livestock production’ (essentially, meat and dairy production) to the question above, you were right. I wrote about a study on this matter many moons ago, on Planetsave and on a couple of other Important Media sites. An article on the study, Livestock and Climate Change, was published in the journal World Watch and was quickly attacked by the livestock industry. Some tried to publish a critique of the study (including co-authors of the United Nations Food and Agriculture Organization study Livestock’s Long Shadow, which found that 18% of humanity’s greenhouse gas emissions came from livestock production), but none were able to do a good enough job to get such a critique published in a peer-reviewed journal. The bottom line seems to be that there’s good evidence showing that 51% or more of humanity’s greenhouse gas emissions come from livestock production, and one of the easiest and quickest things we can do to combat global warming is cut (or cut down on) the meat and dairy products we eat. An anonymous person closely connected with Livestock and Climate Change recently let me know that the authors of that report have a new article about to be published in the cattlemen-friendly journal Animal Feed Science and Technology (AFST). The new article, Livestock and greenhouse has emissions: The importance of getting the numbers right, “essentially explains how our work is more reliable than Livestock’s Long Shadow.” Surprising that a cattlemen-friendly journal would publish such a piece! Simplifying and Communicating to the Masses I think everyone knows that academic papers can easily sit unread and, thus, unhelpful to the masses who could learn something from them. Some good news in this story, however, is that Anhang, Goodland, and others are working to put their findings into more a useful package… or two. And they’re looking to raise awareness about this issue. They’ve launched a website called Chomping Climate Change and the video below. Check the site and video out and share them (or this piece) with your green and non-green friends! It’s mighty hard to create necessary change if we don’t help educate each other.
/** * Converts the old project to the project view model. */ public class OldProjectConverter { public ProjectViewModel convert(ProjectOldFormat oldProject) { var project = new ProjectViewModel(); project.nameProperty().set(oldProject.modelName); project.setOwner(oldProject.owner); project.setDateCreated(oldProject.dateCreated); project.setComment(oldProject.comment); return project; } }
def _is_command(line: str) -> bool: stripped = line.strip() return bool(stripped) and not stripped.startswith("#")
/// Extend the bounding box on all sides by a margin /// For example to expand it by a certain epsilon to make /// sure that a lookup will be inside the bounding box void OrientedBBox::extend(double val) { if (is_valid_) { cmin_.x(cmin_.x()-val); cmin_.y(cmin_.y()-val); cmin_.z(cmin_.z()-val); cmax_.x(cmax_.x()+val); cmax_.y(cmax_.y()+val); cmax_.z(cmax_.z()+val); } }
/** * Number string converter that provides a filter for text changes. */ class NumberStringFilteredConverter extends NumberStringConverter { NumberStringFilteredConverter() { super(isIntegerTypedField() ? NumberFormat.getIntegerInstance() : NumberFormat.getNumberInstance()); NumberFormat nFormat = getNumberFormat(); nFormat.setGroupingUsed(false); numberOfIntegersProperty().addListener(obs -> nFormat.setMaximumIntegerDigits(getNumberOfIntegers())); numberOfDecimalsProperty().addListener(obs -> nFormat.setMaximumFractionDigits(getNumberOfDecimals())); } UnaryOperator<TextFormatter.Change> getFilter() { return change -> { String newText = change.getControlNewText(); if (newText.isEmpty()) { return change; } if (isAllowNegatives()) { if (newText.equals("-")) { return change; } if (newText.startsWith("-")) { newText = newText.substring(1); if (newText.startsWith("-")) { return null; } } } else if (newText.startsWith("-")) { return null; } ParsePosition parsePosition = new ParsePosition( 0); Number number = getNumberFormat().parse(newText, parsePosition); if (number == null || parsePosition.getIndex() < newText.length()) { return null; } return change; }; } }