text
stringlengths
11
99.8k
meta
dict
<?xml version="1.0" encoding="UTF-8"?> <segment> <name>PD1</name> <description>Patient Additional Demographic</description> <elements> <field minOccurs="0" maxOccurs="0"> <name>PD1.1</name> <description>Living Dependency</description> <datatype>IS</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.2</name> <description>Living Arrangement</description> <datatype>IS</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.3</name> <description>Patient Primary Facility</description> <datatype>XON</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.4</name> <description>Patient Primary Care Provider Name &amp; ID No.</description> <datatype>XCN</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.5</name> <description>Student Indicator</description> <datatype>IS</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.6</name> <description>Handicap</description> <datatype>IS</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.7</name> <description>Living Will Code</description> <datatype>IS</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.8</name> <description>Organ Donor Code</description> <datatype>IS</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.9</name> <description>Separate Bill</description> <datatype>ID</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.10</name> <description>Duplicate Patient</description> <datatype>CX</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.11</name> <description>Publicity Code</description> <datatype>CE</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.12</name> <description>Protection Indicator</description> <datatype>ID</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.13</name> <description>Protection Indicator Effective Date</description> <datatype>DT</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.14</name> <description>Place of Worship</description> <datatype>XON</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.15</name> <description>Advance Directive Code</description> <datatype>CE</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.16</name> <description>Immunization Registry Status</description> <datatype>IS</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.17</name> <description>Immunization Registry Status Effective Date</description> <datatype>DT</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.18</name> <description>Publicity Code Effective Date</description> <datatype>DT</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.19</name> <description>Military Branch</description> <datatype>IS</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.20</name> <description>Military Rank/Grade</description> <datatype>IS</datatype> </field> <field minOccurs="0" maxOccurs="0"> <name>PD1.21</name> <description>Military Status</description> <datatype>IS</datatype> </field> </elements> </segment>
{ "pile_set_name": "Github" }
{ "fpsLimit": 60, "preset": "basic", "background": { "color": "#0d47a1", "image": "", "position": "50% 50%", "repeat": "no-repeat", "size": "cover" } }
{ "pile_set_name": "Github" }
cask "font-cormorant-sc" do version :latest sha256 :no_check # github.com/google/fonts/ was verified as official when first introduced to the cask url "https://github.com/google/fonts/trunk/ofl/cormorantsc", using: :svn, trust_cert: true name "Cormorant SC" homepage "https://fonts.google.com/specimen/Cormorant+SC" font "CormorantSC-Bold.ttf" font "CormorantSC-Light.ttf" font "CormorantSC-Medium.ttf" font "CormorantSC-Regular.ttf" font "CormorantSC-SemiBold.ttf" end
{ "pile_set_name": "Github" }
var config = { type: Phaser.AUTO, parent: 'phaser-example', width: 800, height: 600, scene: { create: create }, }; var game = new Phaser.Game(config); function create() { var graphics = this.add.graphics(); drawStar(graphics, 100, 300, 4, 50, 50 / 2, 0xffff00, 0xff0000); drawStar(graphics, 400, 300, 5, 100, 100 / 2, 0xffff00, 0xff0000); drawStar(graphics, 700, 300, 6, 50, 50 / 2, 0xffff00, 0xff0000); } function drawStar (graphics, cx, cy, spikes, outerRadius, innerRadius, color, lineColor) { var rot = Math.PI / 2 * 3; var x = cx; var y = cy; var step = Math.PI / spikes; graphics.lineStyle(4, lineColor, 1); graphics.fillStyle(color, 1); graphics.beginPath(); graphics.moveTo(cx, cy - outerRadius); for (i = 0; i < spikes; i++) { x = cx + Math.cos(rot) * outerRadius; y = cy + Math.sin(rot) * outerRadius; graphics.lineTo(x, y); rot += step; x = cx + Math.cos(rot) * innerRadius; y = cy + Math.sin(rot) * innerRadius; graphics.lineTo(x, y); rot += step; } graphics.lineTo(cx, cy - outerRadius); graphics.closePath(); graphics.fillPath(); graphics.strokePath(); }
{ "pile_set_name": "Github" }
.theme-dusk,.theme-midnight { .hljs { display: block; overflow-x: auto; background: #232323; color: #e6e1dc; } .hljs-comment, .hljs-quote { color: #bc9458; font-style: italic; } .hljs-keyword, .hljs-selector-tag { color: #c26230; } .hljs-string, .hljs-number, .hljs-regexp, .hljs-variable, .hljs-template-variable { color: #a5c261; } .hljs-subst { color: #519f50; } .hljs-tag, .hljs-name { color: #e8bf6a; } .hljs-type { color: #da4939; } .hljs-symbol, .hljs-bullet, .hljs-built_in, .hljs-builtin-name, .hljs-attr, .hljs-link { color: #6d9cbe; } .hljs-params { color: #d0d0ff; } .hljs-attribute { color: #cda869; } .hljs-meta { color: #9b859d; } .hljs-title, .hljs-section { color: #ffc66d; } .hljs-addition { background-color: #144212; color: #e6e1dc; display: inline-block; width: 100%; } .hljs-deletion { background-color: #600; color: #e6e1dc; display: inline-block; width: 100%; } .hljs-selector-class { color: #9b703f; } .hljs-selector-id { color: #8b98ab; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: bold; } .hljs-link { text-decoration: underline; } }
{ "pile_set_name": "Github" }
/// /// Massively by HTML5 UP /// html5up.net | @ajlkn /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) /// /* Wrapper */ #wrapper { @include vendor('transition', 'opacity #{_duration(menu)} ease'); position: relative; z-index: 1; overflow: hidden; > .bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: _palette(wrapper-bg); background-image: url('../../images/overlay.png'), linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../../images/bg.jpg'); background-size: auto, auto, 100% auto; background-position: center, center, top center; background-repeat: repeat, no-repeat, no-repeat; background-attachment: scroll, scroll, scroll; z-index: -1; &.fixed { position: fixed; width: 100vw; height: 100vh; } } &.fade-in { &:before { @include vendor('pointer-events', 'none'); @include vendor('transition', 'opacity 1s ease-in-out'); @include vendor('transition-delay', '0.75s'); background: _palette(invert, bg); content: ''; display: block; height: 100%; left: 0; opacity: 0; position: fixed; top: 0; width: 100%; } body.is-loading & { &:before { opacity: 1; } } } @include orientation(portrait) { > .bg { background-size: auto, auto, auto 175%; } } }
{ "pile_set_name": "Github" }
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "Dinda", "Dilolo" ], "DAY": [ "Lumingu", "Nkodya", "Nd\u00e0ay\u00e0", "Ndang\u00f9", "Nj\u00f2wa", "Ng\u00f2vya", "Lubingu" ], "MONTH": [ "Ciongo", "L\u00f9ishi", "Lus\u00f2lo", "M\u00f9uy\u00e0", "Lum\u00f9ng\u00f9l\u00f9", "Lufuimi", "Kab\u00e0l\u00e0sh\u00ecp\u00f9", "L\u00f9sh\u00eck\u00e0", "Lutongolo", "Lung\u00f9di", "Kasw\u00e8k\u00e8s\u00e8", "Cisw\u00e0" ], "SHORTDAY": [ "Lum", "Nko", "Ndy", "Ndg", "Njw", "Ngv", "Lub" ], "SHORTMONTH": [ "Cio", "Lui", "Lus", "Muu", "Lum", "Luf", "Kab", "Lush", "Lut", "Lun", "Kas", "Cis" ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "d/M/y HH:mm", "shortDate": "d/M/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "FrCD", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a4", "posPre": "", "posSuf": "\u00a4" } ] }, "id": "lu-cd", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/appBackground" android:foreground="?android:attr/selectableItemBackground" android:gravity="center_vertical" android:orientation="horizontal" android:paddingBottom="15dp" android:paddingLeft="10dp" android:paddingRight="10dp" android:paddingTop="15dp"> <ImageView android:id="@+id/song_item_img" android:layout_width="50dp" android:layout_height="50dp" android:layout_weight="0" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="15dp" android:layout_weight="1" android:orientation="vertical"> <TextView android:id="@+id/song_item_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#000" android:textSize="16sp" /> <TextView android:id="@+id/song_item_artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textColor="#989898" android:textSize="14sp" /> </LinearLayout> <ImageView android:id="@+id/song_item_menu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:layout_weight="0" android:background="@drawable/unbounded_ripple" android:foregroundTint="#434343" android:padding="5dp" android:src="@drawable/abc_ic_menu_moreoverflow_mtrl_alpha" android:theme="@style/Theme.AppCompat.Light" /> </LinearLayout>
{ "pile_set_name": "Github" }
def extractStartlingSurprisesAtEveryStep(item): vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol or frag) or 'preview' in item['title'].lower(): return None if 'bu bu jing xin' in item['tags']: return buildReleaseMessageWithType(item, 'Bu Bu Jing Xin', vol, chp, frag=frag, postfix=postfix) return False
{ "pile_set_name": "Github" }
'use strict'; var dbm; var type; var seed; /** * We receive the dbmigrate dependency from dbmigrate initially. * This enables us to not have to rely on NODE_PATH. */ exports.setup = function (options, seedLink) { dbm = options.dbmigrate; type = dbm.dataType; seed = seedLink; }; exports.up = function (db) { return Promise.all([ db.runSql('UPDATE office SET name = \'Office of Brazil and Southern Cone (WHA/BSC)\' where name=\'Office of Brail and Southern Cone (WHA/BSC)\''), db.runSql('UPDATE office SET name = \'U.S. Embassy La Paz\' where name=\'U.S. Embassy LaPaz\''), ]); }; exports.down = function (db) { return Promise.all([ db.runSql('UPDATE office SET name = \'Office of Brail and Southern Cone (WHA/BSC)\' where name=\'Office of Brazil and Southern Cone (WHA/BSC)\''), db.runSql('UPDATE office SET name = \'U.S. Embassy LaPaz\' where name=\'U.S. Embassy La Paz\''), ]); };
{ "pile_set_name": "Github" }
<html> <head> <title>Path test</title> <style type="text/css"> .pixel { position: absolute; width: 1px; height: 1px; overflow: hidden; background: #000; } .red { background: red; } .blue { background: blue; } </style> <script language="JavaScript" type="text/javascript"> // Dojo configuration djConfig = { isDebug: true }; </script> <script language="JavaScript" type="text/javascript" src="../../dojo.js"></script> <script language="JavaScript" type="text/javascript"> dojo.require("dojo.math.*"); function drawCurve(curve,steps,className) { if(!className) className = "pixel"; if(!steps) steps = 100; this.pixels = new Array(steps) for(var i=0;i<steps;i++) { var pt = curve.getValue(i/steps); this.pixels[i] = document.createElement("div"); this.pixels[i].className = className; this.pixels[i].style.left = pt[0]; this.pixels[i].style.top = pt[1]; document.body.appendChild(this.pixels[i]); } } function init(){ var c = dojo.math.curves; var p = new c.Path(); p.add(new c.Line([10,10], [100,100]), 5); p.add(new c.Line([0,0], [20,0]), 2); p.add(new c.CatmullRom([[0,0], [400,400], [200,200], [500,50]]), 50); p.add(new c.Arc([0,0], [100,100]), 20); p.add(new c.Arc([0,0], [100,100], true), 20); drawCurve(p, 200, "pixel"); //drawCurve(new c.Line([0,250], [800,250]), 50, "pixel red"); //drawCurve(new c.Line([500,0], [500,600]), 50, "pixel red"); //drawCurve(new c.Arc([300,300], [700,200]), 50, "pixel"); //drawCurve(new c.Arc([200,200], [100,100], false), 50, "pixel blue"); } dojo.addOnLoad(init); </script> </head> <body> </body> </html>
{ "pile_set_name": "Github" }
id: dsq-747531936 date: 2010-04-05T22:49:24.0000000-07:00 name: DonSleza4e avatar: https://disqus.com/api/users/avatars/DonSleza4e.jpg message: <p>Awesome<br>Integrated lib with my <a href="http://asp.net" rel="nofollow noopener" title="asp.net">asp.net</a> mvc project ^^</p>
{ "pile_set_name": "Github" }
export const environment = { production: true };
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android" > <Button android:id="@+id/btn_crash_restart" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="重启App" android:layout_alignParentTop="true" /> <TextView android:id="@+id/tv_crash_info" android:layout_width="match_parent" android:layout_height="wrap_content" android:singleLine="false" android:ellipsize="none" android:gravity="left" android:inputType="textMultiLine" android:layout_below="@id/btn_crash_restart" /> </RelativeLayout>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <Workspace version = "1.0"> <FileRef location = "group:Runner.xcodeproj"> </FileRef> </Workspace>
{ "pile_set_name": "Github" }
fileFormatVersion: 2 guid: c6be551879cd14d739b0188844ef2c60 timeCreated: 1447582131 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {fileID: 2800000, guid: e1e5ef31262d242ce8efe2020a27425e, type: 3} userData: assetBundleName: assetBundleVariant:
{ "pile_set_name": "Github" }
{ "images" : [ { "idiom" : "watch", "scale" : "2x", "screen-width" : "<=145" }, { "idiom" : "watch", "scale" : "2x", "screen-width" : ">161" }, { "idiom" : "watch", "scale" : "2x", "screen-width" : ">145" }, { "idiom" : "watch", "scale" : "2x", "screen-width" : ">183" } ], "info" : { "version" : 1, "author" : "xcode" } }
{ "pile_set_name": "Github" }
<import src="../../../common/head.wxml"/> <import src="../../../common/foot.wxml"/> <view class="container"> <template is="head" data="{{title: 'sendMessage'}}"/> <view class="page-body"> <view class="weui-cells__title">发送内容(以下字段可自由适配)</view> <view class="weui-cells weui-cells_after-title"> <view class="weui-cell weui-cell_input"> <view class="weui-cell__hd"> <view class="weui-label">实例字段</view> </view> <view class="weui-cell__bd"> <input class="weui-input" type="text" placeholder="请输入"></input> </view> </view> <view class="weui-cell weui-cell_input"> <view class="weui-cell__hd"> <view class="weui-label">实例字段</view> </view> <view class="weui-cell__bd"> <input class="weui-input" type="text" placeholder="请输入"></input> </view> </view> </view> <view class="weui-cells"> <view class="weui-cell weui-cell_input"> <view class="weui-cell__hd"> <view class="weui-label">跳转链接</view> </view> <view class="weui-cell__bd"> <input class="weui-input" type="text" placeholder="请输入" value="{{shareData.path}}"></input> </view> </view> </view> <view class="btn-area"> <button type="primary">发送模板消息</button> </view> </view> <template is="foot"/> </view>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <packages> <package id="Dapper" version="1.50.4-alpha1-00070" targetFramework="net452" /> <package id="Dapper.Contrib" version="1.50.0" targetFramework="net452" /> <package id="Dapper.Extension" version="1.0.0.1" targetFramework="net452" /> <package id="EntityFramework" version="6.1.3" targetFramework="net452" /> <package id="SyntacticSugar" version="2.4.1" targetFramework="net452" /> </packages>
{ "pile_set_name": "Github" }
PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX ns: <http://example.org/ns#> SELECT ?title ?price { ?x ns:price ?p . ?x ns:discount ?discount BIND (?p*(1-?discount) AS ?price) FILTER(?price < 20) ?x dc:title ?title . }
{ "pile_set_name": "Github" }
--- "Missing document with catch": - do: catch: missing get: index: test_1 id: 1 --- "Missing document with ignore": - do: get: index: test_1 id: 1 ignore: 404
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="en" data-navbar="/account/navbar-profile.html"> <head> <meta charset="utf-8" /> <title translate="yes">Establecer o perfil predeterminado</title> <link href="/public/pure-min.css" rel="stylesheet"> <link href="/public/content.css" rel="stylesheet"> <link href="/public/content-additional.css" rel="stylesheet"> <base target="_top" href="/"> </head> <body> <h1 translate="yes">Establecer o perfil predeterminado</h1> <p translate="yes">O teu perfil predeterminado serve como principal punto de contacto da túa conta.</p> <div id="message-container"></div> <form id="submit-form" method="post" class="pure-form" action="/account/set-default-profile" name="submit-form"> <fieldset> <div class="pure-control-group"> <select id="profileid" name="profileid"> <option value="" translate="yes"> Selecciona perfil </option> </select> </div> <button id="submit-button" type="submit" class="pure-button pure-button-primary" translate="yes">Establecer o perfil predeterminado</button> </fieldset> </form> <template id="success"> <div class="success message" translate="yes"> Éxito! O perfil é o teu estándar </div> </template> <template id="unknown-error"> <div class="error message" translate="yes"> Erro! Produciuse un erro descoñecido </div> </template> <template id="default-profile"> <div class="error message" translate="yes"> Erro! Este é xa o teu perfil predeterminado </div> </template> <template id="profile-option"> <option value="${profile.profileid}"> ${profile.contactEmail}, ${profile.firstName} ${profile.lastName} </option> </template> </body> </html>
{ "pile_set_name": "Github" }
AxisControlBus ControlBus PathPlanning1 PathPlanning6 PathToAxisControlBus GearType1 GearType2 Motor Controller AxisType1 AxisType2 MechanicalStructure
{ "pile_set_name": "Github" }
<?xml version="1.0" ?> <component id="root" name="root"> <component id="system" name="system"> <!--McPAT will skip the components if number is set to 0 --> <param name="number_of_cores" value="64"/> <param name="number_of_L1Directories" value="0"/> <param name="number_of_L2Directories" value="0"/> <param name="number_of_L2s" value="64"/> <!-- This number means how many L2 clusters in each cluster there can be multiple banks/ports --> <param name="number_of_L3s" value="0"/> <!-- This number means how many L3 clusters --> <param name="number_of_NoCs" value="1"/> <param name="homogeneous_cores" value="1"/><!--1 means homo --> <param name="homogeneous_L2s" value="1"/> <param name="homogeneous_L1Directorys" value="1"/> <param name="homogeneous_L2Directorys" value="1"/> <param name="homogeneous_L3s" value="1"/> <param name="homogeneous_ccs" value="1"/><!--cache coherece hardware --> <param name="homogeneous_NoCs" value="1"/> <param name="core_tech_node" value="22"/><!-- nm --> <param name="target_core_clockrate" value="3500"/><!--MHz --> <param name="temperature" value="360"/> <!-- Kelvin --> <param name="number_cache_levels" value="2"/> <param name="interconnect_projection_type" value="0"/><!--0: agressive wire technology; 1: conservative wire technology --> <param name="device_type" value="0"/><!--0: HP(High Performance Type); 1: LSTP(Low standby power) 2: LOP (Low Operating Power) --> <param name="longer_channel_device" value="1"/><!-- 0 no use; 1 use when possible --> <param name="machine_bits" value="64"/> <param name="virtual_address_width" value="64"/> <param name="physical_address_width" value="52"/> <param name="virtual_memory_page_size" value="4096"/> <stat name="total_cycles" value="100000"/> <stat name="idle_cycles" value="0"/> <stat name="busy_cycles" value="100000"/> <!--This page size(B) is complete different from the page size in Main memo secction. this page size is the size of virtual memory from OS/Archi perspective; the page size in Main memo secction is the actuall physical line in a DRAM bank --> <!-- *********************** cores ******************* --> <component id="system.core0" name="core0"> <!-- Core property --> <param name="clock_rate" value="3500"/> <param name="instruction_length" value="32"/> <param name="opcode_width" value="9"/> <!-- address width determins the tag_width in Cache, LSQ and buffers in cache controller default value is machine_bits, if not set --> <param name="machine_type" value="1"/><!-- 1 inorder; 0 OOO--> <!-- inorder/OoO --> <param name="number_hardware_threads" value="4"/> <!-- number_instruction_fetch_ports(icache ports) is always 1 in single-thread processor, it only may be more than one in SMT processors. BTB ports always equals to fetch ports since branch information in consective branch instructions in the same fetch group can be read out from BTB once.--> <param name="fetch_width" value="1"/> <!-- fetch_width determins the size of cachelines of L1 cache block --> <param name="number_instruction_fetch_ports" value="1"/> <param name="decode_width" value="1"/> <!-- decode_width determins the number of ports of the renaming table (both RAM and CAM) scheme --> <param name="issue_width" value="1"/> <!-- issue_width determins the number of ports of Issue window and other logic as in the complexity effective proccessors paper; issue_width==dispatch_width --> <param name="commit_width" value="1"/> <!-- commit_width determins the number of ports of register files --> <param name="fp_issue_width" value="1"/> <param name="prediction_width" value="0"/> <!-- number of branch instructions can be predicted simultannouesl--> <!-- Current version of McPAT does not distinguish int and floating point pipelines Theses parameters are reserved for future use.--> <param name="pipelines_per_core" value="1,1"/> <!--integer_pipeline and floating_pipelines, if the floating_pipelines is 0, then the pipeline is shared--> <param name="pipeline_depth" value="6,6"/> <!-- pipeline depth of int and fp, if pipeline is shared, the second number is the average cycles of fp ops --> <!-- issue and exe unit--> <param name="ALU_per_core" value="1"/> <!-- contains an adder, a shifter, and a logical unit --> <param name="MUL_per_core" value="1"/> <!-- For MUL and Div --> <param name="FPU_per_core" value="0.125"/> <!-- buffer between IF and ID stage --> <param name="instruction_buffer_size" value="16"/> <!-- buffer between ID and sche/exe stage --> <param name="decoded_stream_buffer_size" value="16"/> <param name="instruction_window_scheme" value="0"/><!-- 0 PHYREG based, 1 RSBASED--> <!-- McPAT support 2 types of OoO cores, RS based and physical reg based--> <param name="instruction_window_size" value="16"/> <param name="fp_instruction_window_size" value="16"/> <!-- the instruction issue Q as in Alpha 21264; The RS as in Intel P6 --> <param name="ROB_size" value="80"/> <!-- each in-flight instruction has an entry in ROB --> <!-- registers --> <param name="archi_Regs_IRF_size" value="32"/> <param name="archi_Regs_FRF_size" value="32"/> <!-- if OoO processor, phy_reg number is needed for renaming logic, renaming logic is for both integer and floating point insts. --> <param name="phy_Regs_IRF_size" value="80"/> <param name="phy_Regs_FRF_size" value="80"/> <!-- rename logic --> <param name="rename_scheme" value="0"/> <!-- can be RAM based(0) or CAM based(1) rename scheme RAM-based scheme will have free list, status table; CAM-based scheme have the valid bit in the data field of the CAM both RAM and CAM need RAM-based checkpoint table, checkpoint_depth=# of in_flight instructions; Detailed RAT Implementation see TR --> <param name="register_windows_size" value="8"/> <!-- how many windows in the windowed register file, sun processors; no register windowing is used when this number is 0 --> <!-- In OoO cores, loads and stores can be issued whether inorder(Pentium Pro) or (OoO)out-of-order(Alpha), They will always try to exeute out-of-order though. --> <param name="LSU_order" value="inorder"/> <param name="store_buffer_size" value="32"/> <!-- By default, in-order cores do not have load buffers --> <param name="load_buffer_size" value="32"/> <!-- number of ports refer to sustainable concurrent memory accesses --> <param name="memory_ports" value="1"/> <!-- max_allowed_in_flight_memo_instructions determins the # of ports of load and store buffer as well as the ports of Dcache which is connected to LSU --> <!-- dual-pumped Dcache can be used to save the extra read/write ports --> <param name="RAS_size" value="32"/> <!-- general stats, defines simulation periods;require total, idle, and busy cycles for senity check --> <!-- please note: if target architecture is X86, then all the instrucions refer to (fused) micro-ops --> <stat name="total_instructions" value="800000"/> <stat name="int_instructions" value="600000"/> <stat name="fp_instructions" value="20000"/> <stat name="branch_instructions" value="0"/> <stat name="branch_mispredictions" value="0"/> <stat name="load_instructions" value="100000"/> <stat name="store_instructions" value="100000"/> <stat name="committed_instructions" value="800000"/> <stat name="committed_int_instructions" value="600000"/> <stat name="committed_fp_instructions" value="20000"/> <stat name="pipeline_duty_cycle" value="0.6"/><!--<=1, runtime_ipc/peak_ipc; averaged for all cores if homogenous --> <!-- the following cycle stats are used for heterogeneouse cores only, please ignore them if homogeneouse cores --> <stat name="total_cycles" value="100000"/> <stat name="idle_cycles" value="0"/> <stat name="busy_cycles" value="100000"/> <!-- instruction buffer stats --> <!-- ROB stats, both RS and Phy based OoOs have ROB performance simulator should capture the difference on accesses, otherwise, McPAT has to guess based on number of commited instructions. --> <stat name="ROB_reads" value="263886"/> <stat name="ROB_writes" value="263886"/> <!-- RAT accesses --> <stat name="rename_accesses" value="263886"/> <stat name="fp_rename_accesses" value="263886"/> <!-- decode and rename stage use this, should be total ic - nop --> <!-- Inst window stats --> <stat name="inst_window_reads" value="263886"/> <stat name="inst_window_writes" value="263886"/> <stat name="inst_window_wakeup_accesses" value="263886"/> <stat name="fp_inst_window_reads" value="263886"/> <stat name="fp_inst_window_writes" value="263886"/> <stat name="fp_inst_window_wakeup_accesses" value="263886"/> <!-- RF accesses --> <stat name="int_regfile_reads" value="1600000"/> <stat name="float_regfile_reads" value="40000"/> <stat name="int_regfile_writes" value="800000"/> <stat name="float_regfile_writes" value="20000"/> <!-- accesses to the working reg --> <stat name="function_calls" value="5"/> <stat name="context_switches" value="260343"/> <!-- Number of Windowes switches (number of function calls and returns)--> <!-- Alu stats by default, the processor has one FPU that includes the divider and multiplier. The fpu accesses should include accesses to multiplier and divider --> <stat name="ialu_accesses" value="800000"/> <stat name="fpu_accesses" value="10000"/> <stat name="mul_accesses" value="100000"/> <stat name="cdb_alu_accesses" value="1000000"/> <stat name="cdb_mul_accesses" value="0"/> <stat name="cdb_fpu_accesses" value="0"/> <!-- multiple cycle accesses should be counted multiple times, otherwise, McPAT can use internal counter for different floating point instructions to get final accesses. But that needs detailed info for floating point inst mix --> <!-- currently the performance simulator should make sure all the numbers are final numbers, including the explicit read/write accesses, and the implicite accesses such as replacements and etc. Future versions of McPAT may be able to reason the implicite access based on param and stats of last level cache The same rule applies to all cache access stats too! --> <!-- following is AF for max power computation. Do not change them, unless you understand them--> <stat name="IFU_duty_cycle" value="0.25"/> <stat name="LSU_duty_cycle" value="0.25"/> <stat name="MemManU_I_duty_cycle" value="1"/> <stat name="MemManU_D_duty_cycle" value="0.25"/> <stat name="ALU_duty_cycle" value="0.9"/> <stat name="MUL_duty_cycle" value="0.5"/> <stat name="FPU_duty_cycle" value="0.4"/> <stat name="ALU_cdb_duty_cycle" value="0.9"/> <stat name="MUL_cdb_duty_cycle" value="0.5"/> <stat name="FPU_cdb_duty_cycle" value="0.4"/> <component id="system.core0.predictor" name="PBT"> <!-- branch predictor; tournament predictor see Alpha implementation --> <param name="local_predictor_size" value="10,3"/> <param name="local_predictor_entries" value="1024"/> <param name="global_predictor_entries" value="4096"/> <param name="global_predictor_bits" value="2"/> <param name="chooser_predictor_entries" value="4096"/> <param name="chooser_predictor_bits" value="2"/> <!-- These parameters can be combined like below in next version <param name="load_predictor" value="10,3,1024"/> <param name="global_predictor" value="4096,2"/> <param name="predictor_chooser" value="4096,2"/> --> </component> <component id="system.core0.itlb" name="itlb"> <param name="number_entries" value="64"/> <stat name="total_accesses" value="800000"/> <stat name="total_misses" value="4"/> <stat name="conflicts" value="0"/> <!-- there is no write requests to itlb although writes happen to itlb after miss, which is actually a replacement --> </component> <component id="system.core0.icache" name="icache"> <!-- there is no write requests to itlb although writes happen to it after miss, which is actually a replacement --> <param name="icache_config" value="16384,32,4,1,1,3,8,0"/> <!-- the parameters are capacity,block_width, associativity, bank, throughput w.r.t. core clock, latency w.r.t. core clock,output_width, cache policy --> <!-- cache_policy;//0 no write or write-though with non-write allocate;1 write-back with write-allocate --> <param name="buffer_sizes" value="16, 16, 16,0"/> <!-- cache controller buffer sizes: miss_buffer_size(MSHR),fill_buffer_size,prefetch_buffer_size,wb_buffer_size--> <stat name="read_accesses" value="200000"/> <stat name="read_misses" value="0"/> <stat name="conflicts" value="0"/> </component> <component id="system.core0.dtlb" name="dtlb"> <param name="number_entries" value="64"/> <stat name="total_accesses" value="200000"/> <stat name="total_misses" value="4"/> <stat name="conflicts" value="0"/> </component> <component id="system.core0.dcache" name="dcache"> <!-- all the buffer related are optional --> <param name="dcache_config" value="8192,16,4,1,1,3,16,0"/> <param name="buffer_sizes" value="16, 16, 16, 16"/> <!-- cache controller buffer sizes: miss_buffer_size(MSHR),fill_buffer_size,prefetch_buffer_size,wb_buffer_size--> <stat name="read_accesses" value="200000"/> <stat name="write_accesses" value="27276"/> <stat name="read_misses" value="1632"/> <stat name="write_misses" value="183"/> <stat name="conflicts" value="0"/> </component> <component id="system.core0.BTB" name="BTB"> <!-- all the buffer related are optional --> <param name="BTB_config" value="8192,4,2,1, 1,3"/> <!-- the parameters are capacity,block_width,associativity,bank, throughput w.r.t. core clock, latency w.r.t. core clock,--> </component> </component> <component id="system.L1Directory0" name="L1Directory0"> <param name="Directory_type" value="0"/> <!--0 cam based shadowed tag. 1 directory cache --> <param name="Dir_config" value="2048,1,0,1, 4, 4,8"/> <!-- the parameters are capacity,block_width, associativity,bank, throughput w.r.t. core clock, latency w.r.t. core clock,--> <param name="buffer_sizes" value="8, 8, 8, 8"/> <!-- all the buffer related are optional --> <param name="clockrate" value="3500"/> <param name="ports" value="1,1,1"/> <!-- number of r, w, and rw search ports --> <param name="device_type" value="0"/> <!-- altough there are multiple access types, Performance simulator needs to cast them into reads or writes e.g. the invalidates can be considered as writes --> <stat name="read_accesses" value="800000"/> <stat name="write_accesses" value="27276"/> <stat name="read_misses" value="1632"/> <stat name="write_misses" value="183"/> <stat name="conflicts" value="20"/> <stat name="duty_cycle" value="0.45"/> </component> <component id="system.L2Directory0" name="L2Directory0"> <param name="Directory_type" value="1"/> <!--0 cam based shadowed tag. 1 directory cache --> <param name="Dir_config" value="1048576,16,16,1,2, 100"/> <!-- the parameters are capacity,block_width, associativity,bank, throughput w.r.t. core clock, latency w.r.t. core clock,--> <param name="buffer_sizes" value="8, 8, 8, 8"/> <!-- all the buffer related are optional --> <param name="clockrate" value="3500"/> <param name="ports" value="1,1,1"/> <!-- number of r, w, and rw search ports --> <param name="device_type" value="0"/> <!-- altough there are multiple access types, Performance simulator needs to cast them into reads or writes e.g. the invalidates can be considered as writes --> <stat name="read_accesses" value="58824"/> <stat name="write_accesses" value="27276"/> <stat name="read_misses" value="1632"/> <stat name="write_misses" value="183"/> <stat name="conflicts" value="100"/> <stat name="duty_cycle" value="0.45"/> </component> <component id="system.L20" name="L20"> <!-- all the buffer related are optional --> <param name="L2_config" value="1048576,64,16,1, 4,23, 64, 1"/> <!-- consider 4-way bank interleaving for Niagara 1 --> <!-- the parameters are capacity,block_width, associativity, bank, throughput w.r.t. core clock, latency w.r.t. core clock,output_width, cache policy --> <param name="buffer_sizes" value="16, 16, 16, 16"/> <!-- cache controller buffer sizes: miss_buffer_size(MSHR),fill_buffer_size,prefetch_buffer_size,wb_buffer_size--> <param name="clockrate" value="3500"/> <param name="ports" value="1,1,1"/> <!-- number of r, w, and rw ports --> <param name="device_type" value="0"/> <stat name="read_accesses" value="200000"/> <stat name="write_accesses" value="0"/> <stat name="read_misses" value="0"/> <stat name="write_misses" value="0"/> <stat name="conflicts" value="0"/> <stat name="duty_cycle" value="0.5"/> </component> <!--**********************************************************************--> <component id="system.L30" name="L30"> <param name="L3_config" value="1048576,64,16,1, 2,100, 64,1"/> <!-- the parameters are capacity,block_width, associativity, bank, throughput w.r.t. core clock, latency w.r.t. core clock,output_width, cache policy --> <param name="clockrate" value="3500"/> <param name="ports" value="1,1,1"/> <!-- number of r, w, and rw ports --> <param name="device_type" value="0"/> <param name="buffer_sizes" value="16, 16, 16, 16"/> <!-- cache controller buffer sizes: miss_buffer_size(MSHR),fill_buffer_size,prefetch_buffer_size,wb_buffer_size--> <stat name="read_accesses" value="58824"/> <stat name="write_accesses" value="27276"/> <stat name="read_misses" value="1632"/> <stat name="write_misses" value="183"/> <stat name="conflicts" value="0"/> <stat name="duty_cycle" value="0.35"/> </component> <!--**********************************************************************--> <component id="system.NoC0" name="noc0"> <param name="clockrate" value="3500"/> <param name="type" value="1"/> <!-- 1 NoC, O bus --> <param name="horizontal_nodes" value="8"/> <param name="vertical_nodes" value="8"/> <param name="has_global_link" value="1"/> <!-- 1 has global link, 0 does not have global link --> <param name="link_throughput" value="1"/><!--w.r.t clock --> <param name="link_latency" value="1"/><!--w.r.t clock --> <!-- througput >= latency --> <!-- Router architecture --> <param name="input_ports" value="5"/> <param name="output_ports" value="5"/> <param name="virtual_channel_per_port" value="1"/> <!-- input buffer; in classic routers only input ports need buffers --> <param name="flit_bits" value="256"/> <param name="input_buffer_entries_per_vc" value="4"/><!--VCs within the same ports share input buffers whose size is propotional to the number of VCs--> <param name="chip_coverage" value="1"/> <!-- When multiple NOC present, one NOC will cover part of the whole chip. chip_coverage <=1 --> <stat name="total_accesses" value="360000"/> <!-- This is the number of total accesses within the whole network not for each router --> <stat name="duty_cycle" value="0.1"/> </component> <!--**********************************************************************--> <component id="system.mem" name="mem"> <!-- Main memory property --> <param name="mem_tech_node" value="32"/> <param name="device_clock" value="200"/><!--MHz, this is clock rate of the actual memory device, not the FSB --> <param name="peak_transfer_rate" value="3200"/><!--MB/S--> <param name="internal_prefetch_of_DRAM_chip" value="4"/> <!-- 2 for DDR, 4 for DDR2, 8 for DDR3...--> <!-- the device clock, peak_transfer_rate, and the internal prefetch decide the DIMM property --> <!-- above numbers can be easily found from Wikipedia --> <param name="capacity_per_channel" value="4096"/> <!-- MB --> <!-- capacity_per_Dram_chip=capacity_per_channel/number_of_dimms/number_ranks/Dram_chips_per_rank Current McPAT assumes single DIMMs are used.--> <param name="number_ranks" value="2"/> <param name="num_banks_of_DRAM_chip" value="8"/> <param name="Block_width_of_DRAM_chip" value="64"/> <!-- B --> <param name="output_width_of_DRAM_chip" value="8"/> <!--number of Dram_chips_per_rank=" 72/output_width_of_DRAM_chip--> <!--number of Dram_chips_per_rank=" 72/output_width_of_DRAM_chip--> <param name="page_size_of_DRAM_chip" value="8"/> <!-- 8 or 16 --> <param name="burstlength_of_DRAM_chip" value="8"/> <stat name="memory_accesses" value="1052"/> <stat name="memory_reads" value="1052"/> <stat name="memory_writes" value="1052"/> </component> <component id="system.mc" name="mc"> <!-- Memeory controllers are for DDR(2,3...) DIMMs --> <!-- current version of McPAT uses published values for base parameters of memory controller improvments on MC will be added in later versions. --> <param name="mc_clock" value="200"/><!--DIMM IO bus clock rate MHz DDR2-400 for Niagara 1--> <param name="peak_transfer_rate" value="3200"/><!--MB/S--> <param name="llc_line_length" value="64"/><!--B--> <param name="number_mcs" value="4"/> <!-- current McPAT only supports homogeneous memory controllers --> <param name="memory_channels_per_mc" value="1"/> <param name="number_ranks" value="2"/> <!-- # of ranks of each channel--> <param name="req_window_size_per_channel" value="32"/> <param name="IO_buffer_size_per_channel" value="32"/> <param name="databus_width" value="128"/> <param name="addressbus_width" value="51"/> <!-- McPAT will add the control bus width to the addressbus width automatically --> <stat name="memory_accesses" value="33333"/> <stat name="memory_reads" value="16667"/> <stat name="memory_writes" value="16667"/> <!-- McPAT does not track individual mc, instead, it takes the total accesses and calculate the average power per MC or per channel. This is sufficent for most application. Further trackdown can be easily added in later versions. --> </component> <!--**********************************************************************--> </component> </component>
{ "pile_set_name": "Github" }
<?php /** * Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for * more information. */ function page_manager_contact_user_page_manager_tasks() { if (!module_exists('contact')) { return; } return array( // This is a 'page' task and will fall under the page admin UI 'task type' => 'page', 'title' => t('User contact'), 'admin title' => t('User contact'), 'admin description' => t('When enabled, this overrides the default Drupal behavior for displaying the user contact form at <em>user/%user/contact</em>. If no variant is selected, the default Drupal user contact form will be used.'), 'admin path' => 'user/%user/contact', // Callback to add items to the page managertask administration form: 'task admin' => 'page_manager_contact_user_task_admin', 'hook menu alter' => 'page_manager_contact_user_menu_alter', // This is task uses 'context' handlers and must implement these to give the // handler data it needs. 'handler type' => 'context', // handler type -- misnamed 'get arguments' => 'page_manager_contact_user_get_arguments', 'get context placeholders' => 'page_manager_contact_user_get_contexts', // Allow this to be enabled or disabled: 'disabled' => variable_get('page_manager_contact_user_disabled', TRUE), 'enable callback' => 'page_manager_contact_user_enable', ); } /** * Callback defined by page_manager_contact_user_page_manager_tasks(). * * Alter the user view input so that user view comes to us rather than the * normal user view process. */ function page_manager_contact_user_menu_alter(&$items, $task) { if (variable_get('page_manager_contact_user_disabled', TRUE)) { return; } // Override the user view handler for our purpose. if ($items['user/%user/contact']['page callback'] == 'contact_user_page' || variable_get('page_manager_override_anyway', FALSE)) { $items['user/%user/contact']['page callback'] = 'page_manager_contact_user'; $items['user/%user/contact']['file path'] = $task['path']; $items['user/%user/contact']['file'] = $task['file']; } else { // automatically disable this task if it cannot be enabled. variable_set('page_manager_contact_user_disabled', TRUE); if (!empty($GLOBALS['page_manager_enabling_contact_user'])) { drupal_set_message(t('Page manager module is unable to enable user/%user/contact because some other module already has overridden with %callback.', array('%callback' => $items['user/%user/contact']['page callback'])), 'error'); } } } /** * Entry point for our overridden user view. * * This function asks its assigned handlers who, if anyone, would like * to run with it. If no one does, it passes through to Drupal core's * user view, which is user_page_view(). */ function page_manager_contact_user($account) { // Load my task plugin: $task = page_manager_get_task('contact_user'); // Load the account into a context. ctools_include('context'); ctools_include('context-task-handler'); $contexts = ctools_context_handler_get_task_contexts($task, '', array($account)); $output = ctools_context_handler_render($task, '', $contexts, array($account->uid)); if ($output !== FALSE) { return $output; } module_load_include('inc', 'contact', 'contact.pages'); $function = 'contact_user_page'; foreach (module_implements('page_manager_override') as $module) { $call = $module . '_page_manager_override'; if (($rc = $call('contact_user')) && function_exists($rc)) { $function = $rc; break; } } // Otherwise, fall back. return $function($account); } /** * Callback to get arguments provided by this task handler. * * Since this is the node view and there is no UI on the arguments, we * create dummy arguments that contain the needed data. */ function page_manager_contact_user_get_arguments($task, $subtask_id) { return array( array( 'keyword' => 'user', 'identifier' => t('User being viewed'), 'id' => 1, 'name' => 'uid', 'settings' => array(), ), ); } /** * Callback to get context placeholders provided by this handler. */ function page_manager_contact_user_get_contexts($task, $subtask_id) { return ctools_context_get_placeholders_from_argument(page_manager_contact_user_get_arguments($task, $subtask_id)); } /** * Callback to enable/disable the page from the UI. */ function page_manager_contact_user_enable($cache, $status) { variable_set('page_manager_contact_user_disabled', $status); // Set a global flag so that the menu routine knows it needs // to set a message if enabling cannot be done. if (!$status) { $GLOBALS['page_manager_enabling_contact_user'] = TRUE; } }
{ "pile_set_name": "Github" }
{ "short_name": "React App", "name": "Create React App Sample", "icons": [ { "src": "favicon.ico", "sizes": "64x64 32x32 24x24 16x16", "type": "image/x-icon" } ], "start_url": "./index.html", "display": "standalone", "theme_color": "#000000", "background_color": "#ffffff" }
{ "pile_set_name": "Github" }
--- layout: example title: Wheat Plot Example permalink: /examples/wheat-plot/index.html spec: wheat-plot image: /examples/img/wheat-plot.png --- A [wheat plot](http://www.perceptualedge.com/articles/visual_business_intelligence/the_datavis_jitterbug.pdf) is an alternative to standard dot plots and histograms that incorporates aspects of both. The x-coordinate of a point is based on its exact value. The y-coordinate is determined by grouping points into histogram bins, then stacking them based on their rank order within each bin. While not scalable to large numbers of data points, wheat plots allow inspection of (and interaction with) individual points without overplotting. For a related approach, see [beeswarm plots](../beeswarm-plot/). {% include example spec=page.spec %}
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="it.tiwiz.rxjavacrunch.part9.Part9Activity"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Retain configuration instance (value)" /> <TextView android:id="@+id/currentValue" android:layout_width="match_parent" android:layout_height="wrap_content" android:textAppearance="?android:textAppearanceLarge" android:padding="@dimen/activity_vertical_margin" android:gravity="center" tools:text="10"/> </LinearLayout>
{ "pile_set_name": "Github" }
/* eslint-disable eslint-comments/disable-enable-pair */ /* eslint-disable import/no-mutable-exports */ let CURRENT = 'NULL'; /** * use authority or getAuthority * @param {string|()=>String} currentAuthority */ const renderAuthorize = Authorized => currentAuthority => { if (currentAuthority) { if (typeof currentAuthority === 'function') { CURRENT = currentAuthority(); } if ( Object.prototype.toString.call(currentAuthority) === '[object String]' || Array.isArray(currentAuthority) ) { CURRENT = currentAuthority; } } else { CURRENT = 'NULL'; } return Authorized; }; export { CURRENT }; export default Authorized => renderAuthorize(Authorized);
{ "pile_set_name": "Github" }
1634 1574848011319 httpcache-v1 Method: POST URL: https://www.notion.so/api/v3/getRecordValues Body:+110 { "requests": [ { "id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "table": "block" } ] } Response:+1434 { "results": [ { "role": "comment_only", "value": { "alive": true, "content": [ "e204cc5a-6d54-4c9a-aec7-ba7dda2738bd", "3d6cf5ef-5339-4b1e-903d-0c9a5718d3e4", "c931de19-15e4-42af-8b25-4b91c23aa69e", "abd1ba9e-4450-481a-a596-e9a5883d0e23", "99c91818-8d5c-43f2-8c50-9120f31b066b", "7536037c-e9cb-4d60-bf6d-81db01f4ee20", "7b6188a1-2316-47fa-91cc-b5e98a64f65f", "37de4e0f-64d8-469d-ba64-1ed58bbab771" ], "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_by_id": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_by_table": "notion_user", "created_time": 1551946003534, "format": { "page_full_width": true, "page_small_text": true }, "id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_by_id": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_by_table": "notion_user", "last_edited_time": 1551946003534, "parent_id": "dc371b5c-6e7e-4e07-8e13-217dd1e6172f", "parent_table": "block", "properties": { "title": [ [ "overflow scroll" ] ] }, "type": "page", "version": 7 } } ] } 15376 1574848011320 httpcache-v1 Method: POST URL: https://www.notion.so/api/v3/loadPageChunk Body:+152 { "chunkNumber": 0, "cursor": { "stack": [] }, "limit": 50, "pageId": "f136e223-a6e8-4428-bbf4-676ef4725a68", "verticalColumns": false } Response:+15135 { "cursor": { "stack": [] }, "recordMap": { "block": { "18bfe038-1096-49f4-8904-e71ca18d76ed": { "role": "comment_only", "value": { "alive": true, "content": [ "de69ce46-4a84-4664-a79d-a8437cc023a2", "6447d07e-7279-4ef8-ad31-221f6202a958", "b5232adc-60a1-4030-aec3-ac8cfbc40c48", "fd36e28b-d46e-4e85-8e33-850a518cc83b", "98e6c7b5-3bf2-46c6-80d3-c5cbd31a66f9", "7a254330-19a7-4078-9eb8-742c9947c27e", "46bc5a5e-461b-4eea-ae50-1350e8c216f2", "700875db-418d-425e-a5bc-4f233df26393", "8d4886c1-0f85-4e70-8001-4f310f6668e5", "a532af1c-38ff-4edb-a80f-44aaf3ccc3dc", "5fee4d4d-52a7-4aa3-a0a2-aa7058cc0bf7", "e012f912-2f98-4998-b135-e4e66d4b296a", "8af638cc-537f-4b8f-a653-1a9437d3ac91", "8ad0b607-0b54-4717-af1f-aaad85004d7a", "c50f71ff-6d61-466c-bcd2-5bf31d7f79f2", "07e243d7-106d-41a6-a70a-54841524dfcf", "ee0aa8d5-16eb-4655-a3e4-1207a664ff8d", "2f766cdc-785a-4190-bb87-fe34634ce93e", "cfe69373-b211-484f-859d-994b14c21101", "04974825-61b2-4800-ae16-c05860d63e8b", "bb456a6b-e908-423a-9f01-4100ba169355", "dbaba9a4-66d7-412d-b2c9-3da6f51a9e9a", "2abad8a1-f82a-4e33-b817-7e35df65d648", "6ef12527-82ae-43bf-9d83-10c7e4f6b679", "325b6445-db10-4fc3-a31f-291360b669b7", "b21963da-f818-4709-8a20-7a8c6cb88159", "b4240597-9643-4c68-b3a4-8effe38559fd", "c07e46a0-dbd4-4d9a-a7dd-7fa847bce4ff", "ae18c98c-9032-491b-b984-171019e74029", "0e939055-c399-4797-bc21-990b347dae23", "f6444ef0-3c83-43a3-86be-f9a075d908f4", "cf0362b8-6e4e-49e6-9095-491801d0527a", "7178e7e9-93fe-4d60-84de-29271ca4ed9a", "13d6e8c9-4b63-4f68-8735-21b9e3ecde18", "67afe3a0-9215-4b71-a6ba-01022485f703", "1fa750ee-637a-4507-a179-de35cff27ee6", "96ef4707-530e-46e7-83ea-44b8e0942142", "74c97777-0820-445d-a5e9-e83344297798", "e7833d5c-379d-420f-ba51-ef44b8c4115e", "cdcda7af-0abd-41da-9da0-df9cd78cd933", "3dad8422-9fd0-44f5-af2d-9f073bdf094d", "e9225abc-d9b1-4d31-a198-f7989d53b201", "569b653b-8c46-41da-bbb6-43badd1b8184", "846517a8-7e11-4dbb-95f6-d465b22654cc", "a0f52163-92b9-4ebe-a5a6-f92f4bbb23ec", "3a8f7033-0e15-46d4-8e08-f182fcbbd38d", "918e8e2b-d2af-4106-b9de-f23c6e6848ed", "dc371b5c-6e7e-4e07-8e13-217dd1e6172f", "17762587-a566-4b52-9f4c-d879db1cdfd7", "e3859e10-527d-4464-bb5e-abd159e7debe", "567b8685-62e7-458f-84e5-812f701291bf", "293d87a0-951a-45c1-b5e6-000a3f655a44", "bd677d4f-1848-4e73-b270-c999c66de3bf", "26e07e04-43ea-4728-be9d-d1023c1766cc", "26228db1-a709-45ac-b18b-f6da01bf2005", "cc368be6-de28-48b0-bff1-5d7584737114", "f8858db0-ce6b-4454-879a-c60a0cfbcd09", "f83a172b-4b07-4ba9-ac68-3ee297828b82" ], "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_by_id": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_by_table": "notion_user", "created_time": 1551944923897, "format": { "page_full_width": true, "page_small_text": true }, "id": "18bfe038-1096-49f4-8904-e71ca18d76ed", "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_by_id": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_by_table": "notion_user", "last_edited_time": 1570604820000, "parent_id": "ca9c0a7c-eb82-42d5-879f-ef8a96839b12", "parent_table": "block", "permissions": [ { "allow_search_engine_indexing": false, "role": "comment_only", "type": "public_permission" } ], "properties": { "title": [ [ "Essential CSS" ] ] }, "type": "page", "version": 100 } }, "37de4e0f-64d8-469d-ba64-1ed58bbab771": { "role": "comment_only", "value": { "alive": true, "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_time": 1551946003534, "id": "37de4e0f-64d8-469d-ba64-1ed58bbab771", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_time": 1551946003534, "parent_id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "parent_table": "block", "properties": { "title": [ [ "Most desktop browsers will display both horizontal and vertical scrollbars, whether or not any content is clipped. This can avoid problems with scrollbars appearing and disappearing in a dynamic environment. Printers may print overflowing content." ] ] }, "type": "text", "version": 1 } }, "3d6cf5ef-5339-4b1e-903d-0c9a5718d3e4": { "role": "comment_only", "value": { "alive": true, "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_time": 1551946003533, "id": "3d6cf5ef-5339-4b1e-903d-0c9a5718d3e4", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_time": 1551946003533, "parent_id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "parent_table": "block", "properties": { "language": [ [ "Plain Text" ] ], "title": [ [ "\u003cdiv\u003e\n This div is too small to display its contents to display the effects of the overflow property.\n\u003c/div\u003e" ] ] }, "type": "code", "version": 1 } }, "7536037c-e9cb-4d60-bf6d-81db01f4ee20": { "role": "comment_only", "value": { "alive": true, "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_time": 1551946003534, "id": "7536037c-e9cb-4d60-bf6d-81db01f4ee20", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_time": 1551946003534, "parent_id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "parent_table": "block", "properties": { "source": [ [ "/tmp/69224181-5b73-4bbb-b7f3-8ded3fd7567d/4e8c030606ae608fe4e13b33697951d91c330b19.png" ] ] }, "type": "image", "version": 1 } }, "7b6188a1-2316-47fa-91cc-b5e98a64f65f": { "role": "comment_only", "value": { "alive": true, "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_time": 1551946003534, "id": "7b6188a1-2316-47fa-91cc-b5e98a64f65f", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_time": 1551946003534, "parent_id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "parent_table": "block", "properties": { "title": [ [ "The content above is clipped in a 100px by 100px box, with scrolling available to view overflowing content." ] ] }, "type": "text", "version": 1 } }, "99c91818-8d5c-43f2-8c50-9120f31b066b": { "role": "comment_only", "value": { "alive": true, "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_time": 1551946003534, "id": "99c91818-8d5c-43f2-8c50-9120f31b066b", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_time": 1551946003534, "parent_id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "parent_table": "block", "properties": { "title": [ [ "Result", [ [ "b" ] ] ] ] }, "type": "text", "version": 1 } }, "abd1ba9e-4450-481a-a596-e9a5883d0e23": { "role": "comment_only", "value": { "alive": true, "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_time": 1551946003534, "id": "abd1ba9e-4450-481a-a596-e9a5883d0e23", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_time": 1551946003534, "parent_id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "parent_table": "block", "properties": { "language": [ [ "Plain Text" ] ], "title": [ [ "div {\n width:100px;\n height:100px;\n overflow:scroll;\n}" ] ] }, "type": "code", "version": 1 } }, "c931de19-15e4-42af-8b25-4b91c23aa69e": { "role": "comment_only", "value": { "alive": true, "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_by_id": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_by_table": "notion_user", "created_time": 1551946003534, "id": "c931de19-15e4-42af-8b25-4b91c23aa69e", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_by_id": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_by_table": "notion_user", "last_edited_time": 1551946003534, "parent_id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "parent_table": "block", "properties": { "title": [ [ "CSS", [ [ "b" ] ] ] ] }, "type": "text", "version": 5 } }, "dc371b5c-6e7e-4e07-8e13-217dd1e6172f": { "role": "comment_only", "value": { "alive": true, "content": [ "e4bc3b7d-5c46-4cb5-acf3-fbb678263825", "d221c32f-ad78-4859-a98e-a211a6770995", "f136e223-a6e8-4428-bbf4-676ef4725a68", "1bbd320c-21cf-4d39-a7bf-259f7e9ffaec", "b7d0c8c4-3db8-4394-ae8d-28d689693cc1", "f96fbd13-2083-4544-85f0-d9be6bdf20d0" ], "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_time": 1551945960000, "format": { "page_full_width": true, "page_small_text": true }, "id": "dc371b5c-6e7e-4e07-8e13-217dd1e6172f", "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_time": 1551946200000, "parent_id": "18bfe038-1096-49f4-8904-e71ca18d76ed", "parent_table": "block", "permissions": [ { "role": "editor", "type": "user_permission", "user_id": "bb760e2d-d679-4b64-b2a9-03005b21870a" } ], "properties": { "title": [ [ "Overflow" ] ] }, "type": "page", "version": 24 } }, "e204cc5a-6d54-4c9a-aec7-ba7dda2738bd": { "role": "comment_only", "value": { "alive": true, "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_time": 1551946003531, "id": "e204cc5a-6d54-4c9a-aec7-ba7dda2738bd", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_time": 1551946003531, "parent_id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "parent_table": "block", "properties": { "title": [ [ "HTML", [ [ "b" ] ] ] ] }, "type": "text", "version": 1 } }, "f136e223-a6e8-4428-bbf4-676ef4725a68": { "role": "comment_only", "value": { "alive": true, "content": [ "e204cc5a-6d54-4c9a-aec7-ba7dda2738bd", "3d6cf5ef-5339-4b1e-903d-0c9a5718d3e4", "c931de19-15e4-42af-8b25-4b91c23aa69e", "abd1ba9e-4450-481a-a596-e9a5883d0e23", "99c91818-8d5c-43f2-8c50-9120f31b066b", "7536037c-e9cb-4d60-bf6d-81db01f4ee20", "7b6188a1-2316-47fa-91cc-b5e98a64f65f", "37de4e0f-64d8-469d-ba64-1ed58bbab771" ], "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_by_id": "bb760e2d-d679-4b64-b2a9-03005b21870a", "created_by_table": "notion_user", "created_time": 1551946003534, "format": { "page_full_width": true, "page_small_text": true }, "id": "f136e223-a6e8-4428-bbf4-676ef4725a68", "ignore_block_count": true, "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_by_id": "bb760e2d-d679-4b64-b2a9-03005b21870a", "last_edited_by_table": "notion_user", "last_edited_time": 1551946003534, "parent_id": "dc371b5c-6e7e-4e07-8e13-217dd1e6172f", "parent_table": "block", "properties": { "title": [ [ "overflow scroll" ] ] }, "type": "page", "version": 7 } } }, "notion_user": { "bb760e2d-d679-4b64-b2a9-03005b21870a": { "role": "reader", "value": { "clipper_onboarding_completed": true, "email": "kkowalczyk@gmail.com", "family_name": "Kowalczyk", "given_name": "Krzysztof", "id": "bb760e2d-d679-4b64-b2a9-03005b21870a", "mobile_onboarding_completed": true, "onboarding_completed": true, "profile_photo": "https://s3-us-west-2.amazonaws.com/public.notion-static.com/2dcaa66c-7674-4ff6-9924-601785b63561/head-bw-640x960.png", "version": 231 } } }, "space": {} } }
{ "pile_set_name": "Github" }
$(document).ready(function() { // $("#id_permissions_role").sSelect(); $("#newchannel-name").blur(function() { $("#name-spinner").spin('small'); var zreg_name = $("#newchannel-name").val(); $.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) { $("#newchannel-nickname").val(data); zFormError("#newchannel-name-feedback",data.error); $("#name-spinner").spin(false); }); }); $("#newchannel-nickname").blur(function() { $("#nick-spinner").spin('small'); var zreg_nick = $("#newchannel-nickname").val(); $.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) { $("#newchannel-nickname").val(data); zFormError("#newchannel-nickname-feedback",data.error); $("#nick-spinner").spin(false); }); }); });
{ "pile_set_name": "Github" }
const func1 = function() {}; const object = { func2: function() {} }; console.log(func1.name); // expected output: "func1" console.log(object.func2.name); // expected output: "func2"
{ "pile_set_name": "Github" }
var path = require('path'); var test = require('tape'); var resolve = require('../'); test('mock', function (t) { t.plan(8); var files = {}; files[path.resolve('/foo/bar/baz.js')] = 'beep'; function opts(basedir) { return { basedir: path.resolve(basedir), isFile: function (file, cb) { cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file))); }, readFile: function (file, cb) { cb(null, files[path.resolve(file)]); } }; } resolve('./baz', opts('/foo/bar'), function (err, res, pkg) { if (err) return t.fail(err); t.equal(res, path.resolve('/foo/bar/baz.js')); t.equal(pkg, undefined); }); resolve('./baz.js', opts('/foo/bar'), function (err, res, pkg) { if (err) return t.fail(err); t.equal(res, path.resolve('/foo/bar/baz.js')); t.equal(pkg, undefined); }); resolve('baz', opts('/foo/bar'), function (err, res) { t.equal(err.message, "Cannot find module 'baz' from '" + path.resolve('/foo/bar') + "'"); t.equal(err.code, 'MODULE_NOT_FOUND'); }); resolve('../baz', opts('/foo/bar'), function (err, res) { t.equal(err.message, "Cannot find module '../baz' from '" + path.resolve('/foo/bar') + "'"); t.equal(err.code, 'MODULE_NOT_FOUND'); }); }); test('mock from package', function (t) { t.plan(8); var files = {}; files[path.resolve('/foo/bar/baz.js')] = 'beep'; function opts(basedir) { return { basedir: path.resolve(basedir), isFile: function (file, cb) { cb(null, Object.prototype.hasOwnProperty.call(files, file)); }, 'package': { main: 'bar' }, readFile: function (file, cb) { cb(null, files[file]); } }; } resolve('./baz', opts('/foo/bar'), function (err, res, pkg) { if (err) return t.fail(err); t.equal(res, path.resolve('/foo/bar/baz.js')); t.equal(pkg && pkg.main, 'bar'); }); resolve('./baz.js', opts('/foo/bar'), function (err, res, pkg) { if (err) return t.fail(err); t.equal(res, path.resolve('/foo/bar/baz.js')); t.equal(pkg && pkg.main, 'bar'); }); resolve('baz', opts('/foo/bar'), function (err, res) { t.equal(err.message, "Cannot find module 'baz' from '" + path.resolve('/foo/bar') + "'"); t.equal(err.code, 'MODULE_NOT_FOUND'); }); resolve('../baz', opts('/foo/bar'), function (err, res) { t.equal(err.message, "Cannot find module '../baz' from '" + path.resolve('/foo/bar') + "'"); t.equal(err.code, 'MODULE_NOT_FOUND'); }); }); test('mock package', function (t) { t.plan(2); var files = {}; files[path.resolve('/foo/node_modules/bar/baz.js')] = 'beep'; files[path.resolve('/foo/node_modules/bar/package.json')] = JSON.stringify({ main: './baz.js' }); function opts(basedir) { return { basedir: path.resolve(basedir), isFile: function (file, cb) { cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file))); }, readFile: function (file, cb) { cb(null, files[path.resolve(file)]); } }; } resolve('bar', opts('/foo'), function (err, res, pkg) { if (err) return t.fail(err); t.equal(res, path.resolve('/foo/node_modules/bar/baz.js')); t.equal(pkg && pkg.main, './baz.js'); }); }); test('mock package from package', function (t) { t.plan(2); var files = {}; files[path.resolve('/foo/node_modules/bar/baz.js')] = 'beep'; files[path.resolve('/foo/node_modules/bar/package.json')] = JSON.stringify({ main: './baz.js' }); function opts(basedir) { return { basedir: path.resolve(basedir), isFile: function (file, cb) { cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file))); }, 'package': { main: 'bar' }, readFile: function (file, cb) { cb(null, files[path.resolve(file)]); } }; } resolve('bar', opts('/foo'), function (err, res, pkg) { if (err) return t.fail(err); t.equal(res, path.resolve('/foo/node_modules/bar/baz.js')); t.equal(pkg && pkg.main, './baz.js'); }); });
{ "pile_set_name": "Github" }
def extractLambytlWordpressCom(item): ''' Parser for 'lambytl.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('King of Classical Music', 'King of Classical Music', 'translated'), ('PRC', 'PRC', 'translated'), ('Loiterous', 'Loiterous', 'oel'), ] for tagname, name, tl_type in tagmap: if tagname in item['tags']: return buildReleaseMessageWithType(item, name, vol, chp, frag=frag, postfix=postfix, tl_type=tl_type) return False
{ "pile_set_name": "Github" }
import fetch from 'dva/fetch'; import { notification } from 'antd'; function checkStatus(response) { if (response.status >= 200 && response.status < 300) { return response; } notification.error({ message: `请求错误 ${response.status}: ${response.url}`, description: response.statusText, }); const error = new Error(response.statusText); error.response = response; throw error; } /** * Requests a URL, returning a promise. * * @param {string} url The URL we want to request * @param {object} [options] The options we want to pass to "fetch" * @return {object} An object containing either "data" or "err" */ export default function request(url, options) { const defaultOptions = { credentials: 'include', }; const newOptions = { ...defaultOptions, ...options }; if (newOptions.method === 'POST' || newOptions.method === 'PUT') { newOptions.headers = { Accept: 'application/json', 'Content-Type': 'application/json; charset=utf-8', ...newOptions.headers, }; newOptions.body = JSON.stringify(newOptions.body); } return fetch(url, newOptions) .then(checkStatus) .then(response => response.json()) .catch((error) => { if (error.code) { notification.error({ message: error.name, description: error.message, }); } if ('stack' in error && 'message' in error) { notification.error({ message: `request error: ${url}`, description: error.message, }); } return error; }); }
{ "pile_set_name": "Github" }
'use strict'; module.exports = function(Chart) { var helpers = Chart.helpers; function filterByPosition(array, position) { return helpers.where(array, function(v) { return v.position === position; }); } function sortByWeight(array, reverse) { array.forEach(function(v, i) { v._tmpIndex_ = i; return v; }); array.sort(function(a, b) { var v0 = reverse ? b : a; var v1 = reverse ? a : b; return v0.weight === v1.weight ? v0._tmpIndex_ - v1._tmpIndex_ : v0.weight - v1.weight; }); array.forEach(function(v) { delete v._tmpIndex_; }); } /** * @interface ILayoutItem * @prop {String} position - The position of the item in the chart layout. Possible values are * 'left', 'top', 'right', 'bottom', and 'chartArea' * @prop {Number} weight - The weight used to sort the item. Higher weights are further away from the chart area * @prop {Boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down * @prop {Function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom) * @prop {Function} update - Takes two parameters: width and height. Returns size of item * @prop {Function} getPadding - Returns an object with padding on the edges * @prop {Number} width - Width of item. Must be valid after update() * @prop {Number} height - Height of item. Must be valid after update() * @prop {Number} left - Left edge of the item. Set by layout system and cannot be used in update * @prop {Number} top - Top edge of the item. Set by layout system and cannot be used in update * @prop {Number} right - Right edge of the item. Set by layout system and cannot be used in update * @prop {Number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update */ // The layout service is very self explanatory. It's responsible for the layout within a chart. // Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need // It is this service's responsibility of carrying out that layout. Chart.layoutService = { defaults: {}, /** * Register a box to a chart. * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title. * @param {Chart} chart - the chart to use * @param {ILayoutItem} item - the item to add to be layed out */ addBox: function(chart, item) { if (!chart.boxes) { chart.boxes = []; } // initialize item with default values item.fullWidth = item.fullWidth || false; item.position = item.position || 'top'; item.weight = item.weight || 0; chart.boxes.push(item); }, /** * Remove a layoutItem from a chart * @param {Chart} chart - the chart to remove the box from * @param {Object} layoutItem - the item to remove from the layout */ removeBox: function(chart, layoutItem) { var index = chart.boxes? chart.boxes.indexOf(layoutItem) : -1; if (index !== -1) { chart.boxes.splice(index, 1); } }, /** * Sets (or updates) options on the given `item`. * @param {Chart} chart - the chart in which the item lives (or will be added to) * @param {Object} item - the item to configure with the given options * @param {Object} options - the new item options. */ configure: function(chart, item, options) { var props = ['fullWidth', 'position', 'weight']; var ilen = props.length; var i = 0; var prop; for (; i<ilen; ++i) { prop = props[i]; if (options.hasOwnProperty(prop)) { item[prop] = options[prop]; } } }, /** * Fits boxes of the given chart into the given size by having each box measure itself * then running a fitting algorithm * @param {Chart} chart - the chart * @param {Number} width - the width to fit into * @param {Number} height - the height to fit into */ update: function(chart, width, height) { if (!chart) { return; } var layoutOptions = chart.options.layout; var padding = layoutOptions ? layoutOptions.padding : null; var leftPadding = 0; var rightPadding = 0; var topPadding = 0; var bottomPadding = 0; if (!isNaN(padding)) { // options.layout.padding is a number. assign to all leftPadding = padding; rightPadding = padding; topPadding = padding; bottomPadding = padding; } else { leftPadding = padding.left || 0; rightPadding = padding.right || 0; topPadding = padding.top || 0; bottomPadding = padding.bottom || 0; } var leftBoxes = filterByPosition(chart.boxes, 'left'); var rightBoxes = filterByPosition(chart.boxes, 'right'); var topBoxes = filterByPosition(chart.boxes, 'top'); var bottomBoxes = filterByPosition(chart.boxes, 'bottom'); var chartAreaBoxes = filterByPosition(chart.boxes, 'chartArea'); // Sort boxes by weight. A higher weight is further away from the chart area sortByWeight(leftBoxes, true); sortByWeight(rightBoxes, false); sortByWeight(topBoxes, true); sortByWeight(bottomBoxes, false); // Essentially we now have any number of boxes on each of the 4 sides. // Our canvas looks like the following. // The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and // B1 is the bottom axis // There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays // These locations are single-box locations only, when trying to register a chartArea location that is already taken, // an error will be thrown. // // |----------------------------------------------------| // | T1 (Full Width) | // |----------------------------------------------------| // | | | T2 | | // | |----|-------------------------------------|----| // | | | C1 | | C2 | | // | | |----| |----| | // | | | | | // | L1 | L2 | ChartArea (C0) | R1 | // | | | | | // | | |----| |----| | // | | | C3 | | C4 | | // | |----|-------------------------------------|----| // | | | B1 | | // |----------------------------------------------------| // | B2 (Full Width) | // |----------------------------------------------------| // // What we do to find the best sizing, we do the following // 1. Determine the minimum size of the chart area. // 2. Split the remaining width equally between each vertical axis // 3. Split the remaining height equally between each horizontal axis // 4. Give each layout the maximum size it can be. The layout will return it's minimum size // 5. Adjust the sizes of each axis based on it's minimum reported size. // 6. Refit each axis // 7. Position each axis in the final location // 8. Tell the chart the final location of the chart area // 9. Tell any axes that overlay the chart area the positions of the chart area // Step 1 var chartWidth = width - leftPadding - rightPadding; var chartHeight = height - topPadding - bottomPadding; var chartAreaWidth = chartWidth / 2; // min 50% var chartAreaHeight = chartHeight / 2; // min 50% // Step 2 var verticalBoxWidth = (width - chartAreaWidth) / (leftBoxes.length + rightBoxes.length); // Step 3 var horizontalBoxHeight = (height - chartAreaHeight) / (topBoxes.length + bottomBoxes.length); // Step 4 var maxChartAreaWidth = chartWidth; var maxChartAreaHeight = chartHeight; var minBoxSizes = []; function getMinimumBoxSize(box) { var minSize; var isHorizontal = box.isHorizontal(); if (isHorizontal) { minSize = box.update(box.fullWidth ? chartWidth : maxChartAreaWidth, horizontalBoxHeight); maxChartAreaHeight -= minSize.height; } else { minSize = box.update(verticalBoxWidth, chartAreaHeight); maxChartAreaWidth -= minSize.width; } minBoxSizes.push({ horizontal: isHorizontal, minSize: minSize, box: box, }); } helpers.each(leftBoxes.concat(rightBoxes, topBoxes, bottomBoxes), getMinimumBoxSize); // If a horizontal box has padding, we move the left boxes over to avoid ugly charts (see issue #2478) var maxHorizontalLeftPadding = 0; var maxHorizontalRightPadding = 0; var maxVerticalTopPadding = 0; var maxVerticalBottomPadding = 0; helpers.each(topBoxes.concat(bottomBoxes), function(horizontalBox) { if (horizontalBox.getPadding) { var boxPadding = horizontalBox.getPadding(); maxHorizontalLeftPadding = Math.max(maxHorizontalLeftPadding, boxPadding.left); maxHorizontalRightPadding = Math.max(maxHorizontalRightPadding, boxPadding.right); } }); helpers.each(leftBoxes.concat(rightBoxes), function(verticalBox) { if (verticalBox.getPadding) { var boxPadding = verticalBox.getPadding(); maxVerticalTopPadding = Math.max(maxVerticalTopPadding, boxPadding.top); maxVerticalBottomPadding = Math.max(maxVerticalBottomPadding, boxPadding.bottom); } }); // At this point, maxChartAreaHeight and maxChartAreaWidth are the size the chart area could // be if the axes are drawn at their minimum sizes. // Steps 5 & 6 var totalLeftBoxesWidth = leftPadding; var totalRightBoxesWidth = rightPadding; var totalTopBoxesHeight = topPadding; var totalBottomBoxesHeight = bottomPadding; // Function to fit a box function fitBox(box) { var minBoxSize = helpers.findNextWhere(minBoxSizes, function(minBox) { return minBox.box === box; }); if (minBoxSize) { if (box.isHorizontal()) { var scaleMargin = { left: Math.max(totalLeftBoxesWidth, maxHorizontalLeftPadding), right: Math.max(totalRightBoxesWidth, maxHorizontalRightPadding), top: 0, bottom: 0 }; // Don't use min size here because of label rotation. When the labels are rotated, their rotation highly depends // on the margin. Sometimes they need to increase in size slightly box.update(box.fullWidth ? chartWidth : maxChartAreaWidth, chartHeight / 2, scaleMargin); } else { box.update(minBoxSize.minSize.width, maxChartAreaHeight); } } } // Update, and calculate the left and right margins for the horizontal boxes helpers.each(leftBoxes.concat(rightBoxes), fitBox); helpers.each(leftBoxes, function(box) { totalLeftBoxesWidth += box.width; }); helpers.each(rightBoxes, function(box) { totalRightBoxesWidth += box.width; }); // Set the Left and Right margins for the horizontal boxes helpers.each(topBoxes.concat(bottomBoxes), fitBox); // Figure out how much margin is on the top and bottom of the vertical boxes helpers.each(topBoxes, function(box) { totalTopBoxesHeight += box.height; }); helpers.each(bottomBoxes, function(box) { totalBottomBoxesHeight += box.height; }); function finalFitVerticalBox(box) { var minBoxSize = helpers.findNextWhere(minBoxSizes, function(minSize) { return minSize.box === box; }); var scaleMargin = { left: 0, right: 0, top: totalTopBoxesHeight, bottom: totalBottomBoxesHeight }; if (minBoxSize) { box.update(minBoxSize.minSize.width, maxChartAreaHeight, scaleMargin); } } // Let the left layout know the final margin helpers.each(leftBoxes.concat(rightBoxes), finalFitVerticalBox); // Recalculate because the size of each layout might have changed slightly due to the margins (label rotation for instance) totalLeftBoxesWidth = leftPadding; totalRightBoxesWidth = rightPadding; totalTopBoxesHeight = topPadding; totalBottomBoxesHeight = bottomPadding; helpers.each(leftBoxes, function(box) { totalLeftBoxesWidth += box.width; }); helpers.each(rightBoxes, function(box) { totalRightBoxesWidth += box.width; }); helpers.each(topBoxes, function(box) { totalTopBoxesHeight += box.height; }); helpers.each(bottomBoxes, function(box) { totalBottomBoxesHeight += box.height; }); // We may be adding some padding to account for rotated x axis labels var leftPaddingAddition = Math.max(maxHorizontalLeftPadding - totalLeftBoxesWidth, 0); totalLeftBoxesWidth += leftPaddingAddition; totalRightBoxesWidth += Math.max(maxHorizontalRightPadding - totalRightBoxesWidth, 0); var topPaddingAddition = Math.max(maxVerticalTopPadding - totalTopBoxesHeight, 0); totalTopBoxesHeight += topPaddingAddition; totalBottomBoxesHeight += Math.max(maxVerticalBottomPadding - totalBottomBoxesHeight, 0); // Figure out if our chart area changed. This would occur if the dataset layout label rotation // changed due to the application of the margins in step 6. Since we can only get bigger, this is safe to do // without calling `fit` again var newMaxChartAreaHeight = height - totalTopBoxesHeight - totalBottomBoxesHeight; var newMaxChartAreaWidth = width - totalLeftBoxesWidth - totalRightBoxesWidth; if (newMaxChartAreaWidth !== maxChartAreaWidth || newMaxChartAreaHeight !== maxChartAreaHeight) { helpers.each(leftBoxes, function(box) { box.height = newMaxChartAreaHeight; }); helpers.each(rightBoxes, function(box) { box.height = newMaxChartAreaHeight; }); helpers.each(topBoxes, function(box) { if (!box.fullWidth) { box.width = newMaxChartAreaWidth; } }); helpers.each(bottomBoxes, function(box) { if (!box.fullWidth) { box.width = newMaxChartAreaWidth; } }); maxChartAreaHeight = newMaxChartAreaHeight; maxChartAreaWidth = newMaxChartAreaWidth; } // Step 7 - Position the boxes var left = leftPadding + leftPaddingAddition; var top = topPadding + topPaddingAddition; function placeBox(box) { if (box.isHorizontal()) { box.left = box.fullWidth ? leftPadding : totalLeftBoxesWidth; box.right = box.fullWidth ? width - rightPadding : totalLeftBoxesWidth + maxChartAreaWidth; box.top = top; box.bottom = top + box.height; // Move to next point top = box.bottom; } else { box.left = left; box.right = left + box.width; box.top = totalTopBoxesHeight; box.bottom = totalTopBoxesHeight + maxChartAreaHeight; // Move to next point left = box.right; } } helpers.each(leftBoxes.concat(topBoxes), placeBox); // Account for chart width and height left += maxChartAreaWidth; top += maxChartAreaHeight; helpers.each(rightBoxes, placeBox); helpers.each(bottomBoxes, placeBox); // Step 8 chart.chartArea = { left: totalLeftBoxesWidth, top: totalTopBoxesHeight, right: totalLeftBoxesWidth + maxChartAreaWidth, bottom: totalTopBoxesHeight + maxChartAreaHeight }; // Step 9 helpers.each(chartAreaBoxes, function(box) { box.left = chart.chartArea.left; box.top = chart.chartArea.top; box.right = chart.chartArea.right; box.bottom = chart.chartArea.bottom; box.update(maxChartAreaWidth, maxChartAreaHeight); }); } }; };
{ "pile_set_name": "Github" }
<?xml version='1.0' ?> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="include/StorageFunctions.xsl"/> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:template match="/"> <xsl:element name="StorageObjects"> <xsl:apply-templates select="Strings"/> <xsl:call-template name="TaskingInfo"> <xsl:with-param name="info" select="TaskingInfo"/> </xsl:call-template> </xsl:element> </xsl:template> <xsl:template match="Strings"> <xsl:element name="ObjectValue"> <xsl:attribute name="name">Strings</xsl:attribute> <xsl:apply-templates select="String"/> </xsl:element> </xsl:template> <xsl:template match="String"> <xsl:element name="ObjectValue"> <xsl:attribute name="name">String</xsl:attribute> <xsl:element name="StringValue"> <xsl:attribute name="name">string</xsl:attribute> <xsl:value-of select="."/> </xsl:element> <xsl:element name="IntValue"> <xsl:attribute name="name">offset</xsl:attribute> <xsl:value-of select="@offset"/> </xsl:element> </xsl:element> </xsl:template> </xsl:transform>
{ "pile_set_name": "Github" }
{{ define "shared/style" }} <link rel="stylesheet" href={{ Mix "/css/app.css" }}> {{ end }}
{ "pile_set_name": "Github" }
* { margin: 0; padding: 0; } #igs { margin: 10px auto; width: 700px; height: 320px; position: relative; } .ig { position: absolute; } #tabs { position: absolute; list-style: none; background-color: rgba(255,255,255,.5); left: 300px; bottom: 10px; border-radius: 10px; padding: 5px 0 5px 5px; } .tab{ float: left; text-align: center; line-height: 20px; width: 20px; height: 20px; cursor: pointer; overflow: hidden; margin-right: 4px; border-radius: 100%; background-color: rgb(200,100,150); } .btn{ position: absolute; color: #fff; top: 110px; width: 40px; height: 100px; background-color: rgba(255,255,255,.3); font-size: 40px; font-weight: bold; text-align: center; line-height: 100px; border-radius: 5px; margin: 0 5px; } .btn2{ position: absolute; right: 0px; } .btn:hover{ background-color: rgba(0,0,0,.7); }
{ "pile_set_name": "Github" }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta http-equiv="charset" content="ISO-8859-1" /> <meta http-equiv="content-language" content="English" /> <meta http-equiv="vw96.object type" content="Document" /> <meta name="resource-type" content="document" /> <meta name="distribution" content="Global" /> <meta name="rating" content="General" /> <meta name="robots" content="all" /> <meta name="revist-after" content="2 days" /> <link rel="shortcut icon" href="../../../favicon.ico" /> <title>The Original Hip-Hop (Rap) Lyrics Archive</title> <!-- link rel="stylesheet" type="text/css" href="http://ohhla.com/files/main.css" / --> <!-- BEGIN SITE ANALYTICS //--> <script type="text/javascript"> if (typeof siteanalytics == 'undefined') { siteanalytics = {}; }; siteanalytics.gn_tracking_defaults = {google: '',comscore: {},quantcast:''}; siteanalytics.website_id = 180; siteanalytics.cdn_hostname = 'cdn.siteanalytics.evolvemediametrics.com'; </script> <script type="text/javascript" src='http://cdn.siteanalytics.evolvemediametrics.com/js/siteanalytics.js'></script> <!-- END SITE ANALYTICS //--> </head> <body> <a href="javascript: history.go(-1)">Back to the previous page</a> <div> </div> <div style="width: 720px; text-align: center; color: #ff0000; font-weight: bold; font-size: 1em;"> <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style" style="margin: auto 0 auto 0; padding-left: 185px;"> <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_tweet"></a> <a class="addthis_button_google_plusone" g:plusone:size="medium"></a> <a class="addthis_counter addthis_pill_style"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4e8ea9f77f69af2f"></script> <!-- AddThis Button END --> </div> <br /> <div style="float: left; min-width: 560px;"> <pre> Artist: The Roots Album: The Tipping Point Song: Duck Down! Typed by: kkbonsu@hotmail.com [Black Thought] Yea we gettin' ready to break y'all it's winner take all The game is locked we down to the eight ball The time is now, it ain't nothin' to wait for I'm a king by blood a soldier by nature I'm somthin' like a threat to y'all space cadets 'Cause you never met brother nothin' like me yet So push another slice into your toast and tighten your vests Cause it's a warrior you seein' here tonight in the flesh I give you somthin' high voltage double dosage Runnin' with these vultures givin' me ulcers Which one of these hustlers bringin' the thunder 'Riq Geez not another man takin' us under Nigga please which Philly cat doin' his own thing Might say black my give you a code name Round my neck see the microphone hang Have your lady lips singin' like on soul train The niggaz that's a problem is minimal margin The Colonel, Capitan, Lieutenant, General Sergeant Black, one man army move in on your squadron You sittin' still you know you a target You heard you better duck down! [Chorus: repeat 2X] See me comin' better tuck those chains Cause you don't wanna feel them thangs If you want it, you can get it baby You know you need to get low Duck Down! (Duck Down!) [Black Thought] Yea we gettin' set to get rid of y'all that's what it's headin' for The underdog knuckle and brawl with the bigger ball I spit what your wig absorb sicker than sycamore I'm creatin' a circumstance that you a victim of The rebel or the renegade out on the quest The super black man runnin' wit a S on his chest And stand for the straight struggle to escape the stress You think it's sweet tryin' to eat, you ain't taste this yet So make y'all steps precautious into the darkness Thoughts cold and heartless makin' me nauseous Gettin' more remorses for what I done If the lawyers and courts wonder what I run You see the liberty it's free but just for some How you a gangster and you scared to bust your gun For the call, trust your fam' and trust nobody at all Seein' brothers gettin' struck down You better duck down! [Chorus] [Verse 3: Black Thought] Yeah I can feel somethin' for sure, I've been up in here before A gladiator in a colliseum ready for war That old timer holdin' his revolver set to blow Just like a gladiator at whoever stick his head in the door And one who been through it all, anything go Rather give it to you straight 'stead of speakin in codes Cuz man, that bullshit can get you riddled with holes If you ain't insured than the hospitals is close You got to go up-town while ya leakin' on the ground In cases like these, you need to duck down You're five dollar toys, I'm a million dollar man Esquire 'Riq Geez go according to plan I'm thinkin' outside the box, off the blocks An outside your concept of time, off the clocks for real Well it's Black Thought your boss DJ Whatever you brothers weigh that's what ya gonna pay [Chorus] - 2X</pre> </div> <div style="float: left;"> </div> </body></html>
{ "pile_set_name": "Github" }
{ "id": "draft04.json", "$schema": "draft04.json", "description": "Core schema meta-schema", "definitions": { "schemaArray": { "type": "array", "minItems": 1, "items": { "$ref": "#" } }, "positiveInteger": { "type": "integer", "minimum": 0 }, "positiveIntegerDefault0": { "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ] }, "simpleTypes": { "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ] }, "stringArray": { "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true } }, "type": "object", "properties": { "id": { "type": "string", "format": "uri" }, "$schema": { "type": "string", "format": "uri" }, "title": { "type": "string" }, "description": { "type": "string" }, "default": {}, "multipleOf": { "type": "number", "minimum": 0, "exclusiveMinimum": true }, "maximum": { "type": "number" }, "exclusiveMaximum": { "type": "boolean", "default": false }, "minimum": { "type": "number" }, "exclusiveMinimum": { "type": "boolean", "default": false }, "maxLength": { "$ref": "#/definitions/positiveInteger" }, "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" }, "pattern": { "type": "string", "format": "regex" }, "additionalItems": { "anyOf": [ { "type": "boolean" }, { "$ref": "#" } ], "default": {} }, "items": { "anyOf": [ { "$ref": "#" }, { "$ref": "#/definitions/schemaArray" } ], "default": {} }, "maxItems": { "$ref": "#/definitions/positiveInteger" }, "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" }, "uniqueItems": { "type": "boolean", "default": false }, "maxProperties": { "$ref": "#/definitions/positiveInteger" }, "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" }, "required": { "$ref": "#/definitions/stringArray" }, "additionalProperties": { "anyOf": [ { "type": "boolean" }, { "$ref": "#" } ], "default": {} }, "definitions": { "type": "object", "additionalProperties": { "$ref": "#" }, "default": {} }, "properties": { "type": "object", "additionalProperties": { "$ref": "#" }, "default": {} }, "patternProperties": { "type": "object", "additionalProperties": { "$ref": "#" }, "default": {} }, "dependencies": { "type": "object", "additionalProperties": { "anyOf": [ { "$ref": "#" }, { "$ref": "#/definitions/stringArray" } ] } }, "enum": { "type": "array", "minItems": 1, "uniqueItems": true }, "type": { "anyOf": [ { "$ref": "#/definitions/simpleTypes" }, { "type": "array", "items": { "$ref": "#/definitions/simpleTypes" }, "minItems": 1, "uniqueItems": true } ] }, "format": { "type": "string" }, "allOf": { "$ref": "#/definitions/schemaArray" }, "anyOf": { "$ref": "#/definitions/schemaArray" }, "oneOf": { "$ref": "#/definitions/schemaArray" }, "not": { "$ref": "#" } }, "dependencies": { "exclusiveMaximum": [ "maximum" ], "exclusiveMinimum": [ "minimum" ] }, "default": {} }
{ "pile_set_name": "Github" }
version: '2' services: web: image: nginx:latest ports: - "8080:80" volumes: - ./code:/code - ./site.conf:/etc/nginx/conf.d/default.conf networks: - code-network php: image: php:fpm volumes: - ./code:/code networks: - code-network networks: code-network: driver: bridge
{ "pile_set_name": "Github" }
[weewx] name=weewx baseurl=http://weewx.com/yum/weewx/el7 enabled=1 gpgcheck=0
{ "pile_set_name": "Github" }
{ "type": "minecraft:crafting_shaped", "pattern": [ "X ", "XX ", "XXX" ], "key": { "X": { "item": "tfc:wood/planks/douglas_fir" } }, "result": { "item": "tfc:stairs/wood/douglas_fir", "count": 8 } }
{ "pile_set_name": "Github" }
<?xml version="1.0"?> <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> </pickle> <pickle> <dictionary> <item> <key> <string>id</string> </key> <value> <string>my_text_area_field</string> </value> </item> <item> <key> <string>message_values</string> </key> <value> <dictionary> <item> <key> <string>external_validator_failed</string> </key> <value> <string>The input failed the external validator.</string> </value> </item> </dictionary> </value> </item> <item> <key> <string>overrides</string> </key> <value> <dictionary> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string></string> </value> </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> </dictionary> </value> </item> <item> <key> <string>tales</string> </key> <value> <dictionary> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string></string> </value> </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> </dictionary> </value> </item> <item> <key> <string>values</string> </key> <value> <dictionary> <item> <key> <string>field_id</string> </key> <value> <string>my_text_area_field</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewFieldLibrary</string> </value> </item> <item> <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> </item> </dictionary> </value> </item> </dictionary> </pickle> </record> </ZopeData>
{ "pile_set_name": "Github" }
<!-- ~ Copyright 2019. Google LLC ~ ~ 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 ~ ~ https://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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/bg_blue" android:orientation="vertical" android:padding="20dp" tools:context="com.google.android.apps.santatracker.dasherdancer.CharacterActivity" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:orientation="horizontal" > <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> <ImageButton android:id="@+id/btn_character_santa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:adjustViewBounds="true" android:background="@drawable/dasher_ripple" android:onClick="onCharacterClick" android:scaleType="fitCenter" android:layout_gravity="bottom" android:src="@drawable/santa" /> <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:orientation="horizontal" > <ImageButton android:id="@+id/btn_character_elf" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:adjustViewBounds="true" android:background="@drawable/dasher_ripple" android:onClick="onCharacterClick" android:scaleType="fitCenter" android:layout_gravity="center" android:src="@drawable/elf" /> <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> <ImageButton android:id="@+id/btn_character_reindeer" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:adjustViewBounds="true" android:background="@drawable/dasher_ripple" android:onClick="onCharacterClick" android:scaleType="fitCenter" android:layout_gravity="center" android:src="@drawable/reindeer" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:orientation="horizontal" > <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> <ImageButton android:id="@+id/btn_character_snowman" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:adjustViewBounds="true" android:background="@drawable/dasher_ripple" android:onClick="onCharacterClick" android:scaleType="fitCenter" android:layout_gravity="top" android:src="@drawable/snowman" /> <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> </LinearLayout> </LinearLayout>
{ "pile_set_name": "Github" }
var baseSum = require('./_baseSum'), identity = require('./identity'); /** * Computes the sum of the values in `array`. * * @static * @memberOf _ * @since 3.4.0 * @category Math * @param {Array} array The array to iterate over. * @returns {number} Returns the sum. * @example * * _.sum([4, 2, 8, 6]); * // => 20 */ function sum(array) { return (array && array.length) ? baseSum(array, identity) : 0; } module.exports = sum;
{ "pile_set_name": "Github" }
<?xml version="1.0" standalone="no" ?> <!DOCTYPE pov SYSTEM "/usr/share/cgc-docs/replay.dtd"> <pov> <cbid>service</cbid> <replay> <write><data>UUUUUUUU</data></write> <read><delim>\x0a</delim><match><data>What is your name?\x0a</data></match></read> <write><data>User\x0a</data></write> <read><delim>\x0a</delim><match><data>Hi\x2c User\x0a</data></match></read> <read><delim>\x3e</delim><match><pcre>.*?0 B ></pcre></match></read> <write><data>7 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?1 B ></pcre></match></read> <write><data>3 2\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?2 B ></pcre></match></read> <write><data>18 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?3 B ></pcre></match></read> <write><data>5 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?4 B ></pcre></match></read> <write><data>8 1\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?5 B ></pcre></match></read> <write><data>0 9\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?6 B ></pcre></match></read> <write><data>6 8\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?7 B ></pcre></match></read> <write><data>19 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?7 B ></pcre></match></read> <write><data>5 12\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?8 B ></pcre></match></read> <write><data>11 14\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?9 B ></pcre></match></read> <write><data>2 3\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?10 B ></pcre></match></read> <write><data>11 7\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?11 B ></pcre></match></read> <write><data>16 18\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?12 B ></pcre></match></read> <write><data>9 5\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?13 B ></pcre></match></read> <write><data>16 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?14 B ></pcre></match></read> <write><data>11 12\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?15 B ></pcre></match></read> <write><data>10 3\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?16 B ></pcre></match></read> <write><data>10 13\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?17 B ></pcre></match></read> <write><data>0 3\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?17 B ></pcre></match></read> <write><data>14 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?18 B ></pcre></match></read> <write><data>0 7\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?19 B ></pcre></match></read> <write><data>11 7\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?19 B ></pcre></match></read> <write><data>6 12\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?20 B ></pcre></match></read> <write><data>4 19\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?20 B ></pcre></match></read> <write><data>17 12\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?21 B ></pcre></match></read> <write><data>7 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?22 B ></pcre></match></read> <write><data>17 19\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?22 B ></pcre></match></read> <write><data>18 12\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?23 B ></pcre></match></read> <write><data>0 17\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?24 B ></pcre></match></read> <write><data>10 2\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?25 B ></pcre></match></read> <write><data>9 15\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?26 B ></pcre></match></read> <write><data>2 8\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?27 B ></pcre></match></read> <write><data>6 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?28 B ></pcre></match></read> <write><data>9 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?29 B ></pcre></match></read> <write><data>7 8\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?30 B ></pcre></match></read> <write><data>4 10\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?31 B ></pcre></match></read> <write><data>18 12\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?31 B ></pcre></match></read> <write><data>7 9\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?32 B ></pcre></match></read> <write><data>1 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?33 B ></pcre></match></read> <write><data>14 14\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?34 B ></pcre></match></read> <write><data>2 12\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?35 B ></pcre></match></read> <write><data>10 2\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?35 B ></pcre></match></read> <write><data>7 0\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?36 B ></pcre></match></read> <write><data>14 9\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?37 B ></pcre></match></read> <write><data>16 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?38 B ></pcre></match></read> <write><data>14 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?39 B ></pcre></match></read> <write><data>17 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?40 B ></pcre></match></read> <write><data>12 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?41 B ></pcre></match></read> <write><data>1 17\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?42 B ></pcre></match></read> <write><data>12 8\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?43 B ></pcre></match></read> <write><data>0 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?44 B ></pcre></match></read> <write><data>18 10\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?45 B ></pcre></match></read> <write><data>pass\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?46 B ></pcre></match></read> <write><data>5 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?47 B ></pcre></match></read> <write><data>17 7\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?48 B ></pcre></match></read> <write><data>8 8\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?49 B ></pcre></match></read> <write><data>8 3\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?50 B ></pcre></match></read> <write><data>10 10\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?51 B ></pcre></match></read> <write><data>7 5\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?52 B ></pcre></match></read> <write><data>0 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?52 B ></pcre></match></read> <write><data>14 3\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?52 B ></pcre></match></read> <write><data>14 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?52 B ></pcre></match></read> <write><data>1 13\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?53 B ></pcre></match></read> <write><data>5 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?53 B ></pcre></match></read> <write><data>19 7\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?53 B ></pcre></match></read> <write><data>9 7\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?54 B ></pcre></match></read> <write><data>5 19\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?54 B ></pcre></match></read> <write><data>6 0\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?55 B ></pcre></match></read> <write><data>15 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?56 B ></pcre></match></read> <write><data>17 15\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?57 B ></pcre></match></read> <write><data>pass\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?58 B ></pcre></match></read> <write><data>19 1\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?58 B ></pcre></match></read> <write><data>17 10\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?59 B ></pcre></match></read> <write><data>6 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?60 B ></pcre></match></read> <write><data>2 12\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?60 B ></pcre></match></read> <write><data>17 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?61 B ></pcre></match></read> <write><data>5 5\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?62 B ></pcre></match></read> <write><data>6 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?63 B ></pcre></match></read> <write><data>0 8\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?64 B ></pcre></match></read> <write><data>0 17\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?64 B ></pcre></match></read> <write><data>0 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?64 B ></pcre></match></read> <write><data>6 10\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?65 B ></pcre></match></read> <write><data>0 13\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?66 B ></pcre></match></read> <write><data>16 0\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?67 B ></pcre></match></read> <write><data>9 17\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?68 B ></pcre></match></read> <write><data>8 9\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?69 B ></pcre></match></read> <write><data>11 4\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?69 B ></pcre></match></read> <write><data>1 4\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?69 B ></pcre></match></read> <write><data>10 13\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?69 B ></pcre></match></read> <write><data>18 13\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?70 B ></pcre></match></read> <write><data>7 14\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?71 B ></pcre></match></read> <write><data>13 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?72 B ></pcre></match></read> <write><data>6 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?72 B ></pcre></match></read> <write><data>9 13\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?73 B ></pcre></match></read> <write><data>6 17\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?74 B ></pcre></match></read> <write><data>10 17\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?75 B ></pcre></match></read> <write><data>8 4\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?75 B ></pcre></match></read> <write><data>8 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?76 B ></pcre></match></read> <write><data>10 2\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?76 B ></pcre></match></read> <write><data>pass\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?77 B ></pcre></match></read> <write><data>19 19\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?77 B ></pcre></match></read> <write><data>1 0\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?77 B ></pcre></match></read> <write><data>12 14\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?78 B ></pcre></match></read> <write><data>5 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?78 B ></pcre></match></read> <write><data>2 11\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?79 B ></pcre></match></read> <write><data>3 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?80 B ></pcre></match></read> <write><data>18 0\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?80 B ></pcre></match></read> <write><data>1 13\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?80 B ></pcre></match></read> <write><data>10 4\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?80 B ></pcre></match></read> <write><data>19 7\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?80 B ></pcre></match></read> <write><data>13 18\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?81 B ></pcre></match></read> <write><data>18 5\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?82 B ></pcre></match></read> <write><data>16 5\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?82 B ></pcre></match></read> <write><data>12 15\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?83 B ></pcre></match></read> <write><data>0 14\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?84 B ></pcre></match></read> <write><data>4 14\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?85 B ></pcre></match></read> <write><data>16 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?86 B ></pcre></match></read> <write><data>12 3\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?86 B ></pcre></match></read> <write><data>0 14\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?86 B ></pcre></match></read> <write><data>19 4\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?86 B ></pcre></match></read> <write><data>7 10\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?87 B ></pcre></match></read> <write><data>15 17\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?88 B ></pcre></match></read> <write><data>4 19\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?88 B ></pcre></match></read> <write><data>10 16\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?89 B ></pcre></match></read> <write><data>7 14\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?89 B ></pcre></match></read> <write><data>3 1\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?89 B ></pcre></match></read> <write><data>1 7\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?90 B ></pcre></match></read> <write><data>17 6\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?90 B ></pcre></match></read> <write><data>19 15\x0a</data></write> <read><delim>\x3e</delim><match><pcre>.*?90 B ></pcre></match></read> <write><data>8 11\x0a</data></write> <read><delim>User</delim><match><pcre>.*?Game Over Stones Exhausted You are a Winner, User</pcre></match></read> </replay> </pov>
{ "pile_set_name": "Github" }
apiVersion: v1 description: A Helm chart for Kubernetes name: certmanager version: 1.0.1 appVersion: 0.3.1 tillerVersion: ">=2.7.2"
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc --> <title>JTabbedPane.ModelListener (Java SE 12 &amp; JDK 12 )</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="keywords" content="javax.swing.JTabbedPane.ModelListener class"> <meta name="keywords" content="stateChanged()"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> <script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script> <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> <!--[if IE]> <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> <![endif]--> <script type="text/javascript" src="../../../jquery/jquery-3.3.1.js"></script> <script type="text/javascript" src="../../../jquery/jquery-migrate-3.0.1.js"></script> <script type="text/javascript" src="../../../jquery/jquery-ui.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="JTabbedPane.ModelListener (Java SE 12 & JDK 12 )"; } } catch(err) { } //--> var pathtoroot = "../../../"; var useModuleDirectories = true; 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="../../module-summary.html">Module</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/JTabbedPane.ModelListener.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 &amp; JDK 12</strong> </div></div> </div> <div class="subNav"> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li>Method</li> </ul> </div> <ul class="navListSearch"> <li><label for="search">SEARCH:</label> <input type="text" id="search" value="search" disabled="disabled"> <input type="reset" id="reset" value="reset" disabled="disabled"> </li> </ul> </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> <!-- ======== START OF CLASS DATA ======== --> <main role="main"> <div class="header"> <div class="subTitle"><span class="moduleLabelInType">Module</span>&nbsp;<a href="../../module-summary.html">java.desktop</a></div> <div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">javax.swing</a></div> <h2 title="Class JTabbedPane.ModelListener" class="title">Class JTabbedPane.ModelListener</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li><a href="../../../java.base/java/lang/Object.html" title="class in java.lang">java.lang.Object</a></li> <li> <ul class="inheritance"> <li>javax.swing.JTabbedPane.ModelListener</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><code><a href="../../../java.base/java/io/Serializable.html" title="interface in java.io">Serializable</a></code>, <code><a href="../../../java.base/java/util/EventListener.html" title="interface in java.util">EventListener</a></code>, <code><a href="event/ChangeListener.html" title="interface in javax.swing.event">ChangeListener</a></code></dd> </dl> <dl> <dt>Enclosing class:</dt> <dd><a href="JTabbedPane.html" title="class in javax.swing">JTabbedPane</a></dd> </dl> <hr> <pre>protected class <span class="typeNameLabel">JTabbedPane.ModelListener</span> extends <a href="../../../java.base/java/lang/Object.html" title="class in java.lang">Object</a> implements <a href="event/ChangeListener.html" title="interface in javax.swing.event">ChangeListener</a>, <a href="../../../java.base/java/io/Serializable.html" title="interface in java.io">Serializable</a></pre> <div class="block">We pass <code>ModelChanged</code> events along to the listeners with the tabbedpane (instead of the model itself) as the event source.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <div class="memberSummary"> <table> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier</th> <th class="colSecond" scope="col">Constructor</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>protected </code></td> <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">ModelListener</a></span>()</code></th> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </div> </li> </ul> </section> <!-- ========== METHOD SUMMARY =========== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <ul class="blockList"> <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods declared in class&nbsp;java.lang.<a href="../../../java.base/java/lang/Object.html" title="class in java.lang">Object</a></h3> <code><a href="../../../java.base/java/lang/Object.html#clone()">clone</a>, <a href="../../../java.base/java/lang/Object.html#equals(java.lang.Object)">equals</a>, <a href="../../../java.base/java/lang/Object.html#finalize()">finalize</a>, <a href="../../../java.base/java/lang/Object.html#getClass()">getClass</a>, <a href="../../../java.base/java/lang/Object.html#hashCode()">hashCode</a>, <a href="../../../java.base/java/lang/Object.html#notify()">notify</a>, <a href="../../../java.base/java/lang/Object.html#notifyAll()">notifyAll</a>, <a href="../../../java.base/java/lang/Object.html#toString()">toString</a>, <a href="../../../java.base/java/lang/Object.html#wait()">wait</a>, <a href="../../../java.base/java/lang/Object.html#wait(long)">wait</a>, <a href="../../../java.base/java/lang/Object.html#wait(long,int)">wait</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a id="methods.inherited.from.class.javax.swing.event.ChangeListener"> <!-- --> </a> <h3>Methods declared in interface&nbsp;javax.swing.event.<a href="event/ChangeListener.html" title="interface in javax.swing.event">ChangeListener</a></h3> <code><a href="event/ChangeListener.html#stateChanged(javax.swing.event.ChangeEvent)">stateChanged</a></code></li> </ul> </li> </ul> </section> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a id="&lt;init&gt;()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>ModelListener</h4> <pre>protected&nbsp;ModelListener()</pre> </li> </ul> </li> </ul> </section> </li> </ul> </div> </div> </main> <!-- ========= END OF CLASS DATA ========= --> <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="../../module-summary.html">Module</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/JTabbedPane.ModelListener.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 &amp; JDK 12</strong> </div></div> </div> <div class="subNav"> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li>Method</li> </ul> </div> </div> <a id="skip.navbar.bottom"> <!-- --> </a> <!-- ======== END OF BOTTOM NAVBAR ======= --> </nav> <p class="legalCopy"><small><a href="https://bugreport.java.com/bugreport/">Report a bug or suggest an enhancement</a><br> For further API reference and developer documentation see the <a href="https://docs.oracle.com/pls/topic/lookup?ctx=javase12.0.2&amp;id=homepage" target="_blank">Java SE Documentation</a>, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.<br> Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.<br> <a href="../../../../legal/copyright.html">Copyright</a> &copy; 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.<br>All rights reserved. Use is subject to <a href="https://www.oracle.com/technetwork/java/javase/terms/license/java12.0.2speclicense.html">license terms</a> and the <a href="https://www.oracle.com/technetwork/java/redist-137594.html">documentation redistribution policy</a>. <!-- Version 12.0.2+10 --></small></p> </footer> </body> </html>
{ "pile_set_name": "Github" }
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "ERANAMES": [ "avant J\u00e9sus-Christ", "apr\u00e8s J\u00e9sus-Christ" ], "ERAS": [ "av. J.-C.", "ap. J.-C." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "STANDALONEMONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ac", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-gp", "localeID": "fr_GP", "pluralCat": function(n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
{ "pile_set_name": "Github" }
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- from azure.cli.core.commands import CliCommandType from ._format import ( registry_output_format, usage_output_format, policy_output_format, credential_output_format, webhook_output_format, webhook_get_config_output_format, webhook_list_events_output_format, webhook_ping_output_format, replication_output_format, endpoints_output_format, build_output_format, task_output_format, task_identity_format, taskrun_output_format, run_output_format, helm_list_output_format, helm_show_output_format, scope_map_output_format, token_output_format, token_credential_output_format, agentpool_output_format ) from ._client_factory import ( cf_acr_registries, cf_acr_replications, cf_acr_webhooks, cf_acr_tasks, cf_acr_taskruns, cf_acr_runs, cf_acr_scope_maps, cf_acr_tokens, cf_acr_token_credentials, cf_acr_private_endpoint_connections, cf_acr_agentpool ) def load_command_table(self, _): # pylint: disable=too-many-statements acr_custom_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.custom#{}', table_transformer=registry_output_format, client_factory=cf_acr_registries ) acr_login_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.custom#{}' ) acr_import_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.import#{}', client_factory=cf_acr_registries ) acr_policy_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.policy#{}', table_transformer=policy_output_format, client_factory=cf_acr_registries ) acr_cred_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.credential#{}', table_transformer=credential_output_format, client_factory=cf_acr_registries ) acr_repo_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.repository#{}' ) acr_webhook_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.webhook#{}', table_transformer=webhook_output_format, client_factory=cf_acr_webhooks ) acr_replication_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.replication#{}', table_transformer=replication_output_format, client_factory=cf_acr_replications ) acr_build_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.build#{}', table_transformer=build_output_format, client_factory=cf_acr_runs ) acr_run_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.run#{}', table_transformer=run_output_format, client_factory=cf_acr_runs ) acr_pack_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.pack#{}', table_transformer=run_output_format, client_factory=cf_acr_runs ) acr_task_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.task#{}', table_transformer=task_output_format, client_factory=cf_acr_tasks ) acr_taskrun_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.taskrun#{}', table_transformer=taskrun_output_format, client_factory=cf_acr_taskruns ) acr_helm_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.helm#{}' ) acr_network_rule_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.network_rule#{}', client_factory=cf_acr_registries ) acr_check_health_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.check_health#{}' ) acr_scope_map_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.scope_map#{}', table_transformer=scope_map_output_format, client_factory=cf_acr_scope_maps ) acr_token_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.token#{}', table_transformer=token_output_format, client_factory=cf_acr_tokens ) acr_token_credential_generate_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.token#{}', table_transformer=token_credential_output_format, client_factory=cf_acr_token_credentials ) acr_agentpool_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.agentpool#{}', table_transformer=agentpool_output_format, client_factory=cf_acr_agentpool ) acr_private_endpoint_connection_util = CliCommandType( operations_tmpl='azure.cli.command_modules.acr.private_endpoint_connection#{}', client_factory=cf_acr_private_endpoint_connections ) with self.command_group('acr', acr_custom_util) as g: g.command('check-name', 'acr_check_name', table_transformer=None) g.command('list', 'acr_list') g.command('create', 'acr_create') g.command('delete', 'acr_delete') g.show_command('show', 'acr_show') g.command('show-usage', 'acr_show_usage', table_transformer=usage_output_format) g.command('show-endpoints', 'acr_show_endpoints', table_transformer=endpoints_output_format) g.generic_update_command('update', getter_name='acr_update_get', setter_name='acr_update_set', custom_func_name='acr_update_custom', custom_func_type=acr_custom_util, client_factory=cf_acr_registries) with self.command_group('acr', acr_login_util) as g: g.command('login', 'acr_login') with self.command_group('acr', acr_import_util) as g: g.command('import', 'acr_import') with self.command_group('acr credential', acr_cred_util) as g: g.show_command('show', 'acr_credential_show') g.command('renew', 'acr_credential_renew') with self.command_group('acr repository', acr_repo_util) as g: g.command('list', 'acr_repository_list') g.command('show-tags', 'acr_repository_show_tags') g.command('show-manifests', 'acr_repository_show_manifests') g.show_command('show', 'acr_repository_show') g.command('update', 'acr_repository_update') g.command('delete', 'acr_repository_delete') g.command('untag', 'acr_repository_untag') with self.command_group('acr webhook', acr_webhook_util) as g: g.command('list', 'acr_webhook_list') g.command('create', 'acr_webhook_create') g.command('delete', 'acr_webhook_delete') g.show_command('show', 'acr_webhook_show') g.command('get-config', 'acr_webhook_get_config', table_transformer=webhook_get_config_output_format) g.command('list-events', 'acr_webhook_list_events', table_transformer=webhook_list_events_output_format) g.command('ping', 'acr_webhook_ping', table_transformer=webhook_ping_output_format) g.generic_update_command('update', getter_name='acr_webhook_update_get', setter_name='acr_webhook_update_set', custom_func_name='acr_webhook_update_custom', custom_func_type=acr_webhook_util, client_factory=cf_acr_webhooks) with self.command_group('acr replication', acr_replication_util) as g: g.command('list', 'acr_replication_list') g.command('create', 'acr_replication_create') g.command('delete', 'acr_replication_delete') g.show_command('show', 'acr_replication_show') g.generic_update_command('update', getter_name='acr_replication_update_get', setter_name='acr_replication_update_set', custom_func_name='acr_replication_update_custom', custom_func_type=acr_replication_util, client_factory=cf_acr_replications) with self.command_group('acr', acr_build_util) as g: g.command('build', 'acr_build', supports_no_wait=True) with self.command_group('acr', acr_run_util) as g: g.command('run', 'acr_run', supports_no_wait=True) with self.command_group('acr pack', acr_pack_util, is_preview=True) as g: g.command('build', 'acr_pack_build', supports_no_wait=True) with self.command_group('acr task', acr_task_util) as g: g.command('create', 'acr_task_create') g.show_command('show', 'acr_task_show') g.command('list', 'acr_task_list') g.command('delete', 'acr_task_delete') g.command('update', 'acr_task_update') g.command('identity assign', 'acr_task_identity_assign') g.command('identity remove', 'acr_task_identity_remove') g.command('identity show', 'acr_task_identity_show', table_transformer=task_identity_format) g.command('credential add', 'acr_task_credential_add') g.command('credential update', 'acr_task_credential_update') g.command('credential remove', 'acr_task_credential_remove') g.command('credential list', 'acr_task_credential_list') g.command('timer add', 'acr_task_timer_add') g.command('timer update', 'acr_task_timer_update') g.command('timer remove', 'acr_task_timer_remove') g.command('timer list', 'acr_task_timer_list') g.command('run', 'acr_task_run', client_factory=cf_acr_runs, table_transformer=run_output_format, supports_no_wait=True) g.command('list-runs', 'acr_task_list_runs', client_factory=cf_acr_runs, table_transformer=run_output_format) g.command('show-run', 'acr_task_show_run', client_factory=cf_acr_runs, table_transformer=run_output_format) g.command('cancel-run', 'acr_task_cancel_run', client_factory=cf_acr_runs, table_transformer=None) g.command('update-run', 'acr_task_update_run', client_factory=cf_acr_runs, table_transformer=run_output_format) g.command('logs', 'acr_task_logs', client_factory=cf_acr_runs, table_transformer=None) with self.command_group('acr taskrun', acr_taskrun_util, is_preview=True) as g: g.command('list', 'acr_taskrun_list') g.command('delete', 'acr_taskrun_delete') g.show_command('show', 'acr_taskrun_show') g.command('logs', 'acr_taskrun_logs', client_factory=cf_acr_runs, table_transformer=None) with self.command_group('acr config content-trust', acr_policy_util) as g: g.show_command('show', 'acr_config_content_trust_show') g.command('update', 'acr_config_content_trust_update') with self.command_group('acr config retention', acr_policy_util, is_preview=True) as g: g.show_command('show', 'acr_config_retention_show') g.command('update', 'acr_config_retention_update') def _helm_deprecate_message(self): msg = "This {} has been deprecated and will be removed in future release.".format(self.object_type) msg += " Use '{}' instead.".format(self.redirect) msg += " For more information go to" msg += " https://aka.ms/acr/helm" return msg with self.command_group('acr helm', acr_helm_util, deprecate_info=self.deprecate(redirect="helm v3", message_func=_helm_deprecate_message)) as g: g.command('list', 'acr_helm_list', table_transformer=helm_list_output_format) g.show_command('show', 'acr_helm_show', table_transformer=helm_show_output_format) g.command('delete', 'acr_helm_delete') g.command('push', 'acr_helm_push') g.command('repo add', 'acr_helm_repo_add') g.command('install-cli', 'acr_helm_install_cli', is_preview=True) with self.command_group('acr network-rule', acr_network_rule_util) as g: g.command('list', 'acr_network_rule_list') g.command('add', 'acr_network_rule_add') g.command('remove', 'acr_network_rule_remove') with self.command_group('acr', acr_check_health_util) as g: g.command('check-health', 'acr_check_health') with self.command_group('acr scope-map', acr_scope_map_util, is_preview=True) as g: g.command('create', 'acr_scope_map_create') g.command('delete', 'acr_scope_map_delete') g.command('update', 'acr_scope_map_update') g.show_command('show', 'acr_scope_map_show') g.command('list', 'acr_scope_map_list') with self.command_group('acr token', acr_token_util, is_preview=True) as g: g.command('create', 'acr_token_create') g.command('delete', 'acr_token_delete') g.command('update', 'acr_token_update') g.show_command('show', 'acr_token_show') g.command('list', 'acr_token_list') g.command('credential delete', 'acr_token_credential_delete') with self.command_group('acr token credential', acr_token_credential_generate_util) as g: g.command('generate', 'acr_token_credential_generate') with self.command_group('acr agentpool', acr_agentpool_util, is_preview=True) as g: g.command('create', 'acr_agentpool_create', supports_no_wait=True) g.command('update', 'acr_agentpool_update', supports_no_wait=True) g.command('delete', 'acr_agentpool_delete', supports_no_wait=True) g.command('list', 'acr_agentpool_list') g.show_command('show', 'acr_agentpool_show') with self.command_group('acr private-endpoint-connection', acr_private_endpoint_connection_util) as g: g.command('delete', 'delete') g.show_command('show', 'show') g.command('list', 'list_connections') g.command('approve', 'approve') g.command('reject', 'reject') with self.command_group('acr private-link-resource', acr_custom_util) as g: g.command('list', 'list_private_link_resources') with self.command_group('acr identity', acr_custom_util) as g: g.show_command('show', 'show_identity') g.command('assign', 'assign_identity') g.command('remove', 'remove_identity') with self.command_group('acr encryption', acr_custom_util) as g: g.show_command('show', 'show_encryption') g.command('rotate-key', "rotate_key")
{ "pile_set_name": "Github" }
fileFormatVersion: 2 guid: f2526e443ce2efb4cb419bda6a034df6 timeCreated: 1490642887 licenseType: Pro NativeFormatImporter: userData: assetBundleName: assetBundleVariant:
{ "pile_set_name": "Github" }
{% load static %} <script src="{% static 'fiber/js/markitup-1.1.10/jquery.markitup.js' %}" type="text/javascript"></script> <script src="{% static 'fiber/js/markitup-1.1.10/sets/textile_fiber/set.js' %}" type="text/javascript"></script> <script src="{% static 'fiber/js/fiber.markitup.js' %}" type="text/javascript"></script>
{ "pile_set_name": "Github" }
{{#with tryGetTargetReflectionDeep}} {{#ifCond ../name '===' name}} Re-exports <a href="{{relativeURL url}}">{{name}}</a> {{else if flags.isExported}} Renames and re-exports <a href="{{relativeURL url}}">{{name}}</a> {{else}} Renames and exports <a href="{{relativeURL url}}">{{name}}</a> {{/ifCond}} {{else}} Re-exports {{name}} {{/with}}
{ "pile_set_name": "Github" }
<a class="{% if not nav_item.is_link %}reference internal{% endif %}{% if nav_item.active%} current{%endif%}" href="{% if not nav_item.is_section %}{{ nav_item.url|url }}{% else %}#{% endif %}">{{ nav_item.title }}</a> {%- set navlevel = navlevel + 1 %} {%- if navlevel <= config.theme.navigation_depth and ((nav_item.is_page and nav_item.toc.items and (not config.theme.titles_only and (nav_item == page or not config.theme.collapse_navigation))) or (nav_item.is_section and nav_item.children)) %} <ul{% if nav_item.active %} class="current"{% endif %}> {%- if nav_item.is_page %} {#- Skip first level of toc which is page title. #} {%- set toc_item = nav_item.toc.items[0] %} {%- include 'toc.html' %} {%- elif nav_item.is_section %} {%- for nav_item in nav_item.children %} <li class="toctree-l{{ navlevel }}{% if nav_item.active%} current{%endif%}"> {%- include 'nav.html' %} </li> {%- endfor %} {%- endif %} </ul> {%- endif %} {%- set navlevel = navlevel - 1 %}
{ "pile_set_name": "Github" }
@extends('errors/layout') @section('title') 403 Forbidden @endsection @section('content') <h1><i class="fa fa-ban red"></i> 403 Forbidden</h1> <p class="lead">抱歉!您可能被禁止访问该页面,如有问题请联系管理员。</p> <p> <a class="btn btn-default btn-lg" href="{{ route('website.index') }}"><span class="green">返回首页</span></a> </p> @endsection
{ "pile_set_name": "Github" }
{ "path": "../../../notebooks/minio_setup.ipynb" }
{ "pile_set_name": "Github" }
{ config, pkgs, lib, ... }: with lib; let cfg = config.services.jackett; in { options = { services.jackett = { enable = mkEnableOption "Jackett"; dataDir = mkOption { type = types.str; default = "/var/lib/jackett/.config/Jackett"; description = "The directory where Jackett stores its data files."; }; openFirewall = mkOption { type = types.bool; default = false; description = "Open ports in the firewall for the Jackett web interface."; }; user = mkOption { type = types.str; default = "jackett"; description = "User account under which Jackett runs."; }; group = mkOption { type = types.str; default = "jackett"; description = "Group under which Jackett runs."; }; package = mkOption { type = types.package; default = pkgs.jackett; defaultText = "pkgs.jackett"; description = "Jackett package to use."; }; }; }; config = mkIf cfg.enable { systemd.tmpfiles.rules = [ "d '${cfg.dataDir}' 0700 ${cfg.user} ${cfg.group} - -" ]; systemd.services.jackett = { description = "Jackett"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { Type = "simple"; User = cfg.user; Group = cfg.group; ExecStart = "${cfg.package}/bin/Jackett --NoUpdates --DataFolder '${cfg.dataDir}'"; Restart = "on-failure"; }; }; networking.firewall = mkIf cfg.openFirewall { allowedTCPPorts = [ 9117 ]; }; users.users = mkIf (cfg.user == "jackett") { jackett = { group = cfg.group; home = cfg.dataDir; uid = config.ids.uids.jackett; }; }; users.groups = mkIf (cfg.group == "jackett") { jackett.gid = config.ids.gids.jackett; }; }; }
{ "pile_set_name": "Github" }
{ "_args": [ [ { "raw": "os-homedir@^1.0.0", "scope": null, "escapedName": "os-homedir", "name": "os-homedir", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "/Users/chengwei/kafka-doc-zh/doc/zh/node_modules/tildify" ] ], "_from": "os-homedir@>=1.0.0 <2.0.0", "_id": "os-homedir@1.0.2", "_inCache": true, "_location": "/os-homedir", "_nodeVersion": "6.6.0", "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/os-homedir-1.0.2.tgz_1475211519628_0.7873868853785098" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "3.10.3", "_phantomChildren": {}, "_requested": { "raw": "os-homedir@^1.0.0", "scope": null, "escapedName": "os-homedir", "name": "os-homedir", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/tildify" ], "_resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "_shasum": "ffbc4988336e0e833de0c168c7ef152121aa7fb3", "_shrinkwrap": null, "_spec": "os-homedir@^1.0.0", "_where": "/Users/chengwei/kafka-doc-zh/doc/zh/node_modules/tildify", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/os-homedir/issues" }, "dependencies": {}, "description": "Node.js 4 `os.homedir()` ponyfill", "devDependencies": { "ava": "*", "path-exists": "^2.0.0", "xo": "^0.16.0" }, "directories": {}, "dist": { "shasum": "ffbc4988336e0e833de0c168c7ef152121aa7fb3", "tarball": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "gitHead": "b1b0ae70a5965fef7005ff6509a5dd1a78c95e36", "homepage": "https://github.com/sindresorhus/os-homedir#readme", "keywords": [ "builtin", "core", "ponyfill", "polyfill", "shim", "os", "homedir", "home", "dir", "directory", "folder", "user", "path" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "os-homedir", "optionalDependencies": {}, "readme": "ERROR: No README data found!", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/os-homedir.git" }, "scripts": { "test": "xo && ava" }, "version": "1.0.2" }
{ "pile_set_name": "Github" }
--- title: "Delete androidStoreApp" description: "Deletes a androidStoreApp." author: "dougeby" localization_priority: Normal ms.prod: "intune" doc_type: apiPageType --- # Delete androidStoreApp Namespace: microsoft.graph > **Important:** Microsoft Graph APIs under the /beta version are subject to change; production use is not supported. > **Note:** The Microsoft Graph API for Intune requires an [active Intune license](https://go.microsoft.com/fwlink/?linkid=839381) for the tenant. Deletes a [androidStoreApp](../resources/intune-apps-androidstoreapp.md). ## Prerequisites One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference). |Permission type|Permissions (from most to least privileged)| |:---|:---| |Delegated (work or school account)|DeviceManagementApps.ReadWrite.All| |Delegated (personal Microsoft account)|Not supported.| |Application|DeviceManagementApps.ReadWrite.All| ## HTTP Request <!-- { "blockType": "ignored" } --> ``` http DELETE /deviceAppManagement/mobileApps/{mobileAppId} DELETE /deviceAppManagement/mobileApps/{mobileAppId}/userStatuses/{userAppInstallStatusId}/app DELETE /deviceAppManagement/mobileApps/{mobileAppId}/deviceStatuses/{mobileAppInstallStatusId}/app ``` ## Request headers |Header|Value| |:---|:---| |Authorization|Bearer &lt;token&gt; Required.| |Accept|application/json| ## Request body Do not supply a request body for this method. ## Response If successful, this method returns a `204 No Content` response code. ## Example ### Request Here is an example of the request. ``` http DELETE https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/{mobileAppId} ``` ### Response Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call. ``` http HTTP/1.1 204 No Content ```
{ "pile_set_name": "Github" }
'use strict'; const runAction = require('./action'); const extend = require('node.extend'); const fs = require('fs'); const path = require('path'); const {promisify} = require('util'); const pkg = require('../package.json'); const promiseTimeout = require('p-timeout'); const puppeteer = require('puppeteer'); const semver = require('semver'); const runnerJavascriptPromises = {}; const readFile = promisify(fs.readFile); module.exports = pa11y; /** * Run accessibility tests on a web page. * @public * @param {String} url - The URL to run tests against. * @param {Object} [options={}] - Options to change the way tests run. * @param {Function} [callback] - An optional callback to use instead of promises. * @returns {Promise} Returns a promise which resolves with a results object. */ async function pa11y(url, options = {}, callback) { const state = {}; let pa11yError; let pa11yResults; [url, options, callback] = parseArguments(url, options, callback); try { // Verify that the given options are valid verifyOptions(options); // Call the actual Pa11y test runner with // a timeout if it takes too long pa11yResults = await promiseTimeout( runPa11yTest(url, options, state), options.timeout, `Pa11y timed out (${options.timeout}ms)` ); } catch (error) { // Capture error if a callback is provided, otherwise reject with error if (callback) { pa11yError = error; } else { throw error; } } finally { await stateCleanup(state); } // Run callback if present, and resolve with pa11yResults return callback ? callback(pa11yError, pa11yResults) : pa11yResults; } /** * Parse arguments from the command-line to properly identify the url, options, and callback * @private * @param {String} url - The URL to run tests against. * @param {Object} [options={}] - Options to change the way tests run. * @param {Function} [callback] - An optional callback to use instead of promises. * @returns {Array} the new values of url, options, and callback */ function parseArguments(url, options, callback) { if (!callback && typeof options === 'function') { callback = options; options = {}; } if (typeof url !== 'string') { options = url; url = options.url; } url = sanitizeUrl(url); options = defaultOptions(options); return [url, options, callback]; } /** * Default the passed in options using Pa11y's defaults. * @private * @param {Object} [options] - The options to apply defaults to. * @returns {Object} Returns the defaulted options. */ function defaultOptions(options) { options = extend({}, pa11y.defaults, options); options.ignore = options.ignore.map(ignored => ignored.toLowerCase()); if (!options.includeNotices) { options.ignore.push('notice'); } if (!options.includeWarnings) { options.ignore.push('warning'); } return options; } /** * Internal Pa11y test runner. * @private * @param {String} url - The URL to run tests against. * @param {Object} options - Options to change the way tests run. * @param {Object} state - The current pa11y internal state, fields will be mutated by * this function. * @returns {Promise} Returns a promise which resolves with a results object. */ async function runPa11yTest(url, options, state) { options.log.info(`Running Pa11y on URL ${url}`); await setBrowser(options, state); await setPage(options, state); await interceptRequests(options, state); await gotoUrl(url, options, state); await runActionsList(options, state); await injectRunners(options, state); // Launch the test runner! options.log.debug('Running Pa11y on the page'); /* istanbul ignore next */ if (options.wait > 0) { options.log.debug(`Waiting for ${options.wait}ms`); } const results = await runPa11yWithOptions(options, state); options.log.debug(`Document title: "${results.documentTitle}"`); await saveScreenCapture(options, state); return results; } /** * Ensures that puppeteer resources are freed and listeners removed. * @private * @param {Object} state - The last-known state of the test-run. * @returns {Promise} A promise which resolves when resources are released */ async function stateCleanup(state) { if (state.browser && state.autoClose) { await state.browser.close(); } else if (state.page) { state.page.removeListener('request', state.requestInterceptCallback); state.page.removeListener('console', state.consoleCallback); if (state.autoClosePage) { await state.page.close(); } } } /** * Sets or initialises the browser. * @private * @param {Object} options - Options to change the way tests run. * @param {Object} state - The current pa11y internal state, fields will be mutated by * this function. * @returns {Promise} A promise which resolves when resources are released */ async function setBrowser(options, state) { if (options.browser) { options.log.debug( 'Using a pre-configured Headless Chrome instance, ' + 'the `chromeLaunchConfig` option will be ignored' ); state.browser = options.browser; state.autoClose = false; } else { // Launch a Headless Chrome browser. We use a // state object which is accessible from the // wrapping function options.log.debug('Launching Headless Chrome'); state.browser = await puppeteer.launch( options.chromeLaunchConfig ); state.autoClose = true; } } /** * Configures the browser page to be used for the test. * @private * @param {Object} [options] - Options to change the way tests run. * @param {Object} state - The current pa11y internal state, fields will be mutated by * this function. * @returns {Promise} A promise which resolves when the page has been configured. */ async function setPage(options, state) { if (options.browser && options.page) { state.page = options.page; state.autoClosePage = false; } else { state.page = await state.browser.newPage(); state.autoClosePage = true; } // Listen for console logs on the page so that we can // output them for debugging purposes state.consoleCallback = message => { options.log.debug(`Browser Console: ${message.text()}`); }; state.page.on('console', state.consoleCallback); options.log.debug('Opening URL in Headless Chrome'); if (options.userAgent) { await state.page.setUserAgent(options.userAgent); } await state.page.setViewport(options.viewport); } /** * Configures the browser page to intercept requests if necessary * @private * @param {Object} [options] - Options to change the way tests run. * @param {Object} state - The current pa11y internal state, fields will be mutated by * this function. * @returns {Promise} A promise which resolves immediately if no listeners are necessary * or after listener functions have been attached. */ async function interceptRequests(options, state) { // Avoid to use `page.setRequestInterception` when not necessary // because it occasionally stops page load: // https://github.com/GoogleChrome/puppeteer/issues/3111 // https://github.com/GoogleChrome/puppeteer/issues/3121 const shouldInterceptRequests = (options.headers && Object.keys(options.headers).length) || (options.method && options.method.toLowerCase() !== 'get') || options.postData; if (!shouldInterceptRequests) { return; } // Intercept page requests, we need to do this in order // to set the HTTP method or post data await state.page.setRequestInterception(true); // Intercept requests so we can set the HTTP method // and post data. We only want to make changes to the // first request that's handled, which is the request // for the page we're testing let interceptionHandled = false; state.requestInterceptCallback = interceptedRequest => { const overrides = {}; if (!interceptionHandled) { // Override the request method options.log.debug('Setting request method'); overrides.method = options.method; // Override the request headers (and include the user-agent) options.log.debug('Setting request headers'); overrides.headers = {}; for (const [key, value] of Object.entries(options.headers)) { overrides.headers[key.toLowerCase()] = value; } // Override the request POST data if present if (options.postData) { options.log.debug('Setting request POST data'); overrides.postData = options.postData; } interceptionHandled = true; } interceptedRequest.continue(overrides); }; state.page.on('request', state.requestInterceptCallback); } /** * Instructs the page to go to the provided url unless options.ignoreUrl is true * @private * @param {String} [url] - The URL of the page to be tested. * @param {Object} [options] - Options to change the way tests run. * @param {Object} state - The current pa11y internal state, fields will be mutated by * this function. * @returns {Promise} A promise which resolves when the page URL has been set */ async function gotoUrl(url, options, state) { // Navigate to the URL we're going to test if (!options.ignoreUrl) { await state.page.goto(url, { waitUntil: 'networkidle2', timeout: options.timeout }); } } /** * Carries out a synchronous list of actions in the page * @private * @param {Object} options - Options to change the way tests run. * @param {Object} state - The current pa11y internal state, fields will be mutated by * this function. * @returns {Promise} A promise which resolves when all actions have completed */ async function runActionsList(options, state) { if (options.actions.length) { options.log.info('Running actions'); for (const action of options.actions) { await runAction(state.browser, state.page, options, action); } options.log.info('Finished running actions'); } } /** * Loads the test runners and Pa11y client-side scripts if required * @private * @param {Object} options - Options to change the way tests run. * @param {Object} state - The current pa11y internal state, fields will be mutated by * this function. * @returns {Promise} A promise which resolves when all runners have been injected and evaluated */ async function injectRunners(options, state) { // We only load these files once on the first run of Pa11y as they don't // change between runs if (!runnerJavascriptPromises.pa11y) { runnerJavascriptPromises.pa11y = readFile(`${__dirname}/runner.js`, 'utf-8'); } for (const runner of options.runners) { if (!runnerJavascriptPromises[runner]) { options.log.debug(`Loading runner: ${runner}`); runnerJavascriptPromises[runner] = loadRunnerScript(runner); } } // Inject the test runners options.log.debug('Injecting Pa11y'); await state.page.evaluate(await runnerJavascriptPromises.pa11y); for (const runner of options.runners) { options.log.debug(`Injecting runner: ${runner}`); const script = await runnerJavascriptPromises[runner]; await state.page.evaluate(script); } } /** * Sends a request to the page to instruct the injected pa11y script to run with the * provided options * @private * @param {Object} options - Options to change the way tests run. * @param {Object} state - The current pa11y internal state, fields will be mutated by * this function. * @returns {Promise} A promise which resolves with the results of the pa11y evaluation */ function runPa11yWithOptions(options, state) { /* eslint-disable no-underscore-dangle */ return state.page.evaluate(runOptions => { return window.__pa11y.run(runOptions); }, { hideElements: options.hideElements, ignore: options.ignore, pa11yVersion: pkg.version, rootElement: options.rootElement, rules: options.rules, runners: options.runners, standard: options.standard, wait: options.wait }); /* eslint-enable no-underscore-dangle */ } /** * Generates a screen capture if required by the provided options * @private * @param {Object} options - Options to change the way tests run. * @param {Object} state - The current pa11y internal state, fields will be mutated by * this function. * @returns {Promise} A promise which resolves when the screenshot is complete */ async function saveScreenCapture(options, state) { // Generate a screen capture if (options.screenCapture) { options.log.info( `Capturing screen, saving to "${options.screenCapture}"` ); try { await state.page.screenshot({ path: options.screenCapture, fullPage: true }); } catch (error) { options.log.error(`Error capturing screen: ${error.message}`); } } } /** * Verify that passed in options are valid. * @private * @param {Object} options - The options to verify. * @returns {Undefined} Returns nothing. * @throws {Error} Throws if options are not valid. */ function verifyOptions(options) { if (!pa11y.allowedStandards.includes(options.standard)) { throw new Error(`Standard must be one of ${pa11y.allowedStandards.join(', ')}`); } if (options.page && !options.browser) { throw new Error('The page option must only be set alongside the browser option'); } if (options.ignoreUrl && !options.page) { throw new Error('The ignoreUrl option must only be set alongside the page option'); } } /** * Sanitize a URL, ensuring it has a scheme. If the URL begins with a slash or a period, * it will be resolved as a path against the current working directory. If the URL does * begin with a scheme, it will be prepended with "http://". * @private * @param {String} url - The URL to sanitize. * @returns {String} Returns the sanitized URL. */ function sanitizeUrl(url) { if (/^\//i.test(url)) { return `file://${url}`; } if (/^\./i.test(url)) { return `file://${path.resolve(process.cwd(), url)}`; } if (!/^(https?|file):\/\//i.test(url)) { return `http://${url}`; } return url; } /** * Load a Pa11y runner module. * @param {String} runner - The name of the runner. * @return {Object} Returns the required module. * TODO could this be refactored to use requireFirst (in bin/pa11y.js) */ function loadRunnerFile(runner) { try { return require(`pa11y-runner-${runner}`); } catch (error) {} return require(runner); } /** * Assert that a Pa11y runner is compatible with a version of Pa11y. * @param {String} runnerName - The name of the runner. * @param {String} runnerSupportString - The runner support string (a semver range). * @param {String} pa11yVersion - The version of Pa11y to test support for. * @throws {Error} Throws an error if the reporter does not support the given version of Pa11y * @returns {void} */ function assertReporterCompatibility(runnerName, runnerSupportString, pa11yVersion) { if (!runnerSupportString || !semver.satisfies(pa11yVersion, runnerSupportString)) { throw new Error([ `The installed "${runnerName}" runner does not support Pa11y ${pa11yVersion}`, 'Please update your version of Pa11y or the runner', `Reporter Support: ${runnerSupportString}`, `Pa11y Version: ${pa11yVersion}` ].join('\n')); } } /** * Loads a runner script * @param {String} runner - The name of the runner. * @throws {Error} Throws an error if the reporter does not support the given version of Pa11y * @returns {Promise<String>} Promise */ async function loadRunnerScript(runner) { const runnerModule = loadRunnerFile(runner); let runnerBundle = ''; assertReporterCompatibility(runner, runnerModule.supports, pkg.version); for (const runnerScript of runnerModule.scripts) { runnerBundle += '\n\n'; runnerBundle += await readFile(runnerScript, 'utf-8'); } return ` ;${runnerBundle}; ;window.__pa11y.runners['${runner}'] = ${runnerModule.run.toString()}; `; } /* istanbul ignore next */ const noop = () => { /* No-op */ }; /** * Default options (excluding 'level', 'reporter', and 'threshold' which are only * relevant when calling bin/pa11y from the CLI) * @public */ pa11y.defaults = { actions: [], browser: null, chromeLaunchConfig: { ignoreHTTPSErrors: true }, headers: {}, hideElements: null, ignore: [], ignoreUrl: false, includeNotices: false, includeWarnings: false, log: { debug: noop, error: noop, info: noop }, method: 'GET', postData: null, rootElement: null, rules: [], runners: [ 'htmlcs' ], screenCapture: null, standard: 'WCAG2AA', timeout: 30000, userAgent: `pa11y/${pkg.version}`, viewport: { width: 1280, height: 1024 }, wait: 0 }; /** * Allowed a11y standards. * @public */ pa11y.allowedStandards = [ 'Section508', 'WCAG2A', 'WCAG2AA', 'WCAG2AAA' ]; /** * Alias the `isValidAction` method */ pa11y.isValidAction = runAction.isValidAction;
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- Main Menu --> <string name="shows">節目</string> <string name="lists">清單</string> <string name="movies">電影</string> <string name="statistics">統計</string> <string name="navigation_more">More</string> <string name="search">搜尋</string> <string name="preferences">設置</string> <string name="help">說明</string> <string name="no_more_updates">此版本的 Android 將不會收到 SeriesGuide 的任何更新。</string> <!-- Media items --> <string name="show_details">Details</string> <string name="episode">集數</string> <string name="episode_number">第 %d 集</string> <string name="episodes">集數</string> <string name="season">季</string> <string name="season_number">第 %d 季</string> <string name="specialseason">特集</string> <string name="ratings">評分</string> <!-- Descriptions --> <string name="description_overview">簡介</string> <string name="description_poster">顯示海報</string> <string name="description_image">影集圖片</string> <string name="description_menu_overflow">更多選項</string> <!-- Actions --> <string name="clear">清除</string> <string name="discard">放棄</string> <string name="save_selection">儲存所選項目</string> <string name="action_display_all">顯示全部</string> <string name="web_search">網頁搜尋</string> <string name="add_to_homescreen">新增至主螢幕</string> <string name="action_open">開啟</string> <string name="sync_manually">手動同步</string> <string name="sync_and_update">同步 &amp; 和更新</string> <string name="sync_and_download_all">同步&amp; 及下載</string> <string name="action_turn_off">關閉</string> <string name="action_stream">Stream or purchase</string> <!-- Search --> <string name="clear_search_history">清除搜尋記錄</string> <string name="search_hint">搜尋集數</string> <!-- Status messages --> <string name="updated">已更新到最新版本。</string> <string name="updated_details">Details</string> <string name="norating">無</string> <string name="unknown">不明</string> <string name="offline">連接到網路,然後再試一次。</string> <string name="app_not_available">沒有應用程式可以處理此需求</string> <string name="people_empty">什麼東西都沒有? !點擊以在試一次。</string> <string name="database_error">無法修改資料。</string> <string name="reinstall_info">嘗試在設置中備份,然後重新安裝應用並恢復備份。</string> <string name="api_error_generic">無法移除節目%s。請稍後再試。</string> <string name="api_failed">失敗:%s</string> <string name="copy_to_clipboard">已複製至剪貼簿</string> <!-- Sharing --> <string name="share">分享</string> <string name="share_show">分享節目</string> <string name="share_episode">分享此集</string> <string name="share_movie">分享電影</string> <string name="addtocalendar">新增至行事曆</string> <string name="addtocalendar_failed">無法建立行事曆事件。</string> <string name="links">連結</string> <!-- Comments --> <string name="comments">評論</string> <string name="shout_hint">輸入評論(英語,五個字以上)</string> <string name="shout_invalid">你的評論不遵守規則 !</string> <string name="action_post">發布</string> <string name="isspoiler">警告爆雷</string> <string name="no_shouts">成為第一個留言者</string> <string name="refresh">重新整理</string> <plurals name="replies_plural"> <item quantity="other">%d 回覆</item> </plurals> <!-- Metadata --> <string name="episode_number_disk">DVD</string> <string name="episode_firstaired">播出日期</string> <string name="episode_firstaired_unknown">播出日期不明</string> <string name="episode_dvdnumber">DVD集數</string> <string name="original_release">原始版本</string> <string name="show_genres">戲劇類別</string> <string name="show_contentrating">節目分級</string> <string name="show_release_times">發布時間</string> <string name="episode_directors">導演</string> <string name="episode_gueststars">神秘嘉賓</string> <string name="episode_writers">編劇</string> <string name="show_isalive">待續</string> <string name="show_isnotalive">已完結</string> <string name="show_isUpcoming">即將播出</string> <string name="no_translation">%2$s沒有%1$s的翻譯說明。</string> <string name="no_translation_title">無翻譯</string> <string name="no_spoilers">一些細節已隱藏起來避免劇透,可前往設定關閉此功能。</string> <string name="format_source">來源:%s</string> <string name="format_last_edited">上次編輯於:%s</string> <!-- Date and Time --> <string name="today">今天</string> <string name="now">目前</string> <string name="daily">每日</string> <string name="runtime_minutes">%s 分鐘</string> <!-- Flagging --> <string name="mark_all">全部已觀看</string> <string name="unmark_all">全部未觀看</string> <string name="action_watched_up_to">Watched up to here</string> <string name="confirmation_watched_up_to">Set all episodes up to here watched?</string> <string name="collect_all">將所有影集標示為已蒐藏</string> <string name="uncollect_all">取消所有影集蒐藏標示</string> <string name="action_skip">略過</string> <string name="action_dont_skip">取消略過</string> <string name="action_collection_add">添加到收藏</string> <string name="action_collection_remove">從收藏移除</string> <string name="action_watched">設為已觀看</string> <string name="action_unwatched">設為尚未觀看</string> <string name="state_watched">已看過</string> <string name="state_watched_multiple_format" comment="Like watched, but includes the number of times in parentheses. Example: Watched (3)">Watched (%d)</string> <string name="state_skipped">Skipped</string> <string name="state_in_collection">In collection</string> <string name="state_on_watchlist">On watchlist</string> <string name="state_favorite">Favorite</string> <!-- Shows --> <string name="confirm_delete">確定要移除%s嗎?</string> <string name="delete_error">無法移除節目。請稍後再試。</string> <string name="delete_show">移除</string> <string name="no_nextepisode">找無下一集</string> <string name="context_favorite">加入最愛</string> <string name="context_unfavorite">自最愛移除</string> <string name="favorited">新增至我的最愛</string> <string name="unfavorited">從我的最愛中刪除</string> <string name="action_episode_notifications_on">開啟新劇集通知</string> <string name="action_episode_notifications_off">開啟新劇集通知</string> <string name="context_hide">隱藏</string> <string name="context_unhide">取消隱藏</string> <string name="hidden">隱藏影集</string> <string name="unhidden">取消隱藏影集</string> <string name="action_shows_add">增加影集</string> <string name="action_shows_filter">影集顯示條件</string> <string name="empty_filter">移除所有篩選</string> <string name="action_shows_filter_favorites">我的最愛</string> <string name="action_shows_filter_unwatched">尚未觀看</string> <string name="action_shows_filter_upcoming">即將播出</string> <string name="action_shows_filter_hidden">隱藏</string> <string name="action_shows_make_all_visible">Make all hidden visible</string> <string name="description_make_all_visible_format">Make all hidden shows (%s) visible again?</string> <string name="action_shows_sort">排序影集</string> <string name="action_shows_sort_title">依影集名稱</string> <string name="action_shows_sort_latest_episode">最新一集</string> <string name="action_shows_sort_oldest_episode">最舊一集</string> <string name="action_shows_sort_last_watched">上一次觀看</string> <string name="action_shows_sort_remaining">剩餘的集數</string> <string name="action_shows_sort_favorites">喜愛影集優先</string> <string name="context_updateshow">更新</string> <string name="context_marknext">觀看下一集</string> <string name="action_episodes_switch_view">Switch view</string> <!-- History --> <string name="user_stream">歴史紀錄</string> <string name="recently_watched">最近觀賞</string> <string name="friends_recently">trakt好友</string> <string name="now_empty">沒什麼特別地事情發生,看節目去吧!</string> <string name="now_movies_empty">沒什麼特別地事情發生,看電影去吧!</string> <string name="user_stream_empty">Trakt上沒有任何記錄,去看一些節目並打卡吧!</string> <string name="user_movie_stream_empty">Trakt上沒有任何記錄,去看一些電影並打卡吧!</string> <!-- Calendar --> <string name="upcoming">即將播出</string> <string name="recent">最近</string> <string name="released_today">今日播出</string> <string name="noupcoming">沒有即將播出的集數。</string> <string name="norecent">沒有最近的影集。</string> <string name="calendar_settings">Calendar settings</string> <string name="only_favorites">僅顯示喜愛影集</string> <string name="calendar_only_collected">Only collected episodes</string> <string name="calendar_only_premieres">Only premieres</string> <string name="pref_infinite_scrolling">萬年曆</string> <!-- Updating --> <string name="update_scheduled">更新中......</string> <string name="update_no_connection">如需更新,請連接網路</string> <string name="update_inprogress">更新正在進行中,請稍後再試</string> <!-- Seasons --> <string name="season_allwatched">已觀看所有集數</string> <plurals name="other_episodes_plural"> <item quantity="other">%d other episodes</item> </plurals> <plurals name="not_released_episodes_plural"> <item quantity="other">%d to be released</item> </plurals> <plurals name="remaining_episodes_plural"> <item quantity="other">剩餘 %d</item> </plurals> <!-- Add show --> <string name="checkin_searchhint">輸入節目名稱</string> <string name="add_empty">無此節目</string> <string name="no_results">查無結果,請嘗試完整單字。</string> <string name="empty_show_search">節目單中未找到</string> <string name="action_try_again">再試一次</string> <string name="tvdb_error_does_not_exist">TheTVDB 上不存在。稍後再試。</string> <string name="add_all">全部加入</string> <string name="add_multiple">所有節目將會顯示在你的清單中。</string> <string name="add_started">%s將會顯示在你的清單中。</string> <string name="add_error">無法新增%s</string> <string name="add_already_exists">%s已經在你的清單當中。</string> <string name="title_new_episodes">新劇集</string> <string name="watched_shows">已看過</string> <string name="shows_collection">收藏</string> <string name="watchlist">待看清單</string> <!-- Similar shows --> <string name="empty_no_results">無結果</string> <string name="title_similar_shows">類似節目</string> <!-- Lists --> <string name="first_list">第一個清單</string> <string name="list_add">新增清單</string> <string name="list_title_hint">命名您的清單</string> <string name="list_remove">移除清單</string> <string name="list_manage">管理清單</string> <string name="list_item_manage">管理清單</string> <string name="list_item_remove">從清單中移除</string> <string name="list_empty">你可以新增整個、一季或是一集節目到清單當中。</string> <string name="action_lists_sort">排序清單</string> <string name="action_lists_reorder">重新排序清單</string> <string name="error_name_already_exists">此名稱的清單已存在。</string> <!-- Movies --> <string name="title_discover">探索</string> <string name="title_popular">熱門</string> <string name="title_digital_releases">數位發行</string> <string name="title_disc_releases">碟片版本</string> <string name="movies_in_theatres">上映中</string> <string name="movies_collection">收藏</string> <string name="movies_watchlist">待看清單</string> <string name="movies_watched">已看過</string> <string name="watchlist_add">新增至待看清單</string> <string name="watchlist_remove">從待看清單中移除</string> <string name="watchlist_added">已增加至待看清單</string> <string name="watchlist_removed">已從待看清單中移除完成</string> <string name="movies_search_hint">輸入電影名稱</string> <string name="movies_collection_empty">你不能將電影加入收藏中。</string> <string name="movies_watchlist_empty">你不能將電影加入待看清單中。</string> <string name="trailer">預告</string> <string name="movie_cast">卡司</string> <string name="movie_crew">工作人員</string> <string name="action_movies_sort">電影排序</string> <string name="action_movies_sort_title">依影集名稱</string> <string name="action_movies_sort_release">播出日期</string> <!-- Statistics --> <string name="statistics_failed">無法統計資料。</string> <string name="statistics_shows">影集</string> <string name="statistics_episodes">集數</string> <string name="statistics_movies">電影</string> <string name="shows_with_next">%s 影集有新的集數</string> <string name="shows_continuing">%s部影集仍在連載</string> <string name="episodes_watched">%s 集已看</string> <string name="movies_on_watchlist">%s於待看清單中。</string> <string name="movies_watched_format">%s 集已看</string> <plurals name="days_plural"> <item quantity="other">%d 天</item> </plurals> <plurals name="hours_plural"> <item quantity="other">%d 小時</item> </plurals> <plurals name="minutes_plural"> <item quantity="other">%d 分鐘</item> </plurals> <!-- Features --> <string name="feature_supported">Supported</string> <string name="feature_not_supported">Not supported</string> <string name="feature_history">Personal and friend history</string> <string name="feature_comments">Post comments</string> <string name="feature_sync">Sync</string> <!-- Hexagon --> <string name="hexagon_warning">實驗性</string> <string name="hexagon_description">SeriesGuide Cloud helps to backup and sync your shows, lists and movies</string> <string name="hexagon_warning_trakt">While signed in with SeriesGuide Cloud some Trakt features are not available</string> <string name="hexagon_signin">登入</string> <string name="hexagon_signout">登出</string> <string name="hexagon_setup_incomplete">SeriesGuide Cloud未完成設置。</string> <string name="hexagon_setup_fail_auth">你的Google帳戶無法使用。</string> <string name="hexagon_remove_account">移除帳戶</string> <string name="hexagon_remove_account_success">帳戶已刪除。</string> <string name="hexagon_remove_account_failure">無法刪除帳戶。</string> <string name="hexagon_remove_account_confirmation">移除你的帳戶將會刪除SeriesGuide Cloud上所有節目與電影的紀錄。請確認其他裝置上的資料也一併刪除。</string> <string name="hexagon_api_queued">發送至SeriesGuide Cloud。</string> <string name="hexagon_signed_out">Signed out of SeriesGuide Cloud</string> <string name="hexagon_signin_fail_format">Error with Google Sign-In (%s)</string> <!-- trakt --> <string name="trakt_submitqueued">正發送至trakt。</string> <string name="checkin_success_trakt">在trakt上打卡%s</string> <string name="checkin_canceled_success_trakt">在trakt上取消打卡。</string> <string name="traktcheckin_cancel">覆蓋</string> <string name="traktcheckin_inprogress">你已經在其他影集或電影打卡過了,請覆蓋前一個打卡記錄或者等待%s後再試一次。</string> <string name="traktcheckin_wait">等待</string> <string name="trakt_success">已發送至trakt。</string> <string name="trakt_error_credentials">發生錯誤,請檢查您的trakt憑證並重試。</string> <string name="trakt_error_not_exists">Trakt還無法使用,稍後再試。</string> <string name="trakt_notice_not_exists">還不能使用trakt追蹤。</string> <!-- Connect trakt --> <string name="connect_trakt">連接 trakt</string> <string name="trakt_reconnect">連結SeriesGuide與trakt</string> <string name="trakt_reconnect_details">檢查您的 trakt 憑證</string> <string name="waitplease">請稍候&#8230;</string> <string name="connect">連接</string> <string name="disconnect">中斷連接</string> <string name="use_integrated_browser">使用內建瀏覽器</string> <string name="show_library">顯示您的 trakt 庫</string> <string name="about_trakt">trakt 幫助您追蹤及記錄正在看的電視節目和電影。<a href="HTTPs://trakt.tv"> 瞭解更多</a></string> <!-- trakt ratings --> <string name="action_rate">評分</string> <string name="your_rating">您的評分</string> <string name="love">太讚啦!</string> <string name="hate">太弱了:(</string> <string name="rating2">浪費人生</string> <string name="rating3">糟透了</string> <string name="rating4">雞助</string> <string name="rating5">嗯......</string> <string name="rating6">尚可</string> <string name="rating7">不錯</string> <string name="rating8">讚</string> <string name="rating9">好愛!!</string> <plurals name="votes"> <item quantity="other">%d 票</item> </plurals> <!-- Check Ins --> <string name="checkin">打卡</string> <string name="checkin_hint">輸入訊息(可忽略)</string> <string name="paste_title">貼上標題</string> <string name="pref_quick_checkin">快速打卡</string> <string name="pref_quick_checkin_summary">免輸入打卡訊息</string> <!-- Help --> <string name="feedback">傳送反饋意見</string> <string name="action_open_in_browser">於瀏覽器中開啟</string> <!-- Settings --> <string name="action_translate">Translate this app</string> <string name="action_contribute_content">Translate or improve content</string> <string name="prefs_category_advanced">進階</string> <string name="prefs_category_about">關於本軟體</string> <string name="pref_onlyfuture">無已播出集數</string> <string name="pref_onlyfuturesummary">不顯示已經播出劇集</string> <string name="pref_onlyseasoneps">隱藏特別節目</string> <string name="pref_onlyseasonepssummary">除了季清單外不要顯示特別節目</string> <string name="pref_exactdates">顯示確切日期</string> <string name="pref_exactdates_summary">\"10 月 31日\" 而不是 \"3天後\"</string> <string name="pref_nospoilers">避免劇透</string> <string name="pref_nospoilers_summary">隱藏詳細資訊直到看過一集</string> <string name="pref_seasonsorting">以&#8230;排序每一季</string> <string name="pref_episodesorting">以&#8230;排序每一集</string> <string name="pref_language">偏好的語言</string> <string name="pref_language_fallback">Alternative language</string> <string name="pref_updatewifionly">只有在使用Wi-Fi時載入圖片</string> <string name="pref_updatewifionlysummary">為了減少資料量,不要透過移動或計量網路下載</string> <string name="pref_error_reports">Report errors to app developer</string> <plurals name="days_before_plural"> <item quantity="other">%d days before</item> </plurals> <plurals name="hours_before_plural"> <item quantity="other">%d hours before</item> </plurals> <plurals name="minutes_before_plural"> <item quantity="other">%d minutes before</item> </plurals> <!-- About screen --> <string name="privacy_policy">Privacy Policy</string> <string name="licence_tvdb">此應用程式使用基於 CC BY-NC 4.0 許可的 TheTVDB 提供的資料和圖像。</string> <string name="licence_themoviedb">此應用程式使用 TMDb 的 API ,但未被 TMDb 認可或認證。</string> <string name="licence_trakt">This app uses data and images by Trakt.</string> <string name="about_open_source">SeriesGuide 是採用開放源碼軟體。</string> <string name="licences_and_credits">憑證及信用</string> <!-- Sort --> <string name="sort">排序方式</string> <string name="action_sort_ignore_articles">忽略文章</string> <!-- Sort orders --> <string name="sort_order_latest_first">按最新的項目排序</string> <string name="sort_order_oldest_first">按最舊的項目排序</string> <string name="sort_order_unwatched_first">先排未觀賞</string> <string name="sort_order_alphabetical">A - Z</string> <string name="sort_order_top_rated_first">最高評分</string> <string name="sort_order_latest_first_dvd">按最新的順序排序(DVD)</string> <string name="sort_order_oldest_first_dvd">按最舊的順序排序(DVD)</string> <!-- Upcoming thresholds --> <string name="pref_upcominglimit">即將撥出時間</string> <string name="upcoming_upto_now">目前</string> <string name="upcoming_upto_one_day">一天</string> <string name="upcoming_upto_three_days">三天</string> <string name="upcoming_upto_one_week">一星期</string> <string name="upcoming_upto_two_weeks">兩星期</string> <string name="upcoming_upto_one_month">一個月</string> <!-- Appearance settings --> <string name="pref_appearance">外觀</string> <string name="pref_theme">主題</string> <!-- Themes --> <string name="theme_app_follow_system">Use system default</string> <string name="theme_app_auto_battery">Set by Battery Saver</string> <string name="theme_app_dark">Dark</string> <string name="theme_app_light">Light</string> <!-- Other advanced settings --> <string name="pref_other">其他</string> <string name="pref_autoupdatesummary">自動同步和更新 SeriesGuide 資料</string> <string name="backup">備份/還原</string> <string name="backup_summary">備份或還原你的影集</string> <string name="pref_number">數字格式</string> <string name="pref_offset">手動時間換算</string> <string name="pref_offsetsummary">%d 小時的時差</string> <string name="clear_cache">清除圖片暫存檔</string> <string name="clear_cache_summary">從您的設備中刪除所有暫存的圖片</string> <!-- Backup and Restore --> <string name="backup_full_dump">Include descriptions, details, ratings</string> <string name="backup_failed_file_access">無法備份。找不到或無法存取備份檔案。</string> <string name="backup_success">備份成功。</string> <string name="backup_failed">備份失敗。</string> <string name="import_failed_nosd">無法還原備份。備份資料夾無法使用。</string> <string name="import_failed_nofile">沒有可讀的備份檔案。</string> <string name="import_success">已成功還原備份。</string> <string name="import_failed">還原備份檔失敗。</string> <string name="backup_button">備份</string> <string name="import_button">還原</string> <string name="import_warning">我明白我目前的節目,及其他清單和電影將會被取代 !</string> <string name="no_file_selected">沒有選擇檔案</string> <string name="action_select_file">選擇檔案</string> <!-- Auto backup --> <string name="pref_autobackup">自動備份</string> <string name="pref_autobackupsummary">每週備份你的節目,清單和電影</string> <string name="autobackup_details">These backups are unavailable if the app is installed again unless app data backup is turned on for this device (Android 6+). Create copies to preserve them otherwise.</string> <string name="last_auto_backup">剩餘自動備份︰ %s</string> <string name="restore_auto_backup">還原自動備份</string> <string name="autobackup_failed">The last auto backup has failed</string> <string name="autobackup_files_missing">為了備份,請選擇一可用備份資料夾。</string> <string name="autobackup_create_user_copy">Create a copy after each backup</string> <string name="autobackup_restore_available">An auto backup might be available to restore from.</string> <!-- Welcome dialog --> <string name="get_started">開始</string> <string name="dismiss">解除</string> <!-- Notifications --> <string name="upcoming_show">%s 就要來了</string> <string name="upcoming_episodes">新的集數來了</string> <string name="upcoming_episodes_number">%s新集數</string> <string name="more">%d 更多</string> <string name="upcoming_display">選擇以顯示即將撥出的節目</string> <string name="pref_notifications">提示信息</string> <string name="pref_notificationssummary">當有新的集數時進行通知</string> <string name="pref_ringtone">提示音</string> <string name="pref_vibrate">震動</string> <string name="pref_vibratesummary">顯示通知的同時震動</string> <string name="pref_notifications_treshold">何時通知</string> <string name="pref_notifications_select_shows">Select shows</string> <string name="pref_notifications_select_shows_summary">Shows that have notifications enabled (%d)</string> <string name="pref_notifications_hidden">Ignore hidden shows</string> <string name="pref_notifications_hidden_summary">即使已啟用通知,也不要通知已隱藏節目</string> <string name="pref_notification_channel_errors">錯誤</string> <string name="pref_notifications_next_episodes_only">Only for episodes to watch next</string> <string name="pref_notifications_next_episodes_only_summary">Only notify if the new episode is the next one to watch</string> <string name="pref_notifications_battery_settings">Battery settings</string> <string name="pref_notifications_battery_settings_summary">Go to Battery settings to disable battery optimizations for reliable notifications</string> <!-- List Widget --> <string name="hide_watched">隱藏已看過集數</string> <string name="pref_widget_opacity">小工具背景</string> <string name="pref_widget_type">小工具類型</string> <string name="pref_large_font">使用大的字型</string> <!-- Widget background options --> <string name="widget_background_transparent">透明度</string> <string name="widget_background_25">25%</string> <string name="widget_background_50">50%</string> <string name="widget_background_75">75%</string> <string name="widget_background_opaque">透明度</string> <!-- Google In-App Billing --> <string name="onlyx">僅供贊助者</string> <string name="action_upgrade">解鎖所有功能</string> <string name="billing_action_subscribe">訂閱</string> <string name="billing_action_manage_subscriptions">管理訂閱</string> <string name="billing_action_pass">取得 X Pass</string> <string name="billing_price_subscribe">每年%1$s,免費試用,可在%2$s 內隨時取消。</string> <string name="billing_duration_format">%1$s / 年</string> <string name="billing_sub_description">Try 30 days for free, cancel any time.</string> <string name="billing_price_pass">一次購買</string> <string name="upgrade_description">Every subscription unlocks all features and supports future updates. A subscription is not required to use this app.</string> <string name="upgrade_success">謝謝贊助SeriesGuide !您可以使用的所有功能。</string> <string name="billing_learn_more">More info and help</string> <string name="subscription_expired">訂閱已過期</string> <string name="subscription_expired_details">您的 SeriesGuide 訂閱已過期。</string> <!-- Amazon In-App Billing --> <string name="subscription_not_signed_in">登錄到你的Amazon帳戶 !</string> <string name="subscription_unavailable">目前不可訂閱。</string> <string name="subscription_failed">未完成購買。</string> <string name="pass_unavailable">X Pass目前無法使用。</string> <!-- Extensions --> <string name="action_extensions_configure">客製化擴充套件</string> <string name="action_extensions_add">新增擴充套件</string> <string name="action_extensions_search">取得更多擴充套件</string> <string name="action_extension_remove">移除</string> <string name="extension_amazon">Amazon搜索</string> <string name="description_extension_amazon">搜索您當地的Amazon網站</string> <string name="pref_amazon_domain">Amazon網站</string> <string name="extension_google_play">Google Play 搜尋</string> <string name="description_extension_google_play">搜尋 Google Play 商店</string> <string name="extension_youtube">YouTube 上搜尋</string> <string name="description_extension_youtube">搜尋 YouTube 視頻</string> <string name="description_extension_web_search">搜尋網站和圖像</string> <!-- People --> <string name="person_biography">個人簡介</string> <!-- Feedback --> <string name="feedback_question_enjoy">你喜歡 SeriesGuide 嗎?</string> <string name="feedback_action_yes">是的!</string> <string name="feedback_action_notreally">不太喜歡</string> <string name="feedback_question_rate_google">到Google play上評分?</string> <string name="feedback_question_rate_amazon">到Amazon上評分?</string> <string name="feedback_question_feedback">告訴我如何改善它呢?</string> <string name="feedback_action_ok">好的</string> <string name="feedback_action_nothanks">不了,謝謝</string> </resources>
{ "pile_set_name": "Github" }
Vue.component('dropdown', { template: '#tmpl-dropdown', props: { id: { type: String, }, visible: { type: Boolean, default: false, }, items: { type: Array, default: [], }, classes: { type: Array, default: () => [], }, }, methods: { clicked: function(item) { if (item.click && !item.disabled) { item.click(); } if (!item.preventClose) { closeDropdown(); } }, }, }); let openedDropdown; let clickHndl = function(event) { if (!openedDropdown) { return; } var element = event.target; while (element) { if (element === openedDropdown) { return; } element = element.parentElement; } // Click outside the dropdown, close it closeDropdown(); }; function closeDropdown() { if (!openedDropdown) { return; } document.removeEventListener('click', clickHndl); if (openedDropdown.className.indexOf('hidden') < 0) { openedDropdown.className = (openedDropdown.className + ' hidden').trim(); } openedDropdown = undefined; } function openDropdown(element) { element = parseElement(element); if (!element) { console.error('Invalid dropdown element'); return; } event.stopPropagation(); closeDropdown(); if (getComputedStyle(element.parentElement).position === 'relative') { // Position the dropdown relatively to the parent element.style.left = (window.event.clientX - element.parentElement.offsetLeft + element.parentElement.scrollLeft) + 'px'; element.style.top = (window.event.clientY - element.parentElement.offsetTop + element.parentElement.scrollTop) + 'px'; } else { // Position the dropdown absolutely on the window element.style.left = (window.event.clientX + window.scrollX) + 'px'; element.style.top = (window.event.clientY + window.scrollY) + 'px'; } document.addEventListener('click', clickHndl); element.className = element.className.split(' ').filter(c => c !== 'hidden').join(' '); openedDropdown = element; const maxLeft = Math.min(window.innerWidth, element.parentElement.clientWidth) + element.parentElement.scrollLeft; const maxTop = Math.min(window.innerHeight, element.parentElement.clientHeight) + element.parentElement.scrollTop; if (element.parentElement.offsetLeft + element.offsetLeft + parseFloat(getComputedStyle(element).width) >= maxLeft) { if (parseFloat(element.style.left) - parseFloat(getComputedStyle(element).width) >= 0) { element.style.left = (parseFloat(element.style.left) - parseFloat(getComputedStyle(element).width)) + 'px'; } } if (element.parentElement.offsetTop + element.offsetTop + parseFloat(getComputedStyle(element).height) >= maxTop) { if (parseFloat(element.style.top) - parseFloat(getComputedStyle(element).height) >= 0) { element.style.top = (parseFloat(element.style.top) - parseFloat(getComputedStyle(element).height)) + 'px'; } } if (parseFloat(element.style.left) < 0) { element.style.left = 0; } if (parseFloat(element.style.top) < 0) { element.style.top = 0; } }
{ "pile_set_name": "Github" }
const express = require('express') const router = express() const { createWebAPIRequest } = require('../util/util') router.get('/', (req, res) => { const cookie = req.get('Cookie') ? req.get('Cookie') : '' const data = { mvid: req.query.mvid } createWebAPIRequest( 'music.163.com', '/weapi/discovery/simiMV', 'POST', data, cookie, music_req => res.send(music_req), err => res.status(502).send('fetch error') ) }) module.exports = router
{ "pile_set_name": "Github" }
defmodule Absinthe.Execution.SubscriptionTest do use Absinthe.Case import ExUnit.CaptureLog defmodule PubSub do @behaviour Absinthe.Subscription.Pubsub def start_link() do Registry.start_link(keys: :unique, name: __MODULE__) end def node_name() do node() end def subscribe(topic) do Registry.register(__MODULE__, topic, []) :ok end def publish_subscription(topic, data) do message = %{ topic: topic, event: "subscription:data", result: data } Registry.dispatch(__MODULE__, topic, fn entries -> for {pid, _} <- entries, do: send(pid, {:broadcast, message}) end) end def publish_mutation(_proxy_topic, _mutation_result, _subscribed_fields) do # this pubsub is local and doesn't support clusters :ok end end defmodule Schema do use Absinthe.Schema query do # Query type must exist end object :user do field :id, :id field :name, :string field :group, :group do resolve fn user, _, %{context: %{test_pid: pid}} -> batch({__MODULE__, :batch_get_group, pid}, nil, fn _results -> {:ok, user.group} end) end end end object :group do field :name, :string end def batch_get_group(test_pid, _) do # send a message to the test process every time we access this function. # if batching is working properly, it should only happen once. send(test_pid, :batch_get_group) %{} end subscription do field :raises, :string do config fn _, _ -> {:ok, topic: "*"} end resolve fn _, _, _ -> raise "boom" end end field :user, :user do arg :id, :id config fn args, _ -> {:ok, topic: args[:id] || "*"} end trigger :update_user, topic: fn user -> [user.id, "*"] end end field :thing, :string do arg :client_id, non_null(:id) config fn _args, %{context: %{authorized: false}} -> {:error, "unauthorized"} args, _ -> { :ok, topic: args.client_id } end end field :multiple_topics, :string do config fn _, _ -> {:ok, topic: ["topic_1", "topic_2", "topic_3"]} end end field :other_user, :user do arg :id, :id config fn args, %{context: %{context_id: context_id, document_id: document_id}} -> {:ok, topic: args[:id] || "*", context_id: context_id, document_id: document_id} args, %{context: %{context_id: context_id}} -> {:ok, topic: args[:id] || "*", context_id: context_id} end end field :relies_on_document, :string do config fn _, %{document: %Absinthe.Blueprint{} = document} -> %{type: :subscription, name: op_name} = Absinthe.Blueprint.current_operation(document) {:ok, topic: "*", context_id: "*", document_id: op_name} end end end mutation do field :update_user, :user do arg :id, non_null(:id) resolve fn _, %{id: id}, _ -> {:ok, %{id: id, name: "foo"}} end end end end setup_all do {:ok, _} = PubSub.start_link() {:ok, _} = Absinthe.Subscription.start_link(PubSub) :ok end @query """ subscription ($clientId: ID!) { thing(clientId: $clientId) } """ test "can subscribe the current process" do client_id = "abc" assert {:ok, %{"subscribed" => topic}} = run_subscription( @query, Schema, variables: %{"clientId" => client_id}, context: %{pubsub: PubSub} ) Absinthe.Subscription.publish(PubSub, "foo", thing: client_id) assert_receive({:broadcast, msg}) assert %{ event: "subscription:data", result: %{data: %{"thing" => "foo"}}, topic: topic } == msg end @query """ subscription ($clientId: ID!) { thing(clientId: $clientId) } """ test "can unsubscribe the current process" do client_id = "abc" assert {:ok, %{"subscribed" => topic}} = run_subscription( @query, Schema, variables: %{"clientId" => client_id}, context: %{pubsub: PubSub} ) Absinthe.Subscription.unsubscribe(PubSub, topic) Absinthe.Subscription.publish(PubSub, "foo", thing: client_id) refute_receive({:broadcast, _}) end @query """ subscription { multipleTopics } """ test "schema can provide multiple topics to subscribe to" do assert {:ok, %{"subscribed" => topic}} = run_subscription( @query, Schema, variables: %{}, context: %{pubsub: PubSub} ) msg = %{ event: "subscription:data", result: %{data: %{"multipleTopics" => "foo"}}, topic: topic } Absinthe.Subscription.publish(PubSub, "foo", multiple_topics: "topic_1") assert_receive({:broadcast, ^msg}) Absinthe.Subscription.publish(PubSub, "foo", multiple_topics: "topic_2") assert_receive({:broadcast, ^msg}) Absinthe.Subscription.publish(PubSub, "foo", multiple_topics: "topic_3") assert_receive({:broadcast, ^msg}) end @query """ subscription { multipleTopics } """ test "unsubscription works when multiple topics are provided" do assert {:ok, %{"subscribed" => topic}} = run_subscription( @query, Schema, variables: %{}, context: %{pubsub: PubSub} ) Absinthe.Subscription.unsubscribe(PubSub, topic) Absinthe.Subscription.publish(PubSub, "foo", multiple_topics: "topic_1") refute_receive({:broadcast, _}) Absinthe.Subscription.publish(PubSub, "foo", multiple_topics: "topic_2") refute_receive({:broadcast, _}) Absinthe.Subscription.publish(PubSub, "foo", multiple_topics: "topic_3") refute_receive({:broadcast, _}) end @query """ subscription ($clientId: ID!) { thing(clientId: $clientId, extra: 1) } """ test "can return errors properly" do assert { :ok, %{ errors: [ %{ locations: [%{column: 30, line: 2}], message: "Unknown argument \"extra\" on field \"thing\" of type \"RootSubscriptionType\"." } ] } } == run_subscription(@query, Schema, variables: %{"clientId" => "abc"}, context: %{pubsub: PubSub} ) end @query """ subscription ($userId: ID!) { user(id: $userId) { id name } } """ test "subscription triggers work" do id = "1" assert {:ok, %{"subscribed" => topic}} = run_subscription( @query, Schema, variables: %{"userId" => id}, context: %{pubsub: PubSub} ) mutation = """ mutation ($userId: ID!) { updateUser(id: $userId) { id name } } """ assert {:ok, %{data: _}} = run_subscription(mutation, Schema, variables: %{"userId" => id}, context: %{pubsub: PubSub} ) assert_receive({:broadcast, msg}) assert %{ event: "subscription:data", result: %{data: %{"user" => %{"id" => "1", "name" => "foo"}}}, topic: topic } == msg end @query """ subscription ($clientId: ID!) { thing(clientId: $clientId) } """ test "can return an error tuple from the topic function" do assert {:ok, %{errors: [%{locations: [%{column: 3, line: 2}], message: "unauthorized"}]}} == run_subscription( @query, Schema, variables: %{"clientId" => "abc"}, context: %{pubsub: PubSub, authorized: false} ) end @query """ subscription Example { reliesOnDocument } """ test "topic function receives a document" do assert {:ok, %{"subscribed" => _topic}} = run_subscription(@query, Schema, context: %{pubsub: PubSub}) end @query """ subscription ($clientId: ID!) { thing(clientId: $clientId) } """ test "stringifies topics" do assert {:ok, %{"subscribed" => topic}} = run_subscription(@query, Schema, variables: %{"clientId" => "1"}, context: %{pubsub: PubSub} ) Absinthe.Subscription.publish(PubSub, "foo", thing: 1) assert_receive({:broadcast, msg}) assert %{ event: "subscription:data", result: %{data: %{"thing" => "foo"}}, topic: topic } == msg end test "isn't tripped up if one of the subscription docs raises" do assert {:ok, %{"subscribed" => _}} = run_subscription("subscription { raises }", Schema) assert {:ok, %{"subscribed" => topic}} = run_subscription("subscription { thing(clientId: \"*\")}", Schema) error_log = capture_log(fn -> Absinthe.Subscription.publish(PubSub, "foo", raises: "*", thing: "*") assert_receive({:broadcast, msg}) assert %{ event: "subscription:data", result: %{data: %{"thing" => "foo"}}, topic: topic } == msg end) assert String.contains?(error_log, "boom") end @tag :pending test "different subscription docs are batched together" do opts = [context: %{test_pid: self()}] assert {:ok, %{"subscribed" => doc1}} = run_subscription("subscription { user { group { name } id} }", Schema, opts) # different docs required for test, otherwise they get deduplicated from the start assert {:ok, %{"subscribed" => doc2}} = run_subscription("subscription { user { group { name } id name} }", Schema, opts) user = %{id: "1", name: "Alicia", group: %{name: "Elixir Users"}} Absinthe.Subscription.publish(PubSub, user, user: ["*", user.id]) assert_receive({:broadcast, %{topic: ^doc1, result: %{data: _}}}) assert_receive({:broadcast, %{topic: ^doc2, result: %{data: %{"user" => user}}}}) assert user["group"]["name"] == "Elixir Users" # we should get this just once due to batching assert_receive(:batch_get_group) refute_receive(:batch_get_group) end test "subscription docs with different contexts don't leak context" do ctx1 = %{test_pid: self(), user: 1} assert {:ok, %{"subscribed" => doc1}} = run_subscription("subscription { user { group { name } id} }", Schema, context: ctx1) ctx2 = %{test_pid: self(), user: 2} # different docs required for test, otherwise they get deduplicated from the start assert {:ok, %{"subscribed" => doc2}} = run_subscription("subscription { user { group { name } id name} }", Schema, context: ctx2 ) user = %{id: "1", name: "Alicia", group: %{name: "Elixir Users"}} Absinthe.Subscription.publish(PubSub, user, user: ["*", user.id]) assert_receive({:broadcast, %{topic: ^doc1, result: %{data: _}}}) assert_receive({:broadcast, %{topic: ^doc2, result: %{data: %{"user" => user}}}}) assert user["group"]["name"] == "Elixir Users" # we should get this twice since the different contexts prevent batching. assert_receive(:batch_get_group) assert_receive(:batch_get_group) end describe "subscription_ids" do @query """ subscription { otherUser { id } } """ test "subscriptions with the same context_id and same source document have the same subscription_id" do assert {:ok, %{"subscribed" => doc1}} = run_subscription(@query, Schema, context: %{context_id: "logged-in"}) assert {:ok, %{"subscribed" => doc2}} = run_subscription(@query, Schema, context: %{context_id: "logged-in"}) assert doc1 == doc2 end @query """ subscription { otherUser { id } } """ test "subscriptions with different context_id but the same source document have different subscription_ids" do assert {:ok, %{"subscribed" => doc1}} = run_subscription(@query, Schema, context: %{context_id: "logged-in"}) assert {:ok, %{"subscribed" => doc2}} = run_subscription(@query, Schema, context: %{context_id: "not-logged-in"}) assert doc1 != doc2 end test "subscriptions with same context_id but different source document have different subscription_ids" do assert {:ok, %{"subscribed" => doc1}} = run_subscription("subscription { otherUser { id name } }", Schema, context: %{context_id: "logged-in"} ) assert {:ok, %{"subscribed" => doc2}} = run_subscription("subscription { otherUser { id } }", Schema, context: %{context_id: "logged-in"} ) assert doc1 != doc2 end test "subscriptions with different context_id and different source document have different subscription_ids" do assert {:ok, %{"subscribed" => doc1}} = run_subscription("subscription { otherUser { id name } }", Schema, context: %{context_id: "logged-in"} ) assert {:ok, %{"subscribed" => doc2}} = run_subscription("subscription { otherUser { id } }", Schema, context: %{context_id: "not-logged-in"} ) assert doc1 != doc2 end @query """ subscription($id: ID!) { otherUser(id: $id) { id } } """ test "subscriptions with the same variables & document have the same subscription_ids" do assert {:ok, %{"subscribed" => doc1}} = run_subscription(@query, Schema, variables: %{"id" => "123"}, context: %{context_id: "logged-in"} ) assert {:ok, %{"subscribed" => doc2}} = run_subscription(@query, Schema, variables: %{"id" => "123"}, context: %{context_id: "logged-in"} ) assert doc1 == doc2 end @query """ subscription($id: ID!) { otherUser(id: $id) { id } } """ test "subscriptions with different variables but same document have different subscription_ids" do assert {:ok, %{"subscribed" => doc1}} = run_subscription(@query, Schema, variables: %{"id" => "123"}, context: %{context_id: "logged-in"} ) assert {:ok, %{"subscribed" => doc2}} = run_subscription(@query, Schema, variables: %{"id" => "456"}, context: %{context_id: "logged-in"} ) assert doc1 != doc2 end test "document_id can be provided to override the default logic for deriving document_id" do assert {:ok, %{"subscribed" => doc1}} = run_subscription("subscription { otherUser { id name } }", Schema, context: %{context_id: "logged-in", document_id: "abcdef"} ) assert {:ok, %{"subscribed" => doc2}} = run_subscription("subscription { otherUser { name id } }", Schema, context: %{context_id: "logged-in", document_id: "abcdef"} ) assert doc1 == doc2 end end @query """ subscription ($clientId: ID!) { thing(clientId: $clientId) } """ test "subscription executes telemetry events", context do client_id = "abc" :telemetry.attach_many( context.test, [ [:absinthe, :execute, :operation, :start], [:absinthe, :execute, :operation, :stop], [:absinthe, :subscription, :publish, :start], [:absinthe, :subscription, :publish, :stop] ], fn event, measurements, metadata, config -> send(self(), {event, measurements, metadata, config}) end, %{} ) assert {:ok, %{"subscribed" => topic}} = run_subscription( @query, Schema, variables: %{"clientId" => client_id}, context: %{pubsub: PubSub} ) assert_receive {[:absinthe, :execute, :operation, :start], measurements, %{id: id}, _config} assert System.convert_time_unit(measurements[:system_time], :native, :millisecond) assert_receive {[:absinthe, :execute, :operation, :stop], _, %{id: ^id}, _config} Absinthe.Subscription.publish(PubSub, "foo", thing: client_id) assert_receive({:broadcast, msg}) assert %{ event: "subscription:data", result: %{data: %{"thing" => "foo"}}, topic: topic } == msg # Subscription events assert_receive {[:absinthe, :subscription, :publish, :start], _, %{id: id}, _config} assert_receive {[:absinthe, :subscription, :publish, :stop], _, %{id: ^id}, _config} :telemetry.detach(context.test) end defp run_subscription(query, schema, opts \\ []) do opts = Keyword.update(opts, :context, %{pubsub: PubSub}, &Map.put(&1, :pubsub, PubSub)) case run(query, schema, opts) do {:ok, %{"subscribed" => topic}} = val -> PubSub.subscribe(topic) val val -> val end end end
{ "pile_set_name": "Github" }
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'test_aslr_default', 'type': 'executable', 'msvs_settings': { }, 'sources': ['hello.cc'], }, { 'target_name': 'test_aslr_no', 'type': 'executable', 'msvs_settings': { 'VCLinkerTool': { 'RandomizedBaseAddress': '1', }, }, 'sources': ['hello.cc'], }, { 'target_name': 'test_aslr_yes', 'type': 'executable', 'msvs_settings': { 'VCLinkerTool': { 'RandomizedBaseAddress': '2', } }, 'sources': ['hello.cc'], }, ] }
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0) on Thu Jan 05 01:03:22 EST 2017 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>StaxServerConfiguration (appsensor-parent 2.3.1 API)</title> <meta name="date" content="2017-01-05"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="StaxServerConfiguration (appsensor-parent 2.3.1 API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">org.owasp.appsensor.configuration.stax.server</div> <h2 title="Class StaxServerConfiguration" class="title">Class StaxServerConfiguration</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> <li> <ul class="inheritance"> <li><a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html" title="class in org.owasp.appsensor.core.configuration.server">org.owasp.appsensor.core.configuration.server.ServerConfiguration</a></li> <li> <ul class="inheritance"> <li>org.owasp.appsensor.configuration.stax.server.StaxServerConfiguration</li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>@Named public class <span class="typeNameLabel">StaxServerConfiguration</span> extends <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html" title="class in org.owasp.appsensor.core.configuration.server">ServerConfiguration</a></pre> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/owasp/appsensor/configuration/stax/server/StaxServerConfiguration.html#StaxServerConfiguration--">StaxServerConfiguration</a></span>()</code></td> </tr> <tr class="rowColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/owasp/appsensor/configuration/stax/server/StaxServerConfiguration.html#StaxServerConfiguration-boolean-">StaxServerConfiguration</a></span>(boolean&nbsp;loadConfiguration)</code></td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.org.owasp.appsensor.core.configuration.server.ServerConfiguration"> <!-- --> </a> <h3>Methods inherited from class&nbsp;org.owasp.appsensor.core.configuration.server.<a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html" title="class in org.owasp.appsensor.core.configuration.server">ServerConfiguration</a></h3> <code><a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#equals-java.lang.Object-">equals</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#findClientApplication-java.lang.String-">findClientApplication</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#findDetectionPoints-org.owasp.appsensor.core.DetectionPoint-">findDetectionPoints</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#findDetectionPoints-org.owasp.appsensor.core.DetectionPoint-java.lang.String-">findDetectionPoints</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getClientApplicationIdentificationHeaderName--">getClientApplicationIdentificationHeaderName</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getClientApplications--">getClientApplications</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getConfigurationFile--">getConfigurationFile</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getCorrelationSets--">getCorrelationSets</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getCustomDetectionPoints--">getCustomDetectionPoints</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getDetectionPoints--">getDetectionPoints</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getGeolocationDatabasePath--">getGeolocationDatabasePath</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getRelatedDetectionSystems-org.owasp.appsensor.core.DetectionSystem-">getRelatedDetectionSystems</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getServerHostName--">getServerHostName</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getServerPort--">getServerPort</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#getServerSocketTimeout--">getServerSocketTimeout</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#hashCode--">hashCode</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#isGeolocateIpAddresses--">isGeolocateIpAddresses</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setClientApplicationIdentificationHeaderName-java.lang.String-">setClientApplicationIdentificationHeaderName</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setClientApplications-java.util.Collection-">setClientApplications</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setConfigurationFile-java.io.File-">setConfigurationFile</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setCorrelationSets-java.util.Collection-">setCorrelationSets</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setCustomDetectionPoints-java.util.HashMap-">setCustomDetectionPoints</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setDetectionPoints-java.util.Collection-">setDetectionPoints</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setGeolocateIpAddresses-boolean-">setGeolocateIpAddresses</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setGeolocationDatabasePath-java.lang.String-">setGeolocationDatabasePath</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setServerHostName-java.lang.String-">setServerHostName</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setServerPort-int-">setServerPort</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#setServerSocketTimeout-int-">setServerSocketTimeout</a>, <a href="../../../../../../org/owasp/appsensor/core/configuration/server/ServerConfiguration.html#toString--">toString</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="StaxServerConfiguration--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>StaxServerConfiguration</h4> <pre>public&nbsp;StaxServerConfiguration()</pre> </li> </ul> <a name="StaxServerConfiguration-boolean-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>StaxServerConfiguration</h4> <pre>public&nbsp;StaxServerConfiguration(boolean&nbsp;loadConfiguration)</pre> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <p class="legalCopy"><small>Copyright &#169; 2017 <a href="http://www.owasp.org">The Open Web Application Security Project (OWASP)</a>. All rights reserved.</small></p> </body> </html>
{ "pile_set_name": "Github" }
fileFormatVersion: 2 guid: 8b83134143223104c9bc3865a565cab3 PrefabImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
{ "pile_set_name": "Github" }
<header class="header-wrapper"> <nav class="inner"> <div class="title"> <a href="/"> <img class="logo" src="<%- url_for(theme.profile.logo) %>" /> </a> </div> <ul class="menu"> <% for (var i in theme.menu){ %> <% if ( i == 'search' ){%> <li class="item"> <a class="link" id="menu-search"> <i class="iconfont icon-<%-i %>" /> </a> </l> <% } else {%> <li class="item"> <a class="link" id="menu-<%-i%>" href="<%- url_for(theme.menu[i]) %>"> <i class="iconfont icon-<%-i %>" /> </a> </li> <% } %> <% } %> </ul> </nav> </header> <header class="mobile-header-wrapper"> <i id="mobile-toggle" class="iconfont icon-menu mobile-toggle"></i> </header>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:id="@+id/tv_item" android:layout_width="wrap_content" android:layout_height="60px" android:layout_margin="18px" android:gravity="center" android:paddingLeft="20px" android:paddingRight="20px" android:text="热词" android:textColor="@color/text1" android:background="@drawable/shape_tag_nor" /> </LinearLayout>
{ "pile_set_name": "Github" }
console.log (Object.prototype.toString.call([].__proto__)); console.log (Object.prototype.toString.call([].__proto__.__proto__)); console.log (Object.prototype.toString.call([].__proto__.__proto__.__proto__));
{ "pile_set_name": "Github" }
# coding=utf-8 """Python Arlo setup script.""" from setuptools import setup def readme(): with open('README.md') as desc: return desc.read() setup( name='arlo', py_modules=['arlo', 'request', 'eventstream'], version='1.2.35', description='Python Arlo is a library written in Python 2.7/3x ' + 'which exposes the Netgear Arlo cameras via the apis that are consumed by their website.', long_description=readme(), long_description_content_type='text/markdown', author='Jeffrey D. Walter', author_email='jeffreydwalter@gmail.com', url='https://github.com/jeffreydwalter/arlo', license='Apache Software License', include_package_data=True, install_requires=['monotonic', 'requests', 'sseclient==0.0.22', 'PySocks'], keywords=[ 'arlo', 'camera', 'home automation', 'netgear', 'python', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Other Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Topic :: Software Development :: Libraries :: Python Modules' ], )
{ "pile_set_name": "Github" }
import _plotly_utils.basevalidators class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): def __init__(self, plotly_name="xaxis", parent_name="histogram2d", **kwargs): super(XaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), role=kwargs.pop("role", "info"), **kwargs )
{ "pile_set_name": "Github" }
/* http://www.positioniseverything.net/easyclearing.html */ #djDebug .djdt-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } #djDebug .djdt-clearfix {display: inline-block;} /* Hides from IE-mac \*/ #djDebug .djdt-clearfix {display: block;} * html #djDebug .djdt-clearfix {height: 1%;} /* end hide from IE-mac */ /* Debug Toolbar CSS Reset, adapted from Eric Meyer's CSS Reset */ #djDebug {color:#000;background:#FFF;} #djDebug, #djDebug div, #djDebug span, #djDebug applet, #djDebug object, #djDebug iframe, #djDebug h1, #djDebug h2, #djDebug h3, #djDebug h4, #djDebug h5, #djDebug h6, #djDebug p, #djDebug blockquote, #djDebug pre, #djDebug a, #djDebug abbr, #djDebug acronym, #djDebug address, #djDebug big, #djDebug cite, #djDebug code, #djDebug del, #djDebug dfn, #djDebug em, #djDebug font, #djDebug img, #djDebug ins, #djDebug kbd, #djDebug q, #djDebug s, #djDebug samp, #djDebug small, #djDebug strike, #djDebug strong, #djDebug sub, #djDebug sup, #djDebug tt, #djDebug var, #djDebug b, #djDebug u, #djDebug i, #djDebug center, #djDebug dl, #djDebug dt, #djDebug dd, #djDebug ol, #djDebug ul, #djDebug li, #djDebug fieldset, #djDebug form, #djDebug label, #djDebug legend, #djDebug table, #djDebug caption, #djDebug tbody, #djDebug tfoot, #djDebug thead, #djDebug tr, #djDebug th, #djDebug td, #djDebug button { margin:0; padding:0; min-width:0; width:auto; border:0; outline:0; font-size:12px; line-height:1.5em; color:#000; vertical-align:baseline; background-color:transparent; font-family:sans-serif; text-align:left; text-shadow: none; white-space: normal; -webkit-transition: none; -moz-transition: none; -o-transition: none; transition: none; } #djDebug button, #djDebug a.button { background-color: #eee; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eee), color-stop(100%, #cccccc)); background-image: -webkit-linear-gradient(top, #eee, #cccccc); background-image: -moz-linear-gradient(top, #eee, #cccccc); background-image: -ms-linear-gradient(top, #eee, #cccccc); background-image: -o-linear-gradient(top, #eee, #cccccc); background-image: linear-gradient(top, #eee, #cccccc); border: 1px solid #ccc; border-bottom: 1px solid #bbb; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; color: #333; line-height: 1; padding: 0 8px; text-align: center; text-shadow: 0 1px 0 #eee; } #djDebug button:hover, #djDebug a.button:hover { background-color: #ddd; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ddd), color-stop(100%, #bbb)); background-image: -webkit-linear-gradient(top, #ddd, #bbb); background-image: -moz-linear-gradient(top, #ddd, #bbb); background-image: -ms-linear-gradient(top, #ddd, #bbb); background-image: -o-linear-gradient(top, #ddd, #bbb); background-image: linear-gradient(top, #ddd, #bbb); border-color: #bbb; border-bottom-color: #999; cursor: pointer; text-shadow: 0 1px 0 #ddd; } #djDebug button:active, #djDebug a.button:active { border: 1px solid #aaa; border-bottom: 1px solid #888; -webkit-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee; -moz-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee; box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee; } #djDebug #djDebugToolbar { background-color:#111; width:200px; z-index:100000000; position:fixed; top:0; bottom:0; right:0; opacity:0.9; overflow-y: auto; } #djDebug #djDebugToolbar small { color:#999; } #djDebug #djDebugToolbar ul { margin:0; padding:0; list-style:none; } #djDebug #djDebugToolbar li { border-bottom:1px solid #222; color:#fff; display:block; font-weight:bold; float:none; margin:0; padding:0; position:relative; width:auto; } #djDebug #djDebugToolbar input[type=checkbox] { float: right; margin: 10px; } #djDebug #djDebugToolbar li>a, #djDebug #djDebugToolbar li>div.djdt-contentless { font-weight:normal; font-style:normal; text-decoration:none; display:block; font-size:16px; padding:10px 10px 5px 25px; color:#fff; } #djDebug #djDebugToolbar li>div.djdt-disabled { font-style: italic; color: #999; } #djDebug #djDebugToolbar li a:hover { color:#111; background-color:#ffc; } #djDebug #djDebugToolbar li.djdt-active { background: #333 no-repeat left center; background-image: url(../img/indicator.png); padding-left:10px; } #djDebug #djDebugToolbar li.djdt-active a:hover { color:#b36a60; background-color:transparent; } #djDebug #djDebugToolbar li small { font-size:12px; color:#999; font-style:normal; text-decoration:none; font-variant:small-caps; } #djDebug #djDebugToolbarHandle { position:fixed; background-color:#fff; border:1px solid #111; top:30px; right:0; z-index:100000000; opacity:0.75; } #djDebug #djShowToolBarButton { display:block; height:75px; width:30px; border-right:none; border-bottom:4px solid #fff; border-top:4px solid #fff; border-left:4px solid #fff; color:#fff; font-size:10px; font-weight:bold; text-decoration:none; text-align:center; text-indent:-999999px; background: #000 no-repeat left center; background-image: url(../img/djdt_vertical.png); opacity:0.5; } #djDebug #djShowToolBarButton:hover { background-color:#111; border-top-color:#FFE761; border-left-color:#FFE761; border-bottom-color:#FFE761; cursor:move; opacity:1.0; } #djDebug code { display:block; font-family:Consolas, Monaco, "Bitstream Vera Sans Mono", "Lucida Console", monospace; font-size: 12px; white-space:pre; overflow:auto; } #djDebug .djDebugOdd { background-color:#f5f5f5; } #djDebug .djdt-panelContent { display:none; position:fixed; margin:0; top:0; right:200px; bottom:0; left:0px; background-color:#eee; color:#666; z-index:100000000; } #djDebug .djdt-panelContent > div { border-bottom:1px solid #ddd; } #djDebug .djDebugPanelTitle { position:absolute; background-color:#ffc; color:#666; padding-left:20px; top:0; right:0; left:0; height:50px; } #djDebug .djDebugPanelTitle code { display:inline; font-size:inherit; } #djDebug .djDebugPanelContent { position:absolute; top:50px; right:0; bottom:0; left:0; height:auto; padding:5px 0 0 20px; } #djDebug .djDebugPanelContent .djdt-loader { display:block; margin:80px auto; } #djDebug .djDebugPanelContent .djdt-scroll { height:100%; overflow:auto; display:block; padding:0 10px 0 0; } #djDebug h3 { font-size:24px; font-weight:normal; line-height:50px; } #djDebug h4 { font-size:20px; font-weight:bold; margin-top:0.8em; } #djDebug .djdt-panelContent table { border:1px solid #ccc; border-collapse:collapse; width:100%; background-color:#fff; display:table; margin-top:0.8em; overflow: auto; } #djDebug .djdt-panelContent tbody td, #djDebug .djdt-panelContent tbody th { vertical-align:top; padding:2px 3px; } #djDebug .djdt-panelContent tbody td.djdt-time { text-align: center; } #djDebug .djdt-panelContent thead th { padding:1px 6px 1px 3px; text-align:left; font-weight:bold; font-size:14px; white-space: nowrap; } #djDebug .djdt-panelContent tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; } #djDebug .djTemplateContext { background-color:#fff; } /* #djDebug .djdt-panelContent p a:hover, #djDebug .djdt-panelContent dd a:hover { color:#111; background-color:#ffc; } #djDebug .djdt-panelContent p { padding:0 5px; } #djDebug .djdt-panelContent p, #djDebug .djdt-panelContent table, #djDebug .djdt-panelContent ol, #djDebug .djdt-panelContent ul, #djDebug .djdt-panelContent dl { margin:5px 0 15px; background-color:#fff; } #djDebug .djdt-panelContent table { clear:both; border:0; padding:0; margin:0; border-collapse:collapse; border-spacing:0; } #djDebug .djdt-panelContent table a { color:#000; padding:2px 4px; } #djDebug .djdt-panelContent table a:hover { background-color:#ffc; } #djDebug .djdt-panelContent table th { background-color:#333; font-weight:bold; color:#fff; padding:3px 7px 3px; text-align:left; cursor:pointer; } #djDebug .djdt-panelContent table td { padding:5px 10px; font-size:14px; background-color:#fff; color:#000; vertical-align:top; border:0; } #djDebug .djdt-panelContent table tr.djDebugOdd td { background-color:#eee; } */ #djDebug .djdt-panelContent .djDebugClose { display:block; position:absolute; top:4px; right:15px; height:40px; width:40px; background: no-repeat center center; background-image: url(../img/close.png); } #djDebug .djdt-panelContent .djDebugClose:hover { background-image: url(../img/close_hover.png); } #djDebug .djdt-panelContent .djDebugClose.djDebugBack { background-image: url(../img/back.png); } #djDebug .djdt-panelContent .djDebugClose.djDebugBack:hover { background-image: url(../img/back_hover.png); } #djDebug .djdt-panelContent dt, #djDebug .djdt-panelContent dd { display:block; } #djDebug .djdt-panelContent dt { margin-top:0.75em; } #djDebug .djdt-panelContent dd { margin-left:10px; } #djDebug a.toggleTemplate { padding:4px; background-color:#bbb; -webkit-border-radius:3px; -moz-border-radius:3px; border-radius:3px; } #djDebug a.toggleTemplate:hover { padding:4px; background-color:#444; color:#ffe761; -webkit-border-radius:3px; -moz-border-radius:3px; border-radius:3px; } #djDebug .djDebugSqlWrap { position:relative; } #djDebug .djDebugCollapsed { display: none; text-decoration: none; color: #333; } #djDebug .djDebugUncollapsed { color: #333; text-decoration: none; } #djDebug .djUnselected { display: none; } #djDebug tr.djHiddenByDefault { display: none; } #djDebug tr.djSelected { display: table-row; } #djDebug .djDebugSql { word-break:break-word; z-index:100000002; } #djDebug .djSQLDetailsDiv tbody th { text-align: left; } #djDebug .djSqlExplain td { white-space: pre; } #djDebug span.djDebugLineChart { background-color:#777; height:3px; position:absolute; bottom:0; top:0; left:0; display:block; z-index:1000000001; } #djDebug span.djDebugLineChartWarning { background-color:#900; } #djDebug .highlight { color:#000; } #djDebug .highlight .err { color:#000; } /* Error */ #djDebug .highlight .g { color:#000; } /* Generic */ #djDebug .highlight .k { color:#000; font-weight:bold } /* Keyword */ #djDebug .highlight .o { color:#000; } /* Operator */ #djDebug .highlight .n { color:#000; } /* Name */ #djDebug .highlight .mi { color:#000; font-weight:bold } /* Literal.Number.Integer */ #djDebug .highlight .l { color:#000; } /* Literal */ #djDebug .highlight .x { color:#000; } /* Other */ #djDebug .highlight .p { color:#000; } /* Punctuation */ #djDebug .highlight .m { color:#000; font-weight:bold } /* Literal.Number */ #djDebug .highlight .s { color:#333 } /* Literal.String */ #djDebug .highlight .w { color:#888888 } /* Text.Whitespace */ #djDebug .highlight .il { color:#000; font-weight:bold } /* Literal.Number.Integer.Long */ #djDebug .highlight .na { color:#333 } /* Name.Attribute */ #djDebug .highlight .nt { color:#000; font-weight:bold } /* Name.Tag */ #djDebug .highlight .nv { color:#333 } /* Name.Variable */ #djDebug .highlight .s2 { color:#333 } /* Literal.String.Double */ #djDebug .highlight .cp { color:#333 } /* Comment.Preproc */ #djDebug .djdt-timeline { width: 30%; } #djDebug .djDebugTimeline { position: relative; height: 100%; min-height: 100%; } #djDebug div.djDebugLineChart { position: absolute; left: 0; right: 0; top: 0; bottom: 0; vertical-align: middle; } #djDebug div.djDebugLineChart strong { text-indent: -10000em; display: block; font-weight: normal; vertical-align: middle; background-color:#ccc; } #djDebug div.djDebugLineChartWarning strong { background-color:#900; } #djDebug .djDebugInTransaction div.djDebugLineChart strong { background-color: #d3ff82; } #djDebug .djDebugStartTransaction div.djDebugLineChart strong { border-left: 1px solid #94b24d; } #djDebug .djDebugEndTransaction div.djDebugLineChart strong { border-right: 1px solid #94b24d; } #djDebug .djdt-panelContent ul.djdt-stats { position: relative; list-style-type: none; } #djDebug .djdt-panelContent ul.djdt-stats li { width: 30%; float: left; } #djDebug .djdt-panelContent ul.djdt-stats li strong.djdt-label { display: block; } #djDebug .djdt-panelContent ul.djdt-stats li span.djdt-color { height: 12px; width: 3px; display: inline-block; } #djDebug .djdt-panelContent ul.djdt-stats li span.djdt-info { display: block; padding-left: 5px; } #djDebug .djdt-panelContent thead th { white-space: nowrap; } #djDebug .djDebugRowWarning .djdt-time { color: red; } #djdebug .djdt-panelContent table .djdt-toggle { width: 14px; padding-top: 3px; } #djDebug .djdt-panelContent table .djdt-actions { min-width: 70px; white-space: nowrap; } #djdebug .djdt-panelContent table .djdt-color { width: 3px; } #djdebug .djdt-panelContent table .djdt-color span { width: 3px; height: 12px; overflow: hidden; padding: 0; } #djDebug .djToggleSwitch { text-decoration: none; border: 1px solid #999; height: 12px; width: 12px; line-height: 12px; text-align: center; color: #777; display: inline-block; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFF', endColorstr='#DCDCDC'); /* for IE */ background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#DCDCDC)); /* for webkit browsers */ background:-moz-linear-gradient(center top , #FFFFFF 0pt, #DCDCDC 100%) repeat scroll 0 0 transparent; } #djDebug .djNoToggleSwitch { height: 14px; width: 14px; display: inline-block; } #djDebug .djSQLDetailsDiv { margin-top:0.8em; } #djDebug pre { white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ white-space: pre-wrap; /* CSS-3 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ color: #555; border:1px solid #ccc; border-collapse:collapse; background-color:#fff; display:block; overflow: auto; padding:2px 3px; margin-bottom: 3px; font-family:Consolas, Monaco, "Bitstream Vera Sans Mono", "Lucida Console", monospace; } #djDebug .djdt-stack span { color: #000; font-weight: bold; } #djDebug .djdt-stack span.djdt-path, #djDebug .djdt-stack pre.djdt-locals, #djDebug .djdt-stack pre.djdt-locals span { color: #777; font-weight: normal; } #djDebug .djdt-stack span.djdt-code { font-weight: normal; } #djDebug .djdt-stack pre.djdt-locals { margin: 0 27px 27px 27px; } #djDebug .djdt-width-20 { width: 20%; } #djDebug .djdt-width-60 { width: 60%; } #djDebug .djdt-highlighted { background-color: lightgrey; } .djdt-hidden { display: none; }
{ "pile_set_name": "Github" }
- content_for :page_title, @user.full_name .outer .container = render "/header", title: @user.full_name .charts = render @time_series.chart, time_series: @time_series .charts = render "/charts/pie_chart", title: t("charts.hours_spent_per_project"), data: EntryStats.new(@time_series.entries_for_time_span).hours_for_subject_collection(Project.all).to_json = render "/charts/pie_chart", title: t("charts.hours_spent_per_category"), data: EntryStats.new(@time_series.entries_for_time_span).hours_for_subject_collection(Category.all).to_json = link_to t("users.show.entries"), user_entries_path(@user)
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="{{ Setting::get('author') }}"> <meta name="description" content="{{ Setting::get('desc') }}"> <meta name="keywords" content="{{ Setting::get('keywords') }}"> <link rel="shortcut icon" type="image/x-icon" href="{{ asset('images/favicon.ico') }}"> <link rel="stylesheet" href="{{ asset(elixir('css/app.css')) }}"> </head> <body> <header> <navigation></navigation> </header> <main id="app"> <div class="container"> <router-view></router-view> </div> </main> <footer class="page-footer transparent"> <div class="footer-copyright"> <div class="container black-text text-lighten-5"> Copyright © 2015-2016 forehalo <span class="right black-text text-lighten-5" to="/">{{ Setting::get('title') }}</span> </div> </div> </footer> <script> window.Laravel = {!! json_encode([ 'csrfToken' => csrf_token(), 'config' => Setting::all(), 'currentViewType' => Request::segment(1) ?: 'default', 'isProduction' => env('APP_ENV') === 'prod' || env('APP_ENV') === 'production' ]) !!}; window.dictionary = {!! json_encode(trans('app')) !!}; </script> <script src="{{ asset(elixir('js/app.js')) }}"></script> <script> if ('serviceWorker' in navigator) { window.addEventListener('load', function() { navigator.serviceWorker .register('/service-worker.js') .then(function(reg) { reg.onupdatefound = function() { var installingWorker = reg.installing; installingWorker.onstatechange = function() { switch (installingWorker.state) { case 'installed': if (navigator.serviceWorker.controller) { console.log('New or updated content is available.'); } else { console.log('Content is now available offline!'); } break; case 'redundant': console.error('The installing service worker became redundant.'); break; } }; }; }).catch(function(e) { console.error('Error during service worker registration:', e); }); }); } </script> </body> </html>
{ "pile_set_name": "Github" }
class PassthroughFormatter { format(value) { return value; } parse(text) { return text; } } export default PassthroughFormatter;
{ "pile_set_name": "Github" }
{ global: {}, components: { // Component-level parameters, defined initially from 'ks prototype use ...' // Each object below should correspond to a component in the components/ directory workflows: { bucket: "kubeflow-ci_temp", mode: "minikube", name: "jlewi-kubeflow-gke-deploy-test-4-3a8b", namespace: "kubeflow-test-infra", platform: "minikube", prow: "JOB_NAME=kubeflow-presubmit-test,JOB_TYPE=presubmit,PULL_NUMBER=209,REPO_NAME=kubeflow,REPO_OWNER=kubeflow,BUILD_NUMBER=997a", prow_env: "JOB_NAME=kubeflow-gke-deploy-test,JOB_TYPE=presubmit,PULL_NUMBER=4,REPO_NAME=kubeflow,REPO_OWNER=jlewi,BUILD_NUMBER=3a8b", gkeApiVersion: "", workflowName: "", }, gke_deploy: { bucket: "kubeflow-ci_temp", name: "jlewi-kubeflow-gke-deploy-test-4-3a8b", namespace: "kubeflow-test-infra", prow: "JOB_NAME=kubeflow-presubmit-test,JOB_TYPE=presubmit,PULL_NUMBER=209,REPO_NAME=kubeflow,REPO_OWNER=kubeflow,BUILD_NUMBER=997a", prow_env: "JOB_NAME=kubeflow-gke-deploy-test,JOB_TYPE=presubmit,PULL_NUMBER=4,REPO_NAME=kubeflow,REPO_OWNER=jlewi,BUILD_NUMBER=3a8b", gkeApiVersion: "", }, kfctl_test: { bucket: "kubeflow-ci_temp", name: "somefakename", namespace: "kubeflow-test-infra", prow_env: "", deleteKubeflow: true, gkeApiVersion: "v1", workflowName: "kfctl", }, kfctl_go_test: { bucket: "kubeflow-ci_temp", name: "somefakename", namespace: "kubeflow-test-infra", prow_env: "", deleteKubeflow: true, gkeApiVersion: "v1", workflowName: "kfctl-go", useBasicAuth: "false", useIstio: "true", testEndpoint: "false", configPath: "bootstrap/config/kfctl_gcp_iap_master.yaml", }, click_deploy_test: { bucket: "kubeflow-ci_temp", name: "somefakename", namespace: "kubeflow-test-infra", prow_env: "REPO_NAME=kubeflow,REPO_OWNER=kubeflow", gkeApiVersion: "v1", installIstio: false, workflowName: "deployapp", }, unit_tests: { bucket: "kubeflow-ci_temp", name: "somefakename", namespace: "kubeflow-test-infra", prow_env: "", gkeApiVersion: "", workflowName: "unittest", }, tfserving: { commit: "master", name: "somefakename", namespace: "kubeflow-test-infra", prow_env: "REPO_OWNER=kubeflow,REPO_NAME=kubeflow,PULL_BASE_SHA=master", gkeApiVersion: "", workflowName: "tfserving", }, }, }
{ "pile_set_name": "Github" }
package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", ) go_library( name = "go_default_library", srcs = [ "controllerrevision.go", "deployment.go", "expansion_generated.go", "scale.go", "statefulset.go", "statefulset_expansion.go", ], importpath = "k8s.io/client-go/listers/apps/v1beta1", deps = [ "//vendor/k8s.io/api/apps/v1beta1:go_default_library", "//vendor/k8s.io/api/core/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/labels:go_default_library", "//vendor/k8s.io/client-go/tools/cache:go_default_library", ], ) filegroup( name = "package-srcs", srcs = glob(["**"]), tags = ["automanaged"], visibility = ["//visibility:private"], ) filegroup( name = "all-srcs", srcs = [":package-srcs"], tags = ["automanaged"], )
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <configuration status="OFF"> <appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="%d [%t] %-5p %M(%F:%L) - %m%n"/> </Console> </appenders> <loggers> <root level="info"> <appender-ref ref="Console"/> <appender-ref ref="Console" level="error"/> </root> </loggers> </configuration>
{ "pile_set_name": "Github" }
/* Whole cell */ div.container.cell { padding-left: 0; margin-bottom: 1em; } /* Removing all background formatting so we can control at the div level */ .cell_input div.highlight, .cell_input pre, .cell_output .output * { border: none; background: none; background-color: transparent; box-shadow: none; } .cell_output .output pre, .cell_input pre { margin: 0px; } /* Input cells */ div.cell div.cell_input { padding-left: 0em; padding-right: 0em; border: 1px #ccc solid; background-color: #f7f7f7; border-left-color: green; border-left-width: medium; } div.cell_input > div, div.cell_output div.output > div.highlight { margin: 0em !important; border: none !important; } /* All cell outputs */ .cell_output { padding-left: 1em; padding-right: 0em; margin-top: 1em; } /* Outputs from jupyter_sphinx overrides to remove extra CSS */ div.section div.jupyter_container { padding: .4em; margin: 0 0 .4em 0; background-color: none; border: none; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; } /* Text outputs from cells */ .cell_output .output.text_plain, .cell_output .output.traceback, .cell_output .output.stream { background: #fcfcfc; margin-top: 1em; margin-bottom: 0em; box-shadow: none; } .cell_output .output.text_plain, .cell_output .output.stream { border: 1px solid #f7f7f7; } .cell_output .output.traceback { border: 1px solid #ffd6d6; } /* Math align to the left */ .cell_output .MathJax_Display { text-align: left !important; } /* Pandas tables. Pulled from the Jupyter / nbsphinx CSS */ div.cell_output table { border: none; border-collapse: collapse; border-spacing: 0; color: black; font-size: 1em; table-layout: fixed; } div.cell_output thead { border-bottom: 1px solid black; vertical-align: bottom; } div.cell_output tr, div.cell_output th, div.cell_output td { text-align: right; vertical-align: middle; padding: 0.5em 0.5em; line-height: normal; white-space: normal; max-width: none; border: none; } div.cell_output th { font-weight: bold; } div.cell_output tbody tr:nth-child(odd) { background: #f5f5f5; } div.cell_output tbody tr:hover { background: rgba(66, 165, 245, 0.2); } /* Inline text from `paste` operation */ span.pasted-text { font-weight: bold; } span.pasted-inline img { max-height: 2em; } tbody span.pasted-inline img { max-height: none; }
{ "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/b4" android:state_checked="false" android:state_focused="false" android:state_pressed="false" /> <item android:color="@color/c1" android:state_checked="true" android:state_focused="false" android:state_pressed="false" /> <item android:color="@color/c1" android:state_checked="false" android:state_focused="true" android:state_pressed="false" /> <item android:color="@color/b4" android:state_checked="true" android:state_focused="true" android:state_pressed="false" /> </selector>
{ "pile_set_name": "Github" }
function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } var csrftoken = getCookie('csrftoken'); function upload(event) { event.preventDefault(); var data = new FormData(this); $("#importbutton").button("loading") $.ajax({ url: $(this).attr('action'), type: $(this).attr('method'), data: data, cache: false, processData: false, contentType: false, success: function(data, status) { if (data == "Ok"){ $('.modal').modal('hide'); $(".dynamic").load($(".dynamic").data("form")); $(".selected").load($(".selected").data("form")); $("#importbutton").button("complete") } else { $('.modal').empty(); $('.modal').append(data); $(".modal").modal('show'); } } }); return false; } function csrfSafeMethod(method) { return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method)); } $.ajaxSetup({ beforeSend: function(xhr, settings) { if (!csrfSafeMethod(settings.type) && !this.crossDomain) { xhr.setRequestHeader("X-CSRFToken", csrftoken); } } }); function popupwindow(url, title, w, h) { w = typeof w !== 'undefined' ? w : 800; h = typeof h !== 'undefined' ? h : 400; var left = 200; var top = -100; return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } function PopupCenter(url, title, w, h) { var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left; var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top; width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; var left = ((width / 2) - (w / 2)) + dualScreenLeft; var top = ((height / 2) - (h / 2)) + dualScreenTop; var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); if (window.focus) { newWindow.focus(); } } $(function() { $('[data-toggle="tooltip"]').tooltip(); $('body').tooltip({ selector: '[data-toggle="tooltip"]' }); $(".dynamic").on("click", ".download", function(ev) { ev.preventDefault(); var url = $(this).data("form"); window.location.href = url; return false; }); $(".dynamic").on("click", ".silent", function(ev) { ev.preventDefault(); var url = $(this).data("form"); $.get(url) $(".dynamic").empty(); $(".dynamic").load($(".dynamic").data("form")); $(".selected").load($(".selected").data("form")); return false; }); $(".dynamic").on("click", ".paging", function(ev) { ev.preventDefault(); var url = $(this).data("form"); $(".dynamic").empty(); $(".dynamic").load(url); return false; }); $(".modal").on("click", ".paging", function(ev) { ev.preventDefault(); var url = $(this).data("form"); $(".modal").load(url); return false; }); $(".dynamic").on("click", ".edit", function(ev) { ev.preventDefault(); var url = $(this).data("form"); $(".modal").load(url, function() { $(this).modal('show'); }); return false; }); $(".dynamic").on("click", ".popup", function(ev) { ev.preventDefault(); var url = $(this).data("form"); PopupCenter(url, "preview", 800, 600); return false; }); $(".modal").on("click", ".edit", function(ev) { ev.preventDefault(); var url = $(this).data("form"); $(".modal").empty(); $(".modal").load(url, function() { $(this).modal('show'); }); return false; }); $(".selected").on("click", ".add", function(ev) { ev.preventDefault(); var url = $(this).data("form"); $(".modal").load(url, function() { $(this).modal('show'); }); return false; }); $(".selected").on("click", ".edit", function(ev) { ev.preventDefault(); var url = $(this).data("form"); $(".modal").load(url, function() { $(this).modal('show'); }); return false; }); $(".new").click(function(ev) { ev.preventDefault(); var url = $(this).data("form"); $(".modal").load(url, function() { $(this).modal('show'); }); return false; }); $(".new-selected").click(function(ev) { ev.preventDefault(); var url = $("#button-url").find(":selected").val(); $(".modal").load(url, function() { $(this).modal('show'); }); return false; }); $('.modal').on('hidden.bs.modal', function () { $(this).empty(); }) $(".dynamic").load($(".dynamic").data("form")); var delay = (function(){ var timer = 0; return function(callback, ms){ clearTimeout (timer); timer = setTimeout(callback, ms); }; })(); $(".filter-input").on("keyup", function(ev) { delay(function(){ if ($(".filter-input").val() != ""){ $(".dynamic").load($(".dynamic").data("form") + '/' + $(".filter-input").val()); } else { $(".dynamic").load($(".dynamic").data("form")); } }, 200); }) $('.modal').on("submit", ".modal-form", function() { $.ajax({ type: this.method, url: this.action, data: $(this).serialize(), context: this, success: function(data, status) { if (data == "Ok"){ $('.modal').modal('hide'); $(".dynamic").load($(".dynamic").data("form")); $(".selected").load($(".selected").data("form")); } else { $('.modal').empty(); $('.modal').append(data); $(".modal").modal('show'); } } }); return false; }); $('.modal').on("click", ".refresh", function() { $('.modal').load($(".refresh").data("url")); return false; }); $('.modal').on("click", ".browse", function(){ $('input[id=targetlist]').click(); return false; }) $('.modal').on("change", 'input[id=targetlist]', function(){ $('#filepath').val($(this).val()); }) $('.modal').on("submit", ".modal-form-file", upload); $('.select').change(function(ev){ if ($("select option:selected").val() == "" ) { $(".selected").empty(); } else { $(".selected").load($("select option:selected").data("form")); $(".selected").attr("data-form", $("select option:selected").data("form")) } }) index_form = function( fset, index ){ $(fset).find(':input').each(function() { var name = $(this).attr('name').replace( new RegExp('(\_\_prefix\_\_|\\d)') , index ); var id = 'id_' + name; $(this).attr({'name': name, 'id': id}); }); $(fset).find('label').each(function() { var newFor = $(this).attr('for').replace( new RegExp('(\_\_prefix\_\_|\\d)') , index ); var id = 'label_' + newFor; $(this).attr({'id':id, 'for':newFor}); }); } reindex_formset = function( formset_zone ){ var formset = $(formset_zone).find( '.nsorte' ); for( var cpt=0;cpt<formset.length;cpt++ ){ index_form( formset[cpt], cpt ); }; $("#id_form-TOTAL_FORMS").val( parseInt( cpt ) ); }; set_event = function(){ $('.modal').on('click',".bt_rm_sorte",function(){ $(this).parents(".nsorte").remove(); reindex_formset( "#formsetZone" ); }); }; $('.modal').on('click',"#bt_add_sorte",function(){ $( "#eform" ).clone(true).appendTo( $("#formsetZone") ); reindex_formset( "#formsetZone" ); }); set_event(); }); // CKEditor Focus Horrible Hack $.fn.modal.Constructor.prototype.enforceFocus = function() { modal_this = this $(document).on('focusin.modal', function (e) { if (modal_this.$element[0] !== e.target && !modal_this.$element.has(e.target).length && !$(e.target.parentNode).hasClass('cke_dialog_ui_input_select') && !$(e.target.parentNode).hasClass('cke_dialog_ui_input_text') && !$(e.target.parentNode).hasClass('cke_dialog_ui_input_textarea')) { modal_this.$element.focus() } }) };
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <model ref="5ef691b5-60ce-4ece-a04e-25e642dfa128/r:59b6a434-36b8-4735-ae34-3acf97303510(com.mbeddr.mpsutil.lantest/com.mbeddr.mpsutil.lantest.structure)"> <persistence version="9" /> <languages> <use id="982eb8df-2c96-4bd7-9963-11712ea622e5" name="jetbrains.mps.lang.resources" version="2" /> <devkit ref="78434eb8-b0e5-444b-850d-e7c4ad2da9ab(jetbrains.mps.devkit.aspect.structure)" /> </languages> <imports> <import index="tp25" ref="r:00000000-0000-4000-0000-011c89590301(jetbrains.mps.lang.smodel.structure)" /> <import index="tpck" ref="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" implicit="true" /> <import index="tpce" ref="r:00000000-0000-4000-0000-011c89590292(jetbrains.mps.lang.structure.structure)" implicit="true" /> </imports> <registry> <language id="c72da2b9-7cce-4447-8389-f407dc1158b7" name="jetbrains.mps.lang.structure"> <concept id="6054523464627964745" name="jetbrains.mps.lang.structure.structure.AttributeInfo_AttributedConcept" flags="ng" index="trNpa"> <reference id="6054523464627965081" name="concept" index="trN6q" /> </concept> <concept id="2992811758677295509" name="jetbrains.mps.lang.structure.structure.AttributeInfo" flags="ng" index="M6xJ_"> <property id="7588428831955550663" name="role" index="Hh88m" /> <child id="7588428831947959310" name="attributed" index="EQaZv" /> </concept> <concept id="1169125787135" name="jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration" flags="ig" index="PkWjJ"> <property id="6714410169261853888" name="conceptId" index="EcuMT" /> <property id="4628067390765907488" name="conceptShortDescription" index="R4oN_" /> <property id="4628067390765956807" name="final" index="R5$K2" /> <property id="4628067390765956802" name="abstract" index="R5$K7" /> <property id="5092175715804935370" name="conceptAlias" index="34LRSv" /> <child id="1071489727083" name="linkDeclaration" index="1TKVEi" /> <child id="1071489727084" name="propertyDeclaration" index="1TKVEl" /> </concept> <concept id="1169125989551" name="jetbrains.mps.lang.structure.structure.InterfaceConceptDeclaration" flags="ig" index="PlHQZ" /> <concept id="1169127622168" name="jetbrains.mps.lang.structure.structure.InterfaceConceptReference" flags="ig" index="PrWs8"> <reference id="1169127628841" name="intfc" index="PrY4T" /> </concept> <concept id="1071489090640" name="jetbrains.mps.lang.structure.structure.ConceptDeclaration" flags="ig" index="1TIwiD"> <property id="1096454100552" name="rootable" index="19KtqR" /> <reference id="1071489389519" name="extends" index="1TJDcQ" /> <child id="1169129564478" name="implements" index="PzmwI" /> </concept> <concept id="1071489288299" name="jetbrains.mps.lang.structure.structure.PropertyDeclaration" flags="ig" index="1TJgyi"> <property id="241647608299431129" name="propertyId" index="IQ2nx" /> <reference id="1082985295845" name="dataType" index="AX2Wp" /> </concept> <concept id="1071489288298" name="jetbrains.mps.lang.structure.structure.LinkDeclaration" flags="ig" index="1TJgyj"> <property id="1071599776563" name="role" index="20kJfa" /> <property id="1071599893252" name="sourceCardinality" index="20lbJX" /> <property id="1071599937831" name="metaClass" index="20lmBu" /> <property id="241647608299431140" name="linkId" index="IQ2ns" /> <reference id="1071599976176" name="target" index="20lvS9" /> </concept> </language> <language id="ceab5195-25ea-4f22-9b92-103b95ca8c0c" name="jetbrains.mps.lang.core"> <concept id="1133920641626" name="jetbrains.mps.lang.core.structure.BaseConcept" flags="ng" index="2VYdi"> <property id="1193676396447" name="virtualPackage" index="3GE5qa" /> <child id="5169995583184591170" name="smodelAttribute" index="lGtFl" /> </concept> <concept id="1169194658468" name="jetbrains.mps.lang.core.structure.INamedConcept" flags="ng" index="TrEIO"> <property id="1169194664001" name="name" index="TrG5h" /> </concept> </language> </registry> <node concept="1TIwiD" id="4XCJ8CcQ6Nj"> <property role="TrG5h" value="LantestConfig" /> <property role="34LRSv" value="lantest_config" /> <property role="19KtqR" value="true" /> <property role="R4oN_" value="configuration for language testing" /> <property role="EcuMT" value="5722030627681234131" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> <node concept="1TJgyj" id="2A9nHKANPH8" role="1TKVEi"> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="seedModel" /> <property role="IQ2ns" value="2993027727001344840" /> <ref role="20lvS9" node="2A9nHKANPGu" resolve="AbstractSeedModel" /> </node> <node concept="1TJgyj" id="2P6psD9B1UY" role="1TKVEi"> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="seedChooser" /> <property role="20lbJX" value="fLJekj4/_1" /> <property role="IQ2ns" value="3262406899569270462" /> <ref role="20lvS9" node="2P6psD9B1UX" resolve="ISeedChooser" /> </node> <node concept="1TJgyj" id="33cGTVo60G$" role="1TKVEi"> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="langSpecificConfig" /> <property role="IQ2ns" value="3516382903881173796" /> <ref role="20lvS9" node="33cGTVo609o" resolve="ILanguageSpecificConfig" /> </node> <node concept="1TJgyj" id="5aWlhTu3WIo" role="1TKVEi"> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="scope" /> <property role="20lbJX" value="fLJekj5/_0__n" /> <property role="IQ2ns" value="5961733595647167384" /> <ref role="20lvS9" node="5aWlhTu2ZzL" resolve="InterestingLanguages" /> </node> <node concept="1TJgyj" id="30nlpkLbz5c" role="1TKVEi"> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="conceptChooser" /> <property role="20lbJX" value="fLJekj4/_1" /> <property role="IQ2ns" value="3465332537548484940" /> <ref role="20lvS9" node="30nlpkLbzJw" resolve="IConceptChooser" /> </node> <node concept="1TJgyj" id="3acDVtIDSu6" role="1TKVEi"> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20lbJX" value="fLJekj4/_1" /> <property role="20kJfa" value="modelWhereResultsAreSaved" /> <property role="IQ2ns" value="3642470604913215366" /> <ref role="20lvS9" to="tp25:v3WHCwUiHy" resolve="ModelReferenceExpression" /> </node> <node concept="1TJgyj" id="52eR6w5Qnsd" role="1TKVEi"> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20lbJX" value="fLJekj4/_1" /> <property role="20kJfa" value="temporaryModel" /> <property role="IQ2ns" value="5804819309059995405" /> <ref role="20lvS9" to="tp25:v3WHCwUiHy" resolve="ModelReferenceExpression" /> </node> <node concept="1TJgyj" id="1EeUs_TucP_" role="1TKVEi"> <property role="IQ2ns" value="1913723943214697829" /> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="modelWithBuggyRootsAfterChecking" /> <property role="20lbJX" value="fLJekj4/_1" /> <ref role="20lvS9" to="tp25:v3WHCwUiHy" resolve="ModelReferenceExpression" /> </node> <node concept="1TJgyj" id="2zqpPfizDaF" role="1TKVEi"> <property role="IQ2ns" value="2943778916152545963" /> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="whatToCheckForEditorActions" /> <ref role="20lvS9" node="2zqpPfi$1nS" resolve="AbstractEditorActionsScope" /> </node> <node concept="1TJgyj" id="2zqpPfizDco" role="1TKVEi"> <property role="IQ2ns" value="2943778916152546072" /> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="linksKnownToBeHidden" /> <property role="20lbJX" value="fLJekj5/_0__n" /> <ref role="20lvS9" to="tp25:2iMJRNx_nol" resolve="LinkIdRefExpression" /> </node> <node concept="1TJgyj" id="2zqpPfiG1QG" role="1TKVEi"> <property role="IQ2ns" value="2943778916154744236" /> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="conceptsKnownNotToBeInstantiable" /> <property role="20lbJX" value="fLJekj5/_0__n" /> <ref role="20lvS9" to="tp25:2iMJRNxweHk" resolve="ConceptIdRefExpression" /> </node> <node concept="1TJgyi" id="4XCJ8CcQCV$" role="1TKVEl"> <property role="TrG5h" value="maximumNumberOfTries" /> <property role="IQ2nx" value="5722030627681373924" /> <ref role="AX2Wp" to="tpck:fKAQMTA" resolve="integer" /> </node> <node concept="1TJgyi" id="3HDVcqVU4f8" role="1TKVEl"> <property role="TrG5h" value="minimalDepth" /> <property role="IQ2nx" value="4281213259092607944" /> <ref role="AX2Wp" to="tpck:fKAQMTA" resolve="integer" /> </node> <node concept="1TJgyi" id="4XCJ8CcQZiq" role="1TKVEl"> <property role="TrG5h" value="maximalDepth" /> <property role="IQ2nx" value="5722030627681465498" /> <ref role="AX2Wp" to="tpck:fKAQMTA" resolve="integer" /> </node> <node concept="1TJgyi" id="3acDVtI_Wt4" role="1TKVEl"> <property role="TrG5h" value="cloneOriginalNodeRatio" /> <property role="IQ2nx" value="3642470604912183108" /> <ref role="AX2Wp" to="tpck:fKAQMTA" resolve="integer" /> </node> <node concept="1TJgyi" id="1ir9k2TCuuL" role="1TKVEl"> <property role="TrG5h" value="forceSavingOfAllModels" /> <property role="IQ2nx" value="1484821462071240625" /> <ref role="AX2Wp" to="tpck:fKAQMTB" resolve="boolean" /> </node> <node concept="1TJgyi" id="484XVyxOHJP" role="1TKVEl"> <property role="IQ2nx" value="4757199478771080181" /> <property role="TrG5h" value="checkEditor" /> <ref role="AX2Wp" to="tpck:fKAQMTB" resolve="boolean" /> </node> <node concept="1TJgyi" id="5JsRhvvgGh" role="1TKVEl"> <property role="IQ2nx" value="103428260108241681" /> <property role="TrG5h" value="checkEditorOnTheFly" /> <ref role="AX2Wp" to="tpck:fKAQMTB" resolve="boolean" /> </node> <node concept="1TJgyi" id="484XVyxOHK2" role="1TKVEl"> <property role="IQ2nx" value="4757199478771080194" /> <property role="TrG5h" value="checkGeneratedCode" /> <ref role="AX2Wp" to="tpck:fKAQMTB" resolve="boolean" /> </node> <node concept="1TJgyi" id="484XVyxOHKv" role="1TKVEl"> <property role="IQ2nx" value="4757199478771080223" /> <property role="TrG5h" value="deleteCheckedRoots" /> <ref role="AX2Wp" to="tpck:fKAQMTB" resolve="boolean" /> </node> <node concept="1TJgyi" id="5siEZZN9u33" role="1TKVEl"> <property role="IQ2nx" value="6274266346664878275" /> <property role="TrG5h" value="pathToLogDirectory" /> <ref role="AX2Wp" to="tpck:fKAOsGN" resolve="string" /> </node> <node concept="PrWs8" id="4XCJ8CcQ6V_" role="PzmwI"> <ref role="PrY4T" to="tpck:h0TrEE$" resolve="INamedConcept" /> </node> </node> <node concept="PlHQZ" id="2P6psD9B1UX"> <property role="TrG5h" value="ISeedChooser" /> <property role="3GE5qa" value="concept_seed" /> <property role="EcuMT" value="3262406899569270461" /> </node> <node concept="1TIwiD" id="2P6psD9B1V8"> <property role="34LRSv" value="random descendant seed" /> <property role="TrG5h" value="RandomDescendantSeed" /> <property role="EcuMT" value="3262406899569270472" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> <node concept="PrWs8" id="2P6psD9B1Zi" role="PzmwI"> <ref role="PrY4T" node="2P6psD9B1UX" resolve="ISeedChooser" /> </node> </node> <node concept="1TIwiD" id="2P6psD9D$Jx"> <property role="34LRSv" value="concept seed" /> <property role="TrG5h" value="ConceptSeed" /> <property role="3GE5qa" value="concept_seed" /> <property role="EcuMT" value="3262406899569937377" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> <node concept="PrWs8" id="2P6psD9D$Jy" role="PzmwI"> <ref role="PrY4T" node="2P6psD9B1UX" resolve="ISeedChooser" /> </node> <node concept="1TJgyj" id="7K2NL56H6S_" role="1TKVEi"> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="concepts" /> <property role="20lbJX" value="fLJekj6/_1__n" /> <property role="IQ2ns" value="8935932283764108837" /> <ref role="20lvS9" node="7K2NL56H6Rb" resolve="AbstractConceptDeclarationRef" /> </node> </node> <node concept="PlHQZ" id="33cGTVo609o"> <property role="TrG5h" value="ILanguageSpecificConfig" /> <property role="EcuMT" value="3516382903881171544" /> <property role="3GE5qa" value="language_specific_config" /> </node> <node concept="1TIwiD" id="5aWlhTu2ZzL"> <property role="TrG5h" value="InterestingLanguages" /> <property role="EcuMT" value="5961733595646916849" /> <property role="34LRSv" value="interesting languages matcher" /> <property role="3GE5qa" value="language_scope" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> <node concept="1TJgyj" id="6CKjFdBPe0z" role="1TKVEi"> <property role="IQ2ns" value="7651702299350589475" /> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="interestingLanguages" /> <property role="20lbJX" value="fLJekj5/_0__n" /> <ref role="20lvS9" node="6CKjFdBPdCS" resolve="InterestingLanguage" /> </node> </node> <node concept="1TIwiD" id="2A9nHKANPGu"> <property role="TrG5h" value="AbstractSeedModel" /> <property role="R5$K7" value="true" /> <property role="R5$K2" value="false" /> <property role="3GE5qa" value="seed" /> <property role="EcuMT" value="2993027727001344798" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> </node> <node concept="1TIwiD" id="2A9nHKANPGv"> <property role="3GE5qa" value="seed" /> <property role="TrG5h" value="SingleModelSeed" /> <property role="EcuMT" value="2993027727001344799" /> <property role="34LRSv" value="single model seed" /> <ref role="1TJDcQ" node="2A9nHKANPGu" resolve="AbstractSeedModel" /> <node concept="1TJgyj" id="2A9nHKANPGS" role="1TKVEi"> <property role="20kJfa" value="startingPoint" /> <property role="IQ2ns" value="2993027727001344824" /> <ref role="20lvS9" to="tpck:h0TrEE$" resolve="INamedConcept" /> </node> </node> <node concept="1TIwiD" id="7K2NL56H6Rb"> <property role="TrG5h" value="AbstractConceptDeclarationRef" /> <property role="3GE5qa" value="concept_seed" /> <property role="EcuMT" value="8935932283764108747" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> <node concept="1TJgyj" id="7K2NL56H6Rl" role="1TKVEi"> <property role="20kJfa" value="conceptDeclaration" /> <property role="20lbJX" value="fLJekj4/_1" /> <property role="IQ2ns" value="8935932283764108757" /> <ref role="20lvS9" to="tpce:h0PkWnZ" resolve="AbstractConceptDeclaration" /> </node> </node> <node concept="1TIwiD" id="30nlpkL5nws"> <property role="TrG5h" value="MutatedNodeAnnotation" /> <property role="EcuMT" value="3465332537546864668" /> <ref role="1TJDcQ" to="tpck:2ULFgo8_XDk" resolve="NodeAttribute" /> <node concept="1TJgyi" id="3acDVtI_ylt" role="1TKVEl"> <property role="TrG5h" value="mutationDepth" /> <property role="IQ2nx" value="3642470604912076125" /> <ref role="AX2Wp" to="tpck:fKAQMTA" resolve="integer" /> </node> <node concept="M6xJ_" id="30nlpkL5nwt" role="lGtFl"> <property role="Hh88m" value="mutatedAnnotation" /> <node concept="trNpa" id="30nlpkL5nwx" role="EQaZv"> <ref role="trN6q" to="tpck:gw2VY9q" resolve="BaseConcept" /> </node> </node> </node> <node concept="1TIwiD" id="30nlpkLbzJv"> <property role="TrG5h" value="RandomConceptChooser" /> <property role="3GE5qa" value="concept_chooser" /> <property role="EcuMT" value="3465332537548487647" /> <property role="34LRSv" value="random concept chooser" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> <node concept="PrWs8" id="30nlpkLbzKi" role="PzmwI"> <ref role="PrY4T" node="30nlpkLbzJw" resolve="IConceptChooser" /> </node> </node> <node concept="PlHQZ" id="30nlpkLbzJw"> <property role="TrG5h" value="IConceptChooser" /> <property role="3GE5qa" value="concept_chooser" /> <property role="EcuMT" value="3465332537548487648" /> </node> <node concept="1TIwiD" id="tJrHRTVPJ_"> <property role="TrG5h" value="ExceptionAnnotation" /> <property role="EcuMT" value="535768780340419557" /> <ref role="1TJDcQ" to="tpck:2ULFgo8_XDk" resolve="NodeAttribute" /> <node concept="1TJgyi" id="64cByBTL3ml" role="1TKVEl"> <property role="TrG5h" value="message" /> <property role="IQ2nx" value="6993138224520770965" /> <ref role="AX2Wp" to="tpck:fKAOsGN" resolve="string" /> </node> <node concept="1TJgyi" id="7VeUlv6Zsjs" role="1TKVEl"> <property role="IQ2nx" value="9137497257191261404" /> <property role="TrG5h" value="stackTrace" /> <ref role="AX2Wp" to="tpck:fKAOsGN" resolve="string" /> </node> <node concept="M6xJ_" id="tJrHRTVPJA" role="lGtFl"> <property role="Hh88m" value="exception" /> <node concept="trNpa" id="tJrHRTVPJD" role="EQaZv"> <ref role="trN6q" to="tpck:gw2VY9q" resolve="BaseConcept" /> </node> </node> </node> <node concept="1TIwiD" id="3S9K2OvqeWn"> <property role="EcuMT" value="4470315405174959895" /> <property role="3GE5qa" value="concept_chooser" /> <property role="TrG5h" value="FirstConceptFixedThenRandomChooser" /> <property role="34LRSv" value="first concept given then random" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> <node concept="1TJgyj" id="3S9K2OvqeWr" role="1TKVEi"> <property role="IQ2ns" value="4470315405174959899" /> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="first" /> <property role="20lbJX" value="fLJekj4/_1" /> <ref role="20lvS9" node="7K2NL56H6Rb" resolve="AbstractConceptDeclarationRef" /> </node> <node concept="PrWs8" id="3S9K2OvqeXM" role="PzmwI"> <ref role="PrY4T" node="30nlpkLbzJw" resolve="IConceptChooser" /> </node> </node> <node concept="1TIwiD" id="6CKjFdBPdCS"> <property role="EcuMT" value="7651702299350587960" /> <property role="TrG5h" value="InterestingLanguage" /> <property role="34LRSv" value="language" /> <property role="R4oN_" value="allow/dissallow languages based on their name" /> <property role="3GE5qa" value="language_scope" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> <node concept="1TJgyj" id="6CKjFdBR33G" role="1TKVEi"> <property role="IQ2ns" value="7651702299351068908" /> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="excluded" /> <property role="20lbJX" value="fLJekj5/_0__n" /> <ref role="20lvS9" node="6CKjFdBR33w" resolve="LanguageExcluded" /> </node> <node concept="1TJgyi" id="6CKjFdBPdCT" role="1TKVEl"> <property role="IQ2nx" value="7651702299350587961" /> <property role="TrG5h" value="languageNameSubstring" /> <ref role="AX2Wp" to="tpck:fKAOsGN" resolve="string" /> </node> <node concept="1TJgyi" id="6CKjFdBPdDc" role="1TKVEl"> <property role="IQ2nx" value="7651702299350587980" /> <property role="TrG5h" value="languageNameSubstringIsRegex" /> <ref role="AX2Wp" to="tpck:fKAQMTB" resolve="boolean" /> </node> </node> <node concept="1TIwiD" id="6CKjFdBR33w"> <property role="EcuMT" value="7651702299351068896" /> <property role="3GE5qa" value="language_scope" /> <property role="TrG5h" value="LanguageExcluded" /> <property role="34LRSv" value="excluded" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> <node concept="1TJgyi" id="6CKjFdBR33x" role="1TKVEl"> <property role="IQ2nx" value="7651702299351068897" /> <property role="TrG5h" value="languageNameSubstring" /> <ref role="AX2Wp" to="tpck:fKAOsGN" resolve="string" /> </node> </node> <node concept="1TIwiD" id="7UfzZYaIfQ3"> <property role="EcuMT" value="9119666098155355523" /> <property role="3GE5qa" value="seed" /> <property role="TrG5h" value="RandomRootNodeFromSolution" /> <property role="34LRSv" value="random root node from solution" /> <property role="R4oN_" value="pick a random root node from a solution" /> <ref role="1TJDcQ" node="2A9nHKANPGu" resolve="AbstractSeedModel" /> <node concept="1TJgyj" id="52eR6w5Pjol" role="1TKVEi"> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="module" /> <property role="20lbJX" value="fLJekj4/_1" /> <property role="IQ2ns" value="5804819309059716629" /> <ref role="20lvS9" to="tp25:1t9FffgebJy" resolve="ModuleRefExpression" /> </node> </node> <node concept="1TIwiD" id="2zqpPfi$1nS"> <property role="EcuMT" value="2943778916152645112" /> <property role="TrG5h" value="AbstractEditorActionsScope" /> <property role="R5$K7" value="true" /> <property role="R5$K2" value="false" /> <property role="3GE5qa" value="editor_actions_seed" /> <ref role="1TJDcQ" to="tpck:gw2VY9q" resolve="BaseConcept" /> </node> <node concept="1TIwiD" id="2zqpPfi$274"> <property role="EcuMT" value="2943778916152648132" /> <property role="3GE5qa" value="editor_actions_seed" /> <property role="TrG5h" value="ModelScopeForEditorActions" /> <property role="34LRSv" value="model scope" /> <property role="R4oN_" value="check instantiability of nodes from model" /> <ref role="1TJDcQ" node="2zqpPfi$1nS" resolve="AbstractEditorActionsScope" /> <node concept="1TJgyj" id="2zqpPfi$275" role="1TKVEi"> <property role="IQ2ns" value="2943778916152648133" /> <property role="20lmBu" value="fLJjDmT/aggregation" /> <property role="20kJfa" value="modelPointerExpression" /> <property role="20lbJX" value="fLJekj4/_1" /> <ref role="20lvS9" to="tp25:1Bs_61$nfRn" resolve="ModelPointerExpression" /> </node> </node> <node concept="1TIwiD" id="2zqpPfi$7FA"> <property role="EcuMT" value="2943778916152670950" /> <property role="3GE5qa" value="editor_actions_seed" /> <property role="TrG5h" value="SingleRootNodeScope" /> <property role="34LRSv" value="single root node scope" /> <property role="R4oN_" value="check a single root node" /> <ref role="1TJDcQ" node="2zqpPfi$1nS" resolve="AbstractEditorActionsScope" /> <node concept="1TJgyj" id="2zqpPfi$7FB" role="1TKVEi"> <property role="IQ2ns" value="2943778916152670951" /> <property role="20kJfa" value="root" /> <property role="20lbJX" value="fLJekj4/_1" /> <ref role="20lvS9" to="tpck:h0TrEE$" resolve="INamedConcept" /> </node> </node> </model>
{ "pile_set_name": "Github" }
package cobra import ( "bytes" "strings" "testing" ) func TestZshCompletion(t *testing.T) { tcs := []struct { name string root *Command expectedExpressions []string }{ { name: "trivial", root: &Command{Use: "trivialapp"}, expectedExpressions: []string{"#compdef trivial"}, }, { name: "linear", root: func() *Command { r := &Command{Use: "linear"} sub1 := &Command{Use: "sub1"} r.AddCommand(sub1) sub2 := &Command{Use: "sub2"} sub1.AddCommand(sub2) sub3 := &Command{Use: "sub3"} sub2.AddCommand(sub3) return r }(), expectedExpressions: []string{"sub1", "sub2", "sub3"}, }, { name: "flat", root: func() *Command { r := &Command{Use: "flat"} r.AddCommand(&Command{Use: "c1"}) r.AddCommand(&Command{Use: "c2"}) return r }(), expectedExpressions: []string{"(c1 c2)"}, }, { name: "tree", root: func() *Command { r := &Command{Use: "tree"} sub1 := &Command{Use: "sub1"} r.AddCommand(sub1) sub11 := &Command{Use: "sub11"} sub12 := &Command{Use: "sub12"} sub1.AddCommand(sub11) sub1.AddCommand(sub12) sub2 := &Command{Use: "sub2"} r.AddCommand(sub2) sub21 := &Command{Use: "sub21"} sub22 := &Command{Use: "sub22"} sub2.AddCommand(sub21) sub2.AddCommand(sub22) return r }(), expectedExpressions: []string{"(sub11 sub12)", "(sub21 sub22)"}, }, } for _, tc := range tcs { t.Run(tc.name, func(t *testing.T) { buf := new(bytes.Buffer) tc.root.GenZshCompletion(buf) output := buf.String() for _, expectedExpression := range tc.expectedExpressions { if !strings.Contains(output, expectedExpression) { t.Errorf("Expected completion to contain %q somewhere; got %q", expectedExpression, output) } } }) } }
{ "pile_set_name": "Github" }
import React from "react"; import { mount, shallow } from "enzyme"; import $ from "jquery"; import { Component, ComponentList } from "../js/src/components/component-list"; import { Metrics } from "../js/src/components/metrics"; describe('ComponentList', () => { it('fetches the components url', () => { var ajax = $.ajax; $.ajax = jest.fn(); const componentList = mount( <ComponentList url={"components.json"}/> ); expect($.ajax.mock.calls.length).toBe(1); expect($.ajax.mock.calls[0][0].url).toBe("components.json"); $.ajax = ajax; }); it('has component-list as classname', () => { const componentList = shallow(<ComponentList />); expect(componentList.find(".component-list").length).toBe(1); }); it('renders a component for each one that was fetched', () => { $.getJSON= jest.fn(); var ajax = $.ajax; $.ajax = jest.fn((obj) => { obj.success({components: ["registry", "big-sibling"]}); }); const componentList = mount(<ComponentList />); var components = componentList.find(Component); expect(components.length).toBe(2); expect(components.first().props().name).toBe("registry"); expect(components.last().props().name).toBe("big-sibling"); $.ajax = ajax; }); }); describe('Component', () => { it('renders Metrics for the component', () => { var ajax = $.ajax; $.ajax = jest.fn(); const component = mount( <Component name={"big-sibling"}/> ); var metrics = component.find(Metrics); expect(metrics.length).toBe(1); expect(metrics.props().targetName).toBe("big-sibling"); expect(metrics.props().targetType).toBe("component"); $.ajax = ajax; }); it('has component as classname', () => { const component = shallow(<Component />); expect(component.find(".component").length).toBe(1); }); });
{ "pile_set_name": "Github" }
<?xml version="1.0"?> <tallies> <mesh id="1"> <type>regular</type> <lower_left>-10 -1 -1 </lower_left> <upper_right>10 1 1</upper_right> <dimension>10 1 1</dimension> </mesh> <filter id="1"> <type>mesh</type> <bins>1</bins> </filter> <tally id="1"> <filters>1</filters> <scores>flux</scores> </tally> </tallies>
{ "pile_set_name": "Github" }
<template lang="html"> <div> <b-modal ref="tokenModal" :title="$t('interface.tokens.modal.title')" hide-footer class="bootstrap-modal nopadding max-height-1" centered static lazy @hidden="resetCompState" > <form class="tokens-modal-body" @keydown.enter.prevent> <div> <input v-model="tokenAddress" v-validate="'required'" :class="[ 'custom-input-text-1', tokenAddress !== '' && !validAddress ? 'invalid-address' : '' ]" :placeholder="$t('interface.tokens.modal.ph-contract-addr')" name="Address" type="text" /> <span v-show="tokenAddress !== '' && !validAddress" class="error-message" > {{ $t('interface.tokens.modal.error.addr') }} </span> <input v-model="tokenSymbol" :placeholder="$t('interface.tokens.modal.ph-symbol')" name="Symbol" type="text" class="custom-input-text-1" /> <input v-model="tokenDecimal" :placeholder="$t('interface.tokens.modal.ph-decimals')" name="Decimal" type="number" min="0" max="18" class="custom-input-text-1" /> <span v-show="tokenDecimal < 0 || tokenDecimal > 18" class="error-message" > {{ $t('interface.tokens.modal.error.decimals') }} </span> </div> <div class="button-block"> <button :class="[ allFieldsValid ? '' : 'disabled', 'save-button large-round-button-green-filled clickable' ]" @click.prevent="addToken(tokenAddress, tokenSymbol, tokenDecimal)" > {{ $t('common.save') }} </button> <interface-bottom-text :link-text="$t('common.help-center')" :question="$t('common.dont-know')" link="https://kb.myetherwallet.com" /> </div> </form> </b-modal> </div> </template> <script> import InterfaceBottomText from '@/components/InterfaceBottomText'; import { mapState } from 'vuex'; import { isAddress } from '@/helpers/addressUtils'; export default { components: { 'interface-bottom-text': InterfaceBottomText }, props: { addToken: { type: Function, default: function () {} } }, data() { return { tokenAddress: '', tokenSymbol: '', tokenDecimal: '', validAddress: false }; }, computed: { ...mapState('main', ['web3']), allFieldsValid() { if (!this.validAddress) return false; if (this.tokenSymbol === '') return false; if ( this.tokenDecimal < 0 || this.tokenDecimal > 18 || this.tokenDecimal === '' ) return false; if ( this.errors.has('address') || this.errors.has('symbol') || this.errors.has('decimal') ) return false; return true; } }, watch: { tokenAddress(newVal) { const strippedWhitespace = newVal.toLowerCase().trim(); const regTest = new RegExp(/[a-zA-Z0-9]/g); this.validAddress = regTest.test(strippedWhitespace) && isAddress(strippedWhitespace); this.toAddress = strippedWhitespace; this.tokenAddress = strippedWhitespace; }, tokenSymbol(newVal) { this.tokenSymbol = newVal.substr(0, 7); } }, methods: { resetCompState() { this.tokenAddress = ''; this.tokenSymbol = ''; this.tokenDecimal = ''; this.validAddress = false; } } }; </script> <style lang="scss" scoped> @import 'InterfaceTokensModal.scss'; </style>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <title>APIドキュメント</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/bundled/bootstrap.min.css'/> <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/bundled/prettify.css'/> <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/bundled/bootstrap-responsive.min.css'/> <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/application.css'/> <!-- IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <div class="container-fluid"> <div class="row-fluid"> <div id='container'> <ul class='breadcrumb'> <li> <a href='../../../apidoc/v2.ja.html'>Foreman v2</a> <span class='divider'>/</span> </li> <li> <a href='../../../apidoc/v2/architectures.ja.html'> Architectures </a> <span class='divider'>/</span> </li> <li class='active'>create</li> <li class='pull-right'> &nbsp;[ <a href="../../../apidoc/v2/architectures/create.ca.html">ca</a> | <a href="../../../apidoc/v2/architectures/create.cs_CZ.html">cs_CZ</a> | <a href="../../../apidoc/v2/architectures/create.de.html">de</a> | <a href="../../../apidoc/v2/architectures/create.en.html">en</a> | <a href="../../../apidoc/v2/architectures/create.en_GB.html">en_GB</a> | <a href="../../../apidoc/v2/architectures/create.es.html">es</a> | <a href="../../../apidoc/v2/architectures/create.fr.html">fr</a> | <a href="../../../apidoc/v2/architectures/create.gl.html">gl</a> | <a href="../../../apidoc/v2/architectures/create.it.html">it</a> | <b><a href="../../../apidoc/v2/architectures/create.ja.html">ja</a></b> | <a href="../../../apidoc/v2/architectures/create.ko.html">ko</a> | <a href="../../../apidoc/v2/architectures/create.nl_NL.html">nl_NL</a> | <a href="../../../apidoc/v2/architectures/create.pl.html">pl</a> | <a href="../../../apidoc/v2/architectures/create.pt_BR.html">pt_BR</a> | <a href="../../../apidoc/v2/architectures/create.ru.html">ru</a> | <a href="../../../apidoc/v2/architectures/create.sv_SE.html">sv_SE</a> | <a href="../../../apidoc/v2/architectures/create.zh_CN.html">zh_CN</a> | <a href="../../../apidoc/v2/architectures/create.zh_TW.html">zh_TW</a> ] </li> </ul> <div class='page-header'> <h1> POST /api/architectures <br> <small>アーキテクチャーの作成</small> </h1> </div> <div> <h2>例</h2> <pre class="prettyprint">POST /api/architectures { &quot;architecture&quot;: { &quot;name&quot;: &quot;i386&quot; } } 201 { &quot;created_at&quot;: &quot;2020-03-11 07:55:01 UTC&quot;, &quot;updated_at&quot;: &quot;2020-03-11 07:55:01 UTC&quot;, &quot;name&quot;: &quot;i386&quot;, &quot;id&quot;: 922134522, &quot;operatingsystems&quot;: [], &quot;images&quot;: [] }</pre> <h2>パラメーター</h2> <table class='table'> <thead> <tr> <th>パラメーター名</th> <th>記述</th> </tr> </thead> <tbody> <tr style='background-color:rgb(255,255,255);'> <td> <strong>location_id </strong><br> <small> 任意 </small> </td> <td> <p>Set the current location context for the request</p> <p><strong>Validations:</strong></p> <ul> <li> <p>Must be a Integer</p> </li> </ul> </td> </tr> <tr style='background-color:rgb(255,255,255);'> <td> <strong>organization_id </strong><br> <small> 任意 </small> </td> <td> <p>Set the current organization context for the request</p> <p><strong>Validations:</strong></p> <ul> <li> <p>Must be a Integer</p> </li> </ul> </td> </tr> <tr style='background-color:rgb(255,255,255);'> <td> <strong>architecture </strong><br> <small> 必須 </small> </td> <td> <p><strong>Validations:</strong></p> <ul> <li> <p>Must be a Hash</p> </li> </ul> </td> </tr> <tr style='background-color:rgb(250,250,250);'> <td> <strong>architecture[name] </strong><br> <small> 必須 </small> </td> <td> <p><strong>Validations:</strong></p> <ul> <li> <p>Must be a String</p> </li> </ul> </td> </tr> <tr style='background-color:rgb(250,250,250);'> <td> <strong>architecture[operatingsystem_ids] </strong><br> <small> 任意 , nil可 </small> </td> <td> <p>オペレーティングシステム ID</p> <p><strong>Validations:</strong></p> <ul> <li> <p>Must be an array of any type</p> </li> </ul> </td> </tr> </tbody> </table> </div> </div> </div> <hr> <footer></footer> </div> <script type='text/javascript' src='../../../apidoc/javascripts/bundled/jquery.js'></script> <script type='text/javascript' src='../../../apidoc/javascripts/bundled/bootstrap-collapse.js'></script> <script type='text/javascript' src='../../../apidoc/javascripts/bundled/prettify.js'></script> <script type='text/javascript' src='../../../apidoc/javascripts/apipie.js'></script> </body> </html>
{ "pile_set_name": "Github" }
# @generated by autocargo from //hphp/hack/src/hhbc:emit_fatal_rust [package] name = "emit_fatal_rust" edition = "2018" version = "0.0.0" include = ["../../emit_fatal.rs"] [lib] path = "../../emit_fatal.rs" [dependencies] emit_pos_rust = { path = "../emit_pos" } hhbc_ast_rust = { path = "../hhbc_ast" } instruction_sequence_rust = { path = "../instruction_sequence" } oxidized = { path = "../../../oxidized" }
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>QUnit Test Suite - Canvas Addon</title> <link rel="stylesheet" href="../../qunit/qunit.css" type="text/css" media="screen"> <script type="text/javascript" src="../../qunit/qunit.js"></script> <script type="text/javascript" src="qunit-canvas.js"></script> <script type="text/javascript" src="canvas-test.js"></script> </head> <body> <h1 id="qunit-header">QUnit Test Suite - Canvas Addon</h1> <h2 id="qunit-banner"></h2> <div id="qunit-testrunner-toolbar"></div> <h2 id="qunit-userAgent"></h2> <ol id="qunit-tests"></ol> <canvas id="qunit-canvas" width="5" height="5"></canvas> </body> </html>
{ "pile_set_name": "Github" }
<!DOCTYPE html> <meta charset="utf-8"> <title>IDBObjectStore.createIndex() - empty keyPath</title> <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="support.js"></script> <script> var db, aborted, t = async_test() var open_rq = createdb(t); open_rq.onupgradeneeded = function(e) { db = e.target.result; var txn = e.target.transaction, objStore = db.createObjectStore("store"); for (var i = 0; i < 5; i++) objStore.add("object_" + i, i); var rq = objStore.createIndex("index", "") rq.onerror = function() { assert_unreached("error: " + rq.error.name); } rq.onsuccess = function() { } objStore.index("index") .get('object_4') .onsuccess = t.step_func(function(e) { assert_equals(e.target.result, 'object_4', 'result'); }); } open_rq.onsuccess = function() { t.done(); } </script> <div id="log"></div>
{ "pile_set_name": "Github" }
{ "name": "map-canvas", "version": "1.0.0", "description": "基于baidu、google、openlayers、arcgis、高德地图、canvas数据可视化", "main": "rollup.config.js", "scripts": { "mini": "npm run build && uglifyjs build/baidu-map-lineGradient.js -c -m -o build/release/baidu-map-lineGradient.min.js", "build": "rollup -c", "watch": "npm-watch", "test": "npm run build" }, "watch": { "build": { "patterns": [ "src", "main.js" ], "extensions": "js,jsx", "ignore": "" } }, "repository": { "type": "git", "url": "git+https://github.com/chengquan223/map-canvas.git" }, "keywords": [ "baidu", "arcgis", "amap", "google", "openlayers", "canvas", "visualization" ], "author": "309581454@qq.com", "license": "ISC", "bugs": { "url": "https://github.com/chengquan223/map-canvas/issues" }, "homepage": "https://github.com/chengquan223/map-canvas#readme", "devDependencies": { "babel-preset-es2015-rollup": "^3.0.0", "npm-watch": "^0.3.0", "rollup": "^0.41.5", "rollup-plugin-babel": "^2.7.1", "uglify-js": "^3.3.8" }, "dependencies": { "lodash": "^4.17.19", "mixin-deep": "^2.0.1", "set-value": "^3.0.1" } }
{ "pile_set_name": "Github" }
{ "images" : [ { "idiom" : "universal", "filename" : "video-play.png", "scale" : "1x" }, { "idiom" : "universal", "filename" : "video-play@2x.png", "scale" : "2x" }, { "idiom" : "universal", "filename" : "video-play@3x.png", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <message> <name>MFNM14</name> <description>Master File Notification - Site Defined</description> <segments> <segment>MSH</segment> <segment minOccurs="0" maxOccurs="unbounded">SFT</segment> <segment>MFI</segment> <group maxOccurs="unbounded"> <segment>MFE</segment> <segment>ANY</segment> </group> </segments> </message>
{ "pile_set_name": "Github" }
$(function() { $('.navdrawer-nav a[title]').tooltip({ 'html': true, 'placement': 'right', 'boundary': 'viewport' }); });
{ "pile_set_name": "Github" }
"use strict"; /* Generated from: * ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * ap-northeast-3 (https://d2zq80gdmjim8k.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * ap-south-1 (https://d2senuesg1djtx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * ap-southeast-1 (https://doigdx0kgq9el.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * ap-southeast-2 (https://d2stg8d246z9di.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * ca-central-1 (https://d2s8ygphhesbe7.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * eu-central-1 (https://d1mta8qj7i28i2.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * eu-west-1 (https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * eu-west-2 (https://d1742qcu2c1ncx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * eu-west-3 (https://d2d0mfegowb3wk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * sa-east-1 (https://d3c9jyj3w509b0.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * us-east-1 (https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * us-east-2 (https://dnwj8swjjbsbt.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * us-west-1 (https://d68hl49wbnanq.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0, * us-west-2 (https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); const simulationApplication_1 = require("./simulationApplication"); const simulationApplicationVersion_1 = require("./simulationApplicationVersion"); const robotApplication_1 = require("./robotApplication"); const fleet_1 = require("./fleet"); const robotApplicationVersion_1 = require("./robotApplicationVersion"); const robot_1 = require("./robot"); var RoboMaker; (function (RoboMaker) { RoboMaker.SimulationApplication = simulationApplication_1.default; RoboMaker.SimulationApplicationVersion = simulationApplicationVersion_1.default; RoboMaker.RobotApplication = robotApplication_1.default; RoboMaker.Fleet = fleet_1.default; RoboMaker.RobotApplicationVersion = robotApplicationVersion_1.default; RoboMaker.Robot = robot_1.default; })(RoboMaker = exports.RoboMaker || (exports.RoboMaker = {}));
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="en"> <head> <title>Suave Test Page</title> <script type="text/javascript"> //<![CDATA[ window.addEventListener("load", function () { var sendFiles = function(event) { var fd = new FormData(event.target); fd.append('custom', 1337); var request = new XMLHttpRequest(); request.addEventListener("load", function(event) { if (console && console.log) { console.info('success', event.target.responseText); } }); request.addEventListener("error", function(event) { if (console && console.log) { console.error('error', event); } }); request.open("PUT", event.target.action); request.send(fd); }; document.getElementById("up3").addEventListener("submit", function (event) { event.preventDefault(); sendFiles(event); }); }); //]]> </script> </head> <body> <h1>POST testing</h1> <h2>Simple data POST</h2> <form method="post" action="test.html"> <p> <input type="text" name="edit1" /><br /> <input type="submit" /> </p> </form> <h2>1. File Upload test</h2> <form method="post" action="upload" enctype="multipart/form-data"> <p> <input type="file" name="myfile" /><br /> <input type="submit" /> </p> </form> <h2>2. Multiple File Upload test &ndash; <pre>multipart/form-data</pre></h2> <form method="PUT" action="upload2" enctype="multipart/form-data"> <p> <input type="file" name="myfile1" /><br /> <input type="file" name="myfile2" /><br /> <input type="text" name="edit1" /><br /> <input type="submit" /> </p> </form> <h2>3. Multiple File JavaScript/FormData Upload test</h2> <form id="up3" name="up3" method="PUT" action="upload2"> <p>Will post with <pre>Content-Type: multipart/form-data; boundary=---------------------------15407761691467256857631277098</pre></p> <p> <input type="file" name="myfile1" accept="image/*;capture=camera" required="required" /> *<br /> <input type="file" name="myfile2" accept="image/*;capture=camera" /><br /> <input type="text" name="edit1" /><br /> <input type="submit" /> </p> </form> <h2>Image</h2> <img src="examples.png" /> <h2>4. International Form Fields</h2> <form id="put1" name="put1" method="POST" action="i18nforms" enctype="multipart/form-data"> <p>Will now post a form with a number of funky names</p> <p> <input type="text" name="ödlan" /><br /> <input type="text" name="小" value="small" /><br /> <input type="submit" /> </p> </form> </body> </html>
{ "pile_set_name": "Github" }
import { IScheduler } from '../Scheduler'; import { Observable } from '../Observable'; import { Subscriber } from '../Subscriber'; import { TeardownLogic } from '../Subscription'; /** * We need this JSDoc comment for affecting ESDoc. * @extends {Ignored} * @hide true */ export declare class ScalarObservable<T> extends Observable<T> { value: T; private scheduler; static create<T>(value: T, scheduler?: IScheduler): ScalarObservable<T>; static dispatch(state: any): void; _isScalar: boolean; constructor(value: T, scheduler?: IScheduler); protected _subscribe(subscriber: Subscriber<T>): TeardownLogic; }
{ "pile_set_name": "Github" }