text
stringlengths
2
99.9k
meta
dict
<!DOCTYPE HTML> <html> <head> <title>bg1</title> <meta charset="utf-8"> <meta name="viewport" id="viewport" content="width=device-width, user-scalable=no, minimum-scale=.5, maximum-scale=.5"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <style type="text/css"> html, body { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; } #container { width: 100%; height: 100%; } </style> </head> <body> <div id="container"></div> <script src="../lib/ppo.min.js"></script> <script src="../lib/qr.js"></script> <script src="//localhost:3001/build/agile.js"></script> <script> var circle, ellipse, triangle, image, rect; main(); function main() { addAgile(); QRCODE.add(10, 10, '#000'); } function addAgile() { Agile.mode = '3d'; var container = new Agile.Container('container'); container.select = false; container.perspective = 1000; container.backface = false; var bg1 = new Agile.ScrollingBg('img/bg.jpg', 600, 390, 5, 'left'); bg1.x = container.width / 2; bg1.y = bg1.height / 2 + 10; bg1.zIndex = 0; bg1.speed = 6; bg1.backgroundWidth = 800; bg1.backgroundHeight = 390; container.addChild(bg1); var bg2 = new Agile.ScrollingBg('img/bg.jpg', 600, 390, 5, 'up'); bg2.x = container.width / 2; bg2.y = bg1.y + bg2.height + 10; bg2.backgroundWidth = 800; bg2.backgroundHeight = 390; bg2.zIndex = 1; bg2.speed = 5; container.addChild(bg2); } </script> </body> </html>
{ "pile_set_name": "Github" }
/* * This file is part of Player Analytics (Plan). * * Plan is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License v3 as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Plan 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Plan. If not, see <https://www.gnu.org/licenses/>. */ package com.djrapitops.plan.exceptions; public class PassEncryptException extends IllegalArgumentException { public PassEncryptException(String s) { super(s); } public PassEncryptException(String s, Throwable throwable) { super(s, throwable); } }
{ "pile_set_name": "Github" }
version https://git-lfs.github.com/spec/v1 oid sha256:ea4d4b776c98b8c82d2ed3f0f8cc26d212177833931cf4e1dc980a98f1e49527 size 22494
{ "pile_set_name": "Github" }
--###################################################################################################### --##### --##### MISE À JOUR Base de données de Leed --##### Date : 06/12/2016 --##### Version Leed : v1.7 --##### --##### Préfixe des tables : ##MYSQL_PREFIX## est remplacé automatiquement --##### --##### Feature(s) : --##### - Ajout d'index pour optimiser la lecture --##### --###################################################################################################### -- Mise à jour table event CREATE INDEX indexguidfeed on `##MYSQL_PREFIX##event` (guid(60),feed);
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>greaterThan - OpenGL ES 3 Reference Pages</title> <link rel="stylesheet" type="text/css" href="opengl-man.css"/> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ MathML: { extensions: ["content-mathml.js"] }, tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } }); </script> <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"/> </head> <body> <header/> <div class="refentry" id="greaterThan"> <div class="titlepage"/> <div class="refnamediv"> <h2>Name</h2> <p>greaterThan — perform a component-wise greater-than comparison of two vectors</p> </div> <div class="refsynopsisdiv"> <h2>Declaration</h2> <div class="funcsynopsis"> <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table"> <tr> <td> <code class="funcdef">bvec <strong class="fsfunc">greaterThan</strong>(</code> </td> <td>vec <var class="pdparam">x</var>, </td> </tr> <tr> <td> </td> <td>vec <var class="pdparam">y</var><code>)</code>;</td> </tr> </table> <div class="funcprototype-spacer"> </div> <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table"> <tr> <td> <code class="funcdef">bvec <strong class="fsfunc">greaterThan</strong>(</code> </td> <td>ivec <var class="pdparam">x</var>, </td> </tr> <tr> <td> </td> <td>ivec <var class="pdparam">y</var><code>)</code>;</td> </tr> </table> <div class="funcprototype-spacer"> </div> <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table"> <tr> <td> <code class="funcdef">bvec <strong class="fsfunc">greaterThan</strong>(</code> </td> <td>uvec <var class="pdparam">x</var>, </td> </tr> <tr> <td> </td> <td>uvec <var class="pdparam">y</var><code>)</code>;</td> </tr> </table> <div class="funcprototype-spacer"> </div> </div> </div> <div class="refsect1" id="parameters"> <h2>Parameters</h2> <div class="variablelist"> <dl class="variablelist"> <dt> <span class="term"> <em class="parameter"> <code>x</code> </em> </span> </dt> <dd> <p> Specifies the first vector to be used in the comparison operation. </p> </dd> <dt> <span class="term"> <em class="parameter"> <code>y</code> </em> </span> </dt> <dd> <p> Specifies the second vector to be used in the comparison operation. </p> </dd> </dl> </div> </div> <div class="refsect1" id="description"> <h2>Description</h2> <p> <code class="function">greaterThan</code> returns a boolean vector in which each element <span class="emphasis"><em>i</em></span> is computed as <em class="parameter"><code>x</code></em>[<span class="emphasis"><em>i</em></span>] &gt; <em class="parameter"><code>y</code></em>[<span class="emphasis"><em>i</em></span>]. </p> </div> <div class="refsect1" id="versions"> <h2>Version Support</h2> <div class="informaltable"> <table style="border-collapse: collapse; border-top: 2px solid ; border-bottom: 2px solid ; border-left: 2px solid ; border-right: 2px solid ; "> <colgroup> <col style="text-align: center; "/> <col style="text-align: center; " class="firstvers"/> <col style="text-align: center; " class="lastvers"/> </colgroup> <thead> <tr> <th style="text-align: center; border-right: 2px solid ; "> </th> <th style="text-align: center; border-bottom: 2px solid ; " colspan="2"> <span class="bold"><strong>OpenGL ES Shading Language Version</strong></span> </th> </tr> <tr> <th style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; "> <span class="bold"><strong>Function Name</strong></span> </th> <th style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; "> <span class="bold"><strong>1.00</strong></span> </th> <th style="text-align: center; border-bottom: 2px solid ; "> <span class="bold"><strong>3.00</strong></span> </th> </tr> </thead> <tbody> <tr> <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">greaterThan (vec)</td> <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">✔</td> <td style="text-align: center; border-bottom: 2px solid ; ">✔</td> </tr> <tr> <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">greaterThan (ivec)</td> <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">✔</td> <td style="text-align: center; border-bottom: 2px solid ; ">✔</td> </tr> <tr> <td style="text-align: center; border-right: 2px solid ; ">greaterThan (uvec)</td> <td style="text-align: center; border-right: 2px solid ; ">-</td> <td style="text-align: center; ">✔</td> </tr> </tbody> </table> </div> </div> <div class="refsect1" id="seealso"> <h2>See Also</h2> <p> <a class="citerefentry" href="lessThan.xhtml"><span class="citerefentry"><span class="refentrytitle">lessThan</span></span></a>, <a class="citerefentry" href="lessThanEqual.xhtml"><span class="citerefentry"><span class="refentrytitle">lessThanEqual</span></span></a>, <a class="citerefentry" href="greaterThanEqual.xhtml"><span class="citerefentry"><span class="refentrytitle">greaterThanEqual</span></span></a>, <a class="citerefentry" href="equal.xhtml"><span class="citerefentry"><span class="refentrytitle">equal</span></span></a>, <a class="citerefentry" href="notEqual.xhtml"><span class="citerefentry"><span class="refentrytitle">notEqual</span></span></a>, <a class="citerefentry" href="any.xhtml"><span class="citerefentry"><span class="refentrytitle">any</span></span></a>, <a class="citerefentry" href="all.xhtml"><span class="citerefentry"><span class="refentrytitle">all</span></span></a>, <a class="citerefentry" href="not.xhtml"><span class="citerefentry"><span class="refentrytitle">not</span></span></a> </p> </div> <div class="refsect1" id="Copyright"> <h2>Copyright</h2> <p> Copyright <span class="trademark"/>© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. <a class="link" href="http://opencontent.org/openpub/" target="_top">http://opencontent.org/openpub/</a>. </p> </div> </div> <footer/> </body> </html>
{ "pile_set_name": "Github" }
/// @ref core /// @file glm/geometric.hpp /// /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.5 Geometric Functions</a> /// /// @defgroup core_func_geometric Geometric functions /// @ingroup core /// /// Include <glm/geometric.hpp> to use these core features. /// /// These operate on vectors as vectors, not component-wise. #pragma once #include "detail/type_vec3.hpp" namespace glm { /// @addtogroup core_func_geometric /// @{ /// Returns the length of x, i.e., sqrt(x * x). /// /// @tparam L An integer between 1 and 4 included that qualify the dimension of the vector. /// @tparam T Floating-point scalar types. /// /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/length.xml">GLSL length man page</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.5 Geometric Functions</a> template<length_t L, typename T, qualifier Q> GLM_FUNC_DECL T length(vec<L, T, Q> const& x); /// Returns the distance betwwen p0 and p1, i.e., length(p0 - p1). /// /// @tparam L An integer between 1 and 4 included that qualify the dimension of the vector. /// @tparam T Floating-point scalar types. /// /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/distance.xml">GLSL distance man page</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.5 Geometric Functions</a> template<length_t L, typename T, qualifier Q> GLM_FUNC_DECL T distance(vec<L, T, Q> const& p0, vec<L, T, Q> const& p1); /// Returns the dot product of x and y, i.e., result = x * y. /// /// @tparam L An integer between 1 and 4 included that qualify the dimension of the vector. /// @tparam T Floating-point scalar types. /// /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/dot.xml">GLSL dot man page</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.5 Geometric Functions</a> template<length_t L, typename T, qualifier Q> GLM_FUNC_DECL T dot(vec<L, T, Q> const& x, vec<L, T, Q> const& y); /// Returns the cross product of x and y. /// /// @tparam T Floating-point scalar types. /// /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/cross.xml">GLSL cross man page</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.5 Geometric Functions</a> template<typename T, qualifier Q> GLM_FUNC_DECL vec<3, T, Q> cross(vec<3, T, Q> const& x, vec<3, T, Q> const& y); /// Returns a vector in the same direction as x but with length of 1. /// According to issue 10 GLSL 1.10 specification, if length(x) == 0 then result is undefined and generate an error. /// /// @tparam L An integer between 1 and 4 included that qualify the dimension of the vector. /// @tparam T Floating-point scalar types. /// /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/normalize.xml">GLSL normalize man page</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.5 Geometric Functions</a> template<length_t L, typename T, qualifier Q> GLM_FUNC_DECL vec<L, T, Q> normalize(vec<L, T, Q> const& x); /// If dot(Nref, I) < 0.0, return N, otherwise, return -N. /// /// @tparam L An integer between 1 and 4 included that qualify the dimension of the vector. /// @tparam T Floating-point scalar types. /// /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/faceforward.xml">GLSL faceforward man page</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.5 Geometric Functions</a> template<length_t L, typename T, qualifier Q> GLM_FUNC_DECL vec<L, T, Q> faceforward( vec<L, T, Q> const& N, vec<L, T, Q> const& I, vec<L, T, Q> const& Nref); /// For the incident vector I and surface orientation N, /// returns the reflection direction : result = I - 2.0 * dot(N, I) * N. /// /// @tparam L An integer between 1 and 4 included that qualify the dimension of the vector. /// @tparam T Floating-point scalar types. /// /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/reflect.xml">GLSL reflect man page</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.5 Geometric Functions</a> template<length_t L, typename T, qualifier Q> GLM_FUNC_DECL vec<L, T, Q> reflect( vec<L, T, Q> const& I, vec<L, T, Q> const& N); /// For the incident vector I and surface normal N, /// and the ratio of indices of refraction eta, /// return the refraction vector. /// /// @tparam L An integer between 1 and 4 included that qualify the dimension of the vector. /// @tparam T Floating-point scalar types. /// /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/refract.xml">GLSL refract man page</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.5 Geometric Functions</a> template<length_t L, typename T, qualifier Q> GLM_FUNC_DECL vec<L, T, Q> refract( vec<L, T, Q> const& I, vec<L, T, Q> const& N, T eta); /// @} }//namespace glm #include "detail/func_geometric.inl"
{ "pile_set_name": "Github" }
/* * (C) Copyright 2009 * Stefano Babic DENX Software Engineering [email protected]. * * (C) Copyright 2010 * Klaus Steinhammer TTECH Control Gmbh [email protected] * * SPDX-License-Identifier: GPL-2.0+ * * Refer doc/README.imximage for more details about how-to configure * and create imximage boot image * * The syntax is taken as close as possible with the kwbimage */ /* * Boot Device : one of * spi, nand, onenand, sd */ BOOT_FROM spi /* * Device Configuration Data (DCD) * * Each entry must have the format: * Addr-type Address Value * * where: * Addr-type register length (1,2 or 4 bytes) * Address absolute address of the register * value value to be stored in the register */ /* * ####################### * ### Disable WDOG ### * ####################### */ DATA 2 0x73f98000 0x30 /* * ####################### * ### SET DDR Clk ### * ####################### */ /* CCM: CBMCR - ddr_clk_sel: axi_b (133MHz) */ DATA 4 0x73FD4018 0x000024C0 /* DOUBLE SPI CLK (13MHz->26 MHz Clock) */ DATA 4 0x73FD4038 0x2010241 /* IOMUXC_SW_PAD_CTL_PAD_CSPI1_MOSI HYS_ENABLE | DRV_MAX | SRE_FAST */ DATA 4 0x73fa8600 0x00000107 /* IOMUXC_SW_PAD_CTL_PAD_CSPI1_MISO HYS_ENABLE | DRV_MAX | SRE_FAST */ DATA 4 0x73fa8604 0x00000107 /* IOMUXC_SW_PAD_CTL_PAD_CSPI1_SS0 HYS_ENABLE | PKE_ENABLE | DRV_MAX | SRE_FAST */ DATA 4 0x73fa8608 0x00000187 /* IOMUXC_SW_PAD_CTL_PAD_CSPI1_SS1 HYS_ENABLE | PKE_ENABLE | DRV_MAX | SRE_FAST */ DATA 4 0x73fa860c 0x00000187 /* IOMUXC_SW_PAD_CTL_PAD_CSPI1_SCLK HYS_ENABLE | DRV_MAX | SRE_FAST */ DATA 4 0x73fa8614 0x00000107 /* IOMUXC_SW_PAD_CTL_PAD_DI1_PIN11 HYS_ENABLE | DRV_MAX | SRE_FAST (CSPI1_SS2) */ DATA 4 0x73fa86a8 0x00000187 /* * ####################### * ### Settings IOMUXC ### * ####################### */ /* * DDR IOMUX configuration * Control, Data, Address pads are in their default state: HIGH DS, FAST SR. * IOMUXC_SW_PAD_CTL_PAD_DRAM_SDCLK MAX DS */ DATA 4 0x73fa84b8 0x000000e7 /* PVTC MAX (at GPC, PGR reg) */ /* DATA 4 0x73FD8004 0x1fc00000 */ /* DQM0 DS high slew rate slow */ DATA 4 0x73fa84d4 0x000000e4 /* DQM1 DS high slew rate slow */ DATA 4 0x73fa84d8 0x000000e4 /* DQM2 DS high slew rate slow */ DATA 4 0x73fa84dc 0x000000e4 /* DQM3 DS high slew rate slow */ DATA 4 0x73fa84e0 0x000000e4 /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS0 DS high & SLEW slow */ DATA 4 0x73fa84bc 0x000000c4 /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS1 DS high & SLEW slow */ DATA 4 0x73fa84c0 0x000000c4 /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS2 DS high & SLEW slow */ DATA 4 0x73fa84c4 0x000000c4 /* IOMUXC_SW_PAD_CTL_PAD_DRAM_SDQS3 DS high & SLEW slow */ DATA 4 0x73fa84c8 0x000000c4 /* DRAM_DATA B0 */ DATA 4 0x73fa88a4 0x00000004 /* DRAM_DATA B1 */ DATA 4 0x73fa88ac 0x00000004 /* DRAM_DATA B2 */ DATA 4 0x73fa88b8 0x00000004 /* DRAM_DATA B3 */ DATA 4 0x73fa882c 0x00000004 /* DRAM_DATA B0 slew rate */ DATA 4 0x73fa8878 0x00000000 /* DRAM_DATA B1 slew rate */ DATA 4 0x73fa8880 0x00000000 /* DRAM_DATA B2 slew rate */ DATA 4 0x73fa888c 0x00000000 /* DRAM_DATA B3 slew rate */ DATA 4 0x73fa889c 0x00000000 /* * ####################### * ### Configure SDRAM ### * ####################### */ /* Configure CS0 */ /* ####################### */ /* ESDCTL0: Enable controller */ DATA 4 0x83fd9000 0x83220000 /* Init DRAM on CS0 */ /* ESDSCR: Precharge command */ DATA 4 0x83fd9014 0x04008008 /* ESDSCR: Refresh command */ DATA 4 0x83fd9014 0x00008010 /* ESDSCR: Refresh command */ DATA 4 0x83fd9014 0x00008010 /* ESDSCR: LMR with CAS=3 and BL=3 (Burst Length = 8) */ DATA 4 0x83fd9014 0x00338018 /* ESDSCR: EMR with half Drive strength (= medium strength @ i.MX51) */ DATA 4 0x83fd9014 0x0020801a /* ESDSCR */ DATA 4 0x83fd9014 0x00008000 /* ESDSCR: EMR with full Drive strength */ /* DATA 4 0x83fd9014 0x0000801a */ /* ESDCTL0: 14 ROW, 10 COL, 32Bit, SREF=8 */ DATA 4 0x83fd9000 0xC3220000 /* * ESDCFG0: tRFC:22clks, tXSR:28clks, tXP:2clks, tWTR:2clk, tRP:3clks, tMRD:2clks * tRAS:8clks, tRRD:2clks, tWR:3clks, tRCD:3clks, tRC:11clks * DATA 4 0x83fd9004 0xC33574AA */ /* * micron mDDR * ESDCFG0: tRFC:11clks, tXSR:19clks, tXP:1clks, tWTR:2clk, tRP:3clks, tMRD:2clks * tRAS:7clks, tRRD:2clks, tWR:3clks, tRCD:3clks, tRC:9clks * DATA 4 0x83FD9004 0x101564a8 */ /* * hynix mDDR * ESDCFG0: tRFC:17clks, tXSR:21clks, tXP:3clks, tWTR:1clk, tRP:3clks, tMRD:2clks * tRAS:7clks, tRRD:2clks, tWR:3clks, tRCD:3clks, tRC:9clks */ DATA 4 0x83FD9004 0x704564a8 /* ESDMISC: AP=10, Bank interleaving on, MIF3 en, RALAT=2 */ DATA 4 0x83fd9010 0x000a1700 /* Configure CS1 */ /* ####################### */ /* ESDCTL1: Enable controller */ DATA 4 0x83fd9008 0x83220000 /* Init DRAM on CS1 */ /* ESDSCR: Precharge command */ DATA 4 0x83fd9014 0x0400800c /* ESDSCR: Refresh command */ DATA 4 0x83fd9014 0x00008014 /* ESDSCR: Refresh command */ DATA 4 0x83fd9014 0x00008014 /* ESDSCR: LMR with CAS=3 and BL=3 (Burst Length = 8) */ DATA 4 0x83fd9014 0x0033801c /* ESDSCR: EMR with half Drive strength (= medium strength @ i.MX51) */ DATA 4 0x83fd9014 0x0020801e /* ESDSCR */ DATA 4 0x83fd9014 0x00008004 /* ESDCTL1: 14 ROW, 10 COL, 32Bit, SREF=8 */ DATA 4 0x83fd9008 0xC3220000 /* * ESDCFG1: tRFC:22clks, tXSR:28clks, tXP:2clks, tWTR:2clk, tRP:3clks, tMRD:2clks * tRAS:8clks, tRRD:2clks, tWR:3clks, tRCD:3clks, tRC:11clks * DATA 4 0x83fd900c 0xC33574AA */ /* * micron mDDR * ESDCFG1: tRFC:11clks, tXSR:19clks, tXP:1clks, tWTR:2clk, tRP:3clks, tMRD:2clks * tRAS:7clks, tRRD:2clks, tWR:3clks, tRCD:3clks, tRC:9clks * DATA 4 0x83FD900C 0x101564a8 */ /* * hynix mDDR * ESDCFG0: tRFC:17clks, tXSR:21clks, tXP:3clks, tWTR:1clk, tRP:3clks, tMRD:2clks * tRAS:7clks, tRRD:2clks, tWR:3clks, tRCD:3clks, tRC:9clks */ DATA 4 0x83FD900C 0x704564a8 /* ESDSCR (mDRAM configuration finished) */ DATA 4 0x83FD9014 0x00000004 /* ESDSCR - clear "configuration request" bit */ DATA 4 0x83fd9014 0x00000000
{ "pile_set_name": "Github" }
{ "ksh": { "code": "ksh", "name": "Colognian" }, "es-ES": { "code": "es-ES", "name": "es_ES" }, "pt-BR": { "code": "pt-BR", "name": "pt_BR" }, "pt-PT": { "code": "pt-PT", "name": "pt_PT" }, "wae": { "code": "wae", "name": "Walser" }, "yav": { "code": "yav", "name": "Yangben" }, "en-AU": { "code": "en-AU", "name": "австралийски английски" }, "de-AT": { "code": "de-AT", "name": "австрийски немски" }, "agq": { "code": "agq", "name": "агем" }, "az": { "code": "az", "name": "азербайджански" }, "ak": { "code": "ak", "name": "акан" }, "sq": { "code": "sq", "name": "албански" }, "en-US": { "code": "en-US", "name": "американски английски" }, "am": { "code": "am", "name": "амхарски" }, "en": { "code": "en", "name": "английски" }, "ar": { "code": "ar", "name": "арабски" }, "hy": { "code": "hy", "name": "арменски" }, "ast": { "code": "ast", "name": "астурски" }, "asa": { "code": "asa", "name": "асу" }, "af": { "code": "af", "name": "африканс" }, "bm": { "code": "bm", "name": "бамбара" }, "bas": { "code": "bas", "name": "баса" }, "eu": { "code": "eu", "name": "баски" }, "ksf": { "code": "ksf", "name": "бафия" }, "be": { "code": "be", "name": "беларуски" }, "bez": { "code": "bez", "name": "бена" }, "bn": { "code": "bn", "name": "бенгалски" }, "my": { "code": "my", "name": "бирмански" }, "brx": { "code": "brx", "name": "бодо" }, "bs": { "code": "bs", "name": "босненски" }, "br": { "code": "br", "name": "бретонски" }, "en-GB": { "code": "en-GB", "name": "британски английски" }, "bg": { "code": "bg", "name": "български" }, "vai": { "code": "vai", "name": "ваи" }, "vi": { "code": "vi", "name": "виетнамски" }, "vun": { "code": "vun", "name": "вунджо" }, "gl": { "code": "gl", "name": "галисийски" }, "lg": { "code": "lg", "name": "ганда" }, "hsb": { "code": "hsb", "name": "горнолужишки" }, "kl": { "code": "kl", "name": "гренландски" }, "ka": { "code": "ka", "name": "грузински" }, "el": { "code": "el", "name": "гръцки" }, "gu": { "code": "gu", "name": "гуджарати" }, "guz": { "code": "guz", "name": "гусии" }, "da": { "code": "da", "name": "датски" }, "dje": { "code": "dje", "name": "джерма" }, "dz": { "code": "dz", "name": "дзонха" }, "dyo": { "code": "dyo", "name": "диола" }, "dsb": { "code": "dsb", "name": "долнолужишки" }, "ee": { "code": "ee", "name": "еве" }, "ewo": { "code": "ewo", "name": "евондо" }, "ebu": { "code": "ebu", "name": "ембу" }, "eo": { "code": "eo", "name": "есперанто" }, "et": { "code": "et", "name": "естонски" }, "zu": { "code": "zu", "name": "зулуски" }, "he": { "code": "he", "name": "иврит" }, "id": { "code": "id", "name": "индонезийски" }, "ga": { "code": "ga", "name": "ирландски" }, "is": { "code": "is", "name": "исландски" }, "es": { "code": "es", "name": "испански" }, "it": { "code": "it", "name": "италиански" }, "yo": { "code": "yo", "name": "йоруба" }, "kab": { "code": "kab", "name": "кабилски" }, "kea": { "code": "kea", "name": "кабовердиански" }, "kk": { "code": "kk", "name": "казахски" }, "kln": { "code": "kln", "name": "календжин" }, "kam": { "code": "kam", "name": "камба" }, "en-CA": { "code": "en-CA", "name": "канадски английски" }, "fr-CA": { "code": "fr-CA", "name": "канадски френски" }, "kn": { "code": "kn", "name": "каннада" }, "ca": { "code": "ca", "name": "каталонски" }, "ks": { "code": "ks", "name": "кашмирски" }, "nmg": { "code": "nmg", "name": "квасио" }, "ki": { "code": "ki", "name": "кикую" }, "ky": { "code": "ky", "name": "киргизки" }, "zh": { "code": "zh", "name": "китайски" }, "khq": { "code": "khq", "name": "койра чиини" }, "ses": { "code": "ses", "name": "койраборо сени" }, "swc": { "code": "swc", "name": "конгоански суахили" }, "ko": { "code": "ko", "name": "корейски" }, "km": { "code": "km", "name": "кхмерски" }, "lag": { "code": "lag", "name": "ланги" }, "lo": { "code": "lo", "name": "лаоски" }, "lv": { "code": "lv", "name": "латвийски" }, "ln": { "code": "ln", "name": "лингала" }, "lt": { "code": "lt", "name": "литовски" }, "lu": { "code": "lu", "name": "луба катанга" }, "luo": { "code": "luo", "name": "луо" }, "luy": { "code": "luy", "name": "луя" }, "lb": { "code": "lb", "name": "люксембургски" }, "mk": { "code": "mk", "name": "македонски" }, "kde": { "code": "kde", "name": "маконде" }, "mgh": { "code": "mgh", "name": "макуа мето" }, "ms": { "code": "ms", "name": "малайски" }, "ml": { "code": "ml", "name": "малаялам" }, "mg": { "code": "mg", "name": "малгашки" }, "mt": { "code": "mt", "name": "малтийски" }, "mr": { "code": "mr", "name": "марати" }, "mas": { "code": "mas", "name": "масайски" }, "jmc": { "code": "jmc", "name": "мачаме" }, "es-MX": { "code": "es-MX", "name": "мексикански испански" }, "mer": { "code": "mer", "name": "меру" }, "ro-MD": { "code": "ro-MD", "name": "молдовски" }, "mn": { "code": "mn", "name": "монголски" }, "mfe": { "code": "mfe", "name": "морисиен" }, "mua": { "code": "mua", "name": "мунданг" }, "naq": { "code": "naq", "name": "нама" }, "jgo": { "code": "jgo", "name": "нгомба" }, "de": { "code": "de", "name": "немски" }, "ne": { "code": "ne", "name": "непалски" }, "nyn": { "code": "nyn", "name": "нианколе" }, "nl": { "code": "nl", "name": "нидерландски" }, "nb": { "code": "nb", "name": "норвежки букмол" }, "nn": { "code": "nn", "name": "норвежки нюношк" }, "nus": { "code": "nus", "name": "нуер" }, "zh-Hans": { "code": "zh-Hans", "name": "опростен китайски" }, "or": { "code": "or", "name": "ория" }, "pa": { "code": "pa", "name": "пенджабски" }, "fa": { "code": "fa", "name": "персийски" }, "pl": { "code": "pl", "name": "полски" }, "pt": { "code": "pt", "name": "португалски" }, "ps": { "code": "ps", "name": "пущу" }, "rwk": { "code": "rwk", "name": "рва" }, "rm": { "code": "rm", "name": "реторомански" }, "rof": { "code": "rof", "name": "ромбо" }, "ro": { "code": "ro", "name": "румънски" }, "rn": { "code": "rn", "name": "рунди" }, "ru": { "code": "ru", "name": "руски" }, "saq": { "code": "saq", "name": "самбуру" }, "sg": { "code": "sg", "name": "санго" }, "sbp": { "code": "sbp", "name": "сангу" }, "nd": { "code": "nd", "name": "северен ндебеле" }, "se": { "code": "se", "name": "северносаамски" }, "seh": { "code": "seh", "name": "сена" }, "si": { "code": "si", "name": "синхалски" }, "sk": { "code": "sk", "name": "словашки" }, "sl": { "code": "sl", "name": "словенски" }, "xog": { "code": "xog", "name": "сога" }, "so": { "code": "so", "name": "сомалийски" }, "sr": { "code": "sr", "name": "сръбски" }, "zgh": { "code": "zgh", "name": "стандартен марокански тамазигт" }, "sw": { "code": "sw", "name": "суахили" }, "ar-001": { "code": "ar-001", "name": "съвременен стандартен арабски" }, "dav": { "code": "dav", "name": "таита" }, "th": { "code": "th", "name": "тайски" }, "ta": { "code": "ta", "name": "тамилски" }, "twq": { "code": "twq", "name": "тасавак" }, "shi": { "code": "shi", "name": "ташелхит" }, "te": { "code": "te", "name": "телугу" }, "teo": { "code": "teo", "name": "тесо" }, "bo": { "code": "bo", "name": "тибетски" }, "ti": { "code": "ti", "name": "тигриня" }, "to": { "code": "to", "name": "тонга" }, "zh-Hant": { "code": "zh-Hant", "name": "традиционен китайски" }, "tr": { "code": "tr", "name": "турски" }, "cy": { "code": "cy", "name": "уелски" }, "uz": { "code": "uz", "name": "узбекски" }, "ug": { "code": "ug", "name": "уйгурски" }, "uk": { "code": "uk", "name": "украински" }, "hu": { "code": "hu", "name": "унгарски" }, "ur": { "code": "ur", "name": "урду" }, "fo": { "code": "fo", "name": "фарьорски" }, "fil": { "code": "fil", "name": "филипински" }, "fi": { "code": "fi", "name": "фински" }, "nl-BE": { "code": "nl-BE", "name": "фламандски" }, "fr": { "code": "fr", "name": "френски" }, "fy": { "code": "fy", "name": "фризийски" }, "fur": { "code": "fur", "name": "фриулиански" }, "ff": { "code": "ff", "name": "фула" }, "ha": { "code": "ha", "name": "хауза" }, "hi": { "code": "hi", "name": "хинди" }, "hr": { "code": "hr", "name": "хърватски" }, "tzm": { "code": "tzm", "name": "централноатласки тамазигт" }, "chr": { "code": "chr", "name": "чероки" }, "cs": { "code": "cs", "name": "чешки" }, "cgg": { "code": "cgg", "name": "чига" }, "ksb": { "code": "ksb", "name": "шамбала" }, "sv": { "code": "sv", "name": "шведски" }, "de-CH": { "code": "de-CH", "name": "швейцарски горногермански" }, "gsw": { "code": "gsw", "name": "швейцарски немски" }, "fr-CH": { "code": "fr-CH", "name": "швейцарски френски" }, "sn": { "code": "sn", "name": "шона" }, "gd": { "code": "gd", "name": "шотландски галски" }, "ja": { "code": "ja", "name": "японски" } }
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <html> <head> <style> </style> </head> <body> <button id='start'>Start</button> <button id='stop'>Stop</button> <div id='timing'></div> <script src="../node_modules/steal/steal.js" dev-bundle main="@empty"> var DefineMap = require("can-define/map/map"); var DefineList = require("can-define/list/list"); var stache = require("can-stache"); var batch = require("can-event/batch/batch"); var template = stache( "{{# for(box of boxes) }}" + "<div class='box-view'>" + "<div class='box' id='box-{{ box.number }}' style='{{ box.style }}'>" + "{{ box.content }}" + "</div>" + "</div>" + "{{/ for }}" ); var boxes = new DefineList(); var Box = DefineMap.extend({ number: {}, count: {default: 0}, top: {}, left: {}, color: {}, content: {}, style: {}, tick: function() { var count = this.count + 1; this.count = count; this.top = Math.sin(count / 10) * 10; this.left = Math.cos(count / 10) * 10; this.color = count % 255; this.content = count % 100; this.style = this.computeStyle(); }, computeStyle: function() { return 'top: ' + this.top + 'px; left: ' + this.left + 'px; background: rgb(0,0,' + this.color + ');'; } }); for(var i =0; i < 100; i++) { var box = new Box({ number: i }); box.tick(); boxes.push( box ); } var frag = template({boxes: boxes}); var div = document.createElement("div") document.body.appendChild(div) div.appendChild(frag) var count = 0; var run = function(){ batch.start(); for(var n = 0; n < 100; n++) { boxes[n].tick(); } batch.stop(); }; document.getElementById("start").addEventListener("click", function(){ loopCount = 0; totalTime = 0; //console.profile("loops"); benchmarkLoop(run); }); window.timeout = null; window.totalTime = null; window.loopCount = null; window.benchmarkLoop = function(fn) { var startDate = new Date(); fn(); var endDate = new Date(); totalTime += endDate - startDate; loopCount++; if (loopCount % 100 === 0) { document.getElementById("timing").innerHTML = 'Performed ' + loopCount + ' iterations in ' + totalTime + ' ms (average ' + (totalTime / loopCount).toFixed(2) + ' ms per loop).'; } if(loopCount < 1000) { timeout = setTimeout(function(){ benchmarkLoop(fn); },1); } else { //console.profileEnd("loops"); } }; </script> </body> </html>
{ "pile_set_name": "Github" }
/*! * express * Copyright(c) 2009-2013 TJ Holowaychuk * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ /** * Module dependencies. * @api private */ var contentDisposition = require('content-disposition'); var contentType = require('content-type'); var deprecate = require('depd')('express'); var mime = require('send').mime; var basename = require('path').basename; var etag = require('etag'); var proxyaddr = require('proxy-addr'); var qs = require('qs'); var querystring = require('querystring'); /** * Return strong ETag for `body`. * * @param {String|Buffer} body * @param {String} [encoding] * @return {String} * @api private */ exports.etag = function (body, encoding) { var buf = !Buffer.isBuffer(body) ? new Buffer(body, encoding) : body; return etag(buf, {weak: false}); }; /** * Return weak ETag for `body`. * * @param {String|Buffer} body * @param {String} [encoding] * @return {String} * @api private */ exports.wetag = function wetag(body, encoding){ var buf = !Buffer.isBuffer(body) ? new Buffer(body, encoding) : body; return etag(buf, {weak: true}); }; /** * Check if `path` looks absolute. * * @param {String} path * @return {Boolean} * @api private */ exports.isAbsolute = function(path){ if ('/' == path[0]) return true; if (':' == path[1] && '\\' == path[2]) return true; if ('\\\\' == path.substring(0, 2)) return true; // Microsoft Azure absolute path }; /** * Flatten the given `arr`. * * @param {Array} arr * @return {Array} * @api private */ exports.flatten = function(arr, ret){ ret = ret || []; var len = arr.length; for (var i = 0; i < len; ++i) { if (Array.isArray(arr[i])) { exports.flatten(arr[i], ret); } else { ret.push(arr[i]); } } return ret; }; /** * Normalize the given `type`, for example "html" becomes "text/html". * * @param {String} type * @return {Object} * @api private */ exports.normalizeType = function(type){ return ~type.indexOf('/') ? acceptParams(type) : { value: mime.lookup(type), params: {} }; }; /** * Normalize `types`, for example "html" becomes "text/html". * * @param {Array} types * @return {Array} * @api private */ exports.normalizeTypes = function(types){ var ret = []; for (var i = 0; i < types.length; ++i) { ret.push(exports.normalizeType(types[i])); } return ret; }; /** * Generate Content-Disposition header appropriate for the filename. * non-ascii filenames are urlencoded and a filename* parameter is added * * @param {String} filename * @return {String} * @api private */ exports.contentDisposition = deprecate.function(contentDisposition, 'utils.contentDisposition: use content-disposition npm module instead'); /** * Parse accept params `str` returning an * object with `.value`, `.quality` and `.params`. * also includes `.originalIndex` for stable sorting * * @param {String} str * @return {Object} * @api private */ function acceptParams(str, index) { var parts = str.split(/ *; */); var ret = { value: parts[0], quality: 1, params: {}, originalIndex: index }; for (var i = 1; i < parts.length; ++i) { var pms = parts[i].split(/ *= */); if ('q' == pms[0]) { ret.quality = parseFloat(pms[1]); } else { ret.params[pms[0]] = pms[1]; } } return ret; } /** * Compile "etag" value to function. * * @param {Boolean|String|Function} val * @return {Function} * @api private */ exports.compileETag = function(val) { var fn; if (typeof val === 'function') { return val; } switch (val) { case true: fn = exports.wetag; break; case false: break; case 'strong': fn = exports.etag; break; case 'weak': fn = exports.wetag; break; default: throw new TypeError('unknown value for etag function: ' + val); } return fn; } /** * Compile "query parser" value to function. * * @param {String|Function} val * @return {Function} * @api private */ exports.compileQueryParser = function compileQueryParser(val) { var fn; if (typeof val === 'function') { return val; } switch (val) { case true: fn = querystring.parse; break; case false: fn = newObject; break; case 'extended': fn = qs.parse; break; case 'simple': fn = querystring.parse; break; default: throw new TypeError('unknown value for query parser function: ' + val); } return fn; } /** * Compile "proxy trust" value to function. * * @param {Boolean|String|Number|Array|Function} val * @return {Function} * @api private */ exports.compileTrust = function(val) { if (typeof val === 'function') return val; if (val === true) { // Support plain true/false return function(){ return true }; } if (typeof val === 'number') { // Support trusting hop count return function(a, i){ return i < val }; } if (typeof val === 'string') { // Support comma-separated values val = val.split(/ *, */); } return proxyaddr.compile(val || []); } /** * Set the charset in a given Content-Type string. * * @param {String} type * @param {String} charset * @return {String} * @api private */ exports.setCharset = function setCharset(type, charset) { if (!type || !charset) { return type; } // parse type var parsed = contentType.parse(type); // set charset parsed.parameters.charset = charset; // format type return contentType.format(parsed); }; /** * Return new empty object. * * @return {Object} * @api private */ function newObject() { return {}; }
{ "pile_set_name": "Github" }
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. require 'test_helper' class Elasticsearch::Transport::Transport::SerializerTest < Minitest::Test context "Serializer" do should "use MultiJson by default" do ::MultiJson.expects(:load) ::MultiJson.expects(:dump) Elasticsearch::Transport::Transport::Serializer::MultiJson.new.load('{}') Elasticsearch::Transport::Transport::Serializer::MultiJson.new.dump({}) end end end
{ "pile_set_name": "Github" }
/* SQLyog Enterprise v12.09 (64 bit) MySQL - 5.5.23 : Database - shiro ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`shiro` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `shiro`; /*Table structure for table `u_permission` */ DROP TABLE IF EXISTS `u_permission`; CREATE TABLE `u_permission` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `url` varchar(256) DEFAULT NULL COMMENT 'url地址', `name` varchar(64) DEFAULT NULL COMMENT 'url描述', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; /*Data for the table `u_permission` */ insert into `u_permission`(`id`,`url`,`name`) values (4,'/permission/index.shtml','权限列表'),(6,'/permission/addPermission.shtml','权限添加'),(7,'/permission/deletePermissionById.shtml','权限删除'),(8,'/member/list.shtml','用户列表'),(9,'/member/online.shtml','在线用户'),(10,'/member/changeSessionStatus.shtml','用户Session踢出'),(11,'/member/forbidUserById.shtml','用户激活&禁止'),(12,'/member/deleteUserById.shtml','用户删除'),(13,'/permission/addPermission2Role.shtml','权限分配'),(14,'/role/clearRoleByUserIds.shtml','用户角色分配清空'),(15,'/role/addRole2User.shtml','角色分配保存'),(16,'/role/deleteRoleById.shtml','角色列表删除'),(17,'/role/addRole.shtml','角色列表添加'),(18,'/role/index.shtml','角色列表'),(19,'/permission/allocation.shtml','权限分配'),(20,'/role/allocation.shtml','角色分配'); /*Table structure for table `u_role` */ DROP TABLE IF EXISTS `u_role`; CREATE TABLE `u_role` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(32) DEFAULT NULL COMMENT '角色名称', `type` varchar(10) DEFAULT NULL COMMENT '角色类型', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*Data for the table `u_role` */ insert into `u_role`(`id`,`name`,`type`) values (1,'系统管理员','888888'),(3,'权限角色','100003'),(4,'用户中心','100002'); /*Table structure for table `u_role_permission` */ DROP TABLE IF EXISTS `u_role_permission`; CREATE TABLE `u_role_permission` ( `rid` bigint(20) DEFAULT NULL COMMENT '角色ID', `pid` bigint(20) DEFAULT NULL COMMENT '权限ID' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `u_role_permission` */ insert into `u_role_permission`(`rid`,`pid`) values (4,8),(4,9),(4,10),(4,11),(4,12),(3,4),(3,6),(3,7),(3,13),(3,14),(3,15),(3,16),(3,17),(3,18),(3,19),(3,20),(1,4),(1,6),(1,7),(1,8),(1,9),(1,10),(1,11),(1,12),(1,13),(1,14),(1,15),(1,16),(1,17),(1,18),(1,19),(1,20); /*Table structure for table `u_user` */ DROP TABLE IF EXISTS `u_user`; CREATE TABLE `u_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `nickname` varchar(20) DEFAULT NULL COMMENT '用户昵称', `email` varchar(128) DEFAULT NULL COMMENT '邮箱|登录帐号', `pswd` varchar(32) DEFAULT NULL COMMENT '密码', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `last_login_time` datetime DEFAULT NULL COMMENT '最后登录时间', `status` bigint(1) DEFAULT '1' COMMENT '1:有效,0:禁止登录', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; /*Data for the table `u_user` */ insert into `u_user`(`id`,`nickname`,`email`,`pswd`,`create_time`,`last_login_time`,`status`) values (1,'管理员','admin','57dd03ed397eabaeaa395eb740b770fd','2016-06-16 11:15:33','2017-02-04 08:55:11',1),(11,'soso','[email protected]','d57ffbe486910dd5b26d0167d034f9ad','2016-05-26 20:50:54','2016-06-16 11:24:35',1),(12,'8446666','8446666','4afdc875a67a55528c224ce088be2ab8','2016-05-27 22:34:19','2016-06-15 17:03:16',1); /*Table structure for table `u_user_role` */ DROP TABLE IF EXISTS `u_user_role`; CREATE TABLE `u_user_role` ( `uid` bigint(20) DEFAULT NULL COMMENT '用户ID', `rid` bigint(20) DEFAULT NULL COMMENT '角色ID' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `u_user_role` */ insert into `u_user_role`(`uid`,`rid`) values (12,4),(11,3),(11,4),(1,1); /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
{ "pile_set_name": "Github" }
namespace AsterNET.Manager.Event { /// <summary> /// A QueueStatusCompleteEvent is triggered after the state of all queues has been reported in response to a QueueStatusAction.<br/> /// Since Asterisk 1.2 /// </summary> /// <seealso cref="Manager.Action.QueueStatusAction" /> public class QueueStatusCompleteEvent : ResponseEvent { public QueueStatusCompleteEvent(ManagerConnection source) : base(source) { } } }
{ "pile_set_name": "Github" }
lychee.define('harvester.mod.Server').tags({ platform: 'html' }).requires([ 'harvester.data.Project' ]).supports((lychee, global) => { return true; }).exports((lychee, global, attachments) => { const _Project = lychee.import('harvester.data.Project'); /* * IMPLEMENTATION */ const Module = { /* * ENTITY API */ // deserialize: function(blob) {}, serialize: function() { return { 'reference': 'harvester.mod.Server', 'arguments': [] }; }, /* * CUSTOM API */ can: function(project) { project = project instanceof _Project ? project : null; if (project !== null) { return false; } return false; }, process: function(project) { project = project instanceof _Project ? project : null; if (project !== null) { return false; } return false; } }; return Module; });
{ "pile_set_name": "Github" }
<!DOCTYPE html> <title>SignedHTTPExchange should be loaded if Variants/Variant-Key match the request</title> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/common/get-host-info.sub.js"></script> <script src="./resources/sxg-util.js"></script> <body> <script> promise_test(async (t) => { const sxgUrl = get_host_info().HTTPS_ORIGIN + '/signed-exchange/resources/sxg/sxg-variants-match.sxg'; const message = await openSXGInIframeAndWaitForMessage(t, sxgUrl); assert_equals(message.location, innerURLOrigin() + '/signed-exchange/resources/inner-url.html'); assert_false(message.is_fallback); }, 'SignedHTTPExchange should be loaded if Variants/Variant-Key match the request'); </script> </body>
{ "pile_set_name": "Github" }
<?php /* * This file is part of the Fxp Composer Asset Plugin package. * * (c) François Pluchino <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Fxp\Composer\AssetPlugin\Tests\Fixtures\Repository\Vcs; /** * Mock vcs driver for packages test. * * @author François Pluchino <[email protected]> */ class MockVcsDriverWithPackages extends MockVcsDriver { protected $composer = array( 'branch:master' => array( 'name' => 'foobar', 'version' => '2.0', ), 'branch:1.x' => array( 'name' => 'foobar', 'version' => '1.1', ), 'tag:v1.0.0' => array( 'name' => 'foobar', 'version' => '1.0', ), 'tag:v1.0.1' => array( 'name' => 'foobar', ), 'tag:invalid' => array( 'name' => 'foobar', 'description' => 'invalid tag name', ), ); /** * {@inheritdoc} */ public function getRootIdentifier() { return 'master'; } /** * {@inheritdoc} */ public function hasComposerFile($identifier) { return isset($this->composer['branch:'.$identifier]) || isset($this->composer['tag:'.$identifier]); } /** * {@inheritdoc} */ public function getComposerInformation($identifier) { $composer = null; if ($this->hasComposerFile($identifier)) { if (isset($this->composer['branch:'.$identifier])) { $composer = $this->composer['branch:'.$identifier]; } elseif (isset($this->composer['tag:'.$identifier])) { $composer = $this->composer['tag:'.$identifier]; } } return $composer; } /** * {@inheritdoc} */ public function getBranches() { return $this->getDataPackages('branch'); } /** * {@inheritdoc} */ public function getTags() { return $this->getDataPackages('tag'); } /** * @param string $type * * @return array */ protected function getDataPackages($type) { $packages = array(); foreach ($this->composer as $name => $data) { if (0 === strpos($name, $type.':')) { $name = substr($name, strpos($name, ':') + 1); $packages[$name] = $data; } } return $packages; } }
{ "pile_set_name": "Github" }
--- title: Postcardware --- You're free to use this package (it's [MIT-licensed](https://github.com/spatie/laravel-server-monitor/blob/master/LICENSE.md)), but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium. All received postcards are published [on our website](https://spatie.be/en/opensource/postcards).
{ "pile_set_name": "Github" }
/* * Driver for the NVIDIA Tegra pinmux * * Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope 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. */ #ifndef __PINMUX_TEGRA_H__ #define __PINMUX_TEGRA_H__ enum tegra_pinconf_param { /* argument: tegra_pinconf_pull */ TEGRA_PINCONF_PARAM_PULL, /* argument: tegra_pinconf_tristate */ TEGRA_PINCONF_PARAM_TRISTATE, /* argument: Boolean */ TEGRA_PINCONF_PARAM_ENABLE_INPUT, /* argument: Boolean */ TEGRA_PINCONF_PARAM_OPEN_DRAIN, /* argument: Boolean */ TEGRA_PINCONF_PARAM_LOCK, /* argument: Boolean */ TEGRA_PINCONF_PARAM_IORESET, /* argument: Boolean */ TEGRA_PINCONF_PARAM_RCV_SEL, /* argument: Boolean */ TEGRA_PINCONF_PARAM_HIGH_SPEED_MODE, /* argument: Boolean */ TEGRA_PINCONF_PARAM_SCHMITT, /* argument: Boolean */ TEGRA_PINCONF_PARAM_LOW_POWER_MODE, /* argument: Integer, range is HW-dependant */ TEGRA_PINCONF_PARAM_DRIVE_DOWN_STRENGTH, /* argument: Integer, range is HW-dependant */ TEGRA_PINCONF_PARAM_DRIVE_UP_STRENGTH, /* argument: Integer, range is HW-dependant */ TEGRA_PINCONF_PARAM_SLEW_RATE_FALLING, /* argument: Integer, range is HW-dependant */ TEGRA_PINCONF_PARAM_SLEW_RATE_RISING, /* argument: Integer, range is HW-dependant */ TEGRA_PINCONF_PARAM_DRIVE_TYPE, }; enum tegra_pinconf_pull { TEGRA_PINCONFIG_PULL_NONE, TEGRA_PINCONFIG_PULL_DOWN, TEGRA_PINCONFIG_PULL_UP, }; enum tegra_pinconf_tristate { TEGRA_PINCONFIG_DRIVEN, TEGRA_PINCONFIG_TRISTATE, }; #define TEGRA_PINCONF_PACK(_param_, _arg_) ((_param_) << 16 | (_arg_)) #define TEGRA_PINCONF_UNPACK_PARAM(_conf_) ((_conf_) >> 16) #define TEGRA_PINCONF_UNPACK_ARG(_conf_) ((_conf_) & 0xffff) /** * struct tegra_function - Tegra pinctrl mux function * @name: The name of the function, exported to pinctrl core. * @groups: An array of pin groups that may select this function. * @ngroups: The number of entries in @groups. */ struct tegra_function { const char *name; const char * const *groups; unsigned ngroups; }; /** * struct tegra_pingroup - Tegra pin group * @mux_reg: Mux register offset. -1 if unsupported. * @mux_bank: Mux register bank. 0 if unsupported. * @mux_bit: Mux register bit. 0 if unsupported. * @pupd_reg: Pull-up/down register offset. -1 if unsupported. * @pupd_bank: Pull-up/down register bank. 0 if unsupported. * @pupd_bit: Pull-up/down register bit. 0 if unsupported. * @tri_reg: Tri-state register offset. -1 if unsupported. * @tri_bank: Tri-state register bank. 0 if unsupported. * @tri_bit: Tri-state register bit. 0 if unsupported. * @einput_reg: Enable-input register offset. -1 if unsupported. * @einput_bank: Enable-input register bank. 0 if unsupported. * @einput_bit: Enable-input register bit. 0 if unsupported. * @odrain_reg: Open-drain register offset. -1 if unsupported. * @odrain_bank: Open-drain register bank. 0 if unsupported. * @odrain_bit: Open-drain register bit. 0 if unsupported. * @lock_reg: Lock register offset. -1 if unsupported. * @lock_bank: Lock register bank. 0 if unsupported. * @lock_bit: Lock register bit. 0 if unsupported. * @ioreset_reg: IO reset register offset. -1 if unsupported. * @ioreset_bank: IO reset register bank. 0 if unsupported. * @ioreset_bit: IO reset register bit. 0 if unsupported. * @rcv_sel_reg: Receiver select offset. -1 if unsupported. * @rcv_sel_bank: Receiver select bank. 0 if unsupported. * @rcv_sel_bit: Receiver select bit. 0 if unsupported. * @drv_reg: Drive fields register offset. -1 if unsupported. * This register contains the hsm, schmitt, lpmd, drvdn, * drvup, slwr, and slwf parameters. * @drv_bank: Drive fields register bank. 0 if unsupported. * @hsm_bit: High Speed Mode register bit. 0 if unsupported. * @schmitt_bit: Scmitt register bit. 0 if unsupported. * @lpmd_bit: Low Power Mode register bit. 0 if unsupported. * @drvdn_bit: Drive Down register bit. 0 if unsupported. * @drvdn_width: Drive Down field width. 0 if unsupported. * @drvup_bit: Drive Up register bit. 0 if unsupported. * @drvup_width: Drive Up field width. 0 if unsupported. * @slwr_bit: Slew Rising register bit. 0 if unsupported. * @slwr_width: Slew Rising field width. 0 if unsupported. * @slwf_bit: Slew Falling register bit. 0 if unsupported. * @slwf_width: Slew Falling field width. 0 if unsupported. * @drvtype_reg: Drive type fields register offset. -1 if unsupported. * @drvtype_bank: Drive type fields register bank. 0 if unsupported. * @drvtype_bit: Drive type register bit. 0 if unsupported. * * A representation of a group of pins (possibly just one pin) in the Tegra * pin controller. Each group allows some parameter or parameters to be * configured. The most common is mux function selection. Many others exist * such as pull-up/down, tri-state, etc. Tegra's pin controller is complex; * certain groups may only support configuring certain parameters, hence * each parameter is optional, represented by a -1 "reg" value. */ struct tegra_pingroup { const char *name; const unsigned *pins; unsigned npins; unsigned funcs[4]; unsigned func_safe; s16 mux_reg; s16 pupd_reg; s16 tri_reg; s16 einput_reg; s16 odrain_reg; s16 lock_reg; s16 ioreset_reg; s16 rcv_sel_reg; s16 drv_reg; s16 drvtype_reg; u32 mux_bank:2; u32 pupd_bank:2; u32 tri_bank:2; u32 einput_bank:2; u32 odrain_bank:2; u32 ioreset_bank:2; u32 rcv_sel_bank:2; u32 lock_bank:2; u32 drv_bank:2; u32 drvtype_bank:2; u32 mux_bit:5; u32 pupd_bit:5; u32 tri_bit:5; u32 einput_bit:5; u32 odrain_bit:5; u32 lock_bit:5; u32 ioreset_bit:5; u32 rcv_sel_bit:5; u32 hsm_bit:5; u32 schmitt_bit:5; u32 lpmd_bit:5; u32 drvdn_bit:5; u32 drvup_bit:5; u32 slwr_bit:5; u32 slwf_bit:5; u32 drvtype_bit:5; u32 drvdn_width:6; u32 drvup_width:6; u32 slwr_width:6; u32 slwf_width:6; }; /** * struct tegra_pinctrl_soc_data - Tegra pin controller driver configuration * @ngpios: The number of GPIO pins the pin controller HW affects. * @pins: An array describing all pins the pin controller affects. * All pins which are also GPIOs must be listed first within the * array, and be numbered identically to the GPIO controller's * numbering. * @npins: The numbmer of entries in @pins. * @functions: An array describing all mux functions the SoC supports. * @nfunctions: The numbmer of entries in @functions. * @groups: An array describing all pin groups the pin SoC supports. * @ngroups: The numbmer of entries in @groups. */ struct tegra_pinctrl_soc_data { unsigned ngpios; const struct pinctrl_pin_desc *pins; unsigned npins; const struct tegra_function *functions; unsigned nfunctions; const struct tegra_pingroup *groups; unsigned ngroups; }; int tegra_pinctrl_probe(struct platform_device *pdev, const struct tegra_pinctrl_soc_data *soc_data); int tegra_pinctrl_remove(struct platform_device *pdev); #endif
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.coyote.http2; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; import org.junit.Assert; import org.junit.Test; /** * Unit tests for Section 8.1 of * <a href="https://tools.ietf.org/html/rfc7540">RFC 7540</a>. * <br> * The order of tests in this class is aligned with the order of the * examples in the RFC. */ public class TestHttp2Section_8_1 extends Http2TestBase { @Test public void testPostWithTrailerHeaders() throws Exception { doTestPostWithTrailerHeaders(true); } @Test public void testPostWithTrailerHeadersBlocked() throws Exception { doTestPostWithTrailerHeaders(false); } private void doTestPostWithTrailerHeaders(boolean allowTrailerHeader) throws Exception{ http2Connect(); if (allowTrailerHeader) { http2Protocol.setAllowedTrailerHeaders(TRAILER_HEADER_NAME); } byte[] headersFrameHeader = new byte[9]; ByteBuffer headersPayload = ByteBuffer.allocate(128); byte[] dataFrameHeader = new byte[9]; ByteBuffer dataPayload = ByteBuffer.allocate(256); byte[] trailerFrameHeader = new byte[9]; ByteBuffer trailerPayload = ByteBuffer.allocate(256); buildPostRequest(headersFrameHeader, headersPayload, false, dataFrameHeader, dataPayload, null, trailerFrameHeader, trailerPayload, 3); // Write the headers writeFrame(headersFrameHeader, headersPayload); // Body writeFrame(dataFrameHeader, dataPayload); // Trailers writeFrame(trailerFrameHeader, trailerPayload); parser.readFrame(true); parser.readFrame(true); parser.readFrame(true); parser.readFrame(true); String len; if (allowTrailerHeader) { len = Integer.toString(256 + TRAILER_HEADER_VALUE.length()); } else { len = "256"; } Assert.assertEquals("0-WindowSize-[256]\n" + "3-WindowSize-[256]\n" + "3-HeadersStart\n" + "3-Header-[:status]-[200]\n" + "3-Header-[content-length]-[" + len + "]\n" + "3-Header-[date]-["+ DEFAULT_DATE + "]\n" + "3-HeadersEnd\n" + "3-Body-" + len + "\n" + "3-EndOfStream\n", output.getTrace()); } @Test public void testSendAck() throws Exception { http2Connect(); byte[] headersFrameHeader = new byte[9]; ByteBuffer headersPayload = ByteBuffer.allocate(128); byte[] dataFrameHeader = new byte[9]; ByteBuffer dataPayload = ByteBuffer.allocate(256); buildPostRequest(headersFrameHeader, headersPayload, true, dataFrameHeader, dataPayload, null, 3); // Write the headers writeFrame(headersFrameHeader, headersPayload); parser.readFrame(true); Assert.assertEquals("3-HeadersStart\n" + "3-Header-[:status]-[100]\n" + "3-HeadersEnd\n", output.getTrace()); output.clearTrace(); // Write the body writeFrame(dataFrameHeader, dataPayload); parser.readFrame(true); parser.readFrame(true); parser.readFrame(true); parser.readFrame(true); Assert.assertEquals("0-WindowSize-[256]\n" + "3-WindowSize-[256]\n" + "3-HeadersStart\n" + "3-Header-[:status]-[200]\n" + "3-Header-[content-length]-[256]\n" + "3-Header-[date]-["+ DEFAULT_DATE + "]\n" + "3-HeadersEnd\n" + "3-Body-256\n" + "3-EndOfStream\n", output.getTrace()); } @Test public void testUndefinedPseudoHeader() throws Exception { List<Header> headers = new ArrayList<>(5); headers.add(new Header(":method", "GET")); headers.add(new Header(":scheme", "http")); headers.add(new Header(":path", "/simple")); headers.add(new Header(":authority", "localhost:" + getPort())); headers.add(new Header(":foo", "bar")); doInvalidPseudoHeaderTest(headers); } @Test public void testInvalidPseudoHeader() throws Exception { List<Header> headers = new ArrayList<>(5); headers.add(new Header(":method", "GET")); headers.add(new Header(":scheme", "http")); headers.add(new Header(":path", "/simple")); headers.add(new Header(":authority", "localhost:" + getPort())); headers.add(new Header(":status", "200")); doInvalidPseudoHeaderTest(headers); } @Test public void testPseudoHeaderOrder() throws Exception { // Need to do this in two frames because HPACK encoder automatically // re-orders fields http2Connect(); List<Header> headers = new ArrayList<>(4); headers.add(new Header(":method", "GET")); headers.add(new Header(":scheme", "http")); headers.add(new Header(":path", "/simple")); headers.add(new Header("x-test", "test")); byte[] headersFrameHeader = new byte[9]; ByteBuffer headersPayload = ByteBuffer.allocate(128); buildSimpleGetRequestPart1(headersFrameHeader, headersPayload, headers , 3); writeFrame(headersFrameHeader, headersPayload); headers.clear(); headers.add(new Header(":authority", "localhost:" + getPort())); headersPayload.clear(); buildSimpleGetRequestPart2(headersFrameHeader, headersPayload, headers , 3); writeFrame(headersFrameHeader, headersPayload); parser.readFrame(true); Assert.assertEquals("3-RST-[1]\n", output.getTrace()); } private void doInvalidPseudoHeaderTest(List<Header> headers) throws Exception { http2Connect(); byte[] headersFrameHeader = new byte[9]; ByteBuffer headersPayload = ByteBuffer.allocate(128); buildGetRequest(headersFrameHeader, headersPayload, null, headers , 3); // Write the headers writeFrame(headersFrameHeader, headersPayload); parser.readFrame(true); Assert.assertEquals("3-RST-[1]\n", output.getTrace()); } }
{ "pile_set_name": "Github" }
language-python-roundtrip 2 shutil.py <<< >>> >>>2 >>>=0
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" ?> <Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JDialogFormInfo"> <NonVisualComponents> <Component class="widget.TextBox" name="Kd2"> <Properties> <Property name="name" type="java.lang.String" value="Kd2" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[207, 23]"/> </Property> </Properties> </Component> <Container class="javax.swing.JPopupMenu" name="jPopupMenu1"> <Properties> <Property name="name" type="java.lang.String" value="jPopupMenu1" noResource="true"/> </Properties> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> <Property name="useNullLayout" type="boolean" value="true"/> </Layout> <SubComponents> <MenuItem class="javax.swing.JMenuItem" name="ppGrafikTerbanyakBatang"> <Properties> <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="fe" green="ff" red="ff" type="rgb"/> </Property> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Tahoma" size="11" style="0"/> </Property> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="32" green="32" red="32" type="rgb"/> </Property> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/Create-Ticket24.png"/> </Property> <Property name="text" type="java.lang.String" value="Grafik Batang 10 Penyakit Terbanyak"/> <Property name="horizontalAlignment" type="int" value="2"/> <Property name="horizontalTextPosition" type="int" value="4"/> <Property name="name" type="java.lang.String" value="ppGrafikTerbanyakBatang" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[300, 26]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ppGrafikTerbanyakBatangActionPerformed"/> </Events> </MenuItem> <MenuItem class="javax.swing.JMenuItem" name="ppGrafikTerbanyakPie"> <Properties> <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="fe" green="ff" red="ff" type="rgb"/> </Property> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Tahoma" size="11" style="0"/> </Property> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="32" green="32" red="32" type="rgb"/> </Property> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/Create-Ticket24.png"/> </Property> <Property name="text" type="java.lang.String" value="Grafik Pie 10 Penyakit Terbanyak"/> <Property name="horizontalAlignment" type="int" value="2"/> <Property name="horizontalTextPosition" type="int" value="4"/> <Property name="name" type="java.lang.String" value="ppGrafikTerbanyakPie" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[300, 26]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ppGrafikTerbanyakPieActionPerformed"/> </Events> </MenuItem> <MenuItem class="javax.swing.JMenuItem" name="ppGrafikTerkecilBatang"> <Properties> <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="fe" green="ff" red="ff" type="rgb"/> </Property> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Tahoma" size="11" style="0"/> </Property> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="32" green="32" red="32" type="rgb"/> </Property> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/Create-Ticket24.png"/> </Property> <Property name="text" type="java.lang.String" value="Grafik Batang 10 Penyakit Tersedikit"/> <Property name="horizontalAlignment" type="int" value="2"/> <Property name="horizontalTextPosition" type="int" value="4"/> <Property name="name" type="java.lang.String" value="ppGrafikTerkecilBatang" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[300, 26]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ppGrafikTerkecilBatangActionPerformed"/> </Events> </MenuItem> <MenuItem class="javax.swing.JMenuItem" name="ppGrafikTerkecilPie"> <Properties> <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="fe" green="ff" red="ff" type="rgb"/> </Property> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Tahoma" size="11" style="0"/> </Property> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="32" green="32" red="32" type="rgb"/> </Property> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/Create-Ticket24.png"/> </Property> <Property name="text" type="java.lang.String" value="Grafik Pie 10 Penyakit Tersedikit"/> <Property name="horizontalAlignment" type="int" value="2"/> <Property name="horizontalTextPosition" type="int" value="4"/> <Property name="name" type="java.lang.String" value="ppGrafikTerkecilPie" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[300, 26]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ppGrafikTerkecilPieActionPerformed"/> </Events> </MenuItem> </SubComponents> </Container> </NonVisualComponents> <Properties> <Property name="defaultCloseOperation" type="int" value="2"/> <Property name="undecorated" type="boolean" value="true"/> <Property name="resizable" type="boolean" value="false"/> </Properties> <SyntheticProperties> <SyntheticProperty name="formSizePolicy" type="int" value="1"/> <SyntheticProperty name="generateCenter" type="boolean" value="false"/> </SyntheticProperties> <Events> <EventHandler event="windowOpened" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="formWindowOpened"/> </Events> <AuxValues> <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/> <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,74,0,0,3,-94"/> </AuxValues> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/> <SubComponents> <Container class="widget.InternalFrame" name="internalFrame1"> <Properties> <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> <TitledBorder title="::[ Rekap Frekuensi Penyakit Di Rawat Inap ]::"> <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> <LineBorder> <Color PropertyName="color" blue="eb" green="f5" red="f0" type="rgb"/> </LineBorder> </Border> <Font PropertyName="font" name="Tahoma" size="11" style="0"/> <Color PropertyName="color" blue="32" green="32" red="32" type="rgb"/> </TitledBorder> </Border> </Property> <Property name="name" type="java.lang.String" value="internalFrame1" noResource="true"/> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> <BorderConstraints direction="Center"/> </Constraint> </Constraints> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"> <Property name="horizontalGap" type="int" value="1"/> <Property name="verticalGap" type="int" value="1"/> </Layout> <SubComponents> <Container class="widget.panelisi" name="panelisi1"> <Properties> <Property name="name" type="java.lang.String" value="panelisi1" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[100, 56]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> <BorderConstraints direction="Last"/> </Constraint> </Constraints> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"> <Property name="alignment" type="int" value="0"/> <Property name="verticalGap" type="int" value="9"/> </Layout> <SubComponents> <Component class="widget.Label" name="label11"> <Properties> <Property name="text" type="java.lang.String" value="Tanggal :"/> <Property name="name" type="java.lang.String" value="label11" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[50, 23]"/> </Property> </Properties> </Component> <Component class="widget.Tanggal" name="Tgl1"> <Properties> <Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/> <Property name="name" type="java.lang.String" value="Tgl1" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[90, 23]"/> </Property> </Properties> </Component> <Component class="widget.Label" name="label18"> <Properties> <Property name="horizontalAlignment" type="int" value="0"/> <Property name="text" type="java.lang.String" value="s.d."/> <Property name="name" type="java.lang.String" value="label18" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[26, 23]"/> </Property> </Properties> </Component> <Component class="widget.Tanggal" name="Tgl2"> <Properties> <Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/> <Property name="name" type="java.lang.String" value="Tgl2" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[90, 23]"/> </Property> </Properties> </Component> <Component class="widget.Label" name="jLabel6"> <Properties> <Property name="text" type="java.lang.String" value="Key Word :"/> <Property name="name" type="java.lang.String" value="jLabel6" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[60, 23]"/> </Property> </Properties> </Component> <Component class="widget.TextBox" name="TCari"> <Properties> <Property name="name" type="java.lang.String" value="TCari" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[135, 23]"/> </Property> </Properties> <Events> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="TCariKeyPressed"/> </Events> </Component> <Component class="widget.Button" name="BtnCari"> <Properties> <Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/accept.png"/> </Property> <Property name="mnemonic" type="int" value="50"/> <Property name="toolTipText" type="java.lang.String" value="Alt+2"/> <Property name="name" type="java.lang.String" value="BtnCari" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[28, 23]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnCariActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnCariKeyPressed"/> </Events> </Component> <Component class="widget.Button" name="BtnAll"> <Properties> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/Search-16x16.png"/> </Property> <Property name="mnemonic" type="int" value="77"/> <Property name="toolTipText" type="java.lang.String" value="Alt+M"/> <Property name="name" type="java.lang.String" value="BtnAll" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[28, 23]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnAllActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnAllKeyPressed"/> </Events> </Component> <Component class="widget.Label" name="label9"> <Properties> <Property name="horizontalAlignment" type="int" value="0"/> <Property name="text" type="java.lang.String" value="Record : 0"/> <Property name="name" type="java.lang.String" value="label9" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[80, 30]"/> </Property> </Properties> </Component> <Component class="widget.Button" name="BtnPrint"> <Properties> <Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/b_print.png"/> </Property> <Property name="mnemonic" type="int" value="84"/> <Property name="text" type="java.lang.String" value="Cetak"/> <Property name="toolTipText" type="java.lang.String" value="Alt+T"/> <Property name="name" type="java.lang.String" value="BtnPrint" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[100, 30]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnPrintActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnPrintKeyPressed"/> </Events> </Component> <Component class="widget.Button" name="BtnKeluar"> <Properties> <Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/exit.png"/> </Property> <Property name="mnemonic" type="int" value="75"/> <Property name="text" type="java.lang.String" value="Keluar"/> <Property name="toolTipText" type="java.lang.String" value="Alt+K"/> <Property name="name" type="java.lang.String" value="BtnKeluar" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[100, 30]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnKeluarActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnKeluarKeyPressed"/> </Events> </Component> </SubComponents> </Container> <Container class="javax.swing.JTabbedPane" name="TabRawat"> <Properties> <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="fd" green="ff" red="ff" type="rgb"/> </Property> <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> <Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> <LineBorder> <Color PropertyName="color" blue="ec" green="f6" red="f1" type="rgb"/> </LineBorder> </Border> </Property> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="32" green="32" red="32" type="rgb"/> </Property> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Tahoma" size="11" style="0"/> </Property> <Property name="name" type="java.lang.String" value="TabRawat" noResource="true"/> </Properties> <Events> <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="TabRawatMouseClicked"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> <BorderConstraints direction="Center"/> </Constraint> </Constraints> <Layout class="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"/> <SubComponents> <Container class="widget.ScrollPane" name="scrollPane1"> <Properties> <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> <Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> <LineBorder> <Color PropertyName="color" blue="ff" green="ff" red="ff" type="rgb"/> </LineBorder> </Border> </Property> <Property name="componentPopupMenu" type="javax.swing.JPopupMenu" editor="org.netbeans.modules.form.ComponentChooserEditor"> <ComponentRef name="jPopupMenu1"/> </Property> <Property name="name" type="java.lang.String" value="scrollPane1" noResource="true"/> <Property name="opaque" type="boolean" value="true"/> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription"> <JTabbedPaneConstraints tabName="Berdasar Tanggal Masuk"> <Property name="tabTitle" type="java.lang.String" value="Berdasar Tanggal Masuk"/> </JTabbedPaneConstraints> </Constraint> </Constraints> <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> <SubComponents> <Component class="widget.Table" name="tbDokter"> <Properties> <Property name="autoCreateRowSorter" type="boolean" value="true"/> <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> <Table columnCount="0" rowCount="4"/> </Property> <Property name="componentPopupMenu" type="javax.swing.JPopupMenu" editor="org.netbeans.modules.form.ComponentChooserEditor"> <ComponentRef name="jPopupMenu1"/> </Property> <Property name="name" type="java.lang.String" value="tbDokter" noResource="true"/> <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> <TableHeader reorderingAllowed="true" resizingAllowed="true"/> </Property> </Properties> </Component> </SubComponents> </Container> <Container class="widget.ScrollPane" name="scrollPane2"> <Properties> <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> <Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> <LineBorder> <Color PropertyName="color" blue="ff" green="ff" red="ff" type="rgb"/> </LineBorder> </Border> </Property> <Property name="componentPopupMenu" type="javax.swing.JPopupMenu" editor="org.netbeans.modules.form.ComponentChooserEditor"> <ComponentRef name="jPopupMenu1"/> </Property> <Property name="name" type="java.lang.String" value="scrollPane2" noResource="true"/> <Property name="opaque" type="boolean" value="true"/> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription"> <JTabbedPaneConstraints tabName="Berdasar Tanggal Keluar"> <Property name="tabTitle" type="java.lang.String" value="Berdasar Tanggal Keluar"/> </JTabbedPaneConstraints> </Constraint> </Constraints> <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> <SubComponents> <Component class="widget.Table" name="tbDokter2"> <Properties> <Property name="autoCreateRowSorter" type="boolean" value="true"/> <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> <Table columnCount="0" rowCount="4"/> </Property> <Property name="componentPopupMenu" type="javax.swing.JPopupMenu" editor="org.netbeans.modules.form.ComponentChooserEditor"> <ComponentRef name="jPopupMenu1"/> </Property> <Property name="name" type="java.lang.String" value="tbDokter2" noResource="true"/> <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> <TableHeader reorderingAllowed="true" resizingAllowed="true"/> </Property> </Properties> </Component> </SubComponents> </Container> </SubComponents> </Container> <Container class="javax.swing.JPanel" name="PanelInput"> <Properties> <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="ff" green="ff" red="ff" type="rgb"/> </Property> <Property name="name" type="java.lang.String" value="PanelInput" noResource="true"/> <Property name="opaque" type="boolean" value="false"/> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> <BorderConstraints direction="First"/> </Constraint> </Constraints> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"> <Property name="horizontalGap" type="int" value="1"/> <Property name="verticalGap" type="int" value="1"/> </Layout> <SubComponents> <Component class="widget.CekBox" name="ChkInput"> <Properties> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/143.png"/> </Property> <Property name="mnemonic" type="int" value="77"/> <Property name="text" type="java.lang.String" value=".: Filter Data"/> <Property name="borderPainted" type="boolean" value="true"/> <Property name="borderPaintedFlat" type="boolean" value="true"/> <Property name="focusable" type="boolean" value="false"/> <Property name="horizontalAlignment" type="int" value="2"/> <Property name="horizontalTextPosition" type="int" value="4"/> <Property name="name" type="java.lang.String" value="ChkInput" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[192, 20]"/> </Property> <Property name="rolloverIcon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/143.png"/> </Property> <Property name="rolloverSelectedIcon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/145.png"/> </Property> <Property name="selectedIcon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/145.png"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ChkInputActionPerformed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> <BorderConstraints direction="Last"/> </Constraint> </Constraints> </Component> <Container class="widget.panelisi" name="FormInput"> <Properties> <Property name="name" type="java.lang.String" value="FormInput" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[100, 104]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> <BorderConstraints direction="Center"/> </Constraint> </Constraints> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> <Property name="useNullLayout" type="boolean" value="true"/> </Layout> <SubComponents> <Component class="widget.Label" name="label17"> <Properties> <Property name="text" type="java.lang.String" value="Ruang :"/> <Property name="name" type="java.lang.String" value="label17" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[35, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="0" y="10" width="75" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.TextBox" name="kdkamar"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="name" type="java.lang.String" value="kdkamar" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[75, 23]"/> </Property> </Properties> <Events> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="kdkamarKeyPressed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="78" y="10" width="85" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.TextBox" name="nmkamar"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="name" type="java.lang.String" value="nmkamar" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[215, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="165" y="10" width="228" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Button" name="BtnSeek2"> <Properties> <Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/190.png"/> </Property> <Property name="mnemonic" type="int" value="51"/> <Property name="toolTipText" type="java.lang.String" value="Alt+3"/> <Property name="name" type="java.lang.String" value="BtnSeek2" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[28, 23]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnSeek2ActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnSeek2KeyPressed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="396" y="10" width="-1" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Label" name="label19"> <Properties> <Property name="text" type="java.lang.String" value="Cara Bayar :"/> <Property name="name" type="java.lang.String" value="label19" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[100, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="0" y="70" width="75" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.TextBox" name="kdpenjab"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="name" type="java.lang.String" value="kdpenjab" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[75, 23]"/> </Property> </Properties> <Events> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="kdpenjabKeyPressed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="78" y="70" width="85" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.TextBox" name="nmpenjab"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="name" type="java.lang.String" value="nmpenjab" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[215, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="165" y="70" width="228" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Button" name="BtnSeek3"> <Properties> <Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/190.png"/> </Property> <Property name="mnemonic" type="int" value="51"/> <Property name="toolTipText" type="java.lang.String" value="Alt+3"/> <Property name="name" type="java.lang.String" value="BtnSeek3" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[28, 23]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnSeek3ActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnSeek3KeyPressed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="396" y="70" width="-1" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Label" name="label20"> <Properties> <Property name="text" type="java.lang.String" value="Dokter :"/> <Property name="name" type="java.lang.String" value="label20" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[35, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="0" y="40" width="75" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.TextBox" name="kddokter"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="name" type="java.lang.String" value="kddokter" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[75, 23]"/> </Property> </Properties> <Events> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="kddokterKeyPressed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="78" y="40" width="85" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.TextBox" name="nmdokter"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="name" type="java.lang.String" value="nmdokter" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[215, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="165" y="40" width="228" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Button" name="BtnSeek4"> <Properties> <Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/190.png"/> </Property> <Property name="mnemonic" type="int" value="51"/> <Property name="toolTipText" type="java.lang.String" value="Alt+3"/> <Property name="name" type="java.lang.String" value="BtnSeek4" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[28, 23]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnSeek4ActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnSeek4KeyPressed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="396" y="40" width="-1" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Label" name="label21"> <Properties> <Property name="text" type="java.lang.String" value="Kab/Kota :"/> <Property name="name" type="java.lang.String" value="label21" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[100, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="449" y="10" width="87" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.TextBox" name="nmkabupaten"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="name" type="java.lang.String" value="nmkabupaten" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[215, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="539" y="10" width="260" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Button" name="BtnSeek5"> <Properties> <Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/190.png"/> </Property> <Property name="mnemonic" type="int" value="51"/> <Property name="toolTipText" type="java.lang.String" value="Alt+3"/> <Property name="name" type="java.lang.String" value="BtnSeek5" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[28, 23]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnSeek5ActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnSeek5KeyPressed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="802" y="10" width="-1" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Label" name="label22"> <Properties> <Property name="text" type="java.lang.String" value="Kecamatan :"/> <Property name="name" type="java.lang.String" value="label22" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[100, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="449" y="40" width="87" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.TextBox" name="nmkecamatan"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="name" type="java.lang.String" value="nmkecamatan" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[215, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="539" y="40" width="260" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Button" name="BtnSeek6"> <Properties> <Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/190.png"/> </Property> <Property name="mnemonic" type="int" value="51"/> <Property name="toolTipText" type="java.lang.String" value="Alt+3"/> <Property name="name" type="java.lang.String" value="BtnSeek6" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[28, 23]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnSeek6ActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnSeek6KeyPressed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="802" y="40" width="-1" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Button" name="BtnSeek7"> <Properties> <Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/picture/190.png"/> </Property> <Property name="mnemonic" type="int" value="51"/> <Property name="toolTipText" type="java.lang.String" value="Alt+3"/> <Property name="name" type="java.lang.String" value="BtnSeek7" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[28, 23]"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnSeek7ActionPerformed"/> <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnSeek7KeyPressed"/> </Events> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="802" y="70" width="-1" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.TextBox" name="nmkelurahan"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="name" type="java.lang.String" value="nmkelurahan" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[215, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="539" y="70" width="260" height="-1"/> </Constraint> </Constraints> </Component> <Component class="widget.Label" name="label23"> <Properties> <Property name="text" type="java.lang.String" value="Kelurahan :"/> <Property name="name" type="java.lang.String" value="label23" noResource="true"/> <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[100, 23]"/> </Property> </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> <AbsoluteConstraints x="449" y="70" width="87" height="-1"/> </Constraint> </Constraints> </Component> </SubComponents> </Container> </SubComponents> </Container> </SubComponents> </Container> </SubComponents> </Form>
{ "pile_set_name": "Github" }
#import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** * The `SPTAppRemotePlaybackRestrictions` describes a set of restrictions for playback in the Spotify client. * * @discussion Use these to determine whether to enable or disable certain actions in the UI. */ @protocol SPTAppRemotePlaybackRestrictions <NSObject> /// `YES` if the user can skip to the next track, otherwise `NO`. @property (nonatomic, readonly) BOOL canSkipNext; /// `YES` if the user can skip to the previous track, otherwise `NO`. @property (nonatomic, readonly) BOOL canSkipPrevious; /// `YES` if the user can repeat the current track, otherwise `NO`. @property (nonatomic, readonly) BOOL canRepeatTrack; /// `YES` if the user can repeat the current context, otherwise `NO`. @property (nonatomic, readonly) BOOL canRepeatContext; /// `YES` if the user can toggle shuffle, otherwise `NO`. @property (nonatomic, readonly) BOOL canToggleShuffle; /// `YES` if the user can seek to specific positions, otherwise `NO`. @property (nonatomic, readonly) BOOL canSeek; @end NS_ASSUME_NONNULL_END
{ "pile_set_name": "Github" }
"""Tests for the hooks framework """ from unittest import TestCase from testfixtures import TempDirectory from nose.tools import eq_ from ..hook import default_before_hook from ..hook import default_after_hook from ..hook import hook from ...config import Config class TestHooks(TestCase): """Tests for the hooks framework """ def setUp(self): """Setup hooks framework """ self.temp_directory = TempDirectory() config = Config() config.etl['HOOKS_BASE_PATH'] = self.temp_directory.path def tearDown(self): """Teardown temp directory """ self.temp_directory.cleanup() @staticmethod def test_default_before_hook_simple(): """Tests that the default before hook works properly (nothing changes) """ args, kwargs = default_before_hook(1, '2', three=3) eq_(args, (1, '2')) eq_(kwargs, {'three': 3}) @staticmethod def test_default_before_hook_no_params(): """Tests that the default before hook works properly even with no parameters """ args, kwargs = default_before_hook() eq_(args, ()) eq_(kwargs, {}) @staticmethod def test_default_before_hook_only_args(): """Tests that the default before hook works properly with only args """ args, kwargs = default_before_hook(1, '2') eq_(args, (1, '2')) eq_(kwargs, {}) @staticmethod def test_default_before_hook_only_kwargs(): """Tests that the default before hook works properly with only kwargs """ args, kwargs = default_before_hook(one=1, two='2') eq_(args, ()) eq_(kwargs, {'one': 1, 'two': '2'}) @staticmethod def test_default_after_hook_simple(): """Tests that the default after hook works properly """ result = default_after_hook('test') eq_(result, 'test') def test_config_not_found_default_hooks(self): """Tests that if the hooks directory is not in the config file, you don't have any hooks """ hook_file = '\n'.join([ 'def before_hook(number):', ' return [number + 1], {}', 'def after_hook(result):', ' return result + 2', ]) self.temp_directory.write('test_hook.py', hook_file) config = Config() del config.etl['HOOKS_BASE_PATH'] @hook('test_hook') def test_hook(number): return number eq_(test_hook(1), 1) def test_hook_file_not_found_default_hooks(self): """Tests that if the hooks file cannot be found, you revert to the default hooks """ hook_file = '\n'.join([ 'def before_hook(number):', ' return [number + 1], {}', 'def after_hook(result):', ' return result + 2', ]) self.temp_directory.write('unused_hook.py', hook_file) @hook('test_hook') def test_hook(number): return number eq_(test_hook(1), 1) def test_before_hook_simple(self): """Tests that a simple before hook works correctly """ hook_file = '\n'.join([ 'def before_hook(number):', ' return [number + 1], {}', ]) self.temp_directory.write('test_hook.py', hook_file) @hook('test_hook') def test_hook(number): return number eq_(test_hook(1), 2) def test_after_hook_simple(self): """Tests that a simple after hook works correctly """ hook_file = '\n'.join([ 'def after_hook(result):', ' return result + 2', ]) self.temp_directory.write('test_hook.py', hook_file) @hook('test_hook') def test_hook(number): return number eq_(test_hook(1), 3) def test_both_before_and_after_hook(self): """Tests that you can have an before and an after hook """ hook_file = '\n'.join([ 'def before_hook(number):', ' return [number + 1], {}', 'def after_hook(result):', ' return result + 2', ]) self.temp_directory.write('test_hook.py', hook_file) @hook('test_hook') def test_hook(number): return number eq_(test_hook(1), 4) def test_that_hooks_do_not_leak(self): """Test that hooks do not leak to the next hook declaration This issue may happen when the import is not cleared properly, and the next hook import does not declare all the hooks """ hook_file = '\n'.join([ 'def before_hook(number):', ' return [number + 1], {}', 'def after_hook(result):', ' return result + 2', ]) self.temp_directory.write('test_hook.py', hook_file) @hook('test_hook') def test_hook(number): return number eq_(test_hook(1), 4) second_hook_file = '\n'.join([ 'def before_hook(number):', ' return [number + 100], {}', ]) self.temp_directory.write('second_test_hook.py', second_hook_file) @hook('second_test_hook') def second_test_hook(number): return number eq_(second_test_hook(1), 101)
{ "pile_set_name": "Github" }
.. Copyright (c) 2017 RackN Inc. .. Licensed under the Apache License, Version 2.0 (the "License"); .. Digital Rebar Provision documentation under Digital Rebar master license .. index:: pair: Digital Rebar Provision; Workflow .. _rs_workflow: Workflow ======== dr-provision implements a basic Workflow system to help automate the various tasks needed to provision and decommission systems. The workflow system is the results of several other components in dr-provision interacting. The rest of this section goes over those parts in more detail. The Bits and Bobs ^^^^^^^^^^^^^^^^^ .. _rs_workflow_tasks: Tasks ----- The basic unit of work that dr-provision sequences to drive Machines through a workflow is a :ref:`rs_data_task`. Individual Tasks are executed against Machines by creating a Job for them. Tasks contain individual Templates that are expanded for a Machine whenever a Job is created. Each of these individual Templates can expand to either a script to be executed (if the Path parameter is empty or not present), or a file to be placed on the filesystem at the location indicated by template-expanding the Path parameter.(if the Path parameter is not empty). .. _rs_workflow_jobs: Jobs ---- A :ref:`rs_data_job` is used to track the execution history of Tasks against a specific Machine. A Job is created every time a Task is executed against a machine -- Jobs keep track of their state of execution. The history of what has been executed (including all log output from scripts) is stored as a chain of Jobs, and the exit status of the Job determines what a machine agent will do next. .. _rs_workflow_stages: Stages ------ A :ref:`rs_data_stage` is used to provide a list of Tasks that should be run on a Machine along with the BootEnv the tasks should be run in. .. _rs_workflow_mc_agent: Machine Agent ------------- The Machine Agent is responsible for creating Jobs, writing out or executing any JobActions, streaming job Logs back to dr-provision for archival purposes, and updating the Job state based on the exit state of any Actions. The Machine Agent is also responsible for rebooting, powering off, and changing to a different Stage as indicated by the Job exit status or the change stage map. Unless directed to exit, the Machine Agent watches the event stream for the Machine it is running on and will execute new tasks as they come to be available. Change Stage Map (DEPRECATED) ----------------------------- The change-stage/map parameter defines what stage to change to when you finish all the tasks in the current stage. The change stage map is a map whose keys correspond to the stage the machine is currently in and whose values indicate the next stage to transition to and what to have the runner do on the stage transition. The change-stage/map mechanism has been replaced by the Workflow mechanism, but will be maintained for the forseeable future. You are encouraged to migrate to using Workflows. .. _rs_workflows: Workflows --------- A :ref:`rs_data_workflow` is used to provide a list of Stages that a Machine should run through to get to a desired end state. When a Workflow is added to a Machine, it renders the BootEnv and Stage for the Machine read-only, replaces the task list on the Machine with one that will step through all the Stages, BootEnvs, and Tasks needed to drive the machine through the Workflow. How They Work Together ^^^^^^^^^^^^^^^^^^^^^^ .. _rs_workflow_agent: Machine Agent (client side) --------------------------- The Machine Agent runs on the Client and is responsible for executing tasks and rebooting the Machine as needed. It is structured as a finite state machine for increased reliability and auditability. The Machine Agent always starts in the AGENT_INIT state. AGENT_INIT Initializes the Agent with a fresh copy of the Machine data, marks the current Job for the machine as `failed` if it is `created` or `running`,and creates an event stream that recieves events for that Machine from dr-provision. If an error was recorded, the Agent prints it to stderr and then clears it out. If an error occurrs during this, the agent will sleep for a bit and transition back to AGENT_INIT, otherwise it will transition to AGENT_WAIT_FOR_RUNNABLE. AGENT_WAIT_FOR_RUNNABLE Waits for the Machine to be both Available and Runnable, and for either the machine Context to equal the context the Agent is paying attention to, or for the machine BootEnv to change. Once it is, the Agent transitions to AGENT_REBOOT if the machine changed BootEnv and the Agent is running in the empty ("") context, AGENT_EXIT if the Agent recieved a termination signal, AGENT_INIT if there was an error waiting for the state change, and AGENT_RUN_TASK otherwise. AGENT_RUN_TASK Tries to create a new Job to run on the machine. If there was an error creating the Job, transitions back to AGENT_INIT. If there was no job created, the Agent transitions to AGENT_CHANGE_STATE if the Machine does not have a Workflow, and AGENT_WAIT_FOR_CHANGE_STAGE if it does. If a Job was created, the Agent attempts to execute all the steps in the Task for which the Job was created, and updates the Job depending on the exit status of the steps. If there was an error executing the Job, the agent will transition back to AGENT_INIT. If the Job signalled that a reboot is needed, the Agent transitions to AGENT_REBOOT. If the Job signalled that the system should be powered off, the Agent transitions to AGENT_POWEROFF. If the Job signalled that the Agent should stop processing Jobs, the Agent transitions to AGENT_EXIT. Otherwise, the Agent transitions to AGENT_WAIT_FOR_RUNNABLE. AGENT_WAIT_FOR_STAGE_CHANGE Waits for the Machine to be Available, and for any of the following fields on the Machine to change: - CurrentTask - Tasks - Runnable - BootEnv - Stage - Context Once those conditions are met, follows the same rules as AGENT_WAIT_FOR_RUNNABLE. AGENT_CHANGE_STAGE (DEPRECATED) dr-provision no longer honors or generates change-stage/map Params for the Machine as of 4.0.0, so this state is always processed as if it always had an empty change-stage/map. If you were reliant on change-stage/map, use Workflows instead. Checks the change-stage/map to determine what (and how) to transition to the next Stage when AGENT_RUN_TASK does not get a Job to run from dr-provision. The Agent first tries to retrieve the change-stage/map Param for the Machine from dr-provision. If it fails due to connection issues, the Agent will transition to AGENT_INIT. If there is no change-stage map, the Agent uses an empty one. If there is a key in the change-stage/map for the current Stage, the Agent saves the corresponding value as val for further processing. If there is no next entry for the current Stage in the change-stage/map and the Machine is in a BootEnv that ends in -install, the Agent assumes that val is "local", otherwise the Agent transitions to AGENT_WAIT_FOR_STAGE_CHANGE. The Agent splits val into nextStage and targetState on the first ':' character in val. If targetState is empty, it is set according to the following rules: - If the BootEnv for nextStage is not empty or different from the current BootEnv, targetState is set to "Reboot" - Otherwise targetState is set to "Success" The Agent changes the machine Stage to the value indicated by nextStage. If an error occurs during that process, the Agent transitions to AGENT_INIT. If targetState is "Reboot", the agent transitions to AGENT_REBOOT. if targetState is "Stop", the agent transitions to AGENT_EXIT. If targetState is "Shutdown", the agent transitions to AGENT_POWEROFF. If targetState is anything else, the agent transitions to AGENT_WAIT_FOR_RUNNABLE. AGENT_EXIT Exits the Agent. AGENT_REBOOT Reboots the system if running in the empty ("") context, otherwise exits the Agent. AGENT_POWEROFF Cleanly shuts the system down if running in the empty ("") context, otherwise exits the Agent. .. _rs_workflow_reboot: Reboot! Using Agent State Changes in Scripts ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ These functions are implemented in the community content shared template accessed by adding `{{ template "setup.tmpl" }}` in your content. By adding this library, you can call the functions ```exit, exit_incomplete, exit_reboot, exit_shutdown, exit_stop, exit_incomplete_reboot, exit_incomplete_shutdown``` to access the agent states. Script authors can also force behaviors using specialized ``exit`` code in their routines. While ``exit 0`` provides a regular clean exit, non-0 values provide enhanced functionality: * ``exit 16`` stops the script * ``exit 32`` triggers a shutdown * ``exit 64`` triggers a reboot * ``exit 128`` means task is incomplete * ``exit 192`` means task is incomplete AND system should reboot * ``exit 160`` means task is incomplete AND system should shutdown. The codes are based on intpretation of bit position left as a trivial exercise to the reader until someone updates the documentation. .. _rs_workflow_server: dr-provision (server side) -------------------------- In dr-provision, the machine Agent relies on these API endpoints to perform its work: - GET from `/api/v3/machines/<machine-uuid>` to get a fresh copy of the Machine during AGENT_INIT. - PATCH to `/api/v3/machines/<machine-uuid>` to update the machine Stage and BootEnv during the AGENT_CHANGE_STAGE. - GET from `/api/v3/machines/<machine-uuid>/params/change-stage/map` to fetch the change-stage/map for the system during AGENT_CHANGE_STAGE. - POST to `/api/v3/jobs` to retrieve the next Job to run during AGENT_RUN_TASK. - PATCH to `/api/v3/jobs/<job-uuid>` to update Job status during AGENT_RUN_TASK and during AGENT_INIT. - PUT to `/api/v3/jobs/<job-uuid>/log` to update the job log during AGENT_RUN_TASK. - UPGRADE to `/api/v3/ws` to create the EventStream websocket that recieves Events for the Machine from dr-provision. Each Event contains a copy of the Machine state at the point in time that the event was created. .. _rs_workflow_next job: Retrieving the next Job ~~~~~~~~~~~~~~~~~~~~~~~ Out of all those endpoints, the one that does the most work is the `POST /api/v3/jobs` endpoint, which is responsible for figuring out what (if any) is the next Job that should be provided to the Machine Agent. It encapsulates the following logic: #. dr-provision recieves an incoming POST on `/api/v3/jobs` that contains a Job with the Machine and Context fields filled out. If the Machine does not exist, the endpoint returns an Unprocessable Entity HTTP status code. If the Machine is not Runnable and Available, the endpoint returns a Conflict status code. If the Machine has no more runnable Tasks (as indicated by CurrentTask being greater than or equal to the length of the Machine Tasks list), or the current Context on the Machine is not equal to the Context of the new Job, the endpoint returns a No Content status code, indicating to the Machine Agent that there are no more tasks to run. #. dr-provision retrieves the CurrentJob for the Machine. If the Machine does not have a CurrentJob, we create a fake one in the Failed state and use that as CurrentJob for the rest of this process. #. dr-provision tentatively sets `nextTask` to CurrentTask + 1. #. If the CurrentTask is set to -1 or points to a `stage:` or `bootenv:` entry in the machine Task list, we mark the CurrentTask as `failed` if it is not already `failed` or `created`. #. If CurrentTask is set to -1, we update it to 0 and set `nextTask` to 0. #. If CurrentTask points to a `stage:`, `context:` or a `bootenv:` entry in the Tasks list, we roll forward on the Tasks list until we get to an entry that does not contain a `stage:`, `context:`, or `bootenv:` entry, gathering machine changes as we go. If the changes we gather result in any changes to the Machine object, we generate a new Job encapsualting all the changes we gathered, set it to the `finished` state, save the gathered machine changes and the job, and skip to the final step in this list. #. Depending on the State of the CurrentJob, we take one of the following actions: - "incomplete": This indicates that CurrentJob did not fail, but it also did not finish. dr-provision returns CurrentJob unchanged, along with the Accepted status code. - "finished": This indicates that the CurrentJob finished without error, and dr-provision should create a new Job for the next Task in the Tasks list. dr-provision sets CurrentTask to `nextTask`. - "failed": This indicates that the CurrentJob failed. Since updating a Job to the `failed` state automatically makes the Machine not Runnable, something else has intervened to make the machine Runnable again. dr-provision will create a new Job for the current Task in the Tasks list. #. dr-provision creates a new Job for the Task in the Tasks list pointed to by CurrentTask in the `created` state. The Machine CurrentJob is updated with the UUID of the new Job. The new Job and the Machine are saved. #. If the the Entry in the Tasks list pointed to by CurrentTask starts with `action:`, then the rest of the entry is interpreted as either a `plugin:action_name` or as a `action_name`. dr-provision will try to invoke the requested `action_name` on the machine (optionally using the specified `plugin`). If the plugin invocation succeeds, the results of the invocation are saved in the log, the Job is set to `finished`, and returned along with the Created HTTP status code. If the plugin invocation fails for any reason, the reason it failed is saved in the log along with any diagnostic output from the plugin, the job is set to `failed`, and nothing is returned along with the NoContent status code. #. If the new Job is in the `created` state, it is returned along with Created HTTP status code, otherwise nothing is returned along with the NoContent status code. .. _rs_workflow_changing: Changing the Workflow on a Machine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changing a Workflow on the Machine has the following effects: - The Stages in the Workflow are expanded to create a new Tasks list. Each Stage gets expanded into a List as follows: - `stage:<stageName>` - `bootenv:<bootEnvName>` if the Stage specifies a non-empty BootEnv. - The Tasks list in the Stage The Tasks list on the Machine are replaced with the results of the above expansion. - The CurrentTask index is set directly to -1. - The Stage and BootEnv fields become read-only from the API. Instead, they will change in accordance with any `stage:` and `bootenv:` elements in the Task list resulting from expanding the Stages in the Workflow. Any Stage changes that happen during processing a Workflow do not affect the Tasks list or the CurrentTask index. - The Context field on the Machine is set to the value of the BaseContext Meta field on the Machine, or the empty string if that Meta field does not exist on the Machine. .. _rs_workflow_removing: Removing a Workflow from a Machine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To remove a workflow from a Machine, set the Workflow field to the empty string. The Stage field on the Machine is set to `none`, the Tasks list is emptied, the CurrentTask index is set back to -1, and the Context field on the Machine is set to the value of the BaseContext Meta field on the Machine, or the empty string if that Meta field does not exist on the Machine. Changing the Stage on a Machine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changing a Stage on a Machine has the folowing effects when done via the API and the Machine does not have a Workflow: - The Tasks list on the Machine is replaced by the Tasks list on the Stage. - If the BootEnv field on the Stage is not empty, it replaces the BootEnv on the Machine. - The CurrentTask index is set to -1 - If the Machine has a different BootEnv now, it is marked as not Runnable. - The Context field on the Machine is set to the value of the BaseContext Meta field on the Machine, or the empty string if that Meta field does not exist on the Machine. Resetting the CurrentTask index to -1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If the Machine does not have a Workflow, the CurrentTask index is simply set to -1. Otherwise. it is set to the most recent entry that would not occur in a different BootEnv from the machine's current BootEnv. In both cases, the Context field on the Machine is reset appropriately for the Task position.
{ "pile_set_name": "Github" }
# Port on which the server is listening. You must select a different # port from your standard HTTP web server if it is running on the same # computer. HTTPPort 8090 # Address on which the server is bound. Only useful if you have # several network interfaces. HTTPBindAddress 0.0.0.0 # Number of simultaneous HTTP connections that can be handled. It has # to be defined *before* the MaxClients parameter, since it defines the # MaxClients maximum limit. MaxHTTPConnections 2000 # Number of simultaneous requests that can be handled. Since FFServer # is very fast, it is more likely that you will want to leave this high # and use MaxBandwidth, below. MaxClients 1000 # This the maximum amount of kbit/sec that you are prepared to # consume when streaming to clients. MaxBandwidth 1000 # Access log file (uses standard Apache log file format) # '-' is the standard output. CustomLog - ################################################################## # Definition of the live feeds. Each live feed contains one video # and/or audio sequence coming from an ffmpeg encoder or another # ffserver. This sequence may be encoded simultaneously with several # codecs at several resolutions. <Feed feed1.ffm> # You must use 'ffmpeg' to send a live feed to ffserver. In this # example, you can type: # # ffmpeg http://localhost:8090/feed1.ffm # ffserver can also do time shifting. It means that it can stream any # previously recorded live stream. The request should contain: # "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify # a path where the feed is stored on disk. You also specify the # maximum size of the feed, where zero means unlimited. Default: # File=/tmp/feed_name.ffm FileMaxSize=5M File /tmp/feed1.ffm FileMaxSize 200K # You could specify # ReadOnlyFile /saved/specialvideo.ffm # This marks the file as readonly and it will not be deleted or updated. # Specify launch in order to start ffmpeg automatically. # First ffmpeg must be defined with an appropriate path if needed, # after that options can follow, but avoid adding the http:// field #Launch ffmpeg # Only allow connections from localhost to the feed. ACL allow 127.0.0.1 </Feed> ################################################################## # Now you can define each stream which will be generated from the # original audio and video stream. Each format has a filename (here # 'test1.mpg'). FFServer will send this stream when answering a # request containing this filename. <Stream test1.mpg> # coming from live feed 'feed1' Feed feed1.ffm # Format of the stream : you can choose among: # mpeg : MPEG-1 multiplexed video and audio # mpegvideo : only MPEG-1 video # mp2 : MPEG-2 audio (use AudioCodec to select layer 2 and 3 codec) # ogg : Ogg format (Vorbis audio codec) # rm : RealNetworks-compatible stream. Multiplexed audio and video. # ra : RealNetworks-compatible stream. Audio only. # mpjpeg : Multipart JPEG (works with Netscape without any plugin) # jpeg : Generate a single JPEG image. # mjpeg : Generate a M-JPEG stream. # asf : ASF compatible streaming (Windows Media Player format). # swf : Macromedia Flash compatible stream # avi : AVI format (MPEG-4 video, MPEG audio sound) Format mpeg # Bitrate for the audio stream. Codecs usually support only a few # different bitrates. AudioBitRate 32 # Number of audio channels: 1 = mono, 2 = stereo AudioChannels 1 # Sampling frequency for audio. When using low bitrates, you should # lower this frequency to 22050 or 11025. The supported frequencies # depend on the selected audio codec. AudioSampleRate 44100 # Bitrate for the video stream VideoBitRate 64 # Ratecontrol buffer size VideoBufferSize 40 # Number of frames per second VideoFrameRate 3 # Size of the video frame: WxH (default: 160x128) # The following abbreviations are defined: sqcif, qcif, cif, 4cif, qqvga, # qvga, vga, svga, xga, uxga, qxga, sxga, qsxga, hsxga, wvga, wxga, wsxga, # wuxga, woxga, wqsxga, wquxga, whsxga, whuxga, cga, ega, hd480, hd720, # hd1080 VideoSize 160x128 # Transmit only intra frames (useful for low bitrates, but kills frame rate). #VideoIntraOnly # If non-intra only, an intra frame is transmitted every VideoGopSize # frames. Video synchronization can only begin at an intra frame. VideoGopSize 12 # More MPEG-4 parameters # VideoHighQuality # Video4MotionVector # Choose your codecs: #AudioCodec mp2 #VideoCodec mpeg1video # Suppress audio #NoAudio # Suppress video #NoVideo #VideoQMin 3 #VideoQMax 31 # Set this to the number of seconds backwards in time to start. Note that # most players will buffer 5-10 seconds of video, and also you need to allow # for a keyframe to appear in the data stream. #Preroll 15 # ACL: # You can allow ranges of addresses (or single addresses) #ACL ALLOW <first address> <last address> # You can deny ranges of addresses (or single addresses) #ACL DENY <first address> <last address> # You can repeat the ACL allow/deny as often as you like. It is on a per # stream basis. The first match defines the action. If there are no matches, # then the default is the inverse of the last ACL statement. # # Thus 'ACL allow localhost' only allows access from localhost. # 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and # allow everybody else. </Stream> ################################################################## # Example streams # Multipart JPEG #<Stream test.mjpg> #Feed feed1.ffm #Format mpjpeg #VideoFrameRate 2 #VideoIntraOnly #NoAudio #Strict -1 #</Stream> # Single JPEG #<Stream test.jpg> #Feed feed1.ffm #Format jpeg #VideoFrameRate 2 #VideoIntraOnly ##VideoSize 352x240 #NoAudio #Strict -1 #</Stream> # Flash #<Stream test.swf> #Feed feed1.ffm #Format swf #VideoFrameRate 2 #VideoIntraOnly #NoAudio #</Stream> # ASF compatible <Stream test.asf> Feed feed1.ffm Format asf VideoFrameRate 15 VideoSize 352x240 VideoBitRate 256 VideoBufferSize 40 VideoGopSize 30 AudioBitRate 64 StartSendOnKey </Stream> # MP3 audio #<Stream test.mp3> #Feed feed1.ffm #Format mp2 #AudioCodec mp3 #AudioBitRate 64 #AudioChannels 1 #AudioSampleRate 44100 #NoVideo #</Stream> # Ogg Vorbis audio #<Stream test.ogg> #Feed feed1.ffm #Metadata title "Stream title" #AudioBitRate 64 #AudioChannels 2 #AudioSampleRate 44100 #NoVideo #</Stream> # Real with audio only at 32 kbits #<Stream test.ra> #Feed feed1.ffm #Format rm #AudioBitRate 32 #NoVideo #NoAudio #</Stream> # Real with audio and video at 64 kbits #<Stream test.rm> #Feed feed1.ffm #Format rm #AudioBitRate 32 #VideoBitRate 128 #VideoFrameRate 25 #VideoGopSize 25 #NoAudio #</Stream> ################################################################## # A stream coming from a file: you only need to set the input # filename and optionally a new format. Supported conversions: # AVI -> ASF #<Stream file.rm> #File "/usr/local/httpd/htdocs/tlive.rm" #NoAudio #</Stream> #<Stream file.asf> #File "/usr/local/httpd/htdocs/test.asf" #NoAudio #Metadata author "Me" #Metadata copyright "Super MegaCorp" #Metadata title "Test stream from disk" #Metadata comment "Test comment" #</Stream> ################################################################## # RTSP examples # # You can access this stream with the RTSP URL: # rtsp://localhost:5454/test1-rtsp.mpg # # A non-standard RTSP redirector is also created. Its URL is: # http://localhost:8090/test1-rtsp.rtsp #<Stream test1-rtsp.mpg> #Format rtp #File "/usr/local/httpd/htdocs/test1.mpg" #</Stream> # Transcode an incoming live feed to another live feed, # using libx264 and video presets #<Stream live.h264> #Format rtp #Feed feed1.ffm #VideoCodec libx264 #VideoFrameRate 24 #VideoBitRate 100 #VideoSize 480x272 #AVPresetVideo default #AVPresetVideo baseline #AVOptionVideo flags +global_header # #AudioCodec libfaac #AudioBitRate 32 #AudioChannels 2 #AudioSampleRate 22050 #AVOptionAudio flags +global_header #</Stream> ################################################################## # SDP/multicast examples # # If you want to send your stream in multicast, you must set the # multicast address with MulticastAddress. The port and the TTL can # also be set. # # An SDP file is automatically generated by ffserver by adding the # 'sdp' extension to the stream name (here # http://localhost:8090/test1-sdp.sdp). You should usually give this # file to your player to play the stream. # # The 'NoLoop' option can be used to avoid looping when the stream is # terminated. #<Stream test1-sdp.mpg> #Format rtp #File "/usr/local/httpd/htdocs/test1.mpg" #MulticastAddress 224.124.0.1 #MulticastPort 5000 #MulticastTTL 16 #NoLoop #</Stream> ################################################################## # Special streams # Server status <Stream stat.html> Format status # Only allow local people to get the status ACL allow localhost ACL allow 192.168.0.0 192.168.255.255 #FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico </Stream> # Redirect index.html to the appropriate site <Redirect index.html> URL http://www.ffmpeg.org/ </Redirect>
{ "pile_set_name": "Github" }
/* ----------------------------------------------------------------------- ia64_flags.h - Copyright (c) 2000 Hewlett Packard Company IA64/unix Foreign Function Interface Original author: Hans Boehm, HP Labs 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. ----------------------------------------------------------------------- */ /* "Type" codes used between assembly and C. When used as a part of a cfi->flags value, the low byte will be these extra type codes, and bits 8-31 will be the actual size of the type. */ /* Small structures containing N words in integer registers. */ #define FFI_IA64_TYPE_SMALL_STRUCT (FFI_TYPE_LAST + 1) /* Homogeneous Floating Point Aggregates (HFAs) which are returned in FP registers. */ #define FFI_IA64_TYPE_HFA_FLOAT (FFI_TYPE_LAST + 2) #define FFI_IA64_TYPE_HFA_DOUBLE (FFI_TYPE_LAST + 3) #define FFI_IA64_TYPE_HFA_LDOUBLE (FFI_TYPE_LAST + 4)
{ "pile_set_name": "Github" }
# Copyright 2009-2013 Yelp and Contributors # Copyright 2015-2018 Yelp # Copyright 2019 Yelp # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Create a persistent EMR cluster to run clusters in, and print its ID to stdout. Usage:: mrjob create-cluster Options:: --additional-emr-info ADDITIONAL_EMR_INFO A JSON string for selecting additional features on EMR --applications APPLICATIONS, --application APPLICATIONS Additional applications to run on 4.x and 5.x AMIs, separated by commas (e.g. "Ganglia,Spark") --bootstrap BOOTSTRAP A shell command to set up libraries etc. before any steps (e.g. "sudo apt-get -qy install python3"). You may interpolate files available via URL or locally with Hadoop Distributed Cache syntax ("sudo yum install -y foo.rpm#") --bootstrap-action BOOTSTRAP_ACTIONS Raw bootstrap action scripts to run before any of the other bootstrap steps. You can use --bootstrap-action more than once. Local scripts will be automatically uploaded to S3. To add arguments, just use quotes: "foo.sh arg1 arg2" --bootstrap-mrjob Automatically zip up the mrjob library and install it when we run the mrjob. This is the default. Use --no- bootstrap-mrjob if you've already installed mrjob on your Hadoop cluster. --no-bootstrap-mrjob Don't automatically zip up the mrjob library and install it when we run this job. Use this if you've already installed mrjob on your Hadoop cluster. --bootstrap-python Attempt to install a compatible version of Python at bootstrap time. Currently this only does anything for Python 3, for which it is enabled by default. --no-bootstrap-python Don't automatically try to install a compatible version of Python at bootstrap time. --bootstrap-spark Auto-install Spark on the cluster (even if not needed). --no-bootstrap-spark Don't auto-install Spark on the cluster. --cloud-fs-sync-secs CLOUD_FS_SYNC_SECS How long to wait for remote FS to reach eventual consistency. This is typically less than a second but the default is 5.0 to be safe. --cloud-log-dir CLOUD_LOG_DIR URI on remote FS to write logs into --cloud-part-size-mb CLOUD_PART_SIZE_MB Upload files to cloud FS in parts no bigger than this many megabytes. Default is 100 MiB. Set to 0 to disable multipart uploading entirely. --cloud-upload-part-size CLOUD_PART_SIZE_MB Deprecated alias for --cloud-part-size-mb --cloud-tmp-dir CLOUD_TMP_DIR URI on remote FS to use as our temp directory. -c CONF_PATHS, --conf-path CONF_PATHS Path to alternate mrjob.conf file to read from --no-conf Don't load mrjob.conf even if it's available --core-instance-bid-price CORE_INSTANCE_BID_PRICE Bid price to specify for core nodes when setting them up as EC2 spot instances (you probably only want to do this for task instances). --core-instance-type CORE_INSTANCE_TYPE Type of GCE/EC2 core instance(s) to launch --ebs-root-volume-gb EBS_ROOT_VOLUME_GB Size of root EBS volume, in GiB. Must be an integer.Set to 0 to use the default --ec2-endpoint EC2_ENDPOINT Force mrjob to connect to EC2 on this endpoint (e.g. ec2.us-west-1.amazonaws.com). Default is to infer this from region. --ec2-key-pair EC2_KEY_PAIR Name of the SSH key pair you set up for EMR --emr-action-on-failure EMR_ACTION_ON_FAILURE Action to take when a step fails (e.g. TERMINATE_CLUSTER, CANCEL_AND_WAIT, CONTINUE) --emr-configuration EMR_CONFIGURATIONS Configuration to use on 4.x AMIs as a JSON-encoded dict; see http://docs.aws.amazon.com/ElasticMapReduce/ latest/ReleaseGuide/emr-configure-apps.html for examples --emr-endpoint EMR_ENDPOINT Force mrjob to connect to EMR on this endpoint (e.g. us-west-1.elasticmapreduce.amazonaws.com). Default is to infer this from region. --enable-emr-debugging Enable storage of Hadoop logs in SimpleDB --disable-emr-debugging Disable storage of Hadoop logs in SimpleDB (the default) --extra-cluster-param EXTRA_CLUSTER_PARAMS extra parameter to pass to cloud API when creating a cluster, to access features not currently supported by mrjob. Takes the form <param>=<value>, where value is JSON or a string. Use <param>=null to unset a parameter -h, --help show this help message and exit --iam-endpoint IAM_ENDPOINT Force mrjob to connect to IAM on this endpoint (e.g. iam.us-gov.amazonaws.com) --iam-instance-profile IAM_INSTANCE_PROFILE EC2 instance profile to use for the EMR cluster -- see "Configure IAM Roles for Amazon EMR" in AWS docs --iam-service-role IAM_SERVICE_ROLE IAM service role to use for the EMR cluster -- see "Configure IAM Roles for Amazon EMR" in AWS docs --image-id IMAGE_ID ID of custom AWS machine image (AMI) to use --image-version IMAGE_VERSION version of EMR/Dataproc machine image to run --instance-fleets INSTANCE_FLEETS detailed JSON list of instance fleets, including EBS configuration. See docs for --instance-fleets at http://docs.aws.amazon.com/cli/latest/reference/emr /create-cluster.html --instance-groups INSTANCE_GROUPS detailed JSON list of EMR instance configs, including EBS configuration. See docs for --instance-groups at http://docs.aws.amazon.com/cli/latest/reference/emr /create-cluster.html --instance-type INSTANCE_TYPE Type of GCE/EC2 instance(s) to launch GCE - e.g. n1-standard-1, n1-highcpu-4, n1-highmem-4 -- See https://cloud.google.com/compute/docs/machine-types EC2 - e.g. m1.medium, c3.xlarge, r3.xlarge -- See http://aws.amazon.com/ec2/instance-types/ --label LABEL Alternate label for the job, to help us identify it. --master-instance-bid-price MASTER_INSTANCE_BID_PRICE Bid price to specify for the master node when setting it up as an EC2 spot instance (you probably only want to do this for task instances). --master-instance-type MASTER_INSTANCE_TYPE Type of GCE/EC2 master instance to launch --max-mins-idle MAX_MINS_IDLE If we create a cluster, have it automatically terminate itself after it's been idle this many minutes --num-core-instances NUM_CORE_INSTANCES Total number of core instances to launch --num-task-instances NUM_TASK_INSTANCES Total number of task instances to launch --owner OWNER User who ran the job (default is the current user) --pool-clusters Add to an existing cluster or create a new one that does not terminate when the job completes. --no-pool-clusters Don't run job on a pooled cluster (the default) --pool-name POOL_NAME Specify a pool name to join. Default is "default" -q, --quiet Don't print anything to stderr --region REGION GCE/AWS region to run Dataproc/EMR jobs in. --release-label RELEASE_LABEL Release Label (e.g. "emr-4.0.0"). Overrides --image- version --s3-endpoint S3_ENDPOINT Force mrjob to connect to S3 on this endpoint (e.g. s3 -us-west-1.amazonaws.com). You usually shouldn't set this; by default mrjob will choose the correct endpoint for each S3 bucket based on its location. --subnet SUBNET ID of Amazon VPC subnet/URI of Google Compute Engine subnetwork to launch cluster in. --subnets SUBNET Like --subnet, but with a comma-separated list, to specify multiple subnets in conjunction with --instance-fleets (EMR only) --tag TAGS Metadata tags to apply to the EMR cluster; should take the form KEY=VALUE. You can use --tag multiple times --task-instance-bid-price TASK_INSTANCE_BID_PRICE Bid price to specify for task nodes when setting them up as EC2 spot instances --task-instance-type TASK_INSTANCE_TYPE Type of GCE/EC2 task instance(s) to launch -v, --verbose print more messages to stderr --zone ZONE GCE zone/AWS availability zone to run Dataproc/EMR jobs in. """ from __future__ import print_function from argparse import ArgumentParser from mrjob.emr import EMRJobRunner from mrjob.job import MRJob from mrjob.options import _add_basic_args from mrjob.options import _add_runner_args from mrjob.options import _alphabetize_actions from mrjob.options import _filter_by_role def main(args=None): """Run the create_cluster tool with arguments from ``sys.argv`` and printing to ``sys.stdout``.""" runner = EMRJobRunner(**_runner_kwargs(args)) cluster_id = runner.make_persistent_cluster() print(cluster_id) def _runner_kwargs(cl_args=None): """Parse command line arguments into arguments for :py:class:`EMRJobRunner` """ # parser command-line args arg_parser = _make_arg_parser() options = arg_parser.parse_args(cl_args) MRJob.set_up_logging(quiet=options.quiet, verbose=options.verbose) # create the persistent job kwargs = options.__dict__.copy() del kwargs['quiet'] del kwargs['verbose'] return kwargs def _make_arg_parser(): usage = '%(prog)s create-cluster [options]' description = ( 'Create a persistent EMR cluster to run jobs in, and print its ID to' ' stdout.') arg_parser = ArgumentParser(usage=usage, description=description) _add_basic_args(arg_parser) _add_runner_args( arg_parser, _filter_by_role(EMRJobRunner.OPT_NAMES, 'connect', 'launch')) _alphabetize_actions(arg_parser) return arg_parser if __name__ == '__main__': main()
{ "pile_set_name": "Github" }
#ifndef COIN_SOPROFILEROVERLAYKIT_H #define COIN_SOPROFILEROVERLAYKIT_H #include <Inventor/nodekits/SoBaseKit.h> #include <Inventor/nodekits/SoSubKit.h> #include <Inventor/fields/SoSFVec3f.h> class COIN_DLL_API SoProfilerOverlayKit : public SoBaseKit { typedef SoBaseKit inherited; SO_KIT_HEADER(SoProfilerOverlayKit); SO_KIT_CATALOG_ENTRY_HEADER(topSeparator); SO_KIT_CATALOG_ENTRY_HEADER(profilingStats); SO_KIT_CATALOG_ENTRY_HEADER(viewportInfo); SO_KIT_CATALOG_ENTRY_HEADER(overlayCamera); SO_KIT_CATALOG_ENTRY_HEADER(depthTestOff); SO_KIT_CATALOG_ENTRY_HEADER(overlaySep); SO_KIT_CATALOG_ENTRY_HEADER(depthTestOn); public: static void initClass(void); SoProfilerOverlayKit(void); SoSFVec3f viewportSize; // output in pixels for internal use void addOverlayGeometry(SoNode * node); protected: virtual ~SoProfilerOverlayKit(void); private: struct SoProfilerOverlayKitP * pimpl; }; #endif // !COIN_SOPROFILEROVERLAYKIT_H
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <UnitTester xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="main.mxml"> <!-- this set of lines form a template that must be in each unit test --> <mx:Script> <![CDATA[ public static function init(o:DisplayObject):void { } ]]> </mx:Script> <mx:Metadata> <![CDATA[ [Mixin] ]]> </mx:Metadata> <!-- end of set of lines that must be in each unit test --> <mx:Script> <![CDATA[ private function play(target:Object):void { } ]]> </mx:Script> <testCases> <TestCase testID="SetupAnimateConstraintsTest" keywords="[animate]" description="Spark.Effects.Animate checkin test setup."> <body> <SetProperty target="" propertyName="currentState" value="sparkAnimateConstraintsTest" waitEvent="updateComplete" timeout="500" /> <Pause timeout="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b1" propertyName="x" value="10"/> </body> </TestCase> <!-- <TestCase testID="AnimateConstraints_CheckinTest_1" keywords="[animate]" description="Spark.Effects.Animate checkin test 1."> <body> <SetProperty target="sparkAnimateConstraintsTests" propertyName="currentState" value="s2" /> <Pause timeout="400"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b1" propertyName="right" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b2" propertyName="left" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b3" propertyName="x" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b3a" propertyName="left" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b3b" propertyName="right" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b4" propertyName="bottom" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b5" propertyName="top" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b6" propertyName="y" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b6a" propertyName="top" value="50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b6b" propertyName="bottom" value="50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b7" propertyName="horizontalCenter" value="50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b8" propertyName="horizontalCenter" value="-50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b9" propertyName="left" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b10" propertyName="verticalCenter" value="50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b11" propertyName="verticalCenter" value="-50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b12" propertyName="bottom" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b13" propertyName="percentWidth" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b14" propertyName="percentWidth" value="50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b15" propertyName="width" value="200"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b16" propertyName="percentHeight" value="50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b17" propertyName="percentHeight" value="50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b18" propertyName="height" value="300"/> </body> </TestCase> --> <TestCase testID="AnimateConstraints_CheckinTest_2" keywords="[animate]" description="Spark.Effects.Animate checkin test 2."> <body> <SetProperty target="sparkAnimateConstraintsTests" propertyName="currentState" value="s1" /> <Pause timeout="400"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b1" propertyName="left" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b2" propertyName="right" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b3" propertyName="left" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b3a" propertyName="left" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b3b" propertyName="right" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b4" propertyName="top" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b5" propertyName="bottom" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b6" propertyName="top" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b6a" propertyName="top" value="0"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b6b" propertyName="bottom" value="0"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b7" propertyName="horizontalCenter" value="0"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b8" propertyName="horizontalCenter" value="0"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b9" propertyName="horizontalCenter" value="0"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b10" propertyName="verticalCenter" value="0"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b11" propertyName="verticalCenter" value="0"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b12" propertyName="verticalCenter" value="0"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b13" propertyName="percentWidth" value="50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b14" propertyName="percentWidth" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b15" propertyName="percentWidth" value="50"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b16" propertyName="percentHeight" value="10"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b17" propertyName="percentHeight" value="100"/> <AssertPropertyValue target="sparkAnimateConstraintsTests.b18" propertyName="percentHeight" value="50"/> </body> </TestCase> </testCases> </UnitTester>
{ "pile_set_name": "Github" }
name: "VGG_CNN_M_1024" layer { name: 'data' type: 'Python' top: 'data' top: 'rois' top: 'labels' top: 'bbox_targets' top: 'bbox_inside_weights' top: 'bbox_outside_weights' python_param { module: 'roi_data_layer.layer' layer: 'RoIDataLayer' param_str: "'num_classes': 21" } } layer { name: "conv1" type: "Convolution" bottom: "data" top: "conv1" param { lr_mult: 0 decay_mult: 0 } param { lr_mult: 0 decay_mult: 0 } convolution_param { num_output: 96 kernel_size: 7 stride: 2 } } layer { name: "relu1" type: "ReLU" bottom: "conv1" top: "conv1" } layer { name: "norm1" type: "LRN" bottom: "conv1" top: "norm1" lrn_param { local_size: 5 alpha: 0.0005 beta: 0.75 k: 2 } } layer { name: "pool1" type: "Pooling" bottom: "norm1" top: "pool1" pooling_param { pool: MAX kernel_size: 3 stride: 2 } } layer { name: "conv2" type: "Convolution" bottom: "pool1" top: "conv2" param { lr_mult: 0 decay_mult: 0 } param { lr_mult: 0 decay_mult: 0 } convolution_param { num_output: 256 pad: 1 kernel_size: 5 stride: 2 } } layer { name: "relu2" type: "ReLU" bottom: "conv2" top: "conv2" } layer { name: "norm2" type: "LRN" bottom: "conv2" top: "norm2" lrn_param { local_size: 5 alpha: 0.0005 beta: 0.75 k: 2 } } layer { name: "pool2" type: "Pooling" bottom: "norm2" top: "pool2" pooling_param { pool: MAX kernel_size: 3 stride: 2 } } layer { name: "conv3" type: "Convolution" bottom: "pool2" top: "conv3" param { lr_mult: 0 decay_mult: 0 } param { lr_mult: 0 decay_mult: 0 } convolution_param { num_output: 512 pad: 1 kernel_size: 3 } } layer { name: "relu3" type: "ReLU" bottom: "conv3" top: "conv3" } layer { name: "conv4" type: "Convolution" bottom: "conv3" top: "conv4" param { lr_mult: 0 decay_mult: 0 } param { lr_mult: 0 decay_mult: 0 } convolution_param { num_output: 512 pad: 1 kernel_size: 3 } } layer { name: "relu4" type: "ReLU" bottom: "conv4" top: "conv4" } layer { name: "conv5" type: "Convolution" bottom: "conv4" top: "conv5" param { lr_mult: 0 decay_mult: 0 } param { lr_mult: 0 decay_mult: 0 } convolution_param { num_output: 512 pad: 1 kernel_size: 3 } } layer { name: "relu5" type: "ReLU" bottom: "conv5" top: "conv5" } #========= RCNN ============ layer { name: "roi_pool5" type: "ROIPooling" bottom: "conv5" bottom: "rois" top: "pool5" roi_pooling_param { pooled_w: 6 pooled_h: 6 spatial_scale: 0.0625 # 1/16 } } layer { name: "fc6" type: "InnerProduct" bottom: "pool5" top: "fc6" param { lr_mult: 1 } param { lr_mult: 2 } inner_product_param { num_output: 4096 } } layer { name: "relu6" type: "ReLU" bottom: "fc6" top: "fc6" } layer { name: "drop6" type: "Dropout" bottom: "fc6" top: "fc6" dropout_param { dropout_ratio: 0.5 } } layer { name: "fc7" type: "InnerProduct" bottom: "fc6" top: "fc7" param { lr_mult: 1 } param { lr_mult: 2 } inner_product_param { num_output: 1024 } } layer { name: "relu7" type: "ReLU" bottom: "fc7" top: "fc7" } layer { name: "drop7" type: "Dropout" bottom: "fc7" top: "fc7" dropout_param { dropout_ratio: 0.5 } } layer { name: "cls_score" type: "InnerProduct" bottom: "fc7" top: "cls_score" param { lr_mult: 1 } param { lr_mult: 2 } inner_product_param { num_output: 21 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } } layer { name: "bbox_pred" type: "InnerProduct" bottom: "fc7" top: "bbox_pred" param { lr_mult: 1 } param { lr_mult: 2 } inner_product_param { num_output: 84 weight_filler { type: "gaussian" std: 0.001 } bias_filler { type: "constant" value: 0 } } } layer { name: "loss_cls" type: "SoftmaxWithLoss" bottom: "cls_score" bottom: "labels" propagate_down: 1 propagate_down: 0 top: "loss_cls" loss_weight: 1 } layer { name: "loss_bbox" type: "SmoothL1Loss" bottom: "bbox_pred" bottom: "bbox_targets" bottom: "bbox_inside_weights" bottom: "bbox_outside_weights" top: "loss_bbox" loss_weight: 1 } #========= RPN ============ # Dummy layers so that initial parameters are saved into the output net layer { name: "rpn_conv/3x3" type: "Convolution" bottom: "conv5" top: "rpn/output" param { lr_mult: 0 decay_mult: 0 } param { lr_mult: 0 decay_mult: 0 } convolution_param { num_output: 256 kernel_size: 3 pad: 1 stride: 1 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } } layer { name: "rpn_relu/3x3" type: "ReLU" bottom: "rpn/output" top: "rpn/output" } layer { name: "rpn_cls_score" type: "Convolution" bottom: "rpn/output" top: "rpn_cls_score" param { lr_mult: 0 decay_mult: 0 } param { lr_mult: 0 decay_mult: 0 } convolution_param { num_output: 18 # 2(bg/fg) * 9(anchors) kernel_size: 1 pad: 0 stride: 1 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } } layer { name: "rpn_bbox_pred" type: "Convolution" bottom: "rpn/output" top: "rpn_bbox_pred" param { lr_mult: 0 decay_mult: 0 } param { lr_mult: 0 decay_mult: 0 } convolution_param { num_output: 36 # 4 * 9(anchors) kernel_size: 1 pad: 0 stride: 1 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } } layer { name: "silence_rpn_cls_score" type: "Silence" bottom: "rpn_cls_score" } layer { name: "silence_rpn_bbox_pred" type: "Silence" bottom: "rpn_bbox_pred" }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">{ "Info": [ { "IsSuccess": "True", "InAddress": "臺南市北區公園北路152號", "InSRS": "EPSG:4326", "InFuzzyType": "[單雙號機制]+[最近門牌號機制]", "InFuzzyBuffer": "0", "InIsOnlyFullMatch": "False", "InIsLockCounty": "True", "InIsLockTown": "False", "InIsLockVillage": "False", "InIsLockRoadSection": "False", "InIsLockLane": "False", "InIsLockAlley": "False", "InIsLockArea": "False", "InIsSameNumber_SubNumber": "True", "InCanIgnoreVillage": "True", "InCanIgnoreNeighborhood": "True", "InReturnMaxCount": "0", "OutTotal": "1", "OutMatchType": "完全比對", "OutMatchCode": "[臺南市]\tFULL:1", "OutTraceInfo": "[臺南市]\t { 完全比對 } 找到符合的門牌地址" } ], "AddressList": [ { "FULL_ADDR": "臺南市北區長興里14鄰公園北路152號", "COUNTY": "臺南市", "TOWN": "北區", "VILLAGE": "長興里", "NEIGHBORHOOD": "14鄰", "ROAD": "公園北路", "SECTION": "", "LANE": "", "ALLEY": "", "SUB_ALLEY": "", "TONG": "", "NUMBER": "152號", "X": 120.208370, "Y": 23.005205 } ] }</string>
{ "pile_set_name": "Github" }
foo
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">x86</Platform> <ProjectGuid>{00F33249-4F2C-4FFB-B428-740044D3725B}</ProjectGuid> <OutputType>AppContainerExe</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>BugSweeper.WinUniversal</RootNamespace> <AssemblyName>BugSweeper.WinUniversal</AssemblyName> <DefaultLanguage>en-US</DefaultLanguage> <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier> <TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion> <TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion> <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion> <EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile> <FileAlignment>512</FileAlignment> <ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <PackageCertificateKeyFile>BugSweeper.WinUniversal_TemporaryKey.pfx</PackageCertificateKeyFile> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'"> <DebugSymbols>true</DebugSymbols> <OutputPath>bin\ARM\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> <NoWarn>;2008</NoWarn> <DebugType>full</DebugType> <PlatformTarget>ARM</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> <Prefer32Bit>true</Prefer32Bit> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'"> <OutputPath>bin\ARM\Release\</OutputPath> <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> <Optimize>true</Optimize> <NoWarn>;2008</NoWarn> <DebugType>pdbonly</DebugType> <PlatformTarget>ARM</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> <Prefer32Bit>true</Prefer32Bit> <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> <DebugSymbols>true</DebugSymbols> <OutputPath>bin\x64\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> <NoWarn>;2008</NoWarn> <DebugType>full</DebugType> <PlatformTarget>x64</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> <Prefer32Bit>true</Prefer32Bit> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> <OutputPath>bin\x64\Release\</OutputPath> <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> <Optimize>true</Optimize> <NoWarn>;2008</NoWarn> <DebugType>pdbonly</DebugType> <PlatformTarget>x64</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> <Prefer32Bit>true</Prefer32Bit> <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> <DebugSymbols>true</DebugSymbols> <OutputPath>bin\x86\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> <NoWarn>;2008</NoWarn> <DebugType>full</DebugType> <PlatformTarget>x86</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> <Prefer32Bit>true</Prefer32Bit> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> <OutputPath>bin\x86\Release\</OutputPath> <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> <Optimize>true</Optimize> <NoWarn>;2008</NoWarn> <DebugType>pdbonly</DebugType> <PlatformTarget>x86</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> <Prefer32Bit>true</Prefer32Bit> <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.0.12" /> <PackageReference Include="Xamarin.Forms" Version="4.8.0.1269" /> </ItemGroup> <ItemGroup /> <ItemGroup> <Compile Include="App.xaml.cs"> <DependentUpon>App.xaml</DependentUpon> </Compile> <Compile Include="MainPage.xaml.cs"> <DependentUpon>MainPage.xaml</DependentUpon> </Compile> <Compile Include="Properties\AssemblyInfo.cs" /> </ItemGroup> <ItemGroup> <AppxManifest Include="Package.appxmanifest"> <SubType>Designer</SubType> </AppxManifest> <None Include="BugSweeper.WinUniversal_TemporaryKey.pfx" /> </ItemGroup> <ItemGroup> <Content Include="Properties\Default.rd.xml" /> <Content Include="Assets\LockScreenLogo.scale-200.png" /> <Content Include="Assets\SplashScreen.scale-200.png" /> <Content Include="Assets\Square150x150Logo.scale-200.png" /> <Content Include="Assets\Square44x44Logo.scale-200.png" /> <Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" /> <Content Include="Assets\StoreLogo.png" /> <Content Include="Assets\Wide310x150Logo.scale-200.png" /> </ItemGroup> <ItemGroup> <ApplicationDefinition Include="App.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </ApplicationDefinition> <Page Include="MainPage.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> </ItemGroup> <ItemGroup> <ProjectReference Include="..\BugSweeper\BugSweeper.csproj"> <Project>{853d3300-5056-4005-9e71-e5d933889581}</Project> <Name>BugSweeper</Name> </ProjectReference> </ItemGroup> <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' "> <VisualStudioVersion>14.0</VisualStudioVersion> </PropertyGroup> <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" /> </Project>
{ "pile_set_name": "Github" }
根本わか最新番号 【VIKG-194】仕事中にハメられる女 【DUSA-015】潜入!放課後のSEX事情!!学校帰りのJKと本番OKな 秘 乱交パーティルーム 【VNDS-753】挑発レベルG 【AMD-248】1m以上の巨爆乳14人4時間14m超!! 【CADV-159】巨乳百選8時間DX 【AMD-225】働くOL 14人 4時間 【SIMG-112】ヌーディストGALビーチ 【AMD-200】BEST OF レイプ24人 4時間 【ALX-389】仕事の休憩中にAV出演する素人女 3 【SIMG-291】実はボインな働くオンナ達 【ALX-535】世代別巨乳図鑑 【RD-129】ザ・カメラテスト やめてください!こんなイヤラシイこと… でも白いお汁がタレてるよ 【SAK-8436】メガネおっぱい×オフィスレディ 【FN-054D】エッチなお姉さんに誘われて 23 【MVF-068D】巨乳女狩り 26</a>2006-08-18クリスタル映像$$$MANIAC(クリス99分钟
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>${EXECUTABLE_NAME}</string> <key>CFBundleIdentifier</key> <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>${PRODUCT_NAME}</string> <key>CFBundlePackageType</key> <string>FMWK</string> <key>CFBundleShortVersionString</key> <string>1.0.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>${CURRENT_PROJECT_VERSION}</string> <key>NSPrincipalClass</key> <string></string> </dict> </plist>
{ "pile_set_name": "Github" }
/* * Souffle - A Datalog Compiler * Copyright (c) 2018, The Souffle Developers. All rights reserved * Licensed under the Universal Permissive License v 1.0 as shown at: * - https://opensource.org/licenses/UPL * - <souffle root>/licenses/SOUFFLE-UPL.txt */ /************************************************************************ * * @file RemoveBooleanConstraints.h * ***********************************************************************/ #pragma once #include "ast/TranslationUnit.h" #include "ast/transform/Transformer.h" #include <string> namespace souffle::ast::transform { /** * Transformation pass to remove constant boolean constraints * Should be called after any transformation that may generate boolean constraints */ class RemoveBooleanConstraintsTransformer : public Transformer { public: std::string getName() const override { return "RemoveBooleanConstraintsTransformer"; } RemoveBooleanConstraintsTransformer* clone() const override { return new RemoveBooleanConstraintsTransformer(); } private: bool transform(TranslationUnit& translationUnit) override; }; } // namespace souffle::ast::transform
{ "pile_set_name": "Github" }
unit Frames.Helper; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Layouts , FMX.Edit , SubjectStand, FrameStand; type THelperFrame = class(TFrame) FlowLayout1: TFlowLayout; TenLessButton: TButton; FiveLessButton: TButton; FiveMoreButton: TButton; TenMoreButton: TButton; procedure TenLessButtonClick(Sender: TObject); procedure FiveLessButtonClick(Sender: TObject); procedure FiveMoreButtonClick(Sender: TObject); procedure TenMoreButtonClick(Sender: TObject); private { Private declarations } [Parent] FParent: TEdit; function GetCurrentValue: Integer; procedure SetCurrentValue(const Value: Integer); public { Public declarations } property CurrentValue: Integer read GetCurrentValue write SetCurrentValue; end; implementation {$R *.fmx} procedure THelperFrame.FiveLessButtonClick(Sender: TObject); begin CurrentValue := CurrentValue - 5; end; procedure THelperFrame.FiveMoreButtonClick(Sender: TObject); begin CurrentValue := CurrentValue + 5; end; function THelperFrame.GetCurrentValue: Integer; begin Result := StrToIntDef(FParent.Text, 0); end; procedure THelperFrame.SetCurrentValue(const Value: Integer); begin FParent.Text := Value.ToString; end; procedure THelperFrame.TenLessButtonClick(Sender: TObject); begin CurrentValue := CurrentValue - 10; end; procedure THelperFrame.TenMoreButtonClick(Sender: TObject); begin CurrentValue := CurrentValue + 10; end; end.
{ "pile_set_name": "Github" }
#ifndef CRYPTOPP_RC5_H #define CRYPTOPP_RC5_H /** \file */ #include "seckey.h" #include "secblock.h" NAMESPACE_BEGIN(CryptoPP) //! _ struct RC5_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 0, 255>, public VariableRounds<16> { static const char *StaticAlgorithmName() {return "RC5";} typedef word32 RC5_WORD; }; /// <a href="http://www.weidai.com/scan-mirror/cs.html#RC5">RC5</a> class RC5 : public RC5_Info, public BlockCipherDocumentation { class CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl<RC5_Info> { public: void UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs &params); protected: unsigned int r; // number of rounds SecBlock<RC5_WORD> sTable; // expanded key table }; class CRYPTOPP_NO_VTABLE Enc : public Base { public: void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const; }; class CRYPTOPP_NO_VTABLE Dec : public Base { public: void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const; }; public: typedef BlockCipherFinal<ENCRYPTION, Enc> Encryption; typedef BlockCipherFinal<DECRYPTION, Dec> Decryption; }; typedef RC5::Encryption RC5Encryption; typedef RC5::Decryption RC5Decryption; NAMESPACE_END #endif
{ "pile_set_name": "Github" }
# $OpenBSD$ COMMENT = the picolisp system V = 19.6 DISTNAME = picoLisp-$V PKGNAME = picolisp-$V CATEGORIES = lang HOMEPAGE = https://picolisp.com/wiki/?home MAINTAINER = Aaron Bieber <[email protected]> EXTRACT_SUFX = .tgz WRKDIST = ${WRKDIR}/picoLisp/src64 MODULES = java MODJAVA_VER = 1.8+ MODJAVA_JRERUN = yes MAKE_FLAGS = PATH=${PATH}:${JAVA_HOME}/bin BUILD_DEPENDS = java/javaPathHelper WANTLIB += c m # BSD? PERMIT_PACKAGE = Yes MASTER_SITES = https://software-lab.de/ USE_GMAKE = Yes NO_TEST = Yes SUBST_VARS += LOCALBASE pre-configure: ${SUBST_CMD} ${WRKDIST}/../bin/pil do-install: ${INSTALL_DATA_DIR} ${PREFIX}/lib/picolisp ${INSTALL_DATA_DIR} ${PREFIX}/lib/picolisp/lib ${INSTALL_DATA} ${WRKDIST}/../*.l ${PREFIX}/lib/picolisp/ ${INSTALL_DATA} ${WRKDIST}/../lib/*.l ${PREFIX}/lib/picolisp/lib/ ${INSTALL_PROGRAM} ${WRKDIST}/../bin/picolisp ${PREFIX}/bin/ ${INSTALL_PROGRAM} ${WRKDIST}/../bin/pil ${PREFIX}/bin/ ${INSTALL_MAN} ${WRKDIST}/../man/man1/*.1 ${PREFIX}/man/man1/ .include <bsd.port.mk>
{ "pile_set_name": "Github" }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@broid/utils"); const Promise = require("bluebird"); const express = require("express"); class WebHookServer { constructor(options, router, logLevel) { this.host = options.host; this.port = options.port; this.logger = new utils_1.Logger('webhookServer', logLevel || 'info'); this.setupExpress(router); } listen() { this.httpClient = this.express.listen(this.port, this.host, () => { this.logger.info(`Server listening on port ${this.host}:${this.port}...`); }); } close() { return Promise.fromCallback((cb) => this.httpClient.close(cb)); } setupExpress(router) { this.express = express(); this.express.use('/', router); } } exports.WebHookServer = WebHookServer;
{ "pile_set_name": "Github" }
# # Copyright (C) 2016 Samsung Electronics # Thomas Abraham <[email protected]> # # SPDX-License-Identifier: GPL-2.0+ # obj-y += clk-pll.o obj-$(CONFIG_CLK_EXYNOS7420) += clk-exynos7420.o
{ "pile_set_name": "Github" }
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from helpers import unittest import mysql.connector from luigi.contrib.mysqldb import MySqlTarget host = 'localhost' port = 3306 database = 'luigi_test' username = None password = None table_updates = 'table_updates' def _create_test_database(): con = mysql.connector.connect(user=username, password=password, host=host, port=port, autocommit=True) con.cursor().execute('CREATE DATABASE IF NOT EXISTS %s' % database) _create_test_database() target = MySqlTarget(host, database, username, password, '', 'update_id') class MySqlTargetTest(unittest.TestCase): def test_touch_and_exists(self): drop() self.assertFalse(target.exists(), 'Target should not exist before touching it') target.touch() self.assertTrue(target.exists(), 'Target should exist after touching it') def drop(): con = target.connect(autocommit=True) con.cursor().execute('DROP TABLE IF EXISTS %s' % table_updates)
{ "pile_set_name": "Github" }
# coding: utf-8 """ BitMEX API ## REST API for the BitMEX Trading Platform [View Changelog](/app/apiChangelog) - #### Getting Started Base URI: [https://www.bitmex.com/api/v1](/api/v1) ##### Fetching Data All REST endpoints are documented below. You can try out any query right from this interface. Most table queries accept `count`, `start`, and `reverse` params. Set `reverse=true` to get rows newest-first. Additional documentation regarding filters, timestamps, and authentication is available in [the main API documentation](/app/restAPI). _All_ table data is available via the [Websocket](/app/wsAPI). We highly recommend using the socket if you want to have the quickest possible data without being subject to ratelimits. ##### Return Types By default, all data is returned as JSON. Send `?_format=csv` to get CSV data or `?_format=xml` to get XML data. ##### Trade Data Queries _This is only a small subset of what is available, to get you started._ Fill in the parameters and click the `Try it out!` button to try any of these queries. - [Pricing Data](#!/Quote/Quote_get) - [Trade Data](#!/Trade/Trade_get) - [OrderBook Data](#!/OrderBook/OrderBook_getL2) - [Settlement Data](#!/Settlement/Settlement_get) - [Exchange Statistics](#!/Stats/Stats_history) Every function of the BitMEX.com platform is exposed here and documented. Many more functions are available. ##### Swagger Specification [⇩ Download Swagger JSON](swagger.json) - ## All API Endpoints Click to expand a section. # noqa: E501 OpenAPI spec version: 1.2.0 Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.models.index_composite import IndexComposite # noqa: E501 from swagger_client.rest import ApiException class TestIndexComposite(unittest.TestCase): """IndexComposite unit test stubs""" def setUp(self): pass def tearDown(self): pass def testIndexComposite(self): """Test IndexComposite""" # FIXME: construct object with mandatory attributes with example values # model = swagger_client.models.index_composite.IndexComposite() # noqa: E501 pass if __name__ == '__main__': unittest.main()
{ "pile_set_name": "Github" }
package org.apache.velocity.test; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.Test; import junit.framework.TestSuite; import org.apache.velocity.app.Velocity; import org.apache.velocity.test.misc.TestLogger; import org.apache.velocity.util.introspection.Introspector; import java.lang.reflect.Method; /** * Test case for the Velocity Introspector which * tests the ability to find a 'best match' * * * @author <a href="mailto:[email protected]">Geir Magnusson Jr.</a> * @version $Id$ */ public class Introspector2TestCase extends BaseTestCase { /** * Creates a new instance. */ public Introspector2TestCase(String name) { super(name); } /** * Get the containing <code>TestSuite</code>. * * @return The <code>TestSuite</code> to run. */ public static Test suite () { return new TestSuite(Introspector2TestCase.class); } public void testIntrospector() throws Exception { Velocity.setProperty( Velocity.RUNTIME_LOG_INSTANCE, new TestLogger()); Velocity.init(); Method method; String result; Tester t = new Tester(); Object[] params = { new Foo(), new Foo() }; Introspector introspector = new Introspector(log); method = introspector .getMethod( Tester.class, "find", params ); if ( method == null) fail("Returned method was null"); result = (String) method.invoke( t, params); if ( !result.equals( "Bar-Bar" ) ) { fail("Should have gotten 'Bar-Bar' : received '" + result + "'"); } /* * now test for failure due to ambiguity */ method = introspector .getMethod( Tester2.class, "find", params ); if ( method != null) fail("Introspector shouldn't have found a method as it's ambiguous."); } public interface Woogie { } public static class Bar implements Woogie { int i; } public static class Foo extends Bar { int j; } public static class Tester { public static String find(Woogie w, Object o ) { return "Woogie-Object"; } public static String find(Object w, Bar o ) { return "Object-Bar"; } public static String find(Bar w, Bar o ) { return "Bar-Bar"; } public static String find( Object o ) { return "Object"; } public static String find( Woogie o ) { return "Woogie"; } } public static class Tester2 { public static String find(Woogie w, Object o ) { return "Woogie-Object"; } public static String find(Object w, Bar o ) { return "Object-Bar"; } public static String find(Bar w, Object o ) { return "Bar-Object"; } public static String find( Object o ) { return "Object"; } public static String find( Woogie o ) { return "Woogie"; } } }
{ "pile_set_name": "Github" }
MM.UI.Value = function() { this._select = document.querySelector("#value"); this._select.addEventListener("change", this); } MM.UI.Value.prototype.update = function() { var value = MM.App.current.getValue(); if (value === null) { value = ""; } if (typeof(value) == "number") { value = "num" } this._select.value = value; } MM.UI.Value.prototype.handleEvent = function(e) { var value = this._select.value; if (value == "num") { MM.Command.Value.execute(); } else { var action = new MM.Action.SetValue(MM.App.current, value || null); MM.App.action(action); } }
{ "pile_set_name": "Github" }
/* * * globalWrite.cu * * Microbenchmark for write bandwidth to global memory. * * Build with: nvcc -I ../chLib <options> globalWrite.cu * Requires: No minimum SM requirement. * * Copyright (c) 2011-2012, Archaea Software, LLC. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * */ #include <stdio.h> #include <chError.h> #include <chCommandLine.h> template<class T> __device__ __host__ T plus( const T& a, const T& b ) { T ret = a; ret += b; return ret; } struct myInt2 { int2 i2; __host__ __device__ myInt2() { } __host__ __device__ myInt2( int i ) { i2.x = i2.y = i; } }; template<> __device__ __host__ myInt2 plus( const myInt2& a, const myInt2& b ) { myInt2 ret; ret.i2.x = a.i2.x + b.i2.x; ret.i2.y = a.i2.y + b.i2.y; return ret; } struct myInt4 { int4 i4; __host__ __device__ myInt4() { } __host__ __device__ myInt4( int i ) { i4.x = i4.y = i4.z = i4.w = i; } }; template<> __device__ __host__ myInt4 plus( const myInt4& a, const myInt4& b ) { myInt4 ret; ret.i4.x = a.i4.x + b.i4.x; ret.i4.y = a.i4.y + b.i4.y; ret.i4.z = a.i4.z + b.i4.z; ret.i4.w = a.i4.w + b.i4.w; return ret; } template<class T, const int n> __global__ void GlobalWrites( T *out, T value, size_t N ) { size_t i; for ( i = n*blockIdx.x*blockDim.x+threadIdx.x; i < N-n*blockDim.x*gridDim.x; i += n*blockDim.x*gridDim.x ) { for ( int j = 0; j < n; j++ ) { size_t index = i+j*blockDim.x; out[index] = value; } } // to avoid the (index<N) conditional in the inner loop, // we left off some work at the end for ( int j = 0; j < n; j++ ) { size_t index = i+j*blockDim.x; if ( index<N ) out[index] = value; } } template<class T, const int n, bool bOffset> double BandwidthWrites( size_t N, int cBlocks, int cThreads ) { T *out = 0; double ret = 0.0; double elapsedTime; float ms; int cIterations; cudaError_t status; cudaEvent_t evStart = 0; cudaEvent_t evStop = 0; cuda(Malloc( &out, N*sizeof(T) ) ); cuda(EventCreate( &evStart ) ); cuda(EventCreate( &evStop ) ); cIterations = 10; cudaEventRecord( evStart ); for ( int i = 0; i < cIterations; i++ ) { GlobalWrites<T,n><<<cBlocks,cThreads>>>( out+bOffset, (T) 0xcc, N-bOffset ); } cudaEventRecord( evStop ); cuda(ThreadSynchronize() ); // make configurations that cannot launch error-out with 0 bandwidth cuda(GetLastError() ); cuda(EventElapsedTime( &ms, evStart, evStop ) ); elapsedTime = ms/1000.0f; // bytes per second ret = ((double)N*cIterations*sizeof(T)) / elapsedTime; // gigabytes per second ret /= 1024.0*1048576.0; Error: cudaEventDestroy( evStart ); cudaEventDestroy( evStop ); cudaFree( out ); return ret; } template<class T, const int n, bool bOffset> double ReportRow( size_t N, size_t threadStart, size_t threadStop, size_t cBlocks ) { int maxThreads = 0; double maxBW = 0.0; printf( "%d\t", n ); for ( int cThreads = threadStart; cThreads <= threadStop; cThreads *= 2 ) { double bw; bw = BandwidthWrites<T,n,bOffset>( N, cBlocks, cThreads ); if ( bw > maxBW ) { maxBW = bw; maxThreads = cThreads; } printf( "%.2f\t", bw ); } printf( "%.2f\t%d\n", maxBW, maxThreads ); return maxBW; } template<class T, bool bCoalesced> void Shmoo( size_t N, size_t threadStart, size_t threadStop, size_t cBlocks ) { printf( "Operand size: %d byte%c\n", (int) sizeof(T), sizeof(T)==1 ? '\0' : 's' ); printf( "Input size: %dM operands\n", (int) (N>>20) ); printf( " Block Size\n" ); printf( "Unroll\t" ); for ( int cThreads = threadStart; cThreads <= threadStop; cThreads *= 2 ) { printf( "%d\t", cThreads ); } printf( "maxBW\tmaxThreads\n" ); ReportRow<T, 1, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T, 2, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T, 3, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T, 4, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T, 5, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T, 6, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T, 7, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T, 8, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T, 9, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T,10, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T,11, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T,12, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T,13, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T,14, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T,15, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); ReportRow<T,16, ! bCoalesced>( N, threadStart, threadStop, cBlocks ); } int main( int argc, char *argv[] ) { int device = 0; int size = 16; if ( chCommandLineGet( &device, "device", argc, argv ) ) { printf( "Using device %d...\n", device ); } cudaSetDevice(device); if ( chCommandLineGet( &size, "size", argc, argv ) ) { printf( "Using %dM operands ...\n", size ); } if ( chCommandLineGetBool( "uncoalesced", argc, argv ) ) { printf( "Using uncoalesced memory transactions\n" ); Shmoo<char,false>( (size_t) size*1048576, 32, 512, 150 ); Shmoo<short,false>( (size_t) size*1048576, 32, 512, 150 ); Shmoo<int,false>( (size_t) size*1048576, 32, 512, 150 ); Shmoo<myInt2,false>( (size_t) size*1048576, 32, 512, 150 ); Shmoo<myInt4,false>( (size_t) size*1048576, 32, 512, 150 ); } else { printf( "Using coalesced memory transactions\n" ); Shmoo<char,true>( (size_t) size*1048576, 32, 512, 150 ); Shmoo<short,true>( (size_t) size*1048576, 32, 512, 150 ); Shmoo<int,true>( (size_t) size*1048576, 32, 512, 150 ); Shmoo<myInt2,true>( (size_t) size*1048576, 32, 512, 150 ); Shmoo<myInt4,true>( (size_t) size*1048576, 32, 512, 150 ); } return 0; }
{ "pile_set_name": "Github" }
using System; using System.Collections; using System.Windows.Input; using Xamarin.Forms; namespace StarWarsSample.Forms.UI.Behaviors { public class InfiniteScroll : Behavior<ListView> { public static readonly BindableProperty LoadMoreCommandProperty = BindableProperty.Create( nameof(LoadMoreCommand), typeof(ICommand), typeof(InfiniteScroll), null); public ICommand LoadMoreCommand { get => (ICommand)GetValue(LoadMoreCommandProperty); set => SetValue(LoadMoreCommandProperty, value); } public ListView AssociatedObject { get; private set; } protected override void OnAttachedTo(ListView bindable) { base.OnAttachedTo(bindable); AssociatedObject = bindable; bindable.BindingContextChanged += Bindable_BindingContextChanged; bindable.ItemAppearing += InfiniteListView_ItemAppearing; } private void Bindable_BindingContextChanged(object sender, EventArgs e) { OnBindingContextChanged(); } protected override void OnBindingContextChanged() { base.OnBindingContextChanged(); BindingContext = AssociatedObject.BindingContext; } protected override void OnDetachingFrom(ListView bindable) { base.OnDetachingFrom(bindable); bindable.BindingContextChanged -= Bindable_BindingContextChanged; bindable.ItemAppearing -= InfiniteListView_ItemAppearing; } private void InfiniteListView_ItemAppearing(object sender, ItemVisibilityEventArgs e) { var items = AssociatedObject.ItemsSource as IList; if (items != null && e.Item == items[items.Count - 1]) { if (LoadMoreCommand != null && LoadMoreCommand.CanExecute(null)) LoadMoreCommand.Execute(null); } } } }
{ "pile_set_name": "Github" }
Spree.ready(function() { $(".style-guide-nav, .style-guide-sidebar").stick_in_parent(); });
{ "pile_set_name": "Github" }
list-jdbc-resources(1) asadmin Utility Subcommands list-jdbc-resources(1) NAME list-jdbc-resources - lists all JDBC resources SYNOPSIS list-jdbc-resources [--help] [target target] DESCRIPTION The list-jdbc-resources subcommand displays a list of the existing JDBC resources. This subcommand is supported in remote mode only. OPTIONS --help, -? Displays the help text for the subcommand. OPERANDS --target This operand specifies which JDBC resources you can list. Usage of this operand is optional. Valid values are: server Lists the JDBC resources in the current server and is the default. domain Lists the JDBC resources in the current domain. cluster_name Lists the JDBC resources in a cluster. instance_name Lists the JDBC resources for a particular instance. EXAMPLES Example 1, Listing the JDBC Resources This example lists the current JDBC resources. asadmin> list-jdbc-resources jdbc/DerbyPool Command list-jdbc-resources executed successfully. EXIT STATUS 0 subcommand executed successfully 1 error in executing the subcommand SEE ALSO create-jdbc-resource(1), delete-jdbc-resource(1) asadmin(1M) Java EE 8 17 Sep 2010 list-jdbc-resources(1)
{ "pile_set_name": "Github" }
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # # http://www.apache.org/licenses/LICENSE-2.0 # # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. from aliyunsdkcore.request import RpcRequest from aliyunsdkvod.endpoint import endpoint_data class DescribeVodDomainConfigsRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'vod', '2017-03-21', 'DescribeVodDomainConfigs','vod') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) def get_FunctionNames(self): return self.get_query_params().get('FunctionNames') def set_FunctionNames(self,FunctionNames): self.add_query_param('FunctionNames',FunctionNames) def get_DomainName(self): return self.get_query_params().get('DomainName') def set_DomainName(self,DomainName): self.add_query_param('DomainName',DomainName) def get_OwnerId(self): return self.get_query_params().get('OwnerId') def set_OwnerId(self,OwnerId): self.add_query_param('OwnerId',OwnerId) def get_SecurityToken(self): return self.get_query_params().get('SecurityToken') def set_SecurityToken(self,SecurityToken): self.add_query_param('SecurityToken',SecurityToken)
{ "pile_set_name": "Github" }
sib'4 r16 sol' fa' mib' re'4 sol' ~| sol'8 sol re'8. re'16 re'8. re'16 sol'8. sol'16 | sol'4. fa'8 mib'8. re'16 do'8. sib16 | la2 fad4 la8. sib16 | do'4 do'8. sib16 la4 la | sol8. la16 sib8. do'16 re'4 re'8. do'16 | sib4 fa'8. mib'16 re'4 sol'8. sol'16 | fa'4. fa'8 sol'4 sol'8. fa'16 | mib'8. mib'16 re'8. do'16 si4 re' | do' mi' mi'4. mi'8 | re'4. re'8 mi' fad' fad' mi'16 fad' | sol'4 sol'8. la'16 sib'8. la'16 sol'8. fa'16 | mi'2 dod'4 mi'8. fa'16 | sol'4 sol'8. fa'16 mi'4. mi'8 | mi'4 dod' re'4. re'8 | re'4 mi'8 re' dod'4. re'8 | re'8. dod'16 re'8. mi'16 fad'8. fad'16 sol'8. la'16 | re'1 | R2*9 | r8 re' re' do'16 sib | do'8 re'16 do' re' do' sib la | sib8 sol16 la si8 si16 do' | re'2 ~| re'8 sol do'4 ~| do'8 re'16 do' si8. si16 | do'4 ~ do'8 re'16 do' | sib8 mib'16 re' mib'8. mib'16 | mib'8 fa'16 sol' la' sol' fa' mib' | re'8 re'16 do' si do' re'8 | do' lab' sol'8. sol'16 | sol'4. mib'8 | mib' re' do'8. do'16 | do'8 la16 sib do'8 do'16 sib | sib8 sib16 do' re'8 mib'16 fa' | sib8 sib16 do' re' re' mib' fa' | sol'8 sol' sol' fa'16 fa' | fa'8 fa'16 mib' re' mib' fa'8 | mib' sol' fa' mib'16 re' | re'8 fa'16 mib' re'8 sib do'4 re' | do'8 sol'16 fa' mib' mib' re' do' | sib8 sib16 la sol8 sol | do' do' re' sib | sib do'16 re' mib'8 do' | la re' re'8. re'16 | re'2 ~| re'8 re' re'8. re'16 | do'8 do'16 re' mi'8 mi'16 re' | dod'8 dod'16 re' mi' re' mi' dod' | re'8 mi'16 fad' sol'8. fad'16 | sol'8 re' re'8. re'16 | do'8 sol' la' fa' | mi' fa'16 sol' mi'8. fa'16 | fa'8 fa' do' fa'16 mib' | re'8 re' sol'8. sol'16 | fa'8 fa' fa'8. fa'16 | fa'8 re' sol'4 ~| sol'8 la'16 sol' fad'8. fad'16 | sol'8 sib16 do' re'8 re'16 mib' | re'4. re'8 | sib sib mib' mib'16 re' | do'8 sib16 la sol8 do'16 sib | la8 la re'4 ~| re'8 re' re'8. re'16 | re'8 do' sib la16 sol | la8 la re'8. re'16 | re'8 do'16 sib la8 mib' | re' sol'16 la' fad'8. sol'16 | sol'2 ~| sol'4. sol'8 | sol' mib' mib'8. mib'16 | mi'8 re' dod' re'16 mi' | re' mi' fad' sol' la' sol' fad' mi' | re'8 mib' re'8. re'16 | re'1*1/2 |
{ "pile_set_name": "Github" }
public java.lang.Object jAnalogClock_jCreate(long _Self) { return (java.lang.Object)(new jAnalogClock(this,_Self)); }
{ "pile_set_name": "Github" }
//! moment.js locale configuration ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; var frCa = moment.defineLocale('fr-ca', { months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), monthsParseExact : true, weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), weekdaysParseExact : true, longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', L : 'YYYY-MM-DD', LL : 'D MMMM YYYY', LLL : 'D MMMM YYYY HH:mm', LLLL : 'dddd D MMMM YYYY HH:mm' }, calendar : { sameDay : '[Aujourd’hui à] LT', nextDay : '[Demain à] LT', nextWeek : 'dddd [à] LT', lastDay : '[Hier à] LT', lastWeek : 'dddd [dernier à] LT', sameElse : 'L' }, relativeTime : { future : 'dans %s', past : 'il y a %s', s : 'quelques secondes', ss : '%d secondes', m : 'une minute', mm : '%d minutes', h : 'une heure', hh : '%d heures', d : 'un jour', dd : '%d jours', M : 'un mois', MM : '%d mois', y : 'un an', yy : '%d ans' }, dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, ordinal : function (number, period) { switch (period) { // Words with masculine grammatical gender: mois, trimestre, jour default: case 'M': case 'Q': case 'D': case 'DDD': case 'd': return number + (number === 1 ? 'er' : 'e'); // Words with feminine grammatical gender: semaine case 'w': case 'W': return number + (number === 1 ? 're' : 'e'); } } }); return frCa; })));
{ "pile_set_name": "Github" }
menuconfig BR2_PACKAGE_SDL_IMAGE bool "SDL_image" depends on BR2_PACKAGE_SDL help SDL_image is an image file loading library. It loads images as SDL surfaces, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, XCF, XPM, XV. http://www.libsdl.org/projects/SDL_image/ if BR2_PACKAGE_SDL_IMAGE config BR2_PACKAGE_SDL_IMAGE_BMP bool "BMP support" default y config BR2_PACKAGE_SDL_IMAGE_GIF bool "GIF support" config BR2_PACKAGE_SDL_IMAGE_JPEG bool "JPEG support" select BR2_PACKAGE_JPEG config BR2_PACKAGE_SDL_IMAGE_LBM bool "LBM support" config BR2_PACKAGE_SDL_IMAGE_PCX bool "PCX support" config BR2_PACKAGE_SDL_IMAGE_PNG bool "PNG support" select BR2_PACKAGE_LIBPNG config BR2_PACKAGE_SDL_IMAGE_PNM bool "PNM support" config BR2_PACKAGE_SDL_IMAGE_TARGA bool "TARGA support" config BR2_PACKAGE_SDL_IMAGE_TIFF bool "TIFF support" select BR2_PACKAGE_TIFF config BR2_PACKAGE_SDL_IMAGE_WEBP bool "WEBP support" select BR2_PACKAGE_WEBP config BR2_PACKAGE_SDL_IMAGE_XCF bool "XCF support" config BR2_PACKAGE_SDL_IMAGE_XPM bool "XPM support" config BR2_PACKAGE_SDL_IMAGE_XV bool "XV support" endif
{ "pile_set_name": "Github" }
// // MNViewController.h // MNCalendarViewExample // // Created by Min Kim on 7/26/13. // Copyright (c) 2013 min. All rights reserved. // #import <UIKit/UIKit.h> @interface MNViewController : UIViewController - (instancetype)initWithCalendar:(NSCalendar *)calendar title:(NSString *)title; @end
{ "pile_set_name": "Github" }
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Tests\Loader; use Symfony\Component\Routing\Loader\AnnotationFileLoader; use Symfony\Component\Config\FileLocator; use Symfony\Component\Routing\Annotation\Route; class AnnotationFileLoaderTest extends AbstractAnnotationLoaderTest { protected $loader; protected $reader; protected function setUp() { parent::setUp(); $this->reader = $this->getReader(); $this->loader = new AnnotationFileLoader(new FileLocator(), $this->getClassLoader($this->reader)); } public function testLoad() { $this->reader->expects($this->once())->method('getClassAnnotation'); $this->loader->load(__DIR__.'/../Fixtures/AnnotatedClasses/FooClass.php'); } /** * @requires PHP 5.4 */ public function testLoadTraitWithClassConstant() { $this->reader->expects($this->never())->method('getClassAnnotation'); $this->loader->load(__DIR__.'/../Fixtures/AnnotatedClasses/FooTrait.php'); } /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage Did you forgot to add the "<?php" start tag at the beginning of the file? */ public function testLoadFileWithoutStartTag() { $this->loader->load(__DIR__.'/../Fixtures/OtherAnnotatedClasses/NoStartTagClass.php'); } /** * @requires PHP 5.6 */ public function testLoadVariadic() { $route = new Route(array('path' => '/path/to/{id}')); $this->reader->expects($this->once())->method('getClassAnnotation'); $this->reader->expects($this->once())->method('getMethodAnnotations') ->will($this->returnValue(array($route))); $this->loader->load(__DIR__.'/../Fixtures/OtherAnnotatedClasses/VariadicClass.php'); } public function testSupports() { $fixture = __DIR__.'/../Fixtures/annotated.php'; $this->assertTrue($this->loader->supports($fixture), '->supports() returns true if the resource is loadable'); $this->assertFalse($this->loader->supports('foo.foo'), '->supports() returns true if the resource is loadable'); $this->assertTrue($this->loader->supports($fixture, 'annotation'), '->supports() checks the resource type if specified'); $this->assertFalse($this->loader->supports($fixture, 'foo'), '->supports() checks the resource type if specified'); } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorPrimary">#3F51B5</color> <color name="colorPrimaryDark">#303F9F</color> <color name="colorAccent">#FF4081</color> </resources>
{ "pile_set_name": "Github" }
// Copyright 2013-2016 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package btcec import ( "encoding/hex" "testing" ) // BenchmarkAddJacobian benchmarks the secp256k1 curve addJacobian function with // Z values of 1 so that the associated optimizations are used. func BenchmarkAddJacobian(b *testing.B) { b.StopTimer() x1 := new(fieldVal).SetHex("34f9460f0e4f08393d192b3c5133a6ba099aa0ad9fd54ebccfacdfa239ff49c6") y1 := new(fieldVal).SetHex("0b71ea9bd730fd8923f6d25a7a91e7dd7728a960686cb5a901bb419e0f2ca232") z1 := new(fieldVal).SetHex("1") x2 := new(fieldVal).SetHex("34f9460f0e4f08393d192b3c5133a6ba099aa0ad9fd54ebccfacdfa239ff49c6") y2 := new(fieldVal).SetHex("0b71ea9bd730fd8923f6d25a7a91e7dd7728a960686cb5a901bb419e0f2ca232") z2 := new(fieldVal).SetHex("1") x3, y3, z3 := new(fieldVal), new(fieldVal), new(fieldVal) curve := S256() b.StartTimer() for i := 0; i < b.N; i++ { curve.addJacobian(x1, y1, z1, x2, y2, z2, x3, y3, z3) } } // BenchmarkAddJacobianNotZOne benchmarks the secp256k1 curve addJacobian // function with Z values other than one so the optimizations associated with // Z=1 aren't used. func BenchmarkAddJacobianNotZOne(b *testing.B) { b.StopTimer() x1 := new(fieldVal).SetHex("d3e5183c393c20e4f464acf144ce9ae8266a82b67f553af33eb37e88e7fd2718") y1 := new(fieldVal).SetHex("5b8f54deb987ec491fb692d3d48f3eebb9454b034365ad480dda0cf079651190") z1 := new(fieldVal).SetHex("2") x2 := new(fieldVal).SetHex("91abba6a34b7481d922a4bd6a04899d5a686f6cf6da4e66a0cb427fb25c04bd4") y2 := new(fieldVal).SetHex("03fede65e30b4e7576a2abefc963ddbf9fdccbf791b77c29beadefe49951f7d1") z2 := new(fieldVal).SetHex("3") x3, y3, z3 := new(fieldVal), new(fieldVal), new(fieldVal) curve := S256() b.StartTimer() for i := 0; i < b.N; i++ { curve.addJacobian(x1, y1, z1, x2, y2, z2, x3, y3, z3) } } // BenchmarkScalarBaseMult benchmarks the secp256k1 curve ScalarBaseMult // function. func BenchmarkScalarBaseMult(b *testing.B) { k := fromHex("d74bf844b0862475103d96a611cf2d898447e288d34b360bc885cb8ce7c00575") curve := S256() for i := 0; i < b.N; i++ { curve.ScalarBaseMult(k.Bytes()) } } // BenchmarkScalarBaseMultLarge benchmarks the secp256k1 curve ScalarBaseMult // function with abnormally large k values. func BenchmarkScalarBaseMultLarge(b *testing.B) { k := fromHex("d74bf844b0862475103d96a611cf2d898447e288d34b360bc885cb8ce7c005751111111011111110") curve := S256() for i := 0; i < b.N; i++ { curve.ScalarBaseMult(k.Bytes()) } } // BenchmarkScalarMult benchmarks the secp256k1 curve ScalarMult function. func BenchmarkScalarMult(b *testing.B) { x := fromHex("34f9460f0e4f08393d192b3c5133a6ba099aa0ad9fd54ebccfacdfa239ff49c6") y := fromHex("0b71ea9bd730fd8923f6d25a7a91e7dd7728a960686cb5a901bb419e0f2ca232") k := fromHex("d74bf844b0862475103d96a611cf2d898447e288d34b360bc885cb8ce7c00575") curve := S256() for i := 0; i < b.N; i++ { curve.ScalarMult(x, y, k.Bytes()) } } // BenchmarkNAF benchmarks the NAF function. func BenchmarkNAF(b *testing.B) { k := fromHex("d74bf844b0862475103d96a611cf2d898447e288d34b360bc885cb8ce7c00575") for i := 0; i < b.N; i++ { NAF(k.Bytes()) } } // BenchmarkSigVerify benchmarks how long it takes the secp256k1 curve to // verify signatures. func BenchmarkSigVerify(b *testing.B) { b.StopTimer() // Randomly generated keypair. // Private key: 9e0699c91ca1e3b7e3c9ba71eb71c89890872be97576010fe593fbf3fd57e66d pubKey := PublicKey{ Curve: S256(), X: fromHex("d2e670a19c6d753d1a6d8b20bd045df8a08fb162cf508956c31268c6d81ffdab"), Y: fromHex("ab65528eefbb8057aa85d597258a3fbd481a24633bc9b47a9aa045c91371de52"), } // Double sha256 of []byte{0x01, 0x02, 0x03, 0x04} msgHash := fromHex("8de472e2399610baaa7f84840547cd409434e31f5d3bd71e4d947f283874f9c0") sig := Signature{ R: fromHex("fef45d2892953aa5bbcdb057b5e98b208f1617a7498af7eb765574e29b5d9c2c"), S: fromHex("d47563f52aac6b04b55de236b7c515eb9311757db01e02cff079c3ca6efb063f"), } if !sig.Verify(msgHash.Bytes(), &pubKey) { b.Errorf("Signature failed to verify") return } b.StartTimer() for i := 0; i < b.N; i++ { sig.Verify(msgHash.Bytes(), &pubKey) } } // BenchmarkFieldNormalize benchmarks how long it takes the internal field // to perform normalization (which includes modular reduction). func BenchmarkFieldNormalize(b *testing.B) { // The normalize function is constant time so default value is fine. f := new(fieldVal) for i := 0; i < b.N; i++ { f.Normalize() } } // BenchmarkParseCompressedPubKey benchmarks how long it takes to decompress and // validate a compressed public key from a byte array. func BenchmarkParseCompressedPubKey(b *testing.B) { rawPk, _ := hex.DecodeString("0234f9460f0e4f08393d192b3c5133a6ba099aa0ad9fd54ebccfacdfa239ff49c6") var ( pk *PublicKey err error ) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { pk, err = ParsePubKey(rawPk, S256()) } _ = pk _ = err }
{ "pile_set_name": "Github" }
//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. // All rights reserved. // // This code is licensed under the MIT License. // // 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. // //------------------------------------------------------------------------------ namespace Microsoft.IdentityModel.Protocols.OpenIdConnect { /// <summary> /// Response types for OpenIdConnect. /// </summary> /// <remarks>Can be used to determine the message type by consumers of an <see cref="OpenIdConnectMessage"/>. /// For example: OpenIdConnectMessageTests.Publics() sets <see cref="OpenIdConnectMessage.ResponseType"/> /// to <see cref="OpenIdConnectResponseType.CodeIdToken"/>.</remarks> public static class OpenIdConnectResponseType { /// <summary> /// Indicates 'code' type see: http://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth. /// For Example: http://openid.net/specs/openid-connect-core-1_0.html#codeExample. /// </summary> public const string Code = "code"; /// <summary> /// Indicates 'code id_token' type see: http://openid.net/specs/openid-connect-core-1_0.html#HybridAuthRequest. /// For Example: http://openid.net/specs/openid-connect-core-1_0.html#code-id_tokenExample. /// </summary> public const string CodeIdToken = "code id_token"; /// <summary> /// Indicates 'code id_token token' type see: http://openid.net/specs/openid-connect-core-1_0.html#HybridAuthRequest. /// For Example: http://openid.net/specs/openid-connect-core-1_0.html#code-id_token-tokenExample. /// </summary> public const string CodeIdTokenToken = "code id_token token"; /// <summary> /// Indicates 'code token' type see: http://openid.net/specs/openid-connect-core-1_0.html#HybridAuthRequest. /// For Example: http://openid.net/specs/openid-connect-core-1_0.html#code-tokenExample. /// </summary> public const string CodeToken = "code token"; /// <summary> /// Indicates 'id_token' type see: http://openid.net/specs/openid-connect-core-1_0.html#HybridAuthRequest. /// For Example: http://openid.net/specs/openid-connect-core-1_0.html#id_tokenExample. /// </summary> public const string IdToken = "id_token"; /// <summary> /// Indicates 'id_token token' type see: http://openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth. /// For Example: http://openid.net/specs/openid-connect-core-1_0.html#id_token-tokenExample. /// </summary> public const string IdTokenToken = "id_token token"; /// <summary> /// Defined in OAuth v2 multiple response types 1.0 spec, included for completion. /// See: http://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#OAuthResponseTypesReg. /// </summary> public const string None = "none"; /// <summary> /// Defined in OAuth 2.0 spec, included for completion. /// See: https://tools.ietf.org/html/rfc6749#section-11.3.2. /// </summary> public const string Token = "token"; } }
{ "pile_set_name": "Github" }
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>ueditor图片对话框</title> <script type="text/javascript" src="../internal.js"></script> <!-- jquery --> <script type="text/javascript" src="../../third-party/jquery-1.10.2.min.js"></script> <!-- webuploader --> <script src="../../third-party/webuploader/webuploader.min.js"></script> <link rel="stylesheet" type="text/css" href="../../third-party/webuploader/webuploader.css"> <!-- image dialog --> <link rel="stylesheet" href="image.css" type="text/css" /> </head> <body> <div class="wrapper"> <div id="tabhead" class="tabhead"> <span class="tab" data-content-id="remote"><var id="lang_tab_remote"></var></span> <span class="tab focus" data-content-id="upload"><var id="lang_tab_upload"></var></span> <span class="tab" data-content-id="online"><var id="lang_tab_online"></var></span> <span class="tab" data-content-id="search"><var id="lang_tab_search"></var></span> </div> <div class="alignBar"> <label class="algnLabel"><var id="lang_input_align"></var></label> <span id="alignIcon"> <span id="noneAlign" class="none-align focus" data-align="none"></span> <span id="leftAlign" class="left-align" data-align="left"></span> <span id="rightAlign" class="right-align" data-align="right"></span> <span id="centerAlign" class="center-align" data-align="center"></span> </span> <input id="align" name="align" type="hidden" value="none"/> </div> <div id="tabbody" class="tabbody"> <!-- 远程图片 --> <div id="remote" class="panel"> <div class="top"> <div class="row"> <label for="url"><var id="lang_input_url"></var></label> <span><input class="text" id="url" type="text"/></span> </div> </div> <div class="left"> <div class="row"> <label><var id="lang_input_size"></var></label> <span><var id="lang_input_width">&nbsp;&nbsp;</var><input class="text" type="text" id="width"/>px </span> <span><var id="lang_input_height">&nbsp;&nbsp;</var><input class="text" type="text" id="height"/>px </span> <span><input id="lock" type="checkbox" disabled="disabled"><span id="lockicon"></span></span> </div> <div class="row"> <label><var id="lang_input_border"></var></label> <span><input class="text" type="text" id="border"/>px </span> </div> <div class="row"> <label><var id="lang_input_vhspace"></var></label> <span><input class="text" type="text" id="vhSpace"/>px </span> </div> <div class="row"> <label><var id="lang_input_title"></var></label> <span><input class="text" type="text" id="title"/></span> </div> </div> <div class="right"><div id="preview"></div></div> </div> <!-- 上传图片 --> <div id="upload" class="panel focus"> <div id="queueList" class="queueList"> <div class="statusBar element-invisible"> <div class="progress"> <span class="text">0%</span> <span class="percentage"></span> </div><div class="info"></div> <div class="btns"> <div id="filePickerBtn"></div> <div class="uploadBtn"><var id="lang_start_upload"></var></div> </div> </div> <div id="dndArea" class="placeholder"> <div class="filePickerContainer"> <div id="filePickerReady"></div> </div> </div> <ul class="filelist element-invisible"> <li id="filePickerBlock" class="filePickerBlock"></li> </ul> </div> </div> <!-- 在线图片 --> <div id="online" class="panel"> <div id="imageList"><var id="lang_imgLoading"></var></div> </div> <!-- 搜索图片 --> <div id="search" class="panel"> <div class="searchBar"> <input id="searchTxt" class="searchTxt text" type="text" /> <select id="searchType" class="searchType"> <option value="&s=4&z=0"></option> <option value="&s=1&z=19"></option> <option value="&s=2&z=0"></option> <option value="&s=3&z=0"></option> </select> <input id="searchReset" type="button" /> <input id="searchBtn" type="button" /> </div> <div id="searchList" class="searchList"><ul id="searchListUl"></ul></div> </div> </div> </div> <script type="text/javascript" src="image.js"></script> </body> </html>
{ "pile_set_name": "Github" }
/** * @license * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @fileoverview Tests for storagependingredirectmanager.js */ goog.provide('fireauth.storage.PendingRedirectManagerTest'); goog.require('fireauth.authStorage'); goog.require('fireauth.common.testHelper'); goog.require('fireauth.storage.MockStorage'); goog.require('fireauth.storage.PendingRedirectManager'); goog.require('goog.Promise'); goog.require('goog.testing.PropertyReplacer'); goog.require('goog.testing.jsunit'); goog.setTestOnly('fireauth.storage.PendingRedirectManagerTest'); var appId = 'appId1'; var stubs = new goog.testing.PropertyReplacer(); var mockLocalStorage; var mockSessionStorage; function setUp() { // Create new mock storages for persistent and temporary storage before each // test. mockLocalStorage = new fireauth.storage.MockStorage(); mockSessionStorage = new fireauth.storage.MockStorage(); window.localStorage.clear(); window.sessionStorage.clear(); fireauth.common.testHelper.installMockStorages( stubs, mockLocalStorage, mockSessionStorage); } /** * @return {!fireauth.authStorage.Manager} The default local storage * synchronized manager instance used for testing. */ function getDefaultStorageManagerInstance() { return new fireauth.authStorage.Manager('firebase', ':', false, true); } function testGetSetPendingStatus() { var storageManager = getDefaultStorageManagerInstance(); var pendingRedirectManager = new fireauth.storage.PendingRedirectManager(appId, storageManager); var storageKey = 'firebase:pendingRedirect:appId1'; return goog.Promise.resolve() .then(function() { return pendingRedirectManager.setPendingStatus(); }) .then(function() { return pendingRedirectManager.getPendingStatus(); }) .then(function(status) { assertTrue(status); return mockSessionStorage.get(storageKey); }).then(function(value) { assertEquals('pending', value); return pendingRedirectManager.removePendingStatus(); }) .then(function() { return mockSessionStorage.get(storageKey); }).then(function(value) { assertUndefined(value); return pendingRedirectManager.getPendingStatus(); }) .then(function(status) { assertFalse(status); }); }
{ "pile_set_name": "Github" }
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_33.cpp Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-33.tmpl.cpp */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data pointer to the bad buffer * GoodSource: Set data pointer to the good buffer * Sinks: memcpy * BadSink : Copy int array to data using memcpy * Flow Variant: 33 Data flow: use of a C++ reference to data within the same function * * */ #include "std_testcase.h" namespace CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_33 { #ifndef OMITBAD void bad() { int * data; int * &dataRef = data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; { int * data = dataRef; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } } } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B() uses the GoodSource with the BadSink */ static void goodG2B() { int * data; int * &dataRef = data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */ data = dataGoodBuffer; { int * data = dataRef; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } } } void good() { goodG2B(); } #endif /* OMITGOOD */ } /* close namespace */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN using namespace CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_33; /* so that we can use good and bad easily */ int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
{ "pile_set_name": "Github" }
<!doctype html> <title>CodeMirror: JavaScript mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <script src="../../lib/codemirror.js"></script> <script src="../../addon/edit/matchbrackets.js"></script> <script src="../../addon/comment/continuecomment.js"></script> <script src="../../addon/comment/comment.js"></script> <script src="javascript.js"></script> <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> <div id=nav> <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> <ul> <li><a href="../../index.html">Home</a> <li><a href="../../doc/manual.html">Manual</a> <li><a href="https://github.com/codemirror/codemirror">Code</a> </ul> <ul> <li><a href="../index.html">Language modes</a> <li><a class=active href="#">JavaScript</a> </ul> </div> <article> <h2>JavaScript mode</h2> <div><textarea id="code" name="code"> // Demo code (the actual new parser character stream implementation) function StringStream(string) { this.pos = 0; this.string = string; } StringStream.prototype = { done: function() {return this.pos >= this.string.length;}, peek: function() {return this.string.charAt(this.pos);}, next: function() { if (this.pos &lt; this.string.length) return this.string.charAt(this.pos++); }, eat: function(match) { var ch = this.string.charAt(this.pos); if (typeof match == "string") var ok = ch == match; else var ok = ch &amp;&amp; match.test ? match.test(ch) : match(ch); if (ok) {this.pos++; return ch;} }, eatWhile: function(match) { var start = this.pos; while (this.eat(match)); if (this.pos > start) return this.string.slice(start, this.pos); }, backUp: function(n) {this.pos -= n;}, column: function() {return this.pos;}, eatSpace: function() { var start = this.pos; while (/\s/.test(this.string.charAt(this.pos))) this.pos++; return this.pos - start; }, match: function(pattern, consume, caseInsensitive) { if (typeof pattern == "string") { function cased(str) {return caseInsensitive ? str.toLowerCase() : str;} if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) { if (consume !== false) this.pos += str.length; return true; } } else { var match = this.string.slice(this.pos).match(pattern); if (match &amp;&amp; consume !== false) this.pos += match[0].length; return match; } } }; </textarea></div> <script> var editor = CodeMirror.fromTextArea(document.getElementById("code"), { lineNumbers: true, matchBrackets: true, continueComments: "Enter", extraKeys: {"Ctrl-Q": "toggleComment"} }); </script> <p> JavaScript mode supports several configuration options: <ul> <li><code>json</code> which will set the mode to expect JSON data rather than a JavaScript program.</li> <li><code>jsonld</code> which will set the mode to expect <a href="http://json-ld.org">JSON-LD</a> linked data rather than a JavaScript program (<a href="json-ld.html">demo</a>).</li> <li><code>typescript</code> which will activate additional syntax highlighting and some other things for TypeScript code (<a href="typescript.html">demo</a>).</li> <li><code>statementIndent</code> which (given a number) will determine the amount of indentation to use for statements continued on a new line.</li> <li><code>wordCharacters</code>, a regexp that indicates which characters should be considered part of an identifier. Defaults to <code>/[\w$]/</code>, which does not handle non-ASCII identifiers. Can be set to something more elaborate to improve Unicode support.</li> </ul> </p> <p><strong>MIME types defined:</strong> <code>text/javascript</code>, <code>application/json</code>, <code>application/ld+json</code>, <code>text/typescript</code>, <code>application/typescript</code>.</p> </article>
{ "pile_set_name": "Github" }
using Rainbow.Model; using Sitecore.Data.Items; using Unicorn.Predicates; using Unicorn.UI.Pipelines.GetContentEditorWarnings; namespace Unicorn.Evaluators { /// <summary> /// Evaluators decide what to do with items when new items, orphans, or comparisons are found /// </summary> public interface IEvaluator { /// <summary> /// Orphans are items the loader has found that exist in the source data, but not in the serialization store. /// This method allows you to decide what to do with them (e.g. delete them, recycle them, serialize them elsewhere then delete, or do nothing) /// </summary> /// <param name="orphanItems"></param> void EvaluateOrphans(IItemData[] orphanItems); /// <summary> /// If a serialized item is found that does not have a corresponding item in source data, this method is invoked to decide what to do about it. /// Normally, this would probably trigger the deserialization of the serialized item into source data. /// </summary> /// <param name="newItemData">The new serialized item not present in source data</param> /// <returns>If a new source item is created, return it. If not, return null.</returns> IItemData EvaluateNewSerializedItem(IItemData newItemData); /// <summary> /// If a serialized item is found that has a corresponding item in source data, this method is invoked to perform any updates that are needed to the source data. /// Updating is pretty slow so it's much faster to skip unnecessary updates. Normally this would probably compare timestamps etc and if changed, trigger a deserialization. /// </summary> /// <param name="sourceItem">The existing item in Sitecore</param> /// <param name="targetItem">The serialized item to evaluate</param> /// <returns>If an update is performed, return the updated source item. If no update occurs, return null.</returns> IItemData EvaluateUpdate(IItemData sourceItem, IItemData targetItem); /// <summary> /// Allows the evaluator to customize how editor warnings appear for items where the evaluator applies. /// You can safely assume that any item passed in is included in the context configuration. /// </summary> /// <param name="item">The item being loaded in the content editor.</param> /// <param name="predicateResult">The predicate result that included the item.</param> /// <returns>Return a warning to show a message, or null to show no warning.</returns> Warning EvaluateEditorWarning(Item item, PredicateResult predicateResult); /// <summary> /// Allows the evaluator to decide if items being saved should be checked against the serialized state to find sync issues /// (e.g. SerializationConflictProcessor). In some cases, like new items only, we do not care if the state on disk matches what is being saved. /// </summary> /// <param name="item">The item being saved. You can assume it is included in the current configuration by predicate.</param> /// <returns>True to perform a conflict check against the serialized version, false otherwise.</returns> bool ShouldPerformConflictCheck(Item item); } }
{ "pile_set_name": "Github" }
<map id="/home/dave/thesis/motorcar/src/compositor/qt/textureblitter.cpp" name="/home/dave/thesis/motorcar/src/compositor/qt/textureblitter.cpp"> <area shape="rect" id="node2" href="$textureblitter_8h.html" title="textureblitter.h" alt="" coords="78,96,183,123"/> </map>
{ "pile_set_name": "Github" }
# 1. Requirements cmake_minimum_required(VERSION 2.8.11) project(plugin_metadata) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) # 2.Configuration add_compile_options(-Wno-deprecated) # This is just to avoid some spammy warnings set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # This line is optional. It's just for certain IDEs to use # 3. Boilerplate set(USD_LIBRARY_DIRECTORY $ENV{USD_INSTALL_ROOT}/lib) set(USD_INCLUDE_DIRECTORY $ENV{USD_INSTALL_ROOT}/include) find_library(USD_ARCH arch HINTS ${USD_LIBRARY_DIRECTORY}) find_library(USD_BOOST_PYTHON boost_python HINTS ${USD_LIBRARY_DIRECTORY}) find_library(USD_SDF sdf HINTS ${USD_LIBRARY_DIRECTORY}) find_library(USD_TF tf HINTS ${USD_LIBRARY_DIRECTORY}) find_library(USD_USD usd HINTS ${USD_LIBRARY_DIRECTORY}) find_library(USD_VT vt HINTS ${USD_LIBRARY_DIRECTORY}) find_package(PythonLibs REQUIRED) # 4. Include/Link Everything add_executable(run_it main.cpp ) target_include_directories(run_it PUBLIC ${PYTHON_INCLUDE_PATH} ${USD_INCLUDE_DIRECTORY} ) target_link_libraries( run_it ${PYTHON_LIBRARY} ${USD_ARCH} ${USD_BOOST_PYTHON} ${USD_SDF} ${USD_TF} ${USD_USD} ${USD_VT} )
{ "pile_set_name": "Github" }
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("language","gl",{button:"Estabelezer o idioma",remove:"Retirar o idioma"});
{ "pile_set_name": "Github" }
# Methods added to this helper will be available to all templates in the application. module ApplicationHelper def html(x) x.gsub(/</,'&lt;').gsub(/>/,'&gt;') end def rails_path url_for "/caelumobjects-restful-rails.pdf" end end
{ "pile_set_name": "Github" }
rem Copyright (c) 2007, International Business Machines Corporation and rem others. All Rights Reserved. set PERF=c:\svn\icuproj\icu\ucnvutf8\source\test\perf\unisetperf\release\unisetperf rem types: slow Bv Bv0 B0 rem --pattern [:White_Space:] for %%f in (udhr_eng.txt udhr_deu.txt udhr_fra.txt udhr_rus.txt udhr_tha.txt udhr_jpn.txt udhr_cmn.txt udhr_jpn.html) do ( for %%t in (slow Bv Bv0) do ( %PERF% SpanUTF16 --type %%t -f \temp\udhr\%%f --pattern [:White_Space:] -v -e UTF-8 --passes 3 --iterations 10000 ) )
{ "pile_set_name": "Github" }
/* * Library Initialization * (C) 1999-2008,2015 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_LIBRARY_INITIALIZER_H_ #define BOTAN_LIBRARY_INITIALIZER_H_ #include <botan/types.h> #include <string> namespace Botan { BOTAN_DEPRECATED_HEADER(init.h) /* * Previously botan had state whose lifetime had to be explicitly * managed by the application. As of 1.11.14 this is no longer the * case, and this class is no longer needed and kept only for backwards * compatibility. */ class BOTAN_PUBLIC_API(2,0) BOTAN_DEPRECATED("LibraryInitializer is no longer required") LibraryInitializer final { public: explicit LibraryInitializer(const std::string& /*ignored*/ = "") { } static void initialize(const std::string& /*ignored*/ = "") {} static void deinitialize() {} }; } #endif
{ "pile_set_name": "Github" }
<?xml version='1.0' encoding='utf-8'?> <section xmlns="https://code.dccouncil.us/schemas/dc-library" xmlns:codified="https://code.dccouncil.us/schemas/codified" xmlns:codify="https://code.dccouncil.us/schemas/codify" xmlns:xi="http://www.w3.org/2001/XInclude" containing-doc="D.C. Code"> <num>2-1204.12</num> <heading>Rulemaking.</heading> <text>The Mayor may promulgate rules necessary to implement this chapter.</text> <annotations> <annotation doc="D.C. Law 16-290" type="History" path="§3">Mar. 14, 2007, D.C. Law 16-290, § 3, 54 DCR 984</annotation> <annotation type="Delegation of Authority">Delegation of Authority under the Financial Incentives for Motion Picture and Television Productions Emergency Amendment Act of 2009, effective October 15, 2009 (D.C. Act 18-207; 56 DCR 8277), see Mayor’s Order 2009-213, December 8, 2009 ( 56 DCR 9350).</annotation> <annotation type="Emergency Legislation">For temporary (90 day) addition, see § 3 of Film DC Economic Incentive Emergency Act of 2006 (D.C. Act 16-570, December 19, 2006, 54 DCR 8).</annotation> <annotation type="Prior Codifications">2001 Ed., § 39-502.</annotation> </annotations> </section>
{ "pile_set_name": "Github" }
[0] Glob = "c27321d9-0574-5035-807b-f59d2c89b15c" HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f" ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f" WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192" ["0-0.1.0"] ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
{ "pile_set_name": "Github" }
--- # Implement your Workload removal tasks here - name: Cleaning up the environment debug: msg: "Cleaning up the environment.." - name: Check if project IoT Development exists shell: "oc get project iot-development 2>/dev/null | wc -l" register: result - name: Delete project IoT Development shell: "oc delete project iot-development" when: result.stdout != "0" - name: Check if project IoT Testing exists shell: "oc get project iot-testing 2>/dev/null | wc -l" register: result - name: Delete project IoT Testing shell: "oc delete project iot-testing" when: result.stdout != "0" - name: Check if project IoT Hub exists shell: "oc get project iot-hub 2>/dev/null | wc -l" register: result - name: Delete project IoT Hub shell: "oc delete project iot-hub" when: result.stdout != "0" - name: Check BuildConfig in openshift namespace exists shell: "oc get bc deploy-containers-apb -n openshift 2>/dev/null | wc -l" register: result - name: Delete BuildConfig in openshift namespace shell: "oc delete bc deploy-containers-apb -n openshift" when: result.stdout != "0" - name: Check ImageStream in openshift namespace exists shell: "oc get is deploy-containers-apb -n openshift 2>/dev/null | wc -l" register: result - name: Delete ImageStream in openshift namespace shell: "oc delete is deploy-containers-apb -n openshift" when: result.stdout != "0" - name: Check that the temp dir exists stat: path: /tmp/{{guid}} register: stat_result - name: Getting the generated public-key into this playbook slurp: src: /tmp/{{guid}}/deploy-containers-apb/id_rsa.pub register: publickey - name: Removing SSH public key to the authorized host for the machine become: true authorized_key: user: root state: absent key: "{{ publickey['content'] | b64decode }}" - name: Cleaning up temp dir shell: "rm -rf /tmp/{{guid}}" when: stat_result.stat.exists == True - name: Check that the backup file exists stat: path: /etc/containers/registries.conf.bak register: stat_result - name: Restoring up /etc/containers/registries.conf become: true shell: mv /etc/containers/registries.conf.bak /etc/containers/registries.conf when: stat_result.stat.exists == True - name: Removing Cockpit and Docker become: true yum: name: ['docker', 'cockpit', 'cockpit-docker', 'apb'] state: absent # Leave this as the last task in the playbook. - name: remove_workload tasks complete debug: msg: "Remove Workload tasks completed successfully." when: not silent|bool
{ "pile_set_name": "Github" }
/* * Copyright (C) 2011 Red Hat, Inc. * * This file is released under the GPL. */ #ifndef DM_SPACE_MAP_COMMON_H #define DM_SPACE_MAP_COMMON_H #include "dm-btree.h" /*----------------------------------------------------------------*/ /* * Low level disk format * * Bitmap btree * ------------ * * Each value stored in the btree is an index_entry. This points to a * block that is used as a bitmap. Within the bitmap hold 2 bits per * entry, which represent UNUSED = 0, REF_COUNT = 1, REF_COUNT = 2 and * REF_COUNT = many. * * Refcount btree * -------------- * * Any entry that has a ref count higher than 2 gets entered in the ref * count tree. The leaf values for this tree is the 32-bit ref count. */ struct disk_index_entry { __le64 blocknr; __le32 nr_free; __le32 none_free_before; } __packed; #define MAX_METADATA_BITMAPS 255 struct disk_metadata_index { __le32 csum; __le32 padding; __le64 blocknr; struct disk_index_entry index[MAX_METADATA_BITMAPS]; } __packed; struct ll_disk; typedef int (*load_ie_fn)(struct ll_disk *ll, dm_block_t index, struct disk_index_entry *result); typedef int (*save_ie_fn)(struct ll_disk *ll, dm_block_t index, struct disk_index_entry *ie); typedef int (*init_index_fn)(struct ll_disk *ll); typedef int (*open_index_fn)(struct ll_disk *ll); typedef dm_block_t (*max_index_entries_fn)(struct ll_disk *ll); typedef int (*commit_fn)(struct ll_disk *ll); struct ll_disk { struct dm_transaction_manager *tm; struct dm_btree_info bitmap_info; struct dm_btree_info ref_count_info; uint32_t block_size; uint32_t entries_per_block; dm_block_t nr_blocks; dm_block_t nr_allocated; /* * bitmap_root may be a btree root or a simple index. */ dm_block_t bitmap_root; dm_block_t ref_count_root; struct disk_metadata_index mi_le; load_ie_fn load_ie; save_ie_fn save_ie; init_index_fn init_index; open_index_fn open_index; max_index_entries_fn max_entries; commit_fn commit; bool bitmap_index_changed:1; }; struct disk_sm_root { __le64 nr_blocks; __le64 nr_allocated; __le64 bitmap_root; __le64 ref_count_root; } __packed; #define ENTRIES_PER_BYTE 4 struct disk_bitmap_header { __le32 csum; __le32 not_used; __le64 blocknr; } __packed; enum allocation_event { SM_NONE, SM_ALLOC, SM_FREE, }; /*----------------------------------------------------------------*/ int sm_ll_extend(struct ll_disk *ll, dm_block_t extra_blocks); int sm_ll_lookup_bitmap(struct ll_disk *ll, dm_block_t b, uint32_t *result); int sm_ll_lookup(struct ll_disk *ll, dm_block_t b, uint32_t *result); int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin, dm_block_t end, dm_block_t *result); int sm_ll_find_common_free_block(struct ll_disk *old_ll, struct ll_disk *new_ll, dm_block_t begin, dm_block_t end, dm_block_t *result); int sm_ll_insert(struct ll_disk *ll, dm_block_t b, uint32_t ref_count, enum allocation_event *ev); int sm_ll_inc(struct ll_disk *ll, dm_block_t b, enum allocation_event *ev); int sm_ll_dec(struct ll_disk *ll, dm_block_t b, enum allocation_event *ev); int sm_ll_commit(struct ll_disk *ll); int sm_ll_new_metadata(struct ll_disk *ll, struct dm_transaction_manager *tm); int sm_ll_open_metadata(struct ll_disk *ll, struct dm_transaction_manager *tm, void *root_le, size_t len); int sm_ll_new_disk(struct ll_disk *ll, struct dm_transaction_manager *tm); int sm_ll_open_disk(struct ll_disk *ll, struct dm_transaction_manager *tm, void *root_le, size_t len); /*----------------------------------------------------------------*/ #endif /* DM_SPACE_MAP_COMMON_H */
{ "pile_set_name": "Github" }
from __future__ import print_function import platform print(platform.machine())
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:color="@color/cell_vertical_line" android:state_activated="true"/> <item android:color="@color/cell_vertical_line_disabled" android:state_activated="false"/> </selector>
{ "pile_set_name": "Github" }
var num = 56779; let resultt = num .toString() .split("") .reverse() .join(""); console.log(resultt);
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.parquet.hive; import org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat; import org.apache.hadoop.io.ArrayWritable; import org.apache.hadoop.mapreduce.OutputFormat; /** * Deprecated name of the parquet-hive output format. This class exists * simply to provide backwards compatibility with users who specified * this name in the Hive metastore. All users should now use * STORED AS PARQUET */ @Deprecated public class DeprecatedParquetOutputFormat extends MapredParquetOutputFormat { public DeprecatedParquetOutputFormat() { super(); } public DeprecatedParquetOutputFormat(final OutputFormat<Void, ArrayWritable> mapreduceOutputFormat) { super(mapreduceOutputFormat); } }
{ "pile_set_name": "Github" }
// // CPUIdentifierAppDelegate.m // CPUIdentifier // #import "CPUIdentifierAppDelegate.h" static AppDelegate *classPointer; struct am_device* device; struct am_device_notification *notification; void notification_callback(struct am_device_notification_callback_info *info, int cookie) { if (info->msg == ADNCI_MSG_CONNECTED) { NSLog(@"Device connected."); device = info->dev; AMDeviceConnect(device); AMDevicePair(device); AMDeviceValidatePairing(device); AMDeviceStartSession(device); [classPointer populateData]; } else if (info->msg == ADNCI_MSG_DISCONNECTED) { NSLog(@"Device disconnected."); [classPointer dePopulateData]; } else { NSLog(@"Received device notification: %d", info->msg); } } void recovery_connect_callback(struct am_recovery_device *rdev) { [classPointer recoveryCallback]; } void recovery_disconnect_callback(struct am_recovery_device *rdev) { [classPointer dePopulateData]; } @interface NSAttributedString (Hyperlink) +(id)hyperlinkFromString:(NSString*)inString withURL:(NSURL*)aURL alignment:(NSTextAlignment)alignment; @end @implementation NSAttributedString (Hyperlink) +(id)hyperlinkFromString:(NSString*)inString withURL:(NSURL*)aURL alignment:(NSTextAlignment)alignment { NSMutableAttributedString* attrString = [[NSMutableAttributedString alloc] initWithString: inString]; NSRange range = NSMakeRange(0, [attrString length]); [attrString beginEditing]; [attrString addAttribute:NSLinkAttributeName value:[aURL absoluteString] range:range]; // make the text appear in blue [attrString addAttribute:NSForegroundColorAttributeName value:[NSColor blueColor] range:range]; [attrString addAttribute:NSFontAttributeName value:[NSFont systemFontOfSize:12] range:range]; NSMutableParagraphStyle* paragraphStyle = [[NSMutableParagraphStyle alloc] init]; [paragraphStyle setAlignment:alignment]; [attrString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:range]; // next make the text appear with an underline [attrString addAttribute: NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:NSSingleUnderlineStyle] range:range]; [attrString endEditing]; return [attrString autorelease]; } @end @implementation AppDelegate @synthesize window, loadingInd; - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { classPointer = self; AMDeviceNotificationSubscribe(notification_callback, 0, 0, 0, &notification); AMRestoreRegisterForDeviceNotifications(recovery_disconnect_callback, recovery_connect_callback, recovery_disconnect_callback, recovery_disconnect_callback, 0, NULL); accept = NO; connected = NO; NSAlert* alert = [[NSAlert alloc] init]; [alert setMessageText:@"Improve Our Statistics"]; [alert setInformativeText:@"To represent the distribution of CPU manufactory, we collect some information (device model, CPU model and hashed MAC Address) from your iPhone. We can't identify you nor censor your device with this tiny app. If you want to help us improve the statistics, please click \'OK\'"]; [alert addButtonWithTitle:@"No, thanks"]; [alert addButtonWithTitle:@"OK"]; NSArray *buttons = [alert buttons]; // note: rightmost button is index 0 [[buttons objectAtIndex:0] setKeyEquivalent:@"\033"]; [[buttons objectAtIndex:1] setKeyEquivalent:@"\r"]; [alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) { if(returnCode == NSAlertSecondButtonReturn) { accept = YES; if (connected == YES) { [self populateData]; } } else { accept = NO; if (connected == YES) { [self populateData]; } } }]; [self setHyperlinkWithTextField:twitter string:@"by @hirakujira " url:@"http://twitter.com/hirakujira" alignment:NSTextAlignmentLeft]; [self setHyperlinkWithTextField:github string:@"GitHub Repo " url:@"http://github.com/hirakujira/CPU-Identifier-OSX" alignment:NSTextAlignmentRight]; [self setHyperlinkWithTextField:statistics string:@"Show Statistics" url:@"http://demo.hiraku.tw/CPUIdentifier/chart2.php" alignment:NSTextAlignmentRight]; } - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender { return YES; } -(void)setHyperlinkWithTextField:(NSTextField*)inTextField string:(NSString *)stringText url:(NSString *)urlString alignment:(NSTextAlignment)alignment { // both are needed, otherwise hyperlink won't accept mousedown [inTextField setAllowsEditingTextAttributes: YES]; [inTextField setSelectable: YES]; NSURL* url = [NSURL URLWithString:urlString]; NSMutableAttributedString* string = [[NSMutableAttributedString alloc] init]; [string appendAttributedString: [NSAttributedString hyperlinkFromString:stringText withURL:url alignment:alignment]]; // set the attributed string to the NSTextField [inTextField setAttributedStringValue: string]; [string release]; } - (void)recoveryCallback { [disconnetLabel setHidden:YES]; [loadingInd setHidden:YES]; } - (void)populateData { connected = YES; NSString *SN = [[self getDeviceValue:@"SerialNumber"] MD5String]; NSString *platform = [self getDeviceValue:@"HardwarePlatform"]; NSString *modelNumber = [self getDeviceValue:@"ModelNumber"]; NSString *deviceString = [self getDeviceValue:@"ProductType"]; NSString *region = [self getDeviceValue:@"RegionCode"]; if ([platform isEqualToString:@"s8000"]) { platform = @"s8000 (Samsung)"; } else if ([platform isEqualToString:@"s8003"]) { platform = @"s8003 (TSMC)"; } if ([deviceString isEqualToString:@"iPod1,1"]) deviceString = @"iPod touch 1Gen"; else if ([deviceString isEqualToString:@"iPod2,1"]) deviceString = @"iPod touch 2Gen"; else if ([deviceString isEqualToString:@"iPod3,1"]) deviceString = @"iPod touch 3Gen"; else if ([deviceString isEqualToString:@"iPod4,1"]) deviceString = @"iPod touch 4Gen"; else if ([deviceString isEqualToString:@"iPod5,1"]) deviceString = @"iPod touch 5Gen"; else if ([deviceString isEqualToString:@"iPod6,1"]) deviceString = @"iPod touch 6Gen"; //iPhone else if ([deviceString isEqualToString:@"iPhone1,1"]) deviceString = @"iPhone"; else if ([deviceString isEqualToString:@"iPhone1,2"]) deviceString = @"iPhone 3G"; else if ([deviceString isEqualToString:@"iPhone2,1"]) deviceString = @"iPhone 3GS"; else if ([deviceString isEqualToString:@"iPhone3,1"]) deviceString = @"iPhone 4"; else if ([deviceString isEqualToString:@"iPhone3,2"]) deviceString = @"iPhone 4 RevA"; else if ([deviceString isEqualToString:@"iPhone3,3"]) deviceString = @"iPhone 4 CDMA"; else if ([deviceString isEqualToString:@"iPhone4,1"]) deviceString = @"iPhone 4S"; else if ([deviceString isEqualToString:@"iPhone5,1"]) deviceString = @"iPhone 5 GSM"; else if ([deviceString isEqualToString:@"iPhone5,2"]) deviceString = @"iPhone 5 Global"; else if ([deviceString isEqualToString:@"iPhone5,3"]) deviceString = @"iPhone 5c"; else if ([deviceString isEqualToString:@"iPhone5,4"]) deviceString = @"iPhone 5c"; else if ([deviceString isEqualToString:@"iPhone6,1"]) deviceString = @"iPhone 5s"; else if ([deviceString isEqualToString:@"iPhone6,2"]) deviceString = @"iPhone 5s"; else if ([deviceString isEqualToString:@"iPhone7,1"]) deviceString = @"iPhone 6 Plus"; else if ([deviceString isEqualToString:@"iPhone7,2"]) deviceString = @"iPhone 6"; else if ([deviceString isEqualToString:@"iPhone8,1"]) deviceString = @"iPhone 6s"; else if ([deviceString isEqualToString:@"iPhone8,2"]) deviceString = @"iPhone 6s Plus"; else if ([deviceString isEqualToString:@"iPhone8,4"]) deviceString = @"iPhone SE"; //iPad else if ([deviceString isEqualToString:@"iPad1,1"]) deviceString = @"iPad"; else if ([deviceString isEqualToString:@"iPad2,1"]) deviceString = @"iPad 2 Wifi"; else if ([deviceString isEqualToString:@"iPad2,2"]) deviceString = @"iPad 2 GSM"; else if ([deviceString isEqualToString:@"iPad2,3"]) deviceString = @"iPad 2 CDMA"; else if ([deviceString isEqualToString:@"iPad2,4"]) deviceString = @"iPad 2 Wifi RevA"; else if ([deviceString isEqualToString:@"iPad3,1"]) deviceString = @"iPad 3 Wifi"; else if ([deviceString isEqualToString:@"iPad3,2"]) deviceString = @"iPad 3 Global"; else if ([deviceString isEqualToString:@"iPad3,3"]) deviceString = @"iPad 3 GSM"; else if ([deviceString isEqualToString:@"iPad3,4"]) deviceString = @"iPad 4 Wifi"; else if ([deviceString isEqualToString:@"iPad3,5"]) deviceString = @"iPad 4 GSM"; else if ([deviceString isEqualToString:@"iPad3,6"]) deviceString = @"iPad 4 Global"; else if ([deviceString isEqualToString:@"iPad4,1"]) deviceString = @"iPad Air Wifi"; else if ([deviceString isEqualToString:@"iPad4,2"]) deviceString = @"iPad Air Cellular"; //iPad mini else if ([deviceString isEqualToString:@"iPad2,5"]) deviceString = @"iPad mini Wifi"; else if ([deviceString isEqualToString:@"iPad2,6"]) deviceString = @"iPad mini GSM"; else if ([deviceString isEqualToString:@"iPad2,7"]) deviceString = @"iPad mini Global"; else if ([deviceString isEqualToString:@"iPad4,3"]) deviceString = @"iPad mini 2 Wifi"; else if ([deviceString isEqualToString:@"iPad4,4"]) deviceString = @"iPad mini 2 Cellular"; else deviceString = @"Unknown"; if ([deviceString isEqualToString:@"Unknown"]) { NSString *completeString = [NSString stringWithFormat:@"%@ Mode/Device Detected",deviceString]; [devicetype setStringValue:completeString]; } else { [loadingInd setHidden:YES]; NSString *completeString = [NSString stringWithFormat:@"%@", deviceString]; [devicetype setStringValue:completeString]; } [deviceCPU setStringValue:platform]; [deviceModel setStringValue:[NSString stringWithFormat:@"%@%@",modelNumber,region]]; [disconnetLabel setHidden:YES]; if (accept == YES) { NSURLSessionConfiguration *defaultConfigObject = [NSURLSessionConfiguration defaultSessionConfiguration]; NSURLSession *defaultSession = [NSURLSession sessionWithConfiguration: defaultConfigObject delegate: self delegateQueue: [NSOperationQueue mainQueue]]; NSString* urlString = [[NSString alloc] initWithFormat:@"%@?adid=%@&device_type=%@&model=%@&region=%@&chip=%@",@"",SN, [self getDeviceValue:@"ProductType"], modelNumber, region, [self getDeviceValue:@"HardwarePlatform"]]; NSURL * url = [NSURL URLWithString:urlString]; NSURLSessionDataTask * dataTask = [defaultSession dataTaskWithURL:url completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { }]; [dataTask resume]; } } - (void)dePopulateData { [disconnetLabel setHidden:YES]; [deviceCPU setStringValue:@""]; [deviceModel setStringValue:@""]; [devicetype setStringValue:@""]; } - (void)loadingProgress { [loadingInd setHidden:NO]; [loadingInd startAnimation: self]; } - (NSString *)getDeviceValue:(NSString *)value { return AMDeviceCopyValue(device, 0, value); } @end
{ "pile_set_name": "Github" }
sha256:367d328753de06062533da20092670b120cc2f5ec7e6960f277c83891e04e639
{ "pile_set_name": "Github" }
/* * Copyright (c) 2004, Intel Corporation. * Copyright (c) 2006, Keir Fraser, XenSource Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; version 2.1 only. with the special * exception on linking described in file LICENSE. * * 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 Lesser General Public License for more details. */ #include "acpi2_0.h" #include "../config.h" /* * Firmware ACPI Control Structure (FACS). */ struct acpi_20_facs Facs = { .signature = ACPI_2_0_FACS_SIGNATURE, .length = sizeof(struct acpi_20_facs), .version = ACPI_2_0_FACS_VERSION }; /* * Fixed ACPI Description Table (FADT). */ /* * These values must match register definitions in struct hvm_hw_acpi * (in xen/include/public/arch-x86/hvm/save.h). */ #define ACPI_PM1A_EVT_BLK_BIT_WIDTH 0x20 #define ACPI_PM1A_EVT_BLK_BIT_OFFSET 0x00 #define ACPI_PM1A_CNT_BLK_BIT_WIDTH 0x10 #define ACPI_PM1A_CNT_BLK_BIT_OFFSET 0x00 #define ACPI_PM_TMR_BLK_BIT_WIDTH 0x20 #define ACPI_PM_TMR_BLK_BIT_OFFSET 0x00 struct acpi_fadt Fadt = { .header = { .signature = ACPI_FADT_SIGNATURE, .oem_id = ACPI_OEM_ID, .oem_table_id = ACPI_OEM_TABLE_ID, .oem_revision = ACPI_OEM_REVISION, .creator_id = ACPI_CREATOR_ID, .creator_revision = ACPI_CREATOR_REVISION }, .sci_int = 9, .pm1a_evt_blk = ACPI_PM1A_EVT_BLK_ADDRESS_V1, .pm1a_cnt_blk = ACPI_PM1A_CNT_BLK_ADDRESS_V1, .pm_tmr_blk = ACPI_PM_TMR_BLK_ADDRESS_V1, .gpe0_blk = ACPI_GPE0_BLK_ADDRESS_V1, .pm1_evt_len = ACPI_PM1A_EVT_BLK_BIT_WIDTH / 8, .pm1_cnt_len = ACPI_PM1A_CNT_BLK_BIT_WIDTH / 8, .pm_tmr_len = ACPI_PM_TMR_BLK_BIT_WIDTH / 8, .gpe0_blk_len = ACPI_GPE0_BLK_LEN_V1, .p_lvl2_lat = 0x0fff, /* >100, means we do not support C2 state */ .p_lvl3_lat = 0x0fff, /* >1000, means we do not support C3 state */ .flags = (ACPI_PROC_C1 | ACPI_WBINVD | ACPI_FIX_RTC | ACPI_TMR_VAL_EXT | ACPI_USE_PLATFORM_CLOCK), .reset_reg = { .address_space_id = ACPI_SYSTEM_IO, .register_bit_width = 8, /* *must* be 8 */ .register_bit_offset = 0, /* *must* be 0 */ .address = 0xcf9 }, .reset_value = 6, .x_pm1a_evt_blk = { .address_space_id = ACPI_SYSTEM_IO, .register_bit_width = ACPI_PM1A_EVT_BLK_BIT_WIDTH, .register_bit_offset = ACPI_PM1A_EVT_BLK_BIT_OFFSET, .address = ACPI_PM1A_EVT_BLK_ADDRESS_V1, }, .x_pm1a_cnt_blk = { .address_space_id = ACPI_SYSTEM_IO, .register_bit_width = ACPI_PM1A_CNT_BLK_BIT_WIDTH, .register_bit_offset = ACPI_PM1A_CNT_BLK_BIT_OFFSET, .address = ACPI_PM1A_CNT_BLK_ADDRESS_V1, }, .x_pm_tmr_blk = { .address_space_id = ACPI_SYSTEM_IO, .register_bit_width = ACPI_PM_TMR_BLK_BIT_WIDTH, .register_bit_offset = ACPI_PM_TMR_BLK_BIT_OFFSET, .address = ACPI_PM_TMR_BLK_ADDRESS_V1, } }; struct acpi_20_rsdt Rsdt = { .header = { .signature = ACPI_2_0_RSDT_SIGNATURE, .length = sizeof(struct acpi_header), .revision = ACPI_2_0_RSDT_REVISION, .oem_id = ACPI_OEM_ID, .oem_table_id = ACPI_OEM_TABLE_ID, .oem_revision = ACPI_OEM_REVISION, .creator_id = ACPI_CREATOR_ID, .creator_revision = ACPI_CREATOR_REVISION } }; struct acpi_20_xsdt Xsdt = { .header = { .signature = ACPI_2_0_XSDT_SIGNATURE, .length = sizeof(struct acpi_header), .revision = ACPI_2_0_XSDT_REVISION, .oem_id = ACPI_OEM_ID, .oem_table_id = ACPI_OEM_TABLE_ID, .oem_revision = ACPI_OEM_REVISION, .creator_id = ACPI_CREATOR_ID, .creator_revision = ACPI_CREATOR_REVISION } }; struct acpi_20_rsdp Rsdp = { .signature = ACPI_2_0_RSDP_SIGNATURE, .oem_id = ACPI_OEM_ID, .revision = ACPI_2_0_RSDP_REVISION, .length = sizeof(struct acpi_20_rsdp) }; #define ACPI_WAET_RTC_NO_ACK (1<<0) /* RTC requires no int acknowledge */ #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */ /* * The state of the RTC flag getting passed to the guest must be in * sync with the mode selection in the hypervisor RTC emulation code. */ #define ACPI_WAET_FLAGS (ACPI_WAET_RTC_NO_ACK | \ ACPI_WAET_TIMER_ONE_READ) struct acpi_20_waet Waet = { .header = { .signature = ACPI_2_0_WAET_SIGNATURE, .length = sizeof(struct acpi_20_waet), .revision = ACPI_2_0_WAET_REVISION, .oem_id = ACPI_OEM_ID, .oem_table_id = ACPI_OEM_TABLE_ID, .oem_revision = ACPI_OEM_REVISION, .creator_id = ACPI_CREATOR_ID, .creator_revision = ACPI_CREATOR_REVISION }, .flags = ACPI_WAET_FLAGS }; /* * Local variables: * mode: C * c-file-style: "BSD" * c-basic-offset: 4 * tab-width: 4 * indent-tabs-mode: nil * End: */
{ "pile_set_name": "Github" }
/usr/bin/ar cr libreg_png.a CMakeFiles/reg_png.dir/reg_png.cpp.o CMakeFiles/reg_png.dir/readpng.cpp.o /usr/bin/ranlib libreg_png.a
{ "pile_set_name": "Github" }
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renderInstructions should provide installation instructions 1`] = ` " Copy the contents of \`themer-slack-dark.txt\` or \`themer-slack-light.txt\` and paste into the custom theme input in Slack's preferences. " `;
{ "pile_set_name": "Github" }
{ "version": 4, "configurations": [ { "name": "Default", "defines": [], "compilerPath": "/home/imliubo/Kendryte/KendryteIDE/LocalPackage/toolchain/bin/riscv64-unknown-elf-g++", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "gcc-x64", "compileCommands": "/home/imliubo/Github/A-Eye/tutorials/02-UART/.vscode/compile_commands.backup.json", "includePath": [ "/home/imliubo/Kendryte/KendryteIDE/LocalPackage/toolchain/riscv64-unknown-elf/include", "/home/imliubo/Kendryte/KendryteIDE/LocalPackage/toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include", "/home/imliubo/Kendryte/KendryteIDE/LocalPackage/toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include-fixed", "/home/imliubo/Kendryte/KendryteIDE/LocalPackage/toolchain/riscv64-unknown-elf/include/c++/8.2.0", "/home/imliubo/Kendryte/KendryteIDE/LocalPackage/toolchain/riscv64-unknown-elf/include/c++/8.2.0/riscv64-unknown-elf" ] } ] }
{ "pile_set_name": "Github" }
(function() {var implementors = {}; implementors['rustc_unicode'] = []; if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })()
{ "pile_set_name": "Github" }
define(function(require) { 'use strict'; var zrUtil = require('zrender/core/util'); var Cartesian = require('./Cartesian'); function Cartesian2D(name) { Cartesian.call(this, name); } Cartesian2D.prototype = { constructor: Cartesian2D, type: 'cartesian2d', /** * @type {Array.<string>} * @readOnly */ dimensions: ['x', 'y'], /** * Base axis will be used on stacking. * * @return {module:echarts/coord/cartesian/Axis2D} */ getBaseAxis: function () { return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAxis('x'); }, /** * If contain point * @param {Array.<number>} point * @return {boolean} */ containPoint: function (point) { var axisX = this.getAxis('x'); var axisY = this.getAxis('y'); return axisX.contain(axisX.toLocalCoord(point[0])) && axisY.contain(axisY.toLocalCoord(point[1])); }, /** * If contain data * @param {Array.<number>} data * @return {boolean} */ containData: function (data) { return this.getAxis('x').containData(data[0]) && this.getAxis('y').containData(data[1]); }, /** * Convert series data to an array of points * @param {module:echarts/data/List} data * @param {boolean} stack * @return {Array} * Return array of points. For example: * `[[10, 10], [20, 20], [30, 30]]` */ dataToPoints: function (data, stack) { return data.mapArray(['x', 'y'], function (x, y) { return this.dataToPoint([x, y]); }, stack, this); }, /** * @param {Array.<number>} data * @param {boolean} [clamp=false] * @return {Array.<number>} */ dataToPoint: function (data, clamp) { var xAxis = this.getAxis('x'); var yAxis = this.getAxis('y'); return [ xAxis.toGlobalCoord(xAxis.dataToCoord(data[0], clamp)), yAxis.toGlobalCoord(yAxis.dataToCoord(data[1], clamp)) ]; }, /** * @param {Array.<number>} point * @param {boolean} [clamp=false] * @return {Array.<number>} */ pointToData: function (point, clamp) { var xAxis = this.getAxis('x'); var yAxis = this.getAxis('y'); return [ xAxis.coordToData(xAxis.toLocalCoord(point[0]), clamp), yAxis.coordToData(yAxis.toLocalCoord(point[1]), clamp) ]; }, /** * Get other axis * @param {module:echarts/coord/cartesian/Axis2D} axis */ getOtherAxis: function (axis) { return this.getAxis(axis.dim === 'x' ? 'y' : 'x'); } }; zrUtil.inherits(Cartesian2D, Cartesian); return Cartesian2D; });
{ "pile_set_name": "Github" }
binding "gtk-emacs-text-entry" { bind "<alt>BackSpace" { "delete-from-cursor" (word-ends, -1) } } gtk-theme-name="Paper" gtk-icon-theme-name="Paper" gtk-font-name="Roboto 11" gtk-cursor-theme-name="Paper" gtk-cursor-theme-size=0 gtk-toolbar-style=GTK_TOOLBAR_BOTH gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR gtk-button-images=1 gtk-menu-images=1 gtk-enable-event-sounds=1 gtk-enable-input-feedback-sounds=1 gtk-xft-antialias=1 gtk-xft-hinting=1 gtk-xft-hintstyle="hintfull"
{ "pile_set_name": "Github" }
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2013 - Raw Material Software Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 Details of these licenses can be found at: www.gnu.org/licenses JUCE 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. ------------------------------------------------------------------------------ To release a closed-source product which uses JUCE, commercial licenses are available: visit www.juce.com for more information. ============================================================================== */ #ifndef JUCE_AUDIOIODEVICE_H_INCLUDED #define JUCE_AUDIOIODEVICE_H_INCLUDED class AudioIODevice; //============================================================================== /** One of these is passed to an AudioIODevice object to stream the audio data in and out. The AudioIODevice will repeatedly call this class's audioDeviceIOCallback() method on its own high-priority audio thread, when it needs to send or receive the next block of data. @see AudioIODevice, AudioDeviceManager */ class JUCE_API AudioIODeviceCallback { public: /** Destructor. */ virtual ~AudioIODeviceCallback() {} /** Processes a block of incoming and outgoing audio data. The subclass's implementation should use the incoming audio for whatever purposes it needs to, and must fill all the output channels with the next block of output data before returning. The channel data is arranged with the same array indices as the channel name array returned by AudioIODevice::getOutputChannelNames(), but those channels that aren't specified in AudioIODevice::open() will have a null pointer for their associated channel, so remember to check for this. @param inputChannelData a set of arrays containing the audio data for each incoming channel - this data is valid until the function returns. There will be one channel of data for each input channel that was enabled when the audio device was opened (see AudioIODevice::open()) @param numInputChannels the number of pointers to channel data in the inputChannelData array. @param outputChannelData a set of arrays which need to be filled with the data that should be sent to each outgoing channel of the device. There will be one channel of data for each output channel that was enabled when the audio device was opened (see AudioIODevice::open()) The initial contents of the array is undefined, so the callback function must fill all the channels with zeros if its output is silence. Failing to do this could cause quite an unpleasant noise! @param numOutputChannels the number of pointers to channel data in the outputChannelData array. @param numSamples the number of samples in each channel of the input and output arrays. The number of samples will depend on the audio device's buffer size and will usually remain constant, although this isn't guaranteed, so make sure your code can cope with reasonable changes in the buffer size from one callback to the next. */ virtual void audioDeviceIOCallback (const float** inputChannelData, int numInputChannels, float** outputChannelData, int numOutputChannels, int numSamples) = 0; /** Called to indicate that the device is about to start calling back. This will be called just before the audio callbacks begin, either when this callback has just been added to an audio device, or after the device has been restarted because of a sample-rate or block-size change. You can use this opportunity to find out the sample rate and block size that the device is going to use by calling the AudioIODevice::getCurrentSampleRate() and AudioIODevice::getCurrentBufferSizeSamples() on the supplied pointer. @param device the audio IO device that will be used to drive the callback. Note that if you're going to store this this pointer, it is only valid until the next time that audioDeviceStopped is called. */ virtual void audioDeviceAboutToStart (AudioIODevice* device) = 0; /** Called to indicate that the device has stopped. */ virtual void audioDeviceStopped() = 0; /** This can be overridden to be told if the device generates an error while operating. Be aware that this could be called by any thread! And not all devices perform this callback. */ virtual void audioDeviceError (const String& errorMessage); }; //============================================================================== /** Base class for an audio device with synchronised input and output channels. Subclasses of this are used to implement different protocols such as DirectSound, ASIO, CoreAudio, etc. To create one of these, you'll need to use the AudioIODeviceType class - see the documentation for that class for more info. For an easier way of managing audio devices and their settings, have a look at the AudioDeviceManager class. @see AudioIODeviceType, AudioDeviceManager */ class JUCE_API AudioIODevice { public: /** Destructor. */ virtual ~AudioIODevice(); //============================================================================== /** Returns the device's name, (as set in the constructor). */ const String& getName() const noexcept { return name; } /** Returns the type of the device. E.g. "CoreAudio", "ASIO", etc. - this comes from the AudioIODeviceType that created it. */ const String& getTypeName() const noexcept { return typeName; } //============================================================================== /** Returns the names of all the available output channels on this device. To find out which of these are currently in use, call getActiveOutputChannels(). */ virtual StringArray getOutputChannelNames() = 0; /** Returns the names of all the available input channels on this device. To find out which of these are currently in use, call getActiveInputChannels(). */ virtual StringArray getInputChannelNames() = 0; //============================================================================== /** Returns the set of sample-rates this device supports. @see getCurrentSampleRate */ virtual Array<double> getAvailableSampleRates() = 0; /** Returns the set of buffer sizes that are available. @see getCurrentBufferSizeSamples, getDefaultBufferSize */ virtual Array<int> getAvailableBufferSizes() = 0; /** Returns the default buffer-size to use. @returns a number of samples @see getAvailableBufferSizes */ virtual int getDefaultBufferSize() = 0; //============================================================================== /** Tries to open the device ready to play. @param inputChannels a BigInteger in which a set bit indicates that the corresponding input channel should be enabled @param outputChannels a BigInteger in which a set bit indicates that the corresponding output channel should be enabled @param sampleRate the sample rate to try to use - to find out which rates are available, see getAvailableSampleRates() @param bufferSizeSamples the size of i/o buffer to use - to find out the available buffer sizes, see getAvailableBufferSizes() @returns an error description if there's a problem, or an empty string if it succeeds in opening the device @see close */ virtual String open (const BigInteger& inputChannels, const BigInteger& outputChannels, double sampleRate, int bufferSizeSamples) = 0; /** Closes and releases the device if it's open. */ virtual void close() = 0; /** Returns true if the device is still open. A device might spontaneously close itself if something goes wrong, so this checks if it's still open. */ virtual bool isOpen() = 0; /** Starts the device actually playing. This must be called after the device has been opened. @param callback the callback to use for streaming the data. @see AudioIODeviceCallback, open */ virtual void start (AudioIODeviceCallback* callback) = 0; /** Stops the device playing. Once a device has been started, this will stop it. Any pending calls to the callback class will be flushed before this method returns. */ virtual void stop() = 0; /** Returns true if the device is still calling back. The device might mysteriously stop, so this checks whether it's still playing. */ virtual bool isPlaying() = 0; /** Returns the last error that happened if anything went wrong. */ virtual String getLastError() = 0; //============================================================================== /** Returns the buffer size that the device is currently using. If the device isn't actually open, this value doesn't really mean much. */ virtual int getCurrentBufferSizeSamples() = 0; /** Returns the sample rate that the device is currently using. If the device isn't actually open, this value doesn't really mean much. */ virtual double getCurrentSampleRate() = 0; /** Returns the device's current physical bit-depth. If the device isn't actually open, this value doesn't really mean much. */ virtual int getCurrentBitDepth() = 0; /** Returns a mask showing which of the available output channels are currently enabled. @see getOutputChannelNames */ virtual BigInteger getActiveOutputChannels() const = 0; /** Returns a mask showing which of the available input channels are currently enabled. @see getInputChannelNames */ virtual BigInteger getActiveInputChannels() const = 0; /** Returns the device's output latency. This is the delay in samples between a callback getting a block of data, and that data actually getting played. */ virtual int getOutputLatencyInSamples() = 0; /** Returns the device's input latency. This is the delay in samples between some audio actually arriving at the soundcard, and the callback getting passed this block of data. */ virtual int getInputLatencyInSamples() = 0; //============================================================================== /** True if this device can show a pop-up control panel for editing its settings. This is generally just true of ASIO devices. If true, you can call showControlPanel() to display it. */ virtual bool hasControlPanel() const; /** Shows a device-specific control panel if there is one. This should only be called for devices which return true from hasControlPanel(). */ virtual bool showControlPanel(); /** On devices which support it, this allows automatic gain control or other mic processing to be disabled. If the device doesn't support this operation, it'll return false. */ virtual bool setAudioPreprocessingEnabled (bool shouldBeEnabled); //============================================================================== protected: /** Creates a device, setting its name and type member variables. */ AudioIODevice (const String& deviceName, const String& typeName); /** @internal */ String name, typeName; }; #endif // JUCE_AUDIOIODEVICE_H_INCLUDED
{ "pile_set_name": "Github" }
// Copyright 2016 Esri. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. // You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific // language governing permissions and limitations under the License. using Esri.ArcGISRuntime.Mapping; using System; using System.Linq; using Windows.UI.Xaml.Controls; namespace ArcGISRuntime.UWP.Samples.OpenMapURL { [ArcGISRuntime.Samples.Shared.Attributes.Sample( name: "Open map URL", category: "Map", description: "Display a web map.", instructions: "A web map can be selected from the drop-down list. On selection the web map displays in the map view.", tags: new[] { "portal item", "web map" })] public partial class OpenMapURL { // String array to hold URLs to publicly available web maps. private readonly string[] _itemUrls = { "https://www.arcgis.com/home/item.html?id=392451c381ad4109bf04f7bd442bc038", "https://www.arcgis.com/home/item.html?id=01f052c8995e4b9e889d73c3e210ebe3", "https://www.arcgis.com/home/item.html?id=92ad152b9da94dee89b9e387dfe21acd" }; // String array to store titles for the webmaps specified above. These titles are in the same order as the URLs above. private readonly string[] _titles = { "Population Pressure", "USA Tapestry Segmentation", "Geology of United States" }; public OpenMapURL() { InitializeComponent(); // Select the first item. MapList.ItemsSource = _titles; MapList.SelectedIndex = 0; } private void OnMapsChooseSelectionChanged(object sender, SelectionChangedEventArgs e) { string selectedMapName = e.AddedItems[0].ToString(); // Get index that is used to get the selected URL. int selectedIndex = _titles.ToList().IndexOf(selectedMapName); // Create a new Map instance with URL of the webmap that selected. MyMapView.Map = new Map(new Uri(_itemUrls[selectedIndex])); } } }
{ "pile_set_name": "Github" }
# [480.Sliding Window Median][title] > [!WARNING|style:flat] > This question is temporarily unanswered if you have good ideas. Welcome to [Create Pull Request PR](https://github.com/kylesliu/awesome-golang-leetcode) ## Description **Example 1:** ``` Input: a = "11", b = "1" Output: "100" ``` ## 题意 > ... ## 题解 ### 思路1 > ... Sliding Window Median ```go ``` ## 结语 如果你同我一样热爱数据结构、算法、LeetCode,可以关注我 GitHub 上的 LeetCode 题解:[awesome-golang-leetcode][me] [title]: https://leetcode.com/problems/sliding-window-median/ [me]: https://github.com/kylesliu/awesome-golang-leetcode
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <Filter Include="MySQL"> <UniqueIdentifier>{fbfecca7-c304-4573-af9e-a9286f849600}</UniqueIdentifier> </Filter> <Filter Include="MySQL\Header Files"> <UniqueIdentifier>{90812ff5-f8ba-4370-8733-eb572e567830}</UniqueIdentifier> </Filter> <Filter Include="MySQL\Source Files"> <UniqueIdentifier>{8e609f16-703a-49c7-b862-d1762002bc81}</UniqueIdentifier> </Filter> <Filter Include="_Suite"> <UniqueIdentifier>{bf94d13a-d761-4c53-91d9-d39d6593b915}</UniqueIdentifier> </Filter> <Filter Include="_Suite\Header Files"> <UniqueIdentifier>{c00240c0-5c23-4c73-856e-87e133e959f3}</UniqueIdentifier> </Filter> <Filter Include="_Suite\Source Files"> <UniqueIdentifier>{b99d638a-10d5-4363-a8ba-15edc42b86fc}</UniqueIdentifier> </Filter> <Filter Include="_Driver"> <UniqueIdentifier>{6972fcd5-dca0-4c96-8a3a-237d8e9ca1f7}</UniqueIdentifier> </Filter> <Filter Include="_Driver\Source Files"> <UniqueIdentifier>{0e858d45-22c2-4bc7-a07e-74eb6d1e1342}</UniqueIdentifier> </Filter> </ItemGroup> <ItemGroup> <ClInclude Include="src\MySQLTest.h"> <Filter>MySQL\Header Files</Filter> </ClInclude> <ClInclude Include="src\SQLExecutor.h"> <Filter>MySQL\Header Files</Filter> </ClInclude> <ClInclude Include="src\MySQLTestSuite.h"> <Filter>_Suite\Header Files</Filter> </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="src\MySQLTest.cpp"> <Filter>MySQL\Source Files</Filter> </ClCompile> <ClCompile Include="src\SQLExecutor.cpp"> <Filter>MySQL\Source Files</Filter> </ClCompile> <ClCompile Include="src\MySQLTestSuite.cpp"> <Filter>_Suite\Source Files</Filter> </ClCompile> <ClCompile Include="src\WinDriver.cpp"> <Filter>_Driver\Source Files</Filter> </ClCompile> </ItemGroup> </Project>
{ "pile_set_name": "Github" }
melt \ clip3.dv \ -filter \ watermark:clip1.dv \ composite.start=10%/10%:20%x20% \ composite.key[33]=30%/70%:25%x25% \ composite.key[66]=70%/30%:15%x15% \ composite.end=70%/70%:20%x20% \ composite.out=100 \ composite.sliced_composite=1 \ $*
{ "pile_set_name": "Github" }
<!-- 图片轮播 --> <section class="home-carousel clearfix" ng-cloak> <ul rn-carousel rn-carousel-buffered rn-carousel-index="carouselIndex"> <li ng-repeat="img in images"> <img ng-src="{{img.url}}" alt=""> </li> <div rn-carousel-indicators ng-if="images.length > 1" slides="images" rn-carousel-index="carouselIndex"></div> </ul> </section> <!-- 商品列表 --> <section class="board-products clearfix"> <div class="board-title"> {{board.title}} </div> <div class="board-desc"> {{board.desc}} </div> <div class="products-list clearfix"> <item-box ng-repeat="item in board.items"></item-box> </div> </section>
{ "pile_set_name": "Github" }
FROM cgru/afcommon:2.2.3-ubuntu1404 LABEL maintainer="Alexandre Buisine <[email protected]>" version="1.3.0" EXPOSE 51000 CMD ["/opt/cgru/afanasy/bin/afserver"]
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (13.0.2) on Mon Jun 22 16:40:35 EDT 2020 --> <title>Uses of Class oracle.kubernetes.operator.work.Packet (weblogic-kubernetes-operator 2.6.0 API)</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="dc.created" content="2020-06-22"> <meta name="description" content="use: package: oracle.kubernetes.operator.work, class: Packet"> <meta name="generator" content="javadoc/ClassUseWriter"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script-dir/jszip/dist/jszip.min.js"></script> <script type="text/javascript" src="../../../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script> <!--[if IE]> <script type="text/javascript" src="../../../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script> <![endif]--> <script type="text/javascript" src="../../../../../script-dir/jquery-3.4.1.js"></script> <script type="text/javascript" src="../../../../../script-dir/jquery-ui.js"></script> </head> <body class="class-use"> <script type="text/javascript">var pathtoroot = "../../../../../"; loadScripts(document, 'script');</script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <header role="banner"> <nav role="navigation"> <div class="fixedNav"> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a id="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../index.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <div class="navListSearch"><label for="search">SEARCH:</label> <input type="text" id="search" value="search" disabled="disabled"> <input type="reset" id="reset" value="reset" disabled="disabled"> </div> </div> <a id="skip.navbar.top"> <!-- --> </a> <!-- ========= END OF TOP NAVBAR ========= --> </div> <div class="navPadding">&nbsp;</div> <script type="text/javascript"><!-- $('.navPadding').css('padding-top', $('.fixedNav').css("height")); //--> </script> </nav> </header> <main role="main"> <div class="header"> <h1 title="Uses of Class oracle.kubernetes.operator.work.Packet" class="title">Uses of Class<br>oracle.kubernetes.operator.work.Packet</h1> </div> <div class="classUseContainer"> <div class="useSummary"> <table> <caption><span>Packages that use <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></span><span class="tabEnd">&nbsp;</span></caption> <thead> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> </thead> <tbody> <tr class="altColor"> <th class="colFirst" scope="row"><a href="#oracle.kubernetes.operator.calls">oracle.kubernetes.operator.calls</a></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <th class="colFirst" scope="row"><a href="#oracle.kubernetes.operator.helpers">oracle.kubernetes.operator.helpers</a></th> <td class="colLast"> <div class="block">Helper classes that provide easy access to various Kubernetes features.</div> </td> </tr> <tr class="altColor"> <th class="colFirst" scope="row"><a href="#oracle.kubernetes.operator.http">oracle.kubernetes.operator.http</a></th> <td class="colLast"> <div class="block">An HTTP client that is used when making REST calls to WebLogic Administration Servers.</div> </td> </tr> <tr class="rowColor"> <th class="colFirst" scope="row"><a href="#oracle.kubernetes.operator.steps">oracle.kubernetes.operator.steps</a></th> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <th class="colFirst" scope="row"><a href="#oracle.kubernetes.operator.work">oracle.kubernetes.operator.work</a></th> <td class="colLast"> <div class="block">User-level thread infrastructure for the Operator.</div> </td> </tr> </tbody> </table> </div> <section class="classUses"> <ul class="blockList"> <li class="blockList"> <section class="detail"><a id="oracle.kubernetes.operator.calls"> <!-- --> </a> <h2>Uses of <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a> in <a href="../../calls/package-summary.html">oracle.kubernetes.operator.calls</a></h2> <div class="useSummary"> <table> <caption><span>Methods in <a href="../../calls/package-summary.html">oracle.kubernetes.operator.calls</a> with parameters of type <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></span><span class="tabEnd">&nbsp;</span></caption> <thead> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> </thead> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">AsyncRequestStep.</span><code><span class="memberNameLink"><a href="../../calls/AsyncRequestStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">RetryStrategy.</span><code><span class="memberNameLink"><a href="../../calls/RetryStrategy.html#doPotentialRetry(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,int)">doPotentialRetry</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;conflictStep, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, int&nbsp;statusCode)</code></th> <td class="colLast"> <div class="block">Called during <a href="../../helpers/ResponseStep.html#onFailure(oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.calls.CallResponse)"><code>ResponseStep.onFailure(Packet, CallResponse)</code></a> to decide if another retry attempt will occur.</div> </td> </tr> </tbody> </table> </div> </section> </li> <li class="blockList"> <section class="detail"><a id="oracle.kubernetes.operator.helpers"> <!-- --> </a> <h2>Uses of <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a> in <a href="../../helpers/package-summary.html">oracle.kubernetes.operator.helpers</a></h2> <div class="useSummary"> <table> <caption><span>Methods in <a href="../../helpers/package-summary.html">oracle.kubernetes.operator.helpers</a> with parameters of type <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></span><span class="tabEnd">&nbsp;</span></caption> <thead> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> </thead> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ResponseStep.</span><code><span class="memberNameLink"><a href="../../helpers/ResponseStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ResponseStep.</span><code><span class="memberNameLink"><a href="../../helpers/ResponseStep.html#doContinueList(oracle.kubernetes.operator.work.Packet)">doContinueList</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast"> <div class="block">Returns next action that can be used to get the next batch of results from a list search that specified a "continue" value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ResponseStep.</span><code><span class="memberNameLink"><a href="../../helpers/ResponseStep.html#onFailure(oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.calls.CallResponse)">onFailure</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../../calls/CallResponse.html" title="class in oracle.kubernetes.operator.calls">CallResponse</a>&lt;<a href="../../helpers/ResponseStep.html" title="type parameter in ResponseStep">T</a>&gt;&nbsp;callResponse)</code></th> <td class="colLast"> <div class="block">Callback for API server call failure.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ResponseStep.</span><code><span class="memberNameLink"><a href="../../helpers/ResponseStep.html#onFailure(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.calls.CallResponse)">onFailure</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;conflictStep, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../../calls/CallResponse.html" title="class in oracle.kubernetes.operator.calls">CallResponse</a>&lt;<a href="../../helpers/ResponseStep.html" title="type parameter in ResponseStep">T</a>&gt;&nbsp;callResponse)</code></th> <td class="colLast"> <div class="block">Callback for API server call failure.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ResponseStep.</span><code><span class="memberNameLink"><a href="../../helpers/ResponseStep.html#onFailureNoRetry(oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.calls.CallResponse)">onFailureNoRetry</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../../calls/CallResponse.html" title="class in oracle.kubernetes.operator.calls">CallResponse</a>&lt;<a href="../../helpers/ResponseStep.html" title="type parameter in ResponseStep">T</a>&gt;&nbsp;callResponse)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ResponseStep.</span><code><span class="memberNameLink"><a href="../../helpers/ResponseStep.html#onSuccess(oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.calls.CallResponse)">onSuccess</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../../calls/CallResponse.html" title="class in oracle.kubernetes.operator.calls">CallResponse</a>&lt;<a href="../../helpers/ResponseStep.html" title="type parameter in ResponseStep">T</a>&gt;&nbsp;callResponse)</code></th> <td class="colLast"> <div class="block">Callback for API server call success.</div> </td> </tr> </tbody> </table> </div> </section> </li> <li class="blockList"> <section class="detail"><a id="oracle.kubernetes.operator.http"> <!-- --> </a> <h2>Uses of <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a> in <a href="../../http/package-summary.html">oracle.kubernetes.operator.http</a></h2> <div class="useSummary"> <table> <caption><span>Methods in <a href="../../http/package-summary.html">oracle.kubernetes.operator.http</a> with parameters of type <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></span><span class="tabEnd">&nbsp;</span></caption> <thead> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> </thead> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">HttpAsyncRequestStep.</span><code><span class="memberNameLink"><a href="../../http/HttpAsyncRequestStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">HttpResponseStep.</span><code><span class="memberNameLink"><a href="../../http/HttpResponseStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">HttpResponseStep.</span><code><span class="memberNameLink"><a href="../../http/HttpResponseStep.html#onFailure(oracle.kubernetes.operator.work.Packet,java.net.http.HttpResponse)">onFailure</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, java.net.http.HttpResponse&lt;java.lang.String&gt;&nbsp;response)</code></th> <td class="colLast"> <div class="block">Processes a failure response.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">HttpResponseStep.</span><code><span class="memberNameLink"><a href="../../http/HttpResponseStep.html#onSuccess(oracle.kubernetes.operator.work.Packet,java.net.http.HttpResponse)">onSuccess</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, java.net.http.HttpResponse&lt;java.lang.String&gt;&nbsp;response)</code></th> <td class="colLast"> <div class="block">Processes a successful response.</div> </td> </tr> </tbody> </table> </div> </section> </li> <li class="blockList"> <section class="detail"><a id="oracle.kubernetes.operator.steps"> <!-- --> </a> <h2>Uses of <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a> in <a href="../../steps/package-summary.html">oracle.kubernetes.operator.steps</a></h2> <div class="useSummary"> <table> <caption><span>Methods in <a href="../../steps/package-summary.html">oracle.kubernetes.operator.steps</a> with parameters of type <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></span><span class="tabEnd">&nbsp;</span></caption> <thead> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> </thead> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">AbstractListStep.</span><code><span class="memberNameLink"><a href="../../steps/AbstractListStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">BeforeAdminServiceStep.</span><code><span class="memberNameLink"><a href="../../steps/BeforeAdminServiceStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ClusterServicesStep.</span><code><span class="memberNameLink"><a href="../../steps/ClusterServicesStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ConfigMapAfterStep.</span><code><span class="memberNameLink"><a href="../../steps/ConfigMapAfterStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">DeleteDomainStep.</span><code><span class="memberNameLink"><a href="../../steps/DeleteDomainStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">DomainPresenceStep.</span><code><span class="memberNameLink"><a href="../../steps/DomainPresenceStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ManagedServersUpStep.</span><code><span class="memberNameLink"><a href="../../steps/ManagedServersUpStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ManagedServerUpAfterStep.</span><code><span class="memberNameLink"><a href="../../steps/ManagedServerUpAfterStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ManagedServerUpIteratorStep.</span><code><span class="memberNameLink"><a href="../../steps/ManagedServerUpIteratorStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ReadHealthStep.</span><code><span class="memberNameLink"><a href="../../steps/ReadHealthStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ServerDownIteratorStep.</span><code><span class="memberNameLink"><a href="../../steps/ServerDownIteratorStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">ServerDownStep.</span><code><span class="memberNameLink"><a href="../../steps/ServerDownStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">WatchDomainIntrospectorJobReadyStep.</span><code><span class="memberNameLink"><a href="../../steps/WatchDomainIntrospectorJobReadyStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">WatchPodReadyAdminStep.</span><code><span class="memberNameLink"><a href="../../steps/WatchPodReadyAdminStep.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultResponseStep.</span><code><span class="memberNameLink"><a href="../../steps/DefaultResponseStep.html#onFailure(oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.calls.CallResponse)">onFailure</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../../calls/CallResponse.html" title="class in oracle.kubernetes.operator.calls">CallResponse</a>&lt;<a href="../../steps/DefaultResponseStep.html" title="type parameter in DefaultResponseStep">T</a>&gt;&nbsp;callResponse)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultResponseStep.</span><code><span class="memberNameLink"><a href="../../steps/DefaultResponseStep.html#onSuccess(oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.calls.CallResponse)">onSuccess</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../../calls/CallResponse.html" title="class in oracle.kubernetes.operator.calls">CallResponse</a>&lt;<a href="../../steps/DefaultResponseStep.html" title="type parameter in DefaultResponseStep">T</a>&gt;&nbsp;callResponse)</code></th> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </div> </section> </li> <li class="blockList"> <section class="detail"><a id="oracle.kubernetes.operator.work"> <!-- --> </a> <h2>Uses of <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a> in <a href="../package-summary.html">oracle.kubernetes.operator.work</a></h2> <div class="useSummary"> <table> <caption><span>Fields in <a href="../package-summary.html">oracle.kubernetes.operator.work</a> declared as <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></span><span class="tabEnd">&nbsp;</span></caption> <thead> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Field</th> <th class="colLast" scope="col">Description</th> </tr> </thead> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.StepAndPacket.</span><code><span class="memberNameLink"><a href="../Step.StepAndPacket.html#packet">packet</a></span></code></th> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </div> <div class="useSummary"> <table> <caption><span>Methods in <a href="../package-summary.html">oracle.kubernetes.operator.work</a> that return <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></span><span class="tabEnd">&nbsp;</span></caption> <thead> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> </thead> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Packet.</span><code><span class="memberNameLink"><a href="../Packet.html#clone()">clone</a></span>()</code></th> <td class="colLast"> <div class="block">Clones a packet so that the new packet starts with identical values and components.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Fiber.</span><code><span class="memberNameLink"><a href="../Fiber.html#getPacket()">getPacket</a></span>()</code></th> <td class="colLast"> <div class="block">Gets the current <a href="../Packet.html" title="class in oracle.kubernetes.operator.work"><code>Packet</code></a> associated with this fiber.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">NextAction.</span><code><span class="memberNameLink"><a href="../NextAction.html#getPacket()">getPacket</a></span>()</code></th> <td class="colLast"> <div class="block">Returns the last Packet.</div> </td> </tr> </tbody> </table> </div> <div class="useSummary"> <table> <caption><span>Methods in <a href="../package-summary.html">oracle.kubernetes.operator.work</a> with parameters of type <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></span><span class="tabEnd">&nbsp;</span></caption> <thead> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> </thead> <tbody> <tr class="altColor"> <td class="colFirst"><code>abstract <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#apply(oracle.kubernetes.operator.work.Packet)">apply</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast"> <div class="block">Invokes step using the packet as input/output context.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">NextAction.</span><code><span class="memberNameLink"><a href="../NextAction.html#delay(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,long,java.util.concurrent.TimeUnit)">delay</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;next, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;p, long&nbsp;delay, java.util.concurrent.TimeUnit&nbsp;unit)</code></th> <td class="colLast"> <div class="block">Indicates that the fiber should be suspended for the indicated delay duration and then automatically resumed.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#doDelay(oracle.kubernetes.operator.work.Packet,long,java.util.concurrent.TimeUnit)">doDelay</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, long&nbsp;delay, java.util.concurrent.TimeUnit&nbsp;unit)</code></th> <td class="colLast"> <div class="block">Create <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work"><code>NextAction</code></a> that indicates the the current fiber resume with the next step after.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#doDelay(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,long,java.util.concurrent.TimeUnit)">doDelay</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;step, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, long&nbsp;delay, java.util.concurrent.TimeUnit&nbsp;unit)</code></th> <td class="colLast"> <div class="block">Create <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work"><code>NextAction</code></a> that indicates the the current fiber resume with the indicated step after a delay.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#doEnd(oracle.kubernetes.operator.work.Packet)">doEnd</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast"> <div class="block">Returns next action that will end the fiber processing.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#doForkAtLeastOne(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,java.util.Collection)">doForkAtLeastOne</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;step, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, java.util.Collection&lt;<a href="../Step.StepAndPacket.html" title="class in oracle.kubernetes.operator.work">Step.StepAndPacket</a>&gt;&nbsp;startDetails)</code></th> <td class="colLast"> <div class="block">Create a <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work"><code>NextAction</code></a> that suspends the current <a href="../Fiber.html" title="class in oracle.kubernetes.operator.work"><code>Fiber</code></a> and that starts child fibers for each step and packet pair.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#doForkJoin(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,java.util.Collection)">doForkJoin</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;step, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, java.util.Collection&lt;<a href="../Step.StepAndPacket.html" title="class in oracle.kubernetes.operator.work">Step.StepAndPacket</a>&gt;&nbsp;startDetails)</code></th> <td class="colLast"> <div class="block">Create a <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work"><code>NextAction</code></a> that suspends the current <a href="../Fiber.html" title="class in oracle.kubernetes.operator.work"><code>Fiber</code></a> and that starts child fibers for each step and packet pair.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#doNext(oracle.kubernetes.operator.work.Packet)">doNext</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast"> <div class="block">Create <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work"><code>NextAction</code></a> that indicates that the next step be invoked with the given <a href="../Packet.html" title="class in oracle.kubernetes.operator.work"><code>Packet</code></a>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#doNext(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet)">doNext</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;step, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast"> <div class="block">Create <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work"><code>NextAction</code></a> that indicates that the indicated step be invoked with the given <a href="../Packet.html" title="class in oracle.kubernetes.operator.work"><code>Packet</code></a>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#doRetry(oracle.kubernetes.operator.work.Packet,long,java.util.concurrent.TimeUnit)">doRetry</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, long&nbsp;delay, java.util.concurrent.TimeUnit&nbsp;unit)</code></th> <td class="colLast"> <div class="block">Create <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work"><code>NextAction</code></a> that indicates the the current step be retried after a delay.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../NextAction.html" title="class in oracle.kubernetes.operator.work">NextAction</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Step.</span><code><span class="memberNameLink"><a href="../Step.html#doTerminate(java.lang.Throwable,oracle.kubernetes.operator.work.Packet)">doTerminate</a></span>&#8203;(java.lang.Throwable&nbsp;throwable, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast"> <div class="block">Returns next action that will terminate fiber processing with a throwable.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">NextAction.</span><code><span class="memberNameLink"><a href="../NextAction.html#invoke(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet)">invoke</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;next, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;p)</code></th> <td class="colLast"> <div class="block">Indicates that the next action should be to invoke the next step's <a href="../Step.html#apply(oracle.kubernetes.operator.work.Packet)"><code>Step.apply(Packet)</code></a>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Fiber.CompletionCallback.</span><code><span class="memberNameLink"><a href="../Fiber.CompletionCallback.html#onCompletion(oracle.kubernetes.operator.work.Packet)">onCompletion</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast"> <div class="block">Indicates that the fiber has finished its execution.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Fiber.CompletionCallback.</span><code><span class="memberNameLink"><a href="../Fiber.CompletionCallback.html#onThrowable(oracle.kubernetes.operator.work.Packet,java.lang.Throwable)">onThrowable</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, java.lang.Throwable&nbsp;throwable)</code></th> <td class="colLast"> <div class="block">Indicates that the fiber has finished its execution with a throwable.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">AsyncFiber.</span><code><span class="memberNameLink"><a href="../AsyncFiber.html#resume(oracle.kubernetes.operator.work.Packet)">resume</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;resumePacket)</code></th> <td class="colLast"> <div class="block">Resumes a suspended fiber.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Fiber.</span><code><span class="memberNameLink"><a href="../Fiber.html#resume(oracle.kubernetes.operator.work.Packet)">resume</a></span>&#8203;(<a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;resumePacket)</code></th> <td class="colLast"> <div class="block">Wakes up a suspended fiber.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Fiber.</span><code><span class="memberNameLink"><a href="../Fiber.html#start(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.work.Fiber.CompletionCallback)">start</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;stepline, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../Fiber.CompletionCallback.html" title="interface in oracle.kubernetes.operator.work">Fiber.CompletionCallback</a>&nbsp;completionCallback)</code></th> <td class="colLast"> <div class="block">Starts the execution of this fiber asynchronously.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../Fiber.html" title="class in oracle.kubernetes.operator.work">Fiber</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">FiberGate.</span><code><span class="memberNameLink"><a href="../FiberGate.html#startFiber(java.lang.String,oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.work.Fiber.CompletionCallback)">startFiber</a></span>&#8203;(java.lang.String&nbsp;key, <a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;strategy, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../Fiber.CompletionCallback.html" title="interface in oracle.kubernetes.operator.work">Fiber.CompletionCallback</a>&nbsp;callback)</code></th> <td class="colLast"> <div class="block">Starts Fiber that cancels any earlier running Fibers with the same key.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../Fiber.html" title="class in oracle.kubernetes.operator.work">Fiber</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">FiberGate.</span><code><span class="memberNameLink"><a href="../FiberGate.html#startFiberIfLastFiberMatches(java.lang.String,oracle.kubernetes.operator.work.Fiber,oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.work.Fiber.CompletionCallback)">startFiberIfLastFiberMatches</a></span>&#8203;(java.lang.String&nbsp;key, <a href="../Fiber.html" title="class in oracle.kubernetes.operator.work">Fiber</a>&nbsp;old, <a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;strategy, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../Fiber.CompletionCallback.html" title="interface in oracle.kubernetes.operator.work">Fiber.CompletionCallback</a>&nbsp;callback)</code></th> <td class="colLast"> <div class="block">Starts Fiber only if the last started Fiber matches the given old Fiber.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../Fiber.html" title="class in oracle.kubernetes.operator.work">Fiber</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">FiberGate.</span><code><span class="memberNameLink"><a href="../FiberGate.html#startFiberIfNoCurrentFiber(java.lang.String,oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet,oracle.kubernetes.operator.work.Fiber.CompletionCallback)">startFiberIfNoCurrentFiber</a></span>&#8203;(java.lang.String&nbsp;key, <a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;strategy, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet, <a href="../Fiber.CompletionCallback.html" title="interface in oracle.kubernetes.operator.work">Fiber.CompletionCallback</a>&nbsp;callback)</code></th> <td class="colLast"> <div class="block">Starts Fiber only if there is no running Fiber with the same key.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">AsyncFiber.</span><code><span class="memberNameLink"><a href="../AsyncFiber.html#terminate(java.lang.Throwable,oracle.kubernetes.operator.work.Packet)">terminate</a></span>&#8203;(java.lang.Throwable&nbsp;t, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast"> <div class="block">Terminates this fiber with a throwable.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">Fiber.</span><code><span class="memberNameLink"><a href="../Fiber.html#terminate(java.lang.Throwable,oracle.kubernetes.operator.work.Packet)">terminate</a></span>&#8203;(java.lang.Throwable&nbsp;t, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast"> <div class="block">Terminates fiber with throwable.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">NextAction.</span><code><span class="memberNameLink"><a href="../NextAction.html#terminate(java.lang.Throwable,oracle.kubernetes.operator.work.Packet)">terminate</a></span>&#8203;(java.lang.Throwable&nbsp;t, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;p)</code></th> <td class="colLast"> <div class="block">Indicates that the next action should be to terminate the fiber.</div> </td> </tr> </tbody> </table> </div> <div class="useSummary"> <table> <caption><span>Constructors in <a href="../package-summary.html">oracle.kubernetes.operator.work</a> with parameters of type <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a></span><span class="tabEnd">&nbsp;</span></caption> <thead> <tr> <th class="colFirst" scope="col">Constructor</th> <th class="colLast" scope="col">Description</th> </tr> </thead> <tbody> <tr class="altColor"> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../Step.StepAndPacket.html#%3Cinit%3E(oracle.kubernetes.operator.work.Step,oracle.kubernetes.operator.work.Packet)">StepAndPacket</a></span>&#8203;(<a href="../Step.html" title="class in oracle.kubernetes.operator.work">Step</a>&nbsp;step, <a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Packet</a>&nbsp;packet)</code></th> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </div> </section> </li> </ul> </section> </div> </main> <footer role="contentinfo"> <nav role="navigation"> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a id="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../index.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../Packet.html" title="class in oracle.kubernetes.operator.work">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <a id="skip.navbar.bottom"> <!-- --> </a> <!-- ======== END OF BOTTOM NAVBAR ======= --> </nav> <p class="legalCopy"><small>Copyright &#169; 2017&#x2013;2020. All rights reserved.</small></p> </footer> </body> </html>
{ "pile_set_name": "Github" }
// // MASConstraintBuilder.m // Masonry // // Created by Jonas Budelmann on 20/07/13. // Copyright (c) 2013 cloudling. All rights reserved. // #import "MASConstraintMaker.h" #import "MASViewConstraint.h" #import "MASCompositeConstraint.h" #import "MASConstraint+Private.h" #import "MASViewAttribute.h" #import "View+MASAdditions.h" @interface MASConstraintMaker () <MASConstraintDelegate> @property (nonatomic, weak) MAS_VIEW *view; @property (nonatomic, strong) NSMutableArray *constraints; @end @implementation MASConstraintMaker - (id)initWithView:(MAS_VIEW *)view { self = [super init]; if (!self) return nil; self.view = view; self.constraints = NSMutableArray.new; return self; } - (NSArray *)install { if (self.removeExisting) { NSArray *installedConstraints = [MASViewConstraint installedConstraintsForView:self.view]; for (MASConstraint *constraint in installedConstraints) { [constraint uninstall]; } } NSArray *constraints = self.constraints.copy; for (MASConstraint *constraint in constraints) { constraint.updateExisting = self.updateExisting; [constraint install]; } [self.constraints removeAllObjects]; return constraints; } #pragma mark - MASConstraintDelegate - (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint { NSUInteger index = [self.constraints indexOfObject:constraint]; NSAssert(index != NSNotFound, @"Could not find constraint %@", constraint); [self.constraints replaceObjectAtIndex:index withObject:replacementConstraint]; } - (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute { MASViewAttribute *viewAttribute = [[MASViewAttribute alloc] initWithView:self.view layoutAttribute:layoutAttribute]; MASViewConstraint *newConstraint = [[MASViewConstraint alloc] initWithFirstViewAttribute:viewAttribute]; if ([constraint isKindOfClass:MASViewConstraint.class]) { //replace with composite constraint NSArray *children = @[constraint, newConstraint]; MASCompositeConstraint *compositeConstraint = [[MASCompositeConstraint alloc] initWithChildren:children]; compositeConstraint.delegate = self; [self constraint:constraint shouldBeReplacedWithConstraint:compositeConstraint]; return compositeConstraint; } if (!constraint) { newConstraint.delegate = self; [self.constraints addObject:newConstraint]; } return newConstraint; } - (MASConstraint *)addConstraintWithAttributes:(MASAttribute)attrs { __unused MASAttribute anyAttribute = (MASAttributeLeft | MASAttributeRight | MASAttributeTop | MASAttributeBottom | MASAttributeLeading | MASAttributeTrailing | MASAttributeWidth | MASAttributeHeight | MASAttributeCenterX | MASAttributeCenterY | MASAttributeBaseline #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) | MASAttributeFirstBaseline | MASAttributeLastBaseline #endif #if TARGET_OS_IPHONE || TARGET_OS_TV | MASAttributeLeftMargin | MASAttributeRightMargin | MASAttributeTopMargin | MASAttributeBottomMargin | MASAttributeLeadingMargin | MASAttributeTrailingMargin | MASAttributeCenterXWithinMargins | MASAttributeCenterYWithinMargins #endif ); NSAssert((attrs & anyAttribute) != 0, @"You didn't pass any attribute to make.attributes(...)"); NSMutableArray *attributes = [NSMutableArray array]; if (attrs & MASAttributeLeft) [attributes addObject:self.view.mas_left]; if (attrs & MASAttributeRight) [attributes addObject:self.view.mas_right]; if (attrs & MASAttributeTop) [attributes addObject:self.view.mas_top]; if (attrs & MASAttributeBottom) [attributes addObject:self.view.mas_bottom]; if (attrs & MASAttributeLeading) [attributes addObject:self.view.mas_leading]; if (attrs & MASAttributeTrailing) [attributes addObject:self.view.mas_trailing]; if (attrs & MASAttributeWidth) [attributes addObject:self.view.mas_width]; if (attrs & MASAttributeHeight) [attributes addObject:self.view.mas_height]; if (attrs & MASAttributeCenterX) [attributes addObject:self.view.mas_centerX]; if (attrs & MASAttributeCenterY) [attributes addObject:self.view.mas_centerY]; if (attrs & MASAttributeBaseline) [attributes addObject:self.view.mas_baseline]; #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) if (attrs & MASAttributeFirstBaseline) [attributes addObject:self.view.mas_firstBaseline]; if (attrs & MASAttributeLastBaseline) [attributes addObject:self.view.mas_lastBaseline]; #endif #if TARGET_OS_IPHONE || TARGET_OS_TV if (attrs & MASAttributeLeftMargin) [attributes addObject:self.view.mas_leftMargin]; if (attrs & MASAttributeRightMargin) [attributes addObject:self.view.mas_rightMargin]; if (attrs & MASAttributeTopMargin) [attributes addObject:self.view.mas_topMargin]; if (attrs & MASAttributeBottomMargin) [attributes addObject:self.view.mas_bottomMargin]; if (attrs & MASAttributeLeadingMargin) [attributes addObject:self.view.mas_leadingMargin]; if (attrs & MASAttributeTrailingMargin) [attributes addObject:self.view.mas_trailingMargin]; if (attrs & MASAttributeCenterXWithinMargins) [attributes addObject:self.view.mas_centerXWithinMargins]; if (attrs & MASAttributeCenterYWithinMargins) [attributes addObject:self.view.mas_centerYWithinMargins]; #endif NSMutableArray *children = [NSMutableArray arrayWithCapacity:attributes.count]; for (MASViewAttribute *a in attributes) { [children addObject:[[MASViewConstraint alloc] initWithFirstViewAttribute:a]]; } MASCompositeConstraint *constraint = [[MASCompositeConstraint alloc] initWithChildren:children]; constraint.delegate = self; [self.constraints addObject:constraint]; return constraint; } #pragma mark - standard Attributes - (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute { return [self constraint:nil addConstraintWithLayoutAttribute:layoutAttribute]; } - (MASConstraint *)left { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeft]; } - (MASConstraint *)top { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTop]; } - (MASConstraint *)right { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRight]; } - (MASConstraint *)bottom { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottom]; } - (MASConstraint *)leading { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeading]; } - (MASConstraint *)trailing { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailing]; } - (MASConstraint *)width { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeWidth]; } - (MASConstraint *)height { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeHeight]; } - (MASConstraint *)centerX { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterX]; } - (MASConstraint *)centerY { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterY]; } - (MASConstraint *)baseline { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBaseline]; } - (MASConstraint *(^)(MASAttribute))attributes { return ^(MASAttribute attrs){ return [self addConstraintWithAttributes:attrs]; }; } #if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 9000) || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) - (MASConstraint *)firstBaseline { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeFirstBaseline]; } - (MASConstraint *)lastBaseline { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLastBaseline]; } #endif #if TARGET_OS_IPHONE || TARGET_OS_TV - (MASConstraint *)leftMargin { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeftMargin]; } - (MASConstraint *)rightMargin { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeRightMargin]; } - (MASConstraint *)topMargin { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTopMargin]; } - (MASConstraint *)bottomMargin { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeBottomMargin]; } - (MASConstraint *)leadingMargin { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeLeadingMargin]; } - (MASConstraint *)trailingMargin { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeTrailingMargin]; } - (MASConstraint *)centerXWithinMargins { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterXWithinMargins]; } - (MASConstraint *)centerYWithinMargins { return [self addConstraintWithLayoutAttribute:NSLayoutAttributeCenterYWithinMargins]; } #endif #pragma mark - composite Attributes - (MASConstraint *)edges { return [self addConstraintWithAttributes:MASAttributeTop | MASAttributeLeft | MASAttributeRight | MASAttributeBottom]; } - (MASConstraint *)size { return [self addConstraintWithAttributes:MASAttributeWidth | MASAttributeHeight]; } - (MASConstraint *)center { return [self addConstraintWithAttributes:MASAttributeCenterX | MASAttributeCenterY]; } #pragma mark - grouping - (MASConstraint *(^)(dispatch_block_t group))group { return ^id(dispatch_block_t group) { NSInteger previousCount = self.constraints.count; group(); NSArray *children = [self.constraints subarrayWithRange:NSMakeRange(previousCount, self.constraints.count - previousCount)]; MASCompositeConstraint *constraint = [[MASCompositeConstraint alloc] initWithChildren:children]; constraint.delegate = self; return constraint; }; } @end
{ "pile_set_name": "Github" }
0.020144 0.001192 0.003173 0.000041 0.000711 0.002487 0.000619 0.028830 0.000037 0.000552 0.002492 0.040996 0.003131 0.000692 0.029309 0.042222 0.085132 0.000021 0.000585 0.001467 0.024595 0.015337 0.010084 0.002469 0.000507 0.025139 0.020442 0.050762 0.008503 0.012916 0.000032 0.000669 0.001783 0.030968 0.014635 0.010091 0.000924 0.000569 0.027473 0.021051 0.061298 0.008837 0.013303 0.002111 0.041362 0.012288 0.008798 0.001156 0.039003 0.095450 0.009897 0.015582 0.012666 0.008803 0.000848 0.008264 0.014231 0.001440 0.101881 0.293369 0.005098 0.050427 0.000154 0.007474 0.000896 0.000231 0.012627 0.000142 0.000165 0.001146 0.026108 0.058964 0.006181 0.006045 0.015806 0.031810 0.000145 0.009383 0.003397 0.002616 0.004340 0.002490 0.000901 0.000216 0.011794 0.004713 0.004757 0.006701 0.003757 0.000140 0.005300 0.002742 0.005660 0.009997 0.003764 0.011261 0.000192 0.006973 0.003790 0.008752 0.015527 0.005616 0.001007 0.014953 0.004807 0.010563 0.058279 0.024229 0.030567 0.003143 0.004668 0.008856 0.003571 0.009550 0.011856 0.004198 0.048254 0.109932 0.252756 0.005561 0.000947 0.000172 0.000280 0.054430 0.009715 0.013541 0.000160 0.009094 0.005907 0.008512 0.001038 0.000243 0.010075 0.008626 0.016169 0.000174 0.000287 0.000951 0.016160 0.008219 0.015713 0.055406 0.011996 0.014436 0.019135 0.024176 0.002721 0.004225 0.000135 0.000248 0.001032 0.021391 0.011405 0.018745 0.058950 0.009285 0.011205 0.017017 0.023585 0.002788 0.004420 0.007453 0.008198 0.009745 0.002687 0.008180 0.008273 0.010804 0.013610 0.003735 0.009573 0.012975 0.048629 0.003276 0.003774 0.008122 0.089933
{ "pile_set_name": "Github" }
// Protocol Buffers for Go with Gadgets // // Copyright (c) 2013, The GoGo Authors. All rights reserved. // http://github.com/gogo/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. package equal import ( "github.com/gogo/protobuf/gogoproto" "github.com/gogo/protobuf/plugin/testgen" "github.com/gogo/protobuf/protoc-gen-gogo/generator" ) type test struct { *generator.Generator } func NewTest(g *generator.Generator) testgen.TestPlugin { return &test{g} } func (p *test) Generate(imports generator.PluginImports, file *generator.FileDescriptor) bool { used := false randPkg := imports.NewImport("math/rand") timePkg := imports.NewImport("time") testingPkg := imports.NewImport("testing") protoPkg := imports.NewImport("github.com/gogo/protobuf/proto") unsafePkg := imports.NewImport("unsafe") if !gogoproto.ImportsGoGoProto(file.FileDescriptorProto) { protoPkg = imports.NewImport("github.com/golang/protobuf/proto") } for _, message := range file.Messages() { ccTypeName := generator.CamelCaseSlice(message.TypeName()) if !gogoproto.HasVerboseEqual(file.FileDescriptorProto, message.DescriptorProto) { continue } if message.DescriptorProto.GetOptions().GetMapEntry() { continue } if gogoproto.HasTestGen(file.FileDescriptorProto, message.DescriptorProto) { used = true hasUnsafe := gogoproto.IsUnsafeMarshaler(file.FileDescriptorProto, message.DescriptorProto) || gogoproto.IsUnsafeUnmarshaler(file.FileDescriptorProto, message.DescriptorProto) p.P(`func Test`, ccTypeName, `VerboseEqual(t *`, testingPkg.Use(), `.T) {`) p.In() if hasUnsafe { if hasUnsafe { p.P(`var bigendian uint32 = 0x01020304`) p.P(`if *(*byte)(`, unsafePkg.Use(), `.Pointer(&bigendian)) == 1 {`) p.In() p.P(`t.Skip("unsafe does not work on big endian architectures")`) p.Out() p.P(`}`) } } p.P(`popr := `, randPkg.Use(), `.New(`, randPkg.Use(), `.NewSource(`, timePkg.Use(), `.Now().UnixNano()))`) p.P(`p := NewPopulated`, ccTypeName, `(popr, false)`) p.P(`dAtA, err := `, protoPkg.Use(), `.Marshal(p)`) p.P(`if err != nil {`) p.In() p.P(`panic(err)`) p.Out() p.P(`}`) p.P(`msg := &`, ccTypeName, `{}`) p.P(`if err := `, protoPkg.Use(), `.Unmarshal(dAtA, msg); err != nil {`) p.In() p.P(`panic(err)`) p.Out() p.P(`}`) p.P(`if err := p.VerboseEqual(msg); err != nil {`) p.In() p.P(`t.Fatalf("%#v !VerboseEqual %#v, since %v", msg, p, err)`) p.Out() p.P(`}`) p.Out() p.P(`}`) } } return used } func init() { testgen.RegisterTestPlugin(NewTest) }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <block> <info> <name>Config Menu</name> <author>VinaDes.,Jsc</author> <website>http://vinades.vn</website> <description></description> </info> <config> <facebook>http://www.facebook.com/nukeviet</facebook> <youtube>https://www.youtube.com/user/nukeviet</youtube> <twitter>https://twitter.com/nukeviet</twitter> </config> <datafunction>nv_menu_theme_social_config</datafunction> <submitfunction>nv_menu_theme_social_submit</submitfunction> </block>
{ "pile_set_name": "Github" }
{ "created_at": "2015-02-27T22:28:35.367137", "description": "Build server-side RESTful APIs in C#, they easy way", "fork": false, "full_name": "mstauber/RestEasy", "language": "C#", "updated_at": "2015-02-27T23:43:06.874955" }
{ "pile_set_name": "Github" }