answer
stringlengths
15
1.25M
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="<API key>"><table class="fmt0table"><tr><th class="zt1"><b><font class=""></font></b></th><td class="zc1"></td></tr> </td></tr></table></div> <!-- <API key> --><div class="<API key>"></div> <!-- <API key> --></div> <!-- layoutclass_pic --></td></tr></table>
package com.workday.postman.codegen; import com.squareup.javawriter.JavaWriter; import com.workday.meta.MetaTypeNames; import com.workday.meta.MetaTypes; import com.workday.meta.Modifiers; import com.workday.postman.parceler.Parceler; import com.workday.postman.util.Names; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.EnumSet; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.annotation.processing.<API key>; import javax.lang.model.element.ExecutableElement; import javax.lang.model.element.Modifier; import javax.lang.model.element.TypeElement; import javax.lang.model.element.VariableElement; import javax.tools.Diagnostic; import javax.tools.JavaFileObject; /** * @author nathan.taylor * @since 2013-9-25-17:51 */ class ParcelerGenerator { final <API key> processingEnv; private final Collection<VariableElement> parceledFields; private final TypeElement elementToParcel; private final String parcelerName; final MetaTypes metaTypes; private final Collection<ExecutableElement> <API key>; String <API key>; final String <API key>; private final List<SaveStatementWriter> <API key>; private static final SaveStatementWriter <API key> = <API key>.INSTANCE; public ParcelerGenerator(<API key> processingEnv, TypeElement elementToParcel) { this.processingEnv = processingEnv; metaTypes = new MetaTypes(processingEnv); this.elementToParcel = elementToParcel; <API key> = elementToParcel.getQualifiedName().toString(); parcelerName = MetaTypeNames.constructTypeName(elementToParcel, Names.PARCELER_SUFFIX); <API key> <API key> = new <API key>(processingEnv); this.parceledFields = <API key>.<API key>(elementToParcel); this.<API key> = <API key>.<API key>(elementToParcel); <API key> = <API key>(); } public void generateParceler() throws IOException { JavaFileObject sourceFile = processingEnv.getFiler().createSourceFile(parcelerName); JavaWriter writer = new JavaWriter(sourceFile.openWriter()); writer.emitPackage(processingEnv.getElementUtils().getPackageOf( elementToParcel).getQualifiedName().toString()); writer.emitImports(getImports()); writer.emitEmptyLine(); <API key> = writer.compressType(elementToParcel.getQualifiedName().toString()); writer.beginType(parcelerName, "class", EnumSet.of(Modifier.PUBLIC, Modifier.FINAL), null, JavaWriter.type(Parceler.class, <API key>)); writer.emitEmptyLine(); <API key>(writer); writer.emitEmptyLine(); <API key>(writer); writer.emitEmptyLine(); writeNewArrayMethod(writer); writer.emitEmptyLine(); writer.endType(); writer.close(); } private Set<String> getImports() { Set<String> imports = new HashSet<>(); imports.add("android.os.Bundle"); imports.add("android.os.Parcel"); imports.add(Parceler.class.getCanonicalName()); return imports; } private void <API key>(JavaWriter writer) throws IOException { List<String> parameters = new ArrayList<>(4); parameters.add(<API key>); parameters.add("object"); parameters.add("Parcel"); parameters.add("dest"); writer.emitAnnotation(Override.class); writer.beginMethod("void", "writeToParcel", Modifiers.PUBLIC, parameters, null); writer.emitStatement("Bundle bundle = new Bundle()"); for (VariableElement field : parceledFields) { <API key>(field).<API key>(field, writer); } writer.emitStatement("dest.writeBundle(bundle)"); writer.endMethod(); } private void <API key>(JavaWriter writer) throws IOException { writer.emitAnnotation(Override.class); writer.beginMethod(<API key>, "readFromParcel", Modifiers.PUBLIC, "Parcel", "parcel"); writer.emitStatement("%s object = new %s()", <API key>, <API key>); writer.emitStatement("Bundle bundle = parcel.readBundle()"); writer.emitStatement("bundle.setClassLoader(%s.class.getClassLoader())", <API key>); for (VariableElement field : parceledFields) { <API key>(field).<API key>(field, <API key>, writer); } writer.emitStatement("return object"); writer.endMethod(); } private void writeNewArrayMethod(JavaWriter writer) throws IOException { writer.emitAnnotation(Override.class); writer.beginMethod(String.format("%s[]", <API key>), "newArray", Modifiers.PUBLIC, "int", "size"); writer.emitStatement("return new %s[size]", <API key>); writer.endMethod(); } private com.workday.postman.codegen.SaveStatementWriter <API key>( VariableElement field) { for (com.workday.postman.codegen.SaveStatementWriter saveStatementWriter : <API key>) { if (saveStatementWriter.isApplicable(field)) { return saveStatementWriter; } } String errorMessage = String.format("%s.%s of type %s cannot be written to a Bundle.", <API key>, field.getSimpleName().toString(), field.asType().toString()); processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, errorMessage, field); return <API key>; } private List<com.workday.postman.codegen.SaveStatementWriter> <API key>() { List<SaveStatementWriter> list = new ArrayList<>(); list.add(new <API key>(metaTypes)); list.add(new <API key>(metaTypes)); list.add(new <API key>(metaTypes)); list.add(new <API key>(metaTypes)); list.add(new <API key>(metaTypes)); list.add(new <API key>(this)); list.add(new <API key>(this)); list.add(new <API key>(metaTypes)); return Collections.unmodifiableList(list); } }
<?php namespace MusicBrainz\Filter\Property; use AskLucy\Expression\Clause\Term; use MusicBrainz\Value\Longitude; trait LongitudeTrait { use AbstractAdderTrait; /** * Returns the field name for the longitude. * * @return string */ public static function longitude(): string { return 'longitude'; } /** * Adds the longitude. * * @param Longitude $longitude The longitude * * @return Term */ public function addLongitude(Longitude $longitude): Term { return $this->addTerm($longitude, self::longitude()); } }
using System.Collections.Generic; using System.Linq; using System.Security.Claims; using Abp.Extensions; namespace tzky.saas.Identity { public class <API key> { public static (string name, string surname) <API key>(List<Claim> claims) { string name = null; string surname = null; var givennameClaim = claims.FirstOrDefault(c => c.Type == ClaimTypes.GivenName); if (givennameClaim != null && !givennameClaim.Value.IsNullOrEmpty()) { name = givennameClaim.Value; } var surnameClaim = claims.FirstOrDefault(c => c.Type == ClaimTypes.Surname); if (surnameClaim != null && !surnameClaim.Value.IsNullOrEmpty()) { surname = surnameClaim.Value; } if (name == null || surname == null) { var nameClaim = claims.FirstOrDefault(c => c.Type == ClaimTypes.Name); if (nameClaim != null) { var nameSurName = nameClaim.Value; if (!nameSurName.IsNullOrEmpty()) { var lastSpaceIndex = nameSurName.LastIndexOf(' '); if (lastSpaceIndex < 1 || lastSpaceIndex > (nameSurName.Length - 2)) { name = surname = nameSurName; } else { name = nameSurName.Substring(0, lastSpaceIndex); surname = nameSurName.Substring(lastSpaceIndex); } } } } return (name, surname); } } }
# Peruse ## About An electron web browser. Built to be a basis. Extendable by design. ## WebApp Development Safe uses the RDF compliant WebId system for easily enabling user account management. You can retrieve the current webId via `window.currentWebId`; You can listen for changes via the event emitter, `window.webIdEventEmitter`, eg: js webIdEventEmitter.on('update', ( webId ) => { console.log('an updateId occurred!', webId); }); ## Development There are `dev-` prefixed releases of Peruse available. These come with both live network and mock network libs, bundled. By default, opening the app will open Peruse for the mock network (when you're running in a `NODE_ENV=dev` environment). Otherwise, there is the option to pass a `--live` flag to the browser. This will start the browser in a `live` network mode. eg, on OSX: `NODE_ENV=dev open Peruse.app --args --live` Debugging A `--debug` flag is also available to get extra logs and devtool windows when working with a packaged application. Additionally, the `--preload` flag can be passed in order to get the following features preloaded in `mock` network mode: - an [interactive tool](https://github.com/maidsafe/safe_examples/tree/master/<API key>) to learn about the browser's SAFE network API, located at `safe://api.playground` - Account login credentials, both secret and password being `<API key>` `NODE_ENV=dev open Peruse.app --args --mock --preload` Compiling Make sure you have both git and [yarn](https://yarnpkg.com/en/docs/install) installed. You need to use node.js version `8.x` to build the browser currently. - `git clone https://github.com/joshuef/peruse.git` - `cd peruse` - `NODE_ENV=dev yarn` (`NODE_ENV` is needed to install mock libs and to tun `yarn mock-dev`). - `yarn rebuild` And to run dev mode: - `yarn mock-dev` Want to run 'production' variables, but with hot reloading? - `yarn <API key>-<windows|osx|linux>` - `yarn prod-dev` Note, you'll need a crust.config set for the application. [Helper commands are available on osx/linux](https://github.com/joshuef/peruse/blob/master/package.json#L43-L44) (not windows yet, sorry! this is only temporary.) And to package: - `yarn package` The resulting packages are contained within the `releases` folder. A packaged application, built in a `NODE_ENV=dev`, can access either `prod` or `dev` networks. `prod` is the default, or alternatively you can open the application and pass a `--mock` flag to open and use a mock network. # Build commands There are a few build commands for various situations: - `yarn mock-dev` will run a peruse developer version of the application using `MockVault` - `yarn prod-dev` will run a peruse developer version of the application using the live network. - `yarn build` compiles all code, but you shouldn't need to use this - `yarn build-preload` will need to be run whenever you change the `preload.js` file for changes to show up in the browser. Redux The core is built around redux for simple state management allowing for easy extensibility. React The interface is built in react for simple data flow and clear componentisation. Webpack `webpack.config.base` contains loaders and alias' used across all webpack configs. There is a prod, config. Alongside renderer configs. When developing against hot reloading, the `vendor` setup is used to speed up build times etc. There are 'dev' mode configs for running against the NODE_ENV=develeopment setup. There are 'live-dev' configs for running against NODE_ENV=production but without needing to package. Testing - `yarn test` runs jest (you have the optional `yarn test-watch`, too). - `yarn test-e2e` runs spectron integration tests (not yet stable). - `yarn lint` ...lints... Logging Via electron-log: `import logger from 'logger'`, and you can `logger.info('things')`. Logs are printed to both render console and stdout. Logs are also written to a log file per system. `yarn log-osx` will tail the file. Similar commands (as yet untested) exist for linux/windows. ## SAFE Network The `safe` code is contained within the `app/extensions` folder. This includes a simple http server with is used to provide the http like functionalities of the safe network. Currently you need to authenticate against the SAFE Browser to get network access. Authenticator Currently, we're using a `temp_dist` version of the authenticator webapp, prebuilt from the '<API key>'. - APIs are located in `app/extensions/safe/api`; - APIs are located in `app/extensions/safe/auth-api`;
'use strict'; var assign = require('assignment'); var formium = require('formium'); var state = { configure: configure }; function configure (options) { formium.configure({ qs: qs }); state.taunus = options.taunus; function qs (form) { var jsonText = { json: true, 'as-text': true }; return assign(jsonText, (options.qs || noop)(form)); } } function noop () {} module.exports = state;
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W29127_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> <div style="float: left;"> <a href="page13.html">&laquo;</a> </div> <div style="float: right;"> </div> </div> <hr/> <div style="position: absolute; margin-left: 164px; margin-top: 109px;"> <p class="styleSans724.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">EOG Resources <br/>(Revised 02/26/2014) <br/>Parshall 166v3534H, Parshall 402r3534H, Parshall 40l—3534H St Parshall 19r35H (Existing) <br/>SW1/4SE1/4, Section 35 Township 152 North Range 90 West 5th Principal Meridian <br/>Mountrail County North Dakota <br/> <br/> <br/>«'91 <br/>114 </p> </div> </body> </html>
/* eslint-disable no-console */ 'use strict'; const os = require('os'); const { LEVEL, MESSAGE } = require('triple-beam'); const TransportStream = require('winston-transport'); /** * Transport for outputting to the console. * @type {Console} * @extends {TransportStream} */ module.exports = class Console extends TransportStream { /** * Constructor function for the Console transport object responsible for * persisting log messages and metadata to a terminal or TTY. * @param {!Object} [options={}] - Options for this instance. */ constructor(options = {}) { super(options); // Expose the name of this Transport on the prototype this.name = options.name || 'console'; this.stderrLevels = this._stringArrayToSet(options.stderrLevels); this.consoleWarnLevels = this._stringArrayToSet(options.consoleWarnLevels); this.eol = (typeof options.eol === 'string') ? options.eol : os.EOL; this.setMaxListeners(30); } /** * Core logging method exposed to Winston. * @param {Object} info - TODO: add param description. * @param {Function} callback - TODO: add param description. * @returns {undefined} */ log(info, callback) { setImmediate(() => this.emit('logged', info)); // Remark: what if there is no raw...? if (this.stderrLevels[info[LEVEL]]) { if (console._stderr) { // Node.js maps `process.stderr` to `console._stderr`. console._stderr.write(`${info[MESSAGE]}${this.eol}`); } else { // console.error adds a newline console.error(info[MESSAGE]); } if (callback) { callback(); // eslint-disable-line callback-return } return; } else if (this.consoleWarnLevels[info[LEVEL]]) { if (console._stderr) { // Node.js maps `process.stderr` to `console._stderr`. // in Node.js console.warn is an alias for console.error console._stderr.write(`${info[MESSAGE]}${this.eol}`); } else { // console.warn adds a newline console.warn(info[MESSAGE]); } if (callback) { callback(); // eslint-disable-line callback-return } return; } if (console._stdout) { // Node.js maps `process.stdout` to `console._stdout`. console._stdout.write(`${info[MESSAGE]}${this.eol}`); } else { // console.log adds a newline. console.log(info[MESSAGE]); } if (callback) { callback(); // eslint-disable-line callback-return } } /** * Returns a Set-like object with strArray's elements as keys (each with the * value true). * @param {Array} strArray - Array of Set-elements as strings. * @param {?string} [errMsg] - Custom error message thrown on invalid input. * @returns {Object} - TODO: add return description. * @private */ _stringArrayToSet(strArray, errMsg) { if (!strArray) return {}; errMsg = errMsg || 'Cannot make set from type other than Array of string elements'; if (!Array.isArray(strArray)) { throw new Error(errMsg); } return strArray.reduce((set, el) => { if (typeof el !== 'string') { throw new Error(errMsg); } set[el] = true; return set; }, {}); } };
<?php echo 234234234;
/** * Implicts for RDDs. * import them as `import org.sparkpipe.rdd.implicits._` * structure of implicits package as follows: * main package (only one): package org.sparkpipe.rdd * object implicits * implicit classes and functions */ package org.sparkpipe.rdd package object implicits { import scala.io.Codec import scala.reflect.ClassTag import org.apache.hadoop.io.{LongWritable, Text} import org.apache.hadoop.mapred.{TextInputFormat, FileSplit} import org.apache.spark.SparkContext import org.apache.spark.rdd.{RDD, HadoopRDD} /** * :: Experimental :: * <API key> class provides some additional functionality to RDDs. * All methods can be called on SparkContext similar to standard methods, * such as `sc.textFile`. */ implicit class <API key>(sc: SparkContext) { // Maximum number of partitions when using `splitPerFile` option val MAX_NUM_PARTITIONS: Int = 65536 /** * Resolves local or HDFS file patterns and returns list with file paths. * `numSlices` is a number of partitions to use for file patterns, not results. * `splitPerFile` allows to store each resolved file path to be in its own partition. Very * useful, if using with PipedRDD chains. */ def fileName( files: Array[String], numSlices: Int, splitPerFile: Boolean = true ): RDD[String] = { val rdd = new <API key>[String](sc, files, numSlices) if (!splitPerFile) { return rdd } // Cache RDD and repartition by number of files. We cannot exceed maximum number of // partitions, after which splitPerFile will not work val numFiles = rdd.cache().count.toInt if (numFiles > MAX_NUM_PARTITIONS) { rdd.repartition(MAX_NUM_PARTITIONS) } else if (numFiles > 0) { rdd.repartition(numFiles) } else { rdd } } /** Filename RDD with default number of partitions */ def fileName(files: Array[String]): RDD[String] = { fileName(files, sc.<API key>, true) } /** Convinience method to specify paths as arguments */ def fileName(files: String*): RDD[String] = fileName(files.toArray) /** * File statistics for a file pattern/s. * Uses <API key> to resolve patterns, allows to repartition files afterwards. * Returns RDD of [[FileStatistics]] entries. */ def fileStats( files: Array[String], withChecksum: Boolean, numPartitions: Int ): RDD[FileStatistics] = { // process and resolve files val numFiles = files.length val splitPerFile = numPartitions <= 0 val filesCollection = fileName(files, numFiles, splitPerFile) // if number of partitions specified, we do not split per file, as we can repartition // it once afterwards val rdd = if (numPartitions > 0) { filesCollection.repartition(numPartitions) } else { filesCollection } new FileStatisticsRDD(rdd, withChecksum) } /** Convinience method for file statistics since usually only one pattern is passed */ def fileStats( pattern: String, withChecksum: Boolean, numPartitions: Int ): RDD[FileStatistics] = fileStats(Array[String](pattern), withChecksum, numPartitions) /** File statistics with maximum number of partitions, each file per partition */ def fileStats(files: Array[String], withChecksum: Boolean): RDD[FileStatistics] = fileStats(files, withChecksum, numPartitions = 0) /** File statistics with maximum number of partitions, each file per partition */ def fileStats(files: String*): RDD[FileStatistics] = fileStats(files.toArray, withChecksum = true, numPartitions = 0) /** Return RDD of pairs of filename, offset in bytes, and content line */ def textContent( path: String, minPartitions: Int = sc.<API key> ): RDD[(String, Long, String)] = { val rdd = sc.hadoopFile(path, classOf[TextInputFormat], classOf[LongWritable], classOf[Text], minPartitions).asInstanceOf[HadoopRDD[LongWritable, Text]] val hadoopRDD = rdd.<API key>((split, iter) => { val path = split.asInstanceOf[FileSplit].getPath().toString() new Iterator[(String, Long, String)] { def next(): (String, Long, String) = { val pair = iter.next() val bytes: Long = pair._1.get() val content: String = pair._2.toString // return path to the file split and content for the line (path, bytes, content) } def hasNext: Boolean = { iter.hasNext } } }, <API key> = true) hadoopRDD } } /** * :: Experimental :: * RichRDDFunctions class provides more functionality to RDDs inherited from * `spark.rdd.RDD`. Usually, it is for RDDs as narrow dependencies with defined parents. * For no-parent RDDs, look up `RichSparkContext`. */ implicit class RichRDDFunctions[T: ClassTag](rdd: RDD[T]) { /** pipes parent RDD with encoding specified */ def pipeWithEncoding(encoding: String, strict: Boolean): EncodePipedRDD[T] = new EncodePipedRDD[T](rdd, "bash", encoding, strict) /** pipes parent RDD with codec specified */ def pipeWithEncoding(strict: Boolean): EncodePipedRDD[T] = pipeWithEncoding(Codec.UTF8.toString, strict) /** pipes parent RDD with default UTF-8 encoding */ def pipeWithEncoding(): EncodePipedRDD[T] = pipeWithEncoding(Codec.UTF8.toString, true) } }
import React from 'react'; import { Map, TileLayer, LayersControl } from 'react-leaflet' import {GoogleLayer} from '../src' const { BaseLayer} = LayersControl; const key = 'Your Key goes here'; const terrain = 'TERRAIN'; const road = 'ROADMAP'; const satellite = 'SATELLITE'; const hydrid = 'HYBRID'; / Google's map type. Valid values are 'roadmap', 'satellite' or 'terrain'. 'hybrid' is not really supported. export default class GoogleExample extends React.Component { constructor() { super(); } render() { return ( <Map center={[42.09618442380296, -71.5045166015625]} zoom={2} zoomControl={true}> <LayersControl position='topright'> <BaseLayer name='OpenStreetMap.Mapnik'> <TileLayer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"/> </BaseLayer> <BaseLayer checked name='Google Maps Roads'> <GoogleLayer googlekey={key} maptype={road}/> </BaseLayer> <BaseLayer name='Google Maps Terrain'> <GoogleLayer googlekey={key} maptype={terrain} /> </BaseLayer> <BaseLayer name='Google Maps Satellite'> <GoogleLayer googlekey={key} maptype={satellite} /> </BaseLayer> <BaseLayer name='Google Maps Hydrid'> <GoogleLayer googlekey={key} maptype={hydrid} /> </BaseLayer> </LayersControl> </Map> ) } }
// Tiny helper script to listen for keyboard combos and to communicate back to the main Search component (via the Pattern Lab iframe) import Mousetrap from 'mousetrap'; import { targetOrigin } from '../../utils'; document.addEventListener('click', function () { try { const obj = JSON.stringify({ event: 'patternLab.pageClick', }); window.parent.postMessage(obj, targetOrigin); } catch (error) { // @todo: how do we want to handle exceptions here? } }); Mousetrap.bind('esc', function (e) { try { const obj = JSON.stringify({ event: 'patternLab.keyPress', key: e.key, altKey: e.altKey, ctrlKey: e.ctrlKey, metaKey: e.metaKey, shiftKey: e.shiftKey, }); window.parent.postMessage(obj, targetOrigin); } catch (error) { // @todo: how do we want to handle exceptions here? } return false; });
<!doctype html> <meta charset="utf-8"> <script src="../js/d3.js" charset="utf-8"></script> <script src="../build/vistk.js"></script> <body> <div id="viz"></div> <script> var data = ['A', 'B', 'C']; var visualization = vistk.viz().params({data: data}); d3.select("#viz").call(visualization); </script>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coq-in-coq: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.12.1 / coq-in-coq - 8.8.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> coq-in-coq <small> 8.8.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2021-04-16 14:57:06 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-04-16 14:57:06 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.12.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.10.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.10.1 Official release 4.10.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/coq-in-coq&quot; license: &quot;LGPL 2.1&quot; build: [make] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/CoqInCoq&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9~&quot;} ] tags: [ &quot;keyword: calculus of constructions&quot; &quot;category: Mathematics/Logic/Type theory&quot; &quot;category: Miscellaneous/Extracted Programs/Type checking unification and normalization&quot; ] authors: [ &quot;Bruno Barras&quot; ] bug-reports: &quot;https://github.com/coq-contribs/coq-in-coq/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/coq-in-coq.git&quot; synopsis: &quot;A formalisation of the Calculus of Construction&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/coq-in-coq/archive/v8.8.0.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-coq-in-coq.8.8.0 coq.8.12.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.12.1). The following dependencies couldn&#39;t be met: - coq-coq-in-coq -&gt; coq &lt; 8.9~ -&gt; ocaml &lt; 4.10 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-coq-in-coq.8.8.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
<div class="panel panel-default"> <div class="panel-heading"> <div class="row"> <div class="col-md-6"> <h3 class="panel-title"><i class="glyphicon glyphicon-list-alt"></i> Listar Puesto</h3> </div> <div class="col-md-6"> <!-- <a href="#/crear" class="btn btn-info pull-right">Nuevo <i class="fa fa-plus"></i></a> --> <a href="#/crear" class="btn btn-info pull-right">Nuevo <i class="fa fa-plus"></i></a> </div> </div> </div> <div class="panel-body"> <table class="table table-responsive" datatable="ng" dt-options="vm.dtOptions" > <thead> <tr> <th>Nro.</th> <th>Nombre</th> <th>Lado</th> <th>Tipo y Dimension</th> <th>Estado</th> <th>Costo y Nivel</th> <th>Editar</th> <th>Entrega</th> </tr> </thead> <tbody> <tr ng-repeat="puesto in Puestos"> <td> {{ $index + 1}} </td> <td> {{ puesto.nombre }} </td> <td> {{ puesto.lado }} </td> <td> {{ puesto.tipo }} - {{ puesto.dimension }} </td> <td> {{ puesto.estado }} </td> <td> {{ puesto.precio}} - {{ puesto.piso }} </td> <td> <a href="#/editar/{{ puesto.id }}" style="color:#f0ad4e;"> <i class="fa fa-pencil" aria-hidden="true"></i> </a> </td> <td> <a href="#/eliminar/{{ puesto.id }}" style="color:#c12e2a;"> <i class="fa fa-trash-o" aria-hidden="true"></i> </a> </td> </tr> </tbody> </table> </div> </div>
<!DOCTYPE html><html lang="en"><head><title>app/lang/en/dates</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../../../"><meta name="groc-document-path" content="app/lang/en/dates"><meta name="groc-project-path" content="app/lang/en/dates.js"><link rel="stylesheet" type="text/css" media="all" href="../../../assets/style.css"><script type="text/javascript" src="../../../assets/behavior.js"></script><body><div id="meta"><div class="file-path">app/lang/en/dates.js</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-pi">'use strict'</span>; module.exports = { <span class="hljs-string">'short'</span>: <span class="hljs-string">'DD/MM/YYYY'</span> };</div></div></div></div></body></html>
define([ "components/component", "renderers/kpirenderer", "prop/properties", 'vendor/lodash' ], function (Component, KPIRenderer, Properties, _) { /** * This is the base class for all the kpi components * @class KPIComponentCore * @augments {Component} * @access private */ function KPIComponentCore() { Component.apply(this, Array.prototype.slice.call(arguments)); var self = this, base = {}, Public, raw = self._raw, Protected, pro = self.pro, _bp = {}; Public = { /** * Sets a numeric value to the KPI which is displayed on the dashboard. * @method setValue * @param {Number} numberValue The value to be displayed * @param {<API key>} opts options to configure the display */ setValue: function (numberValue, opts) { opts = opts || {}; var _opts = _.extend(pro.pb.getObjectAtPath('kpi.display'), opts); _opts.value = numberValue; pro.pb.setObjectAtPath("kpi.display", _opts); }, <API key>: function (formatRule, appliedStyle) { var opts = {}; opts.expression = formatRule; opts.valueColor = appliedStyle; pro.pb.pushItemToList("kpi.<API key>", opts); } }; Protected = { <API key>: { 'sm': { w: 12, h: 3 }, 'xs': { w: 12, h: 4 }, 'md': { w: 3, h: 3 }, 'lg': { w: 3, h: 3 } } }; /** * This is the actual constructor of the object */ var construct = function () { pro.pb = new Properties.<API key>(); }; raw._registerClassName("KPIComponent"); raw._registerPublic(base, Public); raw._registerProtected(_bp, Protected); construct(); } return KPIComponentCore; });
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq-pcuic: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.13.0 / metacoq-pcuic - 1.0~beta2+8.11</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> metacoq-pcuic <small> 1.0~beta2+8.11 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-12-14 21:29:31 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-14 21:29:31 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq 8.13.0 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;matthieu.sozeau@inria.fr&quot; homepage: &quot;https://metacoq.github.io/metacoq&quot; dev-repo: &quot;git+https://github.com/MetaCoq/metacoq.git#coq-8.11&quot; bug-reports: &quot;https://github.com/MetaCoq/metacoq/issues&quot; authors: [&quot;Abhishek Anand &lt;aa755@cs.cornell.edu&gt;&quot; &quot;Simon Boulier &lt;simon.boulier@inria.fr&gt;&quot; &quot;Cyril Cohen &lt;cyril.cohen@inria.fr&gt;&quot; &quot;Yannick Forster &lt;forster@ps.uni-saarland.de&gt;&quot; &quot;Fabian Kunze &lt;fkunze@fakusb.de&gt;&quot; &quot;Gregory Malecha &lt;gmalecha@gmail.com&gt;&quot; &quot;Matthieu Sozeau &lt;matthieu.sozeau@inria.fr&gt;&quot; &quot;Nicolas Tabareau &lt;nicolas.tabareau@inria.fr&gt;&quot; &quot;Théo Winterhalter &lt;theo.winterhalter@inria.fr&gt;&quot; ] license: &quot;MIT&quot; build: [ [&quot;sh&quot; &quot;./configure.sh&quot;] [make &quot;-j%{jobs}%&quot; &quot;-C&quot; &quot;pcuic&quot;] ] install: [ [make &quot;-C&quot; &quot;pcuic&quot; &quot;install&quot;] ] depends: [ &quot;ocaml&quot; {&gt;= &quot;4.07.1&quot;} &quot;coq&quot; {&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.12~&quot;} &quot;coq-equations&quot; {&gt;= &quot;1.2.3&quot;} &quot;<API key>&quot; {= version} ] synopsis: &quot;A type system equivalent to Coq&#39;s and its metatheory&quot; description: &quot;&quot;&quot; MetaCoq is a meta-programming framework for Coq. The PCUIC module provides a cleaned-up specification of Coq&#39;s typing algorithm along with a certified typechecker for it. This module includes the standard metatheory of PCUIC: Weakening, Substitution, Confluence and Subject Reduction are proven here. &quot;&quot;&quot; # url { # checksum: &quot;md5=<API key>&quot; url { src: &quot;https://github.com/MetaCoq/metacoq/archive/v1.0-beta2-8.11.tar.gz&quot; checksum: &quot;sha256=<SHA256-like>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-metacoq-pcuic.1.0~beta2+8.11 coq.8.13.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.13.0). The following dependencies couldn&#39;t be met: - coq-metacoq-pcuic -&gt; ocaml &gt;= 4.07.1 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-metacoq-pcuic.1.0~beta2+8.11</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
describe('template route', function () { 'use strict'; it('should expose request object in template', function (done) { // "/api/test-template2-p(\\d+)-c(\\w+)" var app = fakr(); app.addRoute({ url: '/template-route/:p1', template: '"template route: {{{req.headers.accept-language}}} {{{req.params.p1}}} {{{req.query.p2}}}"', }); supertest(app) .get('/template-route/am-not?p2=the+only+one') .set('Accept-Language', 'I') .expect(200) .end(function (err, res) { if (err) { done(err); } expect(res.text).to.eql('"template route: I am-not the only one"'); done(); }); }); });
package models; import com.sun.javafx.beans.IDProperty; import java.util.List; import javax.persistence.*; import com.avaje.ebean.Model; @Entity @Table(name = "campoentity") public class CampoEntity extends Model{ public enum Region{ ANDINA, CARIBE, PACIFICA, ORINOQUIA, AMAZONAS } public static Finder<Long,CampoEntity> FINDER = new Finder<>(CampoEntity.class); @Id @GeneratedValue(strategy= GenerationType.SEQUENCE) private Long id; @OneToOne private UsuarioEntity idJefeCampo; @Enumerated(EnumType.STRING) private Region region; @OneToMany(mappedBy ="campo") private List<PozoEntity> pozos; // public CampoEntity(Long pId, UsuarioEntity pIdJefeCampo){ // id = pId; // idJefeCampo = pIdJefeCampo; public CampoEntity(long id, UsuarioEntity idJefeCampo, Region region, List<PozoEntity> pozos) { this.id = id; this.idJefeCampo = idJefeCampo; this.region = region; this.pozos = pozos; } public Region getRegion() { return region; } public void setRegion(Region region) { this.region = region; } public Long getId(){ return id; } public void setId(Long pId){ id = pId; } public UsuarioEntity getIdJefeCampo(){ return idJefeCampo; } public void setIdJefeCampo(UsuarioEntity pIdJefeCampo){ idJefeCampo = pIdJefeCampo; } public List<PozoEntity> getPozos() { return pozos; } public void setPozos(List<PozoEntity> pPozos){pozos=pPozos;} }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Vocational Computer Festival (Vocomfest) adalah lomba tahunan yang diselenggarakan oleh HIMAKOMSI UGM yang terdiri dari lomba web design untuk SLTA, lomba mmobile apps untuk mahasiswa, dan ditutup dengan sebuah seminar nasional."> <meta name="keywords" content="vocomfest, ugm, himakomsi, computer, festival, lomba"> <meta name="author" content="Vocomfest Technical Support Team"> <meta name="robots" content="index,follow"> <title>Vocomfest - Admin Dashboard</title> <!-- Shortcut icon --> <link rel="shortcut icon" type="x-icon" href="../assets/img/icon-2.png"> <!-- CSS HERE --> <link rel="stylesheet" href="../assets/css/bootstrap.css"> <link rel="stylesheet" href="../assets/css/normalize.css"> <link rel="stylesheet" href="../assets/css/animate.css"> <link rel="stylesheet" href="../assets/css/font-awesome.min.css"> <link rel="stylesheet" href="../assets/css/lightcase.css"> <link rel="stylesheet" href="../assets/css/loader.css"> <link rel="stylesheet" href="../assets/css/owl.carousel.css"> <link rel="stylesheet" href="../assets/css/owl.theme.css"> <link rel="stylesheet" href="../assets/css/vocomfest-style.css"> <!-- JAVASCRIPT HERE --> <script type="text/javascript" src="../assets/js/jquery.js"></script> <script type="text/javascript" src="../assets/js/loader.js"></script> <script type="text/javascript" src="../assets/plugins/tinymce/tinymce.min.js" ></script> <script type="text/javascript" src="../assets/plugins/tinymce/init-tinymce.js" ></script> </head> <body> <section id="aside" class="col-md-2 col-sm-2 nopad"> <div id="logo" class="pd-20"> <div class="row force-center"> <a href="../index.html"> <img src="../assets/img/logoDb.png" alt="Vocomfest"> </a> </div> </div> <div id="bAside" class="pd-bt-20"> <div id="user" class="text-center mg-b-20 pd-20"> <div class="users-icon sep-title"> <i class="fa fa-users"></i> </div> <h3>Administrator</h3> <hr class="line-db"> <span>Hello, </span> <h4 class="nomag">Administrator Name</h4> </div> <!-- nav --> <div id="navigation"> <nav class="navbar navbar-default navbar-default-blue"> <div class="container-fluid nopad"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#asideNav"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse nopad" id="asideNav"> <ul class="nav nav-db"> <li><a href="./dashboard.html"><i class="fa fa-dashboard"></i><span>Dashboard</span></a></li> <li><a href="./teams.html"><i class="fa fa-users"></i><span>Teams</span></a></li> <!-- <li><a href="#"><i class="fa fa-microphone"></i><span>Events</span></a></li> --> <li class="active"><a href="./news.html"><i class="fa fa-hourglass-half"></i><span>News</span></a></li> <li><a href="./gallery.html"><i class="fa fa-camera"></i><span>Gallery</span></a></li> <li><a href="./payments.html"><i class="fa fa-credit-card-alt"></i><span>Payments</span></a></li> <li><a href="./uploads.html"><i class="fa fa-upload"></i><span>Uploads</span></a></li> </ul> </div> </div> </nav> </div> <!-- /nav --> </div> </section> <section id="content" class="col-md-10 col-sm-10 nopad"> <header class="header-db"> <img src="../assets/img/event-cover.jpg" alt="News Vocomfest" class="cover-img"> <div class="overlay bk-gr-overlay" style=""></div> <section class="header-text"> <div class="top-header"> <span>Hello, Administrator Name | <a class="a-fa" href="./login.html"><i class="fa fa-sign-out"></i> Logout</a></span> </div> <h2 class="mont-bold">News</h2> <hr class="bl-line-sep"> </section> </header> <!-- NEWS CONTENT --> <div class="content-db"> <div class="row"> <section class="col-md-12 pd-t-15 pd-lr-15"> <div class="sec-content-db"> <div class="div-content-db"> <form method="" action=""> <h3 class="nomag">Edit Post</h3> <div class="row mg-t-20"> <div class="col-md-8"> <input type="text" name="title" id="title" placeholder="Enter News Title Here" value="Lorem Ipsum Dolorsit Amet" class="form-control"> </div> <div class="col-md-4 text-right"> <span>Categories : </span> <label> <select class="form-control" id="categories"> <option value="1">Categories 1</option> <option value="2" selected>Categories 2</option> <option value="3">Categories 3</option> <option value="4">Categories 4</option> </select> </label> </div> </div> <div class="row mg-t-20"> <div class="col-md-12"> <textarea class="tinymce"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </textarea> </div> </div> <div class="row mg-t-20"> <div class="col-md-12"> <label> <input type="submit" value="Save Draft" name="" class="btn btn-sm btn-default"> </label> <label> <input type="submit" value="Preview" name="" class="btn btn-sm btn-default"> </label> <label> <input type="submit" value="Publish" name="" class="btn btn-sm btn-info"> </label> </div> </div> </form> </div> </div> </section> </div> </div> <!-- /NEWS CONTENT --> </section> <!-- JAVASCRIPT HERE --> <script type="text/javascript" src="../assets/js/bootstrap.min.js"></script> <script type="text/javascript" src="../assets/js/modernizr.js"></script> <script type="text/javascript" src="../assets/js/jquery.nicescroll.min.js"></script> <script type="text/javascript" src="../assets/js/lightcase.js"></script> <script type="text/javascript" src="../assets/js/wow.min.js"></script> <script type="text/javascript" src="../assets/js/owl.carousel.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ // wow js new WOW().init() ; $('[data-toggle="tooltip"]').tooltip() ; //lightcase lightbox $('a[data-rel^=lightcase]').lightcase(); // nicescroll js $("html").niceScroll({ cursorcolor : 'rgba(0,0,0,0.5)', cursorwidth : '5px', cursorborder : 'none', cursorborderradius : '0px' , zindex : '101' }) ; // to ease when click '#' url $(function() { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top }, 1000); return false; } } }); }); // search function }) ; </script> </body> </html>
# Snapshot report for `test/direct-10-soft.js` The actual snapshot is saved in `direct-10-soft.js.snap`. Generated by [AVA](https://avajs.dev). ## Direct: Soft wrap to w10 l0 r0 > Snapshot 1 `Lorem␊ ipsum␊ dolor sit␊ amet,␊ consectetur␊ adipiscing␊ elit, sed␊ do eiusmod␊ tempor␊ incididunt␊ ut labore␊ et dolore␊ magna␊ aliqua. Ut␊ enim ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi ut␊ aliquip ex␊ ea commodo␊ consequat.␊ ␊ Duis aute␊ irure␊ dolor in␊ reprehenderit␊ in␊ voluptate␊ velit esse␊ cillum␊ dolore eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt in␊ culpa qui␊ officia␊ deserunt␊ mollit␊ anim id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l1 r0 > Snapshot 1 ` Lorem␊ ipsum␊ dolor sit␊ amet,␊ consectetur␊ adipiscing␊ elit, sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut labore␊ et dolore␊ magna␊ aliqua.␊ Ut enim␊ ad minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi ut␊ aliquip␊ ex ea␊ commodo␊ consequat.␊ ␊ Duis aute␊ irure␊ dolor in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt in␊ culpa qui␊ officia␊ deserunt␊ mollit␊ anim id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l2 r0 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut enim␊ ad minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi ut␊ aliquip␊ ex ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l5 r0 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut␊ enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi␊ ut␊ aliquip␊ ex ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt␊ in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim␊ id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l10 r0 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut␊ enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi␊ ut␊ aliquip␊ ex␊ ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt␊ in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim␊ id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l0 r1 > Snapshot 1 `Lorem␊ ipsum␊ dolor sit␊ amet,␊ consectetur␊ adipiscing␊ elit, sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut labore␊ et dolore␊ magna␊ aliqua.␊ Ut enim␊ ad minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi ut␊ aliquip␊ ex ea␊ commodo␊ consequat.␊ ␊ Duis aute␊ irure␊ dolor in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt in␊ culpa qui␊ officia␊ deserunt␊ mollit␊ anim id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l1 r1 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut enim␊ ad minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi ut␊ aliquip␊ ex ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l2 r1 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi ut␊ aliquip␊ ex ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l5 r1 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut␊ enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi␊ ut␊ aliquip␊ ex␊ ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt␊ in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim␊ id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l10 r1 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut␊ enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi␊ ut␊ aliquip␊ ex␊ ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt␊ in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim␊ id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l0 r5 > Snapshot 1 `Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut␊ enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi␊ ut␊ aliquip␊ ex ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt␊ in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim␊ id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l1 r5 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut␊ enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi␊ ut␊ aliquip␊ ex␊ ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt␊ in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim␊ id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l2 r5 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut␊ enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi␊ ut␊ aliquip␊ ex␊ ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt␊ in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim␊ id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l5 r5 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut␊ enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi␊ ut␊ aliquip␊ ex␊ ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt␊ in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim␊ id␊ est␊ laborum.␊ ` ## Direct: Soft wrap to w10 l10 r5 > Snapshot 1 ` Lorem␊ ipsum␊ dolor␊ sit␊ amet,␊ consectetur␊ adipiscing␊ elit,␊ sed␊ do␊ eiusmod␊ tempor␊ incididunt␊ ut␊ labore␊ et␊ dolore␊ magna␊ aliqua.␊ Ut␊ enim␊ ad␊ minim␊ veniam,␊ quis␊ nostrud␊ exercitation␊ ullamco␊ laboris␊ nisi␊ ut␊ aliquip␊ ex␊ ea␊ commodo␊ consequat.␊ ␊ Duis␊ aute␊ irure␊ dolor␊ in␊ reprehenderit␊ in␊ voluptate␊ velit␊ esse␊ cillum␊ dolore␊ eu␊ fugiat␊ nulla␊ pariatur.␊ Excepteur␊ sint␊ occaecat␊ cupidatat␊ non␊ proident,␊ sunt␊ in␊ culpa␊ qui␊ officia␊ deserunt␊ mollit␊ anim␊ id␊ est␊ laborum.␊ `
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla 5.0 (Linux; U; Android 4.1.2; en-us; HUAWEI G610-C00 Build HuaweiG610-C00) UC AppleWebKit 534.31 (KHTML, like Gecko) Mobile Safari 534.31</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="../circle.css" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> <h5 class="header light"> Mozilla 5.0 (Linux; U; Android 4.1.2; en-us; HUAWEI G610-C00 Build HuaweiG610-C00) UC AppleWebKit 534.31 (KHTML, like Gecko) Mobile Safari 534.31 </h5> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /><small>vendor/piwik/device-detector/Tests/fixtures/smartphone-1.yml</small></td><td>Android Browser </td><td>WebKit </td><td>Android 4.1.2</td><td style="border-left: 1px solid #555">Huawei</td><td>G610-C00</td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [user_agent] => Mozilla 5.0 (Linux; U; Android 4.1.2; en-us; HUAWEI G610-C00 Build HuaweiG610-C00) UC AppleWebKit 534.31 (KHTML, like Gecko) Mobile Safari 534.31 [os] => Array ( [name] => Android [short_name] => AND [version] => 4.1.2 [platform] => ) [client] => Array ( [type] => browser [name] => Android Browser [short_name] => AN [version] => [engine] => WebKit ) [device] => Array ( [type] => smartphone [brand] => HU [model] => G610-C00 ) [os_family] => Android [browser_family] => Android Browser ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td><td>Android Browser 534.31</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>DonatjUAParser result detail</h4> <p><pre><code class="php">Array ( [platform] => Android [browser] => Android Browser [version] => 534.31 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td><td>Safari </td><td><i class="material-icons">close</i></td><td>AndroidOS 4.1.2</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>JenssegersAgent result detail</h4> <p><pre><code class="php">Array ( [browserName] => Safari [browserVersion] => [osName] => AndroidOS [osVersion] => 4.1.2 [deviceModel] => WebKit [isMobile] => 1 [isRobot] => [botName] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td>Mobile Safari </td><td><i class="material-icons">close</i></td><td>Android 4.1.2</td><td style="border-left: 1px solid #555">Huawei</td><td>Ascend G610</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.28202</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>NeutrinoApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [<API key>] => 480 [is_mobile] => 1 [type] => mobile-browser [mobile_brand] => Huawei [mobile_model] => Ascend G610 [version] => [is_android] => 1 [browser_name] => Mobile Safari [<API key>] => Android [<API key>] => 4.1.2 [is_ios] => [producer] => Apple Inc. [operating_system] => Android 4.1.x Jelly Bean [mobile_screen_width] => 320 [mobile_browser] => Android Webkit ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td>Android Browser </td><td>WebKit </td><td>Android 4.1</td><td style="border-left: 1px solid #555">Huawei</td><td>G610-C00</td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.004</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => Array ( [type] => browser [name] => Android Browser [short_name] => AN [version] => [engine] => WebKit ) [operatingSystem] => Array ( [name] => Android [short_name] => AND [version] => 4.1 [platform] => ) [device] => Array ( [brand] => HU [brandName] => Huawei [model] => G610-C00 [device] => 1 [deviceName] => smartphone ) [bot] => [extra] => Array ( [isBot] => [isBrowser] => 1 [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => [isFeaturePhone] => [isPhablet] => [<API key>] => [isSmartDisplay] => [isSmartphone] => 1 [isTablet] => [isTV] => [isDesktop] => [isMobile] => 1 [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td><API key><br /><small>6.0.1</small><br /></td><td>Navigator </td><td><i class="material-icons">close</i></td><td>Android 4.1.2</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4><API key> result detail</h4> <p><pre><code class="php">Array ( [browser] => Sinergi\BrowserDetector\Browser Object ( [userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla 5.0 (Linux; U; Android 4.1.2; en-us; HUAWEI G610-C00 Build HuaweiG610-C00) UC AppleWebKit 534.31 (KHTML, like Gecko) Mobile Safari 534.31 ) [name:Sinergi\BrowserDetector\Browser:private] => Navigator [version:Sinergi\BrowserDetector\Browser:private] => unknown [isRobot:Sinergi\BrowserDetector\Browser:private] => [isChromeFrame:Sinergi\BrowserDetector\Browser:private] => [isFacebookWebView:Sinergi\BrowserDetector\Browser:private] => [isCompatibilityMode:Sinergi\BrowserDetector\Browser:private] => ) [operatingSystem] => Sinergi\BrowserDetector\Os Object ( [name:Sinergi\BrowserDetector\Os:private] => Android [version:Sinergi\BrowserDetector\Os:private] => 4.1.2 [isMobile:Sinergi\BrowserDetector\Os:private] => 1 [userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla 5.0 (Linux; U; Android 4.1.2; en-us; HUAWEI G610-C00 Build HuaweiG610-C00) UC AppleWebKit 534.31 (KHTML, like Gecko) Mobile Safari 534.31 ) ) [device] => Sinergi\BrowserDetector\Device Object ( [name:Sinergi\BrowserDetector\Device:private] => unknown [userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla 5.0 (Linux; U; Android 4.1.2; en-us; HUAWEI G610-C00 Build HuaweiG610-C00) UC AppleWebKit 534.31 (KHTML, like Gecko) Mobile Safari 534.31 ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td>Android 4.1.2</td><td><i class="material-icons">close</i></td><td>Android 4.1.2</td><td style="border-left: 1px solid #555">Huawei</td><td>G610-C00</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => 4 [minor] => 1 [patch] => 2 [family] => Android ) [os] => UAParser\Result\OperatingSystem Object ( [major] => 4 [minor] => 1 [patch] => 2 [patchMinor] => [family] => Android ) [device] => UAParser\Result\Device Object ( [brand] => Huawei [model] => G610-C00 [family] => HUAWEI G610-C00 ) [originalUserAgent] => Mozilla 5.0 (Linux; U; Android 4.1.2; en-us; HUAWEI G610-C00 Build HuaweiG610-C00) UC AppleWebKit 534.31 (KHTML, like Gecko) Mobile Safari 534.31 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td><td>Safari 534.31</td><td>WebKit 534.31</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.15201</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [platform_name] => Android [platform_version] => 4.1.2 [platform_type] => Mobile [browser_name] => Safari [browser_version] => 534.31 [engine_name] => WebKit [engine_version] => 534.31 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentStringCom<br /><small></small><br /></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 4.1.2</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.078</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentStringCom result detail</h4> <p><pre><code class="php">stdClass Object ( [agent_type] => Browser [agent_name] => Android Webkit Browser [agent_version] => [os_type] => Android [os_name] => Android [os_versionName] => [os_versionNumber] => 4.1.2 [os_producer] => [os_producerURL] => [linux_distibution] => Null [agent_language] => English - United States [agent_languageTag] => en-us ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td> </td><td>WebKit </td><td>Android 4.1.2</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.23801</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhatIsMyBrowserCom result detail</h4> <p><pre><code class="php">stdClass Object ( [<API key>] => Android [<API key>] => [<API key>] => Unknown browser on Android (Jelly Bean) [browser_version] => [extra_info] => Array ( ) [operating_platform] => [extra_info_table] => Array ( ) [layout_engine_name] => WebKit [detected_addons] => Array ( ) [<API key>] => [<API key>] => [<API key>] => [<API key>] => Array ( ) [browser_name_code] => unknown-browser [<API key>] => Jelly Bean [<API key>] => [is_abusive] => [<API key>] => [<API key>] => Array ( ) [<API key>] => [operating_system] => Android (Jelly Bean) [<API key>] => 4.1.2 [<API key>] => [browser_name] => Unknown browser [<API key>] => android [user_agent] => Mozilla 5.0 (Linux; U; Android 4.1.2; en-us; HUAWEI G610-C00 Build HuaweiG610-C00) UC AppleWebKit 534.31 (KHTML, like Gecko) Mobile Safari 534.31 [<API key>] => [browser] => Unknown browser ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td>UC Browser </td><td> </td><td>Android 4.1.2</td><td style="border-left: 1px solid #555">Huawei</td><td>Ascend G610</td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [name] => UC Browser [type] => browser ) [os] => Array ( [name] => Android [version] => 4.1.2 ) [device] => Array ( [type] => mobile [subtype] => smart [manufacturer] => Huawei [model] => Ascend G610 ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td><td> </td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Woothee result detail</h4> <p><pre><code class="php">Array ( [category] => smartphone [os] => Android [os_version] => 4.1.2 [name] => UNKNOWN [version] => UNKNOWN [vendor] => UNKNOWN ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td>Android 4.1.2</td><td><i class="material-icons">close</i></td><td>Android 4.1.2</td><td style="border-left: 1px solid #555"></td><td></td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.017</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => true [is_ios] => false [is_windows_phone] => false [is_app] => false [is_full_desktop] => false [is_largescreen] => false [is_mobile] => true [is_robot] => false [is_smartphone] => true [is_touchscreen] => true [is_wml_preferred] => false [<API key>] => false [is_html_preferred] => true [<API key>] => Android [<API key>] => 4.1.2 [advertised_browser] => Android [<API key>] => 4.1.2 [<API key>] => Generic Android 4.1 [device_name] => Generic Android 4.1 [form_factor] => Smartphone [is_phone] => true [is_app_webview] => false ) [all] => Array ( [brand_name] => Generic [model_name] => Android 4.1 [unique] => true [<API key>] => [is_wireless_device] => true [<API key>] => true [has_qwerty_keyboard] => true [<API key>] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => Android [mobile_browser] => Android Webkit [<API key>] => [device_os_version] => 4.1 [pointing_method] => touchscreen [release_date] => 2012_july [marketing_name] => [model_extra_info] => [nokia_feature_pack] => 0 [<API key>] => true [is_tablet] => false [manufacturer_name] => [is_bot] => false [is_google_glass] => false [proportional_font] => false [<API key>] => false [card_title_support] => true [softkey_support] => false [table_support] => true [numbered_menus] => false [<API key>] => false [<API key>] => true [<API key>] => false [<API key>] => true [access_key_support] => false [wrap_mode_support] => false [<API key>] => false [<API key>] => false [<API key>] => true [wizards_recommended] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => wtai://wp/mc; [<API key>] => false [emoji] => false [<API key>] => false [<API key>] => false [imode_region] => none [<API key>] => tel: [chtml_table_support] => false [<API key>] => true [<API key>] => true [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => true [<API key>] => true [<API key>] => false [<API key>] => false [xhtml_nowrap_mode] => false [<API key>] => false [<API key>] => #FFFFFF [<API key>] => #FFFFFF [<API key>] => true [<API key>] => true [<API key>] => iso-8859-1 [<API key>] => false [<API key>] => tel: [<API key>] => text/html [xhtml_table_support] => true [<API key>] => sms: [<API key>] => mms: [xhtml_file_upload] => supported [cookie_support] => true [<API key>] => true [<API key>] => full [<API key>] => true [<API key>] => none [<API key>] => true [ajax_manipulate_css] => true [<API key>] => true [<API key>] => true [ajax_xhr_type] => standard [ajax_manipulate_dom] => true [ajax_support_events] => true [<API key>] => true [<API key>] => w3c_api [xhtml_support_level] => 4 [preferred_markup] => html_web_4_0 [wml_1_1] => false [wml_1_2] => false [wml_1_3] => false [<API key>] => true [<API key>] => true [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [<API key>] => false [<API key>] => false [resolution_width] => 320 [resolution_height] => 480 [columns] => 60 [max_image_width] => 320 [max_image_height] => 480 [rows] => 40 [<API key>] => 34 [<API key>] => 50 [dual_orientation] => true [density_class] => 1.0 [wbmp] => true [bmp] => false [epoc_bmp] => false [gif_animated] => false [jpg] => true [png] => true [tiff] => false [<API key>] => true [<API key>] => true [svgt_1_1] => true [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 65536 [webp_lossy_support] => true [<API key>] => true [post_method_support] => true [basic_<API key>] => true [<API key>] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 3600 [wifi] => true [sdio] => false [vpn] => false [has_cellular_radio] => true [max_deck_size] => 2000000 [<API key>] => 256 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [max_no_of_bookmarks] => 0 [<API key>] => 0 [<API key>] => 0 [max_object_size] => 0 [downloadfun_support] => false [<API key>] => true [inline_support] => false [oma_support] => true [ringtone] => false [ringtone_3gpp] => false [<API key>] => false [<API key>] => false [ringtone_imelody] => false [ringtone_digiplug] => false [<API key>] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => false [ringtone_awb] => false [ringtone_aac] => false [ringtone_wav] => false [ringtone_mp3] => false [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 1 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [wallpaper] => false [wallpaper_max_width] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => false [wallpaper_jpg] => false [wallpaper_png] => false [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 2 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [screensaver] => false [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [<API key>] => false [screensaver_colors] => 2 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [<API key>] => 0 [<API key>] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [video] => false [<API key>] => false [<API key>] => false [<API key>] => false [streaming_video] => true [streaming_3gpp] => true [streaming_mp4] => true [streaming_mov] => false [<API key>] => 0 [<API key>] => none [streaming_flv] => false [streaming_3g2] => false [<API key>] => 10 [<API key>] => -1 [<API key>] => 2 [<API key>] => -1 [<API key>] => 3.0 [<API key>] => nb [<API key>] => lc [streaming_wmv] => none [<API key>] => rtsp [<API key>] => <API key> [wap_push_support] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [utf8_support] => true [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [<API key>] => false [<API key>] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [<API key>] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [j2me_clear_key_code] => 0 [<API key>] => false [<API key>] => false [receiver] => false [sender] => false [mms_max_size] => 0 [mms_max_height] => 0 [mms_max_width] => 0 [built_in_recorder] => false [built_in_camera] => true [mms_jpeg_baseline] => false [<API key>] => false [mms_gif_static] => false [mms_gif_animated] => false [mms_png] => false [mms_bmp] => false [mms_wbmp] => false [mms_amr] => false [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [<API key>] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => false [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [<API key>] => false [<API key>] => false [<API key>] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => false [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => false [mms_mp4] => false [mms_3gpp] => false [mms_3gpp2] => false [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [<API key>] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [<API key>] => 101 [<API key>] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => true [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => true [mp3] => true [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => false [<API key>] => true [css_border_image] => webkit [css_rounded_corners] => webkit [css_gradient] => none [css_spriting] => true [css_gradient_linear] => none [is_transcoder] => false [<API key>] => user-agent [rss_support] => false [pdf_support] => true [<API key>] => true [<API key>] => 10 [<API key>] => -1 [<API key>] => 0 [<API key>] => -1 [<API key>] => 3.0 [playback_real_media] => none [playback_3gpp] => true [playback_3g2] => false [playback_mp4] => true [playback_mov] => false [playback_acodec_amr] => nb [playback_acodec_aac] => none [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => false [playback_wmv] => none [<API key>] => true [html_preferred_dtd] => html4 [viewport_supported] => true [viewport_width] => device_width_token [<API key>] => no [<API key>] => [<API key>] => [<API key>] => [mobileoptimized] => false [handheldfriendly] => false [canvas_support] => full [image_inlining] => true [is_smarttv] => false [is_console] => false [nfc_support] => false [ux_full_desktop] => false [jqm_grade] => A [is_sencha_touch_ok] => false ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td><td>Android Webkit </td><td><i class="material-icons">close</i></td><td>Android 4.1.2</td><td style="border-left: 1px solid #555">Huawei</td><td>G610</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Zsxsoft result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [link] => http://developer.android.com/reference/android/webkit/package-summary.html [title] => Android Webkit [name] => Android Webkit [version] => [code] => android-webkit [image] => img/16/browser/android-webkit.png ) [os] => Array ( [link] => http: [name] => Android [version] => 4.1.2 [code] => android [x64] => [title] => Android 4.1.2 [type] => os [dir] => os [image] => img/16/os/android.png ) [device] => Array ( [link] => http: [title] => Huawei G610 [model] => G610 [brand] => Huawei [code] => huawei [dir] => device [type] => device [image] => img/16/device/huawei.png ) [platform] => Array ( [link] => http: [title] => Huawei G610 [model] => G610 [brand] => Huawei [code] => huawei [dir] => device [type] => device [image] => img/16/device/huawei.png ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/<API key>">ThaDafinser/<API key></a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-05-10 08:10:54</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
using <API key>.Tests; using <API key>.Tests.GetData; using <API key>.Tests.SimpleTests; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Threading; namespace <API key> { class Program { static void Main(string[] args) { IPEndPoint endpoint; try { endpoint = new IPEndPoint(IPAddress.Parse(args[0]), Int32.Parse(args[1])); } catch (<API key>) { Console.WriteLine("Usage: <API key> <IPAddress> <Port>"); Console.ReadKey(true); return; } catch(Exception ex) { Console.WriteLine("Error: " + ex.Message); Console.WriteLine("Usage: <API key> <IPAddress> <Port>"); Console.ReadKey(true); return; } Console.WriteLine("PERFORMANCE COMPARISON on " + endpoint); Console.WriteLine("Choose scneartio:"); Console.WriteLine("1) Simple INCR operation."); Console.WriteLine("2) Multiple operation transaction."); Console.WriteLine("3) Multiple read operations pipelined."); var option = Console.ReadKey(); switch (option.KeyChar) { case '1': CreateReport<<API key>, <API key>, <API key>>("simple", endpoint); break; case '2': CreateReport<<API key>, <API key>, <API key>>("transaction", endpoint); break; case '3': CreateReport<<API key>, <API key>, <API key>>("getdata", endpoint); break; default: throw new <API key>("No test defined with option " + option.KeyChar); } Console.ReadKey(true); } static Double GetMaximum(IEnumerable<Double> opsPerSecond) { return opsPerSecond .Where(x => !Double.IsPositiveInfinity(x)) .Max(); } static void CreateReport<TRedisClient, TServiceStack, TStackExchange>(String fileName, IPEndPoint endpoint) where TRedisClient : ITest, new() where TServiceStack : ITest, new() where TStackExchange : ITest, new() { var threadCounts = new[] { 10, 25, 50, 75, 100 }; var results = new List<TestData>(threadCounts.Length); foreach (var threadCount in threadCounts) { var partial = new List<TestData>(5); for (int i = 0; i < 1; i++) { partial.Add(PerformSingleTest<TRedisClient, TServiceStack, TStackExchange>(threadCount, 10000, endpoint)); } results.Add(new TestData() { Users = threadCount, RedisClient = GetMaximum(partial.Select(x=>x.RedisClient)), StackExchangeRedis = GetMaximum(partial.Select(x => x.StackExchangeRedis)), ServiceStackRedis = GetMaximum(partial.Select(x => x.ServiceStackRedis)), }); } fileName = fileName + "_" + Guid.NewGuid().ToString() + ".csv"; using (var writer = new StreamWriter(fileName)) { foreach (var userCount in threadCounts) { writer.Write(","); writer.Write(userCount); } writer.WriteLine(); writer.Write("RedisClient"); foreach (var result in results) { writer.Write(","); writer.Write(result.RedisClient); } writer.WriteLine(); writer.Write("ServiceStackRedis"); foreach (var result in results) { writer.Write(","); writer.Write(result.ServiceStackRedis); } writer.WriteLine(); writer.Write("StackExchangeRedis"); foreach (var result in results) { writer.Write(","); writer.Write(result.StackExchangeRedis); } } Process.Start(fileName); } static void Display(String test, Tuple<Int64, TimeSpan> result) { if(result != null) Console.WriteLine("{2}\t::: \tops/s: {0} \tTime: {1}", (result.Item1/result.Item2.TotalSeconds).ToString(".00").PadLeft(9, ' '), result.Item2.ToString(), test); else Console.WriteLine("{0}\t::: FAILED", test); } static Double GetOpsPerSecond(Tuple<Int64, TimeSpan> result) { return result != null ? (result.Item1 / result.Item2.TotalSeconds) : Double.PositiveInfinity; } static TestData PerformSingleTest<TRedisClient, TServiceStack, TStackExchange>(Int32 threads, Int32 runsPerThread, IPEndPoint endpoint) where TRedisClient : ITest, new() where TServiceStack : ITest, new() where TStackExchange : ITest, new() { Console.WriteLine("\nTesting with {0} threads, with {1} tries per thread.\n", threads, runsPerThread); GC.Collect(); var serviceStack = Test(new TServiceStack(), threads, runsPerThread, endpoint); GC.Collect(); var redisClient = Test(new TRedisClient(), threads, runsPerThread, endpoint); GC.Collect(); var stackExchange = Test(new TStackExchange(), threads, runsPerThread, endpoint); Console.WriteLine(); Display("ServiceStack", serviceStack); Display("RedisClient", redisClient); Display("StackExchange", stackExchange); return new TestData() { Users = threads, RedisClient = GetOpsPerSecond(redisClient), StackExchangeRedis = GetOpsPerSecond(stackExchange), ServiceStackRedis = GetOpsPerSecond(serviceStack), }; } static Tuple<Int64, TimeSpan> Test(ITest test, Int32 threads, Int32 runsPerThread, IPEndPoint endpoint) { Int64 counter = 0; test.Init(endpoint, CancellationToken.None).Wait(); var cancel = new <API key>(); var threadLists = new List<Thread>(); var total = threads * runsPerThread; var progress = 0; var bars = 0; var sw = new Stopwatch(); Console.WriteLine(); sw.Start(); Exception error = null; for (int i = 0; i < threads; i++) { int ii = i; var ts = new ThreadStart(() => { try { for (int r = 0; r < runsPerThread; r++) { test.RunClient(ii, cancel.Token).Wait(); Interlocked.Increment(ref counter); var p = Interlocked.Increment(ref progress); var percentage = (Int32)((p * 100D) / total); while (bars < percentage) { Interlocked.Increment(ref bars); Console.Write("|"); } } } catch (Exception ex) { Console.Write("[E." + test.GetType().Name + ", "+ex.GetType().Name+":"+ex.Message+"]"); Interlocked.CompareExchange(ref error, ex, null); } }); var t = new Thread(ts); t.Start(); threadLists.Add(t); } foreach (var t in threadLists) t.Join(); sw.Stop(); cancel.Cancel(); test.ClearData(); if (error != null) return null; else return new Tuple<Int64, TimeSpan>(counter, sw.Elapsed); } class TestData { public Int32 Users { get; set; } public Double RedisClient { get; set; } public Double StackExchangeRedis { get; set; } public Double ServiceStackRedis { get; set; } } } }
#ifndef __NE_INDIRECT__ #error "Please import the NetworkExtension module instead of this file directly." #endif #import <NetworkExtension/NEProvider.h> <API key> #if defined(__cplusplus) #define <API key> extern "C" #else #define <API key> extern #endif /*! * @file NETunnelProvider.h * @discussion This file declares the NETunnelProvider API. The NETunnelProvider API is used to implement Network Extension providers that provide network tunneling services. * * This API is part of NetworkExtension.framework */ @class NEVPNProtocol; @class <API key>; @class NEAppRule; /*! * @typedef <API key> * @abstract Tunnel Provider error codes */ typedef NS_ENUM(NSInteger, <API key>) { /*! @const <API key> The provided tunnel network settings are invalid. */ <API key> = 1, /*! @const <API key> The request to set/clear the tunnel network settings was canceled. */ <API key> = 2, /*! @const <API key> The request to set/clear the tunnel network settings failed. */ <API key> = 3, } NS_ENUM_AVAILABLE(10_11, 9_0); /*! * @typedef <API key> * @abstract Network traffic routing methods. */ typedef NS_ENUM(NSInteger, <API key>) { /*! @const <API key> Route network traffic to the tunnel based on destination IP */ <API key> = 1, /*! @const <API key> Route network traffic to the tunnel based on source application */ <API key> = 2, } NS_ENUM_AVAILABLE(10_11, 9_0); /*! @const <API key> The tunnel provider error domain */ <API key> NSString * const <API key> NS_AVAILABLE(10_11, 9_0); /*! * @interface NETunnelProvider * @discussion The NETunnelProvider class declares the programmatic interface for an object that provides a network tunnel service. * * Instances of this class are thread safe. */ NS_CLASS_AVAILABLE(10_11, 9_0) @interface NETunnelProvider : NEProvider /*! * @method handleAppMessage:completionHandler: * @discussion This function is called by the framework when the container app sends a message to the provider. Subclasses should override this method to handle the message and optionally send a response. * @param messageData An NSData object containing the message sent by the container app. * @param completionHandler A block that the method can execute to send a response to the container app. If this parameter is non-nil then the method implementation should always execute the block. If this parameter is nil then the method implementation should treat this as an indication that the container app is not expecting a response. */ - (void)handleAppMessage:(NSData *)messageData completionHandler:(nullable void (^)(NSData * __nullable responseData))completionHandler NS_AVAILABLE(10_11, 9_0); /*! * @method <API key>:completionHandler: * @discussion This function is called by tunnel provider implementations to set the network settings of the tunnel, including IP routes, DNS servers, and virtual interface addresses depending on the tunnel type. Subclasses should not override this method. This method can be called multiple times during the lifetime of a particular tunnel. It is not necessary to call this function with nil to clear out the existing settings before calling this function with a non-nil configuration. * @param <API key> An <API key> object containing all of the desired network settings for the tunnel. Pass nil to clear out the current network settings. * @param completionHandler A block that will be called by the framework when the process of setting or clearing the network settings is complete. If an error occurred during the process of setting or clearing the IP network settings then a non-nill NSError object will be passed to this block containing error details. */ - (void)<API key>:(nullable <API key> *)<API key> completionHandler:(nullable void (^)( NSError * __nullable error))completionHandler NS_AVAILABLE(10_11, 9_0); /*! * @property <API key> * @discussion An NEVPNProtocol object containing the provider's current configuration. The value of this property may change during the lifetime of the tunnel provided by this NETunnelProvider, KVO can be used to detect when changes occur. For different protocol types, this property will contain the corresponding subclass. For <API key> protocol type, this property will contain the <API key> subclass. For <API key> protocol type, this property will contain the NEVPNProtocolIKEv2 subclass. */ @property (readonly) NEVPNProtocol *<API key> NS_AVAILABLE(10_11, 9_0); /*! * @property appRules * @discussion An array of NEAppRule objects specifying which applications are currently being routed through the tunnel provided by this NETunnelProvider. If application-based routing is not enabled for the tunnel, then this property is set to nil. */ @property (readonly, nullable) NSArray<NEAppRule *> *appRules NS_AVAILABLE(10_11, 9_0); /*! * @property routingMethod * @discussion The method by which network traffic is routed to the tunnel. The default is <API key>. */ @property (readonly) <API key> routingMethod NS_AVAILABLE(10_11, 9_0); /*! * @property reasserting * @discussion A flag that indicates to the framework if this NETunnelProvider is currently re-establishing the tunnel. Setting this flag will cause the session status visible to the user to change to "Reasserting". Clearing this flag will change the user-visible status of the session back to "Connected". Setting and clearing this flag only has an effect if the session is in the "Connected" state. */ @property BOOL reasserting NS_AVAILABLE(10_11, 9_0); @end <API key>
layout: page title: <API key> number: 1408 categories: [AvaTax Error Codes] disqus: 1 ## Summary TBD ## Example json { "code": "<API key>", "target": "Unknown", "details": [ { "code": "<API key>", "number": 1408, "message": "The field '-0-' in the query '-1-' is not queryable.", "description": "The field '-0-' in the query '-1-' is not queryable.", "faultCode": "Client", "helpLink": "http://developer.avalara.com/avatax/errors/<API key>", "severity": "Error" } ] } ## Explanation TBD
<?php namespace PiApp\GedmoBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class <API key> extends WebTestCase { }
'use strict'; // Init the application configuration module for AngularJS application var <API key> = (function() { // Init module configuration options var <API key> = 'meanjsapp'; var <API key> = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSanitize', 'ui.router', 'ui.bootstrap', 'ui.utils']; // Add a new vertical module var registerModule = function(moduleName, dependencies) { // Create angular module angular.module(moduleName, dependencies || []); // Add the module to the AngularJS configuration file angular.module(<API key>).requires.push(moduleName); }; return { <API key>: <API key>, <API key>: <API key>, registerModule: registerModule }; })();
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hammer: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.11.2 / hammer - 1.1.1+8.9</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> hammer <small> 1.1.1+8.9 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-03-07 13:08:44 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-07 13:08:44 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.11.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;palmskog@gmail.com&quot; homepage: &quot;https://github.com/lukaszcz/coqhammer&quot; dev-repo: &quot;git+https://github.com/lukaszcz/coqhammer.git&quot; bug-reports: &quot;https://github.com/lukaszcz/coqhammer/issues&quot; license: &quot;LGPL-2.1-only&quot; synopsis: &quot;General-purpose automated reasoning hammer tool for Coq&quot; description: &quot;&quot;&quot; A general-purpose automated reasoning hammer tool for Coq that combines learning from previous proofs with the translation of problems to the logics of automated systems and the reconstruction of successfully found proofs. &quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot; {ocaml:version &gt;= &quot;4.06&quot;} &quot;plugin&quot;] install: [make &quot;install-plugin&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.10~&quot;} &quot;conf-g++&quot; {build} &quot;coq-hammer-tactics&quot; {= version} ] tags: [ &quot;category:Miscellaneous/Coq Extensions&quot; &quot;keyword:automation&quot; &quot;keyword:hammer&quot; &quot;logpath:Hammer&quot; &quot;date:2019-06-12&quot; ] authors: [ &quot;Lukasz Czajka &lt;lukaszcz@mimuw.edu.pl&gt;&quot; &quot;Cezary Kaliszyk &lt;cezary.kaliszyk@uibk.ac.at&gt;&quot; &quot;Burak Ekici &lt;burak.ekici@uibk.ac.at&gt;&quot; ] url { src: &quot;https://github.com/lukaszcz/coqhammer/archive/refs/tags/v1.1.1-coq8.9.tar.gz&quot; checksum: &quot;sha256=<SHA256-like>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-hammer.1.1.1+8.9 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.11.2). The following dependencies couldn&#39;t be met: - coq-hammer -&gt; coq &lt; 8.10~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-hammer.1.1.1+8.9</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
.bar { margin-top: -8px; background-color: rgba(255, 255, 255, 0.5); overflow-x: hidden; z-index: 5; } .track { height: 8px; display:block; background: white; width: 200px; position:relative; animation:progressbar 3s infinite; } @keyframes progressbar { from { left:0 } to { left:100% } }
package de.jodamob.android.logging; import static org.junit.Assert.assertEquals; import static org.mockito.Matchers.any; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import android.content.Context; import org.junit.Test; import java.io.File; import java.io.FileFilter; public class <API key> { FileLoggerCollector tested = new FileLoggerCollector(mock(Context.class)); @Test public void test() { File dir = mock(File.class); File file1 = mock(File.class); when(file1.lastModified()).thenReturn(100L); File file2 = mock(File.class); when(file2.lastModified()).thenReturn(200L); File file3 = mock(File.class); when(file3.lastModified()).thenReturn(300L); when(dir.listFiles(any(FileFilter.class))).thenReturn(new File[] { file2, file3, file1}); File[] files = tested.getFiles(dir); assertEquals(files[0], file1); assertEquals(files[1], file2); assertEquals(files[2], file3); } }
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>&nbsp;</b></th><td class="std2"></td></tr> <tr><th class="std1"><b>&nbsp;</b></th><td class="std2"><sup class="subfont">ˇ</sup><sup class="subfont">ˊ</sup><sup class="subfont">ˋ</sup></td></tr> <tr><th class="std1"><b>&nbsp;</b></th><td class="std2"><font class="english_word">yǐ lóng biàn shēng</font></td></tr> <tr><th class="std1"><b>&nbsp;</b></th><td class="std2">˙<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center><img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center></td></tr> <tr><th class="std1"><b><font class="fltypefont"></font>&nbsp;</b></th><td class="std2"></td></tr> </td></tr></table></div> <!-- flayoutclass_first --><div class="flayoutclass_second"></div> <!-- flayoutclass_second --></div> <!-- flayoutclass --></td></tr></table>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript</title> </head> <body> <button onclick="this.style.display = 'none';">Hide on click</button> <button id="show-text">Show / Hide text</button> <p id="text">This is my text.</p> <script> document.getElementById("show-text").onclick = function() { var text; // Indicate `text` is a local variable // By default, all variables in javascript are global variables text = document.getElementById('text'); text.style.display = (text.style.display != "none") ? "none" : "block"; /* `variable = expression ? result1 : result2` is same as: if (expression) { variable = result1; } else { variable = result2; } */ } </script> <div id="countdown"></div> <script src="countdown.js"></script> <hr> <h1>References:</h1> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide">MDN JavaScript Guide</a> <a href="google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml">Google JavaScript Style Guide</a> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>propcalc: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.7.1 / propcalc - 8.9.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> propcalc <small> 8.9.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-11-16 15:55:17 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-16 15:55:17 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 <API key> of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.7.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.08.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.08.1 Official release 4.08.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;http://arxiv.org/abs/1503.08744&quot; license: &quot;BSD&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/PropCalc&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.10~&quot;} ] tags: [ &quot;keyword: propositional calculus&quot; &quot;keyword: classical logic&quot; &quot;keyword: completeness&quot; &quot;keyword: natural deduction&quot; &quot;keyword: sequent calculus&quot; &quot;keyword: cut elimination&quot; &quot;category: Mathematics/Logic/Foundations&quot; ] authors: [ &quot;Floris van Doorn &lt;fpvdoorn@gmail.com&gt; [http: ] bug-reports: &quot;https://github.com/coq-contribs/propcalc/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/propcalc.git&quot; synopsis: &quot;Propositional Calculus&quot; description: &quot;&quot;&quot; Formalization of basic theorems about classical propositional logic. The main theorems are (1) the soundness and completeness of natural deduction calculus, (2) the equivalence between natural deduction calculus, Hilbert systems and sequent calculus and (3) cut elimination for sequent calculus.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/propcalc/archive/v8.9.0.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-propcalc.8.9.0 coq.8.7.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1). The following dependencies couldn&#39;t be met: - coq-propcalc -&gt; coq &gt;= 8.9 Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-propcalc.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
!function(t,r){"use strict";var e=t.plugins;function n(c){if(c._scePatched)return c;function t(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];n&&n.nodeType?t.push(r(n)):t.push(n)}return c.apply(this,t)}return t._scePatched=!0,t}function c(t){if(t._scePatched)return t;function e(){return r(t.apply(this,arguments))}return e._scePatched=!0,e}var o,a=t.command.set;t.command.set=function(t,e){return e&&"function"==typeof e.exec&&(e.exec=n(e.exec)),e&&"function"==typeof e.txtExec&&(e.txtExec=n(e.txtExec)),a.call(this,t,e)},e.bbcode&&(o=e.bbcode.bbcode.set,e.bbcode.bbcode.set=function(t,e){return e&&"function"==typeof e.format&&(e.format=n(e.format)),o.call(this,t,e)});var i=t.create;t.create=function(t,e){i.call(this,t,e),t&&t._sceditor&&((t=t._sceditor).getBody=c(t.getBody),t.<API key>=c(t.<API key>))}}(sceditor,jQuery);
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var EventSchema = new Schema({ name : {type: String, required : true}, date: {type: String, required : true}, //not sure about this location: {type: String, required : true}, classes: [{type: Schema.Types.ObjectId, ref: 'Classes'}], users: [{type: Schema.Types.ObjectId, ref: 'User'}], description: String }); module.exports = mongoose.model('Event', EventSchema);
.<API key> { margin: 0 -6px; max-width: 130px; } [class^='smiley-'], [class*=' smiley-'] { display: inline-block; }
class <API key> < ActiveRecord::Migration[5.0] def change add_column :member_profiles, :image, :string end end
* [QUnit/Jasmine](QJ.md) * [Mocha/Should/Chai/Expect](MSCE.md) * [Unit JS](unitjs.md)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>functional-algebra: 26 s </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.9.0 / functional-algebra - 1.0.2</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> functional-algebra <small> 1.0.2 <span class="label label-success">26 s </span> </small> </h1> <p> <em><script>document.write(moment("2021-11-21 13:36:26 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-21 13:36:26 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 <API key> of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.9.0 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.08.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.08.1 Official release 4.08.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;llee454@gmail.com&quot; homepage: &quot;https://github.com/llee454/functional-algebra&quot; dev-repo: &quot;git+https://github.com/llee454/functional-algebra.git&quot; bug-reports: &quot;https://github.com/llee454/functional-algebra/issues&quot; authors: [&quot;Larry D. Lee Jr.&quot;] license: &quot;LGPLv3&quot; build: [ [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/functional_algebra&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.4&quot; &amp; &lt; &quot;8.13~&quot;} ] tags: [ &quot;keyword:algebra&quot; &quot;keyword:abstract algebra&quot; &quot;category:Miscellaneous/Coq Extensions&quot; &quot;date:2018-08-11&quot; &quot;logpath:functional-algebra&quot; ] synopsis: &quot;This package provides a Coq formalization of abstract algebra using&quot; description: &quot;&quot;&quot; a functional programming style. The modules contained within the package span monoids, groups, rings, and fields and provides both axiom definitions for these structures and proofs of foundational results. The current package contains over 800 definitions and proofs. This module is unique in that it eschews the tactic-oriented style of traditional Coq developments. As pointed out by others, programs written in that style are brittle, hard to read, and generally inefficient. While tactic driven development is useful for sketching out proofs, these disadvantages should dissuade us from publising proofs in this form. In this library, I provide a worked example of using Gallina directly and demonstrate both the feasibility of this approach and its advantages in terms of clarity, maintainability, and compile-time efficiency. In addition, this module includes two expression simplifiers. The first, defined in monoid_expr.v simplifies monoid expressions. The second, defined in group_expr.v simplifies group expressions. These functions allow us to automate many of the steps involved in proving algebraic theorems directly in Gallina, and represent an alternative to relying on tactics such as auto, omega, etc. For more information about this package, please read its Readme file, which can be found here: https://github.com/llee454/functional-algebra.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/llee454/functional-algebra/archive/1.0.2.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action <API key>.1.0.2 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only <API key>.1.0.2 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>11 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v <API key>.1.0.2 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>26 s</dd> </dl> <h2>Installation size</h2> <p>Total: 1 M</p> <ul> <li>103 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/field.glob</code></li> <li>94 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/field.vo</code></li> <li>87 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/monoid_expr.glob</code></li> <li>84 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/ring.vo</code></li> <li>75 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/monoid_group.vo</code></li> <li>67 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/commutative_ring.vo</code></li> <li>67 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/monoid.glob</code></li> <li>66 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/ring.glob</code></li> <li>66 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/monoid.vo</code></li> <li>63 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/commutative_ring.glob</code></li> <li>60 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/monoid_expr.vo</code></li> <li>42 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/group.vo</code></li> <li>41 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/abelian_group.vo</code></li> <li>34 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/field.v</code></li> <li>34 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/monoid_group.glob</code></li> <li>26 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/abelian_group.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/group_expr.vo</code></li> <li>24 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/group.glob</code></li> <li>21 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/ring.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/commutative_ring.v</code></li> <li>18 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/monoid_expr.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/monoid.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/monoid_group.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/group_expr.glob</code></li> <li>9 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/abelian_group.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/group.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/function.vo</code></li> <li>3 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/base.vo</code></li> <li>2 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/group_expr.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/function.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/base.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/function.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/functional_algebra/base.glob</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y <API key>.1.0.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
require('../styles/menu.css'); import React from 'react'; import { Glyphicon } from 'react-bootstrap'; import { Link } from 'react-router'; import BurgerMenu from 'react-burger-menu'; class Menu extends React.Component { constructor(...args) { super(...args); } render() { let Menu = BurgerMenu.slide; return ( <Menu> <h2>Deep Ellum Jukebox</h2> <Link to={'/'}> <Glyphicon glyph="home" /><span>Home</span> </Link> <Link to={'/search'}> <Glyphicon glyph="search" /><span>Search</span> </Link> <Link to={'/recent'}> <Glyphicon glyph="time" /><span>Recent</span> </Link> </Menu> ); } } export default Menu;
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Foundation; using UIKit; using CoreGraphics; using CoreText; namespace SlimCanvas.iOS { internal class DrawInBitmap : IDisposable { CGColorSpace cp; public CGBitmapContext ctx; byte[] _pixelArray; int Width; int Height; public DrawInBitmap(int width, int height) { int len = width * height; int count = len * 4; _pixelArray = new byte[count]; Width = width; Height = height; cp = CGColorSpace.CreateDeviceRGB(); ctx = new CGBitmapContext(_pixelArray, width, height, 8, (int)(width * 4), cp, CGImageAlphaInfo.PremultipliedLast); } public DrawInBitmap(byte[] pixelArray, int width, int height) { int len = width * height; int count = len * 4; _pixelArray = pixelArray; Width = width; Height = height; cp = CGColorSpace.CreateDeviceRGB(); ctx = new CGBitmapContext(_pixelArray, width, height, 8, (int)(width * 4), cp, CGImageAlphaInfo.PremultipliedLast); } #region Clear public void Clear(Color color) { ctx.SetFillColor(LocalTransform.ToColor(color)); ctx.FillRect(new CGRect(0, 0, ctx.Width, ctx.Height)); } #endregion #region DrawPath public void DrawPath(List<Vector2> pointList, Color strokeCollor, double thickness, View.Controls.EnumTypes.DashStyle dashStyle, float[] dashPattern) { ctx.SaveState(); var p = new CGPath(); for (int i = 0; i < pointList.Count; i++) { var point = pointList[i]; if (i == 0) p.MoveToPoint((nfloat)(point.X), (nfloat)(point.Y)); else p.AddLineToPoint((nfloat)(point.X), (nfloat)(point.Y)); } ctx.ScaleCTM(1, -1); ctx.TranslateCTM(0, -Height); ctx.AddPath(p); SetStroke(strokeCollor, thickness, dashStyle, dashPattern); ctx.StrokePath(); ctx.RestoreState(); } #endregion #region SetStroke void SetStroke(Color color, double thickness, View.Controls.EnumTypes.DashStyle strokeStyle, float[] dashPattern) { if (color.A > 0 && thickness > 0) { ctx.SetLineWidth((nfloat)thickness); ctx.SetStrokeColor(LocalTransform.ToColor(color)); float dot = (float)thickness; float dash = dot * 2; switch (strokeStyle) { case View.Controls.EnumTypes.DashStyle.Dash: ctx.SetLineDash(0, new nfloat[] { dash, dash }); break; case View.Controls.EnumTypes.DashStyle.Dot: ctx.SetLineDash(0, new nfloat[] { dot, dot }); break; case View.Controls.EnumTypes.DashStyle.DashDotDot: ctx.SetLineDash(0, new nfloat[] { dash, dash, 0, dash }); break; case View.Controls.EnumTypes.DashStyle.Custom: var pattern = dashPattern.Select(p => (nfloat)p).ToArray(); ctx.SetLineDash(0, pattern); break; default: break; } } } #endregion #region SetBrush void SetBrush(View.Brush brush, CGRect rect) { if (brush is View.SolidColorBrush c) { ctx.SetFillColor(LocalTransform.ToColor(c.Color)); ctx.FillRect(rect); } else if (brush is View.LinearGradientBrush lb) { var gg = GetGradient(lb.Stops); var start = new CGPoint(rect.X, rect.Y + rect.Height); var end = new CGPoint(rect.X + rect.Width, rect.Y); ctx.DrawLinearGradient(gg, start, end, <API key>.None); } else if (brush is View.RadialGradientBrush rb) { var gg = GetGradient(rb.Stops); var centerX = (rect.X + rect.Width) / 2 + rb.<API key>.X; var centerY = (rect.Y + rect.Height) / 2 + rb.<API key>.Y; var start = new CGPoint(centerX, centerY); ctx.DrawRadialGradient(gg, start, 0, start, (nfloat)rb.Radius, <API key>.None); } } CGGradient GetGradient(IList<View.GradientStop> stops) { var c = stops.Count; var ls = new nfloat[c]; var cl = new nfloat[c * 4]; int cIndex = 0; for (int i = 0; i < c; i++) { var s = stops[i]; ls[i] = (nfloat)s.Position; cl[cIndex] = s.Color.R; cl[cIndex + 1] = s.Color.G; cl[cIndex + 2] = s.Color.B; cl[cIndex + 3] = s.Color.A; cIndex += 4; } var cs = CGColorSpace.CreateDeviceRGB(); return new CGGradient(cs, cl, ls); } #endregion public CGImage GetAsImage() { return ctx.ToImage(); } public byte[] GetPixels() { return _pixelArray; } public void Dispose() { ctx.Dispose(); cp.Dispose(); } } }
<html> <head> <title>User agent detail - Mozilla/5.0 (Linux; U; Linux; xx; DTV; TSBNetTV/T47016F08.0203.FDD) AppleWebKit/534(KHTML, like Gecko) NX/2.1 (DTV; HTML; R1.0;) DTVNetBrowser/2.2 (000039;T47016F08;0203;FDD) InettvBrowser/2.2 (000039;T47016F08;0203;FDD)</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> <h5 class="header light"> Mozilla/5.0 (Linux; U; Linux; xx; DTV; TSBNetTV/T47016F08.0203.FDD) AppleWebKit/534(KHTML, like Gecko) NX/2.1 (DTV; HTML; R1.0;) DTVNetBrowser/2.2 (000039;T47016F08;0203;FDD) InettvBrowser/2.2 (000039;T47016F08;0203;FDD) </h5> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Source result (test suite)</th></tr><tr><td>whichbrowser/parser<br /><small>/tests/data/television/toshiba.yaml</small></td><td>NetFront NX 2.1</td><td> </td><td>Webkit 534</td><td style="border-left: 1px solid #555">Toshiba</td><td>Smart TV</td><td>television</td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-test">Detail</a> <!-- Modal Structure --> <div id="modal-test" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Testsuite result detail</h4> <p><pre><code class="php">Array ( [headers] => User-Agent: Mozilla/5.0 (Linux; U; Linux; xx; DTV; TSBNetTV/T47016F08.0203.FDD) AppleWebKit/534(KHTML, like Gecko) NX/2.1 (DTV; HTML; R1.0;) DTVNetBrowser/2.2 (000039;T47016F08;0203;FDD) InettvBrowser/2.2 (000039;T47016F08;0203;FDD) [result] => Array ( [browser] => Array ( [name] => NetFront NX [version] => 2.1 [type] => browser ) [engine] => Array ( [name] => Webkit [version] => 534 ) [device] => Array ( [type] => television [manufacturer] => Toshiba [series] => Smart TV ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapPhp<br /><small>6012</small></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>DonatjUAParser<br /><small>v0.5.0</small></td><td>AppleWebKit 534</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>DonatjUAParser result detail</h4> <p><pre><code class="php">Array ( [platform] => Linux [browser] => AppleWebKit [version] => 534 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>NeutrinoApiCom<br /><small></small></td><td>NetFront NX 2.1</td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td>media-player</td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.19602</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>NeutrinoApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [<API key>] => 0 [is_mobile] => [type] => media-player [mobile_brand] => [mobile_model] => [version] => 2.1 [is_android] => [browser_name] => NetFront NX [<API key>] => unknown [<API key>] => [is_ios] => [producer] => Toshiba [operating_system] => unknown [mobile_screen_width] => 0 [mobile_browser] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.5.2</small></td><td> </td><td> </td><td>GNU/Linux </td><td style="border-left: 1px solid #555">Toshiba</td><td></td><td>tv</td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.009</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => [operatingSystem] => Array ( [name] => GNU/Linux [short_name] => LIN [version] => [platform] => ) [device] => Array ( [brand] => TS [brandName] => Toshiba [model] => [device] => 5 [deviceName] => tv ) [bot] => [extra] => Array ( [isBot] => [isBrowser] => [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => [isFeaturePhone] => [isPhablet] => [<API key>] => [isSmartDisplay] => [isSmartphone] => [isTablet] => [isTV] => 1 [isDesktop] => 1 [isMobile] => [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td><API key><br /><small>6.0.0</small></td><td>Mozilla 5.0</td><td><i class="material-icons">close</i></td><td>Linux </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4><API key> result detail</h4> <p><pre><code class="php">Array ( [browser] => Sinergi\BrowserDetector\Browser Object ( [userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Linux; xx; DTV; TSBNetTV/T47016F08.0203.FDD) AppleWebKit/534(KHTML, like Gecko) NX/2.1 (DTV; HTML; R1.0;) DTVNetBrowser/2.2 (000039;T47016F08;0203;FDD) InettvBrowser/2.2 (000039;T47016F08;0203;FDD) ) [name:Sinergi\BrowserDetector\Browser:private] => Mozilla [version:Sinergi\BrowserDetector\Browser:private] => 5.0 [isRobot:Sinergi\BrowserDetector\Browser:private] => [isChromeFrame:Sinergi\BrowserDetector\Browser:private] => ) [operatingSystem] => Sinergi\BrowserDetector\Os Object ( [name:Sinergi\BrowserDetector\Os:private] => Linux [version:Sinergi\BrowserDetector\Os:private] => unknown [isMobile:Sinergi\BrowserDetector\Os:private] => [userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Linux; xx; DTV; TSBNetTV/T47016F08.0203.FDD) AppleWebKit/534(KHTML, like Gecko) NX/2.1 (DTV; HTML; R1.0;) DTVNetBrowser/2.2 (000039;T47016F08;0203;FDD) InettvBrowser/2.2 (000039;T47016F08;0203;FDD) ) ) [device] => Sinergi\BrowserDetector\Device Object ( [name:Sinergi\BrowserDetector\Device:private] => unknown [userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Linux; xx; DTV; TSBNetTV/T47016F08.0203.FDD) AppleWebKit/534(KHTML, like Gecko) NX/2.1 (DTV; HTML; R1.0;) DTVNetBrowser/2.2 (000039;T47016F08;0203;FDD) InettvBrowser/2.2 (000039;T47016F08;0203;FDD) ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UAParser<br /><small>v3.4.5</small></td><td> </td><td><i class="material-icons">close</i></td><td>Linux </td><td style="border-left: 1px solid #555"></td><td>T47016F08</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.008</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => [minor] => [patch] => [family] => Other ) [os] => UAParser\Result\OperatingSystem Object ( [major] => [minor] => [patch] => [patchMinor] => [family] => Linux ) [device] => UAParser\Result\Device Object ( [brand] => Generic_Inettv [model] => T47016F08 [family] => Inettv ) [originalUserAgent] => Mozilla/5.0 (Linux; U; Linux; xx; DTV; TSBNetTV/T47016F08.0203.FDD) AppleWebKit/534(KHTML, like Gecko) NX/2.1 (DTV; HTML; R1.0;) DTVNetBrowser/2.2 (000039;T47016F08;0203;FDD) InettvBrowser/2.2 (000039;T47016F08;0203;FDD) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentStringCom<br /><small></small></td><td>Safari </td><td><i class="material-icons">close</i></td><td>Linux </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.14601</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentStringCom result detail</h4> <p><pre><code class="php">stdClass Object ( [agent_type] => Browser [agent_name] => Safari [agent_version] => [os_type] => Linux [os_name] => Linux [os_versionName] => [os_versionNumber] => [os_producer] => [os_producerURL] => [linux_distibution] => Null [agent_language] => [agent_languageTag] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small></td><td>Internet TV Browser 2.2</td><td>WebKit 534</td><td>Linux </td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.40504</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhatIsMyBrowserCom result detail</h4> <p><pre><code class="php">stdClass Object ( [<API key>] => Linux [<API key>] => [<API key>] => Internet TV Browser 2.2 on Linux [browser_version] => 2.2 [extra_info] => stdClass Object ( [20] => Array ( [0] => Based on Opera ) ) [operating_platform] => [extra_info_table] => stdClass Object ( [NetFront NX Version] => 2.1 ) [layout_engine_name] => WebKit [detected_addons] => Array ( ) [<API key>] => [<API key>] => [<API key>] => [<API key>] => Array ( ) [browser_name_code] => internet-tv-browser [<API key>] => [<API key>] => [is_abusive] => [<API key>] => 534 [<API key>] => Array ( ) [<API key>] => [operating_system] => Linux [<API key>] => [<API key>] => [browser_name] => Internet TV Browser [<API key>] => linux [user_agent] => Mozilla/5.0 (Linux; U; Linux; xx; DTV; TSBNetTV/T47016F08.0203.FDD) AppleWebKit/534(KHTML, like Gecko) NX/2.1 (DTV; HTML; R1.0;) DTVNetBrowser/2.2 (000039;T47016F08;0203;FDD) InettvBrowser/2.2 (000039;T47016F08;0203;FDD) [<API key>] => 2.2 [browser] => Internet TV Browser 2.2 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>2.0.10</small></td><td>NetFront NX 2.1</td><td>Webkit 534</td><td> </td><td style="border-left: 1px solid #555">Toshiba</td><td>Smart TV</td><td>television</td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.003</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [name] => NetFront NX [version] => 2.1 [type] => browser ) [engine] => Array ( [name] => Webkit [version] => 534 ) [device] => Array ( [type] => television [manufacturer] => Toshiba [series] => Smart TV ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small></td><td>InternetTVBrowser </td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>appliance</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Woothee result detail</h4> <p><pre><code class="php">Array ( [name] => InternetTVBrowser [os] => DigitalTV [category] => appliance [version] => UNKNOWN [vendor] => UNKNOWN [os_version] => UNKNOWN ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Wurfl<br /><small>1.6.4</small></td><td>Opera 12.11</td><td><i class="material-icons">close</i></td><td>Linux armv7l </td><td style="border-left: 1px solid #555"></td><td>SmartTV</td><td>Smart-TV</td><td></td><td></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.009</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => false [is_ios] => false [is_windows_phone] => false [is_app] => false [is_full_desktop] => false [is_largescreen] => true [is_mobile] => false [is_robot] => false [is_smartphone] => false [is_touchscreen] => false [is_wml_preferred] => false [<API key>] => false [is_html_preferred] => true [<API key>] => Linux armv7l [<API key>] => [advertised_browser] => Opera [<API key>] => 12.11 [<API key>] => Generic SmartTV [form_factor] => Smart-TV [is_phone] => false [is_app_webview] => false ) [all] => Array ( [brand_name] => Generic [model_name] => SmartTV [unique] => true [<API key>] => [is_wireless_device] => false [<API key>] => true [has_qwerty_keyboard] => true [<API key>] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => [mobile_browser] => [<API key>] => [device_os_version] => [pointing_method] => [release_date] => 2011_january [marketing_name] => [model_extra_info] => [nokia_feature_pack] => 0 [<API key>] => false [is_tablet] => false [manufacturer_name] => [is_bot] => false [is_google_glass] => false [proportional_font] => false [<API key>] => false [card_title_support] => false [softkey_support] => false [table_support] => false [numbered_menus] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [access_key_support] => false [wrap_mode_support] => false [<API key>] => false [<API key>] => false [<API key>] => false [wizards_recommended] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => none [<API key>] => false [emoji] => false [<API key>] => false [<API key>] => false [imode_region] => none [<API key>] => tel: [chtml_table_support] => true [<API key>] => true [<API key>] => true [<API key>] => false [<API key>] => false [<API key>] => true [<API key>] => true [<API key>] => true [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [xhtml_nowrap_mode] => false [<API key>] => false [<API key>] => #FFFFFF [<API key>] => #FFFFFF [<API key>] => false [<API key>] => true [<API key>] => utf8 [<API key>] => false [<API key>] => none [<API key>] => text/html [xhtml_table_support] => false [<API key>] => none [<API key>] => none [xhtml_file_upload] => supported [cookie_support] => true [<API key>] => true [<API key>] => full [<API key>] => true [<API key>] => play_and_stop [<API key>] => true [ajax_manipulate_css] => true [<API key>] => true [<API key>] => true [ajax_xhr_type] => standard [ajax_manipulate_dom] => true [ajax_support_events] => true [<API key>] => true [<API key>] => none [xhtml_support_level] => 4 [preferred_markup] => html_web_4_0 [wml_1_1] => false [wml_1_2] => false [wml_1_3] => false [<API key>] => true [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [<API key>] => false [<API key>] => false [resolution_width] => 685 [resolution_height] => 600 [columns] => 120 [max_image_width] => 650 [max_image_height] => 600 [rows] => 200 [<API key>] => 400 [<API key>] => 400 [dual_orientation] => false [density_class] => 1.0 [wbmp] => false [bmp] => true [epoc_bmp] => false [gif_animated] => true [jpg] => true [png] => true [tiff] => false [<API key>] => false [<API key>] => false [svgt_1_1] => true [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 65536 [webp_lossy_support] => false [<API key>] => false [post_method_support] => true [basic_<API key>] => true [<API key>] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 3200 [wifi] => true [sdio] => false [vpn] => false [has_cellular_radio] => false [max_deck_size] => 100000 [<API key>] => 128 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [max_no_of_bookmarks] => 0 [<API key>] => 0 [<API key>] => 0 [max_object_size] => 0 [downloadfun_support] => false [<API key>] => false [inline_support] => false [oma_support] => false [ringtone] => false [ringtone_3gpp] => false [<API key>] => false [<API key>] => false [ringtone_imelody] => false [ringtone_digiplug] => false [<API key>] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => false [ringtone_awb] => false [ringtone_aac] => false [ringtone_wav] => false [ringtone_mp3] => false [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 1 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [wallpaper] => false [wallpaper_max_width] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => false [wallpaper_jpg] => false [wallpaper_png] => false [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 2 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [screensaver] => false [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [<API key>] => false [screensaver_colors] => 2 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [<API key>] => 0 [<API key>] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [video] => false [<API key>] => false [<API key>] => false [<API key>] => false [streaming_video] => false [streaming_3gpp] => false [streaming_mp4] => false [streaming_mov] => false [<API key>] => 0 [<API key>] => none [streaming_flv] => false [streaming_3g2] => false [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => none [<API key>] => none [streaming_wmv] => none [<API key>] => rtsp [<API key>] => none [wap_push_support] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [utf8_support] => true [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [<API key>] => false [<API key>] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [<API key>] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [j2me_clear_key_code] => 0 [<API key>] => false [<API key>] => false [receiver] => false [sender] => false [mms_max_size] => 0 [mms_max_height] => 0 [mms_max_width] => 0 [built_in_recorder] => false [built_in_camera] => false [mms_jpeg_baseline] => false [<API key>] => false [mms_gif_static] => false [mms_gif_animated] => false [mms_png] => false [mms_bmp] => false [mms_wbmp] => false [mms_amr] => false [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [<API key>] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => false [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [<API key>] => false [<API key>] => false [<API key>] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => false [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => false [mms_mp4] => false [mms_3gpp] => false [mms_3gpp2] => false [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [<API key>] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [<API key>] => 101 [<API key>] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => false [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => false [mp3] => false [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => true [<API key>] => true [css_border_image] => none [css_rounded_corners] => none [css_gradient] => none [css_spriting] => true [css_gradient_linear] => none [is_transcoder] => false [<API key>] => user-agent [rss_support] => false [pdf_support] => true [<API key>] => true [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [playback_real_media] => none [playback_3gpp] => false [playback_3g2] => false [playback_mp4] => false [playback_mov] => false [playback_acodec_amr] => none [playback_acodec_aac] => none [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => false [playback_wmv] => none [<API key>] => false [html_preferred_dtd] => html4 [viewport_supported] => false [viewport_width] => [<API key>] => [<API key>] => [<API key>] => [<API key>] => [mobileoptimized] => false [handheldfriendly] => false [canvas_support] => none [image_inlining] => true [is_smarttv] => true [is_console] => false [nfc_support] => false [ux_full_desktop] => false [jqm_grade] => A [is_sencha_touch_ok] => true [<API key>] => default [controlcap_is_ios] => default [<API key>] => default [controlcap_is_robot] => default [controlcap_is_app] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default [<API key>] => default ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/<API key>">ThaDafinser/<API key></a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-02-13 13:39:42</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
#ifndef RAY_H #define RAY_H #include "vec.h" namespace hagrid { Ray, defined as org + t * dir with t in [tmin, tmax] struct Ray { vec3 org; float tmin; vec3 dir; float tmax; HOST DEVICE Ray() {} HOST DEVICE Ray(const vec3& org, float tmin, const vec3& dir, float tmax) : org(org), tmin(tmin), dir(dir), tmax(tmax) {} }; Result of a hit (id is -1 if there is no hit) struct Hit { int id; float t; float u; float v; HOST DEVICE Hit() {} HOST DEVICE Hit(int id, float t, float u, float v) : id(id), t(t), u(u), v(v) {} }; #ifdef __NVCC__ __device__ __forceinline__ Ray load_ray(const Ray* ray_ptr) { const float4* ptr = (const float4*)ray_ptr; auto ray0 = ptr[0]; auto ray1 = ptr[1]; return Ray(vec3(ray0.x, ray0.y, ray0.z), ray0.w, vec3(ray1.x, ray1.y, ray1.z), ray1.w); } __device__ __forceinline__ void store_hit(Hit* hit_ptr, const Hit& hit) { float4* ptr = (float4*)hit_ptr; ptr[0] = make_float4(__int_as_float(hit.id), hit.t, hit.u, hit.v); } #endif } // namespace hagrid #endif // RAY_H
#!/bin/bash $( dirname "${BASH_SOURCE[0]}" )/exec-class.sh ch.tkuhn.memetools.DetectTrendTerms "$@"
// <author>Matt Lacey</author> // <author>D.A.M. Good Media Ltd.</author> using System; namespace LuisEntityHelpers { public class NumberHelper : HelperCore { public override IParseResponse Parse(<API key> <API key>) { if (<API key> == null) { throw new <API key>(nameof(<API key>)); } if (<API key>.Type == Builtin.Number) { if (!<API key>.Resolution.ContainsKey("value")) { throw new ArgumentException("Resolution was missing expected 'value' key"); } var luisValue = double.Parse(<API key>.Resolution["value"]); return new NumberParseResponse(<API key>, luisValue); } else { throw new ArgumentException("Invalid Entity for this parser"); } } // Convenience method to avoid the need to cast from IParseResponse if already know entity is a number public NumberParseResponse ParseNumber(<API key> <API key>) { return (NumberParseResponse)this.Parse(<API key>); } } }
from PyOMAPIc import PyOMAPIc
# Fairchild Reservation Scheduler [![Build Status](https:
import os import re import traceback import logging import platform from distutils.version import StrictVersion from PySide import QtCore from PySide import QtGui from P4 import P4, P4Exception, Progress, OutputHandler import Utils import AppUtils import GlobalVars import Callbacks reload(Utils) reload(AppUtils) reload(GlobalVars) reload(Callbacks) version = '1.1.3' mainParent = AppUtils.main_parent_window() iconPath = GlobalVars.iconPath tempPath = GlobalVars.tempPath P4Icon = GlobalVars.P4Icon sceneFiles = GlobalVars.sceneFiles p4_logger = logging.getLogger("Perforce") def displayErrorUI(e): error_ui = QtGui.QMessageBox() error_ui.setWindowFlags(QtCore.Qt.WA_DeleteOnClose) eMsg, type = Utils.parsePerforceError(e) if type == "warning": error_ui.warning(mainParent, "Perforce Warning", eMsg) elif type == "error": error_ui.critical(mainParent, "Perforce Error", eMsg) else: error_ui.information(mainParent, "Perforce Error", eMsg) error_ui.deleteLater() class <API key>(Progress, OutputHandler): def __init__(self, ui): Progress.__init__(self) OutputHandler.__init__(self) self.totalFiles = 0 self.totalSizes = 0 self.ui = ui self.ui.setMinimum(0) self.ui.setHandler(self) self.shouldCancel = False def setCancel(self, val): self.shouldCancel = val def outputStat(self, stat): if 'totalFileCount' in stat: self.totalFileCount = int(stat['totalFileCount']) print "TOTAL FILE COUNT: ", self.totalFileCount if 'totalFileSize' in stat: self.totalFileSize = int(stat['totalFileSize']) print "TOTAL FILE SIZE: ", self.totalFileSize if self.shouldCancel: return OutputHandler.REPORT | OutputHandler.CANCEL else: return OutputHandler.HANDLED def outputInfo(self, info): AppUtils.refresh() print "INFO :", info if self.shouldCancel: return OutputHandler.REPORT | OutputHandler.CANCEL else: return OutputHandler.HANDLED def outputMessage(self, msg): AppUtils.refresh() print "Msg :", msg if self.shouldCancel: return OutputHandler.REPORT | OutputHandler.CANCEL else: return OutputHandler.HANDLED def init(self, type): AppUtils.refresh() print "Begin :", type self.type = type self.ui.incrementCurrent() def setDescription(self, description, unit): AppUtils.refresh() print "Desc :", description, unit pass def setTotal(self, total): AppUtils.refresh() print "Total :", total self.ui.setMaximum(total) pass def update(self, position): AppUtils.refresh() print "Update : ", position self.ui.setValue(position) self.position = position def done(self, fail): AppUtils.refresh() print "Failed :", fail self.fail = fail class SubmitProgressUI(QtGui.QDialog): def __init__(self, totalFiles, parent=mainParent): super(SubmitProgressUI, self).__init__(parent) self.handler = None self.totalFiles = totalFiles self.currentFile = 0 def setHandler(self, handler): self.handler = handler def setMaximum(self, val): self.fileProgressBar.setMaximum(val) def setMinimum(self, val): self.fileProgressBar.setMinimum(val) def setValue(self, val): self.fileProgressBar.setValue(val) def incrementCurrent(self): self.currentFile += 1 self.overallProgressBar.setValue(self.currentFile) print self.totalFiles, self.currentFile if self.currentFile >= self.totalFiles: setComplete(True) def setComplete(self, success): if not success: self.overallProgressBar.setTextVisible(True) self.overallProgressBar.setFormat("Cancelled/Error") self.fileProgressBar.setTextVisible(True) self.fileProgressBar.setFormat("Cancelled/Error") self.quitBtn.setText("Quit") def create(self, title, files=[]): path = iconPath + "p4.png" icon = QtGui.QIcon(path) self.setWindowTitle(title) self.setWindowIcon(icon) self.setWindowFlags(QtCore.Qt.Dialog) self.create_controls() self.create_layout() self.create_connections() def create_controls(self): ''' Create the widgets for the dialog ''' self.overallProgressBar = QtGui.QProgressBar() self.overallProgressBar.setMinimum(0) self.overallProgressBar.setMaximum(self.totalFiles) self.overallProgressBar.setValue(0) self.fileProgressBar = QtGui.QProgressBar() self.fileProgressBar.setMinimum(0) self.fileProgressBar.setMaximum(100) self.fileProgressBar.setValue(0) self.quitBtn = QtGui.QPushButton("Cancel") def create_layout(self): ''' Create the layouts and add widgets ''' main_layout = QtGui.QVBoxLayout() main_layout.setContentsMargins(6, 6, 6, 6) formlayout1 = QtGui.QFormLayout() formlayout1.addRow("Total Progress:", self.overallProgressBar) formlayout1.addRow("File Progress:", self.fileProgressBar) main_layout.addLayout(formlayout1) main_layout.addWidget(self.quitBtn) self.setLayout(main_layout) def create_connections(self): ''' Create the signal/slot connections ''' # self.fileTree.clicked.connect( self.loadFileLog ) self.quitBtn.clicked.connect(self.cancelProgress) # SLOTS def cancelProgress(self, *args): self.quitBtn.setText("Cancelling...") self.handler.setCancel(True) class SubmitChangeUi(QtGui.QDialog): def __init__(self, parent=mainParent): super(SubmitChangeUi, self).__init__(parent) def create(self, p4, files=[]): self.p4 = p4 path = iconPath + P4Icon.iconName icon = QtGui.QIcon(path) self.setWindowTitle("Submit Change") self.setWindowIcon(icon) self.setWindowFlags(QtCore.Qt.Window) self.fileList = files self.create_controls() self.create_layout() self.create_connections() self.validateText() def create_controls(self): ''' Create the widgets for the dialog ''' self.submitBtn = QtGui.QPushButton("Submit") self.descriptionWidget = QtGui.QPlainTextEdit("<Enter Description>") self.descriptionLabel = QtGui.QLabel("Change Description:") self.chkboxLockedWidget = QtGui.QCheckBox("Keep files checked out?") headers = [" ", "File", "Type", "Action", "Folder"] self.tableWidget = QtGui.QTableWidget(len(self.fileList), len(headers)) self.tableWidget.setMaximumHeight(200) self.tableWidget.setMinimumWidth(500) self.tableWidget.<API key>(headers) for i, file in enumerate(self.fileList): # Saves us manually keeping track of the current column column = 0 # Create checkbox in first column widget = QtGui.QWidget() layout = QtGui.QHBoxLayout() chkbox = QtGui.QCheckBox() chkbox.setCheckState(QtCore.Qt.Checked) layout.addWidget(chkbox) layout.setAlignment(QtCore.Qt.AlignCenter) layout.setContentsMargins(0, 0, 0, 0) widget.setLayout(layout) self.tableWidget.setCellWidget(i, column, widget) column += 1 # Fill in the rest of the data # File fileName = file['File'] newItem = QtGui.QTableWidgetItem(os.path.basename(fileName)) newItem.setFlags(newItem.flags() ^ QtCore.Qt.ItemIsEditable) self.tableWidget.setItem(i, column, newItem) column += 1 # Text fileType = file['Type'] newItem = QtGui.QTableWidgetItem(fileType.capitalize()) newItem.setFlags(newItem.flags() ^ QtCore.Qt.ItemIsEditable) self.tableWidget.setItem(i, column, newItem) column += 1 # Pending Action pendingAction = file['Pending_Action'] path = "" if(pendingAction == "edit"): path = os.path.join(iconPath, P4Icon.editFile) elif(pendingAction == "add"): path = os.path.join(iconPath, P4Icon.addFile) elif(pendingAction == "delete"): path = os.path.join(iconPath, P4Icon.deleteFile) widget = QtGui.QWidget() icon = QtGui.QPixmap(path) icon = icon.scaled(16, 16) iconLabel = QtGui.QLabel() iconLabel.setPixmap(icon) textLabel = QtGui.QLabel(pendingAction.capitalize()) layout = QtGui.QHBoxLayout() layout.addWidget(iconLabel) layout.addWidget(textLabel) layout.setAlignment(QtCore.Qt.AlignLeft) # layout.setContentsMargins(0,0,0,0) widget.setLayout(layout) self.tableWidget.setCellWidget(i, column, widget) column += 1 # Folder newItem = QtGui.QTableWidgetItem(file['Folder']) newItem.setFlags(newItem.flags() ^ QtCore.Qt.ItemIsEditable) self.tableWidget.setItem(i, column, newItem) column += 1 self.tableWidget.<API key>() self.tableWidget.horizontalHeader().<API key>(True) def create_layout(self): ''' Create the layouts and add widgets ''' check_box_layout = QtGui.QHBoxLayout() check_box_layout.setContentsMargins(2, 2, 2, 2) main_layout = QtGui.QVBoxLayout() main_layout.setContentsMargins(6, 6, 6, 6) main_layout.addWidget(self.descriptionLabel) main_layout.addWidget(self.descriptionWidget) main_layout.addWidget(self.tableWidget) main_layout.addWidget(self.chkboxLockedWidget) main_layout.addWidget(self.submitBtn) # main_layout.addStretch() self.setLayout(main_layout) def create_connections(self): ''' Create the signal/slot connections ''' self.submitBtn.clicked.connect(self.on_submit) self.descriptionWidget.textChanged.connect(self.on_text_changed) # SLOTS def on_submit(self): if not self.validateText(): QtGui.QMessageBox.warning( mainParent, "Submit Warning", "No valid description entered") return files = [] for i in range(self.tableWidget.rowCount()): cellWidget = self.tableWidget.cellWidget(i, 0) if cellWidget.findChild(QtGui.QCheckBox).checkState() == QtCore.Qt.Checked: files.append(self.fileList[i]['File']) keepCheckedOut = self.chkboxLockedWidget.checkState() progress = SubmitProgressUI(len(files)) progress.create("Submit Progress") callback = <API key>(progress) progress.show() # self.p4.progress = callback # self.p4.handler = callback # Remove student setting from .ma for submitFile in files: if ".ma" in submitFile: try: pathData = self.p4.run_where(submitFile)[0] Utils.removeStudentTag(pathData['path']) except P4Exception as e: print e try: Utils.submitChange(self.p4, files, str( self.descriptionWidget.toPlainText()), callback, keepCheckedOut) if not keepCheckedOut: clientFiles = [] for file in files: try: path = self.p4.run_fstat(file)[0] clientFiles.append(path['clientFile']) except P4Exception as e: displayErrorUI(e) # Bug with windows, doesn't make files writable on submit for # some reason Utils.removeReadOnlyBit(clientFiles) self.close() except P4Exception as e: self.p4.progress = None self.p4.handler = None displayErrorUI(e) progress.close() self.p4.progress = None self.p4.handler = None def validateText(self): text = self.descriptionWidget.toPlainText() p = QtGui.QPalette() if text == "<Enter Description>" or "<" in text or ">" in text: p.setColor(QtGui.QPalette.Active, QtGui.QPalette.Text, QtCore.Qt.red) p.setColor(QtGui.QPalette.Inactive, QtGui.QPalette.Text, QtCore.Qt.red) self.descriptionWidget.setPalette(p) return False self.descriptionWidget.setPalette(p) return True def on_text_changed(self): self.validateText() class OpenedFilesUI(QtGui.QDialog): def __init__(self, parent=mainParent): super(OpenedFilesUI, self).__init__(parent) def create(self, p4, files=[]): self.p4 = p4 path = iconPath + P4Icon.iconName icon = QtGui.QIcon(path) self.setWindowTitle("Changelist : Opened Files") self.setWindowIcon(icon) self.setWindowFlags(QtCore.Qt.Window) self.entries = [] self.create_controls() self.create_layout() self.create_connections() def create_controls(self): ''' Create the widgets for the dialog ''' headers = ["File", "Type", "Action", "User", "Folder"] self.tableWidget = QtGui.QTableWidget(0, len(headers)) self.tableWidget.setMaximumHeight(200) self.tableWidget.setMinimumWidth(500) self.tableWidget.<API key>(headers) self.tableWidget.<API key>( QtGui.QAbstractItemView.SelectRows) self.tableWidget.setSelectionMode( QtGui.QAbstractItemView.SingleSelection) self.openSelectedBtn = QtGui.QPushButton("Open") self.openSelectedBtn.setEnabled(False) self.openSelectedBtn.setIcon(QtGui.QIcon( os.path.join(iconPath, "File0228.png"))) self.revertFileBtn = QtGui.QPushButton("Remove from changelist") self.revertFileBtn.setEnabled(False) self.revertFileBtn.setIcon(QtGui.QIcon( os.path.join(iconPath, "File0308.png"))) self.refreshBtn = QtGui.QPushButton("Refresh") self.refreshBtn.setIcon(QtGui.QIcon( os.path.join(iconPath, "File0175.png"))) self.updateTable() def create_layout(self): ''' Create the layouts and add widgets ''' check_box_layout = QtGui.QHBoxLayout() check_box_layout.setContentsMargins(2, 2, 2, 2) main_layout = QtGui.QVBoxLayout() main_layout.setContentsMargins(6, 6, 6, 6) main_layout.addWidget(self.tableWidget) bottomLayout = QtGui.QHBoxLayout() bottomLayout.addWidget(self.revertFileBtn) bottomLayout.addWidget(self.refreshBtn) bottomLayout.addSpacerItem(QtGui.QSpacerItem(400, 16)) bottomLayout.addWidget(self.openSelectedBtn) main_layout.addLayout(bottomLayout) self.setLayout(main_layout) def create_connections(self): ''' Create the signal/slot connections ''' self.revertFileBtn.clicked.connect(self.revertSelected) self.openSelectedBtn.clicked.connect(self.openSelectedFile) self.tableWidget.clicked.connect(self.validateSelected) self.refreshBtn.clicked.connect(self.updateTable) # SLOTS def revertSelected(self, *args): index = self.tableWidget.currentRow() fileName = self.entries[index]['File'] filePath = self.entries[index]['Folder'] depotFile = os.path.join(filePath, fileName) try: p4_logger.info(self.p4.run_revert("-k", depotFile)) except P4Exception as e: displayErrorUI(e) self.updateTable() def validateSelected(self, *args): index = self.tableWidget.currentRow() item = self.entries[index] fileName = item['File'] filePath = item['Folder'] depotFile = os.path.join(filePath, fileName) self.openSelectedBtn.setEnabled(True) self.revertFileBtn.setEnabled(True) def openSelectedFile(self, *args): index = self.tableWidget.currentRow() item = self.entries[index] fileName = item['File'] filePath = item['Folder'] depotFile = os.path.join(filePath, fileName) try: result = self.p4.run_fstat(depotFile)[0] clientFile = result['clientFile'] if Utils.queryFileExtension(depotFile, ['.ma', '.mb']): AppUtils.openScene(clientFile) else: Utils.open_file(clientFile) except P4Exception as e: displayErrorUI(e) def updateTable(self): fileList = self.p4.run_opened( "-u", self.p4.user, "-C", self.p4.client, "...") self.entries = [] for file in fileList: filePath = file['clientFile'] #fileInfo = self.p4.run_fstat( filePath )[0] locked = 'ourLock' in file entry = {'File': filePath, 'Folder': os.path.split(filePath)[0], 'Type': file['type'], 'User': file['user'], 'Pending_Action': file['action'], 'Locked': locked } self.entries.append(entry) self.tableWidget.setRowCount(len(self.entries)) for i, file in enumerate(self.entries): # Saves us manually keeping track of the current column column = 0 # Fill in the rest of the data # File fileName = file['File'] newItem = QtGui.QTableWidgetItem(os.path.basename(fileName)) newItem.setFlags(newItem.flags() ^ QtCore.Qt.ItemIsEditable) self.tableWidget.setItem(i, column, newItem) column += 1 # Text fileType = file['Type'] newItem = QtGui.QTableWidgetItem(fileType.capitalize()) newItem.setFlags(newItem.flags() ^ QtCore.Qt.ItemIsEditable) self.tableWidget.setItem(i, column, newItem) column += 1 # Pending Action pendingAction = file['Pending_Action'] path = "" if(pendingAction == "edit"): path = os.path.join(iconPath, P4Icon.editFile) elif(pendingAction == "add"): path = os.path.join(iconPath, P4Icon.addFile) elif(pendingAction == "delete"): path = os.path.join(iconPath, P4Icon.deleteFile) widget = QtGui.QWidget() icon = QtGui.QPixmap(path) icon = icon.scaled(16, 16) iconLabel = QtGui.QLabel() iconLabel.setPixmap(icon) textLabel = QtGui.QLabel(pendingAction.capitalize()) layout = QtGui.QHBoxLayout() layout.addWidget(iconLabel) layout.addWidget(textLabel) layout.setAlignment(QtCore.Qt.AlignLeft) # layout.setContentsMargins(0,0,0,0) widget.setLayout(layout) self.tableWidget.setCellWidget(i, column, widget) column += 1 # User fileType = file['User'] newItem = QtGui.QTableWidgetItem(fileType) newItem.setFlags(newItem.flags() ^ QtCore.Qt.ItemIsEditable) self.tableWidget.setItem(i, column, newItem) column += 1 # Folder newItem = QtGui.QTableWidgetItem(file['Folder']) newItem.setFlags(newItem.flags() ^ QtCore.Qt.ItemIsEditable) self.tableWidget.setItem(i, column, newItem) column += 1 self.tableWidget.<API key>() self.tableWidget.horizontalHeader().<API key>(True) # %TODO Implement my new method class FileRevisionUI(QtGui.QDialog): def __init__(self, parent=mainParent): super(FileRevisionUI, self).__init__(parent) def create(self, p4, files=[]): self.p4 = p4 path = iconPath + P4Icon.iconName icon = QtGui.QIcon(path) self.setWindowTitle("File Revisions") self.setWindowIcon(icon) self.setWindowFlags(QtCore.Qt.Window) self.fileRevisions = [] self.create_controls() self.create_layout() self.create_connections() def create_controls(self): ''' Create the widgets for the dialog ''' self.descriptionWidget = QtGui.QPlainTextEdit("<Enter Description>") self.descriptionLabel = QtGui.QLabel("Change Description:") self.getRevisionBtn = QtGui.QPushButton("Revert to Selected Revision") self.getLatestBtn = QtGui.QPushButton("Sync to Latest Revision") self.getPreviewBtn = QtGui.QPushButton("Preview Scene") self.getPreviewBtn.setEnabled(False) self.fileTreeModel = QtGui.QFileSystemModel() self.fileTreeModel.setRootPath(self.p4.cwd) self.fileTree = QtGui.QTreeView() self.fileTree.setModel(self.fileTreeModel) self.fileTree.setRootIndex(self.fileTreeModel.index(self.p4.cwd)) self.fileTree.setColumnWidth(0, 180) headers = ["Revision", "User", "Action", "Date", "Client", "Description"] self.tableWidget = QtGui.QTableWidget() self.tableWidget.setColumnCount(len(headers)) self.tableWidget.setMaximumHeight(200) self.tableWidget.setMinimumWidth(500) self.tableWidget.<API key>(headers) self.tableWidget.verticalHeader().setVisible(False) self.tableWidget.<API key>( QtGui.QAbstractItemView.SelectRows) self.tableWidget.setSelectionMode( QtGui.QAbstractItemView.SingleSelection) self.statusBar = QtGui.QStatusBar() # self.statusBar.showMessage("Test") self.horizontalLine = QtGui.QFrame() self.horizontalLine.setFrameShape(QtGui.QFrame.Shape.HLine) if AppUtils.getCurrentSceneFile(): self.fileTree.setCurrentIndex( self.fileTreeModel.index(AppUtils.getCurrentSceneFile())) self.loadFileLog() def create_layout(self): ''' Create the layouts and add widgets ''' check_box_layout = QtGui.QHBoxLayout() check_box_layout.setContentsMargins(2, 2, 2, 2) main_layout = QtGui.QVBoxLayout() main_layout.setContentsMargins(6, 6, 6, 6) main_layout.addWidget(self.fileTree) main_layout.addWidget(self.tableWidget) bottomLayout = QtGui.QHBoxLayout() bottomLayout.addWidget(self.getRevisionBtn) bottomLayout.addSpacerItem(QtGui.QSpacerItem(20, 16)) bottomLayout.addWidget(self.getPreviewBtn) bottomLayout.addSpacerItem(QtGui.QSpacerItem(20, 16)) bottomLayout.addWidget(self.getLatestBtn) main_layout.addLayout(bottomLayout) main_layout.addWidget(self.horizontalLine) main_layout.addWidget(self.statusBar) self.setLayout(main_layout) def create_connections(self): ''' Create the signal/slot connections ''' self.fileTree.clicked.connect(self.loadFileLog) self.getLatestBtn.clicked.connect(self.onSyncLatest) self.getRevisionBtn.clicked.connect(self.onRevertToSelection) self.getPreviewBtn.clicked.connect(self.getPreview) # SLOTS def getPreview(self, *args): index = self.tableWidget.currentRow() item = self.fileRevisions[index] revision = item['revision'] index = self.fileTree.selectedIndexes()[0] if not index: return filePath = self.fileTreeModel.fileInfo(index).absoluteFilePath() fileName = os.path.basename(filePath) path = os.path.join(tempPath, fileName) try: tmpPath = path self.p4.run_print( "-o", tmpPath, "{0}#{1}".format(filePath, revision)) p4_logger.info( "Synced preview to {0} at revision {1}".format(tmpPath, revision)) if self.isSceneFile: AppUtils.openScene(tmpPath) else: Utils.open_file(tmpPath) except P4Exception as e: displayErrorUI(e) def onRevertToSelection(self, *args): index = self.tableWidget.rowCount() - 1 item = self.fileRevisions[index] currentRevision = item['revision'] index = self.tableWidget.currentRow() item = self.fileRevisions[index] rollbackRevision = item['revision'] index = self.fileTree.selectedIndexes()[0] if not index: return filePath = self.fileTreeModel.fileInfo(index).absoluteFilePath() desc = "Rollback #{0} to #{1}".format( currentRevision, rollbackRevision) if Utils.<API key>(self.p4, filePath, rollbackRevision, desc): QtGui.QMessageBox.information( mainParent, "Success", "Successful {0}".format(desc)) self.loadFileLog() def onSyncLatest(self, *args): index = self.fileTree.selectedIndexes()[0] if not index: return filePath = self.fileTreeModel.fileInfo(index).absoluteFilePath() try: self.p4.run_sync("-f", filePath) p4_logger.info("{0} synced to latest version".format(filePath)) self.loadFileLog() except P4Exception as e: displayErrorUI(e) def loadFileLog(self, *args): index = self.fileTree.selectedIndexes()[0] if not index: return self.statusBar.showMessage("") self.getPreviewBtn.setEnabled(True) filePath = self.fileTreeModel.fileInfo(index).absoluteFilePath() if Utils.queryFileExtension(filePath, ['.ma', '.mb']): # self.getPreviewBtn.setEnabled(True) self.getPreviewBtn.setText("Preview Scene Revision") self.isSceneFile = True else: # self.getPreviewBtn.setEnabled(False) self.getPreviewBtn.setText("Preview File Revision") self.isSceneFile = False if os.path.isdir(filePath): return try: files = self.p4.run_filelog("-l", filePath) except P4Exception as e: # TODO - Better error handling here, what if we can't connect etc #eMsg, type = parsePerforceError(e) self.statusBar.showMessage( "{0} isn't on client".format(os.path.basename(filePath))) self.tableWidget.clearContents() self.getLatestBtn.setEnabled(False) self.getPreviewBtn.setEnabled(False) return self.getLatestBtn.setEnabled(True) self.getPreviewBtn.setEnabled(True) try: fileInfo = self.p4.run_fstat(filePath) print fileInfo if fileInfo: if 'otherLock' in fileInfo[0]: self.statusBar.showMessage("{0} currently locked by {1}".format( os.path.basename(filePath), fileInfo[0]['otherLock'][0])) if fileInfo[0]['otherLock'][0].split('@')[0] != self.p4.user: self.getRevisionBtn.setEnabled(False) elif 'otherOpen' in fileInfo[0]: self.statusBar.showMessage("{0} currently opened by {1}".format( os.path.basename(filePath), fileInfo[0]['otherOpen'][0])) if fileInfo[0]['otherOpen'][0].split('@')[0] != self.p4.user: self.getRevisionBtn.setEnabled(False) else: self.statusBar.showMessage("{0} currently opened by {1}@{2}".format( os.path.basename(filePath), self.p4.user, self.p4.client)) self.getRevisionBtn.setEnabled(True) except P4Exception: self.statusBar.showMessage("{0} is not checked out".format(os.path.basename(filePath))) self.getRevisionBtn.setEnabled(True) # Generate revision dictionary self.fileRevisions = [] for revision in files[0].each_revision(): self.fileRevisions.append({"revision": revision.rev, "action": revision.action, "date": revision.time, "desc": revision.desc, "user": revision.user, "client": revision.client }) self.tableWidget.setRowCount(len(self.fileRevisions)) # Populate table for i, revision in enumerate(self.fileRevisions): # Saves us manually keeping track of the current column column = 0 # Fill in the rest of the data change = "#{0}".format(revision['revision']) widget = QtGui.QWidget() layout = QtGui.QHBoxLayout() label = QtGui.QLabel(str(change)) layout.addWidget(label) layout.setAlignment(QtCore.Qt.AlignCenter) layout.setContentsMargins(0, 0, 0, 0) widget.setLayout(layout) self.tableWidget.setCellWidget(i, column, widget) column += 1 # User user = revision['user'] widget = QtGui.QWidget() layout = QtGui.QHBoxLayout() label = QtGui.QLabel(str(user)) label.setStyleSheet("QLabel { border: none } ") layout.addWidget(label) layout.setAlignment(QtCore.Qt.AlignCenter) layout.setContentsMargins(4, 0, 4, 0) widget.setLayout(layout) self.tableWidget.setCellWidget(i, column, widget) column += 1 # Action pendingAction = revision['action'] path = "" if(pendingAction == "edit"): path = os.path.join(iconPath, P4Icon.editFile) elif(pendingAction == "add"): path = os.path.join(iconPath, P4Icon.addFile) elif(pendingAction == "delete"): path = os.path.join(iconPath, P4Icon.deleteFile) widget = QtGui.QWidget() icon = QtGui.QPixmap(path) icon = icon.scaled(16, 16) iconLabel = QtGui.QLabel() iconLabel.setPixmap(icon) textLabel = QtGui.QLabel(pendingAction.capitalize()) textLabel.setStyleSheet("QLabel { border: none } ") # @TODO Why not move these into a cute little function in a function layout = QtGui.QHBoxLayout() layout.addWidget(iconLabel) layout.addWidget(textLabel) layout.setAlignment(QtCore.Qt.AlignLeft) # layout.setContentsMargins(0,0,0,0) widget.setLayout(layout) self.tableWidget.setCellWidget(i, column, widget) column += 1 # Date date = revision['date'] widget = QtGui.QWidget() layout = QtGui.QHBoxLayout() label = QtGui.QLabel(str(date)) label.setStyleSheet("QLabel { border: none } ") layout.addWidget(label) layout.setAlignment(QtCore.Qt.AlignCenter) layout.setContentsMargins(4, 0, 4, 0) widget.setLayout(layout) self.tableWidget.setCellWidget(i, column, widget) column += 1 # Client client = revision['client'] widget = QtGui.QWidget() layout = QtGui.QHBoxLayout() label = QtGui.QLabel(str(client)) label.setStyleSheet("QLabel { border: none } ") layout.addWidget(label) layout.setAlignment(QtCore.Qt.AlignCenter) layout.setContentsMargins(4, 0, 4, 0) widget.setLayout(layout) self.tableWidget.setCellWidget(i, column, widget) column += 1 # Description desc = revision['desc'] widget = QtGui.QWidget() layout = QtGui.QHBoxLayout() text = QtGui.QLineEdit() text.setText(desc) text.setReadOnly(True) text.setAlignment(QtCore.Qt.AlignLeft) text.setStyleSheet("QLineEdit { border: none ") layout.addWidget(text) layout.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignLeft) layout.setContentsMargins(4, 0, 1, 0) widget.setLayout(layout) self.tableWidget.setCellWidget(i, column, widget) column += 1 self.tableWidget.<API key>() self.tableWidget.<API key>() self.tableWidget.setColumnWidth(4, 90) self.tableWidget.horizontalHeader().<API key>(True) class PerforceUI: def __init__(self, p4): self.deleteUI = None self.submitUI = None self.perforceMenu = "" self.p4 = p4 self.p4.connect() try: self.firstTimeLogin(enterUsername=self.p4.user is None, enterPassword=self.p4.password is None) except P4Exception as e: # If user/pass is set but it fails anyway, try a last ditch attempt # to let the user input their stuff try: self.firstTimeLogin(enterUsername=True, enterPassword=True) except P4Exception as e: raise e # Validate workspace try: self.p4.cwd = self.p4.run_info()[0]['clientRoot'] except P4Exception as e: displayErrorUI(e) except KeyError as e: print "No workspace found, creating default one" try: self.createWorkspace() except P4Exception as e: p4_logger.warning(e) self.p4.cwd = self.p4.fetch_client()['Root'] def close(self): try: self.revisionUi.deleteLater() except Exception as e: print "Error cleaning up P4 revision UI : ", e try: self.openedUi.deleteLater() except Exception as e: print "Error cleaning up P4 opened UI : ", e try: # Deleting maya menus is bad, but this is a dumb way of error checking if "PerforceMenu" in self.perforceMenu: AppUtils.closeWindow(self.perforceMenu) else: raise RuntimeError("Menu name doesn't seem to belong to Perforce, not deleting") except Exception as e: print "Error cleaning up P4 menu : ", e try: self.submitUI.deleteLater() except Exception as e: print "Error cleaning up P4 submit UI : ", e p4_logger.info("Disconnecting from server") try: self.p4.disconnect() except Exception as e: print "Error disconnecting P4 daemon : ", e def addMenu(self): # try: # AppUtils.closeWindow(self.perforceMenu) # except: # pass import maya.mel # import maya.utils as mu import maya.cmds as cmds # import maya.OpenMayaUI as omui # from shiboken import wrapInstance gMainWindow = maya.mel.eval('$temp1=$gMainWindow') self.perforceMenu = cmds.menu("PerforceMenu", parent=gMainWindow, tearOff=True, label='Perforce') # %TODO Move these to MayaUtils # %TODO Hard coded icons are bad? cmds.setParent(self.perforceMenu, menu=True) cmds.menuItem(label="Client Commands", divider=True) cmds.menuItem(label="Checkout File(s)", image=os.path.join( iconPath, "File0078.png"), command=self.checkoutFile) cmds.menuItem(label="Checkout Folder", image=os.path.join( iconPath, "File0186.png"), command=self.checkoutFolder) cmds.menuItem(label="Mark for Delete", image=os.path.join( iconPath, "File0253.png"), command=self.deleteFile) cmds.menuItem(label="Show Changelist", image=os.path.join( iconPath, "File0252.png"), command=self.queryOpened) # cmds.menuItem(divider=True) # self.lockFile = cmds.menuItem(label="Lock This File", image = os.path.join(iconPath, "File0143.png"), command = self.lockThisFile ) # self.unlockFile = cmds.menuItem(label="Unlock This File", image = os.path.join(iconPath, "File0252.png"), command = self.unlockThisFile, en=False ) # cmds.menuItem(label = "Locking", divider=True) # cmds.menuItem(label="Lock File", image = os.path.join(iconPath, "File0143.png"), command = self.lockFile ) # cmds.menuItem(label="Unlock File", image = os.path.join(iconPath, "File0252.png"), command = self.unlockFile ) cmds.menuItem(label="Depot Commands", divider=True) cmds.menuItem(label="Submit Change", image=os.path.join( iconPath, "File0107.png"), command=self.submitChange) cmds.menuItem(label="Sync All", image=os.path.join(iconPath, "File0175.png"), command=self.syncAllChanged) cmds.menuItem(label="Sync All - Force", image=os.path.join(iconPath, "File0175.png"), command=self.syncAll) cmds.menuItem(label="Sync All References", image=os.path.join(iconPath, "File0320.png"), command=self.syncAllChanged, en=False) #cmds.menuItem(label="Get Latest Scene", image = os.path.join(iconPath, "File0275.png"), command = self.syncFile ) cmds.menuItem(label="Show Depot History", image=os.path.join( iconPath, "File0279.png"), command=self.fileRevisions) cmds.menuItem(label="Scene", divider=True) cmds.menuItem(label="File Status", image=os.path.join( iconPath, "File0409.png"), command=self.querySceneStatus) cmds.menuItem(label="Utility", divider=True) cmds.menuItem(label="Create Asset", image=os.path.join( iconPath, "File0352.png"), command=self.createAsset) cmds.menuItem(label="Create Shot", image=os.path.join( iconPath, "File0104.png"), command=self.createShot) cmds.menuItem(divider=True) cmds.menuItem(subMenu=True, tearOff=False, label="Miscellaneous", image=os.path.join(iconPath, "File0411.png")) cmds.menuItem(label="Server", divider=True) cmds.menuItem(label="Login as user", image=os.path.join( iconPath, "File0077.png"), command=self.loginAsUser) #cmds.menuItem(label="Change Password", image = os.path.join(iconPath, "File0143.png"), command = "print('Change password')", en=False ) cmds.menuItem(label="Server Info", image=os.path.join( iconPath, "File0031.png"), command=self.queryServerStatus) cmds.menuItem(label="Workspace", divider=True) cmds.menuItem(label="Create Workspace", image=os.path.join( iconPath, "File0238.png"), command=self.createWorkspace) cmds.menuItem(label="Set Current Workspace", image=os.path.join( iconPath, "File0044.png"), command=self.setCurrentWorkspace) cmds.menuItem(label="Debug", divider=True) cmds.menuItem(label="Delete all pending changes", image=os.path.join( iconPath, "File0280.png"), command=self.deletePending) cmds.setParent( '..', menu=True ) cmds.menuItem(label="Version {0}".format(version), en=False) def changePasswd(self, *args): return NotImplementedError("Use p4 passwd") def createShot(self, *args): shotNameDialog = QtGui.QInputDialog shotName = shotNameDialog.getText( mainParent, "Create Shot", "Shot Name:") if not shotName[1]: return if not shotName[0]: p4_logger.warning("Empty shot name") return shotNumDialog = QtGui.QInputDialog shotNum = shotNumDialog.getText( mainParent, "Create Shot", "Shot Number:") if not shotNum[1]: return if not shotNum[0]: p4_logger.warning("Empty shot number") return shotNumberInt = -1 try: shotNumberInt = int(shotNum[0]) except ValueError as e: p4_logger.warning(e) return p4_logger.info("Creating folder structure for shot {0}/{1} in {2}".format( shotName[0], shotNumberInt, self.p4.cwd)) dir = Utils.createShotFolders(self.p4.cwd, shotName[0], shotNumberInt) self.run_checkoutFolder(None, dir) def createAsset(self, *args): assetNameDialog = QtGui.QInputDialog assetName = assetNameDialog.getText( mainParent, "Create Asset", "Asset Name:") if not assetName[1]: return if not assetName[0]: p4_logger.warning("Empty asset name") return p4_logger.info("Creating folder structure for asset {0} in {1}".format( assetName[0], self.p4.cwd)) dir = Utils.createAssetFolders(self.p4.cwd, assetName[0]) self.run_checkoutFolder(None, dir) def loginAsUser(self, *args): self.firstTimeLogin(enterUsername=True, enterPassword=True) def firstTimeLogin(self, enterUsername=True, enterPassword=True, *args): username = None password = None if enterUsername: usernameInputDialog = QtGui.QInputDialog username = usernameInputDialog.getText( mainParent, "Enter username", "Username:") if not username[1]: raise ValueError("Invalid username") self.p4.user = str(username[0]) if enterPassword: passwordInputDialog = QtGui.QInputDialog <API key>.getText( mainParent, "Enter password", "Password:") if not password[1]: raise ValueError("Invalid password") self.p4.password = str(password[0]) # Validate SSH Login / Attempt to login try: p4_logger.info(self.p4.run_login("-a")) except P4Exception as e: regexKey = re.compile(ur'(?:[0-9a-fA-F]:?){40}') # regexIP = re.compile(ur'[0-9]+(?:\.[0-9]+){3}?:[0-9]{4}') errorMsg = str(e).replace('\\n', ' ') key = re.findall(regexKey, errorMsg) # ip = re.findall(regexIP, errorMsg) if key: p4_logger.info(self.p4.run_trust("-i", key[0])) p4_logger.info(self.p4.run_login("-a")) else: raise e if username: Utils.writeToP4Config(self.p4.p4config_file, "P4USER", str(username[0])) if password: Utils.writeToP4Config(self.p4.p4config_file, "P4PASSWD", str(password[0])) def setCurrentWorkspace(self, *args): workspacePath = QtGui.QFileDialog.<API key>( mainParent, "Select existing workspace") for client in self.p4.run_clients(): if workspacePath == client['Root']: root, client = os.path.split(str(workspacePath)) self.p4.client = client p4_logger.info("Setting current client to {0}".format(client)) # REALLY make sure we save the P4CLIENT variable if platform.system() == "Linux" or platform.system() == "Darwin": os.environ['P4CLIENT'] = self.p4.client Utils.<API key>("P4CLIENT", self.p4.client) else: self.p4.set_env('P4CLIENT', self.p4.client) Utils.writeToP4Config( self.p4.p4config_file, "P4CLIENT", self.p4.client) break else: QtGui.QMessageBox.warning( mainParent, "Perforce Error", "{0} is not a workspace root".format(workspacePath)) def createWorkspace(self, *args): workspaceRoot = None i = 0 while i < 3: workspaceRoot = QtGui.QFileDialog.<API key>( AppUtils.main_parent_window(), "Specify workspace root folder") i += 1 if workspaceRoot: break else: raise IOError("Can't set workspace") try: <API key> = QtGui.QInputDialog workspaceSuffix = <API key>.getText( mainParent, "Workspace", "Optional Name Suffix (e.g. Uni, Home):") Utils.createWorkspace(self.p4, workspaceRoot, str(workspaceSuffix[0])) Utils.writeToP4Config(self.p4.p4config_file, "P4CLIENT", self.p4.client) except P4Exception as e: displayErrorUI(e) # Open up a sandboxed QFileDialog and run a command on all the selected # files (and log the output) def __processClientFile(self, title, finishCallback, preCallback, p4command, *p4args): fileDialog = QtGui.QFileDialog(mainParent, title, str(self.p4.cwd)) def onEnter(*args): if not Utils.isPathInClientRoot(self.p4, args[0]): fileDialog.setDirectory(self.p4.cwd) def onComplete(*args): selectedFiles = [] error = None if preCallback: preCallback(fileDialog.selectedFiles()) # Only add files if we didn't cancel if args[0] == 1: for file in fileDialog.selectedFiles(): if Utils.isPathInClientRoot(self.p4, file): try: p4_logger.info(p4command(p4args, file)) selectedFiles.append(file) except P4Exception as e: p4_logger.warning(e) error = e else: p4_logger.warning( "{0} is not in client root.".format(file)) fileDialog.deleteLater() if finishCallback: finishCallback(selectedFiles, error) fileDialog.setFileMode(QtGui.QFileDialog.ExistingFiles) fileDialog.directoryEntered.connect(onEnter) fileDialog.finished.connect(onComplete) fileDialog.show() # Open up a sandboxed QFileDialog and run a command on all the selected folders (and log the output) # %TODO This should be refactored def <API key>(self, title, finishCallback, preCallback, p4command, *p4args): fileDialog = QtGui.QFileDialog(mainParent, title, str(self.p4.cwd)) def onEnter(*args): if not Utils.isPathInClientRoot(self.p4, args[0]): fileDialog.setDirectory(self.p4.cwd) def onComplete(*args): selectedFiles = [] error = None if preCallback: preCallback(fileDialog.selectedFiles()) # Only add files if we didn't cancel if args[0] == 1: for file in fileDialog.selectedFiles(): if Utils.isPathInClientRoot(self.p4, file): try: p4_logger.info(p4command(p4args, file)) selectedFiles.append(file) except P4Exception as e: p4_logger.warning(e) error = e else: p4_logger.warning( "{0} is not in client root.".format(file)) fileDialog.deleteLater() if finishCallback: finishCallback(selectedFiles, error) fileDialog.setFileMode(QtGui.QFileDialog.DirectoryOnly) fileDialog.directoryEntered.connect(onEnter) fileDialog.finished.connect(onComplete) fileDialog.show() def checkoutFile(self, *args): def openFirstFile(selected, error): if not error: if len(selected) == 1 and Utils.queryFileExtension(selected[0], sceneFiles): if not AppUtils.getCurrentSceneFile() == selected[0]: result = QtGui.QMessageBox.question( mainParent, "Open Scene?", "Do you want to open the checked out scene?", QtGui.QMessageBox.Yes | QtGui.QMessageBox.No) if result == QtGui.QMessageBox.StandardButton.Yes: AppUtils.openScene(selected[0]) self.__processClientFile( "Checkout file(s)", openFirstFile, None, self.run_checkoutFile) def checkoutFolder(self, *args): self.<API key>( "Checkout file(s)", None, None, self.run_checkoutFolder) def run_checkoutFolder(self, *args): allFiles = [] for folder in args[1:]: allFiles += Utils.<API key>(folder) self.run_checkoutFile(None, *allFiles) def deletePending(self, *args): changes = Utils.queryChangelists(self.p4, "pending") Utils.<API key>(self.p4, changes) def run_checkoutFile(self, *args): for file in args[1:]: p4_logger.info("Processing {0}...".format(file)) result = None try: result = self.p4.run_fstat(file) except P4Exception as e: pass try: if result: if 'otherLock' in result[0]: raise P4Exception("[Warning]: {0} already locked by {1}\"".format( file, result[0]['otherLock'][0])) else: p4_logger.info(self.p4.run_edit(file)) p4_logger.info(self.p4.run_lock(file)) else: p4_logger.info(self.p4.run_add(file)) p4_logger.info(self.p4.run_lock(file)) except P4Exception as e: displayErrorUI(e) def deleteFile(self, *args): def makeFilesReadOnly(files): Utils.addReadOnlyBit(files) self.__processClientFile( "Delete file(s)", None, makeFilesReadOnly, self.p4.run_delete) def revertFile(self, *args): self.__processClientFile( "Revert file(s)", None, None, self.p4.run_revert, "-k") def lockFile(self, *args): self.__processClientFile("Lock file(s)", None, None, self.p4.run_lock) def unlockFile(self, *args): self.__processClientFile( "Unlock file(s)", None, None, self.p4.run_unlock) def lockThisFile(self, *args): raise NotImplementedError( "Scene lock not implemented (use regular lock)") # file = AppUtils.getCurrentSceneFile() # if not file: # p4_logger.warning("Current scene has no name") # return # if not Utils.isPathInClientRoot(self.p4, file): # p4_logger.warning("{0} is not in client root".format(file)) # return # try: # self.p4.run_lock(file) # p4_logger.info("Locked file {0}".format(file)) # #@todo Move these into MayaUtils.py # # cmds.menuItem(self.unlockFile, edit=True, en=True) # # cmds.menuItem(self.lockFile, edit=True, en=False) # except P4Exception as e: # displayErrorUI(e) def unlockThisFile(self, *args): raise NotImplementedError( "Scene unlock not implemented (use regular unlock)") # file = AppUtils.getCurrentSceneFile() # if not file: # p4_logger.warning("Current scene has no name") # return # if not Utils.isPathInClientRoot(self.p4, file): # p4_logger.warning("{0} is not in client root".format(file)) # return # try: # self.p4.run_unlock( file ) # p4_logger.info("Unlocked file {0}".format(file)) # # cmds.menuItem(self.unlockFile, edit=True, en=False) # # cmds.menuItem(self.lockFile, edit=True, en=True) # except P4Exception as e: # displayErrorUI(e) # def syncFile(self, *args): # self.__processClientFile("Sync file(s)", self.p4.run_sync) def querySceneStatus(self, *args): try: scene = AppUtils.getCurrentSceneFile() if not scene: p4_logger.warning("Current scene file isn't saved.") return result = self.p4.run_fstat("-Oa", scene)[0] text = "" for x in result: text += ("{0} : {1}\n".format(x, result[x])) QtGui.QMessageBox.information(mainParent, "Scene Info", text) except P4Exception as e: displayErrorUI(e) def queryServerStatus(self, *args): try: result = self.p4.run_info()[0] text = "" for x in result: text += ("{0} : {1}\n".format(x, result[x])) QtGui.QMessageBox.information(mainParent, "Server Info", text) except P4Exception as e: displayErrorUI(e) def fileRevisions(self, *args): try: self.revisionUi.deleteLater() except: pass self.revisionUi = FileRevisionUI() # Delete the UI if errors occur to avoid causing winEvent and event # errors (in Maya 2014) try: self.revisionUi.create(self.p4) self.revisionUi.show() except: self.revisionUi.deleteLater() traceback.print_exc() def queryOpened(self, *args): try: self.openedUi.deleteLater() except: pass self.openedUi = OpenedFilesUI() # Delete the UI if errors occur to avoid causing winEvent and event # errors (in Maya 2014) try: self.openedUi.create(self.p4) self.openedUi.show() except: self.openedUi.deleteLater() traceback.print_exc() def submitChange(self, *args): try: self.submitUI.deleteLater() except: pass self.submitUI = SubmitChangeUi() # Delete the UI if errors occur to avoid causing winEvent # and event errors (in Maya 2014) try: files = self.p4.run_opened( "-u", self.p4.user, "-C", self.p4.client, "...") AppUtils.refresh() entries = [] for file in files: filePath = file['clientFile'] entry = {'File': filePath, 'Folder': os.path.split(filePath)[0], 'Type': file['type'], 'Pending_Action': file['action'], } entries.append(entry) print "Submit Files : ", files self.submitUI.create(self.p4, entries) self.submitUI.show() except: self.submitUI.deleteLater() traceback.print_exc() def syncFile(self, *args): try: self.p4.run_sync("-f", AppUtils.getCurrentSceneFile()) p4_logger.info("Got latest revision for {0}".format( AppUtils.getCurrentSceneFile())) except P4Exception as e: displayErrorUI(e) def syncAll(self, *args): try: self.p4.run_sync("-f", "...") p4_logger.info("Got latest revisions for client") except P4Exception as e: displayErrorUI(e) def syncAllChanged(self, *args): try: self.p4.run_sync("...") p4_logger.info("Got latest revisions for client") except P4Exception as e: displayErrorUI(e) # try: # AppUtils.closeWindow(ui.perforceMenu) # except: # ui = None def init(): global ui # try: # # cmds.deleteUI(ui.perforceMenu) # AppUtils.closeWindow(ui.perforceMenu) # except: # pass p4 = P4() print p4.p4config_file print p4.client print p4.port Callbacks.initCallbacks() try: ui = PerforceUI(p4) ui.addMenu() except ValueError as e: p4_logger.critical(e) # mu.executeDeferred('ui.addMenu()') def close(): global ui Callbacks.cleanupCallbacks() # try: # # cmds.deleteUI(ui.perforceMenu) # AppUtils.closeWindow(ui.perforceMenu) # except Exception as e: # raise e ui.close() #del ui # %Todo Implement this >> # import sys, os # from PySide import QtCore, QtGui # from P4 import P4, P4Exception # import sys # class TreeItem(object): # def __init__(self, data, parent=None): # self.parentItem = parent # self.data = data # self.childItems = [] # def appendChild(self, item): # self.childItems.append(item) # def popChild(self): # if self.childItems: # self.childItems.pop() # def row(self): # if self.parentItem: # return self.parentItem.childItems.index(self) # return 0 # def reconnect(): # p4.disconnect() # p4.connect() # p4.password = "contact_dev" # p4.run_login() # def epochToTimeStr(time): # import datetime # return datetime.datetime.utcfromtimestamp( int(time) # ).strftime("%d/%m/%Y %H:%M:%S") # def perforceListDir(p4path): # result = [] # if p4path[-1] == '/' or p4path[-1] == '\\': # p4path = p4path[:-1] # path = "{0}/{1}".format(p4path, '*') # isDepotPath = p4path.startswith("//depot") # dirs = [] # files = [] # # Dir silently does nothing if there are no dirs # try: # dirs = p4.run_dirs( path ) # except P4Exception as e: # pass # # Files will return an exception if there are no files in the dir # # Stupid inconsistency imo # try: # if isDepotPath: # files = p4.run_files( path ) # else: # tmp = p4.run_have( path ) # for fileItem in tmp: # files += p4.run_fstat( fileItem['clientFile'] ) # except P4Exception as e: # pass # result = [] # for dir in dirs: # if isDepotPath: # dirName = dir['dir'][8:] # else: # dirName = dir['dir'] # tmp = { 'name' : os.path.basename(dirName), # 'path' : dir['dir'], # 'time' : '', # 'type' : 'Folder', # 'change': '' # result.append(tmp) # for fileItem in files: # if isDepotPath: # deleteTest = p4.run("filelog", "-t", fileItem['depotFile'] )[0] # isDeleted = deleteTest['action'][0] == "delete" # fileType = fileItem['type'] # if isDeleted: # fileType = "{0} [Deleted]".format(fileType) # # Remove //depot/ from the path for the 'pretty' name # tmp = { 'name' : os.path.basename( fileItem['depotFile'][8:] ), # 'path' : fileItem['depotFile'], # 'time' : epochToTimeStr( fileItem['time'] ) , # 'type' : fileType, # 'change': fileItem['change'] # result.append(tmp) # else: # deleteTest = p4.run("filelog", "-t", fileItem['clientFile'] )[0] # isDeleted = deleteTest['action'][0] == "delete" # fileType = fileItem['headType'] # if isDeleted: # fileType = "{0} [Deleted]".format(fileType) # tmp = { 'name' : os.path.basename( fileItem['clientFile'] ), # 'path' : fileItem['clientFile'], # 'time' : epochToTimeStr( fileItem['headModTime'] ) , # 'type' : fileType, # 'change': fileItem['headChange'] # result.append(tmp) # return sorted(result, key=lambda k: k['name'] ) # def perforceIsDir(p4path): # try: # if p4path[-1] == '/' or p4path[-1] == '\\': # p4path = p4path[:-1] # result = p4.run_dirs(p4path) # return len(result) > 0 # except P4Exception as e: # print e # return False # def p4Filelist(dir, findDeleted = False): # p4path = '/'.join( [dir, '*'] ) # try: # files = p4.run_filelog("-t", p4path) # except P4Exception as e: # print e # return [] # results = [] # for x in files: # latestRevision = x.revisions[0] # print latestRevision.action, latestRevision.depotFile # if not findDeleted and latestRevision.action == 'delete': # continue # else: # results.append( { 'name' : latestRevision.depotFile, # 'action' : latestRevision.action, # 'change' : latestRevision.change, # 'time': latestRevision.time, # 'type' : latestRevision.type # <API key> = p4.run_opened(p4path) # for x in <API key>: # print x # results.append( { 'name' : x['clientFile'], # 'action' : x['action'], # 'change' : x['change'], # 'time' : "", # 'type' : x['type'] # return results # class TreeModel(QtCore.QAbstractItemModel): # def __init__(self, parent=None): # super(TreeModel, self).__init__(parent) # self.rootItem = TreeItem(None) # self.showDeleted = False # def populate(self, rootdir = "//depot", findDeleted=False): # self.rootItem = TreeItem(None) # self.showDeleted = findDeleted # depotPath = False # if "depot" in rootdir: # depotPath = True # p4path = '/'.join( [rootdir, '*'] ) # if depotPath: # dirs = p4.run_dirs( p4path ) # else: # dirs = p4.run_dirs('-H', p4path ) # for dir in dirs: # dirName = os.path.basename(dir['dir']) # #subDir = '/'.join( [rootdir, dirName )] ) # data = [dirName , "Folder", "", "", ""] # treeItem = TreeItem(data, self.rootItem) # self.rootItem.appendChild(treeItem) # treeItem.appendChild(None) # files = p4Filelist(dir['dir'], findDeleted) # for f in files: # fileName = os.path.basename( f['name'] ) # data = [fileName, f['type'], f['time'], f['action'], f['change']] # fileItem = TreeItem(data, treeItem) # treeItem.appendChild(fileItem) # # def populate(self, rootdir): # # rootdir = rootdir.replace('\\', '/') # # print "Scanning subfolders in {0}...".format(rootdir) # # import maya.cmds as cmds # # cmds.refresh() # # def <API key>(root, treeItem): # # change = p4.run_opened() # # for item in perforceListDir(root): # # itemPath = "{0}/{1}".format(root, item['name'] ) # os.path.join(root, item) # # #print "{0}{1}{2}".format( "".join(["\t" for i in range(depth)]), '+' if perforceIsDir(itemPath) else '-', item['name'] ) # # data = [ item['name'], item['type'], item['time'], item['change'] ] # # childDir = TreeItem( data, treeItem) # # treeItem.appendChild( childDir ) # # tmpDir = TreeItem( [ "TMP", "", "", "" ], childDir ) # # childDir.appendChild( None ) # # #print itemPath, perforceIsDir( itemPath ) # # #if perforceIsDir( itemPath ): # # # <API key>(itemPath, childDir) # # def scanDirectory(root, treeItem): # # for item in os.listdir(root): # # itemPath = os.path.join(root, item) # # print "{0}{1}{2}".format( "".join(["\t" for i in range(depth)]), '+' if os.path.isdir(itemPath) else '-', item) # # childDir = TreeItem( [item], treeItem) # # treeItem.appendChild( childDir ) # # if os.path.isdir( itemPath ): # # scanDirectory(itemPath, childDir) # # <API key>(rootdir, self.rootItem ) # #print dirName # #directory = "{0}:{1}".format(i, os.path.basename(dirName)) # #childDir = TreeItem( [directory], self.rootItem) # #self.rootItem.appendChild( childDir ) # #for fname in fileList: # # childFile = TreeItem(fname, childDir) # # childDir.appendChild([childFile]) # # for i,c in enumerate("abcdefg"): # # child = TreeItem([i],self.rootItem) # # self.rootItem.appendChild(child) # def columnCount(self, parent): # return 5 # def data(self, index, role): # column = index.column() # if not index.isValid(): # return None # if role == QtCore.Qt.DisplayRole: # item = index.internalPointer() # return item.data[column] # elif role == QtCore.Qt.SizeHintRole: # return QtCore.QSize(20, 20) # elif role == QtCore.Qt.DecorationRole: # if column == 1: # itemType = index.internalPointer().data[column] # isDeleted = index.internalPointer().data[3] == 'delete' # if isDeleted: # return QtGui.QIcon( # r"/home/i7245143/src/MayaPerforce/Perforce/images/File0104.png" ) # if itemType == "Folder": # return QtGui.QIcon( r"/home/i7245143/src/MayaPerforce/Perforce/images/File0059.png" ) # elif "binary" in itemType: # return QtGui.QIcon( r"/home/i7245143/src/MayaPerforce/Perforce/images/File0315.png" ) # elif "text" in itemType: # return QtGui.QIcon( r"/home/i7245143/src/MayaPerforce/Perforce/images/File0027.png" ) # else: # return QtGui.QIcon( # r"/home/i7245143/src/MayaPerforce/Perforce/images/File0106.png" ) # #icon = QtGui.QFileIconProvider(QtGui.QFileIconProvider.Folder) # return icon # else: # return None # return None # def flags(self, index): # if not index.isValid(): # return QtCore.Qt.NoItemFlags # return QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable # def headerData(self, section, orientation, role): # if orientation == QtCore.Qt.Horizontal and role == QtCore.Qt.DisplayRole: # return ["Filename", "Type", "Modification Time", "Action", "Change"][section] # return None # def index(self, row, column, parent): # if not self.hasIndex(row, column, parent): # return QtCore.QModelIndex() # if not parent.isValid(): # parentItem = self.rootItem # else: # parentItem = parent.internalPointer() # childItem = parentItem.childItems[row] # if childItem: # return self.createIndex(row, column, childItem) # else: # return QtCore.QModelIndex() # def parent(self, index): # if not index.isValid(): # return QtCore.QModelIndex() # parentItem = index.internalPointer().parentItem # if parentItem == self.rootItem: # return QtCore.QModelIndex() # return self.createIndex(parentItem.row(), 0, parentItem) # def rootrowcount(self): # return len(self.rootItem.childItems) # def rowCount(self, parent): # if parent.column() > 0: # return 0 # if not parent.isValid(): # parentItem = self.rootItem # else: # parentItem = parent.internalPointer() # return len(parentItem.childItems) # # allFiles = p4.run_files("//depot/...") # # hiddenFiles = p4.run_files("//depot/.../.*") # # testData = [['assets', '.place-holder'], ['assets', 'heroTV', 'lookDev', 'heroTV_lookDev.ma'], ['assets', 'heroTV', 'lookDev', 'heroTv_lookdev.ma'], ['assets', 'heroTV', 'modelling', '.place-holder'], ['assets', 'heroTV', 'modelling', 'Old_TV.obj'], ['assets', 'heroTV', 'modelling', 'heroTv_wip.ma'], ['assets', 'heroTV', 'rigging', '.place-holder'], ['assets', 'heroTV', 'texturing', '.place-holder'], ['assets', 'heroTV', 'workspace.mel'], ['assets', 'lookDevSourceimages', 'Garage.EXR'], ['assets', 'lookDevSourceimages', 'UVtile.jpg'], ['assets', 'lookDevSourceimages', 'macbeth_background.jpg'], ['assets', 'lookDevTemplate.ma'], ['assets', 'previs_WIP.ma'], ['assets', 'previs_slapcomp_WIP.ma'], ['audio', '.place-holder'], ['finalEdit', 'delivery', '.place-holder'], ['finalEdit', 'projects', '.place-holder'], ['finalEdit', 'test'], ['finalEdit', 'test.ma'], ['shots', '.place-holder'], ['shots', 'space', 'space_sh_010', 'cg', 'maya', 'scenes', '<API key>.ma']] # # result = {} # # files = [ item['depotFile'][8:].split('/') for item in allFiles ] # # for item in files: # # print item # # from collections import defaultdict # # deepestIndex, deepestPath = max(enumerate(files), key = lambda tup: len(tup[1])) # try: # print p4 # except: # p4 = P4() # p4.user = "tminor" # p4.password = "contact_dev" # p4.port = "ssl:52.17.163.3:1666" # p4.connect() # p4.run_login() # reconnect() # # Iterate upwards until we have the full path to the node # def fullPath(idx): # result = [ idx ] # parent = idx.parent() # while True: # if not parent.isValid(): # break # result.append( parent ) # parent = parent.parent() # return list(reversed(result)) # def populateSubDir(idx, root = "//depot", findDeleted=False): # idxPathModel = fullPath(idx) # idxPathSubDirs = [ idxPath.data() for idxPath in idxPathModel ] # idxFullPath = os.path.join(*idxPathSubDirs) # if not idxFullPath: # idxFullPath = "." # children = [] # p4path = '/'.join( [root, idxFullPath, '*'] ) # depotPath = False # if "depot" in root: # depotPath = True # if depotPath: # p4subdirs = p4.run_dirs( p4path ) # else: # p4subdirs = p4.run_dirs('-H', p4path ) # p4subdir_names = [ child['dir'] for child in p4subdirs ] # treeItem = idx.internalPointer() # #print idx.child(0,0).data(), p4subidrs # if not idx.child(0,0).data() and p4subdirs: # # Pop empty "None" child # treeItem.popChild() # for p4child in p4subdir_names: # print p4child # data = [ os.path.basename(p4child), "Folder", "", "", "" ] # childData = TreeItem( data, treeItem ) # treeItem.appendChild(childData) # childData.appendChild(None) # files = p4Filelist(p4child, findDeleted) # for f in files: # fileName = os.path.basename( f['name'] ) # data = [fileName, f['type'], f['time'], f['action'], f['change']] # fileData = TreeItem(data, childData) # childData.appendChild(fileData) # def tmp(*args): # idx = args[0] # children = [] # i = 1 # while True: # child = idx.child(i, 0) # print i, child.data() # if not child.isValid(): # break # children.append(child) # i += 1 # populateSubDir(child, findDeleted=False) # return # treeItem = idx.internalPointer() # idxPathModel = fullPath(idx, model.showDeleted) # idxPathSubDirs = [ idxPath.data() for idxPath in idxPathModel ] # idxFullPath = os.path.join(*idxPathSubDirs) # pathDepth = len(idxPathSubDirs) # children = []
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><API key>: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.7.1+1 / <API key> - 8.9.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> <API key> <small> 8.9.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2020-03-02 21:28:58 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-03-02 21:28:58 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.11 <API key> of OCaml conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.7.1+1 Formal proof management system. num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.09.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.09.0 Official release 4.09.0 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/<API key>&quot; license: &quot;LGPL&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/ReflexiveFirstOrder&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.10~&quot;} ] tags: [ &quot;keyword: computationnal reflection&quot; &quot;keyword: interpretation&quot; &quot;keyword: first-order logic&quot; &quot;keyword: equational reasoning&quot; &quot;category: Miscellaneous/Coq Extensions&quot; &quot;date: 2005-05&quot; ] authors: [ &quot;Pierre Corbineau &lt;pierre.corbineau@lri.fr&gt; [http: ] bug-reports: &quot;https://github.com/coq-contribs/<API key>/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/<API key>.git&quot; synopsis: &quot;Reflexive first-order proof interpreter&quot; description: &quot;&quot;&quot; This contribution is a package which can be used to interpret firstorder proofs provided by an external theorem prover, using computationnal reflexion.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/<API key>/archive/v8.9.0.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action <API key>.8.9.0 coq.8.7.1+1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+1). The following dependencies couldn&#39;t be met: - <API key> -&gt; coq &gt;= 8.9 Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base <API key>.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
#include <chainparamsbase.h> #include <tinyformat.h> #include <util.h> #include <assert.h> #include <memory> const std::string CBaseChainParams::MAIN = "main"; const std::string CBaseChainParams::TESTNET = "test"; const std::string CBaseChainParams::REGTEST = "regtest"; void <API key>(std::string& strUsage, bool debugHelp) { strUsage += HelpMessageGroup(_("Chain selection options:")); strUsage += HelpMessageOpt("-testnet", _("Use the test chain")); if (debugHelp) { strUsage += HelpMessageOpt("-regtest", "Enter regression test mode, which uses a special chain in which blocks can be solved instantly. " "This is intended for regression testing tools and app development."); } } /** * Main network */ class CBaseMainParams : public CBaseChainParams { public: CBaseMainParams() { nRPCPort = 9902; } }; /** * Testnet (v3) */ class CBaseTestNetParams : public CBaseChainParams { public: CBaseTestNetParams() { nRPCPort = 9904; strDataDir = "testnet3"; } }; /* * Regression test */ class CBaseRegTestParams : public CBaseChainParams { public: CBaseRegTestParams() { nRPCPort = 18443; strDataDir = "regtest"; } }; static std::unique_ptr<CBaseChainParams> <API key>; const CBaseChainParams& BaseParams() { assert(<API key>); return *<API key>; } std::unique_ptr<CBaseChainParams> <API key>(const std::string& chain) { if (chain == CBaseChainParams::MAIN) return std::unique_ptr<CBaseChainParams>(new CBaseMainParams()); else if (chain == CBaseChainParams::TESTNET) return std::unique_ptr<CBaseChainParams>(new CBaseTestNetParams()); else if (chain == CBaseChainParams::REGTEST) return std::unique_ptr<CBaseChainParams>(new CBaseRegTestParams()); else throw std::runtime_error(strprintf("%s: Unknown chain %s.", __func__, chain)); } void SelectBaseParams(const std::string& chain) { <API key> = <API key>(chain); } std::string <API key>() { bool fRegTest = gArgs.GetBoolArg("-regtest", false); bool fTestNet = gArgs.GetBoolArg("-testnet", false); if (fTestNet && fRegTest) throw std::runtime_error("Invalid combination of -regtest and -testnet."); if (fRegTest) return CBaseChainParams::REGTEST; if (fTestNet) return CBaseChainParams::TESTNET; return CBaseChainParams::MAIN; }
<?php namespace Doctrine\Tests\DBAL\Logging; use Doctrine\DBAL\Logging\DebugStack; use Doctrine\Tests\DbalTestCase; class DebugStackTest extends DbalTestCase { /** @var DebugStack */ private $logger; protected function setUp() { $this->logger = new DebugStack(); } protected function tearDown() { unset($this->logger); } public function testLoggedQuery() { $this->logger->startQuery('SELECT column FROM table'); self::assertEquals( [ 1 => [ 'sql' => 'SELECT column FROM table', 'params' => null, 'types' => null, 'executionMS' => 0, ], ], $this->logger->queries ); $this->logger->stopQuery(); self::assertGreaterThan(0, $this->logger->queries[1]['executionMS']); } public function <API key>() { $this->logger->enabled = false; $this->logger->startQuery('SELECT column FROM table'); self::assertEquals([], $this->logger->queries); $this->logger->stopQuery(); self::assertEquals([], $this->logger->queries); } }
CREATE TABLE language( id INT(6) AUTO_INCREMENT PRIMARY KEY, name varchar(128), en varchar(128), alphaCode1 varchar(2), alphaCode2 varchar(3) );
'use strict'; const gulp = require('gulp'); const plumber = require('gulp-plumber'); const newer = require('gulp-newer'); const sourcemaps = require('gulp-sourcemaps'); const babel = require('gulp-babel'); const eslint = require('gulp-eslint'); const path = require('path'); const paths = { es6: 'es6*.js', es5: 'es5', sourceRoot: path.join(__dirname, 'es6'), // Must be absolute or relative to source map }; gulp.task('babel', () => gulp.src(paths.es6) .pipe(plumber()) .pipe(newer(paths.es5)) .pipe(sourcemaps.init()) .pipe(babel()) .pipe(sourcemaps.write('.', { sourceRoot: paths.sourceRoot })) .pipe(gulp.dest(paths.es5)) ); gulp.task('lint', () => gulp.src(['gulpfile.js', paths.es6]) .pipe(eslint()) .pipe(eslint.format()) ); gulp.task('watch', ['babel', 'lint'], () => { gulp.watch(paths.es6, ['babel']); gulp.watch(['gulpfile.js', paths.es6], ['lint']); }); gulp.task('default', ['babel', 'lint']);
<?php interface iBirthable { public function setBirthDate(string $birthDate); }
<?php /** * Contains set of static logging methods * Please, use ONLY following priorities: * - LOG_INFO * - LOG_WARNING * - LOG_DEBUG * - LOG_ERR * * @method static void debug(string $msg) * @method static void info(string $msg) * @method static void warning(string $msg) * @method static void err(string $msg) */ class Logger { /** * @var null|string */ private static $uid = null; public static $logIndex = LOG_LOCAL0; public static $label = ''; public static $timer = null; public static function log($priority, $message) { if(!self::$uid){ self::_init(); } syslog($priority, self::$label.$message); } /** * Write big message to local data logs folder, much slower than syslog * @param $priority * @param $message * @param string $section */ public static function file($priority, $message, $section='common') { // compose path $dirPath = LOGS_PATH.'/'.$section.'/'; $filePath = $dirPath.$section.'_'.date('Y_m_d').'.log'; // compose message $client = (isset($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : '(null)'; $priorityName = 'LOG_UNKNOWN'; switch($priority) { case LOG_DEBUG: $priorityName = 'LOG_DEBUG'; break; case LOG_INFO: $priorityName = 'LOG_INFO'; break; case LOG_WARNING: $priorityName = 'LOG_WARNING'; break; case LOG_ERR: $priorityName = 'LOG_ERR'; break; } // add text block wrapper for multi line output if(strpos($message,"\n")!==false) { $id = 'B'.date('Ymd_His').'_'.substr(microtime(),2,4); $message = '<<<'.$id."\n".$message."\n".$id."\n"; } $message = "[".date('Y-m-d H:i:s')."]\t$client\t$priorityName\t$message"; // write if(!is_dir($dirPath)) { umask(0); if(!mkdir($dirPath, 0777, true)) { Logger::log(LOG_ERR, "LOG\tCreate dir failed\t[$dirPath]"); error_log($message); return; } } error_log($message."\n", 3, $filePath); } /** * @static * @param $priority * @param $message * @return mixed */ public static function timer($priority, $message) { if(empty(self::$timer)) { self::$timer = microtime(1); self::log($priority, $message); return; } self::log($priority, sprintf("%0.4f\t",microtime(1)-self::$timer).$message); self::$timer = microtime(1); } /** * Logging initialization */ private static function _init() { if(!self::$uid){ self::$uid = uniqid(); } openlog(self::$uid, LOG_ODELAY, self::$logIndex); if(!defined('LOGS_PATH')) { define('LOGS_PATH','/var/log/sapzxc-logger.log'); } } /** * Shortcut for Logger::log(LOG_*, '') * @static * @param $name * @param $arguments */ public static function __callStatic($name, $arguments) { $level = 'LOG_'.strtoupper($name); if(defined($level)) { $msg = isset($arguments[1]) ? $arguments[1]."\t".$arguments[0] : $arguments[0]; self::log(constant($level), $msg); } } }
package br.com.swconsultoria.cte.dom.enuns; /** * @author Samuel Oliveira - samuk.exe@hotmail.com * Data: 02/03/2019 - 22:31 */ public enum EventosEnum { CANCELAMENTO("110111"), CCE("110110"), EPEC("110140"); private final String codigo; EventosEnum(String codigo) { this.codigo = codigo; } public String getCodigo() { return codigo; } }
{% extends "base.html" %} {% from "macros.html" import render_words %} {% block content %} {% include "words.html" %} {% endblock %}
/* global JSData:true, JSDataHttp:true, sinon:true, chai:true */ before(function () { var Test = this Test.TEST_FETCH = false Test.fail = function (msg) { if (msg instanceof Error) { console.log(msg.stack) } else { Test.assert.equal('should not reach this!: ' + msg, 'failure') } } Test.assert = chai.assert Test.assert.objectsEqual = function (a, b, m) { Test.assert.deepEqual(JSON.parse(JSON.stringify(a)), JSON.parse(JSON.stringify(b)), m || (JSON.stringify(a) + ' should be equal to ' + JSON.stringify(b))) } Test.sinon = sinon Test.JSData = JSData Test.addAction = JSDataHttp.addAction Test.addActions = JSDataHttp.addActions Test.HttpAdapter = JSDataHttp.HttpAdapter Test.store = new JSData.DataStore() Test.adapter = new Test.HttpAdapter() Test.store.registerAdapter('http', Test.adapter, { default: true }) Test.User = new JSData.Mapper({ name: 'user' }) Test.Post = new JSData.Mapper({ name: 'post', endpoint: 'posts', basePath: 'api' }) Test.User.registerAdapter('http', Test.adapter, { default: true }) Test.Post.registerAdapter('http', Test.adapter, { default: true }) console.log('Testing against js-data ' + JSData.version.full) }) beforeEach(function () { var Test = this Test.p1 = { author: 'John', age: 30, id: 5 } Test.p2 = { author: 'Sally', age: 31, id: 6 } Test.p3 = { author: 'Mike', age: 32, id: 7 } Test.p4 = { author: 'Adam', age: 33, id: 8 } Test.p5 = { author: 'Adam', age: 33, id: 9 } try { Test.xhr = Test.sinon.<API key>() // Create an array to store requests Test.requests = [] // Keep references to created requests Test.xhr.onCreate = function (xhr) { Test.requests.push(xhr) } } catch (err) { console.error(err) } }) afterEach(function () { var Test = this // Restore the global timer functions to their native implementations try { Test.xhr.restore() } catch (err) { console.error(err) } })
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { WelcomeComponent } from '../home/welcome.component'; // import { <API key> } from '../products/product-list.component'; // import { <API key> } from '../products/product-detail.component'; // import { ProductDetailGuard } from '../products/product-guard.service'; import { StoreListComponent } from '../stores/store-list.component'; const appRoutes: Routes = [ { path: 'welcome', component: WelcomeComponent }, { path: 'stores', component: StoreListComponent }, // { path: 'products', component: <API key> }, // { path: 'product/:id', // canActivate: [ ProductDetailGuard ], // component: <API key> }, // Default { path: '', redirectTo: 'welcome', pathMatch: 'full' }, // Wildcard { path: '**', redirectTo: 'welcome', pathMatch: 'full' } // , { useHash: true })] ]; @NgModule({ imports: [ RouterModule.forRoot(appRoutes) ], exports: [RouterModule] }) export class AppRoutingModule {}
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lc: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.12.2 / lc - 8.8.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> lc <small> 8.8.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-11-01 17:28:23 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-01 17:28:23 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.12.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/lc&quot; license: &quot;LGPL 2.1&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/lc&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9~&quot;} ] tags: [ &quot;keyword: modules&quot; &quot;keyword: monads&quot; &quot;keyword: category&quot; &quot;keyword: lambda calculus&quot; &quot;keyword: higher-order syntax&quot; &quot;category: Computer Science/Lambda Calculi&quot; &quot;date: 2006-01-12&quot; &quot;date: 2008-09-9&quot; ] authors: [ &quot;André Hirschowitz &lt;ah@math.unice.fr&gt; [http: bug-reports: &quot;https://github.com/coq-contribs/lc/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/lc.git&quot; synopsis: &quot;Modules over monads and lambda-calculi&quot; description: &quot;&quot;&quot; http: We define a notion of module over a monad and use it to propose a new definition (or semantics) for abstract syntax (with binding constructions). Using our notion of module, we build a category of `exponential&#39; monads, which can be understood as the category of lambda-calculi, and prove that it has an initial object (the pure untyped lambda-calculus).&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/lc/archive/v8.8.0.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-lc.8.8.0 coq.8.12.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.12.2). The following dependencies couldn&#39;t be met: - coq-lc -&gt; coq &lt; 8.9~ -&gt; ocaml &lt; 4.03.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-lc.8.8.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
#include "stdafx.h" #include "v8.h" #include "ObjectIMPL.h" #include "Types/Translate.h" #include "Private/Interfaces/CallbackInterfaces.h" using namespace Gneu::Interfaces; using namespace Gneu::Types; using namespace v8; extern Isolate *g_CurrentVM; extern Persistent<Context> g_GlobalContext; ObjectIMPL::ObjectIMPL(v8::Handle<v8::Value> _value) { persisted_value.Reset(g_CurrentVM, v8::Handle<v8::Object>::Cast(_value)); } ObjectIMPL::ObjectIMPL(char *name, void *reference) { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); v8::Local<v8::ObjectTemplate> objImpl = v8::ObjectTemplate::New(g_CurrentVM); objImpl-><API key>(1); v8::Local<v8::Object> obj = objImpl->NewInstance(); obj->SetInternalField(0, v8::External::New(g_CurrentVM, reference)); context->Global()->Set(v8::String::NewFromUtf8(g_CurrentVM, name), obj); persisted_value.Reset(g_CurrentVM, obj); } ObjectIMPL::ObjectIMPL() { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); persisted_value.Reset(g_CurrentVM, v8::Object::New(g_CurrentVM)); } bool ObjectIMPL::IsObject() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsObject(); } bool ObjectIMPL::IsFunction() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsFunction(); } bool ObjectIMPL::IsArray() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsArray(); } bool ObjectIMPL::IsBooleanObject() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsBooleanObject(); } bool ObjectIMPL::IsDate() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsDate(); } bool ObjectIMPL::IsPromise() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsPromise(); } bool ObjectIMPL::IsRegExp() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsRegExp(); } bool ObjectIMPL::IsNumberObject() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsNumberObject(); } bool ObjectIMPL::IsStringObject() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsStringObject(); } bool ObjectIMPL::IsSymbol() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Value> value = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return value->IsSymbol(); } Gneu::Types::Value *ObjectIMPL::Get(char *name) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); Local<v8::Value> result = obj->Get(v8::String::NewFromUtf8(g_CurrentVM, name)); return Types::Translate::ToFlathead(result); } bool ObjectIMPL::Set(char *key, char *value) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return obj->Set(v8::String::NewFromUtf8(g_CurrentVM, key), v8::String::NewFromUtf8(g_CurrentVM, value)); } bool ObjectIMPL::Set(char *key, double value) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return obj->Set(v8::String::NewFromUtf8(g_CurrentVM, key), v8::Number::New(g_CurrentVM, value)); } bool ObjectIMPL::Set(char *key, int value) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return obj->Set(v8::String::NewFromUtf8(g_CurrentVM, key), v8::Integer::New(g_CurrentVM, value)); } bool ObjectIMPL::Set(char *key, bool value) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); return obj->Set(v8::String::NewFromUtf8(g_CurrentVM, key), v8::Boolean::New(g_CurrentVM, value)); } bool ObjectIMPL::Set(char *key, VoidFunction cb) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); v8::Local<v8::FunctionTemplate> wrapper = v8::FunctionTemplate::New(g_CurrentVM, &CallbackInterfaces::VoidCallback, v8::External::New(g_CurrentVM, cb)); v8::Local<v8::Function> func = wrapper->GetFunction(); func->SetName(v8::String::NewFromUtf8(g_CurrentVM, key)); return obj->Set(func->GetName(), func); } bool ObjectIMPL::Set(char *key, IntFunction cb) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); v8::Local<v8::FunctionTemplate> wrapper = v8::FunctionTemplate::New(g_CurrentVM, &CallbackInterfaces::IntCallback, v8::External::New(g_CurrentVM, cb)); v8::Local<v8::Function> func = wrapper->GetFunction(); func->SetName(v8::String::NewFromUtf8(g_CurrentVM, key)); return obj->Set(func->GetName(), func); } bool ObjectIMPL::Set(char *key, BoolFunction cb) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); v8::Local<v8::FunctionTemplate> wrapper = v8::FunctionTemplate::New(g_CurrentVM, &CallbackInterfaces::BoolCallback, v8::External::New(g_CurrentVM, cb)); v8::Local<v8::Function> func = wrapper->GetFunction(); func->SetName(v8::String::NewFromUtf8(g_CurrentVM, key)); return obj->Set(func->GetName(), func); } bool ObjectIMPL::Set(char *key, DoubleFunction cb) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); v8::Local<v8::FunctionTemplate> wrapper = v8::FunctionTemplate::New(g_CurrentVM, &CallbackInterfaces::DoubleCallback, v8::External::New(g_CurrentVM, cb)); v8::Local<v8::Function> func = wrapper->GetFunction(); func->SetName(v8::String::NewFromUtf8(g_CurrentVM, key)); return obj->Set(func->GetName(), func); } bool ObjectIMPL::Set(char *key, FloatFunction cb) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); v8::Local<v8::FunctionTemplate> wrapper = v8::FunctionTemplate::New(g_CurrentVM, &CallbackInterfaces::FloatCallback, v8::External::New(g_CurrentVM, cb)); v8::Local<v8::Function> func = wrapper->GetFunction(); func->SetName(v8::String::NewFromUtf8(g_CurrentVM, key)); return obj->Set(func->GetName(), func); } bool ObjectIMPL::Set(char *key, VoidPFunction cb) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); v8::Local<v8::FunctionTemplate> wrapper = v8::FunctionTemplate::New(g_CurrentVM, &CallbackInterfaces::VoidPointerCallback, v8::External::New(g_CurrentVM, cb)); v8::Local<v8::Function> func = wrapper->GetFunction(); func->SetName(v8::String::NewFromUtf8(g_CurrentVM, key)); return obj->Set(func->GetName(), func); } bool ObjectIMPL::Set(char *key, StringFunction cb) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); v8::Local<v8::FunctionTemplate> wrapper = v8::FunctionTemplate::New(g_CurrentVM, &CallbackInterfaces::StringCallback, v8::External::New(g_CurrentVM, cb)); v8::Local<v8::Function> func = wrapper->GetFunction(); func->SetName(v8::String::NewFromUtf8(g_CurrentVM, key)); return obj->Set(func->GetName(), func); } bool ObjectIMPL::Set(char *key, WideStringFunction cb) const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); v8::Local<v8::FunctionTemplate> wrapper = v8::FunctionTemplate::New(g_CurrentVM, &CallbackInterfaces::WideStringCallback, v8::External::New(g_CurrentVM, cb)); v8::Local<v8::Function> func = wrapper->GetFunction(); func->SetName(v8::String::NewFromUtf8(g_CurrentVM, key)); return obj->Set(func->GetName(), func); } void *ObjectIMPL::GetReference() const { Isolate::Scope isolate_scope(g_CurrentVM); HandleScope handle_scope(g_CurrentVM); Local<Context> context = v8::Local<v8::Context>::New(g_CurrentVM, g_GlobalContext); Context::Scope context_scope(context); Local<v8::Object> obj = Handle<v8::Object>::New(g_CurrentVM, persisted_value); Local<External> external = Handle<External>::Cast(obj->GetInternalField(0)); if (external.IsEmpty() || external->IsNull() || external->IsUndefined()) { return NULL; } void *pElement = external->Value(); return external->Value(); }
// nav $(function() { $('.tab-nav li:first').addClass('current'); $('.tab-nav li').click(function(){ $(this).addClass('current').siblings('li').removeClass('current'); }) }); // tab $(function() { $('.zwtUp ul li').click(function(){ var num=$(this).index(); $(this).addClass('current').siblings('li').removeClass('current') $('.zwt1').eq(num).css('display', 'block').siblings('.zwt1').css('display', 'none'); }); }); $(function() { //$('.Group1 p:first').addClass('current'); $('.Group1 .topL').click(function(event) { $(this).addClass('current'); $('.Group1 .topR').removeClass('current'); $('.Group1 .topC').removeClass('current'); $('.ina1').show(); $('.ina2').hide(); $('.ina3').hide(); $('.Gt1').show(); $('.Gt2').hide(); $('.Gt3').hide(); $('.Gt1,.threeWeek').show(); $('.thwek1').show() $('.thwek2').hide() $('.thwek3').hide() }); $('.Group1 .topR').click(function(event) { $(this).addClass('current'); $('.Group1 .topL').removeClass('current'); $('.Group1 .topC').removeClass('current'); $('.ina2').show(); $('.ina1').hide(); $('.ina3').hide(); $('.Gt2').show(); $('.Gt1').hide(); $('.Gt3').hide(); $('.thwek2').show() $('.thwek1').hide() $('.thwek3').hide() }); $('.Group1 .topC').click(function(event) { $(this).addClass('current'); $('.Group1 .topL').removeClass('current'); $('.Group1 .topR').removeClass('current'); $('.thwek3').show() $('.thwek1').hide() $('.thwek2').hide() $('.Gt3').show(); $('.Gt1').hide(); $('.Gt2').hide(); $('.ina3').show(); $('.ina1').hide(); $('.ina2').hide(); }); }); $(function() { var num=0; function AgainstBTnLFn(){ num++; if (num>1) { num=1; // $('.GcenterBtn ul').css('left', 0); }; var myMove=num*-1118; $('.inbigBOX').stop().animate({'left':myMove}, 500); } function AgainstBTnRFn(){ num if (num<0) { num=0; // $('.GcenterBtn ul').css('left', 0); }; var myMove=num*-1118; $('.inbigBOX').stop().animate({'left':myMove}, 500); } $('.AgainstBTnL').click(AgainstBTnRFn) $('.AgainstBTnR').click(AgainstBTnLFn) }); // tab $(function() { $('.thwek1 li').click(function(){ var num=$(this).index(); //alert(num); $(this).addClass('current').siblings('li').removeClass('current') $('.GcenterBtn.mdlGcenterBtn ul').eq(num).addClass('cur').siblings('ul').removeClass('cur'); }); $('.thwek2 li').click(function(){ var num=$(this).index(); //alert(num); $(this).addClass('current').siblings('li').removeClass('current') $('.mdl-GC2 ul').eq(num).addClass('cur').siblings('ul').removeClass('cur'); }); }); $(function() { var MyLi=$('.GcenterBtn ul li').size(); var liWidth=$('.GcenterBtn ul li').width(); var AllLiWidth=MyLi*(liWidth+32); //margin $('.GcenterBtn ul').css('width', AllLiWidth); var num=1; function GleftBtnFn(){ var s=Math.ceil(AllLiWidth/928); num++; if (num>=s) { num=s-1; //$('.GcenterBtn ul').css('left', 0); }; var myMove=num*-928; $('.GcenterBtn ul').stop().animate({'left':myMove}, 500); } function GrightBtnFn(){ num if (num<0) { num=0; //$('.GcenterBtn ul').css('left', 0); }; var myMove=num*-928; $('.GcenterBtn ul').stop().animate({'left':myMove}, 500); } $('.GleftBtn').click(GrightBtnFn) $('.GrightBtn').click(GleftBtnFn) }); $(function() { var MyLi=$('.GC2 ul li').size(); var liWidth=$('.GC2 ul li').width(); var AllLiWidth=MyLi*(liWidth+32); //margin $('.GC2 ul').css('width', AllLiWidth); var num=1; function Gt2LeftBtnFn(){ var s=Math.ceil(AllLiWidth/928); num++; if (num>=s) { num=s-1; //$('.GcenterBtn ul').css('left', 0); }; var myMove=num*-928; $('.GC2 ul').stop().animate({'left':myMove}, 500); } function Gt2RightBtnFn(){ num if (num<0) { num=0; //$('.GcenterBtn ul').css('left', 0); }; var myMove=num*-928; $('.GC2 ul').stop().animate({'left':myMove}, 500); } $('.Gt2LeftBtn').click(Gt2RightBtnFn) $('.Gt2RightBtn').click(Gt2LeftBtnFn) }); $(function() { var MyLi=$('.GC3 ul li').size(); var liWidth=$('.GC3 ul li').width(); var AllLiWidth=MyLi*(liWidth+32); //margin $('.GC3 ul').css('width', AllLiWidth); var num=1; function Gt3LeftBtnFn(){ var s=Math.ceil(AllLiWidth/928); num++; if (num>=s) { num=s-1; //$('.GcenterBtn ul').css('left', 0); }; var myMove=num*-928; $('.GC3 ul').stop().animate({'left':myMove}, 500); } function Gt3RightBtnFn(){ num if (num<0) { num=0; //$('.GcenterBtn ul').css('left', 0); }; var myMove=num*-928; $('.GC3 ul').stop().animate({'left':myMove}, 500); } $('.Gt3LeftBtn').click(Gt3RightBtnFn) $('.Gt3RightBtn').click(Gt3LeftBtnFn) }); // hover $(function() { $('.GcenterBtn .down a').hover(function() { $(this).css('backgroundColor', '#d94926'); }, function() { $(this).css('backgroundColor', '#da8a50'); }); }); // tab $(function() { $('.weks li').click(function(){ var num=$(this).index(); //alert(num); $(this).addClass('current').siblings('li').removeClass('current') $('.overF').eq(num).addClass('current').siblings('.overF').removeClass('current'); }) /* $('.weks li').hover(function() { $(this).addClass('current').siblings().removeClass('current') }, function() { $(this).addClass('current').siblings().removeClass('current') });*/ }); // Tab $(function() { $('#weeks li').click(function(){ var num=$(this).index(); $(this).addClass('on').siblings().removeClass('on') $('.week-1').eq(num).css('display', 'block').siblings('.week-1').css('display', 'none'); }); }); $(function(){ var dianKey=0; var imgKey=0; //div var len = $('.video_content .current .video_list li').length; var wid = $('.video_content .current .video_list li').eq(0).width(); var scrollWidth = wid -$('.scrolle_pro').width(); var wi =len+1; $('.video_content .current .video_list' ).width(wi*wid) function nextFn(){ imgKey++; if(imgKey>=len-1){ imgKey=len-1; //00-400px // $('.video_list').css('left', 0); $('.right_btn').css('cursor', 'default'); }else{ $('.right_btn').css('cursor', 'pointer'); $('.left_btn').css('cursor', 'pointer'); } var s=imgKey*-969; var w =(imgKey)*scrollWidth/(len-1); // imgkey/len-1 lliul left $('.video_list').stop().animate({'left':s}, 500); $('.scrolle_pro').stop().animate({'left':w}, 500); } function prevFn(){ imgKey if(imgKey<=0){ imgKey=0; //400PX-1600PX-1400PX // $('.video_list').css('left', -2970); $('.left_btn').css('cursor', 'default'); }else{ $('.left_btn').css('cursor', 'pointer'); $('.right_btn').css('cursor', 'pointer'); } var s=imgKey*-969; var w =(imgKey)*869/(len-1); $('.video_list').stop().animate({'left':s}, 500); $('.scrolle_pro').stop().animate({'left':w}, 500); } $('.right_btn').click(nextFn); $('.left_btn').click(prevFn); }); $(function() { var num=0; var imgKey=0; function nextFn(){ num++; if (num>7) { num=1; $('#tanC .tanCent ul').css('left', 0); }; var myMove=num*-970; $('#tanC .tanCent ul').stop().animate({'left':myMove}, 500); event.stopPropagation(); } function prevFn(){ num if (num<0) { num=6; $('#tanC .tanCent ul').css('left', -6790); }; var myMove=num*-970; $('#tanC .tanCent ul').stop().animate({'left':myMove}, 500); event.stopPropagation(); } $('#tanC .tanCbtnL').click(prevFn) $('#tanC .tanCbtnR').click(nextFn) $('#img_list .tujiAll .img').click(function(event) { var i=$(this).index(); num=i; var s=i*-970; $('#tanC').css('display', 'block'); $('#tanC .tanCent ul').css('left', s); event.stopPropagation(); }); $('#img_list .tujiAll .img').hover(function() { $(this).find('span').css('display', 'block'); }, function() { $(this).find('span').css('display', 'none'); }); $(document).click(function() { if (!$('#tanC').is(':hidden')) { $('#tanC').hide(); }; }); }); $(function() { var num=0; var leftFn=function(){ num++; if (num>2) { num=2; }; var myMove=num*-875; $('.jszrCent ul').stop().animate({'left':myMove}, 1000); }; var rightFn=function(){ num if (num<0) { num=0;} var myMove=num*-875; $('.jszrCent ul').stop().animate({'left':myMove}, 1000); }; $('#jszrBtnL').click(rightFn); $('#jszrBtnR').click(leftFn); });
#include <stdarg.h> #include "log.h" #include "mem.h" #include "constants.h" #include "async.h" static ucontext_t main_cxt; static struct async_cxt* call_cxt = NULL; static int yield_ret = 0; void async_init(struct async_cxt* cxt) { cxt->stat = ASYNC_INIT; cxt->yield_type = -1; cxt->yield_data = NULL; getcontext(&cxt->uc); cxt->uc.uc_stack.ss_sp = mem_alloc(ASYNC_STACK_SIZE); cxt->uc.uc_stack.ss_size = ASYNC_STACK_SIZE; cxt->uc.uc_link = &main_cxt; } void async_done(void* p) { struct async_cxt* cxt = (struct async_cxt*) p; mem_free(cxt->uc.uc_stack.ss_sp); } void async_call(struct async_cxt* cxt, void (*func)(void), int argc, ...) { if (cxt->stat != ASYNC_INIT) return; // Well.. These code doesn't work. DONT USE ASYNC_CALL va_list args; va_start(args, argc); makecontext(&cxt->uc, func, argc, args); va_end(args); cxt->stat = ASYNC_PAUSE; async_resume(cxt, 0); } int async_yield(int data_type, void* data) { call_cxt->stat = ASYNC_PAUSE; call_cxt->yield_type = data_type; call_cxt->yield_data = data; PLOGD("Trying to switch back"); swapcontext(&call_cxt->uc, &main_cxt); return yield_ret; } void async_resume(struct async_cxt* cxt, int retval) { if (cxt->stat != ASYNC_PAUSE) return; getcontext(&main_cxt); call_cxt = cxt; cxt->stat = ASYNC_RUNNING; cxt->yield_type = YIELD_NONE; cxt->yield_data = NULL; yield_ret = retval; swapcontext(&main_cxt, &cxt->uc); if (cxt->stat == ASYNC_RUNNING) cxt->stat = ASYNC_FINISH; call_cxt = NULL; }
<?php namespace Test\Phpatterns\Structural\Proxy; use Phpatterns\Structural\Proxy; class ProxyTest extends \<API key> { /** @var Proxy\WifiNetworkProxy */ private $wifiNetworkProxy; /** @var Proxy\WifiNetwork */ private $wifiNetwork; protected function setUp() { $this->wifiNetworkProxy = new Proxy\WifiNetworkProxy("My Company Name Network"); $this->wifiNetwork = new Proxy\WifiNetwork("My Company Name Network"); } public function <API key>() { $this->assertInstanceOf(Proxy\<API key>::class, $this->wifiNetworkProxy); $this->assertInstanceOf(Proxy\<API key>::class, $this->wifiNetwork); } public function <API key>() { $userLowLevel = new Proxy\Employee('John', 'Doe', Proxy\Employee::ACCESS_LEVEL_LOW); $this->assertFalse($this->wifiNetworkProxy->grantAccess($userLowLevel)); $userHighLevel = new Proxy\Employee('Jason', 'Statham', Proxy\Employee::ACCESS_LEVEL_HIGH); $this->assertTrue($this->wifiNetworkProxy->grantAccess($userHighLevel)); } public function <API key>() { $userLowLevel = new Proxy\Employee('Halle', 'Berry', Proxy\Employee::ACCESS_LEVEL_LOW); $this->assertTrue($this->wifiNetwork->grantAccess($userLowLevel)); $userHighLevel = new Proxy\Employee('Jennifer', 'Lawrence', Proxy\Employee::ACCESS_LEVEL_HIGH); $this->assertTrue($this->wifiNetwork->grantAccess($userHighLevel)); } }
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.DependencyInjection; using System.Diagnostics.CodeAnalysis; namespace Datasync.Common.Test.Service { <summary> A test host creator for live tests against an in-memory service. </summary> [<API key>(Justification = "Test suite")] internal static class MovieApiServer { <summary> Creates a test service. </summary> internal static TestServer CreateTestServer() { var builder = new WebHostBuilder() .UseEnvironment("Test") .UseContentRoot(System.AppContext.BaseDirectory) .UseStartup<MovieApiStartup>(); var server = new TestServer(builder); // Initialize the database using var scope = server.Services.CreateScope(); var context = scope.ServiceProvider.GetRequiredService<MovieDbContext>(); context.InitializeDatabase(); return server; } } }
using System; using System.Linq; using System.Transactions; using DevBridge.Templates.WebProject.Data; using DevBridge.Templates.WebProject.Data.DataContext; using DevBridge.Templates.WebProject.DataContracts; using DevBridge.Templates.WebProject.DataEntities.Entities; using DevBridge.Templates.WebProject.DataEntities.Enums; using DevBridge.Templates.WebProject.Tests.TestHelpers; using NUnit.Framework; namespace DevBridge.Templates.WebProject.Tests.DataContracts { [TestFixture] public class <API key> { [Test] public void <API key>() { string test_name = Guid.NewGuid().ToString(); using (IUnitOfWork unitOfWork = new UnitOfWork(Singleton.<API key>)) { ICustomerRepository customerRepository = new CustomerRepository(unitOfWork); var customer = customerRepository.AsQueryable(f => f.Name == test_name).FirstOrDefault(); Assert.IsNull(customer); } using (new TransactionScope(<API key>.Required)) { using (IUnitOfWork unitOfWork = new UnitOfWork(Singleton.<API key>)) { unitOfWork.BeginTransaction(); ICustomerRepository customerRepository = new CustomerRepository(unitOfWork); customerRepository.Save( new Customer { Code = "test_code", Name = test_name, Type = CustomerType.LoyalCustomers, CreatedOn = DateTime.Now, DeletedOn = null }); unitOfWork.Commit(); } using (IUnitOfWork unitOfWork = new UnitOfWork(Singleton.<API key>)) { unitOfWork.BeginTransaction(); ICustomerRepository customerRepository = new CustomerRepository(unitOfWork); var customer = customerRepository.AsQueryable(f => f.Name == test_name).FirstOrDefault(); Assert.IsNotNull(customer); unitOfWork.Commit(); } } } } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>io-hello-world: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.14.1 / io-hello-world - 1.2.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> io-hello-world <small> 1.2.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-02-20 11:08:53 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-20 11:08:53 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 4 Virtual package relying on a GMP lib system installation coq 8.14.1 Formal proof management system dune 2.9.3 Fast, portable, and opinionated build system ocaml 4.13.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.13.1 Official release 4.13.1 ocaml-config 2 OCaml Switch Configuration <API key> 1 Ensure that OCaml is compiled with no special options enabled ocamlfind 1.9.3 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;dev@clarus.me&quot; homepage: &quot;https://github.com/clarus/coq-hello-world&quot; dev-repo: &quot;git+https://github.com/clarus/coq-hello-world.git&quot; bug-reports: &quot;https://github.com/clarus/coq-hello-world/issues&quot; authors: [&quot;Guillaume Claret&quot;] license: &quot;MIT&quot; build: [ [&quot;./configure.sh&quot;] [make &quot;-j%{jobs}%&quot;] [make &quot;-C&quot; &quot;extraction&quot;] ] install: [ [&quot;install&quot; &quot;-T&quot; &quot;extraction/main.native&quot; &quot;%{bin}%/helloWorld&quot;] ] depends: [ &quot;coq&quot; {build} &quot;coq-io&quot; {&gt;= &quot;4.0.0&quot; &amp; build} &quot;coq-io-system&quot; {build} &quot;coq-io-system-ocaml&quot; {&gt;= &quot;2.3.0&quot;} ] tags: [ &quot;date:2019-07-30&quot; &quot;keyword:effects&quot; &quot;keyword:extraction&quot; ] synopsis: &quot;A Hello World program in Coq&quot; url { src: &quot;https://github.com/coq-io/hello-world/archive/1.2.0.tar.gz&quot; checksum: &quot;sha512=00f1beee8dbb62b6b619d9942f6701ef557ce3de3568f324103c1073968a3f07b7d5fa797e9ca955ec7d7ac36db5e039ef29c5666bfa4a5fe755b03615dface1&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-io-hello-world.1.2.0 coq.8.14.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.14.1). The following dependencies couldn&#39;t be met: - coq-io-hello-world -&gt; coq-io-system-ocaml &gt;= 2.3.0 -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) - coq-io-hello-world -&gt; coq-io-system-ocaml &gt;= 2.3.0 -&gt; lwt &lt; 5 -&gt; ocaml &lt; 4.12 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-io-hello-world.1.2.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><API key>: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.4.6~camlp4 / <API key> - 1.0.2</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> <API key> <small> 1.0.2 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-11-26 10:22:40 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-26 10:22:40 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler base-threads base base-unix base camlp4 4.02+7 Camlp4 is a system for writing extensible parsers for programming languages conf-findutils 1 Virtual package relying on findutils conf-which 1 Virtual package relying on which coq 8.4.6~camlp4 Formal proof management system. num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.02.3 The OCaml compiler (virtual package) ocaml-base-compiler 4.02.3 Official 4.02.3 release ocaml-config 1 OCaml Switch Configuration ocamlbuild 0 Build system distributed with the OCaml compiler since OCaml 3.10.0 # opam file: opam-version: &quot;2.0&quot; name: &quot;<API key>&quot; maintainer: &quot;Mathematical Components &lt;mathcomp-dev@sympa.inria.fr&gt;&quot; homepage: &quot;https://github.com/math-comp/real-closed&quot; bug-reports: &quot;https://github.com/math-comp/real-closed/issues&quot; dev-repo: &quot;git+https://github.com/math-comp/real-closed.git&quot; license: &quot;CeCILL-B&quot; build: [ make &quot;-j&quot; &quot;%{jobs}%&quot; ] install: [ make &quot;install&quot; ] depends: [ &quot;coq-mathcomp-field&quot; { (&gt;= &quot;1.8.0&quot; &amp; &lt; &quot;1.9.0&quot;) } &quot;<API key>&quot; {(&gt;= &quot;1.0.0&quot; &amp; &lt; &quot;1.1.0~&quot;)} ] tags: [ &quot;keyword:real closed field&quot; &quot;keyword:small scale reflection&quot; &quot;keyword:mathematical components&quot; &quot;date:2019-05-23&quot; &quot;logpath:mathcomp&quot;] authors: [ &quot;Cyril Cohen &lt;&gt;&quot; &quot;Assia Mahboubi &lt;&gt;&quot; ] synopsis: &quot;Mathematical Components Library on real closed fields&quot; description: &quot;&quot;&quot; This library contains definitions and theorems about real closed fields, with a construction of the real closure and the algebraic closure (including a proof of the fundamental theorem of algebra). It also contains a proof of decidability of the first order theory of real closed field, through quantifier elimination. &quot;&quot;&quot; url { src: &quot;https://github.com/math-comp/real-closed/archive/1.0.2.tar.gz&quot; checksum: &quot;sha256=<SHA256-like>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action <API key>.1.0.2 coq.8.4.6~camlp4</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.4.6~camlp4). The following dependencies couldn&#39;t be met: - <API key> -&gt; <API key> -&gt; <API key> &gt;= dev -&gt; coq != 8.4.6~camlp4 -&gt; ocaml (&lt; 4.02.0 | &gt;= 4.05.0) base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base <API key>.1.0.2</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
/* * What follows is the result of much research on cross-browser styling. * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, * Kroc Camen, and the H5BP dev community and team. */ html { color: #222; font-size: 1em; line-height: 1.4; } ::-moz-selection { background: #b3d4fc; text-shadow: none; } ::selection { background: #b3d4fc; text-shadow: none; } /* * A better looking default horizontal rule */ hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; } audio, canvas, iframe, img, svg, video { vertical-align: middle; } /* * Remove default fieldset styles. */ fieldset { border: 0; margin: 0; padding: 0; } /* * Allow only vertical resizing of textareas. */ textarea { resize: vertical; } .browserupgrade { margin: 0.2em 0; background: #ccc; color: #000; padding: 0.2em 0; } /* * Hide visually and from screen readers */ .hidden { display: none !important; } .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; } /* * Hide visually and from screen readers, but maintain layout */ .invisible { visibility: hidden; } /* * Clearfix: contain floats * * For modern browsers * 1. The space content is one way to avoid an Opera bug when the * `contenteditable` attribute is included anywhere else in the document. * Otherwise it causes space to appear at the top and bottom of elements * that receive the `clearfix` class. * 2. The use of `table` rather than `block` is only necessary if using * `:before` to contain the top-margins of child elements. */ .clearfix:before, .clearfix:after { content: " "; display: table; } .clearfix:after { clear: both; } @media only screen and (min-width: 35em) { /* Style adjustments for viewports that meet the condition */ } @media print, (-<API key>: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) { /* Style adjustments for high resolution devices */ } @media print { *, *:before, *:after, *:first-letter, *:first-line { background: transparent !important; box-shadow: none !important; text-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } /* * Don't show links that are fragment identifiers, * or use the `javascript:` pseudo protocol */ a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } } div#background{ background-color: red; height: 523px; margin: 10px auto; padding: 1px; width: 522px; } div#background div#inner-background{ background-color: #eee; border-radius: 12px; height: 100%; width: 100%; } div#tile{ border-radius: 12px; background-color: black; } .error{ color:red; } .tileL { background-color: #fff; border-radius: 12px; float: left; height: 96%; margin: 1%; width: 48% !important; } .tileR { background-color: #fff; border-radius: 12px; float: right; height: 96%; margin: 1%; width: 48% !important; } div#topRow{ height: 49%; padding: 5px 5px 0 5px; } div#bottomRow{ height: 49%; padding: 0px 5px 5px 5px;; } #mainContainer{ width:100%; margin:0; padding:0; } #centralContainer{ margin:10px auto; width:70%; } header{ height:80px; background-color: #222; } header p { color: #efefef; display: block; height: 100%; margin: auto 10px; padding: 3%; text-align: center; vertical-align: middle !important; font-weight: 700; } #tdDownLeft,#tdDownRight,#tdUpLeft,#tdUpRight{ width:50%; } .no-js { } #rowItem { list-style-type: none; margin: 0; padding: 0; width: 100%; } #listItem { display: inline-block !important; padding: 1%; width: 30%; } table tr td { vertical-align: top; border-collapse: separate; } .tile{ } .tile2{ background-color: #000; margin: 10%; height:100%; width:100%; position: relative; top:0; left:0; display: block; } .row{ width: 100%; } div#screen{ height: 96.6%; padding: 10px; } .button{ display: block; } #tbl2 { border-collapse: separate; border-spacing: 10px; height: 100%; width: 100%; } #result{ text-align: center; font-weight: 700; }
#!/usr/bin/python3 """ FileStats object, abstraction to take in HTML and spit out all the stats and stuff that we want. ALso has a handy function for returning a tuple for instertion into SQL databases. @author mgmcgove """ import os import get_tags as gt import stats_lib import url_validator as url_lib from make_hash import make_hash import json def <API key>(st): st = " ".join(st.split()) #get rid of duplicate spaces and other shit. return st class FileStats(): """ Container for stats we gather on each file. """ def __init__(self, site_url, html): language_table = stats_lib.<API key>() tags = gt.get_tags(html) self.url = site_url self.title = gt.get_title( tags ) self.outgoing_links = gt.get_links(site_url, tags) self.outgoing_link_count = len( self.outgoing_links ) self.scripts = gt.get_scripts(tags) self.number_of_scripts = len(self.scripts) self.langs = dict() self.hash = make_hash(site_url) self.alphabets_on_site = [] for script in tags(['script', 'style']): script.extract() self.body = <API key>( tags.getText() ) text = self.body #print( text) for ch in text: lang = stats_lib.<API key>( ch, language_table ) #print( ch , lang ) if lang in self.langs: self.langs[lang] += 1 else: self.langs[lang] = 1 for key in self.langs: if self.langs[key] > len(text)/70 and key not in self.alphabets_on_site: self.alphabets_on_site.append(key) self.n_grams = stats_lib.count_n_grams( self.body, 5 ) self.symbol_freq = stats_lib.<API key>( self.body ) self.symbol_entropy = stats_lib.<API key>( self.symbol_freq ) self.raw_html = html def write_out_links(self, link_filename): ##this is a dumb way to do this too. ##well now we're not using it. Don't be so negative, past matthew. links_seen = [] with open(link_filename, 'a') as linkfile: for link in self.outgoing_links: if link and link not in links_seen: links_seen.append(link) linkfile.write(link + '\n') def print_all_stats(self): print( "Title:", self.title ) print( self.outgoing_link_count, self.number_of_scripts , self.outgoing_links[:2] ) print( self.alphabets_on_site ) print(" print( self.body[:100] ) def <API key>( self, urls ): #table_columns:hash,url,title,body_text,n_incoming_links,n_outgoing_links,links,visited_links_bool, n_grams_json, symbol_freq_json, symbol_entropy,html deduped_links = list(set(self.outgoing_links)) for url in urls: if url in deduped_links: #print( "removing",url ) deduped_links.remove(url) else: #print("%s wasn't in the set of links"%url) pass values = [self.hash, self.url, self.title, self.body, 0, self.outgoing_link_count, deduped_links, 0 , json.dumps(self.n_grams, sort_keys=True), json.dumps(self.symbol_freq, sort_keys=True), self.symbol_entropy, <API key>(self.raw_html) ] return values
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><API key>: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.13.0 / <API key> - 1.5.2</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> <API key> <small> 1.5.2 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-12-19 20:43:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-19 20:43:27 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq 8.13.0 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.10.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.10.2 Official release 4.10.2 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;pierre-yves@strub.nu&quot; homepage: &quot;https://github.com/math-comp/multinomials&quot; bug-reports: &quot;https://github.com/math-comp/multinomials/issues&quot; dev-repo: &quot;git+https://github.com/math-comp/multinomials.git&quot; license: &quot;CECILL-B&quot; authors: [&quot;Pierre-Yves Strub&quot;] build: [ [make &quot;INSTMODE=global&quot; &quot;config&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] depends: [ &quot;coq&quot; {(&gt;= &quot;8.7&quot; &amp; &lt; &quot;8.13~&quot;) | (= &quot;dev&quot;)} &quot;<API key>&quot; {(&gt;= &quot;1.11.0&quot; &amp; &lt; &quot;1.12~&quot;)} &quot;<API key>&quot; &quot;<API key>&quot; {&gt;= &quot;1.0.0&quot; &amp; &lt; &quot;1.1~&quot;} &quot;coq-mathcomp-finmap&quot; {&gt;= &quot;1.5&quot; &amp; &lt; &quot;1.6~&quot;} ] tags: [ &quot;keyword:multinomials&quot; &quot;keyword:monoid algebra&quot; &quot;category:Math/Algebra/Multinomials&quot; &quot;category:Math/Algebra/Monoid algebra&quot; &quot;date:2020-06-11&quot; &quot;logpath:SsrMultinomials&quot; ] synopsis: &quot;A Multivariate polynomial Library for the Mathematical Components Library&quot; url { src: &quot;https://github.com/math-comp/multinomials/archive/1.5.2.tar.gz&quot; checksum: &quot;sha512=a4b9feba43fc16f3b4379970bd5309431f7e05a4c95e2a2545db776863ea24dfdc6f15c866b11e17fca94d598da21db06964381c826f226a6debb41fbbac1c1e&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action <API key>.1.5.2 coq.8.13.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.13.0). The following dependencies couldn&#39;t be met: - <API key> -&gt; coq (&lt; 8.13~ &amp; = dev) -&gt; ocaml &lt; 4.10 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base <API key>.1.5.2</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
#include <eos/eoslib/<API key>.hpp> #include <eos/types/abi_constructor.hpp> #include <eos/types/abi.hpp> #include <eos/types/types_constructor.hpp> #include <eos/types/types_manager.hpp> #include <eos/eoslib/full_types_manager.hpp> #include <eos/types/reflect.hpp> #include <eos/eoslib/type_traits.hpp> #include <iostream> #include <iterator> #include <string> using std::vector; using std::array; using std::string; using eoslib::enable_if; using eos::types::Vector; using eos::types::Array; template<typename T> inline typename enable_if<eos::types::reflector<T>::is_struct::value, eos::types::type_id::index_t>::type get_struct_index(const eos::types::full_types_manager& ftm) { return ftm.get_struct_index(eos::types::reflector<T>::name()); } struct type1 { uint32_t a; uint64_t b; Vector<uint8_t> c; Vector<type1> v; }; struct type2 : public type1 { int16_t d; Array<type1, 2> arr; string name; }; struct type3 { uint64_t x; uint32_t y; }; <API key>( type1, (a)(b)(c)(v), ((c, asc))((a, desc)) ) // struct name, struct fields, sequence of pairs for sorted fields (field name, asc/desc) where asc = ascending order and desc = descending order. <API key>( type2, type1, (d)(arr)(name), ((d, desc))((type1, asc)) ) // struct name, base name, struct fields, sequence of pairs for sorted members (as described above), however notice the base type name can also be included as member <API key>( type3, (x)(y), ((x, asc))((y, asc)) ) <API key>( type1, ((uint32_t, nu_asc, ({0}) ))((type3, u_desc, ({1,0}) )) ) // object, sequence of index tuples: ((key_type, index_type, (mapping) )) where: mapping is a list (in curly brackets) of uint16_t member indices // which map the key_type's sort members (specified in that order) to the object type's members, // and index_type = { u_asc, // unique index sorted according to key_type in ascending order // u_desc, // unique index sorted according to key_type in descending order // nu_asc, // non-unique index sorted according to key_type in ascending order // nu_desc // non-unique index sorted according to key_type in descending order struct <API key>; <API key>( <API key>, (type1), (type2) ) // name, tables, other structs // By registering the table for type1, it automatically registers type1 (since it is the object type of the table) and type3 (since it is the key type of one of the indices of the table). // However, type2 is not discovered from the table of type1, so it needs to be explicitly registered through specifying it within the other structs arguments to the macro. struct abi_reflection; <API key>( abi_reflection, BOOST_PP_SEQ_NIL, (eos::types::ABI) ) int main() { using namespace eos::types; using std::cout; using std::endl; auto abi_ac = types_initializer<abi_reflection>::init(); types_constructor abi_tc(abi_ac.get_abi()); auto abi_types_managers = abi_tc.<API key>(); const auto& abi_tm = abi_types_managers.second; auto abi_tid = type_id::make_struct(get_struct_index<ABI>(abi_tm)); <API key> abi_serializer(abi_tm); vector<type_id::index_t> abi_structs = { abi_tid.get_type_index(), get_struct_index<ABI::type_definition>(abi_tm), get_struct_index<ABI::struct_t>(abi_tm), get_struct_index<ABI::table_index>(abi_tm), get_struct_index<ABI::table>(abi_tm) }; for( auto indx : abi_structs ) { abi_tm.print_type(cout, type_id::make_struct(indx)); cout << "Members:" << endl; for( auto f : abi_tm.get_all_members(indx) ) cout << f << endl; cout << endl; } auto ac = types_initializer<<API key>>::init(); abi_serializer.write_type(ac.get_abi(), abi_tid); cout << "Raw data of serialization of abi:" << endl; cout << abi_serializer.get_raw_region() << endl; ABI abi; abi_serializer.read_type(abi, abi_tid); types_constructor tc(abi); auto types_managers = tc.<API key>(); const auto& tm = types_managers.first; const auto& ftm = types_managers.second; <API key> r(ftm); auto print_type_info = [&](type_id tid) { auto index = tid.get_type_index(); cout << ftm.get_struct_name(index) << " (index = " << index << "):" << endl; auto sa = ftm.get_size_align(tid); ftm.print_type(cout, tid); cout << "Size: " << sa.get_size() << endl; cout << "Alignment: " << (int) sa.get_align() << endl; cout << "Sorted members (in sort priority order):" << endl; for( auto f : ftm.get_sorted_members(index) ) cout << f << endl; }; auto type1_tid = type_id::make_struct(get_struct_index<type1>(ftm)); print_type_info(type1_tid); cout << endl; auto type2_tid = type_id::make_struct(get_struct_index<type2>(ftm)); print_type_info(type2_tid); cout << endl; auto type3_tid = type_id::make_struct(get_struct_index<type3>(ftm)); print_type_info(type3_tid); cout << endl; type1 s1{ .a = 8, .b = 9, .c = {1, 2, 3, 4, 5, 6} }; type2 s2; s2.a = 42; s2.b = 43; s2.d = -1; s2.arr[0] = s1; s2.arr[1].a = 1; s2.arr[1].b = 2; s2.arr[1].c.push_back(1); s2.arr[1].c.push_back(2); s2.name = "Hello, World!"; r.write_type(s1, type1_tid); cout << "Raw data of serialization of s1:" << endl << r.get_raw_region(); std::ostream_iterator<uint32_t> oi(cout, ", "); cout << "Reading back struct from raw data." << endl; type1 s3; r.read_type(s3, type1_tid); cout << "a = " << s3.a << ", b = " << s3.b << ", and c = ["; std::copy(s3.c.begin(), s3.c.end(), oi); cout << "]" << endl << endl; raw_region r2; r2.extend(4); auto tbl_indx1 = tm.get_table_index(tm.get_table("type1"), 0); auto tbl_indx2 = tm.get_table_index(tm.get_table("type1"), 1); r2.set<uint32_t>(0, 13); auto c1 = tm.<API key>( r.get_raw_region(), r2, tbl_indx1 ); cout << "Comparing object s1 with uint32_t key of value " << r2.get<uint32_t>(0) << " via the first index of table 'type1' gives: " << (int) c1 << endl; r2.set<uint32_t>(0, 5); auto c2 = tm.<API key>( r.get_raw_region(), r2, tbl_indx1 ); cout << "Comparing object s1 with uint32_t key of value " << r2.get<uint32_t>(0) << " via the first index of table 'type1' gives: " << (int) c2 << endl; r2.set<uint32_t>(0, 8); auto c3 = tm.<API key>( r.get_raw_region(), r2, tbl_indx1 ); cout << "Comparing object s1 with uint32_t key of value " << r2.get<uint32_t>(0) << " via the first index of table 'type1' gives: " << (int) c3 << endl; r2.clear(); cout << endl; type3 s5{ .x = 8, .y = 9 }; cout << "Struct s5 is {x = " << s5.x << ", y = " << s5.y << "}." << endl; <API key> r3(ftm); r3.write_type(s5, type3_tid); auto c4 = tm.<API key>( r.get_raw_region(), r3.get_raw_region(), tbl_indx2 ); cout << "The relevant key extracted from object s1 would " << (c4 == 0 ? "be equal to" : (c4 < 0 ? "come before" : "come after")) << " the key s5 according to the sorting specification of the second index of table 'type1'." << endl; cout << endl; r.clear(); r.write_type(s2, type2_tid); cout << "Raw data of serialization of s2:" << endl << r.get_raw_region(); cout << "Reading back struct from raw data." << endl; type2 s4; r.read_type(s4, type2_tid); cout << "a = " << s4.a << ", b = " << s4.b << ", c = ["; std::copy(s4.c.begin(), s4.c.end(), oi); cout << "]"; cout << ", d = " << s4.d << ", arr = ["; for( auto i = 0; i < 2; ++i ) { cout << "{a = " << s4.arr[i].a << ", b = " << s4.arr[i].b << ", and c = ["; std::copy(s4.arr[i].c.begin(), s4.arr[i].c.end(), oi); cout << "]}, "; } cout << "], and name = '" << s4.name << "'" << endl << endl; auto type1_table = tm.get_table("type1"); for( auto i = 0; i < tm.<API key>(type1_table); ++i ) { auto ti = tm.get_table_index(type1_table, i); auto key_type = ti.get_key_type(); string key_type_name; if( key_type.get_type_class() == type_id::builtin_type ) key_type_name = type_id::<API key>(key_type.get_builtin_type()); else key_type_name = ftm.get_struct_name(key_type.get_type_index()); cout << "Index " << (i+1) << " of the 'type1' table is " << (ti.is_unique() ? "unique" : "non-unique") << " and sorted according to the key type '" << key_type_name << "' in " << (ti.is_ascending() ? "ascending" : "descending" ) << " order." << endl; } return 0; }
package com.rarchives.ripme.tst.ripper.rippers; import java.io.IOException; import java.net.URL; import com.rarchives.ripme.ripper.rippers.NhentaiRipper; public class NhentaiRipperTest extends RippersTest { public void testRip() throws IOException { NhentaiRipper ripper = new NhentaiRipper(new URL("https://nhentai.net/g/233295/")); testRipper(ripper); } public void testGetGID() throws IOException { NhentaiRipper ripper = new NhentaiRipper(new URL("https://nhentai.net/g/233295/")); assertEquals("233295", ripper.getGID(new URL("https://nhentai.net/g/233295/"))); } // Test the tag black listing public void testTagBlackList() throws IOException { URL url = new URL("https://nhentai.net/g/233295/"); NhentaiRipper ripper = new NhentaiRipper(url); // Test multiple blacklisted tags String[] tags = {"test", "one", "blowjob"}; String blacklistedTag = ripper.checkTags(ripper.getFirstPage(), tags); assertEquals("blowjob", blacklistedTag); // test tags with spaces in them String[] tags2 = {"test", "one", "sole female"}; blacklistedTag = ripper.checkTags(ripper.getFirstPage(), tags2); assertEquals("sole female", blacklistedTag); } }
# Navigation With Bones 1.0, we wanted to allow for some flexibility with navigation right out of the gate. Of course, there's still much work to be done here, but we have some options. ## Default To make it easy to get right up and running, there are default options attributed to `<nav>` and `<div class="nav">`. This can help streamline your markup, especially if you only want one "type" of nav menu throughout your application. We place lists within these nav containers like so: html <nav> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> </ul> </nav> or: html <div class="nav"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> </ul> </div> Floating Right You can easily push a navigation menu to the right by applying a `.right` selector to **the `<ul>` within the nav container**. For example: html <nav> <ul class="right"> </ul> </nav> ## Navbar The approach we took was to let you style the default navigation however you'd like. By default, Bones gives you free-floating links that are underlined on hover. Still, most applications today are using some form of a navbar. Therefore, we have a second set of horizontal navigation meant for a navbar. All we need is the appropriate class selector `.bar`: html <nav class="bar"> <ul> <li><a href="#">...</a></li> </ul> </nav> or html <div class="nav bar"> <ul> <li><a href="#">...</a></li> </ul> </div> > The important note to remember here is to keep a space between `.nav` and `.bar` if using a `<div>` element, which simply helps us reuse some of the default styling. Floating Right We can also float these list items right while maintaining the bar itself by applying a `.right` selector to the `<ul>` within the container. html <div class="nav bar"> <ul class="right"> </ul> </div> ## Vertical Nav (Sidebar) Vertical navigation is often useful in a sidebar type of application. All we need here is the `.vertical` selector: html <nav class="vertical"> <ul> <li><a href="#">...</a></li> </ul> </nav> or: html <nav class="nav vertical"> <ul> <li><a href="#">...</a></li> </ul> </nav> > Again, keep a space between `.nav` and `.vertical` if using a `<div>` element. ## Filters Filters are a specific type of horizontal navigation, but often you want them to look different than your default nav. Once again, one simple selector gets the job done: html <ul class="filter"> <li><a href="#">...</a></li> </ul> Do note here we **don't need a container**, but apply the `.filter` selector to the `<ul>` element. You also have an option for disabled and active list items by adding the appropriate class to the `<li>` element: html <ul class="filter"> <li class="disabled"><a href="#">...</a></li> <li class="active"><a href="#">...</a></li> </ul> ## Breadcrumbs Breadcrumbs work just like filters, but with an additional variable for the separator between the items. html <ul class="breadcrumbs"> <li><a href="#">...</a></li> </ul> Again, here we have `.disabled` and `.active` selectors. html <ul class="breadcrumbs"> <li class="disabled"><a href="#">...</a></li> <li class="active"><a href="#">...</a></li> </ul> ## Lists You don't necessarily need a list to be a navigation menu to benefit from some of these styles. We have a plain (no-bullet) vertical list available as: html <ul class="no-bullet"> <li>...</li> </ul> Or you can horizontal list: html <ul class="horizontal"> <li>...</li> </ul>
external help file: VcRedist-help.xml Module Name: VcRedist online version: https://stealthpuppy.com/vcredist/get-vclist/ schema: 2.0.0 # Get-VcList ## SYNOPSIS Returns an object of Microsoft Visual C++ Redistributables for use with other VcRedist functions. ## SYNTAX Manifest (Default) powershell Get-VcList [[-Release] <String[]>] [[-Architecture] <String[]>] [[-Path] <String>] [<CommonParameters>] Export powershell Get-VcList [[-Export] <String>] [<CommonParameters>] ## DESCRIPTION This function reads the Visual C++ Redistributables listed in an internal manifest (or an external JSON file) into an object that can be passed to other VcRedist functions. A complete listing of the supported and all known redistributables is included in the module. By default, Get-VcList will only return a list of the supported Visual C++ Redistributables. To return any of the unsupported Redistributables, the -Export parameter is required with the output filtered with Where-Object. The internal manifest can be exported with Export-VcManifest. ## EXAMPLES EXAMPLE 1 powershell Get-VcList Description: Return an object of the supported Visual C++ Redistributables from the embedded manifest. EXAMPLE 2 powershell Get-VcList Description: Returns the supported 2010, 2012, 2013 and 2019, x86 and x64 versions of the supported Visual C++ Redistributables from the embedded manifest. EXAMPLE 3 powershell Get-VcList -Export All Description: Returns a list of the all Visual C++ Redistributables from the embedded manifest, including unsupported versions. EXAMPLE 4 powershell Get-VcList -Export Supported Description: Returns the full list of supported Visual C++ Redistributables from the embedded manifest. This is the same as running Get-VcList with no parameters. EXAMPLE 5 powershell Get-VcList -Export Unsupported | Where-Object { $_.Release -eq "2008" } Description: Returns the full list of unsupported Visual C++ Redistributables from the embedded manifest and filters for the 2008 versions of the Redistributables. EXAMPLE 6 powershell Get-VcList -Release 2013, 2019 -Architecture x86 Description: Returns the 2013 and 2019 x86 Visual C++ Redistributables from the list of supported Redistributables in the embedded manifest. EXAMPLE 7 powershell Get-VcList -Path ".\<API key>.json" Description: Returns a list of the Visual C++ Redistributables listed in the external manifest <API key>.json. ## PARAMETERS -Release Specifies the release (or version) of the redistributables to return. yaml Type: String[] Parameter Sets: Manifest Aliases: Required: False Position: 1 Default value: @("2010", "2012", "2013", "2019") Accept pipeline input: False Accept wildcard characters: False -Architecture Specifies the processor architecture to of the redistributables to return. Can be x86 or x64. yaml Type: String[] Parameter Sets: Manifest Aliases: Required: False Position: 2 Default value: @("x86", "x64") Accept pipeline input: False Accept wildcard characters: False -Path Provide a path to an external VcRedist manifest file. yaml Type: String Parameter Sets: Manifest Aliases: Xml Required: False Position: 3 Default value: (Join-Path -Path $MyInvocation.MyCommand.Module.ModuleBase -ChildPath "<API key>.json") Accept pipeline input: True (ByValue) Accept wildcard characters: False -Export Defines the list of Visual C++ Redistributables to export - All, Supported or Unsupported Redistributables. Defaults to exporting the Supported Redistributables. yaml Type: String Parameter Sets: Export Aliases: Required: False Position: 1 Default value: Supported Accept pipeline input: False Accept wildcard characters: False CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [<API key>](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS ## OUTPUTS System.Management.Automation.PSObject ## NOTES Author: Aaron Parker Twitter: @stealthpuppy ## RELATED LINKS [Get the list of Visual C++ Redistributables:](https://stealthpuppy.com/vcredist/get-vclist/)
"use strict"; module.exports. module.exports.clone = function (obj, date2obj) { return exports.parse(exports.stringify(obj), date2obj); };
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head id="ctl00_Head1"><script type="text/javascript"> //<![CDATA[ try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:1482927700,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok3v=1613a3a185/"},atok:"<API key>",petok:"<SHA1-like>-1482933282-1800",zone:"hkgolden.com",rocket:"0",apps:{"ga_key":{"ua":"UA-48961522-1","ga_bs":"2"}}}];!function(a,b){a=document.createElement("script"),b=document.<API key>("script")[0],a.async=!0,a.src="//ajax.cloudflare.com/cdn-cgi/nexp/dok3v=f2befc48d1/cloudflare.min.js",b.parentNode.insertBefore(a,b)}()}}catch(e){}; </script> <link rel="canonical" href="http://m2.hkgolden.com//topics.aspx?type=BW"/> <meta property="og:image" content="http://m2.hkgolden.com/images/index_images/fb_logo.jpg"/> <meta property="og:locale" content="zh_HK"/> <meta property="og:type" content="website"/> <meta property="og:title" content=" - o"/> <meta property="og:description" content=" - o"/> <meta property="og:url" content="http://m2.hkgolden.com//topics.aspx?type=BW"/> <meta property="og:site_name" content="hkgolden.com"/> <meta property="fb:admins" content="100001160054386"/> <meta property="fb:app_id" content="1512574872316875"/> <title> - </title> <script type='text/javascript'> (function() { var useSSL = 'https:' == document.location.protocol; var src = (useSSL ? 'https:' : 'http:') + ' document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>'); })(); </script> <script type='text/javascript'> googletag.cmd.push(function() { googletag.defineSlot('/39486384/Mobile_Topic_Apps(middle)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Apps_Mobile(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Apps_Mobile(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Apps_Mobile(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Apps_Mobile(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Elite_Mobile(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Elite_Mobile(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Elite_Mobile(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Elite_Mobile(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Elite_Mobile(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Food_Mobile(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Food_Mobile(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Food_Mobile(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Food_Mobile(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Food_Mobile(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Game_Mobile(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Game_Mobile(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Game_Mobile(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Game_Mobile(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Game_Mobile(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Gender_Mobile(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Gender_Mobile(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Gender_Mobile(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Gender_Mobile(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Gender_Mobile(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_News_Mobile(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_News_Mobile(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_News_Mobile(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_News_Mobile(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_News_Mobile(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Sports_Mobile(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Sports_Mobile(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Sports_Mobile(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Sports_Mobile(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Sports_Mobile(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/<API key>(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Travel_Mobile(topic)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Travel_Mobile(topic2)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Travel_Mobile(topic3)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Travel_Mobile(topic4)', [300, 250], '<API key>').addService(googletag.pubads()); googletag.defineSlot('/39486384/Forum_Travel_Mobile(topic5)', [300, 250], '<API key>').addService(googletag.pubads()); //googletag.pubads().enableSingleRequest(); googletag.pubads().enableSyncRendering(); googletag.enableServices(); }); </script> <meta charset="utf-8"/><meta name="viewport" content="width=device-width, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><link rel="stylesheet" href="style/jquery.mobile-1.4.5.css"/><link rel="stylesheet" href="style/common.css"/> <script src="js/js.cookie.js"></script> <script src="js/jquery-1.12.4.min.js"></script> <script> $(document).on("mobileinit", function () { $.mobile.ajaxEnabled = false; }); </script> <script src="js/jquery.mobile-1.4.5.min.js"></script> <script type="text/javascript" src="/js/mobile.js"></script> <script type="text/javascript" src="http://mod.postimage.org/<API key>.js" charset="utf-8"></script> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=3.0; user-scalable=1;"/> <script type="text/javascript"> window.<API key> = "UA-5029867-6"; </script> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https: document.write(unescape("%3Cscript src='" + gaJsHost + "stats.g.doubleclick.net/dc.js' type='text/javascript'%3E%3C/script%3E")) </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-5029867-6"); pageTracker._trackPageview(); } catch (err) { } </script> <script>var _comscore = _comscore || [];_comscore.push({ c1: "2", c2: "13557737" });(function() {var s = document.createElement("script"), el = document.<API key>("script")[0]; s.async = true;s.src = (document.location.protocol == "https:" ? "https: <title> </title><script type="text/javascript"> /* <![CDATA[ */ var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-48961522-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https: var s = document.<API key>('script')[0]; s.parentNode.insertBefore(ga, s); })(); (function(b){(function(a){"__CF"in b&&"DJS"in b.__CF?b.__CF.DJS.push(a):"addEventListener"in b?b.addEventListener("load",a,!1):b.attachEvent("onload",a)})(function(){"FB"in b&&"Event"in FB&&"subscribe"in FB.Event&&(FB.Event.subscribe("edge.create",function(a){_gaq.push(["_trackSocial","facebook","like",a])}),FB.Event.subscribe("edge.remove",function(a){_gaq.push(["_trackSocial","facebook","unlike",a])}),FB.Event.subscribe("message.send",function(a){_gaq.push(["_trackSocial","facebook","send",a])}));"twttr"in b&&"events"in twttr&&"bind"in twttr.events&&twttr.events.bind("tweet",function(a){if(a){var b;if(a.target&&a.target.nodeName=="IFRAME")a:{if(a=a.target.src){a=a.split(" </script> </head> <body> <div class='<API key>'></div> </div> <div data-role="page"> <div class="ui-header" data-role="header" data-position="fixed" data-tap-toggle="false"> <h1> </h1> <a href="#channelList" id="btn_header_menu" data-role="button" role="button" class="ui-btn ui-btn-icon-left ui-alt-icon ui-nodisc-icon ui-corner-all ui-btn-icon-notext ui-icon-menu"></a> <div data-type="horizontal" data-role="controlgroup" class="ui-btn-right"> <a href="#" id="btnTopicSearch" class="ui-btn ui-nodisc-icon ui-corner-all ui-btn-icon-notext ui-icon-search2"></a> </div> </div> <div role="main" class="ui-content"> <div id="searchPanel" class="slidePanel"> <form action="/search.aspx" name="searchForm" data-ajax="false"> <input type="search" name="searchstring" data-clear-btn="false" placeholder=""/> </form> </div> <div class="topic"> <a href="./view.aspx?message=6644173&type=BW" data-transition="slide" class="topic-link"></a> <div class="topic-col"> <div class="topic-icon icon-fire1"></div> </div> <div class="topic-content"> <div class="topic-title">treatment?</div> <div class="topic-page" totalpage="5"></div> <div class="topic-footer"> <div class="topic-name-time"><span class="topic-name"></span><span class="topic-time">1</span></div> <div class="topic-count"> <span class="topic-count-comment ">112</span> <span class="topic-count-like ">3</span> <span class="topic-count-dislike ">0</span> </div> <div class="clear"></div> </div> </div> </div> <div class="topic"> <a href="./view.aspx?message=6649960&type=BW" data-transition="slide" class="topic-link"></a> <div class="topic-col"> <div class="topic-icon icon-fire1"></div> </div> <div class="topic-content"> <div class="topic-title">[] </div> <div class="topic-page" totalpage="4"></div> <div class="topic-footer"> <div class="topic-name-time"><span class="topic-name"></span><span class="topic-time">1</span></div> <div class="topic-count"> <span class="topic-count-comment ">100</span> <span class="topic-count-like ">1</span> <span class="topic-count-dislike ">8</span> </div> <div class="clear"></div> </div> </div> </div> <!-- Display Ad --> <div align = center><iframe src='google_ad_topic.aspx?type=BW' width='300px' height='250px' allowtransparency='true' scrolling='no' frameborder='0'></iframe> </div> </div> <!-- /content --> <!-- footer --> <div id="topic-footer" class="ui-footer" data-role="footer" data-position="fixed" data-tap-toggle="false"> <div id="topic_paging"> <div class="ui-block-a"> <!-- hide this if first page --> <!-- /hide this if first page --> </div> <div class="ui-block-b"><a href="#pagingPanel" class="pageno">1 / 2997</a></div> <div class="ui-block-c"> <!-- hide this if last page --> <a href="topics.aspx?type=BW&amp;page=2" rel="external" class="ui-btn btn-page-next"></a> <!-- /hide this if last page --> </div> </div> </div> <!-- /footer --> <!-- right panel --> <div id="pagingPanel" class="pagingPanel slidePanel" data-role="panel" data-position="right" data-display="overlay" data-position-fixed="true"> <div id="paging"> <!--loop name="paging"> <a href="?page=" data-ajax="false" class=""></a> </loop name="paging" </div> </div> <!-- /right panel --> <!-- left panel --> <div id="channelList" class="slidePanel" data-role="panel" data-position="left" data-display="overlay" data-position-fixed="true"> <div id="channelHeader"> <img src="images/hkg-logo.png" width="89" height="26" id="hkg_logo"> </div> <div id="channels" data-role="navbar"> <ul> <li><a data-ajax="false" href="topics.aspx?type=BW" type="BW"></a></li> <li><a data-ajax="false" href="topics.aspx?type=HT" type="HT"> </a></li> <li><a data-ajax="false" href="topics.aspx?type=ET" type="ET"></a></li> <li><a data-ajax="false" href="topics.aspx?type=CA" type="CA"></a></li> <li><a data-ajax="false" href="topics.aspx?type=FN" type="FN"></a></li> <li><a data-ajax="false" href="topics.aspx?type=GM" type="GM"></a></li> <li><a data-ajax="false" href="topics.aspx?type=HW" type="HW"></a></li> <li><a data-ajax="false" href="topics.aspx?type=IN" type="IN"></a></li> <li><a data-ajax="false" href="topics.aspx?type=SW" type="SW"></a></li> <li><a data-ajax="false" href="topics.aspx?type=MP" type="MP"></a></li> <li><a data-ajax="false" href="topics.aspx?type=AP" type="AP">APPs</a></li> <li><a data-ajax="false" href="topics.aspx?type=SP" type="SP"></a></li> <li><a data-ajax="false" href="topics.aspx?type=LV" type="LV"></a></li> <li><a data-ajax="false" href="topics.aspx?type=SY" type="SY"></a></li> <li><a data-ajax="false" href="topics.aspx?type=ED" type="ED"></a></li> <li><a data-ajax="false" href="topics.aspx?type=BB" type="BB"></a></li> <li><a data-ajax="false" href="topics.aspx?type=PT" type="PT"></a></li> <li><a data-ajax="false" href="topics.aspx?type=TR" type="TR"></a></li> <li><a data-ajax="false" href="topics.aspx?type=CO" type="CO"></a></li> <li><a data-ajax="false" href="topics.aspx?type=AN" type="AN"></a></li> <li><a data-ajax="false" href="topics.aspx?type=TO" type="TO"></a></li> <li><a data-ajax="false" href="topics.aspx?type=MU" type="MU"></a></li> <li><a data-ajax="false" href="topics.aspx?type=VI" type="VI"></a></li> <li><a data-ajax="false" href="topics.aspx?type=DC" type="DC"></a></li> <li><a data-ajax="false" href="topics.aspx?type=ST" type="ST"></a></li> <li><a data-ajax="false" href="topics.aspx?type=SC" type="SC"></a></li> <li><a data-ajax="false" href="topics.aspx?type=WK" type="WK"></a></li> <li><a data-ajax="false" href="topics.aspx?type=TS" type="TS"></a></li> <li><a data-ajax="false" href="topics.aspx?type=RA" type="RA"> </a></li> <li><a data-ajax="false" href="topics.aspx?type=AU" type="AU"></a></li> <li><a data-ajax="false" href="topics.aspx?type=MB" type="MB"></a></li> <li><a data-ajax="false" href="topics.aspx?type=AC" type="AC"></a></li> <li><a data-ajax="false" href="topics.aspx?type=JT" type="JT"></a></li> <li><a data-ajax="false" href="topics.aspx?type=EP" type="EP"></a></li> </ul> </div> <div id="toolBtns" class="ui-footer-fixed ui-grid-b"> <div class="ui-block-a"> <div class="toolBtn alignCenter"><a href="ViewBookmark.aspx" data-ajax="false" data-role="button" role="button" class="ui-btn ui-alt-icon ui-nodisc-icon ui-corner-all ui-btn-icon-notext ui-icon-bookmark"></a></div> </div> <div class="ui-block-b"> <div class="toolBtn alignCenter"><a href="rewind.aspx" data-ajax="false" data-role="button" role="button" class="ui-btn ui-alt-icon ui-nodisc-icon ui-corner-all ui-btn-icon-notext ui-icon-repeat"></a></div> </div> <div class="ui-block-c"> <div class="toolBtn alignCenter"><a href="setting.aspx" data-ajax="false" data-transition="slide" data-role="button" role="button" class="ui-btn ui-alt-icon ui-nodisc-icon ui-corner-all ui-btn-icon-notext ui-icon-setting"></a></div> </div> <div class="ui-block-a"> <div class="toolBtn alignCenter"><a href="followlist.aspx" data-role="button" role="button" class="ui-btn ui-alt-icon ui-nodisc-icon ui-corner-all ui-btn-icon-notext ui-icon-follow"></a></div> </div> <div class="ui-block-b"> <div class="toolBtn alignCenter"><a href="pmlist.aspx" data-ajax="false" data-role="button" role="button" class="ui-btn ui-alt-icon ui-nodisc-icon ui-corner-all ui-btn-icon-notext ui-icon-pm"></a>PM</div> </div> <div class="ui-block-c"> <div class="toolBtn alignCenter"><a href="login.aspx?redirectpage=/topics.aspx?type=BW" data-ajax="false" data-role="button" role="button" class="ui-btn ui-alt-icon ui-nodisc-icon ui-corner-all ui-btn-icon-notext ui-icon-login"></a></div> </div> </div> </div> <!-- /left panel --> </div> <script type="text/javascript" src="js/mobile.js"></script><script type="text/javascript" src="js/common.js"></script><script type="text/javascript" src="js/topics.js"></script> </div> </script> </div> <script src = "/js/common.js"></script> </body> </html>
<html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="HTTrack is an easy-to-use website mirror utility. It allows you to download a World Wide website from the Internet to a local directory,building recursively all structures, getting html, images, and other files from the server to your computer. Links are rebuiltrelatively so that you can freely browse to the local site (works with any browser). You can mirror several sites together so that you can jump from one toanother. You can, also, update an existing mirror site, or resume an interrupted download. The robot is fully configurable, with an integrated help" /> <meta name="keywords" content="httrack, HTTRACK, HTTrack, winhttrack, WINHTTRACK, WinHTTrack, offline browser, web mirror utility, aspirateur web, surf offline, web capture, www mirror utility, browse offline, local site builder, website mirroring, aspirateur www, internet grabber, capture de site web, internet tool, hors connexion, unix, dos, windows 95, windows 98, solaris, ibm580, AIX 4.0, HTS, HTGet, web aspirator, web aspirateur, libre, GPL, GNU, free software" /> <title>Local index - HTTrack Website Copier</title> <!-- Mirror and index made by HTTrack Website Copier/3.48-22 [XR&CO'2014] --> <style type="text/css"> <! body { margin: 0; padding: 0; margin-bottom: 15px; margin-top: 8px; background: #77b; } body, td { font: 14px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; } #subTitle { background: #000; color: #fff; padding: 4px; font-weight: bold; } #siteNavigation a, #siteNavigation .current { font-weight: bold; color: #448; } #siteNavigation a:link { text-decoration: none; } #siteNavigation a:visited { text-decoration: none; } #siteNavigation .current { background-color: #ccd; } #siteNavigation a:hover { text-decoration: none; background-color: #fff; color: #000; } #siteNavigation a:active { text-decoration: none; background-color: #ccc; } a:link { text-decoration: underline; color: #00f; } a:visited { text-decoration: underline; color: #000; } a:hover { text-decoration: underline; color: #c00; } a:active { text-decoration: underline; } #pageContent { clear: both; border-bottom: 6px solid #000; padding: 10px; padding-top: 20px; line-height: 1.65em; background-image: url(backblue.gif); background-repeat: no-repeat; background-position: top right; } #pageContent, #siteNavigation { background-color: #ccd; } .imgLeft { float: left; margin-right: 10px; margin-bottom: 10px; } .imgRight { float: right; margin-left: 10px; margin-bottom: 10px; } hr { height: 1px; color: #000; background-color: #000; margin-bottom: 15px; } h1 { margin: 0; font-weight: bold; font-size: 2em; } h2 { margin: 0; font-weight: bold; font-size: 1.6em; } h3 { margin: 0; font-weight: bold; font-size: 1.3em; } h4 { margin: 0; font-weight: bold; font-size: 1.18em; } .blak { background-color: #000; } .hide { display: none; } .tableWidth { min-width: 400px; } .tblRegular { border-collapse: collapse; } .tblRegular td { padding: 6px; background-image: url(fade.gif); border: 2px solid #99c; } .tblHeaderColor, .tblHeaderColor td { background: #99c; } .tblNoBorder td { border: 0; } </style> </head> <table width="76%" border="0" align="center" cellspacing="0" cellpadding="3" class="tableWidth"> <tr> <td id="subTitle">HTTrack Website Copier - Open Source offline browser</td> </tr> </table> <table width="76%" border="0" align="center" cellspacing="0" cellpadding="0" class="tableWidth"> <tr class="blak"> <td> <table width="100%" border="0" align="center" cellspacing="1" cellpadding="0"> <tr> <td colspan="6"> <table width="100%" border="0" align="center" cellspacing="0" cellpadding="10"> <tr> <td id="pageContent"> <meta name="generator" content="HTTrack Website Copier/3.x"> <TITLE>Local index - HTTrack</TITLE> </HEAD> <BODY> <H1 ALIGN=Center>Index of locally available sites:</H1> <TABLE BORDER="0" WIDTH="100%" CELLSPACING="1" CELLPADDING="0"> <TR> <TD BACKGROUND="fade.gif"> &middot; <A HREF="localhost/Documentation/appmanager/overview/index.html"> localhost/Documentation/appmanager/overview/index.html </A> </TD> </TR> </TABLE> <BR> <BR> <BR> <H6 ALIGN="RIGHT"> <I>Mirror and index made by HTTrack Website Copier [XR&amp;CO'2008]</I> </H6> <!-- Mirror and index made by HTTrack Website Copier/3.48-22 [XR&CO'2014] --> <!-- Thanks for using HTTrack Website Copier! --> <meta HTTP-EQUIV="Refresh" CONTENT="0; URL=localhost/Documentation/appmanager/overview/index.html"> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table width="76%" border="0" align="center" valign="bottom" cellspacing="0" cellpadding="0"> <tr> <td id="footer"><small>&copy; 2008 Xavier Roche & other contributors - Web Design: Leto Kauler.</small></td> </tr> </table> </body> </html>
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Globalization; namespace DefineClass { public class DefineClassMain { static void Main() { Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Battery myBattery = new Battery("Bateria"); Display myDisplay = new Display(); GSM myGSM = new GSM("Nokia","Nokia", 100.23M, "Pesho",myBattery,myDisplay); string myGSMinfo = myGSM.ToString(); Console.WriteLine(myGSMinfo); GSM mySecondGSM = GSM.IPhone4S; Console.WriteLine(mySecondGSM); GSMTest test = new GSMTest(); test.Create4GSMs(); GSMCallHistoryTest secondTest = new GSMCallHistoryTest(); secondTest.CallHistoryTest(); } } }
// File: ImeUi.cpp // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. #include "dxut.h" #include "ImeUi.h" #include <math.h> #include <msctf.h> #include <malloc.h> // Ignore typecast warnings #pragma warning( disable : 4312 ) #pragma warning( disable : 4244 ) #pragma warning( disable : 4311 ) #pragma prefast( disable : 28159, "GetTickCount() is fine for a blinking cursor" ) #define <API key> 256 #define COUNTOF(a) ( sizeof( a ) / sizeof( ( a )[0] ) ) #define <API key> ((DWORD)-1) #define LANG_CHT MAKELANGID(LANG_CHINESE, <API key>) #define LANG_CHS MAKELANGID(LANG_CHINESE, <API key>) #define MAKEIMEVERSION(major,minor) ( (DWORD)( ( (BYTE)( major ) << 24 ) | ( (BYTE)( minor ) << 16 ) ) ) #define IMEID_VER(dwId) ( ( dwId ) & 0xffff0000 ) #define IMEID_LANG(dwId) ( ( dwId ) & 0x0000ffff ) #define _CHT_HKL_DAYI ( (HKL)0xE0060404 ) // DaYi #define <API key> ( (HKL)0xE0080404 ) // New Phonetic #define <API key> ( (HKL)0xE0090404 ) // New Chang Jie #define _CHT_HKL_NEW_QUICK ( (HKL)0xE00A0404 ) // New Quick #define <API key> ( (HKL)0xE00B0404 ) // Hong Kong Cantonese #define _CHT_IMEFILENAME "TINTLGNT.IME" // New Phonetic #define _CHT_IMEFILENAME2 "CINTLGNT.IME" // New Chang Jie #define _CHT_IMEFILENAME3 "MSTCIPHA.IME" // Phonetic 5.1 #define IMEID_CHT_VER42 ( LANG_CHT | MAKEIMEVERSION( 4, 2 ) ) // New(Phonetic/ChanJie)IME98 : 4.2.x.x // Win98 #define IMEID_CHT_VER43 ( LANG_CHT | MAKEIMEVERSION( 4, 3 ) ) // New(Phonetic/ChanJie)IME98a : 4.3.x.x // Win2k #define IMEID_CHT_VER44 ( LANG_CHT | MAKEIMEVERSION( 4, 4 ) ) // New ChanJie IME98b : 4.4.x.x // WinXP #define IMEID_CHT_VER50 ( LANG_CHT | MAKEIMEVERSION( 5, 0 ) ) // New(Phonetic/ChanJie)IME5.0 : 5.0.x.x // WinME #define IMEID_CHT_VER51 ( LANG_CHT | MAKEIMEVERSION( 5, 1 ) ) // New(Phonetic/ChanJie)IME5.1 : 5.1.x.x // IME2002(w/OfficeXP) #define IMEID_CHT_VER52 ( LANG_CHT | MAKEIMEVERSION( 5, 2 ) ) // New(Phonetic/ChanJie)IME5.2 : 5.2.x.x // IME2002a(w/WinXP) #define IMEID_CHT_VER60 ( LANG_CHT | MAKEIMEVERSION( 6, 0 ) ) // New(Phonetic/ChanJie)IME6.0 : 6.0.x.x // New IME 6.0(web download) #define IMEID_CHT_VER_VISTA ( LANG_CHT | MAKEIMEVERSION( 7, 0 ) ) // All TSF TIP under Cicero UI-less mode: a hack to make GetImeId() return non-zero value #define _CHS_HKL ( (HKL)0xE00E0804 ) // MSPY #define _CHS_IMEFILENAME "PINTLGNT.IME" // MSPY1.5/2/3 #define _CHS_IMEFILENAME2 "MSSCIPYA.IME" // MSPY3 for OfficeXP #define IMEID_CHS_VER41 ( LANG_CHS | MAKEIMEVERSION( 4, 1 ) ) // MSPY1.5 // SCIME97 or MSPY1.5 (w/Win98, Office97) #define IMEID_CHS_VER42 ( LANG_CHS | MAKEIMEVERSION( 4, 2 ) ) // MSPY2 // Win2k/WinME #define IMEID_CHS_VER53 ( LANG_CHS | MAKEIMEVERSION( 5, 3 ) ) // MSPY3 // WinXP static CHAR signature[] = "%%%IMEUILIB:070111%%%"; static IMEUI_APPEARANCE gSkinIME = { 0, // symbolColor; 0x404040, // symbolColorOff; 0xff000000, // symbolColorText; 24, // symbolHeight; 0xa0, // symbolTranslucence; 0, // symbolPlacement; nullptr, // symbolFont; 0xffffffff, // candColorBase; 0xff000000, // candColorBorder; 0, // candColorText; 0x00ffff00, // compColorInput; 0x000000ff, // compColorTargetConv; 0x0000ff00, // compColorConverted; 0x00ff0000, // <API key>; 0x00ff0000, // compColorInputErr; 0x80, // compTranslucence; 0, // compColorText; 2, // caretWidth; 1, // caretYMargin; }; struct _SkinCompStr { DWORD colorInput; DWORD colorTargetConv; DWORD colorConverted; DWORD colorTargetNotConv; DWORD colorInputErr; }; _SkinCompStr gSkinCompStr; // Definition from Win98DDK version of IMM.H typedef struct tagINPUTCONTEXT2 { HWND hWnd; BOOL fOpen; POINT ptStatusWndPos; POINT ptSoftKbdPos; DWORD fdwConversion; DWORD fdwSentence; union { LOGFONTA A; LOGFONTW W; } lfFont; COMPOSITIONFORM cfCompForm; CANDIDATEFORM cfCandForm[4]; HIMCC hCompStr; HIMCC hCandInfo; HIMCC hGuideLine; HIMCC hPrivate; DWORD dwNumMsgBuf; HIMCC hMsgBuf; DWORD fdwInit; DWORD dwReserve[3]; } INPUTCONTEXT2, *PINPUTCONTEXT2, NEAR *NPINPUTCONTEXT2, FAR* LPINPUTCONTEXT2; // Class to disable Cicero in case <API key>() doesn't disable it completely class CDisableCicero { public: CDisableCicero() : m_ptim( nullptr ), m_bComInit( false ) { } ~CDisableCicero() { Uninitialize(); } void Initialize() { if( m_bComInit ) { return; } HRESULT hr; hr = CoInitializeEx( nullptr, <API key> ); if( SUCCEEDED( hr ) ) { m_bComInit = true; hr = CoCreateInstance( CLSID_TF_ThreadMgr, nullptr, <API key>, __uuidof( ITfThreadMgr ), ( void** )&m_ptim ); } } void Uninitialize() { if( m_ptim ) { m_ptim->Release(); m_ptim = nullptr; } if( m_bComInit ) CoUninitialize(); m_bComInit = false; } void <API key>( HWND hwnd ) { if( !m_ptim ) return; ITfDocumentMgr* pdimPrev; // the dim that is associated previously. // Associate nullptr dim to the window. // When this window gets the focus, Cicero does not work and IMM32 IME // will be activated. if( SUCCEEDED( m_ptim->AssociateFocus( hwnd, nullptr, &pdimPrev ) ) ) { if( pdimPrev ) pdimPrev->Release(); } } private: ITfThreadMgr* m_ptim; bool m_bComInit; }; static CDisableCicero g_disableCicero; #define _IsLeadByte(x) ( LeadByteTable[(BYTE)( x )] ) static void _PumpMessage(); static BYTE LeadByteTable[256]; #define _ImmGetContext ImmGetContext #define _ImmReleaseContext ImmReleaseContext #define <API key> ImmAssociateContext static LONG ( WINAPI* <API key> )( HIMC himc, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen ); #define _ImmGetOpenStatus ImmGetOpenStatus #define _ImmSetOpenStatus ImmSetOpenStatus #define <API key> <API key> static DWORD ( WINAPI* <API key> )( HIMC himc, DWORD deIndex, LPCANDIDATELIST lpCandList, DWORD dwBufLen ); static LPINPUTCONTEXT2 ( WINAPI* _ImmLockIMC )( HIMC hIMC ); static BOOL ( WINAPI* _ImmUnlockIMC )( HIMC hIMC ); static LPVOID ( WINAPI* _ImmLockIMCC )( HIMCC hIMCC ); static BOOL ( WINAPI* _ImmUnlockIMCC )( HIMCC hIMCC ); #define <API key> ImmGetDefaultIMEWnd #define _ImmGetIMEFileNameA ImmGetIMEFileNameA #define _ImmGetVirtualKey ImmGetVirtualKey #define _ImmNotifyIME ImmNotifyIME #define <API key> <API key> #define _ImmSimulateHotKey ImmSimulateHotKey #define _ImmIsIME ImmIsIME // private API provided by CHT IME. Available on version 6.0 or later. UINT ( WINAPI*_GetReadingString )( HIMC himc, UINT uReadingBufLen, LPWSTR lpwReadingBuf, PINT pnErrorIndex, BOOL* pfIsVertical, PUINT puMaxReadingLen ); BOOL ( WINAPI*_ShowReadingWindow )( HIMC himc, BOOL bShow ); // Callbacks void ( CALLBACK*<API key> )( int x1, int y1, int x2, int y2, DWORD color ); void ( CALLBACK*<API key> )( const IMEUI_VERTEX* paVertex, UINT uNum ); void* ( __cdecl*<API key> )( size_t bytes ); void ( __cdecl*ImeUiCallback_Free )( void* ptr ); void ( CALLBACK*<API key> )( WCHAR wc ); static void (*_SendCompString )(); static LRESULT ( WINAPI* _SendMessage )( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp ) = SendMessageA; static DWORD (* _GetCandidateList )( HIMC himc, DWORD dwIndex, LPCANDIDATELIST* ppCandList ); static HWND g_hwndMain; static HWND g_hwndCurr; static HIMC g_himcOrg; static bool g_bImeEnabled = false; static TCHAR <API key>[256]; static BYTE g_szCompAttrString[256]; static DWORD g_IMECursorBytes = 0; static DWORD g_IMECursorChars = 0; static TCHAR g_szCandidate[MAX_CANDLIST][<API key>]; static DWORD g_dwSelection, g_dwCount; static UINT g_uCandPageSize; static DWORD <API key> = false; static DWORD g_dwIMELevel; static DWORD g_dwIMELevelSaved; static TCHAR <API key>[ 256 *( 3 - sizeof( TCHAR ) ) ]; static bool g_bReadingWindow = false; static bool <API key> = false; static bool g_bVerticalCand = true; static UINT g_uCaretBlinkTime = 0; static UINT g_uCaretBlinkLast = 0; static bool g_bCaretDraw = false; static bool g_bChineseIME; static bool g_bInsertMode = true; static TCHAR g_szReadingString[32]; // Used only in case of horizontal reading window static int g_iReadingError; // Used only in case of horizontal reading window static UINT g_screenWidth, g_screenHeight; static DWORD g_dwPrevFloat; static bool <API key> = false; static OSVERSIONINFOA g_osi; static bool g_bInitialized = false; static bool g_bCandList = false; static DWORD g_dwCandX, g_dwCandY; static DWORD g_dwCaretX, g_dwCaretY; static DWORD g_hCompChar; static int <API key>; static DWORD g_dwImeUiFlags = <API key>; static bool g_bUILessMode = false; static HMODULE g_hImmDll = nullptr; #define IsNT() (g_osi.dwPlatformId == <API key>) struct CompStringAttribute { UINT caretX; UINT caretY; CImeUiFont_Base* pFont; DWORD colorComp; DWORD colorCand; RECT margins; }; static CompStringAttribute g_CaretInfo; static DWORD g_dwState = IMEUI_STATE_OFF; static DWORD swirl = 0; static double lastSwirl; #define INDICATOR_NON_IME 0 #define INDICATOR_CHS 1 #define INDICATOR_CHT 2 #define INDICATOR_KOREAN 3 #define INDICATOR_JAPANESE 4 #define GETLANG() LOWORD(g_hklCurrent) #define GETPRIMLANG() ((WORD)PRIMARYLANGID(GETLANG())) #define GETSUBLANG() SUBLANGID(GETLANG()) #define LANG_CHS MAKELANGID(LANG_CHINESE, <API key>) #define LANG_CHT MAKELANGID(LANG_CHINESE, <API key>) static HKL g_hklCurrent = 0; static UINT g_uCodePage = 0; static LPTSTR g_aszIndicator[] = { TEXT( "A" ), L"\x7B80", L"\x7E41", L"\xac00", L"\x3042", }; static LPTSTR g_pszIndicatior = g_aszIndicator[0]; static void GetReadingString( _In_ HWND hWnd ); static DWORD GetImeId( _In_ UINT uIndex = 0 ); static void CheckToggleState(); static void DrawImeIndicator(); static void DrawCandidateList(); static void <API key>( _In_ bool bDrawCompAttr ); static void <API key>( _In_ DWORD dwId ); static void <API key>(); static void OnInputLangChange(); static void SetImeApi(); static void CheckInputLocale(); static void SetSupportLevel( _In_ DWORD dwImeLevel ); void <API key>( _In_ DWORD dwImeLevel ); // local helper functions inline LRESULT SendKeyMsg( HWND hwnd, UINT msg, WPARAM wp ) { <API key> = true; LRESULT lRc = _SendMessage( hwnd, msg, wp, 1 ); <API key> = false; return lRc; } #define SendKeyMsg_DOWN(hwnd,vk) SendKeyMsg(hwnd, WM_KEYDOWN, vk) #define SendKeyMsg_UP(hwnd,vk) SendKeyMsg(hwnd, WM_KEYUP, vk) // CTsfUiLessMode // Handles IME events using Text Service Framework (TSF). Before Vista, // IMM (Input Method Manager) API has been used to handle IME events and // inqueries. Some IMM functions lose backward compatibility due to design // of TSF, so we have to use new TSF interfaces. class CTsfUiLessMode { protected: // Sink receives event notifications class CUIElementSink : public ITfUIElementSink, public <API key>, public <API key> { public: CUIElementSink(); ~CUIElementSink(); // IUnknown STDMETHODIMP QueryInterface( _In_ REFIID riid, _COM_Outptr_ void** ppvObj ); STDMETHODIMP_( ULONG ) AddRef(); STDMETHODIMP_( ULONG ) Release(); // ITfUIElementSink // Notifications for Reading Window events. We could process candidate as well, but we'll use IMM for simplicity sake. STDMETHODIMP BeginUIElement( DWORD dwUIElementId, BOOL* pbShow ); STDMETHODIMP UpdateUIElement( DWORD dwUIElementId ); STDMETHODIMP EndUIElement( DWORD dwUIElementId ); // <API key> // Notification for keyboard input locale change STDMETHODIMP OnActivated( DWORD dwProfileType, LANGID langid, _In_ REFCLSID clsid, _In_ REFGUID catid, _In_ REFGUID guidProfile, HKL hkl, DWORD dwFlags ); // <API key> // Notification for open mode (toggle state) change STDMETHODIMP OnChange( _In_ REFGUID rguid ); private: LONG _cRef; }; static void <API key>( <API key>* preading ); static void <API key>( <API key>* pcandidate ); static ITfUIElement* GetUIElement( DWORD dwUIElementId ); static BOOL GetCompartments( ITfCompartmentMgr** ppcm, ITfCompartment** ppTfOpenMode, ITfCompartment** ppTfConvMode ); static BOOL <API key>( BOOL bResetOnly = FALSE, ITfCompartment* pTfOpenMode = nullptr, ITfCompartment* ppTfConvMode = nullptr ); static ITfThreadMgrEx* m_tm; static DWORD <API key>; static DWORD m_dwAlpnSinkCookie; static DWORD <API key>; static DWORD <API key>; static CUIElementSink* m_TsfSink; static int <API key>; // Some IME shows multiple candidate lists but the Library doesn't support multiple candidate list. // So track open / close events to make sure the candidate list opened last is shown. CTsfUiLessMode() { } // this class can't be instanciated public: static BOOL SetupSinks(); static void ReleaseSinks(); static BOOL <API key>(); static void UpdateImeState( BOOL <API key> = FALSE ); static void EnableUiUpdates( bool bEnable ); }; ITfThreadMgrEx* CTsfUiLessMode::m_tm; DWORD CTsfUiLessMode::<API key> = TF_INVALID_COOKIE; DWORD CTsfUiLessMode::m_dwAlpnSinkCookie = TF_INVALID_COOKIE; DWORD CTsfUiLessMode::<API key> = TF_INVALID_COOKIE; DWORD CTsfUiLessMode::<API key> = TF_INVALID_COOKIE; CTsfUiLessMode::CUIElementSink* CTsfUiLessMode::m_TsfSink = nullptr; int CTsfUiLessMode::<API key> = 0; static unsigned long _strtoul( LPCSTR psz, LPTSTR*, int ) { if( !psz ) return 0; ULONG ulRet = 0; if( psz[0] == '0' && ( psz[1] == 'x' || psz[1] == 'X' ) ) { psz += 2; ULONG ul = 0; while( *psz ) { if( '0' <= *psz && *psz <= '9' ) ul = *psz - '0'; else if( 'A' <= *psz && *psz <= 'F' ) ul = *psz - 'A' + 10; else if( 'a' <= *psz && *psz <= 'f' ) ul = *psz - 'a' + 10; else break; ulRet = ulRet * 16 + ul; psz++; } } else { while( *psz && ( '0' <= *psz && *psz <= '9' ) ) { ulRet = ulRet * 10 + ( *psz - '0' ); psz++; } } return ulRet; } #define GetCharCount(psz) (int)wcslen(psz) #define <API key>(psz,iBytes) (iBytes) static void <API key>( int index, LPCTSTR pszCandidate ) { LPTSTR psz = g_szCandidate[index]; *psz++ = ( TCHAR )( TEXT( '0' ) + ( ( index + <API key> ) % 10 ) ); if( g_bVerticalCand ) { *psz++ = TEXT( ' ' ); } while( *pszCandidate && ( COUNTOF(g_szCandidate[index]) > ( psz - g_szCandidate[index] ) ) ) { *psz++ = *pszCandidate++; } *psz = 0; } static void SendCompString() { int i, iLen = (int)wcslen( <API key> ); if( <API key> ) { LPCWSTR pwz; pwz = <API key>; for( i = 0; i < iLen; i++ ) { <API key>( pwz[i] ); } return; } for( i = 0; i < iLen; i++ ) { SendKeyMsg( g_hwndCurr, WM_CHAR, (WPARAM)<API key>[i] ); } } static DWORD GetCandidateList( HIMC himc, DWORD dwIndex, LPCANDIDATELIST* ppCandList ) { DWORD dwBufLen = <API key>( himc, dwIndex, nullptr, 0 ); if( dwBufLen ) { *ppCandList = ( LPCANDIDATELIST )<API key>( dwBufLen ); dwBufLen = <API key>( himc, dwIndex, *ppCandList, dwBufLen ); } return dwBufLen; } static void SendControlKeys( UINT vk, UINT num ) { if( num == 0 ) return; for( UINT i = 0; i < num; i++ ) { SendKeyMsg_DOWN(g_hwndCurr, vk); } SendKeyMsg_UP(g_hwndCurr, vk); } // send key messages to erase composition string. static void CancelCompString( HWND hwnd, bool bUseBackSpace = true, int iNewStrLen = 0 ) { if( g_dwIMELevel != 3 ) return; int cc = GetCharCount( <API key> ); int i; // move caret to the end of composition string SendControlKeys( VK_RIGHT, cc - g_IMECursorChars ); if( bUseBackSpace || g_bInsertMode ) iNewStrLen = 0; // The caller sets bUseBackSpace to false if there's possibility of sending // new composition string to the app right after this function call. // If the app is in overwriting mode and new comp string is // shorter than current one, delete previous comp string // till it's same long as the new one. Then move caret to the beginning of comp string. // New comp string will overwrite old one. if( iNewStrLen < cc ) { for( i = 0; i < cc - iNewStrLen; i++ ) { SendKeyMsg_DOWN(hwnd, VK_BACK); SendKeyMsg( hwnd, WM_CHAR, 8 ); //Backspace character } SendKeyMsg_UP(hwnd, VK_BACK); } else iNewStrLen = cc; SendControlKeys( VK_LEFT, iNewStrLen ); } // initialize composition string data. static void InitCompStringData() { g_IMECursorBytes = 0; g_IMECursorChars = 0; memset( &<API key>, 0, sizeof( <API key> ) ); memset( &g_szCompAttrString, 0, sizeof( g_szCompAttrString ) ); } static void DrawCaret( DWORD x, DWORD y, DWORD height ) { if( g_bCaretDraw && <API key> ) <API key>( x, y + gSkinIME.caretYMargin, x + gSkinIME.caretWidth, y + height - gSkinIME.caretYMargin, g_CaretInfo.colorComp ); } // Apps that draw the composition string on top of composition string attribute // in level 3 support should call this function twice in rendering a frame. // // Draw edit box UI; // ImeUi_RenderUI(true, false); // paint composition string attribute; // // Draw text in the edit box; // ImeUi_RenderUi(false, true); // paint the rest of IME UI; void ImeUi_RenderUI( _In_ bool bDrawCompAttr, _In_ bool bDrawOtherUi ) { if( !g_bInitialized || !g_bImeEnabled || !g_CaretInfo.pFont ) return; if( !bDrawCompAttr && !bDrawOtherUi ) return; // error case if( g_dwIMELevel == 2 ) { if( !bDrawOtherUi ) return; // 1st call for level 3 support } if( bDrawOtherUi ) DrawImeIndicator(); <API key>( bDrawCompAttr ); if( bDrawOtherUi ) DrawCandidateList(); } static void DrawImeIndicator() { bool bOn = g_dwState != IMEUI_STATE_OFF; IMEUI_VERTEX PieData[17]; float SizeOfPie = ( float )gSkinIME.symbolHeight; memset( PieData, 0, sizeof( PieData ) ); switch( gSkinIME.symbolPlacement ) { case 0: // vertical centering IME indicator { if( SizeOfPie + g_CaretInfo.margins.right + 4 > g_screenWidth ) { PieData[0].sx = ( -SizeOfPie / 2 ) + g_CaretInfo.margins.left - 4; PieData[0].sy = ( float )g_CaretInfo.margins.top + ( g_CaretInfo.margins.bottom - g_CaretInfo.margins.top ) / 2; } else { PieData[0].sx = -( SizeOfPie / 2 ) + g_CaretInfo.margins.right + gSkinIME.symbolHeight + 4; PieData[0].sy = ( float )g_CaretInfo.margins.top + ( g_CaretInfo.margins.bottom - g_CaretInfo.margins.top ) / 2; } break; } case 1: // upperleft PieData[0].sx = 4 + ( SizeOfPie / 2 ); PieData[0].sy = 4 + ( SizeOfPie / 2 ); break; case 2: // upperright PieData[0].sx = g_screenWidth - ( 4 + ( SizeOfPie / 2 ) ); PieData[0].sy = 4 + ( SizeOfPie / 2 ); break; case 3: // lowerright PieData[0].sx = g_screenWidth - ( 4 + ( SizeOfPie / 2 ) ); PieData[0].sy = g_screenHeight - ( 4 + ( SizeOfPie / 2 ) ); break; case 4: // lowerleft PieData[0].sx = 4 + ( SizeOfPie / 2 ); PieData[0].sy = g_screenHeight - ( 4 + ( SizeOfPie / 2 ) ); break; } PieData[0].rhw = 1.0f; if( bOn ) { if( GetTickCount() - lastSwirl > 250 ) { swirl++; lastSwirl = GetTickCount(); if( swirl > 13 ) swirl = 0; } } else swirl = 0; for( int t1 = 1; t1 < 16; t1++ ) { float radian = 2.0f * 3.1415926f * ( t1 - 1 + ( DWORD(bOn) * swirl ) ) / 14.0f; PieData[t1].sx = ( float )( PieData[0].sx + SizeOfPie / 2 * cos( radian ) ); PieData[t1].sy = ( float )( PieData[0].sy + SizeOfPie / 2 * sin( radian ) ); PieData[t1].rhw = 1.0f; } PieData[0].color = 0xffffff + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); if( !gSkinIME.symbolColor && bOn ) { { PieData[1].color = 0xff0000 + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[2].color = 0xff3000 + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[3].color = 0xff6000 + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[4].color = 0xff9000 + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[5].color = 0xffC000 + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[6].color = 0xffff00 + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[7].color = 0xC0ff00 + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[8].color = 0x90ff00 + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[9].color = 0x60ff00 + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[10].color = 0x30c0ff + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[11].color = 0x00a0ff + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[12].color = 0x3090ff + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[13].color = 0x6060ff + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[14].color = 0x9030ff + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); PieData[15].color = 0xc000ff + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); } } else { DWORD dwColor = bOn ? gSkinIME.symbolColor : gSkinIME.symbolColorOff; for( int t1 = 1; t1 < 16; t1++ ) { PieData[t1].color = dwColor + ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ); } } PieData[16] = PieData[1]; if( <API key> ) <API key>( PieData, 17 ); float fHeight = gSkinIME.symbolHeight * 0.625f; // fix for Ent Gen #120 - reduce the height of character when Korean IME is on if( GETPRIMLANG() == LANG_KOREAN && bOn ) { fHeight *= 0.8f; } if( gSkinIME.symbolFont ) { #ifdef DS2 // save the font height here since DS2 shares editbox font and indicator font DWORD _w, _h; g_CaretInfo.pFont->GetTextExtent( TEXT(" "), &_w, &_h ); #endif //DS2 // GOS deals height in points that is 1/72nd inch and assumes display device is 96dpi. fHeight = fHeight * 96 / 72; gSkinIME.symbolFont->SetHeight( ( UINT )fHeight ); gSkinIME.symbolFont->SetColor( ( ( ( DWORD )gSkinIME.symbolTranslucence ) << 24 ) | gSkinIME.symbolColorText ); // draw the proper symbol over the fan DWORD w, h; LPCTSTR cszSymbol = ( g_dwState == IMEUI_STATE_ON ) ? g_pszIndicatior : g_aszIndicator[0]; gSkinIME.symbolFont->GetTextExtent( cszSymbol, &w, &h ); gSkinIME.symbolFont->SetPosition( ( int )( PieData[0].sx ) - w / 2, ( int )( PieData[0].sy ) - h / 2 ); gSkinIME.symbolFont->DrawText( cszSymbol ); #ifdef DS2 // revert the height. g_CaretInfo.pFont->SetHeight( _h ); // Double-check: Confirm match by testing a range of font heights to find best fit DWORD _h2; g_CaretInfo.pFont->GetTextExtent( TEXT(" "), &_w, &_h2 ); if ( _h2 < _h ) { for ( int i=1; _h2<_h && i<10; i++ ) { g_CaretInfo.pFont->SetHeight( _h+i ); g_CaretInfo.pFont->GetTextExtent( TEXT(" "), &_w, &_h2 ); } } else if ( _h2 > _h ) { for ( int i=1; _h2>_h && i<10; i++ ) { g_CaretInfo.pFont->SetHeight( _h-i ); g_CaretInfo.pFont->GetTextExtent( TEXT(" "), &_w, &_h2 ); } } #endif //DS2 } } static void <API key>( _In_ bool bDrawCompAttr ) { // Process timer for caret blink UINT uCurrentTime = GetTickCount(); if( uCurrentTime - g_uCaretBlinkLast > g_uCaretBlinkTime ) { g_uCaretBlinkLast = uCurrentTime; g_bCaretDraw = !g_bCaretDraw; } int i = 0; g_CaretInfo.pFont->SetColor( g_CaretInfo.colorComp ); DWORD uDummy; int len = (int)wcslen( <API key> ); DWORD bgX = g_CaretInfo.caretX; DWORD bgY = g_CaretInfo.caretY; g_dwCaretX = <API key>; g_dwCaretY = <API key>; DWORD candX = <API key>; DWORD candY = 0; LPTSTR pszMlcs = <API key>; DWORD wCompChar = 0; DWORD hCompChar = 0; g_CaretInfo.pFont->GetTextExtent( TEXT( " " ), &uDummy, &hCompChar ); if( g_dwIMELevel == 3 && g_IMECursorBytes && <API key>[0] ) { // shift starting point of drawing composition string according to the current caret position. TCHAR temp = <API key>[g_IMECursorBytes]; <API key>[g_IMECursorBytes] = 0; g_CaretInfo.pFont->GetTextExtent( <API key>, &wCompChar, &hCompChar ); <API key>[g_IMECursorBytes] = temp; bgX -= wCompChar; } // Draw the background colors for IME text nuggets bool saveCandPos = false; DWORD cType = 1; LPTSTR pszCurrentCompLine = <API key>; DWORD dwCompLineStart = bgX; DWORD bgXnext = bgX; if( GETPRIMLANG() != LANG_KOREAN || g_bCaretDraw ) // Korean uses composition attribute as blinking block caret for( i = 0; i < len; i += cType ) { DWORD bgColor = 0x00000000; TCHAR szChar[3]; szChar[0] = <API key>[i]; szChar[1] = szChar[2] = 0; bgX = bgXnext; TCHAR cSave = <API key>[i + cType]; <API key>[i + cType] = 0; g_CaretInfo.pFont->GetTextExtent( pszCurrentCompLine, &bgXnext, &hCompChar ); <API key>[i + cType] = cSave; bgXnext += dwCompLineStart; wCompChar = bgXnext - bgX; switch( g_szCompAttrString[i] ) { case ATTR_INPUT: bgColor = gSkinCompStr.colorInput; break; case <API key>: bgColor = gSkinCompStr.colorTargetConv; if( IMEID_LANG( GetImeId() ) != LANG_CHS ) saveCandPos = true; break; case ATTR_CONVERTED: bgColor = gSkinCompStr.colorConverted; break; case <API key>: // This is the one the user is working with currently bgColor = gSkinCompStr.colorTargetNotConv; break; case ATTR_INPUT_ERROR: bgColor = gSkinCompStr.colorInputErr; break; default: // STOP( TEXT( "Attributes on IME characters are wrong" ) ); break; } if( g_dwIMELevel == 3 && bDrawCompAttr ) { if( ( LONG )bgX >= g_CaretInfo.margins.left && ( LONG )bgX <= g_CaretInfo.margins.right ) { if( g_dwImeUiFlags & <API key> ) { if( <API key> ) <API key>( bgX, bgY, bgX + wCompChar, bgY + hCompChar, bgColor ); } else { if( <API key> ) <API key>( bgX - wCompChar, bgY, bgX, bgY + hCompChar, bgColor ); } } } else if( g_dwIMELevel == 2 ) { // make sure enough buffer space (possible space, NUL for current line, possible DBCS, 2 more NUL) // are available in multiline composition string buffer bool bWrite = ( pszMlcs - <API key> < COUNTOF( <API key> ) - 5 * ( 3 - sizeof( TCHAR ) ) ); if( ( LONG )( bgX + wCompChar ) >= g_CaretInfo.margins.right ) { bgX = dwCompLineStart = bgXnext = g_CaretInfo.margins.left; bgY = bgY + hCompChar; pszCurrentCompLine = <API key> + i; if( bWrite ) { if( pszMlcs == <API key> || pszMlcs[-1] == 0 ) *pszMlcs++ = ' '; // to avoid zero length line *pszMlcs++ = 0; } } if( <API key> ) <API key>( bgX, bgY, bgX + wCompChar, bgY + hCompChar, bgColor ); if( bWrite ) { *pszMlcs++ = <API key>[i]; } if( ( DWORD )i == g_IMECursorBytes ) { g_dwCaretX = bgX; g_dwCaretY = bgY; } } if( ( saveCandPos && candX == <API key> ) || ( IMEID_LANG( GetImeId() ) == LANG_CHS && i / ( 3 - sizeof( TCHAR ) ) == ( int )g_IMECursorChars ) ) { candX = bgX; candY = bgY; } saveCandPos = false; } bgX = bgXnext; if( g_dwIMELevel == 2 ) { // in case the caret in composition string is at the end of it, draw it here if( len != 0 && ( DWORD )i == g_IMECursorBytes ) { g_dwCaretX = bgX; g_dwCaretY = bgY; } // Draw composition string. //assert(pszMlcs - <API key> <= // sizeof(<API key>) / sizeof(<API key>[0]) - 2); *pszMlcs++ = 0; *pszMlcs++ = 0; DWORD x, y; x = g_CaretInfo.caretX; y = g_CaretInfo.caretY; pszMlcs = <API key>; while( *pszMlcs && pszMlcs - <API key> < sizeof( <API key> ) / sizeof ( <API key>[0] ) ) { g_CaretInfo.pFont->SetPosition( x, y ); g_CaretInfo.pFont->DrawText( pszMlcs ); pszMlcs += wcslen( pszMlcs ) + 1; x = g_CaretInfo.margins.left; y += hCompChar; } } // for changing z-order of caret if( g_dwCaretX != <API key> && g_dwCaretY != <API key> ) { DrawCaret( g_dwCaretX, g_dwCaretY, hCompChar ); } g_dwCandX = candX; g_dwCandY = candY; g_hCompChar = hCompChar; } static void DrawCandidateList() { assert( g_CaretInfo.pFont != nullptr ); _Analysis_assume_( g_CaretInfo.pFont != nullptr ); DWORD candX = g_dwCandX; DWORD candY = g_dwCandY; DWORD hCompChar = g_hCompChar; int i; // draw candidate list / reading window if( !g_dwCount || g_szCandidate[0][0] == 0 ) { return; } // If position of candidate list is not initialized yet, set it here. if( candX == <API key> ) { // CHT IME in Vista doesn't have <API key> attribute while typing, // so display the candidate list near the caret in the composition string if( GETLANG() == LANG_CHT && GetImeId() != 0 && g_dwCaretX != <API key> ) { candX = g_dwCaretX; candY = g_dwCaretY; } else { candX = g_CaretInfo.caretX; candY = g_CaretInfo.caretY; } } SIZE largest = { 0,0 }; static DWORD uDigitWidth = 0; DWORD uSpaceWidth = 0; static DWORD uDigitWidthList[10]; static CImeUiFont_Base* pPrevFont = nullptr; // find out the widest width of the digits if( pPrevFont != g_CaretInfo.pFont ) { pPrevFont = g_CaretInfo.pFont; for( int cnt = 0; cnt <= 9; cnt++ ) { DWORD uDW = 0; DWORD uDH = 0; TCHAR ss[8]; swprintf_s( ss, COUNTOF(ss), TEXT( "%d" ), cnt ); g_CaretInfo.pFont->GetTextExtent( ss, &uDW, &uDH ); uDigitWidthList[cnt] = uDW; if( uDW > uDigitWidth ) uDigitWidth = uDW; if( ( signed )uDH > largest.cy ) largest.cy = uDH; } } uSpaceWidth = uDigitWidth; DWORD dwMarginX = ( uSpaceWidth + 1 ) / 2; DWORD adwCandWidth[ MAX_CANDLIST ]; // Find out the widest width of the candidate strings DWORD dwCandWidth = 0; if( g_bReadingWindow && <API key> ) g_CaretInfo.pFont->GetTextExtent( g_szReadingString, ( DWORD* )&largest.cx, ( DWORD* )&largest.cy ); else { for( i = 0; g_szCandidate[i][0] && i < ( int )g_uCandPageSize; i++ ) { DWORD tx = 0; DWORD ty = 0; if( g_bReadingWindow ) g_CaretInfo.pFont->GetTextExtent( g_szCandidate[i], &tx, &ty ); else { if( g_bVerticalCand ) g_CaretInfo.pFont->GetTextExtent( g_szCandidate[i] + 2, &tx, &ty ); else g_CaretInfo.pFont->GetTextExtent( g_szCandidate[i] + 1, &tx, &ty ); tx = tx + uDigitWidth + uSpaceWidth; } if( ( signed )tx > largest.cx ) largest.cx = tx; if( ( signed )ty > largest.cy ) largest.cy = ty; adwCandWidth[ i ] = tx; dwCandWidth += tx; } } DWORD slotsUsed; if( g_bReadingWindow && g_dwCount < g_uCandPageSize ) slotsUsed = g_dwCount; else slotsUsed = g_uCandPageSize; // Show candidate list above composition string if there isn't enough room below. DWORD dwCandHeight; if( g_bVerticalCand && !( g_bReadingWindow && <API key> ) ) dwCandHeight = slotsUsed * largest.cy + 2; else dwCandHeight = largest.cy + 2; if( candY + hCompChar + dwCandHeight > g_screenHeight ) candY -= dwCandHeight; else candY += hCompChar; if( ( int )candY < 0 ) candY = 0; // Move candidate list horizontally to keep it inside of screen if( !g_bReadingWindow && IMEID_LANG( GetImeId() ) == LANG_CHS ) dwCandWidth += dwMarginX * ( slotsUsed - 1 ); else if( g_bReadingWindow && <API key> ) dwCandWidth = largest.cx + 2 + dwMarginX * 2; else if( g_bVerticalCand || g_bReadingWindow ) dwCandWidth = largest.cx + 2 + dwMarginX * 2; else dwCandWidth = slotsUsed * ( largest.cx + 1 ) + 1; if( candX + dwCandWidth > g_screenWidth ) candX = g_screenWidth - dwCandWidth; if( ( int )candX < 0 ) candX = 0; // Draw frame and background of candidate list / reading window int seperateLineX = 0; int left = candX; int top = candY; int right = candX + dwCandWidth; int bottom = candY + dwCandHeight; if( <API key> ) <API key>( left, top, right, bottom, gSkinIME.candColorBorder ); left++; top++; right bottom if( g_bReadingWindow || IMEID_LANG( GetImeId() ) == LANG_CHS ) { if( <API key> ) <API key>( left, top, right, bottom, gSkinIME.candColorBase ); } else if( g_bVerticalCand ) { // uDigitWidth is the max width of all digits. if( !g_bReadingWindow ) { seperateLineX = left + dwMarginX + uDigitWidth + uSpaceWidth / 2; if( <API key> ) { <API key>( left, top, seperateLineX - 1, bottom, gSkinIME.candColorBase ); <API key>( seperateLineX, top, right, bottom, gSkinIME.candColorBase ); } } } else { for( i = 0; ( DWORD )i < slotsUsed; i++ ) { if( <API key> ) <API key>( left, top, left + largest.cx, bottom, gSkinIME.candColorBase ); left += largest.cx + 1; } } // Draw candidates / reading strings candX++; candY++; if( g_bReadingWindow && <API key> ) { int iStart = -1, iEnd = -1, iDummy; candX += dwMarginX; // draw background of error character if it exists TCHAR szTemp[COUNTOF( g_szReadingString ) ]; if( g_iReadingError >= 0 ) { wcscpy_s( szTemp, COUNTOF(szTemp), g_szReadingString ); LPTSTR psz = szTemp + g_iReadingError; psz++; *psz = 0; g_CaretInfo.pFont->GetTextExtent( szTemp, ( DWORD* )&iEnd, ( DWORD* )&iDummy ); TCHAR cSave = szTemp[ g_iReadingError ]; szTemp[g_iReadingError] = 0; g_CaretInfo.pFont->GetTextExtent( szTemp, ( DWORD* )&iStart, ( DWORD* )&iDummy ); szTemp[g_iReadingError] = cSave; if( <API key> ) <API key>( candX + iStart, candY, candX + iEnd, candY + largest.cy, gSkinIME.candColorBorder ); } g_CaretInfo.pFont->SetPosition( candX, candY ); g_CaretInfo.pFont->SetColor( g_CaretInfo.colorCand ); g_CaretInfo.pFont->DrawText( g_szReadingString ); // draw error character if it exists if( iStart >= 0 ) { g_CaretInfo.pFont->SetPosition( candX + iStart, candY ); if( gSkinIME.candColorBase != 0xffffffff || gSkinIME.candColorBorder != 0xff000000 ) g_CaretInfo.pFont->SetColor( g_CaretInfo.colorCand ); else g_CaretInfo.pFont->SetColor( 0xff000000 + ( ~( ( 0x00ffffff ) & g_CaretInfo.colorCand ) ) ); g_CaretInfo.pFont->DrawText( szTemp + g_iReadingError ); } } else { for( i = 0; i < ( int )g_uCandPageSize && ( DWORD )i < g_dwCount; i++ ) { if( g_dwSelection == ( DWORD )i ) { if( gSkinIME.candColorBase != 0xffffffff || gSkinIME.candColorBorder != 0xff000000 ) g_CaretInfo.pFont->SetColor( g_CaretInfo.colorCand ); else g_CaretInfo.pFont->SetColor( 0xff000000 + ( ~( ( 0x00ffffff ) & g_CaretInfo.colorCand ) ) ); if( <API key> ) { if( g_bReadingWindow || g_bVerticalCand ) <API key>( candX, candY + i * largest.cy, candX - 1 + dwCandWidth, candY + ( i + 1 ) * largest.cy, gSkinIME.candColorBorder ); else <API key>( candX, candY, candX + adwCandWidth[i], candY + largest.cy, gSkinIME.candColorBorder ); } } else g_CaretInfo.pFont->SetColor( g_CaretInfo.colorCand ); if( g_szCandidate[i][0] != 0 ) { if( !g_bReadingWindow && g_bVerticalCand ) { TCHAR szOneDigit[2] = { g_szCandidate[i][0], 0 }; int nOneDigit = g_szCandidate[i][0] - TEXT( '0' ); TCHAR* szCandidateBody = g_szCandidate[i] + 2; int dx = candX + ( seperateLineX - candX - uDigitWidthList[nOneDigit] ) / 2; int dy = candY + largest.cy * i; g_CaretInfo.pFont->SetPosition( dx, dy ); g_CaretInfo.pFont->DrawText( szOneDigit ); g_CaretInfo.pFont->SetPosition( seperateLineX + dwMarginX, dy ); g_CaretInfo.pFont->DrawText( szCandidateBody ); } else if( g_bReadingWindow ) { g_CaretInfo.pFont->SetPosition( dwMarginX + candX, candY + i * largest.cy ); g_CaretInfo.pFont->DrawText( g_szCandidate[i] ); } else { g_CaretInfo.pFont->SetPosition( uSpaceWidth / 2 + candX, candY ); g_CaretInfo.pFont->DrawText( g_szCandidate[i] ); } } if( !g_bReadingWindow && !g_bVerticalCand ) { if( IMEID_LANG( GetImeId() ) == LANG_CHS ) candX += adwCandWidth[i] + dwMarginX; else candX += largest.cx + 1; } } } } static void CloseCandidateList() { g_bCandList = false; if( !g_bReadingWindow ) // fix for Ent Gen #120. { g_dwCount = 0; memset( &g_szCandidate, 0, sizeof( g_szCandidate ) ); } } // ProcessIMEMessages() // Processes IME related messages and acquire information #pragma warning(push) #pragma warning( disable : 4616 6305 ) <API key> LPARAM <API key>( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM& lParam, bool* trapped ) { HIMC himc; int len; static LPARAM lAlt = 0x80000000, lCtrl = 0x80000000, lShift = 0x80000000; *trapped = false; if( !g_bInitialized || <API key> ) { return 0; } switch( uMsg ) { // IME Handling case WM_INPUTLANGCHANGE: OnInputLangChange(); break; case WM_IME_SETCONTEXT: // We don't want anything to display, so we have to clear lParam and pass it to DefWindowProc(). // Expecially important in Vista to receive IMN_CHANGECANDIDATE correctly. lParam = 0; break; case <API key>: InitCompStringData(); *trapped = true; break; case WM_IME_COMPOSITION: { LONG lRet; TCHAR szCompStr[COUNTOF(<API key>)]; *trapped = true; himc = ImmGetContext( hWnd ); if( !himc ) { break; } // ResultStr must be processed before composition string. if( lParam & GCS_RESULTSTR ) { lRet = ( LONG )<API key>( himc, GCS_RESULTSTR, szCompStr, COUNTOF( szCompStr ) ) / sizeof( TCHAR ); szCompStr[lRet] = 0; CancelCompString( g_hwndCurr, false, GetCharCount( szCompStr ) ); wcscpy_s( <API key>, COUNTOF(<API key>), szCompStr ); _SendCompString(); InitCompStringData(); } // Reads in the composition string. if( lParam & GCS_COMPSTR ) { // Retrieve the latest user-selected IME candidates lRet = ( LONG )<API key>( himc, GCS_COMPSTR, szCompStr, COUNTOF( szCompStr ) ) / sizeof( TCHAR ); szCompStr[lRet] = 0; // Remove the whole of the string CancelCompString( g_hwndCurr, false, GetCharCount( szCompStr ) ); wcscpy_s( <API key>, COUNTOF(<API key>), szCompStr ); lRet = <API key>( himc, GCS_COMPATTR, g_szCompAttrString, COUNTOF( g_szCompAttrString ) ); g_szCompAttrString[lRet] = 0; // Older CHT IME uses composition string for reading string if( GETLANG() == LANG_CHT && !GetImeId() ) { int i, chars = (int)wcslen( <API key> ) / ( 3 - sizeof( TCHAR ) ); if( chars ) { g_dwCount = 4; g_dwSelection = ( DWORD )-1; // don't select any candidate for( i = 3; i >= 0; i { if( i > chars - 1 ) g_szCandidate[i][0] = 0; else { g_szCandidate[i][0] = <API key>[i]; g_szCandidate[i][1] = 0; } } g_uCandPageSize = MAX_CANDLIST; memset( <API key>, 0, 8 ); g_bReadingWindow = true; <API key>( 0 ); if( <API key> ) { g_iReadingError = -1; g_szReadingString[0] = 0; for( i = 0; i < ( int )g_dwCount; i++ ) { if( g_dwSelection == ( DWORD )i ) g_iReadingError = (int)wcslen( g_szReadingString ); LPCTSTR pszTmp = g_szCandidate[i]; wcscat_s( g_szReadingString, COUNTOF(g_szReadingString), pszTmp ); } } } else g_dwCount = 0; } // get caret position in composition string g_IMECursorBytes = <API key>( himc, GCS_CURSORPOS, nullptr, 0 ); g_IMECursorChars = <API key>( <API key>, g_IMECursorBytes ); if( g_dwIMELevel == 3 ) { // send composition string via WM_CHAR _SendCompString(); // move caret to appropreate location len = GetCharCount( <API key> + g_IMECursorBytes ); SendControlKeys( VK_LEFT, len ); } } _ImmReleaseContext( hWnd, himc ); } break; case <API key>: CancelCompString( g_hwndCurr ); InitCompStringData(); break; case WM_IME_NOTIFY: switch( wParam ) { case <API key>: { // Disable CHT IME software keyboard. static bool bNoReentrance = false; if( LANG_CHT == GETLANG() && !bNoReentrance ) { bNoReentrance = true; DWORD dwConvMode, dwSentMode; <API key>( g_himcOrg, &dwConvMode, &dwSentMode ); const DWORD dwFlag = IME_CMODE_SOFTKBD | IME_CMODE_SYMBOL; if( dwConvMode & dwFlag ) <API key>( g_himcOrg, dwConvMode & ~dwFlag, dwSentMode ); } bNoReentrance = false; } // fall through case IMN_SETOPENSTATUS: if( g_bUILessMode ) break; CheckToggleState(); break; case IMN_OPENCANDIDATE: case IMN_CHANGECANDIDATE: if( g_bUILessMode ) { break; } { g_bCandList = true; *trapped = true; himc = _ImmGetContext( hWnd ); if( !himc ) break; LPCANDIDATELIST lpCandList; DWORD dwIndex, dwBufLen; g_bReadingWindow = false; dwIndex = 0; dwBufLen = _GetCandidateList( himc, dwIndex, &lpCandList ); if( dwBufLen ) { g_dwSelection = lpCandList->dwSelection; g_dwCount = lpCandList->dwCount; int startOfPage = 0; if( GETLANG() == LANG_CHS && GetImeId() ) { // MSPY (CHS IME) has variable number of candidates in candidate window // find where current page starts, and the size of current page const int maxCandChar = 18 * ( 3 - sizeof( TCHAR ) ); UINT cChars = 0; UINT i; for( i = 0; i < g_dwCount; i++ ) { UINT uLen = (int)wcslen( ( LPTSTR )( ( DWORD )lpCandList + lpCandList->dwOffset[i] ) ) + ( 3 - sizeof( TCHAR ) ); if( uLen + cChars > maxCandChar ) { if( i > g_dwSelection ) { break; } startOfPage = i; cChars = uLen; } else { cChars += uLen; } } g_uCandPageSize = i - startOfPage; } else { g_uCandPageSize = std::min<UINT>( lpCandList->dwPageSize, MAX_CANDLIST ); startOfPage = g_bUILessMode ? lpCandList->dwPageStart : ( g_dwSelection / g_uCandPageSize ) * g_uCandPageSize; } g_dwSelection = ( GETLANG() == LANG_CHS && !GetImeId() ) ? ( DWORD )-1 : g_dwSelection - startOfPage; memset( &g_szCandidate, 0, sizeof( g_szCandidate ) ); for( UINT i = startOfPage, j = 0; ( DWORD )i < lpCandList->dwCount && j < g_uCandPageSize; i++, j++ ) { <API key>( j, ( LPTSTR )( ( DWORD )lpCandList + lpCandList->dwOffset[i] ) ); } ImeUiCallback_Free( ( HANDLE )lpCandList ); _ImmReleaseContext( hWnd, himc ); // don't display selection in candidate list in case of Korean and old Chinese IME. if( GETPRIMLANG() == LANG_KOREAN || GETLANG() == LANG_CHT && !GetImeId() ) g_dwSelection = ( DWORD )-1; } break; } case IMN_CLOSECANDIDATE: if( g_bUILessMode ) { break; } CloseCandidateList(); *trapped = true; break; // Jun.16,2000 05:21 by yutaka. case IMN_PRIVATE: { if( !g_bCandList ) { GetReadingString( hWnd ); } // Trap some messages to hide reading window DWORD dwId = GetImeId(); switch( dwId ) { case IMEID_CHT_VER42: case IMEID_CHT_VER43: case IMEID_CHT_VER44: case IMEID_CHS_VER41: case IMEID_CHS_VER42: if( ( lParam == 1 ) || ( lParam == 2 ) ) { *trapped = true; } break; case IMEID_CHT_VER50: case IMEID_CHT_VER51: case IMEID_CHT_VER52: case IMEID_CHT_VER60: case IMEID_CHS_VER53: if( ( lParam == 16 ) || ( lParam == 17 ) || ( lParam == 26 ) || ( lParam == 27 ) || ( lParam == 28 ) ) { *trapped = true; } break; } } break; default: *trapped = true; break; } break; // fix for #15386 - When Text Service Framework is installed in Win2K, Alt+Shift and Ctrl+Shift combination (to switch // input locale / keyboard layout) doesn't send WM_KEYUP message for the key that is released first. We need to check // if these keys are actually up whenever we receive key up message for other keys. case WM_KEYUP: case WM_SYSKEYUP: if( !( lAlt & 0x80000000 ) && wParam != VK_MENU && ( GetAsyncKeyState( VK_MENU ) & 0x8000 ) == 0 ) { PostMessageA( GetFocus(), WM_KEYUP, ( WPARAM )VK_MENU, ( lAlt & 0x01ff0000 ) | 0xC0000001 ); } else if( !( lCtrl & 0x80000000 ) && wParam != VK_CONTROL && ( GetAsyncKeyState( VK_CONTROL ) & 0x8000 ) == 0 ) { PostMessageA( GetFocus(), WM_KEYUP, ( WPARAM )VK_CONTROL, ( lCtrl & 0x01ff0000 ) | 0xC0000001 ); } else if( !( lShift & 0x80000000 ) && wParam != VK_SHIFT && ( GetAsyncKeyState( VK_SHIFT ) & 0x8000 ) == 0 ) { PostMessageA( GetFocus(), WM_KEYUP, ( WPARAM )VK_SHIFT, ( lShift & 0x01ff0000 ) | 0xC0000001 ); } // fall through WM_KEYDOWN / WM_SYSKEYDOWN case WM_KEYDOWN: case WM_SYSKEYDOWN: { switch( wParam ) { case VK_MENU: lAlt = lParam; break; case VK_SHIFT: lShift = lParam; break; case VK_CONTROL: lCtrl = lParam; break; } } break; } return 0; } #pragma warning(pop) <API key> void <API key>( UINT x, UINT y ) { if( !g_bInitialized ) return; g_CaretInfo.caretX = x; g_CaretInfo.caretY = y; } <API key> void <API key>( CImeUiFont_Base* pFont, DWORD color, const RECT* prc ) { if( !g_bInitialized ) return; g_CaretInfo.pFont = pFont; g_CaretInfo.margins = *prc; if( 0 == gSkinIME.candColorText ) g_CaretInfo.colorCand = color; else g_CaretInfo.colorCand = gSkinIME.candColorText; if( 0 == gSkinIME.compColorText ) g_CaretInfo.colorComp = color; else g_CaretInfo.colorComp = gSkinIME.compColorText; } void ImeUi_SetState( _In_ DWORD dwState ) { if( !g_bInitialized ) return; HIMC himc; if( dwState == IMEUI_STATE_ON ) { ImeUi_EnableIme( true ); } himc = _ImmGetContext( g_hwndCurr ); if( himc ) { if( <API key> ) dwState = IMEUI_STATE_OFF; bool bOn = dwState == IMEUI_STATE_ON; // for non-Chinese IME switch( GETPRIMLANG() ) { case LANG_CHINESE: { // toggle Chinese IME DWORD dwId; DWORD dwConvMode = 0, dwSentMode = 0; if( ( g_bChineseIME && dwState == IMEUI_STATE_OFF ) || ( !g_bChineseIME && dwState != IMEUI_STATE_OFF ) ) { _ImmSimulateHotKey( g_hwndCurr, <API key> ); _PumpMessage(); } if( dwState != IMEUI_STATE_OFF ) { dwId = GetImeId(); if( dwId ) { <API key>( himc, &dwConvMode, &dwSentMode ); dwConvMode = ( dwState == IMEUI_STATE_ON ) ? ( dwConvMode | IME_CMODE_NATIVE ) : ( dwConvMode & ~IME_CMODE_NATIVE ); <API key>( himc, dwConvMode, dwSentMode ); } } break; } case LANG_KOREAN: // toggle Korean IME if( ( bOn && g_dwState != IMEUI_STATE_ON ) || ( !bOn && g_dwState == IMEUI_STATE_ON ) ) { _ImmSimulateHotKey( g_hwndCurr, IME_KHOTKEY_ENGLISH ); } break; case LANG_JAPANESE: _ImmSetOpenStatus( himc, bOn ); break; } _ImmReleaseContext( g_hwndCurr, himc ); CheckToggleState(); } } DWORD ImeUi_GetState() { if( !g_bInitialized ) return IMEUI_STATE_OFF; CheckToggleState(); return g_dwState; } void ImeUi_EnableIme( _In_ bool bEnable ) { if( !g_bInitialized || !g_hwndCurr ) return; if( <API key> ) bEnable = false; if( g_hwndCurr == g_hwndMain ) { HIMC himcDbg; himcDbg = <API key>( g_hwndCurr, bEnable? g_himcOrg : nullptr ); } g_bImeEnabled = bEnable; if( bEnable ) { CheckToggleState(); } CTsfUiLessMode::EnableUiUpdates( bEnable ); } bool ImeUi_IsEnabled() { return g_bImeEnabled; } bool ImeUi_Initialize(_In_ HWND hwnd, _In_ bool bDisable ) { if( g_bInitialized ) { return true; } g_hwndMain = hwnd; g_disableCicero.Initialize(); g_hImmDll = LoadLibraryEx( L"imm32.dll", nullptr, 0x00000800 /* <API key> */ ); <API key> = false; if( g_hImmDll ) { _ImmLockIMC = reinterpret_cast<LPINPUTCONTEXT2 ( WINAPI* )( HIMC hIMC )>( GetProcAddress( g_hImmDll, "ImmLockIMC" ) ); _ImmUnlockIMC = reinterpret_cast<BOOL ( WINAPI* )( HIMC hIMC )>( GetProcAddress( g_hImmDll, "ImmUnlockIMC" ) ); _ImmLockIMCC = reinterpret_cast<LPVOID ( WINAPI* )( HIMCC hIMCC )>( GetProcAddress( g_hImmDll, "ImmLockIMCC" ) ); _ImmUnlockIMCC = reinterpret_cast<BOOL ( WINAPI* )( HIMCC hIMCC )>( GetProcAddress( g_hImmDll, "ImmUnlockIMCC" ) ); BOOL ( WINAPI* <API key> )( DWORD ) = reinterpret_cast<BOOL ( WINAPI* )( DWORD )>( GetProcAddress( g_hImmDll, "<API key>" ) ); if( <API key> ) { <API key>( ( DWORD )-1 ); } } else { <API key> = true; return false; } <API key> = <API key>; <API key> = <API key>; _GetCandidateList = GetCandidateList; _SendCompString = SendCompString; _SendMessage = SendMessageW; // turn init flag on so that subsequent calls to ImeUi functions work. g_bInitialized = true; ImeUi_SetWindow( g_hwndMain ); g_himcOrg = _ImmGetContext( g_hwndMain ); _ImmReleaseContext( g_hwndMain, g_himcOrg ); if( !g_himcOrg ) { bDisable = true; } // the following pointers to function has to be initialized before this function is called. if( bDisable || !<API key> || !ImeUiCallback_Free ) { <API key> = true; ImeUi_EnableIme( false ); g_bInitialized = bDisable; return false; } g_uCaretBlinkTime = GetCaretBlinkTime(); g_CaretInfo.caretX = 0; g_CaretInfo.caretY = 0; g_CaretInfo.pFont = 0; g_CaretInfo.colorComp = 0; g_CaretInfo.colorCand = 0; g_CaretInfo.margins.left = 0; g_CaretInfo.margins.right = 640; g_CaretInfo.margins.top = 0; g_CaretInfo.margins.bottom = 480; CheckInputLocale(); <API key>(); <API key>( 2 ); // SetupTSFSinks has to be called before CheckToggleState to make it work correctly. g_bUILessMode = CTsfUiLessMode::SetupSinks() != FALSE; CheckToggleState(); if( g_bUILessMode ) { g_bChineseIME = ( GETPRIMLANG() == LANG_CHINESE ) && CTsfUiLessMode::<API key>(); CTsfUiLessMode::UpdateImeState(); } ImeUi_EnableIme( false ); return true; } void ImeUi_Uninitialize() { if( !g_bInitialized ) { return; } CTsfUiLessMode::ReleaseSinks(); if( g_hwndMain ) { ImmAssociateContext( g_hwndMain, g_himcOrg ); } g_hwndMain = nullptr; g_himcOrg = nullptr; if( g_hImmDll ) { FreeLibrary( g_hImmDll ); g_hImmDll = nullptr; } g_disableCicero.Uninitialize(); g_bInitialized = false; } // GetImeId( UINT uIndex ) // returns // returned value: // 0: In the following cases // - Non Chinese IME input locale // - Older Chinese IME // - Other error cases // Othewise: // When uIndex is 0 (default) // bit 31-24: Major version // bit 23-16: Minor version // bit 15-0: Language ID // When uIndex is 1 // pVerFixedInfo->dwFileVersionLS // Use IMEID_VER and IMEID_LANG macro to extract version and language information. static DWORD GetImeId( _In_ UINT uIndex ) { static HKL hklPrev = 0; static DWORD dwRet[2] = { 0, 0 }; DWORD dwVerSize; DWORD dwVerHandle; LPVOID lpVerBuffer; LPVOID lpVerData; UINT cbVerData; char szTmp[1024]; if( uIndex >= sizeof( dwRet ) / sizeof( dwRet[0] ) ) return 0; HKL kl = g_hklCurrent; if( hklPrev == kl ) { return dwRet[uIndex]; } hklPrev = kl; DWORD dwLang = ( ( DWORD )kl & 0xffff ); if( g_bUILessMode && GETLANG() == LANG_CHT ) { // In case of Vista, artifitial value is returned so that it's not considered as older IME. dwRet[0] = IMEID_CHT_VER_VISTA; dwRet[1] = 0; return dwRet[0]; } if( kl != <API key> && kl != <API key> && kl != _CHT_HKL_NEW_QUICK && kl != <API key> && kl != _CHS_HKL ) { goto error; } if( _ImmGetIMEFileNameA( kl, szTmp, sizeof( szTmp ) - 1 ) <= 0 ) { goto error; } if( !_GetReadingString ) // IME that doesn't implement private API { #define LCID_INVARIANT MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT) if( ( CompareStringA( LCID_INVARIANT, NORM_IGNORECASE, szTmp, -1, _CHT_IMEFILENAME, -1 ) != 2 ) && ( CompareStringA( LCID_INVARIANT, NORM_IGNORECASE, szTmp, -1, _CHT_IMEFILENAME2, -1 ) != 2 ) && ( CompareStringA( LCID_INVARIANT, NORM_IGNORECASE, szTmp, -1, _CHT_IMEFILENAME3, -1 ) != 2 ) && ( CompareStringA( LCID_INVARIANT, NORM_IGNORECASE, szTmp, -1, _CHS_IMEFILENAME, -1 ) != 2 ) && ( CompareStringA( LCID_INVARIANT, NORM_IGNORECASE, szTmp, -1, _CHS_IMEFILENAME2, -1 ) != 2 ) ) { goto error; } } dwVerSize = <API key>( szTmp, &dwVerHandle ); if( dwVerSize ) { lpVerBuffer = ( LPVOID )<API key>( dwVerSize ); if( lpVerBuffer ) { if( GetFileVersionInfoA( szTmp, 0, dwVerSize, lpVerBuffer ) ) { if( VerQueryValueA( lpVerBuffer, "\\", &lpVerData, &cbVerData ) ) { #define pVerFixedInfo ((VS_FIXEDFILEINFO FAR*)lpVerData) DWORD dwVer = pVerFixedInfo->dwFileVersionMS; dwVer = ( dwVer & 0x00ff0000 ) << 8 | ( dwVer & 0x000000ff ) << 16; if( _GetReadingString || dwLang == LANG_CHT && ( dwVer == MAKEIMEVERSION(4, 2) || dwVer == MAKEIMEVERSION(4, 3) || dwVer == MAKEIMEVERSION(4, 4) || dwVer == MAKEIMEVERSION(5, 0) || dwVer == MAKEIMEVERSION(5, 1) || dwVer == MAKEIMEVERSION(5, 2) || dwVer == MAKEIMEVERSION(6, 0) ) || dwLang == LANG_CHS && ( dwVer == MAKEIMEVERSION(4, 1) || dwVer == MAKEIMEVERSION(4, 2) || dwVer == MAKEIMEVERSION(5, 3) ) ) { dwRet[0] = dwVer | dwLang; dwRet[1] = pVerFixedInfo->dwFileVersionLS; ImeUiCallback_Free( lpVerBuffer ); return dwRet[0]; } #undef pVerFixedInfo } } ImeUiCallback_Free( lpVerBuffer ); } } // The flow comes here in the following conditions // - Non Chinese IME input locale // - Older Chinese IME // - Other error cases error: dwRet[0] = dwRet[1] = 0; return dwRet[uIndex]; } static void GetReadingString( _In_ HWND hWnd ) { if( g_bUILessMode ) { return; } DWORD dwId = GetImeId(); if( !dwId ) { return; } HIMC himc; himc = _ImmGetContext( hWnd ); if( !himc ) return; DWORD dwlen = 0; DWORD dwerr = 0; WCHAR wzBuf[16]; // We believe 16 wchars are big enough to hold reading string after having discussion with CHT IME team. WCHAR* wstr = wzBuf; bool unicode = FALSE; LPINPUTCONTEXT2 lpIMC = nullptr; if( _GetReadingString ) { BOOL bVertical; UINT uMaxUiLen; dwlen = _GetReadingString( himc, 0, nullptr, ( PINT )&dwerr, &bVertical, &uMaxUiLen ); if( dwlen ) { if( dwlen > COUNTOF(wzBuf) ) { dwlen = COUNTOF(wzBuf); } dwlen = _GetReadingString( himc, dwlen, wstr, ( PINT )&dwerr, &bVertical, &uMaxUiLen ); } <API key> = bVertical == 0; unicode = true; } else // IMEs that doesn't implement Reading String API { lpIMC = _ImmLockIMC( himc ); LPBYTE p = 0; switch( dwId ) { case IMEID_CHT_VER42: // New(Phonetic/ChanJie)IME98 : 4.2.x.x // Win98 case IMEID_CHT_VER43: // New(Phonetic/ChanJie)IME98a : 4.3.x.x // WinMe, Win2k case IMEID_CHT_VER44: // New ChanJie IME98b : 4.4.x.x // WinXP p = *( LPBYTE* )( ( LPBYTE )_ImmLockIMCC( lpIMC->hPrivate ) + 24 ); if( !p ) break; dwlen = *( DWORD* )( p + 7 * 4 + 32 * 4 ); //m_dwInputReadStrLen dwerr = *( DWORD* )( p + 8 * 4 + 32 * 4 ); //<API key> wstr = ( WCHAR* )( p + 56 ); unicode = TRUE; break; case IMEID_CHT_VER50: // 5.0.x.x // WinME p = *( LPBYTE* )( ( LPBYTE )_ImmLockIMCC( lpIMC->hPrivate ) + 3 * 4 ); // PCKeyCtrlManager if( !p ) break; p = *( LPBYTE* )( ( LPBYTE )p + 1 * 4 + 5 * 4 + 4 * 2 ); // = PCReading = &STypingInfo if( !p ) break; dwlen = *( DWORD* )( p + 1 * 4 + ( 16 * 2 + 2 * 4 ) + 5 * 4 + 16 ); //<API key>; dwerr = *( DWORD* )( p + 1 * 4 + ( 16 * 2 + 2 * 4 ) + 5 * 4 + 16 + 1 * 4 ); //<API key>; wstr = ( WCHAR* )( p + 1 * 4 + ( 16 * 2 + 2 * 4 ) + 5 * 4 ); unicode = FALSE; break; case IMEID_CHT_VER51: // 5.1.x.x // IME2002(w/OfficeXP) case IMEID_CHT_VER52: // 5.2.x.x // (w/whistler) case IMEID_CHS_VER53: // 5.3.x.x // SCIME2k or MSPY3 (w/OfficeXP and Whistler) p = *( LPBYTE* )( ( LPBYTE )_ImmLockIMCC( lpIMC->hPrivate ) + 4 ); // PCKeyCtrlManager if( !p ) break; p = *( LPBYTE* )( ( LPBYTE )p + 1 * 4 + 5 * 4 ); // = PCReading = &STypingInfo if( !p ) break; dwlen = *( DWORD* )( p + 1 * 4 + ( 16 * 2 + 2 * 4 ) + 5 * 4 + 16 * 2 ); //<API key>; dwerr = *( DWORD* )( p + 1 * 4 + ( 16 * 2 + 2 * 4 ) + 5 * 4 + 16 * 2 + 1 * 4 ); //<API key>; wstr = ( WCHAR* )( p + 1 * 4 + ( 16 * 2 + 2 * 4 ) + 5 * 4 ); unicode = TRUE; break; // the code tested only with Win 98 SE (MSPY 1.5/ ver 4.1.0.21) case IMEID_CHS_VER41: { int offset; offset = ( GetImeId( 1 ) >= 0x00000002 ) ? 8 : 7; p = *( LPBYTE* )( ( LPBYTE )_ImmLockIMCC( lpIMC->hPrivate ) + offset * 4 ); if( !p ) break; dwlen = *( DWORD* )( p + 7 * 4 + 16 * 2 * 4 ); dwerr = *( DWORD* )( p + 8 * 4 + 16 * 2 * 4 ); dwerr = std::min( dwerr, dwlen ); wstr = ( WCHAR* )( p + 6 * 4 + 16 * 2 * 1 ); unicode = TRUE; break; } case IMEID_CHS_VER42: // 4.2.x.x // SCIME98 or MSPY2 (w/Office2k, Win2k, WinME, etc) { int nTcharSize = IsNT() ? sizeof( WCHAR ) : sizeof( char ); p = *( LPBYTE* )( ( LPBYTE )_ImmLockIMCC( lpIMC->hPrivate ) + 1 * 4 + 1 * 4 + 6 * 4 ); // = PCReading = &STypintInfo if( !p ) break; dwlen = *( DWORD* )( p + 1 * 4 + ( 16 * 2 + 2 * 4 ) + 5 * 4 + 16 * nTcharSize ); //<API key>; dwerr = *( DWORD* )( p + 1 * 4 + ( 16 * 2 + 2 * 4 ) + 5 * 4 + 16 * nTcharSize + 1 * 4 ); //<API key>; wstr = ( WCHAR* )( p + 1 * 4 + ( 16 * 2 + 2 * 4 ) + 5 * 4 ); //m_tszDisplayString unicode = IsNT() ? TRUE : FALSE; } } // switch g_szCandidate[0][0] = 0; g_szCandidate[1][0] = 0; g_szCandidate[2][0] = 0; g_szCandidate[3][0] = 0; } g_dwCount = dwlen; g_dwSelection = ( DWORD )-1; // do not select any char if( unicode ) { int i; for( i = 0; ( DWORD )i < dwlen; i++ ) // dwlen > 0, if known IME : yutakah { if( dwerr <= ( DWORD )i && g_dwSelection == ( DWORD )-1 ) { // select error char g_dwSelection = i; } g_szCandidate[i][0] = wstr[i]; g_szCandidate[i][1] = 0; } g_szCandidate[i][0] = 0; } else { char* p = ( char* )wstr; int i, j; for( i = 0, j = 0; ( DWORD )i < dwlen; i++, j++ ) // dwlen > 0, if known IME : yutakah { if( dwerr <= ( DWORD )i && g_dwSelection == ( DWORD )-1 ) { g_dwSelection = ( DWORD )j; } MultiByteToWideChar( g_uCodePage, 0, p + i, 1 + ( _IsLeadByte( p[i] ) ? 1 : 0 ), g_szCandidate[j], 1 ); if ( _IsLeadByte( p[i] ) ) { i++; } } g_szCandidate[j][0] = 0; g_dwCount = j; } if( !_GetReadingString ) { _ImmUnlockIMCC( lpIMC->hPrivate ); _ImmUnlockIMC( himc ); <API key>( dwId ); } _ImmReleaseContext( hWnd, himc ); g_bReadingWindow = true; if( <API key> ) { g_iReadingError = -1; g_szReadingString[0] = 0; for( UINT i = 0; i < g_dwCount; i++ ) { if( g_dwSelection == ( DWORD )i ) g_iReadingError = (int)wcslen( g_szReadingString ); LPCTSTR pszTmp = g_szCandidate[i]; wcscat_s( g_szReadingString, COUNTOF(g_szReadingString), pszTmp ); } } g_uCandPageSize = MAX_CANDLIST; } static struct { bool m_bCtrl; bool m_bShift; bool m_bAlt; UINT m_uVk; } aHotKeys[] = { false, false, false, VK_APPS, true, false, false, '8', true, false, false, 'Y', true, false, false, VK_DELETE, true, false, false, VK_F7, true, false, false, VK_F9, true, false, false, VK_F10, true, false, false, VK_F11, true, false, false, VK_F12, false, false, false, VK_F2, false, false, false, VK_F3, false, false, false, VK_F4, false, false, false, VK_F5, false, false, false, VK_F10, false, true, false, VK_F6, false, true, false, VK_F7, false, true, false, VK_F8, true, true, false, VK_F10, true, true, false, VK_F11, true, false, false, VK_CONVERT, true, false, false, VK_SPACE, true, false, true, 0xbc, // Alt + Ctrl + ',': SW keyboard for Trad. Chinese IME true, false, false, VK_TAB, // ATOK2005's Ctrl+TAB }; // Ignores specific keys when IME is on. Returns true if the message is a hot key to ignore. // - Caller doesn't have to check whether IME is on. // - This function must be called before TranslateMessage() is called. bool ImeUi_IgnoreHotKey( _In_ const MSG* pmsg ) { if( !g_bInitialized || !pmsg ) return false; if( pmsg->wParam == VK_PROCESSKEY && ( pmsg->message == WM_KEYDOWN || pmsg->message == WM_SYSKEYDOWN ) ) { bool bCtrl, bShift, bAlt; UINT uVkReal = _ImmGetVirtualKey( pmsg->hwnd ); // special case #1 - VK_JUNJA toggles half/full width input mode in Korean IME. // This VK (sent by Alt+'=' combo) is ignored regardless of the modifier state. if( uVkReal == VK_JUNJA ) { return true; } // special case #2 - disable right arrow key that switches the candidate list to expanded mode in CHT IME. if( uVkReal == VK_RIGHT && g_bCandList && GETLANG() == LANG_CHT ) { return true; } #ifndef ENABLE_HANJA_KEY // special case #3 - we disable VK_HANJA key because 1. some Korean fonts don't Hanja and 2. to reduce testing cost. if( uVkReal == VK_HANJA && GETPRIMLANG() == LANG_KOREAN ) { return true; } #endif bCtrl = ( GetKeyState( VK_CONTROL ) & 0x8000 ) ? true : false; bShift = ( GetKeyState( VK_SHIFT ) & 0x8000 ) ? true : false; bAlt = ( GetKeyState( VK_MENU ) & 0x8000 ) ? true : false; for( int i = 0; i < COUNTOF(aHotKeys); i++ ) { if( aHotKeys[i].m_bCtrl == bCtrl && aHotKeys[i].m_bShift == bShift && aHotKeys[i].m_bAlt == bAlt && aHotKeys[i].m_uVk == uVkReal ) return true; } } return false; } void <API key>( _In_ bool bSend ) { HIMC himc; static bool bProcessing = false; // to avoid infinite recursion if( !g_bInitialized || bProcessing ) return; himc = _ImmGetContext( g_hwndCurr ); if ( !himc ) return; bProcessing = true; if( g_dwIMELevel == 2 && bSend ) { // Send composition string to app. LONG lRet = (int)wcslen( <API key> ); assert( lRet >= 2 ); // In case of CHT IME, don't send the trailing double byte space, if it exists. if ( GETLANG() == LANG_CHT && (lRet >= 1) && <API key>[lRet - 1] == 0x3000 ) { lRet } _SendCompString(); } InitCompStringData(); // clear composition string in IME _ImmNotifyIME( himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0 ); if( g_bUILessMode ) { // For some reason ImmNotifyIME doesn't work on DaYi and Array CHT IMEs. Cancel composition string by setting zero-length string. <API key>( himc, SCS_SETSTR, TEXT( "" ), sizeof( TCHAR ), TEXT( "" ), sizeof( TCHAR ) ); } // the following line is necessary as Korean IME doesn't close cand list when comp string is cancelled. _ImmNotifyIME( himc, NI_CLOSECANDIDATE, 0, 0 ); _ImmReleaseContext( g_hwndCurr, himc ); // Zooty2 RAID #4759: Sometimes application doesn't receive IMN_CLOSECANDIDATE on Alt+Tab // So the same code for IMN_CLOSECANDIDATE is replicated here. CloseCandidateList(); bProcessing = false; return; } static void SetCompStringColor() { // change color setting according to current IME level. DWORD dwTranslucency = ( g_dwIMELevel == 2 ) ? 0xff000000 : ( ( DWORD )gSkinIME.compTranslucence << 24 ); gSkinCompStr.colorInput = dwTranslucency | gSkinIME.compColorInput; gSkinCompStr.colorTargetConv = dwTranslucency | gSkinIME.compColorTargetConv; gSkinCompStr.colorConverted = dwTranslucency | gSkinIME.compColorConverted; gSkinCompStr.colorTargetNotConv = dwTranslucency | gSkinIME.<API key>; gSkinCompStr.colorInputErr = dwTranslucency | gSkinIME.compColorInputErr; } static void SetSupportLevel( _In_ DWORD dwImeLevel ) { if( dwImeLevel < 2 || 3 < dwImeLevel ) return; if( GETPRIMLANG() == LANG_KOREAN ) { dwImeLevel = 3; } g_dwIMELevel = dwImeLevel; // cancel current composition string. <API key>(); SetCompStringColor(); } void <API key>( _In_ DWORD dwImeLevel ) { if( !g_bInitialized ) return; g_dwIMELevelSaved = dwImeLevel; SetSupportLevel( dwImeLevel ); } void ImeUi_SetAppearance( _In_opt_ const IMEUI_APPEARANCE* pia ) { if( !g_bInitialized || !pia ) return; gSkinIME = *pia; gSkinIME.symbolColor &= 0xffffff; // mask translucency gSkinIME.symbolColorOff &= 0xffffff; // mask translucency gSkinIME.symbolColorText &= 0xffffff; // mask translucency gSkinIME.compColorInput &= 0xffffff; // mask translucency gSkinIME.compColorTargetConv &= 0xffffff; // mask translucency gSkinIME.compColorConverted &= 0xffffff; // mask translucency gSkinIME.<API key> &= 0xffffff; // mask translucency gSkinIME.compColorInputErr &= 0xffffff; // mask translucency SetCompStringColor(); } void ImeUi_GetAppearance( _Out_opt_ IMEUI_APPEARANCE* pia ) { if ( pia ) { if ( g_bInitialized ) { *pia = gSkinIME; } else { memset( pia, 0, sizeof(IMEUI_APPEARANCE) ); } } } static void CheckToggleState() { CheckInputLocale(); // In Vista, we have to use TSF since few IMM functions don't work as expected. // WARNING: Because of timing, g_dwState and g_bChineseIME may not be updated // immediately after the change on IME states by user. if( g_bUILessMode ) { return; } bool bIme = _ImmIsIME( g_hklCurrent ) != 0 && ( ( 0xF0000000 & ( DWORD )g_hklCurrent ) == 0xE0000000 ); // Hack to detect IME correctly. When IME is running as TIP, ImmIsIME() returns true for CHT US keyboard. g_bChineseIME = ( GETPRIMLANG() == LANG_CHINESE ) && bIme; HIMC himc = _ImmGetContext( g_hwndCurr ); if( himc ) { if( g_bChineseIME ) { DWORD dwConvMode, dwSentMode; <API key>( himc, &dwConvMode, &dwSentMode ); g_dwState = ( dwConvMode & IME_CMODE_NATIVE ) ? IMEUI_STATE_ON : IMEUI_STATE_ENGLISH; } else { g_dwState = ( bIme && _ImmGetOpenStatus( himc ) != 0 ) ? IMEUI_STATE_ON : IMEUI_STATE_OFF; } _ImmReleaseContext( g_hwndCurr, himc ); } else g_dwState = IMEUI_STATE_OFF; } void ImeUi_SetInsertMode( _In_ bool bInsert ) { if( !g_bInitialized ) return; g_bInsertMode = bInsert; } bool <API key>() { return !g_bInitialized || !<API key>[0]; } void <API key>( _In_ UINT width, _In_ UINT height ) { if( !g_bInitialized ) return; g_screenWidth = width; g_screenHeight = height; } // this function is used only in brief time in CHT IME handling, so accelerator isn't processed. static void _PumpMessage() { MSG msg; while( PeekMessageA( &msg, nullptr, 0, 0, PM_NOREMOVE ) ) { if( !GetMessageA( &msg, nullptr, 0, 0 ) ) { PostQuitMessage( msg.wParam ); return; } // if (0 == <API key>(msg.hwnd, hAccelTable, &msg)) { TranslateMessage( &msg ); DispatchMessageA( &msg ); } } static void <API key>( _In_ DWORD dwId ) { <API key> = ( g_hklCurrent == _CHS_HKL ) || ( g_hklCurrent == <API key> ) || ( dwId == 0 ); if( !<API key> && IMEID_LANG( dwId ) == LANG_CHT ) { char szRegPath[MAX_PATH]; HKEY hkey; DWORD dwVer = IMEID_VER( dwId ); strcpy_s( szRegPath, COUNTOF(szRegPath), "software\\microsoft\\windows\\currentversion\\" ); strcat_s( szRegPath, COUNTOF(szRegPath), ( dwVer >= MAKEIMEVERSION(5, 1) ) ? "MSTCIPH" : "TINTLGNT" ); LONG lRc = RegOpenKeyExA( HKEY_CURRENT_USER, szRegPath, 0, KEY_READ, &hkey ); if( lRc == ERROR_SUCCESS ) { DWORD dwSize = sizeof( DWORD ), dwMapping, dwType; lRc = RegQueryValueExA( hkey, "keyboard mapping", nullptr, &dwType, ( PBYTE )&dwMapping, &dwSize ); if( lRc == ERROR_SUCCESS ) { if( ( dwVer <= MAKEIMEVERSION( 5, 0 ) && ( ( BYTE )dwMapping == 0x22 || ( BYTE )dwMapping == 0x23 ) ) || ( ( dwVer == MAKEIMEVERSION( 5, 1 ) || dwVer == MAKEIMEVERSION( 5, 2 ) ) && ( ( BYTE )dwMapping >= 0x22 && ( BYTE )dwMapping <= 0x24 ) ) ) { <API key> = true; } } RegCloseKey( hkey ); } } } void <API key>( _In_ BOOL bRestore ) { static BOOL prevRestore = TRUE; bool bCheck = ( prevRestore == TRUE || bRestore == TRUE ); prevRestore = bRestore; if( !bCheck ) return; static int iShowStatusWindow = -1; if( iShowStatusWindow == -1 ) { iShowStatusWindow = IsNT() && g_osi.dwMajorVersion >= 5 && ( g_osi.dwMinorVersion > 1 || ( g_osi.dwMinorVersion == 1 && strlen( g_osi.szCSDVersion ) ) ) ? 1 : 0; } HWND hwndImeDef = <API key>( g_hwndCurr ); if( hwndImeDef && bRestore && iShowStatusWindow ) SendMessageA( hwndImeDef, WM_IME_CONTROL, <API key>, 0 ); HRESULT hr; hr = CoInitialize( nullptr ); if( SUCCEEDED( hr ) ) { ITfLangBarMgr* plbm = nullptr; hr = CoCreateInstance( CLSID_TF_LangBarMgr, nullptr, <API key>, __uuidof( ITfLangBarMgr ), ( void** )&plbm ); if( SUCCEEDED( hr ) && plbm ) { DWORD dwCur; ULONG uRc; if( SUCCEEDED( hr ) ) { if( bRestore ) { if( g_dwPrevFloat ) hr = plbm->ShowFloating( g_dwPrevFloat ); } else { hr = plbm-><API key>( &dwCur ); if( SUCCEEDED( hr ) ) g_dwPrevFloat = dwCur; if( !( g_dwPrevFloat & TF_SFT_DESKBAND ) ) { hr = plbm->ShowFloating( TF_SFT_HIDDEN ); } } } uRc = plbm->Release(); } CoUninitialize(); } if( hwndImeDef && !bRestore ) { // The following OPENSTATUSWINDOW is required to hide ATOK16 toolbar (FS9:#7546) SendMessageA( hwndImeDef, WM_IME_CONTROL, <API key>, 0 ); SendMessageA( hwndImeDef, WM_IME_CONTROL, <API key>, 0 ); } } bool <API key>() { return <API key>; } static void <API key>() { if( !g_bUILessMode ) { <API key> = ( g_hklCurrent == _CHT_HKL_DAYI ) ? 0 : 1; } SetImeApi(); } static void OnInputLangChange() { UINT uLang = GETPRIMLANG(); CheckToggleState(); <API key>(); if( uLang != GETPRIMLANG() ) { // Korean IME always uses level 3 support. // Other languages use the level that is specified by <API key>() SetSupportLevel( ( GETPRIMLANG() == LANG_KOREAN ) ? 3 : g_dwIMELevelSaved ); } HWND hwndImeDef = <API key>( g_hwndCurr ); if( hwndImeDef ) { // Fix for Zooty #3995: prevent CHT IME toobar from showing up SendMessageA( hwndImeDef, WM_IME_CONTROL, <API key>, 0 ); SendMessageA( hwndImeDef, WM_IME_CONTROL, <API key>, 0 ); } } static void SetImeApi() { _GetReadingString = nullptr; _ShowReadingWindow = nullptr; if( g_bUILessMode ) return; char szImeFile[MAX_PATH + 1]; HKL kl = g_hklCurrent; if( _ImmGetIMEFileNameA( kl, szImeFile, sizeof( szImeFile ) - 1 ) <= 0 ) return; HMODULE hIme = LoadLibraryExA( szImeFile, nullptr, 0x00000800 /* <API key> */ ); if( !hIme ) return; _GetReadingString = reinterpret_cast<UINT ( WINAPI* )( HIMC, UINT, LPWSTR, PINT, BOOL*, PUINT )>( GetProcAddress( hIme, "GetReadingString" ) ); _ShowReadingWindow = reinterpret_cast<BOOL ( WINAPI* )( HIMC himc, BOOL )>( GetProcAddress( hIme, "ShowReadingWindow" ) ); if( _ShowReadingWindow ) { HIMC himc = _ImmGetContext( g_hwndCurr ); if( himc ) { _ShowReadingWindow( himc, false ); _ImmReleaseContext( g_hwndCurr, himc ); } } } static void CheckInputLocale() { static HKL hklPrev = 0; g_hklCurrent = GetKeyboardLayout( 0 ); if( hklPrev == g_hklCurrent ) { return; } hklPrev = g_hklCurrent; switch( GETPRIMLANG() ) { // Simplified Chinese case LANG_CHINESE: g_bVerticalCand = true; switch( GETSUBLANG() ) { case <API key>: g_pszIndicatior = g_aszIndicator[INDICATOR_CHS]; //g_bVerticalCand = GetImeId() == 0; g_bVerticalCand = false; break; case <API key>: g_pszIndicatior = g_aszIndicator[INDICATOR_CHT]; break; default: // unsupported sub-language g_pszIndicatior = g_aszIndicator[INDICATOR_NON_IME]; break; } break; // Korean case LANG_KOREAN: g_pszIndicatior = g_aszIndicator[INDICATOR_KOREAN]; g_bVerticalCand = false; break; // Japanese case LANG_JAPANESE: g_pszIndicatior = g_aszIndicator[INDICATOR_JAPANESE]; g_bVerticalCand = true; break; default: g_pszIndicatior = g_aszIndicator[INDICATOR_NON_IME]; } char szCodePage[8]; int iRc = GetLocaleInfoA( MAKELCID( GETLANG(), SORT_DEFAULT ), <API key>, szCodePage, COUNTOF( szCodePage ) ); iRc; g_uCodePage = _strtoul( szCodePage, nullptr, 0 ); for( int i = 0; i < 256; i++ ) { LeadByteTable[i] = ( BYTE )IsDBCSLeadByteEx( g_uCodePage, ( BYTE )i ); } } void ImeUi_SetWindow( _In_ HWND hwnd ) { g_hwndCurr = hwnd; g_disableCicero.<API key>( hwnd ); } UINT <API key>() { return g_uCodePage; } DWORD ImeUi_GetFlags() { return g_dwImeUiFlags; } void ImeUi_SetFlags( _In_ DWORD dwFlags, _In_ bool bSet ) { if( bSet ) { g_dwImeUiFlags |= dwFlags; } else { g_dwImeUiFlags &= ~dwFlags; } } // CTsfUiLessMode methods // SetupSinks() // Set up sinks. A sink is used to receive a Text Service Framework event. // CUIElementSink implements multiple sink interfaces to receive few different TSF events. BOOL CTsfUiLessMode::SetupSinks() { // ITfThreadMgrEx is available on Vista or later. HRESULT hr; hr = CoCreateInstance( CLSID_TF_ThreadMgr, nullptr, <API key>, __uuidof( ITfThreadMgrEx ), ( void** )&m_tm ); if( hr != S_OK ) { return FALSE; } // ready to start interacting TfClientId cid; // not used if( FAILED( m_tm->ActivateEx( &cid, <API key> ) ) ) { return FALSE; } // Setup sinks BOOL bRc = FALSE; m_TsfSink = new (std::nothrow) CUIElementSink(); if( m_TsfSink ) { ITfSource* srcTm; if( SUCCEEDED( hr = m_tm->QueryInterface( __uuidof( ITfSource ), ( void** )&srcTm ) ) ) { // Sink for reading window change if( SUCCEEDED( hr = srcTm->AdviseSink( __uuidof( ITfUIElementSink ), ( ITfUIElementSink* )m_TsfSink, &<API key> ) ) ) { // Sink for input locale change if( SUCCEEDED( hr = srcTm->AdviseSink( __uuidof( <API key> ), ( <API key>* )m_TsfSink, &m_dwAlpnSinkCookie ) ) ) { if( <API key>() ) // Setup compartment sinks for the first time { bRc = TRUE; } } } srcTm->Release(); } } return bRc; } void CTsfUiLessMode::ReleaseSinks() { HRESULT hr; ITfSource* source; // Remove all sinks if( m_tm && SUCCEEDED( m_tm->QueryInterface( __uuidof( ITfSource ), ( void** )&source ) ) ) { hr = source->UnadviseSink( <API key> ); hr = source->UnadviseSink( m_dwAlpnSinkCookie ); source->Release(); <API key>( TRUE ); // Remove all compartment sinks m_tm->Deactivate(); SAFE_RELEASE( m_tm ); SAFE_RELEASE( m_TsfSink ); } } CTsfUiLessMode::CUIElementSink::CUIElementSink() { _cRef = 1; } CTsfUiLessMode::CUIElementSink::~CUIElementSink() { } STDAPI CTsfUiLessMode::CUIElementSink::QueryInterface( _In_ REFIID riid, _COM_Outptr_ void** ppvObj ) { if( !ppvObj ) return E_INVALIDARG; *ppvObj = nullptr; if( IsEqualIID( riid, IID_IUnknown ) ) { *ppvObj = reinterpret_cast<IUnknown*>( this ); } else if( IsEqualIID( riid, __uuidof( ITfUIElementSink ) ) ) { *ppvObj = ( ITfUIElementSink* )this; } else if( IsEqualIID( riid, __uuidof( <API key> ) ) ) { *ppvObj = ( <API key>* )this; } else if( IsEqualIID( riid, __uuidof( <API key> ) ) ) { *ppvObj = ( <API key>* )this; } if( *ppvObj ) { AddRef(); return S_OK; } return E_NOINTERFACE; } STDAPI_( ULONG ) CTsfUiLessMode::CUIElementSink::AddRef() { return ++_cRef; } STDAPI_( ULONG ) CTsfUiLessMode::CUIElementSink::Release() { LONG cr = --_cRef; if( _cRef == 0 ) { delete this; } return cr; } STDAPI CTsfUiLessMode::CUIElementSink::BeginUIElement( DWORD dwUIElementId, BOOL* pbShow ) { ITfUIElement* pElement = GetUIElement( dwUIElementId ); if( !pElement ) return E_INVALIDARG; <API key>* preading = nullptr; <API key>* pcandidate = nullptr; *pbShow = FALSE; if( !g_bCandList && SUCCEEDED( pElement->QueryInterface( __uuidof( <API key> ), ( void** )&preading ) ) ) { <API key>( preading ); preading->Release(); } else if( SUCCEEDED( pElement->QueryInterface( __uuidof( <API key> ), ( void** )&pcandidate ) ) ) { <API key>++; <API key>( pcandidate ); pcandidate->Release(); } pElement->Release(); return S_OK; } STDAPI CTsfUiLessMode::CUIElementSink::UpdateUIElement( DWORD dwUIElementId ) { ITfUIElement* pElement = GetUIElement( dwUIElementId ); if( !pElement ) return E_INVALIDARG; <API key>* preading = nullptr; <API key>* pcandidate = nullptr; if( !g_bCandList && SUCCEEDED( pElement->QueryInterface( __uuidof( <API key> ), ( void** )&preading ) ) ) { <API key>( preading ); preading->Release(); } else if( SUCCEEDED( pElement->QueryInterface( __uuidof( <API key> ), ( void** )&pcandidate ) ) ) { <API key>( pcandidate ); pcandidate->Release(); } pElement->Release(); return S_OK; } STDAPI CTsfUiLessMode::CUIElementSink::EndUIElement( DWORD dwUIElementId ) { ITfUIElement* pElement = GetUIElement( dwUIElementId ); if( !pElement ) return E_INVALIDARG; <API key>* preading = nullptr; if( !g_bCandList && SUCCEEDED( pElement->QueryInterface( __uuidof( <API key> ), ( void** )&preading ) ) ) { g_dwCount = 0; preading->Release(); } <API key>* pcandidate = nullptr; if( SUCCEEDED( pElement->QueryInterface( __uuidof( <API key> ), ( void** )&pcandidate ) ) ) { <API key> if( <API key> == 0 ) CloseCandidateList(); pcandidate->Release(); } pElement->Release(); return S_OK; } void CTsfUiLessMode::UpdateImeState( BOOL <API key> ) { ITfCompartmentMgr* pcm; ITfCompartment* pTfOpenMode = nullptr; ITfCompartment* pTfConvMode = nullptr; if( GetCompartments( &pcm, &pTfOpenMode, &pTfConvMode ) ) { VARIANT valOpenMode; if ( SUCCEEDED(pTfOpenMode->GetValue(&valOpenMode)) ) { VARIANT valConvMode; if (SUCCEEDED(pTfConvMode->GetValue(&valConvMode))) { if (valOpenMode.vt == VT_I4) { if (g_bChineseIME) { g_dwState = valOpenMode.lVal != 0 && valConvMode.lVal != 0 ? IMEUI_STATE_ON : IMEUI_STATE_ENGLISH; } else { g_dwState = valOpenMode.lVal != 0 ? IMEUI_STATE_ON : IMEUI_STATE_OFF; } } VariantClear(&valConvMode); } VariantClear(&valOpenMode); } if( <API key> ) { <API key>( FALSE, pTfOpenMode, pTfConvMode ); // Reset compartment sinks } pTfOpenMode->Release(); pTfConvMode->Release(); pcm->Release(); } } STDAPI CTsfUiLessMode::CUIElementSink::OnActivated( DWORD dwProfileType, LANGID langid, _In_ REFCLSID clsid, _In_ REFGUID catid, _In_ REFGUID guidProfile, HKL hkl, DWORD dwFlags ) { <API key>(clsid); <API key>(hkl); static GUID s_TF_PROFILE_DAYI = { 0x037B2C25, 0x480C, 0x4D7F, 0xB0, 0x27, 0xD6, 0xCA, 0x6B, 0x69, 0x78, 0x8A }; <API key> = IsEqualGUID( s_TF_PROFILE_DAYI, guidProfile ) ? 0 : 1; if( IsEqualIID( catid, <API key> ) && ( dwFlags & <API key> ) ) { g_bChineseIME = ( dwProfileType & <API key> ) && langid == LANG_CHT; if( dwProfileType & <API key> ) { UpdateImeState( TRUE ); } else g_dwState = IMEUI_STATE_OFF; OnInputLangChange(); } return S_OK; } STDAPI CTsfUiLessMode::CUIElementSink::OnChange( _In_ REFGUID rguid ) { <API key>(rguid); UpdateImeState(); return S_OK; } void CTsfUiLessMode::<API key>( <API key>* preading ) { UINT cchMax; UINT uErrorIndex = 0; BOOL fVertical; DWORD dwFlags; preading->GetUpdatedFlags( &dwFlags ); preading-><API key>( &cchMax ); preading->GetErrorIndex( &uErrorIndex ); // errorIndex is zero-based preading-><API key>( &fVertical ); g_iReadingError = ( int )uErrorIndex; <API key> = !fVertical; g_bReadingWindow = true; g_uCandPageSize = MAX_CANDLIST; g_dwSelection = g_iReadingError ? g_iReadingError - 1 : ( DWORD )-1; g_iReadingError--; // g_iReadingError is used only in horizontal window, and has to be -1 if there's no error. BSTR bstr; if( SUCCEEDED( preading->GetString( &bstr ) ) ) { if( bstr ) { wcscpy_s( g_szReadingString, COUNTOF(g_szReadingString), bstr ); g_dwCount = cchMax; LPCTSTR pszSource = g_szReadingString; if( fVertical ) { // for vertical reading window, copy each character to g_szCandidate array. for( UINT i = 0; i < cchMax; i++ ) { LPTSTR pszDest = g_szCandidate[i]; if( *pszSource ) { LPTSTR pszNextSrc = CharNext( pszSource ); SIZE_T size = ( LPSTR )pszNextSrc - ( LPSTR )pszSource; memcpy( pszDest, pszSource, size ); pszSource = pszNextSrc; pszDest += size; } *pszDest = 0; } } else { g_szCandidate[0][0] = TEXT( ' ' ); // hack to make rendering happen } SysFreeString( bstr ); } } } void CTsfUiLessMode::<API key>( <API key>* pcandidate ) { UINT uIndex = 0; UINT uCount = 0; UINT uCurrentPage = 0; UINT* IndexList = nullptr; UINT uPageCnt = 0; DWORD dwPageStart = 0; DWORD dwPageSize = 0; BSTR bstr; pcandidate->GetSelection( &uIndex ); pcandidate->GetCount( &uCount ); pcandidate->GetCurrentPage( &uCurrentPage ); g_dwSelection = ( DWORD )uIndex; g_dwCount = ( DWORD )uCount; g_bCandList = true; g_bReadingWindow = false; pcandidate->GetPageIndex( nullptr, 0, &uPageCnt ); if( uPageCnt > 0 ) { IndexList = ( UINT* )<API key>( sizeof( UINT ) * uPageCnt ); if( IndexList ) { pcandidate->GetPageIndex( IndexList, uPageCnt, &uPageCnt ); dwPageStart = IndexList[uCurrentPage]; dwPageSize = ( uCurrentPage < uPageCnt - 1 ) ? std::min( uCount, IndexList[uCurrentPage + 1] ) - dwPageStart: uCount - dwPageStart; } } g_uCandPageSize = std::min<UINT>( dwPageSize, MAX_CANDLIST ); g_dwSelection = g_dwSelection - dwPageStart; memset( &g_szCandidate, 0, sizeof( g_szCandidate ) ); for( UINT i = dwPageStart, j = 0; ( DWORD )i < g_dwCount && j < g_uCandPageSize; i++, j++ ) { if( SUCCEEDED( pcandidate->GetString( i, &bstr ) ) ) { if( bstr ) { <API key>( j, bstr ); SysFreeString( bstr ); } } } if( GETPRIMLANG() == LANG_KOREAN ) { g_dwSelection = ( DWORD )-1; } if( IndexList ) { ImeUiCallback_Free( IndexList ); } } ITfUIElement* CTsfUiLessMode::GetUIElement( DWORD dwUIElementId ) { ITfUIElementMgr* puiem; ITfUIElement* pElement = nullptr; if( SUCCEEDED( m_tm->QueryInterface( __uuidof( ITfUIElementMgr ), ( void** )&puiem ) ) ) { puiem->GetUIElement( dwUIElementId, &pElement ); puiem->Release(); } return pElement; } BOOL CTsfUiLessMode::<API key>() { BOOL ret = FALSE; HRESULT hr; <API key>* pProfiles; hr = CoCreateInstance( <API key>, nullptr, <API key>, __uuidof( <API key> ), ( LPVOID* )&pProfiles ); if( SUCCEEDED( hr ) ) { <API key>* pProfileMgr; hr = pProfiles->QueryInterface( __uuidof( <API key> ), ( LPVOID* )&pProfileMgr ); if( SUCCEEDED( hr ) ) { <API key> tip; hr = pProfileMgr->GetActiveProfile( <API key>, &tip ); if( SUCCEEDED( hr ) ) { ret = ( tip.dwProfileType & <API key> ) != 0; } pProfileMgr->Release(); } pProfiles->Release(); } return ret; } // Sets up or removes sink for UI element. // UI element sink should be removed when IME is disabled, // otherwise the sink can be triggered when a game has multiple instances of IME UI library. void CTsfUiLessMode::EnableUiUpdates( bool bEnable ) { if( !m_tm || ( bEnable && <API key> != TF_INVALID_COOKIE ) || ( !bEnable && <API key> == TF_INVALID_COOKIE ) ) { return; } ITfSource* srcTm = nullptr; HRESULT hr = E_FAIL; if( SUCCEEDED( hr = m_tm->QueryInterface( __uuidof( ITfSource ), ( void** )&srcTm ) ) ) { if( bEnable ) { hr = srcTm->AdviseSink( __uuidof( ITfUIElementSink ), ( ITfUIElementSink* )m_TsfSink, &<API key> ); } else { hr = srcTm->UnadviseSink( <API key> ); <API key> = TF_INVALID_COOKIE; } srcTm->Release(); } } // Returns open mode compartments and compartment manager. // Function fails if it fails to acquire any of the objects to be returned. BOOL CTsfUiLessMode::GetCompartments( ITfCompartmentMgr** ppcm, ITfCompartment** ppTfOpenMode, ITfCompartment** ppTfConvMode ) { ITfCompartmentMgr* pcm = nullptr; ITfCompartment* pTfOpenMode = nullptr; ITfCompartment* pTfConvMode = nullptr; static GUID <API key> = { 0xCCF05DD8, 0x4A87, 0x11D7, 0xA6, 0xE2, 0x00, 0x06, 0x5B, 0x84, 0x43, 0x5C }; HRESULT hr; if( SUCCEEDED( hr = m_tm->QueryInterface( <API key>, ( void** )&pcm ) ) ) { if( SUCCEEDED( hr = pcm->GetCompartment( <API key>, &pTfOpenMode ) ) ) { if( SUCCEEDED( hr = pcm->GetCompartment( <API key>, &pTfConvMode ) ) ) { *ppcm = pcm; *ppTfOpenMode = pTfOpenMode; *ppTfConvMode = pTfConvMode; return TRUE; } pTfOpenMode->Release(); } pcm->Release(); } return FALSE; } // There are three ways to call this function: // <API key>() : initialization // <API key>(FALSE, openmode, convmode) : Resetting sinks. This is necessary as DaYi and Array IME resets compartment on switching input locale // <API key>(TRUE) : clean up sinks BOOL CTsfUiLessMode::<API key>( BOOL bRemoveOnly, ITfCompartment* pTfOpenMode, ITfCompartment* pTfConvMode ) { bool bLocalCompartments = false; ITfCompartmentMgr* pcm = nullptr; BOOL bRc = FALSE; HRESULT hr = E_FAIL; if( !pTfOpenMode && !pTfConvMode ) { bLocalCompartments = true; GetCompartments( &pcm, &pTfOpenMode, &pTfConvMode ); } if( !( pTfOpenMode && pTfConvMode ) ) { // Invalid parameters or GetCompartments() has failed. return FALSE; } ITfSource* srcOpenMode = nullptr; if( SUCCEEDED( hr = pTfOpenMode->QueryInterface( IID_ITfSource, ( void** )&srcOpenMode ) ) ) { // Remove existing sink for open mode if( <API key> != TF_INVALID_COOKIE ) { srcOpenMode->UnadviseSink( <API key> ); <API key> = TF_INVALID_COOKIE; } // Setup sink for open mode (toggle state) change if( bRemoveOnly || SUCCEEDED( hr = srcOpenMode->AdviseSink( <API key>, ( <API key>* )m_TsfSink, &<API key> ) ) ) { ITfSource* srcConvMode = nullptr; if( SUCCEEDED( hr = pTfConvMode->QueryInterface( IID_ITfSource, ( void** )&srcConvMode ) ) ) { // Remove existing sink for open mode if( <API key> != TF_INVALID_COOKIE ) { srcConvMode->UnadviseSink( <API key> ); <API key> = TF_INVALID_COOKIE; } // Setup sink for open mode (toggle state) change if( bRemoveOnly || SUCCEEDED( hr = srcConvMode->AdviseSink( <API key>, ( <API key>* )m_TsfSink, &<API key> ) ) ) { bRc = TRUE; } srcConvMode->Release(); } } srcOpenMode->Release(); } if( bLocalCompartments ) { pTfOpenMode->Release(); pTfConvMode->Release(); pcm->Release(); } return bRc; } WORD <API key>() { return GETPRIMLANG(); }; DWORD ImeUi_GetImeId( _In_ UINT uIndex ) { return GetImeId( uIndex ); }; WORD ImeUi_GetLanguage() { return GETLANG(); }; PTSTR ImeUi_GetIndicatior() { return g_pszIndicatior; }; bool <API key>() { return g_bReadingWindow; }; bool <API key>() { return g_bCandList; }; bool <API key>() { return g_bVerticalCand; }; bool <API key>() { return <API key>; }; TCHAR* ImeUi_GetCandidate( _In_ UINT idx ) { if( idx < MAX_CANDLIST ) return g_szCandidate[idx]; else return g_szCandidate[0]; } DWORD <API key>() { return g_dwSelection; } DWORD <API key>() { return g_dwCount; } TCHAR* <API key>() { return <API key>; } BYTE* <API key>() { return g_szCompAttrString; } DWORD <API key>() { return g_IMECursorChars; }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http: <html> <head> <title>Functional Testing Sds/Form/CheckBox</title> <style type="text/css"> @import "../../../themes/bootstrap/css/bootstrap.css"; @import "../../../themes/bootstrap/css/<API key>.css"; </style> <script type="text/javascript" src="../../testconfig.js"></script> <script type="text/javascript" src="../../../../dojo/dojo.js"></script> <script type="text/javascript" src="../../Built.js"></script> <script type="text/javascript"> require([ 'dojo/parser', 'dojo/dom', 'dijit/registry', 'Sds/Form/CheckBox', 'dojo/domReady!' ], function( parser ){ parser.parse(); }) </script> </head> <body> <h1>Functional Testing Sds/Form/CheckBox</h1> <br /> <form class="form-horizontal"> <input data-dojo-type="Sds/Form/CheckBox" data-dojo-props=" label:'Remember Me', checked: true " id="checkbox1" /> </form> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqeal: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.5.1 / coqeal - 1.0.4</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> coqeal <small> 1.0.4 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-02-02 22:20:31 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-02 22:20:31 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 <API key> of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.5.1 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.03.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.03.0 Official 4.03.0 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Cyril Cohen &lt;cyril.cohen@inria.fr&gt;&quot; homepage: &quot;https://github.com/coq-community/coqeal&quot; dev-repo: &quot;git+https://github.com/coq-community/coqeal.git&quot; bug-reports: &quot;https://github.com/coq-community/coqeal/issues&quot; license: &quot;MIT&quot; synopsis: &quot;CoqEAL - The Coq Effective Algebra Library&quot; description: &quot;&quot;&quot; This Coq library contains a subset of the work that was developed in the context of the ForMath EU FP7 project (2009-2013). It has two parts: - theory, which contains developments in algebra and optimized algorithms on mathcomp data structures. - refinements, which is a framework to ease change of data representations during a proof.&quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] depends: [ &quot;coq&quot; {&gt;= &quot;8.7&quot; &amp; &lt; &quot;8.13~&quot;} &quot;coq-bignums&quot; &quot;coq-paramcoq&quot; {&gt;= &quot;1.1.1&quot;} &quot;<API key>&quot; {&gt;= &quot;1.5.1&quot; &amp; &lt; &quot;1.7~&quot;} &quot;<API key>&quot; {&gt;= &quot;1.11.0&quot; &amp; &lt; &quot;1.12~&quot;} ] tags: [ &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms&quot; &quot;keyword:effective algebra&quot; &quot;keyword:elementary divisor rings&quot; &quot;keyword:Smith normal form&quot; &quot;keyword:mathematical components&quot; &quot;keyword:Bareiss&quot; &quot;keyword:Karatsuba multiplication&quot; &quot;keyword:refinements&quot; &quot;logpath:CoqEAL&quot; ] authors: [ &quot;Guillaume Cano&quot; &quot;Cyril Cohen&quot; &quot;Maxime Dénès&quot; &quot;Anders Mörtberg&quot; &quot;Vincent Siles&quot; ] url { src: &quot;https://github.com/coq-community/coqeal/archive/refs/tags/1.0.4.tar.gz&quot; checksum: &quot;sha512=98fbabb5014adde76c743b90bfb14b1ddedc6eecd9671f904598d92bacfd62e327b067cce6597df9e5fbab8331abf96979e3fd6137d42d37fb5ae93c8d6e6830&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-coqeal.1.0.4 coq.8.5.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.1). The following dependencies couldn&#39;t be met: - coq-coqeal -&gt; coq &gt;= 8.7 -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-coqeal.1.0.4</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
# <API key> React Native Reactive Model-View using <API key> and Reactive Programming. ## What is it? It is alternative to Redux. Redux is great, but you have to code a lot of boilerplate to use it: 1. create string actions constants for each action 2. build bulky switch statements within your reducers 3. `connect` each component to redux or create <API key> to prevent re-rendering each state change (i.e. define minimal necessary 'sub-state' of your state which is necessary for your component). 4. import action constants and call quite bulky `this.props.dispatch({type:ACTION_CONSTANT, ...data})` for action. Reactive Model-View is similar to [Model-View-Intent from Cycle.JS](http: and mostly based on [Calmm-JS](https://github.com/calmm-js/documentation/blob/master/<API key>.md), [slides](http://calmm-js.github.io/documentation/training/ Another component with similar concept - [React Native MobX](https://github.com/aksonov/react-native-mobx) [Introduction to Reactive Programming](https://gist.github.com/staltz/<API key>) Instead of creation of reducers/actions you have to create Reactive Model, aka "Reactive State" using supported reactive library ([Kefir](http: Everything could be represented as event stream or Observables. To represent your store [Calmm-JS](https://github.com/calmm-js/documentation/blob/master/<API key>.md) introduces Atom, Observable 'property' which easily could be set/get from your React Components. You could consider Atom as replacement of your Redux Store and Obserables (that observe your Atom(s)) are replacements of reducers. [React Native Router Flux](https://github.com/aksonov/<API key>) is used to connect your Reactive Model and your React components. It wraps each component Scene with special wrapper that replaces all observables to their actual values. Once any passed observable changes, the component will be re-rendered with new values. Note that you could pass only needed sub-state of your Atom(s) using [Partial Lenses](https://github.com/calmm-js/partial.lenses) to avoid needless re-rendering of the components. ## How to use it? This component is just thin wrapper around <API key> (RNRF), so just import it instead of RNRF. Example of reactive model counter: ![demo](https://cloud.githubusercontent.com/assets/1321329/15446716/<API key>.gif) Example.js: jsx import React from 'react'; import {Router, Scene} from '<API key>'; // view and model for Counter scene import Counter from './components/Counter'; import {increase, decrease, counter, total} from './model/counter'; export default () => <Router> <Scene key="launch" component={Counter} hideNavBar {...{increase, decrease, counter, total}}/> </Router> counter.js (reactive model) jsx import Atom from 'kefir.atom'; // our simplest store ever - counter export const counter = Atom(0).log("counter"); export function increase(){ counter.modify(x=>x+1); } export function decrease(){ counter.modify(x=>x-1); } // example of 'computed' value = number of total operations export const total = counter.scan((prev, next) => prev + 1, -1); Counter.js (view) jsx import React from 'react'; import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'; import Button from 'react-native-button'; const Counter = (model) => <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native Reactive! </Text> <Text>Counter: {model.counter}</Text> <Text>Total clicks: {model.total}</Text> <Button onPress={model.increase}>+</Button> <Button onPress={model.decrease}>-</Button> </View> const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, }); export default Counter;
smalltalk.parser = (function(){ function quote(s) { /* * ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a * string literal except for the closing quote character, backslash, * carriage return, line separator, paragraph separator, and line feed. * Any character may appear in the form of an escape sequence. * * For portability, we also escape escape all control and non-ASCII * characters. Note that "\0" and "\v" escape sequences are not used * because JSHint does not like the first and IE the second. */ return '"' + s .replace(/\\/g, '\\\\') // backslash .replace(/"/g, '\\"') // closing quote character .replace(/\x08/g, '\\b') // backspace .replace(/\t/g, '\\t') // horizontal tab .replace(/\n/g, '\\n') // line feed .replace(/\f/g, '\\f') // form feed .replace(/\r/g, '\\r') // carriage return .replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g, escape) + '"'; } var result = { /* * Parses the input with a generated parser. If the parsing is successfull, * returns a value explicitly or implicitly specified by the grammar from * which the parser was generated (see |PEG.buildParser|). If the parsing is * unsuccessful, throws |PEG.parser.SyntaxError| describing the error. */ parse: function(input, startRule) { var parseFunctions = { "separator": parse_separator, "comments": parse_comments, "ws": parse_ws, "identifier": parse_identifier, "varIdentifier": parse_varIdentifier, "keyword": parse_keyword, "selector": parse_selector, "className": parse_className, "string": parse_string, "symbol": parse_symbol, "bareSymbol": parse_bareSymbol, "number": parse_number, "hex": parse_hex, "float": parse_float, "integer": parse_integer, "literalArray": parse_literalArray, "bareLiteralArray": <API key>, "literalArrayRest": <API key>, "dynamicArray": parse_dynamicArray, "dynamicDictionary": <API key>, "pseudoVariable": <API key>, "parseTimeLiteral": <API key>, "runtimeLiteral": <API key>, "literal": parse_literal, "variable": parse_variable, "classReference": <API key>, "reference": parse_reference, "keywordPair": parse_keywordPair, "binarySelector": <API key>, "keywordPattern": <API key>, "binaryPattern": parse_binaryPattern, "unaryPattern": parse_unaryPattern, "expression": parse_expression, "expressionList": <API key>, "expressions": parse_expressions, "assignment": parse_assignment, "ret": parse_ret, "temps": parse_temps, "blockParamList": <API key>, "subexpression": parse_subexpression, "statements": parse_statements, "sequence": parse_sequence, "stSequence": parse_stSequence, "block": parse_block, "operand": parse_operand, "unaryMessage": parse_unaryMessage, "unaryTail": parse_unaryTail, "unarySend": parse_unarySend, "binaryMessage": parse_binaryMessage, "binaryTail": parse_binaryTail, "binarySend": parse_binarySend, "keywordMessage": <API key>, "keywordSend": parse_keywordSend, "message": parse_message, "cascade": parse_cascade, "jsStatement": parse_jsStatement, "method": parse_method }; if (startRule !== undefined) { if (parseFunctions[startRule] === undefined) { throw new Error("Invalid rule name: " + quote(startRule) + "."); } } else { startRule = "method"; } var pos = { offset: 0, line: 1, column: 1, seenCR: false }; var reportFailures = 0; var <API key> = { offset: 0, line: 1, column: 1, seenCR: false }; var <API key> = []; var cache = {}; function padLeft(input, padding, length) { var result = input; var padLength = length - input.length; for (var i = 0; i < padLength; i++) { result = padding + result; } return result; } function escape(ch) { var charCode = ch.charCodeAt(0); var escapeChar; var length; if (charCode <= 0xFF) { escapeChar = 'x'; length = 2; } else { escapeChar = 'u'; length = 4; } return '\\' + escapeChar + padLeft(charCode.toString(16).toUpperCase(), '0', length); } function clone(object) { var result = {}; for (var key in object) { result[key] = object[key]; } return result; } function advance(pos, n) { var endOffset = pos.offset + n; for (var offset = pos.offset; offset < endOffset; offset++) { var ch = input.charAt(offset); if (ch === "\n") { if (!pos.seenCR) { pos.line++; } pos.column = 1; pos.seenCR = false; } else if (ch === "\r" || ch === "\u2028" || ch === "\u2029") { pos.line++; pos.column = 1; pos.seenCR = true; } else { pos.column++; pos.seenCR = false; } } pos.offset += n; } function matchFailed(failure) { if (pos.offset < <API key>.offset) { return; } if (pos.offset > <API key>.offset) { <API key> = clone(pos); <API key> = []; } <API key>.push(failure); } function parse_separator() { var cacheKey = "separator@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; if (/^[ \t\x0B\f\xA0\uFEFF\n\r\u2028\u2029]/.test(input.charAt(pos.offset))) { result1 = input.charAt(pos.offset); advance(pos, 1); } else { result1 = null; if (reportFailures === 0) { matchFailed("[ \\t\\x0B\\f\\xA0\\uFEFF\\n\\r\\u2028\\u2029]"); } } if (result1 !== null) { result0 = []; while (result1 !== null) { result0.push(result1); if (/^[ \t\x0B\f\xA0\uFEFF\n\r\u2028\u2029]/.test(input.charAt(pos.offset))) { result1 = input.charAt(pos.offset); advance(pos, 1); } else { result1 = null; if (reportFailures === 0) { matchFailed("[ \\t\\x0B\\f\\xA0\\uFEFF\\n\\r\\u2028\\u2029]"); } } } } else { result0 = null; } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_comments() { var cacheKey = "comments@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0; pos0 = clone(pos); if (/^["]/.test(input.charAt(pos.offset))) { result1 = input.charAt(pos.offset); advance(pos, 1); } else { result1 = null; if (reportFailures === 0) { matchFailed("[\"]"); } } if (result1 !== null) { result2 = []; if (/^[^"]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[^\"]"); } } while (result3 !== null) { result2.push(result3); if (/^[^"]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[^\"]"); } } } if (result2 !== null) { if (/^["]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[\"]"); } } if (result3 !== null) { result1 = [result1, result2, result3]; } else { result1 = null; pos = clone(pos0); } } else { result1 = null; pos = clone(pos0); } } else { result1 = null; pos = clone(pos0); } if (result1 !== null) { result0 = []; while (result1 !== null) { result0.push(result1); pos0 = clone(pos); if (/^["]/.test(input.charAt(pos.offset))) { result1 = input.charAt(pos.offset); advance(pos, 1); } else { result1 = null; if (reportFailures === 0) { matchFailed("[\"]"); } } if (result1 !== null) { result2 = []; if (/^[^"]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[^\"]"); } } while (result3 !== null) { result2.push(result3); if (/^[^"]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[^\"]"); } } } if (result2 !== null) { if (/^["]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[\"]"); } } if (result3 !== null) { result1 = [result1, result2, result3]; } else { result1 = null; pos = clone(pos0); } } else { result1 = null; pos = clone(pos0); } } else { result1 = null; pos = clone(pos0); } } } else { result0 = null; } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_ws() { var cacheKey = "ws@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; result0 = []; result1 = parse_separator(); if (result1 === null) { result1 = parse_comments(); } while (result1 !== null) { result0.push(result1); result1 = parse_separator(); if (result1 === null) { result1 = parse_comments(); } } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_identifier() { var cacheKey = "identifier@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (/^[a-zA-Z]/.test(input.charAt(pos.offset))) { result0 = input.charAt(pos.offset); advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z]"); } } if (result0 !== null) { result1 = []; if (/^[a-zA-Z0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z0-9]"); } } while (result2 !== null) { result1.push(result2); if (/^[a-zA-Z0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z0-9]"); } } } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, first, others) {return first + others.join("")})(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_varIdentifier() { var cacheKey = "varIdentifier@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (/^[a-z]/.test(input.charAt(pos.offset))) { result0 = input.charAt(pos.offset); advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("[a-z]"); } } if (result0 !== null) { result1 = []; if (/^[a-zA-Z0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z0-9]"); } } while (result2 !== null) { result1.push(result2); if (/^[a-zA-Z0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z0-9]"); } } } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, first, others) {return first + others.join("")})(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_keyword() { var cacheKey = "keyword@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_identifier(); if (result0 !== null) { if (/^[:]/.test(input.charAt(pos.offset))) { result1 = input.charAt(pos.offset); advance(pos, 1); } else { result1 = null; if (reportFailures === 0) { matchFailed("[:]"); } } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, first, last) {return first + last})(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_selector() { var cacheKey = "selector@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (/^[a-zA-Z]/.test(input.charAt(pos.offset))) { result0 = input.charAt(pos.offset); advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z]"); } } if (result0 !== null) { result1 = []; if (/^[a-zA-Z0-9:]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z0-9:]"); } } while (result2 !== null) { result1.push(result2); if (/^[a-zA-Z0-9:]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z0-9:]"); } } } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, first, others) {return first + others.join("")})(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_className() { var cacheKey = "className@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (/^[A-Z]/.test(input.charAt(pos.offset))) { result0 = input.charAt(pos.offset); advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("[A-Z]"); } } if (result0 !== null) { result1 = []; if (/^[a-zA-Z0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z0-9]"); } } while (result2 !== null) { result1.push(result2); if (/^[a-zA-Z0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[a-zA-Z0-9]"); } } } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, first, others) {return first + others.join("")})(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_string() { var cacheKey = "string@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1, pos2; pos0 = clone(pos); pos1 = clone(pos); if (/^[']/.test(input.charAt(pos.offset))) { result0 = input.charAt(pos.offset); advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("[']"); } } if (result0 !== null) { result1 = []; pos2 = clone(pos); if (input.substr(pos.offset, 2) === "''") { result2 = "''"; advance(pos, 2); } else { result2 = null; if (reportFailures === 0) { matchFailed("\"''\""); } } if (result2 !== null) { result2 = (function(offset, line, column) {return "'"})(pos2.offset, pos2.line, pos2.column); } if (result2 === null) { pos = clone(pos2); } if (result2 === null) { if (/^[^']/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[^']"); } } } while (result2 !== null) { result1.push(result2); pos2 = clone(pos); if (input.substr(pos.offset, 2) === "''") { result2 = "''"; advance(pos, 2); } else { result2 = null; if (reportFailures === 0) { matchFailed("\"''\""); } } if (result2 !== null) { result2 = (function(offset, line, column) {return "'"})(pos2.offset, pos2.line, pos2.column); } if (result2 === null) { pos = clone(pos2); } if (result2 === null) { if (/^[^']/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[^']"); } } } } if (result1 !== null) { if (/^[']/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[']"); } } if (result2 !== null) { result0 = [result0, result1, result2]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, val) { return smalltalk.ValueNode._new() ._position_((line).__at(column)) ._value_(val.join("").replace(/\"/ig, '"')) })(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_symbol() { var cacheKey = "symbol@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (input.charCodeAt(pos.offset) === 35) { result0 = " advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("\" } } if (result0 !== null) { result1 = parse_bareSymbol(); if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, rest) {return rest})(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_bareSymbol() { var cacheKey = "bareSymbol@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; var pos0, pos1; pos0 = clone(pos); result0 = parse_selector(); if (result0 === null) { result0 = <API key>(); if (result0 === null) { pos1 = clone(pos); result0 = parse_string(); if (result0 !== null) { result0 = (function(offset, line, column, node) {return node._value()})(pos1.offset, pos1.line, pos1.column, result0); } if (result0 === null) { pos = clone(pos1); } } } if (result0 !== null) { result0 = (function(offset, line, column, val) { return smalltalk.ValueNode._new() ._position_((line).__at(column)) ._value_(val) })(pos0.offset, pos0.line, pos0.column, result0); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_number() { var cacheKey = "number@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; var pos0; pos0 = clone(pos); result0 = parse_hex(); if (result0 === null) { result0 = parse_float(); if (result0 === null) { result0 = parse_integer(); } } if (result0 !== null) { result0 = (function(offset, line, column, n) { return smalltalk.ValueNode._new() ._position_((line).__at(column)) ._value_(n) })(pos0.offset, pos0.line, pos0.column, result0); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_hex() { var cacheKey = "hex@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (/^[\-]/.test(input.charAt(pos.offset))) { result0 = input.charAt(pos.offset); advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("[\\-]"); } } result0 = result0 !== null ? result0 : ""; if (result0 !== null) { if (input.substr(pos.offset, 3) === "16r") { result1 = "16r"; advance(pos, 3); } else { result1 = null; if (reportFailures === 0) { matchFailed("\"16r\""); } } if (result1 !== null) { if (/^[0-9a-fA-F]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[0-9a-fA-F]"); } } if (result3 !== null) { result2 = []; while (result3 !== null) { result2.push(result3); if (/^[0-9a-fA-F]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[0-9a-fA-F]"); } } } } else { result2 = null; } if (result2 !== null) { result0 = [result0, result1, result2]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, neg, num) {return parseInt((neg + num.join("")), 16)})(pos0.offset, pos0.line, pos0.column, result0[0], result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_float() { var cacheKey = "float@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (/^[\-]/.test(input.charAt(pos.offset))) { result0 = input.charAt(pos.offset); advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("[\\-]"); } } result0 = result0 !== null ? result0 : ""; if (result0 !== null) { if (/^[0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[0-9]"); } } if (result2 !== null) { result1 = []; while (result2 !== null) { result1.push(result2); if (/^[0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[0-9]"); } } } } else { result1 = null; } if (result1 !== null) { if (input.charCodeAt(pos.offset) === 46) { result2 = "."; advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("\".\""); } } if (result2 !== null) { if (/^[0-9]/.test(input.charAt(pos.offset))) { result4 = input.charAt(pos.offset); advance(pos, 1); } else { result4 = null; if (reportFailures === 0) { matchFailed("[0-9]"); } } if (result4 !== null) { result3 = []; while (result4 !== null) { result3.push(result4); if (/^[0-9]/.test(input.charAt(pos.offset))) { result4 = input.charAt(pos.offset); advance(pos, 1); } else { result4 = null; if (reportFailures === 0) { matchFailed("[0-9]"); } } } } else { result3 = null; } if (result3 !== null) { result0 = [result0, result1, result2, result3]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, neg, int, dec) {return parseFloat((neg + int.join("") + "." + dec.join("")), 10)})(pos0.offset, pos0.line, pos0.column, result0[0], result0[1], result0[3]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_integer() { var cacheKey = "integer@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (/^[\-]/.test(input.charAt(pos.offset))) { result0 = input.charAt(pos.offset); advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("[\\-]"); } } result0 = result0 !== null ? result0 : ""; if (result0 !== null) { if (/^[0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[0-9]"); } } if (result2 !== null) { result1 = []; while (result2 !== null) { result1.push(result2); if (/^[0-9]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[0-9]"); } } } } else { result1 = null; } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, neg, digits) {return (parseInt(neg+digits.join(""), 10))})(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_literalArray() { var cacheKey = "literalArray@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (input.substr(pos.offset, 2) === " result0 = " advance(pos, 2); } else { result0 = null; if (reportFailures === 0) { matchFailed("\" } } if (result0 !== null) { result1 = <API key>(); if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, rest) {return rest})(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "bareLiteralArray@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (input.charCodeAt(pos.offset) === 40) { result0 = "("; advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"(\""); } } if (result0 !== null) { result1 = <API key>(); if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, rest) {return rest})(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "literalArrayRest@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0, pos1, pos2, pos3; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ws(); if (result0 !== null) { result1 = []; pos2 = clone(pos); pos3 = clone(pos); result2 = <API key>(); if (result2 === null) { result2 = <API key>(); if (result2 === null) { result2 = parse_bareSymbol(); } } if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result2 = [result2, result3]; } else { result2 = null; pos = clone(pos3); } } else { result2 = null; pos = clone(pos3); } if (result2 !== null) { result2 = (function(offset, line, column, lit) {return lit._value()})(pos2.offset, pos2.line, pos2.column, result2[0]); } if (result2 === null) { pos = clone(pos2); } while (result2 !== null) { result1.push(result2); pos2 = clone(pos); pos3 = clone(pos); result2 = <API key>(); if (result2 === null) { result2 = <API key>(); if (result2 === null) { result2 = parse_bareSymbol(); } } if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result2 = [result2, result3]; } else { result2 = null; pos = clone(pos3); } } else { result2 = null; pos = clone(pos3); } if (result2 !== null) { result2 = (function(offset, line, column, lit) {return lit._value()})(pos2.offset, pos2.line, pos2.column, result2[0]); } if (result2 === null) { pos = clone(pos2); } } if (result1 !== null) { result2 = parse_ws(); if (result2 !== null) { if (input.charCodeAt(pos.offset) === 41) { result3 = ")"; advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("\")\""); } } if (result3 !== null) { result0 = [result0, result1, result2, result3]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, lits) { return smalltalk.ValueNode._new() ._position_((line).__at(column)) ._value_(lits) })(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_dynamicArray() { var cacheKey = "dynamicArray@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4, result5; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (input.charCodeAt(pos.offset) === 123) { result0 = "{"; advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"{\""); } } if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { result2 = parse_expressions(); result2 = result2 !== null ? result2 : ""; if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { if (input.charCodeAt(pos.offset) === 46) { result4 = "."; advance(pos, 1); } else { result4 = null; if (reportFailures === 0) { matchFailed("\".\""); } } result4 = result4 !== null ? result4 : ""; if (result4 !== null) { if (input.charCodeAt(pos.offset) === 125) { result5 = "}"; advance(pos, 1); } else { result5 = null; if (reportFailures === 0) { matchFailed("\"}\""); } } if (result5 !== null) { result0 = [result0, result1, result2, result3, result4, result5]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, expressions) { return smalltalk.DynamicArrayNode._new() ._position_((line).__at(column)) ._nodes_(expressions) })(pos0.offset, pos0.line, pos0.column, result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "dynamicDictionary@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (input.substr(pos.offset, 2) === " result0 = " advance(pos, 2); } else { result0 = null; if (reportFailures === 0) { matchFailed("\" } } if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { result2 = parse_expressions(); result2 = result2 !== null ? result2 : ""; if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { if (input.charCodeAt(pos.offset) === 125) { result4 = "}"; advance(pos, 1); } else { result4 = null; if (reportFailures === 0) { matchFailed("\"}\""); } } if (result4 !== null) { result0 = [result0, result1, result2, result3, result4]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, expressions) { return smalltalk.<API key>._new() ._position_((line).__at(column)) ._nodes_(expressions) })(pos0.offset, pos0.line, pos0.column, result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "pseudoVariable@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (input.substr(pos.offset, 4) === "true") { result0 = "true"; advance(pos, 4); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"true\""); } } if (result0 !== null) { result0 = (function(offset, line, column) {return true})(pos1.offset, pos1.line, pos1.column); } if (result0 === null) { pos = clone(pos1); } if (result0 === null) { pos1 = clone(pos); if (input.substr(pos.offset, 5) === "false") { result0 = "false"; advance(pos, 5); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"false\""); } } if (result0 !== null) { result0 = (function(offset, line, column) {return false})(pos1.offset, pos1.line, pos1.column); } if (result0 === null) { pos = clone(pos1); } if (result0 === null) { pos1 = clone(pos); if (input.substr(pos.offset, 3) === "nil") { result0 = "nil"; advance(pos, 3); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"nil\""); } } if (result0 !== null) { result0 = (function(offset, line, column) {return nil})(pos1.offset, pos1.line, pos1.column); } if (result0 === null) { pos = clone(pos1); } } } if (result0 !== null) { result0 = (function(offset, line, column, val) { return smalltalk.ValueNode._new() ._position_((line).__at(column)) ._value_(val) })(pos0.offset, pos0.line, pos0.column, result0); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "parseTimeLiteral@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; result0 = <API key>(); if (result0 === null) { result0 = parse_number(); if (result0 === null) { result0 = parse_literalArray(); if (result0 === null) { result0 = parse_string(); if (result0 === null) { result0 = parse_symbol(); } } } } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "runtimeLiteral@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; result0 = <API key>(); if (result0 === null) { result0 = parse_dynamicArray(); if (result0 === null) { result0 = parse_block(); } } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_literal() { var cacheKey = "literal@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; result0 = <API key>(); if (result0 === null) { result0 = <API key>(); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_variable() { var cacheKey = "variable@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; var pos0; pos0 = clone(pos); result0 = parse_varIdentifier(); if (result0 !== null) { result0 = (function(offset, line, column, identifier) { return smalltalk.VariableNode._new() ._position_((line).__at(column)) ._value_(identifier) })(pos0.offset, pos0.line, pos0.column, result0); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "classReference@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; var pos0; pos0 = clone(pos); result0 = parse_className(); if (result0 !== null) { result0 = (function(offset, line, column, className) { return smalltalk.ClassReferenceNode._new() ._position_((line).__at(column)) ._value_(className) })(pos0.offset, pos0.line, pos0.column, result0); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_reference() { var cacheKey = "reference@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; result0 = parse_variable(); if (result0 === null) { result0 = <API key>(); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_keywordPair() { var cacheKey = "keywordPair@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_keyword(); if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { result2 = parse_binarySend(); if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result0 = [result0, result1, result2, result3]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, key, arg) {return {key:key, arg: arg}})(pos0.offset, pos0.line, pos0.column, result0[0], result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "binarySelector@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; var pos0; pos0 = clone(pos); if (/^[\\+*\/=><,@%~|&\-]/.test(input.charAt(pos.offset))) { result1 = input.charAt(pos.offset); advance(pos, 1); } else { result1 = null; if (reportFailures === 0) { matchFailed("[\\\\+*\\/=><,@%~|&\\-]"); } } if (result1 !== null) { result0 = []; while (result1 !== null) { result0.push(result1); if (/^[\\+*\/=><,@%~|&\-]/.test(input.charAt(pos.offset))) { result1 = input.charAt(pos.offset); advance(pos, 1); } else { result1 = null; if (reportFailures === 0) { matchFailed("[\\\\+*\\/=><,@%~|&\\-]"); } } } } else { result0 = null; } if (result0 !== null) { result0 = (function(offset, line, column, bin) {return bin.join("")})(pos0.offset, pos0.line, pos0.column, result0); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "keywordPattern@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4; var pos0, pos1, pos2; pos0 = clone(pos); pos1 = clone(pos); pos2 = clone(pos); result1 = parse_ws(); if (result1 !== null) { result2 = parse_keyword(); if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result4 = parse_identifier(); if (result4 !== null) { result1 = [result1, result2, result3, result4]; } else { result1 = null; pos = clone(pos2); } } else { result1 = null; pos = clone(pos2); } } else { result1 = null; pos = clone(pos2); } } else { result1 = null; pos = clone(pos2); } if (result1 !== null) { result1 = (function(offset, line, column, key, arg) {return {key:key, arg: arg}})(pos1.offset, pos1.line, pos1.column, result1[1], result1[3]); } if (result1 === null) { pos = clone(pos1); } if (result1 !== null) { result0 = []; while (result1 !== null) { result0.push(result1); pos1 = clone(pos); pos2 = clone(pos); result1 = parse_ws(); if (result1 !== null) { result2 = parse_keyword(); if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result4 = parse_identifier(); if (result4 !== null) { result1 = [result1, result2, result3, result4]; } else { result1 = null; pos = clone(pos2); } } else { result1 = null; pos = clone(pos2); } } else { result1 = null; pos = clone(pos2); } } else { result1 = null; pos = clone(pos2); } if (result1 !== null) { result1 = (function(offset, line, column, key, arg) {return {key:key, arg: arg}})(pos1.offset, pos1.line, pos1.column, result1[1], result1[3]); } if (result1 === null) { pos = clone(pos1); } } } else { result0 = null; } if (result0 !== null) { result0 = (function(offset, line, column, pairs) { var keywords = []; var params = []; for(var i=0;i<pairs.length;i++){ keywords.push(pairs[i].key); } for(var i=0;i<pairs.length;i++){ params.push(pairs[i].arg); } return [keywords.join(""), params] })(pos0.offset, pos0.line, pos0.column, result0); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_binaryPattern() { var cacheKey = "binaryPattern@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ws(); if (result0 !== null) { result1 = <API key>(); if (result1 !== null) { result2 = parse_ws(); if (result2 !== null) { result3 = parse_identifier(); if (result3 !== null) { result0 = [result0, result1, result2, result3]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, selector, arg) {return [selector, [arg]]})(pos0.offset, pos0.line, pos0.column, result0[1], result0[3]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_unaryPattern() { var cacheKey = "unaryPattern@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ws(); if (result0 !== null) { result1 = parse_identifier(); if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, selector) {return [selector, []]})(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_expression() { var cacheKey = "expression@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; result0 = parse_assignment(); if (result0 === null) { result0 = parse_cascade(); if (result0 === null) { result0 = parse_keywordSend(); if (result0 === null) { result0 = parse_binarySend(); } } } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "expressionList@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ws(); if (result0 !== null) { if (input.charCodeAt(pos.offset) === 46) { result1 = "."; advance(pos, 1); } else { result1 = null; if (reportFailures === 0) { matchFailed("\".\""); } } if (result1 !== null) { result2 = parse_ws(); if (result2 !== null) { result3 = parse_expression(); if (result3 !== null) { result0 = [result0, result1, result2, result3]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, expression) {return expression})(pos0.offset, pos0.line, pos0.column, result0[3]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_expressions() { var cacheKey = "expressions@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_expression(); if (result0 !== null) { result1 = []; result2 = <API key>(); while (result2 !== null) { result1.push(result2); result2 = <API key>(); } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, first, others) { var result = [first]; for(var i=0;i<others.length;i++) { result.push(others[i]); } return result; })(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_assignment() { var cacheKey = "assignment@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_variable(); if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { if (input.substr(pos.offset, 2) === ":=") { result2 = ":="; advance(pos, 2); } else { result2 = null; if (reportFailures === 0) { matchFailed("\":=\""); } } if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result4 = parse_expression(); if (result4 !== null) { result0 = [result0, result1, result2, result3, result4]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, variable, expression) { return smalltalk.AssignmentNode._new() ._position_((line).__at(column)) ._left_(variable) ._right_(expression) })(pos0.offset, pos0.line, pos0.column, result0[0], result0[4]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_ret() { var cacheKey = "ret@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (input.charCodeAt(pos.offset) === 94) { result0 = "^"; advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"^\""); } } if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { result2 = parse_expression(); if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { if (input.charCodeAt(pos.offset) === 46) { result4 = "."; advance(pos, 1); } else { result4 = null; if (reportFailures === 0) { matchFailed("\".\""); } } result4 = result4 !== null ? result4 : ""; if (result4 !== null) { result0 = [result0, result1, result2, result3, result4]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, expression) { return smalltalk.ReturnNode._new() ._position_((line).__at(column)) ._nodes_([expression]) })(pos0.offset, pos0.line, pos0.column, result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_temps() { var cacheKey = "temps@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4; var pos0, pos1, pos2, pos3; pos0 = clone(pos); pos1 = clone(pos); if (input.charCodeAt(pos.offset) === 124) { result0 = "|"; advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"|\""); } } if (result0 !== null) { result1 = []; pos2 = clone(pos); pos3 = clone(pos); result2 = parse_ws(); if (result2 !== null) { result3 = parse_identifier(); if (result3 !== null) { result4 = parse_ws(); if (result4 !== null) { result2 = [result2, result3, result4]; } else { result2 = null; pos = clone(pos3); } } else { result2 = null; pos = clone(pos3); } } else { result2 = null; pos = clone(pos3); } if (result2 !== null) { result2 = (function(offset, line, column, variable) {return variable})(pos2.offset, pos2.line, pos2.column, result2[1]); } if (result2 === null) { pos = clone(pos2); } while (result2 !== null) { result1.push(result2); pos2 = clone(pos); pos3 = clone(pos); result2 = parse_ws(); if (result2 !== null) { result3 = parse_identifier(); if (result3 !== null) { result4 = parse_ws(); if (result4 !== null) { result2 = [result2, result3, result4]; } else { result2 = null; pos = clone(pos3); } } else { result2 = null; pos = clone(pos3); } } else { result2 = null; pos = clone(pos3); } if (result2 !== null) { result2 = (function(offset, line, column, variable) {return variable})(pos2.offset, pos2.line, pos2.column, result2[1]); } if (result2 === null) { pos = clone(pos2); } } if (result1 !== null) { if (input.charCodeAt(pos.offset) === 124) { result2 = "|"; advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("\"|\""); } } if (result2 !== null) { result0 = [result0, result1, result2]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, vars) {return vars})(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "blockParamList@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4; var pos0, pos1, pos2, pos3; pos0 = clone(pos); pos1 = clone(pos); pos2 = clone(pos); pos3 = clone(pos); result1 = parse_ws(); if (result1 !== null) { if (input.charCodeAt(pos.offset) === 58) { result2 = ":"; advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("\":\""); } } if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result4 = parse_identifier(); if (result4 !== null) { result1 = [result1, result2, result3, result4]; } else { result1 = null; pos = clone(pos3); } } else { result1 = null; pos = clone(pos3); } } else { result1 = null; pos = clone(pos3); } } else { result1 = null; pos = clone(pos3); } if (result1 !== null) { result1 = (function(offset, line, column, param) {return param})(pos2.offset, pos2.line, pos2.column, result1[3]); } if (result1 === null) { pos = clone(pos2); } if (result1 !== null) { result0 = []; while (result1 !== null) { result0.push(result1); pos2 = clone(pos); pos3 = clone(pos); result1 = parse_ws(); if (result1 !== null) { if (input.charCodeAt(pos.offset) === 58) { result2 = ":"; advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("\":\""); } } if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result4 = parse_identifier(); if (result4 !== null) { result1 = [result1, result2, result3, result4]; } else { result1 = null; pos = clone(pos3); } } else { result1 = null; pos = clone(pos3); } } else { result1 = null; pos = clone(pos3); } } else { result1 = null; pos = clone(pos3); } if (result1 !== null) { result1 = (function(offset, line, column, param) {return param})(pos2.offset, pos2.line, pos2.column, result1[3]); } if (result1 === null) { pos = clone(pos2); } } } else { result0 = null; } if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { if (input.charCodeAt(pos.offset) === 124) { result2 = "|"; advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("\"|\""); } } if (result2 !== null) { result0 = [result0, result1, result2]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, params) {return params})(pos0.offset, pos0.line, pos0.column, result0[0]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_subexpression() { var cacheKey = "subexpression@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (input.charCodeAt(pos.offset) === 40) { result0 = "("; advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"(\""); } } if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { result2 = parse_expression(); if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { if (input.charCodeAt(pos.offset) === 41) { result4 = ")"; advance(pos, 1); } else { result4 = null; if (reportFailures === 0) { matchFailed("\")\""); } } if (result4 !== null) { result0 = [result0, result1, result2, result3, result4]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, expression) {return expression})(pos0.offset, pos0.line, pos0.column, result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_statements() { var cacheKey = "statements@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4, result5, result6; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ret(); if (result0 !== null) { result1 = []; if (/^[.]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[.]"); } } while (result2 !== null) { result1.push(result2); if (/^[.]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[.]"); } } } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, ret) {return [ret]})(pos0.offset, pos0.line, pos0.column, result0[0]); } if (result0 === null) { pos = clone(pos0); } if (result0 === null) { pos0 = clone(pos); pos1 = clone(pos); result0 = parse_expressions(); if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { if (/^[.]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[.]"); } } if (result3 !== null) { result2 = []; while (result3 !== null) { result2.push(result3); if (/^[.]/.test(input.charAt(pos.offset))) { result3 = input.charAt(pos.offset); advance(pos, 1); } else { result3 = null; if (reportFailures === 0) { matchFailed("[.]"); } } } } else { result2 = null; } if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result4 = parse_ret(); if (result4 !== null) { result5 = []; if (/^[.]/.test(input.charAt(pos.offset))) { result6 = input.charAt(pos.offset); advance(pos, 1); } else { result6 = null; if (reportFailures === 0) { matchFailed("[.]"); } } while (result6 !== null) { result5.push(result6); if (/^[.]/.test(input.charAt(pos.offset))) { result6 = input.charAt(pos.offset); advance(pos, 1); } else { result6 = null; if (reportFailures === 0) { matchFailed("[.]"); } } } if (result5 !== null) { result0 = [result0, result1, result2, result3, result4, result5]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, exps, ret) { var expressions = exps; expressions.push(ret); return expressions })(pos0.offset, pos0.line, pos0.column, result0[0], result0[4]); } if (result0 === null) { pos = clone(pos0); } if (result0 === null) { pos0 = clone(pos); pos1 = clone(pos); result0 = parse_expressions(); result0 = result0 !== null ? result0 : ""; if (result0 !== null) { result1 = []; if (/^[.]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[.]"); } } while (result2 !== null) { result1.push(result2); if (/^[.]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[.]"); } } } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, expressions) { return expressions || [] })(pos0.offset, pos0.line, pos0.column, result0[0]); } if (result0 === null) { pos = clone(pos0); } } } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_sequence() { var cacheKey = "sequence@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; result0 = parse_jsStatement(); if (result0 === null) { result0 = parse_stSequence(); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_stSequence() { var cacheKey = "stSequence@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_temps(); result0 = result0 !== null ? result0 : ""; if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { result2 = parse_statements(); result2 = result2 !== null ? result2 : ""; if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result0 = [result0, result1, result2, result3]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, temps, statements) { return smalltalk.SequenceNode._new() ._position_((line).__at(column)) ._temps_(temps || []) ._nodes_(statements || []) })(pos0.offset, pos0.line, pos0.column, result0[0], result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_block() { var cacheKey = "block@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4, result5, result6; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); if (input.charCodeAt(pos.offset) === 91) { result0 = "["; advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"[\""); } } if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { result2 = <API key>(); result2 = result2 !== null ? result2 : ""; if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result4 = parse_sequence(); result4 = result4 !== null ? result4 : ""; if (result4 !== null) { result5 = parse_ws(); if (result5 !== null) { if (input.charCodeAt(pos.offset) === 93) { result6 = "]"; advance(pos, 1); } else { result6 = null; if (reportFailures === 0) { matchFailed("\"]\""); } } if (result6 !== null) { result0 = [result0, result1, result2, result3, result4, result5, result6]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, params, sequence) { return smalltalk.BlockNode._new() ._position_((line).__at(column)) ._parameters_(params || []) ._nodes_([sequence.<API key>()]) })(pos0.offset, pos0.line, pos0.column, result0[2], result0[4]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_operand() { var cacheKey = "operand@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; result0 = parse_literal(); if (result0 === null) { result0 = parse_reference(); if (result0 === null) { result0 = parse_subexpression(); } } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_unaryMessage() { var cacheKey = "unaryMessage@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1, pos2; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ws(); if (result0 !== null) { result1 = parse_identifier(); if (result1 !== null) { pos2 = clone(pos); reportFailures++; if (/^[:]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[:]"); } } reportFailures if (result2 === null) { result2 = ""; } else { result2 = null; pos = clone(pos2); } if (result2 !== null) { result0 = [result0, result1, result2]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, selector) { return smalltalk.SendNode._new() ._position_((line).__at(column)) ._selector_(selector) })(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_unaryTail() { var cacheKey = "unaryTail@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_unaryMessage(); if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { result2 = parse_unaryTail(); result2 = result2 !== null ? result2 : ""; if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result0 = [result0, result1, result2, result3]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, message, tail) { if(tail) { return tail._valueForReceiver_(message); } else { return message; } })(pos0.offset, pos0.line, pos0.column, result0[0], result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_unarySend() { var cacheKey = "unarySend@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_operand(); if (result0 !== null) { result1 = parse_ws(); if (result1 !== null) { result2 = parse_unaryTail(); result2 = result2 !== null ? result2 : ""; if (result2 !== null) { result0 = [result0, result1, result2]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, receiver, tail) { if(tail) { return tail._valueForReceiver_(receiver); } else { return receiver; } })(pos0.offset, pos0.line, pos0.column, result0[0], result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_binaryMessage() { var cacheKey = "binaryMessage@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ws(); if (result0 !== null) { result1 = <API key>(); if (result1 !== null) { result2 = parse_ws(); if (result2 !== null) { result3 = parse_unarySend(); if (result3 === null) { result3 = parse_operand(); } if (result3 !== null) { result0 = [result0, result1, result2, result3]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, selector, arg) { return smalltalk.SendNode._new() ._position_((line).__at(column)) ._selector_(selector) ._arguments_([arg]) })(pos0.offset, pos0.line, pos0.column, result0[1], result0[3]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_binaryTail() { var cacheKey = "binaryTail@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_binaryMessage(); if (result0 !== null) { result1 = parse_binaryTail(); result1 = result1 !== null ? result1 : ""; if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, message, tail) { if(tail) { return tail._valueForReceiver_(message); } else { return message; } })(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_binarySend() { var cacheKey = "binarySend@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_unarySend(); if (result0 !== null) { result1 = parse_binaryTail(); result1 = result1 !== null ? result1 : ""; if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, receiver, tail) { if(tail) { return tail._valueForReceiver_(receiver); } else { return receiver; } })(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function <API key>() { var cacheKey = "keywordMessage@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3; var pos0, pos1, pos2, pos3; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ws(); if (result0 !== null) { pos2 = clone(pos); pos3 = clone(pos); result2 = parse_keywordPair(); if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result2 = [result2, result3]; } else { result2 = null; pos = clone(pos3); } } else { result2 = null; pos = clone(pos3); } if (result2 !== null) { result2 = (function(offset, line, column, pair) {return pair})(pos2.offset, pos2.line, pos2.column, result2[0]); } if (result2 === null) { pos = clone(pos2); } if (result2 !== null) { result1 = []; while (result2 !== null) { result1.push(result2); pos2 = clone(pos); pos3 = clone(pos); result2 = parse_keywordPair(); if (result2 !== null) { result3 = parse_ws(); if (result3 !== null) { result2 = [result2, result3]; } else { result2 = null; pos = clone(pos3); } } else { result2 = null; pos = clone(pos3); } if (result2 !== null) { result2 = (function(offset, line, column, pair) {return pair})(pos2.offset, pos2.line, pos2.column, result2[0]); } if (result2 === null) { pos = clone(pos2); } } } else { result1 = null; } if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, pairs) { var selector = []; var args = []; for(var i=0;i<pairs.length;i++) { selector.push(pairs[i].key); args.push(pairs[i].arg); } return smalltalk.SendNode._new() ._position_((line).__at(column)) ._selector_(selector.join("")) ._arguments_(args) })(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_keywordSend() { var cacheKey = "keywordSend@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_binarySend(); if (result0 !== null) { result1 = <API key>(); if (result1 !== null) { result0 = [result0, result1]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, receiver, tail) { return tail._valueForReceiver_(receiver); })(pos0.offset, pos0.line, pos0.column, result0[0], result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_message() { var cacheKey = "message@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0; result0 = parse_binaryMessage(); if (result0 === null) { result0 = parse_unaryMessage(); if (result0 === null) { result0 = <API key>(); } } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_cascade() { var cacheKey = "cascade@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4, result5, result6, result7; var pos0, pos1, pos2, pos3; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ws(); if (result0 !== null) { result1 = parse_keywordSend(); if (result1 === null) { result1 = parse_binarySend(); } if (result1 !== null) { pos2 = clone(pos); pos3 = clone(pos); result3 = parse_ws(); if (result3 !== null) { if (input.charCodeAt(pos.offset) === 59) { result4 = ";"; advance(pos, 1); } else { result4 = null; if (reportFailures === 0) { matchFailed("\";\""); } } if (result4 !== null) { result5 = parse_ws(); if (result5 !== null) { result6 = parse_message(); if (result6 !== null) { result7 = parse_ws(); if (result7 !== null) { result3 = [result3, result4, result5, result6, result7]; } else { result3 = null; pos = clone(pos3); } } else { result3 = null; pos = clone(pos3); } } else { result3 = null; pos = clone(pos3); } } else { result3 = null; pos = clone(pos3); } } else { result3 = null; pos = clone(pos3); } if (result3 !== null) { result3 = (function(offset, line, column, mess) {return mess})(pos2.offset, pos2.line, pos2.column, result3[3]); } if (result3 === null) { pos = clone(pos2); } if (result3 !== null) { result2 = []; while (result3 !== null) { result2.push(result3); pos2 = clone(pos); pos3 = clone(pos); result3 = parse_ws(); if (result3 !== null) { if (input.charCodeAt(pos.offset) === 59) { result4 = ";"; advance(pos, 1); } else { result4 = null; if (reportFailures === 0) { matchFailed("\";\""); } } if (result4 !== null) { result5 = parse_ws(); if (result5 !== null) { result6 = parse_message(); if (result6 !== null) { result7 = parse_ws(); if (result7 !== null) { result3 = [result3, result4, result5, result6, result7]; } else { result3 = null; pos = clone(pos3); } } else { result3 = null; pos = clone(pos3); } } else { result3 = null; pos = clone(pos3); } } else { result3 = null; pos = clone(pos3); } } else { result3 = null; pos = clone(pos3); } if (result3 !== null) { result3 = (function(offset, line, column, mess) {return mess})(pos2.offset, pos2.line, pos2.column, result3[3]); } if (result3 === null) { pos = clone(pos2); } } } else { result2 = null; } if (result2 !== null) { result0 = [result0, result1, result2]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, send, messages) { var cascade = []; cascade.push(send); for(var i=0;i<messages.length;i++) { cascade.push(messages[i]); } return smalltalk.CascadeNode._new() ._position_((line).__at(column)) ._receiver_(send._receiver()) ._nodes_(cascade) })(pos0.offset, pos0.line, pos0.column, result0[1], result0[2]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_jsStatement() { var cacheKey = "jsStatement@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2; var pos0, pos1, pos2; pos0 = clone(pos); pos1 = clone(pos); if (input.charCodeAt(pos.offset) === 60) { result0 = "<"; advance(pos, 1); } else { result0 = null; if (reportFailures === 0) { matchFailed("\"<\""); } } if (result0 !== null) { result1 = []; pos2 = clone(pos); if (input.substr(pos.offset, 2) === ">>") { result2 = ">>"; advance(pos, 2); } else { result2 = null; if (reportFailures === 0) { matchFailed("\">>\""); } } if (result2 !== null) { result2 = (function(offset, line, column) {return ">"})(pos2.offset, pos2.line, pos2.column); } if (result2 === null) { pos = clone(pos2); } if (result2 === null) { if (/^[^>]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[^>]"); } } } while (result2 !== null) { result1.push(result2); pos2 = clone(pos); if (input.substr(pos.offset, 2) === ">>") { result2 = ">>"; advance(pos, 2); } else { result2 = null; if (reportFailures === 0) { matchFailed("\">>\""); } } if (result2 !== null) { result2 = (function(offset, line, column) {return ">"})(pos2.offset, pos2.line, pos2.column); } if (result2 === null) { pos = clone(pos2); } if (result2 === null) { if (/^[^>]/.test(input.charAt(pos.offset))) { result2 = input.charAt(pos.offset); advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("[^>]"); } } } } if (result1 !== null) { if (input.charCodeAt(pos.offset) === 62) { result2 = ">"; advance(pos, 1); } else { result2 = null; if (reportFailures === 0) { matchFailed("\">\""); } } if (result2 !== null) { result0 = [result0, result1, result2]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, val) { return smalltalk.JSStatementNode._new() ._position_((line).__at(column)) ._source_(val.join("")) })(pos0.offset, pos0.line, pos0.column, result0[1]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function parse_method() { var cacheKey = "method@" + pos.offset; var cachedResult = cache[cacheKey]; if (cachedResult) { pos = clone(cachedResult.nextPos); return cachedResult.result; } var result0, result1, result2, result3, result4; var pos0, pos1; pos0 = clone(pos); pos1 = clone(pos); result0 = parse_ws(); if (result0 !== null) { result1 = <API key>(); if (result1 === null) { result1 = parse_binaryPattern(); if (result1 === null) { result1 = parse_unaryPattern(); } } if (result1 !== null) { result2 = parse_ws(); if (result2 !== null) { result3 = parse_sequence(); result3 = result3 !== null ? result3 : ""; if (result3 !== null) { result4 = parse_ws(); if (result4 !== null) { result0 = [result0, result1, result2, result3, result4]; } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } } else { result0 = null; pos = clone(pos1); } if (result0 !== null) { result0 = (function(offset, line, column, pattern, sequence) { return smalltalk.MethodNode._new() ._position_((line).__at(column)) ._selector_(pattern[0]) ._arguments_(pattern[1]) ._nodes_([sequence]) })(pos0.offset, pos0.line, pos0.column, result0[1], result0[3]); } if (result0 === null) { pos = clone(pos0); } cache[cacheKey] = { nextPos: clone(pos), result: result0 }; return result0; } function cleanupExpected(expected) { expected.sort(); var lastExpected = null; var cleanExpected = []; for (var i = 0; i < expected.length; i++) { if (expected[i] !== lastExpected) { cleanExpected.push(expected[i]); lastExpected = expected[i]; } } return cleanExpected; } var result = parseFunctions[startRule](); if (result === null || pos.offset !== input.length) { var offset = Math.max(pos.offset, <API key>.offset); var found = offset < input.length ? input.charAt(offset) : null; var errorPosition = pos.offset > <API key>.offset ? pos : <API key>; throw new this.SyntaxError( cleanupExpected(<API key>), found, offset, errorPosition.line, errorPosition.column ); } return result; }, /* Returns the parser source code. */ toSource: function() { return this._source; } }; /* Thrown when a parser encounters a syntax error. */ result.SyntaxError = function(expected, found, offset, line, column) { function buildMessage(expected, found) { var expectedHumanized, foundHumanized; switch (expected.length) { case 0: expectedHumanized = "end of input"; break; case 1: expectedHumanized = expected[0]; break; default: expectedHumanized = expected.slice(0, expected.length - 1).join(", ") + " or " + expected[expected.length - 1]; } foundHumanized = found ? quote(found) : "end of input"; return "Expected " + expectedHumanized + " but " + foundHumanized + " found."; } this.name = "SyntaxError"; this.expected = expected; this.found = found; this.message = buildMessage(expected, found); this.offset = offset; this.line = line; this.column = column; }; result.SyntaxError.prototype = Error.prototype; return result; })();
# -*- coding: utf-8 -*- #By : obnjis@163.com #Python 2.7 + BeautifulSoup 4 #2014-12-18 from bs4 import BeautifulSoup import re import sys,os import urllib import codecs def rpb(blocknum, blocksize, totalsize): percent = 100.0 * blocknum * blocksize / totalsize if percent > 100:percent = 100 sys.stdout.write("'[%.2f%%] \r" % (percent) ) sys.stdout.flush() def parser(url): html = urllib.urlopen(url).read() #unicodeutf-8BeautifulSoup htm=unicode(html,'gb2312','ignore').encode('utf-8','ignore') #BeautifulSoup soup = BeautifulSoup(htm) #MP4 detail=soup.find('div',{"class":'f-pa menu j-downitem'}) downlink=detail.findAll('a')[2] downlink1=downlink.attrs.get('href') print downlink1 return downlink1 #def clearData(self): def downlaod(url): html = urllib.urlopen(url).read() #unicodeutf-8BeautifulSoup htm=unicode(html,'gb2312','ignore').encode('utf-8','ignore') #BeautifulSoup soup = BeautifulSoup(htm) detail=soup.findAll('tr',{'class':['u-odd','u-even']}) for i in detail: linkurl=i.find('td',{"class" : "u-ctitle"}) downLink=linkurl.a['href'] fileName=linkurl.contents[0].strip() .lstrip() .rstrip('>') + linkurl.a.string.strip() .lstrip() .rstrip('<') print fileName print downLink #L.append(fileName) if not os.path.exists(fileName): downLink1=parser(downLink) urllib.urlretrieve(downLink1,fileName+".mp4",rpb) def main(argv): if len(argv)>=2: downlaod(argv[1]) if __name__=="__main__": main(sys.argv)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>cats-in-zfc: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.13.1 / cats-in-zfc - 8.9.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> cats-in-zfc <small> 8.9.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-02-04 18:52:19 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-04 18:52:19 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 4 Virtual package relying on a GMP lib system installation coq 8.13.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/cats-in-zfc&quot; license: &quot;LGPL 2.1&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/CatsInZFC&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.10~&quot;} ] tags: [ &quot;keyword: set theory&quot; &quot;keyword: ordinal numbers&quot; &quot;keyword: cardinal numbers&quot; &quot;keyword: category theory&quot; &quot;keyword: functors&quot; &quot;keyword: natural transformation&quot; &quot;keyword: limit&quot; &quot;keyword: colimit&quot; &quot;category: Mathematics/Logic/Set theory&quot; &quot;category: Mathematics/Category Theory&quot; &quot;date: 2004-10-10&quot; ] authors: [ &quot;Carlos Simpson &lt;carlos@math.unice.fr&gt; [http://math.unice.fr/~carlos/]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/cats-in-zfc/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/cats-in-zfc.git&quot; synopsis: &quot;Category theory in ZFC&quot; description: &quot;&quot;&quot; In a ZFC-like environment augmented by reference to the ambient type theory, we develop some basic set theory, ordinals, cardinals and transfinite induction, and category theory including functors, natural transformations, limits and colimits, functor categories, and the theorem that functor_cat a b has (co)limits if b does.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/cats-in-zfc/archive/v8.9.0.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-cats-in-zfc.8.9.0 coq.8.13.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.13.1). The following dependencies couldn&#39;t be met: - coq-cats-in-zfc -&gt; coq &lt; 8.10~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-cats-in-zfc.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.strings.label.xml Template File: <API key>.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data using a connect socket (client side) * GoodSource: Fixed string * Sinks: w32_spawnvp * BadSink : execute command with wspawnvp * Flow Variant: 83 Data flow: data passed to class constructor and destructor by declaring the class object on the stack * * */ #ifndef OMITGOOD #include "std_testcase.h" #include "<API key>.h" #include <process.h> namespace <API key> { <API key>::<API key>(wchar_t * dataCopy) { data = dataCopy; /* FIX: Append a fixed string to data (not user / external input) */ wcscat(data, L"*.*"); } <API key>::~<API key>() { { wchar_t *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* wspawnvp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ _wspawnvp(_P_WAIT, COMMAND_INT, args); } } } #endif /* OMITGOOD */
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>menhirlib: 40 s </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.7.2 / menhirlib - 20200123</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> menhirlib <small> 20200123 <span class="label label-success">40 s </span> </small> </h1> <p> <em><script>document.write(moment("2022-01-20 08:18:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-20 08:18:01 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 <API key> of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.7.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.08.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.08.1 Official release 4.08.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; synopsis: &quot;A support library for verified Coq parsers produced by Menhir&quot; maintainer: &quot;francois.pottier@inria.fr&quot; authors: [ &quot;Jacques-Henri Jourdan &lt;jacques-henri.jourdan@lri.fr&gt;&quot; ] homepage: &quot;https://gitlab.inria.fr/fpottier/menhir&quot; dev-repo: &quot;git+https://gitlab.inria.fr/fpottier/menhir.git&quot; bug-reports: &quot;jacques-henri.jourdan@lri.fr&quot; license: &quot;LGPL-3.0-or-later&quot; build: [ [make &quot;-C&quot; &quot;coq-menhirlib&quot; &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;-C&quot; &quot;coq-menhirlib&quot; &quot;install&quot;] ] depends: [ &quot;coq&quot; { &gt;= &quot;8.7&quot; &amp; &lt; &quot;8.12&quot; } ] conflicts: [ &quot;menhir&quot; { != &quot;20200123&quot; } ] tags: [ &quot;date:2020-01-23&quot; &quot;logpath:MenhirLib&quot; ] url { src: &quot;https://gitlab.inria.fr/fpottier/menhir/-/archive/20200123/archive.tar.gz&quot; checksum: [ &quot;md5=<API key>&quot; &quot;sha512=4a7c4a72d4437940a0f62d402f783efcf357dde6f0a9e9f164c315148776e4642a822b6472f1e6e641164d110bc1ee05a6c1ad4a733f5defe4603b6072c1a34f&quot; ] } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-menhirlib.20200123 coq.8.7.2</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-menhirlib.20200123 coq.8.7.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>12 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-menhirlib.20200123 coq.8.7.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>40 s</dd> </dl> <h2>Installation size</h2> <p>Total: 6 M</p> <ul> <li>2 M <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/<API key>.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Main.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Validator_complete.vo</code></li> <li>333 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Interpreter.vo</code></li> <li>264 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Interpreter_correct.vo</code></li> <li>156 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Validator_safe.vo</code></li> <li>124 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Automaton.vo</code></li> <li>105 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/<API key>.glob</code></li> <li>87 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Alphabet.vo</code></li> <li>79 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Grammar.vo</code></li> <li>42 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Interpreter.glob</code></li> <li>41 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Validator_classes.vo</code></li> <li>38 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Validator_complete.glob</code></li> <li>33 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Alphabet.glob</code></li> <li>33 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/<API key>.v</code></li> <li>20 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Interpreter_correct.glob</code></li> <li>18 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Validator_safe.glob</code></li> <li>18 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Interpreter.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Validator_complete.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Grammar.glob</code></li> <li>9 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Automaton.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Alphabet.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Validator_safe.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Main.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Interpreter_correct.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Automaton.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Validator_classes.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Grammar.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Main.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Validator_classes.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Version.vo</code></li> <li>1 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Version.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/MenhirLib/Version.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-menhirlib.20200123</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
# This service is an example to show a nice way to create a Service Object class GithubService include HTTParty # The base URI should be taken from environment variables base_uri 'https://api.github.com' def repositories(username) self.class.get("/users/#{username}/repos") end end
# -*- coding: utf-8 -*- import os.path from twisted.python import util from twisted.web import resource, static from twisted.internet import reactor import coherence.extern.louie as louie from coherence import log class DeviceHttpRoot(resource.Resource, log.Loggable): logCategory = 'basicdevice' def __init__(self, server): resource.Resource.__init__(self) log.Loggable.__init__(self) self.server = server def getChildWithDefault(self, path, request): self.info('DeviceHttpRoot %s getChildWithDefault %s %s %s', self.server.device_type, path, request.uri, request.client) self.info(request.getAllHeaders()) if self.children.has_key(path): return self.children[path] if request.uri == '/': return self return self.getChild(path, request) def getChild(self, name, request): self.info('DeviceHttpRoot %s getChild %s', name, request) ch = None if ch is None: p = util.sibpath(__file__, name) if os.path.exists(p): ch = static.File(p) self.info('DeviceHttpRoot ch %s', ch) return ch def listchilds(self, uri): cl = '' for c in self.children: cl += '<li><a href=%s/%s>%s</a></li>' % (uri, c, c) return cl def render(self, request): return '<html><p>root of the %s %s</p><p><ul>%s</ul></p></html>' % (self.server.backend.name, self.server.device_type, self.listchilds(request.uri)) # class RootDeviceXML(static.Data): # def __init__(self, hostname, uuid, urlbase, # xmlns='urn:schemas-upnp-org:device-1-0', # device_uri_base='urn:schemas-upnp-org:device', # device_type='BasicDevice', # version=2, # friendly_name='Coherence UPnP BasicDevice', # manufacturer='beebits.net', # model_description='Coherence UPnP BasicDevice', # model_name='Coherence UPnP BasicDevice', # model_number=__version__, # serial_number='0000001', # presentation_url='', # services=None, # devices=None, # icons=None, # dlna_caps=None): # uuid = str(uuid) # root = ET.Element('root') # root.attrib['xmlns'] = xmlns # device_type_uri = ':'.join((device_uri_base, device_type, str(version))) # e = ET.SubElement(root, 'specVersion') # ET.SubElement(e, 'major').text = '1' # ET.SubElement(e, 'minor').text = '0' # #ET.SubElement(root, 'URLBase').text = urlbase + uuid[5:] + '/' # d = ET.SubElement(root, 'device') # if device_type == 'MediaServer': # x = ET.SubElement(d, 'dev:X_DLNADOC') # x.text = 'DMS-1.50' # x = ET.SubElement(d, 'dev:X_DLNADOC') # x.text = 'M-DMS-1.50' # elif device_type == 'MediaRenderer': # x = ET.SubElement(d, 'dev:X_DLNADOC') # x.text = 'DMR-1.50' # x = ET.SubElement(d, 'dev:X_DLNADOC') # x.text = 'M-DMR-1.50' # if len(dlna_caps) > 0: # if isinstance(dlna_caps, basestring): # dlna_caps = [dlna_caps] # for cap in dlna_caps: # x = ET.SubElement(d, 'dev:X_DLNACAP') # x.text = cap # ET.SubElement(d, 'deviceType').text = device_type_uri # ET.SubElement(d, 'friendlyName').text = friendly_name # ET.SubElement(d, 'manufacturer').text = manufacturer # ET.SubElement(d, 'manufacturerURL').text = manufacturer_url # ET.SubElement(d, 'modelDescription').text = model_description # ET.SubElement(d, 'modelName').text = model_name # ET.SubElement(d, 'modelNumber').text = model_number # ET.SubElement(d, 'modelURL').text = model_url # ET.SubElement(d, 'serialNumber').text = serial_number # ET.SubElement(d, 'UDN').text = uuid # ET.SubElement(d, 'UPC').text = '' # ET.SubElement(d, 'presentationURL').text = presentation_url # if len(services): # e = ET.SubElement(d, 'serviceList') # for service in services: # id = service.get_id() # s = ET.SubElement(e, 'service') # try: # namespace = service.namespace # except: # namespace = 'schemas-upnp-org' # if(hasattr(service, 'version') and # service.version < version): # v = service.version # else: # v = version # ET.SubElement(s, 'serviceType').text = 'urn:%s:service:%s:%d' % (namespace, id, int(v)) # try: # namespace = service.id_namespace # except: # namespace = 'upnp-org' # ET.SubElement(s, 'serviceId').text = 'urn:%s:serviceId:%s' % (namespace, id) # ET.SubElement(s, 'SCPDURL').text = '/' + uuid[5:] + '/' + id + '/' + service.scpd_url # ET.SubElement(s, 'controlURL').text = '/' + uuid[5:] + '/' + id + '/' + service.control_url # ET.SubElement(s, 'eventSubURL').text = '/' + uuid[5:] + '/' + id + '/' + service.subscription_url # if len(devices): # e = ET.SubElement(d, 'deviceList') # if len(icons): # e = ET.SubElement(d, 'iconList') # for icon in icons: # icon_path = '' # if icon.has_key('url'): # if icon['url'].startswith('file://'): # icon_path = icon['url'][7:] # elif icon['url'] == '.face': # icon_path = os.path.join(os.path.expanduser('~'), ".face") # else: # from pkg_resources import resource_filename # icon_path = os.path.abspath(resource_filename(__name__, os.path.join('..', '..', '..', 'misc', 'device-icons', icon['url']))) # if os.path.exists(icon_path) == True: # i = ET.SubElement(e, 'icon') # for k, v in icon.items(): # if k == 'url': # if v.startswith('file://'): # ET.SubElement(i, k).text = '/' + uuid[5:] + '/' + os.path.basename(v) # continue # elif v == '.face': # ET.SubElement(i, k).text = '/' + uuid[5:] + '/' + 'face-icon.png' # continue # else: # ET.SubElement(i, k).text = '/' + uuid[5:] + '/' + os.path.basename(v) # continue # ET.SubElement(i, k).text = str(v) # #if self.has_level(LOG_DEBUG): # # indent( root) # self.xml = """<?xml version="1.0" encoding="utf-8"?>""" + ET.tostring(root, encoding='utf-8') # static.Data.__init__(self, self.xml, 'text/xml') class BasicDeviceMixin(object): def __init__(self, coherence, backend, **kwargs): self.coherence = coherence if not hasattr(self, 'version'): self.version = int(kwargs.get('version', self.coherence.config.get('version', 2))) try: self.uuid = kwargs['uuid'] if not self.uuid.startswith('uuid:'): self.uuid = 'uuid:' + self.uuid except KeyError: from coherence.upnp.core.uuid import UUID self.uuid = UUID() self.backend = None urlbase = self.coherence.urlbase if urlbase[-1] != '/': urlbase += '/' self.urlbase = urlbase + str(self.uuid)[5:] kwargs['urlbase'] = self.urlbase self.icons = kwargs.get('iconlist', kwargs.get('icons', [])) if len(self.icons) == 0: if kwargs.has_key('icon'): if isinstance(kwargs['icon'], dict): self.icons.append(kwargs['icon']) else: self.icons = kwargs['icon'] louie.connect(self.init_complete, 'Coherence.UPnP.Backend.init_completed', louie.Any) louie.connect(self.init_failed, 'Coherence.UPnP.Backend.init_failed', louie.Any) reactor.callLater(0.2, self.fire, backend, **kwargs) def init_failed(self, backend, msg): if self.backend != backend: return self.warning('backend not installed, %s activation aborted - %s' % (self.device_type, msg.getErrorMessage())) self.debug(msg) try: del self.coherence.active_backends[str(self.uuid)] except KeyError: pass def register(self): s = self.coherence.ssdp_server uuid = str(self.uuid) host = self.coherence.hostname self.msg('%s register' % self.device_type) # we need to do this after the children are there, since we send notifies s.register('local', '%s::upnp:rootdevice' % uuid, 'upnp:rootdevice', self.coherence.urlbase + uuid[5:] + '/' + 'description-%d.xml' % self.version, host=host) s.register('local', uuid, uuid, self.coherence.urlbase + uuid[5:] + '/' + 'description-%d.xml' % self.version, host=host) version = self.version while version > 0: if version == self.version: silent = False else: silent = True s.register('local', '%s::urn:schemas-upnp-org:device:%s:%d' % (uuid, self.device_type, version), 'urn:schemas-upnp-org:device:%s:%d' % (self.device_type, version), self.coherence.urlbase + uuid[5:] + '/' + 'description-%d.xml' % version, silent=silent, host=host) version -= 1 for service in self._services: device_version = self.version service_version = self.version if hasattr(service, 'version'): service_version = service.version silent = False while service_version > 0: try: namespace = service.namespace except: namespace = 'schemas-upnp-org' <API key> = 'description-%d.xml' % device_version if hasattr(service, '<API key>'): <API key> = service.<API key> s.register('local', '%s::urn:%s:service:%s:%d' % (uuid, namespace, service.id, service_version), 'urn:%s:service:%s:%d' % (namespace, service.id, service_version), self.coherence.urlbase + uuid[5:] + '/' + <API key>, silent=silent, host=host) silent = True service_version -= 1 device_version -= 1 def unregister(self): if self.backend != None and hasattr(self.backend, 'release'): self.backend.release() if not hasattr(self, '_services'): """ seems we never made it to actually completing that device """ return for service in self._services: try: service.<API key>.stop() except: pass if hasattr(service, '<API key>') and service.<API key> != None: try: service.<API key>.stop() except: pass if hasattr(service, 'release'): service.release() if hasattr(service, '_release'): service._release() s = self.coherence.ssdp_server uuid = str(self.uuid) self.coherence.remove_web_resource(uuid[5:]) version = self.version while version > 0: s.doByebye('%s::urn:schemas-upnp-org:device:%s:%d' % (uuid, self.device_type, version)) for service in self._services: if hasattr(service, 'version') and service.version < version: continue try: namespace = service.namespace except AttributeError: namespace = 'schemas-upnp-org' s.doByebye('%s::urn:%s:service:%s:%d' % (uuid, namespace, service.id, version)) version -= 1 s.doByebye(uuid) s.doByebye('%s::upnp:rootdevice' % uuid)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <!-- Original URL: http://finitegeometry.org/sc/16/latin4x4.html Date Downloaded: 1/9/2016 12:17:10 AM ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The Order-4 (i.e., 4x4) Latin Squares</title> </head> <body leftmargin="100" rightmargin="100"> <br /> <!--Navigate <table width="100%" cellpadding="12" cellspacing="0"> <tr bgcolor="#000000"> <td bgcolor="#000000"> <strong><font color="#FFFFFF"> <small><small> Finite Geometry Notes</small></small></font></strong> <nobr> &nbsp; <font color="#FFFFFF">|</font> <a href="../index.html"> <font color="#FFFFFF"> Home</font></a> <font color="#FFFFFF">|</font> <a href="../map.html"> <font color="#FFFFFF">Site Map</font></a> <font color="#FFFFFF">|</font> <a href="../author.html"> <font color="#FFFFFF"> Author</font></a> <font color="#FFFFFF">|</font> </nobr> </td> </tr> </table> <!--EndNavigate <big><big><span style="font-weight: bold;"><br /> The Order-4 Latin Squares</span></big></big><br /> <br /> <span style="font-weight: bold;">by Steven H. Cullinane, Jan. 22, 2011</span><br /> <div class="storycontent"> <p>The following is <a href="http: the weblog</a> of a high school mathematics teacher&#8212;</p> <p style="margin-left: 40px;"><img alt="http: <p>This is related to the structure of the figure on the cover of the 1976 monograph <a href="../gen/dth/DiamondTheory.html">Diamond Theory</a>&#8212;</p> <p style="margin-left: 40px;"><img alt="http: <p>Each small square pattern on the cover is a Latin square,<br /> with elements that are geometric figures rather than letters or numerals.<br /> All order-four Latin squares are represented.</p> <p>For a deeper look at the structure of such squares, let the high-school<br /> chart above be labeled with the letters A through X, and apply the<br /> <a href="../gen/mapsys.html">four-color decomposition theorem</a>.&nbsp; The result is 24 structural diagrams&#8212;</p> <p style="margin-left: 40px;">&nbsp;&nbsp;&nbsp;&nbsp;<a href="latin4x4_files/<API key>.gif">Click to enlarge<br /> </a></p> <p style="margin-left: 40px;"><a href="latin4x4_files/<API key>.gif"><img alt="IMAGE- The Order-4 (4x4) Latin Squares" src="latin4x4_files/<API key>.jpg" border="0" /></a></p> <p>Some of the squares are structurally congruent under the group of 8 symmetries of the square.</p> <p>This can be seen in the following regrouping&#8212;</p> <p style="margin-left: 40px;">&nbsp;&nbsp;&nbsp;<a href="latin4x4_files/<API key>.gif">Click to enlarge<br /> </a></p> <p style="margin-left: 40px;"><a href="latin4x4_files/<API key>.gif"><img alt="IMAGE- The Order-4 (4x4) Latin Squares, with Congruent Squares Adjacent" src="latin4x4_files/<API key>.jpg" border="0" /></a></p> <p style="margin-left: 40px;"><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Image corrected on Jan. 25, 2011-- "seven" replaced "eight.")</small></p> <p style="margin-left: 40px;">Update of Feb. 5, 2011&#8212;</p> <p style="margin-left: 40px;"><a href="latin4x4_files/<API key>.png"><small><small>Click to enlarge</small></small><br /> <img style="width: 500px; height: 531px;" alt="Latin Squares of Triangles" src="latin4x4_files/<API key>.jpg" border="0" /></a></p> <p style="margin-left: 40px;" /> </div> <small><small> <br /> </small></small> </body> </html> ll><small> <br /> </small></small> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lazy-pcf: 38 s </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / extra-dev</a></li> <li class="active"><a href="">8.10.0 / lazy-pcf - 8.10.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> lazy-pcf <small> 8.10.0 <span class="label label-success">38 s </span> </small> </h1> <p> <em><script>document.write(moment("2020-08-03 21:31:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-03 21:31:15 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.10.0 Formal proof management system num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.09.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.09.1 Official release 4.09.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https: license: &quot;Unknown&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/lazyPCF&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.11~&quot;} ] tags: [ &quot;keyword: functional programming&quot; &quot;keyword: lazy evaluation&quot; &quot;keyword: operational semantics&quot; &quot;keyword: type soundness&quot; &quot;keyword: normal forms&quot; &quot;category: Computer Science/Lambda Calculi&quot; ] authors: [ &quot;Amy Felty&quot; &quot;Jill Seaman&quot; ] bug-reports: &quot;https://github.com/coq-contribs/lazy-pcf/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/lazy-pcf.git&quot; synopsis: &quot;Subject Reduction for Lazy-PCF&quot; description: &quot;&quot;&quot; An Operational Semantics of Lazy Evaluation and a Proof of Subject Reduction&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/lazy-pcf/archive/v8.10.0.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-lazy-pcf.8.10.0 coq.8.10.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 2h opam install -y --deps-only coq-lazy-pcf.8.10.0 coq.8.10.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>4 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 2h opam install -y -v coq-lazy-pcf.8.10.0 coq.8.10.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>38 s</dd> </dl> <h2>Installation size</h2> <p>Total: 747 K</p> <ul> <li>65 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/TypeThms.glob</code></li> <li>57 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/ApTypes.glob</code></li> <li>49 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/ApTypes.vo</code></li> <li>34 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/TypeThms.vo</code></li> <li>32 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/subjrnf.vo</code></li> <li>30 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/typecheck.glob</code></li> <li>29 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/freevars.glob</code></li> <li>27 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/OSrules.vo</code></li> <li>27 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/OSrules.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/typecheck.vo</code></li> <li>23 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/mapsto.vo</code></li> <li>22 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/rename.glob</code></li> <li>21 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/rename.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/envprops.vo</code></li> <li>20 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/subjrnf.glob</code></li> <li>18 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/freevars.vo</code></li> <li>17 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/ApTypes.v</code></li> <li>16 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/environments.vo</code></li> <li>16 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/mapsto.glob</code></li> <li>15 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/NFprops.vo</code></li> <li>14 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/valid.vo</code></li> <li>13 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/utils.glob</code></li> <li>12 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/TypeThms.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/subjrnf.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/utils.vo</code></li> <li>9 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/freevars.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/envprops.glob</code></li> <li>9 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/NFprops.glob</code></li> <li>9 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/syntax.vo</code></li> <li>8 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/NF.vo</code></li> <li>7 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/typecheck.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/mapsto.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/rename.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/utils.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/NF.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/OSrules.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/valid.glob</code></li> <li>5 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/environments.glob</code></li> <li>5 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/NFprops.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/envprops.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/environments.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/NF.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/SubjRed/valid.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/syntax.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/lazyPCF/OpSem/syntax.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-lazy-pcf.8.10.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
using System.Threading.Tasks; using SlackConnector.Connections.Responses; namespace SlackConnector.Connections.Clients.Channel { internal interface IChannelClient { Task<Models.Channel> <API key>(string slackKey, string user); Task<Models.Channel> CreateChannel(string slackKey, string channelName); Task<Models.Channel> JoinChannel(string slackKey, string channelName); Task ArchiveChannel(string slackKey, string channelName); Task<string> SetPurpose(string slackKey, string channelName, string purpose); Task<string> SetTopic(string slackKey, string channelName, string topic); Task<Models.Channel[]> GetChannels(string slackKey); Task<Models.Group[]> GetGroups(string slackKey); Task<Models.User[]> GetUsers(string slackKey); } }
search_result['1857']=["<API key>.html","<API key>.SelectionProcessId Property",""];
from flask import Blueprint main = Blueprint('main', __name__) from . import views, errors
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import ownblock.apps.storage.models class Migration(migrations.Migration): dependencies = [ ('storage', '0003_item_photo'), ] operations = [ migrations.AlterField( model_name='item', name='photo', field=models.ImageField(blank=True, upload_to=ownblock.apps.storage.models._upload_image_to, null=True), ), ]
// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.devtestlabs.implementation; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.devtestlabs.fluent.SecretsClient; import com.azure.resourcemanager.devtestlabs.fluent.models.SecretInner; import com.azure.resourcemanager.devtestlabs.models.Secret; import com.azure.resourcemanager.devtestlabs.models.Secrets; import com.fasterxml.jackson.annotation.JsonIgnore; public final class SecretsImpl implements Secrets { @JsonIgnore private final ClientLogger logger = new ClientLogger(SecretsImpl.class); private final SecretsClient innerClient; private final com.azure.resourcemanager.devtestlabs.DevTestLabsManager serviceManager; public SecretsImpl( SecretsClient innerClient, com.azure.resourcemanager.devtestlabs.DevTestLabsManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable<Secret> list(String resourceGroupName, String labName, String username) { PagedIterable<SecretInner> inner = this.serviceClient().list(resourceGroupName, labName, username); return Utils.mapPage(inner, inner1 -> new SecretImpl(inner1, this.manager())); } public PagedIterable<Secret> list( String resourceGroupName, String labName, String username, String expand, String filter, Integer top, String orderby, Context context) { PagedIterable<SecretInner> inner = this.serviceClient().list(resourceGroupName, labName, username, expand, filter, top, orderby, context); return Utils.mapPage(inner, inner1 -> new SecretImpl(inner1, this.manager())); } public Secret get(String resourceGroupName, String labName, String username, String name) { SecretInner inner = this.serviceClient().get(resourceGroupName, labName, username, name); if (inner != null) { return new SecretImpl(inner, this.manager()); } else { return null; } } public Response<Secret> getWithResponse( String resourceGroupName, String labName, String username, String name, String expand, Context context) { Response<SecretInner> inner = this.serviceClient().getWithResponse(resourceGroupName, labName, username, name, expand, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SecretImpl(inner.getValue(), this.manager())); } else { return null; } } public void delete(String resourceGroupName, String labName, String username, String name) { this.serviceClient().delete(resourceGroupName, labName, username, name); } public Response<Void> deleteWithResponse( String resourceGroupName, String labName, String username, String name, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, labName, username, name, context); } public Secret getById(String id) { String resourceGroupName = Utils.<API key>(id, "resourceGroups"); if (resourceGroupName == null) { throw logger .logExceptionAsError( new <API key>( String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String labName = Utils.<API key>(id, "labs"); if (labName == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String username = Utils.<API key>(id, "users"); if (username == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'users'.", id))); } String name = Utils.<API key>(id, "secrets"); if (name == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'secrets'.", id))); } String localExpand = null; return this.getWithResponse(resourceGroupName, labName, username, name, localExpand, Context.NONE).getValue(); } public Response<Secret> getByIdWithResponse(String id, String expand, Context context) { String resourceGroupName = Utils.<API key>(id, "resourceGroups"); if (resourceGroupName == null) { throw logger .logExceptionAsError( new <API key>( String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String labName = Utils.<API key>(id, "labs"); if (labName == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String username = Utils.<API key>(id, "users"); if (username == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'users'.", id))); } String name = Utils.<API key>(id, "secrets"); if (name == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'secrets'.", id))); } return this.getWithResponse(resourceGroupName, labName, username, name, expand, context); } public void deleteById(String id) { String resourceGroupName = Utils.<API key>(id, "resourceGroups"); if (resourceGroupName == null) { throw logger .logExceptionAsError( new <API key>( String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String labName = Utils.<API key>(id, "labs"); if (labName == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String username = Utils.<API key>(id, "users"); if (username == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'users'.", id))); } String name = Utils.<API key>(id, "secrets"); if (name == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'secrets'.", id))); } this.deleteWithResponse(resourceGroupName, labName, username, name, Context.NONE).getValue(); } public Response<Void> <API key>(String id, Context context) { String resourceGroupName = Utils.<API key>(id, "resourceGroups"); if (resourceGroupName == null) { throw logger .logExceptionAsError( new <API key>( String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String labName = Utils.<API key>(id, "labs"); if (labName == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String username = Utils.<API key>(id, "users"); if (username == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'users'.", id))); } String name = Utils.<API key>(id, "secrets"); if (name == null) { throw logger .logExceptionAsError( new <API key>( String.format("The resource ID '%s' is not valid. Missing path segment 'secrets'.", id))); } return this.deleteWithResponse(resourceGroupName, labName, username, name, context); } private SecretsClient serviceClient() { return this.innerClient; } private com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager() { return this.serviceManager; } public SecretImpl define(String name) { return new SecretImpl(name, this.manager()); } }
<?php // If automatic system installation fails: // Copy or rename this file to .htconfig.php // Why .htconfig.php? Because it contains sensitive information which could // give somebody complete control of your database. Apache's default // configuration denies access to and refuses to serve any file beginning // with .ht // Then set the following for your MySQL installation $db_host = 'your.mysqlhost.com'; $db_user = 'mysqlusername'; $db_pass = 'mysqlpassword'; $db_data = 'mysqldatabasename'; // It can be changed later and only applies to timestamps for anonymous viewers. $default_timezone = 'America/Los_Angeles'; // What is your site name? $a->config['sitename'] = "Friendica Social Network"; // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED. // Be certain to create your own personal account before setting // REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on // the registration page. REGISTER_APPROVE requires you set 'admin_email' // to the email address of an already registered person who can authorise // and/or approve/deny the request. // In order to perform system administration via the admin panel, admin_email // must precisely match the email address of the person logged in. $a->config['register_policy'] = REGISTER_OPEN; $a->config['register_text'] = ''; $a->config['admin_email'] = ''; // Maximum size of an imported message, 0 is unlimited $a->config['max_import_size'] = 200000; // maximum size of uploaded photos $a->config['system']['maximagesize'] = 800000; // Location of PHP command line processor $a->config['php_path'] = 'php'; // You shouldn't need to change anything else. // Location of global directory submission page. $a->config['system']['<API key>'] = 'http://dir.friendica.com/submit'; $a->config['system']['<API key>'] = 'http://dir.friendica.com/directory?search='; // PuSH - aka pubsubhubbub URL. This makes delivery of public posts as fast as private posts $a->config['system']['huburl'] = 'http://pubsubhubbub.appspot.com'; // Server-to-server private message encryption (RINO) is allowed by default. // Encryption will only be provided if this setting is true and the // PHP mcrypt extension is installed on both systems $a->config['system']['rino_encrypt'] = true; // allowed themes (change this from admin panel after installation) $a->config['system']['allowed_themes'] = 'dispy,quattro,vier,darkzero,duepuntozero,greenzero,purplezero,slackr,diabook'; // default system theme $a->config['system']['theme'] = 'duepuntozero'; // By default allow pseudonyms $a->config['system']['no_regfullname'] = true; // If set to true the priority settings of ostatus contacts are used $a->config['system']['<API key>'] = false; // If enabled, all items are cached in the given directory $a->config['system']['itemcache'] = ""; // If enabled, the lockpath is used for a lockfile to check if the poller is running $a->config['system']['lockpath'] = ""; // If enabled, the MyBB fulltext engine is used // $a->config['system']['use_fulltext_engine'] = true; // Let reshared messages look like wall-to-wall posts // $a->config['system']['diaspora_newreshare'] = true;
package ua.in.quireg.chan.services.presentation; import android.view.View.OnLongClickListener; import ua.in.quireg.chan.interfaces.<API key>; import ua.in.quireg.chan.interfaces.IUrlBuilder; import ua.in.quireg.chan.services.BrowserLauncher; public class <API key> { public static final OnLongClickListener <API key> = v -> false; public static <API key> <API key>(final IUrlBuilder urlBuilder) { return (v, span, url) -> BrowserLauncher.<API key>(v.getContext(), urlBuilder.makeAbsolute(url)); } }