answer
stringlengths
15
1.25M
using System; using Hypermedia.AspNetCore.Json.Formatters; using Hypermedia.Json; using Hypermedia.JsonApi.AspNetCore.Formatters; using Hypermedia.JsonApi.AspNetCore.ModelBinding; using Hypermedia.Metadata; using Microsoft.Extensions.DependencyInjection; using Microsoft.Net.Http.Headers; namespace Hypermedia.JsonApi.AspNetCore { public static class <API key> { <summary> Configures MVC to use the Hypermedia formatters. </summary> <param name="builder">The builder to configure the options on.</param> <param name="contractResolver">The contract resolver to use for the formatters.</param> <returns>The builder to continue building on.</returns> public static IMvcBuilder <API key>(this IMvcBuilder builder, IContractResolver contractResolver) { if (builder == null) { throw new <API key>(nameof(builder)); } if (contractResolver == null) { throw new <API key>(nameof(contractResolver)); } return builder.<API key>(contractResolver, <API key>.Instance); } <summary> Configures MVC to use the Hypermedia formatters. </summary> <param name="builder">The builder to configure the options on.</param> <param name="contractResolver">The contract resolver to use for the formatters.</param> <param name="fieldNamingStrategy">The field naming strategy to use by default.</param> <returns>The builder to continue building on.</returns> public static IMvcBuilder <API key>(this IMvcBuilder builder, IContractResolver contractResolver, <API key> fieldNamingStrategy) { if (builder == null) { throw new <API key>(nameof(builder)); } if (contractResolver == null) { throw new <API key>(nameof(contractResolver)); } return <API key>(builder, options => { options.ContractResolver = contractResolver; options.FieldNamingStrategy = fieldNamingStrategy; }); } <summary> Configures MVC to use the Hypermedia formatters. </summary> <param name="builder">The builder to configure the options on.</param> <param name="configure">The action to configure the hypermedia formatting.</param> <returns>The builder to continue building on.</returns> public static IMvcBuilder <API key>(this IMvcBuilder builder, Action<<API key>> configure) { if (builder == null) { throw new <API key>(nameof(builder)); } var options = new <API key> { FieldNamingStrategy = <API key>.Instance, <API key> = new <API key> { } }; configure(options); // ensure the defaults are set for the <API key> options.<API key>.ContractResolver = options.<API key>.ContractResolver ?? options.ContractResolver; options.<API key>.FieldNamingStrategy = options.<API key>.FieldNamingStrategy ?? options.FieldNamingStrategy; return builder.AddMvcOptions(mvcOptions => { // note that the order these formatters are registered is very important due to the way they are selected // the selection is based on Content-Type specificity so that when we output the application/json outputer // wont attempt to write the output for application/vnd.api+json because it's less specific mvcOptions.OutputFormatters.Insert(0, new JsonOutputFormatter(options.ContractResolver, options.FieldNamingStrategy)); mvcOptions.OutputFormatters.Insert(1, new <API key>(options.<API key>)); // the order of the input formatters needs to be reversed from the output formatters mvcOptions.InputFormatters.Insert(0, new <API key>(options.<API key>)); mvcOptions.InputFormatters.Insert(1, new JsonInputFormatter(options.ContractResolver, options.FieldNamingStrategy)); mvcOptions.<API key>.Insert(0, new <API key>(options.ContractResolver)); mvcOptions.FormatterMappings.<API key>( "json", <API key>.Parse(JsonOutputFormatter.JsonMediaTypeName)); mvcOptions.FormatterMappings.<API key>( "jsonapi", <API key>.Parse(<API key>.<API key>)); }); } } }
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\DB; use App\Jobs\TestingQueue; use App\Http\Requests; use Exception; /** * Class TestingController * * @package App\Http\Controllers * @author Mahmoud Zalt <mahmoud@zalt.me> */ class TestingController extends Controller { /** * Test some software's and respond to the user * * @return \Illuminate\View\View * @throws \Exception */ public function test() { try { // Testing Database (MySQL) DB::connection()->getDatabaseName(); // Testing Cache (Redis) Cache::pull('test'); // Testing Queue (Beanstalkd) $this->dispatch(new TestingQueue()); return view('welcome'); } catch(Exception $e) { echo $e->getMessage(); } } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-field: 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 / mathcomp-field - 1.6</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> mathcomp-field <small> 1.6 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-02-11 17:12:35 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-11 17:12:35 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 2 Virtual package relying on perl coq 8.7.1+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.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; name: &quot;coq-mathcomp-field&quot; version: &quot;1.6&quot; maintainer: &quot;Mathematical Components &lt;mathcomp-dev@sympa.inria.fr&gt;&quot; homepage: &quot;http://ssr.msr-inria.inria.fr/&quot; bug-reports: &quot;Mathematical Components &lt;mathcomp-dev@sympa.inria.fr&gt;&quot; license: &quot;CeCILL-B&quot; build: [ make &quot;-C&quot; &quot;mathcomp/field&quot; &quot;-j&quot; &quot;%{jobs}%&quot; ] install: [ make &quot;-C&quot; &quot;mathcomp/field&quot; &quot;install&quot; ] remove: [ &quot;sh&quot; &quot;-c&quot; &quot;rm -rf &#39;%{lib}%/coq/user-contrib/mathcomp/field&#39;&quot; ] depends: [ &quot;ocaml&quot; &quot;<API key>&quot; {= &quot;1.6&quot;} ] tags: [ &quot;keyword:algebra&quot; &quot;keyword:field&quot; &quot;keyword:small scale reflection&quot; &quot;keyword:mathematical components&quot; &quot;keyword:odd order theorem&quot; ] authors: [ &quot;Jeremy Avigad &lt;&gt;&quot; &quot;Andrea Asperti &lt;&gt;&quot; &quot;Stephane Le Roux &lt;&gt;&quot; &quot;Yves Bertot &lt;&gt;&quot; &quot;Laurence Rideau &lt;&gt;&quot; &quot;Enrico Tassi &lt;&gt;&quot; &quot;Ioana Pasca &lt;&gt;&quot; &quot;Georges Gonthier &lt;&gt;&quot; &quot;Sidi Ould Biha &lt;&gt;&quot; &quot;Cyril Cohen &lt;&gt;&quot; &quot;Francois Garillot &lt;&gt;&quot; &quot;Alexey Solovyev &lt;&gt;&quot; &quot;Russell O& synopsis: &quot;Mathematical Components Library on Fields&quot; description: &quot;&quot;&quot; This library contains definitions and theorems about field extensions, galois theory, algebraic numbers, cyclotomic polynomials...&quot;&quot;&quot; url { src: &quot;http://github.com/math-comp/math-comp/archive/mathcomp-1.6.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-mathcomp-field.1.6 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: - coq-mathcomp-field -&gt; <API key> &lt; 1.6.1 -&gt; <API key> &lt; 1.6.1 -&gt; <API key> &lt; 1.6.1 -&gt; <API key> &lt; 1.6.1 -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.06.0 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-mathcomp-field.1.6</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>jprover: 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 / jprover - 8.6.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> jprover <small> 8.6.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-03-06 11:16:41 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-06 11:16:41 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.7.1+1 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release 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;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/jprover&quot; 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/JProver&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.7~&quot;} ] tags: [ &quot;keyword: decision procedure&quot; &quot;keyword: first-order logic&quot; &quot;keyword: intuitionistic logic&quot; &quot;keyword: theorem proving&quot; &quot;keyword: proof search&quot; &quot;category: Miscellaneous/Coq Extensions&quot; &quot;category: Computer Science/Decision Procedures and Certified Algorithms/Decision procedures&quot; &quot;date: 2002-04 (contribution since January 2009)&quot; ] authors: [ &quot;Huang Guan-Shieng&quot; ] bug-reports: &quot;https://github.com/coq-contribs/jprover/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/jprover.git&quot; synopsis: &quot;A theorem prover for first-order intuitionistic logic&quot; description: &quot;&quot;&quot; JProver is a theorem prover for first-order intuitionistic logic. It is originally implemented by Stephan Schmitt and then integrated into MetaPRL by Aleksey Nogin. After this, Huang Guan-Shieng extracted the necessary ML-codes from MetaPRL and then adapted it to Coq.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/jprover/archive/v8.6.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-jprover.8.6.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: - coq-jprover -&gt; coq &lt; 8.7~ -&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-jprover.8.6.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>stdpp: 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 / stdpp - 1.6.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> stdpp <small> 1.6.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-02-19 04:09:34 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-19 04:09:34 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.7.1+1 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.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Ralf Jung &lt;jung@mpi-sws.org&gt;&quot; authors: &quot;The std++ team&quot; license: &quot;BSD-3-Clause&quot; homepage: &quot;https://gitlab.mpi-sws.org/iris/stdpp&quot; bug-reports: &quot;https://gitlab.mpi-sws.org/iris/stdpp/issues&quot; dev-repo: &quot;git+https://gitlab.mpi-sws.org/iris/stdpp.git&quot; synopsis: &quot;An extended \&quot;Standard Library\&quot; for Coq&quot; description: &quot;&quot;&quot; The key features of this library are as follows: - It provides a great number of definitions and lemmas for common data structures such as lists, finite maps, finite sets, and finite multisets. - It uses type classes for common notations (like `∅`, `∪`, and Haskell-style monad notations) so that these can be overloaded for different data structures. - It uses type classes to keep track of common properties of types, like it having decidable equality or being countable or finite. - Most data structures are represented in canonical ways so that Leibniz equality can be used as much as possible (for example, for maps we have `m1 = m2` iff `∀ i, m1 !! i = m2 !! i`). On top of that, the library provides setoid instances for most types and operations. - It provides various tactics for common tasks, like an ssreflect inspired `done` tactic for finishing trivial goals, a simple breadth-first solver `naive_solver`, an equality simplifier `simplify_eq`, a solver `solve_proper` for proving compatibility of functions with respect to relations, and a solver `set_solver` for goals involving set operations. - It is entirely dependency- and axiom-free. &quot;&quot;&quot; tags: [ &quot;date:2021-11-05&quot; &quot;logpath:stdpp&quot; ] depends: [ &quot;coq&quot; { (&gt;= &quot;8.10.2&quot; &amp; &lt; &quot;8.15~&quot;) | (= &quot;dev&quot;) } ] patches: [&quot;ocamlrunparam.patch&quot;] build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] url { src: &quot;https://gitlab.mpi-sws.org/iris/stdpp/-/archive/coq-stdpp-1.6.0.tar.gz&quot; checksum: &quot;sha512=47de4f889a1eebce066e03512c19731a5e52f4f3bbd46e158ac00a693d983a0c8f93ec45692b3f8d16f4522296e18100ebe711cf854d50b03731bfa1914362b8&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-stdpp.1.6.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: - coq-stdpp -&gt; coq &gt;= dev no matching version 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-stdpp.1.6.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 solve() { function validateString(string) { if (string === undefined) { throw new Error } if (typeof string !== 'string') { throw new Error(); } if (string.length < 3 || string.length > 25) { throw new Error(); } else { return true; } } var playable = (function () { var Id = 1; var playable = { init: function (title, author) { this.title = title; this.author = author; this.id = Id++; return this; }, play: function () { return this.id + '. ' + this.title + ' - ' + this.author; }, set title(val) { validateString(val); this._title = val; return this; }, get title() { return this._title; }, set author(val) { validateString(val); this._author = val; return this; }, get author() { return this._author; } } return playable; }()); var audio = (function (parent) { var audio = Object.create(parent); audio.init = function (title, author, lenght) { parent.init.call(this, title, author); this.length = lenght; return this; }; audio.play = function () { return parent.play.call(this) + ' - ' + this.length; } return audio; }(playable)); var video = (function (parent) { var video = Object.create(parent); video.init = function (title, author, imdbRating) { parent.init.call(this, title, author); this.imdbRating = imdbRating; return this; } Object.defineProperty(video, 'imdbRating', { set: function (val) { if (typeof val != 'number') { throw new Error(); } if (val < 1 || val > 5) { throw new Error(); } else { this._imdbRating = val; return this; } }, get: function () { return this._imdbRating; } }) video.play = function () { return parent.play.call(this) + ' - ' + this.imdbRating; } return video; }(playable)); var playlist = (function () { var Id = 1; var playlist = { init: function (name) { this.name = name; this.id = Id++; this.playable = []; return this; }, set name(val) { validateString(val); this._name = val; return this; }, get name() { return this._name; }, addPlayable: function (playab) { if (playab === undefined) { throw new Error(); } if (typeof playab !== 'object') { throw new Error(); } if (playab.id === undefined) { throw new Error(); } this.playable.push(playab); return this; }, getPlayableById: function (id) { var i; if (typeof id === 'undefined') { throw new Error(); } if (typeof id !== 'number') { throw new Error(); } for (i = 0, len = this.playable.length; i < len; i += 1) { if (id === this.playable[i].id) { break; } } if (i !== this.playable.length) { return this.playable[i]; } else { return null; } }, removePlayable: function (input) { var id; if (typeof input === 'undefined') { throw new Error(); } if (typeof input === 'object') { id = input.id; } else { id = input; } if (typeof id === 'undefined') { throw new Error(); } for (var i = 0, len = this.playable.length; i < len; i += 1) { var deleted = false; if (this.playable[i].id === id) { len -= 1; this.playable.splice(i, 1); i -= 1; deleted = true; break; } } if (deleted) { return this; } else { throw new Error(); } }, listPlayables: function (page, size) { if (page * size > this.playable.length) { throw new Error(); } if (page < 0) { throw new Error(); } if (size <= 0) { throw new Error(); } var sorted = this.playable.slice(); sorted.sort(function (a, b) { if (a.title < b.title) { return -1; } else { if (a.title > b.title) { return 1; } else { if (a.id < b.id) { return -1; } else { if (a.id > b.id) { return 1; } else { return 0; } } } } }, this); return sorted.slice(page * size, page * size + size); } } return playlist; }()); var player = (function () { var Id = 1; var plr = { init: function (name) { this.name = name; this.playlists = []; this.id = Id++; return this; }, set name(val) { validateString(val); this._name = val; return this; }, get name() { return this._name; }, contains: function (playable, playlist) { for (var i = 0, len = this.playlists; i < len; i += 1) { if (playlist.id === this.playlists[i].id) { for (var j = 0, len = this.playlists[i].length; i < len; i += 1) { if (this.playlists[i][j].id === playable.id) { return true; } } } } return false; }, search: function(pattern){ var exist = false,result=[]; for(var i= 0,len = this.playlists;i<len;i+=1) { var reg = RegExp(pattern); var pl = this.playlists[i]; for(var j = 0,len2 = pl.length;i<len2;i+=1) { if(pl[j]!==undefined ){ if (reg.test(pl[j].title)){ exist = true; break; } } } if(exist){ var copy = pl.slice(); result.push({name: copy.name,id: copy.id}); exist = false; } } return result; }, addPlaylist: function (playlistToAdd) { if (typeof playlistToAdd !== 'object') { throw new Error(); } if (playlistToAdd.id === undefined) { throw new Error(); } this.playlists.push(playlistToAdd); return this; }, getPlaylistById: function (id) { var i; for (i = 0, len = this.playlists.length; i < len; i += 1) { if (id === this.playlists[i].id) { break; } } if (i !== this.playlists.length) { return this.playlists[i]; } else { return null; } }, removePlaylist: function (input) { var id; if (typeof input === 'object') { id = input.id; } else { id = input; } for (var i = 0, len = this.playlists.length; i < len; i += 1) { var deleted = false; if (this.playlists[i].id === id) { len -= 1; this.playlists.splice(i, 1); i -= 1; deleted = true; } } if (deleted) { return this; } else { throw new Error(); } }, listPlaylists: function (page, size) { var playables = this.playlists.sort(function (a, b) { if (a.name < b.name) { return -1; } else { return 1; } }).sort(function (c, d) { return c.id - d.id; }); var result = []; if (page * size > playlists.length) { throw new Error(); } if (page < 0) { throw new Error(); } if (size <= 0) { throw new Error(); } if (size > playlists.length) { return playlists; } for (var i = paze * size; i < (page + 1) * (size); i += 1) { if (i > playlists.length - 1) { return result; } else { result.push(playlists[i]); } } return result; } }; return plr; }()); var module = { getPlayer: function (name) { return Object.create(player).init(name); }, getPlaylist: function (name) { return Object.create(playlist).init(name); }, getAudio: function (title, author, length) { return Object.create(audio).init(title, author, length); }, getVideo: function (title, author, imdbRating) { return Object.create(video).init(title, author, imdbRating); } } return module; } var count, i, ids, invalidID, j, name, player, playlist, ref; var result = solve(); name = 'Rock and Roll'; player = result.getPlayer(name); console.log(player.getPlaylistById('gfjdfkgkd'));//expected to be null count = 5; ids = {}; for (i = j = 0, ref = count; 0 <= ref ? j <= ref : j >= ref; i = 0 <= ref ? ++j : --j) { playlist = result.getPlaylist(name + i); player.addPlaylist(playlist); ids[playlist.id] = true; } invalidID = (Math.random() * 100000000) | 0; while (ids[invalidID]) { invalidID = (Math.random() * 100000000) | 0; } console.log(player.getPlaylistById(invalidID)); //return expect(player.getPlaylist(invalidID)).to.be["null"]; module.exports = solve;
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.DotNet.CodeFormatting.Rules { <summary> Ensure there is a blank line above the first using and namespace in the file. </summary> //[SyntaxRuleOrder(SyntaxRuleOrder.<API key>)] internal sealed class NewLineAboveRule : <API key>, <API key> { public SyntaxNode Process(SyntaxNode syntaxRoot, string languageName) { syntaxRoot = ProcessUsing(syntaxRoot); syntaxRoot = ProcessNamespace(syntaxRoot); return syntaxRoot; } private SyntaxNode ProcessUsing(SyntaxNode syntaxRoot) { var firstUsing = syntaxRoot.<API key>().OfType<<API key>>().FirstOrDefault(); if (firstUsing == null) { return syntaxRoot; } return ProcessCore(syntaxRoot, firstUsing); } private SyntaxNode ProcessNamespace(SyntaxNode syntaxRoot) { var firstNamespace = syntaxRoot.<API key>().OfType<<API key>>().FirstOrDefault(); if (firstNamespace == null) { return syntaxRoot; } var list = firstNamespace.GetLeadingTrivia(); if (list.Count == 0) { var newLine = SyntaxUtil.<API key>(firstNamespace); list = list.Add(newLine); return syntaxRoot.ReplaceNode(firstNamespace, firstNamespace.WithLeadingTrivia(list)); } else if (list.Count == 1 && list[0].IsKind(SyntaxKind.EndOfLineTrivia)) { // The namespace node is typically preceeded by a using node. In thate case the trivia will // be split between the two nodes. If the namespace already has a newline leading trivia then // there is at least a single blank between the nodes as the using will have a trailing new // line as well (in case of a single on it will be on the using). return syntaxRoot; } else { return ProcessCore(syntaxRoot, firstNamespace); } } private SyntaxNode ProcessCore<TNode>(SyntaxNode syntaxRoot, TNode node) where TNode: SyntaxNode { // Don't attempt to format the node if is part of a conditional compilation directive // because it is simply not easy to format around correctly. if (node.GetLeadingTrivia().Any(x => x.<API key>() || x.IsKind(SyntaxKind.DisabledTextTrivia))) { return syntaxRoot; } SyntaxTriviaList newTriviaList; if (!<API key>(node, out newTriviaList)) { return syntaxRoot; } return syntaxRoot.ReplaceNode(node, node.WithLeadingTrivia(newTriviaList)); } <summary> Get the new leading trivia list that will add the double blank line that we are looking for. </summary> private bool <API key>(SyntaxNode node, out SyntaxTriviaList newTriviaList) { var newLineTrivia = SyntaxUtil.<API key>(node); var list = node.GetLeadingTrivia(); var index = list.Count - 1; <API key>(list, ref index); if (index < 0 || !list[index].IsAnyEndOfLine()) { // There is no newline before the using at all. Add a double newline to // get the blank we are looking for newTriviaList = list.InsertRange(index + 1, new[] { newLineTrivia, newLineTrivia }); return true; } var wasDirective = list[index].IsDirective; index // Move past any directives that are above the token. The newline needs to // be above them. while (index >= 0 && list[index].IsDirective) { index } if (wasDirective) { // There was a directive above the using and index now points directly before // that. This token must be a new line. if (index < 0 || !list[index].IsKind(SyntaxKind.EndOfLineTrivia)) { newTriviaList = list.Insert(index + 1, newLineTrivia); return true; } index } // In the logical line above the using. Need to see <blank><eol> in order for the // using to be correct var insertIndex = index + 1; <API key>(list, ref index); if (index < 0 || !list[index].IsAnyEndOfLine()) { // If this is the first item in the file then there is no need for a double // blank line. if (index >= 0 || node.FullSpan.Start != 0) { newTriviaList = list.Insert(insertIndex, newLineTrivia); return true; } } // The using is well formed so there is no work to be done. newTriviaList = SyntaxTriviaList.Empty; return false; } private static void <API key>(SyntaxTriviaList list, ref int index) { while (index >= 0 && list[index].IsKind(SyntaxKind.WhitespaceTrivia)) { index } } } }
<link href="/public/_sprint8/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SimpleDataGenerator.Sql.Extensions; using SimpleDataGenerator.Sql.Models; namespace SimpleDataGenerator.Sql.Sql.Builders { public class <API key> { private readonly IEnumerable<<API key>> _columnDescriptions; private readonly string _tableName; public <API key>(IEnumerable<<API key>> descriptions, string tableName) { _columnDescriptions = descriptions; _tableName = tableName; if (_columnDescriptions.IsNullOrEmpty()) throw new <API key>(string.Format("Missing values to insert for table : {0}", tableName)); } public string Create() { var sqlBuilder = PetaPoco.Sql.Builder; sqlBuilder.Append(String.Format("INSERT INTO [{0}] ", _tableName)); var columns = _columnDescriptions.Select(x => x.ColumnName).ToArray(); var values = _columnDescriptions.Select(x => x.Value).ToArray(); sqlBuilder = sqlBuilder.AppendInputColumn(columns); sqlBuilder = sqlBuilder.AppendInputValues(values); return sqlBuilder.SQL; } } }
var webpack = require('webpack'); module.exports = { entry: { app: [ // 'webpack/hot/only-dev-server', './src/entry.js' ], dom: [ // 'webpack/hot/only-dev-server', './src/dom.js' ] }, output: { path: __dirname + '/www', publicPath: '/www', filename: '[name].js' }, module: { loaders: [ {test: /\.(js|jsx)$/, exclude: /node_modules/, loader: 'react-hot!jsx-loader?harmony' }, {test: /\.css$/, loader: 'style!css' }, {test: /\.scss$/, loader: 'style!css!sass' }, {test: /\.woff$/, loader: 'url?limit=100000' } ] }, resolve: { extensions: ['', '.js', '.jsx', '.woff', '.png', '.jpg'] }, node: { console: true, fs: 'empty', net: 'empty', tls: 'empty' }, plugins: [ new webpack.<API key>(), new webpack.NoErrorsPlugin() ] };
(function () { 'use strict'; var app = angular.module('Fablab'); app.factory('EventModuleService', function ($log, $resource, $http) { var eventModule = $resource(App.API.EVENT_MODULE_API + "/:id", {id: '@id'}); return { list: function (successFn) { $http( { method: 'GET', url: App.API.EVENT_MODULE_API } ).success(successFn); }, remove: function (id, successFn) { $log.debug("EventModuleService: remove..."); eventModule.remove({id: id}, successFn); }, softRemove: function (id, successFn) { $http.get(App.API.EVENT_MODULE_API + "/softRemove?id=" + id).success(successFn); $log.debug("EventModuleService: soft remove..."); }, save: function (eventModuleParam, successFn, errorFn) { $log.debug("EventModuleService: save..."); var saved = eventModule.save(eventModuleParam, successFn, errorFn); return saved; }, get: function (id, successFn) { $log.debug("EventModuleService: get..."); var eventModuleRes = eventModule.get({id: id}, successFn); return eventModuleRes; }, getId: function(name, successFn) { $http.get(App.API.EVENT_MODULE_API + "/getId?name=" + name.latinise()).success(successFn); } }; }); }());
package DocsExamples.<API key>; import DocsExamples.DocsExamplesBase; import org.testng.annotations.Test; import com.aspose.ms.System.IO.Directory; import com.aspose.ms.System.IO.Path; import com.aspose.ms.System.msConsole; import com.aspose.words.FileFormatInfo; import com.aspose.words.FileFormatUtil; import com.aspose.words.LoadFormat; import com.aspose.ms.System.IO.File; public class <API key> extends DocsExamplesBase { @Test public void detectFileFormat() throws Exception { //ExStart:<API key> String supportedDir = getArtifactsDir() + "Supported"; String unknownDir = getArtifactsDir() + "Unknown"; String encryptedDir = getArtifactsDir() + "Encrypted"; String pre97Dir = getArtifactsDir() + "Pre97"; // Create the directories if they do not already exist. if (Directory.exists(supportedDir) == false) Directory.createDirectory(supportedDir); if (Directory.exists(unknownDir) == false) Directory.createDirectory(unknownDir); if (Directory.exists(encryptedDir) == false) Directory.createDirectory(encryptedDir); if (Directory.exists(pre97Dir) == false) Directory.createDirectory(pre97Dir); //ExStart:<API key> Iterable<String> fileList = Directory.getFiles(getMyDir()).Where(name => !name.EndsWith("Corrupted document.docx")); //ExEnd:<API key> for (String fileName : fileList) { String nameOnly = Path.getFileName(fileName); msConsole.write(nameOnly); //ExStart:DetectFileFormat FileFormatInfo info = FileFormatUtil.detectFileFormat(fileName); // Display the document type switch (info.getLoadFormat()) { case LoadFormat.DOC: System.out.println("\tMicrosoft Word 97-2003 document."); break; case LoadFormat.DOT: System.out.println("\tMicrosoft Word 97-2003 template."); break; case LoadFormat.DOCX: System.out.println("\tOffice Open XML WordprocessingML Macro-Free Document."); break; case LoadFormat.DOCM: System.out.println("\tOffice Open XML WordprocessingML Macro-Enabled Document."); break; case LoadFormat.DOTX: System.out.println("\tOffice Open XML WordprocessingML Macro-Free Template."); break; case LoadFormat.DOTM: System.out.println("\tOffice Open XML WordprocessingML Macro-Enabled Template."); break; case LoadFormat.FLAT_OPC: System.out.println("\tFlat OPC document."); break; case LoadFormat.RTF: System.out.println("\tRTF format."); break; case LoadFormat.WORD_ML: System.out.println("\tMicrosoft Word 2003 WordprocessingML format."); break; case LoadFormat.HTML: System.out.println("\tHTML format."); break; case LoadFormat.MHTML: System.out.println("\tMHTML (Web archive) format."); break; case LoadFormat.ODT: System.out.println("\tOpenDocument Text."); break; case LoadFormat.OTT: System.out.println("\tOpenDocument Text Template."); break; case LoadFormat.DOC_PRE_WORD_60: System.out.println("\tMS Word 6 or Word 95 format."); break; case LoadFormat.UNKNOWN: System.out.println("\tUnknown format."); break; } //ExEnd:DetectFileFormat if (info.isEncrypted()) { System.out.println("\tAn encrypted document."); File.copy(fileName, Path.combine(encryptedDir, nameOnly), true); } else { switch (info.getLoadFormat()) { case LoadFormat.DOC_PRE_WORD_60: File.copy(fileName, Path.combine(pre97Dir, nameOnly), true); break; case LoadFormat.UNKNOWN: File.copy(fileName, Path.combine(unknownDir, nameOnly), true); break; default: File.copy(fileName, Path.combine(supportedDir, nameOnly), true); break; } } } //ExEnd:<API key> } @Test public void <API key>() throws Exception { //ExStart:<API key> FileFormatInfo info = FileFormatUtil.detectFileFormat(getMyDir() + "Digitally signed.docx"); if (info.hasDigitalSignature()) { System.out.println("Document {Path.GetFileName(MyDir + "); } //ExEnd:<API key> } @Test public void <API key>() throws Exception { //ExStart:<API key> FileFormatInfo info = FileFormatUtil.detectFileFormat(getMyDir() + "Encrypted.docx"); msConsole.writeLine(info.isEncrypted()); //ExEnd:<API key> } }
const Promise = require('bluebird'); const request = Promise.promisifyAll(require('request')); const candidateInit = (options) => { const actions = { startElection: (callback) => { setTimeout(() => { actions.<API key>().then(resultRequest => { if (resultRequest) { candidate.vote += resultRequest; } actions.countVotesAsync(candidate.vote).then((resultElection) => { callback(false, resultElection); }); }); }, 500); }, countVotes: (votes, callback) => { setTimeout(() => { if (votes === parseInt((options.nodes.length + 1) / 2) + 1) { console.log('You are can the leader'); return callback(false, true); } else if (votes === 1) { console.log('You are can the leader, but check the others servers'); return callback(false, true); } else { return callback(false, false); } }, 300); }, sendRequestVote: (server, callback) => { request.getAsync('http://' + server.host + ':' + server.port + '/requestVote/' + server.name, { timeout: 1000 }).then((res) => { callback(false, res.body); }).catch(err => { callback(true, err); }); }, <API key>: (callback) => { let servers = options.nodes; let serversMap = servers.map((server) => { return actions.<API key>(server).reflect(); }); let votesServers = 0; Promise.all(serversMap).map(body => { if(body.isFulfilled()) { return votesServers++; } else { return null; } }).then(() => { callback(false, votesServers); }); } }; Promise.promisifyAll(actions); const candidate = { state: 'off', vote: 1, start: () => { candidate.state = 'on'; actions.startElectionAsync().then((r) => { if (r) { console.log('Send leader event'); options.eventEmitter.emit('leader'); candidate.vote = 1; } else { console.log('A new election begins'); } }); }, stop: () => { candidate.state = 'off'; } }; return [candidate, actions]; }; module.exports = candidateInit;
/** * @file dateUtils * @author */ import moment from 'moment'; // <API key> require-jsdoc function MonthDays(year) { // debugger let dateArray = []; for (let i = 0; i < 12; i++) { switch (i + 1) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: dateArray.push(31); break; case 4: case 6: case 9: case 11: dateArray.push(30); break; case 2: if (moment(year + '-02-29', 'YYYY-MM-DD', true).isValid()) { dateArray.push(29); } else { dateArray.push(28); } break; default: break; } } return dateArray; } // <API key> require-jsdoc function setDateRange(start, end) { if (start.year?.toString() === end.year?.toString() && start.month?.toString() === end.month?.toString()) { if (parseInt(start.month, 10) === 12) { end.year = +(end.year) + 1; end.month = 1; } else { end.month = +(end.month) + 1; } } return { start, end }; } // <API key> require-jsdoc function getYearArr(num) { let yearString = num.toString(); yearString = yearString.substr(0, yearString.length - 1); let YearArr = []; for (let i = 0; i < 10; i++) { YearArr.push(yearString + i); } return YearArr; } // <API key> require-jsdoc function getMonth(num) { return ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][num - 1]; } // <API key> require-jsdoc function <API key>(selectedDate, compareDateArray) { let prevDateArray = compareDateArray.slice() .filter(item => new Date(selectedDate) - (new Date(item?.value[1])) > 0) .map(item => new Date(item?.value[1]).valueOf()); return compareDateArray.find(item => new Date(item?.value[1]).valueOf() === Math.max(...prevDateArray)); } // <API key> require-jsdoc function <API key>(selectedDate, compareDateArray) { let nextDateArray = compareDateArray.slice() .filter(item => new Date(selectedDate) - (new Date(item?.value[0])) < 0) .map(item => new Date(item?.value[0]).valueOf()); return compareDateArray.find(item => new Date(item?.value[0]).valueOf() === Math.min(...nextDateArray)); } export default { MonthDays, setDateRange, getYearArr, getMonth, <API key>, <API key> };
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { <summary> AOP API: alipay.open.public.label.user.query </summary> public class <API key> : IAopRequest<<API key>> { <summary> - </summary> public string BizContent { get; set; } #region IAopRequest Members private bool needEncrypt=false; private string apiVersion = "1.0"; private string terminalType; private string terminalInfo; private string prodCode; private string notifyUrl; private AopObject bizModel; public void SetNeedEncrypt(bool needEncrypt){ this.needEncrypt=needEncrypt; } public bool GetNeedEncrypt(){ return this.needEncrypt; } public void SetNotifyUrl(string notifyUrl){ this.notifyUrl = notifyUrl; } public string GetNotifyUrl(){ return this.notifyUrl; } public void SetTerminalType(String terminalType){ this.terminalType=terminalType; } public string GetTerminalType(){ return this.terminalType; } public void SetTerminalInfo(String terminalInfo){ this.terminalInfo=terminalInfo; } public string GetTerminalInfo(){ return this.terminalInfo; } public void SetProdCode(String prodCode){ this.prodCode=prodCode; } public string GetProdCode(){ return this.prodCode; } public string GetApiName() { return "alipay.open.public.label.user.query"; } public void SetApiVersion(string apiVersion){ this.apiVersion=apiVersion; } public string GetApiVersion(){ return this.apiVersion; } public IDictionary<string, string> GetParameters() { AopDictionary parameters = new AopDictionary(); parameters.Add("biz_content", this.BizContent); return parameters; } public AopObject GetBizModel() { return this.bizModel; } public void SetBizModel(AopObject bizModel) { this.bizModel = bizModel; } #endregion } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>minic: 30 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.1+2 / minic - 8.7.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> minic <small> 8.7.0 <span class="label label-success">30 s </span> </small> </h1> <p> <em><script>document.write(moment("2022-01-06 02:33:16 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-06 02:33:16 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+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.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/minic&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/MiniC&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.7&quot; &amp; &lt; &quot;8.8~&quot;} ] tags: [ &quot;keyword: denotational semantics&quot; &quot;keyword: compilation&quot; &quot;category: Computer Science/Semantics and Compilation/Semantics&quot; ] authors: [ &quot;Eduardo Giménez and Emmanuel Ledinot&quot; ] bug-reports: &quot;https://github.com/coq-contribs/minic/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/minic.git&quot; synopsis: &quot;Semantics of a subset of the C language&quot; description: &quot;&quot;&quot; This contribution defines the denotational semantics of MiniC, a sub-set of the C language. This sub-set is sufficiently large to contain any program generated by lustre2C. The denotation function describing the semantics of a MiniC program actually provides an interpreter for the program.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/minic/archive/v8.7.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-minic.8.7.0 coq.8.7.1+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-minic.8.7.0 coq.8.7.1+2</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 coq-minic.8.7.0 coq.8.7.1+2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>30 s</dd> </dl> <h2>Installation size</h2> <p>Total: 1 M</p> <ul> <li>192 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/CSemantics.vo</code></li> <li>132 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/CSemantics.glob</code></li> <li>71 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/BlockDecl.vo</code></li> <li>70 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/ListDefs.vo</code></li> <li>65 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/SimplDecl.vo</code></li> <li>59 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/Dictionary.vo</code></li> <li>55 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/State.vo</code></li> <li>53 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/CAbstractSyntax.vo</code></li> <li>45 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/ListDefs.glob</code></li> <li>44 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/BasicTypes.vo</code></li> <li>44 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/SimplDecl.glob</code></li> <li>41 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/Dictionary.glob</code></li> <li>40 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/CSemantics.v</code></li> <li>38 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/SetOf.vo</code></li> <li>38 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/BlockDecl.glob</code></li> <li>34 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/Memory.vo</code></li> <li>33 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/StreamDefs.glob</code></li> <li>30 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/StreamDefs.vo</code></li> <li>29 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/Stack.vo</code></li> <li>26 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/State.glob</code></li> <li>21 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/BasicTypes.glob</code></li> <li>18 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/SetOf.glob</code></li> <li>16 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/State.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/CAbstractSyntax.glob</code></li> <li>12 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/DecisionProcedures.vo</code></li> <li>10 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/ListDefs.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/Dictionary.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/StreamDefs.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/SimplDecl.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/BasicTypes.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/CAbstractSyntax.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/Memory.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/BlockDecl.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/Exceptions.vo</code></li> <li>5 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/Memory.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/SetOf.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/Stack.glob</code></li> <li>4 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/Exceptions.glob</code></li> <li>3 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/Exceptions.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/MLImport.vo</code></li> <li>3 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/DecisionProcedures.glob</code></li> <li>3 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/MiniC/Stack.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/PrettyPrint.vo</code></li> <li>2 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/DecisionProcedures.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/PrettyPrint.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/MLImport.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/MLImport.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.07.1/lib/coq/user-contrib/MiniC/Utilitaires/PrettyPrint.glob</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-minic.8.7.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>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>concat: 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.0 / concat - 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> concat <small> 8.8.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-03-05 19:25:22 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-05 19:25:22 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.0 Formal proof management system dune 3.0.2 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;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/concat&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/ConCaT&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9~&quot;} ] tags: [ &quot;keyword: category theory&quot; &quot;category: Mathematics/Category Theory&quot; ] authors: [ &quot;Amokrane Saïbi&quot; ] bug-reports: &quot;https://github.com/coq-contribs/concat/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/concat.git&quot; synopsis: &quot;Constructive Category Theory&quot; description: &quot;http://logical.inria.fr/~saibi/docCatV6.ps&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/concat/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-concat.8.8.0 coq.8.14.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.14.0). The following dependencies couldn&#39;t be met: - coq-concat -&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-concat.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>
use std::collections::HashMap; use std::fmt::{Display, Formatter}; use std::hash::{Hash, Hasher}; use std::str::from_utf8; use base64::encode; use log::warn; use maplit::hashmap; use serde_json::{json, Value}; use crate::{DifferenceType, PactSpecification}; use crate::bodies::OptionalBody; use crate::generators::{Generators, <API key>, generators_to_json}; use crate::http_parts::HttpPart; use crate::json_utils::{body_from_json, headers_from_json, headers_to_json}; use crate::matchingrules::{matchers_from_json, matchers_to_json, MatchingRules}; use crate::v4::http_parts::HttpResponse; Struct that defines the response. #[derive(Debug, Clone, Eq)] pub struct Response { Response status pub status: u16, Response headers pub headers: Option<HashMap<String, Vec<String>>>, Response body pub body: OptionalBody, Response matching rules pub matching_rules: MatchingRules, Response generators pub generators: Generators } impl Response { Build a `Response` from a `Value` struct. pub fn from_json(response: &Value, _: &PactSpecification ) -> anyhow::Result<Response> { let status_val = match response.get("status") { Some(v) => v.as_u64().unwrap() as u16, None => 200 }; let headers = headers_from_json(response); Ok(Response { status: status_val, headers: headers.clone(), body: body_from_json(response, "body", &headers), matching_rules: matchers_from_json(response, &Some("<API key>".to_string()))?, generators: <API key>(response)?, }) } Returns a default response: Status 200 #[deprecated(since="0.5.4", note="please use `default()` from the standard Default trait instead")] pub fn default_response() -> Response { Response::default() } Converts this response to a `Value` struct. #[allow(unused_variables)] pub fn to_json(&self, spec_version: &PactSpecification) -> Value { let mut json = json!({ "status" : json!(self.status) }); { let map = json.as_object_mut().unwrap(); if self.headers.is_some() { map.insert("headers".to_string(), headers_to_json(&self.headers.clone().unwrap())); } match self.body { OptionalBody::Present(ref body, _, _) => { if self.content_type().unwrap_or_default().is_json() { match serde_json::from_slice(body) { Ok(json_body) => { map.insert("body".to_string(), json_body); }, Err(err) => { warn!("Failed to parse json body: {}", err); map.insert("body".to_string(), Value::String(encode(body))); } } } else { match from_utf8(body) { Ok(s) => map.insert("body".to_string(), Value::String(s.to_string())), Err(_) => map.insert("body".to_string(), Value::String(encode(body))) }; } }, OptionalBody::Empty => { map.insert("body".to_string(), Value::String("".to_string())); }, OptionalBody::Missing => (), OptionalBody::Null => { map.insert("body".to_string(), Value::Null); } } if self.matching_rules.is_not_empty() { map.insert("matchingRules".to_string(), matchers_to_json( &self.matching_rules.clone(), spec_version)); } if self.generators.is_not_empty() { map.insert("generators".to_string(), generators_to_json( &self.generators.clone(), spec_version)); } } json } Return a description of all the differences from the other response pub fn differences_from(&self, other: &Response) -> Vec<(DifferenceType, String)> { let mut differences = vec![]; if self.status != other.status { differences.push((DifferenceType::Status, format!("Response status {} != {}", self.status, other.status))); } if self.headers != other.headers { differences.push((DifferenceType::Headers, format!("Response headers {:?} != {:?}", self.headers, other.headers))); } if self.body != other.body { differences.push((DifferenceType::Body, format!("Response body '{:?}' != '{:?}'", self.body, other.body))); } if self.matching_rules != other.matching_rules { differences.push((DifferenceType::MatchingRules, format!("Response matching rules {:?} != {:?}", self.matching_rules, other.matching_rules))); } differences } Convert this response to V4 format pub fn as_v4_response(&self) -> HttpResponse { HttpResponse { status: self.status, headers: self.headers.clone(), body: self.body.clone(), matching_rules: self.matching_rules.clone(), generators: self.generators.clone() } } } impl HttpPart for Response { fn headers(&self) -> &Option<HashMap<String, Vec<String>>> { &self.headers } fn headers_mut(&mut self) -> &mut HashMap<String, Vec<String>> { if self.headers.is_none() { self.headers = Some(hashmap!{}); } self.headers.as_mut().unwrap() } fn body(&self) -> &OptionalBody { &self.body } fn body_mut(&mut self) -> &mut OptionalBody { &mut self.body } fn matching_rules(&self) -> &MatchingRules { &self.matching_rules } fn matching_rules_mut(&mut self) -> &mut MatchingRules { &mut self.matching_rules } fn generators(&self) -> &Generators { &self.generators } fn generators_mut(&mut self) -> &mut Generators { &mut self.generators } fn lookup_content_type(&self) -> Option<String> { self.lookup_header_value(&"content-type".to_string()) } } impl Hash for Response { fn hash<H: Hasher>(&self, state: &mut H) { self.status.hash(state); if self.headers.is_some() { for (k, v) in self.headers.clone().unwrap() { k.hash(state); v.hash(state); } } self.body.hash(state); self.matching_rules.hash(state); self.generators.hash(state); } } impl PartialEq for Response { fn eq(&self, other: &Self) -> bool { self.status == other.status && self.headers == other.headers && self.body == other.body && self.matching_rules == other.matching_rules && self.generators == other.generators } fn ne(&self, other: &Self) -> bool { self.status != other.status || self.headers != other.headers || self.body != other.body || self.matching_rules != other.matching_rules || self.generators != other.generators } } impl Display for Response { fn fmt(&self, f: &mut Formatter) -> std::fmt::Result { write!(f, "Response ( status: {}, headers: {:?}, body: {} )", self.status, self.headers, self.body) } } impl Default for Response { fn default() -> Self { Response { status: 200, headers: None, body: OptionalBody::Missing, matching_rules: MatchingRules::default(), generators: Generators::default() } } } #[cfg(test)] mod tests { use std::collections::hash_map::DefaultHasher; use std::hash::{Hash, Hasher}; use expectest::prelude::*; use maplit::hashmap; use crate::bodies::OptionalBody; use crate::PactSpecification; use crate::response::Response; #[test] fn <API key>() { let response_json : serde_json::Value = serde_json::from_str(r { "headers": {} } "#).unwrap(); let response = Response::from_json(&response_json, &PactSpecification::V1_1); assert_eq!(response.unwrap().status, 200); } #[test] fn <API key>() { let response = Response::default(); expect!(response.to_json(&PactSpecification::V3).to_string()).to(be_equal_to("{\"status\":200}")); } #[test] fn <API key>() { let response = Response { headers: Some(hashmap!{ "HEADERA".to_string() => vec!["VALUEA".to_string()], "HEADERB".to_string() => vec!["VALUEB1, VALUEB2".to_string()] }), .. Response::default() }; expect!(response.to_json(&PactSpecification::V3).to_string()).to( be_equal_to(r#"{"headers":{"HEADERA":"VALUEA","HEADERB":"VALUEB1, VALUEB2"},"status":200}"#) ); } #[test] fn <API key>() { let response = Response { headers: Some(hashmap!{ "Content-Type".to_string() => vec!["application/json".to_string()] }), body: OptionalBody::Present(r#"{"key": "value"}"#.into(), None, None), .. Response::default() }; expect!(response.to_json(&PactSpecification::V3).to_string()).to( be_equal_to(r#"{"body":{"key":"value"},"headers":{"Content-Type":"application/json"},"status":200}"#) ); } #[test] fn <API key>() { let response = Response { headers: Some(hashmap!{ "Content-Type".to_string() => vec!["text/plain".to_string()] }), body: OptionalBody::Present("This is some text".into(), None, None), .. Response::default() }; expect!(response.to_json(&PactSpecification::V3).to_string()).to( be_equal_to(r#"{"body":"This is some text","headers":{"Content-Type":"text/plain"},"status":200}"#) ); } #[test] fn <API key>() { let response = Response { body: OptionalBody::Empty, .. Response::default() }; expect!(response.to_json(&PactSpecification::V3).to_string()).to( be_equal_to(r#"{"body":"","status":200}"#) ); } #[test] fn <API key>() { let response = Response { body: OptionalBody::Null, .. Response::default() }; expect!(response.to_json(&PactSpecification::V3).to_string()).to( be_equal_to(r#"{"body":null,"status":200}"#) ); } fn hash<T: Hash>(t: &T) -> u64 { let mut s = DefaultHasher::new(); t.hash(&mut s); s.finish() } #[test] fn hash_for_response() { let response1 = Response::default(); let response2 = Response { status: 400, .. Response::default() }; let response3 = Response { headers: Some(hashmap!{ "H1".to_string() => vec!["A".to_string()] }), .. Response::default() }; let response4 = Response { headers: Some(hashmap!{ "H1".to_string() => vec!["B".to_string()] }), .. Response::default() }; expect!(hash(&response1)).to(be_equal_to(hash(&response1))); expect!(hash(&response3)).to(be_equal_to(hash(&response3))); expect!(hash(&response1)).to_not(be_equal_to(hash(&response2))); expect!(hash(&response3)).to_not(be_equal_to(hash(&response4))); } }
$(document).on('click', '.registration', function() { $.ajax({ url: '/index.php/Users/registration_view/', success: function (data) { bootbox.dialog({ message: data, title: "Регистрация", buttons: { success: { label: 'Регистрация', className: 'btn-success', callback: function () { var email = $('input[name="email"]').val(); var password = $('input[name="password"]').val(); var name = $('input[name="name"]').val(); var phone = $('input[name="phone"]').val(); var token = $('input[name="token"]').val(); if ($('input[name="i_agree"]').prop('checked')) { $.ajax({ url: '/index.php/Users/add_user/', type: 'POST', data: {email: email, password: password, name: name, token: token}, success: function (data) { bootbox.alert(data, function () { }); }, error: function (data) { bootbox.alert(data, function () { }); } }); } else { bootbox.alert('Для продолжения регистрации Вы должны ознакомится с Правилами сайта и подтвердить соглашение', function () { }); } } } } }); } }); }); $(document).on('click', '.authorization', function(){ var modal_body = getPageData('index_page', 'login', 'html'); bootbox.dialog({ message: modal_body, title: "Авторизация", buttons: { success: { label: 'Войти', className: 'btn-success', callback: function () { var email = $('input[name="email"]').val(); var password = $('input[name="password"]').val(); $.ajax({ url: '/index.php/Users/authorization/', type: 'POST', data: {email: email, password: password}, success: function(data) { bootbox.alert(data, function(){}); location.reload(); }, error: function(data) { bootbox.alert(data, function(){}); } }); } } } }); }); $(document).on('click', '.logout', function() { bootbox.confirm("Вы действительно хотите выйти из своей учетной записи?", function(result) { var res = ''; if(result==true) { $.ajax({ url: '/index.php/Users/logout/', success: function() { bootbox.alert('ok', function(){}); location.reload(); }, error: function() { bootbox.alert('error', function(){}); } }); } return res; }); }); $(document).on('click', '.reset_password', function(){ var password = $('input[name="new_password"]').val(); var confirm_password = $('input[name="confirm_password"]').val(); var id = $('input[name="id"]').val(); if(<API key>) { $.ajax({ url: '/index.php/Users/save_new_password/' + id, type: 'POST', data: {password: password}, success: function (data) { bootbox.alert(data, function(){}); }, error: function (data) { bootbox.alert(data, function(){}); } }); } else if(password!=confirm_password) { bootbox.alert('Пароли не совпадают!', function(){}); } }); $(document).on('click', '.forgot-password', function(){ bootbox.hideAll(); var modal_body = getPageData('index_page', 'forgot_password', 'html'); bootbox.dialog({ message: modal_body, title: "Восстановление пароля", buttons: { success: { label: 'Восстановить', className: 'btn-success', callback: function () { var email = $('input[name="email"]').val(); $.ajax({ url: '/index.php/Users/send_reset/', type: 'POST', data: {email: email}, success: function(data) { bootbox.alert(data, function(){}); }, error: function(data) { bootbox.alert(data, function(){}); } }); } } } }); });
var Fluent = require('fluent-js'); var ChatAppDispatcher = require('../dispatcher/ChatAppDispatcher'); var ChatWebAPIUtils = require('../utils/ChatWebAPIUtils'); var ChatMessageUtils = require('../utils/ChatMessageUtils'); class ChatMessageActions extends Fluent.Actions { createMessage(text, currentThreadID) { this.dispatch(text, currentThreadID); var message = ChatMessageUtils.<API key>(text, currentThreadID); ChatWebAPIUtils.createMessage(message); } } module.exports = new ChatMessageActions(ChatAppDispatcher);
const webpack = require('webpack'); export default { devtool: '<API key>', entry: ['<API key>/client', './client/index.js', ], output: { path: `${__dirname}/dist/`, filename: 'bundle.js', publicPath: '/dist/', }, resolve: { extensions: ['', '.js', '.jsx'], }, module: { loaders: [ { test: /\.css$/, loader: 'style!css?modules', }, { test: /\.jsx*$/, exclude: [/node_modules/, /.+\.config.js/], loader: 'babel', query: { presets: ['react-hmre'], }, }, { test: /\.(jpe?g|png|gif|svg)$/i, loaders: [ 'file?hash=sha512&digest=hex&name=[hash].[ext]', 'image-webpack?bypassOnDebug&optimizationLevel=7&interlaced=false', ], }, ], }, plugins: [ new webpack.<API key>(), new webpack.DefinePlugin({ 'process.env': { CLIENT: JSON.stringify(true) }, }), ], };
package com.lthummus.kappalang.interperter /** * A simple brainfuck interperter. Takes a string and executes it. Input * is a little wonky because console input is buffered. */ class <API key>(program: Seq[Char]) { def moveBackToMatch(): Unit = { var level = 1 while (level > 0) { if (dataPointer < 0) { //ERROR HERE println("Fell off beginning looking for brace") } instructionPointer -= 1 if (program(instructionPointer) == ']') level += 1 else if (program(instructionPointer) == '[') level -= 1 } } def moveForwardToMatch(): Unit = { var level = 1 while (level > 0) { if (dataPointer > program.length - 1) { //ERROR HERE println("Fell off end looking for brace") } instructionPointer += 1 if (program(instructionPointer) == '[') level += 1 else if (program(instructionPointer) == ']') level -= 1 } } def incrementMemory(): Unit = { memorySpace(dataPointer) += 1 if (memorySpace(dataPointer) > 255) memorySpace(dataPointer) = 0 } def decrementMemory(): Unit = { memorySpace(dataPointer) -= 1 if (memorySpace(dataPointer) < 0) memorySpace(dataPointer) = 255 } def readCharacter = { val in = System.in.read() println("read " + in) in } val MemorySize = 30000 val memorySpace: Array[Int] = Array.fill[Int](MemorySize)(0) var instructionPointer = 0 var dataPointer = 0 while (instructionPointer < program.length) { program(instructionPointer) match { case '+' => incrementMemory() case '-' => decrementMemory() case '>' => dataPointer += 1 case '<' => dataPointer = math.max(0, dataPointer - 1) case '.' => print(memorySpace(dataPointer).toChar) case ',' => memorySpace(dataPointer) = readCharacter case '[' => if (memorySpace(dataPointer) == 0) moveForwardToMatch() case ']' => if (memorySpace(dataPointer) != 0) moveBackToMatch() case _ => /* nop */ } instructionPointer += 1 } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>compcert: 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.9.1 / compcert - 2.3.2</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> compcert <small> 2.3.2 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2020-03-13 06:10:22 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-03-13 06:10:22 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.9.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;dev@clarus.me&quot; homepage: &quot;http://compcert.inria.fr/&quot; dev-repo: &quot;git+https://github.com/AbsInt/CompCert.git&quot; bug-reports: &quot;https://github.com/AbsInt/CompCert/issues&quot; license: &quot;INRIA Non-Commercial License Agreement&quot; build: [ [&quot;./configure&quot; &quot;ia32-linux&quot;] [make &quot;-j%{jobs}%&quot;] ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.4pl4&quot; &amp; &lt; &quot;8.5~&quot;} &quot;menhir&quot; {&gt;= &quot;20140422&quot;} ] synopsis: &quot;The CompCert C compiler&quot; authors: &quot;Xavier Leroy &lt;xavier.leroy@inria.fr&gt;&quot; extra-files: [&quot;coq-compcert.install&quot; &quot;md5=<API key>&quot;] url { src: &quot;http://compcert.inria.fr/release/compcert-2.3pl2.tgz&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-compcert.2.3.2 coq.8.9.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.9.1). The following dependencies couldn&#39;t be met: - coq-compcert -&gt; coq &lt; 8.5~ -&gt; ocaml &lt; 4.03.0 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-compcert.2.3.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"> <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>
package com.technobitia.ted.example; import java.util.List; import com.technobitia.ted.client.TedClient; import com.technobitia.ted.model.Talk; import com.technobitia.ted.response.TalkListResponse; public class <API key> { public static void main(String[] args) { String <API key>; TedClient tedClient = new TedClient(apiKey); TalkListResponse talkListResponse = tedClient.<API key>(171); List<Talk> talks = talkListResponse.getTalks(); System.out.println(talks); } }
module Auth # :reek:DataClump class Permissions def initialize(instances) @instances = instances.is_a?(Enumerable) ? instances : [instances] @model = @instances.first.class end def fetch(action, subject) fetch_grants(action, subject) fetch_active_bans(action, subject) end def fetch_grants(action, subject) grant = @model.grant_model_for(action, subject) return unless grant <API key>(:grants, action, subject) ids = <API key>(grant, subject).pluck(actor_id) set_instance_cache(:grants, action, subject, ids) end def fetch_active_bans(action, subject) ban = @model.ban_model_for(action, subject) return unless ban <API key>(:active_bans, action, subject) ids = <API key>(ban, subject).active.pluck(actor_id) set_instance_cache(:active_bans, action, subject, ids) end # rubocop:disable Style/<API key> private(*delegate(:actor_name, :actor_id, to: :model)) # rubocop:enable Style/<API key> private attr_reader :model def <API key>(attribute, action, subject) @instances.each do |instance| instance.send(attribute)[action][subject] = false end end # :reek:LongParameterList def set_instance_cache(attribute, action, subject, ids) ids.each do |id| instance_map[id].send(attribute)[action][subject] = true end end def instance_map @instance_map ||= @instances.index_by(&:id) end def <API key>(action_model, subject) action_model.where(actor_name => @instances).for(subject) end end end
<!DOCTYPE html> <html lang="id"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Stockie</title> <link href="style.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="dasbor.html">Stockie.</a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li><a href="dasbor.html"><span class="fa fa-home"></span> Dasbor</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="fa fa-list"></span> Data <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="barang.html"><span class="fa fa-cubes"></span> Barang</a></li> <li class="divider"></li> <li><a href="supplier.html"><span class="fa fa-briefcase"></span> Supplier</a></li> <li><a href="pelanggan.html"><span class="fa fa-shopping-cart"></span> Pelanggan</a></li> <li class="divider"></li> <li><a href="user.html"><span class="fa fa-users"></span> User</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="fa fa-exchange"></span> Transaksi &amp; Laporan <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="trx-masuk.html"><span class="fa fa-download"></span> Barang Masuk</a></li> <li><a href="trx-keluar.html"><span class="fa fa-upload"></span> Barang Keluar</a></li> <li class="divider"></li> <li><a href="trx-bayar.html"><span class="fa fa-money"></span> Pembayaran</a></li> </ul> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="fa fa-user"></span> Halo, Ian <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="login.html"><span class="fa fa-sign-out"></span> Keluar</a></li> </ul> </li> </ul> </div><!--/.nav-collapse --> </div> </div> <div class="container"> <h1 class="first page-header">Data Supplier</h1> <div class="row top"> <div class="col-xs-4"> <button class="btn btn-primary" data-toggle="modal" data-target="#formSupplier"> <span class="fa fa-plus-circle fa-lg"></span> Tambah supplier </button> <!-- <a href="barang-form.html" class="btn btn-primary btn-top"><span class="fa fa-plus-circle"></span> Tambah barang</a> --> </div> <div class="col-xs-4 col-xs-offset-4"> <form class="form form-inline pull-right" accept-charset="utf-8" method="post" role="form" action="supplier.html"> <div class="input-group"> <input id="cariData" class="form-control" type="text" placeholder="Cari data" name="cari"> <span class="input-group-btn"> <button class="btn btn-default" type="submit"><span class="fa fa-search fa-lg"></span></button> </span> </div> </form> </div> </div> <table class="table table-striped"> <thead> <tr> <th width="5%">No</th> <th width="25%">Nama</th> <th width="32%">Alamat</th> <th width="15%">Kota</th> <th width="15%">Telp</th> <th width="8%" colspan="2" class="text-center">Aksi</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>CV. INDO MITRA SUPPLY</td> <td>Jl. Basuki Rahmad 127</td> <td>Gresik</td> <td >0823 4567 8900</td> <td width="4%" class="text-center"><a title="Ubah data ini" href="javascript:;" class="text-info"><span class="fa fa-edit fa-lg"></span></a></td> <td width="4%" class="text-center"><a title="Hapus data ini" onclick="return confirm('Yakin ingin menghapus data ini?')" href="javascript:;" class="text-danger"><span class="fa fa-trash fa-lg"></span></a></td> </tr> <tr> <td>2</td> <td>CV. MEVIKA SETYA</td> <td>Jl. Karangmenjangan Gg. Jojoran I No. 4</td> <td>Surabaya</td> <td >031 7886 9896</td> <td width="4%" class="text-center"><a title="Ubah data ini" href="javascript:;" class="text-info"><span class="fa fa-edit fa-lg"></span></a></td> <td width="4%" class="text-center"><a title="Hapus data ini" onclick="return confirm('Yakin ingin menghapus data ini?')" href="javascript:;" class="text-danger"><span class="fa fa-trash fa-lg"></span></a></td> </tr> </tbody> </table> </div> <!-- /container --> <div class="modal fade" id="formSupplier" tabindex="-1" role="dialog" aria-labelledby="judulForm" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <form action="supplier.html" class="form-horizontal" role="form" method="post" accept-charset="utf-8"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Batal</span></button> <h4 class="modal-title" id="judulForm">Tambah Supplier</h4> </div> <div class="modal-body"> <div class="form-group"> <label for="inputNama" class="col-xs-2 control-label">Nama</label> <div class="col-xs-10"> <input name="data[nama]" value="" class="form-control" id="inputNama" placeholder="Nama Supplier" type="text"> </div> </div> <div class="form-group"> <label for="inputAlamat" class="col-xs-2 control-label">Alamat</label> <div class="col-xs-10"> <textarea name="data[alamat]" class="form-control" rows="3" id="inputAlamat"></textarea> </div> </div> <div class="form-group"> <label for="inputKota" class="col-xs-2 control-label">Kota</label> <div class="col-xs-4"> <input name="data[kota]" class="form-control" id="inputKota" placeholder="Kota" type="text"> </div> <label for="inputTelepon" class="col-xs-2 control-label">Telepon</label> <div class="col-xs-4"> <input name="data[telepon]" class="form-control" id="inputTelepon" placeholder="031 2345 6789" type="text"> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Batal</button> <input name="submit" value="Tambah data supplier" class="btn btn-primary" type="submit"> </div> </form> </div> </div> </div> <!-- /modal --> <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js"></script> <script type="text/javascript"> $(function () { moment.locale('id'); $('[data-toggle="popover"]') .popover({ html: true, trigger: 'focus' }); new Morris.Line({ element: 'statistikTrx', data: [ { date: '2014-05-08', masuk: 2, keluar: 1, bayar: 2 }, { date: '2014-05-09', masuk: 5, keluar: 2, bayar: 2 }, { date: '2014-05-10', masuk: 8, keluar: 4, bayar: 3 }, { date: '2014-05-11', masuk: 6, keluar: 7, bayar: 1 }, { date: '2014-05-12', masuk: 7, keluar: 9, bayar: 2 } ], ykeys: ['masuk', 'keluar', 'bayar'], labels: ['Barang Masuk', 'Barang Keluar', 'Pembayaran'], xkey: 'date', xLabels: 'day', xLabelFormat: function (date) { return moment(date).format('ll'); }, hoverCallback: function (index, options, content, row) { return '<div class="<API key>">' + moment(row.date).format('ll') + '</div><div class="morris-hover-point" style="color: #0b62a4">Barang Masuk: ' + row.masuk + '</div><div class="morris-hover-point" style="color: #7A92A3">Barang Keluar: ' + row.keluar + '</div><div class="morris-hover-point" style="color: #4da74d">Pembayaran: ' + row.bayar + '</div>' } }); }) </script> </body> </html>
package net.glowstone.util; public class Convert { /** * Converts a hexadecimal string to a byte array. * * @param hex a string of hexadecimal digits * @return {@code hex} as a byte array */ public static byte[] fromHex(String hex) { int len = hex.length(); byte[] data = new byte[len / 2]; for (int i = 0; i < len; i += 2) { data[i / 2] = (byte) ((Character.digit(hex.charAt(i), 16) << 4) + Character.digit(hex.charAt(i + 1), 16)); } return data; } /** * Converts a byte array to a hexadecimal string. * * @param bytes a byte array * @return {@code bytes} as a hexadecimal string */ public static String fromBytes(byte[] bytes) { StringBuilder sb = new StringBuilder(40); for (byte b : bytes) { sb.append(String.format("%02X ", b)); // NON-NLS } return sb.toString(); } }
package de.skuzzle.jeve.providers; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; import java.util.function.BiConsumer; import java.util.stream.Collectors; import de.skuzzle.jeve.Event; import de.skuzzle.jeve.ExceptionCallback; import de.skuzzle.jeve.Listener; import de.skuzzle.jeve.ListenerSource; /** * Extension to the {@link <API key>} which notifies all listeners * in parallel but blocks the dispatching thread until all listeners have been * notified. * * @author Simon Taddiken * @since 4.0.0 */ public class <API key> extends <API key> { /** * Creates a new <API key> using the provided source and * executor. * * @param source Responsible for storing and retrieving listeners of this * provider. * @param executor The executor to use. */ public <API key>(ListenerSource source, ExecutorService executor) { super(source, executor); } /** * Creates a new <API key> using the provided source and * a cached thread pool for parallel dispatching. * * @param source Responsible for storing and retrieving listeners of this * provider. */ public <API key>(ListenerSource source) { super(source); } @Override public <L extends Listener, E extends Event<?, L>> void dispatch(E event, BiConsumer<L, E> bc, ExceptionCallback ec) { checkDispatchArgs(event, bc, ec); if (!canDispatch()) { return; } // Collect listeners into collection to get the count of registered // listeners final Collection<L> c = getListenerSource() .get(event) .collect(Collectors.toList()); final List<Future<?>> futures = new ArrayList<>(c.size()); final CountDownLatch latch = new CountDownLatch(c.size()); final Iterator<L> listeners = c.iterator(); while (listeners.hasNext() && checkInterrupt()) { final L listener = listeners.next(); final Future<?> future = this.executor.submit(() -> { try { notifySingle(listener, event, bc, ec); } finally { // notifySingle might throw an AbortionException but // countDown must happen anyway latch.countDown(); } }); futures.add(future); } try { latch.await(); } catch (final <API key> e) { LOGGER.error("Interrupted while waiting for listeners to be notified", e); for (final Future<?> future : futures) { future.cancel(true); } Thread.currentThread().interrupt(); } } }
import { Component } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { IAddress, AddressService } from '../core'; @Component({ templateUrl: './address-editor-page.html', styleUrls: ['./address-editor-page.css'], }) export class <API key> { addr: IAddress; constructor( private route: ActivatedRoute, private router: Router, private addressService: AddressService) { } ngOnInit() { let id = +this.route.snapshot.params['id']; this.addressService.getItem(id).take(1).subscribe(addr => this.addr = addr || <IAddress>{}); } onSaved() { this.router.navigate(['/addr']); } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>of-ocaml: 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.8.1 / of-ocaml - 2.1.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> of-ocaml <small> 2.1.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-12-06 00:47:38 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-06 00:47:38 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 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.8.1 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 ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;dev@clarus.me&quot; homepage: &quot;https://github.com/clarus/coq-of-ocaml&quot; dev-repo: &quot;git+https://github.com/clarus/coq-of-ocaml.git&quot; bug-reports: &quot;https://github.com/clarus/coq-of-ocaml/issues&quot; authors: [&quot;Guillaume Claret&quot;] license: &quot;MIT&quot; build: [ [&quot;sh&quot; &quot;-c&quot; &quot;cd OCaml &amp;&amp; ./configure.sh&quot;] [make &quot;-C&quot; &quot;OCaml&quot; &quot;-j%{jobs}%&quot;] [make &quot;-j%{jobs}%&quot;] [make &quot;test&quot;] {with-test} ] install: [ [make &quot;-C&quot; &quot;OCaml&quot; &quot;install&quot;] ] depends: [ &quot;conf-ruby&quot; {with-test} &quot;coq&quot; {&gt;= &quot;8.11&quot;} &quot;dune&quot; {build} &quot;menhir&quot; {build} &quot;ocaml&quot; {&gt;= &quot;4.07&quot; &amp; &lt; &quot;4.08&quot;} &quot;smart-print&quot; &quot;yojson&quot; {&gt;= &quot;1.6.0&quot;} ] tags: [ &quot;date:2020-03-20&quot; &quot;keyword:compilation&quot; &quot;keyword:OCaml&quot; &quot;logpath:OCaml&quot; ] synopsis: &quot;Compile a subset of OCaml to Coq&quot; url { src: &quot;https://github.com/clarus/coq-of-ocaml/archive/2.1.0.tar.gz&quot; checksum: &quot;sha512=c90c2830c0cf749359a9e1381b8c3dbc0cfb98ca91e174f6d7f07fb031bff732a0e3abf4b3643418024249dbbd6e241859bbab4e75a66b0abab471d7734004c2&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-of-ocaml.2.1.0 coq.8.8.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.8.1). The following dependencies couldn&#39;t be met: - coq-of-ocaml -&gt; ocaml &gt;= 4.07 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-of-ocaml.2.1.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>
<?php namespace Kambo\Http\Message; // \Spl use RuntimeException; // \Psr use Psr\Http\Message\StreamInterface; class Stream implements StreamInterface { /** * Underline stream * * @var Resource|null */ private $stream = null; /** * Size of file * * @var int|null */ private $size = null; /** * Metadata of file * * @var array|null */ private $meta = null; private $modes = [ 'readable' => ['r', 'r+', 'w+', 'a+', 'x+', 'c+', 'w+b', 'rb', 'r+b'], 'writable' => ['r+', 'w', 'w+', 'a', 'a+', 'x', 'x+', 'c', 'c+', 'w+b'], ]; /** * Constructor * * @param Resource $stream Underline resource stream */ public function __construct($stream) { $this->stream = $stream; } /** * Closes the stream and any underlying resources. * * @return void */ public function close() { if ($this->stream !== null) { fclose($this->stream); } $this->detach(); } /** * Separates any underlying resources from the stream. * * After the stream has been detached, the stream is in an unusable state. * * @return resource|null Underlying PHP stream, if any */ public function detach() { $oldStream = $this->stream; $this->stream = null; $this->size = null; $this->meta = null; return $oldStream; } /** * Get the size of the stream if known. * * @return int|null Returns the size in bytes if known, or null if unknown. */ public function getSize() { if ($this->stream !== null && $this->size === null) { $stats = fstat($this->stream); $this->size = isset($stats['size']) ? $stats['size'] : null; } return $this->size; } /** * Returns the current position of the file read/write pointer * * @return int Position of the file pointer * * @throws \RuntimeException on error. */ public function tell() { if ($this->stream === null || ($position = ftell($this->stream)) === false) { throw new RuntimeException('Could not get the position of the pointer in stream'); } return $position; } /** * Returns true if the stream is at the end of the stream. * * @return bool */ public function eof() { return $this->stream !== null ? feof($this->stream) : true; } /** * Returns whether or not the stream is seekable. * * @return bool */ public function isSeekable() { return $this->getMetadata('seekable'); } public function seek($offset, $whence = SEEK_SET) { if (!$this->isSeekable() || fseek($this->stream, $offset, $whence) === -1) { throw new RuntimeException('Could not seek in stream'); } } public function rewind() { $this->seek(0); } /** * Returns whether or not the stream is writable. * * @return bool */ public function isWritable() { $fileMode = $this->getMetadata('mode'); return (in_array($fileMode, $this->modes['writable'])); } /** * Write data to the stream. * * @param string $string The string that is to be written. * * @return int Returns the number of bytes written to the stream. * * @throws \RuntimeException on failure. */ public function write($string) { if (!$this->isWritable() || ($written = fwrite($this->stream, $string)) === false) { throw new RuntimeException('Could not write to stream'); } // clear size $this->size = null; return $written; } /** * Returns whether or not the stream is readable. * * @return bool */ public function isReadable() { $fileMode = $this->getMetadata('mode'); return (in_array($fileMode, $this->modes['readable'])); } /** * Read data from the stream. * * @param int $length Read up to $length bytes from the object and return * them. Fewer than $length bytes may be returned if underlying stream * call returns fewer bytes. * * @return string Returns the data read from the stream, or an empty string * if no bytes are available. * * @throws \RuntimeException if an error occurs. */ public function read($length) { if (!$this->isReadable() || ($data = fread($this->stream, $length)) === false) { throw new RuntimeException('Could not read from stream'); } return $data; } /** * Returns the remaining contents in a string * * @return string * * @throws \RuntimeException if unable to read or an error occurs while reading. */ public function getContents() { if (!$this->isReadable() || ($contents = stream_get_contents($this->stream)) === false) { throw new RuntimeException('Could not get contents of stream'); } return $contents; } public function getMetadata($key = null) { if (isset($this->stream)) { $this->meta = <API key>($this->stream); if (is_null($key) === true) { return $this->meta; } } return isset($this->meta[$key]) ? $this->meta[$key] : null; } public function __toString() { if ($this->stream === null) { return ''; } try { $this->rewind(); return $this->getContents(); } catch (RuntimeException $e) { return ''; } } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/5.0 (Linux; U; Android 4.4.2; es-LA; GT-S5830 Build/KOT49H) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1 UCBrowser/9.4.0.460 Mobile</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.4.2; es-LA; GT-S5830 Build/KOT49H) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1 UCBrowser/9.4.0.460 Mobile </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>Browscap<br /><small>6014</small><br /><small>vendor/browscap/browscap/tests/fixtures/issues/issue-635.php</small></td><td>UC Browser 9.4</td><td>WebKit unknown</td><td>Android 4.4</td><td style="border-left: 1px solid #555">Samsung</td><td>Galaxy Ace</td><td>Mobile Phone</td><td>yes</td><td>yes</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>Browscap result detail</h4> <p><pre><code class="php">Array ( [Comment] => UC Browser 9.4 [Browser] => UC Browser [Browser_Type] => Browser [Browser_Bits] => 32 [Browser_Maker] => UCWeb Inc. [Browser_Modus] => unknown [Version] => 9.4 [MajorVer] => 9 [MinorVer] => 4 [Platform] => Android [Platform_Version] => 4.4 [<API key>] => Android OS [Platform_Bits] => 32 [Platform_Maker] => Google Inc [Alpha] => [Beta] => [Win16] => [Win32] => [Win64] => [Frames] => 1 [IFrames] => 1 [Tables] => 1 [Cookies] => 1 [BackgroundSounds] => [JavaScript] => 1 [VBScript] => [JavaApplets] => 1 [ActiveXControls] => [isMobileDevice] => 1 [isTablet] => [isSyndicationReader] => [Crawler] => [isFake] => [isAnonymized] => [isModified] => [CssVersion] => 3 [AolVersion] => 0 [Device_Name] => Galaxy Ace [Device_Maker] => Samsung [Device_Type] => Mobile Phone [<API key>] => touchscreen [Device_Code_Name] => GT-S5830 [Device_Brand_Name] => Samsung [<API key>] => WebKit [<API key>] => unknown [<API key>] => Apple Inc ) </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>UC Browser 9.4</td><td>WebKit </td><td>Android 4.4</td><td style="border-left: 1px solid #555">Samsung</td><td>Galaxy Ace</td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.007</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>BrowscapFull result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.4\.4.*gt\-s5830 build\/.*\) applewebkit\/.* \(khtml,.*like gecko.*\) version\/.*safari\/.* ucbrowser\/9\.4.* mobile.*$/
var path = require("path"); var rootDir = path.join(__dirname, "../.."); var exec = require(path.join(rootDir, "./utils/execPromise")); module.exports = function getStatus() { return exec("git submodule status", { cwd: rootDir}) .then(function(stdout) { function <API key>(line) { var lineSections = line.trim().split(" "); var onNewCommit = !!~lineSections[0].indexOf("+"); var needsInitialization = !!~lineSections[0].indexOf("-"); var commitOid = lineSections[0].replace("+", "").replace("-", ""); var name = lineSections[1]; return exec("git status", { cwd: path.join(rootDir, name)}) .then(function(workDirStatus) { return { commitOid: commitOid, onNewCommit: onNewCommit, name: name, needsInitialization: needsInitialization, workDirDirty: !~workDirStatus .trim() .split("\n") .pop() .indexOf("nothing to commit") }; }); } return Promise.all(stdout .trim() .split("\n") .map(<API key>) ); }); };
package com.frostmonkey.phixyenteering.api.account; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.validator.constraints.NotEmpty; @Data @NoArgsConstructor @AllArgsConstructor public class Login { @NotEmpty private String username; @NotEmpty private String password; }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <! THEME INFO ======================== <meta name="description" content="Akli REGUIG's CV"> <meta name="keywords" content="akli reguig,software engineer, azalead, developer"> <meta name="author" content="Akli REGUIG"> <! SITE TITLE ======================== <title>Akli REGUIG</title> <! FAVICONS ======================== <link rel="icon" href="/images/favicon.ico"> <link rel="apple-touch-icon" sizes="144x144" href="/shared/img/<API key>.png" /> <link rel="apple-touch-icon" sizes="114x114" href="/shared/img/<API key>.png" /> <link rel="apple-touch-icon" sizes="72x72" href="/shared/img/<API key>.png" /> <link rel="apple-touch-icon" sizes="57x57" href="/shared/img/<API key>.png" /> <! STYLESHEETS ======================== <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"> <link rel="stylesheet" href="/shared/css/style.css"> <link rel="stylesheet" href="/shared/css/responsive.css"> <link href="/shared/css/bootstrap-tag-cloud.css" rel="stylesheet"> <! FONTS & ICONS ======================== <link href='https://fonts.googleapis.com/css?family=Kristi|Alegreya+Sans:300' rel='stylesheet' type='text/css'> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <! GOOGLE analytics ======================== <script> (function(i,s,o,g,r,a,m){i['<API key>']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.<API key>(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https: ga('create', 'UA-76812787-1', 'auto'); ga('send', 'pageview'); </script> <!--[if IE]> <script src="https://cdn.jsdelivr.net/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://cdn.jsdelivr.net/respond/1.4.2/respond.min.js"></script> <![endif] <script> (new Image()).src='https: </script> </head> <body> <div class="container"> <! HEADER ========================= <div id="header" class="row"> <div class="row"> <a href="https://github.com/areguig" class="github-corner"> <svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; left: 0; transform: scale(-1, 1);"> <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path> <path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path> <path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path> </svg><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}} </style></a> </div> <div class="col-sm-2"> <img class="propic" src="https://avatars0.githubusercontent.com/u/10230307" alt=""> </div> <!-- photo end--> <div class="col-sm-10"> <div class="cv-title"> <div class="row"> <div class="col-sm-7"> <h1>akli reguig</h1> </div> </div> <h2>Software Engineer </h2> </div><!-- Title end--> <! SOCIAL & CONTACT ========================= <div class="row"> <div class="col-sm-4"> <ul class="list-unstyled"> <li><a target="_blank" href="https://areguig.github.io"><span class="social fa fa-home"></span>areguig.github.io</a> </li> <li><a href=""><span class="social fa fa-envelope-o"></span>akli.reguig[at]gmail[dot]com</a> </li> </ul> </div><!-- social 1st col end--> <div class="col-sm-4"> <ul class="list-unstyled"> <li><a target="_blank" href="https://github.com/areguig"><span class="social fa fa-github-alt"></span>Github</a> </li> <li><a target="_blank" href="https://stackoverflow.com/users/story/1360584"><span class="social fa fa-stack-overflow"></span>Stackoverflow</a> </li> </ul> </div><!-- social 2nd col end--> <div class="col-sm-4"> <ul class="list-unstyled"> <li><a target="_blank" href="https://twitter.com/aklireguig"><span class="social fa fa-twitter"></span>Twitter</a> </li> <li><a target="_blank" href="https: </li> </ul> </div><!-- social 3nd col end--> </div><!-- header social end--> </div><!-- header right end--> </div><!-- header end--> <hr class="firsthr"> <! BODY LEFT PART ========================= <div class="col-md-8 mainleft"> <div id="statement" class="row mobmid"> <div class="col-sm-1"> <span class="secicon fa fa-user"></span> </div> <div class="col-sm-11"> <h3>Summary </h3> <p>In love with computers since i used one for the first time, i am an experienced software engineer and a craftsman enthusiast, my interests include : <ul> <li>Learning.</li> <li> Software quality.</li> <li> Domain Driven Design.</li> <li> Cloud native computing.</li> <li> Developer Advocacy.</li> <li> DevOps culture.</li> <li> Blockchain technology.</li> </ul> </p> <p class="signature"></p> </div> </div> <hr><!--personal statement end <! JOB EXPERIENCES ========================= <div id="job" class="row mobmid"> <div class="col-sm-1"> <span class="secicon fa fa-briefcase"></span> </div><!--icon end <div class="col-sm-11"> <h3>Job Experiences</h3> <div class="row"> <div class="col-md-9"> <h4>Lead Developer & DevOps Engineer </h4> <p class="sub"><a target="_blank" href="http://azalead.com">Azalead Software (Paris)</a> </p> <p>Product: Account Based Marketing tool in SaaS intended to b2b companies</p> <p> As a member of the R&D team (5 persons) i was in charge/part of:</p> <p> <ul> <li>Keeping the production platform up, improving and monitoring its performances: <ul> <li>Migrated from Equinix to Microsoft Azure Cloud and Google Cloud Platform.</li> <li>Implemented the monitoring, continuous integration, and deployement tooks.</li> </ul> </li> <li>Developing the product’s features (mainly the backend part).</li> <li>Agile methodology implementation.</li> <li>Development best practices implementation.</li> <li>Architectural and design choices (application and infrastructure).</li> </ul> </div> <div class="year col-md-3"> <p>2014/12 - present</p> </div> <ul id="tag-cloud"> <li class="tag-cloud tag-cloud-info">Cloud Platforms</li> <li class="tag-cloud tag-cloud-success">Spring-Boot</li> <li class="tag-cloud tag-cloud-warning">Google App Engine</li> <li class="tag-cloud">DevOps</li> <li class="tag-cloud tag-cloud-danger">Analytics</li> <li class="tag-cloud tag-cloud-warning">Java EE</li> <li class="tag-cloud">Kanban</li> <li class="tag-cloud tag-cloud-inverse">Microservices</li> <li class="tag-cloud tag-cloud-info">PostgreSQL</li> </ul> </div><!--Job 1 end <hr> <div class="row"> <div class="col-md-9"> <h4>Information System Consultant </h4> <p class="sub"><a target="_blank" href="http: </p> <p> Product : Exchanges management system between ERDF and the electricity suppliers. </p> <p> Within a distributed team (Lille and Paris) of 70 to 90 people, i was a part of: <ul> <li>The conception & development of the web services provider part of the application: Conception & development of the SOAP web services (EJB, JAXB, JAX-WS, JPA, Spring, Weblogic). </li> <li>The conception & development of the application portal (GUI), one of the web services consumer : MVC design (Spring MVC, JSP, CSS, Javascript). </li> <li>Integration, Unit and Acceptance Tests implementation (Mockito, SoapUI/Groovy,Selenium, FitNesse).</li> <li>Continuous integration (Jenkins)/ Code quality (Sonar)/ source code management (merges) with svn.</li> </ul> </p> </div> <div class="year col-md-3"> <p>2012/10-2014/12</p> </div> <ul id="tag-cloud"> <li class="tag-cloud tag-cloud-info">Scrum</li> <li class="tag-cloud tag-cloud-success">Spring-Framework</li> <li class="tag-cloud tag-cloud-warning">SOAP</li> <li class="tag-cloud tag-cloud-inverse">SOA</li> <li class="tag-cloud ">Domain Driven Design</li> <li class="tag-cloud tag-cloud-danger">Weblogic Server</li> <li class="tag-cloud tag-cloud-warning">Java EE</li> <li class="tag-cloud">Scrum</li> </ul> </div><!--Job 2 end <hr> <div class="row"> <div class="col-md-9"> <h4>Intern</h4> <p class="sub"><a target="_blank" href="https: </p> </p> <p> Product : A middleware that caches and translates Siebel CRM SOAP endpoints into REST web services for a mobile application intended for SPIE agents. </p> <p> <ul> <li>In charge of: <ul> <li>The Conception & the development of the SOAP services consumer (JEE, Maven, wsdl2java) </li> <li>The Conception & the development of the data processing part (Plugins architecture)</li> <li>The Conception & the development of the exposed REST webservices.</li> <li>JBoss webserver configuration to run the middleware.</li> </ul> </li> <li>Part of the conception and the development of the webservices consumption by the mobile application.</li> </ul> </p> </div> <div class="year col-md-3"> <p>2012/04-2012/09</p> </div> </div><!--Job 3 end </div><!--Job experiences end </div><!--Job experiences end <hr> <div id="education" class="row mobmid"> <div class="col-sm-1"> <span class="secicon fa fa-graduation-cap"></span> </div><!--icon end <div class="col-sm-11"> <h3>Education &amp; Certification</h3> <div class="row"> <div class="col-md-9"> <h4>Professional Master's Degree</h4> <p class="sub"><a target="_blank" href="http: <p>Science et Technologie du Logiciel specialty API (Algorithmique et Programmation pour l'Ingénierie) </p> </div> <div class="year col-md-3"> <p>2007-2012</p> </div> </div><!--Education & Certification 1 end <!-- <div class="row"> <div class="col-md-9"> <h4>BSc in Graphic Design</h4> <p class="sub"><a href="">Ideal Institute of Science and Technology</a> </p> <p>Studying all aspect of Graphic Design Including Advertising Design, Branding, Copy Exhibition Design, Ilustration, Information Design, Packaging Design and Website Design</p> </div> <div class="year col-md-3"> <p>2006-2009</p> </div> </div>Education & Certification 2 end <hr> <!-- <div class="row"> <div class="col-md-9"> <h4>Diploma in Graphic Design</h4> <p class="sub"><a href="">Ideal Institute of Science and Technology</a> </p> <p>Studying all aspect of Graphic Design Including Advertising Design, Branding, Copy Exhibition Design, Ilustration, Information Design, Packaging Design and Website Design</p> </div> <div class="year col-md-3"> <p>2003-2006</p> </div> </div>Education & Certification 3 end </div> </div><!--Education & Certifications end </div><!--left end <! SIDEBAR ======================== <div class="col-md-4 mainright"> <div class="row"> <div class="col-sm-1 col-md-2 mobmid"> <span class="secicon fa fa-magic"></span> </div><!--icon end <div class="col-sm-11 col-md-10"> <h3 class="mobmid">Technical skills </h3> <p>Java, SQL</p> <div class="progress"> <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100" style="width: 85%"> <span class="sr-only">85% Complete</span> </div> </div><!--skill end <p>Shell, JavaScript</p> <div class="progress"> <div class="progress-bar <API key>" role="progressbar" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100" style="width: 65%"> <span class="sr-only">65% Complete (success)</span> </div> </div><!--skill end <p>Scala, Groovy, Kotlin, Node</p> <div class="progress"> <div class="progress-bar <API key>" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 50%"> <span class="sr-only">50% Complete (success)</span> </div> </div><!--skill end <p>Golang, Python</p> <div class="progress"> <div class="progress-bar <API key>" role="progressbar" aria-valuenow="35" aria-valuemin="0" aria-valuemax="100" style="width: 35%"> <span class="sr-only">35% Complete (warning)</span> </div> </div><!--skill end <p>Dart, C</p> <div class="progress"> <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100" style="width: 30%"> <span class="sr-only">30% Complete (danger)</span> </div> </div> </div> </div> <hr><!--tech skills end <div class="row "> <div class="col-sm-1 col-md-2 mobmid"> <span class="secicon fa fa-twitter"></span> </div><!--icon end <div class="col-sm-11 col-md-10 testimonials"> <h3 class="mobmid">Twitter </h3> <a target="_blank" class="twitter-timeline" href="https://twitter.com/Ragnoros" data-widget-id="724251181783068674">Tweets de @aklireguig</a> </div><!--testimonials end </div><!--tech skills end <hr> </div><!--right end </div><!--container end <! FOOTER ======================== <footer class="text-center"> <p>&copy; 2016 Akli Reguig, CV template by <a href="https: </p> </footer> <!--necessary scripts and plugins <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> <script src="/shared/js/jquery.nicescroll.min.js"></script> <script src="/shared/js/evenfly.js"></script> <script src="/shared/js/bootstrap-tag-cloud.js"></script> <script>!function(d,s,id){var js,fjs=d.<API key>(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <script src="https://b2btagmgr.azalead.com/tag?az=aWRTdWJzY3JpYmVyPTIwMTYmaWRTaXRlPTIxMDgmb3JpZ2luPWFyZWd1aWcuZ2l0aHViLmlvJmN1c3RvbT1ub25l" type="application/javascript"> </script> </body> </html>
Copyright (c) 2016 Dropbox, Inc. All rights reserved. Auto-generated by Stone, do not modify. #import <Foundation/Foundation.h> #import "<API key>.h" #import "<API key>.h" @class <API key>; @class <API key>; @class <API key>; @class <API key>; @class DBSHARINGUserInfo; #pragma mark - API Object The `<API key>` struct. Information about an invited member of a shared content. This class implements the `DBSerializable` protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects. @interface <API key> : <API key> <DBSerializable> #pragma mark - Instance fields Recipient of the invitation. @property (nonatomic, readonly) <API key> * _Nonnull invitee; The user this invitation is tied to, if available. @property (nonatomic, readonly) DBSHARINGUserInfo * _Nullable user; #pragma mark - Constructors Full constructor for the struct (exposes all instance variables). @param accessType The access type for this member. @param invitee Recipient of the invitation. @param permissions The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request. @param initials Suggested name initials for a member. @param isInherited True if the member has access from a parent folder. @param user The user this invitation is tied to, if available. @return An initialized instance. - (nonnull instancetype)initWithAccessType:(<API key> * _Nonnull)accessType invitee:(<API key> * _Nonnull)invitee permissions:(NSArray<<API key> *> * _Nullable)permissions initials:(NSString * _Nullable)initials isInherited:(NSNumber * _Nullable)isInherited user:(DBSHARINGUserInfo * _Nullable)user; Convenience constructor (exposes only non-nullable instance variables with no default value). @param accessType The access type for this member. @param invitee Recipient of the invitation. @return An initialized instance. - (nonnull instancetype)initWithAccessType:(<API key> * _Nonnull)accessType invitee:(<API key> * _Nonnull)invitee; @end #pragma mark - Serializer Object The serialization class for the `<API key>` struct. @interface <API key> : NSObject Serializes `<API key>` instances. @param instance An instance of the `<API key>` API object. @return A json-compatible dictionary representation of the `<API key>` API object. + (NSDictionary * _Nonnull)serialize:(<API key> * _Nonnull)instance; Deserializes `<API key>` instances. @param dict A json-compatible dictionary representation of the `<API key>` API object. @return An instantiation of the `<API key>` object. + (<API key> * _Nonnull)deserialize:(NSDictionary * _Nonnull)dict; @end
<p style="margin-top: -2px; margin-bottom: -2px;" align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> <font color="#008000">Department of Mathematics</font></b></font></p> <p style="margin-top: -2px; margin-bottom: -2px;" align="center"><b> <font color="#008000" face="Verdana, Arial, Helvetica, sans-serif" size="2"> Indian Institute of Science</font></b></p> <p style="margin-top: -2px; margin-bottom: -2px;" align="center"><b> <font color="#008000" face="Verdana, Arial, Helvetica, sans-serif" size="2"> Bangalore 560 012</font></b></p> <p style="margin-top: -2px; margin-bottom: -2px;" align="center">&nbsp;</p> <p style="margin-top: -2px; margin-bottom: -2px;" align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> <font color="#ff00ff">SEMINAR</font></b></font></p> <p>&nbsp;</p> <table style="border-collapse: collapse;" id="AutoNumber1" border="0" bordercolor="#111111" cellspacing="1" height="201" width="136%"> <tbody><tr> <td align="left" height="35" valign="top" width="11%"> <p style="margin-top: -2px; margin-bottom: -2px;"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> Speaker</b> </font> </p></td> <td align="left" height="35" valign="top" width="2%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2"><b> :</b> </font> </p></td> <td align="left" height="35" width="141%"> <pre><font face="Verdana">Jayadev Athreya</font></pre> </td> </tr> <tr> <td align="left" height="35" valign="top" width="11%"> <b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Affiliation</font></b></td> <td align="left" height="35" valign="top" width="2%"> <b><font face="Verdana" size="2">:</font></b></td> <td align="left" height="35" valign="top" width="141%"> <font face="Verdana" size="2">University of Washington</font></td> </tr> <tr> <td align="left" height="31" valign="top" width="11%"> <p style="margin-top: -2px; margin-bottom: -2px;"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> Subject Area</b></font></p></td> <td align="left" height="31" valign="top" width="2%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2"><b> :</b> </font> </p></td> <td align="left" height="31" width="141%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2">Mathematics</font></p> <p style="margin-top: -2px; margin-bottom: -2px;">&nbsp;</p></td> </tr> <tr> <td align="left" height="31" valign="top" width="11%"> <p style="margin-top: -2px; margin-bottom: -2px;"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> Venue</b></font></p></td> <td align="left" height="31" valign="top" width="2%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2"><b> :</b> </font> </p></td> <td align="left" height="31" width="141%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2"> Department of Mathematics, Lecture Hall I</font></p> <p style="margin-top: -2px; margin-bottom: -2px;">&nbsp;</p></td> </tr> <tr> <td align="left" height="31" valign="top" width="11%"> <p style="margin-top: -2px; margin-bottom: -2px;"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> Time</b> </font> </p></td> <td align="left" height="31" valign="top" width="2%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2"><b> :</b> </font> </p></td> <td align="left" height="31" width="141%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2">11:00 a.m.</font></p> <p style="margin-top: -2px; margin-bottom: -2px;">&nbsp;</p></td> </tr> <tr> <td align="left" height="35" valign="top" width="11%"> <p style="margin-top: -2px; margin-bottom: -2px;"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> Date</b> &nbsp;</font></p></td> <td align="left" height="35" valign="top" width="2%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2"><b> :</b> </font> </p></td> <td align="left" height="35" width="141%"> <pre><font face="Verdana">January</font><font face="Verdana" size="2"> 06, 2015 (</font><font face="Verdana">Friday</font><font face="Verdana" size="2">)</font></pre> </td> </tr> <tr> <td align="left" height="1" valign="top" width="11%"> <p style="margin-top: -2px; margin-bottom: -2px;"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> Title</b></font></p></td> <td align="left" height="1" valign="top" width="2%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2"><b> :</b> </font> </p></td> <td align="left" height="1" width="141%"> <pre><font face="Verdana">"Siegel-Veech transforms are in L2"</font></pre> </td> </tr> <tr> <td align="left" height="1" valign="top" width="11%"> <b> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Abstract</font></b></td> <td align="left" height="1" valign="top" width="2%"> <p style="margin-top: -2px; margin-bottom: -2px;"> <font face="Verdana" size="2"><b> :</b> </font> </p></td> <td align="left" height="1" width="141%"> <div align="justify"> <pre><font face="Verdana"><p align="justify">Let H denote a connected component of a stratum of translation surfaces. We show that the Siegel-Veech transform of a bounded compactly supported function on R2 is in L2(H,&#956;), where &#956; is the Masur-Veech measure on H, and give applications to bounding error terms for counting problems for saddle connections. We will review classical results in the Geometry of Numbers which anticipate this result. This is joint work with Yitwah Cheung and Howard Masur. </p> </font><font face="Verdana" size="2">&nbsp; </font></pre> </div> <pre>&nbsp;</pre> </td> </tr> </tbody></table> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; </script> <script language="JavaScript"> <! var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad;
import logging from datetime import timedelta from pajbot.managers.handler import HandlerManager from pajbot.modules import BaseModule from pajbot.modules import ModuleSetting log = logging.getLogger(__name__) class MaxMsgLengthModule(BaseModule): ID = __name__.split(".")[-1] NAME = "Maximum Message Length" DESCRIPTION = "Times out users who post messages that contain too many characters." CATEGORY = "Moderation" SETTINGS = [ ModuleSetting( key="max_msg_length", label="Max message length (Online chat)", type="number", required=True, placeholder="", default=400, constraints={"min_value": 1, "max_value": 500}, ), ModuleSetting( key="<API key>", label="Max message length (Offline chat)", type="number", required=True, placeholder="", default=400, constraints={"min_value": 1, "max_value": 500}, ), ModuleSetting( key="timeout_length", label="Timeout length", type="number", required=True, placeholder="Timeout length in seconds", default=120, constraints={"min_value": 1, "max_value": 1209600}, ), ModuleSetting( key="bypass_level", label="Level to bypass module", type="number", required=True, placeholder="", default=500, constraints={"min_value": 100, "max_value": 1000}, ), ModuleSetting( key="timeout_reason", label="Timeout Reason", type="text", required=False, placeholder="", default="Message too long", constraints={}, ), ModuleSetting( key="<API key>", label="Whisper Timeout Reason | Available arguments: {punishment}", type="text", required=False, placeholder="", default="You have been {punishment} because your message was too long.", constraints={}, ), ModuleSetting( key="disable_warnings", label="Disable warning timeouts", type="boolean", required=True, default=False, ), ] def on_message(self, source, message, whisper, **rest): if whisper: return if source.level >= self.settings["bypass_level"] or source.moderator: return if self.bot.is_online: if len(message) > self.settings["max_msg_length"]: if self.settings["disable_warnings"] is True: self.bot.timeout(source, self.settings["timeout_length"], reason=self.settings["timeout_reason"]) else: duration, punishment = self.bot.timeout_warn( source, self.settings["timeout_length"], reason=self.settings["timeout_reason"] ) """ We only send a notification to the user if he has spent more than one hour watching the stream. """ if duration > 0 and source.time_in_chat_online >= timedelta(hours=1): self.bot.whisper(source, self.settings["<API key>"].format(punishment=punishment)) return False else: if len(message) > self.settings["<API key>"]: if self.settings["disable_warnings"] is True: self.bot.timeout(source, self.settings["timeout_length"], reason=self.settings["timeout_reason"]) else: duration, punishment = self.bot.timeout_warn( source, self.settings["timeout_length"], reason=self.settings["timeout_reason"] ) """ We only send a notification to the user if he has spent more than one hour watching the stream. """ if duration > 0 and source.time_in_chat_online >= timedelta(hours=1): self.bot.whisper(source, self.settings["<API key>"].format(punishment=punishment)) return False def enable(self, bot): HandlerManager.add_handler("on_message", self.on_message, priority=150, <API key>=True) def disable(self, bot): HandlerManager.remove_handler("on_message", self.on_message)
<?php namespace LeanIX\Api\Auth; class Authentication { /** * * @param ArrayHolder $queryParams * parameters to be place in request header * @param ArrayHolder $headerParams * parameters to be place in request header */ public function applyToParams(& $queryParams, & $headerParams) { // Do nothing within default implementations } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Table</title> </head> <body> <table> <caption> School auction sign-up sheet </caption> <thead> <tr> <th><label for=e1>Name</label> <th><label for=e2>Product</label> <th><label for=e3>Picture</label> <th><label for=e4>Price</label> <tr> <td>Your name here <td>What are you selling? <td>Link to a picture <td>Your reserve price <tbody> <tr> <td>Ms Danus <td>Doughnuts <td><img src="https://example.com/mydoughnuts.png" title="Doughnuts from Ms Danus"> <td>$45 <tr> <td><input id=e1 type=text name=who required form=f> <td><input id=e2 type=text name=what required form=f> <td><input id=e3 type=url name=pic form=f> <td><input id=e4 type=number step=0.01 min=0 value=0 required form=f> </table> </body> </html>
#import "NSPopUpButton.h" @interface XCActionControl : NSPopUpButton { } + (id)<API key>:(BOOL)arg1; + (void)<API key>:(id)arg1; + (id)<API key>:(id)arg1 forProjectDocument:(id)arg2; + (void)initialize; - (void)mouseDown:(id)arg1; - (void)_selectionDidChange:(id)arg1; - (void)dealloc; - (id)<API key>:(id)arg1; - (id)gearMenuItem; @end
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings import cms.models.fields import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0001_initial'), ('cms', '<API key>'), migrations.<API key>(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Answer', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('title', models.CharField(max_length=255)), ('slug', models.SlugField()), ('help_text', models.TextField(null=True, blank=True)), ('score', models.IntegerField(default=0)), ('order', models.IntegerField(default=0)), ('is_default', models.BooleanField(default=False)), ], options={ 'ordering': ('question', 'order', 'slug'), }, bases=(models.Model,), ), migrations.CreateModel( name='BulkAnswer', fields=[ ('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')), ('answer_value', models.CharField(max_length=255)), ('label', models.CharField(help_text=b"e.g.: 'mark all as not applicable'", max_length=255)), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.CreateModel( name='FormNav', fields=[ ('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')), ('next_page_label', models.CharField(max_length=255, null=True, blank=True)), ('prev_page_label', models.CharField(max_length=255, null=True, blank=True)), ('end_page_label', models.CharField(max_length=255, null=True, blank=True)), ('submission_set_tag', models.CharField(max_length=255, null=True, blank=True)), ('end_page', cms.models.fields.PageField(related_name='formnav_ends', blank=True, to='cms.Page', null=True)), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.CreateModel( name='GroupedAnswer', fields=[ ('answer_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms_saq.Answer')), ('group', models.CharField(max_length=255)), ], options={ 'ordering': ('group', 'order', 'slug'), }, bases=('cms_saq.answer',), ), migrations.CreateModel( name='ProgressBar', fields=[ ('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')), ('count_optional', models.BooleanField(default=False)), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.CreateModel( name='Question', fields=[ ('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')), ('slug', models.SlugField(help_text=b'A slug for identifying answers to this specific question (allows multiple only for multiple languages)')), ('label', models.CharField(max_length=512, blank=True)), ('help_text', models.CharField(max_length=512, blank=True)), ('question_type', models.CharField(max_length=1, choices=[(b'S', b'Single-choice question'), (b'M', b'Multi-choice question'), (b'F', b'Free-text question')])), ('optional', models.BooleanField(default=False, help_text=b'Only applies to free text questions')), ('depends_on_answer', models.ForeignKey(related_name='trigger_questions', blank=True, to='cms_saq.Answer', null=True)), ('tags', taggit.managers.TaggableManager(to='taggit.Tag', through='taggit.TaggedItem', blank=True, help_text='A comma-separated list of tags.', verbose_name='Tags')), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.CreateModel( name='QuestionnaireText', fields=[ ('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')), ('body', models.TextField(verbose_name='body')), ('depends_on_answer', models.ForeignKey(related_name='trigger_text', blank=True, to='cms_saq.Answer', null=True)), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.CreateModel( name='ScoreSection', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('label', models.CharField(max_length=255)), ('tag', models.CharField(max_length=255)), ('order', models.IntegerField()), ], options={ 'ordering': ('order', 'label'), }, bases=(models.Model,), ), migrations.CreateModel( name='SectionedScoring', fields=[ ('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.CreateModel( name='Submission', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('question', models.SlugField()), ('answer', models.TextField(blank=True)), ('score', models.IntegerField()), ], options={ 'ordering': ('submission_set', 'user', 'question'), }, bases=(models.Model,), ), migrations.CreateModel( name='SubmissionSet', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('slug', models.SlugField(blank=True)), ('tag', models.SlugField(blank=True)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(related_name='<API key>', to=settings.AUTH_USER_MODEL)), ], options={ }, bases=(models.Model,), ), migrations.CreateModel( name='SubmissionSetReview', fields=[ ('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')), ('submission_set_tag', models.CharField(max_length=255, null=True, blank=True)), ('count_optional', models.BooleanField(default=False)), ('label', models.CharField(max_length=255)), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.AddField( model_name='submission', name='submission_set', field=models.ForeignKey(related_name='submissions', to='cms_saq.SubmissionSet', null=True), preserve_default=True, ), migrations.AddField( model_name='submission', name='user', field=models.ForeignKey(related_name='saq_submissions', to=settings.AUTH_USER_MODEL), preserve_default=True, ), migrations.AlterUniqueTogether( name='submission', unique_together=set([('question', 'user', 'submission_set')]), ), migrations.AddField( model_name='scoresection', name='group', field=models.ForeignKey(related_name='sections', to='cms_saq.SectionedScoring'), preserve_default=True, ), migrations.AddField( model_name='formnav', name='<API key>', field=models.ForeignKey(blank=True, to='cms_saq.Question', null=True), preserve_default=True, ), migrations.AddField( model_name='formnav', name='next_page', field=cms.models.fields.PageField(related_name='formnav_nexts', blank=True, to='cms.Page', null=True), preserve_default=True, ), migrations.AddField( model_name='formnav', name='prev_page', field=cms.models.fields.PageField(related_name='formnav_prevs', blank=True, to='cms.Page', null=True), preserve_default=True, ), migrations.AddField( model_name='answer', name='question', field=models.ForeignKey(related_name='answers', to='cms_saq.Question'), preserve_default=True, ), migrations.AlterUniqueTogether( name='answer', unique_together=set([('question', 'slug')]), ), ]
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class NewContactList extends MY_Controller { var $TPL; public function __construct() { parent::__construct(); // Your own constructor code } private function display() { $this->template->show('new_list', $this->TPL); } public function index() { $this->display(); $user = $this->session->userdata('user'); echo $user; } }//End of userPanel
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>huffman: 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 / extra-dev</a></li> <li class="active"><a href="">dev / huffman - 8.7.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> huffman <small> 8.7.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2021-10-27 02:59:51 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-27 02:59:51 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 dev Formal proof management system dune 2.9.1 Fast, portable, and opinionated build system ocaml 4.12.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.12.0 Official release 4.12.0 ocaml-config 2 OCaml Switch Configuration <API key> 1 Ensure that OCaml is compiled with no special options enabled 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;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/huffman&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/Huffman&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.7&quot; &amp; &lt; &quot;8.8~&quot;} ] tags: [ &quot;keyword: Data Compression&quot; &quot;keyword: Code&quot; &quot;keyword: Huffman Tree&quot; &quot;category: Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms&quot; &quot;category: Miscellaneous/Extracted Programs/Combinatorics&quot; &quot;date: 2003-10&quot; ] authors: [ &quot;Laurent Théry&quot; ] bug-reports: &quot;https://github.com/coq-contribs/huffman/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/huffman.git&quot; synopsis: &quot;A correctness proof of Huffman algorithm&quot; description: &quot;&quot;&quot; This directory contains the proof of correctness of Huffman algorithm as described in: David A. Huffman, &quot;A Method for the Construction of Minimum-Redundancy Codes,&quot; Proc. IRE, pp. 1098-1101, September 1952.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/huffman/archive/v8.7.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-huffman.8.7.0 coq.dev</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is dev). The following dependencies couldn&#39;t be met: - coq-huffman -&gt; coq &lt; 8.8~ -&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 coq-huffman.8.7.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>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>extructures: 55 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.13.2 / extructures - 0.3.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> extructures <small> 0.3.0 <span class="label label-success">55 s </span> </small> </h1> <p> <em><script>document.write(moment("2021-10-30 03:42:16 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-30 03:42:16 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.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 zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: synopsis: &quot;Finite sets, maps, and other data structures with extensional reasoning&quot; opam-version: &quot;2.0&quot; maintainer: &quot;arthur.aa@gmail.com&quot; homepage: &quot;https://github.com/arthuraa/extructures&quot; dev-repo: &quot;git+https://github.com/arthuraa/extructures.git&quot; bug-reports: &quot;https://github.com/arthuraa/extructures/issues&quot; authors: [&quot;Arthur Azevedo de Amorim&quot;] license: &quot;MIT&quot; build: [ [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {(&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.14~&quot;)} &quot;<API key>&quot; {(&gt;= &quot;1.10&quot; &amp; &lt; &quot;1.13~&quot;)} &quot;coq-deriving&quot; {(&gt;= &quot;0.1&quot; &amp; &lt; &quot;0.2~&quot;)} ] tags: [ &quot;keyword:finite maps&quot; &quot;keyword:extensionality&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;logpath:extructures&quot; ] url { src: &quot;https://github.com/arthuraa/extructures/archive/v0.3.0.tar.gz&quot; checksum: &quot;sha512=1bbf711f53b86b37daef5fc08dc30f34d6e3334127b4cc2d887b89709e089c56dbd186c38aa1b925ed4802e3aad8cf29a5a66f12294c0e954815c28ad04f648b&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-extructures.0.3.0 coq.8.13.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-extructures.0.3.0 coq.8.13.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>2 m 40 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-extructures.0.3.0 coq.8.13.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>55 s</dd> </dl> <h2>Installation size</h2> <p>Total: 2 M</p> <ul> <li>377 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/ord.vo</code></li> <li>298 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/fset.glob</code></li> <li>297 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/fmap.vo</code></li> <li>260 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/fset.vo</code></li> <li>217 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/fmap.glob</code></li> <li>165 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/fperm.vo</code></li> <li>110 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/fperm.glob</code></li> <li>77 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/ord.glob</code></li> <li>73 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/ffun.vo</code></li> <li>41 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/fset.v</code></li> <li>37 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/fmap.v</code></li> <li>36 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/ffun.glob</code></li> <li>21 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/ord.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/fperm.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/extructures/ffun.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-extructures.0.3.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; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using BizTalkComponents.PipelineComponents.<API key>.Tests.Constants; using BizTalkComponents.PipelineComponents.<API key>.Tests.Extensions; using BizTalkComponents.PipelineComponents.<API key>.Tests.Models; using Microsoft.BizTalk.Component.Interop; using Microsoft.VisualStudio.TestTools.UnitTesting; using Winterdom.BizTalk.PipelineTesting; namespace BizTalkComponents.PipelineComponents.<API key>.Tests { [TestClass] public class <API key> { [TestMethod] public void <API key>() { var <API key> = new <API key> { NamespaceToModify = Misc.ExistingNamespace, NewNamespace = Misc.ModifiedNamespace }; var components = new List<Tuple<IBaseComponent, PipelineStage>> { new Tuple<IBaseComponent, PipelineStage>(<API key>, PipelineStage.Validate) }; var result = TestHelper.<API key>(TestFiles.<API key>, components); using (var reader = XmlReader.Create(result[0].BodyPart.Data)) { reader.MoveToContent(); Assert.IsTrue(reader.NamespaceURI == Misc.ModifiedNamespace, "Root element is not qualified within {0}", Misc.ModifiedNamespace); reader.MoveToNextElement(); Assert.IsTrue(reader.NamespaceURI == Misc.ModifiedNamespace, "Child element is not qualified within {0}", Misc.ModifiedNamespace); } } [TestMethod] public void <API key>() { var <API key> = new <API key> { NamespaceToModify = Misc.ExistingNamespace, NewNamespace = Misc.ModifiedNamespace }; var components = new List<Tuple<IBaseComponent, PipelineStage>> { new Tuple<IBaseComponent, PipelineStage>(<API key>, PipelineStage.Validate) }; var result = TestHelper.<API key>(TestFiles.<API key>, components); using (var reader = XmlReader.Create(result[0].BodyPart.Data)) { reader.MoveToContent(); Assert.IsTrue(reader.NamespaceURI == Misc.ModifiedNamespace, "Root element is not qualified within {0}", Misc.ModifiedNamespace); reader.MoveToNextElement(); Assert.IsTrue(reader.NamespaceURI == string.Empty, "Child element is not unqaulified"); } } [TestMethod] public void <API key>() { var <API key> = new <API key> { NamespaceToModify = Misc.ExistingNamespace, NewNamespace = Misc.ModifiedNamespace }; var components = new List<Tuple<IBaseComponent, PipelineStage>> { new Tuple<IBaseComponent, PipelineStage>(<API key>, PipelineStage.Validate) }; var result = TestHelper.<API key>(TestFiles.<API key>, components); using (var reader = XmlReader.Create(result[0].BodyPart.Data)) { reader.MoveToContent(); Assert.IsTrue(reader.NamespaceURI == Misc.ModifiedNamespace, "Root element is not qualified within {0}", Misc.ModifiedNamespace); reader.MoveToNextElement(); Assert.IsTrue(reader.NamespaceURI == Misc.ModifiedNamespace, "Child element is not qualified within {0}", Misc.ModifiedNamespace); } } [TestMethod] public void <API key>() { var <API key> = new <API key> { NamespaceToModify = Misc.ExistingNamespace, NewNamespace = Misc.ModifiedNamespace }; var components = new List<Tuple<IBaseComponent, PipelineStage>> { new Tuple<IBaseComponent, PipelineStage>(<API key>, PipelineStage.Validate) }; var result = TestHelper.<API key>(TestFiles.<API key>, components); using (var reader = XmlReader.Create(result[0].BodyPart.Data)) { reader.MoveToContent(); Assert.IsTrue(reader.NamespaceURI == Misc.ModifiedNamespace, "Root element is not qualified within {0}", Misc.ModifiedNamespace); reader.MoveToNextElement(); Assert.IsTrue(reader.NamespaceURI == string.Empty, "Child element should is not unqualified"); } } [TestMethod] public void <API key>() { var <API key> = new <API key> { NamespaceToModify = "NoMatch", NewNamespace = Misc.ModifiedNamespace }; var components = new List<Tuple<IBaseComponent, PipelineStage>> { new Tuple<IBaseComponent, PipelineStage>(<API key>, PipelineStage.Validate) }; var result = TestHelper.<API key>(TestFiles.<API key>, components); var file = File.Open(TestFiles.<API key>, FileMode.Open); Assert.IsTrue(file.ToByteArray().SequenceEqual(result[0].BodyPart.Data.ToByteArray()), "Non matching file is changed"); } [TestMethod] public void <API key>() { var messageTypeToAdd = string.Concat(Misc.ModifiedNamespace, "#", "Tests"); var <API key> = new <API key> { NamespaceToModify = Misc.ExistingNamespace, NewNamespace = Misc.ModifiedNamespace, <API key> = true }; var properties = new List<ContextProperty>{ new ContextProperty { Name = Misc.SystemPropertyName, Namespace = Misc.<API key>, Value = string.Concat(Misc.ModifiedNamespace,"#","Test") }}; var components = new List<Tuple<IBaseComponent, PipelineStage>> { new Tuple<IBaseComponent, PipelineStage>(<API key>, PipelineStage.Validate) }; var result = TestHelper.<API key>(TestFiles.<API key>, components, properties); Assert.IsTrue(result[0].Context.Read(Misc.SystemPropertyName, Misc.<API key>).ToString() == messageTypeToAdd, "Context is missing new message type {0}", messageTypeToAdd); Assert.IsTrue(result[0].Context.IsPromoted(Misc.SystemPropertyName, Misc.<API key>), "Message type is not promoted in context"); } [TestMethod] public void HandleMissingBom() { var <API key> = new <API key> { NamespaceToModify = Misc.ExistingNamespace, NewNamespace = Misc.ModifiedNamespace }; var components = new List<Tuple<IBaseComponent, PipelineStage>> { new Tuple<IBaseComponent, PipelineStage>(<API key>, PipelineStage.Validate) }; var result = TestHelper.<API key>(TestFiles.<API key>, components); Assert.IsFalse(TestHelper.HasUtf8Bom(result[0].BodyPart.Data), "BOM has been added to file"); } [TestMethod] public void NonXmlContent() { var <API key> = new <API key> { NamespaceToModify = Misc.ExistingNamespace, NewNamespace = Misc.ModifiedNamespace }; TestHelper.TestFlatFile(<API key>); } } }
import json import argparse import os from listener.config import MIN_TIME, MAX_TIME, <API key> from listener.replayer import Replayer from listener.utilities import convert_time, average from listener.calculate import (calculate_temp_NTC, calculate_press, calculate_height, calculate_gyr) from collections import deque from io import StringIO parser = argparse.ArgumentParser(prog="Replayer", description="Replay a CanSat log file for " "listener.") parser.add_argument("input_file") args = parser.parse_args() input_file = os.path.abspath(args.input_file) input_handle = open(input_file, "r") out_file = "static.json" out_handle = open(out_file, "w") replayer = Replayer(MIN_TIME, MAX_TIME, input_handle, StringIO(), False, True) full_data = replayer.start() <API key> = deque(maxlen=<API key>) data_temperature = [] data_pressure = [] data_height = [] data_gyro = [] for datapoint in full_data: if not MIN_TIME <= datapoint["Time"] <= MAX_TIME: continue # Skip pressure = calculate_press(datapoint["Press"]) <API key>.append(pressure) time = convert_time(datapoint["Time"] - MIN_TIME) data_temperature.append([time, calculate_temp_NTC(datapoint["NTC"])]) pressure = average(<API key>) data_pressure.append([time, pressure]) data_height.append([time, calculate_height(pressure)]) data_gyro.append([time, calculate_gyr(datapoint["GyrZ"])]) all_data = { "Temp": data_temperature, "Press": data_pressure, "Height": data_height, "Gyro": data_gyro } out_handle.write(json.dumps(all_data)) input_handle.close() out_handle.close()
<?php class HpsDebitAddValue extends HpsAuthorization { }
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="Author" content="tito"> <meta name="GENERATOR" content="Mozilla/4.7 [en] (WinNT; I) [Netscape]"> <title>Untitled</title> </head> <body text="#000000" bgcolor="#FFFFFF" link="#FF0000" vlink="#800080" alink="#0000FF"> &nbsp; <table COLS=3 WIDTH="100%" > <tr> <td WIDTH="3" BGCOLOR="#66FFFF"><img SRC="images/dot.gif" NOSAVE height=1 width=1></td> <td WIDTH="100%" BGCOLOR="#3333FF"> <center><b><tt><font color="#FFFFFF">5.2 .define</font></tt></b></center> </td> <td WIDTH="3" BGCOLOR="#66FFFF"><img SRC="images/dot.gif" NOSAVE height=1 width=1></td> </tr> <tr> <td BGCOLOR="#66FFFF"><img SRC="images/dot.gif" NOSAVE height=1 width=1></td> <td><tt></tt> <br><tt>.define is used to introduce new name which have type of L_CONST (constant). There is two forms of .define:</tt> <pre><b><tt>&nbsp; .define name ; or &nbsp; .define name = expression</tt></b></pre> <tt>When first form is used, value of name is 1:</tt> <pre><b><tt>&nbsp; .define W = 0 ; W == 0 &nbsp; .define F&nbsp; ; F == 1</tt></b></pre> <tt>It is very useful in include files like 'p16c84.inc' that define 'W' and 'F' with .define. If we used assign expression we did not permit changing of names 'W' and 'F' so user can mistake and reassign value. With .define name is not reassignable.</tt> <br>&nbsp;</td> <td BGCOLOR="#66FFFF"><img SRC="images/dot.gif" NOSAVE height=1 width=1></td> </tr> <tr> <td BGCOLOR="#66FFFF"><img SRC="images/dot.gif" NOSAVE height=1 width=1></td> <td BGCOLOR="#66FFFF"> <center><b><tt><a href="mas5-1.html">[PREV]</a><a href="index.htm">[INDEX]</a><a href="mas5-3.html">[NEXT]</a></tt></b></center> </td> <td BGCOLOR="#66FFFF"><img SRC="images/dot.gif" NOSAVE height=1 width=1></td> </tr> </table> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>paco: 2 m 22 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 / paco - 4.0.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> paco <small> 4.0.0 <span class="label label-success">2 m 22 s </span> </small> </h1> <p> <em><script>document.write(moment("2022-01-22 06:02:19 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-22 06:02:19 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 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 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 ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; name: &quot;coq-paco&quot; version: &quot;4.0.0&quot; maintainer: &quot;paco@sf.snu.ac.kr&quot; synopsis: &quot;Coq library implementing parameterized coinduction&quot; homepage: &quot;https://github.com/snu-sf/paco/&quot; dev-repo: &quot;git+https://github.com/snu-sf/paco.git&quot; bug-reports: &quot;https://github.com/snu-sf/paco/issues/&quot; authors: [ &quot;Chung-Kil Hur &lt;gil.hur@sf.snu.ac.kr&gt;&quot; &quot;Georg Neis &lt;neis@mpi-sws.org&gt;&quot; &quot;Derek Dreyer &lt;dreyer@mpi-sws.org&gt;&quot; &quot;Viktor Vafeiadis &lt;viktor@mpi-sws.org&gt;&quot; &quot;Minki Cho &lt;minki.cho@sf.snu.ac.kr&gt;&quot; ] license: &quot;BSD-3&quot; build: [make &quot;-C&quot; &quot;src&quot; &quot;all&quot; &quot;-j%{jobs}%&quot;] install: [make &quot;-C&quot; &quot;src&quot; &quot;-f&quot; &quot;Makefile.coq&quot; &quot;install&quot;] remove: [&quot;rm&quot; &quot;-r&quot; &quot;-f&quot; &quot;%{lib}%/coq/user-contrib/Paco&quot;] depends: [ &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.13~&quot;} ] tags: [ &quot;date:2019-04-30&quot; &quot;category:Computer Science/Programming Languages/Formal Definitions and Theory&quot; &quot;category:Mathematics/Logic&quot; &quot;keyword:co-induction&quot; &quot;keyword:simulation&quot; &quot;keyword:parameterized greatest fixed point&quot; ] url { http: &quot;https://github.com/snu-sf/paco/archive/v4.0.0.tar.gz&quot; checksum: &quot;<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-paco.4.0.0 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-paco.4.0.0 coq.8.7.2</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 coq-paco.4.0.0 coq.8.7.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>2 m 22 s</dd> </dl> <h2>Installation size</h2> <p>Total: 10 M</p> <ul> <li>1 M <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco14.vo</code></li> <li>927 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco13.vo</code></li> <li>800 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco12.vo</code></li> <li>662 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco11.vo</code></li> <li>563 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco10.vo</code></li> <li>477 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco9.vo</code></li> <li>405 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco8.vo</code></li> <li>341 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco7.vo</code></li> <li>281 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco6.vo</code></li> <li>229 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco5.vo</code></li> <li>202 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/pacotac_internal.vo</code></li> <li>182 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco4.vo</code></li> <li>163 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco14.vo</code></li> <li>148 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco13.vo</code></li> <li>142 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco3.vo</code></li> <li>133 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco12.vo</code></li> <li>119 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco11.vo</code></li> <li>116 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/examples.vo</code></li> <li>112 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/<API key>.vo</code></li> <li>107 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco2.vo</code></li> <li>107 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco10.vo</code></li> <li>95 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco9.vo</code></li> <li>93 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paconotation.vo</code></li> <li>86 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paconotation.glob</code></li> <li>84 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco8.vo</code></li> <li>78 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco1.vo</code></li> <li>78 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco14.glob</code></li> <li>74 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco13.glob</code></li> <li>73 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco7.vo</code></li> <li>73 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/tutorial.vo</code></li> <li>70 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco12.glob</code></li> <li>68 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco14.glob</code></li> <li>67 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco11.glob</code></li> <li>64 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco10.glob</code></li> <li>63 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco6.vo</code></li> <li>63 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco13.glob</code></li> <li>60 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco9.glob</code></li> <li>58 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco8.glob</code></li> <li>57 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco12.glob</code></li> <li>56 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco7.glob</code></li> <li>55 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco5.vo</code></li> <li>54 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco6.glob</code></li> <li>54 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco0.vo</code></li> <li>53 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco5.glob</code></li> <li>53 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco11.glob</code></li> <li>52 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco4.glob</code></li> <li>51 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco3.glob</code></li> <li>50 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco2.glob</code></li> <li>49 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco1.glob</code></li> <li>49 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco10.glob</code></li> <li>49 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpacotac.vo</code></li> <li>48 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco0.glob</code></li> <li>47 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco4.vo</code></li> <li>43 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco9.glob</code></li> <li>43 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/pacotac.vo</code></li> <li>42 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/pacotac_internal.v</code></li> <li>41 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/<API key>.glob</code></li> <li>40 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco8.glob</code></li> <li>39 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco3.vo</code></li> <li>37 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco7.glob</code></li> <li>34 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco6.glob</code></li> <li>33 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco2.vo</code></li> <li>33 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/pacotac_internal.glob</code></li> <li>32 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco5.glob</code></li> <li>29 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco4.glob</code></li> <li>27 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco3.glob</code></li> <li>27 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco1.vo</code></li> <li>26 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/tutorial.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco2.glob</code></li> <li>24 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/tutorial.v</code></li> <li>24 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpacotac.glob</code></li> <li>23 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco1.glob</code></li> <li>22 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco0.glob</code></li> <li>21 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco0.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco14.v</code></li> <li>21 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco13.v</code></li> <li>20 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco12.v</code></li> <li>20 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco11.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco_internal.vo</code></li> <li>19 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco10.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/examples.glob</code></li> <li>18 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco9.v</code></li> <li>18 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco8.v</code></li> <li>18 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco7.v</code></li> <li>18 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco6.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco5.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco4.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco3.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco2.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco1.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpaco0.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpacotac.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paconotation.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco14.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/hpattern.vo</code></li> <li>13 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco13.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco_internal.glob</code></li> <li>12 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco12.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco11.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco10.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco9.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco8.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/<API key>.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco7.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco6.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/examples.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco5.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco4.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco3.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco2.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco1.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco0.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/pacotac.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/pacotac.glob</code></li> <li>5 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco.vo</code></li> <li>4 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/hpattern.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpacoall.vo</code></li> <li>4 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco_internal.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/pacoall.vo</code></li> <li>1 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/hpattern.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpacoall.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/pacoall.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/gpacoall.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/pacoall.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.02.3/lib/coq/user-contrib/Paco/paco.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-paco.4.0.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>
# PathFinder ![logo](https://raw.githubusercontent.com/anth12/PathFinder/master/logo.png) Image maze processor and solver. *Logo: Right path by BomSymbols from the Noun Project*
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Introduction to Bootstrap"> <meta name="author" content="Joseph Guadagno"> <link rel="shortcut icon" href="favicon.ico"> <title>Introduction to Bootstrap - Tour - JavaScript - Affix</title> <link id="bootstrapTheme" href="/css/themes/cerulean/bootstrap.min.css" rel="stylesheet"> <link href="/css/font-awesome.min.css" rel="stylesheet"> <link href="/css/docs.min.css" rel="stylesheet"> <link href="/css/site.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif] <script src="/js/ai.js"></script> </head> <body> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/index.html">Intro to Bootstrap</a> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="/index.html">Welcome</a></li> <li class="dropdown active"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">The Tour <b class="caret"></b></a> <ul class="dropdown-menu"> <li class="dropdown-submenu"> <a href="#">Getting Started</a> <ul class="dropdown-menu"> <li><a href="/tour/getting_started/download.html">Download</a></li> <li><a href="/tour/getting_started/template.html">Template</a></li> </ul> </li> <li class="dropdown-submenu"> <a href="#">Grid System</a> <ul class="dropdown-menu"> <li><a href="/tour/grid_system/introduction.html">Introduction</a></li> <li><a href="/tour/grid_system/media_queries.html">Media Queries</a></li> <li><a href="/tour/grid_system/grid_options.html">Grid Options</a></li> <li><a href="/tour/grid_system/examples.html">Examples</a></li> <li><a href="/tour/grid_system/responsive_columns.html">Responsive Columns</a></li> <li><a href="/tour/grid_system/offsetting_columns.html">Offsetting Columns</a></li> <li><a href="/tour/grid_system/nesting_columns.html">Nesting Columns</a></li> <li><a href="/tour/grid_system/ordering_columns.html">Ordering Columns</a></li> </ul> </li> <li class="dropdown-submenu"> <a href="#">CSS</a> <ul class="dropdown-menu"> <li><a href="/tour/css/typography.html">Typography</a></li> <li><a href="/tour/css/tables.html">Tables</a></li> <li><a href="/tour/css/forms.html">Forms</a></li> <li><a href="/tour/css/buttons.html">Buttons</a></li> <li><a href="/tour/css/images.html">Images</a></li> <li><a href="/tour/css/helper_classes.html">Helper Classes</a></li> <li><a href="/tour/css/<API key>.html">Responsive Utilities</a></li> </ul> </li> <li class="dropdown-submenu"> <a href="#">Components</a> <ul class="dropdown-menu"> <li><a href="/tour/components/icons.html">Icons</a></li><li><a href="/tour/components/font_awesome.html">Font Awesome</a></li> <li><a href="/tour/components/dropdowns.html">Dropdowns</a></li> <li><a href="/tour/components/buttons.html">Buttons</a></li><li><a href="/tour/components/button_dropdowns.html">Button Dropdowns</a></li> <li><a href="/tour/components/input_groups.html">Input Groups</a></li><li><a href="/tour/components/navs.html">Navs</a></li> <li><a href="/tour/components/navbars.html">Navbars</a></li> <li><a href="/tour/components/labels.html">Labels</a></li> <li><a href="/tour/components/thumbnails.html">Thumbnails</a></li> <li><a href="/tour/components/alerts.html">Alerts</a></li> <li><a href="/tour/components/progressbars.html">Progressbars</a></li> <li><a href="/tour/components/listgroups.html">Lists Groups</a></li> <li><a href="/tour/components/panels.html">Panels</a></li> </ul> </li> <li class="dropdown-submenu"> <a href="#">Javascript</a> <ul class="dropdown-menu"> <li><a href="/tour/javascript/overview.html">Overview</a></li><li><a href="/tour/javascript/modal.html">Modal</a></li> <li><a href="/tour/javascript/scrollspy.html">Scroll Spy</a></li> <li><a href="/tour/javascript/dropdown.html">Dropdown</a></li> <li><a href="/tour/javascript/tooltip.html">Tooltip</a></li> <li><a href="/tour/javascript/popover.html">Popover</a></li> <li><a href="/tour/javascript/alert.html">Alert</a></li> <li><a href="/tour/javascript/button.html">Button</a></li> <li><a href="/tour/javascript/collapse.html">Collapse</a></li> <li><a href="/tour/javascript/carousel.html">Carousel</a></li> <li><a href="/tour/javascript/affix.html">Affix</a></li> </ul> </li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Bootstrap Site <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="http://getbootstrap.com/" target="_blank">Bootstrap</a></li> <li><a href="http://getbootstrap.com/getting-started" target="_blank">Getting Started</a></li> <li><a href="http://getbootstrap.com/css" target="_blank">CSS</a></li> <li><a href="http://getbootstrap.com/components" target="_blank">Components</a></li> <li><a href="http://getbootstrap.com/javascript" target="_blank">JavaScript</a></li> <li><a href="http://getbootstrap.com/customize" target="_blank">Customize</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Other Bootstrap Sites <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="http: <li><a href="http://bootswatch.com/" target="_blank">Bootswatch (themes)</a></li> <li><a href="http://builtwithbootstrap.com/" target="_blank">Built with Bootstrap</a></li> <li><a href="http: <li><a href="http://averagemarcus.github.io/<API key>/" target="_blank">Bootstrap Acknowledge</a></li> <li><a href="http://josephguadagno.net/post/2014/01/24/<TwitterConsumerkey>" target="_blank">More Bootstrap Resources</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">CDNs <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="http: <li><a href="http://cdnjs.com/" target="_blank">cdnjs</a></li> <li><a href="http: <li><a href="http: <li><a href="https://developers.google.com/speed/libraries/devguide" target="_blank">Google CDN</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Themes <b class="caret"></b></a> <ul class="dropdown-menu" id="ThemeList"> </ul> </li> <li><a href="/about.html">About</a></li> </ul> </div><!--/.nav-collapse --> </div> </nav> <div class="container-fluid"> <ol class="breadcrumb"> <li><a href="/index.html">Welcome</a></li> <li><a href="/tour/index.html">Tour</a></li> <li><a href="/tour/javascript/index.html">JavaScript</a></li> <li class="active">Affix</li> </ol> <div class="page-header"> <h1>Affix</h1> </div> <div> <h2 id="affix-usage">Usage</h2> <p>Use the affix plugin via data attributes or manually with your own JavaScript. <strong>In both situations, you must provide CSS for the positioning of your content.</strong></p> <h3>Positioning via CSS</h3> <p>The affix plugin toggles between three classes, each representing a particular state: <code>.affix</code>, <code>.affix-top</code>, and <code>.affix-bottom</code>. You must provide the styles for these classes yourself (independent of this plugin) to handle the actual positions.</p> <p>Here's how the affix plugin works:</p> <ol> <li>To start, the plugin adds <code>.affix-top</code> to indicate the element is in its top-most position. At this point no CSS positioning is required.</li> <li>Scrolling past the element you want affixed should trigger the actual affixing. This is where <code>.affix</code> replaces <code>.affix-top</code> and sets <code>position: fixed;</code> (provided by Bootstrap's code CSS).</li> <li>If a bottom offset is defined, scrolling past that should replace <code>.affix</code> with <code>.affix-bottom</code>. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add <code>position: absolute;</code> when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.</li> </ol> <p>Follow the above steps to set your CSS for either of the usage options below.</p> <h3>Via data attributes</h3> <p>To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Use offsets to define when to toggle the pinning of an element.</p> <div class="highlight"><pre><code class="html"><span class="nt">&lt;div</span> <span class="na">data-spy=</span><span class="s">&quot;affix&quot;</span> <span class="na">data-offset-top=</span><span class="s">&quot;60&quot;</span> <span class="na">data-offset-bottom=</span><span class="s">&quot;200&quot;</span><span class="nt">&gt;</span> <span class="nt">&lt;/div&gt;</span> </code></pre></div> <h3>Via JavaScript</h3> <p>Call the affix plugin via JavaScript:</p> <div class="highlight"><pre><code class="js"> <span class="nx">$</span><span class="p">(</span><span class="s1">&#39;#my-affix&#39;</span><span class="p">).</span><span class="nx">affix</span><span class="p">({</span> <span class="nx">offset</span><span class="o">:</span> <span class="p">{</span> <span class="nx">top</span><span class="o">:</span> <span class="mi">100</span> <span class="p">,</span> <span class="nx">bottom</span><span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bottom</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="s1">&#39;.footer&#39;</span><span class="p">).</span><span class="nx">outerHeight</span><span class="p">(</span><span class="kc">true</span><span class="p">))</span> <span class="p">}</span> <span class="p">}</span> <span class="p">})</span> </code></pre></div> <h3>Options</h3> <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p> <div class="table-responsive"> <table class="table table-bordered table-striped"> <thead> <tr> <th style="width: 100px;">Name</th> <th style="width: 100px;">type</th> <th style="width: 50px;">default</th> <th>description</th> </tr> </thead> <tbody> <tr> <td>offset</td> <td>number | function | object</td> <td>10</td> <td>Pixels to offset from screen when calculating position of scroll. If a single number is provided, the offset will be applied in both top and bottom directions. To provide a unique, bottom and top offset just provide an object <code>offset: { top: 10 }</code> or <code>offset: { top: 10, bottom: 5 }</code>. Use a function when you need to dynamically calculate an offset.</td> </tr> </tbody> </table> </div><!-- /.table-responsive --> <h3>Events</h3> <p>Bootstrap's affix class exposes a few events for hooking into affix functionality.</p> <div class="table-responsive"> <table class="table table-bordered table-striped"> <thead> <tr> <th style="width: 150px;">Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>affix.bs.affix</td> <td>This event fires immediately before the element has been affixed.</td> </tr> <tr> <td>affixed.bs.affix</td> <td>This event is fired after the element has been affixed.</td> </tr> <tr> <td>affix-top.bs.affix</td> <td>This event fires immediately before the element has been affixed-top.</td> </tr> <tr> <td>affixed-top.bs.affix</td> <td>This event is fired after the element has been affixed-top.</td> </tr> <tr> <td>affix-bottom.bs.affix</td> <td>This event fires immediately before the element has been affixed-bottom.</td> </tr> <tr> <td>affixed-bottom.bs.affix</td> <td>This event is fired after the element has been affixed-bottom.</td> </tr> </tbody> </table> </div><!-- /.table-responsive --> </div> </div> </div> <div class="container"> <nav class="navbar navbar-inverse navbar-fixed-bottom"> <div class="navbar-inner <API key>"> <p> <div class="col-xs-1 col-sm-1 "><a href="/tour/javascript/carousel.html" class="btn btn-default"><i class="fa fa-angle-left"></i></a></div> <div class="col-xs-10 col-sm-3"> <p class="text-center navbar-text">&copy;2013-2016, Joseph Guadagno</p> </div> <div class="hidden-xs col-sm-3"> <a class="text-center navbar-text" href="http: </div> <div class="hidden-xs col-sm-2"> <a class="text-center navbar-text" href="http: </div> <div class="hidden-xs col-sm-2"> <p class="text-center navbar-text"><span id="width"></span> x <span id="height"></span></p> </div> <div class="col-xs-1 col-sm-1"><a href="/about.html" class="btn btn-default pull-right"><i class="fa fa-angle-right"></i></a></div> </p> </div> </nav> </div> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="/js/jquery-1.11.1.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="/js/bootstrap.min.js"></script> <script src="/js/jquery.cookie.js"></script> <script src="/js/jquery.<API key>.js"></script> <script src="/js/site.js"></script> </body> </html>
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import logging import unittest import epitran logger = logging.getLogger('epitran') def map_slice(xs, start, end): return [x[start:end] for x in xs] def assemble_ipa(xs): return ''.join([x[3] for x in xs]) class TestFrench(unittest.TestCase): def setUp(self): self.epi = epitran.Epitran('fra-Latn') def _derivation(self, orth, correct): logger.debug(orth.encode('utf-8')) attempt = self.epi.transliterate(orth) logger.debug('{} ?= {}'.format(attempt, correct).encode('utf-8')) self.assertEqual(attempt, correct) def test_suggerer(self): self._derivation('suggérer', 'syɡʒeʀe') def test_garcon(self): self._derivation('garçon', 'ɡaʀsɔ̃') def test_deux(self): self._derivation('deux', 'dœ') def test_coup(self): self._derivation('coup', 'ku') def test_oui(self): self._derivation('oui', 'wi') def test_xylophone(self): self._derivation('xylophone', 'ɡzilɔfɔn') def test_expansion(self): self._derivation('expansion', 'ɛkspɑ̃sjɔ̃') def test_saint(self): self._derivation('saint', 'sɛ̃') def test_seing(self): self._derivation('seing', 'sɛ̃') def test_ceins(self): self._derivation('ceins', 'sɛ̃') def test_il_ils(self): self._derivation('il', 'il') self._derivation('ils', 'il') def test_fusil(self): self._derivation('fusil', 'fyzi') self._derivation('fusils', 'fyzi') def test_oef(self): self._derivation('œuf', 'œf') self._derivation('œufs', 'œf') def test_decret(self): self._derivation('décret', 'dekʀɛ') self._derivation('décrets', 'dekʀɛ') def test_loi(self): self._derivation('loi', 'lwa') self._derivation('lois', 'lwa') def test_dame(self): self._derivation('dame', 'dam') self._derivation('dames', 'dam') def test_faite(self): self._derivation('fait', 'fɛ') self._derivation('faits', 'fɛ') self._derivation('faites', 'fɛt') def test_homme(self): self._derivation('homme', 'ɔm') self._derivation('hommes', 'ɔm') def test_personne(self): self._derivation('personne', 'pɛʀsɔn') self._derivation('personnes', 'pɛʀsɔn')
# The set of languages for which implicit dependencies are needed: SET(<API key> "CXX" ) # The set of files for implicit dependencies of each language: SET(<API key> "/home/cmeon/SimplexLP/eigen/unsupported/test/gmres.cpp" "/home/cmeon/SimplexLP/lib/unsupported/test/CMakeFiles/gmres_1.dir/gmres.cpp.o" ) SET(<API key> "GNU") # Targets to which this target links. SET(<API key> ) # The include file search paths: SET(<API key> "unsupported/test" "/home/cmeon/SimplexLP/eigen/unsupported/test" "/home/cmeon/SimplexLP/eigen" "." "/home/cmeon/SimplexLP/eigen/unsupported/test/../../test" "/home/cmeon/SimplexLP/eigen/unsupported/test/../../unsupported" "/home/cmeon/SimplexLP/eigen/unsupported/test/../../Eigen" "unsupported/test/../../test" ) SET(<API key> ${<API key>}) SET(<API key> ${<API key>}) SET(<API key> ${<API key>})
<!doctype html> <html lang = en > <head> <title></title> <meta charset = utf-8 > <meta name = viewport content = 'width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0' > </head> <body> <script src = https://<API key>.github.io/3d-models/code/gallery/gallery.js ></script> </body> </html>
package org.think.ex; class Automobile { } public class ExTemplateHolder<T> { private T data; public ExTemplateHolder(T varData) { this.data = varData; } public void set(T varData) { this.data = varData; } public T get() { return this.data; } public static void main(String[] args) { ExTemplateHolder<Automobile> varHolder = new ExTemplateHolder<Automobile>(new Automobile()); Automobile varMobile = varHolder.get(); } }
<?php namespace Comodojo\Foundation\DataAccess; trait IteratorTrait { /** * Reset the iterator */ public function rewind() { reset($this->data); } /** * Get the current element * * @return mixed */ public function current() { return current($this->data); } /** * Return the current key * * @return string|int */ public function key() { return key($this->data); } /** * Move to next element */ public function next() { return next($this->data); } /** * Check if element is valid (isset) * * @return boolean */ public function valid() { return isset($this->data[$this->key()]); } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>qarith: 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 / extra-dev</a></li> <li class="active"><a href="">8.11.dev / qarith - 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> qarith <small> 8.8.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2020-07-16 03:01:33 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-16 03:01:33 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.11.dev Formal proof management system num 1.3 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.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/qarith&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/QArith&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9~&quot;} ] tags: [ &quot;keyword: Q&quot; &quot;keyword: Arithmetic&quot; &quot;keyword: Rational numbers&quot; &quot;keyword: Setoid&quot; &quot;keyword: Ring&quot; &quot;category: Mathematics/Arithmetic and Number Theory/Rational numbers&quot; &quot;category: Miscellaneous/Extracted Programs/Arithmetic&quot; ] authors: [ &quot;Pierre Letouzey&quot; ] bug-reports: &quot;https://github.com/coq-contribs/qarith/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/qarith.git&quot; synopsis: &quot;A Library for Rational Numbers (QArith)&quot; description: &quot;&quot;&quot; This contribution is a proposition of a library formalizing rational number in Coq.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/qarith/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-qarith.8.8.0 coq.8.11.dev</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.dev). The following dependencies couldn&#39;t be met: - coq-qarith -&gt; coq &lt; 8.9~ -&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-qarith.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>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>domain-theory: 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.9.1 / domain-theory - 8.6.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> domain-theory <small> 8.6.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-12-23 15:45:32 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-23 15:45:32 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 1 Virtual package relying on perl coq 8.9.1 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 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/domain-theory&quot; 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/DomainTheory&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.7~&quot;} ] tags: [ &quot;keyword: Concrete Domains&quot; &quot;category: Computer Science/Lambda Calculi&quot; ] authors: [ &quot;Gilles Kahn&quot; ] bug-reports: &quot;https://github.com/coq-contribs/domain-theory/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/domain-theory.git&quot; synopsis: &quot;Elements of Domain Theory&quot; description: &quot;&quot;&quot; Domain theory as devised by Scott and Plotkin and following Kahn and Plotkin paper on Concrete Domains&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/domain-theory/archive/v8.6.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-domain-theory.8.6.0 coq.8.9.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.9.1). The following dependencies couldn&#39;t be met: - coq-domain-theory -&gt; coq &lt; 8.7~ -&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-domain-theory.8.6.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>
package goflow //XML type EndModel struct { NodeModel } func (p *EndModel) Exec(execution *Execution) { engine := execution.Engine order := execution.Order tasks := <API key>(order.Id) for _, task := range tasks { CompleteTask(task.Id, string(ER_AUTO), nil) } CompleteOrder(order.Id) if order.ParentId != "" { parentOrder := &Order{} if parentOrder.GetOrderById(order.ParentId) { process := engine.GetProcessById(parentOrder.ProcessId) processModel := process.Model spm := processModel.GetNode(order.ParentNodeName).(*SubProcessModel) newExecution := &Execution{ Engine: engine, Process: process, Order: parentOrder, Args: execution.Args, ChildOrderId: order.Id, Task: execution.Task, } spm.Execute(newExecution) execution.Tasks = append(execution.Tasks, newExecution.Tasks...) } } }
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security; using Provider.Models; namespace Provider { public class EmailService : <API key> { public Task SendAsync(IdentityMessage message) { // Plug in your email service here to send an email. return Task.FromResult(0); } } public class SmsService : <API key> { public Task SendAsync(IdentityMessage message) { // Plug in your SMS service here to send a text message. return Task.FromResult(0); } } // Configure the application user manager used in this application. UserManager is defined in ASP.NET Identity and is used by the application. public class <API key> : UserManager<ApplicationUser> { public <API key>(IUserStore<ApplicationUser> store) : base(store) { } public static <API key> Create(<API key><<API key>> options, IOwinContext context) { var manager = new <API key>(new UserStore<ApplicationUser>(context.Get<<API key>>())); // Configure validation logic for usernames manager.UserValidator = new UserValidator<ApplicationUser>(manager) { <API key> = false, RequireUniqueEmail = true }; // Configure validation logic for passwords manager.PasswordValidator = new PasswordValidator { //RequiredLength = 6, //<API key> = true, //RequireDigit = true, //RequireLowercase = true, //RequireUppercase = true, }; // Configure user lockout defaults manager.<API key> = true; manager.<API key> = TimeSpan.FromMinutes(5); manager.<API key> = 5; // Register two factor authentication providers. This application uses Phone and Emails as a step of receiving a code for verifying the user // You can write your own provider and plug it in here. manager.<API key>("Phone Code", new <API key><ApplicationUser> { MessageFormat = "Your security code is {0}" }); manager.<API key>("Email Code", new EmailTokenProvider<ApplicationUser> { Subject = "Security Code", BodyFormat = "Your security code is {0}" }); manager.EmailService = new EmailService(); manager.SmsService = new SmsService(); var <API key> = options.<API key>; if (<API key> != null) { manager.UserTokenProvider = new <API key><ApplicationUser>(<API key>.Create("ASP.NET Identity")); } return manager; } } // Configure the application sign-in manager which is used in this application. public class <API key> : SignInManager<ApplicationUser, string> { public <API key>(<API key> userManager, I<API key> <API key>) : base(userManager, <API key>) { } public override Task<ClaimsIdentity> <API key>(ApplicationUser user) { return user.<API key>((<API key>)UserManager); } public static <API key> Create(<API key><<API key>> options, IOwinContext context) { return new <API key>(context.GetUserManager<<API key>>(), context.Authentication); } } }
// std import { URL } from 'url'; import * as fetch from 'node-fetch'; // FoalTS import { AbstractProvider, SocialTokens } from './abstract-provider.service'; import { UserInfoError } from './user-info.error'; export interface <API key> { projection?: string; fields?: string[]; } /** * LinkedIn social provider. * * @export * @class LinkedInProvider * @extends {AbstractProvider<never, <API key>>} */ export class LinkedInProvider extends AbstractProvider<never, <API key>> { protected configPaths = { clientId: 'settings.social.linkedin.clientId', clientSecret: 'settings.social.linkedin.clientSecret', redirectUri: 'settings.social.linkedin.redirectUri', }; protected authEndpoint = 'https: protected tokenEndpoint = 'https: protected userInfoEndpoint = 'https://api.linkedin.com/v2/me'; protected defaultScopes: string[] = [ 'r_liteprofile' ]; async <API key>(tokens: SocialTokens, params: <API key> = {}) { const url = new URL(this.userInfoEndpoint); if (params.projection) { url.searchParams.set('projection', params.projection); } if (params.fields) { url.searchParams.set('fields', params.fields.join(',')); } const response = await fetch(url.href, { headers: { Authorization: `Bearer ${tokens.access_token}` } }); const body = await response.json(); if (!response.ok) { throw new UserInfoError(body); } return body; } }
#pragma once #include "config.h" class JsonConfig : public Config { public: explicit JsonConfig(const std::string& file_path); inline bool Valid() const override { return valid_; } private: bool valid_{false}; };
package top.cardone.func.v1.usercenter.department; import com.google.common.base.Charsets; import com.google.common.collect.Maps; import com.google.gson.Gson; import top.cardone.ConsumerApplication; import lombok.extern.log4j.Log4j2; import lombok.val; import org.apache.commons.io.FileUtils; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.core.io.Resource; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.test.context.junit4.<API key>; import org.springframework.util.CollectionUtils; import top.cardone.context.<API key>; import java.util.Map; @Log4j2 @RunWith(<API key>.class) @SpringBootTest(classes = ConsumerApplication.class, value = {"spring.profiles.active=test"}, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) public class M0001FuncTest { @Value("http://localhost:${server.port:8765}${server.servlet.context-path:}/v1/usercenter/department/m0001.json") private String funcUrl; @Value("file:src/test/resources/top/cardone/func/v1/usercenter/department/M0001FuncTest.func.input.json") private Resource funcInputResource; @Value("file:src/test/resources/top/cardone/func/v1/usercenter/department/M0001FuncTest.func.output.json") private Resource funcOutputResource; @Test public void func() throws Exception { if (!funcInputResource.exists()) { FileUtils.write(funcInputResource.getFile(), "{}", Charsets.UTF_8); } val input = FileUtils.readFileToString(funcInputResource.getFile(), Charsets.UTF_8); Map<String, Object> parametersMap = <API key>.getBean(Gson.class).fromJson(input, Map.class); Assert.assertFalse("", CollectionUtils.isEmpty(parametersMap)); Map<String, Object> output = Maps.newLinkedHashMap(); for (val parametersEntry : parametersMap.entrySet()) { val body = <API key>.getBean(Gson.class).toJson(parametersEntry.getValue()); val headers = new HttpHeaders(); headers.setContentType(MediaType.<API key>); headers.set("Accept", MediaType.<API key>); headers.set("<API key>", parametersEntry.getKey().split(":")[0]); headers.set("token", <API key>.getBean(org.apache.shiro.authc.credential.PasswordService.class).encryptPassword(headers.get("<API key>").get(0))); val httpEntity = new HttpEntity<>(body, headers); val json = new org.springframework.boot.test.web.client.TestRestTemplate().postForObject(funcUrl, httpEntity, String.class); val value = <API key>.getBean(Gson.class).fromJson(json, Map.class); output.put(parametersEntry.getKey(), value); } FileUtils.write(funcOutputResource.getFile(), <API key>.getBean(Gson.class).toJson(output), Charsets.UTF_8); } }
[2016-02-24][] [bouzuya/rally-rxjs][] rally-rxjs [bouzuya/vdom-rxjs-ssr][] - spot create - spot detail - spot list - stamp-rally create - stamp-rally detail 0.1.0 tag subject request / response route action 0.2.0 Subject framework [2016-02-24]: https://blog.bouzuya.net/2016/02/24/ [bouzuya/rally-rxjs]: https://github.com/bouzuya/rally-rxjs [bouzuya/vdom-rxjs-ssr]: https://github.com/bouzuya/vdom-rxjs-ssr
#ifdef SQUIRREL_SP #define <API key> #include <windows.h> #include <locale.h> #include <tchar.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #if defined(_MSC_VER) && defined(_DEBUG) #include <crtdbg.h> #include <conio.h> #endif #include <squirrel.h> #include <sqstdblob.h> #include <sqstdsystem.h> #include <sqstdio.h> #include <sqstdmath.h> #include <sqstdstring.h> #include <sqstdaux.h> #ifdef SQUNICODE #define scfprintf fwprintf #define scvprintf vfwprintf #else #define scfprintf fprintf #define scvprintf vfprintf #endif void PrintVersionInfos(); #if defined(_MSC_VER) && defined(_DEBUG) int MemAllocHook( int allocType, void *userData, size_t size, int blockType, long requestNumber, const unsigned char *filename, int lineNumber) { //if(requestNumber==769)_asm int 3; return 1; } #endif SQInteger quit(HSQUIRRELVM v) { int *done; sq_getuserpointer(v,-1,(SQUserPointer*)&done); *done=1; return 0; } void printfunc(HSQUIRRELVM SQ_UNUSED_ARG(v),const SQChar *s,...) { va_list vl; va_start(vl, s); scvprintf(stdout, s, vl); va_end(vl); (void)v; /* UNUSED */ } void errorfunc(HSQUIRRELVM SQ_UNUSED_ARG(v),const SQChar *s,...) { va_list vl; va_start(vl, s); scvprintf(stderr, s, vl); va_end(vl); } void PrintVersionInfos() { scfprintf(stdout,_SC("%s %s (%d bits)\n"),SQUIRREL_VERSION,SQUIRREL_COPYRIGHT,((int)(sizeof(SQInteger)*8))); } void PrintUsage() { scfprintf(stderr,_SC("usage: sq <options> <scriptpath [args]>.\n") _SC("Available options are:\n") _SC(" -c compiles the file to bytecode(default output 'out.cnut')\n") _SC(" -o specifies output file for the -c option\n") _SC(" -c compiles only\n") _SC(" -d generates debug infos\n") _SC(" -v displays version infos\n") _SC(" -h prints help\n")); } #define _INTERACTIVE 0 #define _DONE 2 #define _ERROR 3 //<<FIXME>> this func is a mess #ifdef SQUIRREL_SP int getargs(HSQUIRRELVM v,int argc, SQChar* argv[],SQInteger *retval) #else int getargs(HSQUIRRELVM v,int argc, char* argv[],SQInteger *retval) #endif { int i; int compiles_only = 0; #ifdef SQUNICODE static SQChar temp[500]; #endif #ifdef SQUIRREL_SP SQChar * output = NULL; #else char * output = NULL; #endif *retval = 0; if(argc>1) { int arg=1,exitloop=0; while(arg < argc && !exitloop) { if(argv[arg][0]=='-') { switch(argv[arg][1]) { case 'd': //DEBUG(debug infos) sq_enabledebuginfo(v,1); break; case 'c': compiles_only = 1; break; case 'o': if(arg < argc) { arg++; output = argv[arg]; } break; case 'v': PrintVersionInfos(); return _DONE; case 'h': PrintVersionInfos(); PrintUsage(); return _DONE; default: PrintVersionInfos(); scprintf(_SC("unknown prameter '-%c'\n"),argv[arg][1]); PrintUsage(); *retval = -1; return _ERROR; } }else break; arg++; } // src file if(arg<argc) { const SQChar *filename=NULL; #ifdef SQUIRREL_SP filename=argv[arg]; #else #ifdef SQUNICODE mbstowcs(temp,argv[arg],strlen(argv[arg])); filename=temp; #else filename=argv[arg]; #endif #endif arg++; //sq_pushstring(v,_SC("ARGS"),-1); //sq_newarray(v,0); //sq_createslot(v,-3); //sq_pop(v,1); if(compiles_only) { if(SQ_SUCCEEDED(sqstd_loadfile(v,filename,SQTrue))){ const SQChar *outfile = _SC("out.cnut"); if(output) { #ifdef SQUIRREL_SP outfile = output; #else #ifdef SQUNICODE int len = (int)(strlen(output)+1); mbstowcs(sq_getscratchpad(v,len*sizeof(SQChar)),output,len); outfile = sq_getscratchpad(v,-1); #else outfile = output; #endif #endif } if(SQ_SUCCEEDED(<API key>(v,outfile))) return _DONE; } } else { //if(SQ_SUCCEEDED(sqstd_dofile(v,filename,SQFalse,SQTrue))) { //return _DONE; if(SQ_SUCCEEDED(sqstd_loadfile(v,filename,SQTrue))) { int callargs = 1; sq_pushroottable(v); for(i=arg;i<argc;i++) { const SQChar *a; #ifdef SQUIRREL_SP a=argv[i]; #else #ifdef SQUNICODE int alen=(int)strlen(argv[i]); a=sq_getscratchpad(v,(int)(alen*sizeof(SQChar))); mbstowcs(sq_getscratchpad(v,-1),argv[i],alen); sq_getscratchpad(v,-1)[alen] = _SC('\0'); #else a=argv[i]; #endif #endif sq_pushstring(v,a,-1); callargs++; //sq_arrayappend(v,-2); } if(SQ_SUCCEEDED(sq_call(v,callargs,SQTrue,SQTrue))) { SQObjectType type = sq_gettype(v,-1); if(type == OT_INTEGER) { *retval = type; sq_getinteger(v,-1,retval); } return _DONE; } else{ return _ERROR; } } } //if this point is reached an error occured { const SQChar *err; sq_getlasterror(v); if(SQ_SUCCEEDED(sq_getstring(v,-1,&err))) { scprintf(_SC("Error [%s]\n"),err); *retval = -2; return _ERROR; } } } } return _INTERACTIVE; } void Interactive(HSQUIRRELVM v) { #define MAXINPUT 1024 SQChar buffer[MAXINPUT]; SQInteger blocks =0; SQInteger string=0; SQInteger retval=0; SQInteger done=0; PrintVersionInfos(); sq_pushroottable(v); sq_pushstring(v,_SC("quit"),-1); sq_pushuserpointer(v,&done); sq_newclosure(v,quit,1); sq_setparamscheck(v,1,NULL); sq_newslot(v,-3,SQFalse); sq_pop(v,1); while (!done) { SQInteger i = 0; scprintf(_SC("\nsq>")); for(;;) { int c; if(done)return; c = getchar(); if (c == _SC('\n')) { if (i>0 && buffer[i-1] == _SC('\\')) { buffer[i-1] = _SC('\n'); } else if(blocks==0)break; buffer[i++] = _SC('\n'); } else if (c==_SC('}')) {blocks--; buffer[i++] = (SQChar)c;} else if(c==_SC('{') && !string){ blocks++; buffer[i++] = (SQChar)c; } else if(c==_SC('"') || c==_SC('\'')){ string=!string; buffer[i++] = (SQChar)c; } else if (i >= MAXINPUT-1) { scfprintf(stderr, _SC("sq : input line too long\n")); break; } else{ buffer[i++] = (SQChar)c; } } buffer[i] = _SC('\0'); if(buffer[0]==_SC('=')){ scsprintf(sq_getscratchpad(v,MAXINPUT),(size_t)MAXINPUT,_SC("return (%s)"),&buffer[1]); memcpy(buffer,sq_getscratchpad(v,-1),(scstrlen(sq_getscratchpad(v,-1))+1)*sizeof(SQChar)); retval=1; } i=scstrlen(buffer); if(i>0){ SQInteger oldtop=sq_gettop(v); if(SQ_SUCCEEDED(sq_compilebuffer(v,buffer,i,_SC("interactive console"),SQTrue))){ sq_pushroottable(v); if(SQ_SUCCEEDED(sq_call(v,1,retval,SQTrue)) && retval){ scprintf(_SC("\n")); sq_pushroottable(v); sq_pushstring(v,_SC("print"),-1); sq_get(v,-2); sq_pushroottable(v); sq_push(v,-4); sq_call(v,2,SQFalse,SQTrue); retval=0; scprintf(_SC("\n")); } } sq_settop(v,oldtop); } } } #ifdef SQUIRREL_SP int _tmain(int argc, _TCHAR* argv[]) #else int main(int argc, char* argv[]) #endif { HSQUIRRELVM v; SQInteger retval = 0; #if defined(_MSC_VER) && defined(_DEBUG) _CrtSetAllocHook(MemAllocHook); #endif #ifdef SQUIRREL_SP _tsetlocale(LC_ALL, L""); #endif v=sq_open(1024); sq_setprintfunc(v,printfunc,errorfunc); sq_pushroottable(v); <API key>(v); <API key>(v); <API key>(v); <API key>(v); <API key>(v); //aux library //sets error handlers <API key>(v); //gets arguments switch(getargs(v,argc,argv,&retval)) { case _INTERACTIVE: Interactive(v); break; case _DONE: case _ERROR: default: break; } sq_close(v); #if defined(_MSC_VER) && defined(_DEBUG) _getch(); <API key>( NULL ); #endif return retval; }
[![Build Status](https: [![Go Report](https: ## IoT Sensor Notification System This is a first pass at creating a working end-to-end system that consumes sensor data/events and notifies a user. The intention of this project was to create a platform where a user could be notified upon certain conditions of sensor input data. The sensor processor which would run on something like a Raspberry Pi or Intel Edison would consume sensor data/events and send it to the notification processor over MQTT via a MQTT Broker. The notification processor could either run on a local machine or on the cloud, say on a platform like [Cloud Foundry](http://docs.cloudfoundry.org/concepts/). Architecture ![architecture](docs/architecture.png) Tests ./scripts/test Building the Components Run `./scripts/<API key>` to build the notification processor. Run `./scripts/<API key>` to build the sensor processor. Currently, the sensor processor builds on a linux/amd64 system. This allows the sensor processor binary to work on the Intel Edison and the Raspberry Pi. Wiki The [wiki](https://github.com/wfernandes/IoT/wiki) contains more information regarding process, troubleshooting and setup I did so that I could reference my silliness in the future. Future Work I've been tracking ideas on the [issues page](https://github.com/wfernandes/IoT/issues) and marking what is important to work on.
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_80) on Tue Feb 19 00:14:09 CET 2019 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Package org.slf4j.issue (SLF4J 1.7.26 Test API)</title> <meta name="date" content="2019-02-19"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><! if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Package org.slf4j.issue (SLF4J 1.7.26 Test API)"; } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar_top"> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li class="navBarCell1Rev">Use</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/slf4j/issue/package-use.html" target="_top">Frames</a></li> <li><a href="package-use.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_top"> </a></div> <div class="header"> <h1 title="Uses of Package org.slf4j.issue" class="title">Uses of Package<br>org.slf4j.issue</h1> </div> <div class="contentContainer">No usage of org.slf4j.issue</div> <div class="bottomNav"><a name="navbar_bottom"> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li class="navBarCell1Rev">Use</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/slf4j/issue/package-use.html" target="_top">Frames</a></li> <li><a href="package-use.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_bottom"> </a></div> <p class="legalCopy"><small>Copyright & </body> </html>
import gravity from '../lib/loaders/gravity'; import Partner from './partner'; import PartnerTypeType from './input_fields/partner_type_type'; import { GraphQLString, GraphQLList, GraphQLBoolean, GraphQLInt, GraphQLEnumType, } from 'graphql'; const Partners = { type: new GraphQLList(Partner.type), description: 'A list of Partners', args: { size: { type: GraphQLInt, }, page: { type: GraphQLInt, }, near: { type: GraphQLString, description: 'Coordinates to find partners closest to', }, <API key>: { type: GraphQLBoolean, description: 'Indicates tier 1/2 for gallery, 1 for institution', }, <API key>: { type: GraphQLBoolean, description: 'Indicates tier 3/4 for gallery, 2 for institution', }, <API key>: { type: GraphQLBoolean, description: 'Indicates an active subscription', }, <API key>: { type: GraphQLBoolean, }, has_full_profile: { type: GraphQLBoolean, }, <API key>: { type: GraphQLBoolean, }, sort: { type: new GraphQLEnumType({ name: 'PartnersSortType', values: { CREATED_AT_ASC: { value: 'created_at', }, CREATED_AT_DESC: { value: '-created_at', }, SORTABLE_ID_ASC: { value: 'sortable_id', }, SORTABLE_ID_DESC: { value: '-sortable_id', }, RELATIVE_SIZE_ASC: { value: 'relative_size', }, RELATIVE_SIZE_DESC: { value: '-relative_size', }, PUBLISHED_AT_DESC: { value: '-published_at', }, RANDOM_SCORE_DESC: { value: '-random_score', }, }, }), }, partner_categories: { type: new GraphQLList(GraphQLString), description: ` Only return partners of the specified partner categories. Accepts list of slugs. `, }, type: { type: new GraphQLList(PartnerTypeType), }, term: { type: GraphQLString, description: 'term used for searching Partners', }, }, resolve: (root, options) => gravity('partners', options), }; export default Partners;
# padlock Note: this is a prototype. You may freely use any of the code here, but I can't promise it will work out for you
#/u/GoldenSights import traceback import praw # simple interface to the reddit API, also handles rate limiting of requests import time import sqlite3 '''USER CONFIGURATION''' APP_ID = "" APP_SECRET = "" APP_URI = "" APP_REFRESH = "" USERAGENT = "" #This is a short description of what the bot does. For example "/u/GoldenSights' Newsletter bot" SUBREDDIT = "CopperplateGothic" #This is the sub or list of subs to scan for new posts. For a single sub, use "sub1". For multiple subs, use "sub1+sub2+sub3+...". For all use "all" KEYWORDS = ['Request', 'Submitted', 'Release', 'Concept'] #Any post containing these words will be saved. RSAVE = False #Do you want the bot to save via Reddit Saving? Use True or False (Use capitals! no quotations!) #praw DOES NOT allow comments to be saved. Don't ask me why. This will save the submission the comment is connected to. MAILME = False #Do you want the bot to send you a PM when it gets something? Use True or False (Use capitals! No quotations!) RECIPIENT = "GoldenSights" #If MAILME is set to True, you will need a name for the PM to go to MTITLE = "SubDump automated message" #If MAILME is set to True, you will need the PM to have a subject line. MHEADER = "Comments containing your keywords:" #This is part of the message body, on a line above the list of results. You can set it to "" if you just want the list by itself. SUBDUMP = True #Do you want the bot to dump into a subreddit as posts? Use True or False (Use capitals! No quotations!) DSUB = "GoldTesting" #If SUBDUMP is set to True, you will need to choose a subreddit to submit to. POSTTITLE = "_title_" #This is the title of the post that will go in DSUB #You may use the following injectors to create a dynamic title #_author_ #_subreddit_ #_score_ #_title_ TRUEURL = False #If this is True, the dumped post will point to the URL that the orginal submission used. #If this is False the dumped post will point to the reddit submission permalink MAXPOSTS = 100 #This is how many posts you want to retrieve all at once. PRAW can download 100 at a time. WAIT = 20 #This is how many seconds you will wait between cycles. The bot is completely inactive during this time. '''All done!''' WAITS = str(WAIT) try: import bot USERAGENT = bot.aG except ImportError: pass sql = sqlite3.connect('sql.db') print('Loaded SQL Database') cur = sql.cursor() cur.execute('CREATE TABLE IF NOT EXISTS oldposts(ID TEXT)') print('Loaded Completed table') sql.commit() r = praw.Reddit(USERAGENT) r.set_oauth_app_info(APP_ID, APP_SECRET, APP_URI) r.<API key>(APP_REFRESH) def scansub(): print('Searching '+ SUBREDDIT + '.') subreddit = r.get_subreddit(SUBREDDIT) posts = subreddit.get_new(limit=MAXPOSTS) result = [] authors = [] for post in posts: pid = post.id pbody = post.title.lower() + '\n' + post.selftext.lower() cur.execute('SELECT * FROM oldposts WHERE ID=?', [pid]) if not cur.fetchone(): cur.execute('INSERT INTO oldposts VALUES(?)', [pid]) sql.commit() if post.subreddit.display_name.lower() == DSUB.lower(): continue if KEYWORDS == [] or any(key.lower() in pbody for key in KEYWORDS): try: pauthor = post.author.name print(pid + ', ' + pauthor) if TRUEURL == True: plink = post.url else: plink = post.permalink result.append(plink) authors.append(pauthor + ' in /r/' + post.subreddit.display_name) if RSAVE == True: submission = post.submission submission.save() print('\tSaved submission') if SUBDUMP == True: print('\tDumping to ' + DSUB + '...') newtitle = POSTTITLE newtitle = newtitle.replace('_author_', pauthor) newtitle = newtitle.replace('_subreddit_', post.subreddit.display_name) newtitle = newtitle.replace('_score_', str(post.score) + ' points') newtitle = newtitle.replace('_title_', post.title) if len(newtitle) > 300: newtitle = newtitle[:297] create = r.submit(DSUB, newtitle, url=plink, resubmit=True, captcha = None) print('\tDumped to ' + DSUB + '.') except AttributeError: print(pid + ': Author deleted. Ignoring comment') if len(result) > 0 and MAILME == True: for m in range(len(result)): result[m] = '- [%s](%s)' % (authors[m], result[m]) r.send_message(RECIPIENT, MTITLE, MHEADER + '\n\n' + '\n\n'.join(result), captcha=None) print('Mailed ' + RECIPIENT) while True: try: scansub() except Exception as e: traceback.print_exc() print('Running again in ' + WAITS + ' seconds \n') sql.commit() time.sleep(WAIT)
package connect.ui.activity.chat.bean; import java.io.Serializable; public class GroupExt1Bean implements Serializable{ private String avatar; private String groupname; private String groupidentifier; private String inviteToken; public String getAvatar() { return avatar; } public void setAvatar(String avatar) { this.avatar = avatar; } public String getGroupname() { return groupname; } public void setGroupname(String groupname) { this.groupname = groupname; } public String getGroupidentifier() { return groupidentifier; } public void setGroupidentifier(String groupidentifier) { this.groupidentifier = groupidentifier; } public void setInviteToken(String inviteToken) { this.inviteToken = inviteToken; } public String getInviteToken() { return inviteToken; } }
**Insanity** **School** enchantment (compulsion) [mind-affecting]; **Level** sorcerer/wizard 7 **Casting Time** 1 standard action **Components** V, S **Range** medium (100 ft. + 10 ft./level) **Target** one living creature **Duration** instantaneous **Saving Throw** [Will](../combat#_will) negates; **[Spell Resistance](../glossary#_spell-resistance)** yes The affected creature suffers from a continuous _confusion _effect, as the spell. _ [Remove curse](removeCurse#_remove-curse)_ does not remove_ insanity. Greater restoration, [heal](heal#_heal), [limited wish](limitedWish#_limited-wish), [miracle](miracle#_miracle),_ or _ [wish](wish#_wish)_ can restore the creature.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>functions-in-zfc: 13 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.dev / functions-in-zfc - 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> functions-in-zfc <small> 8.10.0 <span class="label label-success">13 s </span> </small> </h1> <p> <em><script>document.write(moment("2020-08-11 14:39:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-11 14:39:01 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.dev Formal proof management system num 1.3 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.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/functions-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/FunctionsInZFC&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.11~&quot;} ] tags: [ &quot;keyword: Set Theory&quot; &quot;keyword: Zermelo-Fraenkel&quot; &quot;keyword: functions&quot; &quot;category: Mathematics/Logic/Set theory&quot; &quot;date: April 2001&quot; ] authors: [ &quot;Carlos Simpson &lt;carlos@math.unice.fr&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/functions-in-zfc/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/functions-in-zfc.git&quot; synopsis: &quot;Functions in classical ZFC&quot; description: &quot;&quot;&quot; This mostly repeats Guillaume Alexandre&#39;s contribution `zf&#39;, but in classical logic and with a different proof style. We start with a simple axiomatization of some flavor of ZFC (for example Werner&#39;s implementation of ZFC should provide a model). We develop some very basic things like pairs, functions, and a little bit about natural numbers, following the standard classical path.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/functions-in-zfc/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 <API key>.8.10.0 coq.8.10.dev</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 <API key>.8.10.0 coq.8.10.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>5 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 <API key>.8.10.0 coq.8.10.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>13 s</dd> </dl> <h2>Installation size</h2> <p>Total: 1 M</p> <ul> <li>759 K <code>../ocaml-base-compiler.4.06.1/lib/coq/user-contrib/FunctionsInZFC/Functions_in_ZFC.glob</code></li> <li>180 K <code>../ocaml-base-compiler.4.06.1/lib/coq/user-contrib/FunctionsInZFC/Functions_in_ZFC.vo</code></li> <li>143 K <code>../ocaml-base-compiler.4.06.1/lib/coq/user-contrib/FunctionsInZFC/Functions_in_ZFC.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y <API key>.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>
# Analyze the Errors - 4.4 By Jeff George, 9.30.15, for DBC Phase 0 _Note:_ This file is a copy of the **errors.rb** file created for the assignment. I have reformatted as a markdown file for ease of reading, and edited the content to show both the original code snippets with their errors, and the fixed versions where a fix is possible. Unfortunately, the line numbers were lost in the conversion, so you'll have to trust me on those. I worked on this challenge by myself. I spent 2-3 hours on this challenge, not counting reformatting it for this file. ## Errors # Error #1 **Original code with error** ruby "Screw you guys " + "I'm going home." = cartmans_phrase (This error was analyzed in the README file.) _1. What is the name of the file with the error?_ error.rb _2. What is the line number where the error occurs?_ Line 8 _3. What is the type of error message?_ Syntax error. _4. What additional information does the interpreter provide about this type of error?_ unexpected '=', expecting end-of-input _5. Where is the error in the code?_ The message indicates the error is at the **=** in: "I'm going home." = cartmans_phrase _6. Why did the interpreter give you this error?_ The code is attempting to assign the variable by putting the expression first, and then the variable; in Ruby (and most languages) the variable must come before the assignment operator, and the value or expression after. The correct version would be: ruby cartmans_phrase = "Screw you guys " + "I'm going home." ## Error #2 **Original code with error** ruby def cartman_hates(thing) while true puts "What's there to hate about #{thing}?" end _Note: This is a tricky error. The line number may throw you off._ _1. What is the name of the file with the error?_ errors.rb _2. What is the line number where the error occurs?_ The error message _said_ the error was at the end of the file (line 194), but the problem was _actually_ in the method definition, at line 40. _3. What is the type of error message?_ Syntax error _4. What additional information does the interpreter provide about this type of error?_ unexpected end-of-input, expecting keyword_end _5. Where is the error in the code?_ The program reached line 194, the end of the file, without ever finding the keyword **end** that it was expecting. _6. Why did the interpreter give you this error?_ The keyword **end** was missing from the **while** block, but ruby interpreted the **end** on the next line - intended to close the method definition - as the termination of the **while** loop. This left the definition without an **end**, so ruby assumed that the entire rest of the program was part of that definition! **Code with error corrected** ruby def cartman_hates(thing) while true puts "What's there to hate about #{thing}?" end end ## Error #3 ruby south_park _1. What is the line number where the error occurs?_ 65 _2. What is the type of error message?_ Name error _3. What additional information does the interpreter provide about this type of error?_ in `<main>': undefined local variable or method `south_park' for main:Object _4. Where is the error in the code?_ Ruby didn't give the purple caret indicator this time, but it identifies **south_park** as the undefined variable. _5. Why did the interpreter give you this error?_ The variable **south_park** had no value assigned to it. All local variables must be assigned a value (even if that value is nil) when they are created. **Code with error corrected** ruby south_park = nil ## Error #4 **Original code with error** ruby cartman() _1. What is the line number where the error occurs?_ 84 _2. What is the type of error message?_ No method error _3. What additional information does the interpreter provide about this type of error?_ in \`<main>\': undefined method `cartman' for main:Object _4. Where is the error in the code?_ Again, we got no purple caret on this one, but it does tell us exactly where the problem is: the call to the method **cartman()**. _5. Why did the interpreter give you this error?_ The method **cartman()** is called without having first been defined. **Code with error corrected** ruby # cartman() # To fix this error, I'd have needed to define the **cartman()** method. # Since I have no idea what it was intended to do, # my only workable option was to comment it out. ## Error #5 **Original code with error** ruby def cartmans_phrase puts "I'm not fat; I'm big-boned!" end cartmans_phrase('I hate Kyle') _1. What is the line number where the error occurs?_ 104 _2. What is the type of error message?_ Argument error _3. What additional information does the interpreter provide about this type of error?_ * in `cartmans_phrase': wrong number of arguments (1 for 0) * from errors.rb:108:in `\<main\>' _4. Where is the error in the code?_ No caret, but ruby tells us where to look: the call to **cartmans_phrase** on line 108. _5. Why did the interpreter give you this error?_ The call to **cartmans_phrase** passes an argument - a string - when the definition of the method does not call for or use any arguments at all. I fixed it by commenting out the argument passed with the method call on line 108. **Code with error corrected** ruby def cartmans_phrase puts "I'm not fat; I'm big-boned!" end cartmans_phrase #('I hate Kyle') # Commented out the argument to correct error ## Error #6 **Original code with error** ruby def cartman_says(offensive_message) puts offensive_message end cartman_says _1. What is the line number where the error occurs?_ 127 _2. What is the type of error message?_ Argument error _3. What additional information does the interpreter provide about this type of error?_ * in `cartman_says': wrong number of arguments (0 for 1) * from errors.rb:131:in `\<main\>' _4. Where is the error in the code?_ The error message tells us to look at line 131, where the call to **cartman_says** is made. _5. Why did the interpreter give you this error?_ The code called the method **cartman_says** without passing it an argument. The method definition calls for an argument, a string, to tell it what to **puts**. I fixed it by adding a string as an argument to the method call. **Code with error corrected** ruby def cartman_says(offensive_message) puts offensive_message end cartman_says("Respect my authoritay!") ## Error #7 **Original code containing error** ruby def cartmans_lie(lie, name) puts "#{lie}, #{name}!" end cartmans_lie('A meteor the size of the earth is about to hit Wyoming!') _1. What is the line number where the error occurs?_ 153 _2. What is the type of error message?_ Argument error _3. What additional information does the interpreter provide about this type of error?_ * in `cartmans_lie': wrong number of arguments (1 for 2) * from errors.rb:157:in `\<main\>' _4. Where is the error in the code?_ On line 157, we have a call to **cartmans_lie** with the wrong number of arguments. _5. Why did the interpreter give you this error?_ The definition of **cartmans_lie** specifies two parameters, but the call on line 157 only provides one argument. I fixed it by adding a string as a second argument. **Code with error corrected** ruby def cartmans_lie(lie, name) puts "#{lie}, #{name}!" end cartmans_lie('A meteor the size of the earth is about to hit Wyoming!', 'Butters') ## Error #8 **Original code containing error** ruby 5 * "Respect my authoritay!" _1. What is the line number where the error occurs?_ 176 _2. What is the type of error message?_ Type error _3. What additional information does the interpreter provide about this type of error?_ * in `*': String can't be coerced into Fixnum * from errors.rb:176:in `\<main\>' _4. Where is the error in the code?_ This error actually _is_ on line 176, as the error message suggests. _5. Why did the interpreter give you this error?_ The code is attempting to multiply an integer by a string. Because ruby can't convert the string into an integer, it can't evaluate the expression, and therefore throws an error. **Code with error corrected** ruby "Respect my authoritay!" * 5 ## Error #9 **Original code containing error** ruby amount_of_kfc_left = 20/0 _1. What is the line number where the error occurs?_ 196 _2. What is the type of error message?_ Zero division error _3. What additional information does the interpreter provide about this type of error?_ * in `/': divided by 0 (ZeroDivisionError) * from errors.rb:196:in `\<main\>' _4. Where is the error in the code?_ Again, the error is on the line identified by the error message: 196. _5. Why did the interpreter give you this error?_ It is impossible to divide by zero. I infer that the intent was to set **amount_of_kfc_left** to 0 out of 20, so when I fixed the code, I changed it from **20/0** to **0/20**. **Code with error corrected** ruby amount_of_kfc_left = 0/20 ## Error #10 **Original code containing error** ruby require_relative "cartmans_essay.md" _1. What is the line number where the error occurs?_ 216 _2. What is the type of error message?_ Load error _3. What additional information does the interpreter provide about this type of error?_ * in `require_relative': cannot load such file -- /Users/webdevjeff15/dbc-ph0/phase-0/week-4/cartmans_essay.md * from errors.rb:216:in `\<main\>' _4. Where is the error in the code?_ The error actually is on line 216. _5. Why did the interpreter give you this error?_ I am pretty sure that **require_relative** is attempting to load a file, **cartmans_essay.md**, that doesn't exist. I have no way to fix this one, since there is no **cartmans_essay.md** file; the only way to "fix" it is to comment the line out. ## Reflection Questions # Which error was the most difficult to read? These errors were pretty straightforward. Heck, half of them were different versions of the same error: the wrong number of arguments passed to a method. The only one with a semi-tricky error message was actually the first one (not counting the demo), with the missing keyword **end** inside the method definition. The tricky bit was that the error message said the error occured at the end of the file; fortunately, because it was an exercise and not a "real" program, I knew within four lines where the error had to really be. I can imagine that a missing **end** keyword could be much harder to find in a program several hundreds or thousands of lines long. # How did you figure out what the issue with the error was? I could tell from the error message that we were missing **end** somewhere, and I knew from the assignment that it had to be somewhere around the method definition for **cartman_hates**. I checked ruby docs (actually, a pocket reference I have on my desk) for the proper syntax for a **while** block, and confirmed that it needed its own **end**, apart from the **end** that ended the definition. # Were you able to determine why each error message happened based on the code? Well, reading the error message and looking at the code, I was able to work out the problem in each case. I did check references on the **while** statment syntax, and the function of **require_relative**, to help resolve those two errors. # When you encounter errors in your future code, what process will you follow to help you debug? The first step is to read the error message closely, to determine what sort of error I'm dealing with, and to get a clue as to where to look. The line number indicated in the message may be where the error is, or it may just be where an error early in the program actually caused a problem. In either case, I'll compare the code on and around the line number in the error with the information given in the error message, and try to find where and what has gone wrong. If the error isn't right at the indicated line number, I'll check for code that is related to the code that _is_ there...like a call from elsewhere in the code to a method defined at the line indicated in the error message. Once you figure out _where_ the problem is, it's most likely a matter of fixing a syntax or type error, which should be pretty apparent if you are looking at the right spot. (Emphasis on _should_...)
<?php declare(strict_types=1); namespace Doctrine\ODM\MongoDB\Types; use MongoDB\BSON\Binary; use function sprintf; /** * The BinData type for generic data. */ class BinDataType extends Type { protected $binDataType = Binary::TYPE_GENERIC; public function <API key>($value) { if ($value === null) { return null; } if (! $value instanceof Binary) { return new Binary($value, $this->binDataType); } if ($value->getType() !== $this->binDataType) { return new Binary($value->getData(), $this->binDataType); } return $value; } public function convertToPHPValue($value) { return $value !== null ? ($value instanceof Binary ? $value->getData() : $value) : null; } public function closureToMongo() : string { return sprintf('$return = $value !== null ? new \MongoDB\BSON\Binary($value, %d) : null;', $this->binDataType); } public function closureToPHP() : string { return '$return = $value !== null ? ($value instanceof \MongoDB\BSON\Binary ? $value->getData() : $value) : null;'; } }
import * as React from 'react'; // Libs import styled from 'styled-components'; type Props = { disciplines: string[]; }; const Label = styled.span` padding-left: 5px; `; const Root = styled.div` font-size: 12px; `; const ProjectDisciplines: React.FC<Props> = ({ disciplines, rest }: Props): JSX.Element => ( <Root {...rest}> <span> {`Discipline${disciplines.length === 1 ? '' : 's'}: `} {disciplines.map((discipline, index) => ( <Label key={discipline}> {`${discipline}${ index < disciplines.length - 1 ? ', ' : '' }`} </Label> ))} </span> </Root> ); export default ProjectDisciplines;
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq-erasure: 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.2~camlp4 / metacoq-erasure - 1.0~alpha2+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-erasure <small> 1.0~alpha2+8.11 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-02-27 17:05:20 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-27 17:05:20 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 camlp4 4.04+1 Camlp4 is a system for writing extensible parsers for programming languages conf-findutils 1 Virtual package relying on findutils coq 8.5.2~camlp4 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release ocaml-config 1 OCaml Switch Configuration ocamlbuild 0.14.1 OCamlbuild is a build system with builtin rules to easily build most OCaml projects # 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;erasure&quot;] ] install: [ [make &quot;-C&quot; &quot;erasure&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;<API key>&quot; {= version} &quot;coq-metacoq-checker&quot; {= version} &quot;coq-metacoq-pcuic&quot; {= version} &quot;<API key>&quot; {= version} ] synopsis: &quot;Implementation and verification of an erasure procedure for Coq&quot; description: &quot;&quot;&quot; MetaCoq is a meta-programming framework for Coq. The Erasure module provides a complete specification of Coq&#39;s so-called \&quot;extraction\&quot; procedure, starting from the PCUIC calculus and targeting untyped call-by-value lambda-calculus. The `erasure` function translates types and proofs in well-typed terms into a dummy `tBox` constructor, following closely P. Letouzey&#39;s PhD thesis. &quot;&quot;&quot; url { src: &quot;https://github.com/MetaCoq/metacoq/archive/v1.0-alpha2-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-erasure.1.0~alpha2+8.11 coq.8.5.2~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.5.2~camlp4). The following dependencies couldn&#39;t be met: - coq-metacoq-erasure -&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-erasure.1.0~alpha2+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>
#include<cstdio> const int LIMIT=1000000; int wayNum[LIMIT+1]={0,1,2}; int main(){ for(int i=4;i<=LIMIT;i+=2){ wayNum[i-1]=wayNum[i-2]; wayNum[i]=(wayNum[i-2]+wayNum[i/2])%1000000000; } int n; scanf("%d",&n); printf("%d\n",wayNum[n]); return 0; }
package cubicchunks.world.dependency; import cubicchunks.server.ServerCubeCache; import cubicchunks.server.ServerCubeCache.LoadType; import cubicchunks.util.CubeCoords; import cubicchunks.world.cube.Cube; import javax.annotation.Nonnull; import java.util.Collection; import java.util.HashMap; import java.util.Map; /** * The DependencyManager keeps track of Dependents and the cubes they require. When a Dependent is registered, the * DependencyManager retrieves the Dependent's Requirements. It will automatically load required Cubes and notify the * Dependents whenever the state of a RequiredCube changes. * RequiredCubes will not be generated fully, as this would cause an infinite chain of Cubes being loaded. Instead, * Requirements specify the GeneratorStage that they require a cube to be in and the DependencyManager in combination * with the ServerCubeCache and the IGeneratorPipeline will process the Cube up to that stage. If multiple Dependents * require the same Cube, it will be processed up to the latest required stage. */ public class DependencyManager { /** * The ServerCubeCache utilizing this DependencyManager. */ private ServerCubeCache cubeProvider; /** * Contains an instance of RequiredCube for each cube which is currently required by at least one Dependent. */ private Map<CubeCoords, RequiredCube> requiredMap; /** * Creates a new instance of DependencyManager for managing cube dependencies for the given ServerCubeCache. * * @param cubeProvider The ServerCubeCache using this instance. */ public DependencyManager(@Nonnull ServerCubeCache cubeProvider) { this.cubeProvider = cubeProvider; this.requiredMap = new HashMap<>(); } /** * Registers a given Dependent. All of the Cubes it requires will be loaded up to the GeneratorStage it needs them * to be at and it will be notified whenever one of the Cubes it requires advances a stage. * * @param dependent The Dependent to be registered. */ public void register(@Nonnull Dependent dependent) { // If the dependent does not have any requirements, there is nothing left to do here. Collection<Requirement> requirements = dependent.getRequirements(); // Add all of the requirements. for (Requirement requirement : requirements) { // If the required cube is required by other dependents already, retrieve its RequiredCube instance, // otherwise create a new one. RequiredCube requiredCube = this.requiredMap.get(requirement.getCoords()); if (requiredCube == null) { // If the required cube is loaded already, add it to the RequiredCube instance immediately. Cube cube = this.cubeProvider.getCube(requirement.getCoords()); if (cube != null) { requiredCube = new RequiredCube(cube); } // Otherwise create an empty instance. else { requiredCube = new RequiredCube(); } this.requiredMap.put(requirement.getCoords(), requiredCube); } // Make sure the required cube's target stage is correct. else { requiredCube.setTargetStage(requirement.getTargetStage()); } // Add the dependent to the required cubes list of dependents. requiredCube.addDependent(dependent); // If the required cube is loaded, ... if (requiredCube.isAvailable()) { // and it has reached the required target stage, notify the dependent. if (!requiredCube.getCube().isBeforeStage(requirement.getTargetStage())) { dependent.update(this, requiredCube.getCube()); } // If the required cube's current stage precedes the required target stage, load it up to the required // target stage. else if (requiredCube.getCube().getCurrentStage().precedes(requirement.getTargetStage())) { this.cubeProvider.loadCube(requirement.getCoords(), LoadType.LOAD_OR_GENERATE, requirement.getTargetStage()); } } // Otherwise load it. else { this.cubeProvider.loadCube(requirement.getCoords(), LoadType.LOAD_OR_GENERATE, requirement.getTargetStage()); } } } /** * Unregisters a given Dependent. Formerly required Cubes will no longer be protected from being unloaded unless * other Dependents keep them around. The DependentCube will no longer be notified if one of its former * Requirements advances a stage. * * @param dependent The Dependent to be unregistered. */ public void unregister(@Nonnull Dependent dependent) { // Remove all of the requirements. Collection<Requirement> requirements = dependent.getRequirements(); for (Requirement requirement : requirements) { // Get the required cube. RequiredCube requiredCube = this.requiredMap.get(requirement.getCoords()); // Remove the dependent from the required cube's list of dependents. requiredCube.removeDependent(dependent); // If this was the last cube depending on the current required cube, forget about the required cube. if (!requiredCube.isRequired()) { this.requiredMap.remove(requirement.getCoords()); } } } /** * Must be invoked whenever a Cube, has been loaded. Notifies all Dependents of said Cube. * * @param cube The newly loaded Cube. */ public void onLoad(@Nonnull Cube cube) { RequiredCube requiredCube = this.requiredMap.get(cube.getCoords()); if (requiredCube != null) { requiredCube.setCube(cube); requiredCube.updateDependents(this); } } /** * Checks if the Cube at a given set of coordinates is currently required to be loaded. * * @return True iff there exists at least one Dependent requiring the given Cube to remain loaded. */ public boolean isRequired(@Nonnull CubeCoords coords) { RequiredCube requiredCube = this.requiredMap.get(coords); return requiredCube != null && requiredCube.isRequired(); } /** * Must be invoked whenever a Cube advances to a new GeneratorStage. Notifies all Dependents of the Cube. * * @param cube The Cube for which its Dependents will be notified. */ public void updateDependents(@Nonnull Cube cube) { RequiredCube requiredCube = this.requiredMap.get(cube.getCoords()); if (requiredCube != null) { requiredCube.updateDependents(this); } } /** * Returns the total number of Cubes currently being required. * * @return The number of Cubes currently being required to be loaded. */ public int <API key>() { return this.requiredMap.size(); } }
<?php // capture the user input (whatever they put after the filename in Terminal) $user_throw = $argv[1]; // store possiblities in an array $throws[0] = "Rock"; $throws[1] = "Paper"; $throws[2] = "Scissors"; $random_number = rand(0,2); $comp_throw = $throws[$random_number]; if ($user_throw == "Rock") { if ($comp_throw == "Rock") {$winner = "Tie";} if ($comp_throw == "Paper") {$winner = "Computer";} if ($comp_throw == "Scissors") {$winner = "User";} } if ($user_throw == "Paper") { if ($comp_throw == "Rock") {$winner = "User";} if ($comp_throw == "Paper") {$winner = "Tie";} if ($comp_throw == "Scissors") {$winner = "Computer";} } if ($user_throw == "Scissors") { if ($comp_throw == "Rock") {$winner = "Computer";} if ($comp_throw == "Paper") {$winner = "User";} if ($comp_throw == "Scissors") {$winner = "Tie";} } // ECHO STUFF echo "\n\n\n\n"; echo "The user threw $user_throw and the Computer threw $comp_throw"; echo "\n\n\n\n"; if ($winner !== "Tie") {echo ("The winner is $winner");} else {echo "It was a tie.";} echo "\n\n\n\n"; ?>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>monae: 9 m 33 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.15.0 / monae - 0.4</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> monae <small> 0.4 <span class="label label-success">9 m 33 s </span> </small> </h1> <p> <em><script>document.write(moment("2022-03-09 10:04:44 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-09 10:04: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 conf-gmp 4 Virtual package relying on a GMP lib system installation coq 8.15.0 Formal proof management system dune 3.0.3 Fast, portable, and opinionated build system 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.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;Reynald Affeldt &lt;reynald.affeldt@aist.go.jp&gt;&quot; homepage: &quot;https://github.com/affeldt-aist/monae&quot; dev-repo: &quot;git+https://github.com/affeldt-aist/monae.git&quot; bug-reports: &quot;https://github.com/affeldt-aist/monae/issues&quot; license: &quot;LGPL-2.1-or-later&quot; synopsis: &quot;Monads and equational reasoning in Coq&quot; description: &quot;&quot;&quot; This Coq library contains a hierarchy of monads with their laws used in several examples of monadic equational reasoning.&quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot; ] install: [make &quot;install_full&quot;] depends: [ &quot;coq&quot; { (&gt;= &quot;8.13&quot; &amp; &lt; &quot;8.16~&quot;) | (= &quot;dev&quot;) } &quot;<API key>&quot; { (&gt;= &quot;1.13.0&quot; &amp; &lt; &quot;1.15~&quot;) | (= &quot;dev&quot;) } &quot;<API key>&quot; { (&gt;= &quot;1.13.0&quot; &amp; &lt; &quot;1.15~&quot;) | (= &quot;dev&quot;) } &quot;<API key>&quot; { (&gt;= &quot;1.13.0&quot; &amp; &lt; &quot;1.15~&quot;) | (= &quot;dev&quot;) } &quot;<API key>&quot; { (&gt;= &quot;1.13.0&quot; &amp; &lt; &quot;1.15~&quot;) | (= &quot;dev&quot;) } &quot;coq-mathcomp-field&quot; { (&gt;= &quot;1.13.0&quot; &amp; &lt; &quot;1.15~&quot;) | (= &quot;dev&quot;) } &quot;<API key>&quot; { (&gt;= &quot;0.3.11&quot; &amp; &lt; &quot;0.4~&quot;) } &quot;coq-infotheo&quot; { &gt;= &quot;0.3.5&quot; &amp; &lt; &quot;0.4~&quot;} &quot;coq-paramcoq&quot; { &gt;= &quot;1.1.3&quot; &amp; &lt; &quot;1.2~&quot; } &quot;<API key>&quot; { &gt;= &quot;1.1.0&quot; } ] tags: [ &quot;keyword:monae&quot; &quot;keyword:effects&quot; &quot;keyword:probability&quot; &quot;keyword:nondeterminism&quot; &quot;logpath:monae&quot; &quot;date:2022-02-21&quot; ] authors: [ &quot;Reynald Affeldt&quot; &quot;David Nowak&quot; &quot;Takafumi Saikawa&quot; &quot;Jacques Garrigue&quot; &quot;Ayumu Saito&quot; &quot;Celestine Sauvage&quot; &quot;Kazunari Tanaka&quot; ] url { http: &quot;https://github.com/affeldt-aist/monae/archive/0.4.tar.gz&quot; checksum: &quot;sha512=d6e28034d9ef1010290a8380bfd0c0d4205f3d688785f56c8d5c60f51002482381d48009a6432e99fe2e182aa0c5406a209bce9809c5dce8da60b33dd922c979&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-monae.0.4 coq.8.15.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 coq-monae.0.4 coq.8.15.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>56 m 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-monae.0.4 coq.8.15.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>9 m 33 s</dd> </dl> <h2>Installation size</h2> <p>Total: 20 M</p> <ul> <li>2 M <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/hierarchy.vo</code></li> <li>2 M <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_model.vo</code></li> <li>2 M <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/ihierarchy.vo</code></li> <li>2 M <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/category.vo</code></li> <li>722 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_transformer.vo</code></li> <li>699 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/fail_lib.vo</code></li> <li>595 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_transformer.vo</code></li> <li>485 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_iquicksort.vo</code></li> <li>473 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/smallstep.vo</code></li> <li>382 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/fail_lib.glob</code></li> <li>368 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_model.glob</code></li> <li>360 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_model.vo</code></li> <li>314 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_transformer.glob</code></li> <li>304 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/category.glob</code></li> <li>304 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_model.glob</code></li> <li>303 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/state_lib.vo</code></li> <li>285 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/ihierarchy.glob</code></li> <li>278 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_quicksort.vo</code></li> <li>277 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_monty.glob</code></li> <li>257 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_transformer.glob</code></li> <li>251 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/ifail_lib.glob</code></li> <li>245 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/hierarchy.glob</code></li> <li>232 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_iquicksort.glob</code></li> <li>229 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_monty.vo</code></li> <li>223 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/ifail_lib.vo</code></li> <li>200 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/gcm_model.vo</code></li> <li>196 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/state_lib.glob</code></li> <li>187 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/proba_lib.glob</code></li> <li>184 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/category_ext.vo</code></li> <li>182 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/proba_lib.vo</code></li> <li>175 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/istate_lib.vo</code></li> <li>175 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/ifmt_lifting.glob</code></li> <li>166 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_nqueens.glob</code></li> <li>164 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_lib.vo</code></li> <li>164 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_nqueens.vo</code></li> <li>160 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_lib.glob</code></li> <li>149 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/smallstep.glob</code></li> <li>142 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_composition.vo</code></li> <li>138 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/istate_lib.glob</code></li> <li>130 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_lib.glob</code></li> <li>128 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/ifmt_lifting.vo</code></li> <li>124 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/altprob_model.vo</code></li> <li>122 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/gcm_model.glob</code></li> <li>121 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_lib.vo</code></li> <li>120 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_composition.glob</code></li> <li>111 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_composition.vo</code></li> <li>109 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/array_lib.vo</code></li> <li>102 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_spark.glob</code></li> <li>100 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/category_ext.glob</code></li> <li>93 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_relabeling.vo</code></li> <li>93 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_composition.glob</code></li> <li>87 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_spark.vo</code></li> <li>86 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_quicksort.glob</code></li> <li>74 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_transformer.vo</code></li> <li>72 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_relabeling.glob</code></li> <li>68 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_model.v</code></li> <li>66 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/proba_monad_model.vo</code></li> <li>66 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/trace_lib.vo</code></li> <li>60 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/altprob_model.glob</code></li> <li>57 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/<API key>.vo</code></li> <li>56 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/array_lib.glob</code></li> <li>53 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/fail_lib.v</code></li> <li>52 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/<API key>.vo</code></li> <li>51 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/itrace_lib.vo</code></li> <li>51 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_model.v</code></li> <li>48 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/hierarchy.v</code></li> <li>45 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/<API key>.glob</code></li> <li>44 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/ihierarchy.v</code></li> <li>43 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/category.v</code></li> <li>41 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monae_lib.vo</code></li> <li>40 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_transformer.v</code></li> <li>40 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_transformer.v</code></li> <li>39 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonae_lib.vo</code></li> <li>37 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_transformer.glob</code></li> <li>30 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/<API key>.glob</code></li> <li>30 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/smallstep.v</code></li> <li>30 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/itrace_lib.glob</code></li> <li>29 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/ifail_lib.v</code></li> <li>26 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/gcm_model.v</code></li> <li>26 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonae_lib.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monae_lib.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_iquicksort.v</code></li> <li>25 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/trace_lib.glob</code></li> <li>23 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/state_lib.v</code></li> <li>23 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_lib.v</code></li> <li>23 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_monty.v</code></li> <li>23 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_lib.v</code></li> <li>21 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/ifmt_lifting.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/proba_lib.v</code></li> <li>18 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/proba_monad_model.glob</code></li> <li>18 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_nqueens.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/category_ext.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/istate_lib.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_quicksort.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonad_composition.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monad_composition.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_spark.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/altprob_model.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/array_lib.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_relabeling.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/example_transformer.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/<API key>.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/<API key>.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/monae_lib.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/imonae_lib.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/<API key>/itrace_lib.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/trace_lib.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/monae/proba_monad_model.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-monae.0.4</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>lens: 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+2 / lens - 1.0.1+8.12</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> lens <small> 1.0.1+8.12 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-11-14 19:55:30 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-14 19:55:30 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+2 Formal proof management system num 1.4 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.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; synopsis: &quot;Generation of lenses for record datatypes&quot; maintainer: &quot;gregory@bedrocksystems.com&quot; authors: [ &quot;Gregory Malecha &lt;gregory@bedrocksystems.com&gt;&quot; ] homepage: &quot;https://github.com/bedrocksystems/coq-lens&quot; dev-repo: &quot;git://github.com/bedrocksystems/coq-lens.git&quot; bug-reports: &quot;https://github.com/bedrocksystems/coq-lens/issues&quot; license: &quot;LGPL2.1+BedRock&quot; build: [ [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.12&quot; &amp; &lt; &quot;8.13~&quot;} &quot;<API key>&quot; { = &quot;1.0~beta1+8.12&quot; } ] tags: [ &quot;logpath:Lens&quot; &quot;date: 2020-11-18&quot; ] url { src: &quot;https://github.com/bedrocksystems/coq-lens/archive/v1.0.1.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-lens.1.0.1+8.12 coq.8.7.1+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.7.1+2). The following dependencies couldn&#39;t be met: - coq-lens -&gt; coq &gt;= 8.12 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-lens.1.0.1+8.12</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>zsearch-trees: 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 / zsearch-trees - 8.6.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> zsearch-trees <small> 8.6.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-12-16 13:27:32 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-16 13:27:32 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+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.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/zsearch-trees&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/ZSearchTrees&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.7~&quot;} ] tags: [ &quot;keyword: binary search trees&quot; &quot;category: Computer Science/Data Types and Data Structures&quot; &quot;category: Miscellaneous/Extracted Programs/Data structures&quot; ] authors: [ &quot;Pierre Castéran&quot; ] bug-reports: &quot;https://github.com/coq-contribs/zsearch-trees/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/zsearch-trees.git&quot; synopsis: &quot;Binary Search Trees&quot; description: &quot;Algorithms for collecting, searching, inserting and deleting elements in binary search trees on Z&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/zsearch-trees/archive/v8.6.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-zsearch-trees.8.6.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: - coq-zsearch-trees -&gt; coq &lt; 8.7~ -&gt; ocaml &lt; 4.06.0 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-zsearch-trees.8.6.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>
var injected = injected || (function() { var user = prompt("Enter Your Username", "user1"); var data, jsonArray, url, count=0; var lis = [], jsonlist = []; var i = 0; var Inspector = function() { this.highlight = this.highlight.bind(this); this.log = this.log.bind(this); this.codeOutput = this.codeOutput.bind(this); this.layout = this.layout.bind(this); this.handleResize = this.handleResize.bind(this); this.$target = document.body; this.$cacheEl = document.body; this.$cacheElMain = document.body; this.serializer = new XMLSerializer(); this.forbidden = [this.$cacheEl, document.body, document.documentElement]; }; Inspector.prototype = { getNodes: function() { var path = chrome.extension.getURL("static/template.html"); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState === 4 && xmlhttp.status === 200) { this.template = xmlhttp.responseText; this.createNodes(); this.registerEvents(); } }.bind(this); xmlhttp.open("GET", path, true); xmlhttp.send(); }, createNodes: function() { this.$host = document.createElement('div'); this.$host.className = 'tl-host'; this.$host.style.cssText = 'all: initial;'; var shadow = this.$host.createShadowRoot(); document.body.appendChild(this.$host); var templateMarkup = document.createElement("div"); templateMarkup.innerHTML = this.template; shadow.innerHTML = templateMarkup.querySelector('template').innerHTML; this.$wrap = shadow.querySelector('.tl-wrap'); this.$code = shadow.querySelector('.tl-code'); this.$canvas = shadow.querySelector('#tl-canvas'); this.c = this.$canvas.getContext('2d'); this.width = this.$canvas.width = window.innerWidth; this.height = this.$canvas.height = window.innerHeight; this.highlight(); }, registerEvents: function() { document.addEventListener('mousemove', this.log); document.addEventListener('scroll', this.layout); window.addEventListener('resize', function() { this.handleResize(); this.layout(); }.bind(this)); }, log: function(e) { this.$target = e.target; // check if element cached if (this.forbidden.indexOf(this.$target) !== -1) return; this.stringified = this.serializer.serializeToString(this.$target); data = this.$target; this.codeOutput(); this.$cacheEl = this.$target; this.layout(); }, codeOutput: function() { if (this.$cacheElMain === this.$target) return; this.$cacheElMain = this.$target; var fullCode = this.stringified .slice(0, this.stringified.indexOf('>') + 1) .replace(/ xmlns="[^"]*"/, ''); document.addEventListener('click', handle); function handle() { handler1(); count=count+1; if(count==1) handler2(); } function handler1(e) { //if($(this).) if (event.handled !== true) { lis.push(data); //document.getElementById('absSlide').cssText="right:0"; if (i == 0) { url = lis[0].baseURI; } jsonlist.push(lis[i].innerText); i++; //alert('Exec!'); jsonArray = JSON.parse(JSON.stringify(jsonlist)); // console.log(Date()); // console.log(url); // console.log(user); // console.log(jsonArray); event.handled = true; } return false; } function handler2(e) { console.log(url); $.ajax({ type: 'POST', url: 'https://localhost:5000/api/post/', data: JSON.stringify({ "userid": user, "url": url, "date":Date(), "data": jsonArray }), // or JSON.stringify ({name: 'jonas'}), contentType: "application/json", dataType: 'json' }); } this.$code.innerText = fullCode; // set full element code this.highlight(); // highlight element }, // redraw overlay layout: function() { var box, computedStyle, rect; var c = this.c; rect = this.$target.<API key>(); computedStyle = window.getComputedStyle(this.$target); box = { width: rect.width, height: rect.height, top: rect.top, left: rect.left, margin: { top: computedStyle.marginTop, right: computedStyle.marginRight, bottom: computedStyle.marginBottom, left: computedStyle.marginLeft }, padding: { top: computedStyle.paddingTop, right: computedStyle.paddingRight, bottom: computedStyle.paddingBottom, left: computedStyle.paddingLeft } }; // pluck negatives ['margin', 'padding'].forEach(function(property) { for (var el in box[property]) { var val = parseInt(box[property][el], 10); box[property][el] = Math.max(0, val); } }); c.clearRect(0, 0, this.width, this.height); box.left = Math.floor(box.left) + 1.5; box.width = Math.floor(box.width) - 1; var x, y, width, height; //margin // x = box.left + box.margin.left; // y = box.top + box.margin.top; // width = box.width + box.margin.left + box.margin.right + 50; // height = box.height + box.margin.top + box.margin.bottom + 50; // c.fillStyle = 'rgba(255, 220, 232, 0.5)'; // c.fillRect(x, y, width, height); // padding x = box.left + 2; y = box.top + 3; width = box.width + 3; height = box.height + 3; c.fillStyle = 'rgba(0, 77, 64, 0.8)'; //c.clearRect(x, y, width, height); c.fillRect(x, y, width, height); // content x = box.left; y = box.top + 2; width = box.width + 2; height = box.height + 2; c.fillStyle = 'rgba(0, 150, 136, 0.4)'; c.clearRect(x, y, width, height); c.fillRect(x, y, width, height); }, handleResize: function() { this.width = this.$canvas.width = window.innerWidth; this.height = this.$canvas.height = window.innerHeight; }, // code highlighting highlight: function() { Prism.highlightElement(this.$code); }, activate: function() { this.getNodes(); }, deactivate: function() { this.$wrap.classList.add('-out'); document.removeEventListener('mousemove', this.log); setTimeout(function() { document.body.removeChild(this.$host); }.bind(this), 600); } }; var hi = new Inspector(); chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) { if (request.action === 'activate') { return hi.activate(); } else { lis = []; jsonlist = []; count=0; return hi.deactivate(); } }); return true; })();
#ifndef PROFITCOIN_BLOOM_H #define PROFITCOIN_BLOOM_H #include <vector> #include "uint256.h" #include "serialize.h" class COutPoint; class CTransaction; // 20,000 items with fp rate < 0.1% or 10,000 items and <0.0001% static const unsigned int <API key> = 36000; // bytes static const unsigned int MAX_HASH_FUNCS = 50; // First two bits of nFlags control how much IsRelevantAndUpdate actually updates // The remaining bits are reserved enum bloomflags { BLOOM_UPDATE_NONE = 0, BLOOM_UPDATE_ALL = 1, // Only adds outpoints to the filter if the output is a pay-to-pubkey/pay-to-multisig script <API key> = 2, BLOOM_UPDATE_MASK = 3, }; /** * BloomFilter is a probabilistic filter which SPV clients provide * so that we can filter the transactions we sends them. * * This allows for significantly more efficient transaction and block downloads. * * Because bloom filters are probabilistic, an SPV node can increase the false- * positive rate, making us send them transactions which aren't actually theirs, * allowing clients to trade more bandwidth for more privacy by obfuscating which * keys are owned by them. */ class CBloomFilter { private: std::vector<unsigned char> vData; bool isFull; bool isEmpty; unsigned int nHashFuncs; unsigned int nTweak; unsigned char nFlags; unsigned int Hash(unsigned int nHashNum, const std::vector<unsigned char>& vDataToHash) const; public: // Creates a new bloom filter which will provide the given fp rate when filled with the given number of elements // Note that if the given parameters will result in a filter outside the bounds of the protocol limits, // the filter created will be as close to the given parameters as possible within the protocol limits. // This will apply if nFPRate is very low or nElements is unreasonably high. // nTweak is a constant which is added to the seed value passed to the hash function // It should generally always be a random value (and is largely only exposed for unit testing) // nFlags should be one of the BLOOM_UPDATE_* enums (not _MASK) CBloomFilter(unsigned int nElements, double nFPRate, unsigned int nTweak, unsigned char nFlagsIn); CBloomFilter() : isFull(true) {} IMPLEMENT_SERIALIZE ( READWRITE(vData); READWRITE(nHashFuncs); READWRITE(nTweak); READWRITE(nFlags); ) void insert(const std::vector<unsigned char>& vKey); void insert(const COutPoint& outpoint); void insert(const uint256& hash); bool contains(const std::vector<unsigned char>& vKey) const; bool contains(const COutPoint& outpoint) const; bool contains(const uint256& hash) const; // True if the size is <= <API key> and the number of hash functions is <= MAX_HASH_FUNCS // (catch a filter which was just deserialized which was too big) bool <API key>() const; // Also adds any outputs which match the filter to the filter (to match their spending txes) bool IsRelevantAndUpdate(const CTransaction& tx, const uint256& hash); // Checks for empty and full filters to avoid wasting cpu void UpdateEmptyFull(); }; #endif /* PROFITCOIN_BLOOM_H */
// <API key>.h // <API key> #import <UIKit/UIKit.h> #import "<API key>.h" @interface <API key> : UIViewController{ NSUserDefaults *defaults; <API key> *nc; UIBarButtonItem *revealButtonItem; SAMultisectorSector *sectorX; SAMultisectorSector *sectorY; SAMultisectorSector *sectorZ; int <API key>; int calibAX, calibAY, calibAZ, calibIR; NSArray * sensorPositionArray; } @property (assign, nonatomic) IBOutlet <API key> *xSensor; @property (assign, nonatomic) IBOutlet <API key> *ySensor; @property (assign, nonatomic) IBOutlet <API key> *zSensor; @property (assign, nonatomic) IBOutlet UIImageView *XTL; @property (assign, nonatomic) IBOutlet UIImageView *XTR; @property (assign, nonatomic) IBOutlet UIImageView *YTL; @property (assign, nonatomic) IBOutlet UIImageView *YTR; @property (assign, nonatomic) IBOutlet UIImageView *ZTL; @property (assign, nonatomic) IBOutlet UIImageView *ZTR; @property (assign, nonatomic) IBOutlet UISlider *sIR; @property (assign, nonatomic) IBOutlet UIView *sensorPositionsView; @property (assign, nonatomic) IBOutlet UITableView *<API key>; @property (assign, nonatomic) IBOutlet UITableViewCell *<API key>; - (IBAction)saveCalibrationData:(id)sender; @end
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>geocoq: 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.0 / geocoq - 2.1.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> geocoq <small> 2.1.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-11-05 11:22:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-05 11:22:42 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.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 # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Julien Narboux &lt;julien@narboux.fr&gt;&quot; homepage: &quot;http://geocoq.github.io/GeoCoq/&quot; bug-reports: &quot;https://github.com/GeoCoq/GeoCoq/issues&quot; authors: [&quot;Gabriel Braun &lt;gabriel.braun@unistra.fr&gt;&quot; &quot;Pierre Boutry &lt;pierre.boutry@unistra.fr&gt;&quot; &quot;Charly Gries &lt;Charly.Gries@etu.unistra.fr&gt;&quot; &quot;Julien Narboux &lt;narboux@unistra.fr&gt;&quot;] license: &quot;LGPL 3&quot; build: [ [&quot;./configure.sh&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/GeoCoq&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.4pl4&quot; &amp; &lt; &quot;8.5~beta1&quot;} ] tags: [ &quot;keyword:geometry&quot; &quot;keyword:neutral geometry&quot; &quot;keyword:euclidean geometry&quot; &quot;keyword:foundations&quot; &quot;keyword:Tarski&quot; &quot;keyword:Hilbert&quot; &quot;keyword:Pappus&quot; &quot;keyword:Desargues&quot; &quot;keyword:parallel postulates&quot; &quot;category:Mathematics/Geometry/General&quot; ] synopsis: &quot;A formalization of foundations of geometry in Coq&quot; flags: light-uninstall url { src: &quot;https://github.com/GeoCoq/GeoCoq/archive/v2.1.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-geocoq.2.1.0 coq.8.12.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.12.0). The following dependencies couldn&#39;t be met: - coq-geocoq -&gt; coq &lt; 8.5~beta1 -&gt; ocaml &lt; 4.03.0 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-geocoq.2.1.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>
create table dbo.RecordTypes ( Id tinyint not null , Code varchar(30) not null , Name nvarchar(50) not null , constraint PK_RecordTypes primary key clustered (Id), constraint UQ_RecordTypes_Code unique (Code), constraint UQ_RecordTypes_Name unique (Name), ); GO
// Ecma International makes this code available under the terms and conditions set function testcase() { var accessed = false; function callbackfn(val, idx, obj) { accessed = true; return function () { }; } return [11].every(callbackfn) && accessed; } runTestCase(testcase);
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>algorand: 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.0 / algorand - 1.2</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> algorand <small> 1.2 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-03-02 09:40:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-02 09:40:27 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.0 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.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/runtimeverification/<API key>&quot; dev-repo: &quot;git+https://github.com/runtimeverification/<API key>.git&quot; bug-reports: &quot;https://github.com/runtimeverification/<API key>/issues&quot; license: &quot;NCSA&quot; synopsis: &quot;A verified model of Algorand in Coq&quot; description: &quot;&quot;&quot; The Algorand consensus protocol provides the foundation for a decentralized digital currency and transactions platform. This project provides a model of the protocol in Coq, expressed as a transition system over global states in a message-passing distributed system. Included is a formal proof of safety for the transition system.&quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] depends: [ &quot;coq&quot; {&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.12~&quot;} &quot;<API key>&quot; {&gt;= &quot;1.11&quot; &amp; &lt; &quot;1.12~&quot;} &quot;<API key>&quot; &quot;coq-mathcomp-finmap&quot; {&gt;= &quot;1.5&quot;} &quot;<API key>&quot; {&gt;= &quot;0.3.1&quot; &amp; &lt; &quot;0.3.3~&quot;} &quot;coq-interval&quot; {&gt;= &quot;4.0.0&quot;} &quot;coq-record-update&quot; ] tags: [ &quot;category:Computer Science/Concurrent Systems and Protocols/Theory of concurrent systems&quot; &quot;keyword:distributed algorithms&quot; &quot;keyword:blockchain&quot; &quot;keyword:consensus&quot; &quot;keyword:algorand&quot; &quot;logpath:Algorand&quot; &quot;date:2020-07-24&quot; ] authors: [ &quot;Musab A. Alturki&quot; &quot;Jing Chen&quot; &quot;Victor Luchangco&quot; &quot;Brandon Moore&quot; &quot;Karl Palmskog&quot; &quot;Lucas Peña&quot; &quot;Grigore Rosu&quot; ] url { src: &quot;https://github.com/runtimeverification/<API key>/archive/release-1.2.tar.gz&quot; checksum: &quot;sha512=f687c34da1800db35e7ef5a56e1eae918e016a7c3e5471995317c70de1084771563019e0adb132af1d92914e50b843cca197752bf56a63839e5ccf8feaf3cbd2&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-algorand.1.2 coq.8.12.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.12.0). The following dependencies couldn&#39;t be met: - coq-algorand -&gt; coq &lt; 8.12~ -&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-algorand.1.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>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/11B554a</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 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/11B554a </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>Browscap<br /><small>6014</small><br /><small>vendor/browscap/browscap/tests/fixtures/issues/issue-511.php</small></td><td>Mobile Safari UIWebView 0.0</td><td>WebKit unknown</td><td>iOS 7.0</td><td style="border-left: 1px solid #555">Apple</td><td>iPad</td><td>Tablet</td><td>yes</td><td>yes</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>Browscap result detail</h4> <p><pre><code class="php">Array ( [Comment] => Mobile Safari UIWebView [Browser] => Mobile Safari UIWebView [Browser_Type] => Browser [Browser_Bits] => 32 [Browser_Maker] => Apple Inc [Browser_Modus] => unknown [Version] => 0.0 [MajorVer] => 0 [MinorVer] => 0 [Platform] => iOS [Platform_Version] => 7.0 [<API key>] => iPod, iPhone & iPad [Platform_Bits] => 32 [Platform_Maker] => Apple Inc [Alpha] => [Beta] => [Win16] => [Win32] => [Win64] => [Frames] => 1 [IFrames] => 1 [Tables] => 1 [Cookies] => 1 [BackgroundSounds] => [JavaScript] => 1 [VBScript] => [JavaApplets] => 1 [ActiveXControls] => [isMobileDevice] => 1 [isTablet] => 1 [isSyndicationReader] => [Crawler] => [isFake] => [isAnonymized] => [isModified] => [CssVersion] => 3 [AolVersion] => 0 [Device_Name] => iPad [Device_Maker] => Apple Inc [Device_Type] => Tablet [<API key>] => touchscreen [Device_Code_Name] => iPad [Device_Brand_Name] => Apple [<API key>] => WebKit [<API key>] => unknown [<API key>] => Apple Inc ) </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>Mobile Safari UIWebView </td><td>WebKit </td><td>iOS 7.0</td><td style="border-left: 1px solid #555">Apple</td><td>iPad</td><td>Tablet</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.012</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>BrowscapFull result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(ipad.*cpu os 7.* like mac os x.*\).*applewebkit\/.*\(.*khtml.* like gecko.*\).*mobile.*$/
# Proto REPL Charts Canvas [API Docs](http://jasongilman.github.io/proto-repl-charts/proto-repl-charts.canvas.html) Proto REPL Charts supports building more complex visualizations by drawing on an HTML canvas element embedded within Atom. ## Using this new feature If you're already using Atom and Proto REPL make sure you do the following to take advantage of this feature: - Upgrade to or install the latest version of proto-repl and proto-repl-charts in Atom. - Update your project.clj dependencies: * [![Clojars Project](https: * [![Clojars Project](https: - Restart Atom ## proto-repl-charts.canvas draw Function The draw function is the main interaction point for drawing. It opens a new canvas with the given name or updates an existing canvas with the same name. `draw` is a wrapper over the JavaScript API for the canvas 2d context. High Level API Draw takes a sequence of commands that instruct it what to draw. There are functions in this namespace that return predefined commands to draw simple objects like lines, rectangles, and circles. This code would draw a thick black line over top of an outlined red circle. Clojure (require '[proto-repl-charts.canvas :as c]) (c/draw "Black Line and Red Circle" [(c/clear-rect) (c/stroke-style "red") (c/line-width 1) (c/stroke-circle 200 300 70) (c/stroke-style "black") (c/line-width 5) (c/line 100 200 400 400)]) Low Level API Draw takes the name of the drawing and any of the following: * a command * a sequence of commands (also called a command set) * a sequence of command sets A command is a vector containing the keyword identifying the function to call on the Canvas 2d context along with the arguments that function takes. An example command is `[:fillRect 10 10 100 100]` which is equivalent to the JavaScript `ctx.fillRect(10, 10, 100, 100);` This would draw a filled in rectangle from the upper left point 10,10 that's 100 pixels tall and 100 pixels wide. The following link is a good reference for the functions available on the 2d context: https://developer.mozilla.org/en-US/docs/Web/API/<API key> Example: This code will draw a line from the point 1,1 to 100,100 Clojure (c/draw "Simple Line" [[:beginPath] [:moveTo 1 1] [:lineTo 100 100] [:stroke]]) That's equivalent to this JavaScript code. JavaScript var ctx = canvas.getContext('2d'); ctx.beginPath(); ctx.moveTo(1,1); ctx.lineTo(100,100); ctx.stroke(); Setting Values Setting values on the context can be done via the :set command. `[:set :lineWidth 5]` is equivalent to `ctx.lineWidth = 5;` ## Examples A Stick Figure Clojure (require '[proto-repl-charts.canvas :as c]) (c/draw "person" [(c/clear-rect) (c/stroke-style "red") (c/fill-style "red") ;; Head (c/stroke-circle 300 100 40) ;; Body (c/line 300 140 300 240) ;; right arm (c/line 300 180 350 160) ;; left arm (c/line 300 180 250 160) ;; Right leg (c/line 300 240 350 280) ;; Left leg (c/line 300 240 250 280) ;; Speech bubble (c/font "20px sans-serif") (c/text "Hello World!" 100 100)]) ![Canvas Stick Figure](https://github.com/jasongilman/proto-repl-charts/raw/master/examples/canvas_stick_figure.png) Fractals with Lindenmayer Systems See code in [src/proto_repl_charts/examples/canvas/l_system.clj](https://github.com/jasongilman/proto-repl-charts/blob/master/proto-repl-charts/src/proto_repl_charts/examples/canvas/l_system.clj) # Sierpinski Triangle Clojure (require '[proto-repl-charts.examples.canvas.l-system :as f]) (f/draw-fractal {:canvas-name "sierpinski-triangle" :x 600.0 :y 500.0 :start-direction 180 :start "a" :depth 9 :rules {\a "b-a-b" \b "a+b+a"} :operations {\a #(f/forward % 1) \b #(f/forward % 1) \- #(f/rotate % (Math/toRadians -60.0)) \+ #(f/rotate % (Math/toRadians 60.0))}}) ![Canvas Sierpinski Triangle](https://github.com/jasongilman/proto-repl-charts/raw/master/examples/canvas_sierpinski.png) # Dragon Curve Clojure (require '[proto-repl-charts.examples.canvas.l-system :as f]) (f/draw-fractal {:canvas-name "dragon" :x 500.0 :y 500.0 :start-direction 270 :start "FX" :depth 14 :rules {\X "X+YF" \Y "FX-Y"} :operations {\X #(f/forward % 3) \Y #(f/forward % 3) \- #(f/rotate % (Math/toRadians -90.0)) \+ #(f/rotate % (Math/toRadians 90.0))}}) ![Canvas Dragon Curve](https://github.com/jasongilman/proto-repl-charts/raw/master/examples/canvas_dragon.png) # Plant Like Fractal Clojure (require '[proto-repl-charts.examples.canvas.l-system :as f]) (let [distance 5 distance-chaos 0.75 angle (Math/toRadians 22) neg-angle (* -1.0 angle) angle-chaos 0.01] (f/draw-fractal {:canvas-name "tree" :start-direction 90 :x 300.0 :y 700.0 :start "F" :depth 5 :rules {\F "C0FF-[C1-F+F+F]+[C2+F-F-F]"} :operations {\F #(f/forward % (f/value-with-chaos distance-chaos distance)) \[ f/start-branch \] f/end-branch \- #(f/rotate % (* -1 (f/value-with-chaos angle-chaos angle))) \+ #(f/rotate % (f/value-with-chaos angle-chaos angle))}})) ![Canvas Plant](https://github.com/jasongilman/proto-repl-charts/raw/master/examples/canvas_plant_like.png) Rotating a Polygon See code in [src/proto_repl_charts/examples/canvas/rotating_polygon.clj](https://github.com/jasongilman/proto-repl-charts/blob/master/proto-repl-charts/src/proto_repl_charts/examples/canvas/rotating_polygon.clj) The following code draws 11,200 triangles that are rotated around the origin with a radius that's varying using a sine function. The lines of the polygon are translucent so the overlapping lines create a pattern Clojure (require '[proto-repl-charts.examples.canvas.rotating-polygon :as r]) (let [size 400] (r/<API key> {:canvas-name "rotation" :size (* size 2) :num-sides 3 :polygon-size-fn (constantly (/ size 20.0)) :radius-fn (fn [n] (let [d (- (/ (- size 10.0) 2.0) (/ size 20.0))] (- d (Math/abs (* size (Math/sin (mod n 350))))))) :num-polygons 11200 :rotation-amount (/ (* 2 Math/PI) 11200.0) :background-style "black" :polygon-style "rgba(0, 255, 255, 0.15)"})) ![Canvas Rotating Polygon](https://github.com/jasongilman/proto-repl-charts/raw/master/examples/<API key>.png)
ENV['RACK_ENV'] = 'test' require 'json' require 'rspec' require 'rack/test' describe 'Trend Color UI' do include Rack::Test::Methods def app STUDENTS: make this method return your Rack-based app end it 'should have all trend colors' do get '/' expect(last_response).to be_ok expect(last_response.body).to include '<!DOCTYPE html>' expect(last_response.body).to include 'data-color-name="Tangerine"' expect(last_response.body).to include 'data-color-value="#F79256"' expect(last_response.body).to include '<API key>="#56BBF7"' expect(last_response.body).to include 'data-color-name="Toasted Almond"' expect(last_response.body).to include 'data-color-value="#D2B29A"' expect(last_response.body).to include '<API key>="#99B9D1"' expect(last_response.body).to include 'data-color-name="Aquamarine"' expect(last_response.body).to include 'data-color-value="#9DC6D8"' expect(last_response.body).to include '<API key>="#D8AF9D"' end end
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of level. from importer import Importer from preggy import expect from tornado.testing import gen_test from level.app import LevelApp from level.config import Config from level.json import dumps, loads from level.context import Context, ServerParameters from level.services import BaseService from tests.unit.base import TestCase, WebTestCase class AppTestCase(TestCase): def setUp(self): super(AppTestCase, self).setUp() self.server_parameters = ServerParameters( io_loop=self.io_loop, host='localhost', port=8888, config_path='./tests/fixtures/test-valid.conf', log_level='INFO', debug=True, ) self.config = Config() self.importer = Importer() self.importer.load( dict(key='service_classes', module_names=self.config.SERVICES, class_name='Service'), ) # load all modules here services = [] for service_class in self.importer.service_classes: srv = service_class() srv.name = service_class.__module__ services.append(srv) self.importer.services = services self.context = Context(self.server_parameters, self.config, self.importer) @gen_test async def test_can_create_app(self): app = await LevelApp.create(self.context) expect(app).not_to_be_null() expect(app.context).to_equal(self.context) @gen_test async def <API key>(self): class TestService(BaseService): def __init__(self, *args, **kw): super(TestService, self).__init__(*args, **kw) self.initialized = False self.name = 'TestService' self.app = None async def initialize_service(self, app): await super(TestService, self).initialize_service(app) self.initialized = True s = TestService() self.context.importer.services = [s] app = LevelApp(self.context, []) expect(app).not_to_be_null() await app.initialize() expect(s.initialized).to_be_true() expect(s.app).to_equal(app) @gen_test async def <API key>(self): class TestService(BaseService): def __init__(self): self.initialized = False self.name = 'TestService' self.app = None async def initialize_service(self, app): await super(TestService, self).initialize_service(app) self.initialized = True async def get_handlers(self): return ( ('/test', None), ) s = TestService() self.context.importer.services = [s] app = LevelApp(self.context, []) expect(app).not_to_be_null() handlers = await app.get_handlers() expect(handlers).to_length(2) expect(handlers[1]).to_be_like( ('/test', None), ) class WebSocketTestCase(WebTestCase): def setUp(self): super(WebSocketTestCase, self).setUp() class TestService(BaseService): def __init__(self): self.message = None self.name = 'TestService' async def on_message(self, message): if message['type'] == 'ping': await self.publish_message(message['socket_id'], 'pong', message['payload']) else: self.message = message self.socket_id = message['socket_id'] self.service = TestService() self.service.app = self.app self.context.importer.services = [self.service] @gen_test async def <API key>(self): await self.websocket_connect('/ws') expect(self.ws).not_to_be_null() await self.wait_for(lambda: self.service.message is not None) expect(self.service.socket_id).not_to_be_null() expect(self.service.message).to_be_like({ 'type': 'core.connection.open', 'socket_id': self.service.socket_id, 'payload': {}, }) @gen_test async def <API key>(self): await self.websocket_connect('/ws') expect(self.ws).not_to_be_null() # wait for open await self.wait_for(lambda: self.service.message is not None) self.service.message = None self.websocket_close() await self.wait_for(lambda: self.service.message is not None) expect(self.service.socket_id).not_to_be_null() expect(self.service.message).to_be_like({ 'type': 'core.connection.close', 'socket_id': self.service.socket_id, 'payload': {}, }) @gen_test async def <API key>(self): await self.websocket_connect('/ws') expect(self.ws).not_to_be_null() await self.ws.write_message(dumps({ 'type': 'custom.message', 'qwe': 123, })) await self.wait_for(lambda: self.service.message is not None and self.service.message['type'] == 'custom.message') expect(self.service.socket_id).not_to_be_null() expect(self.service.message).to_be_like({ 'type': 'custom.message', 'socket_id': self.service.socket_id, 'payload': { 'qwe': 123, }, }) @gen_test async def <API key>(self): await self.websocket_connect('/ws') expect(self.ws).not_to_be_null() await self.write_ws_message(dumps({ 'type': 'ping', 'msg': 'woot?!', })) response = await self.read_ws_message() expect(response).not_to_be_null() obj = loads(response) expect(obj).to_equal({ 'type': 'pong', 'socket_id': self.service.socket_id, 'payload': { 'msg': 'woot?!', } })
# ServiceErrors.<API key> method The service returned an unexpected response. csharp public static ServiceErrorDto <API key>(string? message = null) ## See Also * class [ServiceErrorDto](../ServiceErrorDto.md) * class [ServiceErrors](../ServiceErrors.md) * namespace [Facility.Core](../../Facility.Core.md) <!-- DO NOT EDIT: generated by xmldocmd for Facility.Core.dll -->
package com.javier.util.io; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; public class FileUtils { private final static int BUFFER_SIZE = 4096; private static final String DEFAULT_ENCODING = "UTF-8"; /** * Copies a file with a buffer */ public static void copyFile(String inputPath, String outputPath) throws IOException { copyFile(new File(inputPath), new File(outputPath)); } public static void copyFile(File inputFile, File outputFile) throws IOException { FileInputStream fis = new FileInputStream(inputFile); FileOutputStream fos = new FileOutputStream(outputFile); copyStreams(fis, fos); fis.close(); fos.close(); } public static void copyStreams(InputStream in, OutputStream out) throws IOException { byte[] buffer = new byte[BUFFER_SIZE]; int read; while ((read = in.read(buffer)) != -1) { out.write(buffer, 0, read); } } public static void moveFile(String inputPath, String outputPath) { moveFile(new File(inputPath), new File(outputPath)); } /** * @param inputFile * @param outputFile * @return true on success */ public static boolean moveFile(File inputFile, File outputFile) { return inputFile.renameTo(outputFile); } public static String readText(File file) throws IOException { FileInputStream fis = new FileInputStream(file); String result = readText(fis); fis.close(); return result; } public static String readText(InputStream inputStream) throws IOException { return readText(inputStream, DEFAULT_ENCODING); } public static String readText(InputStream inputStream, String encoding) throws IOException { StringBuilder builder = new StringBuilder(); InputStreamReader reader = new InputStreamReader(inputStream, encoding); char[] buffer = new char[BUFFER_SIZE]; int size; while((size = reader.read(buffer)) != -1) { builder.append(buffer, 0, size); } reader.close(); return builder.toString(); } public void writeText(File file, String text) throws IOException { FileOutputStream fos = new FileOutputStream(file); writeText(text, fos); fos.close(); } public void writeText(String text, OutputStream os) throws IOException { OutputStreamWriter osw = new OutputStreamWriter(os); osw.write(text); osw.close(); } }
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace MonoGameUtils.UI.GameComponents { <summary> A screen that tracks the Keyboard and Mouse state between Update() calls. </summary> public class <API key> : <API key> { protected MouseState previousMouseState; protected MouseState currentMouseState; protected KeyboardState <API key>; protected KeyboardState <API key>; <summary> Gets whether or not the left mouse button was pressed in the previous Update() and is now released. </summary> protected bool <API key> { get { return (previousMouseState.LeftButton == ButtonState.Pressed && currentMouseState.LeftButton == ButtonState.Released); } } <summary> Gets whether or not the right mouse button was pressed in the previous Update() and is now released. </summary> protected bool <API key> { get { return (previousMouseState.RightButton == ButtonState.Pressed && currentMouseState.RightButton == ButtonState.Released); } } <summary> Gets whether or not the middle mouse button was pressed in the previous Update() and is now released. </summary> protected bool <API key> { get { return (previousMouseState.MiddleButton == ButtonState.Pressed && currentMouseState.MiddleButton == ButtonState.Released); } } public <API key>(Game game) : base(game) { } public override void Update(GameTime gameTime) { previousMouseState = currentMouseState; currentMouseState = Mouse.GetState(); <API key> = <API key>; <API key> = Keyboard.GetState(); base.Update(gameTime); } } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>regexp: 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 / regexp - 8.5.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> regexp <small> 8.5.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-12-17 23:41:22 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-17 23:41:22 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 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.4.6 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; maintainer: &quot;matej.kosik@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/regexp&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/RegExp&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;keyword:regular expressions&quot; &quot;keyword:Kleene algebra&quot; &quot;category:Computer Science/Formal Languages Theory and Automata&quot; ] authors: [ &quot;Takashi Miyamoto &lt;tmiya@bu.iij4u.or.jp&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/regexp/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/regexp.git&quot; synopsis: &quot;Regular Expression&quot; description: &quot;&quot;&quot; The Library RegExp is a Coq library for regular expression. The implementation is based on the Janusz Brzozowski&#39;s algorithm (&quot;Derivatives of Regular Expressions&quot;, Journal of the ACM 1964). The RegExp library satisfies the axioms of Kleene Algebra. The proofs are shown in the library.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/regexp/archive/v8.5.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-regexp.8.5.0 coq.8.4.6</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). The following dependencies couldn&#39;t be met: - coq-regexp -&gt; coq &gt;= 8.5 -&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-regexp.8.5.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>
using Microsoft.AspNet.Identity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace <API key>.Auth { public class EmailService : <API key> { public Task SendAsync(IdentityMessage message) { // Plug in your email service here to send an email. return Task.FromResult(0); } } }