text
stringlengths 4
99.7k
| meta
dict |
|---|---|
///////////////////////////////////////////////////////////
// JsonTool.as
// Macromedia ActionScript Implementation of the Class JsonTool
// Created on: 2015-11-27 上午9:58:59
// Original author: ww
///////////////////////////////////////////////////////////
package laya.debug.tools
{
/**
*
* @author ww
* @version 1.0
*
* @created 2015-11-27 上午9:58:59
*/
public class JsonTool
{
public function JsonTool()
{
}
public static var singleLineKey:Object=
{
"props":true
};
public static function getJsonString(obj:Object,singleLine:Boolean=true,split:String="\n",depth:int=0,Width:int=4):String
{
var preStr:String="";
preStr=getEmptyStr(depth*Width);
var rst:String;
var keyValues:Object;
keyValues={};
var tKey:String;
var tValue:*;
var type:String;
var keys:Array;
keys=[];
for(tKey in obj)
{
keys.push(tKey);
tValue=obj[tKey];
if(singleLineKey[tKey])
{
keyValues[tKey]=getValueStr(tValue,true,split,depth+1,Width);
}else
{
keyValues[tKey]=getValueStr(tValue,singleLine,split,depth+1,Width);
}
}
var i:int,len:int;
len=keys.length;
keys.sort();
keys = keys.reverse();
var keyPreStr:String;
keyPreStr=getEmptyStr((depth+1)*Width);
if(singleLine)
{
split="";
preStr = "";
keyPreStr = "";
}
var keyValueStrArr:Array;
keyValueStrArr = [];
for(i=0;i<len;i++)
{
tKey=keys[i];
keyValueStrArr.push(keyPreStr+wrapValue(tKey)+":"+keyValues[tKey]);
}
rst="{"+split+keyValueStrArr.join(","+split)+split+preStr+"}";
//rst=rst.split("\\").join("\\\\");
return rst;
}
private static function wrapValue(value:String,wraper:String="\""):String
{
return wraper+value+wraper;
}
private static function getArrStr(arr:Array,singleLine:Boolean=true,split:String="\n",depth:int=0,Width:int=4):String
{
var rst:String;
var i:int,len:int;
len=arr.length;
var valueStrArr:Array;
valueStrArr=[];
for(i=0;i<len;i++)
{
valueStrArr.push(getValueStr(arr[i],singleLine,split,depth+1,Width));
}
var preStr:String="";
preStr=getEmptyStr((depth+1)*Width);
if(singleLine)
{
split="";
preStr="";
}
rst="["+split+preStr+valueStrArr.join(","+split+preStr)+"]";
return rst;
}
public static var escapable:RegExp = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
meta:Object = { // table of character substitutions
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'"' : '\\"',
'\\': '\\\\'
};
public static function quote(string:String):String {
// If the string contains no control characters, no quote characters, and no
// backslash characters, then we can safely slap some quotes around it.
// Otherwise we must also replace the offending characters with safe escape
// sequences.
escapable.lastIndex = 0;
return escapable.test(string) ? '"' + string.replace(escapable, function (a:String):String {
var c:String = meta[a];
return typeof c === 'string' ? c :
'\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
}) + '"' : '"' + string + '"';
}
private static function getValueStr(tValue:*,singleLine:Boolean=true,split:String="\n",depth:int=0,Width:int=0):String
{
var rst:String;
if(tValue is String )
{
// rst="\""+tValue+"\"";
rst=quote(tValue);
}else if(tValue ==null)
{
rst="null";
}else if(tValue is Number||tValue is int||tValue is Boolean)
{
rst=tValue;
}else if(tValue is Array)
{
rst=getArrStr(tValue,singleLine,split,depth,Width);
}else if(tValue is Object)
{
rst=getJsonString(tValue,singleLine,split,depth,Width);
}else
{
rst=tValue;
}
return rst;
}
public static var emptyDic:Object={};
public static function getEmptyStr(width:int):String
{
if(!emptyDic.hasOwnProperty(width))
{
var i:int;
var len:int;
len=width;
var rst:String;
rst="";
for(i=0;i<len;i++)
{
rst+=" ";
}
emptyDic[width]=rst;
}
return emptyDic[width];
}
}
}
|
{
"pile_set_name": "Github"
}
|
<?php
/**
* Zenphoto Mutex class
* @author Stephen
* @package setup
*
*/
class setupMutex {
private $locked = NULL;
private $ignoreUseAbort = NULL;
private $mutex = NULL;
private $lock = NULL;
private $lockfolder;
function __construct() {
// if any of the construction fails, run in free mode (lock = NULL)
if (function_exists('flock')) {
$this->lockfolder = dirname(dirname(dirname(__FILE__))) . '/' . DATA_FOLDER . '/' . MUTEX_FOLDER;
if (!file_exists($this->lockfolder))
setup::mkdir_r($this->lockfolder, 0777);
if (file_exists($this->lockfolder))
$this->lock = 'sP';
}
return $this->lock;
}
function __destruct() {
if ($this->locked) {
$this->unlock();
}
}
public function lock() {
//if "flock" is not supported run un-serialized
//Only lock an unlocked mutex, we don't support recursive mutex'es
if (!$this->locked && $this->lock) {
if ($this->mutex = @fopen($this->lockfolder . '/' . $this->lock, 'wb')) {
if (flock($this->mutex, LOCK_EX)) {
$this->locked = true;
//We are entering a critical section so we need to change the ignore_user_abort setting so that the
//script doesn't stop in the critical section.
$this->ignoreUserAbort = ignore_user_abort(true);
}
}
}
return $this->locked;
}
/**
* Unlock the mutex.
*/
public function unlock() {
if ($this->locked) {
//Only unlock a locked mutex.
$this->locked = false;
ignore_user_abort($this->ignoreUserAbort); //Restore the ignore_user_abort setting.
flock($this->mutex, LOCK_UN);
fclose($this->mutex);
return true;
}
return false;
}
}
|
{
"pile_set_name": "Github"
}
|
#include<cstdio>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<queue>
#include<stack>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb(x) push_back(x)
#define mp(x,y) make_pair(x,y)
#define _ ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
using namespace std;
int k, N, n;
string s, t, res, tmp;
string process(string tmp){
string ret;
int c1 = 0, c2 = 0;
for(int i = 0; i < tmp.size(); i++){
if(tmp[i] == t[0]) c1++; else c2++;
}
// cout << c1 << " " << c2 << " " << t[0] << " " << t[1] << endl;
if(c1 > 0 and c2 > 0){
if(c1 >= c2){
for(int i = 0; i < tmp.size(); i++){
if(tmp[i] == t[0]) ret += tmp[i];
}
}
else{
for(int i = 0; i < tmp.size(); i++){
if(tmp[i] != t[0]) ret += tmp[i];
}
}
return ret;
}
else{
return tmp;
}
}
int main(){
cin >> s;
N = s.length();
sd(k);
for(int j = 0; j < k; j++){
cin >> t;
n = s.length();
res = "";
for(int i = 0; i < n; i++){
if(s[i] != t[0] and s[i] != t[1]){
res += process(tmp);
res += s[i];
tmp = "";
}
else{
tmp += s[i];
}
}
if(tmp.length()){
res += process(tmp);
tmp = "";
}
s = res;
// cout << s << endl;
}
cout << N - (s.length()) << endl;
return 0;
}
|
{
"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"
}
|
/*global QUnit */
/*eslint no-undef:1, no-unused-vars:1, strict: 1 */
sap.ui.define([
"sap/ui/qunit/utils/createAndAppendDiv",
"sap/m/HBox",
"sap/ui/core/HTML",
"sap/m/FlexItemData",
"sap/m/VBox",
"sap/m/App",
"sap/m/Page",
"jquery.sap.global",
"sap/ui/dom/includeStylesheet"
], function(
createAndAppendDiv,
HBox,
HTML,
FlexItemData,
VBox,
App,
Page,
jQuery,
includeStylesheet
) {
createAndAppendDiv("content");
var outerhboxWidth,
outerhboxHeight,
vboxWidth,
vboxHeight,
innerhboxWidth,
innerhboxHeight,
item1Width,
item1Height,
item2Width,
item2Height,
item3Width,
item3Height,
item4Width,
item4Height,
item5Width,
item5Height,
item6Width,
item6Height;
var oOuterHBox = new HBox("outerHBox", {
items: [
new HTML("panel1", {
content: "<div></div>",
layoutData: new FlexItemData({ growFactor: 2, id: "item1" })
}),
new HTML("panel2", {
content: "<div></div>",
layoutData: new FlexItemData({ growFactor: 3, id: "item2" })
}),
new VBox("vbox", {
items: [
new HTML("panel3", {
content: "<div></div>",
layoutData: new FlexItemData({ growFactor: 5, id: "item3" })
}),
new HBox("innerHBox", {
items: [
new HTML("panel4", {
content: "<div></div>",
layoutData: new FlexItemData({ growFactor: 1, id: "item4" })
}),
new HTML("panel5", {
content: "<div></div>",
layoutData: new FlexItemData({ growFactor: 1, id: "item5" })
})
],
fitContainer: true,
alignItems: "Stretch",
layoutData: new FlexItemData({ growFactor: 3 })
})
],
fitContainer: true,
layoutData: new FlexItemData({ growFactor: 5 })
}),
new HTML("panel6", {
content:"<div></div>",
layoutData: new FlexItemData({ growFactor: 5, id: "item6" })
})
],
fitContainer: true,
alignItems: "Stretch"
});
var app = new App();
app.placeAt("content");
app.addPage(new Page("page", {
enableScrolling: false,
content: [
oOuterHBox
]
}));
QUnit.test("Flex Boxes rendered", function(assert) {
assert.ok(jQuery.sap.domById("outerHBox"), "Outer HBox should be rendered");
assert.ok(jQuery.sap.domById("item1"), "item 1 should be rendered");
assert.ok(jQuery.sap.domById("item2"), "Item 2 should be rendered");
assert.ok(jQuery.sap.domById("vbox"), "VBox should be rendered");
assert.ok(jQuery.sap.domById("item3"), "Item 3 should be rendered");
assert.ok(jQuery.sap.domById("innerHBox"), "Inner HBox should be rendered");
assert.ok(jQuery.sap.domById("item4"), "Item 4 should be rendered");
assert.ok(jQuery.sap.domById("item5"), "Item 5 should be rendered");
assert.ok(jQuery.sap.domById("item6"), "Item 6 should be rendered");
});
QUnit.test("Width and height correct", function(assert) {
assert.ok(Math.abs(jQuery.sap.domById("outerHBox").offsetWidth - outerhboxWidth) <= 1, "Outer HBox should have the correct width");
assert.ok(Math.abs(jQuery.sap.domById("outerHBox").offsetHeight - outerhboxHeight) <= 1, "Outer HBox should have the correct height");
assert.ok(Math.abs(jQuery.sap.domById("vbox").offsetWidth - vboxWidth) <= 1, "VBox should have the correct width");
assert.ok(Math.abs(jQuery.sap.domById("vbox").offsetHeight - vboxHeight) <= 1, "VBox should have the correct height");
assert.ok(Math.abs(jQuery.sap.domById("innerHBox").offsetWidth - innerhboxWidth) <= 1, "Inner HBox should have the correct width");
assert.ok(Math.abs(jQuery.sap.domById("innerHBox").offsetHeight - innerhboxHeight) <= 1, "Inner HBox should have the correct height");
assert.ok(Math.abs(jQuery.sap.domById("item1").offsetWidth - item1Width) <= 1, "Item 1 should have the correct width");
assert.ok(Math.abs(jQuery.sap.domById("item1").offsetHeight - item1Height) <= 1, "Item 1 should have the correct height");
assert.ok(Math.abs(jQuery.sap.domById("item2").offsetWidth - item2Width) <= 1, "Item 2 should have the correct width");
assert.ok(Math.abs(jQuery.sap.domById("item2").offsetHeight - item2Height) <= 1, "Item 2 should have the correct height");
assert.ok(Math.abs(jQuery.sap.domById("item3").offsetWidth - item3Width) <= 1, "Item 3 should have the correct width");
assert.ok(Math.abs(jQuery.sap.domById("item3").offsetHeight - item3Height) <= 1, "Item 3 should have the correct height");
assert.ok(Math.abs(jQuery.sap.domById("item4").offsetWidth - item4Width) <= 1, "Item 4 should have the correct width");
assert.ok(Math.abs(jQuery.sap.domById("item4").offsetHeight - item4Height) <= 1, "Item 4 should have the correct height");
assert.ok(Math.abs(jQuery.sap.domById("item5").offsetWidth - item5Width) <= 1, "Item 5 should have the correct width");
assert.ok(Math.abs(jQuery.sap.domById("item5").offsetHeight - item5Height) <= 1, "Item 5 should have the correct height");
assert.ok(Math.abs(jQuery.sap.domById("item6").offsetWidth - item6Width) <= 1, "Item 6 should have the correct width");
assert.ok(Math.abs(jQuery.sap.domById("item6").offsetHeight - item6Height) <= 1, "Item 6 should have the correct height");
});
// include stylesheet, wait for it + 1000ms then calculate expected sizes.
// test starter will wait for the returned promise
return includeStylesheet({
url: sap.ui.require.toUrl("test-resources/sap/m/qunit/FlexBoxFit.css")
}).then(function() {
// HACK: enforce scrollbars
// - with a dedicated *.qunit.html page, the QUnit header + 100% body always enforced a scrollbar
// - with the generic test starter, the QUnit header get a height only after all tests have been created
document.getElementById("qunit").setAttribute("style", "height:200px;");
return new Promise(function(resolve) {
setTimeout(function() {
// Calculate width and height for the elements
outerhboxWidth = jQuery.sap.domById("page-cont").offsetWidth;
outerhboxHeight = jQuery.sap.domById("page-cont").offsetHeight;
vboxWidth = outerhboxWidth * ( 5 / 15 );
vboxHeight = outerhboxHeight;
innerhboxWidth = outerhboxWidth * ( 5 / 15 );
innerhboxHeight = outerhboxHeight * ( 3 / 8 );
item1Width = outerhboxWidth * ( 2 / 15 );
item1Height = outerhboxHeight;
item2Width = outerhboxWidth * ( 3 / 15 );
item2Height = outerhboxHeight;
item3Width = outerhboxWidth * ( 5 / 15 );
item3Height = outerhboxHeight * ( 5 / 8 );
item4Width = outerhboxWidth * ( 5 / 15 ) / 2;
item4Height = outerhboxHeight * ( 3 / 8 );
item5Width = outerhboxWidth * ( 5 / 15 ) / 2;
item5Height = outerhboxHeight * ( 3 / 8 );
item6Width = outerhboxWidth * ( 5 / 15 );
item6Height = outerhboxHeight;
resolve();
}, 1000);
});
});
});
|
{
"pile_set_name": "Github"
}
|
!!!COM: Palestrina, Giovanni Perluigi da
!!!OPR: Missa De feria
!!!OMD: Benedictus
!!!OTL: First Section
**kern **kern **kern
*Ibass *Icalto *Icant
!Bassus !Altus !Cantus
*clefF4 *clefG2 *clefG2
*k[] *k[] *k[]
*E:phr *E:phr *E:phr
*M4/2 *M4/2 *M4/2
=1 =1 =1
0r 0A 0r
=2 =2 =2
0r 1A 0r
. 1d .
=3 =3 =3
0r 2c 0e
. 2A .
. 2.c .
. 4B .
=4 =4 =4
0r 2A 1e
. 2G .
. 1F 1a
=5 =5 =5
0r 4E 2g
. 4F .
. 4G 2e
. 4A .
. 4B 2.g
. 4G .
. [2c .
. . 4f
=6 =6 =6
0E 2c] 2e
. 2.B 2d
. . 1c
. 4A .
. [2A .
=7 =7 =7
1E 2A] 1B
. 2G# .
1A 2A 2c
. 2c 2e
=8 =8 =8
2G 2B 2.g
2E 1c .
. . 4f
2.G . 2e
. 2B 2d
4F . .
=9 =9 =9
2E 2c 2e
2D 2.B 2f
1C . 1e
. 4A .
. [2A .
=10 =10 =10
1BB 2A] 1r
. 2G# .
2AA 1A [1e
2A . .
=11 =11 =11
2.c 2r 1e]
. 2A .
4B . .
2A 2c 1e
2G 2B .
=12 =12 =12
1F 4A 1a
. 4B .
. 4c .
. 4d .
1E 4e 2g
. 4f .
. 2g 2e
=13 =13 =13
0r 2e 2.cc
. 1f .
. . 4b
. . 2a
. [2e 2g
=14 =14 =14
1r 2e] 1f
. 2d .
[1E 2c 2.e
. 4B .
. 4A 4f
=15 =15 =15
1E] 2B 2g
. 2c 1a
1E 1B .
. . 2g
=16 =16 =16
1A 2A 1cc
. 2e .
2G 2.g 1b
2E . .
. 4f .
=17 =17 =17
2.c 4e 2r
. 4d .
. 2e 2g
4B . .
2A 2c 2cc
2G [2d [2b
=18 =18 =18
1F 4d] 4b]
. 4c 4a
. 2A 1a
1E 1B .
. . 2g#
=19 =19 =19
2r 1A 0a
2A . .
2A 2r .
2A 2e .
=20 =20 =20
2G 2e 0r
2c 2e .
2B 2d .
[2A 2f .
=21 =21 =21
4A] 2e 1a
4G . .
4F 2.d .
4E . .
2F . 2a
. 4c .
2F 4c 2a
. 8B .
. 8A .
=22 =22 =22
2.E 2B 2g
. 2e 2cc
4F . .
2G 2.d 2b
[2F . [2a
. 4c .
=23 =23 =23
4F] 4A 4a]
4E 4B 4g
4D 1c 4f
4C . 4e
2D . 2f
2D 2B 2f
=24 =24 =24
1C 0c [0e
2r . .
2E . .
=25 =25 =25
2E 2r 1e]
2E 2B .
1D 2B 1r
. 2B .
=26 =26 =26
2F 2A 1r
2.E 2c .
. 2B 2r
4D . .
4C [2A 2e
4BB . .
=27 =27 =27
1C 4A] 2e
. 4G .
. 4G 2e
. 8F .
. 8E .
1D 4F 2d
. 4G .
. 4A 2f
. 4B .
=28 =28 =28
2C 2c 2e
2G 2.B 2.d
2A . .
. 4A 4c
2A [2A 2c
=29 =29 =29
1E 2A] 2B
. 2G# 2B
2r 1A 2.c
2A . .
. . 4d
=30 =30 =30
2A 2r 1e
2A 2e .
2G 2e 1r
2c 2e .
=31 =31 =31
2B 2d 1r
2.A 2.f .
. . 1a
4G 4e .
4F [2e .
4E . .
=32 =32 =32
2F 2e] 2a
2F 2d 2a
2.E [1e 2g
. . 2cc
4F . .
=33 =33 =33
2G 1e] 2b
2A . 2.a
1D 2r .
. . 4g
. 2d 4f
. . 4e
=34 =34 =34
2r 2d 2f
2D 2d 2f
2A 1c 2e
2A . 2f
=35 =35 =35
1F 1f 2a
. . 2a
1G 2e 2g
. [2d [2b
=36 =36 =36
2A 4d] 4b]
. 4c 4a
2F 4c 1a
. 8B .
. 8A .
1E 2B .
. 2B 2g#
=37 =37 =37
0AA 0A 0a
*- *- *-
!!!CDT: 1525/^1526/-1594/2/2
!!!OCY: Italia
!!!AGN: Mass (Paraphrase)
!!!AST: renaissance, vocal
!!!ASW: Gregorian Mass
!!!PWK: Masses, Book 3
!!!RNB: Cadence finals: A
!!!YOR: Le Opere Complete, v. 6, p. 84
!!!YOO: Rome, Italy: Fratelli Scalera
!!!END: 1992//
!!!EED: John Miller
!!!YEC: Copyright 2000, John Miller
!!!YEN: United States of America
!!!YEM: Rights to all derivative electronic formats reserved.
!!!YEM: Refer to licensing agreement for further details.
!!!YEM: This file must be accompanied by the licensing agreement.
!!!YEM: A copy of the licensing agreement may be found at http://www.music-cog.ohio-state.edu/HumdrumDatabases/Palestrina/license.txt
!!!EMD: converted to Humdrum by Bret Aarden
|
{
"pile_set_name": "Github"
}
|
{
"$schema" : "http://json-schema.org/draft-01/hyper-schema#",
"id" : "http://json-schema.org/draft-01/hyper-schema#",
"properties" : {
"links" : {
"type" : "array",
"items" : {"$ref" : "http://json-schema.org/draft-01/links#"},
"optional" : true
},
"fragmentResolution" : {
"type" : "string",
"optional" : true,
"default" : "dot-delimited"
},
"root" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"readonly" : {
"type" : "boolean",
"optional" : true,
"default" : false
},
"pathStart" : {
"type" : "string",
"optional" : true,
"format" : "uri"
},
"mediaType" : {
"type" : "string",
"optional" : true,
"format" : "media-type"
},
"alternate" : {
"type" : "array",
"items" : {"$ref" : "#"},
"optional" : true
}
},
"links" : [
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
},
{
"href" : "{id}",
"rel" : "self"
}
],
"fragmentResolution" : "dot-delimited",
"extends" : {"$ref" : "http://json-schema.org/draft-01/schema#"}
}
|
{
"pile_set_name": "Github"
}
|
### 中共党员大量死亡名单曝光 死因惊人一致
------------------------
#### [首页](https://github.com/gfw-breaker/banned-news/blob/master/README.md) | [手把手翻墙教程](https://github.com/gfw-breaker/guides/wiki) | [禁闻聚合安卓版](https://github.com/gfw-breaker/bn-android) | [网门安卓版](https://github.com/oGate2/oGate) | [神州正道安卓版](https://github.com/SzzdOgate/update)
<div><div class="featured_image">
<a href="https://i.ntdtv.com/assets/uploads/2020/03/GettyImages-1207083679.jpg" target="_blank">
<figure>
<img alt="中共党员大量死亡名单曝光 死因惊人一致" src="https://i.ntdtv.com/assets/uploads/2020/03/GettyImages-1207083679-800x450.jpg"/>
</figure><br/>
</a>
<span class="caption">
近日,一组来自中共内部的死亡名单曝光,多是因过劳死亡而且超过80%的是党员!示意图(STR/AFP via Getty Images)
</span>
</div>
</div><hr/>
#### [翻墙必看视频(文昭、江峰、法轮功、八九六四、香港反送中...)](https://github.com/gfw-breaker/banned-news/blob/master/pages/link3.md)
<div><div class="post_content" itemprop="articleBody">
<p>
【新唐人北京时间2020年03月17日讯】武汉疫情扩散全球,造成大量民众染疫及死亡。一组来自中共内部防疫人员的死亡名单,日前在网上曝光。奇怪的是,在这批数百人的死者中,超过80%的是中共党员,而且他们的死因绝大多数标注着“过劳死”,没有一个标注武汉肺炎。外界认为,中共一方面仍然在掩盖这次疫情的大量死亡真相;另一方面,也怕公布实情会引发中共官场的内部恐慌。
</p>
<p>
3月17日,推特网友“Jason V Lee”曝光了一份317人的死亡名单,让人感到惊讶的是,疫情之下,这些人多是过劳死亡而且超过80%的是党员!却没有一个人因武汉肺炎而死的。其中多人因肺炎而死亡,但没说是武汉肺炎。
</p>
<figure class="wp-caption alignnone" id="attachment_102801375" style="width: 590px">
<ok href="https://i.ntdtv.com/assets/uploads/2020/03/ETRscQ3UUAEI3cX.jpg">
<img alt="" class="size-full wp-image-102801375" src="https://i.ntdtv.com/assets/uploads/2020/03/ETRscQ3UUAEI3cX.jpg"/>
</ok>
<br/><figcaption class="wp-caption-text">
(网络截图)
</figcaption><br/>
</figure><br/>
<figure class="wp-caption alignnone" id="attachment_102801376" style="width: 590px">
<ok href="https://i.ntdtv.com/assets/uploads/2020/03/ETRscQ3UUAEI3cX-1.jpg">
<img alt="" class="size-full wp-image-102801376" src="https://i.ntdtv.com/assets/uploads/2020/03/ETRscQ3UUAEI3cX-1.jpg"/>
</ok>
<br/><figcaption class="wp-caption-text">
(网络截图
</figcaption><br/>
</figure><br/>
<figure class="wp-caption alignnone" id="attachment_102801377" style="width: 590px">
<ok href="https://i.ntdtv.com/assets/uploads/2020/03/ETRscQ1U0AASruC.jpg">
<img alt="" class="size-full wp-image-102801377" src="https://i.ntdtv.com/assets/uploads/2020/03/ETRscQ1U0AASruC.jpg"/>
</ok>
<br/><figcaption class="wp-caption-text">
(网络截图)
</figcaption><br/>
</figure><br/>
<figure class="wp-caption alignnone" id="attachment_102801379" style="width: 590px">
<ok href="https://i.ntdtv.com/assets/uploads/2020/03/ETRsbzBUwAE8zwk.jpg">
<img alt="" class="size-full wp-image-102801379" src="https://i.ntdtv.com/assets/uploads/2020/03/ETRsbzBUwAE8zwk.jpg"/>
</ok>
<br/><figcaption class="wp-caption-text">
(网络截图)
</figcaption><br/>
</figure><br/>
<figure class="wp-caption alignnone" id="attachment_102801378" style="width: 590px">
<ok href="https://i.ntdtv.com/assets/uploads/2020/03/ETRsbzBUEAAXW3R.jpg">
<img alt="" class="size-full wp-image-102801378" src="https://i.ntdtv.com/assets/uploads/2020/03/ETRsbzBUEAAXW3R.jpg"/>
</ok>
<br/><figcaption class="wp-caption-text">
(网络截图)
</figcaption><br/>
</figure><br/>
<p>
网友热议:
<br/>
“医生护士就这么死了,医护人员断层出现了!”
<br/>
“过劳死那么多人,证明感染人太多,党员都累死了。”
<br/>
“超过80%都是党员,希望他们在地狱继续相信共产党。”
</p>
<p>
“咦 这么多人死了 他们的亲人朋友都沉默吗?没人质疑反抗?”
<br/>
“这么多党员累死了,说明群众死的更多,只是没统计而已,党内只统计自己人,这些累死的去见其老祖宗马克思了!”
</p>
<figure class="wp-caption alignnone" id="attachment_102797930" style="width: 600px">
<ok href="https://i.ntdtv.com/assets/uploads/2020/03/ERVS2boUEAE2gsI.jpg">
<img alt="" class="size-medium wp-image-102797930" src="https://i.ntdtv.com/assets/uploads/2020/03/ERVS2boUEAE2gsI-600x304.jpg"/>
</ok>
<br/><figcaption class="wp-caption-text">
示意图(推特图片)
</figcaption><br/>
</figure><br/>
<p>
日前,有知情人向新唐人提供了一份“死亡名单”,在这份官方制定的名单中,仅在一页纸上就统计有65人死亡,大多是在疫情一线的中共党员和警察。死亡原因也多写着“过劳突发疾病”。
</p>
<p>
知情人表示,该名单是截至2月10日参与防疫人员的部分死亡名单。但实际上他们极有可能都是感染了武汉肺炎死亡,却不被计入武汉肺炎死亡名单,这是中共官方一贯造假的手法。
</p>
<p>
此前媒体刊发大量报导揭露,大量武汉病毒患者并没有被确诊。
</p>
<p>
3月上旬,一家来自中国山东省济宁市(距武汉病毒爆发的震中约450英里)
<ok href="https://www.ntdtv.com/gb/殡仪馆.htm">
殡仪馆
</ok>
的馆长透露,在他们近期来处理的大量尸体中,有越来越多的未确定原因的肺炎死者。
</p>
<p>
很多死于呼吸衰竭的人,医院并没有把他们确认为武汉病毒案例, 因而他们也就不在武汉病毒感染和死亡人数之列。
</p>
<p>
去年12月疫情爆发之初,众多的武汉病毒感染者就被政府拒绝检测确认,尽管他们感染的症状非常明显。但医院在未经中共高层批准的情况下,不能为患者进行病毒测试的。
</p>
<p>
医院明白死因,也有能力查明和标明死因,但他们却未或党组织授权测试确认,只能将死因统统归咎于未确诊肺炎。
</p>
<p>
这家
<ok href="https://www.ntdtv.com/gb/殡仪馆.htm">
殡仪馆
</ok>
发现了多具死于未确诊肺炎的尸体,数量是确诊武汉病毒死亡人数的数倍。
</p>
<p>
武汉病毒具有极强的传染能力,能够通过空气中的水滴微粒传染。如果对尸体处理不当,可以引发病毒的迅速传播。家属要求对逝者测试确认,并对近距离接触的家属进行测试,确诊,
<ok href="https://www.ntdtv.com/gb/隔离.htm">
隔离
</ok>
,以防止感染进一步扩大,但都被医院拒绝了。
</p>
<p>
从多家殡仪馆和殡葬服务机构汇总出来的资料显示,中共政府公布的武汉病毒感染和死亡数据,远远低于实际人数。进入火葬场的尸体绝大多数都是武汉病毒患者,而且尸体数量比正常的死亡数量多出许多。
</p>
<p>
这说明中共政府在刻意隐瞒武汉病毒肺炎的患病人数,并人为的将感染死亡人数隐瞒和降低。而中共公布的感染和死亡数据,只是巨量感染及死亡人数的冰山一角。
</p>
<p>
世界卫生组织顾问朗吉尼(Ira Longini)2月份警告称,疫情有可能进一步恶化,全球三分之二的人口最终可能会感染。他强调,虽然中国实施“封城”等遏阻措施,但并不能阻止这种病毒。
</p>
<p>
有美国专家模拟推演武汉疫情爆发的情况,结论是18个月之内,全球因感染而患病死亡的人数将高达6500万。
</p>
<p>
(记者李芸报导/责任编辑:李泉)
</p>
<div class="single_ad">
</div>
</div>
</div>
<hr/>
手机上长按并复制下列链接或二维码分享本文章:<br/>
https://github.com/gfw-breaker/banned-news/blob/master/pages/prog204/a102801373.md <br/>
<a href='https://github.com/gfw-breaker/banned-news/blob/master/pages/prog204/a102801373.md'><img src='https://github.com/gfw-breaker/banned-news/blob/master/pages/prog204/a102801373.md.png'/></a> <br/>
原文地址(需翻墙访问):https://www.ntdtv.com/gb/2020/03/17/a102801373.html
------------------------
#### [首页](https://github.com/gfw-breaker/banned-news/blob/master/README.md) | [一键翻墙软件](https://github.com/gfw-breaker/nogfw/blob/master/README.md) | [《九评共产党》](https://github.com/gfw-breaker/9ping.md/blob/master/README.md#九评之一评共产党是什么) | [《解体党文化》](https://github.com/gfw-breaker/jtdwh.md/blob/master/README.md) | [《共产主义的终极目的》](https://github.com/gfw-breaker/gczydzjmd.md/blob/master/README.md)
<img src='http://gfw-breaker.win/banned-news/pages/prog204/a102801373.md' width='0px' height='0px'/>
|
{
"pile_set_name": "Github"
}
|
{
"credit": "Made with Blockbench",
"textures": {
"0": "create:block/steam_engine_wheel",
"5": "create:block/brass_casing",
"7": "create:block/brass_gearbox",
"particle": "create:block/steam_engine_wheel"
},
"elements": [
{
"from": [29, 1, 11.5],
"to": [32, 3, 13.5],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 17]},
"faces": {
"north": {"uv": [6.5, 9, 8, 10], "rotation": 180, "texture": "#0"},
"east": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"},
"south": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"},
"west": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"},
"up": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"},
"down": {"uv": [0, 9, 1.5, 10], "rotation": 180, "texture": "#0"}
}
},
{
"from": [14.75, 7, 11.55],
"to": [30.75, 9, 13.45],
"rotation": {"angle": -22.5, "axis": "z", "origin": [15, 8, 21]},
"faces": {
"north": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"},
"south": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"},
"up": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"},
"down": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"}
}
},
{
"from": [22, 6, 6],
"to": [32, 10, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [-5, 8, 8]},
"faces": {
"north": {"uv": [2, 7, 7, 9], "texture": "#0"},
"east": {"uv": [0, 7, 2, 9], "texture": "#0"},
"south": {"uv": [2, 7, 7, 9], "texture": "#0"},
"west": {"uv": [0, 7, 2, 9], "texture": "#0"},
"up": {"uv": [2, 7, 7, 9], "texture": "#0"},
"down": {"uv": [2, 7, 7, 9], "texture": "#0"}
}
},
{
"from": [7, 7, 7],
"to": [23, 9, 9],
"rotation": {"angle": -22.5, "axis": "z", "origin": [23, 8, 8]},
"faces": {
"north": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"},
"south": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"},
"up": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"},
"down": {"uv": [0, 9, 8, 10], "rotation": 180, "texture": "#0"}
}
},
{
"from": [0, 0, 4],
"to": [16, 16, 15],
"faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#7"},
"east": {"uv": [0, 15.5, 8, 10], "rotation": 270, "texture": "#0"},
"south": {"uv": [0, 0, 16, 16], "texture": "#7"},
"west": {"uv": [8, 10.5, 16, 16], "rotation": 90, "texture": "#0"},
"up": {"uv": [8, 10.5, 16, 16], "rotation": 180, "texture": "#0"},
"down": {"uv": [8, 10.5, 16, 16], "texture": "#0"}
}
},
{
"from": [0, 0, 15],
"to": [16, 2, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [24, 8, 8]},
"faces": {
"north": {"uv": [0, 0, 16, 2], "texture": "#5"},
"east": {"uv": [0, 14, 1, 16], "texture": "#5"},
"south": {"uv": [0, 14, 16, 16], "texture": "#5"},
"west": {"uv": [15, 14, 16, 16], "texture": "#5"},
"up": {"uv": [0, 1, 16, 2], "texture": "#5"},
"down": {"uv": [0, 0, 16, 1], "texture": "#5"}
}
},
{
"from": [0, 14, 15],
"to": [16, 16, 16],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 16]},
"faces": {
"north": {"uv": [0, 0, 16, 2], "rotation": 180, "texture": "#5"},
"east": {"uv": [15, 14, 16, 16], "rotation": 180, "texture": "#5"},
"south": {"uv": [0, 14, 16, 16], "rotation": 180, "texture": "#5"},
"west": {"uv": [0, 14, 1, 16], "rotation": 180, "texture": "#5"},
"up": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#5"},
"down": {"uv": [0, 1, 16, 2], "rotation": 180, "texture": "#5"}
}
},
{
"from": [0, 2, 15],
"to": [2, 14, 16],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 16]},
"faces": {
"north": {"uv": [0, 0, 12, 2], "rotation": 270, "texture": "#5"},
"east": {"uv": [2, 1, 14, 2], "rotation": 90, "texture": "#5"},
"south": {"uv": [2, 14, 14, 16], "rotation": 90, "texture": "#5"},
"west": {"uv": [2, 0, 14, 1], "rotation": 90, "texture": "#5"},
"up": {"uv": [15, 14, 16, 16], "rotation": 90, "texture": "#5"},
"down": {"uv": [0, 14, 1, 16], "rotation": 90, "texture": "#5"}
}
},
{
"from": [14, 2, 15],
"to": [16, 14, 16],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 16]},
"faces": {
"north": {"uv": [0, 0, 12, 2], "rotation": 90, "texture": "#5"},
"east": {"uv": [2, 0, 14, 1], "rotation": 270, "texture": "#5"},
"south": {"uv": [2, 14, 14, 16], "rotation": 270, "texture": "#5"},
"west": {"uv": [2, 1, 14, 2], "rotation": 270, "texture": "#5"},
"up": {"uv": [0, 14, 1, 16], "rotation": 270, "texture": "#5"},
"down": {"uv": [15, 14, 16, 16], "rotation": 270, "texture": "#5"}
}
},
{
"from": [3, 3, -3.9],
"to": [13, 13, 5.1],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [11, 5, 16, 10], "texture": "#0"},
"east": {"uv": [11.5, 0, 16, 5], "texture": "#0"},
"south": {"uv": [11, 5, 16, 10], "texture": "#0"},
"west": {"uv": [11.5, 0, 16, 5], "rotation": 180, "texture": "#0"},
"up": {"uv": [11.5, 0, 16, 5], "rotation": 270, "texture": "#0"},
"down": {"uv": [11.5, 0, 16, 5], "rotation": 90, "texture": "#0"}
}
},
{
"from": [-0.5, 23.5, -1.9],
"to": [16.5, 28.5, 4.1],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [0, 0, 8.5, 2.5], "texture": "#0"},
"east": {"uv": [8.5, 0, 11.5, 2], "texture": "#0"},
"south": {"uv": [0, 0, 8.5, 2.5], "texture": "#0"},
"west": {"uv": [8.5, 0, 11.5, 2.5], "texture": "#0"},
"up": {"uv": [0, 2.5, 8.5, 5.5], "texture": "#0"},
"down": {"uv": [0, 2.5, 8.5, 5.5], "texture": "#0"}
}
},
{
"from": [-0.5, -12.5, -1.9],
"to": [16.5, -7.5, 4.1],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"},
"east": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"},
"south": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"},
"west": {"uv": [8.5, 0, 11.5, 2], "rotation": 180, "texture": "#0"},
"up": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"},
"down": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"}
}
},
{
"from": [23.5, -0.5, -1.9],
"to": [28.5, 16.5, 4.1],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [0, 0, 8.5, 2.5], "rotation": 270, "texture": "#0"},
"east": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 90, "texture": "#0"},
"south": {"uv": [0, 0, 8.5, 2.5], "rotation": 90, "texture": "#0"},
"west": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 90, "texture": "#0"},
"up": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 90, "texture": "#0"},
"down": {"uv": [8.5, 0, 11.5, 2], "rotation": 90, "texture": "#0"}
}
},
{
"from": [-12.5, -0.5, -1.9],
"to": [-7.5, 16.5, 4.1],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [0, 0, 8.5, 2.5], "rotation": 90, "texture": "#0"},
"east": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 270, "texture": "#0"},
"south": {"uv": [0, 0, 8.5, 2.5], "rotation": 270, "texture": "#0"},
"west": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 270, "texture": "#0"},
"up": {"uv": [8.5, 0, 11.5, 2], "rotation": 270, "texture": "#0"},
"down": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 270, "texture": "#0"}
}
},
{
"from": [-0.5, 23.5, -1.85],
"to": [16.5, 28.5, 4.05],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [0, 0, 8.5, 2.5], "texture": "#0"},
"east": {"uv": [8.5, 0, 11.5, 2.5], "texture": "#0"},
"south": {"uv": [0, 0, 8.5, 2.5], "texture": "#0"},
"west": {"uv": [8.5, 0, 11.5, 2.5], "texture": "#0"},
"up": {"uv": [0, 2.5, 8.5, 5.5], "texture": "#0"},
"down": {"uv": [0, 2.5, 8.5, 5.5], "texture": "#0"}
}
},
{
"from": [-0.5, -12.5, -1.85],
"to": [16.5, -7.5, 4.05],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"},
"east": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"},
"south": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"},
"west": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"},
"up": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"},
"down": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"}
}
},
{
"from": [-0.5, -12.5, -1.85],
"to": [16.5, -7.5, 4.05],
"rotation": {"angle": 45, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"},
"east": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"},
"south": {"uv": [0, 0, 8.5, 2.5], "rotation": 180, "texture": "#0"},
"west": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 180, "texture": "#0"},
"up": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"},
"down": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 180, "texture": "#0"}
}
},
{
"from": [-12.5, -0.5, -1.85],
"to": [-7.5, 16.5, 4.05],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [0, 0, 8.5, 2.5], "rotation": 90, "texture": "#0"},
"east": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 270, "texture": "#0"},
"south": {"uv": [0, 0, 8.5, 2.5], "rotation": 270, "texture": "#0"},
"west": {"uv": [0, 2.5, 8.5, 5.5], "rotation": 270, "texture": "#0"},
"up": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 270, "texture": "#0"},
"down": {"uv": [8.5, 0, 11.5, 2.5], "rotation": 270, "texture": "#0"}
}
},
{
"name": "spoke",
"from": [6, -8, -0.9],
"to": [10, 3, 3.1],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"},
"east": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"},
"south": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"},
"west": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"}
}
},
{
"name": "spoke",
"from": [6, 13, -0.9],
"to": [10, 24, 3.1],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [9, 4.5, 11, 10], "texture": "#0"},
"east": {"uv": [9, 4.5, 11, 10], "texture": "#0"},
"south": {"uv": [9, 4.5, 11, 10], "texture": "#0"},
"west": {"uv": [9, 4.5, 11, 10], "texture": "#0"}
}
},
{
"name": "spoke",
"from": [-8, 6, -0.9],
"to": [3, 10, 3.1],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"},
"south": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"},
"up": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"},
"down": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"}
}
},
{
"name": "spoke",
"from": [13, 6, -0.9],
"to": [24, 10, 3.1],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"},
"south": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"},
"up": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"},
"down": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"}
}
},
{
"name": "spoke",
"from": [-8, 6, -0.9],
"to": [3, 10, 3.1],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"},
"south": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"},
"up": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"},
"down": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"}
}
},
{
"name": "spoke",
"from": [6, -8, -0.9],
"to": [10, 3, 3.1],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"},
"east": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"},
"south": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"},
"west": {"uv": [9, 4.5, 11, 10], "rotation": 180, "texture": "#0"}
}
},
{
"name": "spoke",
"from": [13, 6, -0.9],
"to": [24, 10, 3.1],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [9, 4.5, 11, 10], "rotation": 270, "texture": "#0"},
"south": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"},
"up": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"},
"down": {"uv": [9, 4.5, 11, 10], "rotation": 90, "texture": "#0"}
}
},
{
"name": "spoke",
"from": [6, 13, -0.9],
"to": [10, 24, 3.1],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 1.1]},
"faces": {
"north": {"uv": [9, 4.5, 11, 10], "texture": "#0"},
"east": {"uv": [9, 4.5, 11, 10], "texture": "#0"},
"south": {"uv": [9, 4.5, 11, 10], "texture": "#0"},
"west": {"uv": [9, 4.5, 11, 10], "texture": "#0"}
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [75, -67, 0],
"translation": [0, 2.5, -2],
"scale": [0.375, 0.375, 0.375]
},
"thirdperson_lefthand": {
"rotation": [75, -67, 0],
"translation": [0, 2.5, -2],
"scale": [0.375, 0.375, 0.375]
},
"firstperson_righthand": {
"rotation": [0, -91, 0],
"scale": [0.4, 0.4, 0.4]
},
"firstperson_lefthand": {
"rotation": [0, -91, 0],
"scale": [0.4, 0.4, 0.4]
},
"ground": {
"rotation": [90, 0, 0],
"translation": [0, 2, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"translation": [-0.25, 0.75, 0],
"scale": [0.35, 0.35, 0.35]
},
"fixed": {
"scale": [0.45, 0.45, 0.45]
}
},
"groups": [
{
"name": "transmission",
"origin": [-8, 8, 8],
"children": [0, 1, 2, 3, 4, 5, 6, 7, 8]
},
{
"name": "wheel",
"origin": [24, 8, 8],
"children": [9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
}
]
}
|
{
"pile_set_name": "Github"
}
|
h2. 定义 {anchor:definitions}
h3. AccessTokenModel {anchor:accesstokenmodel}
||名称||说明||类型||
|*access_token*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*expires_in*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*refresh_token*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*scope*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*token_type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. ActionEntity {anchor:actionentity}
||名称||说明||类型||
|*action*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*defaultCheck*\\ \\ _可选_||*样例* : {noformat}true{noformat}||boolean|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. ApplicationContext {anchor:applicationcontext}
||名称||说明||类型||
|*applicationName*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*autowireCapableBeanFactory*\\ \\ _可选_||*样例* : {noformat}"[#autowirecapablebeanfactory]"{noformat}||[AutowireCapableBeanFactory|#autowirecapablebeanfactory]|
|*beanDefinitionCount*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*beanDefinitionNames*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*classLoader*\\ \\ _可选_||*样例* : {noformat}"[#classloader]"{noformat}||[ClassLoader|#classloader]|
|*displayName*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*environment*\\ \\ _可选_||*样例* : {noformat}"[#environment]"{noformat}||[Environment|#environment]|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*parent*\\ \\ _可选_||*样例* : {noformat}"[#applicationcontext]"{noformat}||[ApplicationContext|#applicationcontext]|
|*parentBeanFactory*\\ \\ _可选_||*样例* : {noformat}"[#beanfactory]"{noformat}||[BeanFactory|#beanfactory]|
|*startupDate*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
h3. Authentication {anchor:authentication}
||名称||说明||类型||
|*attributes*\\ \\ _可选_||*样例* : {noformat}{\\ "string" : "[#serializable]"\\ }{noformat}||< string, [Serializable|#serializable] > map|
|*permissions*\\ \\ _可选_||*样例* : {noformat}[ "[#permission]" ]{noformat}||< [Permission|#permission] > array|
|*roles*\\ \\ _可选_||*样例* : {noformat}[ "[#role]" ]{noformat}||< [Role|#role] > array|
|*user*\\ \\ _可选_||*样例* : {noformat}"[#user]"{noformat}||[User|#user]|
h3. AuthorizationCodeModel {anchor:authorizationcodemodel}
||名称||说明||类型||
|*code*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*redirectUri*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*state*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. AuthorizationSettingDetailEntity {anchor:authorizationsettingdetailentity}
||名称||说明||类型||
|*actions*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*dataAccesses*\\ \\ _可选_||*样例* : {noformat}[ "[#dataaccessentity]" ]{noformat}||< [DataAccessEntity|#dataaccessentity] > array|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*merge*\\ \\ _可选_||*样例* : {noformat}true{noformat}||boolean|
|*permissionId*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*priority*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*settingId*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
h3. AuthorizationSettingEntity {anchor:authorizationsettingentity}
||名称||说明||类型||
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*details*\\ \\ _可选_||*样例* : {noformat}[ "[#authorizationsettingdetailentity]" ]{noformat}||< [AuthorizationSettingDetailEntity|#authorizationsettingdetailentity] > array|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*menus*\\ \\ _可选_||*样例* : {noformat}[ "[#authorizationsettingmenuentity]" ]{noformat}||< [AuthorizationSettingMenuEntity|#authorizationsettingmenuentity] > array|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*settingFor*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*type*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
h3. AuthorizationSettingMenuEntity {anchor:authorizationsettingmenuentity}
||名称||说明||类型||
|*children*\\ \\ _可选_||*样例* : {noformat}[ "[#authorizationsettingmenuentity]" ]{noformat}||< [AuthorizationSettingMenuEntity|#authorizationsettingmenuentity] > array|
|*config*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*level*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*menuId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*parentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*path*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*settingId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*sortIndex*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
h3. AutowireCapableBeanFactory {anchor:autowirecapablebeanfactory}
_类型_ : object
h3. BeanFactory {anchor:beanfactory}
_类型_ : object
h3. BindRoleUserEntity {anchor:bindroleuserentity}
||名称||说明||类型||
|*createTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*creatorId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*password*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*roles*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*salt*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*username*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. ClassLoader {anchor:classloader}
||名称||说明||类型||
|*parent*\\ \\ _可选_||*样例* : {noformat}"[#classloader]"{noformat}||[ClassLoader|#classloader]|
h3. DataAccessConfig {anchor:dataaccessconfig}
||名称||说明||类型||
|*action*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. DataAccessEntity {anchor:dataaccessentity}
||名称||说明||类型||
|*action*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*config*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. Department {anchor:department}
||名称||说明||类型||
|*code*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*org*\\ \\ _可选_||*样例* : {noformat}"[#organization]"{noformat}||[Organization|#organization]|
h3. DepartmentEntity {anchor:departmententity}
||名称||说明||类型||
|*children*\\ \\ _可选_||*样例* : {noformat}[ "[#departmententity]" ]{noformat}||< [DepartmentEntity|#departmententity] > array|
|*code*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*departmentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*level*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*orgId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*parentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*path*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*sortIndex*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
h3. District {anchor:district}
||名称||说明||类型||
|*code*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*fullName*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. DistrictEntity {anchor:districtentity}
||名称||说明||类型||
|*children*\\ \\ _可选_||*样例* : {noformat}[ "[#districtentity]" ]{noformat}||< [DistrictEntity|#districtentity] > array|
|*code*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*fullName*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*level*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*levelCode*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*levelName*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*parentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*path*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*sortIndex*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
h3. DynamicDataSourceConfig {anchor:dynamicdatasourceconfig}
||名称||说明||类型||
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. DynamicFormColumnBindEntity {anchor:dynamicformcolumnbindentity}
||名称||说明||类型||
|*columns*\\ \\ _可选_||*样例* : {noformat}[ "[#dynamicformcolumnentity]" ]{noformat}||< [DynamicFormColumnEntity|#dynamicformcolumnentity] > array|
|*form*\\ \\ _可选_||*样例* : {noformat}"[#dynamicformentity]"{noformat}||[DynamicFormEntity|#dynamicformentity]|
h3. DynamicFormColumnEntity {anchor:dynamicformcolumnentity}
||名称||说明||类型||
|*alias*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*columnName*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*dataType*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*dictConfig*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*dictId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*dictParserId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*formId*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*javaType*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*jdbcType*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*length*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*name*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*precision*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*scale*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*sortIndex*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
h3. DynamicFormDeployLogEntity {anchor:dynamicformdeploylogentity}
||名称||说明||类型||
|*deployTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*formId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*metaData*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*version*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
h3. DynamicFormEntity {anchor:dynamicformentity}
||名称||说明||类型||
|*alias*\\ \\ _可选_||表别名.\\ \\ *样例* : {noformat}"testForm"{noformat}||string|
|*correlations*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*createTime*\\ \\ _可选_||创建时间,新增时自动设置.\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
|*creatorId*\\ \\ _可选_||创建人,根据当前用户自动获取.\\ \\ *样例* : {noformat}"1"{noformat}||string|
|*dataSourceId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*databaseTableName*\\ \\ _必填_||数据库表名\\ \\ *样例* : {noformat}"f_test_form"{noformat}||string|
|*deployed*\\ \\ _可选_||是否已发布,发布时自动设置.\\ \\ *样例* : {noformat}false{noformat}||boolean|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _必填_||表单名称\\ \\ *样例* : {noformat}"测试表单"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*triggers*\\ \\ _可选_||触发器.\\ \\ *样例* : {noformat}"[{\"language\":\"groovy\",\"script\":\" return true;\"}]"{noformat}||string|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*updateTime*\\ \\ _可选_||创建时间,修改时自动设置.\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
|*version*\\ \\ _可选_||版本号,无需设置,每次保存自动自增.\\ \\ *样例* : {noformat}1{noformat}||integer (int64)|
h3. Environment {anchor:environment}
||名称||说明||类型||
|*activeProfiles*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*defaultProfiles*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
h3. FileInfoEntity {anchor:fileinfoentity}
||名称||说明||类型||
|*classified*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*createTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*creatorId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*location*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*md5*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*size*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. ImplicitAccessTokenModel {anchor:implicitaccesstokenmodel}
||名称||说明||类型||
|*access_token*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*expires_in*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*redirect_uri*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*state*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*token_type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. Map«string,List«ObjectMetadata»» {anchor:319663d63a5163426e0a9ccab8e91f77}
_类型_ : < string, [List|#list] > map
h3. MenuEntity {anchor:menuentity}
||名称||说明||类型||
|*children*\\ \\ _可选_||*样例* : {noformat}[ "[#menuentity]" ]{noformat}||< [MenuEntity|#menuentity] > array|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*icon*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*level*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*parentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*path*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*permissionId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*sortIndex*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*url*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. OAuth2Client {anchor:oauth2client}
||名称||说明||类型||
|*createTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*defaultGrantScope*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*ownerId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*redirectUri*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*secret*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*supportGrantTypes*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
h3. OAuth2ClientEntity {anchor:oauth2cliententity}
||名称||说明||类型||
|*createTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*creatorId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*defaultGrantScope*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*ownerId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*redirectUri*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*secret*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*supportGrantTypes*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. OAuth2ServerConfigEntity {anchor:oauth2serverconfigentity}
||名称||说明||类型||
|*accessTokenUrl*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*apiBaseUrl*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*authUrl*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*clientId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*clientSecret*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*provider*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*redirectUri*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
h3. OAuth2UserTokenEntity {anchor:oauth2usertokenentity}
||名称||说明||类型||
|*accessToken*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*clientId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*clientUserId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*createTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*expiresIn*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*grantType*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*refreshToken*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*scope*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*serverId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*serverUserId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*updateTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
h3. ObjectMetadata {anchor:objectmetadata}
||名称||说明||类型||
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||enum (TABLE, VIEW, SEQUENCES)|
h3. OptionalField {anchor:optionalfield}
||名称||说明||类型||
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. Organization {anchor:organization}
||名称||说明||类型||
|*code*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*district*\\ \\ _可选_||*样例* : {noformat}"[#district]"{noformat}||[District|#district]|
|*fullName*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. OrganizationalEntity {anchor:organizationalentity}
||名称||说明||类型||
|*children*\\ \\ _可选_||*样例* : {noformat}[ "[#organizationalentity]" ]{noformat}||< [OrganizationalEntity|#organizationalentity] > array|
|*code*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*districtId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*fullName*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*level*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*optionalRoles*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*orgId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*parentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*path*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*sortIndex*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
h3. PagerResult«AuthorizationSettingEntity» {anchor:f8441b82a42771685acc229c7164da92}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#authorizationsettingentity]" ]{noformat}||< [AuthorizationSettingEntity|#authorizationsettingentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«DepartmentEntity» {anchor:0167b0879b1a2fbf522f91fb37d3f628}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#departmententity]" ]{noformat}||< [DepartmentEntity|#departmententity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«DistrictEntity» {anchor:7ae352fc158747f08dd5eb90855a89f8}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#districtentity]" ]{noformat}||< [DistrictEntity|#districtentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«DynamicFormDeployLogEntity» {anchor:27fe728492934f59e88d33a2b3766933}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#dynamicformdeploylogentity]" ]{noformat}||< [DynamicFormDeployLogEntity|#dynamicformdeploylogentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«DynamicFormEntity» {anchor:e4260528def855a58a0656f691a7915f}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#dynamicformentity]" ]{noformat}||< [DynamicFormEntity|#dynamicformentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«FileInfoEntity» {anchor:9d35a78643baac21c0fe6f107f9d2240}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#fileinfoentity]" ]{noformat}||< [FileInfoEntity|#fileinfoentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«MenuEntity» {anchor:7e2ce4331019959450104bfb2dffd23f}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#menuentity]" ]{noformat}||< [MenuEntity|#menuentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«OAuth2ServerConfigEntity» {anchor:ebda22c7bc1513232ab81083e253e208}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#oauth2serverconfigentity]" ]{noformat}||< [OAuth2ServerConfigEntity|#oauth2serverconfigentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«OAuth2UserTokenEntity» {anchor:a6a076d035327679df47051bad4a58ab}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#oauth2usertokenentity]" ]{noformat}||< [OAuth2UserTokenEntity|#oauth2usertokenentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«OrganizationalEntity» {anchor:ca90e82f68dd6bae04544c264662a182}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#organizationalentity]" ]{noformat}||< [OrganizationalEntity|#organizationalentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«PermissionEntity» {anchor:8630f4cda224d8ff5faf619fac8c9875}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#permissionentity]" ]{noformat}||< [PermissionEntity|#permissionentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«PersonEntity» {anchor:8c2ab88d5455871f901a74e62b505b47}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#personentity]" ]{noformat}||< [PersonEntity|#personentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«PositionEntity» {anchor:6e02dbdccfce51084450a2d632d0fe45}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#positionentity]" ]{noformat}||< [PositionEntity|#positionentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«RelationDefineEntity» {anchor:bd1d9065a052eddc01b75243abd873cd}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#relationdefineentity]" ]{noformat}||< [RelationDefineEntity|#relationdefineentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«RelationInfoEntity» {anchor:720330473169ba94d7e5e1840dac11db}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#relationinfoentity]" ]{noformat}||< [RelationInfoEntity|#relationinfoentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«RoleEntity» {anchor:6e67c47f04808732b2f0546672e9f4ca}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#roleentity]" ]{noformat}||< [RoleEntity|#roleentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«ScheduleJobEntity» {anchor:3c5582dff446edfec2b56a38e400f979}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#schedulejobentity]" ]{noformat}||< [ScheduleJobEntity|#schedulejobentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«ScriptEntity» {anchor:8600a8255df0072a9ebdcef867f5c524}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#scriptentity]" ]{noformat}||< [ScriptEntity|#scriptentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«UserEntity» {anchor:8c19b416cd9de9ffbed9082acff5fc80}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "[#userentity]" ]{noformat}||< [UserEntity|#userentity] > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. PagerResult«object» {anchor:87daa132c4ff15bc24c3702dd105f6c8}
分页结果
||名称||说明||类型||
|*data*\\ \\ _可选_||查询结果\\ \\ *样例* : {noformat}[ "object" ]{noformat}||< object > array|
|*total*\\ \\ _可选_||数据总数量\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
h3. ParentPermission {anchor:parentpermission}
||名称||说明||类型||
|*actions*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*permission*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. Permission {anchor:permission}
||名称||说明||类型||
|*actions*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*dataAccesses*\\ \\ _可选_||*样例* : {noformat}[ "[#dataaccessconfig]" ]{noformat}||< [DataAccessConfig|#dataaccessconfig] > array|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. PermissionEntity {anchor:permissionentity}
||名称||说明||类型||
|*actions*\\ \\ _可选_||*样例* : {noformat}[ "[#actionentity]" ]{noformat}||< [ActionEntity|#actionentity] > array|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*模式* : {noformat}"[a-zA-Z0-9_\\-]+"{noformat}*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*optionalFields*\\ \\ _可选_||*样例* : {noformat}[ "[#optionalfield]" ]{noformat}||< [OptionalField|#optionalfield] > array|
|*parents*\\ \\ _可选_||*样例* : {noformat}[ "[#parentpermission]" ]{noformat}||< [ParentPermission|#parentpermission] > array|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*supportDataAccessTypes*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. PersonAuthBindEntity {anchor:personauthbindentity}
||名称||说明||类型||
|*email*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*personUser*\\ \\ _可选_||*样例* : {noformat}"[#personuserentity]"{noformat}||[PersonUserEntity|#personuserentity]|
|*phone*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*photo*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*positionIds*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*remark*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*sex*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*userId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. PersonEntity {anchor:personentity}
||名称||说明||类型||
|*email*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*phone*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*photo*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*remark*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*sex*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*userId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. PersonUserEntity {anchor:personuserentity}
||名称||说明||类型||
|*password*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*username*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. Personnel {anchor:personnel}
||名称||说明||类型||
|*email*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*phone*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*photo*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. PersonnelAuthorization {anchor:personnelauthorization}
||名称||说明||类型||
|*allDepartmentId*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*allDistrictId*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*allOrgId*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*allPositionId*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*departmentIds*\\ \\ _可选_||*样例* : {noformat}[ "[#6cb863976d93d76997d3a0a3d6c32f27]" ]{noformat}||< [TreeNode«string»|#6cb863976d93d76997d3a0a3d6c32f27] > array|
|*districtIds*\\ \\ _可选_||*样例* : {noformat}[ "[#6cb863976d93d76997d3a0a3d6c32f27]" ]{noformat}||< [TreeNode«string»|#6cb863976d93d76997d3a0a3d6c32f27] > array|
|*orgIds*\\ \\ _可选_||*样例* : {noformat}[ "[#6cb863976d93d76997d3a0a3d6c32f27]" ]{noformat}||< [TreeNode«string»|#6cb863976d93d76997d3a0a3d6c32f27] > array|
|*personnel*\\ \\ _可选_||*样例* : {noformat}"[#personnel]"{noformat}||[Personnel|#personnel]|
|*positionIds*\\ \\ _可选_||*样例* : {noformat}[ "[#6cb863976d93d76997d3a0a3d6c32f27]" ]{noformat}||< [TreeNode«string»|#6cb863976d93d76997d3a0a3d6c32f27] > array|
|*positions*\\ \\ _可选_||*样例* : {noformat}[ "[#position]" ]{noformat}||< [Position|#position] > array|
|*relations*\\ \\ _可选_||*样例* : {noformat}"[#relations]"{noformat}||[Relations|#relations]|
|*rootDepartmentId*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*rootDistrictId*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*rootOrgId*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*rootPositionId*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
h3. Position {anchor:position}
||名称||说明||类型||
|*code*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*department*\\ \\ _可选_||*样例* : {noformat}"[#department]"{noformat}||[Department|#department]|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. PositionEntity {anchor:positionentity}
||名称||说明||类型||
|*children*\\ \\ _可选_||*样例* : {noformat}[ "[#positionentity]" ]{noformat}||< [PositionEntity|#positionentity] > array|
|*departmentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*level*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*parentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*path*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*positionId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*remark*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*roles*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*sortIndex*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
h3. RedirectView {anchor:redirectview}
||名称||说明||类型||
|*applicationContext*\\ \\ _可选_||*样例* : {noformat}"[#applicationcontext]"{noformat}||[ApplicationContext|#applicationcontext]|
|*attributesMap*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*beanName*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*contentType*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*exposePathVariables*\\ \\ _可选_||*样例* : {noformat}true{noformat}||boolean|
|*hosts*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*propagateQueryProperties*\\ \\ _可选_||*样例* : {noformat}true{noformat}||boolean|
|*redirectView*\\ \\ _可选_||*样例* : {noformat}true{noformat}||boolean|
|*requestContextAttribute*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*staticAttributes*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*url*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. Relation {anchor:relation}
||名称||说明||类型||
|*direction*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||enum (POSITIVE, REVERSE, ALL)|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*relation*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*target*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*targetObject*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. RelationDefineEntity {anchor:relationdefineentity}
||名称||说明||类型||
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*typeId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. RelationInfoEntity {anchor:relationinfoentity}
||名称||说明||类型||
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*relationFrom*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*relationId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*relationTo*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*relationTypeFrom*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*relationTypeTo*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
h3. Relations {anchor:relations}
||名称||说明||类型||
|*all*\\ \\ _可选_||*样例* : {noformat}[ "[#relation]" ]{noformat}||< [Relation|#relation] > array|
h3. ResponseMessage {anchor:responsemessage}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"object"{noformat}||object|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«Authentication» {anchor:91e04724f2ad858185d5fc280d46daa4}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#authentication]"{noformat}||[Authentication|#authentication]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«AuthorizationSettingEntity» {anchor:c2f4413fddae73a407b1566ae2880d25}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#authorizationsettingentity]"{noformat}||[AuthorizationSettingEntity|#authorizationsettingentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«DepartmentEntity» {anchor:494d2e8ada457977fe25c668a34a06f7}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#departmententity]"{noformat}||[DepartmentEntity|#departmententity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«DistrictEntity» {anchor:e9e4c971e48ff61d32412141df044f36}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#districtentity]"{noformat}||[DistrictEntity|#districtentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«DynamicFormColumnBindEntity» {anchor:e7f4b98f55b7cb1bb5814471463d959a}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#dynamicformcolumnbindentity]"{noformat}||[DynamicFormColumnBindEntity|#dynamicformcolumnbindentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«DynamicFormDeployLogEntity» {anchor:a2d83137608215d878bebe740d227f8d}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#dynamicformdeploylogentity]"{noformat}||[DynamicFormDeployLogEntity|#dynamicformdeploylogentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«DynamicFormEntity» {anchor:3f6a79e1f3372ef93cbb9d8864461030}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#dynamicformentity]"{noformat}||[DynamicFormEntity|#dynamicformentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«FileInfoEntity» {anchor:dccd344201bca930cbb01c5576401ddd}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#fileinfoentity]"{noformat}||[FileInfoEntity|#fileinfoentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«AuthorizationSettingEntity»» {anchor:212938092e05225001462abfc2af0b7f}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#authorizationsettingentity]" ]{noformat}||< [AuthorizationSettingEntity|#authorizationsettingentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«DepartmentEntity»» {anchor:27bd3061635415c4ea0c73c653f47acf}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#departmententity]" ]{noformat}||< [DepartmentEntity|#departmententity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«DistrictEntity»» {anchor:020e52a447243dd2c4d0bef080da4b24}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#districtentity]" ]{noformat}||< [DistrictEntity|#districtentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«DynamicDataSourceConfig»» {anchor:b5a7cbe033a2131fc198f225ddd71b9d}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#dynamicdatasourceconfig]" ]{noformat}||< [DynamicDataSourceConfig|#dynamicdatasourceconfig] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«DynamicFormColumnEntity»» {anchor:7db23ee003946511961f3a7df29c6d8d}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#dynamicformcolumnentity]" ]{noformat}||< [DynamicFormColumnEntity|#dynamicformcolumnentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«DynamicFormDeployLogEntity»» {anchor:19f5d621630c200f26659affa8d245be}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#dynamicformdeploylogentity]" ]{noformat}||< [DynamicFormDeployLogEntity|#dynamicformdeploylogentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«DynamicFormEntity»» {anchor:26fa949c2addeecdfcd02861128889bd}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#dynamicformentity]" ]{noformat}||< [DynamicFormEntity|#dynamicformentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«FileInfoEntity»» {anchor:ec6dc31ad20662480c1d124b03ac7a8d}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#fileinfoentity]" ]{noformat}||< [FileInfoEntity|#fileinfoentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«MenuEntity»» {anchor:ebcb301625271fb0be42fdd8ac1f9cd7}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#menuentity]" ]{noformat}||< [MenuEntity|#menuentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«OAuth2Client»» {anchor:04bd1f7c2172df55357d15dd7a4b020d}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#oauth2client]" ]{noformat}||< [OAuth2Client|#oauth2client] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«OAuth2ServerConfigEntity»» {anchor:7c0de841c030a56e36a3592bab2f4b70}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#oauth2serverconfigentity]" ]{noformat}||< [OAuth2ServerConfigEntity|#oauth2serverconfigentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«OAuth2UserTokenEntity»» {anchor:19dfe8ccdff0ac64ffddf20e38f600c3}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#oauth2usertokenentity]" ]{noformat}||< [OAuth2UserTokenEntity|#oauth2usertokenentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«OrganizationalEntity»» {anchor:3dd66bd50330e0634288732801c6eae6}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#organizationalentity]" ]{noformat}||< [OrganizationalEntity|#organizationalentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«PermissionEntity»» {anchor:f416115c1aec36913d87bd83aa6b2323}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#permissionentity]" ]{noformat}||< [PermissionEntity|#permissionentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«PersonEntity»» {anchor:7d0d15c646ed164f964fb8d2f6b3000a}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#personentity]" ]{noformat}||< [PersonEntity|#personentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«PositionEntity»» {anchor:4a3d2505235b212b6d947baba2efb5e6}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#positionentity]" ]{noformat}||< [PositionEntity|#positionentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«RelationDefineEntity»» {anchor:ee6962a89a88ef309187bb871e9cdfd1}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#relationdefineentity]" ]{noformat}||< [RelationDefineEntity|#relationdefineentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«RelationInfoEntity»» {anchor:dbc09948d0a6db8c21cecb87af87fa6f}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#relationinfoentity]" ]{noformat}||< [RelationInfoEntity|#relationinfoentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«RoleEntity»» {anchor:6470682b8c8826c2502a362cccfb40a3}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#roleentity]" ]{noformat}||< [RoleEntity|#roleentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«ScheduleJobEntity»» {anchor:f93b73ff5f600449b044cf276a20c95d}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#schedulejobentity]" ]{noformat}||< [ScheduleJobEntity|#schedulejobentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«ScriptEntity»» {anchor:d6f39903f6ccd973fe4476e4bdd6b638}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#scriptentity]" ]{noformat}||< [ScriptEntity|#scriptentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«SqlExecuteResult»» {anchor:ccb3581f1a83df607e130bbc2cc8649a}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#sqlexecuteresult]" ]{noformat}||< [SqlExecuteResult|#sqlexecuteresult] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«TransactionInfo»» {anchor:9e1189b7efd061306fec6127a959452d}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#transactioninfo]" ]{noformat}||< [TransactionInfo|#transactioninfo] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«UserEntity»» {anchor:7009b808a7062b09cd5057c748edf5ce}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#userentity]" ]{noformat}||< [UserEntity|#userentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«UserMenuEntity»» {anchor:1eddb0f64b7f488855f93d644b623abe}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#usermenuentity]" ]{noformat}||< [UserMenuEntity|#usermenuentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«UserSettingEntity»» {anchor:8e2573283f33b25a5c607100d6cc3f8a}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#usersettingentity]" ]{noformat}||< [UserSettingEntity|#usersettingentity] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«UserToken»» {anchor:3a9a2f2c4c0680c5729862f4845492b2}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "[#usertoken]" ]{noformat}||< [UserToken|#usertoken] > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«List«string»» {anchor:fc10708f9a97feca7dc9e38bed038c18}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«Map«string,List«ObjectMetadata»»» {anchor:b457b349a06a33514d97f779d275a74f}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}{\\ "string" : [ "[#objectmetadata]" ]\\ }{noformat}||< string, < [ObjectMetadata|#objectmetadata] > array > map|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«Map«string,object»» {anchor:06af4f2009dab634c08e24b8b0f26c2c}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"object"{noformat}||object|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«MenuEntity» {anchor:70aebc08733114eb863389fdebbff05d}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#menuentity]"{noformat}||[MenuEntity|#menuentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«OAuth2Client» {anchor:ebb1050c759c13591fdd208d058d0332}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#oauth2client]"{noformat}||[OAuth2Client|#oauth2client]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«OAuth2ServerConfigEntity» {anchor:f49c55e99fe094081dd3c91f972f307a}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#oauth2serverconfigentity]"{noformat}||[OAuth2ServerConfigEntity|#oauth2serverconfigentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«OAuth2UserTokenEntity» {anchor:9ce3adcac2f6b56f6a853c19d034f501}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#oauth2usertokenentity]"{noformat}||[OAuth2UserTokenEntity|#oauth2usertokenentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«OrganizationalEntity» {anchor:05d6cc19f6ee049e0ac5098efd85ec2d}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#organizationalentity]"{noformat}||[OrganizationalEntity|#organizationalentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«AuthorizationSettingEntity»» {anchor:ab7d3745d6ceba77fc00d0bdf50dbd14}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#f8441b82a42771685acc229c7164da92]"{noformat}||[PagerResult«AuthorizationSettingEntity»|#f8441b82a42771685acc229c7164da92]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«DepartmentEntity»» {anchor:2d642eb6e8bf8069ea7d8748f89a1953}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#0167b0879b1a2fbf522f91fb37d3f628]"{noformat}||[PagerResult«DepartmentEntity»|#0167b0879b1a2fbf522f91fb37d3f628]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«DistrictEntity»» {anchor:abaea98c9cec2051a3588b919068948f}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#7ae352fc158747f08dd5eb90855a89f8]"{noformat}||[PagerResult«DistrictEntity»|#7ae352fc158747f08dd5eb90855a89f8]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«DynamicFormDeployLogEntity»» {anchor:af1a0c73ed9afec5c76ebf1dce361e01}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#27fe728492934f59e88d33a2b3766933]"{noformat}||[PagerResult«DynamicFormDeployLogEntity»|#27fe728492934f59e88d33a2b3766933]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«DynamicFormEntity»» {anchor:79912e82f1deb6279e26d7fd6a3b5046}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#e4260528def855a58a0656f691a7915f]"{noformat}||[PagerResult«DynamicFormEntity»|#e4260528def855a58a0656f691a7915f]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«FileInfoEntity»» {anchor:514595c8dda5f56bb0f5c31d0b5c3214}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#9d35a78643baac21c0fe6f107f9d2240]"{noformat}||[PagerResult«FileInfoEntity»|#9d35a78643baac21c0fe6f107f9d2240]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«MenuEntity»» {anchor:988c76f931d9e2f2511502e7d7e19ce1}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#7e2ce4331019959450104bfb2dffd23f]"{noformat}||[PagerResult«MenuEntity»|#7e2ce4331019959450104bfb2dffd23f]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«OAuth2ServerConfigEntity»» {anchor:9418f129377a4c78a87d34891784b4ad}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#ebda22c7bc1513232ab81083e253e208]"{noformat}||[PagerResult«OAuth2ServerConfigEntity»|#ebda22c7bc1513232ab81083e253e208]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«OAuth2UserTokenEntity»» {anchor:652849cecf290786c83f3915b818f8c1}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#a6a076d035327679df47051bad4a58ab]"{noformat}||[PagerResult«OAuth2UserTokenEntity»|#a6a076d035327679df47051bad4a58ab]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«OrganizationalEntity»» {anchor:1e34e66cd932a6e9a2a19ae61f935332}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#ca90e82f68dd6bae04544c264662a182]"{noformat}||[PagerResult«OrganizationalEntity»|#ca90e82f68dd6bae04544c264662a182]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«PermissionEntity»» {anchor:f0740da5a603024d54cffe67ebcfe2f3}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#8630f4cda224d8ff5faf619fac8c9875]"{noformat}||[PagerResult«PermissionEntity»|#8630f4cda224d8ff5faf619fac8c9875]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«PersonEntity»» {anchor:35dd428b2aeda09b4672b75af069d2c1}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#8c2ab88d5455871f901a74e62b505b47]"{noformat}||[PagerResult«PersonEntity»|#8c2ab88d5455871f901a74e62b505b47]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«PositionEntity»» {anchor:0b9846aedba34500c09ff8c883f89c41}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#6e02dbdccfce51084450a2d632d0fe45]"{noformat}||[PagerResult«PositionEntity»|#6e02dbdccfce51084450a2d632d0fe45]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«RelationDefineEntity»» {anchor:858faa3bec7747a89f047157de5fa7b5}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#bd1d9065a052eddc01b75243abd873cd]"{noformat}||[PagerResult«RelationDefineEntity»|#bd1d9065a052eddc01b75243abd873cd]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«RelationInfoEntity»» {anchor:662abf311f6756ce1515cfc1f3d6497b}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#720330473169ba94d7e5e1840dac11db]"{noformat}||[PagerResult«RelationInfoEntity»|#720330473169ba94d7e5e1840dac11db]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«RoleEntity»» {anchor:04b8a0105cc98da475754a7a0d118cac}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#6e67c47f04808732b2f0546672e9f4ca]"{noformat}||[PagerResult«RoleEntity»|#6e67c47f04808732b2f0546672e9f4ca]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«ScheduleJobEntity»» {anchor:42906958f8fba064d74cc15b287b285b}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#3c5582dff446edfec2b56a38e400f979]"{noformat}||[PagerResult«ScheduleJobEntity»|#3c5582dff446edfec2b56a38e400f979]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«ScriptEntity»» {anchor:b526184b0542731e9ce046cd15c7430f}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#8600a8255df0072a9ebdcef867f5c524]"{noformat}||[PagerResult«ScriptEntity»|#8600a8255df0072a9ebdcef867f5c524]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«UserEntity»» {anchor:022104f1b83fb14da490f0bad176c23f}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#8c19b416cd9de9ffbed9082acff5fc80]"{noformat}||[PagerResult«UserEntity»|#8c19b416cd9de9ffbed9082acff5fc80]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PagerResult«object»» {anchor:b067bd9552e787aea006c9b1cd6fcd02}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#87daa132c4ff15bc24c3702dd105f6c8]"{noformat}||[PagerResult«object»|#87daa132c4ff15bc24c3702dd105f6c8]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PermissionEntity» {anchor:50819844bfd86a245c543cc0190b4828}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#permissionentity]"{noformat}||[PermissionEntity|#permissionentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PersonAuthBindEntity» {anchor:10249428a4d55b979ef50cf7ac890aeb}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#personauthbindentity]"{noformat}||[PersonAuthBindEntity|#personauthbindentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PersonEntity» {anchor:c794f72feaad58a88d3da0cc427d1d9c}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#personentity]"{noformat}||[PersonEntity|#personentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PersonnelAuthorization» {anchor:4c898cb865a7ac8d70a5f816c252d944}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#personnelauthorization]"{noformat}||[PersonnelAuthorization|#personnelauthorization]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«PositionEntity» {anchor:81d3f00a16ad771d3c6fbdd99e002afb}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#positionentity]"{noformat}||[PositionEntity|#positionentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«RelationDefineEntity» {anchor:07e4edac137972c7b8c957a922b992ee}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#relationdefineentity]"{noformat}||[RelationDefineEntity|#relationdefineentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«RelationInfoEntity» {anchor:a8d04810db9cc799f48ca42652e0514e}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#relationinfoentity]"{noformat}||[RelationInfoEntity|#relationinfoentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«RoleEntity» {anchor:9de855e0a731771e1c13e47e25e30380}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#roleentity]"{noformat}||[RoleEntity|#roleentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«ScheduleJobEntity» {anchor:d803770b9be33fab88c050cc650ebacd}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#schedulejobentity]"{noformat}||[ScheduleJobEntity|#schedulejobentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«ScriptEntity» {anchor:75b3a1a20f80841af6d3065f6ad3b2f7}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#scriptentity]"{noformat}||[ScriptEntity|#scriptentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«UserEntity» {anchor:26c05b8f050f76cd6252ff48bb3d92d3}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#userentity]"{noformat}||[UserEntity|#userentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«UserSettingEntity» {anchor:bb605f14ea851832f5ce7d794caaceca}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"[#usersettingentity]"{noformat}||[UserSettingEntity|#usersettingentity]|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«Void» {anchor:6c061a07afa1c9738e33d1b5ec1728a9}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«boolean» {anchor:bbdc11e8c14b5b13fda321a82dc3a3ac}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}false{noformat}||boolean|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«int» {anchor:d53a2c1e07a660f2c3f1b54e6a7c98bb}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«long» {anchor:f505e3d79e9444eeb3266210d702f335}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«object» {anchor:4e3465260d0b339c0ae101c8a6821732}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"object"{noformat}||object|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. ResponseMessage«string» {anchor:7706c642a9473cc1b49b8f456cc26073}
响应结果
||名称||说明||类型||
|*message*\\ \\ _可选_||调用结果消息\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*result*\\ \\ _可选_||成功时响应数据\\ \\ *样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _必填_||状态码\\ \\ *样例* : {noformat}0{noformat}||integer (int32)|
|*timestamp*\\ \\ _必填_||时间戳\\ \\ *样例* : {noformat}0{noformat}||integer (int64)|
h3. Role {anchor:role}
||名称||说明||类型||
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. RoleEntity {anchor:roleentity}
||名称||说明||类型||
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
h3. ScheduleJobEntity {anchor:schedulejobentity}
||名称||说明||类型||
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*language*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*parameters*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*quartzConfig*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*remark*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*script*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*tags*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. ScriptEntity {anchor:scriptentity}
||名称||说明||类型||
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*language*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*remark*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*script*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*tag*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. Serializable {anchor:serializable}
_类型_ : object
h3. SqlExecuteResult {anchor:sqlexecuteresult}
||名称||说明||类型||
|*result*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*sqlInfo*\\ \\ _可选_||*样例* : {noformat}"[#sqlinfo]"{noformat}||[SqlInfo|#sqlinfo]|
h3. SqlInfo {anchor:sqlinfo}
||名称||说明||类型||
|*datasourceId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*sql*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. Term {anchor:term}
||名称||说明||类型||
|*column*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*termType*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*terms*\\ \\ _可选_||*样例* : {noformat}[ "[#term]" ]{noformat}||< [Term|#term] > array|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||enum (or, and)|
|*value*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
h3. TransactionInfo {anchor:transactioninfo}
||名称||说明||类型||
|*createTime*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string (date-time)|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*lastExecuteTime*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string (date-time)|
|*sqlHistory*\\ \\ _可选_||*样例* : {noformat}[ "[#sqlinfo]" ]{noformat}||< [SqlInfo|#sqlinfo] > array|
h3. TreeNode«string» {anchor:6cb863976d93d76997d3a0a3d6c32f27}
||名称||说明||类型||
|*allValue*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*children*\\ \\ _可选_||*样例* : {noformat}[ "[#6cb863976d93d76997d3a0a3d6c32f27]" ]{noformat}||< [TreeNode«string»|#6cb863976d93d76997d3a0a3d6c32f27] > array|
|*level*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*parent*\\ \\ _可选_||*样例* : {noformat}"[#6cb863976d93d76997d3a0a3d6c32f27]"{noformat}||[TreeNode«string»|#6cb863976d93d76997d3a0a3d6c32f27]|
|*value*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. TreeSupportEntity«string» {anchor:852541f5d496d0afc6b3900a123fca7e}
||名称||说明||类型||
|*children*\\ \\ _可选_||*样例* : {noformat}[ "[#852541f5d496d0afc6b3900a123fca7e]" ]{noformat}||< [TreeSupportEntity«string»|#852541f5d496d0afc6b3900a123fca7e] > array|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*level*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*parentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*path*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
h3. UpdateParamEntity«Map«string,object»» {anchor:eba3e5ef973206080b3fe0cfe29971bc}
||名称||说明||类型||
|*data*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*excludes*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*includes*\\ \\ _可选_||*样例* : {noformat}[ "string" ]{noformat}||< string > array|
|*terms*\\ \\ _可选_||*样例* : {noformat}[ "[#term]" ]{noformat}||< [Term|#term] > array|
h3. User {anchor:user}
||名称||说明||类型||
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*username*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. UserEntity {anchor:userentity}
||名称||说明||类型||
|*createTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*creatorId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*password*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*salt*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*status*\\ \\ _可选_||*模式* : {noformat}"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"{noformat}*样例* : {noformat}"string"{noformat}||string (byte)|
|*username*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. UserMenuEntity {anchor:usermenuentity}
||名称||说明||类型||
|*children*\\ \\ _可选_||*样例* : {noformat}[ "[#usermenuentity]" ]{noformat}||< [UserMenuEntity|#usermenuentity] > array|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*icon*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*level*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int32)|
|*menuId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*parentId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*path*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*permissionId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*sortIndex*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*url*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
h3. UserSettingEntity {anchor:usersettingentity}
||名称||说明||类型||
|*createTime*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string (date-time)|
|*describe*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*id*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*key*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*name*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*properties*\\ \\ _可选_||*样例* : {noformat}"object"{noformat}||object|
|*setting*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*settingId*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
|*updateTime*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string (date-time)|
|*userId*\\ \\ _必填_||*样例* : {noformat}"string"{noformat}||string|
h3. UserToken {anchor:usertoken}
||名称||说明||类型||
|*effective*\\ \\ _可选_||*样例* : {noformat}true{noformat}||boolean|
|*expired*\\ \\ _可选_||*样例* : {noformat}true{noformat}||boolean|
|*lastRequestTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*maxInactiveInterval*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*offline*\\ \\ _可选_||*样例* : {noformat}true{noformat}||boolean|
|*requestTimes*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*signInTime*\\ \\ _可选_||*样例* : {noformat}0{noformat}||integer (int64)|
|*state*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||enum (effective, deny, expired, offline)|
|*token*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*type*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|*userId*\\ \\ _可选_||*样例* : {noformat}"string"{noformat}||string|
|
{
"pile_set_name": "Github"
}
|
## 序言
本教程希望让您快速熟悉使用React Native来编写iOS和Android App的技巧。如果你希望知道React Native是什么以及为什么Facebook打造了它,可以读读[这篇博文](http://bbs.reactnative.cn/topic/14)
我们这里假设你已经有了使用React编写Web应用程序的经验。如果还没有,建议你可以先从[React官网](http://facebook.github.io/react/)开始学习。
## 准备工作
React Native需要一些基础的配置工作,你可以参考[开始使用React Native](/docs/getting-started.html)来进行。
在所有依赖的软件都已经安装完毕后,只需要输入两条命令就可以创建一个React Native工程。
1. `npm install -g react-native-cli`
react-native-cli是一个终端命令,它可以完成其余的设置工作。它可以通过npm安装。刚才这条命令会往你的终端安装一个叫做`react-native`的命令。这个安装过程你只需要进行一次。
2. `react-native init AwesomeProject`
这个命令会初始化一个工程、下载React Native的所有源代码和依赖包,最后在`AwesomePrjoect/iOS/AwesomeProject.xcodeproj`和`AwesomeProject/android/app`下分别创建一个新的XCode工程和一个gradle工程。
__译注__:由于众所周知的网络原因,react-native命令行从npm官方源拖代码时会遇上麻烦。请先将npm仓库源替换为国内镜像:
```bash
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
```
另,执行init时切记不要在前面加上sudo(否则新项目的目录所有者会变为root而不是当前用户,导致一系列权限问题,请使用chown修复)。
本站论坛区提供了[完整的绿色纯净新项目包](http://bbs.reactnative.cn/topic/11)。完整打包全部iOS和Android的第三方依赖,只要环境配置正确,无需科学上网漫长等待,解压即可直接运行。
## 开发
想开发iOS版本,你现在可以在XCode中打开刚刚创建的工程(`AwesomePrjoect/iOS/AwesomeProject.xcodeproj`),然后只要按下`⌘+R`就可以构建并运行。这个操作会同时打开一个用于实现动态代码加载的Node服务(React Packager)。所以每当你修改代码,你只需要在模拟器中按下`⌘+R`,而无需重新在XCode中编译。
想开发Android版本,先连接你的设备或启动模拟器,然后在`AwesomeProject`目录下运行`react-native run-android`,就会构建工程并自动安装到你的模拟器或者设备,同时启动用于实现动态代码加载的Node服务。当你修改代码之后,你需要打开摇一摇菜单(摇一下设备,或者按下设备的Menu键,或者在模拟器上按下F2或Page Up,Genymotion按下⌘+M),然后在菜单中点击“Reload JS”。
在本向导中我们会创建一个简单的Movies应用,它可以获取25个上映中的电影,然后把他们在一个ListView中显示。
### Hello World
`react-native init`命令会创建一个指定名字的应用,我们刚才输入的命令就创建了一个名为AwesomePrjoect的应用。这是一个简单的Hello World应用。对于iOS版本,你可以编辑`index.ios.js`来做一些改动,然后在模拟器中按⌘+R来看到修改的结果。对Android版本,你可以编辑`index.android.js`来做一些改动,然后在摇一摇菜单中点击“Reload JS”来看到修改的结果。
### 模拟数据
__译注__:本文的示例代码改用了ES6语法,可能和其他文档写法不一致。但React Native从0.18之后,新建项目默认已经采用了ES6语法,故我们推荐不熟悉ES6与ES5区别的朋友先读读[这篇文章](http://bbs.reactnative.cn/topic/15),另外还可以看看[阮一峰老师的书](http://es6.ruanyifeng.com/)。
在我们真正从Rotten Tomatoes(_译注:一个国外的电影社区_)抓取数据之前,我们先制造一些模拟数据来练一练手。在Facebook我们通常在JS文件的开头,紧跟着import语句之后声明一个常量,不过这不重要,你可以把它放在`index.ios.js`和`index.android.js`的任意位置:
```javascript
var MOCKED_MOVIES_DATA = [
{title: '标题', year: '2015', posters: {thumbnail: 'http://i.imgur.com/UePbdph.jpg'}},
];
```
### 展现一个电影
我们接下来要展现一个电影,绘制它的标题、年份、以及缩略图(_译注:这个过程我们通常会叫做“渲染/render”,后面我们都会用“渲染”这个词_)。渲染缩略图需要用到Image组件,所以把Image添加到对React的import列表中。
```javascript
import React, {
AppRegistry,
Component,
Image,
StyleSheet,
Text,
View,
} from 'react-native';
```
然后修改一下render函数,这样我们可以把上面创建的模拟数据渲染出来。
```javascript
render() {
var movie = MOCKED_MOVIES_DATA[0];
return (
<View style={styles.container}>
<Text>{movie.title}</Text>
<Text>{movie.year}</Text>
<Image source={{uri: movie.posters.thumbnail}} />
</View>
);
}
```
按下`⌘+R`或者`Reload JS`,现在你应该能看到文字"Title"和"2015",但现在Image组件没渲染任何东西,这是因为我们还没有为图片指定我们想要渲染的宽和高。这通过样式来实现。当我们修改样式的时候,我们也应该清理掉我们不再使用的样式。
```javascript
var styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
thumbnail: {
width: 53,
height: 81,
},
});
```
然后把它应用到Image组件上:
```javascript
<Image
source={{uri: movie.posters.thumbnail}}
style={styles.thumbnail}
/>
```
按下`⌘+R`或者`Reload JS`,现在图片应该可以被渲染出来了。
| | |
|--|--|
| ||
### 添加样式
现在我们已经成功的把我们的数据渲染出来了,下面让我们把它弄的更好看一些。我想把文字放在图片的右边,然后把标题弄的大一些,并且水平居中:
```
+---------------------------------+
|+-------++----------------------+|
|| || 标题 ||
|| 图片 || ||
|| || 年份 ||
|+-------++----------------------+|
+---------------------------------+
```
所以我们需要增加一个container来实现一个水平布局内嵌套一个垂直布局。
```javascript
return (
<View style={styles.container}>
<Image
source={{uri: movie.posters.thumbnail}}
style={styles.thumbnail}
/>
<View style={styles.rightContainer}>
<Text style={styles.title}>{movie.title}</Text>
<Text style={styles.year}>{movie.year}</Text>
</View>
</View>
);
```
和之前相比并没有太多变化,我们增加了一个container来包装文字,然后把它移到了Image的后面(因为他们最终在图片的右边)。然后我们来看看样式要怎么改:
```javascript
container: {
flex: 1,
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
```
我们用Flexbox来布局。如果你想了解更多,可以读读[这篇文章](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)。
在上面的代码片段中,我们用了一句`flexDirection: 'row'`来让我们的主容器的成员从左到右横向布局,而非默认的从上到下纵向布局。
现在我们往`style`对象里增加另一个样式:
```javascript
rightContainer: {
flex: 1,
},
```
这句话的作用是让`rightContainer`在父容器中占据Image之外剩下的全部空间。如果你还不是很理解的话,你可以往`rightContainer`里增加一个`backgroundColor`看一看,然后再去掉`flex:1`对比一下。你会发现去掉这一句后,容器会变成能容纳它孩子的最小大小。
给文字添加样式就简单的多了:
```javascript
title: {
fontSize: 20,
marginBottom: 8,
textAlign: 'center',
},
year: {
textAlign: 'center',
},
```
再按一次`⌘+R`或者`Reload JS`来看看最新的结果。
| | |
|--|--|
| ||
### 拉取真正的数据
从Rotten Tomatoes的API拉取数据和学习React Native并没有什么直接关系,所以你也可以直接跳过本节。
把下面的常量放到文件的最开头(通常在require下面)来创建我们请求数据所需的地址常量REQUEST_URL
```javascript
/**
* 为了避免骚扰,我们用了一个样例数据来替代Rotten Tomatoes的API
* 请求,这个样例数据放在React Native的Github库中。
*/
var REQUEST_URL = 'https://raw.githubusercontent.com/facebook/react-native/master/docs/MoviesExample.json';
```
首先在应用中创建一个初始的null状态,这样可以通过`this.state.movies == null`来判断我们的数据是不是已经被抓取到了。我们在服务器响应返回的时候执行`this.setState({movies: moviesData})`来改变这个状态。把下面这段代码放到我们的React类的render函数之前:
```javascript
constructor(props) {
super(props); //这一句不能省略,照抄即可
this.state = {
movies: null, //这里放你自己定义的state变量及初始值
};
}
```
组件加载完毕之后,就可以向服务器请求数据。`componentDidMount`是React组件的一个生命周期方法,它会在组件刚加载完成的时候调用一次,以后不再会被调用。React中的各种生命周期方法请[参阅此文档](http://facebook.github.io/react/docs/component-specs.html)。
```javascript
componentDidMount() {
this.fetchData();
}
```
现在我们来为组件添加`fetchData`函数。你所需要做的就是在Promise调用链结束后执行`this.setState({movies:data})`。在React的工作机制下,`setState`实际上会触发一次重新渲染的流程,此时render函数被触发,发现this.state.movies不再是`null`。注意我们在Promise调用链的最后调用了`done()` —— 这样可以抛出异常而不是简单忽略。
```javascript
fetchData() {
fetch(REQUEST_URL)
.then((response) => response.json())
.then((responseData) => {
this.setState({
movies: responseData.movies,
});
})
.done();
}
```
现在我们来修改render函数。在电影数据加载完毕之前,先渲染一个“加载中”的视图;而如果电影数据已经加载完毕了,则渲染第一个电影数据。
```javascript
render() {
if (!this.state.movies) {
return this.renderLoadingView();
}
var movie = this.state.movies[0];
return this.renderMovie(movie);
}
renderLoadingView() {
return (
<View style={styles.container}>
<Text>
正在加载电影数据……
</Text>
</View>
);
}
renderMovie(movie) {
return (
<View style={styles.container}>
<Image
source={{uri: movie.posters.thumbnail}}
style={styles.thumbnail}
/>
<View style={styles.rightContainer}>
<Text style={styles.title}>{movie.title}</Text>
<Text style={styles.year}>{movie.year}</Text>
</View>
</View>
);
}
```
现在再按一次`⌘+R`或者`Reload JS`,你会首先看到“正在加载电影数据……”,然后在响应数据到达之后,看到第一个电影的信息。
| | |
|--|--|
| ||
## ListView
现在我们来让我们的应用能够渲染所有的数据而不是仅仅第一部电影。我们要用到的就是ListView组件。
为什么建议把内容放到ListView里?比起直接渲染出所有的元素,或是放到一个ScrollView里有什么优势?这是因为尽管React很高效,渲染一个可能很大的元素列表还是会很慢。`ListView`会安排视图的渲染,只显示当前在屏幕上的那些元素。而那些已经渲染好了但移动到了屏幕之外的元素,则会从原生视图结构中移除(以提高性能)。
首先要做的事情:在文件最开头,从React中引入`ListView`。
```javascript
import React, {
AppRegistry,
Component,
Image,
ListView,
StyleSheet,
Text,
View,
} from 'react-native';
```
现在来修改render函数。当我们已经有了数据之后,渲染一个包含多个电影信息的ListView,而不仅仅是单个的电影。
```javascript
render() {
if (!this.state.loaded) {
return this.renderLoadingView();
}
return (
<ListView
dataSource={this.state.dataSource}
renderRow={this.renderMovie}
style={styles.listView}
/>
);
}
```
`dataSource`接口用来在ListView的整个更新过程中判断哪些数据行发生了变化。
你会注意到我们现在用到了`this.state`中的`dataSource`。下一步就是在`constructor`生成的初始状态中添加一个空白的`dataSource`。另外,我们现在要把数据存储在`dataSource`中了,所以不再另外用`this.state.movies`来保存数据。我们可以在state里用一个布尔型的属性(`this.state.loaded`)来判断数据加载是否已经完成了。
```javascript
constructor(props) {
super(props);
this.state = {
dataSource: new ListView.DataSource({
rowHasChanged: (row1, row2) => row1 !== row2,
}),
loaded: false,
};
}
```
同时我们也要修改`fetchData`方法来把数据更新到dataSource里:
```javascript
fetchData() {
fetch(REQUEST_URL)
.then((response) => response.json())
.then((responseData) => {
this.setState({
dataSource: this.state.dataSource.cloneWithRows(responseData.movies),
loaded: true,
});
})
.done();
}
```
最后,我们再在`styles`对象里给`ListView`添加一些样式。
```javascript
listView: {
paddingTop: 20,
backgroundColor: '#F5FCFF',
},
```
现在可以体现最终的结果了:
| | |
|--|--|
| ||
为了实现一个完整功能的应用,接下来其实还有一些工作要做,譬如:添加导航器,搜索,加载更多,等等等等。可以在[Movies示例](https://github.com/facebook/react-native/tree/master/Examples/Movies)中看看我们做了什么。
### 最终的代码
```javascript
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, {
AppRegistry,
Component,
Image,
ListView,
StyleSheet,
Text,
View,
} from 'react-native';
var API_KEY = '7waqfqbprs7pajbz28mqf6vz';
var API_URL = 'http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json';
var PAGE_SIZE = 25;
var PARAMS = '?apikey=' + API_KEY + '&page_limit=' + PAGE_SIZE;
var REQUEST_URL = API_URL + PARAMS;
class AwesomeProject extends Component {
constructor(props) {
super(props);
this.state = {
dataSource: new ListView.DataSource({
rowHasChanged: (row1, row2) => row1 !== row2,
}),
loaded: false,
};
}
componentDidMount() {
this.fetchData();
}
fetchData() {
fetch(REQUEST_URL)
.then((response) => response.json())
.then((responseData) => {
this.setState({
dataSource: this.state.dataSource.cloneWithRows(responseData.movies),
loaded: true,
});
})
.done();
}
render() {
if (!this.state.loaded) {
return this.renderLoadingView();
}
return (
<ListView
dataSource={this.state.dataSource}
renderRow={this.renderMovie}
style={styles.listView}
/>
);
}
renderLoadingView() {
return (
<View style={styles.container}>
<Text>
Loading movies...
</Text>
</View>
);
}
renderMovie(movie) {
return (
<View style={styles.container}>
<Image
source={{uri: movie.posters.thumbnail}}
style={styles.thumbnail}
/>
<View style={styles.rightContainer}>
<Text style={styles.title}>{movie.title}</Text>
<Text style={styles.year}>{movie.year}</Text>
</View>
</View>
);
}
};
var styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
rightContainer: {
flex: 1,
},
title: {
fontSize: 20,
marginBottom: 8,
textAlign: 'center',
},
year: {
textAlign: 'center',
},
thumbnail: {
width: 53,
height: 81,
},
listView: {
paddingTop: 20,
backgroundColor: '#F5FCFF',
},
});
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
```
|
{
"pile_set_name": "Github"
}
|
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Analog Devices ADAU1373 Audio Codec drive
*
* Copyright 2011 Analog Devices Inc.
* Author: Lars-Peter Clausen <lars@metafoo.de>
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/gcd.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/tlv.h>
#include <sound/soc.h>
#include <sound/adau1373.h>
#include "adau1373.h"
#include "adau-utils.h"
struct adau1373_dai {
unsigned int clk_src;
unsigned int sysclk;
bool enable_src;
bool master;
};
struct adau1373 {
struct regmap *regmap;
struct adau1373_dai dais[3];
};
#define ADAU1373_INPUT_MODE 0x00
#define ADAU1373_AINL_CTRL(x) (0x01 + (x) * 2)
#define ADAU1373_AINR_CTRL(x) (0x02 + (x) * 2)
#define ADAU1373_LLINE_OUT(x) (0x9 + (x) * 2)
#define ADAU1373_RLINE_OUT(x) (0xa + (x) * 2)
#define ADAU1373_LSPK_OUT 0x0d
#define ADAU1373_RSPK_OUT 0x0e
#define ADAU1373_LHP_OUT 0x0f
#define ADAU1373_RHP_OUT 0x10
#define ADAU1373_ADC_GAIN 0x11
#define ADAU1373_LADC_MIXER 0x12
#define ADAU1373_RADC_MIXER 0x13
#define ADAU1373_LLINE1_MIX 0x14
#define ADAU1373_RLINE1_MIX 0x15
#define ADAU1373_LLINE2_MIX 0x16
#define ADAU1373_RLINE2_MIX 0x17
#define ADAU1373_LSPK_MIX 0x18
#define ADAU1373_RSPK_MIX 0x19
#define ADAU1373_LHP_MIX 0x1a
#define ADAU1373_RHP_MIX 0x1b
#define ADAU1373_EP_MIX 0x1c
#define ADAU1373_HP_CTRL 0x1d
#define ADAU1373_HP_CTRL2 0x1e
#define ADAU1373_LS_CTRL 0x1f
#define ADAU1373_EP_CTRL 0x21
#define ADAU1373_MICBIAS_CTRL1 0x22
#define ADAU1373_MICBIAS_CTRL2 0x23
#define ADAU1373_OUTPUT_CTRL 0x24
#define ADAU1373_PWDN_CTRL1 0x25
#define ADAU1373_PWDN_CTRL2 0x26
#define ADAU1373_PWDN_CTRL3 0x27
#define ADAU1373_DPLL_CTRL(x) (0x28 + (x) * 7)
#define ADAU1373_PLL_CTRL1(x) (0x29 + (x) * 7)
#define ADAU1373_PLL_CTRL2(x) (0x2a + (x) * 7)
#define ADAU1373_PLL_CTRL3(x) (0x2b + (x) * 7)
#define ADAU1373_PLL_CTRL4(x) (0x2c + (x) * 7)
#define ADAU1373_PLL_CTRL5(x) (0x2d + (x) * 7)
#define ADAU1373_PLL_CTRL6(x) (0x2e + (x) * 7)
#define ADAU1373_HEADDECT 0x36
#define ADAU1373_ADC_DAC_STATUS 0x37
#define ADAU1373_ADC_CTRL 0x3c
#define ADAU1373_DAI(x) (0x44 + (x))
#define ADAU1373_CLK_SRC_DIV(x) (0x40 + (x) * 2)
#define ADAU1373_BCLKDIV(x) (0x47 + (x))
#define ADAU1373_SRC_RATIOA(x) (0x4a + (x) * 2)
#define ADAU1373_SRC_RATIOB(x) (0x4b + (x) * 2)
#define ADAU1373_DEEMP_CTRL 0x50
#define ADAU1373_SRC_DAI_CTRL(x) (0x51 + (x))
#define ADAU1373_DIN_MIX_CTRL(x) (0x56 + (x))
#define ADAU1373_DOUT_MIX_CTRL(x) (0x5b + (x))
#define ADAU1373_DAI_PBL_VOL(x) (0x62 + (x) * 2)
#define ADAU1373_DAI_PBR_VOL(x) (0x63 + (x) * 2)
#define ADAU1373_DAI_RECL_VOL(x) (0x68 + (x) * 2)
#define ADAU1373_DAI_RECR_VOL(x) (0x69 + (x) * 2)
#define ADAU1373_DAC1_PBL_VOL 0x6e
#define ADAU1373_DAC1_PBR_VOL 0x6f
#define ADAU1373_DAC2_PBL_VOL 0x70
#define ADAU1373_DAC2_PBR_VOL 0x71
#define ADAU1373_ADC_RECL_VOL 0x72
#define ADAU1373_ADC_RECR_VOL 0x73
#define ADAU1373_DMIC_RECL_VOL 0x74
#define ADAU1373_DMIC_RECR_VOL 0x75
#define ADAU1373_VOL_GAIN1 0x76
#define ADAU1373_VOL_GAIN2 0x77
#define ADAU1373_VOL_GAIN3 0x78
#define ADAU1373_HPF_CTRL 0x7d
#define ADAU1373_BASS1 0x7e
#define ADAU1373_BASS2 0x7f
#define ADAU1373_DRC(x) (0x80 + (x) * 0x10)
#define ADAU1373_3D_CTRL1 0xc0
#define ADAU1373_3D_CTRL2 0xc1
#define ADAU1373_FDSP_SEL1 0xdc
#define ADAU1373_FDSP_SEL2 0xdd
#define ADAU1373_FDSP_SEL3 0xde
#define ADAU1373_FDSP_SEL4 0xdf
#define ADAU1373_DIGMICCTRL 0xe2
#define ADAU1373_DIGEN 0xeb
#define ADAU1373_SOFT_RESET 0xff
#define ADAU1373_PLL_CTRL6_DPLL_BYPASS BIT(1)
#define ADAU1373_PLL_CTRL6_PLL_EN BIT(0)
#define ADAU1373_DAI_INVERT_BCLK BIT(7)
#define ADAU1373_DAI_MASTER BIT(6)
#define ADAU1373_DAI_INVERT_LRCLK BIT(4)
#define ADAU1373_DAI_WLEN_16 0x0
#define ADAU1373_DAI_WLEN_20 0x4
#define ADAU1373_DAI_WLEN_24 0x8
#define ADAU1373_DAI_WLEN_32 0xc
#define ADAU1373_DAI_WLEN_MASK 0xc
#define ADAU1373_DAI_FORMAT_RIGHT_J 0x0
#define ADAU1373_DAI_FORMAT_LEFT_J 0x1
#define ADAU1373_DAI_FORMAT_I2S 0x2
#define ADAU1373_DAI_FORMAT_DSP 0x3
#define ADAU1373_BCLKDIV_SOURCE BIT(5)
#define ADAU1373_BCLKDIV_SR_MASK (0x07 << 2)
#define ADAU1373_BCLKDIV_BCLK_MASK 0x03
#define ADAU1373_BCLKDIV_32 0x03
#define ADAU1373_BCLKDIV_64 0x02
#define ADAU1373_BCLKDIV_128 0x01
#define ADAU1373_BCLKDIV_256 0x00
#define ADAU1373_ADC_CTRL_PEAK_DETECT BIT(0)
#define ADAU1373_ADC_CTRL_RESET BIT(1)
#define ADAU1373_ADC_CTRL_RESET_FORCE BIT(2)
#define ADAU1373_OUTPUT_CTRL_LDIFF BIT(3)
#define ADAU1373_OUTPUT_CTRL_LNFBEN BIT(2)
#define ADAU1373_PWDN_CTRL3_PWR_EN BIT(0)
#define ADAU1373_EP_CTRL_MICBIAS1_OFFSET 4
#define ADAU1373_EP_CTRL_MICBIAS2_OFFSET 2
static const struct reg_default adau1373_reg_defaults[] = {
{ ADAU1373_INPUT_MODE, 0x00 },
{ ADAU1373_AINL_CTRL(0), 0x00 },
{ ADAU1373_AINR_CTRL(0), 0x00 },
{ ADAU1373_AINL_CTRL(1), 0x00 },
{ ADAU1373_AINR_CTRL(1), 0x00 },
{ ADAU1373_AINL_CTRL(2), 0x00 },
{ ADAU1373_AINR_CTRL(2), 0x00 },
{ ADAU1373_AINL_CTRL(3), 0x00 },
{ ADAU1373_AINR_CTRL(3), 0x00 },
{ ADAU1373_LLINE_OUT(0), 0x00 },
{ ADAU1373_RLINE_OUT(0), 0x00 },
{ ADAU1373_LLINE_OUT(1), 0x00 },
{ ADAU1373_RLINE_OUT(1), 0x00 },
{ ADAU1373_LSPK_OUT, 0x00 },
{ ADAU1373_RSPK_OUT, 0x00 },
{ ADAU1373_LHP_OUT, 0x00 },
{ ADAU1373_RHP_OUT, 0x00 },
{ ADAU1373_ADC_GAIN, 0x00 },
{ ADAU1373_LADC_MIXER, 0x00 },
{ ADAU1373_RADC_MIXER, 0x00 },
{ ADAU1373_LLINE1_MIX, 0x00 },
{ ADAU1373_RLINE1_MIX, 0x00 },
{ ADAU1373_LLINE2_MIX, 0x00 },
{ ADAU1373_RLINE2_MIX, 0x00 },
{ ADAU1373_LSPK_MIX, 0x00 },
{ ADAU1373_RSPK_MIX, 0x00 },
{ ADAU1373_LHP_MIX, 0x00 },
{ ADAU1373_RHP_MIX, 0x00 },
{ ADAU1373_EP_MIX, 0x00 },
{ ADAU1373_HP_CTRL, 0x00 },
{ ADAU1373_HP_CTRL2, 0x00 },
{ ADAU1373_LS_CTRL, 0x00 },
{ ADAU1373_EP_CTRL, 0x00 },
{ ADAU1373_MICBIAS_CTRL1, 0x00 },
{ ADAU1373_MICBIAS_CTRL2, 0x00 },
{ ADAU1373_OUTPUT_CTRL, 0x00 },
{ ADAU1373_PWDN_CTRL1, 0x00 },
{ ADAU1373_PWDN_CTRL2, 0x00 },
{ ADAU1373_PWDN_CTRL3, 0x00 },
{ ADAU1373_DPLL_CTRL(0), 0x00 },
{ ADAU1373_PLL_CTRL1(0), 0x00 },
{ ADAU1373_PLL_CTRL2(0), 0x00 },
{ ADAU1373_PLL_CTRL3(0), 0x00 },
{ ADAU1373_PLL_CTRL4(0), 0x00 },
{ ADAU1373_PLL_CTRL5(0), 0x00 },
{ ADAU1373_PLL_CTRL6(0), 0x02 },
{ ADAU1373_DPLL_CTRL(1), 0x00 },
{ ADAU1373_PLL_CTRL1(1), 0x00 },
{ ADAU1373_PLL_CTRL2(1), 0x00 },
{ ADAU1373_PLL_CTRL3(1), 0x00 },
{ ADAU1373_PLL_CTRL4(1), 0x00 },
{ ADAU1373_PLL_CTRL5(1), 0x00 },
{ ADAU1373_PLL_CTRL6(1), 0x02 },
{ ADAU1373_HEADDECT, 0x00 },
{ ADAU1373_ADC_CTRL, 0x00 },
{ ADAU1373_CLK_SRC_DIV(0), 0x00 },
{ ADAU1373_CLK_SRC_DIV(1), 0x00 },
{ ADAU1373_DAI(0), 0x0a },
{ ADAU1373_DAI(1), 0x0a },
{ ADAU1373_DAI(2), 0x0a },
{ ADAU1373_BCLKDIV(0), 0x00 },
{ ADAU1373_BCLKDIV(1), 0x00 },
{ ADAU1373_BCLKDIV(2), 0x00 },
{ ADAU1373_SRC_RATIOA(0), 0x00 },
{ ADAU1373_SRC_RATIOB(0), 0x00 },
{ ADAU1373_SRC_RATIOA(1), 0x00 },
{ ADAU1373_SRC_RATIOB(1), 0x00 },
{ ADAU1373_SRC_RATIOA(2), 0x00 },
{ ADAU1373_SRC_RATIOB(2), 0x00 },
{ ADAU1373_DEEMP_CTRL, 0x00 },
{ ADAU1373_SRC_DAI_CTRL(0), 0x08 },
{ ADAU1373_SRC_DAI_CTRL(1), 0x08 },
{ ADAU1373_SRC_DAI_CTRL(2), 0x08 },
{ ADAU1373_DIN_MIX_CTRL(0), 0x00 },
{ ADAU1373_DIN_MIX_CTRL(1), 0x00 },
{ ADAU1373_DIN_MIX_CTRL(2), 0x00 },
{ ADAU1373_DIN_MIX_CTRL(3), 0x00 },
{ ADAU1373_DIN_MIX_CTRL(4), 0x00 },
{ ADAU1373_DOUT_MIX_CTRL(0), 0x00 },
{ ADAU1373_DOUT_MIX_CTRL(1), 0x00 },
{ ADAU1373_DOUT_MIX_CTRL(2), 0x00 },
{ ADAU1373_DOUT_MIX_CTRL(3), 0x00 },
{ ADAU1373_DOUT_MIX_CTRL(4), 0x00 },
{ ADAU1373_DAI_PBL_VOL(0), 0x00 },
{ ADAU1373_DAI_PBR_VOL(0), 0x00 },
{ ADAU1373_DAI_PBL_VOL(1), 0x00 },
{ ADAU1373_DAI_PBR_VOL(1), 0x00 },
{ ADAU1373_DAI_PBL_VOL(2), 0x00 },
{ ADAU1373_DAI_PBR_VOL(2), 0x00 },
{ ADAU1373_DAI_RECL_VOL(0), 0x00 },
{ ADAU1373_DAI_RECR_VOL(0), 0x00 },
{ ADAU1373_DAI_RECL_VOL(1), 0x00 },
{ ADAU1373_DAI_RECR_VOL(1), 0x00 },
{ ADAU1373_DAI_RECL_VOL(2), 0x00 },
{ ADAU1373_DAI_RECR_VOL(2), 0x00 },
{ ADAU1373_DAC1_PBL_VOL, 0x00 },
{ ADAU1373_DAC1_PBR_VOL, 0x00 },
{ ADAU1373_DAC2_PBL_VOL, 0x00 },
{ ADAU1373_DAC2_PBR_VOL, 0x00 },
{ ADAU1373_ADC_RECL_VOL, 0x00 },
{ ADAU1373_ADC_RECR_VOL, 0x00 },
{ ADAU1373_DMIC_RECL_VOL, 0x00 },
{ ADAU1373_DMIC_RECR_VOL, 0x00 },
{ ADAU1373_VOL_GAIN1, 0x00 },
{ ADAU1373_VOL_GAIN2, 0x00 },
{ ADAU1373_VOL_GAIN3, 0x00 },
{ ADAU1373_HPF_CTRL, 0x00 },
{ ADAU1373_BASS1, 0x00 },
{ ADAU1373_BASS2, 0x00 },
{ ADAU1373_DRC(0) + 0x0, 0x78 },
{ ADAU1373_DRC(0) + 0x1, 0x18 },
{ ADAU1373_DRC(0) + 0x2, 0x00 },
{ ADAU1373_DRC(0) + 0x3, 0x00 },
{ ADAU1373_DRC(0) + 0x4, 0x00 },
{ ADAU1373_DRC(0) + 0x5, 0xc0 },
{ ADAU1373_DRC(0) + 0x6, 0x00 },
{ ADAU1373_DRC(0) + 0x7, 0x00 },
{ ADAU1373_DRC(0) + 0x8, 0x00 },
{ ADAU1373_DRC(0) + 0x9, 0xc0 },
{ ADAU1373_DRC(0) + 0xa, 0x88 },
{ ADAU1373_DRC(0) + 0xb, 0x7a },
{ ADAU1373_DRC(0) + 0xc, 0xdf },
{ ADAU1373_DRC(0) + 0xd, 0x20 },
{ ADAU1373_DRC(0) + 0xe, 0x00 },
{ ADAU1373_DRC(0) + 0xf, 0x00 },
{ ADAU1373_DRC(1) + 0x0, 0x78 },
{ ADAU1373_DRC(1) + 0x1, 0x18 },
{ ADAU1373_DRC(1) + 0x2, 0x00 },
{ ADAU1373_DRC(1) + 0x3, 0x00 },
{ ADAU1373_DRC(1) + 0x4, 0x00 },
{ ADAU1373_DRC(1) + 0x5, 0xc0 },
{ ADAU1373_DRC(1) + 0x6, 0x00 },
{ ADAU1373_DRC(1) + 0x7, 0x00 },
{ ADAU1373_DRC(1) + 0x8, 0x00 },
{ ADAU1373_DRC(1) + 0x9, 0xc0 },
{ ADAU1373_DRC(1) + 0xa, 0x88 },
{ ADAU1373_DRC(1) + 0xb, 0x7a },
{ ADAU1373_DRC(1) + 0xc, 0xdf },
{ ADAU1373_DRC(1) + 0xd, 0x20 },
{ ADAU1373_DRC(1) + 0xe, 0x00 },
{ ADAU1373_DRC(1) + 0xf, 0x00 },
{ ADAU1373_DRC(2) + 0x0, 0x78 },
{ ADAU1373_DRC(2) + 0x1, 0x18 },
{ ADAU1373_DRC(2) + 0x2, 0x00 },
{ ADAU1373_DRC(2) + 0x3, 0x00 },
{ ADAU1373_DRC(2) + 0x4, 0x00 },
{ ADAU1373_DRC(2) + 0x5, 0xc0 },
{ ADAU1373_DRC(2) + 0x6, 0x00 },
{ ADAU1373_DRC(2) + 0x7, 0x00 },
{ ADAU1373_DRC(2) + 0x8, 0x00 },
{ ADAU1373_DRC(2) + 0x9, 0xc0 },
{ ADAU1373_DRC(2) + 0xa, 0x88 },
{ ADAU1373_DRC(2) + 0xb, 0x7a },
{ ADAU1373_DRC(2) + 0xc, 0xdf },
{ ADAU1373_DRC(2) + 0xd, 0x20 },
{ ADAU1373_DRC(2) + 0xe, 0x00 },
{ ADAU1373_DRC(2) + 0xf, 0x00 },
{ ADAU1373_3D_CTRL1, 0x00 },
{ ADAU1373_3D_CTRL2, 0x00 },
{ ADAU1373_FDSP_SEL1, 0x00 },
{ ADAU1373_FDSP_SEL2, 0x00 },
{ ADAU1373_FDSP_SEL2, 0x00 },
{ ADAU1373_FDSP_SEL4, 0x00 },
{ ADAU1373_DIGMICCTRL, 0x00 },
{ ADAU1373_DIGEN, 0x00 },
};
static const DECLARE_TLV_DB_RANGE(adau1373_out_tlv,
0, 7, TLV_DB_SCALE_ITEM(-7900, 400, 1),
8, 15, TLV_DB_SCALE_ITEM(-4700, 300, 0),
16, 23, TLV_DB_SCALE_ITEM(-2300, 200, 0),
24, 31, TLV_DB_SCALE_ITEM(-700, 100, 0)
);
static const DECLARE_TLV_DB_MINMAX(adau1373_digital_tlv, -9563, 0);
static const DECLARE_TLV_DB_SCALE(adau1373_in_pga_tlv, -1300, 100, 1);
static const DECLARE_TLV_DB_SCALE(adau1373_ep_tlv, -600, 600, 1);
static const DECLARE_TLV_DB_SCALE(adau1373_input_boost_tlv, 0, 2000, 0);
static const DECLARE_TLV_DB_SCALE(adau1373_gain_boost_tlv, 0, 600, 0);
static const DECLARE_TLV_DB_SCALE(adau1373_speaker_boost_tlv, 1200, 600, 0);
static const char *adau1373_fdsp_sel_text[] = {
"None",
"Channel 1",
"Channel 2",
"Channel 3",
"Channel 4",
"Channel 5",
};
static SOC_ENUM_SINGLE_DECL(adau1373_drc1_channel_enum,
ADAU1373_FDSP_SEL1, 4, adau1373_fdsp_sel_text);
static SOC_ENUM_SINGLE_DECL(adau1373_drc2_channel_enum,
ADAU1373_FDSP_SEL1, 0, adau1373_fdsp_sel_text);
static SOC_ENUM_SINGLE_DECL(adau1373_drc3_channel_enum,
ADAU1373_FDSP_SEL2, 0, adau1373_fdsp_sel_text);
static SOC_ENUM_SINGLE_DECL(adau1373_hpf_channel_enum,
ADAU1373_FDSP_SEL3, 0, adau1373_fdsp_sel_text);
static SOC_ENUM_SINGLE_DECL(adau1373_bass_channel_enum,
ADAU1373_FDSP_SEL4, 4, adau1373_fdsp_sel_text);
static const char *adau1373_hpf_cutoff_text[] = {
"3.7Hz", "50Hz", "100Hz", "150Hz", "200Hz", "250Hz", "300Hz", "350Hz",
"400Hz", "450Hz", "500Hz", "550Hz", "600Hz", "650Hz", "700Hz", "750Hz",
"800Hz",
};
static SOC_ENUM_SINGLE_DECL(adau1373_hpf_cutoff_enum,
ADAU1373_HPF_CTRL, 3, adau1373_hpf_cutoff_text);
static const char *adau1373_bass_lpf_cutoff_text[] = {
"801Hz", "1001Hz",
};
static const char *adau1373_bass_clip_level_text[] = {
"0.125", "0.250", "0.370", "0.500", "0.625", "0.750", "0.875",
};
static const unsigned int adau1373_bass_clip_level_values[] = {
1, 2, 3, 4, 5, 6, 7,
};
static const char *adau1373_bass_hpf_cutoff_text[] = {
"158Hz", "232Hz", "347Hz", "520Hz",
};
static const DECLARE_TLV_DB_RANGE(adau1373_bass_tlv,
0, 2, TLV_DB_SCALE_ITEM(-600, 600, 1),
3, 4, TLV_DB_SCALE_ITEM(950, 250, 0),
5, 7, TLV_DB_SCALE_ITEM(1400, 150, 0)
);
static SOC_ENUM_SINGLE_DECL(adau1373_bass_lpf_cutoff_enum,
ADAU1373_BASS1, 5, adau1373_bass_lpf_cutoff_text);
static SOC_VALUE_ENUM_SINGLE_DECL(adau1373_bass_clip_level_enum,
ADAU1373_BASS1, 2, 7, adau1373_bass_clip_level_text,
adau1373_bass_clip_level_values);
static SOC_ENUM_SINGLE_DECL(adau1373_bass_hpf_cutoff_enum,
ADAU1373_BASS1, 0, adau1373_bass_hpf_cutoff_text);
static const char *adau1373_3d_level_text[] = {
"0%", "6.67%", "13.33%", "20%", "26.67%", "33.33%",
"40%", "46.67%", "53.33%", "60%", "66.67%", "73.33%",
"80%", "86.67", "99.33%", "100%"
};
static const char *adau1373_3d_cutoff_text[] = {
"No 3D", "0.03125 fs", "0.04583 fs", "0.075 fs", "0.11458 fs",
"0.16875 fs", "0.27083 fs"
};
static SOC_ENUM_SINGLE_DECL(adau1373_3d_level_enum,
ADAU1373_3D_CTRL1, 4, adau1373_3d_level_text);
static SOC_ENUM_SINGLE_DECL(adau1373_3d_cutoff_enum,
ADAU1373_3D_CTRL1, 0, adau1373_3d_cutoff_text);
static const DECLARE_TLV_DB_RANGE(adau1373_3d_tlv,
0, 0, TLV_DB_SCALE_ITEM(0, 0, 0),
1, 7, TLV_DB_LINEAR_ITEM(-1800, -120)
);
static const char *adau1373_lr_mux_text[] = {
"Mute",
"Right Channel (L+R)",
"Left Channel (L+R)",
"Stereo",
};
static SOC_ENUM_SINGLE_DECL(adau1373_lineout1_lr_mux_enum,
ADAU1373_OUTPUT_CTRL, 4, adau1373_lr_mux_text);
static SOC_ENUM_SINGLE_DECL(adau1373_lineout2_lr_mux_enum,
ADAU1373_OUTPUT_CTRL, 6, adau1373_lr_mux_text);
static SOC_ENUM_SINGLE_DECL(adau1373_speaker_lr_mux_enum,
ADAU1373_LS_CTRL, 4, adau1373_lr_mux_text);
static const struct snd_kcontrol_new adau1373_controls[] = {
SOC_DOUBLE_R_TLV("AIF1 Capture Volume", ADAU1373_DAI_RECL_VOL(0),
ADAU1373_DAI_RECR_VOL(0), 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("AIF2 Capture Volume", ADAU1373_DAI_RECL_VOL(1),
ADAU1373_DAI_RECR_VOL(1), 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("AIF3 Capture Volume", ADAU1373_DAI_RECL_VOL(2),
ADAU1373_DAI_RECR_VOL(2), 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("ADC Capture Volume", ADAU1373_ADC_RECL_VOL,
ADAU1373_ADC_RECR_VOL, 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("DMIC Capture Volume", ADAU1373_DMIC_RECL_VOL,
ADAU1373_DMIC_RECR_VOL, 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("AIF1 Playback Volume", ADAU1373_DAI_PBL_VOL(0),
ADAU1373_DAI_PBR_VOL(0), 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("AIF2 Playback Volume", ADAU1373_DAI_PBL_VOL(1),
ADAU1373_DAI_PBR_VOL(1), 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("AIF3 Playback Volume", ADAU1373_DAI_PBL_VOL(2),
ADAU1373_DAI_PBR_VOL(2), 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("DAC1 Playback Volume", ADAU1373_DAC1_PBL_VOL,
ADAU1373_DAC1_PBR_VOL, 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("DAC2 Playback Volume", ADAU1373_DAC2_PBL_VOL,
ADAU1373_DAC2_PBR_VOL, 0, 0xff, 1, adau1373_digital_tlv),
SOC_DOUBLE_R_TLV("Lineout1 Playback Volume", ADAU1373_LLINE_OUT(0),
ADAU1373_RLINE_OUT(0), 0, 0x1f, 0, adau1373_out_tlv),
SOC_DOUBLE_R_TLV("Speaker Playback Volume", ADAU1373_LSPK_OUT,
ADAU1373_RSPK_OUT, 0, 0x1f, 0, adau1373_out_tlv),
SOC_DOUBLE_R_TLV("Headphone Playback Volume", ADAU1373_LHP_OUT,
ADAU1373_RHP_OUT, 0, 0x1f, 0, adau1373_out_tlv),
SOC_DOUBLE_R_TLV("Input 1 Capture Volume", ADAU1373_AINL_CTRL(0),
ADAU1373_AINR_CTRL(0), 0, 0x1f, 0, adau1373_in_pga_tlv),
SOC_DOUBLE_R_TLV("Input 2 Capture Volume", ADAU1373_AINL_CTRL(1),
ADAU1373_AINR_CTRL(1), 0, 0x1f, 0, adau1373_in_pga_tlv),
SOC_DOUBLE_R_TLV("Input 3 Capture Volume", ADAU1373_AINL_CTRL(2),
ADAU1373_AINR_CTRL(2), 0, 0x1f, 0, adau1373_in_pga_tlv),
SOC_DOUBLE_R_TLV("Input 4 Capture Volume", ADAU1373_AINL_CTRL(3),
ADAU1373_AINR_CTRL(3), 0, 0x1f, 0, adau1373_in_pga_tlv),
SOC_SINGLE_TLV("Earpiece Playback Volume", ADAU1373_EP_CTRL, 0, 3, 0,
adau1373_ep_tlv),
SOC_DOUBLE_TLV("AIF3 Boost Playback Volume", ADAU1373_VOL_GAIN1, 4, 5,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("AIF2 Boost Playback Volume", ADAU1373_VOL_GAIN1, 2, 3,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("AIF1 Boost Playback Volume", ADAU1373_VOL_GAIN1, 0, 1,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("AIF3 Boost Capture Volume", ADAU1373_VOL_GAIN2, 4, 5,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("AIF2 Boost Capture Volume", ADAU1373_VOL_GAIN2, 2, 3,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("AIF1 Boost Capture Volume", ADAU1373_VOL_GAIN2, 0, 1,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("DMIC Boost Capture Volume", ADAU1373_VOL_GAIN3, 6, 7,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("ADC Boost Capture Volume", ADAU1373_VOL_GAIN3, 4, 5,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("DAC2 Boost Playback Volume", ADAU1373_VOL_GAIN3, 2, 3,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("DAC1 Boost Playback Volume", ADAU1373_VOL_GAIN3, 0, 1,
1, 0, adau1373_gain_boost_tlv),
SOC_DOUBLE_TLV("Input 1 Boost Capture Volume", ADAU1373_ADC_GAIN, 0, 4,
1, 0, adau1373_input_boost_tlv),
SOC_DOUBLE_TLV("Input 2 Boost Capture Volume", ADAU1373_ADC_GAIN, 1, 5,
1, 0, adau1373_input_boost_tlv),
SOC_DOUBLE_TLV("Input 3 Boost Capture Volume", ADAU1373_ADC_GAIN, 2, 6,
1, 0, adau1373_input_boost_tlv),
SOC_DOUBLE_TLV("Input 4 Boost Capture Volume", ADAU1373_ADC_GAIN, 3, 7,
1, 0, adau1373_input_boost_tlv),
SOC_DOUBLE_TLV("Speaker Boost Playback Volume", ADAU1373_LS_CTRL, 2, 3,
1, 0, adau1373_speaker_boost_tlv),
SOC_ENUM("Lineout1 LR Mux", adau1373_lineout1_lr_mux_enum),
SOC_ENUM("Speaker LR Mux", adau1373_speaker_lr_mux_enum),
SOC_ENUM("HPF Cutoff", adau1373_hpf_cutoff_enum),
SOC_DOUBLE("HPF Switch", ADAU1373_HPF_CTRL, 1, 0, 1, 0),
SOC_ENUM("HPF Channel", adau1373_hpf_channel_enum),
SOC_ENUM("Bass HPF Cutoff", adau1373_bass_hpf_cutoff_enum),
SOC_ENUM("Bass Clip Level Threshold", adau1373_bass_clip_level_enum),
SOC_ENUM("Bass LPF Cutoff", adau1373_bass_lpf_cutoff_enum),
SOC_DOUBLE("Bass Playback Switch", ADAU1373_BASS2, 0, 1, 1, 0),
SOC_SINGLE_TLV("Bass Playback Volume", ADAU1373_BASS2, 2, 7, 0,
adau1373_bass_tlv),
SOC_ENUM("Bass Channel", adau1373_bass_channel_enum),
SOC_ENUM("3D Freq", adau1373_3d_cutoff_enum),
SOC_ENUM("3D Level", adau1373_3d_level_enum),
SOC_SINGLE("3D Playback Switch", ADAU1373_3D_CTRL2, 0, 1, 0),
SOC_SINGLE_TLV("3D Playback Volume", ADAU1373_3D_CTRL2, 2, 7, 0,
adau1373_3d_tlv),
SOC_ENUM("3D Channel", adau1373_bass_channel_enum),
SOC_SINGLE("Zero Cross Switch", ADAU1373_PWDN_CTRL3, 7, 1, 0),
};
static const struct snd_kcontrol_new adau1373_lineout2_controls[] = {
SOC_DOUBLE_R_TLV("Lineout2 Playback Volume", ADAU1373_LLINE_OUT(1),
ADAU1373_RLINE_OUT(1), 0, 0x1f, 0, adau1373_out_tlv),
SOC_ENUM("Lineout2 LR Mux", adau1373_lineout2_lr_mux_enum),
};
static const struct snd_kcontrol_new adau1373_drc_controls[] = {
SOC_ENUM("DRC1 Channel", adau1373_drc1_channel_enum),
SOC_ENUM("DRC2 Channel", adau1373_drc2_channel_enum),
SOC_ENUM("DRC3 Channel", adau1373_drc3_channel_enum),
};
static int adau1373_pll_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component);
unsigned int pll_id = w->name[3] - '1';
unsigned int val;
if (SND_SOC_DAPM_EVENT_ON(event))
val = ADAU1373_PLL_CTRL6_PLL_EN;
else
val = 0;
regmap_update_bits(adau1373->regmap, ADAU1373_PLL_CTRL6(pll_id),
ADAU1373_PLL_CTRL6_PLL_EN, val);
if (SND_SOC_DAPM_EVENT_ON(event))
mdelay(5);
return 0;
}
static const char *adau1373_decimator_text[] = {
"ADC",
"DMIC1",
};
static SOC_ENUM_SINGLE_VIRT_DECL(adau1373_decimator_enum,
adau1373_decimator_text);
static const struct snd_kcontrol_new adau1373_decimator_mux =
SOC_DAPM_ENUM("Decimator Mux", adau1373_decimator_enum);
static const struct snd_kcontrol_new adau1373_left_adc_mixer_controls[] = {
SOC_DAPM_SINGLE("DAC1 Switch", ADAU1373_LADC_MIXER, 4, 1, 0),
SOC_DAPM_SINGLE("Input 4 Switch", ADAU1373_LADC_MIXER, 3, 1, 0),
SOC_DAPM_SINGLE("Input 3 Switch", ADAU1373_LADC_MIXER, 2, 1, 0),
SOC_DAPM_SINGLE("Input 2 Switch", ADAU1373_LADC_MIXER, 1, 1, 0),
SOC_DAPM_SINGLE("Input 1 Switch", ADAU1373_LADC_MIXER, 0, 1, 0),
};
static const struct snd_kcontrol_new adau1373_right_adc_mixer_controls[] = {
SOC_DAPM_SINGLE("DAC1 Switch", ADAU1373_RADC_MIXER, 4, 1, 0),
SOC_DAPM_SINGLE("Input 4 Switch", ADAU1373_RADC_MIXER, 3, 1, 0),
SOC_DAPM_SINGLE("Input 3 Switch", ADAU1373_RADC_MIXER, 2, 1, 0),
SOC_DAPM_SINGLE("Input 2 Switch", ADAU1373_RADC_MIXER, 1, 1, 0),
SOC_DAPM_SINGLE("Input 1 Switch", ADAU1373_RADC_MIXER, 0, 1, 0),
};
#define DECLARE_ADAU1373_OUTPUT_MIXER_CTRLS(_name, _reg) \
const struct snd_kcontrol_new _name[] = { \
SOC_DAPM_SINGLE("Left DAC2 Switch", _reg, 7, 1, 0), \
SOC_DAPM_SINGLE("Right DAC2 Switch", _reg, 6, 1, 0), \
SOC_DAPM_SINGLE("Left DAC1 Switch", _reg, 5, 1, 0), \
SOC_DAPM_SINGLE("Right DAC1 Switch", _reg, 4, 1, 0), \
SOC_DAPM_SINGLE("Input 4 Bypass Switch", _reg, 3, 1, 0), \
SOC_DAPM_SINGLE("Input 3 Bypass Switch", _reg, 2, 1, 0), \
SOC_DAPM_SINGLE("Input 2 Bypass Switch", _reg, 1, 1, 0), \
SOC_DAPM_SINGLE("Input 1 Bypass Switch", _reg, 0, 1, 0), \
}
static DECLARE_ADAU1373_OUTPUT_MIXER_CTRLS(adau1373_left_line1_mixer_controls,
ADAU1373_LLINE1_MIX);
static DECLARE_ADAU1373_OUTPUT_MIXER_CTRLS(adau1373_right_line1_mixer_controls,
ADAU1373_RLINE1_MIX);
static DECLARE_ADAU1373_OUTPUT_MIXER_CTRLS(adau1373_left_line2_mixer_controls,
ADAU1373_LLINE2_MIX);
static DECLARE_ADAU1373_OUTPUT_MIXER_CTRLS(adau1373_right_line2_mixer_controls,
ADAU1373_RLINE2_MIX);
static DECLARE_ADAU1373_OUTPUT_MIXER_CTRLS(adau1373_left_spk_mixer_controls,
ADAU1373_LSPK_MIX);
static DECLARE_ADAU1373_OUTPUT_MIXER_CTRLS(adau1373_right_spk_mixer_controls,
ADAU1373_RSPK_MIX);
static DECLARE_ADAU1373_OUTPUT_MIXER_CTRLS(adau1373_ep_mixer_controls,
ADAU1373_EP_MIX);
static const struct snd_kcontrol_new adau1373_left_hp_mixer_controls[] = {
SOC_DAPM_SINGLE("Left DAC1 Switch", ADAU1373_LHP_MIX, 5, 1, 0),
SOC_DAPM_SINGLE("Left DAC2 Switch", ADAU1373_LHP_MIX, 4, 1, 0),
SOC_DAPM_SINGLE("Input 4 Bypass Switch", ADAU1373_LHP_MIX, 3, 1, 0),
SOC_DAPM_SINGLE("Input 3 Bypass Switch", ADAU1373_LHP_MIX, 2, 1, 0),
SOC_DAPM_SINGLE("Input 2 Bypass Switch", ADAU1373_LHP_MIX, 1, 1, 0),
SOC_DAPM_SINGLE("Input 1 Bypass Switch", ADAU1373_LHP_MIX, 0, 1, 0),
};
static const struct snd_kcontrol_new adau1373_right_hp_mixer_controls[] = {
SOC_DAPM_SINGLE("Right DAC1 Switch", ADAU1373_RHP_MIX, 5, 1, 0),
SOC_DAPM_SINGLE("Right DAC2 Switch", ADAU1373_RHP_MIX, 4, 1, 0),
SOC_DAPM_SINGLE("Input 4 Bypass Switch", ADAU1373_RHP_MIX, 3, 1, 0),
SOC_DAPM_SINGLE("Input 3 Bypass Switch", ADAU1373_RHP_MIX, 2, 1, 0),
SOC_DAPM_SINGLE("Input 2 Bypass Switch", ADAU1373_RHP_MIX, 1, 1, 0),
SOC_DAPM_SINGLE("Input 1 Bypass Switch", ADAU1373_RHP_MIX, 0, 1, 0),
};
#define DECLARE_ADAU1373_DSP_CHANNEL_MIXER_CTRLS(_name, _reg) \
const struct snd_kcontrol_new _name[] = { \
SOC_DAPM_SINGLE("DMIC2 Swapped Switch", _reg, 6, 1, 0), \
SOC_DAPM_SINGLE("DMIC2 Switch", _reg, 5, 1, 0), \
SOC_DAPM_SINGLE("ADC/DMIC1 Swapped Switch", _reg, 4, 1, 0), \
SOC_DAPM_SINGLE("ADC/DMIC1 Switch", _reg, 3, 1, 0), \
SOC_DAPM_SINGLE("AIF3 Switch", _reg, 2, 1, 0), \
SOC_DAPM_SINGLE("AIF2 Switch", _reg, 1, 1, 0), \
SOC_DAPM_SINGLE("AIF1 Switch", _reg, 0, 1, 0), \
}
static DECLARE_ADAU1373_DSP_CHANNEL_MIXER_CTRLS(adau1373_dsp_channel1_mixer_controls,
ADAU1373_DIN_MIX_CTRL(0));
static DECLARE_ADAU1373_DSP_CHANNEL_MIXER_CTRLS(adau1373_dsp_channel2_mixer_controls,
ADAU1373_DIN_MIX_CTRL(1));
static DECLARE_ADAU1373_DSP_CHANNEL_MIXER_CTRLS(adau1373_dsp_channel3_mixer_controls,
ADAU1373_DIN_MIX_CTRL(2));
static DECLARE_ADAU1373_DSP_CHANNEL_MIXER_CTRLS(adau1373_dsp_channel4_mixer_controls,
ADAU1373_DIN_MIX_CTRL(3));
static DECLARE_ADAU1373_DSP_CHANNEL_MIXER_CTRLS(adau1373_dsp_channel5_mixer_controls,
ADAU1373_DIN_MIX_CTRL(4));
#define DECLARE_ADAU1373_DSP_OUTPUT_MIXER_CTRLS(_name, _reg) \
const struct snd_kcontrol_new _name[] = { \
SOC_DAPM_SINGLE("DSP Channel5 Switch", _reg, 4, 1, 0), \
SOC_DAPM_SINGLE("DSP Channel4 Switch", _reg, 3, 1, 0), \
SOC_DAPM_SINGLE("DSP Channel3 Switch", _reg, 2, 1, 0), \
SOC_DAPM_SINGLE("DSP Channel2 Switch", _reg, 1, 1, 0), \
SOC_DAPM_SINGLE("DSP Channel1 Switch", _reg, 0, 1, 0), \
}
static DECLARE_ADAU1373_DSP_OUTPUT_MIXER_CTRLS(adau1373_aif1_mixer_controls,
ADAU1373_DOUT_MIX_CTRL(0));
static DECLARE_ADAU1373_DSP_OUTPUT_MIXER_CTRLS(adau1373_aif2_mixer_controls,
ADAU1373_DOUT_MIX_CTRL(1));
static DECLARE_ADAU1373_DSP_OUTPUT_MIXER_CTRLS(adau1373_aif3_mixer_controls,
ADAU1373_DOUT_MIX_CTRL(2));
static DECLARE_ADAU1373_DSP_OUTPUT_MIXER_CTRLS(adau1373_dac1_mixer_controls,
ADAU1373_DOUT_MIX_CTRL(3));
static DECLARE_ADAU1373_DSP_OUTPUT_MIXER_CTRLS(adau1373_dac2_mixer_controls,
ADAU1373_DOUT_MIX_CTRL(4));
static const struct snd_soc_dapm_widget adau1373_dapm_widgets[] = {
/* Datasheet claims Left ADC is bit 6 and Right ADC is bit 7, but that
* doesn't seem to be the case. */
SND_SOC_DAPM_ADC("Left ADC", NULL, ADAU1373_PWDN_CTRL1, 7, 0),
SND_SOC_DAPM_ADC("Right ADC", NULL, ADAU1373_PWDN_CTRL1, 6, 0),
SND_SOC_DAPM_ADC("DMIC1", NULL, ADAU1373_DIGMICCTRL, 0, 0),
SND_SOC_DAPM_ADC("DMIC2", NULL, ADAU1373_DIGMICCTRL, 2, 0),
SND_SOC_DAPM_MUX("Decimator Mux", SND_SOC_NOPM, 0, 0,
&adau1373_decimator_mux),
SND_SOC_DAPM_SUPPLY("MICBIAS2", ADAU1373_PWDN_CTRL1, 5, 0, NULL, 0),
SND_SOC_DAPM_SUPPLY("MICBIAS1", ADAU1373_PWDN_CTRL1, 4, 0, NULL, 0),
SND_SOC_DAPM_PGA("IN4PGA", ADAU1373_PWDN_CTRL1, 3, 0, NULL, 0),
SND_SOC_DAPM_PGA("IN3PGA", ADAU1373_PWDN_CTRL1, 2, 0, NULL, 0),
SND_SOC_DAPM_PGA("IN2PGA", ADAU1373_PWDN_CTRL1, 1, 0, NULL, 0),
SND_SOC_DAPM_PGA("IN1PGA", ADAU1373_PWDN_CTRL1, 0, 0, NULL, 0),
SND_SOC_DAPM_DAC("Left DAC2", NULL, ADAU1373_PWDN_CTRL2, 7, 0),
SND_SOC_DAPM_DAC("Right DAC2", NULL, ADAU1373_PWDN_CTRL2, 6, 0),
SND_SOC_DAPM_DAC("Left DAC1", NULL, ADAU1373_PWDN_CTRL2, 5, 0),
SND_SOC_DAPM_DAC("Right DAC1", NULL, ADAU1373_PWDN_CTRL2, 4, 0),
SOC_MIXER_ARRAY("Left ADC Mixer", SND_SOC_NOPM, 0, 0,
adau1373_left_adc_mixer_controls),
SOC_MIXER_ARRAY("Right ADC Mixer", SND_SOC_NOPM, 0, 0,
adau1373_right_adc_mixer_controls),
SOC_MIXER_ARRAY("Left Lineout2 Mixer", ADAU1373_PWDN_CTRL2, 3, 0,
adau1373_left_line2_mixer_controls),
SOC_MIXER_ARRAY("Right Lineout2 Mixer", ADAU1373_PWDN_CTRL2, 2, 0,
adau1373_right_line2_mixer_controls),
SOC_MIXER_ARRAY("Left Lineout1 Mixer", ADAU1373_PWDN_CTRL2, 1, 0,
adau1373_left_line1_mixer_controls),
SOC_MIXER_ARRAY("Right Lineout1 Mixer", ADAU1373_PWDN_CTRL2, 0, 0,
adau1373_right_line1_mixer_controls),
SOC_MIXER_ARRAY("Earpiece Mixer", ADAU1373_PWDN_CTRL3, 4, 0,
adau1373_ep_mixer_controls),
SOC_MIXER_ARRAY("Left Speaker Mixer", ADAU1373_PWDN_CTRL3, 3, 0,
adau1373_left_spk_mixer_controls),
SOC_MIXER_ARRAY("Right Speaker Mixer", ADAU1373_PWDN_CTRL3, 2, 0,
adau1373_right_spk_mixer_controls),
SOC_MIXER_ARRAY("Left Headphone Mixer", SND_SOC_NOPM, 0, 0,
adau1373_left_hp_mixer_controls),
SOC_MIXER_ARRAY("Right Headphone Mixer", SND_SOC_NOPM, 0, 0,
adau1373_right_hp_mixer_controls),
SND_SOC_DAPM_SUPPLY("Headphone Enable", ADAU1373_PWDN_CTRL3, 1, 0,
NULL, 0),
SND_SOC_DAPM_SUPPLY("AIF1 CLK", ADAU1373_SRC_DAI_CTRL(0), 0, 0,
NULL, 0),
SND_SOC_DAPM_SUPPLY("AIF2 CLK", ADAU1373_SRC_DAI_CTRL(1), 0, 0,
NULL, 0),
SND_SOC_DAPM_SUPPLY("AIF3 CLK", ADAU1373_SRC_DAI_CTRL(2), 0, 0,
NULL, 0),
SND_SOC_DAPM_SUPPLY("AIF1 IN SRC", ADAU1373_SRC_DAI_CTRL(0), 2, 0,
NULL, 0),
SND_SOC_DAPM_SUPPLY("AIF1 OUT SRC", ADAU1373_SRC_DAI_CTRL(0), 1, 0,
NULL, 0),
SND_SOC_DAPM_SUPPLY("AIF2 IN SRC", ADAU1373_SRC_DAI_CTRL(1), 2, 0,
NULL, 0),
SND_SOC_DAPM_SUPPLY("AIF2 OUT SRC", ADAU1373_SRC_DAI_CTRL(1), 1, 0,
NULL, 0),
SND_SOC_DAPM_SUPPLY("AIF3 IN SRC", ADAU1373_SRC_DAI_CTRL(2), 2, 0,
NULL, 0),
SND_SOC_DAPM_SUPPLY("AIF3 OUT SRC", ADAU1373_SRC_DAI_CTRL(2), 1, 0,
NULL, 0),
SND_SOC_DAPM_AIF_IN("AIF1 IN", "AIF1 Playback", 0, SND_SOC_NOPM, 0, 0),
SND_SOC_DAPM_AIF_OUT("AIF1 OUT", "AIF1 Capture", 0, SND_SOC_NOPM, 0, 0),
SND_SOC_DAPM_AIF_IN("AIF2 IN", "AIF2 Playback", 0, SND_SOC_NOPM, 0, 0),
SND_SOC_DAPM_AIF_OUT("AIF2 OUT", "AIF2 Capture", 0, SND_SOC_NOPM, 0, 0),
SND_SOC_DAPM_AIF_IN("AIF3 IN", "AIF3 Playback", 0, SND_SOC_NOPM, 0, 0),
SND_SOC_DAPM_AIF_OUT("AIF3 OUT", "AIF3 Capture", 0, SND_SOC_NOPM, 0, 0),
SOC_MIXER_ARRAY("DSP Channel1 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_dsp_channel1_mixer_controls),
SOC_MIXER_ARRAY("DSP Channel2 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_dsp_channel2_mixer_controls),
SOC_MIXER_ARRAY("DSP Channel3 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_dsp_channel3_mixer_controls),
SOC_MIXER_ARRAY("DSP Channel4 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_dsp_channel4_mixer_controls),
SOC_MIXER_ARRAY("DSP Channel5 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_dsp_channel5_mixer_controls),
SOC_MIXER_ARRAY("AIF1 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_aif1_mixer_controls),
SOC_MIXER_ARRAY("AIF2 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_aif2_mixer_controls),
SOC_MIXER_ARRAY("AIF3 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_aif3_mixer_controls),
SOC_MIXER_ARRAY("DAC1 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_dac1_mixer_controls),
SOC_MIXER_ARRAY("DAC2 Mixer", SND_SOC_NOPM, 0, 0,
adau1373_dac2_mixer_controls),
SND_SOC_DAPM_SUPPLY("DSP", ADAU1373_DIGEN, 4, 0, NULL, 0),
SND_SOC_DAPM_SUPPLY("Recording Engine B", ADAU1373_DIGEN, 3, 0, NULL, 0),
SND_SOC_DAPM_SUPPLY("Recording Engine A", ADAU1373_DIGEN, 2, 0, NULL, 0),
SND_SOC_DAPM_SUPPLY("Playback Engine B", ADAU1373_DIGEN, 1, 0, NULL, 0),
SND_SOC_DAPM_SUPPLY("Playback Engine A", ADAU1373_DIGEN, 0, 0, NULL, 0),
SND_SOC_DAPM_SUPPLY("PLL1", SND_SOC_NOPM, 0, 0, adau1373_pll_event,
SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
SND_SOC_DAPM_SUPPLY("PLL2", SND_SOC_NOPM, 0, 0, adau1373_pll_event,
SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
SND_SOC_DAPM_SUPPLY("SYSCLK1", ADAU1373_CLK_SRC_DIV(0), 7, 0, NULL, 0),
SND_SOC_DAPM_SUPPLY("SYSCLK2", ADAU1373_CLK_SRC_DIV(1), 7, 0, NULL, 0),
SND_SOC_DAPM_INPUT("AIN1L"),
SND_SOC_DAPM_INPUT("AIN1R"),
SND_SOC_DAPM_INPUT("AIN2L"),
SND_SOC_DAPM_INPUT("AIN2R"),
SND_SOC_DAPM_INPUT("AIN3L"),
SND_SOC_DAPM_INPUT("AIN3R"),
SND_SOC_DAPM_INPUT("AIN4L"),
SND_SOC_DAPM_INPUT("AIN4R"),
SND_SOC_DAPM_INPUT("DMIC1DAT"),
SND_SOC_DAPM_INPUT("DMIC2DAT"),
SND_SOC_DAPM_OUTPUT("LOUT1L"),
SND_SOC_DAPM_OUTPUT("LOUT1R"),
SND_SOC_DAPM_OUTPUT("LOUT2L"),
SND_SOC_DAPM_OUTPUT("LOUT2R"),
SND_SOC_DAPM_OUTPUT("HPL"),
SND_SOC_DAPM_OUTPUT("HPR"),
SND_SOC_DAPM_OUTPUT("SPKL"),
SND_SOC_DAPM_OUTPUT("SPKR"),
SND_SOC_DAPM_OUTPUT("EP"),
};
static int adau1373_check_aif_clk(struct snd_soc_dapm_widget *source,
struct snd_soc_dapm_widget *sink)
{
struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm);
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component);
unsigned int dai;
const char *clk;
dai = sink->name[3] - '1';
if (!adau1373->dais[dai].master)
return 0;
if (adau1373->dais[dai].clk_src == ADAU1373_CLK_SRC_PLL1)
clk = "SYSCLK1";
else
clk = "SYSCLK2";
return strcmp(source->name, clk) == 0;
}
static int adau1373_check_src(struct snd_soc_dapm_widget *source,
struct snd_soc_dapm_widget *sink)
{
struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm);
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component);
unsigned int dai;
dai = sink->name[3] - '1';
return adau1373->dais[dai].enable_src;
}
#define DSP_CHANNEL_MIXER_ROUTES(_sink) \
{ _sink, "DMIC2 Swapped Switch", "DMIC2" }, \
{ _sink, "DMIC2 Switch", "DMIC2" }, \
{ _sink, "ADC/DMIC1 Swapped Switch", "Decimator Mux" }, \
{ _sink, "ADC/DMIC1 Switch", "Decimator Mux" }, \
{ _sink, "AIF1 Switch", "AIF1 IN" }, \
{ _sink, "AIF2 Switch", "AIF2 IN" }, \
{ _sink, "AIF3 Switch", "AIF3 IN" }
#define DSP_OUTPUT_MIXER_ROUTES(_sink) \
{ _sink, "DSP Channel1 Switch", "DSP Channel1 Mixer" }, \
{ _sink, "DSP Channel2 Switch", "DSP Channel2 Mixer" }, \
{ _sink, "DSP Channel3 Switch", "DSP Channel3 Mixer" }, \
{ _sink, "DSP Channel4 Switch", "DSP Channel4 Mixer" }, \
{ _sink, "DSP Channel5 Switch", "DSP Channel5 Mixer" }
#define LEFT_OUTPUT_MIXER_ROUTES(_sink) \
{ _sink, "Right DAC2 Switch", "Right DAC2" }, \
{ _sink, "Left DAC2 Switch", "Left DAC2" }, \
{ _sink, "Right DAC1 Switch", "Right DAC1" }, \
{ _sink, "Left DAC1 Switch", "Left DAC1" }, \
{ _sink, "Input 1 Bypass Switch", "IN1PGA" }, \
{ _sink, "Input 2 Bypass Switch", "IN2PGA" }, \
{ _sink, "Input 3 Bypass Switch", "IN3PGA" }, \
{ _sink, "Input 4 Bypass Switch", "IN4PGA" }
#define RIGHT_OUTPUT_MIXER_ROUTES(_sink) \
{ _sink, "Right DAC2 Switch", "Right DAC2" }, \
{ _sink, "Left DAC2 Switch", "Left DAC2" }, \
{ _sink, "Right DAC1 Switch", "Right DAC1" }, \
{ _sink, "Left DAC1 Switch", "Left DAC1" }, \
{ _sink, "Input 1 Bypass Switch", "IN1PGA" }, \
{ _sink, "Input 2 Bypass Switch", "IN2PGA" }, \
{ _sink, "Input 3 Bypass Switch", "IN3PGA" }, \
{ _sink, "Input 4 Bypass Switch", "IN4PGA" }
static const struct snd_soc_dapm_route adau1373_dapm_routes[] = {
{ "Left ADC Mixer", "DAC1 Switch", "Left DAC1" },
{ "Left ADC Mixer", "Input 1 Switch", "IN1PGA" },
{ "Left ADC Mixer", "Input 2 Switch", "IN2PGA" },
{ "Left ADC Mixer", "Input 3 Switch", "IN3PGA" },
{ "Left ADC Mixer", "Input 4 Switch", "IN4PGA" },
{ "Right ADC Mixer", "DAC1 Switch", "Right DAC1" },
{ "Right ADC Mixer", "Input 1 Switch", "IN1PGA" },
{ "Right ADC Mixer", "Input 2 Switch", "IN2PGA" },
{ "Right ADC Mixer", "Input 3 Switch", "IN3PGA" },
{ "Right ADC Mixer", "Input 4 Switch", "IN4PGA" },
{ "Left ADC", NULL, "Left ADC Mixer" },
{ "Right ADC", NULL, "Right ADC Mixer" },
{ "Decimator Mux", "ADC", "Left ADC" },
{ "Decimator Mux", "ADC", "Right ADC" },
{ "Decimator Mux", "DMIC1", "DMIC1" },
DSP_CHANNEL_MIXER_ROUTES("DSP Channel1 Mixer"),
DSP_CHANNEL_MIXER_ROUTES("DSP Channel2 Mixer"),
DSP_CHANNEL_MIXER_ROUTES("DSP Channel3 Mixer"),
DSP_CHANNEL_MIXER_ROUTES("DSP Channel4 Mixer"),
DSP_CHANNEL_MIXER_ROUTES("DSP Channel5 Mixer"),
DSP_OUTPUT_MIXER_ROUTES("AIF1 Mixer"),
DSP_OUTPUT_MIXER_ROUTES("AIF2 Mixer"),
DSP_OUTPUT_MIXER_ROUTES("AIF3 Mixer"),
DSP_OUTPUT_MIXER_ROUTES("DAC1 Mixer"),
DSP_OUTPUT_MIXER_ROUTES("DAC2 Mixer"),
{ "AIF1 OUT", NULL, "AIF1 Mixer" },
{ "AIF2 OUT", NULL, "AIF2 Mixer" },
{ "AIF3 OUT", NULL, "AIF3 Mixer" },
{ "Left DAC1", NULL, "DAC1 Mixer" },
{ "Right DAC1", NULL, "DAC1 Mixer" },
{ "Left DAC2", NULL, "DAC2 Mixer" },
{ "Right DAC2", NULL, "DAC2 Mixer" },
LEFT_OUTPUT_MIXER_ROUTES("Left Lineout1 Mixer"),
RIGHT_OUTPUT_MIXER_ROUTES("Right Lineout1 Mixer"),
LEFT_OUTPUT_MIXER_ROUTES("Left Lineout2 Mixer"),
RIGHT_OUTPUT_MIXER_ROUTES("Right Lineout2 Mixer"),
LEFT_OUTPUT_MIXER_ROUTES("Left Speaker Mixer"),
RIGHT_OUTPUT_MIXER_ROUTES("Right Speaker Mixer"),
{ "Left Headphone Mixer", "Left DAC2 Switch", "Left DAC2" },
{ "Left Headphone Mixer", "Left DAC1 Switch", "Left DAC1" },
{ "Left Headphone Mixer", "Input 1 Bypass Switch", "IN1PGA" },
{ "Left Headphone Mixer", "Input 2 Bypass Switch", "IN2PGA" },
{ "Left Headphone Mixer", "Input 3 Bypass Switch", "IN3PGA" },
{ "Left Headphone Mixer", "Input 4 Bypass Switch", "IN4PGA" },
{ "Right Headphone Mixer", "Right DAC2 Switch", "Right DAC2" },
{ "Right Headphone Mixer", "Right DAC1 Switch", "Right DAC1" },
{ "Right Headphone Mixer", "Input 1 Bypass Switch", "IN1PGA" },
{ "Right Headphone Mixer", "Input 2 Bypass Switch", "IN2PGA" },
{ "Right Headphone Mixer", "Input 3 Bypass Switch", "IN3PGA" },
{ "Right Headphone Mixer", "Input 4 Bypass Switch", "IN4PGA" },
{ "Left Headphone Mixer", NULL, "Headphone Enable" },
{ "Right Headphone Mixer", NULL, "Headphone Enable" },
{ "Earpiece Mixer", "Right DAC2 Switch", "Right DAC2" },
{ "Earpiece Mixer", "Left DAC2 Switch", "Left DAC2" },
{ "Earpiece Mixer", "Right DAC1 Switch", "Right DAC1" },
{ "Earpiece Mixer", "Left DAC1 Switch", "Left DAC1" },
{ "Earpiece Mixer", "Input 1 Bypass Switch", "IN1PGA" },
{ "Earpiece Mixer", "Input 2 Bypass Switch", "IN2PGA" },
{ "Earpiece Mixer", "Input 3 Bypass Switch", "IN3PGA" },
{ "Earpiece Mixer", "Input 4 Bypass Switch", "IN4PGA" },
{ "LOUT1L", NULL, "Left Lineout1 Mixer" },
{ "LOUT1R", NULL, "Right Lineout1 Mixer" },
{ "LOUT2L", NULL, "Left Lineout2 Mixer" },
{ "LOUT2R", NULL, "Right Lineout2 Mixer" },
{ "SPKL", NULL, "Left Speaker Mixer" },
{ "SPKR", NULL, "Right Speaker Mixer" },
{ "HPL", NULL, "Left Headphone Mixer" },
{ "HPR", NULL, "Right Headphone Mixer" },
{ "EP", NULL, "Earpiece Mixer" },
{ "IN1PGA", NULL, "AIN1L" },
{ "IN2PGA", NULL, "AIN2L" },
{ "IN3PGA", NULL, "AIN3L" },
{ "IN4PGA", NULL, "AIN4L" },
{ "IN1PGA", NULL, "AIN1R" },
{ "IN2PGA", NULL, "AIN2R" },
{ "IN3PGA", NULL, "AIN3R" },
{ "IN4PGA", NULL, "AIN4R" },
{ "SYSCLK1", NULL, "PLL1" },
{ "SYSCLK2", NULL, "PLL2" },
{ "Left DAC1", NULL, "SYSCLK1" },
{ "Right DAC1", NULL, "SYSCLK1" },
{ "Left DAC2", NULL, "SYSCLK1" },
{ "Right DAC2", NULL, "SYSCLK1" },
{ "Left ADC", NULL, "SYSCLK1" },
{ "Right ADC", NULL, "SYSCLK1" },
{ "DSP", NULL, "SYSCLK1" },
{ "AIF1 Mixer", NULL, "DSP" },
{ "AIF2 Mixer", NULL, "DSP" },
{ "AIF3 Mixer", NULL, "DSP" },
{ "DAC1 Mixer", NULL, "DSP" },
{ "DAC2 Mixer", NULL, "DSP" },
{ "DAC1 Mixer", NULL, "Playback Engine A" },
{ "DAC2 Mixer", NULL, "Playback Engine B" },
{ "Left ADC Mixer", NULL, "Recording Engine A" },
{ "Right ADC Mixer", NULL, "Recording Engine A" },
{ "AIF1 CLK", NULL, "SYSCLK1", adau1373_check_aif_clk },
{ "AIF2 CLK", NULL, "SYSCLK1", adau1373_check_aif_clk },
{ "AIF3 CLK", NULL, "SYSCLK1", adau1373_check_aif_clk },
{ "AIF1 CLK", NULL, "SYSCLK2", adau1373_check_aif_clk },
{ "AIF2 CLK", NULL, "SYSCLK2", adau1373_check_aif_clk },
{ "AIF3 CLK", NULL, "SYSCLK2", adau1373_check_aif_clk },
{ "AIF1 IN", NULL, "AIF1 CLK" },
{ "AIF1 OUT", NULL, "AIF1 CLK" },
{ "AIF2 IN", NULL, "AIF2 CLK" },
{ "AIF2 OUT", NULL, "AIF2 CLK" },
{ "AIF3 IN", NULL, "AIF3 CLK" },
{ "AIF3 OUT", NULL, "AIF3 CLK" },
{ "AIF1 IN", NULL, "AIF1 IN SRC", adau1373_check_src },
{ "AIF1 OUT", NULL, "AIF1 OUT SRC", adau1373_check_src },
{ "AIF2 IN", NULL, "AIF2 IN SRC", adau1373_check_src },
{ "AIF2 OUT", NULL, "AIF2 OUT SRC", adau1373_check_src },
{ "AIF3 IN", NULL, "AIF3 IN SRC", adau1373_check_src },
{ "AIF3 OUT", NULL, "AIF3 OUT SRC", adau1373_check_src },
{ "DMIC1", NULL, "DMIC1DAT" },
{ "DMIC1", NULL, "SYSCLK1" },
{ "DMIC1", NULL, "Recording Engine A" },
{ "DMIC2", NULL, "DMIC2DAT" },
{ "DMIC2", NULL, "SYSCLK1" },
{ "DMIC2", NULL, "Recording Engine B" },
};
static int adau1373_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
{
struct snd_soc_component *component = dai->component;
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component);
struct adau1373_dai *adau1373_dai = &adau1373->dais[dai->id];
unsigned int div;
unsigned int freq;
unsigned int ctrl;
freq = adau1373_dai->sysclk;
if (freq % params_rate(params) != 0)
return -EINVAL;
switch (freq / params_rate(params)) {
case 1024: /* sysclk / 256 */
div = 0;
break;
case 1536: /* 2/3 sysclk / 256 */
div = 1;
break;
case 2048: /* 1/2 sysclk / 256 */
div = 2;
break;
case 3072: /* 1/3 sysclk / 256 */
div = 3;
break;
case 4096: /* 1/4 sysclk / 256 */
div = 4;
break;
case 6144: /* 1/6 sysclk / 256 */
div = 5;
break;
case 5632: /* 2/11 sysclk / 256 */
div = 6;
break;
default:
return -EINVAL;
}
adau1373_dai->enable_src = (div != 0);
regmap_update_bits(adau1373->regmap, ADAU1373_BCLKDIV(dai->id),
ADAU1373_BCLKDIV_SR_MASK | ADAU1373_BCLKDIV_BCLK_MASK,
(div << 2) | ADAU1373_BCLKDIV_64);
switch (params_width(params)) {
case 16:
ctrl = ADAU1373_DAI_WLEN_16;
break;
case 20:
ctrl = ADAU1373_DAI_WLEN_20;
break;
case 24:
ctrl = ADAU1373_DAI_WLEN_24;
break;
case 32:
ctrl = ADAU1373_DAI_WLEN_32;
break;
default:
return -EINVAL;
}
return regmap_update_bits(adau1373->regmap, ADAU1373_DAI(dai->id),
ADAU1373_DAI_WLEN_MASK, ctrl);
}
static int adau1373_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{
struct snd_soc_component *component = dai->component;
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component);
struct adau1373_dai *adau1373_dai = &adau1373->dais[dai->id];
unsigned int ctrl;
switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
case SND_SOC_DAIFMT_CBM_CFM:
ctrl = ADAU1373_DAI_MASTER;
adau1373_dai->master = true;
break;
case SND_SOC_DAIFMT_CBS_CFS:
ctrl = 0;
adau1373_dai->master = false;
break;
default:
return -EINVAL;
}
switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
case SND_SOC_DAIFMT_I2S:
ctrl |= ADAU1373_DAI_FORMAT_I2S;
break;
case SND_SOC_DAIFMT_LEFT_J:
ctrl |= ADAU1373_DAI_FORMAT_LEFT_J;
break;
case SND_SOC_DAIFMT_RIGHT_J:
ctrl |= ADAU1373_DAI_FORMAT_RIGHT_J;
break;
case SND_SOC_DAIFMT_DSP_B:
ctrl |= ADAU1373_DAI_FORMAT_DSP;
break;
default:
return -EINVAL;
}
switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
case SND_SOC_DAIFMT_NB_NF:
break;
case SND_SOC_DAIFMT_IB_NF:
ctrl |= ADAU1373_DAI_INVERT_BCLK;
break;
case SND_SOC_DAIFMT_NB_IF:
ctrl |= ADAU1373_DAI_INVERT_LRCLK;
break;
case SND_SOC_DAIFMT_IB_IF:
ctrl |= ADAU1373_DAI_INVERT_LRCLK | ADAU1373_DAI_INVERT_BCLK;
break;
default:
return -EINVAL;
}
regmap_update_bits(adau1373->regmap, ADAU1373_DAI(dai->id),
~ADAU1373_DAI_WLEN_MASK, ctrl);
return 0;
}
static int adau1373_set_dai_sysclk(struct snd_soc_dai *dai,
int clk_id, unsigned int freq, int dir)
{
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(dai->component);
struct adau1373_dai *adau1373_dai = &adau1373->dais[dai->id];
switch (clk_id) {
case ADAU1373_CLK_SRC_PLL1:
case ADAU1373_CLK_SRC_PLL2:
break;
default:
return -EINVAL;
}
adau1373_dai->sysclk = freq;
adau1373_dai->clk_src = clk_id;
regmap_update_bits(adau1373->regmap, ADAU1373_BCLKDIV(dai->id),
ADAU1373_BCLKDIV_SOURCE, clk_id << 5);
return 0;
}
static const struct snd_soc_dai_ops adau1373_dai_ops = {
.hw_params = adau1373_hw_params,
.set_sysclk = adau1373_set_dai_sysclk,
.set_fmt = adau1373_set_dai_fmt,
};
#define ADAU1373_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
static struct snd_soc_dai_driver adau1373_dai_driver[] = {
{
.id = 0,
.name = "adau1373-aif1",
.playback = {
.stream_name = "AIF1 Playback",
.channels_min = 2,
.channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_48000,
.formats = ADAU1373_FORMATS,
},
.capture = {
.stream_name = "AIF1 Capture",
.channels_min = 2,
.channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_48000,
.formats = ADAU1373_FORMATS,
},
.ops = &adau1373_dai_ops,
.symmetric_rates = 1,
},
{
.id = 1,
.name = "adau1373-aif2",
.playback = {
.stream_name = "AIF2 Playback",
.channels_min = 2,
.channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_48000,
.formats = ADAU1373_FORMATS,
},
.capture = {
.stream_name = "AIF2 Capture",
.channels_min = 2,
.channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_48000,
.formats = ADAU1373_FORMATS,
},
.ops = &adau1373_dai_ops,
.symmetric_rates = 1,
},
{
.id = 2,
.name = "adau1373-aif3",
.playback = {
.stream_name = "AIF3 Playback",
.channels_min = 2,
.channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_48000,
.formats = ADAU1373_FORMATS,
},
.capture = {
.stream_name = "AIF3 Capture",
.channels_min = 2,
.channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_48000,
.formats = ADAU1373_FORMATS,
},
.ops = &adau1373_dai_ops,
.symmetric_rates = 1,
},
};
static int adau1373_set_pll(struct snd_soc_component *component, int pll_id,
int source, unsigned int freq_in, unsigned int freq_out)
{
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component);
unsigned int dpll_div = 0;
uint8_t pll_regs[5];
int ret;
switch (pll_id) {
case ADAU1373_PLL1:
case ADAU1373_PLL2:
break;
default:
return -EINVAL;
}
switch (source) {
case ADAU1373_PLL_SRC_BCLK1:
case ADAU1373_PLL_SRC_BCLK2:
case ADAU1373_PLL_SRC_BCLK3:
case ADAU1373_PLL_SRC_LRCLK1:
case ADAU1373_PLL_SRC_LRCLK2:
case ADAU1373_PLL_SRC_LRCLK3:
case ADAU1373_PLL_SRC_MCLK1:
case ADAU1373_PLL_SRC_MCLK2:
case ADAU1373_PLL_SRC_GPIO1:
case ADAU1373_PLL_SRC_GPIO2:
case ADAU1373_PLL_SRC_GPIO3:
case ADAU1373_PLL_SRC_GPIO4:
break;
default:
return -EINVAL;
}
if (freq_in < 7813 || freq_in > 27000000)
return -EINVAL;
if (freq_out < 45158000 || freq_out > 49152000)
return -EINVAL;
/* APLL input needs to be >= 8Mhz, so in case freq_in is less we use the
* DPLL to get it there. DPLL_out = (DPLL_in / div) * 1024 */
while (freq_in < 8000000) {
freq_in *= 2;
dpll_div++;
}
ret = adau_calc_pll_cfg(freq_in, freq_out, pll_regs);
if (ret)
return -EINVAL;
if (dpll_div) {
dpll_div = 11 - dpll_div;
regmap_update_bits(adau1373->regmap, ADAU1373_PLL_CTRL6(pll_id),
ADAU1373_PLL_CTRL6_DPLL_BYPASS, 0);
} else {
regmap_update_bits(adau1373->regmap, ADAU1373_PLL_CTRL6(pll_id),
ADAU1373_PLL_CTRL6_DPLL_BYPASS,
ADAU1373_PLL_CTRL6_DPLL_BYPASS);
}
regmap_write(adau1373->regmap, ADAU1373_DPLL_CTRL(pll_id),
(source << 4) | dpll_div);
regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL1(pll_id), pll_regs[0]);
regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL2(pll_id), pll_regs[1]);
regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL3(pll_id), pll_regs[2]);
regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL4(pll_id), pll_regs[3]);
regmap_write(adau1373->regmap, ADAU1373_PLL_CTRL5(pll_id), pll_regs[4]);
/* Set sysclk to pll_rate / 4 */
regmap_update_bits(adau1373->regmap, ADAU1373_CLK_SRC_DIV(pll_id), 0x3f, 0x09);
return 0;
}
static void adau1373_load_drc_settings(struct adau1373 *adau1373,
unsigned int nr, uint8_t *drc)
{
unsigned int i;
for (i = 0; i < ADAU1373_DRC_SIZE; ++i)
regmap_write(adau1373->regmap, ADAU1373_DRC(nr) + i, drc[i]);
}
static bool adau1373_valid_micbias(enum adau1373_micbias_voltage micbias)
{
switch (micbias) {
case ADAU1373_MICBIAS_2_9V:
case ADAU1373_MICBIAS_2_2V:
case ADAU1373_MICBIAS_2_6V:
case ADAU1373_MICBIAS_1_8V:
return true;
default:
break;
}
return false;
}
static int adau1373_probe(struct snd_soc_component *component)
{
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component);
struct adau1373_platform_data *pdata = component->dev->platform_data;
bool lineout_differential = false;
unsigned int val;
int i;
if (pdata) {
if (pdata->num_drc > ARRAY_SIZE(pdata->drc_setting))
return -EINVAL;
if (!adau1373_valid_micbias(pdata->micbias1) ||
!adau1373_valid_micbias(pdata->micbias2))
return -EINVAL;
for (i = 0; i < pdata->num_drc; ++i) {
adau1373_load_drc_settings(adau1373, i,
pdata->drc_setting[i]);
}
snd_soc_add_component_controls(component, adau1373_drc_controls,
pdata->num_drc);
val = 0;
for (i = 0; i < 4; ++i) {
if (pdata->input_differential[i])
val |= BIT(i);
}
regmap_write(adau1373->regmap, ADAU1373_INPUT_MODE, val);
val = 0;
if (pdata->lineout_differential)
val |= ADAU1373_OUTPUT_CTRL_LDIFF;
if (pdata->lineout_ground_sense)
val |= ADAU1373_OUTPUT_CTRL_LNFBEN;
regmap_write(adau1373->regmap, ADAU1373_OUTPUT_CTRL, val);
lineout_differential = pdata->lineout_differential;
regmap_write(adau1373->regmap, ADAU1373_EP_CTRL,
(pdata->micbias1 << ADAU1373_EP_CTRL_MICBIAS1_OFFSET) |
(pdata->micbias2 << ADAU1373_EP_CTRL_MICBIAS2_OFFSET));
}
if (!lineout_differential) {
snd_soc_add_component_controls(component, adau1373_lineout2_controls,
ARRAY_SIZE(adau1373_lineout2_controls));
}
regmap_write(adau1373->regmap, ADAU1373_ADC_CTRL,
ADAU1373_ADC_CTRL_RESET_FORCE | ADAU1373_ADC_CTRL_PEAK_DETECT);
return 0;
}
static int adau1373_set_bias_level(struct snd_soc_component *component,
enum snd_soc_bias_level level)
{
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component);
switch (level) {
case SND_SOC_BIAS_ON:
break;
case SND_SOC_BIAS_PREPARE:
break;
case SND_SOC_BIAS_STANDBY:
regmap_update_bits(adau1373->regmap, ADAU1373_PWDN_CTRL3,
ADAU1373_PWDN_CTRL3_PWR_EN, ADAU1373_PWDN_CTRL3_PWR_EN);
break;
case SND_SOC_BIAS_OFF:
regmap_update_bits(adau1373->regmap, ADAU1373_PWDN_CTRL3,
ADAU1373_PWDN_CTRL3_PWR_EN, 0);
break;
}
return 0;
}
static int adau1373_resume(struct snd_soc_component *component)
{
struct adau1373 *adau1373 = snd_soc_component_get_drvdata(component);
regcache_sync(adau1373->regmap);
return 0;
}
static bool adau1373_register_volatile(struct device *dev, unsigned int reg)
{
switch (reg) {
case ADAU1373_SOFT_RESET:
case ADAU1373_ADC_DAC_STATUS:
return true;
default:
return false;
}
}
static const struct regmap_config adau1373_regmap_config = {
.val_bits = 8,
.reg_bits = 8,
.volatile_reg = adau1373_register_volatile,
.max_register = ADAU1373_SOFT_RESET,
.cache_type = REGCACHE_RBTREE,
.reg_defaults = adau1373_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(adau1373_reg_defaults),
};
static const struct snd_soc_component_driver adau1373_component_driver = {
.probe = adau1373_probe,
.resume = adau1373_resume,
.set_bias_level = adau1373_set_bias_level,
.set_pll = adau1373_set_pll,
.controls = adau1373_controls,
.num_controls = ARRAY_SIZE(adau1373_controls),
.dapm_widgets = adau1373_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(adau1373_dapm_widgets),
.dapm_routes = adau1373_dapm_routes,
.num_dapm_routes = ARRAY_SIZE(adau1373_dapm_routes),
.use_pmdown_time = 1,
.endianness = 1,
.non_legacy_dai_naming = 1,
};
static int adau1373_i2c_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct adau1373 *adau1373;
int ret;
adau1373 = devm_kzalloc(&client->dev, sizeof(*adau1373), GFP_KERNEL);
if (!adau1373)
return -ENOMEM;
adau1373->regmap = devm_regmap_init_i2c(client,
&adau1373_regmap_config);
if (IS_ERR(adau1373->regmap))
return PTR_ERR(adau1373->regmap);
regmap_write(adau1373->regmap, ADAU1373_SOFT_RESET, 0x00);
dev_set_drvdata(&client->dev, adau1373);
ret = devm_snd_soc_register_component(&client->dev,
&adau1373_component_driver,
adau1373_dai_driver, ARRAY_SIZE(adau1373_dai_driver));
return ret;
}
static const struct i2c_device_id adau1373_i2c_id[] = {
{ "adau1373", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, adau1373_i2c_id);
static struct i2c_driver adau1373_i2c_driver = {
.driver = {
.name = "adau1373",
},
.probe = adau1373_i2c_probe,
.id_table = adau1373_i2c_id,
};
module_i2c_driver(adau1373_i2c_driver);
MODULE_DESCRIPTION("ASoC ADAU1373 driver");
MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
MODULE_LICENSE("GPL");
|
{
"pile_set_name": "Github"
}
|
SHOW TABLES FROM information_schema LIKE 'ENGINES';
Tables_in_information_schema (ENGINES)
ENGINES
#######################################################################
# Testcase 3.2.1.1: INFORMATION_SCHEMA tables can be queried via SELECT
#######################################################################
DROP VIEW IF EXISTS test.v1;
DROP PROCEDURE IF EXISTS test.p1;
DROP FUNCTION IF EXISTS test.f1;
CREATE VIEW test.v1 AS SELECT * FROM information_schema.ENGINES;
CREATE PROCEDURE test.p1() SELECT * FROM information_schema.ENGINES;
CREATE FUNCTION test.f1() returns BIGINT
BEGIN
DECLARE counter BIGINT DEFAULT NULL;
SELECT COUNT(*) INTO counter FROM information_schema.ENGINES;
RETURN counter;
END//
# Attention: The printing of the next result sets is disabled.
SELECT * FROM information_schema.ENGINES;
SELECT * FROM test.v1;
CALL test.p1;
SELECT test.f1();
DROP VIEW test.v1;
DROP PROCEDURE test.p1;
DROP FUNCTION test.f1;
#########################################################################
# Testcase 3.2.12.1: INFORMATION_SCHEMA.ENGINES layout
#########################################################################
DESCRIBE information_schema.ENGINES;
Field Type Null Key Default Extra
ENGINE varchar(64) NO
SUPPORT varchar(8) NO
COMMENT varchar(80) NO
TRANSACTIONS varchar(3) YES
XA varchar(3) YES
SAVEPOINTS varchar(3) YES
SHOW CREATE TABLE information_schema.ENGINES;
Table Create Table
ENGINES CREATE TEMPORARY TABLE `ENGINES` (
`ENGINE` varchar(64) NOT NULL DEFAULT '',
`SUPPORT` varchar(8) NOT NULL DEFAULT '',
`COMMENT` varchar(80) NOT NULL DEFAULT '',
`TRANSACTIONS` varchar(3) DEFAULT NULL,
`XA` varchar(3) DEFAULT NULL,
`SAVEPOINTS` varchar(3) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=utf8
SHOW COLUMNS FROM information_schema.ENGINES;
Field Type Null Key Default Extra
ENGINE varchar(64) NO
SUPPORT varchar(8) NO
COMMENT varchar(80) NO
TRANSACTIONS varchar(3) YES
XA varchar(3) YES
SAVEPOINTS varchar(3) YES
########################################################################
# Testcases 3.2.1.3-3.2.1.5 + 3.2.1.8-3.2.1.12: INSERT/UPDATE/DELETE and
# DDL on INFORMATION_SCHEMA tables are not supported
########################################################################
DROP DATABASE IF EXISTS db_datadict;
CREATE DATABASE db_datadict;
CREATE TABLE db_datadict.t1 (f1 BIGINT)
ENGINE = <engine_type>;
INSERT INTO information_schema.engines
SELECT * FROM information_schema.engines;
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
UPDATE information_schema.engines SET engine = '1234567';
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
DELETE FROM information_schema.engines WHERE support IN ('DEFAULT','YES');
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
TRUNCATE information_schema.engines;
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
CREATE INDEX my_idx_on_engines ON information_schema.engines(engine);
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
ALTER TABLE information_schema.engines DROP PRIMARY KEY;
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
ALTER TABLE information_schema.engines ADD f1 INT;
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
DROP TABLE information_schema.engines;
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
ALTER TABLE information_schema.engines RENAME db_datadict.engines;
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
ALTER TABLE information_schema.engines RENAME information_schema.xengines;
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
DROP DATABASE db_datadict;
|
{
"pile_set_name": "Github"
}
|
<?php
namespace CodeIgniter\Test;
class DOMParserTest extends \CodeIgniter\Test\CIUnitTestCase
{
protected function setUp(): void
{
parent::setUp();
if (! extension_loaded('DOM'))
{
$this->markTestSkipped('DOM extension not loaded.');
}
}
public function testCanRoundTripHTML()
{
$dom = new DOMParser();
$html = '<div><h1>Hello</h1></div>';
$expected = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">' . "\n"
. '<html><body><div><h1>Hello</h1></div></body></html>';
$this->assertEquals($expected . "\n", $dom->withString($html)->getBody());
}
public function testParseSelectorWithID()
{
$dom = new DOMParser();
$selector = $dom->parseSelector('div#row');
$this->assertEquals('div', $selector['tag']);
$this->assertEquals('row', $selector['id']);
}
public function testParseSelectorWithClass()
{
$dom = new DOMParser();
$selector = $dom->parseSelector('div.row');
$this->assertEquals('div', $selector['tag']);
$this->assertEquals('row', $selector['class']);
}
public function testParseSelectorWithClassMultiple()
{
$dom = new DOMParser();
$selector = $dom->parseSelector('div.row.another');
$this->assertEquals('div', $selector['tag']);
// Only parses the first class
$this->assertEquals('row', $selector['class']);
}
public function testParseSelectorWithAttribute()
{
$dom = new DOMParser();
$selector = $dom->parseSelector('a[ href = http://example.com ]');
$this->assertEquals('a', $selector['tag']);
$this->assertEquals(['href' => 'http://example.com'], $selector['attr']);
}
public function provideText()
{
return [
['Hello World'],
['Hellö Wörld'],
];
}
/**
* @dataProvider provideText
*/
public function testSeeText($text)
{
$dom = new DOMParser();
$html = '<html><body><h1>' . $text . '</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->see($text));
}
public function testSeeHTML()
{
$dom = new DOMParser();
$html = '<html><body><h1>Hello World</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->see('<h1>'));
}
public function testSeeFail()
{
$dom = new DOMParser();
$html = '<html><body><h1>Hello World</h1></body></html>';
$dom->withString($html);
$this->assertFalse($dom->see('Hello Worlds'));
}
/**
* @dataProvider provideText
*/
public function testSeeElement($text)
{
$dom = new DOMParser();
$html = '<html><body><h1> ' . $text . '</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->see($text, 'h1'));
}
public function testSeeElementPartialText()
{
$dom = new DOMParser();
$html = '<html><body><h1>Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->see('Hello World', 'h1'));
}
public function testSeeElementID()
{
$dom = new DOMParser();
$html = '<html><body><h1 id="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->see('Hello World', '#heading'));
}
public function testSeeElementIDFails()
{
$dom = new DOMParser();
$html = '<html><body><h1 id="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertFalse($dom->see('Hello Worlds', '#heading'));
}
public function testSeeElementIDWithTag()
{
$dom = new DOMParser();
$html = '<html><body><h1 id="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->see('Hello World', 'h1#heading'));
}
public function testSeeElementIDWithTagFails()
{
$dom = new DOMParser();
$html = '<html><body><h2 id="heading">Hello World Wide Web</h2></body></html>';
$dom->withString($html);
$this->assertFalse($dom->see('Hello World', 'h1#heading'));
}
public function testSeeElementClass()
{
$dom = new DOMParser();
$html = '<html><body><h1 class="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->see('Hello World', '.heading'));
}
public function testSeeElementClassFail()
{
$dom = new DOMParser();
$html = '<html><body><h1 class="headings">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertFalse($dom->see('Hello World', '.heading'));
}
public function testSeeElementClassWithTag()
{
$dom = new DOMParser();
$html = '<html><body><h1 class="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->see('Hello World', 'h1.heading'));
}
public function testSeeElementClassWithTagFail()
{
$dom = new DOMParser();
$html = '<html><body><h1 class="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertFalse($dom->see('Hello World', 'h2.heading'));
}
public function testSeeElementSuccess()
{
$dom = new DOMParser();
$html = '<html><body><h1 id="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->seeElement('#heading'));
}
public function testSeeElementFail()
{
$dom = new DOMParser();
$html = '<html><body><h1 id="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertFalse($dom->seeElement('#headings'));
}
public function testDontSeeElementSuccess()
{
$dom = new DOMParser();
$html = '<html><body><h1 id="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertTrue($dom->dontSeeElement('#head'));
}
public function testDontSeeElementFail()
{
$dom = new DOMParser();
$html = '<html><body><h1 id="heading">Hello World Wide Web</h1></body></html>';
$dom->withString($html);
$this->assertFalse($dom->dontSeeElement('#heading'));
}
public function testSeeLinkSuccess()
{
$dom = new DOMParser();
$html = '<html><body><a href="http://example.com">Hello</a></body></html>';
$dom->withString($html);
$this->assertTrue($dom->seeLink('Hello'));
}
public function testSeeLinkFalse()
{
$dom = new DOMParser();
$html = '<html><body><a href="http://example.com">Hello</a></body></html>';
$dom->withString($html);
$this->assertFalse($dom->seeLink('Hello World!'));
}
public function testSeeLinkClassSuccess()
{
$dom = new DOMParser();
$html = '<html><body><a class="btn" href="http://example.com">Hello</a></body></html>';
$dom->withString($html);
$this->assertTrue($dom->seeLink('Hello', '.btn'));
}
public function testSeeLinkClassFail()
{
$dom = new DOMParser();
$html = '<html><body><a class="button" href="http://example.com">Hello</a></body></html>';
$dom->withString($html);
$this->assertFalse($dom->seeLink('Hello', '.btn'));
}
public function testSeeInFieldSuccess()
{
$dom = new DOMParser();
$html = '<html><body><input type="text" name="user" value="Foobar"></body></html>';
$dom->withString($html);
$this->assertTrue($dom->seeInField('user', 'Foobar'));
}
public function testSeeInFieldFail()
{
$dom = new DOMParser();
$html = '<html><body><input type="text" name="user" value="Foobar"></body></html>';
$dom->withString($html);
$this->assertFalse($dom->seeInField('user', 'Foobars'));
}
public function testSeeInFieldSuccessArray()
{
$dom = new DOMParser();
$html = '<html><body><input type="text" name="user[name]" value="Foobar"></body></html>';
$dom->withString($html);
$this->assertTrue($dom->seeInField('user[name]', 'Foobar'));
}
public function testSeeCheckboxIsCheckedByIDTrue()
{
$dom = new DOMParser();
$html = '<html><body><input type="checkbox" name="user" id="user" value="1" checked></body></html>';
$dom->withString($html);
$this->assertTrue($dom->seeCheckboxIsChecked('#user'));
}
public function testSeeCheckboxIsCheckedByIDFail()
{
$dom = new DOMParser();
$html = '<html><body><input type="checkbox" name="user" id="users" value="1" checked></body></html>';
$dom->withString($html);
$this->assertFalse($dom->seeCheckboxIsChecked('#user'));
}
public function testSeeCheckboxIsCheckedByClassTrue()
{
$dom = new DOMParser();
$html = '<html><body><input type="checkbox" name="user" class="btn" value="1" checked></body></html>';
$dom->withString($html);
$this->assertTrue($dom->seeCheckboxIsChecked('.btn'));
}
public function testWithFile()
{
$dom = new DOMParser();
$filename = APPPATH . 'index.html';
$dom->withFile($filename);
$this->assertTrue($dom->see('Directory access is forbidden.'));
}
public function testWithNotFile()
{
$dom = new DOMParser();
$filename = APPPATH . 'bogus.html';
$this->expectException(\InvalidArgumentException::class);
$dom->withFile($filename);
}
public function testSeeAttribute()
{
$dom = new DOMParser();
$path = '[ name = user ]';
$selector = $dom->parseSelector($path);
$this->assertEquals(['name' => 'user'], $selector['attr']);
$html = '<html><body><div name="user">George</div></body></html>';
$dom->withString($html);
$this->assertTrue($dom->see(null, '*[ name = user ]'));
$this->assertFalse($dom->see(null, '*[ name = notthere ]'));
}
}
|
{
"pile_set_name": "Github"
}
|
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
D3D12Stats.cpp:RHI Stats and timing implementation.
=============================================================================*/
#include "D3D12RHIPrivate.h"
#include "Engine/Engine.h"
#include "Engine/GameViewportClient.h"
namespace D3D12RHI
{
void FD3DGPUProfiler::BeginFrame(FD3D12DynamicRHI* InRHI)
{
CurrentEventNode = NULL;
check(!bTrackingEvents);
check(!CurrentEventNodeFrame); // this should have already been cleaned up and the end of the previous frame
// latch the bools from the game thread into our private copy
bLatchedGProfilingGPU = GTriggerGPUProfile;
bLatchedGProfilingGPUHitches = GTriggerGPUHitchProfile;
if (bLatchedGProfilingGPUHitches)
{
bLatchedGProfilingGPU = false; // we do NOT permit an ordinary GPU profile during hitch profiles
}
// if we are starting a hitch profile or this frame is a gpu profile, then save off the state of the draw events
if (bLatchedGProfilingGPU || (!bPreviousLatchedGProfilingGPUHitches && bLatchedGProfilingGPUHitches))
{
bOriginalGEmitDrawEvents = GEmitDrawEvents;
}
if (bLatchedGProfilingGPU || bLatchedGProfilingGPUHitches)
{
if (bLatchedGProfilingGPUHitches && GPUHitchDebounce)
{
// if we are doing hitches and we had a recent hitch, wait to recover
// the reasoning is that collecting the hitch report may itself hitch the GPU
GPUHitchDebounce--;
}
else
{
GEmitDrawEvents = true; // thwart an attempt to turn this off on the game side
bTrackingEvents = true;
CurrentEventNodeFrame = new FD3D12EventNodeFrame(GetParentAdapter());
CurrentEventNodeFrame->StartFrame();
}
}
else if (bPreviousLatchedGProfilingGPUHitches)
{
// hitch profiler is turning off, clear history and restore draw events
GPUHitchEventNodeFrames.Empty();
GEmitDrawEvents = bOriginalGEmitDrawEvents;
}
bPreviousLatchedGProfilingGPUHitches = bLatchedGProfilingGPUHitches;
FrameTiming.StartTiming();
if (GEmitDrawEvents)
{
PushEvent(TEXT("FRAME"), FColor(0, 255, 0, 255));
}
}
}
void FD3DGPUProfiler::EndFrame(FD3D12DynamicRHI* InRHI)
{
if (GEmitDrawEvents)
{
PopEvent();
check(StackDepth == 0);
}
FrameTiming.EndTiming();
if (FrameTiming.IsSupported())
{
uint64 GPUTiming = FrameTiming.GetTiming();
uint64 GPUFreq = FrameTiming.GetTimingFrequency();
GGPUFrameTime = FMath::TruncToInt(double(GPUTiming) / double(GPUFreq) / FPlatformTime::GetSecondsPerCycle());
}
else
{
GGPUFrameTime = 0;
}
double HwGpuFrameTime = 0.0;
if (InRHI->GetHardwareGPUFrameTime(HwGpuFrameTime))
{
GGPUFrameTime = HwGpuFrameTime;
}
// if we have a frame open, close it now.
if (CurrentEventNodeFrame)
{
CurrentEventNodeFrame->EndFrame();
}
check(!bTrackingEvents || bLatchedGProfilingGPU || bLatchedGProfilingGPUHitches);
check(!bTrackingEvents || CurrentEventNodeFrame);
if (bLatchedGProfilingGPU)
{
if (bTrackingEvents)
{
GEmitDrawEvents = bOriginalGEmitDrawEvents;
UE_LOG(LogD3D12RHI, Log, TEXT(""));
UE_LOG(LogD3D12RHI, Log, TEXT(""));
CurrentEventNodeFrame->DumpEventTree();
GTriggerGPUProfile = false;
bLatchedGProfilingGPU = false;
if (RHIConfig::ShouldSaveScreenshotAfterProfilingGPU()
&& GEngine->GameViewport)
{
GEngine->GameViewport->Exec(NULL, TEXT("SCREENSHOT"), *GLog);
}
}
}
else if (bLatchedGProfilingGPUHitches)
{
//@todo this really detects any hitch, even one on the game thread.
// it would be nice to restrict the test to stalls on D3D, but for now...
// this needs to be out here because bTrackingEvents is false during the hitch debounce
static double LastTime = -1.0;
double Now = FPlatformTime::Seconds();
if (bTrackingEvents)
{
/** How long, in seconds a frame much be to be considered a hitch **/
const float HitchThreshold = RHIConfig::GetGPUHitchThreshold();
float ThisTime = Now - LastTime;
bool bHitched = (ThisTime > HitchThreshold) && LastTime > 0.0 && CurrentEventNodeFrame;
if (bHitched)
{
UE_LOG(LogD3D12RHI, Warning, TEXT("*******************************************************************************"));
UE_LOG(LogD3D12RHI, Warning, TEXT("********** Hitch detected on CPU, frametime = %6.1fms"), ThisTime * 1000.0f);
UE_LOG(LogD3D12RHI, Warning, TEXT("*******************************************************************************"));
for (int32 Frame = 0; Frame < GPUHitchEventNodeFrames.Num(); Frame++)
{
UE_LOG(LogD3D12RHI, Warning, TEXT(""));
UE_LOG(LogD3D12RHI, Warning, TEXT(""));
UE_LOG(LogD3D12RHI, Warning, TEXT("********** GPU Frame: Current - %d"), GPUHitchEventNodeFrames.Num() - Frame);
GPUHitchEventNodeFrames[Frame].DumpEventTree();
}
UE_LOG(LogD3D12RHI, Warning, TEXT(""));
UE_LOG(LogD3D12RHI, Warning, TEXT(""));
UE_LOG(LogD3D12RHI, Warning, TEXT("********** GPU Frame: Current"));
CurrentEventNodeFrame->DumpEventTree();
UE_LOG(LogD3D12RHI, Warning, TEXT("*******************************************************************************"));
UE_LOG(LogD3D12RHI, Warning, TEXT("********** End Hitch GPU Profile"));
UE_LOG(LogD3D12RHI, Warning, TEXT("*******************************************************************************"));
if (GEngine->GameViewport)
{
GEngine->GameViewport->Exec(NULL, TEXT("SCREENSHOT"), *GLog);
}
GPUHitchDebounce = 5; // don't trigger this again for a while
GPUHitchEventNodeFrames.Empty(); // clear history
}
else if (CurrentEventNodeFrame) // this will be null for discarded frames while recovering from a recent hitch
{
/** How many old frames to buffer for hitch reports **/
static const int32 HitchHistorySize = 4;
if (GPUHitchEventNodeFrames.Num() >= HitchHistorySize)
{
GPUHitchEventNodeFrames.RemoveAt(0);
}
GPUHitchEventNodeFrames.Add((FD3D12EventNodeFrame*)CurrentEventNodeFrame);
CurrentEventNodeFrame = NULL; // prevent deletion of this below; ke kept it in the history
}
}
LastTime = Now;
}
bTrackingEvents = false;
delete CurrentEventNodeFrame;
CurrentEventNodeFrame = NULL;
}
void FD3DGPUProfiler::PushEvent(const TCHAR* Name, FColor Color)
{
#if WITH_DX_PERF
D3DPERF_BeginEvent(Color.DWColor(), Name);
#endif
FGPUProfiler::PushEvent(Name, Color);
}
void FD3DGPUProfiler::PopEvent()
{
#if WITH_DX_PERF
D3DPERF_EndEvent();
#endif
FGPUProfiler::PopEvent();
}
/** Start this frame of per tracking */
void FD3D12EventNodeFrame::StartFrame()
{
EventTree.Reset();
RootEventTiming.StartTiming();
}
/** End this frame of per tracking, but do not block yet */
void FD3D12EventNodeFrame::EndFrame()
{
RootEventTiming.EndTiming();
}
float FD3D12EventNodeFrame::GetRootTimingResults()
{
double RootResult = 0.0f;
if (RootEventTiming.IsSupported())
{
const uint64 GPUTiming = RootEventTiming.GetTiming(true);
const uint64 GPUFreq = RootEventTiming.GetTimingFrequency();
RootResult = double(GPUTiming) / double(GPUFreq);
}
return (float)RootResult;
}
void FD3D12EventNodeFrame::LogDisjointQuery()
{
}
float FD3D12EventNode::GetTiming()
{
float Result = 0;
if (Timing.IsSupported())
{
// Get the timing result and block the CPU until it is ready
const uint64 GPUTiming = Timing.GetTiming(true);
const uint64 GPUFreq = Timing.GetTimingFrequency();
Result = double(GPUTiming) / double(GPUFreq);
}
return Result;
}
void UpdateBufferStats(FD3D12ResourceLocation* ResourceLocation, bool bAllocating, uint32 BufferType)
{
uint64 RequestedSize = ResourceLocation->GetSize();
const bool bUniformBuffer = BufferType == D3D12_BUFFER_TYPE_CONSTANT;
const bool bIndexBuffer = BufferType == D3D12_BUFFER_TYPE_INDEX;
const bool bVertexBuffer = BufferType == D3D12_BUFFER_TYPE_VERTEX;
if (bAllocating)
{
if (bUniformBuffer)
{
INC_MEMORY_STAT_BY(STAT_UniformBufferMemory, RequestedSize);
}
else if (bIndexBuffer)
{
INC_MEMORY_STAT_BY(STAT_IndexBufferMemory, RequestedSize);
}
else if (bVertexBuffer)
{
INC_MEMORY_STAT_BY(STAT_VertexBufferMemory, RequestedSize);
}
else
{
INC_MEMORY_STAT_BY(STAT_StructuredBufferMemory, RequestedSize);
}
}
else
{
if (bUniformBuffer)
{
DEC_MEMORY_STAT_BY(STAT_UniformBufferMemory, RequestedSize);
}
else if (bIndexBuffer)
{
DEC_MEMORY_STAT_BY(STAT_IndexBufferMemory, RequestedSize);
}
else if (bVertexBuffer)
{
DEC_MEMORY_STAT_BY(STAT_VertexBufferMemory, RequestedSize);
}
else
{
DEC_MEMORY_STAT_BY(STAT_StructuredBufferMemory, RequestedSize);
}
}
}
|
{
"pile_set_name": "Github"
}
|
## `joomla:3-php7.2`
```console
$ docker pull joomla@sha256:a939d120713b0173e0a44e5fee4881d0c317a565fb8920ebb90a9153feea48e5
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms:
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `joomla:3-php7.2` - linux; amd64
```console
$ docker pull joomla@sha256:d86f84e5553f8e172fd5c6b5a22ef1c57108d2c25d414192a02be4cd1d92a209
```
- Docker Version: 18.09.7
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **162.0 MB (161979277 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:7294bc5ffc882c96684f926a9955acaa96736b976eb053b97320f52cb421a417`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Thu, 10 Sep 2020 00:23:29 GMT
ADD file:e7407f2294ad23634565820b9669b18ff2a2ca0212a7ec84b9c89d8550859954 in /
# Thu, 10 Sep 2020 00:23:30 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 13:07:27 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 13:07:27 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 13:07:47 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 13:07:47 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 13:07:48 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 13:14:18 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 13:14:18 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 13:14:27 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 13:14:28 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 13:14:29 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 13:14:29 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 13:14:29 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 13:14:30 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 13:14:30 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 13:14:30 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 15:15:33 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 15:15:33 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 15:15:33 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 15:15:34 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 15:15:44 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 15:15:44 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 15:19:15 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 15:19:16 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 15:19:16 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 15:19:17 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 15:19:17 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 15:19:18 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 15:19:18 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 15:19:18 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 15:19:18 GMT
EXPOSE 80
# Thu, 10 Sep 2020 15:19:18 GMT
CMD ["apache2-foreground"]
# Fri, 11 Sep 2020 07:33:55 GMT
LABEL maintainer=Harald Leithner <harald.leithner@community.joomla.org> (@HLeithner)
# Fri, 11 Sep 2020 07:33:55 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 11 Sep 2020 07:33:56 GMT
RUN a2enmod rewrite
# Fri, 11 Sep 2020 07:35:29 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 11 Sep 2020 07:35:29 GMT
VOLUME [/var/www/html]
# Fri, 11 Sep 2020 07:35:30 GMT
ENV JOOMLA_VERSION=3.9.21
# Fri, 11 Sep 2020 07:35:30 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Fri, 11 Sep 2020 07:35:34 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 11 Sep 2020 07:35:34 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Fri, 11 Sep 2020 07:35:35 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 11 Sep 2020 07:35:35 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 11 Sep 2020 07:35:35 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:d121f8d1c4128ebc1e95e5bfad90a0189b84eadbbb2fbaad20cbb26d20b2c8a2`
Last Modified: Thu, 10 Sep 2020 00:34:02 GMT
Size: 27.1 MB (27092161 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:58b3577b786a8fc924e77061e0347784852f282e0c823a01d273188d615f3c37`
Last Modified: Thu, 10 Sep 2020 16:10:09 GMT
Size: 226.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:60538287851f83ed7cc28af3c1fdc4dc70a191246efe8076aacfaca909833f51`
Last Modified: Thu, 10 Sep 2020 16:10:38 GMT
Size: 76.7 MB (76652017 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:c53ff72fe22523d07d5c67bbb6672cc482f34b724d6a788b7895afc35e48332b`
Last Modified: Thu, 10 Sep 2020 16:10:10 GMT
Size: 224.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:79b018c8773f3fbdad064d2ee5d0f4dec55f50f367e3e8a96e459e9d8b21912f`
Last Modified: Thu, 10 Sep 2020 16:10:57 GMT
Size: 18.7 MB (18675794 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:fbe3e00ac4b0a2ffe3b11cdd8525ec27997a0444ed26aeeb31f6dbdc7dc8b257`
Last Modified: Thu, 10 Sep 2020 16:10:53 GMT
Size: 432.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ff35226e1df86a691a8cd63a8dc71c7018e16583c254b7dcb1615ad2371371b0`
Last Modified: Thu, 10 Sep 2020 16:10:53 GMT
Size: 490.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a19d1f155ca2fb236f656a46072866d2411f295eb732a0a2dbb95b929e82418f`
Last Modified: Thu, 10 Sep 2020 16:15:26 GMT
Size: 12.6 MB (12649093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2c3f9f1d3a4c8f3fd4cc3a3230bf00c3477336759c9e839e6a43c0d47a68b00e`
Last Modified: Thu, 10 Sep 2020 16:15:25 GMT
Size: 492.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4de2afbc3864cff2215e4c876dd25a37d972261f67e5a32e080d8194570baaad`
Last Modified: Thu, 10 Sep 2020 16:15:27 GMT
Size: 13.8 MB (13820177 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0a457b6d0deda183626a635f91f435bab1bf8ab4eee5df42fe54e1b34bad2688`
Last Modified: Thu, 10 Sep 2020 16:15:24 GMT
Size: 2.3 KB (2286 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ef1ad83e6dbb0496c45ce548b640dabeb10ab8b5a3459383185fcf2c79360da8`
Last Modified: Thu, 10 Sep 2020 16:15:24 GMT
Size: 246.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:8c00ce956a7e231dcc760ad6da40f2f8f8a99dcea54d1f39410ecabee6596bc9`
Last Modified: Thu, 10 Sep 2020 16:15:24 GMT
Size: 212.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:6206fe33ea15337da7ed27d569f234d64bc5262dd8bc414ed1eb00fa16da8c7c`
Last Modified: Thu, 10 Sep 2020 16:15:24 GMT
Size: 896.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b7d50a4ce38ea1e65b67fd59fc974abfc6dda6e372028795384ec016890380a1`
Last Modified: Fri, 11 Sep 2020 07:45:15 GMT
Size: 311.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4e8aede8b9b0d00ef941b84f3faa1a8b662e794b0d677d618269de8009b7f277`
Last Modified: Fri, 11 Sep 2020 07:45:16 GMT
Size: 3.4 MB (3395934 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:94ac5dae2da6d5b1f13825f606444ff16b8e6dcacbbb8ccec6af1ca69b8aeea7`
Last Modified: Fri, 11 Sep 2020 07:45:18 GMT
Size: 9.7 MB (9686470 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:5978008308d572f9b502d3315fd24a8fc9ed47bf17d2f8939133ed31637d8682`
Last Modified: Fri, 11 Sep 2020 07:45:15 GMT
Size: 1.2 KB (1202 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:dd4fdff23ed2a5566dd289da4973afe79258601501ede0d8eb8a9557dc7ba47f`
Last Modified: Fri, 11 Sep 2020 07:45:15 GMT
Size: 614.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; arm variant v5
```console
$ docker pull joomla@sha256:048f8dbc8701197e52eda0f3d4d7f3e9c58f7d88517fad2926c00cf04cfa206c
```
- Docker Version: 19.03.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **140.1 MB (140110350 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:0ba206737858b34db0220f078e1c774287036b09ab48c9e8551c3612512110bd`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Wed, 09 Sep 2020 23:53:49 GMT
ADD file:34835d84d87e3ee1178aa150793d75a4d4a7a28c013ca3495dbcca2b570270bf in /
# Wed, 09 Sep 2020 23:53:53 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 02:19:47 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 02:19:48 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 02:20:42 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 02:20:46 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 02:20:50 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 02:25:40 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 02:25:42 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 02:26:12 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 02:26:15 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 02:26:17 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 02:26:18 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 02:26:20 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 02:26:21 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 02:26:22 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 02:26:23 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 03:57:44 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 03:57:46 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 03:57:49 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 03:57:50 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 03:58:22 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 03:58:24 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 04:02:33 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 04:02:38 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 04:02:48 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 04:02:59 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 04:03:02 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 04:03:04 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 04:03:06 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 04:03:07 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 04:03:09 GMT
EXPOSE 80
# Thu, 10 Sep 2020 04:03:10 GMT
CMD ["apache2-foreground"]
# Thu, 10 Sep 2020 15:22:46 GMT
LABEL maintainer=Harald Leithner <harald.leithner@community.joomla.org> (@HLeithner)
# Thu, 10 Sep 2020 15:22:48 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Thu, 10 Sep 2020 15:22:59 GMT
RUN a2enmod rewrite
# Thu, 10 Sep 2020 15:26:01 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 15:26:02 GMT
VOLUME [/var/www/html]
# Thu, 10 Sep 2020 15:26:04 GMT
ENV JOOMLA_VERSION=3.9.21
# Thu, 10 Sep 2020 15:26:05 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Thu, 10 Sep 2020 15:26:26 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Thu, 10 Sep 2020 15:26:29 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Thu, 10 Sep 2020 15:26:33 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Thu, 10 Sep 2020 15:26:34 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Thu, 10 Sep 2020 15:26:35 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:0a51b5143468e1b44dafa16fea3541e28e369071f6837337ee95e37f0ad81d99`
Last Modified: Thu, 10 Sep 2020 00:02:48 GMT
Size: 24.8 MB (24835974 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4ca52621e29f0be906227dd042c4f23109d45e98133e6803aee1fad26c1b9853`
Last Modified: Thu, 10 Sep 2020 04:34:12 GMT
Size: 228.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b3919fd67c6fcaafe16fd897b661b5e1035df3defb96c7a2889e35349a70445f`
Last Modified: Thu, 10 Sep 2020 04:34:26 GMT
Size: 58.8 MB (58801370 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b3cac75e8ebdf4a331c6f82fe7860ac1631d98af62eeb150a688a5e59f4a4a13`
Last Modified: Thu, 10 Sep 2020 04:34:02 GMT
Size: 269.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ec46f146fcd7d9ab2bb276e9489913ca71dc702dcd19dcbc0fd2995b2f1ce726`
Last Modified: Thu, 10 Sep 2020 04:34:56 GMT
Size: 18.0 MB (18024594 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d13b387d0cce3a11f1402a960019ddfd81f5bf135cbc4e8743a4c69e0b54de10`
Last Modified: Thu, 10 Sep 2020 04:34:50 GMT
Size: 477.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:139b2c26bc80db81f9c786d2d72b40248683227b975a8ae70780e2fe2f029c63`
Last Modified: Thu, 10 Sep 2020 04:34:50 GMT
Size: 516.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:c2be6e300668e791c083d2d8fffeb5c54e12c5d8ec811a78e5b1cd060f62a175`
Last Modified: Thu, 10 Sep 2020 04:40:31 GMT
Size: 12.6 MB (12647207 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:47e2e506c8c7cbd9f7df83d5a2d1b6c6a5e39ecdc83eeceef5b1be2249c6c647`
Last Modified: Thu, 10 Sep 2020 04:40:29 GMT
Size: 494.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d54236b7a92981dac2b97c7ca2785fcf56984a1b312f5bb4e070cff0c0bf02da`
Last Modified: Thu, 10 Sep 2020 04:40:32 GMT
Size: 12.9 MB (12893798 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:06a28bf8ea6723cc5708253062cbaf698d5ebbeecd99c21c2d83c49a17a6efb0`
Last Modified: Thu, 10 Sep 2020 04:40:27 GMT
Size: 2.3 KB (2285 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:8e346fb6980b5b985dad45bb8f75dc457d3264fe660b5ace1d8f768ab61ab2c3`
Last Modified: Thu, 10 Sep 2020 04:40:27 GMT
Size: 249.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0fb446cc7090ecc61e55f47a381374f694f6758bcef21977759a6fa5a1adeb10`
Last Modified: Thu, 10 Sep 2020 04:40:28 GMT
Size: 211.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d2eabfdca8c83914e88fc2ddfb6ba624357d071446e6f467a2fa9a9e4467fc09`
Last Modified: Thu, 10 Sep 2020 04:40:27 GMT
Size: 894.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:68543c4d43a71b37959bd68fe6a937269511dd55d8bb02c504e8b0ae88935760`
Last Modified: Thu, 10 Sep 2020 15:47:08 GMT
Size: 315.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a57679b0e235a9d4a94613b01940bca0b197690f4486009372298ab50977e499`
Last Modified: Thu, 10 Sep 2020 15:47:09 GMT
Size: 3.2 MB (3213173 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4b3d9b380709aeb150d2b87ad09405a4c18f30660d8e87221e7fcc93c46536c3`
Last Modified: Thu, 10 Sep 2020 15:47:13 GMT
Size: 9.7 MB (9686480 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:195018367501dcf78a62e8b5689696b0c5f62faf302ea715225b26d8cee1d6f2`
Last Modified: Thu, 10 Sep 2020 15:47:08 GMT
Size: 1.2 KB (1202 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d10d4bc10601db3afded034b0a1de1b0a003927d63066e09cbd549284a05a498`
Last Modified: Thu, 10 Sep 2020 15:47:08 GMT
Size: 614.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; arm variant v7
```console
$ docker pull joomla@sha256:f1e3dc7f9dbca686791089e97b280fb83eb0cb79aa5b9fc837d0011f16d8028f
```
- Docker Version: 19.03.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **137.3 MB (137323172 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:7383d834395338d45dbf2a619c46cb4275ca1267704283bf430314607cea5815`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Thu, 10 Sep 2020 00:08:04 GMT
ADD file:5ec0d2c3043ae64cb72698b0f6fe7387884f4195df962466215ce534d2208327 in /
# Thu, 10 Sep 2020 00:08:06 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 08:24:54 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 08:24:56 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 08:25:58 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 08:26:02 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 08:26:28 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 08:32:07 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 08:32:10 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 08:32:47 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 08:33:06 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 08:33:22 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 08:33:23 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 08:33:25 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 08:33:27 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 08:33:30 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 08:33:30 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 10:05:56 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 10:06:00 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 10:06:02 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 10:06:05 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 10:06:42 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 10:06:45 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 10:09:39 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 10:09:49 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 10:10:06 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 10:10:26 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 10:10:27 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 10:10:32 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 10:10:36 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 10:10:38 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 10:10:41 GMT
EXPOSE 80
# Thu, 10 Sep 2020 10:10:45 GMT
CMD ["apache2-foreground"]
# Fri, 11 Sep 2020 01:37:38 GMT
LABEL maintainer=Harald Leithner <harald.leithner@community.joomla.org> (@HLeithner)
# Fri, 11 Sep 2020 01:37:39 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 11 Sep 2020 01:37:45 GMT
RUN a2enmod rewrite
# Fri, 11 Sep 2020 01:42:06 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 11 Sep 2020 01:42:07 GMT
VOLUME [/var/www/html]
# Fri, 11 Sep 2020 01:42:09 GMT
ENV JOOMLA_VERSION=3.9.21
# Fri, 11 Sep 2020 01:42:12 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Fri, 11 Sep 2020 01:42:38 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 11 Sep 2020 01:42:41 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Fri, 11 Sep 2020 01:42:43 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 11 Sep 2020 01:42:46 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 11 Sep 2020 01:42:48 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:a7c65856610cb24c46ede2ffe313cbf933c44fa20ba213835af953646f3eb1ed`
Last Modified: Thu, 10 Sep 2020 00:17:52 GMT
Size: 22.7 MB (22699896 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:643be151265f556a263774f5b21b7accd984f18c255388e7760c8d2d44416fd0`
Last Modified: Thu, 10 Sep 2020 10:47:57 GMT
Size: 228.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a849c10c3e87343a463ee7084ac0544d6b8499ddc44119b7612900ba8d1f9426`
Last Modified: Thu, 10 Sep 2020 10:48:15 GMT
Size: 59.5 MB (59507912 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:333d40d36c170afca40c7040d7daff5778b30f80388c97c53b96297729b8c52f`
Last Modified: Thu, 10 Sep 2020 10:47:57 GMT
Size: 269.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0abcee801ef52d311033c3a66712700fd2806bcf3587bcc5d824817dd9a16ea3`
Last Modified: Thu, 10 Sep 2020 10:48:45 GMT
Size: 17.5 MB (17481058 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e69654f5fc997466e182760ab512512a9b54b060f9ca50ca16357f28dee54a4f`
Last Modified: Thu, 10 Sep 2020 10:48:40 GMT
Size: 474.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:9d0aa9123174e9d9edbce8dcc9ca705df6a8f1db85c9828f5e1ca1d46f29aab0`
Last Modified: Thu, 10 Sep 2020 10:48:40 GMT
Size: 516.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2a6fedd426cb62a7ccdb6d7e576a5ed5f88872c845995076993faca9a52b17f6`
Last Modified: Thu, 10 Sep 2020 10:56:01 GMT
Size: 12.6 MB (12647175 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d5204e16e71a6af0c113208cbac36dcf9e6293116de071ebb2b1c6f30f8ab94e`
Last Modified: Thu, 10 Sep 2020 10:55:59 GMT
Size: 495.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7b9ad20044cca1f62763971926155200568bc9fce3a622aa87de7a709b579681`
Last Modified: Thu, 10 Sep 2020 10:56:01 GMT
Size: 12.2 MB (12163809 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:551218c1eaac8c36a0bd837c57925e9a11518e38904b49cc650069b77b638e3d`
Last Modified: Thu, 10 Sep 2020 10:55:58 GMT
Size: 2.3 KB (2284 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7a9edf5cfb8422c7d47e81cfe9f6d5f712518e5a388845c6f79dceda6ad71a6b`
Last Modified: Thu, 10 Sep 2020 10:55:57 GMT
Size: 247.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:affbade9dd7132aba7a0fbc975f19ea9c172754143d6e617b55ee378cb3c5c60`
Last Modified: Thu, 10 Sep 2020 10:55:58 GMT
Size: 213.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ef6acccf573b62d0cd567fa1c5367503b27d0f63baab0e51f1286d06945befb3`
Last Modified: Thu, 10 Sep 2020 10:55:57 GMT
Size: 896.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:13111c36408dd6e78a28926dfe78cf4e2e74c212ebd7aab4d26d31045aa7ec4a`
Last Modified: Fri, 11 Sep 2020 02:03:20 GMT
Size: 314.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1ca67749b26158192087c9cb37a9e0c194708fd3479a87e3a367cb630312055c`
Last Modified: Fri, 11 Sep 2020 02:03:21 GMT
Size: 3.1 MB (3129089 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:61e17a642feca359502825284c2275ccb1a766c31fda49f55e65934e846c7985`
Last Modified: Fri, 11 Sep 2020 02:03:26 GMT
Size: 9.7 MB (9686484 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a4eedd6929222d2a4dea282c275af0af5f0db9251b920976dca6883c6258c107`
Last Modified: Fri, 11 Sep 2020 02:03:20 GMT
Size: 1.2 KB (1199 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:cffdaafed294249606d8cb28eb6bda9cdce3c3a2d670532d3596bde62569cfed`
Last Modified: Fri, 11 Sep 2020 02:03:20 GMT
Size: 614.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; arm64 variant v8
```console
$ docker pull joomla@sha256:a278d887a26685710c180ccd14771942fd1787d2c3880444f6128b23dd762cef
```
- Docker Version: 18.09.7
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **154.0 MB (153966272 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:dbf9a4c986b393b0b3bc4a80ab22ef21bf3ea3c27977d63aaae8075049991ffc`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Wed, 09 Sep 2020 23:50:54 GMT
ADD file:d870fb0484ea283840d9cc923c9c3fe36d1bb6b3b5ecfefcce06aa26a22c9414 in /
# Wed, 09 Sep 2020 23:50:57 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 12:03:53 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 12:03:53 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 12:04:27 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 12:04:30 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 12:04:32 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 12:08:28 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 12:08:29 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 12:08:48 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 12:08:51 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 12:08:53 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 12:08:54 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 12:08:55 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 12:08:55 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 12:08:56 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 12:08:57 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 13:33:34 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 13:33:35 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 13:33:36 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 13:33:37 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 13:33:55 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 13:33:56 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 13:36:55 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 13:36:57 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 13:37:01 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 13:37:04 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 13:37:05 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 13:37:06 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 13:37:07 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 13:37:08 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 13:37:08 GMT
EXPOSE 80
# Thu, 10 Sep 2020 13:37:09 GMT
CMD ["apache2-foreground"]
# Fri, 11 Sep 2020 02:52:20 GMT
LABEL maintainer=Harald Leithner <harald.leithner@community.joomla.org> (@HLeithner)
# Fri, 11 Sep 2020 02:52:21 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 11 Sep 2020 02:52:23 GMT
RUN a2enmod rewrite
# Fri, 11 Sep 2020 02:55:09 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 11 Sep 2020 02:55:10 GMT
VOLUME [/var/www/html]
# Fri, 11 Sep 2020 02:55:11 GMT
ENV JOOMLA_VERSION=3.9.21
# Fri, 11 Sep 2020 02:55:12 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Fri, 11 Sep 2020 02:55:22 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 11 Sep 2020 02:55:24 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Fri, 11 Sep 2020 02:55:25 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 11 Sep 2020 02:55:25 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 11 Sep 2020 02:55:26 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:a6d76de28f58f3470aff71c934c0fec4e5d0fad788f8b8bcc50601266fc1b34d`
Last Modified: Wed, 09 Sep 2020 23:59:09 GMT
Size: 25.8 MB (25849325 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:5b765cd8dd18ccad037620f2765e6c4d1d213e1efd39d254ed77be7e075bde1b`
Last Modified: Thu, 10 Sep 2020 14:15:23 GMT
Size: 228.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2c348cef873eb53c0c25878ea8bc2e47bfb9eb575a1b3138fc1ef02731b8840f`
Last Modified: Thu, 10 Sep 2020 14:15:45 GMT
Size: 70.3 MB (70337546 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:f76bca23f69b13b0ba97ffcb96964a27c90a234bb33d13b977d46f15defb9299`
Last Modified: Thu, 10 Sep 2020 14:15:23 GMT
Size: 270.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:986e8e90a1ce91d29857dc12cecf35e27c100544cc30be822d09ccfc339cbedc`
Last Modified: Thu, 10 Sep 2020 14:16:20 GMT
Size: 18.6 MB (18579534 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:09614c0a2c4fa9cea7eb9c150e1ed7a9ff5e7cd24d48fa89d0bde9ca53088d80`
Last Modified: Thu, 10 Sep 2020 14:16:17 GMT
Size: 476.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:581bec9454b64e95f61c78367f8b0510c02325367f58837e9469ee0d815a446c`
Last Modified: Thu, 10 Sep 2020 14:16:17 GMT
Size: 516.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:3c5f7671d6ddec77e58119b97ed74a52e252ccc62d789ab40bfb4e513abae632`
Last Modified: Thu, 10 Sep 2020 14:24:03 GMT
Size: 12.6 MB (12647940 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:afd87f0a299bae26fef04e9663bd76e4fb6f236b8ad4c151a17239d40da01be2`
Last Modified: Thu, 10 Sep 2020 14:24:02 GMT
Size: 495.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e178fb7c5815ad9ac68ec9f9781b1b56ba762a5f92240a769ee3c8284e3cc026`
Last Modified: Thu, 10 Sep 2020 14:24:02 GMT
Size: 13.5 MB (13515287 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:16c2a0fbeaf5ea45dd2b949813b1dad55386945fda002e1f5414a3b6f17303cf`
Last Modified: Thu, 10 Sep 2020 14:23:59 GMT
Size: 2.3 KB (2284 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:120214a78b490e5f9bf5143c765d833e8f07b7eedba992f6d38ff1c3f6b06051`
Last Modified: Thu, 10 Sep 2020 14:23:59 GMT
Size: 249.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e48894e60aa0f8ed16f285f494297cd9aa216cf470197215f7cc4560345a861f`
Last Modified: Thu, 10 Sep 2020 14:23:59 GMT
Size: 213.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:17bcc449c06c61cce4972756a85e897fbc2496e45400f4143c5623bd3ffd74ff`
Last Modified: Thu, 10 Sep 2020 14:23:59 GMT
Size: 897.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2d30b92b64cc3003aec2ee375ac343eb4c648116ebde1ea343142bc5906676d0`
Last Modified: Fri, 11 Sep 2020 03:13:51 GMT
Size: 315.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:f0a6d27c8deca1f2a421c58dc5fdf3b7a11d8169a93d43783b546f3a69f67b14`
Last Modified: Fri, 11 Sep 2020 03:13:52 GMT
Size: 3.3 MB (3342404 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e83d1ec83683b907ee0db6fb39b486f6e8816de23f3cebf23abcd497f03a6bcc`
Last Modified: Fri, 11 Sep 2020 03:13:55 GMT
Size: 9.7 MB (9686478 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:652747dd15a03bfefd14e2f9863173aa0fbc45a75079b2cfc00e372f38c26a46`
Last Modified: Fri, 11 Sep 2020 03:13:51 GMT
Size: 1.2 KB (1200 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:f3902d2a28c5cee1c1ce392162730a6999598284ea905a145030d66781422a2c`
Last Modified: Fri, 11 Sep 2020 03:13:51 GMT
Size: 615.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; 386
```console
$ docker pull joomla@sha256:87dda9ac99bd88244143ed687d06b20222250382f9b41691b95489f6d60d6f0a
```
- Docker Version: 19.03.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **167.9 MB (167850482 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:239ddf2a59a5cf07582ba33a5c14b5fee9a602d42513b50d0b182ef64529adfd`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Tue, 04 Aug 2020 03:37:35 GMT
ADD file:cc791c21e6022a12dd1445a35f4cca9392ad8edfe34ea5852f3e87862c943628 in /
# Tue, 04 Aug 2020 03:37:35 GMT
CMD ["bash"]
# Tue, 04 Aug 2020 12:50:23 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Tue, 04 Aug 2020 12:50:24 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Tue, 04 Aug 2020 12:50:46 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Tue, 04 Aug 2020 12:50:46 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Tue, 04 Aug 2020 12:50:47 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Tue, 04 Aug 2020 12:55:58 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Tue, 04 Aug 2020 12:55:58 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Tue, 04 Aug 2020 12:56:08 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Tue, 04 Aug 2020 12:56:09 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Tue, 04 Aug 2020 12:56:10 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Tue, 04 Aug 2020 12:56:10 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Tue, 04 Aug 2020 12:56:10 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Tue, 04 Aug 2020 12:56:11 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Tue, 04 Aug 2020 12:56:11 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Tue, 04 Aug 2020 12:56:11 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Tue, 04 Aug 2020 14:21:14 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 06 Aug 2020 22:51:41 GMT
ENV PHP_VERSION=7.2.33
# Thu, 06 Aug 2020 22:51:42 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 06 Aug 2020 22:51:42 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 06 Aug 2020 22:51:56 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 06 Aug 2020 22:51:57 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 06 Aug 2020 22:56:40 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 06 Aug 2020 22:56:41 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 06 Aug 2020 22:56:41 GMT
RUN docker-php-ext-enable sodium
# Thu, 06 Aug 2020 22:56:42 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 06 Aug 2020 22:56:43 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 06 Aug 2020 22:56:43 GMT
STOPSIGNAL SIGWINCH
# Thu, 06 Aug 2020 22:56:43 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 06 Aug 2020 22:56:43 GMT
WORKDIR /var/www/html
# Thu, 06 Aug 2020 22:56:43 GMT
EXPOSE 80
# Thu, 06 Aug 2020 22:56:44 GMT
CMD ["apache2-foreground"]
# Fri, 07 Aug 2020 03:01:16 GMT
LABEL maintainer=Michael Babker <michael.babker@joomla.org> (@mbabker)
# Fri, 07 Aug 2020 03:01:16 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 07 Aug 2020 03:01:17 GMT
RUN a2enmod rewrite
# Fri, 07 Aug 2020 03:03:17 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libjpeg-dev libldap2-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 07 Aug 2020 03:03:17 GMT
VOLUME [/var/www/html]
# Fri, 07 Aug 2020 03:03:17 GMT
ENV JOOMLA_VERSION=3.9.18
# Fri, 07 Aug 2020 03:03:18 GMT
ENV JOOMLA_SHA512=1bf4590a761cc24f59fc0d5b07ffbb8f9e50073b3536edc261b8785ff168aca2066d133a81c4ac33bcfe7b843559320ef4d1f97c5eb16096ca4b550a18b7f44d
# Fri, 07 Aug 2020 03:03:24 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 07 Aug 2020 03:03:25 GMT
COPY file:fcc18c5b9c2d514cfb965bab84e10b4f924a39a5f202055df75d7990da099d8f in /entrypoint.sh
# Fri, 07 Aug 2020 03:03:25 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 07 Aug 2020 03:03:25 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 07 Aug 2020 03:03:25 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:23ad22c16ab9d635a179d5d341096c34912941507b0c77ac97083b9795d8516f`
Last Modified: Tue, 04 Aug 2020 03:42:33 GMT
Size: 27.8 MB (27750435 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:329242062d68d28d6b2a87364a30d8b71938ba033610ecfd79f13769a96294e2`
Last Modified: Tue, 04 Aug 2020 14:58:57 GMT
Size: 226.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:5a8aaae05adb825dff3551448f99133aba9f351d7f26f8c75f6486b4b38bd51c`
Last Modified: Tue, 04 Aug 2020 14:59:19 GMT
Size: 81.2 MB (81196323 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7a65de971d0774dc002b56e15b037e7d4db04da66913020270e1285355323dbb`
Last Modified: Tue, 04 Aug 2020 14:58:57 GMT
Size: 223.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:5237681b89148747d9421150d867c5cc8449bf341cbc8ad214f71d9b03794a23`
Last Modified: Tue, 04 Aug 2020 14:59:36 GMT
Size: 19.1 MB (19112679 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:fa7cf510e15402722d29174d2b186ac456076ed7d047fe794a07db362136ba17`
Last Modified: Tue, 04 Aug 2020 14:59:30 GMT
Size: 437.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:be410499ff850773e8553b98b72aa2ee3faac6f4ae8040ea8f296bd35a419521`
Last Modified: Tue, 04 Aug 2020 14:59:30 GMT
Size: 490.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a6efe484f493ef80a7f6495ca55c4b85207702542ff1ea572b7edcd7ee36addf`
Last Modified: Fri, 07 Aug 2020 00:52:53 GMT
Size: 12.6 MB (12648411 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4120067059663d8f19afa8b36bdac8982a71aee3c5e728b57959ffbd38610e41`
Last Modified: Fri, 07 Aug 2020 00:52:51 GMT
Size: 494.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0ba0a69a392fae34aa0613740276d16c5e0f064963a7079cb5d3c73bba31c4df`
Last Modified: Fri, 07 Aug 2020 00:52:56 GMT
Size: 14.1 MB (14142794 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:6e326359e832250a0912fee7884b8b1ee1bc099ec9c38399135a851c0f1b22ce`
Last Modified: Fri, 07 Aug 2020 00:52:51 GMT
Size: 2.3 KB (2283 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7de584a5b52f9033142aa58582985da5c4f18ca1d424027c31a9341efee3b745`
Last Modified: Fri, 07 Aug 2020 00:52:50 GMT
Size: 247.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e2a4b69536ef132dd422665a950a111ea97759b62b1ab942ed406e65136922f5`
Last Modified: Fri, 07 Aug 2020 00:52:50 GMT
Size: 210.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ac6affb40d7c30ab19f271447b8614b2f5373839ad43e8c34d27017f96592036`
Last Modified: Fri, 07 Aug 2020 00:52:50 GMT
Size: 893.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:475c32f46a39605c62e732178478135ea75e3d91a4a8b8183ad7adf4fd8ab322`
Last Modified: Fri, 07 Aug 2020 03:20:07 GMT
Size: 314.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:270b32b40fba16f38cc884a9d94eb4b423394c129e9be8e5d1ed64ad57166dd5`
Last Modified: Fri, 07 Aug 2020 03:20:08 GMT
Size: 3.3 MB (3338952 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0d545ba78744720b9b01c15dbd0b6079d63272dcd3699be79fbe0ea7308c0654`
Last Modified: Fri, 07 Aug 2020 03:20:13 GMT
Size: 9.7 MB (9653286 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:fe109a9198fd653738677f3b76c557776ac1bc4aaeb3b86225b0436167d93d82`
Last Modified: Fri, 07 Aug 2020 03:20:07 GMT
Size: 1.2 KB (1172 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:9265cd5f26f6fc1d20bf55158245edbd05b856eac490d347083a7d01933cbe57`
Last Modified: Fri, 07 Aug 2020 03:20:07 GMT
Size: 613.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; ppc64le
```console
$ docker pull joomla@sha256:4833d71108d7ad627653b6659880974d286993fb7bb2e8ba0b99a50656daad75
```
- Docker Version: 18.09.7
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **173.4 MB (173362560 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:992cae39e7dcbd7cc0787ea9e0844e148ee4c27c7ed3b355ef44f7c87e1a3439`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Thu, 10 Sep 2020 01:06:11 GMT
ADD file:4dede556abae88027bd22f3166fdbc38778a6fcd686c5ce768c3ca024ab3f9cf in /
# Thu, 10 Sep 2020 01:06:20 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 11:58:23 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 11:58:28 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 12:01:34 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 12:01:48 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 12:01:59 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 12:12:29 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 12:12:32 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 12:14:24 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 12:14:37 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 12:14:54 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 12:15:00 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 12:15:05 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 12:15:10 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 12:15:14 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 12:15:18 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 14:47:13 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 14:47:20 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 14:47:25 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 14:47:28 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 14:50:58 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 14:51:02 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 15:04:17 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 15:04:24 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 15:04:50 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 15:05:09 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 15:05:20 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 15:05:26 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 15:05:29 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 15:05:37 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 15:05:42 GMT
EXPOSE 80
# Thu, 10 Sep 2020 15:05:48 GMT
CMD ["apache2-foreground"]
# Fri, 11 Sep 2020 08:28:22 GMT
LABEL maintainer=Harald Leithner <harald.leithner@community.joomla.org> (@HLeithner)
# Fri, 11 Sep 2020 08:28:28 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 11 Sep 2020 08:28:39 GMT
RUN a2enmod rewrite
# Fri, 11 Sep 2020 08:32:26 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 11 Sep 2020 08:32:30 GMT
VOLUME [/var/www/html]
# Fri, 11 Sep 2020 08:32:37 GMT
ENV JOOMLA_VERSION=3.9.21
# Fri, 11 Sep 2020 08:32:44 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Fri, 11 Sep 2020 08:33:17 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 11 Sep 2020 08:33:22 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Fri, 11 Sep 2020 08:33:25 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 11 Sep 2020 08:33:35 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 11 Sep 2020 08:33:43 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:f8aef3d2247e5f990bc767bc99f575b9bcec34aaa37183414eebe28fcd09519d`
Last Modified: Thu, 10 Sep 2020 01:28:12 GMT
Size: 30.5 MB (30517880 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e1b6d09588296694c116e9adc99909df057a299ccb72aaf6929e3df19b421dab`
Last Modified: Thu, 10 Sep 2020 15:32:08 GMT
Size: 229.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1f2b21df1bee324f13738f65d0318ece3f0e9f0569ce6b32ddd30f67f34204e4`
Last Modified: Thu, 10 Sep 2020 15:33:25 GMT
Size: 82.3 MB (82260209 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:3d861da2f7d287a59a9e7f854ef705258cd56635a414e1361c62a90f6e142701`
Last Modified: Thu, 10 Sep 2020 15:32:07 GMT
Size: 268.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:c21faa414b3be021e2b9ddde9a7856eb50dc369a044295839424301968191215`
Last Modified: Thu, 10 Sep 2020 15:34:44 GMT
Size: 19.8 MB (19812188 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:6f536043cb1b2d1b27acd8d94f3266a75de4c91e5e5912999ee7c0f67a3c7f8a`
Last Modified: Thu, 10 Sep 2020 15:34:13 GMT
Size: 476.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0fbe8bc91e06606ea50b533e540b96546fd2ef1277c93a97c92f4b4d2758df12`
Last Modified: Thu, 10 Sep 2020 15:34:12 GMT
Size: 523.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a8c2ca10e504fbcd0388c7f577b18fc053d3d1acbe6937873900e1cc72a4b7ee`
Last Modified: Thu, 10 Sep 2020 15:48:29 GMT
Size: 12.6 MB (12649251 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1288c96348551632d7209cb10a9fa89025814ca6d89df1f34714d8c3b8536d64`
Last Modified: Thu, 10 Sep 2020 15:48:28 GMT
Size: 495.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:780c3df8973acc12ddc53aa275bfeb58eaa0545b13a66be9f77b16fcb86af99e`
Last Modified: Thu, 10 Sep 2020 15:48:30 GMT
Size: 14.9 MB (14858675 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ca6dbde082d73d1bcdef43ee990348d88ad9366f0b13c5518fa0db251e8b2813`
Last Modified: Thu, 10 Sep 2020 15:48:22 GMT
Size: 2.3 KB (2289 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1b3904361a85b7f4ffa0518324ab6a531263094ebc3933aace221a9d8b714bde`
Last Modified: Thu, 10 Sep 2020 15:48:22 GMT
Size: 249.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1af73af3bbc8db5564bb190c8c06d79d457e587375b4b7bf8847b8a747ed5c4e`
Last Modified: Thu, 10 Sep 2020 15:48:22 GMT
Size: 213.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:3f7e9237e786604dd9345b8bb3d5df0f322ea277ddf49160013219134de8f33f`
Last Modified: Thu, 10 Sep 2020 15:48:22 GMT
Size: 897.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d76fd6c9df836bc86f0ad2f5413efd26a87f6c79b81653801d250400bd936956`
Last Modified: Fri, 11 Sep 2020 09:05:30 GMT
Size: 315.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4cc459761318de762b121e6b0d278c6d2b31423d48a8e7219545a9d3b85da426`
Last Modified: Fri, 11 Sep 2020 09:05:37 GMT
Size: 3.6 MB (3570117 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:bc42058846fbf44cc48459de7279d2f7a00d4c449ef18be3322c5b4d51d97675`
Last Modified: Fri, 11 Sep 2020 09:06:37 GMT
Size: 9.7 MB (9686470 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2cce63705cce073cd71fa2d69a4defc08f42525e50dd420e0c1ef492adeb2a37`
Last Modified: Fri, 11 Sep 2020 09:05:30 GMT
Size: 1.2 KB (1202 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7c295d554ecc3fa7f3e82de8d9dafc1e2525fd25411f22157d9e32c34c52dd2e`
Last Modified: Fri, 11 Sep 2020 09:05:30 GMT
Size: 614.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; s390x
```console
$ docker pull joomla@sha256:291dc240edd72956d4a4502c85e937c9528f18e2842d0d9e83bb54ca62f0d633
```
- Docker Version: 18.09.7
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **147.7 MB (147722729 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:77ab9051c8e4ab725663e6ccfb5d4b0e24ca8041b34c6d8610223ffaabc5dcea`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Wed, 09 Sep 2020 23:42:35 GMT
ADD file:65e860d387f18169ea1783465571eaf0946b51c52e560a06759bbc680752f810 in /
# Wed, 09 Sep 2020 23:42:37 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 03:08:49 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 03:08:49 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 03:09:05 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 03:09:08 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 03:09:09 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 03:12:12 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 03:12:12 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 03:12:23 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 03:12:24 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 03:12:25 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 03:12:25 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 03:12:25 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 03:12:25 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 03:12:25 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 03:12:26 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 03:46:16 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 03:46:16 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 03:46:16 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 03:46:16 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 03:46:23 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 03:46:23 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 03:47:45 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 03:47:46 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 03:47:47 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 03:47:47 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 03:47:48 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 03:47:48 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 03:47:48 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 03:47:48 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 03:47:48 GMT
EXPOSE 80
# Thu, 10 Sep 2020 03:47:49 GMT
CMD ["apache2-foreground"]
# Thu, 10 Sep 2020 08:28:11 GMT
LABEL maintainer=Harald Leithner <harald.leithner@community.joomla.org> (@HLeithner)
# Thu, 10 Sep 2020 08:28:11 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Thu, 10 Sep 2020 08:28:12 GMT
RUN a2enmod rewrite
# Thu, 10 Sep 2020 08:29:17 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 08:29:17 GMT
VOLUME [/var/www/html]
# Thu, 10 Sep 2020 08:29:17 GMT
ENV JOOMLA_VERSION=3.9.21
# Thu, 10 Sep 2020 08:29:17 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Thu, 10 Sep 2020 08:29:22 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Thu, 10 Sep 2020 08:29:23 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Thu, 10 Sep 2020 08:29:23 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Thu, 10 Sep 2020 08:29:24 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Thu, 10 Sep 2020 08:29:24 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:07e4a6dbced6eed74bdb331987f95c00aa5b46543570b7adc1575121e66102dd`
Last Modified: Wed, 09 Sep 2020 23:46:28 GMT
Size: 25.7 MB (25707597 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b41f81f5ba533e5fb32c0cfcf148fd10f7157036df317d3440322ee13328ea09`
Last Modified: Thu, 10 Sep 2020 03:54:26 GMT
Size: 229.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ea4e35c34d5aea8c49d40ce4058e764f58b846eea3c34245ea9040071aff201c`
Last Modified: Thu, 10 Sep 2020 03:54:34 GMT
Size: 64.7 MB (64706227 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0dfe2203ba81a2f860cc2e28027c6f86906241199bd4c535778c6f7a7ddb66cc`
Last Modified: Thu, 10 Sep 2020 03:54:24 GMT
Size: 271.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:9184750e64fa258fd6be97ea17d97f96aac11899928b96afce2ff011a28bd596`
Last Modified: Thu, 10 Sep 2020 03:54:53 GMT
Size: 18.5 MB (18523170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:74b1592d2c355917fd8ce6974bcaaedcfbd38b3b33e9e915ac0305c989af0a2d`
Last Modified: Thu, 10 Sep 2020 03:54:50 GMT
Size: 479.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d4a739d503af04529b3e218f8a1b4548d8d2656f3fd20eaa6a298f9680b0d804`
Last Modified: Thu, 10 Sep 2020 03:54:50 GMT
Size: 511.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:df7ed9b053b9fdcd234b9f836da9a5562f96fd5893e8b173be722483b049f5cb`
Last Modified: Thu, 10 Sep 2020 03:57:54 GMT
Size: 12.6 MB (12647429 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:230e4993a5ca33db8c54408cd06c06f079e56c102f0cb6e26b38e65ee9c99d7c`
Last Modified: Thu, 10 Sep 2020 03:57:53 GMT
Size: 493.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:47936bfd220b34920e4d204b8c174353c6572b69739b9526729ce18001b42e48`
Last Modified: Thu, 10 Sep 2020 03:57:54 GMT
Size: 13.1 MB (13090806 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:8986308ee5b833d581df58ea4ca6d16c575586e8dd2d91912a00335a43b33b81`
Last Modified: Thu, 10 Sep 2020 03:57:52 GMT
Size: 2.3 KB (2286 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b26d6963380a8f9d616a0f3f6ed0ced2009b3f5329f356ad80b10f0e81c5c2c8`
Last Modified: Thu, 10 Sep 2020 03:57:52 GMT
Size: 248.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:3bbae4e9443893542767b24fc81b16a54af3607ccc476e0bedd7d2205a76c459`
Last Modified: Thu, 10 Sep 2020 03:57:52 GMT
Size: 213.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1e3174de970737a92019f2b4666bb2c41a5d32e4ef31158d2c9eaa08df066d2c`
Last Modified: Thu, 10 Sep 2020 03:57:52 GMT
Size: 896.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:613dbd4eae73331cfbcf6cfb6054d2c9a599d838e0ce62a0154bf5fbafc76ddb`
Last Modified: Thu, 10 Sep 2020 08:37:22 GMT
Size: 310.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ab6f65bd7bbfda8c512d7d1576b57fd479023353b678cd4f91d1e535264a226e`
Last Modified: Thu, 10 Sep 2020 08:37:22 GMT
Size: 3.4 MB (3353273 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:539b0b8ef8fcffdbe985c5e146abb28ac6800485b2393fe24839fe2e544fb11f`
Last Modified: Thu, 10 Sep 2020 08:37:23 GMT
Size: 9.7 MB (9686478 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:250ce65d0099271b1ea852a9a57086e6f015d3f9ebe73ab315cd82b416f48f9a`
Last Modified: Thu, 10 Sep 2020 08:37:21 GMT
Size: 1.2 KB (1200 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:96acd4fba466a01c08c3f2f4c5b6262f00052f57ae858b9a3b4009cdc334b172`
Last Modified: Thu, 10 Sep 2020 08:37:21 GMT
Size: 613.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
|
{
"pile_set_name": "Github"
}
|
// SNES GSU Test SUB (Subtraction) demo (GSU Code) by krom (Peter Lemon):
arch snes.gsu
GSUStart:
////////////////////////////
// SUB register
////////////////////////////
iwt r1, #$7FFF // R1 = $7FFF
iwt r0, #$7FFF // R0 = $7FFF
with r1 ; sub r0 // R1 -= R0
stop // Stop GSU
nop // Delay Slot
iwt r1, #$7FFF // R1 = $7FFF
iwt r0, #$8000 // R0 = $8000
with r1 ; sub r0 // R1 -= R0
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r1, #$7FFF // R1 = $7FFF
sub r1 // R0 -= R1
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r1, #$8000 // R1 = $8000
sub r1 // R0 -= R1
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r2, #$7FFF // R2 = $7FFF
sub r2 // R0 -= R2
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r2, #$8000 // R2 = $8000
sub r2 // R0 -= R2
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r3, #$7FFF // R3 = $7FFF
sub r3 // R0 -= R3
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r3, #$8000 // R3 = $8000
sub r3 // R0 -= R3
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r4, #$7FFF // R4 = $7FFF
sub r4 // R0 -= R4
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r4, #$8000 // R4 = $8000
sub r4 // R0 -= R4
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r5, #$7FFF // R5 = $7FFF
sub r5 // R0 -= R5
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r5, #$8000 // R5 = $8000
sub r5 // R0 -= R5
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r6, #$7FFF // R6 = $7FFF
sub r6 // R0 -= R6
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r6, #$8000 // R6 = $8000
sub r6 // R0 -= R6
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r7, #$7FFF // R7 = $7FFF
sub r7 // R0 -= R7
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r7, #$8000 // R7 = $8000
sub r7 // R0 -= R7
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r8, #$7FFF // R8 = $7FFF
sub r8 // R0 -= R8
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r8, #$8000 // R8 = $8000
sub r8 // R0 -= R8
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r9, #$7FFF // R9 = $7FFF
sub r9 // R0 -= R7
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r9, #$8000 // R9 = $8000
sub r9 // R0 -= R9
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r10, #$7FFF // R10 = $7FFF
sub r10 // R0 -= R10
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r10, #$8000 // R10 = $8000
sub r10 // R0 -= R10
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r11, #$7FFF // R11 = $7FFF
sub r11 // R0 -= R11
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r11, #$8000 // R11 = $8000
sub r11 // R0 -= R11
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r12, #$7FFF // R12 = $7FFF
sub r12 // R0 -= R12
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r12, #$8000 // R12 = $8000
sub r12 // R0 -= R12
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r13, #$7FFF // R13 = $7FFF
sub r13 // R0 -= R13
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r13, #$8000 // R13 = $8000
sub r13 // R0 -= R13
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r14, #$7FFF // R14 = $7FFF
sub r14 // R0 -= R14
stop // Stop GSU
nop // Delay Slot
iwt r0, #$7FFF // R0 = $7FFF
iwt r14, #$8000 // R14 = $8000
sub r14 // R0 -= R14
stop // Stop GSU
nop // Delay Slot
iwt r0, #$BDD0 // R0 = $BDD0
sub r15 // R0 -= R15
stop // Stop GSU
nop // Delay Slot
iwt r0, #$BDD5 // R0 = $BDD5
sub r15 // R0 -= R15
stop // Stop GSU
nop // Delay Slot
////////////////////////////
// SUB #const
////////////////////////////
iwt r0, #$0000 // R0 = $0000
sub #0 // R0 -= 0
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8000 // R0 = $8000
sub #0 // R0 -= 0
stop // Stop GSU
nop // Delay Slot
iwt r0, #$0001 // R0 = $0001
sub #1 // R0 -= 1
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8001 // R0 = $8001
sub #1 // R0 -= 1
stop // Stop GSU
nop // Delay Slot
iwt r0, #$0002 // R0 = $0002
sub #2 // R0 -= 2
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8002 // R0 = $8002
sub #2 // R0 -= 2
stop // Stop GSU
nop // Delay Slot
iwt r0, #$0003 // R0 = $0003
sub #3 // R0 -= 3
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8003 // R0 = $8003
sub #3 // R0 -= 3
stop // Stop GSU
nop // Delay Slot
iwt r0, #$0004 // R0 = $0004
sub #4 // R0 -= 4
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8004 // R0 = $8004
sub #4 // R0 -= 4
stop // Stop GSU
nop // Delay Slot
iwt r0, #$0005 // R0 = $0005
sub #5 // R0 -= 5
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8005 // R0 = $8005
sub #5 // R0 -= 5
stop // Stop GSU
nop // Delay Slot
iwt r0, #$0006 // R0 = $0006
sub #6 // R0 -= 6
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8006 // R0 = $8006
sub #6 // R0 -= 6
stop // Stop GSU
nop // Delay Slot
iwt r0, #$0007 // R0 = $0007
sub #7 // R0 -= 7
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8007 // R0 = $8007
sub #7 // R0 -= 7
stop // Stop GSU
nop // Delay Slot
iwt r0, #$0008 // R0 = $0008
sub #8 // R0 -= 8
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8008 // R0 = $8008
sub #8 // R0 -= 8
stop // Stop GSU
nop // Delay Slot
iwt r0, #$0009 // R0 = $0009
sub #9 // R0 -= 9
stop // Stop GSU
nop // Delay Slot
iwt r0, #$8009 // R0 = $8009
sub #9 // R0 -= 9
stop // Stop GSU
nop // Delay Slot
iwt r0, #$000A // R0 = $000A
sub #10 // R0 -= 10
stop // Stop GSU
nop // Delay Slot
iwt r0, #$800A // R0 = $800A
sub #10 // R0 -= 10
stop // Stop GSU
nop // Delay Slot
iwt r0, #$000B // R0 = $000B
sub #11 // R0 -= 11
stop // Stop GSU
nop // Delay Slot
iwt r0, #$800B // R0 = $800B
sub #11 // R0 -= 11
stop // Stop GSU
nop // Delay Slot
iwt r0, #$000C // R0 = $000C
sub #12 // R0 -= 12
stop // Stop GSU
nop // Delay Slot
iwt r0, #$800C // R0 = $800C
sub #12 // R0 -= 12
stop // Stop GSU
nop // Delay Slot
iwt r0, #$000D // R0 = $000D
sub #13 // R0 -= 13
stop // Stop GSU
nop // Delay Slot
iwt r0, #$800D // R0 = $800D
sub #13 // R0 -= 13
stop // Stop GSU
nop // Delay Slot
iwt r0, #$000E // R0 = $000E
sub #14 // R0 -= 14
stop // Stop GSU
nop // Delay Slot
iwt r0, #$800E // R0 = $800E
sub #14 // R0 -= 14
stop // Stop GSU
nop // Delay Slot
iwt r0, #$000F // R0 = $000F
sub #15 // R0 -= 15
stop // Stop GSU
nop // Delay Slot
iwt r0, #$800F // R0 = $800F
sub #15 // R0 -= 15
stop // Stop GSU
nop // Delay Slot
|
{
"pile_set_name": "Github"
}
|
<!--
~ Copyright (c) 2018 Wolfram Research, Inc. All rights reserved.
~ Redistribution or use of this work in any form, with or without modification,
~ requires written permission from the copyright holder.
-->
<h3><a href="http://reference.wolfram.com/mathematica/ref/LinearModelFit.html">LinearModelFit</a></h3>
<ul>
<li>LinearModelFit[{<em>y</em><sub>1</sub>,<em>y</em><sub>2</sub>,
<math>
<ms>…</ms>
</math>
},{<em>f</em><sub>1</sub>,<em>f</em><sub>2</sub>,
<math>
<ms>…</ms>
</math>
},<em>x</em>] constructs a linear model of the form
<math>
<ms>β</ms>
</math>
<sub>0</sub>+
<math>
<ms>β</ms>
</math>
<sub>1</sub><em>f</em><sub>1</sub>+
<math>
<ms>β</ms>
</math>
<sub>2</sub><em>f</em><sub>2</sub>+
<math>
<ms>…</ms>
</math>
that fits the <em>y</em><sub><em>i</em></sub> for successive <em>x</em> values 1, 2,
<math>
<ms>…</ms>
</math>
.
<li>LinearModelFit[{{<em>x</em><sub>11</sub>,<em>x</em><sub>12</sub>,
<math>
<ms>…</ms>
</math>
,<em>y</em><sub>1</sub>},{<em>x</em><sub>21</sub>,<em>x</em><sub>22</sub>,
<math>
<ms>…</ms>
</math>
,<em>y</em><sub>2</sub>},
<math>
<ms>…</ms>
</math>
},{<em>f</em><sub>1</sub>,<em>f</em><sub>2</sub>,
<math>
<ms>…</ms>
</math>
},{<em>x</em><sub>1</sub>,<em>x</em><sub>2</sub>,
<math>
<ms>…</ms>
</math>
}] constructs a linear model of the form
<math>
<ms>β</ms>
</math>
<sub>0</sub>+
<math>
<ms>β</ms>
</math>
<sub>1</sub><em>f</em><sub>1</sub>+
<math>
<ms>β</ms>
</math>
<sub>2</sub><em>f</em><sub>2</sub>+
<math>
<ms>…</ms>
</math>
where the <em>f</em><sub><em>i</em></sub> depend on the variables <em>x</em><sub><em>k</em></sub>.
<li>LinearModelFit[{<em>m</em>,<em>v</em>}] constructs a linear model from the design matrix <em>m</em> and response
vector <em>v</em>.
</ul><p><b>Attributes:</b> Protected, ReadProtected</p><p><b>Options: </b>ConfidenceLevel, IncludeConstantBasis,
LinearOffsetFunction, NominalVariables, Tolerance, VarianceEstimatorFunction, Weights, WorkingPrecision</p>
|
{
"pile_set_name": "Github"
}
|
#StarCraftⅡ-cn,星际争霸2国服,0,0,1,0,1,0,By-normanbb
12.129.202.0/24
12.129.206.0/24
12.129.210.0/24
12.129.222.0/24
12.129.242.0/24
12.130.193.0/24
14.215.228.0/24
36.25.240.0/24
39.129.16.0/24
42.186.64.0/24
42.186.64.174/32
42.186.64.175/32
42.186.64.176/32
42.186.64.177/32
42.186.64.178/32
42.186.64.179/32
42.186.64.180/32
42.186.64.181/32
58.51.151.0/24
58.87.72.0/24
58.216.109.0/24
58.220.6.0/24
58.222.42.0/24
58.222.46.0/24
59.34.43.0/24
59.111.134.0/24
59.111.134.238/32
59.111.135.0/24
59.111.135.231/32
59.111.135.238/32
59.111.135.240/32
60.220.196.0/24
61.147.112.0/24
61.147.228.0/24
61.163.111.0/24
103.215.141.0/24
106.57.180.0/24
106.60.70.0/24
111.41.53.0/24
112.17.2.0/24
112.29.186.0/24
112.29.203.0/24
112.113.248.0/24
113.106.27.0/24
113.142.80.0/24
113.142.88.0/24
114.113.217.0/24
114.113.217.193/32
114.236.88.0/24
114.236.140.0/24
115.153.176.0/24
115.223.16.0/24
115.223.26.0/24
115.238.0.0/16
115.238.1.0/24
115.238.2.0/24
115.238.3.0/24
115.238.5.0/24
115.238.9.0/24
115.238.11.0/24
115.238.13.0/24
115.238.15.0/24
115.238.112.0/24
116.242.0.0/16
117.23.54.0/24
117.161.5.0/24
117.169.93.0/24
119.52.121.0/24
120.209.141.0/24
121.17.125.0/24
121.254.164.0/24
121.254.166.0/24
121.254.168.0/24
121.254.200.0/24
122.198.64.0/24
122.198.65.0/24
122.198.66.0/24
122.198.67.0/24
122.225.38.0/24
123.58.183.0/24
123.58.183.130/32
123.58.183.131/32
123.58.183.132/32
123.58.183.133/32
123.58.183.134/32
123.58.183.135/32
123.58.183.136/32
123.58.183.137/32
123.58.183.138/32
123.58.183.139/32
123.58.183.140/32
123.58.183.141/32
123.58.183.142/32
123.58.183.143/32
123.58.183.144/32
124.225.98.0/24
124.225.168.0/24
124.225.183.0/24
180.88.61.0/24
180.97.244.0/24
180.101.30.0/24
182.140.211.0/24
182.140.211.3/32
182.140.211.4/32
182.140.211.5/32
182.140.211.6/32
182.140.211.7/32
182.140.211.8/32
182.140.211.9/32
182.140.211.10/32
182.140.211.11/32
182.140.211.12/32
182.140.211.13/32
182.140.211.14/32
182.140.211.15/32
182.140.211.16/32
182.140.211.17/32
182.140.211.18/32
182.140.211.19/32
182.140.211.20/32
182.140.211.21/32
182.140.211.22/32
182.140.211.23/32
182.140.211.24/32
182.140.211.25/32
182.140.211.26/32
182.140.211.27/32
182.140.211.45/32
182.140.211.46/32
182.140.211.47/32
182.140.211.48/32
182.140.211.49/32
183.60.151.0/24
183.131.111.0/24
183.216.174.0/24
195.12.229.0/24
202.114.91.0/24
202.150.17.0/24
208.111.144.0/24
208.111.145.0/24
213.248.127.0/24
218.75.225.0/24
218.77.18.0/24
218.164.96.0/24
218.241.152.0/24
219.139.240.0/24
219.145.171.0/24
220.164.146.0/24
220.181.102.0/24
220.181.102.66/32
220.181.102.67/32
220.181.102.68/32
220.181.102.69/32
220.181.102.70/32
220.181.102.71/32
220.181.102.72/32
220.181.102.75/32
220.181.102.76/32
220.181.102.77/32
220.181.102.194/32
220.181.102.195/32
220.181.102.196/32
220.181.102.197/32
220.181.102.198/32
220.181.102.199/32
222.20.147.0/24
222.186.145.0/24
222.231.21.0/24
222.231.22.0/24
222.231.23.0/24
222.231.24.0/24
223.111.13.0/24
223.111.17.0/24
223.111.18.0/24
223.111.19.0/24
223.111.188.0/24
223.111.192.0/24
223.111.204.0/24
223.252.230.0/24
223.252.231.0/24
223.252.234.0/24
223.252.242.0/24
223.252.243.0/24
223.252.245.0/24
|
{
"pile_set_name": "Github"
}
|
{% extends 'homepage.html' %}
{% block content %}
<h2> Further refine search </h2>
<form id='re-search'>
{% include 'hidden_search_inputs.html' %}
<table border="0">
<tr>
<td align=left>{{ KNOWL('rep_galois_modl.dimension', title='Dimension') }}</td>
<td align=left>{{ KNOWL('rep_galois_modl.determinant', title='Determinant') }}</td>
<td align=left>{{ KNOWL('rep_galois_modl.level', title='Level') }}</td>
<td align=left>{{ KNOWL('rep_galois_modl.gram', title='Gram matrix') }}</td>
</tr>
<tr>
<td align=left><input type='text' name='dim' size=10 value="{{info.dim}}"></td>
<td align=left><input type='text' name='det' size=10 value="{{info.det}}"></td>
<td align=left><input type='text' name='level' size=10 value="{{info.level}}"></td>
<td align=left><input type='text' name='gram' size=10 value="{{info.gram}}"></td>
</tr>
<tr>
<td align=left>{{ KNOWL('rep_galois_modl.minimal_vector', title='Minimal vector')}} length</td>
<td align=left>{{ KNOWL('rep_galois_modl.class_number', title='Class number') }}</td>
<td align=left>{{ KNOWL('rep_galois_modl.group_order', title='Group order') }}</td>
</tr>
<tr>
<td align=left><input type='text' name='minimum' size=10 value="{{info.minimum}}"> </td>
<td align=left><input type='text' name='class_number' size=10 value="{{info.class_number}}"> </td>
<td align=left><input type='text' name='aut' size=10 value="{{info.aut}}"> </td>
</tr>
<tr> </tr>
<tr>
<td><button type='submit' size=10 value='refine' onclick='resetStart()'>Search again</button></td>
</tr>
</table>
</form>
{% include 'matches.html' %}
{% if info.number %}
<table>
<tr>
<th>{{ KNOWL('rep_galois_modl.label', title='Label') }}</th>
<th>{{ KNOWL('rep_galois_modl.dimension', title='Dimension') }}</th>
<th>{{ KNOWL('rep_galois_modl.determinant', title='Determinant') }}</th>
<th>{{ KNOWL('rep_galois_modl.level', title='Level')}}</th>
<th>{{ KNOWL('rep_galois_modl.gram', title='Gram Matrix') }}</th>
</tr>
{% for l in info.results %}
<tr>
<td align='left'><a href="{{url_for('rep_galois_modl.render_rep_galois_modl_webpage', label=l.label)}}">{{l.label}} </a></td>
<td>{{l.dim}}</td>
<td>{{l.det}}</td>
<td>{{l.level}}</td>
<td>${{l.gram}}$</td>
</tr>
{% endfor %}
</table>
<hr>
{% include 'forward_back.html' %}
{% include 'download_search_results.html' %}
{% endif %}
{% include 'debug_info.html' %}
{% endblock %}
|
{
"pile_set_name": "Github"
}
|
## 人生是美好的,但过程确实是痛苦的
2008年4月10日
【背景】2006年5月28日,华为员工、25岁的胡某因病毒性脑炎死亡;2007年7月18日,年仅26岁的华为员工张某在深圳梅林某小区的楼道内自缢身亡;2007年8月11日,华为长春办事处员工赵某纵身从7楼跳下身亡; 2008年2月26日,华为成都员工李某从研发中心楼跃下。
知道大家都是先进党员,我很羡慕你们,你们很光荣,你们是我们公司中很重要的榜样,榜样的力量是无穷的。今天主要跟大家交流,应该怎么来看待现实生活和工作中的问题,以及帮助一些认识上还有差距的同事。同时,通过你们向下传达一个精神:就是我认为人生是非常美好的,但过程确实是痛苦的。
人生出来最终要死,那何必要生呢?人不努力可以天天晒太阳,那何必要努力以后再去度假晒太阳呢?如果从终极目标来讲,觉得什么都是虚无的,可以不努力,那样就会产生悲观的情绪。我们生命有七八十年,这七八十年中努力和努力不一样,各方面都会不一样的。在产生美的结果的过程中,确实充满着痛苦。农夫要耕耘才会有收获;建筑工人不惧日晒雨淋,才会有城市的美好;没有炼钢工人在炉火旁熏烤,就没有你的潇洒美丽,没有你驾驶的汽车,而他们不再需要什么护肤品;海军陆战队员不进行艰苦顽强的训练,一登陆,就会命丧沙滩。少壮不努力,老大徒伤悲,我想各位考上大学,都脱了一层皮吧……所有一切,没有付出,是绝不会有收获的。鲜花的美丽,没有肥料,以及精心照料,是不可能的。当然这些都是必要的痛苦,我今天要讲讲如何避免一些不必要的痛苦。
一、不要做一个完人,做完人很痛苦的。要充分发挥自己的优点,使自己充满信心去做一个有益于社会的人
金无足赤,人无完人。完人实际上是很少的, 我不希望大家去做一个完人。大家要充分发挥自己的优点,做一个有益于社会的人,这已经很不错了。我们为了修炼做一个完人,抹去了身上许多的棱角,自己的优势往往被压抑了,成了一个被驯服的工具。但外部的压抑并不会使人的本性完全消失,人的内在本性的优势,与外在完人的表现形式,不断地形成内心冲突,使人非常的痛苦。我希望把你的优势充分发挥出来,贡献于社会,贡献于集体,贡献于我们的事业。每个人的优势加在一起,就可以形成一个具有“完人”特制的集体。
我的缺点和劣势是明显的。我大学时代,没有能参加共青团,通不过呀,我是优点很突出,缺点也很突出的人,怎么能通得过呢?我在军队这个大熔炉里,尽管我非常努力,但也加入不了共产党。我加入共产党是在粉碎四人帮以后,上级领导认为我有重大贡献,在其直接干预下,我才加入了共产党。按正常情况来看,我肯定也是有问题的。我并不埋怨任何人,他们指出的确实是我的不足。我们公司以前有位员工,已经到美国去了,他走的时候跟我说,你这个人只能当老板,如果你要打工,没有公司会录用你。
我在人生的路上自我感觉是什么呢?就是充分发挥自己的优势。比如说我英文不好,是现在不好,但是不等于说我外语能力不行,我在大学可是外语课代表,我那时还自学了英语、日语,都能简单交流,看书了。但后来为什么不行了呢?20年军旅生涯没使用这个工具,就生疏了。当我走向新的事业的时候,虽然语言对我很有用处,但发现我的身上最主要的优势是对逻辑及方向的理解,远远深刻于对语言的修炼。如果用很多精力去练语言,可能对逻辑的理解就很弱化。我放弃对语言的努力,集中发挥我的优势,这个选择是正确的。对于我来说,虽然英文好,可能我在人们面前会挺风光的,但是我对社会价值的贡献完全不一样了。我就放弃一些东西,集中精力充分发挥我的优点。我确实注重于重要东西的思维,可能忽略了小的东西。小的东西不等于不需要重视,但我确实没有注意。
在人生的路上,我希望大家不要努力去做完人。一个人把自己一生的主要精力用于去改造缺点,等你改造完了对人类有什么贡献呢?我们所有的辛苦努力,不能对客户产生价值,是不行的。从这个角度来说,希望大家能够重视自己优点的发挥。当然不是说不必去改造缺点。为什么要讲这句话呢,完人的心理负荷太重了,大多数忧郁症的患者,包括精神病患者,他们中的大多数在社会中是非常优秀的人,他们绝不是一般人,一般人得不了这个病,就是因为太优秀了,对自己追求目标太高了,这个目标实现不了,而产生的心理压力。我不是说你不可以做出伟大的业绩来,我认为最主要的是要发挥自己的优势,实现比较现实的目标。这样心理的包袱压力才不会太重,才能增强自己的信心,当然这个信心包括活下去的信心,生命的信心。希望各级组织在和党员进行教育的时候,不要过多关注缺点,多关注他人的优点。
每个人都发挥自己的优势,也多看看别人的优点,从而减少自己心理太多的压抑。要正确地估计自己,绝大多数人都会比较过高估计自己。我们的豪言壮语如果偏离了我们的实际,你会浪费你很多精力,而不能实现你的理想。有一首歌叫《铃儿响叮当》,这首歌现在已经成为西方圣诞节里不可缺少的歌,其作者是约翰·皮尔彭特。他的一生从来就是过高地估计自己,他设计的人生目标最后全都失败了。直到87岁,那天出去参加人家的圣诞平安夜,在途中,赶着雪橇车的时候,随意哼唱出这首歌,结果这首歌就成了脍炙人口的世界名曲。你看看,过去的失败,就因为他没有正确对待自己,没有正确对待自己的人生,他浪费了80多年不应该浪费的光阴。
大家要正确估计自己,然后作出对自己的正确判断,这样才能够充分发挥自己的作用。同时,要认识这个社会上差距是客观存在的。没有水位差,就不会有水的流动;没有温度差,风就不能流动;就算是机器人,机器人还有温差,对吧?人和人的差距是永远存在的。同一个父母生下的小孩,也是有差距的,更何况你们不同父母。当自己的同学、同事进步了,产生了差距,应该判别自己是否已经发挥了自己的优势,若已经发挥了,就不要去攀比,若没有发挥好,就发挥出来。
公司有的员工,心里面常常忿忿不平,觉得委屈他啦!其实我们公司很简单,并不像他们说的那样不公平。一个新员工进入这个公司,他们前半年先培训,后面一年左右主要是熟悉工作,他们真正产生贡献是在两年后,他们进公司时大约五六千块钱,这样的报酬在社会上已经不低了。但是他们和老员工对比,觉得忿忿不平,说老员工有股票。大家也要想一想,红军从爬雪山过草地,到了北京,这过程仅仅经历了十四年。他们从一个少年才变成一个青年,到北京就当了部长。这个差异是客观存在的。战火纷飞的时候,别人攻上山头,给他一个英雄或者给他一个连长,然后也有人忿忿不平:“我不就是没冲上这个山头吗?”那不就是你没有过雪山草地,不就是你没有冲上山头吗?就是说,你在这个创业风险时期,你没有出现,当时公司处在风险时期,他们将工资奖金全部家当都投入到公司了。你那时还没有进入这个公司,所以你没有分享到那时的一份风险与一份幸福。
人生一定要有一个自我的满足感。你要和社会去比,和自己的纵向比,和你爸爸妈妈比。你想你爷爷那个时候可能一个月只有四五十块钱的工资,到你爸爸妈妈那时候一个月可能就有四五百工资了,到了你有四五千块工资啊。实际上你已经有很大进步了,对吧?你需要更大的进步,你就需要更大的努力,所以不存在新老员工之差。新老员工在薪酬体系上是处于同一个轨道的。在公司创业初期,公司需要大量的资金投入,老员工就把自己的工资拿出来了,换成了公司给他的一张纸,这张纸就是告诉他,红军长征胜利回来以后,我挖过你的红苕,你拿这张纸事后可以领大洋。华为一旦崩溃了,他们就将一无所有,那张纸就变成了废纸。现在已实行饱和配股,已经可以缓解以后的差距,你也会成为老员工的。华为公司是无法帮助解决你的不公平的,你选择了华为,你就选择了艰苦奋斗,因为我们这种没有背景的公司,活下去的唯一可能就是要比别人多努力一点,不然它不可能活下去。有些拥有资源的公司,情况会好一些。
人要有进取心,要努力,要做出贡献,但是也要有满足感。自己的力量发挥到最大,就应对人生无愧无悔。
员工暴露出的思想问题,我认为还是缺少对一些客观的认识,对客观规律和客观现实的认识。如果我们都不能认识这个问题,我们的心理障碍就很大。想想不舒服,嫉妒之心不就是这么来的。不舒服的情绪慢慢使自己变成忧闷,慢慢就成为一个死结,最后打不开这个死结,慢慢就成为一个心理障碍了。当然你们先进党员是没这个问题啊,我是通过你们党员给我们全体员工,通过党员活动给周围的员工一些关爱,给他们思想作一些辅导,因为他们太年轻了,他们不太懂得自己的人生。
我曾经在公司讲过,人生最美好的就是生命,没有什么东西比生命更高贵,所以一切都要为了生命。
要爱惜生命,不管是在工作中,还是生活中,不管在哪方面都要爱惜生命。工作太累了一定要休息。公司现在有文件,对那些冲击项目短期太累的员工,可以短期到海滨度假休整一下,由行政费用开支,公司已有文件。有的员工奋斗强度太大,太艰苦了,主管看到你脸色不太好了,可以从前线把他拖下来,休养休养,缓冲一下。
近期有些员工自杀,我心里是很沉重的,也很理解他们,因为从99年到2007年,其实我个人就有多次有感觉活不下去的经历,我跟他们是同类,所以我才有这么多感触。但是我有一个最大的优点,我开放,我讲出来。我知道自己是病,难受得很,实在受不了的时候,我会往外打电话,诉说自己的心里感受,没有一个人会劝你自杀的。我以前不知道这是病,也不知道这个能治,后来就治好了。我记得郭平在美国跟我谈心的时候说:“老板,你要找一些无聊的事情来干”。所谓无聊的事情就是瞎聊瞎侃,把精神岔开,慢慢就不会想这件事,可能病也就好了。后来我写了一篇文章,到北京景山公园去看看唱歌啊,到云南丽江看少数民族对歌啊,到热闹的地方去哄一哄、闹一闹啊,可能人就释放,就会好一点。
员工要多一些朋友,很多出问题的员工,最大的问题是没朋友,我希望员工在这个时候要多几个朋友。多一个朋友,就多有一个打电话的地方,实在闷得受不了就打电话嘛,疏导一些总会有好处的。
大家要珍惜生命,近些年来有员工自杀,大多数是个人原因,有些进来也就一个月不到两个月左右,时间比较短。我们忽略了心理测试,对他们的心理关怀也不够,不论谁出现这种情况,他们都是我们的战友,我们都是心疼的,我很理解他们,我希望大家也理解他们。希望好好理解我上面讲的话,看到自己生命中的优点,不断地激励自己,不要光看自己的缺点,背那么多包袱,背那么重的包袱。
整个社会的环境和氛围已经很宽容了,同性恋在这个社会上也不会受到太多的谴责和歧视!你既然有这么大的精神压力,你为什么要选择这条道路呢?你既然选择了这条路,就说明你认为它是正确的,是你的追求,那你怕什么呢?所以我认为我们很多员工面对生命过于草率,实在不好,不好。特别是工作没有成绩啊,决策失误啊,走向这一步,更不好!我们有的员工的精神包袱太大,在这个进取的团队里面,落伍了就感到有点压力。有什么压力啊?做员工有什么不可以的啊?这个世界上多数都是做员工的啊!做领袖的人总的还是少数的,领袖也是偶然机会啊,也不是说是必然机会的啊。所以说公平有时候是无从说起啊。
华为公司总的来说是个内部很宽容的公司,不像社会上想象的那样。有些误解的人,主要是不了解我们,我也是可以理解的。千秋功罪,何必要评说呢?你何必要等到评说呢?没人会给你评说,你放心好了。你就好好珍惜自己,不要太多地听信闲言碎语,不要有太多的精神压力和包袱。
我讲的第二个问题,是大家要对经济全球化以及市场竞争的艰难性、残酷性做好充分的心理准备。
经济全球化是美国推出来的,美国最后看到经济全球化对美国并不有利,所以美国在退向贸易保护主义,但是保也保不住,经济全球化这个火烧起来了,就会越烧越旺。过去的一百多年,经济的竞争方式是以火车、轮船、电报、传真等手段来进行的,竞争强度是不大的,从而促进了资本主义在前一百多年,有序的、很好的获得发展。而现在,由于光纤与计算机的发展,形成网络经济,形成资源的全球化配置。使交付、服务更加贴近客户,快速而优质的服务;使制造更加贴近低成本;研发更加贴近人才集中的低成本地区……。这使竞争的强度大大增强,将会使优势企业越来越强,没优势的企业越来越困难。特别是电子产业将会永远的供过于求,困难的程度,是可以想象的。
经济全球化使得竞争越来越残酷了,特别是我们电子行业,竞争极其残酷。我就举个例子来看:电子产品的性能、质量越来越高,越来越需高素质人才,而且是成千上万,数万的需求,这些人必需有高的报酬才合理。但电子产品却越来越便宜。这就成了一个矛盾,如何得以解决,我们期待某一个经济学家,能获得电子经济诺贝尔奖。
我们仅是比其他公司对这个竞争残酷性早了一点点认识,我们才幸免于难。你们读书的时候都很崇拜贝尔实验室的吧?十多年前,我去贝尔实验室,当时DWDM还处在发明阶段,发明的一个波,就是GW载波,当时光纤还只能有三个载波,发明这项技术的博士亲自给我做图形表演。结果没多久光传输像排山倒海一样,迅速的形成过剩,把贝尔实验室也席卷了,大水冲了龙王庙。成则亦光,败则亦光。我们也在这里苟延残喘。我们的光传输产品,七、八年来降价了二十倍。市场经济的过剩就像绞杀战一样。绞杀战如什么呢?就如拧毛巾,这毛巾只要拧出水来,就说明还有竞争空间,毛巾拧断了企业也完了,只有毛巾拧干了,毛巾还不断,这才是最佳状态。华为公司能长久保持到这个状态吗?我这两天批了一个文件给业务口征求意见,我写了一段对话,我提到了思科,当然我是歌颂了钱伯斯,思科现在开始实行很多政策,如减少员工出差,减少会议,来提高效率,高层领导出差不能坐头等舱,要坐,须自己掏钱,等等这一系列的措施。思科尚且如此,华为就能独善其身?
支撑信息产业发展的两个要素,一是数码,取之不尽用之不竭,还不用缴任何专利费;二是二氧化硅,做硅片的。这两个东西取之不尽用之不竭的,导致电子产品过剩。过剩的结果就是大家都拧毛巾,绞杀战。西方公司过去日子太好了,拧的水太多了,所以拧着拧着把自己拧死了,我们也不是最佳状态。我们公司的铺张浪费还很多的。
在这种情况下,怎么办?当然我曾经悲观过啊,但是每次犯忧郁症的时候就是那种病态,但不是我的完整思想。我曾经很发愁,觉得苦闷啊。华为公司只要稍稍不行了,怎么发工资啊?我觉得这是很大的压力。我们不是悲观主义者,但也要对经济全球化以及市场竞争的残酷性要有充分的心理准备。如果华为衰落怎么办?如何才能不衰落呢?总有一天,别人在发展,而我们在落后的。
这个世界的变化是很大的,唯一不变的是变化。面对这样的变化,每个企业,如果不能奋起,最终就是灭亡,而且灭亡的速度很快。以前我们还有祖传秘方,比如说爷爷打菜刀打得很好,方圆五十里都知道我们家菜刀好,然后孙子继承了爷爷的手艺。在方圆五十里我还是优秀的铁匠,就能娶到了一朵金花啊。那现在铁匠还行吗?现在经济全球化啦。人家用碳纤维做的刀,削铁如泥,比钢刀还好得多。你在方圆几公里几十公里曾经流传几十年几百年的祖传,就被经济全球化在几秒钟内打得粉碎。所以在这样的情况下,就给每个人带来了生存的困难,所以每个人都要寻找生存的基点。
但是,竞争是好,还是坏?竞争使这个世界进步了,加速了,美好了。我们享受了这种美好。五十年前,我记得我上小学的时候还打赤脚,还穿草鞋。我的梦想就是穿一双橡胶底的鞋。你看现在好多人都开汽车了,五十年的变化是不可想像的。当年我在欧洲坐豪华的列车时,就想“哎,中国这是没戏啰!”我在美国坐了豪华大巴时,“哎,在中国可能我坐不上了,看不见了。”中国在这么短的时间发展这么快,我想都没想到,社会进步是很快的,这个社会进步给每个人带来了美好,但是也带来了痛苦。WTO是把物价降下来了,但是也让很多人失业了。
美国竞争失利是因为他们薪酬太高而失利,而不是因为华为的崛起使他们失败了。所以美国很多要人跟我交流,我就讲是你们失败是因为你们的薪酬点太高了,不可能这么高的薪酬,怎么可能啊?你们的薪酬从哪里来的?是从那些GDP只有200多个美金的非洲的弟兄们那儿取来的钱,来供这些IT皇帝们,能供得起吗?供不起的。最终有一天会支撑不起的。
我们要加强对员工的关怀。我最近不是讲了吗?我们EMT作的决定,就是对那些前线竞争进行投标、进行高强度作业、压力太大的员工,可以短时间到海滨去度假,费用由公司支付。还有一些奋斗强度太大,短时间身体不太好的,可以临时拖到五星级酒店缓冲一下。我们的国际救援都是一级救援的啊。我们买的是美国AIA的保险,我们每年为员工支付的各种保障费用大约是八个亿,我们员工在海外有意外,有直升飞机送到他们认证的医院去抢救,我们当然不希望这种事情发生。
我们希望大家要互相关爱,特别是各级党组织的支部书记、支委员,能不能跟员工交交朋友,跟他们谈谈心,吃顿饭?你想想,在非洲那么荒凉的地方,大家出去撮一顿,大家可能就增强了友谊,可能就是因为你跟他的友谊,他给你打了一个电话,你救了他一条命。所以我号召我们党组织要跟员工做朋友。当然我讲每级行政管理团队都要和员工有一个定时间的沟通,定一个时间,多长时间你们和员工有一个沟通,十分钟、十五分钟都是可以的,你要沟通。在调动工作时,主管一定要和本人做沟通,不能什么都不告诉他,简单命令一下,这样草率,草菅人命,不好。这种东西容易引起很多矛盾。其实很多事情并不是这样子,讲清楚就好了。所以我讲的就是希望大家互相关爱,这种关爱精神一定要有。这样可以平缓竞争给人们带来的心理压力。
第三点,如何面对当前的形势,如何面对竞争对手,我们应该怎么办?
其实就是必须继续努力,要一天比一天有一点点进步。我们没有奋斗的终极目标,不奋斗是没有出路的。不管形势如何变化,只要我们团结合作,紧张而镇定,总会有活路的。同时我们也不要仅为自己生存,而去做一些不应该做的行为。我们要做一个国际市场秩序的维护者,而不是一个破坏者。我们要遵循这些规律,而不是颠覆这些规律。我们要积极地向强者学习,尊重他们的市场领导地位,积极、但有序地开展竞争,以激活双方的组织体系,实现共赢。
近几年,我国的经济形势也可能出现下滑,希望高级干部要有充分的心理准备。也许2009年、2010年还会更加困难。宏观经济不好,对我们员工来说应该不会有太大的影响,但对你们的家庭可能有很多困难。比如说肉涨价啦,奶粉涨价啦,大米涨价啦,都会带来你周围的亲戚、朋友的困难。我们应该怎么办?
我要讲的是,一定要理解国家在这个变革时期的困难。中国这三十年来的变化是巨大的,国家的富强是我们想象都想象不到的。但快速发展的经济,也不可能持久不变,也会遇到调整。中国历史上走过的路都是弯弯曲曲走过来的,右一阵子左一阵子,左一阵子右一阵子,但是它总的还是在往前走,所以我们对“左一阵子右一阵子”要忍耐。不要去发表任何不负责任的言论,更不要“指点江山,激扬文字”。我们一定要有忍耐!我为什么有点担心呢?担心社会可能不忍耐。如果社会不能忍耐,出了乱子的时候,我们应严格要求员工,不准发表任何政治言论,更不允许上街去参加什么活动。去年经济好的时候,你讲的话出格就算啦,没关系,现在不要讲了。关键时刻你不能发表任何讲话,给社会添麻烦。要保持与党和国家一致,千万不要在这个时候拆国家的台。国家也很难。我们态度讲清楚:你乱发表言论,你上街游行,我们是要辞退的。但,你的退职金还是要发给你的。
要有一个思想准备,不见得我们是这么平安,这么平稳的。千万不要以为自己能改变这个世界,其实我们才是幼稚可笑的,不要有太多幻想。努力做好你们的份内工作,就是对这个国家最大的忠诚。我们会处于一个敏感的政治时期。这个时期特别是党员要带头,与党和国家保持一致。也可能这个时候,可能在很多问题上有自己的见解,我认为这都是可能的,但是你的行为必须要被约束。
看看大家还有什么问题要提一提,我讲的不对的大家也可以批评。
党员1:我是中央研发部的刘桑,是一个支部书记。有几点我想谈一下感想啊。第一个就是基层的员工对党组织这一块儿还是相当认同的。以我们支部为例,去年就有20多个人递交入党申请书。我觉得还是很欣慰的,就是我们员工对党的兴致是很高的。第二点,就是您谈到的自我满足感。我深有同感,我想起了我以前在读大学的时候一些事情。当时遇到很烦心事情的时候,我就跑到工地上去看看,看民工在工地里挖土地,看他们吃青菜,几个人吃一碗青菜,我就觉得很多事情都可以去解决。我觉得这种满足感对我们的成长是很有利的。
任总:对有人积极要求入党,我也很高兴,但是他们一定要严格按照共产党员的标准来要求自己,不要图时髦。你要认识到党员的责任、义务,你才进入这个党。你怎么继续改造自己?入了党就增加一种约束,你愿意有这种约束,而且你愿意履行这种义务,甚至一生一世,这是要想清楚的。
党员2:就是刚才任总在你的讲话中提到了,你有近20年的这样的军旅生涯。我想问的就是,在这20年的军旅生涯中,从今天回过头来看,您的认识和思考有着怎样的变化,是怎样变化的?
任总:这20年对我起到的作用,就是服从、吃苦和忍耐。收获的最多的就是服从。军人最后的结果就是服从。叫你怎么干就怎么干,错的也得干。我们现在的青年中,自由度是很大了。我们那个时代是不考虑有自由的,我们怎么敢乱说话?老老实实搞点技术,一句话都不过问的。看到你们今天活蹦乱跳的,我们好羡慕。我真想倒过来和你们换换年龄。
党员3:任总,我是中研负责员工关系的,我不是优秀党员。我有一个问题是在工作中遇到的,就是现在80后员工中有一个说法,就是要“快乐工作,快乐生活”。我想了很久,要做到“快乐工作”是很难的,我认为工作其实是很辛苦的,有的时候是痛苦的,但是生活或者说工作的目标是可以很快乐的。我想了解一下任总您是怎么看,因为如果说我们对这个工作或者是生活的看法,认为一直是快乐的,如果遇到挫折他可能就不能接受。我个人认为,就应该告诉80后,工作和生活其实是有冲突的。
任总:首先要搞清楚什么叫快乐。如果不搞清什么是快乐呢,那就不知道快乐涵义是什么。如果快乐是精神的,应该没问题,如果是物质的,可能就很难了。精神在你自己,是不需要成本的,只要你心里快乐就一定快乐。但物质就不一样,物质在别人手里,他要等价交换的。你不付出别人就不会提供给你的。但如果你把人生的目标定义为希望做一件事,然后为这件事付出多大的努力都在所不辞,你觉得这是快乐,那它就是快乐。你的快乐就是你的奉献,使你产生快乐,你没有奉献就不能产生快乐。所以快乐的定义是什么?首先要定义什么是快乐。80后的年轻人,很坦诚、不隐晦、比较好交流,大家也可以相互讨论一下,怎么能快乐。其实80前,80后没有什么本质区别,80后总有人要承担起国家兴亡的责任的。
|
{
"pile_set_name": "Github"
}
|
// SPDX-License-Identifier: GPL-2.0
/*
* MOXA ART RTC driver.
*
* Copyright (C) 2013 Jonas Jensen
*
* Jonas Jensen <jonas.jensen@gmail.com>
*
* Based on code from
* Moxa Technology Co., Ltd. <www.moxa.com>
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/rtc.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/gpio.h>
#include <linux/of_gpio.h>
#define GPIO_RTC_RESERVED 0x0C
#define GPIO_RTC_DATA_SET 0x10
#define GPIO_RTC_DATA_CLEAR 0x14
#define GPIO_RTC_PIN_PULL_ENABLE 0x18
#define GPIO_RTC_PIN_PULL_TYPE 0x1C
#define GPIO_RTC_INT_ENABLE 0x20
#define GPIO_RTC_INT_RAW_STATE 0x24
#define GPIO_RTC_INT_MASKED_STATE 0x28
#define GPIO_RTC_INT_MASK 0x2C
#define GPIO_RTC_INT_CLEAR 0x30
#define GPIO_RTC_INT_TRIGGER 0x34
#define GPIO_RTC_INT_BOTH 0x38
#define GPIO_RTC_INT_RISE_NEG 0x3C
#define GPIO_RTC_BOUNCE_ENABLE 0x40
#define GPIO_RTC_BOUNCE_PRE_SCALE 0x44
#define GPIO_RTC_PROTECT_W 0x8E
#define GPIO_RTC_PROTECT_R 0x8F
#define GPIO_RTC_YEAR_W 0x8C
#define GPIO_RTC_YEAR_R 0x8D
#define GPIO_RTC_DAY_W 0x8A
#define GPIO_RTC_DAY_R 0x8B
#define GPIO_RTC_MONTH_W 0x88
#define GPIO_RTC_MONTH_R 0x89
#define GPIO_RTC_DATE_W 0x86
#define GPIO_RTC_DATE_R 0x87
#define GPIO_RTC_HOURS_W 0x84
#define GPIO_RTC_HOURS_R 0x85
#define GPIO_RTC_MINUTES_W 0x82
#define GPIO_RTC_MINUTES_R 0x83
#define GPIO_RTC_SECONDS_W 0x80
#define GPIO_RTC_SECONDS_R 0x81
#define GPIO_RTC_DELAY_TIME 8
struct moxart_rtc {
struct rtc_device *rtc;
spinlock_t rtc_lock;
int gpio_data, gpio_sclk, gpio_reset;
};
static int day_of_year[12] = { 0, 31, 59, 90, 120, 151, 181,
212, 243, 273, 304, 334 };
static void moxart_rtc_write_byte(struct device *dev, u8 data)
{
struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev);
int i;
for (i = 0; i < 8; i++, data >>= 1) {
gpio_set_value(moxart_rtc->gpio_sclk, 0);
gpio_set_value(moxart_rtc->gpio_data, ((data & 1) == 1));
udelay(GPIO_RTC_DELAY_TIME);
gpio_set_value(moxart_rtc->gpio_sclk, 1);
udelay(GPIO_RTC_DELAY_TIME);
}
}
static u8 moxart_rtc_read_byte(struct device *dev)
{
struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev);
int i;
u8 data = 0;
for (i = 0; i < 8; i++) {
gpio_set_value(moxart_rtc->gpio_sclk, 0);
udelay(GPIO_RTC_DELAY_TIME);
gpio_set_value(moxart_rtc->gpio_sclk, 1);
udelay(GPIO_RTC_DELAY_TIME);
if (gpio_get_value(moxart_rtc->gpio_data))
data |= (1 << i);
udelay(GPIO_RTC_DELAY_TIME);
}
return data;
}
static u8 moxart_rtc_read_register(struct device *dev, u8 cmd)
{
struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev);
u8 data;
unsigned long flags;
local_irq_save(flags);
gpio_direction_output(moxart_rtc->gpio_data, 0);
gpio_set_value(moxart_rtc->gpio_reset, 1);
udelay(GPIO_RTC_DELAY_TIME);
moxart_rtc_write_byte(dev, cmd);
gpio_direction_input(moxart_rtc->gpio_data);
udelay(GPIO_RTC_DELAY_TIME);
data = moxart_rtc_read_byte(dev);
gpio_set_value(moxart_rtc->gpio_sclk, 0);
gpio_set_value(moxart_rtc->gpio_reset, 0);
udelay(GPIO_RTC_DELAY_TIME);
local_irq_restore(flags);
return data;
}
static void moxart_rtc_write_register(struct device *dev, u8 cmd, u8 data)
{
struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev);
unsigned long flags;
local_irq_save(flags);
gpio_direction_output(moxart_rtc->gpio_data, 0);
gpio_set_value(moxart_rtc->gpio_reset, 1);
udelay(GPIO_RTC_DELAY_TIME);
moxart_rtc_write_byte(dev, cmd);
moxart_rtc_write_byte(dev, data);
gpio_set_value(moxart_rtc->gpio_sclk, 0);
gpio_set_value(moxart_rtc->gpio_reset, 0);
udelay(GPIO_RTC_DELAY_TIME);
local_irq_restore(flags);
}
static int moxart_rtc_set_time(struct device *dev, struct rtc_time *tm)
{
struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev);
spin_lock_irq(&moxart_rtc->rtc_lock);
moxart_rtc_write_register(dev, GPIO_RTC_PROTECT_W, 0);
moxart_rtc_write_register(dev, GPIO_RTC_YEAR_W,
(((tm->tm_year - 100) / 10) << 4) |
((tm->tm_year - 100) % 10));
moxart_rtc_write_register(dev, GPIO_RTC_MONTH_W,
(((tm->tm_mon + 1) / 10) << 4) |
((tm->tm_mon + 1) % 10));
moxart_rtc_write_register(dev, GPIO_RTC_DATE_W,
((tm->tm_mday / 10) << 4) |
(tm->tm_mday % 10));
moxart_rtc_write_register(dev, GPIO_RTC_HOURS_W,
((tm->tm_hour / 10) << 4) |
(tm->tm_hour % 10));
moxart_rtc_write_register(dev, GPIO_RTC_MINUTES_W,
((tm->tm_min / 10) << 4) |
(tm->tm_min % 10));
moxart_rtc_write_register(dev, GPIO_RTC_SECONDS_W,
((tm->tm_sec / 10) << 4) |
(tm->tm_sec % 10));
moxart_rtc_write_register(dev, GPIO_RTC_PROTECT_W, 0x80);
spin_unlock_irq(&moxart_rtc->rtc_lock);
dev_dbg(dev, "%s: success tm_year=%d tm_mon=%d\n"
"tm_mday=%d tm_hour=%d tm_min=%d tm_sec=%d\n",
__func__, tm->tm_year, tm->tm_mon, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
return 0;
}
static int moxart_rtc_read_time(struct device *dev, struct rtc_time *tm)
{
struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev);
unsigned char v;
spin_lock_irq(&moxart_rtc->rtc_lock);
v = moxart_rtc_read_register(dev, GPIO_RTC_SECONDS_R);
tm->tm_sec = (((v & 0x70) >> 4) * 10) + (v & 0x0F);
v = moxart_rtc_read_register(dev, GPIO_RTC_MINUTES_R);
tm->tm_min = (((v & 0x70) >> 4) * 10) + (v & 0x0F);
v = moxart_rtc_read_register(dev, GPIO_RTC_HOURS_R);
if (v & 0x80) { /* 12-hour mode */
tm->tm_hour = (((v & 0x10) >> 4) * 10) + (v & 0x0F);
if (v & 0x20) { /* PM mode */
tm->tm_hour += 12;
if (tm->tm_hour >= 24)
tm->tm_hour = 0;
}
} else { /* 24-hour mode */
tm->tm_hour = (((v & 0x30) >> 4) * 10) + (v & 0x0F);
}
v = moxart_rtc_read_register(dev, GPIO_RTC_DATE_R);
tm->tm_mday = (((v & 0x30) >> 4) * 10) + (v & 0x0F);
v = moxart_rtc_read_register(dev, GPIO_RTC_MONTH_R);
tm->tm_mon = (((v & 0x10) >> 4) * 10) + (v & 0x0F);
tm->tm_mon--;
v = moxart_rtc_read_register(dev, GPIO_RTC_YEAR_R);
tm->tm_year = (((v & 0xF0) >> 4) * 10) + (v & 0x0F);
tm->tm_year += 100;
if (tm->tm_year <= 69)
tm->tm_year += 100;
v = moxart_rtc_read_register(dev, GPIO_RTC_DAY_R);
tm->tm_wday = (v & 0x0f) - 1;
tm->tm_yday = day_of_year[tm->tm_mon];
tm->tm_yday += (tm->tm_mday - 1);
if (tm->tm_mon >= 2) {
if (!(tm->tm_year % 4) && (tm->tm_year % 100))
tm->tm_yday++;
}
tm->tm_isdst = 0;
spin_unlock_irq(&moxart_rtc->rtc_lock);
return 0;
}
static const struct rtc_class_ops moxart_rtc_ops = {
.read_time = moxart_rtc_read_time,
.set_time = moxart_rtc_set_time,
};
static int moxart_rtc_probe(struct platform_device *pdev)
{
struct moxart_rtc *moxart_rtc;
int ret = 0;
moxart_rtc = devm_kzalloc(&pdev->dev, sizeof(*moxart_rtc), GFP_KERNEL);
if (!moxart_rtc)
return -ENOMEM;
moxart_rtc->gpio_data = of_get_named_gpio(pdev->dev.of_node,
"gpio-rtc-data", 0);
if (!gpio_is_valid(moxart_rtc->gpio_data)) {
dev_err(&pdev->dev, "invalid gpio (data): %d\n",
moxart_rtc->gpio_data);
return moxart_rtc->gpio_data;
}
moxart_rtc->gpio_sclk = of_get_named_gpio(pdev->dev.of_node,
"gpio-rtc-sclk", 0);
if (!gpio_is_valid(moxart_rtc->gpio_sclk)) {
dev_err(&pdev->dev, "invalid gpio (sclk): %d\n",
moxart_rtc->gpio_sclk);
return moxart_rtc->gpio_sclk;
}
moxart_rtc->gpio_reset = of_get_named_gpio(pdev->dev.of_node,
"gpio-rtc-reset", 0);
if (!gpio_is_valid(moxart_rtc->gpio_reset)) {
dev_err(&pdev->dev, "invalid gpio (reset): %d\n",
moxart_rtc->gpio_reset);
return moxart_rtc->gpio_reset;
}
spin_lock_init(&moxart_rtc->rtc_lock);
platform_set_drvdata(pdev, moxart_rtc);
ret = devm_gpio_request(&pdev->dev, moxart_rtc->gpio_data, "rtc_data");
if (ret) {
dev_err(&pdev->dev, "can't get rtc_data gpio\n");
return ret;
}
ret = devm_gpio_request_one(&pdev->dev, moxart_rtc->gpio_sclk,
GPIOF_DIR_OUT, "rtc_sclk");
if (ret) {
dev_err(&pdev->dev, "can't get rtc_sclk gpio\n");
return ret;
}
ret = devm_gpio_request_one(&pdev->dev, moxart_rtc->gpio_reset,
GPIOF_DIR_OUT, "rtc_reset");
if (ret) {
dev_err(&pdev->dev, "can't get rtc_reset gpio\n");
return ret;
}
moxart_rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name,
&moxart_rtc_ops,
THIS_MODULE);
if (IS_ERR(moxart_rtc->rtc)) {
dev_err(&pdev->dev, "devm_rtc_device_register failed\n");
return PTR_ERR(moxart_rtc->rtc);
}
return 0;
}
static const struct of_device_id moxart_rtc_match[] = {
{ .compatible = "moxa,moxart-rtc" },
{ },
};
MODULE_DEVICE_TABLE(of, moxart_rtc_match);
static struct platform_driver moxart_rtc_driver = {
.probe = moxart_rtc_probe,
.driver = {
.name = "moxart-rtc",
.of_match_table = moxart_rtc_match,
},
};
module_platform_driver(moxart_rtc_driver);
MODULE_DESCRIPTION("MOXART RTC driver");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Jonas Jensen <jonas.jensen@gmail.com>");
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>15C50</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>GenericUSBXHCI</string>
<key>CFBundleIdentifier</key>
<string>net.osx86.kexts.GenericUSBXHCI</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>GenericUSBXHCI</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.2.11</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.2.11</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7C68</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>12D75</string>
<key>DTSDKName</key>
<string>macosx10.8</string>
<key>DTXcode</key>
<string>0720</string>
<key>DTXcodeBuild</key>
<string>7C68</string>
<key>IOKitPersonalities</key>
<dict>
<key>GenericUSBXHCI</key>
<dict>
<key>#IOPCIPrimaryMatch</key>
<string>0x01941033</string>
<key>ASMediaEDLTAFix</key>
<true/>
<key>CFBundleIdentifier</key>
<string>net.osx86.kexts.GenericUSBXHCI</string>
<key>DeviceBlacklist</key>
<dict>
<key>1b73</key>
<integer>0</integer>
<key>8086</key>
<integer>0</integer>
</dict>
<key>DeviceWhitelist</key>
<dict>
<key>1b73_1000</key>
<integer>0</integer>
</dict>
<key>IOClass</key>
<string>GenericUSBXHCI</string>
<key>IOPCIClassMatch</key>
<string>0x0c033000</string>
<key>IOPCIPauseCompatible</key>
<true/>
<key>IOPCITunnelCompatible</key>
<true/>
<key>IOProbeScore</key>
<integer>1</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
<key>IOUserClientClass</key>
<string>IOUSBControllerUserClient</string>
<key>IntelDoze</key>
<false/>
<key>RM,Build</key>
<string>Universal-RehabMan</string>
<key>RM,Version</key>
<string>GenericUSBXHCI 1.2.11</string>
</dict>
</dict>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2012-2014 Zenith432. All rights reserved.</string>
<key>OSBundleCompatibleVersion</key>
<string>1.0.0</string>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOPCIFamily</key>
<string>2.6</string>
<key>com.apple.iokit.IOUSBFamily</key>
<string>5.0.0a1</string>
<key>com.apple.kpi.iokit</key>
<string>10.6</string>
<key>com.apple.kpi.libkern</key>
<string>10.6</string>
<key>com.apple.kpi.mach</key>
<string>10.6</string>
<key>com.apple.kpi.unsupported</key>
<string>10.6</string>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
<div class="apiDetail">
<div>
<h2><span>Function(treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>beforeClick</h2>
<h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
<div class="desc">
<p></p>
<div class="longdesc">
<p>Used to capture the event before click node, zTree based on return value to determine whether to trigger the 'onClick' callback.</p>
<p>Default: null</p>
</div>
</div>
<h3>Function Parameter Descriptions</h3>
<div class="desc">
<h4><b>treeId</b><span>String</span></h4>
<p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
<h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
<p>JSON data object of the node which is clicked</p>
<h4 class="topLine"><b>clickFlag</b><span>Number</span></h4>
<p>Node is selected or deselected state, please see table below for details</p>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<thead><tr><td>clickFlag</td><td title="Whether to allow multi-select">selectedMulti</td><td title="Whether to press Ctrl-key">autoCancelSelected<br/>&&<br/>event.ctrlKey</td><td title="Node's selection state">isSelected</td><td>operate for selected</td></tr></thead>
<tbody>
<tr><td>1</td><td>true</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
<tr><td>1</td><td>true</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
<tr><td>2</td><td>true</td><td>true</td><td>false</td><td>node is selected (multi)</td></tr>
<tr><td>0</td><td>true</td><td>true</td><td>true</td><td>node is deselected</td></tr>
<tr><td>1</td><td>false</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
<tr><td>1</td><td>false</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
<tr><td>1</td><td>false</td><td>true</td><td>false</td><td>node is selected (single)</td></tr>
<tr><td>0</td><td>false</td><td>true</td><td>true</td><td>node is deselected</td></tr>
</tbody>
</table>
<h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
<p>return true or false</p>
<p class="highlight_red">If return false, zTree will not change selected state, and will not trigger the 'onClick' callback.</p>
</div>
<h3>Examples of setting & function</h3>
<h4>1. disabled to click the node</h4>
<pre xmlns=""><code>function zTreeBeforeClick(treeId, treeNode, clickFlag) {
return (treeNode.id !== 1);
};
var setting = {
callback: {
beforeClick: zTreeBeforeClick
}
};
......</code></pre>
</div>
</div>
|
{
"pile_set_name": "Github"
}
|
<?php
function echoln($str) {
echo $str;
echo "\n";
}
function usage($reason) {
echoln("Usage: php build-nix.php [flags]");
echoln("Flags in parantheses are optional");
echoln("");
echoln(" --bits=[32,64]");
echoln(" --function=[curve25519,ed25519]");
echoln(" (--compiler=[*gcc,clang,icc]) which compiler to use, gcc is default");
echoln(" (--with-openssl) use openssl for SHA512");
echoln(" (--with-sse2) additionally fuzz against SSE2");
echoln(" (--no-asm) don't use platform specific asm");
echoln("");
if ($reason)
echoln($reason);
}
function cleanup() {
system("rm -f *.o");
}
function runcmd($desc, $cmd) {
echoln($desc);
$ret = 0;
system($cmd, $ret);
if ($ret) {
cleanup();
exit;
}
}
class argument {
var $set, $value;
}
class multiargument extends argument {
function multiargument($flag, $legal_values) {
global $argc, $argv;
$this->set = false;
$map = array();
foreach($legal_values as $value)
$map[$value] = true;
for ($i = 1; $i < $argc; $i++) {
if (!preg_match("!--".$flag."=(.*)!", $argv[$i], $m))
continue;
if (isset($map[$m[1]])) {
$this->value = $m[1];
$this->set = true;
return;
} else {
usage("{$m[1]} is not a valid parameter to --{$flag}!");
exit(1);
}
}
}
}
class flag extends argument {
function flag($flag) {
global $argc, $argv;
$this->set = false;
$flag = "--{$flag}";
for ($i = 1; $i < $argc; $i++) {
if ($argv[$i] !== $flag)
continue;
$this->value = true;
$this->set = true;
return;
}
}
}
$bits = new multiargument("bits", array("32", "64"));
$function = new multiargument("function", array("curve25519", "ed25519"));
$compiler = new multiargument("compiler", array("gcc", "clang", "icc"));
$with_sse2 = new flag("with-sse2");
$with_openssl = new flag("with-openssl");
$no_asm = new flag("no-asm");
$err = "";
if (!$bits->set)
$err .= "--bits not set\n";
if (!$function->set)
$err .= "--function not set\n";
if ($err !== "") {
usage($err);
exit;
}
$compile = ($compiler->set) ? $compiler->value : "gcc";
$link = "";
$flags = "-O3 -m{$bits->value}";
$ret = 0;
if ($with_openssl->set) $link .= " -lssl -lcrypto";
if (!$with_openssl->set) $flags .= " -DED25519_REFHASH -DED25519_TEST";
if ($no_asm->set) $flags .= " -DED25519_NO_INLINE_ASM";
if ($function->value === "curve25519") {
runcmd("building ref10..", "{$compile} {$flags} curve25519-ref10.c -c -o curve25519-ref10.o");
runcmd("building ed25519..", "{$compile} {$flags} ed25519-donna.c -c -o ed25519.o");
if ($with_sse2->set) {
runcmd("building ed25519-sse2..", "{$compile} {$flags} ed25519-donna-sse2.c -c -o ed25519-sse2.o -msse2");
$flags .= " -DED25519_SSE2";
$link .= " ed25519-sse2.o";
}
runcmd("linking..", "{$compile} {$flags} {$link} fuzz-curve25519.c ed25519.o curve25519-ref10.o -o fuzz-curve25519");
echoln("fuzz-curve25519 built.");
} else if ($function->value === "ed25519") {
runcmd("building ref10..", "{$compile} {$flags} ed25519-ref10.c -c -o ed25519-ref10.o");
runcmd("building ed25519..", "{$compile} {$flags} ed25519-donna.c -c -o ed25519.o");
if ($with_sse2->set) {
runcmd("building ed25519-sse2..", "{$compile} {$flags} ed25519-donna-sse2.c -c -o ed25519-sse2.o -msse2");
$flags .= " -DED25519_SSE2";
$link .= " ed25519-sse2.o";
}
runcmd("linking..", "{$compile} {$flags} {$link} fuzz-ed25519.c ed25519.o ed25519-ref10.o -o fuzz-ed25519");
echoln("fuzz-ed25519 built.");
}
cleanup();
?>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" ?>
<annotation>
<folder>widerface</folder>
<filename>42--Car_Racing_42_Car_Racing_Car_Racing_42_562.jpg</filename>
<source>
<database>wider face Database</database>
<annotation>PASCAL VOC2007</annotation>
<image>flickr</image>
<flickrid>-1</flickrid>
</source>
<owner>
<flickrid>yanyu</flickrid>
<name>yanyu</name>
</owner>
<size>
<width>1024</width>
<height>663</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>84</xmin>
<ymin>58</ymin>
<xmax>103</xmax>
<ymax>81</ymax>
</bndbox>
<lm>
<x1>89.786</x1>
<y1>70.143</y1>
<x2>97.643</x2>
<y2>67.714</y2>
<x3>95.357</x3>
<y3>73.571</y3>
<x4>94.214</x4>
<y4>78.143</y4>
<x5>98.929</x5>
<y5>75.857</y5>
<visible>1</visible>
<blur>0.4</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>175</xmin>
<ymin>44</ymin>
<xmax>185</xmax>
<ymax>59</ymax>
</bndbox>
<has_lm>0</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>206</xmin>
<ymin>47</ymin>
<xmax>216</xmax>
<ymax>61</ymax>
</bndbox>
<has_lm>0</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>267</xmin>
<ymin>43</ymin>
<xmax>281</xmax>
<ymax>64</ymax>
</bndbox>
<lm>
<x1>279.089</x1>
<y1>52.598</y1>
<x2>281.5</x2>
<y2>52.464</y2>
<x3>283.777</x3>
<y3>57.42</y3>
<x4>278.152</x4>
<y4>60.5</y4>
<x5>279.491</x5>
<y5>60.232</y5>
<visible>1</visible>
<blur>0.34</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>424</xmin>
<ymin>39</ymin>
<xmax>436</xmax>
<ymax>63</ymax>
</bndbox>
<lm>
<x1>433.594</x1>
<y1>49.406</y1>
<x2>432.812</x2>
<y2>49.406</y2>
<x3>434.531</x3>
<y3>54.719</y3>
<x4>431.875</x4>
<y4>57.531</y4>
<x5>430.781</x5>
<y5>57.219</y5>
<visible>1</visible>
<blur>0.28</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>439</xmin>
<ymin>40</ymin>
<xmax>454</xmax>
<ymax>63</ymax>
</bndbox>
<lm>
<x1>439.518</x1>
<y1>50.911</y1>
<x2>441.58</x2>
<y2>51.5</y2>
<x3>436.424</x3>
<y3>55.772</y3>
<x4>438.192</x4>
<y4>59.161</y4>
<x5>440.696</x5>
<y5>59.75</y5>
<visible>0</visible>
<blur>0.32</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>496</xmin>
<ymin>36</ymin>
<xmax>508</xmax>
<ymax>53</ymax>
</bndbox>
<has_lm>0</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>533</xmin>
<ymin>49</ymin>
<xmax>546</xmax>
<ymax>67</ymax>
</bndbox>
<has_lm>0</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>605</xmin>
<ymin>43</ymin>
<xmax>616</xmax>
<ymax>57</ymax>
</bndbox>
<has_lm>0</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>651</xmin>
<ymin>40</ymin>
<xmax>665</xmax>
<ymax>64</ymax>
</bndbox>
<has_lm>0</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>849</xmin>
<ymin>51</ymin>
<xmax>859</xmax>
<ymax>65</ymax>
</bndbox>
<has_lm>0</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>981</xmin>
<ymin>19</ymin>
<xmax>1002</xmax>
<ymax>61</ymax>
</bndbox>
<lm>
<x1>996.089</x1>
<y1>39.464</y1>
<x2>1000.911</x2>
<y2>37.857</y2>
<x3>1001.446</x3>
<y3>45.357</y3>
<x4>994.75</x4>
<y4>49.911</y4>
<x5>998.5</x5>
<y5>49.375</y5>
<visible>1</visible>
<blur>0.38</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>890</xmin>
<ymin>99</ymin>
<xmax>905</xmax>
<ymax>114</ymax>
</bndbox>
<lm>
<x1>892.679</x1>
<y1>100.991</y1>
<x2>898.179</x2>
<y2>100.991</y2>
<x3>895.134</x3>
<y3>103.741</y3>
<x4>893.562</x4>
<y4>107.866</y4>
<x5>897.884</x5>
<y5>107.866</y5>
<visible>1</visible>
<blur>0.23</blur>
</lm>
<has_lm>1</has_lm>
</object>
</annotation>
|
{
"pile_set_name": "Github"
}
|
<HTML>
<HEAD>
<META Name="Generator" Content="Lotus Word Pro"></META>
<TITLE>RFP-0005 Services Framework Remote Administration (1999-09-17)</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<CENTER>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="719">
<TR>
<TD WIDTH="29%" ALIGN="LEFT" VALIGN="MIDDLE"> </TD>
<TD WIDTH="43%" ALIGN="LEFT" VALIGN="MIDDLE"> </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> </TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="MIDDLE">Java Expert Group </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE">Carter/Grimm </TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="MIDDLE">Request for Proposal: 0005 </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE">IBM Corporation </TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="MIDDLE">Expires 20 days after: 17-Sep-1999 </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE">1999-09-17 </TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="MIDDLE">rfc-0005.html </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> </TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> </TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> </TD></TR>
</TABLE></CENTER>
<H2 ALIGN="CENTER">Services Framework Remote Administration RFP</H2>
<H3>Status of this Memo </H3>
<P>This document suggests the following extension to the OSGi specification for the Open Services Gateway Initiative, and requests discussion. Distribution of this document is unlimited.
<P>
<H3>Abstract </H3>
<P>A key aspect of the Open Services Gateway Initiative Services Framework[1] is the ability to administrate the framework under the control of a remote managing system. This RFP provides some general goals and guidelines and solicits technical submissions that will lead to defining an administration capability and API for the Services Framework.
<P>
<H3>Acknowledgment </H3>
<P>The author wants to acknowledge the contributions of the members of the Connected Alliance and OSGi.
<P>
<H3>Introduction </H3>
<P>The Remote Administration API enables a managing system to remotely manage and configure the bundles and services on a target device.
<P>
<H3>Motivation and Rational </H3>
<P>The primary goal of the Remote Administration API is to remotely manage and configure bundles and services on a target device. The Remote Administration API should meet this goal as follows. First, it should provide a consistent application programming interface (API) to use during development of device management applications. Second, it should provide the flexibility for implementors to "plug-in" different device management protocols below the Remote Administration API.
<P>
<P>Another goal of the Remote Administration API is to enable implementors to deploy implementations in a variety of devices; the different hardware characteristics of the devices affect the amount of code that can run on these devices. Therefore, the Remote Administration API should require a minimum of components on the managed device; however, an implementor has the flexibility to utilize additional components in devices that can accommodate these components.
<P>
<H3>Technical Discussion </H3>
<P>Administration of the Services Framework must provide, at a minimum, the following capabilities and features:
<P>
<UL TYPE="disc">
<LI>Remotely administer the Services Framework
<LI>Remotely configure services on a managed device.
<LI>Minimize the software requirements for a managed device.
<ul>
<LI>The framework should only require the Java profile[2] for the Services Framework.
<LI>Enable services to share common configuration properties.
</ul>
<LI>Scalable for mass deployment and configuration.
<ul>
<LI>Services must be remotely configurable without a user interface.
<LI>Services may be remotely configurable with a user interface.
<LI>Enables configuration of services when the Services Framework on the target device is down or unavailable.
<LI>Enables an administrator to configure properties en masse for groups of devices.
<LI>Does not require downloading of communication classes from every managed device.
</ul>
<LI>Upward compatible.
<ul>
<LI>De-couples the configuration state from services.
<LI>Does not require serialization because a serialized object might not be compatible with all current or future JVM's.
</ul>
<LI>Protocol neutral.
</UL>
<P>
<H3>Security Considerations </H3>
<P>As a request for specification proposals, this document has no direct security considerations. However, the resulting Administration capability and API should undergo a security review before approval of the API.
<P>
<H3>References </H3>
<P>[1] Jim Mathis, "Services Framework RFP", OSGi RFP-0001, 1999-09-16, rfp-0001.html
<P>[2] Jim Mathis, "Services Framework J2ME Profile RFP", OSGi RFP-0006, 1999-09-17, rfp-0006.html
<P>[3] Keith Carter/Jon Grimm, "Services Framework Configuration RFP", OSGi RFP-0007, 1999-09-17, rfp-0007.html
<H3>Author's Address </H3>
<H3></H3>
<TABLE CELLSPACING="0" CELLPADDING="5" WIDTH="636">
<TR>
<TD WIDTH="231" ALIGN="LEFT" VALIGN="TOP">First Name:</TD>
<TD WIDTH="179" ALIGN="LEFT" VALIGN="TOP">Keith</TD>
<TD WIDTH="182" ALIGN="LEFT" VALIGN="TOP">Jon</TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">Last Name: </TD>
<TD ALIGN="LEFT" VALIGN="TOP">Carter</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Grimm</TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">Company Name: </TD>
<TD ALIGN="LEFT" VALIGN="TOP">IBM Corporation</TD>
<TD ALIGN="LEFT" VALIGN="TOP">IBM Corporation</TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">Company Division: </TD>
<TD ALIGN="LEFT" VALIGN="TOP">Pervasive Computing</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Pervasive Computing</TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">Street Address: </TD>
<TD ALIGN="LEFT" VALIGN="TOP">11400 Burnet Road</TD>
<TD ALIGN="LEFT" VALIGN="TOP">11400 Burnet Road</TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">City, State, Country, Postal Code: </TD>
<TD ALIGN="LEFT" VALIGN="TOP">Austin, TX USA 78758</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Austin, TX USA 78758</TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">voice: </TD>
<TD ALIGN="LEFT" VALIGN="TOP">+1 512 838 2155</TD>
<TD ALIGN="LEFT" VALIGN="TOP">+1 512 838 9203</TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">fax: </TD>
<TD ALIGN="LEFT" VALIGN="TOP">+1 512 838 0169</TD>
<TD ALIGN="LEFT" VALIGN="TOP">+1 512 838 0169</TD></TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">e-mail:</TD>
<TD ALIGN="LEFT" VALIGN="TOP"><A HREF="mailto:carterk@us.ibm.com" TARGET="_top">carterk@us.ibm.com</A></TD>
<TD ALIGN="LEFT" VALIGN="TOP"><A HREF="mailto:jgrimm@us.ibm.com" TARGET="_top">jgrimm@us.ibm.com</A></TD></TR>
</TABLE>
<H3></H3>
<H3>Full Copyright Statement </H3>
<P>Copyright (C) The Open Services Gateway Initiative (1999).
<P>All Rights Reserved.
<P>This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Open Services Gateway Initiative.
<P>The limited permissions granted above are perpetual and will not be revoked by the Open Services Gateway Initiative or its successors or assigns.
<P>This document and the information contained herein is provided on an "AS IS" basis and THE OPEN SERVICES GATEWAY INITIATIVE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
<HR>
<P>Expires 20 days after: 1999-09-17
</BODY>
</HTML>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE pov SYSTEM "/usr/share/cgc-docs/replay.dtd">
<pov>
<cbid>service</cbid>
<replay>
<read><delim>\x0a</delim><match><data>2D Particle Simulator\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter the number of particles to simulate \x281-10\x29:\x0a</data></match></read>
<write><data>2\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>118.44362,164.92991\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>8.58466,5.44071\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>1.12171\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>8.12645\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #1 added at (118.44362,164.92991) velocity(8.58466,5.44071) mass(1.12171) radius(8.12645).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>176.34315,122.04550\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>4.94155,2.62676\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>8.96948\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>5.49416\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #2 added at (176.34315,122.04550) velocity(4.94155,2.62676) mass(8.96948) radius(5.49416).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Running simulation with...\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (118.44000,164.92000) Velocity (8.58000,5.44000) mass (1.12000) radius (8.12000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (176.34000,122.04000) Velocity (4.94000,2.62000) mass (8.96000) radius (5.49000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00010000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000010000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Simulation complete, 0 collisions simulated over 10 seconds in 20 frames.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (179.52000,164.44000) Velocity (-8.58000,-5.44000) mass (1.12000) radius (8.12000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (163.28000,148.24000) Velocity (-4.94000,2.62000) mass (8.96000) radius (5.49000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000010000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000010000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Goodbye\x0a</data></match></read>
</replay>
</pov>
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
<!-- Generated by Natural Docs, version 1.4 -->
<!-- http://www.naturaldocs.org -->
<!-- saved from url=(0026)http://www.naturaldocs.org -->
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_doTimeout><div class=IEntry><a href="javascript:searchResults.Toggle('SR_doTimeout')" class=ISymbol>doTimeout</a><div class=ISubIndex><a href="../files/jquery-ba-dotimeout-js.html#jQuery.doTimeout" target=_parent class=IParent>jQuery</a><a href="../files/jquery-ba-dotimeout-js.html#jQuery.fn.doTimeout" target=_parent class=IParent>jQuery.fn</a></div></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults", "HTML");
searchResults.Search();
--></script></div><script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE pov SYSTEM "/usr/share/cgc-docs/replay.dtd">
<pov>
<cbid>service</cbid>
<replay>
<read><delim>\x0a</delim><match><data>2D Particle Simulator\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter the number of particles to simulate \x281-10\x29:\x0a</data></match></read>
<write><data>7\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>142.47844,147.79457\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>6.39830,2.53435\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>9.24709\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>7.69542\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #1 added at (142.47844,147.79457) velocity(6.39830,2.53435) mass(9.24709) radius(7.69542).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>182.81712,156.35992\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>4.59027,6.04791\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>2.66891\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>9.13544\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #2 added at (182.81712,156.35992) velocity(4.59027,6.04791) mass(2.66891) radius(9.13544).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>126.25185,178.98832\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>2.53624,9.06022\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>5.42355\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>5.17643\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #3 added at (126.25185,178.98832) velocity(2.53624,9.06022) mass(5.42355) radius(5.17643).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>114.70696,114.51504\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>5.26795,1.68195\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>4.84802\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>4.22168\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #4 added at (114.70696,114.51504) velocity(5.26795,1.68195) mass(4.84802) radius(4.22168).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>124.29245,178.70726\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>5.87483,4.53882\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>6.15700\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>2.40483\x0a</data></write>
<read><delim>\x0a</delim><match><data>Invalid simulation data. Try again.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>215.50388,378.83296\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>-39.92860,3.83324\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>3.39576\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>42.88852\x0a</data></write>
<read><delim>\x0a</delim><match><data>Invalid simulation data. Try again.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>141.45221,131.76098\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>3.78024,8.77005\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>8.22847\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>5.23381\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #5 added at (141.45221,131.76098) velocity(3.78024,8.77005) mass(8.22847) radius(5.23381).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>147.93474,163.46782\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>2.28288,1.08926\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>2.74931\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>4.86758\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #6 added at (147.93474,163.46782) velocity(2.28288,1.08926) mass(2.74931) radius(4.86758).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>130.41148,194.00588\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>4.54991,7.05334\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>7.87265\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>3.01499\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #7 added at (130.41148,194.00588) velocity(4.54991,7.05334) mass(7.87265) radius(3.01499).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Running simulation with...\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>7 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (142.47000,147.79000) Velocity (6.39000,2.53000) mass (9.24000) radius (7.69000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (182.81000,156.35000) Velocity (4.59000,6.04000) mass (2.66000) radius (9.13000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2: Position (126.25000,178.98000) Velocity (2.53000,9.06000) mass (5.42000) radius (5.17000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>3: Position (114.70000,114.51000) Velocity (5.26000,1.68000) mass (4.84000) radius (4.22000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>4: Position (141.45000,131.76000) Velocity (3.78000,8.77000) mass (8.22000) radius (5.23000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>5: Position (147.93000,163.46000) Velocity (2.28000,1.08000) mass (2.74000) radius (4.86000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>6: Position (130.41000,194.00000) Velocity (4.54000,7.05000) mass (7.87000) radius (3.01000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000010000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000100000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000010000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000001000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000100000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000100000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00100000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Simulation complete, 11 collisions simulated over 10 seconds in 40 frames.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>7 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (180.20399,161.41686) Velocity (-3.45820,-2.11473) mass (9.24000) radius (7.69000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (158.18224,174.25861) Velocity (-9.08854,-2.26096) mass (2.66000) radius (9.13000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2: Position (129.50571,176.12535) Velocity (5.29562,-2.85785) mass (5.42000) radius (5.17000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>3: Position (167.30000,131.31000) Velocity (5.26000,1.68000) mass (4.84000) radius (4.22000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>4: Position (159.50334,158.92350) Velocity (-0.23096,-0.29466) mass (8.22000) radius (5.23000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>5: Position (140.62969,108.30500) Velocity (18.25786,-13.46586) mass (2.74000) radius (4.86000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>6: Position (187.12903,192.13928) Velocity (6.75514,2.18828) mass (7.87000) radius (3.01000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000100\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000100000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000100000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000001000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000100000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000001000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000100000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Goodbye\x0a</data></match></read>
</replay>
</pov>
|
{
"pile_set_name": "Github"
}
|
<annotation>
<folder>widerface</folder>
<filename>33--Running_33_Running_Running_33_183.jpg</filename>
<source>
<database>wider face Database</database>
<annotation>PASCAL VOC2007</annotation>
<image>flickr</image>
<flickrid>-1</flickrid>
</source>
<owner>
<flickrid>yanyu</flickrid>
<name>yanyu</name>
</owner>
<size>
<width>1024</width>
<height>683</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>274</xmin>
<ymin>192</ymin>
<xmax>305</xmax>
<ymax>233</ymax>
</bndbox>
<lm>
<x1>281.491</x1>
<y1>210.446</y1>
<x2>294.696</x2>
<y2>209.67</y2>
<x3>287.705</x3>
<y3>216.143</y3>
<x4>284.08</x4>
<y4>224.17</y4>
<x5>294.438</x5>
<y5>223.393</y5>
<visible>1</visible>
<blur>0.63</blur>
</lm>
<has_lm>1</has_lm>
</object>
</annotation>
|
{
"pile_set_name": "Github"
}
|
# CrapApi部署帮助文档
----------------[下载编译好的压缩包部署]
每个文档版本都会提供对应版本的编译好的压缩包,解压下载部署到tomcat下即可,部署方式请自行度娘!
压缩文件下载地址:http://api.crap.cn/index.do#/web/article/detail/web/ARTICLE/a00534f1-7e50-45e2-9e72-fc9ede829dec
压缩包中一般均会包含对应版本的sql脚本,直接执行该脚本即可,不需要再执行任何其他sql脚本!!!
Sql执行可能会报错!!!原因:本人使用workbench工具导出脚本,使用其他工具导入时可能会提示报错,请根据报错原因,自行修复!!!
(注:99.99999%的报错都是由于工具自行添加了注释之类的脚本,删除不识别的脚本后即可,至于那些是工具添加的,那些事有用的脚本,请自行补休sql知识)
----------------[使用源代码部署]
GitHub、码云的主干地址均为最新版本的源码,并包含了新的全部sql脚本。下载后导入至eclipse等开发工具(maven项目),然后编译即可。
如果出现报错,绝大多数情况是你的网络有问题,maven依赖jar包下载失败导致,请前往 https://pan.baidu.com/s/1nvdMuoD 下载作者为你准备好的mave仓库,
下载解压至你的本地仓库即可,maven仓库等知识请自行学习!!!
|
{
"pile_set_name": "Github"
}
|
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sSearch" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/objects.txt",
"aoColumns": [
{ "mData": "engine" },
{ "mData": "browser" },
{ "mData": "platform" },
{ "mData": "version" },
{ "mData": "grade" }
]
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"Search language is 'Search:' by default",
null,
function () { return oSettings.oLanguage.sSearch == "Search:"; }
);
oTest.fnTest(
"A label input is used",
null,
function () { return $('label', oSettings.aanFeatures.f[0]).length == 1 }
);
oTest.fnTest(
"Search language default is in the DOM",
null,
function () { return $('label', oSettings.aanFeatures.f[0]).text()
== "Search: "; }
);
oTest.fnWaitTest(
"Search language can be defined",
function () {
oSession.fnRestore();
oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/objects.txt",
"aoColumnDefs": [
{ "mData": "engine", "aTargets": [0] },
{ "mData": "browser", "aTargets": [1] },
{ "mData": "platform", "aTargets": [2] },
{ "mData": "version", "aTargets": [3] },
{ "mData": "grade", "aTargets": [4] }
],
"oLanguage": {
"sSearch": "unit test"
}
} );
oSettings = oTable.fnSettings();
},
function () { return oSettings.oLanguage.sSearch == "unit test"; }
);
oTest.fnTest(
"Info language definition is in the DOM",
null,
function () { return $('label', oSettings.aanFeatures.f[0]).text().indexOf('unit test') !== -1; }
);
oTest.fnWaitTest(
"Blank search has a no space (separator) inserted",
function () {
oSession.fnRestore();
oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/objects.txt",
"aoColumnDefs": [
{ "mData": "engine", "aTargets": [0] },
{ "mData": "browser", "aTargets": [1] },
{ "mData": "platform", "aTargets": [2] },
{ "mData": "version", "aTargets": [3] },
{ "mData": "grade", "aTargets": [4] }
],
"oLanguage": {
"sSearch": ""
}
} );
oSettings = oTable.fnSettings();
},
function () { return document.getElementById('example_filter').childNodes.length == 1; }
);
oTest.fnComplete();
} );
|
{
"pile_set_name": "Github"
}
|
PaddleX GUI
=======================================
PaddleX GUI是基于PaddleX实现的可视化开发客户端。开发者以点选、键入的方式快速体验深度学习模型开发的全流程。不仅可以作为您提升深度学习模型开发效率的工具,更可以作为您们应用PaddleX API搭建专属的行业软件/应用的示例参照。
PaddleX GUI 当前提供Windows,Mac,Ubuntu三种版本一键绿色安装的方式。请至飞桨官网:https://www.paddlepaddle.org.cn/paddle/paddleX 下载您需要的版本。
功能简介
---------------------------------------
PaddleX GUI是PaddleX API的衍生品,它在集成API功能的基础上,额外提供了可视化分析、评估等附加功能,致力于为开发者带来极致顺畅的开发体验。其拥有以下独特的功能:
全流程打通
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
PaddleX GUI覆盖深度学习模型开发必经的 **数据处理** 、 **超参配置** 、 **模型训练及优化** 、 **模型发布** 全流程,无需开发一行代码,即可得到高性深度学习推理模型。
数据集智能分析
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
详细的数据结构说明,并提供 **数据标签自动校验** 。支持 **可视化数据预览** 、 **数据分布图表展示** 、 **一键数据集切分** 等实用功能
自动超参推荐
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
集成飞桨团队长时间产业实践经验,根据用户选择的模型类别、骨架网络等,提供多种针对性优化的 **预训练模型** ,并 **提供推荐超参配置** ,可 **一键开启多种优化策略**
可视化模型评估
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
集成 **可视化分析工具:VisualDL** , 以线性图表的形式展示acc、lr等关键参数在训练过程中的变化趋势。提供 **混淆矩阵** 等实用方法,帮助快速定位问题,加速调参。模型评估报告一键导出,方便项目复盘分析。
模型裁剪及量化
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
一键启动模型裁剪、量化,在不同阶段为开发者提供模型优化的策略,满足不同环境对模型性能的需求。
预训练模型管理
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
可对历史训练模型进行保存及管理,未进行裁剪的模型可以保存为预训练模型,在后续任务中使用。
可视化模型测试
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
客户端直接展示模型预测效果,无需上线即可进行效果评估
模型多端部署
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
点选式选择模型发布平台、格式,一键导出预测模型,并匹配完善的模型预测部署说明文档,贴心助力产业端到端项目落地
.. toctree::
:maxdepth: 2
:caption: 文档目录
download.md
how_to_use.md
faq.md
* PaddleX GUI版本: v1.0
* 项目官网: http://www.paddlepaddle.org.cn/paddle/paddlex
* 项目GitHub: https://github.com/PaddlePaddle/PaddleX/tree/develop
* 官方QQ用户群: 1045148026
* GitHub Issue反馈: http://www.github.com/PaddlePaddle/PaddleX/issues
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" ?>
<annotation>
<folder>widerface</folder>
<filename>24--Soldier_Firing_24_Soldier_Firing_Soldier_Firing_24_664.jpg</filename>
<source>
<database>wider face Database</database>
<annotation>PASCAL VOC2007</annotation>
<image>flickr</image>
<flickrid>-1</flickrid>
</source>
<owner>
<flickrid>yanyu</flickrid>
<name>yanyu</name>
</owner>
<size>
<width>1024</width>
<height>612</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>914</xmin>
<ymin>295</ymin>
<xmax>945</xmax>
<ymax>331</ymax>
</bndbox>
<lm>
<x1>920.165</x1>
<y1>309.768</y1>
<x2>932.004</x2>
<y2>309.54</y2>
<x3>919.482</x3>
<y3>317.509</y3>
<x4>919.254</x4>
<y4>322.062</y4>
<x5>929.5</x5>
<y5>322.973</y5>
<visible>0</visible>
<blur>0.41</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>493</xmin>
<ymin>141</ymin>
<xmax>529</xmax>
<ymax>187</ymax>
</bndbox>
<lm>
<x1>495.0</x1>
<y1>160.0</y1>
<x2>501.0</x2>
<y2>161.0</y2>
<x3>497.0</x3>
<y3>170.0</y3>
<x4>499.0</x4>
<y4>177.0</y4>
<x5>504.0</x5>
<y5>177.0</y5>
<visible>1</visible>
<blur>0.32</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>142</xmin>
<ymin>139</ymin>
<xmax>171</xmax>
<ymax>173</ymax>
</bndbox>
<lm>
<x1>147.906</x1>
<y1>153.531</y1>
<x2>160.156</x2>
<y2>153.531</y2>
<x3>153.375</x3>
<y3>160.094</y3>
<x4>149.875</x4>
<y4>166.875</y4>
<x5>160.156</x5>
<y5>165.562</y5>
<visible>1</visible>
<blur>0.53</blur>
</lm>
<has_lm>1</has_lm>
</object>
</annotation>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" ?>
<annotation>
<folder>widerface</folder>
<filename>1--Handshaking_1_Handshaking_Handshaking_1_164.jpg</filename>
<source>
<database>wider face Database</database>
<annotation>PASCAL VOC2007</annotation>
<image>flickr</image>
<flickrid>-1</flickrid>
</source>
<owner>
<flickrid>yanyu</flickrid>
<name>yanyu</name>
</owner>
<size>
<width>1024</width>
<height>1259</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>223</xmin>
<ymin>101</ymin>
<xmax>351</xmax>
<ymax>275</ymax>
</bndbox>
<lm>
<x1>282.625</x1>
<y1>174.375</y1>
<x2>329.656</x2>
<y2>186.406</y2>
<x3>315.438</x3>
<y3>210.469</y3>
<x4>269.5</x4>
<y4>222.5</y4>
<x5>312.156</x5>
<y5>236.719</y5>
<visible>1</visible>
<blur>0.84</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>533</xmin>
<ymin>101</ymin>
<xmax>666</xmax>
<ymax>280</ymax>
</bndbox>
<lm>
<x1>558.0</x1>
<y1>170.875</y1>
<x2>619.875</x2>
<y2>166.375</y2>
<x3>582.75</x3>
<y3>204.625</y3>
<x4>569.25</x4>
<y4>229.375</y4>
<x5>616.5</x5>
<y5>229.375</y5>
<visible>0</visible>
<blur>0.88</blur>
</lm>
<has_lm>1</has_lm>
</object>
</annotation>
|
{
"pile_set_name": "Github"
}
|
/* This file is generated by gen_zigzag32.m */
/* clang-format off */
#include "odintrin.h"
OD_EXTERN const unsigned char OD_ZIGZAG32_DCT_DCT[768][2] = {
{ 16, 0 }, { 17, 0 }, { 18, 0 }, { 19, 0 },
{ 16, 1 }, { 17, 1 }, { 20, 0 }, { 16, 2 },
{ 18, 1 }, { 21, 0 }, { 17, 2 }, { 16, 3 },
{ 19, 1 }, { 22, 0 }, { 18, 2 }, { 17, 3 },
{ 20, 1 }, { 16, 4 }, { 23, 0 }, { 19, 2 },
{ 24, 0 }, { 16, 5 }, { 21, 1 }, { 17, 4 },
{ 18, 3 }, { 20, 2 }, { 17, 5 }, { 16, 6 },
{ 19, 3 }, { 18, 4 }, { 25, 0 }, { 22, 1 },
{ 16, 7 }, { 21, 2 }, { 17, 6 }, { 20, 3 },
{ 26, 0 }, { 18, 5 }, { 19, 4 }, { 17, 7 },
{ 23, 1 }, { 22, 2 }, { 18, 6 }, { 27, 0 },
{ 19, 5 }, { 24, 1 }, { 21, 3 }, { 28, 0 },
{ 20, 4 }, { 18, 7 }, { 19, 6 }, { 23, 2 },
{ 29, 0 }, { 25, 1 }, { 21, 4 }, { 30, 0 },
{ 20, 5 }, { 22, 3 }, { 31, 0 }, { 19, 7 },
{ 24, 2 }, { 26, 1 }, { 20, 6 }, { 21, 5 },
{ 22, 4 }, { 23, 3 }, { 27, 1 }, { 25, 2 },
{ 20, 7 }, { 28, 1 }, { 24, 3 }, { 21, 6 },
{ 22, 5 }, { 23, 4 }, { 26, 2 }, { 21, 7 },
{ 29, 1 }, { 25, 3 }, { 30, 1 }, { 27, 2 },
{ 22, 6 }, { 23, 5 }, { 31, 1 }, { 24, 4 },
{ 26, 3 }, { 28, 2 }, { 22, 7 }, { 23, 6 },
{ 25, 4 }, { 24, 5 }, { 29, 2 }, { 30, 2 },
{ 27, 3 }, { 23, 7 }, { 31, 2 }, { 24, 6 },
{ 26, 4 }, { 25, 5 }, { 28, 3 }, { 24, 7 },
{ 27, 4 }, { 29, 3 }, { 25, 6 }, { 26, 5 },
{ 30, 3 }, { 31, 3 }, { 28, 4 }, { 27, 5 },
{ 25, 7 }, { 29, 4 }, { 26, 6 }, { 28, 5 },
{ 30, 4 }, { 26, 7 }, { 27, 6 }, { 31, 4 },
{ 29, 5 }, { 27, 7 }, { 30, 5 }, { 28, 6 },
{ 31, 5 }, { 29, 6 }, { 28, 7 }, { 30, 6 },
{ 31, 6 }, { 29, 7 }, { 30, 7 }, { 31, 7 },
{ 0, 16 }, { 0, 17 }, { 1, 16 }, { 0, 18 },
{ 1, 17 }, { 0, 19 }, { 2, 16 }, { 1, 18 },
{ 0, 20 }, { 2, 17 }, { 3, 16 }, { 1, 19 },
{ 2, 18 }, { 0, 21 }, { 3, 17 }, { 4, 16 },
{ 1, 20 }, { 2, 19 }, { 0, 22 }, { 3, 18 },
{ 4, 17 }, { 5, 16 }, { 0, 23 }, { 3, 19 },
{ 2, 20 }, { 1, 21 }, { 4, 18 }, { 6, 16 },
{ 5, 17 }, { 3, 20 }, { 2, 21 }, { 1, 22 },
{ 0, 24 }, { 0, 25 }, { 4, 19 }, { 7, 16 },
{ 6, 17 }, { 5, 18 }, { 0, 26 }, { 3, 21 },
{ 2, 22 }, { 1, 23 }, { 4, 20 }, { 5, 19 },
{ 6, 18 }, { 1, 24 }, { 7, 17 }, { 0, 27 },
{ 2, 23 }, { 3, 22 }, { 4, 21 }, { 1, 25 },
{ 5, 20 }, { 7, 18 }, { 0, 28 }, { 6, 19 },
{ 2, 24 }, { 1, 26 }, { 0, 29 }, { 4, 22 },
{ 3, 23 }, { 2, 25 }, { 5, 21 }, { 0, 31 },
{ 7, 19 }, { 6, 20 }, { 0, 30 }, { 1, 27 },
{ 3, 24 }, { 2, 26 }, { 4, 23 }, { 5, 22 },
{ 7, 20 }, { 1, 28 }, { 6, 21 }, { 3, 25 },
{ 2, 27 }, { 1, 29 }, { 4, 24 }, { 2, 28 },
{ 1, 30 }, { 7, 21 }, { 5, 23 }, { 3, 26 },
{ 6, 22 }, { 1, 31 }, { 4, 25 }, { 7, 22 },
{ 3, 27 }, { 2, 29 }, { 2, 30 }, { 5, 24 },
{ 2, 31 }, { 6, 23 }, { 4, 26 }, { 3, 28 },
{ 5, 25 }, { 3, 29 }, { 6, 24 }, { 7, 23 },
{ 3, 30 }, { 4, 27 }, { 3, 31 }, { 5, 26 },
{ 6, 25 }, { 4, 28 }, { 7, 24 }, { 4, 29 },
{ 5, 27 }, { 4, 30 }, { 4, 31 }, { 6, 26 },
{ 5, 28 }, { 7, 25 }, { 6, 27 }, { 5, 29 },
{ 7, 26 }, { 5, 30 }, { 5, 31 }, { 6, 28 },
{ 7, 27 }, { 6, 29 }, { 6, 30 }, { 7, 28 },
{ 6, 31 }, { 7, 29 }, { 7, 30 }, { 7, 31 },
{ 8, 16 }, { 9, 16 }, { 8, 17 }, { 10, 16 },
{ 9, 17 }, { 16, 8 }, { 8, 18 }, { 16, 9 },
{ 10, 17 }, { 11, 16 }, { 17, 8 }, { 9, 18 },
{ 8, 19 }, { 16, 10 }, { 11, 17 }, { 12, 16 },
{ 10, 18 }, { 17, 9 }, { 9, 19 }, { 16, 11 },
{ 8, 20 }, { 18, 8 }, { 17, 10 }, { 10, 19 },
{ 12, 17 }, { 11, 18 }, { 9, 20 }, { 16, 12 },
{ 18, 9 }, { 8, 21 }, { 13, 16 }, { 17, 11 },
{ 19, 8 }, { 18, 10 }, { 13, 17 }, { 16, 13 },
{ 11, 19 }, { 12, 18 }, { 10, 20 }, { 17, 12 },
{ 9, 21 }, { 19, 9 }, { 8, 22 }, { 14, 16 },
{ 18, 11 }, { 11, 20 }, { 10, 21 }, { 20, 8 },
{ 13, 18 }, { 16, 14 }, { 12, 19 }, { 17, 13 },
{ 19, 10 }, { 14, 17 }, { 9, 22 }, { 18, 12 },
{ 8, 23 }, { 17, 14 }, { 20, 9 }, { 15, 16 },
{ 16, 15 }, { 13, 19 }, { 10, 22 }, { 19, 11 },
{ 11, 21 }, { 14, 18 }, { 12, 20 }, { 18, 13 },
{ 20, 10 }, { 21, 8 }, { 15, 17 }, { 9, 23 },
{ 19, 12 }, { 11, 22 }, { 8, 24 }, { 21, 9 },
{ 17, 15 }, { 16, 16 }, { 14, 19 }, { 18, 14 },
{ 12, 21 }, { 13, 20 }, { 20, 11 }, { 10, 23 },
{ 19, 13 }, { 15, 18 }, { 16, 17 }, { 21, 10 },
{ 22, 8 }, { 9, 24 }, { 8, 25 }, { 20, 12 },
{ 15, 19 }, { 11, 23 }, { 17, 16 }, { 18, 15 },
{ 14, 20 }, { 12, 22 }, { 10, 24 }, { 22, 9 },
{ 21, 11 }, { 19, 14 }, { 13, 21 }, { 16, 18 },
{ 9, 25 }, { 17, 17 }, { 8, 26 }, { 20, 13 },
{ 23, 8 }, { 12, 23 }, { 13, 22 }, { 22, 10 },
{ 19, 15 }, { 15, 20 }, { 16, 19 }, { 21, 12 },
{ 11, 24 }, { 14, 21 }, { 8, 27 }, { 18, 16 },
{ 10, 25 }, { 9, 26 }, { 22, 11 }, { 20, 14 },
{ 23, 9 }, { 18, 17 }, { 17, 18 }, { 17, 19 },
{ 19, 16 }, { 21, 13 }, { 10, 26 }, { 12, 24 },
{ 23, 10 }, { 24, 8 }, { 8, 28 }, { 16, 20 },
{ 9, 27 }, { 15, 21 }, { 22, 12 }, { 14, 22 },
{ 13, 23 }, { 20, 15 }, { 11, 25 }, { 24, 9 },
{ 18, 18 }, { 19, 17 }, { 23, 11 }, { 10, 27 },
{ 8, 29 }, { 12, 25 }, { 9, 28 }, { 8, 30 },
{ 21, 14 }, { 13, 24 }, { 11, 26 }, { 25, 8 },
{ 24, 10 }, { 20, 16 }, { 19, 18 }, { 14, 23 },
{ 22, 13 }, { 8, 31 }, { 17, 20 }, { 9, 29 },
{ 23, 12 }, { 15, 22 }, { 25, 9 }, { 11, 27 },
{ 10, 28 }, { 20, 17 }, { 21, 15 }, { 18, 19 },
{ 16, 21 }, { 24, 11 }, { 9, 30 }, { 12, 26 },
{ 10, 29 }, { 22, 14 }, { 14, 24 }, { 9, 31 },
{ 26, 8 }, { 13, 25 }, { 25, 10 }, { 18, 20 },
{ 19, 19 }, { 11, 28 }, { 15, 23 }, { 20, 18 },
{ 10, 30 }, { 12, 27 }, { 17, 21 }, { 23, 13 },
{ 24, 12 }, { 21, 16 }, { 16, 22 }, { 26, 9 },
{ 27, 8 }, { 13, 26 }, { 22, 15 }, { 10, 31 },
{ 14, 25 }, { 12, 28 }, { 25, 11 }, { 21, 17 },
{ 26, 10 }, { 20, 19 }, { 11, 29 }, { 15, 24 },
{ 23, 14 }, { 27, 9 }, { 11, 30 }, { 13, 27 },
{ 19, 20 }, { 24, 13 }, { 28, 8 }, { 11, 31 },
{ 22, 16 }, { 17, 22 }, { 16, 23 }, { 25, 12 },
{ 18, 21 }, { 12, 29 }, { 21, 18 }, { 28, 9 },
{ 27, 10 }, { 26, 11 }, { 29, 8 }, { 14, 26 },
{ 15, 25 }, { 13, 28 }, { 12, 30 }, { 23, 15 },
{ 30, 8 }, { 16, 24 }, { 13, 29 }, { 25, 13 },
{ 24, 14 }, { 20, 20 }, { 31, 8 }, { 12, 31 },
{ 14, 27 }, { 28, 10 }, { 26, 12 }, { 22, 17 },
{ 21, 19 }, { 17, 23 }, { 18, 22 }, { 29, 9 },
{ 27, 11 }, { 19, 21 }, { 27, 12 }, { 30, 9 },
{ 31, 9 }, { 13, 30 }, { 24, 15 }, { 23, 16 },
{ 15, 26 }, { 14, 28 }, { 29, 10 }, { 28, 11 },
{ 26, 13 }, { 17, 24 }, { 13, 31 }, { 25, 14 },
{ 22, 18 }, { 16, 25 }, { 30, 10 }, { 14, 29 },
{ 15, 27 }, { 19, 22 }, { 21, 20 }, { 20, 21 },
{ 27, 13 }, { 29, 11 }, { 18, 23 }, { 23, 17 },
{ 16, 26 }, { 31, 10 }, { 24, 16 }, { 14, 30 },
{ 22, 19 }, { 14, 31 }, { 28, 12 }, { 26, 14 },
{ 30, 11 }, { 15, 28 }, { 25, 15 }, { 17, 25 },
{ 23, 18 }, { 18, 24 }, { 15, 30 }, { 29, 12 },
{ 31, 11 }, { 16, 27 }, { 24, 17 }, { 28, 13 },
{ 19, 23 }, { 15, 29 }, { 25, 16 }, { 17, 26 },
{ 27, 14 }, { 22, 20 }, { 15, 31 }, { 20, 22 },
{ 21, 21 }, { 16, 28 }, { 17, 27 }, { 30, 12 },
{ 26, 15 }, { 19, 24 }, { 18, 25 }, { 23, 19 },
{ 29, 13 }, { 31, 12 }, { 24, 18 }, { 26, 16 },
{ 25, 17 }, { 16, 29 }, { 28, 14 }, { 20, 23 },
{ 18, 26 }, { 21, 22 }, { 19, 25 }, { 22, 21 },
{ 27, 15 }, { 17, 28 }, { 16, 30 }, { 26, 17 },
{ 23, 20 }, { 16, 31 }, { 25, 18 }, { 27, 16 },
{ 20, 24 }, { 24, 19 }, { 31, 13 }, { 30, 13 },
{ 29, 14 }, { 18, 27 }, { 28, 15 }, { 17, 29 },
{ 19, 26 }, { 17, 30 }, { 21, 23 }, { 22, 22 },
{ 30, 14 }, { 20, 25 }, { 23, 21 }, { 17, 31 },
{ 18, 28 }, { 25, 19 }, { 24, 20 }, { 28, 16 },
{ 31, 14 }, { 26, 18 }, { 19, 27 }, { 29, 15 },
{ 27, 17 }, { 30, 15 }, { 21, 24 }, { 22, 23 },
{ 26, 19 }, { 23, 22 }, { 28, 17 }, { 29, 16 },
{ 18, 30 }, { 24, 21 }, { 25, 20 }, { 18, 31 },
{ 18, 29 }, { 20, 26 }, { 19, 28 }, { 27, 18 },
{ 31, 15 }, { 20, 27 }, { 30, 16 }, { 19, 29 },
{ 29, 17 }, { 31, 16 }, { 27, 19 }, { 21, 25 },
{ 28, 18 }, { 26, 20 }, { 22, 24 }, { 25, 21 },
{ 19, 30 }, { 24, 22 }, { 30, 17 }, { 21, 26 },
{ 23, 23 }, { 19, 31 }, { 20, 28 }, { 31, 17 },
{ 28, 19 }, { 27, 20 }, { 21, 27 }, { 29, 18 },
{ 30, 18 }, { 25, 22 }, { 26, 21 }, { 20, 29 },
{ 22, 25 }, { 24, 23 }, { 29, 19 }, { 23, 24 },
{ 20, 31 }, { 20, 30 }, { 28, 20 }, { 21, 28 },
{ 22, 26 }, { 31, 18 }, { 27, 21 }, { 30, 19 },
{ 22, 27 }, { 29, 20 }, { 23, 25 }, { 24, 24 },
{ 26, 22 }, { 21, 29 }, { 25, 23 }, { 31, 19 },
{ 21, 30 }, { 23, 26 }, { 28, 21 }, { 21, 31 },
{ 22, 28 }, { 30, 20 }, { 25, 24 }, { 27, 22 },
{ 29, 21 }, { 26, 23 }, { 24, 25 }, { 31, 20 },
{ 23, 27 }, { 22, 29 }, { 30, 21 }, { 28, 22 },
{ 24, 26 }, { 25, 25 }, { 27, 23 }, { 22, 30 },
{ 23, 28 }, { 22, 31 }, { 26, 24 }, { 31, 21 },
{ 24, 27 }, { 29, 22 }, { 27, 24 }, { 30, 22 },
{ 25, 26 }, { 28, 23 }, { 23, 30 }, { 23, 29 },
{ 24, 28 }, { 25, 27 }, { 31, 22 }, { 23, 31 },
{ 26, 25 }, { 28, 24 }, { 29, 23 }, { 24, 29 },
{ 24, 30 }, { 27, 25 }, { 25, 28 }, { 26, 26 },
{ 30, 23 }, { 26, 27 }, { 31, 23 }, { 28, 25 },
{ 27, 26 }, { 25, 29 }, { 24, 31 }, { 29, 24 },
{ 30, 24 }, { 27, 27 }, { 29, 25 }, { 26, 28 },
{ 31, 24 }, { 25, 30 }, { 25, 31 }, { 28, 26 },
{ 27, 28 }, { 26, 29 }, { 30, 25 }, { 29, 26 },
{ 28, 27 }, { 26, 30 }, { 31, 25 }, { 27, 29 },
{ 26, 31 }, { 30, 26 }, { 28, 28 }, { 31, 26 },
{ 29, 27 }, { 27, 30 }, { 28, 29 }, { 27, 31 },
{ 30, 27 }, { 31, 27 }, { 28, 30 }, { 29, 28 },
{ 30, 28 }, { 29, 29 }, { 30, 29 }, { 31, 28 },
{ 28, 31 }, { 29, 30 }, { 29, 31 }, { 31, 29 },
{ 30, 30 }, { 30, 31 }, { 31, 30 }, { 31, 31 }
};
|
{
"pile_set_name": "Github"
}
|
{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210
{\fonttbl\f0\fnil\fcharset0 PragmataPro;\f1\fnil\fcharset0 PragmataPro-Italic;\f2\fnil\fcharset0 PragmataPro-Bold;
\f3\fnil\fcharset0 PragmataPro-BoldItalic;}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww12040\viewh18700\viewkind0
\deftab720
{\*\background {\shp{\*\shpinst\shpleft0\shptop0\shpright0\shpbottom0\shpfhdr0\shpbxmargin\shpbymargin\shpwr0\shpwrk0\shpfblwtxt1\shpz0\shplid1025{\sp{\sn shapeType}{\sv 1}}{\sp{\sn fFlipH}{\sv 0}}{\sp{\sn fFlipV}{\sv 0}}{\sp{\sn fillColor}{\sv 3944939}}{\sp{\sn fFilled}{\sv 1}}{\sp{\sn lineWidth}{\sv 0}}{\sp{\sn fLine}{\sv 0}}{\sp{\sn bWMode}{\sv 9}}{\sp{\sn fBackground}{\sv 1}}}}}
\pard\pardeftab720
\f0\fs58 \AppleTypeServices\AppleTypeServicesF2293778 \cf1 \
PragmataPro Serif Italic\
\pard\pardeftab720
\AppleTypeServices\AppleTypeServicesF2293776\AppleTypeServicesF2293780 \cf1 PragmataPro Serif Bold\
\pard\pardeftab720
\AppleTypeServices\AppleTypeServicesF2293780 \cf1 PragmataPro Serif BoldItalic\
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
\fs48 \AppleTypeServices\AppleTypeServicesF2293780 \cf1 s\AppleTypeServices (\AppleTypeServices\AppleTypeServicesF2293778 t\AppleTypeServices )=\AppleTypeServices\AppleTypeServicesF2293780 A\AppleTypeServices sin(2\AppleTypeServices\AppleTypeServicesF2293778 wt\AppleTypeServices )\'b7cos(
\f1\i \AppleTypeServices\AppleTypeServicesF2293776 x
\f0\i0 \AppleTypeServices \'b3-4)\
\AppleTypeServices\AppleTypeServicesF2293780 V-E+F=2 \AppleTypeServices\AppleTypeServicesF2293778 h\AppleTypeServices \'b2(3\AppleTypeServices\AppleTypeServicesF2293778 r\AppleTypeServices -\AppleTypeServices\AppleTypeServicesF2293778 h\AppleTypeServices )
\fs82 \AppleTypeServices\AppleTypeServicesF2293776\AppleTypeServicesF2293780 \
\pard\pardeftab720
\AppleTypeServices\AppleTypeServicesF2293780\AppleTypeServicesF2293776 \cf1 \
PragmataPro Serif Bold\AppleTypeServices\AppleTypeServicesF2293778 \cf0 \
\pard\pardeftab720
\AppleTypeServices\AppleTypeServicesF2293776\AppleTypeServicesF2293780 \cf0 Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.
\fs96 \AppleTypeServices\AppleTypeServicesF2293780\AppleTypeServicesF2293776 \
\fs48 \AppleTypeServices\AppleTypeServicesF2293776 \
\fs40 \AppleTypeServices\AppleTypeServicesF2293776 You can find these glyphs in the PragmataPro
\f2\b \AppleTypeServices 0.819
\f0\b0 \AppleTypeServices\AppleTypeServicesF2293776 charset Unicode range Mathematical Alphanumeric Symbols.\
\pard\pardeftab720
\AppleTypeServices\AppleTypeServicesF2293780\AppleTypeServicesF2293776 \cf0 Also available using OpenType panel selecting \AppleTypeServices\AppleTypeServicesF2293770 (SS08)\
\pard\pardeftab720
\AppleTypeServices \cf0 ABCDEFGHIJKLMNopqrstuvwxyz \uc0\u8594 \AppleTypeServices\AppleTypeServicesF2293776 ABCDEFGHIJKLMNopqrstuvwxyz
\fs48 \AppleTypeServices\AppleTypeServicesF2293776 \
\pard\pardeftab720
\fs40 \AppleTypeServices\AppleTypeServicesF2293776 \cf0 \
In monetary economics, a money multiplier is one of various closely related ratios of commercial bank money to central bank money under a fractional-reserve banking system. Most often, it measures the maximum amount of commercial bank money that can be created by a given unit of central bank money. That is, in a fractional-reserve banking system, the total amount of loans that commercial banks are allowed to extend
\f2\b \AppleTypeServices (
\f0\b0 \AppleTypeServices\AppleTypeServicesF2293776 the commercial bank money that they can legally create
\f2\b \AppleTypeServices )
\f0\b0 \AppleTypeServices\AppleTypeServicesF2293776 is a multiple of reserves; this multiple is the reciprocal of the reserve ratio, and it is an economic multiplier.\AppleTypeServices\AppleTypeServicesF2293770 \
\pard\pardeftab720
\fs96 \AppleTypeServices\AppleTypeServicesF2293778 \cf0 \
\pard\pardeftab720
\fs82 \AppleTypeServices\AppleTypeServicesF2293780 \cf1 PragmataPro Serif BoldItalic\AppleTypeServices\AppleTypeServicesF2293778 \cf0 \
\AppleTypeServices\AppleTypeServicesF2293780 Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.
\fs96 \AppleTypeServices\AppleTypeServicesF2293780 \
\pard\pardeftab720
\fs48 \AppleTypeServices\AppleTypeServicesF2293780 \cf0 \
\fs40 \AppleTypeServices\AppleTypeServicesF2293780 You can find these glyphs in the PragmataPro
\f3\i\b \AppleTypeServices 0.819
\f0\i0\b0 \AppleTypeServices\AppleTypeServicesF2293780 charset Unicode range Mathematical Alphanumeric Symbols.\
Also available using OpenType panel selecting\AppleTypeServices\AppleTypeServicesF2293776\AppleTypeServicesF2293780 \AppleTypeServices\AppleTypeServicesF2293770 (SS10)\
\pard\pardeftab720
\AppleTypeServices \cf0 ABCDEFGHIJKLMNopqrstuvwxyz \uc0\u8594 \AppleTypeServices\AppleTypeServicesF2293780 ABCDEFGHIJKLMNopqrstuvwxyz
\fs48 \AppleTypeServices\AppleTypeServicesF2293780 \
\pard\pardeftab720
\fs40 \AppleTypeServices\AppleTypeServicesF2293780 \cf0 \
If banks lend out close to the maximum allowed by their reserves, then the inequality becomes an approximate equality
\f3\i\b \AppleTypeServices ,
\f0\i0\b0 \AppleTypeServices\AppleTypeServicesF2293780 and commercial bank money is central bank money times the multiplier. If banks instead lend less than the maximum
\f3\i\b \AppleTypeServices ,
\f0\i0\b0 \AppleTypeServices\AppleTypeServicesF2293780 accumulating excess reserves
\f3\i\b \AppleTypeServices ,
\f0\i0\b0 \AppleTypeServices\AppleTypeServicesF2293780 then commercial bank money will be less than central bank money times the theoretical multiplier.
\fs36 \AppleTypeServices\AppleTypeServicesF2293780 \
\pard\pardeftab720
\fs96 \AppleTypeServices\AppleTypeServicesF2293780 \cf0 \
\pard\pardeftab720
\fs82 \AppleTypeServices\AppleTypeServicesF2293778 \cf1 PragmataPro Serif Italic\AppleTypeServices\AppleTypeServicesF2293770 \cf0 \
\pard\pardeftab720
\AppleTypeServices\AppleTypeServicesF2293778 \cf0 Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.
\fs96 \AppleTypeServices\AppleTypeServicesF2293778 \
\pard\pardeftab720
\fs48 \AppleTypeServices\AppleTypeServicesF2293778\AppleTypeServicesF2293780 \cf0 \
\fs40 \AppleTypeServices\AppleTypeServicesF2293778\AppleTypeServicesF2293780 You can find these glyphs in the PragmataPro
\f1\i \AppleTypeServices 0.819
\f0\i0 \AppleTypeServices\AppleTypeServicesF2293778\AppleTypeServicesF2293780 charset Unicode range Mathematical Alphanumeric Symbols.\
Also available using OpenType panel selecting\AppleTypeServices\AppleTypeServicesF2293780\AppleTypeServicesF2293776 \AppleTypeServices\AppleTypeServicesF2293770 (SS09)\
\pard\pardeftab720
\AppleTypeServices \cf0 ABCDEFGHIJKLMNopqrstuvwxyz \uc0\u8594 \AppleTypeServices\AppleTypeServicesF2293778 ABCDEFGHIJKLMNopqrstuvwxyz
\fs48 \AppleTypeServices\AppleTypeServicesF2293778 \
\pard\pardeftab720
\fs40 \AppleTypeServices\AppleTypeServicesF2293778 \cf0 \
In equations, writing M for commercial bank money (loans), R for reserves (central bank money), and RR for the reserve ratio, the reserve ratio requirement is that R/M \uc0\u8805 RR; the fraction of reserves must be at least the reserve ratio. Taking the reciprocal, M/R \u8804 1/RR, which yields M \u8804 R \'d7 (1/RR), meaning that commercial bank money is at most reserves times (1/RR), the latter being the multiplier.
\fs36 \AppleTypeServices\AppleTypeServicesF2293780 \
\
}
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
<article id="callout_tests" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Callout Tests</title>
<para>
Example 1:
</para>
<para>
Now we can define a function that simulates an ordinary six-sided die.
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="identifier">dist</phrase><phrase role="special">(</phrase><phrase role="number">1</phrase><phrase role="special">,</phrase> <phrase role="number">6</phrase><phrase role="special">);</phrase> <co id="callout_tests.c0" linkends="callout_tests.c1" />
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.c0" id="callout_tests.c1">
<para>
create a uniform_int distribution
</para>
</callout>
</calloutlist>
<para>
Example 2:
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<co id="callout_tests.c2" linkends="callout_tests.c3" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">variate_generator</phrase><phrase role="special"><</phrase><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">mt19937</phrase><phrase role="special">&,</phrase> <phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="special">></phrase> <phrase role="identifier">die</phrase><phrase role="special">(</phrase><phrase role="identifier">gen</phrase><phrase role="special">,</phrase> <phrase role="identifier">dist</phrase><phrase role="special">);</phrase>
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.c2" id="callout_tests.c3">
<important>
<para>
test
</para>
</important>
</callout>
</calloutlist>
<para>
Example 3:
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<co id="callout_tests.c4" linkends="callout_tests.c5" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">variate_generator</phrase><phrase role="special"><</phrase><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">mt19937</phrase><phrase role="special">&,</phrase> <phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="special">></phrase> <phrase role="identifier">die</phrase><phrase role="special">(</phrase><phrase role="identifier">gen</phrase><phrase role="special">,</phrase> <phrase role="identifier">dist</phrase><phrase role="special">);</phrase>
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.c4" id="callout_tests.c5">
<important>
<para>
test
</para>
</important>
</callout>
</calloutlist>
<para>
Example 3 (again!):
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<co id="callout_tests.c6" linkends="callout_tests.c7" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">variate_generator</phrase><phrase role="special"><</phrase><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">mt19937</phrase><phrase role="special">&,</phrase> <phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="special">></phrase> <phrase role="identifier">die</phrase><phrase role="special">(</phrase><phrase role="identifier">gen</phrase><phrase role="special">,</phrase> <phrase role="identifier">dist</phrase><phrase role="special">);</phrase>
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.c6" id="callout_tests.c7">
<important>
<para>
test
</para>
</important>
</callout>
</calloutlist>
<para>
Example 4:
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<co id="callout_tests.c8" linkends="callout_tests.c9" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">variate_generator</phrase><phrase role="special"><</phrase><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">mt19937</phrase><phrase role="special">&,</phrase> <phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="special">></phrase> <phrase role="identifier">die</phrase><phrase role="special">(</phrase><phrase role="identifier">gen</phrase><phrase role="special">,</phrase> <phrase role="identifier">dist</phrase><phrase role="special">);</phrase>
<co id="callout_tests.c10" linkends="callout_tests.c11" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="identifier">dist</phrase><phrase role="special">(</phrase><phrase role="number">1</phrase><phrase role="special">,</phrase> <phrase role="number">6</phrase><phrase role="special">);</phrase> <co id="callout_tests.c12" linkends="callout_tests.c13" />
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.c8" id="callout_tests.c9">
<para>
callout 1
</para>
</callout>
<callout arearefs="callout_tests.c10" id="callout_tests.c11">
<para>
callout 2
</para>
</callout>
<callout arearefs="callout_tests.c12" id="callout_tests.c13">
<para>
create a uniform_int distribution
</para>
</callout>
</calloutlist>
<para>
<programlisting><co id="callout_tests.c14" linkends="callout_tests.c15" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="identifier">dist</phrase><phrase role="special">(</phrase><phrase role="number">1</phrase><phrase role="special">,</phrase> <phrase role="number">6</phrase><phrase role="special">);</phrase> <co id="callout_tests.c16" linkends="callout_tests.c17" />
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.c14" id="callout_tests.c15">
<para>
callout 2
</para>
</callout>
<callout arearefs="callout_tests.c16" id="callout_tests.c17">
<para>
create a uniform_int distribution
</para>
</callout>
</calloutlist>
<section id="callout_tests.test_section">
<title><link linkend="callout_tests.test_section">Try callouts in a section</link></title>
<para>
Example 1:
</para>
<para>
Now we can define a function that simulates an ordinary six-sided die.
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="identifier">dist</phrase><phrase role="special">(</phrase><phrase role="number">1</phrase><phrase role="special">,</phrase> <phrase role="number">6</phrase><phrase role="special">);</phrase> <co id="callout_tests.test_section.c0" linkends="callout_tests.test_section.c1" />
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.test_section.c0" id="callout_tests.test_section.c1">
<para>
create a uniform_int distribution
</para>
</callout>
</calloutlist>
<para>
Example 2:
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<co id="callout_tests.test_section.c2" linkends="callout_tests.test_section.c3" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">variate_generator</phrase><phrase role="special"><</phrase><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">mt19937</phrase><phrase role="special">&,</phrase> <phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="special">></phrase> <phrase role="identifier">die</phrase><phrase role="special">(</phrase><phrase role="identifier">gen</phrase><phrase role="special">,</phrase> <phrase role="identifier">dist</phrase><phrase role="special">);</phrase>
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.test_section.c2" id="callout_tests.test_section.c3">
<important>
<para>
test
</para>
</important>
</callout>
</calloutlist>
<para>
Example 3:
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<co id="callout_tests.test_section.c4" linkends="callout_tests.test_section.c5" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">variate_generator</phrase><phrase role="special"><</phrase><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">mt19937</phrase><phrase role="special">&,</phrase> <phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="special">></phrase> <phrase role="identifier">die</phrase><phrase role="special">(</phrase><phrase role="identifier">gen</phrase><phrase role="special">,</phrase> <phrase role="identifier">dist</phrase><phrase role="special">);</phrase>
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.test_section.c4" id="callout_tests.test_section.c5">
<important>
<para>
test
</para>
</important>
</callout>
</calloutlist>
<para>
Example 3 (again!):
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<co id="callout_tests.test_section.c6" linkends="callout_tests.test_section.c7" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">variate_generator</phrase><phrase role="special"><</phrase><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">mt19937</phrase><phrase role="special">&,</phrase> <phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="special">></phrase> <phrase role="identifier">die</phrase><phrase role="special">(</phrase><phrase role="identifier">gen</phrase><phrase role="special">,</phrase> <phrase role="identifier">dist</phrase><phrase role="special">);</phrase>
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.test_section.c6" id="callout_tests.test_section.c7">
<important>
<para>
test
</para>
</important>
</callout>
</calloutlist>
<para>
Example 4:
</para>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">roll_die</phrase><phrase role="special">()</phrase> <phrase role="special">{</phrase>
<co id="callout_tests.test_section.c8" linkends="callout_tests.test_section.c9" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">variate_generator</phrase><phrase role="special"><</phrase><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">mt19937</phrase><phrase role="special">&,</phrase> <phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="special">></phrase> <phrase role="identifier">die</phrase><phrase role="special">(</phrase><phrase role="identifier">gen</phrase><phrase role="special">,</phrase> <phrase role="identifier">dist</phrase><phrase role="special">);</phrase>
<co id="callout_tests.test_section.c10" linkends="callout_tests.test_section.c11" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="identifier">dist</phrase><phrase role="special">(</phrase><phrase role="number">1</phrase><phrase role="special">,</phrase> <phrase role="number">6</phrase><phrase role="special">);</phrase> <co id="callout_tests.test_section.c12" linkends="callout_tests.test_section.c13" />
<phrase role="special">}</phrase>
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.test_section.c8" id="callout_tests.test_section.c9">
<para>
callout 1
</para>
</callout>
<callout arearefs="callout_tests.test_section.c10" id="callout_tests.test_section.c11">
<para>
callout 2
</para>
</callout>
<callout arearefs="callout_tests.test_section.c12" id="callout_tests.test_section.c13">
<para>
create a uniform_int distribution
</para>
</callout>
</calloutlist>
<para>
<programlisting><co id="callout_tests.test_section.c14" linkends="callout_tests.test_section.c15" /><phrase role="identifier">boost</phrase><phrase role="special">::</phrase><phrase role="identifier">uniform_int</phrase><phrase role="special"><></phrase> <phrase role="identifier">dist</phrase><phrase role="special">(</phrase><phrase role="number">1</phrase><phrase role="special">,</phrase> <phrase role="number">6</phrase><phrase role="special">);</phrase> <co id="callout_tests.test_section.c16" linkends="callout_tests.test_section.c17" />
</programlisting>
</para>
<calloutlist>
<callout arearefs="callout_tests.test_section.c14" id="callout_tests.test_section.c15">
<para>
callout 2
</para>
</callout>
<callout arearefs="callout_tests.test_section.c16" id="callout_tests.test_section.c17">
<para>
create a uniform_int distribution
</para>
</callout>
</calloutlist>
</section>
</article>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE pov SYSTEM "/usr/share/cgc-docs/replay.dtd">
<pov>
<cbid>service</cbid>
<replay>
<read><delim>\x0a</delim><match><data>2D Particle Simulator\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter the number of particles to simulate \x281-10\x29:\x0a</data></match></read>
<write><data>9\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>156.56030,117.41608\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>0.87994,7.46642\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>7.71893\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>7.96228\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #1 added at (156.56030,117.41608) velocity(0.87994,7.46642) mass(7.71893) radius(7.96228).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>186.22030,113.94834\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>2.78437,7.26892\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>5.62715\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>6.08670\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #2 added at (186.22030,113.94834) velocity(2.78437,7.26892) mass(5.62715) radius(6.08670).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>193.51304,159.95880\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>5.50465,1.07406\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>2.03509\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>5.34471\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #3 added at (193.51304,159.95880) velocity(5.50465,1.07406) mass(2.03509) radius(5.34471).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>174.49197,109.89404\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>9.94075,6.86044\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>5.70468\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>2.07708\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #4 added at (174.49197,109.89404) velocity(9.94075,6.86044) mass(5.70468) radius(2.07708).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>173.35359,120.78006\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>8.28914,9.93472\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>9.93750\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>5.21090\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #5 added at (173.35359,120.78006) velocity(8.28914,9.93472) mass(9.93750) radius(5.21090).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>135.61800,157.65639\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>1.45387,6.50614\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>3.72796\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>9.98074\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #6 added at (135.61800,157.65639) velocity(1.45387,6.50614) mass(3.72796) radius(9.98074).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>185.47191,136.09655\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>7.41999,2.80527\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>2.16104\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>5.65310\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #7 added at (185.47191,136.09655) velocity(7.41999,2.80527) mass(2.16104) radius(5.65310).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>144.03408,140.28777\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>0.63228,5.42303\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>3.17363\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>5.31876\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #8 added at (144.03408,140.28777) velocity(0.63228,5.42303) mass(3.17363) radius(5.31876).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>184.85680,333.66219\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>31.25458,8.30947\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>83.59691\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>29.77169\x0a</data></write>
<read><delim>\x0a</delim><match><data>Invalid simulation data. Try again.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>357.78186,222.91595\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>18.14453,4.39926\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>44.58561\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>76.93714\x0a</data></write>
<read><delim>\x0a</delim><match><data>Invalid simulation data. Try again.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>122.91810,146.16639\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>8.74640,7.85671\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>9.59354\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>6.20361\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #9 added at (122.91810,146.16639) velocity(8.74640,7.85671) mass(9.59354) radius(6.20361).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Running simulation with...\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>9 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (156.56000,117.41000) Velocity (0.87000,7.46000) mass (7.71000) radius (7.96000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (186.22000,113.94000) Velocity (2.78000,7.26000) mass (5.62000) radius (6.08000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2: Position (193.51000,159.95000) Velocity (5.50000,1.07000) mass (2.03000) radius (5.34000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>3: Position (174.49000,109.89000) Velocity (9.94000,6.86000) mass (5.70000) radius (2.07000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>4: Position (173.35000,120.78000) Velocity (8.28000,9.93000) mass (9.93000) radius (5.21000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>5: Position (135.61000,157.65000) Velocity (1.45000,6.50000) mass (3.72000) radius (9.98000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>6: Position (185.47000,136.09000) Velocity (7.41000,2.80000) mass (2.16000) radius (5.65000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>7: Position (144.03000,140.28000) Velocity (0.63000,5.42000) mass (3.17000) radius (5.31000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>8: Position (122.91000,146.16000) Velocity (8.74000,7.85000) mass (9.59000) radius (6.20000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000001000000000010\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00001000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000100000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000100\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000100000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000100000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000100\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000100000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Simulation complete, 26 collisions simulated over 10 seconds in 80 frames.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>9 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (162.59618,124.76035) Velocity (-5.23438,-3.19364) mass (7.71000) radius (7.96000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (183.04450,164.46004) Velocity (-1.12057,2.83332) mass (5.62000) radius (6.08000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2: Position (115.59444,123.99360) Velocity (-1.28757,4.13917) mass (2.03000) radius (5.34000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>3: Position (172.57056,119.49517) Velocity (1.49653,-3.52875) mass (5.70000) radius (2.07000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>4: Position (170.30794,166.19666) Velocity (-1.40597,0.35842) mass (9.93000) radius (5.21000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>5: Position (133.05209,168.73314) Velocity (13.04400,-5.13575) mass (3.72000) radius (9.98000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>6: Position (168.84725,180.03533) Velocity (-12.95917,5.99709) mass (2.16000) radius (5.65000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>7: Position (123.50156,136.28106) Velocity (6.10468,28.86559) mass (3.17000) radius (5.31000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>8: Position (107.71347,152.03382) Velocity (-5.95988,-5.51458) mass (9.59000) radius (6.20000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000001000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000010000000100000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000001000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>01000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00001000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00010000000010000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000100000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Goodbye\x0a</data></match></read>
</replay>
</pov>
|
{
"pile_set_name": "Github"
}
|
{"1179": 0.23512073149405358}
{"1106": 0.228654571409621}
{"652": 0.26706320871106765}
{"617": 0.25888070620540204}
{"529": 0.23796719398186578}
{"1336": 0.22708931518452144}
{"560": 0.2612410483304467}
{"569": 0.25344843499981895, "556": 0.24737922264439613}
{"864": 0.22093242105651731, "1369": 0.21443143954958546, "76": 0.40886685944828904, "1239": 0.21973134129865812}
{"578": 0.24341360801328762}
{"565": 0.22537008065000699}
{"565": 0.22537008065000699}
{"852": 0.24665007174833561}
{"585": 0.20568709444011163, "593": 0.2111648504919568}
{"798": 0.23752138082151483}
{"1146": 0.26372473331822505}
{"970": 0.49241241628743165}
{"565": 0.22537008065000699}
{"1179": 0.23512073149405358}
{"1434": 0.24199816170253058}
{"137": 0.2303888589730046}
{"1310": 0.23764658131335351}
{"1430": 0.25725355551917889}
{"631": 0.22755810285217448}
{"694": 0.23557849339442957}
{"64": 0.24006964581180151}
{"1006": 0.41449628448151665}
{"674": 0.24046207318157189}
{"523": 0.2326400032896663}
{"523": 0.2326400032896663}
{"293": 0.25487102517929688}
{"745": 0.25646022913234029}
{"964": 0.24960912218491935}
{"899": 0.23962299579755325}
{"678": 0.47617484462379728}
{"1409": 0.22876936141504556}
{"500": 0.25316108127895848}
{"935": 0.25024624638360504}
{"694": 0.23557849339442957}
{"930": 0.24397712364164292}
{"842": 0.24971400597247123}
{"41": 0.23893312924561128}
{"500": 0.25316108127895848}
{"10": 0.23406045565083938}
{"938": 0.24081849542597181}
{"849": 0.21599952923357182, "1042": 0.21691626531835001, "1449": 0.22383080563615174, "1141": 0.21833538294901292, "247": 0.22693284763697358}
{"560": 0.2612410483304467}
{"567": 0.23239051559499777}
{"44": 0.25088912095966992}
{"578": 0.24341360801328762}
{"925": 0.24438902348815275}
{"685": 0.2407830851122072, "678": 0.22537824222837052}
{"1012": 0.25750021664711448, "678": 0.22537824222837052}
{"852": 0.24665007174833561}
{"151": 0.26128454362670561}
{"527": 0.24300391288770593}
{"1347": 0.22790454872534552, "1175": 0.22357866579787608}
{"942": 0.23721967139914463}
{"141": 0.25581976709249948}
{"788": 0.23779520229913709}
{"578": 0.24341360801328762}
{"969": 0.24555643831723051}
{"930": 0.24397712364164292}
{"578": 0.24341360801328762}
{"593": 0.22307253104567326}
{"565": 0.22537008065000699}
{"36": 0.23543685280498811}
{"952": 0.26686593300373918}
{"738": 0.45426349478116546}
{"44": 0.25088912095966992}
{"694": 0.23557849339442957}
{"915": 0.26148178514411891}
{"694": 0.23557849339442957}
{"576": 0.18564556757965958, "548": 0.18541124832192993, "581": 0.18863738882564113, "519": 0.18882982873769058, "1143": 0.17801192740093244, "492": 0.19238649675442196, "525": 0.18378408000683025, "498": 0.18214579951657511, "633": 0.1897550190960772, "535": 0.1838247094663058, "185": 0.18795764874691565, "603": 0.18373198921238931, "540": 0.19083171449275435, "574": 0.1789275813611691}
{"1123": 0.24285689571356381}
{"1347": 0.24075618836441365}
{"1457": 0.23949186744617962}
{"631": 0.22755810285217448}
{"1007": 0.2437537198484607}
{"1313": 0.25105740996079901}
{"137": 0.2303888589730046}
{"585": 0.43457176375036721}
{"496": 0.24591901488043832, "619": 0.2407540709168863}
{"1325": 0.2637374022414995}
{"44": 0.25088912095966992}
{"560": 0.2612410483304467}
{"529": 0.23796719398186578}
{"798": 0.23752138082151483}
{"509": 0.25746384133671257}
{"631": 0.22755810285217448}
{"336": 0.23998904711335559}
{"857": 0.24721943813444125}
{"1123": 0.24285689571356381}
{"102": 0.39871020965426923}
{"921": 0.23885438399743503, "692": 0.2692890122309623}
{"1061": 0.23418589807881479}
{"513": 0.2421764047236647}
{"1019": 0.46394596718371534}
{"951": 0.23480360996586586}
{"1000": 0.40487795347937966, "988": 0.43438296548875571}
|
{
"pile_set_name": "Github"
}
|
# 深度学习项目流程
tags: 深度学习
---
## 1. 定义问题
确定是分类问题还是回归问题,还是无监督问题。
## 2. 探索和清洗数据
**探索和进一步清洗数据集一直都是深度学习中最重要的一步。**
## 3. 选择模型并探索模型结果
探索模型的结果,通常是需要对模型在验证集上的性能进行进一步的分析,这是如何进一步提升模型性能很重要的步骤。将模型在训练集和验证集都进行结果的验证和可视化,可直观的分析出模型是否存在较大偏差以及结果的正确性。
## 4. 监控训练和验证误差
首先很多情况下,我们忽略代码的**规范性和算法**撰写正确性验证,这点上容易产生致命的影响。
在训练和验证都存在问题时,首先请**确认自己的代码是否正确**。其次,**根据训练和验证误差进一步追踪模型的拟合状态**。若训练数据集很小,此时监控误差则显得格外重要。确定了模型的拟合状态对进一步调整学习率的策略的选择或者其他有效超参数的选择则会更得心应手。
---
## 模型提升策略
### 1. 数据角度
数据增强。 扩充数据集。
### 2. 模型角度
提高模型复杂度,更改模型结构。
### 3. 调参角度
### 4. 训练角度
|
{
"pile_set_name": "Github"
}
|
### 10省全部沦陷 特鲁多宣布加拿大“封国”(直播)
------------------------
#### [首页](https://github.com/gfw-breaker/banned-news/blob/master/README.md) | [手把手翻墙教程](https://github.com/gfw-breaker/guides/wiki) | [禁闻聚合安卓版](https://github.com/gfw-breaker/bn-android) | [网门安卓版](https://github.com/oGate2/oGate) | [神州正道安卓版](https://github.com/SzzdOgate/update)
<div class="article_right" style="fone-color:#000">
<p style="text-align:center">
<img alt="" src="//img3.secretchina.com/pic/2020/3-17/p2649471a602677713-ss.jpg"/>
<br>
加拿大总理特鲁多(图片来源:视频截图)
<span id="hideid" name="hideid" style="color:red;display:none;">
<span href="https://www.secretchina.com">
</span>
</span>
</br>
</p>
<div id="txt-mid1-t21-2017">
---
</div>
</div>
<p>
【看中国2020年3月17日讯】(看中国记者朱莉多伦多报道)3月16日(周一),
<strong>
加拿大
</strong>
全国的
<strong>
<span href="https://www.secretchina.com/news/gb/tag/武汉肺炎" target="_blank">
武汉肺炎
</span>
(又称新型冠状病毒肺炎 COVID-19)
</strong>
确诊病例增加至377例。加拿大总理
<strong>
特鲁多
</strong>
宣布,加拿大将禁止外国公民入境(美国除外)。
<strong>
特鲁多
</strong>
亦敦促境外的加拿大人尽快回国。加拿大政府让国民即日起尽量待在家中,并说加拿大的食物很充足,让民众不必担心。
<span id="hideid" name="hideid" style="color:red;display:none;">
<span href="https://www.secretchina.com">
</span>
</span>
</p>
<p>
上周日,
<span href="https://www.secretchina.com/news/gb/tag/加拿大" target="_blank">
加拿大
</span>
首席卫生官Theresa Tam(谭咏诗)确认,武汉肺炎已经在加拿大大爆发。武汉肺炎疫情对于加拿大的公共卫生已造成严重威胁。现在,加拿大所有省份都已出现确诊,10个省无一幸免,全部沦陷。
</p>
<p>
总理
<span href="https://www.secretchina.com/news/gb/tag/特鲁多" target="_blank">
特鲁多
</span>
的母亲Margaret在接受CTV采访时透露,特鲁多全家17人,现在都在自我隔离中。
</p>
<p>
正在自我隔离的特鲁多周一在住所外召开新闻发布会,公布为减缓武汉肺炎传播而采取的一系列措施。
</p>
<p>
特鲁多说,这种病毒已经在世界范围内迅速传播,加拿大也不例外。因此,加拿大正在采取“日益严格的措施确保加拿大人的安全。”
</p>
<p>
除了限制外国人进入加国外,特鲁多还宣布限制国际航班降落地点,从3月18日起,国际航班将改道飞往蒙特利尔、多伦多、卡尔加里或温哥华机场,进行对乘客们专门的强化病毒筛查。但美国和墨西哥来的航班暂不受影响。
</p>
<p>
特鲁多说,为了保持加拿大的供应链不中断,新的边境管制措施将不适用于贸易和商业。
</p>
<p>
特鲁多强调,如果在海外的加拿大人,请尽快返回;如果刚刚回来,一定要自我隔离14天。所有加拿大人请尽量待在家里,尽量减少不必要的外出。
</p>
<p>
有记者质疑:为什么对美国公民依然保持开放?特鲁多说,会以保障加拿大安全为第一,一步一步会做,如果需要,不排除也禁止所有美国人进入。
</p>
<p>
特鲁多还说,任何表现出感染病毒症状的人都不允许登上飞往加拿大的航班,而且根据加拿大公共卫生局的指导方针,将要求航空运营人对每位旅客进行基本健康评
</p>
<p>
估。他说:“我知道这个消息将引起加拿大人出国旅行的担忧。我想向你保证,我们的政府会提供支持。”
</p>
<p>
特鲁多说:“为了帮助无症状的加拿大人返回家园,我们的政府将为需要上飞机的加拿大人制定一项支持计划。加拿大旅客将能够获得经济援助,以帮助他们支付返回家园或暂时满足基本需求的费用。他们等着回到加拿大。”
</p>
<p>
特鲁多还表示,他知道加拿大人的民生经济将受到很大影响,因此财政部和央行已经陆续推出许多政策,未来还会有更多支持经济的措施出台。
</p>
<p style="text-align:center">
<center>
<div>
<div id="txt-mid2-t22-2017" style="display: block; max-height: 351px; overflow: hidden;">
<div id="SC-21xxx">
</div>
<ins class="adsbygoogle" data-ad-client="ca-pub-1276641434651360" data-ad-format="auto" data-ad-slot="4301710469" data-full-width-responsive="true" style="display:block">
</ins>
</div>
</div>
</center>
<div style="padding-top:12px;">
</div>
</p>
</div>
<hr/>
手机上长按并复制下列链接或二维码分享本文章:<br/>
https://github.com/gfw-breaker/banned-news/blob/master/pages/p3/926486.md <br/>
<a href='https://github.com/gfw-breaker/banned-news/blob/master/pages/p3/926486.md'><img src='https://github.com/gfw-breaker/banned-news/blob/master/pages/p3/926486.md.png'/></a> <br/>
原文地址(需翻墙访问):https://www.secretchina.com/news/gb/2020/03/17/926486.html
------------------------
#### [首页](https://github.com/gfw-breaker/banned-news/blob/master/README.md) | [一键翻墙软件](https://github.com/gfw-breaker/nogfw/blob/master/README.md) | [《九评共产党》](https://github.com/gfw-breaker/9ping.md/blob/master/README.md#九评之一评共产党是什么) | [《解体党文化》](https://github.com/gfw-breaker/jtdwh.md/blob/master/README.md) | [《共产主义的终极目的》](https://github.com/gfw-breaker/gczydzjmd.md/blob/master/README.md)
<img src='http://gfw-breaker.win/banned-news/pages/p3/926486.md' width='0px' height='0px'/>
|
{
"pile_set_name": "Github"
}
|
146 val_146 val_146
146 val_146 val_146
146 val_146 val_146
146 val_146 val_146
150 val_150 val_150
213 val_213 val_213
213 val_213 val_213
213 val_213 val_213
213 val_213 val_213
238 val_238 val_238
238 val_238 val_238
238 val_238 val_238
238 val_238 val_238
255 val_255 val_255
255 val_255 val_255
255 val_255 val_255
255 val_255 val_255
273 val_273 val_273
273 val_273 val_273
273 val_273 val_273
273 val_273 val_273
273 val_273 val_273
273 val_273 val_273
273 val_273 val_273
273 val_273 val_273
273 val_273 val_273
278 val_278 val_278
278 val_278 val_278
278 val_278 val_278
278 val_278 val_278
311 val_311 val_311
311 val_311 val_311
311 val_311 val_311
311 val_311 val_311
311 val_311 val_311
311 val_311 val_311
311 val_311 val_311
311 val_311 val_311
311 val_311 val_311
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
401 val_401 val_401
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
406 val_406 val_406
66 val_66 val_66
98 val_98 val_98
98 val_98 val_98
98 val_98 val_98
98 val_98 val_98
|
{
"pile_set_name": "Github"
}
|
#include<stdio.h>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<math.h>
#define sd(x) scanf("%d",&x);
#define sd2(x,y) scanf("%d%d",&x,&y);
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z);
using namespace std;
int t, type, n, b, g, cost1, cost2;
vector<int> boys, girls;
string s;
int main(){
sd(t);
while(t--){
sd(type);
cin>>s;
n = s.length();
b = g = 0;
for(int i = 0; i < n; i++){
if(s[i] == 'B') b++;
else g++;
}
if(abs(b-g) > 1){
cout<< -1 <<endl;
continue;
}
if(type == 0){
//BGBG or GBGB
int indx = 0;
cost1 = 0;
cost2 = 0;
for(int i = 0; i < n; i++){
if(indx == 0 and s[i] == 'G') cost1++;
else if(indx == 1 and s[i] == 'B') cost1++;
indx = 1 - indx;
}
indx = 1;
for(int i = 0; i < n; i++){
if(indx == 0 and s[i] == 'G') cost2++;
else if(indx == 1 and s[i] == 'B') cost2++;
indx = 1 - indx;
}
if(cost1%2 == 1) cout<< cost2/2 <<endl;
else if(cost2%2 == 1) cout<< cost1/2 <<endl;
else cout<< (min(cost1, cost2)/2) <<endl;
}
else{
long long ans = 0, ans2 = 0;
b = g = 0;
for(int i = 0; i < n; i++){
if(s[i] == 'B'){
ans += abs(i - (2*b));
b++;
}
else{
ans += abs(i - (2*g + 1));
g++;
}
}
b = g = 0;
for(int i = 0; i < n; i++){
if(s[i] == 'G'){
ans2 += abs(i - (2*g));
g++;
}
else{
ans2 += abs(i - (2*b + 1));
b++;
}
}
if(ans%2 == 1){
cout<< ans2/2 << endl;
}
else if(ans2%2 == 1){
cout<< ans/2 <<endl;
}
else{
cout<< (min(ans, ans2)/2) <<endl;
}
}
}
return 0;
}
|
{
"pile_set_name": "Github"
}
|
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "golang",
"creationTimestamp": null,
"annotations": {
"openshift.io/display-name": "Go"
}
},
"spec": {
"lookupPolicy": {
"local": false
},
"tags": [
{
"name": "latest",
"annotations": {
"description": "Build and run Go applications on UBI. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/golang-container/blob/master/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version of Go available on OpenShift, including major version updates.",
"iconClass": "icon-go-gopher",
"openshift.io/display-name": "Go (Latest)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"sampleRepo": "https://github.com/sclorg/golang-ex.git",
"supports": "golang",
"tags": "builder,golang,go"
},
"from": {
"kind": "ImageStreamTag",
"name": "1.13.4-ubi8"
},
"generation": null,
"importPolicy": {},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "1.13.4-ubi8",
"annotations": {
"description": "Build and run Go applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/golang-container/blob/master/README.md.",
"iconClass": "icon-go-gopher",
"openshift.io/display-name": "Go 1.13.4 (UBI 8)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"sampleRepo": "https://github.com/sclorg/golang-ex.git",
"supports": "golang",
"tags": "builder,golang,go"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi8/go-toolset:1.13.4"
},
"generation": null,
"importPolicy": {},
"referencePolicy": {
"type": "Local"
}
},
{
"name": "1.13.4-ubi7",
"annotations": {
"description": "Build and run Go applications on UBI 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/golang-container/blob/master/README.md.",
"iconClass": "icon-go-gopher",
"openshift.io/display-name": "Go 1.13.4 (UBI 7)",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"sampleRepo": "https://github.com/sclorg/golang-ex.git",
"supports": "golang",
"tags": "builder,golang,go"
},
"from": {
"kind": "DockerImage",
"name": "registry.redhat.io/ubi7/go-toolset:1.13.4"
},
"generation": null,
"importPolicy": {},
"referencePolicy": {
"type": "Local"
}
}
]
},
"status": {
"dockerImageRepository": ""
}
}
|
{
"pile_set_name": "Github"
}
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Modals = factory());
}(this, (function () { 'use strict';
// https://stackoverflow.com/a/34624648
function copy(o) {
var _out, v, _key;
_out = Array.isArray(o) ? [] : {};
for (_key in o) {
v = o[_key];
_out[_key] = (typeof v === "object" && v !== null) ? copy(v) : v;
}
return _out;
}
// https://github.com/jaredreich/tread
function merge(oldObject, newObject, strict) {
var obj = oldObject
for (var key in newObject) {
if (typeof obj[key] === 'object' && obj[key] !== null) {
merge(obj[key], newObject[key])
} else {
if (strict) {
if (obj.hasOwnProperty(key)) {
obj[key] = newObject[key]
}
} else {
obj[key] = newObject[key]
}
}
}
return obj
}
function copyMerge(targ, src) {
return merge(copy(targ), copy(src));
}
var el = domvm.defineElement;
function Modals(opts) {
this.opts = opts || {};
var stack = this.stack = [];
var vm = this.vm = domvm.createView(ModalsView, this);
this.push = function(cfg) {
stack.push(copy(cfg));
vm.redraw();
};
this.pop = function(howMany) {
howMany = howMany || 1;
while (howMany--)
stack.pop();
vm.redraw();
};
this.mount = function(ctnr) {
vm.mount(ctnr);
};
}
function ModalsView(vm, mods) {
function initAttrs(cfg) {
return (cfg.attrs = {_hooks: genHooks(cfg)});
}
function updAttrs(cfg, attrs) {
return (cfg.attrs = copyMerge(cfg.attrs || {}, attrs || {}));
}
function genHooks(cfg) {
var push = cfg.onpush;
var pop = cfg.onpop;
var hooks = {};
if (push) {
if (push.initial) {
hooks.willInsert = function(node) {
node.patch(updAttrs(cfg, push.initial(node)));
};
}
if (push.delayed) {
hooks.didInsert = function(node) {
node.patch(updAttrs(cfg, push.delayed(node)));
// must determine if there's a transition to set up hook, assumed yes for now
// http://codepen.io/csuwldcat/pen/EempF
if (push.settled) {
var setPatch = function() {
node.patch(updAttrs(cfg, push.settled(node)));
};
node.patch(updAttrs(cfg, {ontransitionend: [setPatch]}));
}
};
}
}
if (pop) {
if (pop.initial || pop.delayed) {
hooks.willRemove = function(node) {
if (pop.initial)
node.patch(updAttrs(cfg, pop.initial(node)));
if (pop.delayed) {
return new Promise(function(resolve, reject) {
node.patch(updAttrs(cfg, merge(pop.delayed(node), {ontransitionend: [resolve]})));
});
}
};
}
}
return Object.keys(hooks).length > 0 ? hooks : null;
}
function modalTpl(i, stack) {
var cfg = stack[i];
var isLast = i === stack.length - 1;
var ovrAttrs = copy(cfg.overlay.attrs || initAttrs(cfg.overlay));
var cntAttrs = copy(cfg.content.attrs || initAttrs(cfg.content));
return el(".dv-modals-overlay", ovrAttrs, [
el(".dv-modals-content", cntAttrs, [
cfg.content.body(),
isLast ? null : modalTpl(i + 1, stack),
])
]);
}
return function() {
return el(".dv-modals", [
mods.stack.length > 0 && modalTpl(0, mods.stack)
]);
};
}
return Modals;
})));
/* usage */
var modals = new Modals();
modals.mount(document.body);
function dismiss() {
modals.pop();
}
// pop modal on overlay click
function overlayClick(e) {
if (e.target == e.currentTarget)
modals.pop();
}
// pop modal on esc
document.addEventListener("keyup", function(e) {
if (e.keyCode == 27)
modals.pop();
});
var el = domvm.defineElement,
tx = domvm.defineText;
var modalA = {
overlay: {
onpush: {
initial: function(node) { return {style: {opacity: 0, background: "rgba(128,255,255,.5)", position: "absolute"}, onclick: overlayClick}; }, // opacity: 1
delayed: function(node) { return {style: {opacity: 1, transition: "250ms"}}; },
},
onpop: {
delayed: function(node) { return {style: {opacity: 0, transition: "250ms"}}; },
}
},
content: {
body: function() { return (
el(".test1", [
el("p", "Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb."),
el("button.dismiss", {onclick: dismiss}, "Dismiss"),
])
)},
onpush: {
initial: function(node) { return {style: {height: 300, width: 600}}; }, // immediate
// delayed: function(node) { return {style: {color: "red", height: 600, transform: "rotateZ(360deg)", transition: "250ms"}}; }, // nextTick
// settled: function(node) { return {style: {color: "red", height: 600}}; }, // transitionend (shorthand for simply unsetting transition?)
},
onpop: {
// delayed: function(node) { return {style: {transition: "2s", opacity: 0}}; },
// initial: function(node) { return null; },
// delayed: function(node) { return {style: {color: "red", height: 600, transition: "500ms"}}; }, // nextTick
}
},
};
var modalB = {
overlay: {
onpush: {
initial: function(node) { return {style: {opacity: 0, background: "rgba(128,128,255,.5)", position: "absolute"}, onclick: overlayClick}; },
delayed: function(node) { return {style: {opacity: 1, transition: "250ms"}}; },
},
onpop: {
delayed: function(node) { return {style: {opacity: 0, transition: "250ms"}}; },
}
},
content: {
body: function() { return (
el(".test2", [
tx("bar"),
el("button.dismiss", {onclick: dismiss}, "Dismiss"),
])
)},
onpush: {
initial: function(node) { return {style: {height: 200, width: 400, transform: "translateX(-180px)"}}; },
delayed: function(node) { return {style: {transform: "translateX(0)", transition: "250ms"}}; },
},
onpop: {
initial: function(node) { return {style: {transform: "translateY(100px)", transition: "250ms"}}; },
// delayed: function(node) { return {style: {color: "red", height: 600, transition: "500ms"}}; }, // nextTick
}
},
};
var modalC = {
overlay: {
onpush: {
initial: function(node) { return {style: {opacity: 0, background: "rgba(255,128,255,.5)", position: "absolute"}, onclick: overlayClick}; },
delayed: function(node) { return {style: {opacity: 1, transition: "250ms"}}; },
},
onpop: {
delayed: function(node) { return {style: {opacity: 0, transition: "250ms"}}; },
}
},
content: {
body: function() { return (
el(".test3", [
tx("baz"),
el("button.dismiss", {onclick: dismiss}, "Dismiss"),
])
)},
onpush: {
initial: function(node) { return {style: {height: 600, transform: "rotateZ(-180deg)"}}; },
delayed: function(node) { return {style: {color: "blue", height: 200, transform: "none", transition: "250ms"}}; },
// settled: function(node) { return {style: {border: "1px solid red", transition: "0s"}}; },
},
onpop: {
initial: function(node) { return {style: {height: 600, transform: "rotateZ(-180deg)", transition: "250ms"}}; },
// delayed: function(node) { return {style: {color: "red", height: 600, transition: "500ms"}}; }, // nextTick
}
},
};
setTimeout(function() {
modals.push(modalA);
}, 0);
setTimeout(function() {
modals.push(modalB);
}, 1000);
setTimeout(function() {
modals.push(modalC);
}, 2000);
/*
setTimeout(function() {
modals.pop();
}, 3000);
setTimeout(function() {
modals.pop();
}, 4000);
setTimeout(function() {
modals.pop();
}, 5000);
*/
|
{
"pile_set_name": "Github"
}
|
package metro
import "encoding/binary"
func rotate_right(v uint64, k uint) uint64 {
return (v >> k) | (v << (64 - k))
}
func Hash128(buffer []byte, seed uint64) (uint64, uint64) {
const (
k0 = 0xC83A91E1
k1 = 0x8648DBDB
k2 = 0x7BDEC03B
k3 = 0x2F5870A5
)
ptr := buffer
var v [4]uint64
v[0] = (seed - k0) * k3
v[1] = (seed + k1) * k2
if len(ptr) >= 32 {
v[2] = (seed + k0) * k2
v[3] = (seed - k1) * k3
for len(ptr) >= 32 {
v[0] += binary.LittleEndian.Uint64(ptr) * k0
ptr = ptr[8:]
v[0] = rotate_right(v[0], 29) + v[2]
v[1] += binary.LittleEndian.Uint64(ptr) * k1
ptr = ptr[8:]
v[1] = rotate_right(v[1], 29) + v[3]
v[2] += binary.LittleEndian.Uint64(ptr) * k2
ptr = ptr[8:]
v[2] = rotate_right(v[2], 29) + v[0]
v[3] += binary.LittleEndian.Uint64(ptr) * k3
ptr = ptr[8:]
v[3] = rotate_right(v[3], 29) + v[1]
}
v[2] ^= rotate_right(((v[0]+v[3])*k0)+v[1], 21) * k1
v[3] ^= rotate_right(((v[1]+v[2])*k1)+v[0], 21) * k0
v[0] ^= rotate_right(((v[0]+v[2])*k0)+v[3], 21) * k1
v[1] ^= rotate_right(((v[1]+v[3])*k1)+v[2], 21) * k0
}
if len(ptr) >= 16 {
v[0] += binary.LittleEndian.Uint64(ptr) * k2
ptr = ptr[8:]
v[0] = rotate_right(v[0], 33) * k3
v[1] += binary.LittleEndian.Uint64(ptr) * k2
ptr = ptr[8:]
v[1] = rotate_right(v[1], 33) * k3
v[0] ^= rotate_right((v[0]*k2)+v[1], 45) * k1
v[1] ^= rotate_right((v[1]*k3)+v[0], 45) * k0
}
if len(ptr) >= 8 {
v[0] += binary.LittleEndian.Uint64(ptr) * k2
ptr = ptr[8:]
v[0] = rotate_right(v[0], 33) * k3
v[0] ^= rotate_right((v[0]*k2)+v[1], 27) * k1
}
if len(ptr) >= 4 {
v[1] += uint64(binary.LittleEndian.Uint32(ptr)) * k2
ptr = ptr[4:]
v[1] = rotate_right(v[1], 33) * k3
v[1] ^= rotate_right((v[1]*k3)+v[0], 46) * k0
}
if len(ptr) >= 2 {
v[0] += uint64(binary.LittleEndian.Uint16(ptr)) * k2
ptr = ptr[2:]
v[0] = rotate_right(v[0], 33) * k3
v[0] ^= rotate_right((v[0]*k2)+v[1], 22) * k1
}
if len(ptr) >= 1 {
v[1] += uint64(ptr[0]) * k2
v[1] = rotate_right(v[1], 33) * k3
v[1] ^= rotate_right((v[1]*k3)+v[0], 58) * k0
}
v[0] += rotate_right((v[0]*k0)+v[1], 13)
v[1] += rotate_right((v[1]*k1)+v[0], 37)
v[0] += rotate_right((v[0]*k2)+v[1], 13)
v[1] += rotate_right((v[1]*k3)+v[0], 37)
return v[0], v[1]
}
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>16B2333a</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>RealtekRTL8100</string>
<key>CFBundleIdentifier</key>
<string>com.insanelymac.RealtekRTL8100</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>RealtekRTL8100</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7D1014</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15E60</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<key>DTXcode</key>
<string>0731</string>
<key>DTXcodeBuild</key>
<string>7D1014</string>
<key>IOKitPersonalities</key>
<dict>
<key>RTL8100 PCIe Adapter</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.insanelymac.RealtekRTL8100</string>
<key>IOClass</key>
<string>RTL8100</string>
<key>IOPCIMatch</key>
<string>0x813610ec</string>
<key>IOProbeScore</key>
<integer>1000</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
<key>Model</key>
<string>RTL8111</string>
<key>Vendor</key>
<string>Realtek</string>
<key>enableCSO6</key>
<true/>
<key>enableEEE</key>
<true/>
<key>enableTSO4</key>
<true/>
<key>intrMitigate</key>
<integer>0</integer>
</dict>
</dict>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2014 Laura Müller. All rights reserved.</string>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IONetworkingFamily</key>
<string>1.5.0</string>
<key>com.apple.iokit.IOPCIFamily</key>
<string>1.7</string>
<key>com.apple.kpi.bsd</key>
<string>8.10.0</string>
<key>com.apple.kpi.iokit</key>
<string>8.10.0</string>
<key>com.apple.kpi.libkern</key>
<string>8.10.0</string>
<key>com.apple.kpi.mach</key>
<string>8.10.0</string>
</dict>
<key>OSBundleRequired</key>
<string>Network-Root</string>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
{
"actions": [
{
"verb": "createSPList",
"listName": "Manager on Duty",
"templateType": 100,
"subactions": [
{
"verb": "setDescription",
"description": "A list to keep track of which staff are on duty for a particular day"
},
{
"verb": "addSPFieldXml",
"schemaXml": "<Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Type=\"Text\" Name=\"Title\" DisplayName=\"Title\" Required=\"FALSE\" Hidden=\"TRUE\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" FromBaseType=\"TRUE\" CustomFormatter=\"\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" MaxLength=\"255\" />"
},
{
"verb": "addSPFieldXml",
"schemaXml": "<Field Name=\"Shift1\" FromBaseType=\"FALSE\" Type=\"MultiChoice\" DisplayName=\"Shift 1\" Required=\"FALSE\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" FillInChoice=\"TRUE\" ID=\"{78d998e1-0c4b-4f5a-a27c-86c131c95145}\" StaticName=\"Shift1\"><CHOICES><CHOICE>Adam</CHOICE><CHOICE>Joe</CHOICE><CHOICE>Sarah</CHOICE><CHOICE>Debbie</CHOICE><CHOICE>Roy</CHOICE></CHOICES></Field>"
},
{
"verb": "addSPFieldXml",
"schemaXml": "<Field Name=\"Shift2\" FromBaseType=\"FALSE\" Type=\"MultiChoice\" DisplayName=\"Shift 2\" Required=\"FALSE\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" FillInChoice=\"TRUE\" ID=\"{e9dd3147-bbf9-4a1b-a1d2-d714eb221d92}\" StaticName=\"Shift2\"><CHOICES><CHOICE>Adam</CHOICE><CHOICE>Joe</CHOICE><CHOICE>Sarah</CHOICE><CHOICE>Debbie</CHOICE><CHOICE>Roy</CHOICE></CHOICES></Field>"
},
{
"verb": "addSPFieldXml",
"schemaXml": "<Field Name=\"Shift3\" FromBaseType=\"FALSE\" Type=\"MultiChoice\" DisplayName=\"Shift 3\" Required=\"FALSE\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" FillInChoice=\"TRUE\" ID=\"{81e1510b-3bc8-498f-b004-c063ef8adfec}\" StaticName=\"Shift3\"><CHOICES><CHOICE>Adam</CHOICE><CHOICE>Joe</CHOICE><CHOICE>Sarah</CHOICE><CHOICE>Debbie</CHOICE><CHOICE>Roy</CHOICE></CHOICES></Field>"
},
{
"verb": "addSPFieldXml",
"schemaXml": "<Field DisplayName=\"Date\" FriendlyDisplayFormat=\"Disabled\" Format=\"DateOnly\" Title=\"Date\" Type=\"DateTime\" StaticName=\"Date\" Name=\"Date\" ID=\"{67489fdc-a11a-4fc3-b0a8-afaab27049d4}\" />"
},
{
"verb": "addSPFieldXml",
"schemaXml": "<Field Type=\"Calculated\" DisplayName=\"Day\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" Format=\"DateOnly\" LCID=\"2057\" ResultType=\"Text\" ReadOnly=\"TRUE\" StaticName=\"Day\" Name=\"Day\" CustomFormatter=\"\" Required=\"FALSE\" ID=\"{aae5ca32-0d2f-4c15-82ae-e24a42739f1c}\"><Formula>=TEXT(Date,\"DDDD\")</Formula></Field>"
},
{
"verb": "addSPView",
"name": "All Items",
"viewFields": [
"LinkTitle",
"Shift1",
"Shift2",
"Shift3",
"Date",
"Day"
],
"query": "<OrderBy><FieldRef Name=\"Date\" /></OrderBy>",
"rowLimit": 30,
"isPaged": true
},
{
"verb": "addSPView",
"name": "All Upcoming",
"viewFields": [
"Date",
"Day",
"Shift1",
"Shift2",
"Shift3"
],
"query": "<Where><Geq><FieldRef Name=\"Date\" /><Value Type=\"DateTime\"><Today /></Value></Geq></Where><OrderBy><FieldRef Name=\"Date\" Ascending=\"TRUE\" /></OrderBy>",
"rowLimit": 30,
"isPaged": true,
"makeDefault": true
},
{
"verb": "addSPView",
"name": "Todays Shifts",
"viewFields": [
"Date",
"Day",
"Shift1",
"Shift2",
"Shift3"
],
"query": "<OrderBy><FieldRef Name=\"ID\" /></OrderBy><Where><Eq><FieldRef Name=\"Date\" /><Value Type=\"DateTime\"><Today /></Value></Eq></Where>",
"rowLimit": 30,
"isPaged": true
}
]
}
]
}
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" ?>
<annotation>
<folder>widerface</folder>
<filename>6--Funeral_6_Funeral_Funeral_6_170.jpg</filename>
<source>
<database>wider face Database</database>
<annotation>PASCAL VOC2007</annotation>
<image>flickr</image>
<flickrid>-1</flickrid>
</source>
<owner>
<flickrid>yanyu</flickrid>
<name>yanyu</name>
</owner>
<size>
<width>1024</width>
<height>1122</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>64</xmin>
<ymin>202</ymin>
<xmax>126</xmax>
<ymax>275</ymax>
</bndbox>
<lm>
<x1>71.0</x1>
<y1>226.0</y1>
<x2>91.0</x2>
<y2>228.0</y2>
<x3>70.0</x3>
<y3>242.0</y3>
<x4>70.0</x4>
<y4>255.0</y4>
<x5>86.0</x5>
<y5>258.0</y5>
<visible>0</visible>
<blur>0.7</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>227</xmin>
<ymin>196</ymin>
<xmax>295</xmax>
<ymax>283</ymax>
</bndbox>
<lm>
<x1>232.996</x1>
<y1>225.772</y1>
<x2>254.411</x2>
<y2>226.871</y2>
<x3>234.094</x3>
<y3>246.089</y3>
<x4>236.839</x4>
<y4>263.112</y4>
<x5>253.312</x5>
<y5>263.112</y5>
<visible>0</visible>
<blur>0.7</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>532</xmin>
<ymin>229</ymin>
<xmax>603</xmax>
<ymax>320</ymax>
</bndbox>
<lm>
<x1>539.357</x1>
<y1>268.317</y1>
<x2>567.576</x2>
<y2>268.893</y2>
<x3>546.268</x3>
<y3>287.897</y3>
<x4>544.54</x4>
<y4>299.415</y4>
<x5>565.848</x5>
<y5>299.415</y5>
<visible>0</visible>
<blur>0.72</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>597</xmin>
<ymin>257</ymin>
<xmax>637</xmax>
<ymax>308</ymax>
</bndbox>
<lm>
<x1>606.246</x1>
<y1>275.33</y1>
<x2>623.192</x2>
<y2>275.33</y2>
<x3>611.46</x3>
<y3>287.388</y3>
<x4>610.482</x4>
<y4>297.165</y4>
<x5>620.911</x5>
<y5>296.839</y5>
<visible>0</visible>
<blur>0.64</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>776</xmin>
<ymin>257</ymin>
<xmax>825</xmax>
<ymax>328</ymax>
</bndbox>
<lm>
<x1>784.321</x1>
<y1>290.661</y1>
<x2>804.857</x2>
<y2>293.339</y2>
<x3>791.018</x3>
<y3>305.393</y3>
<x4>783.875</x4>
<y4>311.196</y4>
<x5>803.071</x5>
<y5>313.875</y5>
<visible>0</visible>
<blur>0.64</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>862</xmin>
<ymin>258</ymin>
<xmax>908</xmax>
<ymax>316</ymax>
</bndbox>
<lm>
<x1>870.179</x1>
<y1>278.719</y1>
<x2>887.594</x2>
<y2>280.201</y2>
<x3>871.661</x3>
<y3>288.723</y3>
<x4>867.585</x4>
<y4>302.804</y4>
<x5>882.036</x5>
<y5>303.915</y5>
<visible>1</visible>
<blur>0.68</blur>
</lm>
<has_lm>1</has_lm>
</object>
</annotation>
|
{
"pile_set_name": "Github"
}
|
<div class="apiDetail">
<div>
<h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onExpand</h2>
<h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
<div class="desc">
<p></p>
<div class="longdesc">
<p>用于捕获节点被展开的事件回调函数</p>
<p class="highlight_red">如果设置了 setting.callback.beforeExpand 方法,且返回 false,将无法触发 onExpand 事件回调函数。</p>
<p>默认值:null</p>
</div>
</div>
<h3>Function 参数说明</h3>
<div class="desc">
<h4><b>event</b><span>js event 对象</span></h4>
<p>标准的 js event 对象</p>
<h4 class="topLine"><b>treeId</b><span>String</span></h4>
<p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
<h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
<p>被展开的节点 JSON 数据对象</p>
</div>
<h3>setting & function 举例</h3>
<h4>1. 每次展开节点后, 弹出该节点的 tId、name 的信息</h4>
<pre xmlns=""><code>function zTreeOnExpand(event, treeId, treeNode) {
alert(treeNode.tId + ", " + treeNode.name);
};
var setting = {
callback: {
onExpand: zTreeOnExpand
}
};
......</code></pre>
</div>
</div>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" ?>
<annotation>
<folder>widerface</folder>
<filename>58--Hockey_58_Hockey_icehockey_puck_58_615.jpg</filename>
<source>
<database>wider face Database</database>
<annotation>PASCAL VOC2007</annotation>
<image>flickr</image>
<flickrid>-1</flickrid>
</source>
<owner>
<flickrid>yanyu</flickrid>
<name>yanyu</name>
</owner>
<size>
<width>1024</width>
<height>642</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>660</xmin>
<ymin>237</ymin>
<xmax>703</xmax>
<ymax>288</ymax>
</bndbox>
<lm>
<x1>681.478</x1>
<y1>251.094</y1>
<x2>685.062</x2>
<y2>249.138</y2>
<x3>696.469</x3>
<y3>257.286</y3>
<x4>691.58</x4>
<y4>271.625</y4>
<x5>694.188</x5>
<y5>268.692</y5>
<visible>1</visible>
<blur>0.61</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>143</xmin>
<ymin>139</ymin>
<xmax>187</xmax>
<ymax>189</ymax>
</bndbox>
<lm>
<x1>161.147</x1>
<y1>157.161</y1>
<x2>179.531</x2>
<y2>157.795</y2>
<x3>171.29</x3>
<y3>169.205</y3>
<x4>160.83</x4>
<y4>176.179</y4>
<x5>173.192</x5>
<y5>175.862</y5>
<visible>0</visible>
<blur>0.62</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>877</xmin>
<ymin>0</ymin>
<xmax>892</xmax>
<ymax>20</ymax>
</bndbox>
<lm>
<x1>884.277</x1>
<y1>5.469</y1>
<x2>888.964</x2>
<y2>5.58</y2>
<x3>891.754</x3>
<y3>8.482</y3>
<x4>886.621</x4>
<y4>14.844</y4>
<x5>889.969</x5>
<y5>14.955</y5>
<visible>1</visible>
<blur>0.27</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>752</xmin>
<ymin>44</ymin>
<xmax>777</xmax>
<ymax>74</ymax>
</bndbox>
<lm>
<x1>761.839</x1>
<y1>54.679</y1>
<x2>771.661</x2>
<y2>55.268</y2>
<x3>768.125</x3>
<y3>60.964</y3>
<x4>762.232</x4>
<y4>66.857</y4>
<x5>769.5</x5>
<y5>67.054</y5>
<visible>1</visible>
<blur>0.43</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>948</xmin>
<ymin>47</ymin>
<xmax>970</xmax>
<ymax>80</ymax>
</bndbox>
<lm>
<x1>964.0</x1>
<y1>62.0</y1>
<x2>968.0</x2>
<y2>64.0</y2>
<x3>970.0</x3>
<y3>70.0</y3>
<x4>964.0</x4>
<y4>74.0</y4>
<x5>967.0</x5>
<y5>76.0</y5>
<visible>1</visible>
<blur>0.34</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>612</xmin>
<ymin>1</ymin>
<xmax>629</xmax>
<ymax>24</ymax>
</bndbox>
<lm>
<x1>616.098</x1>
<y1>6.085</y1>
<x2>618.946</x2>
<y2>6.214</y2>
<x3>612.603</x3>
<y3>12.17</y3>
<x4>617.263</x4>
<y4>19.161</y4>
<x5>617.652</x5>
<y5>19.031</y5>
<visible>1</visible>
<blur>0.26</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>586</xmin>
<ymin>1</ymin>
<xmax>611</xmax>
<ymax>19</ymax>
</bndbox>
<lm>
<x1>593.821</x1>
<y1>1.357</y1>
<x2>604.429</x2>
<y2>0.393</y2>
<x3>600.25</x3>
<y3>6.5</y3>
<x4>596.554</x4>
<y4>12.929</y4>
<x5>604.429</x5>
<y5>11.321</y5>
<visible>1</visible>
<blur>0.3</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>556</xmin>
<ymin>28</ymin>
<xmax>575</xmax>
<ymax>59</ymax>
</bndbox>
<lm>
<x1>562.388</x1>
<y1>37.875</y1>
<x2>572.835</x2>
<y2>40.286</y2>
<x3>567.411</x3>
<y3>46.915</y3>
<x4>561.183</x4>
<y4>50.129</y4>
<x5>566.808</x5>
<y5>52.339</y5>
<visible>0</visible>
<blur>0.46</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>482</xmin>
<ymin>2</ymin>
<xmax>506</xmax>
<ymax>19</ymax>
</bndbox>
<lm>
<x1>494.455</x1>
<y1>3.259</y1>
<x2>504.018</x2>
<y2>2.045</y2>
<x3>501.286</x3>
<y3>7.661</y3>
<x4>497.491</x4>
<y4>13.429</y4>
<x5>502.955</x5>
<y5>13.429</y5>
<visible>0</visible>
<blur>0.37</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>239</xmin>
<ymin>20</ymin>
<xmax>262</xmax>
<ymax>54</ymax>
</bndbox>
<lm>
<x1>254.156</x1>
<y1>35.188</y1>
<x2>258.969</x2>
<y2>35.625</y2>
<x3>261.156</x3>
<y3>41.75</y3>
<x4>254.156</x4>
<y4>47.656</y4>
<x5>257.438</x5>
<y5>47.875</y5>
<visible>1</visible>
<blur>0.44</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>290</xmin>
<ymin>34</ymin>
<xmax>315</xmax>
<ymax>64</ymax>
</bndbox>
<lm>
<x1>295.438</x1>
<y1>42.25</y1>
<x2>303.688</x2>
<y2>42.062</y2>
<x3>296.938</x3>
<y3>50.125</y3>
<x4>296.188</x4>
<y4>56.125</y4>
<x5>302.938</x5>
<y5>55.562</y5>
<visible>0</visible>
<blur>0.39</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>204</xmin>
<ymin>1</ymin>
<xmax>225</xmax>
<ymax>16</ymax>
</bndbox>
<lm>
<x1>212.0</x1>
<y1>3.0</y1>
<x2>224.0</x2>
<y2>3.0</y2>
<x3>219.0</x3>
<y3>3.0</y3>
<x4>214.0</x4>
<y4>10.0</y4>
<x5>223.0</x5>
<y5>10.0</y5>
<visible>0</visible>
<blur>0.31</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>238</xmin>
<ymin>1</ymin>
<xmax>262</xmax>
<ymax>16</ymax>
</bndbox>
<lm>
<x1>249.0</x1>
<y1>3.0</y1>
<x2>261.0</x2>
<y2>3.0</y2>
<x3>257.0</x3>
<y3>2.0</y3>
<x4>252.0</x4>
<y4>8.0</y4>
<x5>259.0</x5>
<y5>8.0</y5>
<visible>0</visible>
<blur>0.3</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>96</xmin>
<ymin>43</ymin>
<xmax>123</xmax>
<ymax>81</ymax>
</bndbox>
<lm>
<x1>109.223</x1>
<y1>59.589</y1>
<x2>119.589</x2>
<y2>61.036</y2>
<x3>116.938</x3>
<y3>66.821</y3>
<x4>109.946</x4>
<y4>73.089</y4>
<x5>116.214</x5>
<y5>73.812</y5>
<visible>1</visible>
<blur>0.5</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>28</xmin>
<ymin>57</ymin>
<xmax>56</xmax>
<ymax>94</ymax>
</bndbox>
<lm>
<x1>41.973</x1>
<y1>74.027</y1>
<x2>52.857</x2>
<y2>72.844</y2>
<x3>50.018</x3>
<y3>81.125</y3>
<x4>44.339</x4>
<y4>88.46</y4>
<x5>52.147</x5>
<y5>87.513</y5>
<visible>0</visible>
<blur>0.52</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>153</xmin>
<ymin>9</ymin>
<xmax>173</xmax>
<ymax>28</ymax>
</bndbox>
<has_lm>0</has_lm>
</object>
</annotation>
|
{
"pile_set_name": "Github"
}
|
{
"schema_version": "2.0",
// All repositories must be an HTTP or HTTPS URL. HTTPS is vastly superior
// since verification of the source server is performed on SSL certificates.
"repositories": [
"http://sublime.wbond.net/packages.json",
"https://github.com/buymeasoda/soda-theme",
"https://github.com/SublimeText"
],
// The "packages_cache" is completely optional, but allows the
// channel to cache and deliver package data from multiple
// repositories in a single HTTP request, allowing for significantly
// improved performance.
"packages_cache": {
// The first level keys are the repository URLs
"http://sublime.wbond.net/packages.json": [
// Each repository has an array of packages with their fully
// expanded info. This means that the "details" key must be expanded
// into the various keys it provides.
{
"name": "Alignment",
"description": "Multi-line and multiple selection alignment plugin",
"author": "wbond",
"homepage": "http://wbond.net/sublime_packages/alignment",
"releases": [
{
"version": "2.0.0",
"url": "https://sublime.wbond.net/Alignment.sublime-package",
"date": "2011-09-18 20:12:41"
}
]
}
]
},
// Package Control ships with the SSL Certificate Authority (CA) cert for the
// SSL certificate that secures and identifies sublime.wbond.net. After this
// initial connection is made, the channel server provides a list of CA certs
// for the various URLs that Package Control need to connect to. This way the
// default channel (https://sublime.wbond.net/channel.json) can provide
// real-time updates to CA certs in the case that a CA is compromised. The
// CA certs are extracted from openssl, and the server runs on an LTS version
// of Ubuntu, which automatically applies security patches from the official
// Ubuntu repositories. This architecture helps to ensure that the packages
// being downloaded are from the source listed and that users are very
// unlikely to be the subject of the man-in-the-middle attack.
"certs": {
// All certs have the domain they apply to as the key
"sublime.wbond.net": [
// The value is an array of two elements, the first being an md5
// hash of the contents of the certificate. This helps in detecting
// CA cert changes. The second element is the URL where the cert
// can be downloaded, if it is not already installed on the user’s
// copy of Sublime Text.
"7f4f8622b4fd001c7f648e09aae7edaa",
"https://sublime.wbond.net/certs/7f4f8622b4fd001c7f648e09aae7edaa"
]
}
}
|
{
"pile_set_name": "Github"
}
|
<div class="usersettings">
<div class="row">
<div class="tabbable tabs-left col-md-2">
<ul class="nav nav-tabs" style="width: 100%">
<li class="userSettingsLink active"><a>User Settings</a></li>
<li class="oAuthCodesLink active"><a>OAuth Codes</a></li>
<li class="serializersLink"><a>Serializers</a></li>
<li class="deserializersLink"><a>Deserializers</a></li>
<li class="renderEnginesLink"><a>Render Engines</a></li>
<li class="queryEnginesLink"><a>Query Engines</a></li>
<li class="modelMergersLink"><a>Model Mergers</a></li>
<li class="modelComparesLink"><a>Model Compare Engines</a></li>
<li class="internalServicesLink"><a>Internal Services</a></li>
</ul>
</div>
<div class="tab-content col-md-10">
</div>
</div>
</div>
<script>
function UserSettings(main) {
var othis = this;
this.show = function(){
};
othis.pageChanger = new PageChanger($(".usersettings .nav"), $(".main .tab-content"));
this.showBasicUserSettings = function(callback, push) {
othis.pageChanger.changePage($(".userSettingsLink"), "basicusersettings.html", function(){
pushHistory({page: "UserSettings", subpage: "BasicUserSettings"}, "User Settings");
return new BasicUserSettings($(this), main);
}, callback, push);
};
this.showOAuthCodes = function(callback, push) {
othis.pageChanger.changePage($(".oAuthCodesLink"), "oauthcodes.html", function(){
pushHistory({page: "UserSettings", subpage: "OAuthCodes"}, "User Settings");
return new OAuthCodes($(this), main);
}, callback, push);
};
this.showSerializers = function(callback, push) {
othis.pageChanger.changePage($(".serializersLink"), "genericpluginsettingslist.html", function(){
pushHistory({page: "UserSettings", subpage: "Serializers"}, "User Settings");
return new GenericPluginSettingsList(main, othis, {
getAllMethodName: "getAllSerializers",
updateMethodName: "updateSerializer",
setDefaultMethodName: "setDefaultSerializer",
defaultFieldName: "defaultSerializerId",
createUpdateObject: function(pluginConfiguration){return {serializer: pluginConfiguration}},
type: "SSerializerPluginConfiguration",
listTitle: "Serializers",
showDetailsFunction: othis.showSerializer,
addTitle: "Add serializer",
showAddFunction: othis.showAddSerializer,
getAllDescriptorsFunction: "getAllSerializerPluginDescriptors",
showListFunction: othis.showSerializers,
addNewCall: "addSerializer"
});
}, callback, push);
};
this.showDeserializers = function(callback, push) {
othis.pageChanger.changePage($(".deserializersLink"), "genericpluginsettingslist.html", function(){
pushHistory({page: "UserSettings", subpage: "Deserializers"}, "User Settings");
return new GenericPluginSettingsList(main, othis, {
getAllMethodName: "getAllDeserializers",
updateMethodName: "updateDeserializer",
createUpdateObject: function(pluginConfiguration){return {deserializer: pluginConfiguration}},
listTitle: "Deserializers",
type: "SDeserializerPluginConfiguration",
showDetailsFunction: othis.showDeserializer,
addTitle: "Add deserializer",
showAddFunction: othis.showAddDeserializer,
getAllDescriptorsFunction: "getAllDeserializerPluginDescriptors",
showListFunction: othis.showDeserializers,
addNewCall: "addDeserializer"
});
}, callback, push);
};
this.showRenderEngines = function(callback, push) {
othis.pageChanger.changePage($(".renderEnginesLink"), "genericpluginsettingslist.html", function(){
pushHistory({page: "UserSettings", subpage: "RenderEngines"}, "User Settings");
return new GenericPluginSettingsList(main, othis, {
getAllMethodName: "getAllRenderEngines",
updateMethodName: "updateRenderEngine",
setDefaultMethodName: "setDefaultRenderEngine",
defaultFieldName: "defaultRenderEngineId",
createUpdateObject: function(pluginConfiguration){return {renderEngine: pluginConfiguration}},
type: "SRenderEnginePluginConfiguration",
listTitle: "Render Engines",
showDetailsFunction: othis.showRenderEngine,
addTitle: "Add Render Engine",
showAddFunction: othis.showAddRenderEngine,
getAllDescriptorsFunction: "getAllRenderEnginePluginDescriptors",
showListFunction: othis.showRenderEngines,
addNewCall: "addRenderEngine"
});
}, callback, push);
};
this.showQueryEngines = function(callback, push) {
othis.pageChanger.changePage($(".queryEnginesLink"), "genericpluginsettingslist.html", function(){
pushHistory({page: "UserSettings", subpage: "QueryEngines"}, "User Settings");
return new GenericPluginSettingsList(main, othis, {
getAllMethodName: "getAllQueryEngines",
updateMethodName: "updateQueryEngine",
setDefaultMethodName: "setDefaultQueryEngine",
defaultFieldName: "defaultQueryEngineId",
createUpdateObject: function(pluginConfiguration){return {queryEngine: pluginConfiguration}},
type: "SQueryEnginePluginConfiguration",
listTitle: "Query Engines",
showDetailsFunction: othis.showQueryEngine,
addTitle: "Add Query Engine",
showAddFunction: othis.showAddQueryEngine,
getAllDescriptorsFunction: "getAllQueryEnginePluginDescriptors",
showListFunction: othis.showQueryEngines,
addNewCall: "addQueryEngine"
});
}, callback, push);
};
this.showModelMergers = function(callback, push) {
othis.pageChanger.changePage($(".modelMergersLink"), "genericpluginsettingslist.html", function(){
pushHistory({page: "UserSettings", subpage: "ModelMergers"}, "User Settings");
return new GenericPluginSettingsList(main, othis, {
getAllMethodName: "getAllModelMergers",
updateMethodName: "updateModelMerger",
setDefaultMethodName: "setDefaultModelMerger",
defaultFieldName: "defaultModelMergerId",
createUpdateObject: function(pluginConfiguration){return {modelMerger: pluginConfiguration}},
type: "SModelMergerPluginConfiguration",
listTitle: "Model Mergers",
showDetailsFunction: othis.showModelMerger,
addTitle: "Add Model Merger",
showAddFunction: othis.showAddModelMerger,
getAllDescriptorsFunction: "getAllModelMergerPluginDescriptors",
showListFunction: othis.showModelMergers,
addNewCall: "addModelMerger"
});
}, callback, push);
};
this.showModelCompares = function(callback, push) {
othis.pageChanger.changePage($(".modelComparesLink"), "genericpluginsettingslist.html", function(){
pushHistory({page: "UserSettings", subpage: "ModelCompares"}, "User Settings");
return new GenericPluginSettingsList(main, othis, {
getAllMethodName: "getAllModelCompares",
updateMethodName: "updateModelCompare",
setDefaultMethodName: "setDefaultModelCompare",
defaultFieldName: "defaultModelCompareId",
createUpdateObject: function(pluginConfiguration){return {modelCompare: pluginConfiguration}},
type: "SModelComparePluginConfiguration",
listTitle: "Model Compares",
showDetailsFunction: othis.showModelCompare,
addTitle: "Add Model Compare",
showAddFunction: othis.showAddModelCompare,
getAllDescriptorsFunction: "getAllModelComparePluginDescriptors",
showListFunction: othis.showModelCompares,
addNewCall: "addModelCompare"
});
}, callback, push);
};
this.showInternalServices = function(callback, push) {
othis.pageChanger.changePage($(".internalServicesLink"), "genericpluginsettingslist.html", function(){
pushHistory({page: "UserSettings", subpage: "InternalServices"}, "User Settings");
return new GenericPluginSettingsList(main, othis, {
showListFunction: othis.showInternalServices,
getAllMethodName: "getAllInternalServices",
updateMethodName: "updateInternalService",
getSingle: "getInternalServiceById",
createUpdateObject: function(pluginConfiguration){return {internalService: pluginConfiguration}},
type: "SInternalServicePluginConfiguration",
listTitle: "Internal Services",
showDetailsFunction: othis.showInternalService,
addTitle: "Add Internal Service",
showAddFunction: othis.showAddInternalService,
getAllDescriptorsFunction: "getAllServicePluginDescriptors",
addNewCall: "addInternalService"
});
}, callback, push);
};
this.showSerializer = function(serializer, callback, push) {
var oid = typeof serializer == "number" ? serializer : serializer.oid;
othis.pageChanger.changePage($(".serializersLink"), "genericpluginsettings.html", function(){
pushHistory({page: "UserSettings", subpage: "Serializer", oid: oid}, "User Settings");
return new GenericPluginSettings(main, othis, oid, {
title: "Serializer",
getInterface: "ServiceInterface",
getMethod: "getSerializerById"
});
}, callback, push);
};
this.showAddSerializer = function(configuration, callback, push) {
othis.pageChanger.changePage($(".serializersLink"), "genericaddpluginsettings1.html", function(){
pushHistory({page: "UserSettings", subpage: "AddSerializer"}, "User Settings");
return new GenericAddPluginSettings1($(this), main, othis, configuration);
}, callback, push);
};
this.showDeserializer = function(deserializer, callback, push) {
var oid = typeof deserializer == "number" ? deserializer : deserializer.oid;
othis.pageChanger.changePage($(".deserializersLink"), "genericpluginsettings.html", function(){
pushHistory({page: "UserSettings", subpage: "Deserializer", oid: oid}, "User Settings");
return new GenericPluginSettings(main, othis, oid, {
title: "Deserializer",
getInterface: "ServiceInterface",
getMethod: "getDeserializerById"
});
}, callback, push);
};
this.showAddDeserializer = function(configuration, callback, push) {
othis.pageChanger.changePage($(".deserializersLink"), "genericaddpluginsettings1.html", function(){
pushHistory({page: "UserSettings", subpage: "AddDeserializer"}, "User Settings");
return new GenericAddPluginSettings1($(this), main, othis, configuration);
}, callback, push);
};
this.showRenderEngine = function(renderEngine, callback, push) {
var oid = typeof renderEngine == "number" ? renderEngine : renderEngine.oid;
othis.pageChanger.changePage($(".renderEnginesLink"), "genericpluginsettings.html", function(){
pushHistory({page: "UserSettings", subpage: "RenderEngine", oid: oid}, "User Settings");
return new GenericPluginSettings(main, othis, oid, {
title: "Render Engine",
getInterface: "PluginInterface",
getMethod: "getRenderEngineById"
});
}, callback, push);
};
this.showAddRenderEngine = function(configuration, callback, push) {
othis.pageChanger.changePage($(".renderEnginesLink"), "genericaddpluginsettings1.html", function(){
pushHistory({page: "UserSettings", subpage: "AddRenderEngine"}, "User Settings");
return new GenericAddPluginSettings1($(this), main, othis, configuration);
}, callback, push);
};
this.showQueryEngine = function(queryEngine, callback, push) {
var oid = typeof queryEngine == "number" ? queryEngine : queryEngine.oid;
othis.pageChanger.changePage($(".queryEnginesLink"), "genericpluginsettings.html", function(){
pushHistory({page: "UserSettings", subpage: "QueryEngine", oid: oid}, "User Settings");
return new GenericPluginSettings(main, othis, oid, {
title: "Query Engine",
getInterface: "ServiceInterface",
getMethod: "getQueryEngineById"
});
}, callback, push);
};
this.showAddQueryEngine = function(configuration, callback, push) {
othis.pageChanger.changePage($(".queryEnginesLink"), "genericaddpluginsettings1.html", function(){
pushHistory({page: "UserSettings", subpage: "AddQueryEngine"}, "User Settings");
return new GenericAddPluginSettings1($(this), main, othis, configuration);
}, callback, push);
};
this.showModelMerger = function(modelMerger, callback, push) {
var oid = typeof modelMerger == "number" ? modelMerger : modelMerger.oid;
othis.pageChanger.changePage($(".modelMergersLink"), "genericpluginsettings.html", function(){
pushHistory({page: "UserSettings", subpage: "ModelMerger", oid: oid}, "User Settings");
return new GenericPluginSettings(main, othis, oid, {
title: "Model Merger",
getInterface: "PluginInterface",
getMethod: "getModelMergerById"
});
}, callback, push);
};
this.showAddModelMerger = function(configuration, callback, push) {
othis.pageChanger.changePage($(".modelMergersLink"), "genericaddpluginsettings1.html", function(){
pushHistory({page: "UserSettings", subpage: "AddModelMerger"}, "User Settings");
return new GenericAddPluginSettings1($(this), main, othis, configuration);
}, callback, push);
};
this.showModelCompare = function(modelCompare, callback, push) {
var oid = typeof modelCompare == "number" ? modelCompare : modelCompare.oid;
othis.pageChanger.changePage($(".modelComparesLink"), "genericpluginsettings.html", function(){
pushHistory({page: "UserSettings", subpage: "ModelCompare", oid: oid}, "User Settings");
return new GenericPluginSettings(main, othis, oid, {
title: "Model Compare",
getInterface: "PluginInterface",
getMethod: "getModelCompareById"
});
}, callback, push);
};
this.showAddModelCompare = function(configuration, callback, push) {
othis.pageChanger.changePage($(".modelComparesLink"), "genericaddpluginsettings1.html", function(){
pushHistory({page: "UserSettings", subpage: "AddModelCompare"}, "User Settings");
return new GenericAddPluginSettings1($(this), main, othis, configuration);
}, callback, push);
};
this.showInternalService = function(internalService, callback, push) {
var oid = typeof internalService == "number" ? internalService : internalService.oid;
othis.pageChanger.changePage($(".internalServicesLink"), "genericpluginsettings.html", function(){
pushHistory({page: "UserSettings", subpage: "InternalService", oid: oid}, "User Settings");
return new GenericPluginSettings(main, othis, oid, {
title: "Internal Service",
getInterface: "PluginInterface",
getMethod: "getInternalServiceById"
});
}, callback, push);
};
this.showAddInternalService = function(configuration, callback, push) {
othis.pageChanger.changePage($(".internalServicesLink"), "genericaddpluginsettings1.html", function(){
pushHistory({page: "UserSettings", subpage: "AddInternalService"}, "User Settings");
return new GenericAddPluginSettings1($(this), main, othis, configuration);
}, callback, push);
};
this.close = function() {
};
$(".usersettings .userSettingsLink").click(function(){othis.showBasicUserSettings(null, true)});
$(".usersettings .oAuthCodesLink").click(function(){othis.showOAuthCodes(null, true)});
$(".usersettings .serializersLink").click(function(){othis.showSerializers(null, true)});
$(".usersettings .deserializersLink").click(function(){othis.showDeserializers(null, true)});
$(".usersettings .renderEnginesLink").click(function(){othis.showRenderEngines(null, true)});
$(".usersettings .queryEnginesLink").click(function(){othis.showQueryEngines(null, true)});
$(".usersettings .modelMergersLink").click(function(){othis.showModelMergers(null, true)});
$(".usersettings .modelComparesLink").click(function(){othis.showModelCompares(null, true)});
$(".usersettings .internalServicesLink").click(function(){othis.showInternalServices(null, true)});
var history = History.getState().data;
if (history.subpage == "Serializers") {
othis.showSerializers();
} else if (history.subpage == "Serializer") {
othis.showSerializer(parseInt(history.oid));
} else if (history.subpage == "OAuthCodes") {
othis.showOAuthCodes();
} else if (history.subpage == "Deserializers") {
othis.showDeserializers();
} else if (history.subpage == "Deserializer") {
othis.showDeserializer(parseInt(history.oid));
} else if (history.subpage == "RenderEngines") {
othis.showRenderEngines();
} else if (history.subpage == "RenderEngine") {
othis.showRenderEngine(parseInt(history.oid));
} else if (history.subpage == "QueryEngines") {
othis.showQueryEngines();
} else if (history.subpage == "QueryEngine") {
othis.showQueryEngine(parseInt(history.oid));
} else if (history.subpage == "ModelMergers") {
othis.showModelMergers();
} else if (history.subpage == "ModelMerger") {
othis.showModelMerger(parseInt(history.oid));
} else if (history.subpage == "ModelChecker") {
othis.showModelChecker(parseInt(history.oid));
} else if (history.subpage == "ModelCompares") {
othis.showModelCompares();
} else if (history.subpage == "ModelCompare") {
othis.showModelCompare(parseInt(history.oid));
} else if (history.subpage == "InternalServices") {
othis.showInternalServices();
} else if (history.subpage == "InternalService") {
othis.showInternalService(parseInt(history.oid));
} else if (history.subpage == "AddInternalService") {
othis.showInternalServices();
} else if (history.subpage == "BasicUserSettings") {
othis.showBasicUserSettings();
} else {
// othis.showBasicUserSettings();
}
}
</script>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_opt.xsd">
<SchemaVersion>1.0</SchemaVersion>
<Header>### uVision Project, (C) Keil Software</Header>
<Extensions>
<cExt>*.c</cExt>
<aExt>*.s*; *.src; *.a*</aExt>
<oExt>*.obj</oExt>
<lExt>*.lib</lExt>
<tExt>*.txt; *.h; *.inc</tExt>
<pExt>*.plm</pExt>
<CppX>*.cpp</CppX>
</Extensions>
<DaveTm>
<dwLowDateTime>0</dwLowDateTime>
<dwHighDateTime>0</dwHighDateTime>
</DaveTm>
<Target>
<TargetName>Target 1</TargetName>
<ToolsetNumber>0x4</ToolsetNumber>
<ToolsetName>ARM-ADS</ToolsetName>
<TargetOption>
<CLKADS>12000000</CLKADS>
<OPTTT>
<gFlags>1</gFlags>
<BeepAtEnd>1</BeepAtEnd>
<RunSim>1</RunSim>
<RunTarget>0</RunTarget>
</OPTTT>
<OPTHX>
<HexSelection>1</HexSelection>
<FlashByte>65535</FlashByte>
<HexRangeLowAddress>0</HexRangeLowAddress>
<HexRangeHighAddress>0</HexRangeHighAddress>
<HexOffset>0</HexOffset>
</OPTHX>
<OPTLEX>
<PageWidth>79</PageWidth>
<PageLength>66</PageLength>
<TabStop>8</TabStop>
<ListingPath>.\debug\</ListingPath>
</OPTLEX>
<ListingPage>
<CreateCListing>1</CreateCListing>
<CreateAListing>1</CreateAListing>
<CreateLListing>1</CreateLListing>
<CreateIListing>0</CreateIListing>
<AsmCond>1</AsmCond>
<AsmSymb>1</AsmSymb>
<AsmXref>0</AsmXref>
<CCond>1</CCond>
<CCode>0</CCode>
<CListInc>0</CListInc>
<CSymb>0</CSymb>
<LinkerCodeListing>0</LinkerCodeListing>
</ListingPage>
<OPTXL>
<LMap>1</LMap>
<LComments>1</LComments>
<LGenerateSymbols>1</LGenerateSymbols>
<LLibSym>1</LLibSym>
<LLines>1</LLines>
<LLocSym>1</LLocSym>
<LPubSym>1</LPubSym>
<LXref>0</LXref>
<LExpSel>0</LExpSel>
</OPTXL>
<OPTFL>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<IsCurrentTarget>1</IsCurrentTarget>
</OPTFL>
<CpuCode>255</CpuCode>
<DllOpt>
<SimDllName>SARMCM3.DLL</SimDllName>
<SimDllArguments></SimDllArguments>
<SimDlgDllName>DCM.DLL</SimDlgDllName>
<SimDlgDllArguments>-pCM3</SimDlgDllArguments>
<TargetDllName>SARMCM3.DLL</TargetDllName>
<TargetDllArguments></TargetDllArguments>
<TargetDlgDllName>TCM.DLL</TargetDlgDllName>
<TargetDlgDllArguments>-pCM3</TargetDlgDllArguments>
</DllOpt>
<DebugOpt>
<uSim>1</uSim>
<uTrg>0</uTrg>
<sLdApp>1</sLdApp>
<sGomain>1</sGomain>
<sRbreak>1</sRbreak>
<sRwatch>1</sRwatch>
<sRmem>1</sRmem>
<sRfunc>1</sRfunc>
<sRbox>1</sRbox>
<tLdApp>1</tLdApp>
<tGomain>0</tGomain>
<tRbreak>1</tRbreak>
<tRwatch>1</tRwatch>
<tRmem>1</tRmem>
<tRfunc>0</tRfunc>
<tRbox>1</tRbox>
<sRunDeb>0</sRunDeb>
<sLrtime>0</sLrtime>
<nTsel>-1</nTsel>
<sDll></sDll>
<sDllPa></sDllPa>
<sDlgDll></sDlgDll>
<sDlgPa></sDlgPa>
<sIfile>.\arm_linear_interp_example.ini</sIfile>
<tDll></tDll>
<tDllPa></tDllPa>
<tDlgDll></tDlgDll>
<tDlgPa></tDlgPa>
<tIfile></tIfile>
<pMon></pMon>
</DebugOpt>
<TargetDriverDllRegistry>
<SetRegEntry>
<Number>0</Number>
<Key>DLGDARM</Key>
<Name>(1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)</Name>
</SetRegEntry>
<SetRegEntry>
<Number>0</Number>
<Key>ARMDBGFLAGS</Key>
<Name>-T0</Name>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>175</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>454</Address>
<ByteObject>0</ByteObject>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename></Filename>
<ExecCommand></ExecCommand>
<Expression>\\arm_cortexM3l_linear_interp_example\../arm_linear_interp_example_f32.c\175</Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>178</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>456</Address>
<ByteObject>0</ByteObject>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename></Filename>
<ExecCommand></ExecCommand>
<Expression>\\arm_cortexM3l_linear_interp_example\../arm_linear_interp_example_f32.c\178</Expression>
</Bp>
</Breakpoint>
<DebugFlag>
<trace>0</trace>
<periodic>0</periodic>
<aLwin>1</aLwin>
<aCover>0</aCover>
<aSer1>0</aSer1>
<aSer2>0</aSer2>
<aPa>0</aPa>
<viewmode>1</viewmode>
<vrSel>0</vrSel>
<aSym>0</aSym>
<aTbox>0</aTbox>
<AscS1>0</AscS1>
<AscS2>0</AscS2>
<AscS3>0</AscS3>
<aSer3>0</aSer3>
<eProf>0</eProf>
<aLa>0</aLa>
<aPa1>0</aPa1>
<AscS4>0</AscS4>
<aSer4>0</aSer4>
<StkLoc>0</StkLoc>
<TrcWin>0</TrcWin>
<newCpu>0</newCpu>
<uProt>0</uProt>
</DebugFlag>
<LintExecutable></LintExecutable>
<LintConfigFile></LintConfigFile>
</TargetOption>
</Target>
<Group>
<GroupName>Source Group 1</GroupName>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>1</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\arm_linear_interp_example_f32.c</PathWithFileName>
<FilenameWithoutPath>arm_linear_interp_example_f32.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>2</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\arm_linear_interp_data.c</PathWithFileName>
<FilenameWithoutPath>arm_linear_interp_data.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>3</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\Common\Source\math_helper.c</PathWithFileName>
<FilenameWithoutPath>math_helper.c</FilenameWithoutPath>
</File>
</Group>
<Group>
<GroupName>CMSIS DeviceSupport</GroupName>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>4</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\system_ARMCM3.c</PathWithFileName>
<FilenameWithoutPath>system_ARMCM3.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>5</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>.\startup_ARMCM3.s</PathWithFileName>
<FilenameWithoutPath>startup_ARMCM3.s</FilenameWithoutPath>
</File>
</Group>
<Group>
<GroupName>CMSIS SW_DSP_Library</GroupName>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>6</FileNumber>
<FileType>4</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\..\Lib\ARM\arm_cortexM3l_math.lib</PathWithFileName>
<FilenameWithoutPath>arm_cortexM3l_math.lib</FilenameWithoutPath>
</File>
</Group>
<MDIGroups>
<Orientation>1</Orientation>
<ActiveMDIGroup>0</ActiveMDIGroup>
<MDIGroup>
<Size>100</Size>
<ActiveTab>0</ActiveTab>
<Documents>
<Doc>
<Name>..\arm_linear_interp_example_f32.c</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>
</Doc>
</Documents>
</MDIGroup>
</MDIGroups>
</ProjectOpt>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_opt.xsd">
<SchemaVersion>1.0</SchemaVersion>
<Header>### uVision Project, (C) Keil Software</Header>
<Extensions>
<cExt>*.c</cExt>
<aExt>*.s*; *.src; *.a*</aExt>
<oExt>*.obj</oExt>
<lExt>*.lib</lExt>
<tExt>*.txt; *.h; *.inc</tExt>
<pExt>*.plm</pExt>
<CppX>*.cpp</CppX>
</Extensions>
<DaveTm>
<dwLowDateTime>0</dwLowDateTime>
<dwHighDateTime>0</dwHighDateTime>
</DaveTm>
<Target>
<TargetName>Target 1</TargetName>
<ToolsetNumber>0x4</ToolsetNumber>
<ToolsetName>ARM-ADS</ToolsetName>
<TargetOption>
<CLKADS>12000000</CLKADS>
<OPTTT>
<gFlags>1</gFlags>
<BeepAtEnd>1</BeepAtEnd>
<RunSim>1</RunSim>
<RunTarget>0</RunTarget>
</OPTTT>
<OPTHX>
<HexSelection>1</HexSelection>
<FlashByte>65535</FlashByte>
<HexRangeLowAddress>0</HexRangeLowAddress>
<HexRangeHighAddress>0</HexRangeHighAddress>
<HexOffset>0</HexOffset>
</OPTHX>
<OPTLEX>
<PageWidth>79</PageWidth>
<PageLength>66</PageLength>
<TabStop>8</TabStop>
<ListingPath>.\debug\</ListingPath>
</OPTLEX>
<ListingPage>
<CreateCListing>1</CreateCListing>
<CreateAListing>1</CreateAListing>
<CreateLListing>1</CreateLListing>
<CreateIListing>0</CreateIListing>
<AsmCond>1</AsmCond>
<AsmSymb>1</AsmSymb>
<AsmXref>0</AsmXref>
<CCond>1</CCond>
<CCode>0</CCode>
<CListInc>0</CListInc>
<CSymb>0</CSymb>
<LinkerCodeListing>0</LinkerCodeListing>
</ListingPage>
<OPTXL>
<LMap>1</LMap>
<LComments>1</LComments>
<LGenerateSymbols>1</LGenerateSymbols>
<LLibSym>1</LLibSym>
<LLines>1</LLines>
<LLocSym>1</LLocSym>
<LPubSym>1</LPubSym>
<LXref>0</LXref>
<LExpSel>0</LExpSel>
</OPTXL>
<OPTFL>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<IsCurrentTarget>1</IsCurrentTarget>
</OPTFL>
<CpuCode>255</CpuCode>
<DllOpt>
<SimDllName>SARMCM3.DLL</SimDllName>
<SimDllArguments></SimDllArguments>
<SimDlgDllName>DCM.DLL</SimDlgDllName>
<SimDlgDllArguments>-pCM4</SimDlgDllArguments>
<TargetDllName>SARMCM3.DLL</TargetDllName>
<TargetDllArguments></TargetDllArguments>
<TargetDlgDllName>TCM.DLL</TargetDlgDllName>
<TargetDlgDllArguments>-pCM4</TargetDlgDllArguments>
</DllOpt>
<DebugOpt>
<uSim>1</uSim>
<uTrg>0</uTrg>
<sLdApp>1</sLdApp>
<sGomain>1</sGomain>
<sRbreak>1</sRbreak>
<sRwatch>1</sRwatch>
<sRmem>1</sRmem>
<sRfunc>1</sRfunc>
<sRbox>1</sRbox>
<tLdApp>1</tLdApp>
<tGomain>0</tGomain>
<tRbreak>1</tRbreak>
<tRwatch>1</tRwatch>
<tRmem>1</tRmem>
<tRfunc>0</tRfunc>
<tRbox>1</tRbox>
<sRunDeb>0</sRunDeb>
<sLrtime>0</sLrtime>
<nTsel>-1</nTsel>
<sDll></sDll>
<sDllPa></sDllPa>
<sDlgDll></sDlgDll>
<sDlgPa></sDlgPa>
<sIfile>.\arm_signal_converge_example.ini</sIfile>
<tDll></tDll>
<tDllPa></tDllPa>
<tDlgDll></tDlgDll>
<tDlgPa></tDlgPa>
<tIfile></tIfile>
<pMon></pMon>
</DebugOpt>
<TargetDriverDllRegistry>
<SetRegEntry>
<Number>0</Number>
<Key>DLGDARM</Key>
<Name>(1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)</Name>
</SetRegEntry>
<SetRegEntry>
<Number>0</Number>
<Key>ARMDBGFLAGS</Key>
<Name>-T0</Name>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>237</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>426</Address>
<ByteObject>0</ByteObject>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename></Filename>
<ExecCommand></ExecCommand>
<Expression>\\arm_cortexM4lf_signal_converge_example\../arm_signal_converge_example_f32.c\237</Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>240</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>428</Address>
<ByteObject>0</ByteObject>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename></Filename>
<ExecCommand></ExecCommand>
<Expression>\\arm_cortexM4lf_signal_converge_example\../arm_signal_converge_example_f32.c\240</Expression>
</Bp>
</Breakpoint>
<DebugFlag>
<trace>0</trace>
<periodic>0</periodic>
<aLwin>1</aLwin>
<aCover>0</aCover>
<aSer1>0</aSer1>
<aSer2>0</aSer2>
<aPa>0</aPa>
<viewmode>1</viewmode>
<vrSel>0</vrSel>
<aSym>0</aSym>
<aTbox>0</aTbox>
<AscS1>0</AscS1>
<AscS2>0</AscS2>
<AscS3>0</AscS3>
<aSer3>0</aSer3>
<eProf>0</eProf>
<aLa>0</aLa>
<aPa1>0</aPa1>
<AscS4>0</AscS4>
<aSer4>0</aSer4>
<StkLoc>0</StkLoc>
<TrcWin>0</TrcWin>
<newCpu>0</newCpu>
<uProt>0</uProt>
</DebugFlag>
<LintExecutable></LintExecutable>
<LintConfigFile></LintConfigFile>
</TargetOption>
</Target>
<Group>
<GroupName>Source Group 1</GroupName>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>1</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\arm_signal_converge_data.c</PathWithFileName>
<FilenameWithoutPath>arm_signal_converge_data.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>2</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\arm_signal_converge_example_f32.c</PathWithFileName>
<FilenameWithoutPath>arm_signal_converge_example_f32.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>3</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\Common\Source\math_helper.c</PathWithFileName>
<FilenameWithoutPath>math_helper.c</FilenameWithoutPath>
</File>
</Group>
<Group>
<GroupName>CMSIS DeviceSupport</GroupName>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>4</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\system_ARMCM4.c</PathWithFileName>
<FilenameWithoutPath>system_ARMCM4.c</FilenameWithoutPath>
</File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>5</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>.\startup_ARMCM4.s</PathWithFileName>
<FilenameWithoutPath>startup_ARMCM4.s</FilenameWithoutPath>
</File>
</Group>
<Group>
<GroupName>CMSIS SW_DSP_Library</GroupName>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>6</FileNumber>
<FileType>4</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
<TopLine>0</TopLine>
<CurrentLine>0</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\..\Lib\ARM\arm_cortexM4lf_math.lib</PathWithFileName>
<FilenameWithoutPath>arm_cortexM4lf_math.lib</FilenameWithoutPath>
</File>
</Group>
<MDIGroups>
<Orientation>1</Orientation>
<ActiveMDIGroup>0</ActiveMDIGroup>
<MDIGroup>
<Size>100</Size>
<ActiveTab>0</ActiveTab>
<Documents>
<Doc>
<Name>..\arm_signal_converge_example_f32.c</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>
</Doc>
</Documents>
</MDIGroup>
</MDIGroups>
</ProjectOpt>
|
{
"pile_set_name": "Github"
}
|
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\01 类模板语法.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\01 类模板语法.CPP
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\02 类模板与函数模板区别.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\02 类模板与函数模板区别.CPP
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\03 类模板中成员函数创建时机.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\03 类模板中成员函数创建时机.CPP
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\04 类模板对象做函数参数.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\04 类模板对象做函数参数.CPP
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\05 类模板与继承.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\05 类模板与继承.CPP
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\06 类模板成员函数类外实现.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\06 类模板成员函数类外实现.CPP
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\07 类模板分文件编写.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\07 类模板分文件编写.CPP
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\08 类模板与友元.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\08 类模板与友元.CPP
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\PERSON.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\PERSON.CPP
^F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\09 类模板案例-数组类封装.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:classic /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"DEBUG\\" /Fd"DEBUG\VC141.PDB" /Gd /TP /analyze- /FC F:\VS项目\C++提高\第三阶段-录制代码\01 类模板语法\01 类模板语法\09 类模板案例-数组类封装.CPP
|
{
"pile_set_name": "Github"
}
|
-----BEGIN CERTIFICATE-----
MIIEqDCCA5CgAwIBAgIJAJNurL4H8gHfMA0GCSqGSIb3DQEBBQUAMIGUMQswCQYD
VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g
VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE
AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe
Fw0wODAyMjkwMTMzNDZaFw0zNTA3MTcwMTMzNDZaMIGUMQswCQYDVQQGEwJVUzET
MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G
A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p
ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI
hvcNAQEBBQADggENADCCAQgCggEBANaTGQTexgskse3HYuDZ2CU+Ps1s6x3i/waM
qOi8qM1r03hupwqnbOYOuw+ZNVn/2T53qUPn6D1LZLjk/qLT5lbx4meoG7+yMLV4
wgRDvkxyGLhG9SEVhvA4oU6Jwr44f46+z4/Kw9oe4zDJ6pPQp8PcSvNQIg1QCAcy
4ICXF+5qBTNZ5qaU7Cyz8oSgpGbIepTYOzEJOmc3Li9kEsBubULxWBjf/gOBzAzU
RNps3cO4JFgZSAGzJWQTT7/emMkod0jb9WdqVA2BVMi7yge54kdVMxHEa5r3b97s
zI5p58ii0I54JiCUP5lyfTwE/nKZHZnfm644oLIXf6MdW2r+6R8CAQOjgfwwgfkw
HQYDVR0OBBYEFEhZAFY9JyxGrhGGBaR0GawJyowRMIHJBgNVHSMEgcEwgb6AFEhZ
AFY9JyxGrhGGBaR0GawJyowRoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE
CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH
QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG
CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJAJNurL4H8gHfMAwGA1Ud
EwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAHqvlozrUMRBBVEY0NqrrwFbinZa
J6cVosK0TyIUFf/azgMJWr+kLfcHCHJsIGnlw27drgQAvilFLAhLwn62oX6snb4Y
LCBOsVMR9FXYJLZW2+TcIkCRLXWG/oiVHQGo/rWuWkJgU134NDEFJCJGjDbiLCpe
+ZTWHdcwauTJ9pUbo8EvHRkU3cYfGmLaLfgn9gP+pWA7LFQNvXwBnDa6sppCccEX
31I828XzgXpJ4O+mDL1/dBd+ek8ZPUP0IgdyZm5MTYPhvVqGCHzzTy3sIeJFymwr
sBbmg2OAUNLEMO6nwmocSdN2ClirfxqCzJOLSDE4QyS9BAH6EhY6UFcOaE0=
-----END CERTIFICATE-----
|
{
"pile_set_name": "Github"
}
|
{*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!-- {if isset($orderProducts) && count($orderProducts) > 0}
<div class="crossseling-content">
<h2>{l s='Customers who bought this product also bought:' mod='blockcart'}</h2>
<div id="blockcart_list">
<ul id="blockcart_caroucel">
{foreach from=$orderProducts item='orderProduct' name=orderProduct}
<li>
<div class="product-image-container">
<a href="{$orderProduct.link|escape:'html':'UTF-8'}" title="{$orderProduct.name|htmlspecialchars}" class="lnk_img">
<img class="img-responsive" src="{$orderProduct.image}" alt="{$orderProduct.name|htmlspecialchars}" />
</a>
</div>
<p class="product-name">
<a href="{$orderProduct.link|escape:'html':'UTF-8'}" title="{$orderProduct.name|htmlspecialchars}">
{$orderProduct.name|truncate:15:'...'|escape:'html':'UTF-8'}
</a>
</p>
{if $orderProduct.show_price == 1 AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
<span class="price_display">
<span class="price">{convertPrice price=$orderProduct.displayed_price}</span>
</span>
{/if}
</li>
{/foreach}
</ul>
</div>
</div>
{/if} -->
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>18B57c</string>
<key>CFBundleExecutable</key>
<string>VoodooPS2Mouse</string>
<key>CFBundleGetInfoString</key>
<string>1.9.2, Copyright Apple Computer, Inc. 2000-2004, Slice 2010, RehabMan 2012-2013</string>
<key>CFBundleIdentifier</key>
<string>org.rehabman.voodoo.driver.PS2Mouse</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Voodoo PS/2 Mouse</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.9.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.9.2</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>10A255</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>18A384</string>
<key>DTSDKName</key>
<string>macosx10.14</string>
<key>DTXcode</key>
<string>1000</string>
<key>DTXcodeBuild</key>
<string>10A255</string>
<key>IOKitPersonalities</key>
<dict>
<key>ApplePS2Mouse</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.voodoo.driver.PS2Mouse</string>
<key>HIDPointerAccelerationType</key>
<string>HIDTrackpadAcceleration</string>
<key>HIDScrollAccelerationType</key>
<string>HIDTrackpadScrollAcceleration</string>
<key>IOClass</key>
<string>ApplePS2Mouse</string>
<key>IOProviderClass</key>
<string>ApplePS2MouseDevice</string>
<key>Platform Profile</key>
<dict>
<key>Default</key>
<dict>
<key>ActLikeTrackpad</key>
<false/>
<key>ButtonCount</key>
<integer>3</integer>
<key>Darwin 16+</key>
<dict>
<key>ApplePreferenceCapability</key>
<true/>
<key>ApplePreferenceIdentifier</key>
<string>com.apple.AppleMultitouchTrackpad</string>
<key>MT Built-in</key>
<true/>
<key>MTHIDDevice</key>
<true/>
<key>SupportsGestureScrolling</key>
<true/>
<key>TrackpadEmbedded</key>
<true/>
<key>TrackpadFourFingerGestures</key>
<false/>
<key>TrackpadSecondaryClickCorners</key>
<true/>
<key>TrackpadThreeFingerDrag</key>
<false/>
</dict>
<key>DefaultResolution</key>
<integer>240</integer>
<key>DisableDevice</key>
<false/>
<key>DisableLEDUpdating</key>
<false/>
<key>FakeMiddleButton</key>
<false/>
<key>ForceDefaultResolution</key>
<true/>
<key>ForceSetResolution</key>
<false/>
<key>MiddleClickTime</key>
<integer>100000000</integer>
<key>MouseCount</key>
<integer>0</integer>
<key>MouseYInverter</key>
<integer>1</integer>
<key>ProcessBluetoothMouseStopsTrackpad</key>
<true/>
<key>ProcessUSBMouseStopsTrackpad</key>
<true/>
<key>QuietTimeAfterTyping</key>
<integer>500000000</integer>
<key>ResolutionMode</key>
<integer>3</integer>
<key>ScrollResolution</key>
<integer>5</integer>
<key>ScrollYInverter</key>
<integer>1</integer>
<key>TrackpadScroll</key>
<true/>
<key>WakeDelay</key>
<integer>1000</integer>
</dict>
<key>HPQOEM</key>
<dict>
<key>1411</key>
<string>ProBook</string>
<key>1619</key>
<string>ProBook</string>
<key>161C</key>
<string>ProBook</string>
<key>164F</key>
<string>ProBook</string>
<key>167C</key>
<string>ProBook</string>
<key>167E</key>
<string>ProBook</string>
<key>1680</key>
<string>ProBook</string>
<key>179B</key>
<string>ProBook</string>
<key>179C</key>
<string>ProBook</string>
<key>17A9</key>
<string>ProBook</string>
<key>17F0</key>
<string>ProBook</string>
<key>17F3</key>
<string>ProBook</string>
<key>17F6</key>
<string>ProBook</string>
<key>1942</key>
<string>ProBook</string>
<key>1949</key>
<string>ProBook</string>
<key>198F</key>
<string>ProBook</string>
<key>ProBook</key>
<dict>
<key>ActLikeTrackpad</key>
<true/>
<key>DisableDevice</key>
<true/>
</dict>
<key>ProBook-102</key>
<string>ProBook</string>
<key>ProBook-87</key>
<string>ProBook</string>
</dict>
</dict>
<key>ProductID</key>
<integer>547</integer>
<key>RM,deliverNotifications</key>
<true/>
<key>USBMouseStopsTrackpad</key>
<integer>0</integer>
<key>VendorID</key>
<integer>1452</integer>
</dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOHIDFamily</key>
<string>1.0.0b1</string>
<key>com.apple.kpi.iokit</key>
<string>9.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>9.0.0</string>
<key>com.apple.kpi.mach</key>
<string>9.0.0</string>
<key>org.rehabman.voodoo.driver.PS2Controller</key>
<string>1.9.2</string>
</dict>
<key>OSBundleRequired</key>
<string>Console</string>
<key>Source Code</key>
<string>https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller</string>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AdvancedSpatialSoundsXDK", "AdvancedSpatialSoundsXDK.vcxproj", "{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DirectXTK_XboxOneXDK_2015", "..\..\..\Kits\DirectXTK\DirectXTK_XboxOneXDK_2015.vcxproj", "{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Durango = Debug|Durango
Profile|Durango = Profile|Durango
Release|Durango = Release|Durango
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Debug|Durango.ActiveCfg = Debug|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Debug|Durango.Build.0 = Debug|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Profile|Durango.ActiveCfg = Profile|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Profile|Durango.Build.0 = Profile|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Release|Durango.ActiveCfg = Release|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Release|Durango.Build.0 = Release|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Debug|Durango.ActiveCfg = Debug|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Debug|Durango.Build.0 = Debug|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Debug|Durango.Deploy.0 = Debug|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Profile|Durango.ActiveCfg = Profile|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Profile|Durango.Build.0 = Profile|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Profile|Durango.Deploy.0 = Profile|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Release|Durango.ActiveCfg = Release|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Release|Durango.Build.0 = Release|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Release|Durango.Deploy.0 = Release|Durango
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
|
{
"pile_set_name": "Github"
}
|
# CVS $Revision$ $Author$ -- Mon Nov 10 23:40:38 2008 -- reformated by prettylst.pl v1.38 (build 8180)
#
# Spycraft PCGen dataset by Eddy Anthony
#
SOURCELONG:AEG Spycraft SOURCESHORT:Spycraft SOURCEWEB:http://www.crafty-games.com/product_catalog/spycraftfirsted SOURCEDATE:2003-01
# Personal Vehicles ----------------------------
# Equipment Name Type Contains Cost Size Source Page Modify VAR
ATC (3-wheeler) TYPE:Vehicle.Personal.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:M SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|150 BONUS:VAR|VEHICLEDEFENSE|15 BONUS:VAR|VEHICLEHANDLING|5 BONUS:VAR|VEHICLEWOUNDPOINTS|20 BONUS:VAR|VEHICLEHARDNESS|2
Bicycle TYPE:Vehicle.Personal.Standard.Container CONTAINS:*UNLIM COST:0 SIZE:M SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|50 BONUS:VAR|VEHICLEDEFENSE|16 BONUS:VAR|VEHICLEHANDLING|6 BONUS:VAR|VEHICLEWOUNDPOINTS|30 BONUS:VAR|VEHICLEHARDNESS|1
Jet Ski TYPE:Vehicle.Personal.Standard.Container CONTAINS:*UNLIM COST:1 SIZE:M SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|150 BONUS:VAR|VEHICLEDEFENSE|14 BONUS:VAR|VEHICLEHANDLING|4 BONUS:VAR|VEHICLEWOUNDPOINTS|30 BONUS:VAR|VEHICLEHARDNESS|1
Motorcycle (Chopper) TYPE:Vehicle.Personal.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|400 BONUS:VAR|VEHICLEDEFENSE|15 BONUS:VAR|VEHICLEHANDLING|6 BONUS:VAR|VEHICLEWOUNDPOINTS|50 BONUS:VAR|VEHICLEHARDNESS|2
Motorcycle (Dirt Bike) TYPE:Vehicle.Personal.Standard.Container CONTAINS:*UNLIM COST:1 SIZE:M SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|200 BONUS:VAR|VEHICLEDEFENSE|16 BONUS:VAR|VEHICLEHANDLING|6 BONUS:VAR|VEHICLEWOUNDPOINTS|30 BONUS:VAR|VEHICLEHARDNESS|2
Motorcycle (Racing) TYPE:Vehicle.Personal.Standard.Container CONTAINS:*UNLIM COST:4 SIZE:L SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|750 BONUS:VAR|VEHICLEDEFENSE|17 BONUS:VAR|VEHICLEHANDLING|7 BONUS:VAR|VEHICLEWOUNDPOINTS|25 BONUS:VAR|VEHICLEHARDNESS|2
Motorcycle (Street) TYPE:Vehicle.Personal.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:M SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|500 BONUS:VAR|VEHICLEDEFENSE|18 BONUS:VAR|VEHICLEHANDLING|8 BONUS:VAR|VEHICLEWOUNDPOINTS|35 BONUS:VAR|VEHICLEHARDNESS|1
Quad (4-wheeler) TYPE:Vehicle.Personal.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:M SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|200 BONUS:VAR|VEHICLEDEFENSE|16 BONUS:VAR|VEHICLEHANDLING|6 BONUS:VAR|VEHICLEWOUNDPOINTS|50 BONUS:VAR|VEHICLEHARDNESS|2
Snowmobile TYPE:Vehicle.Personal.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:M SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|250 BONUS:VAR|VEHICLEDEFENSE|16 BONUS:VAR|VEHICLEHANDLING|6 BONUS:VAR|VEHICLEWOUNDPOINTS|50 BONUS:VAR|VEHICLEHARDNESS|2
# Mounts ---------------------------------------
Camel TYPE:Vehicle.Mount.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|30 BONUS:VAR|VEHICLEDEFENSE|13 BONUS:VAR|VEHICLEHANDLING|-1 BONUS:VAR|VEHICLEWOUNDPOINTS|15 BONUS:VAR|VEHICLEHARDNESS|0
Horse TYPE:Vehicle.Mount.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|40 BONUS:VAR|VEHICLEDEFENSE|13 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|12 BONUS:VAR|VEHICLEHARDNESS|0
Mule TYPE:Vehicle.Mount.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.147 BONUS:VAR|VEHICLESPEED|30 BONUS:VAR|VEHICLEDEFENSE|13 BONUS:VAR|VEHICLEHANDLING|-3 BONUS:VAR|VEHICLEWOUNDPOINTS|14 BONUS:VAR|VEHICLEHARDNESS|0
# Cars -----------------------------------------
Car (Classic) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|500 BONUS:VAR|VEHICLEDEFENSE|5 BONUS:VAR|VEHICLEHANDLING|-4 BONUS:VAR|VEHICLEWOUNDPOINTS|100 BONUS:VAR|VEHICLEHARDNESS|6
Car (Compact) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|500 BONUS:VAR|VEHICLEDEFENSE|11 BONUS:VAR|VEHICLEHANDLING|2 BONUS:VAR|VEHICLEWOUNDPOINTS|80 BONUS:VAR|VEHICLEHARDNESS|4
Car (Economy) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|500 BONUS:VAR|VEHICLEDEFENSE|9 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|80 BONUS:VAR|VEHICLEHARDNESS|4
Car (Limo) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:5 SIZE:H SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|350 BONUS:VAR|VEHICLEDEFENSE|4 BONUS:VAR|VEHICLEHANDLING|-5 BONUS:VAR|VEHICLEWOUNDPOINTS|140 BONUS:VAR|VEHICLEHARDNESS|7
Car (Luxury) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:4 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|550 BONUS:VAR|VEHICLEDEFENSE|7 BONUS:VAR|VEHICLEHANDLING|-2 BONUS:VAR|VEHICLEWOUNDPOINTS|110 BONUS:VAR|VEHICLEHARDNESS|7
Car (Mid-Size) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|550 BONUS:VAR|VEHICLEDEFENSE|9 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|90 BONUS:VAR|VEHICLEHARDNESS|5
Car (Muscle) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|650 BONUS:VAR|VEHICLEDEFENSE|8 BONUS:VAR|VEHICLEHANDLING|-1 BONUS:VAR|VEHICLEWOUNDPOINTS|110 BONUS:VAR|VEHICLEHARDNESS|7
Car (Police) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:4 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|700 BONUS:VAR|VEHICLEDEFENSE|13 BONUS:VAR|VEHICLEHANDLING|+4 BONUS:VAR|VEHICLEWOUNDPOINTS|110 BONUS:VAR|VEHICLEHARDNESS|7
Car (Sedan) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|600 BONUS:VAR|VEHICLEDEFENSE|10 BONUS:VAR|VEHICLEHANDLING|+1 BONUS:VAR|VEHICLEWOUNDPOINTS|100 BONUS:VAR|VEHICLEHARDNESS|6
Car (Sports) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:4 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|800 BONUS:VAR|VEHICLEDEFENSE|14 BONUS:VAR|VEHICLEHANDLING|+5 BONUS:VAR|VEHICLEWOUNDPOINTS|70 BONUS:VAR|VEHICLEHARDNESS|3
Car (Station Wagon) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|500 BONUS:VAR|VEHICLEDEFENSE|6 BONUS:VAR|VEHICLEHANDLING|-3 BONUS:VAR|VEHICLEWOUNDPOINTS|100 BONUS:VAR|VEHICLEHARDNESS|6
Car (Sub-compact) TYPE:Vehicle.Automobile.Standard.Container CONTAINS:*UNLIM COST:1 SIZE:M SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|450 BONUS:VAR|VEHICLEDEFENSE|13 BONUS:VAR|VEHICLEHANDLING|3 BONUS:VAR|VEHICLEWOUNDPOINTS|70 BONUS:VAR|VEHICLEHARDNESS|3
# Trucks ---------------------------------------
Ambulance TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:4 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|550 BONUS:VAR|VEHICLEDEFENSE|6 BONUS:VAR|VEHICLEHANDLING|-3 BONUS:VAR|VEHICLEWOUNDPOINTS|120 BONUS:VAR|VEHICLEHARDNESS|6
Box Truck TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:5 SIZE:H SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|500 BONUS:VAR|VEHICLEDEFENSE|3 BONUS:VAR|VEHICLEHANDLING|-6 BONUS:VAR|VEHICLEWOUNDPOINTS|140 BONUS:VAR|VEHICLEHARDNESS|8
Bus TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:6 SIZE:G SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|450 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-7 BONUS:VAR|VEHICLEWOUNDPOINTS|150 BONUS:VAR|VEHICLEHARDNESS|9
Humvee TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:8 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|500 BONUS:VAR|VEHICLEDEFENSE|4 BONUS:VAR|VEHICLEHANDLING|-5 BONUS:VAR|VEHICLEWOUNDPOINTS|170 BONUS:VAR|VEHICLEHARDNESS|10
Jeep TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|600 BONUS:VAR|VEHICLEDEFENSE|10 BONUS:VAR|VEHICLEHANDLING|1 BONUS:VAR|VEHICLEWOUNDPOINTS|100 BONUS:VAR|VEHICLEHARDNESS|5
Mini-van TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|600 BONUS:VAR|VEHICLEDEFENSE|8 BONUS:VAR|VEHICLEHANDLING|-1 BONUS:VAR|VEHICLEWOUNDPOINTS|110 BONUS:VAR|VEHICLEHARDNESS|5
Off-road TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|600 BONUS:VAR|VEHICLEDEFENSE|9 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|110 BONUS:VAR|VEHICLEHARDNESS|5
Pick-up TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|550 BONUS:VAR|VEHICLEDEFENSE|7 BONUS:VAR|VEHICLEHANDLING|-2 BONUS:VAR|VEHICLEWOUNDPOINTS|120 BONUS:VAR|VEHICLEHARDNESS|6
Semi (empty) TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:7 SIZE:G SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|450 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-8 BONUS:VAR|VEHICLEWOUNDPOINTS|150 BONUS:VAR|VEHICLEHARDNESS|9
Semi (loaded) TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:7 SIZE:G SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|450 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-9 BONUS:VAR|VEHICLEWOUNDPOINTS|150 BONUS:VAR|VEHICLEHARDNESS|9
SUV TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:4 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|500 BONUS:VAR|VEHICLEDEFENSE|5 BONUS:VAR|VEHICLEHANDLING|-4 BONUS:VAR|VEHICLEWOUNDPOINTS|140 BONUS:VAR|VEHICLEHARDNESS|7
Van TYPE:Vehicle.Truck.Standard.Container CONTAINS:*UNLIM COST:4 SIZE:L SOURCEPAGE:p.148 BONUS:VAR|VEHICLESPEED|550 BONUS:VAR|VEHICLEDEFENSE|5 BONUS:VAR|VEHICLEHANDLING|-4 BONUS:VAR|VEHICLEWOUNDPOINTS|130 BONUS:VAR|VEHICLEHARDNESS|7
# Water Vehicles -------------------------------
Aircraft Carrier TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:20 SIZE:C SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|200 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-15 BONUS:VAR|VEHICLEWOUNDPOINTS|1000 BONUS:VAR|VEHICLEHARDNESS|15
Canoe TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:0 SIZE:M SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|40 BONUS:VAR|VEHICLEDEFENSE|8 BONUS:VAR|VEHICLEHANDLING|-2 BONUS:VAR|VEHICLEWOUNDPOINTS|10 BONUS:VAR|VEHICLEHARDNESS|1
Diving Bell TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|20 BONUS:VAR|VEHICLEDEFENSE|4 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|50 BONUS:VAR|VEHICLEHARDNESS|5
Diving Drone TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:S SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|10 BONUS:VAR|VEHICLEDEFENSE|13 BONUS:VAR|VEHICLEHANDLING|2 BONUS:VAR|VEHICLEWOUNDPOINTS|40 BONUS:VAR|VEHICLEHARDNESS|3
Fishing Boat TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:H SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|80 BONUS:VAR|VEHICLEDEFENSE|8 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|75 BONUS:VAR|VEHICLEHARDNESS|3
Luxury Liner TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:12 SIZE:C SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|100 BONUS:VAR|VEHICLEDEFENSE|3 BONUS:VAR|VEHICLEHANDLING|-10 BONUS:VAR|VEHICLEWOUNDPOINTS|500 BONUS:VAR|VEHICLEHARDNESS|7
Mini-Sub TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:5 SIZE:L SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|150 BONUS:VAR|VEHICLEDEFENSE|10 BONUS:VAR|VEHICLEHANDLING|1 BONUS:VAR|VEHICLEWOUNDPOINTS|75 BONUS:VAR|VEHICLEHARDNESS|4
Oil Tanker TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:15 SIZE:C SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|80 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-13 BONUS:VAR|VEHICLEWOUNDPOINTS|700 BONUS:VAR|VEHICLEHARDNESS|10
Rowboat TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:0 SIZE:M SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|30 BONUS:VAR|VEHICLEDEFENSE|7 BONUS:VAR|VEHICLEHANDLING|-3 BONUS:VAR|VEHICLEWOUNDPOINTS|15 BONUS:VAR|VEHICLEHARDNESS|2
Speedboat TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|400 BONUS:VAR|VEHICLEDEFENSE|14 BONUS:VAR|VEHICLEHANDLING|5 BONUS:VAR|VEHICLEWOUNDPOINTS|60 BONUS:VAR|VEHICLEHARDNESS|3
Submarine TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:9 SIZE:C SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|150 BONUS:VAR|VEHICLEDEFENSE|3 BONUS:VAR|VEHICLEHANDLING|-6 BONUS:VAR|VEHICLEWOUNDPOINTS|100 BONUS:VAR|VEHICLEHARDNESS|8
Submersible Car TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:7 SIZE:L SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|100 BONUS:VAR|VEHICLEDEFENSE|13 BONUS:VAR|VEHICLEHANDLING|4 BONUS:VAR|VEHICLEWOUNDPOINTS|85 BONUS:VAR|VEHICLEHARDNESS|5
Swamp Boat TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:4 SIZE:L SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|200 BONUS:VAR|VEHICLEDEFENSE|13 BONUS:VAR|VEHICLEHANDLING|4 BONUS:VAR|VEHICLEWOUNDPOINTS|40 BONUS:VAR|VEHICLEHARDNESS|3
Zodiac TYPE:Vehicle.Watercraft.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.149 BONUS:VAR|VEHICLESPEED|150 BONUS:VAR|VEHICLEDEFENSE|12 BONUS:VAR|VEHICLEHANDLING|3 BONUS:VAR|VEHICLEWOUNDPOINTS|20 BONUS:VAR|VEHICLEHARDNESS|1
# Air Vehicles ---------------------------------
Autogyro TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:7 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|200 BONUS:VAR|VEHICLEDEFENSE|15 BONUS:VAR|VEHICLEHANDLING|6 BONUS:VAR|VEHICLEWOUNDPOINTS|30 BONUS:VAR|VEHICLEHARDNESS|3
Fighter jet TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:18 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|4000 BONUS:VAR|VEHICLEDEFENSE|20 BONUS:VAR|VEHICLEHANDLING|12 BONUS:VAR|VEHICLEWOUNDPOINTS|100 BONUS:VAR|VEHICLEHARDNESS|8
Gunship TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:16 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|1200 BONUS:VAR|VEHICLEDEFENSE|16 BONUS:VAR|VEHICLEHANDLING|8 BONUS:VAR|VEHICLEWOUNDPOINTS|100 BONUS:VAR|VEHICLEHARDNESS|7
Hang glider TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|50 BONUS:VAR|VEHICLEDEFENSE|10 BONUS:VAR|VEHICLEHANDLING|1 BONUS:VAR|VEHICLEWOUNDPOINTS|15 BONUS:VAR|VEHICLEHARDNESS|2
Helicopter TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:9 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|1000 BONUS:VAR|VEHICLEDEFENSE|14 BONUS:VAR|VEHICLEHANDLING|5 BONUS:VAR|VEHICLEWOUNDPOINTS|75 BONUS:VAR|VEHICLEHARDNESS|5
Hot air balloon TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:1 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|0 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|10 BONUS:VAR|VEHICLEHARDNESS|0
Jetpack TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:4 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|500 BONUS:VAR|VEHICLEDEFENSE|18 BONUS:VAR|VEHICLEHANDLING|7 BONUS:VAR|VEHICLEWOUNDPOINTS|25 BONUS:VAR|VEHICLEHARDNESS|1
Jumbo jet TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:12 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|3100 BONUS:VAR|VEHICLEDEFENSE|3 BONUS:VAR|VEHICLEHANDLING|-1 BONUS:VAR|VEHICLEWOUNDPOINTS|120 BONUS:VAR|VEHICLEHARDNESS|6
Parasail TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:2 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|100 BONUS:VAR|VEHICLEDEFENSE|9 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|15 BONUS:VAR|VEHICLEHARDNESS|1
Space shuttle TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:40 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|10000 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-5 BONUS:VAR|VEHICLEWOUNDPOINTS|600 BONUS:VAR|VEHICLEHARDNESS|10
Ultralight TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:3 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|250 BONUS:VAR|VEHICLEDEFENSE|12 BONUS:VAR|VEHICLEHANDLING|3 BONUS:VAR|VEHICLEWOUNDPOINTS|40 BONUS:VAR|VEHICLEHARDNESS|4
VTOL TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:15 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|650 BONUS:VAR|VEHICLEDEFENSE|10 BONUS:VAR|VEHICLEHANDLING|2 BONUS:VAR|VEHICLEWOUNDPOINTS|100 BONUS:VAR|VEHICLEHARDNESS|7
Zeppelin TYPE:Vehicle.Aircraft.Standard.Container CONTAINS:*UNLIM COST:8 SIZE:L SOURCEPAGE:p.150 BONUS:VAR|VEHICLESPEED|350 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-6 BONUS:VAR|VEHICLEWOUNDPOINTS|60 BONUS:VAR|VEHICLEHARDNESS|1
# Armored and Heavy Vehicles -------------------
2.5 ton Truck TYPE:Vehicle.Armored.Standard.Container CONTAINS:*UNLIM COST:8 SIZE:H SOURCEPAGE:p.151 BONUS:VAR|VEHICLESPEED|400 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-7 BONUS:VAR|VEHICLEWOUNDPOINTS|220 BONUS:VAR|VEHICLEHARDNESS|11
AAV TYPE:Vehicle.Armored.Standard.Container CONTAINS:*UNLIM COST:11 SIZE:H SOURCEPAGE:p.151 BONUS:VAR|VEHICLESPEED|300 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-6 BONUS:VAR|VEHICLEWOUNDPOINTS|260 BONUS:VAR|VEHICLEHARDNESS|13
APC TYPE:Vehicle.Armored.Standard.Container CONTAINS:*UNLIM COST:8 SIZE:H SOURCEPAGE:p.151 BONUS:VAR|VEHICLESPEED|400 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-8 BONUS:VAR|VEHICLEWOUNDPOINTS|240 BONUS:VAR|VEHICLEHARDNESS|12
Armored Car TYPE:Vehicle.Armored.Standard.Container CONTAINS:*UNLIM COST:7 SIZE:L SOURCEPAGE:p.151 BONUS:VAR|VEHICLESPEED|400 BONUS:VAR|VEHICLEDEFENSE|5 BONUS:VAR|VEHICLEHANDLING|-4 BONUS:VAR|VEHICLEWOUNDPOINTS|220 BONUS:VAR|VEHICLEHARDNESS|11
Bullet Train TYPE:Vehicle.Train.Standard.Container CONTAINS:*UNLIM COST:14 SIZE:C SOURCEPAGE:p.151 BONUS:VAR|VEHICLESPEED|900 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|300 BONUS:VAR|VEHICLEHARDNESS|12
Half-track TYPE:Vehicle.Armored.Standard.Container CONTAINS:*UNLIM COST:9 SIZE:H SOURCEPAGE:p.151 BONUS:VAR|VEHICLESPEED|350 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-9 BONUS:VAR|VEHICLEWOUNDPOINTS|240 BONUS:VAR|VEHICLEHARDNESS|12
Hovercraft TYPE:Vehicle.Amphibious.Standard.Container CONTAINS:*UNLIM COST:10 SIZE:G SOURCEPAGE:p.151 BONUS:VAR|VEHICLESPEED|300 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-5 BONUS:VAR|VEHICLEWOUNDPOINTS|200 BONUS:VAR|VEHICLEHARDNESS|10
Tank TYPE:Vehicle.Armored.Standard.Container CONTAINS:*UNLIM COST:13 SIZE:H SOURCEPAGE:p.151 BONUS:VAR|VEHICLESPEED|450 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|-10 BONUS:VAR|VEHICLEWOUNDPOINTS|280 BONUS:VAR|VEHICLEHARDNESS|14
Train TYPE:Vehicle.Train.Standard.Container CONTAINS:*UNLIM COST:12 SIZE:C SOURCEPAGE:p.151 BONUS:VAR|VEHICLESPEED|350 BONUS:VAR|VEHICLEDEFENSE|2 BONUS:VAR|VEHICLEHANDLING|0 BONUS:VAR|VEHICLEWOUNDPOINTS|300 BONUS:VAR|VEHICLEHARDNESS|13
#
# End
#
|
{
"pile_set_name": "Github"
}
|
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.zip.transit.json ===
insert-child {2 {:ret :vector}}
left {1 {:ret #{:vector :nil}}}
append-child {2 {:ret :vector}}
down {1 {:ret #{:vector :nil}}}
replace {2 {:ret :vector}}
zipper {4 {:ret :vector}}
end? {1 {:ret :boolean}}
edit {:varargs {:ret :vector, :min-arity 2}}
vector-zip {1 {:ret :vector}}
up {1 {:ret #{:vector :nil}}}
seq-zip {1 {:ret :vector}}
right {1 {:ret #{:vector :nil}}}
lefts {1 {:ret :seq}}
xml-zip {1 {:ret :vector}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.core.server.transit.json ===
thread {:varargs {:min-arity 2, :args (:nilable/string nil nil nil)}}
ex->data {2 {:ret :associative}}
remote-prepl {:varargs {:min-arity 4, :args (:nilable/string nil nil nil nil nil)}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.spec.gen.alpha.transit.json ===
qualified? {1 {:ret :boolean}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.test.transit.json ===
file-position {1 {:ret :vector}}
file-and-line {2 {:ret #{{:type :map, :val {:file {:row 341, :col 16, :end-row 341, :end-col 32}, :line {:row 341, :col 39, :end-row 341, :end-col 57}}} {:type :map, :val {:file {:row 342, :col 14, :end-row 342, :end-col 17, :tag :nil}, :line {:row 342, :col 24, :end-row 342, :end-col 27, :tag :nil}}}}}}
stacktrace-file-and-line {1 {:ret #{{:type :map, :val {:file {:row 349, :col 12, :end-row 349, :end-col 15, :tag :nil}, :line {:row 349, :col 22, :end-row 349, :end-col 25, :tag :nil}}} {:type :map, :val {:file {:row 348, :col 14, :end-row 348, :end-col 30}, :line {:row 348, :col 37, :end-row 348, :end-col 55}}}}}}
compose-fixtures {2 {:ret :fn}}
function? {1 {:ret #{:nil :boolean}}}
successful? {1 {:ret #{:nil :boolean}}}
testing-vars-str {1 {:ret :string}}
run-tests {0 {:ret :associative}, :varargs {:ret :associative, :min-arity 0}}
=== resources/clj_kondo/impl/cache/built_in/clj/java.math.BigInteger.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.Math.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.CharSequence.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.datafy.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.java.shell.transit.json ===
parse-args {1 {:ret :vector}}
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.Double.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.Thread.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.core.specs.alpha.transit.json ===
even-number-of-forms? {1 {:ret :boolean}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.core.protocols.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.test.junit.transit.json ===
suite-attrs {2 {:ret #{{:type :map, :val {:name {:row 99, :col 22, :end-row 99, :end-col 31}}}}}}
package-class {1 {:ret #{:vector}}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.pprint.transit.json ===
toks {1 {:ret :seq}}
brackets {1 {:ret #{:vector}}}
get-section {1 {:ret :vector}}
buffer-length {1 {:ret #{:number :nat-int}}}
integral? {1 {:ret #{:nil :boolean}}}
write-initial-lines {2 {:args (nil :nilable/string)}}
insert-scaled-decimal {2 {:ret #{:string}}}
round-str {4 {:ret #{:vector}}}
float-parts-base {1 {:ret #{:vector}}}
set-max-column {2 {:ret :nil}}
c-write-char {2 {:args (nil :nilable/int)}}
realize-parameter-list {2 {:ret :vector}}
get-format-arg {1 {:ret :vector}}
split-at-newline {1 {:ret :vector}}
group-by* {2 {:ret :seq}}
insert-decimal {2 {:ret #{:string}}}
realize-parameter {2 {:ret :vector}}
get-sub-section {1 {:ret :seq}}
execute-format {2 {:ret :nil}}
inc-s {1 {:args (:nilable/string)}}
unzip-map {1 {:ret :vector}}
next-arg-or-nil {1 {:ret #{:vector}}}
format-simple-ordinal {1 {:ret :string}}
start-block {4 {:args (nil :nilable/string :nilable/string :nilable/string)}}
process-directive-table-element {1 {:ret :vector}}
set-pprint-dispatch {1 {:ret :nil}}
remainders {2 {:ret :seq}}
process-bracket {2 {:ret :vector}}
translate-param {1 {:ret :vector}}
pprint-reader-macro {1 {:ret #{:nil :boolean}}}
compile-directive {2 {:ret :vector}}
two-forms {1 {:ret {:type :map, :val {}}}}
add-core-ns {1 {:ret {:type :map, :val {}}}}
format-simple-cardinal {1 {:ret :string}}
float-parts {1 {:ret #{:vector}}}
get-fixed {3 {:ret #{:string}}}
abort? {1 {:ret #{:boolean}}}
map-params {4 {:ret :nilable/map}}
p-write-char {2 {:args (nil :nilable/int)}}
tokens-fit? {2 {:ret #{:boolean}}}
tuple-map {2 {:ret {:type :map, :val {}}}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.spec.alpha.transit.json ===
alt-impl {3 {:ret :associative}}
pvalid? {2 {:ret :boolean}, 3 {:ret :boolean}}
explain-data* {5 {:ret #{{:type :map, :val {:user/problems {:row 214, :col 19, :end-row 214, :end-col 24, :tag {:call {:filename clojure/spec/alpha.clj, :type :call, :lang :clj, :base-lang :clj, :resolved-ns clojure.spec.alpha, :ns clojure.spec.alpha, :name explain*, :arity 5}}}, :user/spec {:row 215, :col 15, :end-row 215, :end-col 19}, :user/value {:row 216, :col 16, :end-row 216, :end-col 17}}} :nil}}}
fn-sym {1 {:ret #{:symbol :nil}}}
inst-in-range? {3 {:ret #{:nil :boolean}}}
accept? {1 {:ret :boolean}}
accept {1 {:ret {:type :map, :val {:user/op {:row 1375, :col 25, :end-row 1375, :end-col 33, :tag :keyword}, :ret {:row 1375, :col 39, :end-row 1375, :end-col 40}}}}}
valid? {2 {:ret :boolean}, 3 {:ret :boolean}}
int-in-range? {3 {:ret #{:nil :boolean}}}
exercise {1 {:ret :seq}, 2 {:ret :seq}, 3 {:ret :seq}}
explain-data {2 {:ret #{{:type :map, :val {:user/problems {:row 214, :col 19, :end-row 214, :end-col 24, :tag {:call {:filename clojure/spec/alpha.clj, :type :call, :lang :clj, :base-lang :clj, :resolved-ns clojure.spec.alpha, :ns clojure.spec.alpha, :name explain*, :arity 5}}}, :user/spec {:row 215, :col 15, :end-row 215, :end-col 19}, :user/value {:row 216, :col 16, :end-row 216, :end-col 17}}} :nil}}}
inck {2 {:ret :associative}}
invalid? {1 {:ret :boolean}}
amp-impl {4 {:ret {:type :map, :val {:user/op {:row 1416, :col 9, :end-row 1416, :end-col 14, :tag :keyword}, :p1 {:row 1416, :col 19, :end-row 1416, :end-col 21}, :amp {:row 1416, :col 27, :end-row 1416, :end-col 34}, :ps {:row 1416, :col 39, :end-row 1416, :end-col 44}, :forms {:row 1416, :col 52, :end-row 1416, :end-col 62}}}}}
rep-impl {2 {:ret #{{:type :map, :val {:user/op {:row 1399, :col 19, :end-row 1399, :end-col 24, :tag :keyword}, :p2 {:row 1399, :col 30, :end-row 1399, :end-col 32}, :splice {:row 1399, :col 42, :end-row 1399, :end-col 48}, :forms {:row 1399, :col 57, :end-row 1399, :end-col 61}, :id {:row 1399, :col 66, :end-row 1399, :end-col 93}}} :nil}}}
filter-alt {4 {:ret #{:vector}}}
call-valid? {3 {:ret #{:nil :boolean}}}
rep* {5 {:ret #{{:type :map, :val {:user/op {:row 1399, :col 19, :end-row 1399, :end-col 24, :tag :keyword}, :p2 {:row 1399, :col 30, :end-row 1399, :end-col 32}, :splice {:row 1399, :col 42, :end-row 1399, :end-col 48}, :forms {:row 1399, :col 57, :end-row 1399, :end-col 61}, :id {:row 1399, :col 66, :end-row 1399, :end-col 93}}} :nil}}}
maybe-impl {2 {:ret :associative}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.stacktrace.transit.json ===
print-throwable {1 {:ret #{:nil}}}
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.System.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.string.transit.json ===
ends-with? {2 {:args (:nilable/char-sequence :nilable/string)}}
replace-first-char {3 {:args (:nilable/char-sequence :nilable/char nil)}}
capitalize {1 {:args (:nilable/char-sequence)}}
reverse {1 {:args (:nilable/char-sequence)}}
replace-first {3 {:args (:nilable/char-sequence nil nil)}}
replace-first-str {3 {:ret #{:nilable/string :string}, :args (:nilable/char-sequence :nilable/string :nilable/string)}}
starts-with? {2 {:args (:nilable/char-sequence :nilable/string)}}
escape {2 {:args (:nilable/char-sequence nil)}}
last-index-of {2 {:args (:nilable/char-sequence nil)}, 3 {:args (:nilable/char-sequence nil :int)}}
re-quote-replacement {1 {:args (:nilable/char-sequence)}}
includes? {2 {:args (:nilable/char-sequence :nilable/char-sequence)}}
replace {3 {:args (:nilable/char-sequence nil nil)}}
split-lines {1 {:args (:nilable/char-sequence)}}
lower-case {1 {:args (:nilable/char-sequence)}}
trim-newline {1 {:args (:nilable/char-sequence)}}
replace-by {3 {:args (:nilable/char-sequence nil nil)}}
replace-first-by {3 {:ret #{:nilable/char-sequence :string}, :args (:nilable/char-sequence nil nil)}}
upper-case {1 {:args (:nilable/char-sequence)}}
split {2 {:args (:nilable/char-sequence nil)}, 3 {:args (:nilable/char-sequence nil nil)}}
trimr {1 {:args (:nilable/char-sequence)}}
index-of {2 {:args (:nilable/char-sequence nil)}, 3 {:args (:nilable/char-sequence nil :int)}}
trim {1 {:args (:nilable/char-sequence)}}
triml {1 {:args (:nilable/char-sequence)}}
blank? {1 {:args (:nilable/char-sequence)}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.set.transit.json ===
union {0 {:ret :set}}
superset? {2 {:ret #{:nil :boolean}}}
subset? {2 {:ret #{:nil :boolean}}}
rename {2 {:ret :set}}
project {2 {:ret :set}}
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.Boolean.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.java.io.transit.json ===
append? {1 {:ret :boolean}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.java.browse-ui.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.repl.transit.json ===
namespace-doc {1 {:ret :associative}}
special-doc {1 {:ret :associative}}
stack-element-str {1 {:ret :string}}
dir-fn {1 {:ret #{:list :seq}}}
thread-stopper {0 {:ret :fn}, 1 {:ret :fn}}
apropos {1 {:ret #{:list :seq}}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.inspector.transit.json ===
atom? {1 {:ret :boolean}}
collection-tag {1 {:ret #{:keyword :nil}}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.instant.transit.json ===
validated {1 {:ret :fn}}
zero-fill-right {2 {:args (:nilable/string nil)}}
leap-year? {1 {:ret #{:nil :boolean}}}
divisible? {2 {:ret :boolean}}
read-instant-timestamp {1 {:args (:nilable/char-sequence)}}
indivisible? {2 {:ret :boolean}}
parse-int {1 {:args (:nilable/string)}}
read-instant-calendar {1 {:args (:nilable/char-sequence)}}
read-instant-date {1 {:args (:nilable/char-sequence)}}
parse-timestamp {2 {:args (nil :nilable/char-sequence)}}
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.Long.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.tools.reader.transit.json ===
unquote-splicing? {1 {:ret #{:nil :boolean}}}
starting-line-col-info {1 {:ret #{:vector :nil}}}
wrapping-reader {1 {:ret :fn}}
read+string {0 {:ret :vector}, 1 {:ret :vector}, 3 {:ret :vector}, 2 {:ret :vector}}
read-unicode-char {4 {:args (:nilable/string :int :int :int)}}
unquote? {1 {:ret #{:nil :boolean}}}
syntax-quote-coll {2 {:ret #{:list}}}
check-eof-error {3 {:args (nil nil :int)}}
check-invalid-read-cond {3 {:args (nil nil :int)}}
map-func {1 {:ret #{:symbol}}}
ending-line-col-info {1 {:ret #{:vector :nil}}}
garg {1 {:ret :symbol, :args (:int)}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.parallel.transit.json ===
pdistinct {1 {:ret :vector}}
pvec {1 {:ret :vector}}
pa-to-vec {1 {:ret :vector}}
psummary {1 {:ret {:type :map, :val {:min {:row 156, :col 9, :end-row 156, :end-col 17}, :max {:row 156, :col 23, :end-row 156, :end-col 31}, :size {:row 156, :col 38, :end-row 156, :end-col 47}, :min-index {:row 156, :col 59, :end-row 156, :end-col 74}, :max-index {:row 156, :col 86, :end-row 156, :end-col 101}}}}, 2 {:ret {:type :map, :val {:min {:row 156, :col 9, :end-row 156, :end-col 17}, :max {:row 156, :col 23, :end-row 156, :end-col 31}, :size {:row 156, :col 38, :end-row 156, :end-col 47}, :min-index {:row 156, :col 59, :end-row 156, :end-col 74}, :max-index {:row 156, :col 86, :end-row 156, :end-col 101}}}}}
pfilter-nils {1 {:ret :vector}}
summary-map {1 {:ret {:type :map, :val {:min {:row 156, :col 9, :end-row 156, :end-col 17}, :max {:row 156, :col 23, :end-row 156, :end-col 31}, :size {:row 156, :col 38, :end-row 156, :end-col 47}, :min-index {:row 156, :col 59, :end-row 156, :end-col 74}, :max-index {:row 156, :col 86, :end-row 156, :end-col 101}}}}}
psort {1 {:ret :vector}, 2 {:ret :vector}}
pfilter-dupes {1 {:ret :vector}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.main.transit.json ===
stack-element-str {1 {:ret :string}}
core-class? {1 {:args (:nilable/string)}}
java-loc->source {2 {:ret #{:symbol}}}
load-script {1 {:args (:nilable/string)}}
skip-if-eol {1 {:ret #{:keyword :nil}}}
file-name {1 {:args (:nilable/string)}}
file-path {1 {:args (:nilable/string)}}
ex-triage {1 {:ret :associative}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.walk.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.template.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.data.json.transit.json ===
codepoint-clause {1 {:ret #{:vector :nil}}}
write-double {2 {:args (:nilable/double nil)}}
read-integer {1 {:args (:nilable/string)}}
write-string {2 {:args (:nilable/char-sequence nil)}}
write-float {2 {:args (:nilable/double nil)}}
read-decimal {1 {:args (:nilable/string)}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.xml.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.core.reducers.transit.json ===
cat {1 {:ret :fn}}
monoid {2 {:ret :fn}}
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.String.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/java.math.BigDecimal.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.Character.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.reflect.transit.json ===
access-flag {1 {:ret {:type :map, :val {:name {:row 57, :col 10, :end-row 57, :end-col 14}, :flag {:row 57, :col 21, :end-row 57, :end-col 25}, :contexts {:row 57, :col 36, :end-row 57, :end-col 64}}}}}
declared-constructors {1 {:ret :set}}
parse-method-descriptor {1 {:ret {:type :map, :val {:parameter-types {:row 193, :col 21, :end-row 193, :end-col 67}, :return-type {:row 194, :col 17, :end-row 194, :end-col 50}}}, :args (:nilable/string)}}
field-descriptor->class-symbol {1 {:args (:nilable/string)}}
declared-fields {1 {:ret :set}}
declared-methods {1 {:ret :set}}
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.Integer.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.edn.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.java.browse.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.uuid.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.core.transit.json ===
+' {0 {:ret :nat-int}}
sort-by {2 {:ret #{:list :seq}}, 3 {:ret #{:list :seq}}}
is-runtime-annotation? {1 {:ret :boolean}}
keep-indexed {1 {:ret :fn}}
subs {2 {:ret :nilable/string, :args (:nilable/string nil)}, 3 {:ret :nilable/string, :args (:nilable/string nil nil)}}
reader-conditional {2 {:args (nil :nilable/boolean)}}
qualified-keyword? {1 {:ret :boolean}}
satisfies? {2 {:ret :boolean}}
take-nth {1 {:ret :fn}, 2 {:ret :seq}}
newline {0 {:ret :nil}}
dedupe {0 {:ret :fn}}
pr-on {2 {:ret :nil}}
mk-bound-fn {3 {:ret :fn}}
pr {0 {:ret :nil}, 1 {:ret :nil}}
= {1 {:ret :boolean}}
take {1 {:ret :fn}, 2 {:ret :seq}}
thread-bound? {:varargs {:ret :boolean, :min-arity 0}}
any? {1 {:ret :boolean}}
rand-int {1 {:ret :int}}
map {1 {:ret :fn}, 2 {:ret :seq}, 3 {:ret :seq}, 4 {:ret :seq}, :varargs {:ret :seq, :min-arity 4}}
juxt {1 {:ret :fn}, 2 {:ret :fn}, 3 {:ret :fn}, :varargs {:ret :fn, :min-arity 3}}
< {1 {:ret :boolean}}
make-hierarchy {0 {:ret {:type :map, :val {:parents {:row 5532, :col 16, :end-row 5532, :end-col 18, :tag {:type :map, :val {}}}, :descendants {:row 5532, :col 32, :end-row 5532, :end-col 34, :tag {:type :map, :val {}}}, :ancestors {:row 5532, :col 46, :end-row 5532, :end-col 48, :tag {:type :map, :val {}}}}}}}
keep {1 {:ret :fn}, 2 {:ret :seq}}
unchecked-long {1 {:args (:nilable/number)}}
some? {1 {:ret :boolean}}
get-super-and-interfaces {1 {:ret #{:vector}}}
remove-tap {1 {:ret :nil}}
inst? {1 {:ret :boolean}}
range {0 {:ret :seq}}
sort {1 {:ret #{:list :seq}}, 2 {:ret #{:list :seq}}}
generate-class {1 {:ret :vector}}
map-indexed {1 {:ret :fn}}
comp {2 {:ret :fn}}
simple-symbol? {1 {:ret #{:nil :boolean}}}
fnil {2 {:ret :fn}, 3 {:ret :fn}, 4 {:ret :fn}}
unchecked-float {1 {:args (:nilable/number)}}
cat {1 {:ret :fn}}
StackTraceElement->vec {1 {:ret :vector}}
flush {0 {:ret :nil}}
take-while {1 {:ret :fn}, 2 {:ret :seq}}
<= {1 {:ret :boolean}}
repeatedly {1 {:ret :seq}, 2 {:ret :seq}}
remove {1 {:ret :transducer}, 2 {:ret :seq}}
* {0 {:ret :pos-int}}
nary-inline {1 {:ret :fn}, 2 {:ret :fn}}
format {:varargs {:ret :nilable/string, :min-arity 1}}
bound? {:varargs {:ret :boolean, :min-arity 0}}
parse-opts+specs {1 {:ret :vector}}
interleave {1 {:ret :seq}, 2 {:ret :seq}, :varargs {:ret :seq, :min-arity 2}}
protocol? {1 {:ret :boolean}}
into {0 {:ret :vector}}
long {1 {:args (:nilable/number)}}
double {1 {:args (:nilable/number)}}
method-sig {1 {:ret :vector}}
hash-ordered-coll {1 {:ret :int}}
deref-as-map {1 {:ret {:type :map, :val {:status {:row 445, :col 6, :end-row 455, :end-col 14, :tag #{{:tag :keyword, :row 452, :col 7, :end-row 452, :end-col 15} {:tag :keyword, :row 449, :col 7, :end-row 449, :end-col 14} :nil}}, :val {:row 457, :col 11, :end-row 457, :end-col 14}}}}}
empty? {1 {:ret :boolean}}
short {1 {:args (:nilable/number)}}
pref {0 {:ret :nil}}
add-tap {1 {:ret :nil}}
unchecked-double {1 {:args (:nilable/number)}}
not= {1 {:ret :boolean}, 2 {:ret :boolean}, :varargs {:ret :boolean, :min-arity 2}}
fits-table? {1 {:ret :boolean}}
rand {1 {:ret :number}}
> {1 {:ret :boolean}}
replace {1 {:ret :transducer}}
unchecked-int {1 {:args (:nilable/number)}}
bound-fn* {1 {:ret :fn}}
prn {:varargs {:ret #{:nil}, :min-arity 0}}
extends? {2 {:ret :boolean}}
spread {1 {:ret #{:nil :seq}}}
agent-errors {1 {:ret #{:list :nil}}}
float {1 {:args (:nilable/number)}}
concat {0 {:ret :seq}, 1 {:ret :seq}, 2 {:ret :seq}}
valid-java-method-name {1 {:ret :boolean, :args (:nilable/string)}}
mod {2 {:ret #{:number}}}
reductions {2 {:ret :seq}}
hash-set {0 {:ret :set}}
emit-hinted-impl {2 {:ret :vector}}
strip-ns {1 {:ret #{:symbol :keyword}}}
assoc-in {3 {:ret #{:associative}}}
memoize {1 {:ret :fn}}
simple-keyword? {1 {:ret #{:nil :boolean}}}
neg-int? {1 {:ret #{:nil :boolean}}}
drop {1 {:ret :fn}, 2 {:ret :seq}}
split-at {2 {:ret :vector}}
random-sample {1 {:ret :transducer}, 2 {:ret :seq}}
update {3 {:ret :associative}, 4 {:ret :associative}, 5 {:ret :associative}, 6 {:ret :associative}, :varargs {:ret :associative, :min-arity 6}}
group-by-sig {1 {:ret :seq}}
list* {1 {:ret :seq}}
*' {0 {:ret :pos-int}}
mix-collection-hash {2 {:ret :int, :args (:int :int)}}
re-find {2 {:ret :seq}}
run! {2 {:ret :nil}}
print-sequential {6 {:args (:nilable/string nil :nilable/string :nilable/string nil nil)}}
not {1 {:ret #{:boolean}}}
file-seq {1 {:ret :seq}}
ident? {1 {:ret #{:boolean}}}
qualified-ident? {1 {:ret :boolean}}
/ {1 {:ret :number}}
binding-conveyor-fn {1 {:ret :fn}}
vector {0 {:ret :vector}, 1 {:ret :vector}, 2 {:ret :vector}, 3 {:ret :vector}, 4 {:ret :vector}, 5 {:ret :vector}, 6 {:ret :vector}}
>= {1 {:ret :boolean}}
drop-last {1 {:ret :seq}, 2 {:ret :seq}}
root-directory {1 {:ret :string}}
distinct {0 {:ret :fn}}
partition {2 {:ret :seq}, 3 {:ret :seq}, 4 {:ret :seq}}
data-reader-urls {0 {:ret :seq}}
mapv {3 {:ret :vector}, 4 {:ret :vector}, :varargs {:ret :vector, :min-arity 4}}
partition-all {1 {:ret :fn, :args (:int)}, 2 {:ret :seq}, 3 {:ret :seq}}
partition-by {1 {:ret :fn}, 2 {:ret :seq}}
derive {2 {:ret :nil}}
prep-hashes {4 {:ret #{:vector}}}
subseq {5 {:ret #{:nil :seq}}}
flatten {1 {:ret :seq}}
halt-when {1 {:ret :fn}, 2 {:ret :fn}}
nat-int? {1 {:ret #{:nil :boolean}}}
subvec {2 {:ret :vector}}
partial {2 {:ret :fn}, 3 {:ret :fn}, 4 {:ret :fn}, :varargs {:ret :fn, :min-arity 4}}
replicate {2 {:ret :seq}}
unchecked-byte {1 {:args (:nilable/number)}}
every-pred {1 {:ret :fn}, 2 {:ret :fn}, 3 {:ret :fn}, :varargs {:ret :fn, :min-arity 3}}
distinct? {1 {:ret :boolean}, 2 {:ret :boolean}}
pos-int? {1 {:ret #{:nil :boolean}}}
prep-ints {2 {:ret #{:vector}}}
extenders {1 {:ret :seq}}
unchecked-short {1 {:args (:nilable/number)}}
odd? {1 {:ret :boolean}}
rsubseq {5 {:ret #{:nil :seq}}}
filter {1 {:ret :fn}, 2 {:ret :seq}}
+ {0 {:ret :nat-int}}
split-with {2 {:ret :vector}}
ctor-sigs {1 {:ret :seq}}
str {0 {:ret :nilable/string}, 1 {:ret :nilable/string}, :varargs {:ret :nilable/string, :min-arity 1}}
hash-map {0 {:ret {:type :map, :val {}}}}
underive {2 {:ret :nil}}
Throwable->map {1 {:ret :nilable/map}}
some-fn {1 {:ret :fn}, 2 {:ret :fn}, 3 {:ret :fn}, :varargs {:ret :fn, :min-arity 3}}
simple-ident? {1 {:ret #{:nil :boolean}}}
generate-interface {1 {:ret :vector}}
xml-seq {1 {:ret :seq}}
byte {1 {:args (:nilable/number)}}
== {1 {:ret :boolean}}
root-resource {1 {:ret :string}}
generate-proxy {2 {:ret :vector}}
interpose {1 {:ret :fn}, 2 {:ret :seq}}
emit-impl {1 {:ret :vector}}
rational? {1 {:ret #{:boolean}}}
clojure-version {0 {:ret :string}}
merge-hash-collisions {4 {:ret :vector}}
comparator {1 {:ret :fn}}
drop-while {1 {:ret :fn}, 2 {:ret :seq}}
complement {1 {:ret :fn}}
constantly {1 {:ret :fn}}
completing {1 {:ret :fn}, 2 {:ret :fn}}
hash-unordered-coll {1 {:ret :int}}
preserving-reduced {1 {:ret :fn}}
qualified-symbol? {1 {:ret :boolean}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.data.transit.json ===
atom-diff {2 {:ret #{:vector}}}
diff-associative-key {3 {:ret :vector}}
diff-sequential {2 {:ret :vector}}
=== resources/clj_kondo/impl/cache/built_in/clj/java.lang.Byte.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.test.tap.transit.json ===
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.java.javadoc.transit.json ===
javadoc-url {1 {:args (:nilable/string)}}
=== resources/clj_kondo/impl/cache/built_in/clj/clojure.spec.test.alpha.transit.json ===
interpret-stack-trace-element {1 {:ret :nilable/map}}
spec-checking-fn {3 {:ret :fn}}
fn-spec-name? {1 {:ret #{:nil :boolean}}}
make-check-result {3 {:ret :nilable/map}}
enumerate-namespace {1 {:ret :set}}
sym->check-map {1 {:ret {:type :map, :val {:s {:row 348, :col 9, :end-row 348, :end-col 10}, :v {:row 349, :col 9, :end-row 349, :end-col 10, :tag {:call {:filename clojure/spec/test/alpha.clj, :type :call, :lang :clj, :base-lang :clj, :resolved-ns clojure.core, :ns clojure.spec.test.alpha, :name resolve, :arity 1}}}, :spec {:row 350, :col 12, :end-row 350, :end-col 35}}}}}
|
{
"pile_set_name": "Github"
}
|
-----BEGIN CERTIFICATE-----
MIIDWjCCAwWgAwIBAgIBATAMBggqhkjOPQQDAQUAMFAxCzAJBgNVBAYTAkRFMQ0w
CwYDVQQKDARidW5kMQwwCgYDVQQLDANic2kxDTALBgNVBAUTBDQ1NjcxFTATBgNV
BAMMDGNzY2EtZ2VybWFueTAeFw0wNzA3MTkxNTI3MThaFw0yODAxMTkxNTE4MDBa
MFAxCzAJBgNVBAYTAkRFMQ0wCwYDVQQKDARidW5kMQwwCgYDVQQLDANic2kxDTAL
BgNVBAUTBDQ1NjcxFTATBgNVBAMMDGNzY2EtZ2VybWFueTCCARMwgdQGByqGSM49
AgEwgcgCAQEwKAYHKoZIzj0BAQIdANfBNKomQ2aGKhgwJXXR14ewnwdXl9qJ9X7I
wP8wPAQcaKXmLKnObBwpmAOmwVMLUU4YKtiwBCpZytKfQwQcJYD2PM/kQTiHBxOx
qSNp4z4hNdJm27NyOGxACwQ5BA2QKa0sflz0NAgjsqh9xoyeTOMXTB5u/e4SwH1Y
qlb3csBybyTGuJ5OzawkNUuemcqj9tN2FALNAh0A18E0qiZDZoYqGDAlddD7mNEW
vEtt3ryjpaeTnwIBAQM6AAQBNkpLDwEC6VAqudxoVdkLBlpvXl5IOV+DCdV8Eauv
8hdWYH72dX7JiGyiItg8oEsamfpDxam84aOCARAwggEMMDYGA1UdEQQvMC2BGGNz
Y2EtZ2VybWFueUBic2kuYnVuZC5kZYYRZmF4Ois0OTIyODk1ODI3MjIwDgYDVR0P
AQH/BAQDAgEGMB0GA1UdDgQWBBQAlkUt5Yj5ZsTM3xYd0fP1NBtx5zAfBgNVHSME
GDAWgBQAlkUt5Yj5ZsTM3xYd0fP1NBtx5zBBBgNVHSAEOjA4MDYGCQQAfwAHAwEB
ATApMCcGCCsGAQUFBwIBFhtodHRwOi8vd3d3LmJzaS5idW5kLmRlL2NzY2EwEgYD
VR0TAQH/BAgwBgEB/wIBADArBgNVHRAEJDAigA8yMDA3MDcxOTE1MjcxOFqBDzIw
MjcxMTE5MTUxODAwWjAMBggqhkjOPQQDAQUAA0EAMD4CHQDGtB6DAhf9TJO1np4r
E3NOCcGC+mP67kEVqO3VAh0A0nk42gG4lRqQZKG2lq7fGBt0logpwTjw6y9iOw==
-----END CERTIFICATE-----
|
{
"pile_set_name": "Github"
}
|
// RUN: %clang_cc1 -fsyntax-only -verify -Wformat-nonliteral -isystem %S/Inputs %s
// RUN: %clang_cc1 -fsyntax-only -verify -Wformat-nonliteral -isystem %S/Inputs -fno-signed-char %s
#include <stdarg.h>
#include <stddef.h>
#define __need_wint_t
#include <stddef.h> // For wint_t and wchar_t
typedef struct _FILE FILE;
int fprintf(FILE *, const char *restrict, ...);
int printf(const char *restrict, ...); // expected-note{{passing argument to parameter here}}
int snprintf(char *restrict, size_t, const char *restrict, ...);
int sprintf(char *restrict, const char *restrict, ...);
int vasprintf(char **, const char *, va_list);
int asprintf(char **, const char *, ...);
int vfprintf(FILE *, const char *restrict, va_list);
int vprintf(const char *restrict, va_list);
int vsnprintf(char *, size_t, const char *, va_list);
int vsprintf(char *restrict, const char *restrict, va_list); // expected-note{{passing argument to parameter here}}
int vscanf(const char *restrict format, va_list arg);
char * global_fmt;
void check_string_literal( FILE* fp, const char* s, char *buf, ... ) {
char * b;
va_list ap;
va_start(ap,buf);
printf(s); // expected-warning {{format string is not a string literal}}
vprintf(s,ap); // expected-warning {{format string is not a string literal}}
fprintf(fp,s); // expected-warning {{format string is not a string literal}}
vfprintf(fp,s,ap); // expected-warning {{format string is not a string literal}}
asprintf(&b,s); // expected-warning {{format string is not a string lit}}
vasprintf(&b,s,ap); // expected-warning {{format string is not a string literal}}
sprintf(buf,s); // expected-warning {{format string is not a string literal}}
snprintf(buf,2,s); // expected-warning {{format string is not a string lit}}
__builtin___sprintf_chk(buf,0,-1,s); // expected-warning {{format string is not a string literal}}
__builtin___snprintf_chk(buf,2,0,-1,s); // expected-warning {{format string is not a string lit}}
vsprintf(buf,s,ap); // expected-warning {{format string is not a string lit}}
vsnprintf(buf,2,s,ap); // expected-warning {{format string is not a string lit}}
vsnprintf(buf,2,global_fmt,ap); // expected-warning {{format string is not a string literal}}
__builtin___vsnprintf_chk(buf,2,0,-1,s,ap); // expected-warning {{format string is not a string lit}}
__builtin___vsnprintf_chk(buf,2,0,-1,global_fmt,ap); // expected-warning {{format string is not a string literal}}
vscanf(s, ap); // expected-warning {{format string is not a string literal}}
// rdar://6079877
printf("abc"
"%*d", 1, 1); // no-warning
printf("abc\
def"
"%*d", 1, 1); // no-warning
// <rdar://problem/6079850>, allow 'unsigned' (instead of 'int') to be used for both
// the field width and precision. This deviates from C99, but is reasonably safe
// and is also accepted by GCC.
printf("%*d", (unsigned) 1, 1); // no-warning
}
// When calling a non-variadic format function (vprintf, vscanf, NSLogv, ...),
// warn only if the format string argument is a parameter that is not itself
// declared as a format string with compatible format.
__attribute__((__format__ (__printf__, 2, 4)))
void check_string_literal2( FILE* fp, const char* s, char *buf, ... ) {
char * b;
va_list ap;
va_start(ap,buf);
printf(s); // expected-warning {{format string is not a string literal}}
vprintf(s,ap); // no-warning
fprintf(fp,s); // expected-warning {{format string is not a string literal}}
vfprintf(fp,s,ap); // no-warning
asprintf(&b,s); // expected-warning {{format string is not a string lit}}
vasprintf(&b,s,ap); // no-warning
sprintf(buf,s); // expected-warning {{format string is not a string literal}}
snprintf(buf,2,s); // expected-warning {{format string is not a string lit}}
__builtin___vsnprintf_chk(buf,2,0,-1,s,ap); // no-warning
vscanf(s, ap); // expected-warning {{format string is not a string literal}}
}
void check_conditional_literal(const char* s, int i) {
printf(i == 1 ? "yes" : "no"); // no-warning
printf(i == 0 ? (i == 1 ? "yes" : "no") : "dont know"); // no-warning
printf(i == 0 ? (i == 1 ? s : "no") : "dont know"); // expected-warning{{format string is not a string literal}}
printf("yes" ?: "no %d", 1); // expected-warning{{data argument not used by format string}}
}
void check_writeback_specifier()
{
int x;
char *b;
printf("%n", b); // expected-warning{{format specifies type 'int *' but the argument has type 'char *'}}
printf("%n", &x); // no-warning
printf("%hhn", (signed char*)0); // no-warning
printf("%hhn", (char*)0); // no-warning
printf("%hhn", (unsigned char*)0); // no-warning
printf("%hhn", (int*)0); // expected-warning{{format specifies type 'signed char *' but the argument has type 'int *'}}
printf("%hn", (short*)0); // no-warning
printf("%hn", (unsigned short*)0); // no-warning
printf("%hn", (int*)0); // expected-warning{{format specifies type 'short *' but the argument has type 'int *'}}
printf("%n", (int*)0); // no-warning
printf("%n", (unsigned int*)0); // no-warning
printf("%n", (char*)0); // expected-warning{{format specifies type 'int *' but the argument has type 'char *'}}
printf("%ln", (long*)0); // no-warning
printf("%ln", (unsigned long*)0); // no-warning
printf("%ln", (int*)0); // expected-warning{{format specifies type 'long *' but the argument has type 'int *'}}
printf("%lln", (long long*)0); // no-warning
printf("%lln", (unsigned long long*)0); // no-warning
printf("%lln", (int*)0); // expected-warning{{format specifies type 'long long *' but the argument has type 'int *'}}
printf("%qn", (long long*)0); // no-warning
printf("%qn", (unsigned long long*)0); // no-warning
printf("%qn", (int*)0); // expected-warning{{format specifies type 'long long *' but the argument has type 'int *'}}
printf("%Ln", 0); // expected-warning{{length modifier 'L' results in undefined behavior or no effect with 'n' conversion specifier}}
// expected-note@-1{{did you mean to use 'll'?}}
}
void check_invalid_specifier(FILE* fp, char *buf)
{
printf("%s%lb%d","unix",10,20); // expected-warning {{invalid conversion specifier 'b'}}
fprintf(fp,"%%%l"); // expected-warning {{incomplete format specifier}}
sprintf(buf,"%%%%%ld%d%d", 1, 2, 3); // expected-warning{{format specifies type 'long' but the argument has type 'int'}}
snprintf(buf, 2, "%%%%%ld%;%d", 1, 2, 3); // expected-warning{{format specifies type 'long' but the argument has type 'int'}} expected-warning {{invalid conversion specifier ';'}}
}
void check_null_char_string(char* b)
{
printf("\0this is bogus%d",1); // expected-warning {{string contains '\0'}}
snprintf(b,10,"%%%%%d\0%d",1,2); // expected-warning {{string contains '\0'}}
printf("%\0d",1); // expected-warning {{string contains '\0'}}
}
void check_empty_format_string(char* buf, ...)
{
va_list ap;
va_start(ap,buf);
vprintf("",ap); // expected-warning {{format string is empty}}
sprintf(buf, "", 1); // expected-warning {{format string is empty}}
// Don't warn about empty format strings when there are no data arguments.
// This can arise from macro expansions and non-standard format string
// functions.
sprintf(buf, ""); // no-warning
}
void check_wide_string(char* b, ...)
{
va_list ap;
va_start(ap,b);
printf(L"foo %d",2); // expected-warning {{incompatible pointer types}}, expected-warning {{should not be a wide string}}
vsprintf(b,L"bar %d",ap); // expected-warning {{incompatible pointer types}}, expected-warning {{should not be a wide string}}
}
void check_asterisk_precision_width(int x) {
printf("%*d"); // expected-warning {{'*' specified field width is missing a matching 'int' argument}}
printf("%.*d"); // expected-warning {{'.*' specified field precision is missing a matching 'int' argument}}
printf("%*d",12,x); // no-warning
printf("%*d","foo",x); // expected-warning {{field width should have type 'int', but argument has type 'char *'}}
printf("%.*d","foo",x); // expected-warning {{field precision should have type 'int', but argument has type 'char *'}}
}
void __attribute__((format(printf,1,3))) myprintf(const char*, int blah, ...);
void test_myprintf() {
myprintf("%d", 17, 18); // okay
}
void test_constant_bindings(void) {
const char * const s1 = "hello";
const char s2[] = "hello";
const char *s3 = "hello";
char * const s4 = "hello";
extern const char s5[];
printf(s1); // no-warning
printf(s2); // no-warning
printf(s3); // expected-warning{{not a string literal}}
printf(s4); // expected-warning{{not a string literal}}
printf(s5); // expected-warning{{not a string literal}}
}
// Test what happens when -Wformat-security only.
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
#pragma GCC diagnostic warning "-Wformat-security"
void test9(char *P) {
int x;
printf(P); // expected-warning {{format string is not a string literal (potentially insecure)}}
printf(P, 42);
}
void torture(va_list v8) {
vprintf ("%*.*d", v8); // no-warning
}
void test10(int x, float f, int i, long long lli) {
printf("%s"); // expected-warning{{more '%' conversions than data arguments}}
printf("%@", 12); // expected-warning{{invalid conversion specifier '@'}}
printf("\0"); // expected-warning{{format string contains '\0' within the string body}}
printf("xs\0"); // expected-warning{{format string contains '\0' within the string body}}
printf("%*d\n"); // expected-warning{{'*' specified field width is missing a matching 'int' argument}}
printf("%*.*d\n", x); // expected-warning{{'.*' specified field precision is missing a matching 'int' argument}}
printf("%*d\n", f, x); // expected-warning{{field width should have type 'int', but argument has type 'double'}}
printf("%*.*d\n", x, f, x); // expected-warning{{field precision should have type 'int', but argument has type 'double'}}
printf("%**\n"); // expected-warning{{invalid conversion specifier '*'}}
printf("%d%d\n", x); // expected-warning{{more '%' conversions than data arguments}}
printf("%d\n", x, x); // expected-warning{{data argument not used by format string}}
printf("%W%d\n", x, x); // expected-warning{{invalid conversion specifier 'W'}}
printf("%"); // expected-warning{{incomplete format specifier}}
printf("%.d", x); // no-warning
printf("%.", x); // expected-warning{{incomplete format specifier}}
printf("%f", 4); // expected-warning{{format specifies type 'double' but the argument has type 'int'}}
printf("%qd", lli); // no-warning
printf("%qd", x); // expected-warning{{format specifies type 'long long' but the argument has type 'int'}}
printf("%qp", (void *)0); // expected-warning{{length modifier 'q' results in undefined behavior or no effect with 'p' conversion specifier}}
printf("hhX %hhX", (unsigned char)10); // no-warning
printf("llX %llX", (long long) 10); // no-warning
// This is fine, because there is an implicit conversion to an int.
printf("%d", (unsigned char) 10); // no-warning
printf("%d", (long long) 10); // expected-warning{{format specifies type 'int' but the argument has type 'long long'}}
printf("%Lf\n", (long double) 1.0); // no-warning
printf("%f\n", (long double) 1.0); // expected-warning{{format specifies type 'double' but the argument has type 'long double'}}
// The man page says that a zero precision is okay.
printf("%.0Lf", (long double) 1.0); // no-warning
printf("%c\n", "x"); // expected-warning{{format specifies type 'int' but the argument has type 'char *'}}
printf("%c\n", 1.23); // expected-warning{{format specifies type 'int' but the argument has type 'double'}}
printf("Format %d, is %! %f", 1, 2, 4.4); // expected-warning{{invalid conversion specifier '!'}}
}
typedef unsigned char uint8_t;
void should_understand_small_integers() {
printf("%hhu", (short) 10); // expected-warning{{format specifies type 'unsigned char' but the argument has type 'short'}}
printf("%hu\n", (unsigned char) 1); // expected-warning{{format specifies type 'unsigned short' but the argument has type 'unsigned char'}}
printf("%hu\n", (uint8_t)1); // expected-warning{{format specifies type 'unsigned short' but the argument has type 'uint8_t'}}
}
void test11(void *p, char *s) {
printf("%p", p); // no-warning
printf("%p", 123); // expected-warning{{format specifies type 'void *' but the argument has type 'int'}}
printf("%.4p", p); // expected-warning{{precision used with 'p' conversion specifier, resulting in undefined behavior}}
printf("%+p", p); // expected-warning{{flag '+' results in undefined behavior with 'p' conversion specifier}}
printf("% p", p); // expected-warning{{flag ' ' results in undefined behavior with 'p' conversion specifier}}
printf("%0p", p); // expected-warning{{flag '0' results in undefined behavior with 'p' conversion specifier}}
printf("%s", s); // no-warning
printf("%+s", p); // expected-warning{{flag '+' results in undefined behavior with 's' conversion specifier}}
printf("% s", p); // expected-warning{{flag ' ' results in undefined behavior with 's' conversion specifier}}
printf("%0s", p); // expected-warning{{flag '0' results in undefined behavior with 's' conversion specifier}}
}
void test12(char *b) {
unsigned char buf[4];
printf ("%.4s\n", buf); // no-warning
printf ("%.4s\n", &buf); // expected-warning{{format specifies type 'char *' but the argument has type 'unsigned char (*)[4]'}}
// Verify that we are checking asprintf
asprintf(&b, "%d", "asprintf"); // expected-warning{{format specifies type 'int' but the argument has type 'char *'}}
}
void test13(short x) {
char bel = 007;
printf("bel: '0%hhd'\n", bel); // no-warning
printf("x: '0%hhd'\n", x); // expected-warning {{format specifies type 'char' but the argument has type 'short'}}
}
typedef struct __aslclient *aslclient;
typedef struct __aslmsg *aslmsg;
int asl_log(aslclient asl, aslmsg msg, int level, const char *format, ...) __attribute__((__format__ (__printf__, 4, 5)));
void test_asl(aslclient asl) {
// Test case from <rdar://problem/7341605>.
asl_log(asl, 0, 3, "Error: %m"); // no-warning
asl_log(asl, 0, 3, "Error: %W"); // expected-warning{{invalid conversion specifier 'W'}}
}
// <rdar://problem/7595366>
typedef enum { A } int_t;
void f0(int_t x) { printf("%d\n", x); }
// Unicode test cases. These are possibly specific to Mac OS X. If so, they should
// eventually be moved into a separate test.
void test_unicode_conversions(wchar_t *s) {
printf("%S", s); // no-warning
printf("%s", s); // expected-warning{{format specifies type 'char *' but the argument has type 'wchar_t *'}}
printf("%C", s[0]); // no-warning
printf("%c", s[0]);
// FIXME: This test reports inconsistent results. On Windows, '%C' expects
// 'unsigned short'.
// printf("%C", 10);
printf("%S", "hello"); // expected-warning{{but the argument has type 'char *'}}
}
// Mac OS X supports positional arguments in format strings.
// This is an IEEE extension (IEEE Std 1003.1).
// FIXME: This is probably not portable everywhere.
void test_positional_arguments() {
printf("%0$", (int)2); // expected-warning{{position arguments in format strings start counting at 1 (not 0)}}
printf("%1$*0$d", (int) 2); // expected-warning{{position arguments in format strings start counting at 1 (not 0)}}
printf("%1$d", (int) 2); // no-warning
printf("%1$d", (int) 2, 2); // expected-warning{{data argument not used by format string}}
printf("%1$d%1$f", (int) 2); // expected-warning{{format specifies type 'double' but the argument has type 'int'}}
printf("%1$2.2d", (int) 2); // no-warning
printf("%2$*1$.2d", (int) 2, (int) 3); // no-warning
printf("%2$*8$d", (int) 2, (int) 3); // expected-warning{{specified field width is missing a matching 'int' argument}}
printf("%%%1$d", (int) 2); // no-warning
printf("%1$d%%", (int) 2); // no-warning
}
// PR 6697 - Handle format strings where the data argument is not adjacent to the format string
void myprintf_PR_6697(const char *format, int x, ...) __attribute__((__format__(printf,1, 3)));
void test_pr_6697() {
myprintf_PR_6697("%s\n", 1, "foo"); // no-warning
myprintf_PR_6697("%s\n", 1, (int)0); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
// FIXME: Not everything should clearly support positional arguments,
// but we need a way to identify those cases.
myprintf_PR_6697("%1$s\n", 1, "foo"); // no-warning
myprintf_PR_6697("%2$s\n", 1, "foo"); // expected-warning{{data argument position '2' exceeds the number of data arguments (1)}}
myprintf_PR_6697("%18$s\n", 1, "foo"); // expected-warning{{data argument position '18' exceeds the number of data arguments (1)}}
myprintf_PR_6697("%1$s\n", 1, (int) 0); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
}
void rdar8026030(FILE *fp) {
fprintf(fp, "\%"); // expected-warning{{incomplete format specifier}}
}
void bug7377_bad_length_mod_usage() {
// Bad length modifiers
printf("%hhs", "foo"); // expected-warning{{length modifier 'hh' results in undefined behavior or no effect with 's' conversion specifier}}
printf("%1$zp", (void *)0); // expected-warning{{length modifier 'z' results in undefined behavior or no effect with 'p' conversion specifier}}
printf("%ls", L"foo"); // no-warning
printf("%#.2Lf", (long double)1.234); // no-warning
// Bad flag usage
printf("%#p", (void *) 0); // expected-warning{{flag '#' results in undefined behavior with 'p' conversion specifier}}
printf("%0d", -1); // no-warning
printf("%#n", (int *) 0); // expected-warning{{flag '#' results in undefined behavior with 'n' conversion specifier}}
printf("%-n", (int *) 0); // expected-warning{{flag '-' results in undefined behavior with 'n' conversion specifier}}
printf("%-p", (void *) 0); // no-warning
// Bad optional amount use
printf("%.2c", 'a'); // expected-warning{{precision used with 'c' conversion specifier, resulting in undefined behavior}}
printf("%1n", (int *) 0); // expected-warning{{field width used with 'n' conversion specifier, resulting in undefined behavior}}
printf("%.9n", (int *) 0); // expected-warning{{precision used with 'n' conversion specifier, resulting in undefined behavior}}
// Ignored flags
printf("% +f", 1.23); // expected-warning{{flag ' ' is ignored when flag '+' is present}}
printf("%+ f", 1.23); // expected-warning{{flag ' ' is ignored when flag '+' is present}}
printf("%0-f", 1.23); // expected-warning{{flag '0' is ignored when flag '-' is present}}
printf("%-0f", 1.23); // expected-warning{{flag '0' is ignored when flag '-' is present}}
printf("%-+f", 1.23); // no-warning
}
// PR 7981 - handle '%lc' (wint_t)
void pr7981(wint_t c, wchar_t c2) {
printf("%lc", c); // no-warning
printf("%lc", 1.0); // expected-warning{{the argument has type 'double'}}
printf("%lc", (char) 1); // no-warning
printf("%lc", &c); // expected-warning{{the argument has type 'wint_t *'}}
// If wint_t and wchar_t are the same width and wint_t is signed where
// wchar_t is unsigned, an implicit conversion isn't possible.
#if defined(__WINT_UNSIGNED__) || !defined(__WCHAR_UNSIGNED__) || \
__WINT_WIDTH__ > __WCHAR_WIDTH__
printf("%lc", c2); // no-warning
#endif
}
// <rdar://problem/8269537> -Wformat-security says NULL is not a string literal
void rdar8269537() {
// This is likely to crash in most cases, but -Wformat-nonliteral technically
// doesn't warn in this case.
printf(0); // no-warning
}
// Handle functions with multiple format attributes.
extern void rdar8332221_vprintf_scanf(const char *, va_list, const char *, ...)
__attribute__((__format__(__printf__, 1, 0)))
__attribute__((__format__(__scanf__, 3, 4)));
void rdar8332221(va_list ap, int *x, long *y) {
rdar8332221_vprintf_scanf("%", ap, "%d", x); // expected-warning{{incomplete format specifier}}
}
// PR8641
void pr8641() {
printf("%#x\n", 10);
printf("%#X\n", 10);
}
void posix_extensions() {
// Test %'d, "thousands grouping".
// <rdar://problem/8816343>
printf("%'d\n", 123456789); // no-warning
printf("%'i\n", 123456789); // no-warning
printf("%'f\n", (float) 1.0); // no-warning
printf("%'p\n", (void*) 0); // expected-warning{{results in undefined behavior with 'p' conversion specifier}}
}
// PR8486
//
// Test what happens when -Wformat is on, but -Wformat-security is off.
#pragma GCC diagnostic warning "-Wformat"
#pragma GCC diagnostic ignored "-Wformat-security"
void pr8486() {
printf("%s", 1); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
}
// PR9314
// Don't warn about string literals that are PreDefinedExprs, e.g. __func__.
void pr9314() {
printf(__PRETTY_FUNCTION__); // no-warning
printf(__func__); // no-warning
}
int printf(const char * restrict, ...) __attribute__((__format__ (__printf__, 1, 2)));
void rdar9612060(void) {
printf("%s", 2); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
}
void check_char(unsigned char x, signed char y) {
printf("%c", y); // no-warning
printf("%hhu", x); // no-warning
printf("%hhi", y); // no-warning
printf("%hhi", x); // no-warning
printf("%c", x); // no-warning
printf("%hhu", y); // no-warning
}
// Test suppression of individual warnings.
void test_suppress_invalid_specifier() {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-invalid-specifier"
printf("%@", 12); // no-warning
#pragma clang diagnostic pop
}
// Make sure warnings are on for next test.
#pragma GCC diagnostic warning "-Wformat"
#pragma GCC diagnostic warning "-Wformat-security"
// Test that the printf call site is where the warning is attached. If the
// format string is somewhere else, point to it in a note.
void pr9751() {
const char kFormat1[] = "%d %d \n"; // expected-note{{format string is defined here}}}
printf(kFormat1, 0); // expected-warning{{more '%' conversions than data arguments}}
printf("%d %s\n", 0); // expected-warning{{more '%' conversions than data arguments}}
const char kFormat2[] = "%18$s\n"; // expected-note{{format string is defined here}}
printf(kFormat2, 1, "foo"); // expected-warning{{data argument position '18' exceeds the number of data arguments (2)}}
printf("%18$s\n", 1, "foo"); // expected-warning{{data argument position '18' exceeds the number of data arguments (2)}}
const char kFormat4[] = "%y"; // expected-note{{format string is defined here}}
printf(kFormat4, 5); // expected-warning{{invalid conversion specifier 'y'}}
printf("%y", 5); // expected-warning{{invalid conversion specifier 'y'}}
const char kFormat5[] = "%."; // expected-note{{format string is defined here}}
printf(kFormat5, 5); // expected-warning{{incomplete format specifier}}
printf("%.", 5); // expected-warning{{incomplete format specifier}}
const char kFormat6[] = "%s"; // expected-note{{format string is defined here}}
printf(kFormat6, 5); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
printf("%s", 5); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
const char kFormat7[] = "%0$"; // expected-note{{format string is defined here}}
printf(kFormat7, 5); // expected-warning{{position arguments in format strings start counting at 1 (not 0)}}
printf("%0$", 5); // expected-warning{{position arguments in format strings start counting at 1 (not 0)}}
const char kFormat8[] = "%1$d %d"; // expected-note{{format string is defined here}}
printf(kFormat8, 4, 4); // expected-warning{{cannot mix positional and non-positional arguments in format string}}
printf("%1$d %d", 4, 4); // expected-warning{{cannot mix positional and non-positional arguments in format string}}
const char kFormat9[] = ""; // expected-note{{format string is defined here}}
printf(kFormat9, 4, 4); // expected-warning{{format string is empty}}
printf("", 4, 4); // expected-warning{{format string is empty}}
const char kFormat10[] = "\0%d"; // expected-note{{format string is defined here}}
printf(kFormat10, 4); // expected-warning{{format string contains '\0' within the string body}}
printf("\0%d", 4); // expected-warning{{format string contains '\0' within the string body}}
const char kFormat11[] = "%*d"; // expected-note{{format string is defined here}}
printf(kFormat11); // expected-warning{{'*' specified field width is missing a matching 'int' argument}}
printf("%*d"); // expected-warning{{'*' specified field width is missing a matching 'int' argument}}
const char kFormat12[] = "%*d"; // expected-note{{format string is defined here}}
printf(kFormat12, 4.4); // expected-warning{{field width should have type 'int', but argument has type 'double'}}
printf("%*d", 4.4); // expected-warning{{field width should have type 'int', but argument has type 'double'}}
const char kFormat13[] = "%.3p"; // expected-note{{format string is defined here}}
void *p;
printf(kFormat13, p); // expected-warning{{precision used with 'p' conversion specifier, resulting in undefined behavior}}
printf("%.3p", p); // expected-warning{{precision used with 'p' conversion specifier, resulting in undefined behavior}}
const char kFormat14[] = "%0s"; // expected-note{{format string is defined here}}
printf(kFormat14, "a"); // expected-warning{{flag '0' results in undefined behavior with 's' conversion specifier}}
printf("%0s", "a"); // expected-warning{{flag '0' results in undefined behavior with 's' conversion specifier}}
const char kFormat15[] = "%hhs"; // expected-note{{format string is defined here}}
printf(kFormat15, "a"); // expected-warning{{length modifier 'hh' results in undefined behavior or no effect with 's' conversion specifier}}
printf("%hhs", "a"); // expected-warning{{length modifier 'hh' results in undefined behavior or no effect with 's' conversion specifier}}
const char kFormat16[] = "%-0d"; // expected-note{{format string is defined here}}
printf(kFormat16, 5); // expected-warning{{flag '0' is ignored when flag '-' is present}}
printf("%-0d", 5); // expected-warning{{flag '0' is ignored when flag '-' is present}}
// Make sure that the "format string is defined here" note is not emitted
// when the original string is within the argument expression.
printf(1 ? "yes %d" : "no %d"); // expected-warning 2{{more '%' conversions than data arguments}}
const char kFormat17[] = "%hu"; // expected-note{{format string is defined here}}}
printf(kFormat17, (int[]){0}); // expected-warning{{format specifies type 'unsigned short' but the argument}}
printf("%a", (long double)0); // expected-warning{{format specifies type 'double' but the argument has type 'long double'}}
// Test braced char[] initializers.
const char kFormat18[] = { "%lld" }; // expected-note{{format string is defined here}}
printf(kFormat18, 0); // expected-warning{{format specifies type}}
// Make sure we point at the offending argument rather than the format string.
const char kFormat19[] = "%d"; // expected-note{{format string is defined here}}
printf(kFormat19,
0.0); // expected-warning{{format specifies}}
}
void pr18905() {
const char s1[] = "s\0%s"; // expected-note{{format string is defined here}}
const char s2[1] = "s"; // expected-note{{format string is defined here}}
const char s3[2] = "s\0%s"; // expected-warning{{initializer-string for char array is too long}}
const char s4[10] = "s";
const char s5[0] = "%s"; // expected-warning{{initializer-string for char array is too long}}
// expected-note@-1{{format string is defined here}}
printf(s1); // expected-warning{{format string contains '\0' within the string body}}
printf(s2); // expected-warning{{format string is not null-terminated}}
printf(s3); // no-warning
printf(s4); // no-warning
printf(s5); // expected-warning{{format string is not null-terminated}}
}
void __attribute__((format(strfmon,1,2))) monformat(const char *fmt, ...);
void __attribute__((format(strftime,1,0))) dateformat(const char *fmt);
// Other formats
void test_other_formats() {
char *str = "";
monformat("", 1); // expected-warning{{format string is empty}}
monformat(str); // expected-warning{{format string is not a string literal (potentially insecure)}}
dateformat(""); // expected-warning{{format string is empty}}
dateformat(str); // no-warning (using strftime non-literal is not unsafe)
}
// Do not warn about unused arguments coming from system headers.
// <rdar://problem/11317765>
#include <format-unused-system-args.h>
void test_unused_system_args(int x) {
PRINT1("%d\n", x); // no-warning{{extra argument is system header is OK}}
}
void pr12761(char c) {
// This should not warn even with -fno-signed-char.
printf("%hhx", c);
}
// Test that we correctly merge the format in both orders.
extern void test14_foo(const char *, const char *, ...)
__attribute__((__format__(__printf__, 1, 3)));
extern void test14_foo(const char *, const char *, ...)
__attribute__((__format__(__scanf__, 2, 3)));
extern void test14_bar(const char *, const char *, ...)
__attribute__((__format__(__scanf__, 2, 3)));
extern void test14_bar(const char *, const char *, ...)
__attribute__((__format__(__printf__, 1, 3)));
void test14_zed(int *p) {
test14_foo("%", "%d", p); // expected-warning{{incomplete format specifier}}
test14_bar("%", "%d", p); // expected-warning{{incomplete format specifier}}
}
void test_qualifiers(volatile int *vip, const int *cip,
const volatile int *cvip) {
printf("%n", cip); // expected-warning{{format specifies type 'int *' but the argument has type 'const int *'}}
printf("%n", cvip); // expected-warning{{format specifies type 'int *' but the argument has type 'const volatile int *'}}
printf("%n", vip); // No warning.
printf("%p", cip); // No warning.
printf("%p", cvip); // No warning.
typedef int* ip_t;
typedef const int* cip_t;
printf("%n", (ip_t)0); // No warning.
printf("%n", (cip_t)0); // expected-warning{{format specifies type 'int *' but the argument has type 'cip_t' (aka 'const int *')}}
}
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
#pragma GCC diagnostic warning "-Wformat-security"
// <rdar://problem/14178260>
extern void test_format_security_extra_args(const char*, int, ...)
__attribute__((__format__(__printf__, 1, 3)));
void test_format_security_pos(char* string) {
test_format_security_extra_args(string, 5); // expected-warning {{format string is not a string literal (potentially insecure)}}
}
#pragma GCC diagnostic warning "-Wformat-nonliteral"
|
{
"pile_set_name": "Github"
}
|
### 2.2 数据类型
[教程地址: 2.2 数据类型](http://javascript.ruanyifeng.com/grammar/types.html)
---
### 目录
```
1. 概述
2. typeof运算符
3. null和undefined
3.1 概述
3.2 用法和含义
4. 布尔值
5. 参考链接
```
---
### 1. 概述
- JavaScript的数据类型,共有六种。(ES6又新增了第七种Symbol类型的值,本教程不涉及。)
- 数值(number):整数和小数(比如1和3.14)
- 字符串(string):字符组成的文本(比如”Hello World”)
- 布尔值(boolean):true(真)和false(假)两个特定值
- undefined:表示“未定义”或不存在,即此处目前没有任何值
- null:表示空缺,即此处应该有一个值,但目前为空
- 对象(object):各种值组成的集合(对象又可以分成三个子类型)
- 狭义的对象(object)
- 数组(array)
- 函数(function)
```
- 通常,我们将数值、字符串、布尔值称为原始类型(primitive type)的值,即它们是最基本的数据类型,不能再细分了
- 而将对象称为合成类型(complex type)的值,因为一个对象往往是多个原始类型的值的合成,可以看作是一个存放各种值的容器
- 至于undefined和null,一般将它们看成两个特殊值
- 狭义的对象和数组是两种不同的数据组合方式,而函数其实是处理数据的方法。JavaScript把函数当成一种数据类型,可以像其他类型的数据一样,进行赋值和传递,这为编程带来了很大的灵活性,体现了JavaScript作为“函数式语言”的本质
- 这里需要明确的是,JavaScript的所有数据,都可以视为广义的对象。不仅数组和函数属于对象,就连原始类型的数据(数值、字符串、布尔值)也可以用对象方式调用。为了避免混淆,此后除非特别声明,本教程的”对象“都特指狭义的对象
```
---
### 2. typeof运算符
- JavaScript有三种方法
- typeof运算符
- instanceof运算符
- Object.prototype.toString方法
- typeof运算符可以返回一个值的数据类型,可能有以下结果
- 原始类型:数值、字符串、布尔值分别返回number、string、boolean
- 函数:函数返回function
- undefined:undefined返回undefined(利用这一点,typeof可以用来检查一个没有声明的变量,而不报错)
- 其他:除此以外,其他情况都返回object
- `typeof [] // "object"` 空数组([])的类型也是object,这表示在JavaScript内部,数组本质上只是一种特殊的对象
- `typeof null // "object"` 另外,null的类型也是object,这是由于历史原因造成的,本质上null是一个类似于undefined的特殊值
- 既然typeof对数组(array)和对象(object)的显示结果都是object,那么怎么区分它们呢?instanceof运算符可以做到
---
### 3. null和underfined
#### 3.1 概述
- ull与undefined都可以表示“没有”,含义非常相似。将一个变量赋值为undefined或null,老实说,语法效果几乎没区别
- 在if语句中,它们都会被自动转为false,相等运算符(==)甚至直接报告两者相等
- null是一个表示”无”的对象,转为数值时为0;undefined是一个表示”无”的原始值,转为数值时为NaN
#### 3.2 用法和含义
- null表示空值,即该处的值现在为空。比如,调用函数时,不需要传入某个参数,这时就可以传入null
- undefined表示“未定义”,下面是返回undefined的典型场景
- 变量声明了,但没有赋值
- 调用函数时,应该提供的参数没有提供,该参数等于undefined
- 对象没有赋值的属性
- 函数没有返回值时,默认返回undefined
---
### 4. 布尔值
- 如果JavaScript预期某个位置应该是布尔值,会将该位置上现有的值自动转为布尔值。转换规则是除了下面六个值被转为false,其他值都视为true
- undefined
- null
- false
- 0
- NaN
- ""或''(空字符串)
- **需要特别注意的是,空数组([])和空对象({})对应的布尔值,都是true**
---
### 5. 参考链接
>略
|
{
"pile_set_name": "Github"
}
|
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
// peripheral BT0
namespace Bt6PwmTmcr{ ///< register PWM_TMCR
using Addr = Register::Address<0x4002528c,0xffff8080,0x00000000,unsigned>;
/// bitfield CKS2_0
constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{};
/// bitfield RTGEN
constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::ReadWriteAccess,unsigned> rtgen{};
/// bitfield PMSK
constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::ReadWriteAccess,unsigned> pmsk{};
/// bitfield EGS
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> egs{};
/// bitfield FMD
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{};
/// bitfield OSEL
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> osel{};
/// bitfield MDSE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{};
/// bitfield CTEN
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{};
/// bitfield STRG
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> strg{};
}
namespace Bt6PwmTmcr2{ ///< register PWM_TMCR2
using Addr = Register::Address<0x40025291,0xfffffffe,0x00000000,unsigned char>;
/// bitfield CKS3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> cks3{};
}
namespace Bt6PwmStc{ ///< register PWM_STC
using Addr = Register::Address<0x40025290,0xffffff88,0x00000000,unsigned char>;
/// bitfield TGIE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> tgie{};
/// bitfield DTIE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,unsigned> dtie{};
/// bitfield UDIE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> udie{};
/// bitfield TGIR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> tgir{};
/// bitfield DTIR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> dtir{};
/// bitfield UDIR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> udir{};
}
namespace Bt6PwmPcsr{ ///< register PWM_PCSR
using Addr = Register::Address<0x40025280,0xffffffff,0x00000000,unsigned>;
}
namespace Bt6PwmPdut{ ///< register PWM_PDUT
using Addr = Register::Address<0x40025284,0xffffffff,0x00000000,unsigned>;
}
namespace Bt6PwmTmr{ ///< register PWM_TMR
using Addr = Register::Address<0x40025288,0xffffffff,0x00000000,unsigned>;
}
namespace Bt6PpgTmcr{ ///< register PPG_TMCR
using Addr = Register::Address<0x4002528c,0xffff8080,0x00000000,unsigned>;
/// bitfield CKS2_0
constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{};
/// bitfield RTGEN
constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::ReadWriteAccess,unsigned> rtgen{};
/// bitfield PMSK
constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::ReadWriteAccess,unsigned> pmsk{};
/// bitfield EGS
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> egs{};
/// bitfield FMD
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{};
/// bitfield OSEL
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> osel{};
/// bitfield MDSE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{};
/// bitfield CTEN
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{};
/// bitfield STRG
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> strg{};
}
namespace Bt6PpgTmcr2{ ///< register PPG_TMCR2
using Addr = Register::Address<0x40025291,0xfffffffd,0x00000000,unsigned char>;
/// bitfield CKS3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cks3{};
}
namespace Bt6PpgStc{ ///< register PPG_STC
using Addr = Register::Address<0x40025290,0xffffffaa,0x00000000,unsigned char>;
/// bitfield TGIE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> tgie{};
/// bitfield UDIE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> udie{};
/// bitfield TGIR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> tgir{};
/// bitfield UDIR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> udir{};
}
namespace Bt6PpgPrll{ ///< register PPG_PRLL
using Addr = Register::Address<0x40025280,0xffffffff,0x00000000,unsigned>;
}
namespace Bt6PpgPrlh{ ///< register PPG_PRLH
using Addr = Register::Address<0x40025284,0xffffffff,0x00000000,unsigned>;
}
namespace Bt6PpgTmr{ ///< register PPG_TMR
using Addr = Register::Address<0x40025288,0xffffffff,0x00000000,unsigned>;
}
namespace Bt6RtTmcr{ ///< register RT_TMCR
using Addr = Register::Address<0x4002528c,0xffff8c00,0x00000000,unsigned>;
/// bitfield CKS2_0
constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{};
/// bitfield EGS
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> egs{};
/// bitfield T32
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,unsigned> t32{};
/// bitfield FMD
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{};
/// bitfield OSEL
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> osel{};
/// bitfield MDSE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{};
/// bitfield CTEN
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{};
/// bitfield STRG
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> strg{};
}
namespace Bt6RtTmcr2{ ///< register RT_TMCR2
using Addr = Register::Address<0x40025291,0xfffffffe,0x00000000,unsigned char>;
/// bitfield CKS3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> cks3{};
}
namespace Bt6RtStc{ ///< register RT_STC
using Addr = Register::Address<0x40025290,0xffffffaa,0x00000000,unsigned char>;
/// bitfield TGIE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> tgie{};
/// bitfield UDIE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> udie{};
/// bitfield TGIR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> tgir{};
/// bitfield UDIR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> udir{};
}
namespace Bt6RtPcsr{ ///< register RT_PCSR
using Addr = Register::Address<0x40025280,0xffffffff,0x00000000,unsigned>;
}
namespace Bt6RtTmr{ ///< register RT_TMR
using Addr = Register::Address<0x40025288,0xffffffff,0x00000000,unsigned>;
}
namespace Bt6PwcTmcr{ ///< register PWC_TMCR
using Addr = Register::Address<0x4002528c,0xffff8809,0x00000000,unsigned>;
/// bitfield CKS2_0
constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{};
/// bitfield EGS
constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,8),Register::ReadWriteAccess,unsigned> egs{};
/// bitfield T32
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,unsigned> t32{};
/// bitfield FMD
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{};
/// bitfield MDSE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{};
/// bitfield CTEN
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{};
}
namespace Bt6PwcTmcr2{ ///< register PWC_TMCR2
using Addr = Register::Address<0x40025291,0xfffffffe,0x00000000,unsigned char>;
/// bitfield CKS3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> cks3{};
}
namespace Bt6PwcStc{ ///< register PWC_STC
using Addr = Register::Address<0x40025290,0xffffff2a,0x00000000,unsigned char>;
/// bitfield ERR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> err{};
/// bitfield EDIE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> edie{};
/// bitfield OVIE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> ovie{};
/// bitfield EDIR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> edir{};
/// bitfield OVIR
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> ovir{};
}
namespace Bt6PwcDtbf{ ///< register PWC_DTBF
using Addr = Register::Address<0x40025284,0xffffffff,0x00000000,unsigned>;
}
}
|
{
"pile_set_name": "Github"
}
|
{
"country_code": "KR",
"parents": [
"KR",
"Jeollabuk-do"
],
"locale": "ko",
"subdivisions": {
"Gochang-gun": {
"local_code": "고창군",
"postal_code_pattern": "564"
},
"Gunsan-si": {
"local_code": "군산시",
"postal_code_pattern": "54[01]"
},
"Gimje-si": {
"local_code": "김제시",
"postal_code_pattern": "543"
},
"Namwon-si": {
"local_code": "남원시",
"postal_code_pattern": "55[78]"
},
"Muju-gun": {
"local_code": "무주군",
"postal_code_pattern": "555"
},
"Buan-gun": {
"local_code": "부안군",
"postal_code_pattern": "563"
},
"Sunchang-gun": {
"local_code": "순창군",
"postal_code_pattern": "560"
},
"Wanju-gun": {
"local_code": "완주군",
"postal_code_pattern": "553"
},
"Iksan-si": {
"local_code": "익산시",
"postal_code_pattern": "54[56]"
},
"Imsil-gun": {
"local_code": "임실군",
"postal_code_pattern": "559"
},
"Jangsu-gun": {
"local_code": "장수군",
"postal_code_pattern": "556"
},
"Jeonju-si": {
"local_code": "전주시",
"postal_code_pattern": "5(?:4[89]|5[01])",
"has_children": true
},
"Jeongeup-si": {
"local_code": "정읍시",
"postal_code_pattern": "56[12]"
},
"Jinan-gun": {
"local_code": "진안군",
"postal_code_pattern": "554"
}
}
}
|
{
"pile_set_name": "Github"
}
|
#ifndef UI_CONTROL_SCROLLBAR_H_
#define UI_CONTROL_SCROLLBAR_H_
#pragma once
namespace ui
{
class UILIB_API ScrollBar : public Control
{
public:
ScrollBar();
Box* GetOwner() const;
void SetOwner(ScrollableBox* pOwner);
virtual void SetEnabled(bool bEnable = true) override;
virtual void SetFocus() override;
virtual void SetVisible_(bool bVisible) override;
virtual bool ButtonUp(EventArgs& msg) override;
virtual bool MouseEnter(EventArgs& msg) override;
virtual bool MouseLeave(EventArgs& msg) override;
virtual void SetPos(UiRect rc) override;
virtual void HandleMessage(EventArgs& event) override;
virtual void SetAttribute(const std::wstring& strName, const std::wstring& strValue) override;
virtual void Paint(IRenderContext* pRender, const UiRect& rcPaint) override;
void PaintBk(IRenderContext* pRender);
void PaintButton1(IRenderContext* pRender);
void PaintButton2(IRenderContext* pRender);
void PaintThumb(IRenderContext* pRender);
void PaintRail(IRenderContext* pRender);
bool IsHorizontal();
void SetHorizontal(bool bHorizontal = true);
int GetScrollRange() const;
void SetScrollRange(int nRange);
bool IsValid() { return GetScrollRange() != 0; }
int GetScrollPos() const;
void SetScrollPos(int nPos);
int GetLineSize() const;
void SetLineSize(int nSize);
int GetThumbMinLength() const;
void SetThumbMinLength(int nThumbMinLength);
bool IsShowButton1();
void SetShowButton1(bool bShow);
std::wstring GetButton1StateImage(ControlStateType stateType);
void SetButton1StateImage(ControlStateType stateType, const std::wstring& pStrImage);
bool IsShowButton2();
void SetShowButton2(bool bShow);
std::wstring GetButton2StateImage(ControlStateType stateType);
void SetButton2StateImage(ControlStateType stateType, const std::wstring& pStrImage);
std::wstring GetThumbStateImage(ControlStateType stateType);
void SetThumbStateImage(ControlStateType stateType, const std::wstring& pStrImage);
std::wstring GetRailStateImage(ControlStateType stateType);
void SetRailStateImage(ControlStateType stateType, const std::wstring& pStrImage);
std::wstring GetBkStateImage(ControlStateType stateType);
void SetBkStateImage(ControlStateType stateType, const std::wstring& pStrImage);
bool IsAutoHideScroll(){return m_bAutoHide;}
void SetAutoHideScroll(bool hide);
ControlStateType GetThumbState() { return m_uThumbState; }
virtual void ClearImageCache() override;
private:
void ScrollBar::ScrollTimeHandle();
protected:
enum
{
DEFAULT_SCROLLBAR_SIZE = 16,
};
bool m_bHorizontal;
bool m_bShowButton1;
bool m_bShowButton2;
bool m_bAutoHide;
int m_nRange;
int m_nScrollPos;
int m_nLineSize;
int m_nThumbMinLength;
int m_nLastScrollPos;
int m_nLastScrollOffset;
int m_nScrollRepeatDelay;
ScrollableBox* m_pOwner;
POINT m_ptLastMouse;
UiRect m_rcButton1;
UiRect m_rcButton2;
UiRect m_rcThumb;
ControlStateType m_uButton1State;
ControlStateType m_uButton2State;
ControlStateType m_uThumbState;
std::wstring m_sImageModify;
StateImage m_bkStateImage;
StateImage m_button1StateImage;
StateImage m_button2StateImage;
StateImage m_thumbStateImage;
StateImage m_railStateImage;
nbase::WeakCallbackFlag m_weakFlagOwner;
};
}
#endif // UI_CONTROL_SCROLLBAR_H_
|
{
"pile_set_name": "Github"
}
|
//===== eAthena Script =======================================
//= Geffen Warp Script
//===== By: ==================================================
//= Nana (1.0)
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= Any Athena Version
//===== Description: =========================================
//= Warp Points for Geffen Field's
//===== Additional Comments: =================================
//= No comment!
//============================================================
//= Geffen Field Warps =======================================
gef_fild00,267,382,0 warp gef007 4,2,mjolnir_06,265,32
gef_fild00,381,137,0 warp gef008 3,9,prt_fild00,24,125
gef_fild00,40,199,0 warp gef009 2,7,geffen,213,119
gef_fild01,382,111,0 warp gef010 2,9,prt_fild04,20,114
gef_fild01,16,102,0 warp geff01 2,4,gef_fild09,368,92
gef_fild01,69,17,0 warp geff02 4,2,gef_fild03,66,379
gef_fild02,380,156,0 warp gef011 3,7,prt_fild07,21,143
gef_fild02,380,289,0 warp gef012 3,12,prt_fild07,18,289
gef_fild02,380,68,0 warp gef013 3,10,prt_fild07,17,64
gef_fild02,266,18,0 warp gef026 5,2,prt_fild10,227,296
gef_fild02,14,78,0 warp geff03 2,4,gef_fild03,379,77
gef_fild02,16,275,0 warp geff04 2,4,gef_fild03,379,277
gef_fild03,312,16,0 warp gef014 5,2,prt_fild11,302,298
gef_fild03,66,382,0 warp geff02-1 4,2,gef_fild01,69,20
gef_fild03,382,77,0 warp geff03-1 2,4,gef_fild02,17,78
gef_fild03,382,277,0 warp geff04-1 2,4,gef_fild02,19,275
gef_fild03,18,52,0 warp geff05 2,4,gef_fild10,367,56
gef_fild04,187,39,0 warp gef015 4,2,geffen,119,210
gef_fild04,261,362,0 warp gef016 4,2,mjolnir_01,284,21
gef_fild04,362,322,0 warp gef017 2,4,mjolnir_06,21,331
gef_fild04,16,309,0 warp geff06 2,6,gef_fild05,361,309
gef_fild05,364,309,0 warp geff06-1 2,8,gef_fild04,19,309
gef_fild05,15,201,0 warp geff07 2,4,gef_fild06,379,211
gef_fild05,64,15,0 warp geff08 4,2,gef_fild07,64,360
gef_fild06,382,211,0 warp geff07-1 2,4,gef_fild05,18,201
gef_fild06,218,17,0 warp geff09 4,2,gef_fild08,200,352
gef_fild07,339,187,0 warp gef025 2,4,geffen,29,119
gef_fild07,64,363,0 warp geff08-1 4,2,gef_fild05,64,18
gef_fild07,18,191,0 warp geff10 2,4,gef_fild08,357,187
gef_fild07,40,19,0 warp geff13 1,1,gef_fild13,41,369
gef_fild08,200,355,0 warp geff09-1 4,2,gef_fild06,218,20
gef_fild08,360,187,0 warp geff10-1 2,4,gef_fild07,21,191
gef_fild08,215,18,0 warp geff14 1,1,gef_fild12,221,369
gef_fild09,23,56,0 warp geff18-1 1,1,gef_fild13,376,56
gef_fild09,225,25,0 warp geff11 3,2,gef_fild10,251,368
gef_fild09,368,95,0 warp geff01-1 4,2,gef_fild01,19,102
gef_fild10,251,371,0 warp geff11-1 5,2,gef_fild09,225,28
gef_fild10,104,21,0 warp geff12 5,2,gef_fild11,114,360
gef_fild10,370,56,0 warp geff05-1 2,5,gef_fild03,21,52
gef_fild10,136,331,0 warp gef018 1,1,in_orcs01,122,171
gef_fild10,138,284,0 warp gef019 1,1,in_orcs01,29,114
gef_fild10,215,51,0 warp gef020 1,1,in_orcs01,162,53
gef_fild10,223,205,0 warp gef021 1,1,in_orcs01,108,89
gef_fild10,63,337,0 warp gef022 1,1,in_orcs01,30,157
gef_fild10,27,219,0 warp geff19-1 1,1,gef_fild14,367,219
gef_fild11,377,293,0 warp gef023 2,4,prt_fild11,20,281
gef_fild11,111,364,0 warp geff12-1 6,3,gef_fild10,104,24
gef_fild12,221,374,0 warp geff14-1 1,1,gef_fild08,215,25
gef_fild12,368,180,0 warp geff15 1,1,gef_fild13,29,202
gef_fild12,372,50,0 warp geff16 1,1,gef_fild13,29,59
gef_fild13,200,25,0 warp geff17 1,1,gef_fild14,180,357
gef_fild13,25,202,0 warp geff15-1 1,1,gef_fild12,364,180
gef_fild13,26,59,0 warp geff16-1 1,1,gef_fild12,370,50
gef_fild13,380,56,0 warp geff18 1,1,gef_fild09,27,56
gef_fild13,41,373,0 warp geff13-1 1,1,gef_fild07,40,23
gef_fild14,180,360,0 warp geff17-1 1,1,gef_fild13,200,29
gef_fild14,371,219,0 warp geff19 1,1,gef_fild10,31,219
|
{
"pile_set_name": "Github"
}
|
0061..007A
00AA..00AA
00B5..00B5
00BA..00BA
00DF..00F6
00F8..00FF
0101..0101
0103..0103
0105..0105
0107..0107
0109..0109
010B..010B
010D..010D
010F..010F
0111..0111
0113..0113
0115..0115
0117..0117
0119..0119
011B..011B
011D..011D
011F..011F
0121..0121
0123..0123
0125..0125
0127..0127
0129..0129
012B..012B
012D..012D
012F..012F
0131..0131
0133..0133
0135..0135
0137..0138
013A..013A
013C..013C
013E..013E
0140..0140
0142..0142
0144..0144
0146..0146
0148..0149
014B..014B
014D..014D
014F..014F
0151..0151
0153..0153
0155..0155
0157..0157
0159..0159
015B..015B
015D..015D
015F..015F
0161..0161
0163..0163
0165..0165
0167..0167
0169..0169
016B..016B
016D..016D
016F..016F
0171..0171
0173..0173
0175..0175
0177..0177
017A..017A
017C..017C
017E..0180
0183..0183
0185..0185
0188..0188
018C..018D
0192..0192
0195..0195
0199..019B
019E..019E
01A1..01A1
01A3..01A3
01A5..01A5
01A8..01A8
01AA..01AB
01AD..01AD
01B0..01B0
01B4..01B4
01B6..01B6
01B9..01BA
01BD..01BF
01C6..01C6
01C9..01C9
01CC..01CC
01CE..01CE
01D0..01D0
01D2..01D2
01D4..01D4
01D6..01D6
01D8..01D8
01DA..01DA
01DC..01DD
01DF..01DF
01E1..01E1
01E3..01E3
01E5..01E5
01E7..01E7
01E9..01E9
01EB..01EB
01ED..01ED
01EF..01F0
01F3..01F3
01F5..01F5
01F9..01F9
01FB..01FB
01FD..01FD
01FF..01FF
0201..0201
0203..0203
0205..0205
0207..0207
0209..0209
020B..020B
020D..020D
020F..020F
0211..0211
0213..0213
0215..0215
0217..0217
0219..0219
021B..021B
021D..021D
021F..021F
0221..0221
0223..0223
0225..0225
0227..0227
0229..0229
022B..022B
022D..022D
022F..022F
0231..0231
0233..0239
023C..023C
023F..0240
0242..0242
0247..0247
0249..0249
024B..024B
024D..024D
024F..0293
0295..02B8
02C0..02C1
02E0..02E4
0345..0345
0371..0371
0373..0373
0377..0377
037A..037D
0390..0390
03AC..03CE
03D0..03D1
03D5..03D7
03D9..03D9
03DB..03DB
03DD..03DD
03DF..03DF
03E1..03E1
03E3..03E3
03E5..03E5
03E7..03E7
03E9..03E9
03EB..03EB
03ED..03ED
03EF..03F3
03F5..03F5
03F8..03F8
03FB..03FC
0430..045F
0461..0461
0463..0463
0465..0465
0467..0467
0469..0469
046B..046B
046D..046D
046F..046F
0471..0471
0473..0473
0475..0475
0477..0477
0479..0479
047B..047B
047D..047D
047F..047F
0481..0481
048B..048B
048D..048D
048F..048F
0491..0491
0493..0493
0495..0495
0497..0497
0499..0499
049B..049B
049D..049D
049F..049F
04A1..04A1
04A3..04A3
04A5..04A5
04A7..04A7
04A9..04A9
04AB..04AB
04AD..04AD
04AF..04AF
04B1..04B1
04B3..04B3
04B5..04B5
04B7..04B7
04B9..04B9
04BB..04BB
04BD..04BD
04BF..04BF
04C2..04C2
04C4..04C4
04C6..04C6
04C8..04C8
04CA..04CA
04CC..04CC
04CE..04CF
04D1..04D1
04D3..04D3
04D5..04D5
04D7..04D7
04D9..04D9
04DB..04DB
04DD..04DD
04DF..04DF
04E1..04E1
04E3..04E3
04E5..04E5
04E7..04E7
04E9..04E9
04EB..04EB
04ED..04ED
04EF..04EF
04F1..04F1
04F3..04F3
04F5..04F5
04F7..04F7
04F9..04F9
04FB..04FB
04FD..04FD
04FF..04FF
0501..0501
0503..0503
0505..0505
0507..0507
0509..0509
050B..050B
050D..050D
050F..050F
0511..0511
0513..0513
0515..0515
0517..0517
0519..0519
051B..051B
051D..051D
051F..051F
0521..0521
0523..0523
0525..0525
0561..0587
1D00..1DBF
1E01..1E01
1E03..1E03
1E05..1E05
1E07..1E07
1E09..1E09
1E0B..1E0B
1E0D..1E0D
1E0F..1E0F
1E11..1E11
1E13..1E13
1E15..1E15
1E17..1E17
1E19..1E19
1E1B..1E1B
1E1D..1E1D
1E1F..1E1F
1E21..1E21
1E23..1E23
1E25..1E25
1E27..1E27
1E29..1E29
1E2B..1E2B
1E2D..1E2D
1E2F..1E2F
1E31..1E31
1E33..1E33
1E35..1E35
1E37..1E37
1E39..1E39
1E3B..1E3B
1E3D..1E3D
1E3F..1E3F
1E41..1E41
1E43..1E43
1E45..1E45
1E47..1E47
1E49..1E49
1E4B..1E4B
1E4D..1E4D
1E4F..1E4F
1E51..1E51
1E53..1E53
1E55..1E55
1E57..1E57
1E59..1E59
1E5B..1E5B
1E5D..1E5D
1E5F..1E5F
1E61..1E61
1E63..1E63
1E65..1E65
1E67..1E67
1E69..1E69
1E6B..1E6B
1E6D..1E6D
1E6F..1E6F
1E71..1E71
1E73..1E73
1E75..1E75
1E77..1E77
1E79..1E79
1E7B..1E7B
1E7D..1E7D
1E7F..1E7F
1E81..1E81
1E83..1E83
1E85..1E85
1E87..1E87
1E89..1E89
1E8B..1E8B
1E8D..1E8D
1E8F..1E8F
1E91..1E91
1E93..1E93
1E95..1E9D
1E9F..1E9F
1EA1..1EA1
1EA3..1EA3
1EA5..1EA5
1EA7..1EA7
1EA9..1EA9
1EAB..1EAB
1EAD..1EAD
1EAF..1EAF
1EB1..1EB1
1EB3..1EB3
1EB5..1EB5
1EB7..1EB7
1EB9..1EB9
1EBB..1EBB
1EBD..1EBD
1EBF..1EBF
1EC1..1EC1
1EC3..1EC3
1EC5..1EC5
1EC7..1EC7
1EC9..1EC9
1ECB..1ECB
1ECD..1ECD
1ECF..1ECF
1ED1..1ED1
1ED3..1ED3
1ED5..1ED5
1ED7..1ED7
1ED9..1ED9
1EDB..1EDB
1EDD..1EDD
1EDF..1EDF
1EE1..1EE1
1EE3..1EE3
1EE5..1EE5
1EE7..1EE7
1EE9..1EE9
1EEB..1EEB
1EED..1EED
1EEF..1EEF
1EF1..1EF1
1EF3..1EF3
1EF5..1EF5
1EF7..1EF7
1EF9..1EF9
1EFB..1EFB
1EFD..1EFD
1EFF..1F07
1F10..1F15
1F20..1F27
1F30..1F37
1F40..1F45
1F50..1F57
1F60..1F67
1F70..1F7D
1F80..1F87
1F90..1F97
1FA0..1FA7
1FB0..1FB4
1FB6..1FB7
1FBE..1FBE
1FC2..1FC4
1FC6..1FC7
1FD0..1FD3
1FD6..1FD7
1FE0..1FE7
1FF2..1FF4
1FF6..1FF7
2090..2094
210A..210A
210E..210F
2113..2113
212F..212F
2134..2134
2139..2139
213C..213D
2146..2149
214E..214E
2170..217F
2184..2184
24D0..24E9
2C30..2C5E
2C61..2C61
2C65..2C66
2C68..2C68
2C6A..2C6A
2C6C..2C6C
2C71..2C71
2C73..2C74
2C76..2C7D
2C81..2C81
2C83..2C83
2C85..2C85
2C87..2C87
2C89..2C89
2C8B..2C8B
2C8D..2C8D
2C8F..2C8F
2C91..2C91
2C93..2C93
2C95..2C95
2C97..2C97
2C99..2C99
2C9B..2C9B
2C9D..2C9D
2C9F..2C9F
2CA1..2CA1
2CA3..2CA3
2CA5..2CA5
2CA7..2CA7
2CA9..2CA9
2CAB..2CAB
2CAD..2CAD
2CAF..2CAF
2CB1..2CB1
2CB3..2CB3
2CB5..2CB5
2CB7..2CB7
2CB9..2CB9
2CBB..2CBB
2CBD..2CBD
2CBF..2CBF
2CC1..2CC1
2CC3..2CC3
2CC5..2CC5
2CC7..2CC7
2CC9..2CC9
2CCB..2CCB
2CCD..2CCD
2CCF..2CCF
2CD1..2CD1
2CD3..2CD3
2CD5..2CD5
2CD7..2CD7
2CD9..2CD9
2CDB..2CDB
2CDD..2CDD
2CDF..2CDF
2CE1..2CE1
2CE3..2CE4
2CEC..2CEC
2CEE..2CEE
2D00..2D25
A641..A641
A643..A643
A645..A645
A647..A647
A649..A649
A64B..A64B
A64D..A64D
A64F..A64F
A651..A651
A653..A653
A655..A655
A657..A657
A659..A659
A65B..A65B
A65D..A65D
A65F..A65F
A663..A663
A665..A665
A667..A667
A669..A669
A66B..A66B
A66D..A66D
A681..A681
A683..A683
A685..A685
A687..A687
A689..A689
A68B..A68B
A68D..A68D
A68F..A68F
A691..A691
A693..A693
A695..A695
A697..A697
A723..A723
A725..A725
A727..A727
A729..A729
A72B..A72B
A72D..A72D
A72F..A731
A733..A733
A735..A735
A737..A737
A739..A739
A73B..A73B
A73D..A73D
A73F..A73F
A741..A741
A743..A743
A745..A745
A747..A747
A749..A749
A74B..A74B
A74D..A74D
A74F..A74F
A751..A751
A753..A753
A755..A755
A757..A757
A759..A759
A75B..A75B
A75D..A75D
A75F..A75F
A761..A761
A763..A763
A765..A765
A767..A767
A769..A769
A76B..A76B
A76D..A76D
A76F..A778
A77A..A77A
A77C..A77C
A77F..A77F
A781..A781
A783..A783
A785..A785
A787..A787
A78C..A78C
FB00..FB06
FB13..FB17
FF41..FF5A
10428..1044F
1D41A..1D433
1D44E..1D454
1D456..1D467
1D482..1D49B
1D4B6..1D4B9
1D4BB..1D4BB
1D4BD..1D4C3
1D4C5..1D4CF
1D4EA..1D503
1D51E..1D537
1D552..1D56B
1D586..1D59F
1D5BA..1D5D3
1D5EE..1D607
1D622..1D63B
1D656..1D66F
1D68A..1D6A5
1D6C2..1D6DA
1D6DC..1D6E1
1D6FC..1D714
1D716..1D71B
1D736..1D74E
1D750..1D755
1D770..1D788
1D78A..1D78F
1D7AA..1D7C2
1D7C4..1D7C9
1D7CB..1D7CB
|
{
"pile_set_name": "Github"
}
|
#ifndef TABLE_FRAME_SINK_HEAD_FILE
#define TABLE_FRAME_SINK_HEAD_FILE
#pragma once
#include "Stdafx.h"
#include "GameLogic.h"
#include "..\游戏客户端\HistoryRecord.h"
//////////////////////////////////////////////////////////////////////////
//游戏桌子类
class CTableFrameSink : public ITableFrameSink, public ITableUserAction
{
//游戏变量
protected:
WORD m_wBombTime; //炸弹倍数
BYTE m_bLandScore; //地主分数
WORD m_wFirstUser; //首叫用户
WORD m_wBankerUser; //庄家用户
WORD m_wCurrentUser; //当前玩家
BYTE m_bScoreInfo[3]; //叫分信息
//运行信息
protected:
WORD m_wTurnWiner; //胜利玩家
BYTE m_bTurnCardCount; //出牌数目
BYTE m_bTurnCardData[20]; //出牌列表
bool m_bUserTrustee[GAME_PLAYER]; //玩家托管
//扑克信息
protected:
BYTE m_bBackCard[3]; //游戏底牌
BYTE m_bCardCount[3]; //扑克数目
BYTE m_bOutCardCount[3]; //出牌次数
BYTE m_bHandCardData[3][20]; //手上扑克
//组件变量
protected:
CGameLogic m_GameLogic; //游戏逻辑
ITableFrame * m_pITableFrame; //框架接口
const tagGameServiceOption * m_pGameServiceOption; //配置参数
CHistoryScore m_HistoryScore; //历史成绩
//属性变量
protected:
static const WORD m_wPlayerCount; //游戏人数
static const enStartMode m_GameStartMode; //开始模式
//函数定义
public:
//构造函数
CTableFrameSink();
//析构函数
virtual ~CTableFrameSink();
//基础接口
public:
//释放对象
virtual VOID __cdecl Release() { }
//是否有效
virtual bool __cdecl IsValid() { return AfxIsValidAddress(this,sizeof(CTableFrameSink))?true:false; }
//接口查询
virtual void * __cdecl QueryInterface(const IID & Guid, DWORD dwQueryVer);
//管理接口
public:
//初始化
virtual bool __cdecl InitTableFrameSink(IUnknownEx * pIUnknownEx);
//复位桌子
virtual void __cdecl RepositTableFrameSink();
//信息接口
public:
//开始模式
virtual enStartMode __cdecl GetGameStartMode();
//游戏状态
virtual bool __cdecl IsUserPlaying(WORD wChairID);
//游戏事件
public:
//游戏开始
virtual bool __cdecl OnEventGameStart();
//游戏结束
virtual bool __cdecl OnEventGameEnd(WORD wChairID, IServerUserItem * pIServerUserItem, BYTE cbReason);
//发送场景
virtual bool __cdecl SendGameScene(WORD wChiarID, IServerUserItem * pIServerUserItem, BYTE cbGameStatus, bool bSendSecret);
//事件接口
public:
//定时器事件
virtual bool __cdecl OnTimerMessage(WORD wTimerID, WPARAM wBindParam);
//游戏消息处理
virtual bool __cdecl OnGameMessage(WORD wSubCmdID, const void * pDataBuffer, WORD wDataSize, IServerUserItem * pIServerUserItem);
//框架消息处理
virtual bool __cdecl OnFrameMessage(WORD wSubCmdID, const void * pDataBuffer, WORD wDataSize, IServerUserItem * pIServerUserItem);
//游戏事件
protected:
//叫分事件
bool OnUserLandScore(WORD wChairID, BYTE bLandScore);
//用户出牌
bool OnUserOutCard(WORD wChairID, BYTE bCardData[], BYTE bCardCount);
//用户放弃
bool OnUserPassCard(WORD wChairID);
//请求事件
public:
//请求同意
virtual bool __cdecl OnActionUserReqReady(WORD wChairID, IServerUserItem * pIServerUserItem) { return true; }
//请求断线
virtual bool __cdecl OnActionUserReqOffLine(WORD wChairID, IServerUserItem * pIServerUserItem) { return true; }
//请求重入
virtual bool __cdecl OnActionUserReqReConnect(WORD wChairID, IServerUserItem * pIServerUserItem) { return true; }
//请求坐下
virtual bool __cdecl OnActionUserReqSitDown(WORD wChairID, IServerUserItem * pIServerUserItem, bool bReqLookon) { return true; }
//请求起来
virtual bool __cdecl OnActionUserReqStandUp(WORD wChairID, IServerUserItem * pIServerUserItem, bool bReqLookon) { return true; }
//动作事件
public:
//用户同意
virtual bool __cdecl OnActionUserReady(WORD wChairID, IServerUserItem * pIServerUserItem, VOID * pData, WORD wDataSize) { return true; }
//用户断线
virtual bool __cdecl OnActionUserOffLine(WORD wChairID, IServerUserItem * pIServerUserItem) { return true; }
//用户重入
virtual bool __cdecl OnActionUserReConnect(WORD wChairID, IServerUserItem * pIServerUserItem) { return true; }
//用户坐下
virtual bool __cdecl OnActionUserSitDown(WORD wChairID, IServerUserItem * pIServerUserItem, bool bLookonUser);
//用户起来
virtual bool __cdecl OnActionUserStandUp(WORD wChairID, IServerUserItem * pIServerUserItem, bool bLookonUser);
};
//////////////////////////////////////////////////////////////////////////
#endif
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>17E202</string>
<key>CFBundleExecutable</key>
<string>VoodooPS2Controller</string>
<key>CFBundleGetInfoString</key>
<string>1.8.34, Copyright Apple Computer, Inc. 2000-2003, David Elliot 2007, RehabMan 2012-2013</string>
<key>CFBundleIdentifier</key>
<string>org.rehabman.voodoo.driver.PS2Controller</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Voodoo PS/2 Controller</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.8.34</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.8.34</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>9E145</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>12D75</string>
<key>DTSDKName</key>
<string>macosx10.8</string>
<key>DTXcode</key>
<string>0930</string>
<key>DTXcodeBuild</key>
<string>9E145</string>
<key>IOKitPersonalities</key>
<dict>
<key>ACPI PS/2 Nub</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.voodoo.driver.PS2Controller</string>
<key>FindMouseDelay</key>
<integer>100</integer>
<key>IOClass</key>
<string>AppleACPIPS2Nub</string>
<key>IONameMatch</key>
<array>
<string>PNP0303</string>
<string>PNP030B</string>
<string>PNP0320</string>
</array>
<key>IOProviderClass</key>
<string>IOACPIPlatformDevice</string>
<key>MouseNameMatch</key>
<array>
<string>PNP0F03</string>
<string>PNP0F0B</string>
<string>PNP0F0E</string>
<string>PNP0F13</string>
</array>
</dict>
<key>ApplePS2Controller</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.voodoo.driver.PS2Controller</string>
<key>IOClass</key>
<string>ApplePS2Controller</string>
<key>IONameMatch</key>
<string>ps2controller</string>
<key>IOProviderClass</key>
<string>IOPlatformDevice</string>
<key>Platform Profile</key>
<dict>
<key>Default</key>
<dict>
<key>MouseWakeFirst</key>
<false/>
<key>WakeDelay</key>
<integer>10</integer>
</dict>
<key>HPQOEM</key>
<dict>
<key>1411</key>
<string>ProBook</string>
<key>1619</key>
<string>ProBook</string>
<key>161C</key>
<string>ProBook</string>
<key>164F</key>
<string>ProBook</string>
<key>167C</key>
<string>ProBook</string>
<key>167E</key>
<string>ProBook</string>
<key>1680</key>
<string>ProBook</string>
<key>179B</key>
<string>ProBook</string>
<key>179C</key>
<string>ProBook</string>
<key>17A9</key>
<string>ProBook</string>
<key>17F0</key>
<string>ProBook</string>
<key>17F3</key>
<string>ProBook</string>
<key>17F6</key>
<string>ProBook</string>
<key>1942</key>
<string>ProBook</string>
<key>1949</key>
<string>ProBook</string>
<key>198F</key>
<string>ProBook</string>
<key>ProBook</key>
<dict>
<key>WakeDelay</key>
<integer>0</integer>
</dict>
<key>ProBook-102</key>
<string>ProBook</string>
<key>ProBook-87</key>
<string>ProBook</string>
</dict>
</dict>
</dict>
</dict>
<key>OSBundleCompatibleVersion</key>
<string>1.8.34</string>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOACPIFamily</key>
<string>1.0.0d1</string>
<key>com.apple.kpi.bsd</key>
<string>8.0.0</string>
<key>com.apple.kpi.iokit</key>
<string>8.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>8.0.0</string>
<key>com.apple.kpi.mach</key>
<string>8.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>8.0.0</string>
</dict>
<key>OSBundleRequired</key>
<string>Console</string>
<key>Source Code</key>
<string>https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller</string>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE pov SYSTEM "/usr/share/cgc-docs/replay.dtd">
<pov>
<cbid>service</cbid>
<replay>
<read><delim>\x0a</delim><match><data>2D Particle Simulator\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter the number of particles to simulate \x281-10\x29:\x0a</data></match></read>
<write><data>8\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>121.41717,141.67660\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>8.49637,6.17148\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>1.48435\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>9.07339\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #1 added at (121.41717,141.67660) velocity(8.49637,6.17148) mass(1.48435) radius(9.07339).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>133.51814,172.57804\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>0.65282,6.34017\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>9.98650\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>9.82363\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #2 added at (133.51814,172.57804) velocity(0.65282,6.34017) mass(9.98650) radius(9.82363).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>176.72654,117.36771\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>6.67108,9.06932\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>8.82026\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>7.34462\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #3 added at (176.72654,117.36771) velocity(6.67108,9.06932) mass(8.82026) radius(7.34462).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>185.61964,175.93530\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>7.65806,1.54625\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>5.86677\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>8.37198\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #4 added at (185.61964,175.93530) velocity(7.65806,1.54625) mass(5.86677) radius(8.37198).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>105.99641,172.09624\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>0.30226,3.53534\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>1.15629\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>2.95464\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #5 added at (105.99641,172.09624) velocity(0.30226,3.53534) mass(1.15629) radius(2.95464).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>115.65415,193.36213\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>1.02618,6.66458\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>5.91258\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>5.14644\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #6 added at (115.65415,193.36213) velocity(1.02618,6.66458) mass(5.91258) radius(5.14644).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>172.90458,138.09336\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>6.24204,5.53686\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>3.19674\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>2.63793\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #7 added at (172.90458,138.09336) velocity(6.24204,5.53686) mass(3.19674) radius(2.63793).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>428.93487,165.75142\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>-9.94966,-32.77771\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>95.18667\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>0.83351\x0a</data></write>
<read><delim>\x0a</delim><match><data>Invalid simulation data. Try again.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>161.78378,168.59290\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>2.64092,3.42055\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>7.95167\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>2.95477\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #8 added at (161.78378,168.59290) velocity(2.64092,3.42055) mass(7.95167) radius(2.95477).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Running simulation with...\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>8 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (121.41000,141.67000) Velocity (8.49000,6.17000) mass (1.48000) radius (9.07000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (133.51000,172.57000) Velocity (0.65000,6.34000) mass (9.98000) radius (9.82000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2: Position (176.72000,117.36000) Velocity (6.67000,9.06000) mass (8.82000) radius (7.34000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>3: Position (185.61000,175.93000) Velocity (7.65000,1.54000) mass (5.86000) radius (8.37000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>4: Position (105.99000,172.09000) Velocity (0.30000,3.53000) mass (1.15000) radius (2.95000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>5: Position (115.65000,193.36000) Velocity (1.02000,6.66000) mass (5.91000) radius (5.14000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>6: Position (172.90000,138.09000) Velocity (6.24000,5.53000) mass (3.19000) radius (2.63000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>7: Position (161.78000,168.59000) Velocity (2.64000,3.42000) mass (7.95000) radius (2.95000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00010000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000100\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>01000010000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000010000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00001000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000100000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000010000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Simulation complete, 12 collisions simulated over 10 seconds in 40 frames.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>8 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (140.73810,111.01089) Velocity (-2.04548,13.87615) mass (1.48000) radius (9.07000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (118.63413,159.41287) Velocity (7.67715,-3.07530) mass (9.98000) radius (9.82000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2: Position (154.05143,174.26519) Velocity (-7.26790,0.26222) mass (8.82000) radius (7.34000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>3: Position (172.33685,167.45887) Velocity (-4.53159,-9.11759) mass (5.86000) radius (8.37000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>4: Position (108.99000,186.71000) Velocity (0.30000,-3.53000) mass (1.15000) radius (2.95000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>5: Position (125.85000,129.76000) Velocity (1.02000,-6.66000) mass (5.91000) radius (5.14000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>6: Position (186.90488,173.38035) Velocity (-1.69149,-2.24929) mass (3.19000) radius (2.63000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>7: Position (123.09685,194.74197) Velocity (-5.95094,2.68271) mass (7.95000) radius (2.95000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00001000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>01000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000001000000100\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000100000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00010000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000100000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000100000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Goodbye\x0a</data></match></read>
</replay>
</pov>
|
{
"pile_set_name": "Github"
}
|
# Once done these will be defined:
#
# FONTCONFIG_FOUND
# FONTCONFIG_INCLUDE_DIRS
# FONTCONFIG_LIBRARIES
find_package(PkgConfig QUIET)
if (PKG_CONFIG_FOUND)
pkg_check_modules(_FONTCONFIG QUIET fontconfig)
endif()
find_path(FONTCONFIG_INCLUDE_DIR
NAMES fontconfig/fontconfig.h
HINTS
${_FONTCONFIG_INCLUDE_DIRS}
PATHS
/usr/include /usr/local/include /opt/local/include)
find_library(FONTCONFIG_LIB
NAMES fontconfig
HINTS
${_FONTCONFIG_LIBRARY_DIRS}
PATHS
/usr/lib /usr/local/lib /opt/local/lib)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Fontconfig DEFAULT_MSG FONTCONFIG_LIB
FONTCONFIG_INCLUDE_DIR)
mark_as_advanced(FONTCONFIG_INCLUDE_DIR FONTCONFIG_LIB)
if(FONTCONFIG_FOUND)
set(FONTCONFIG_INCLUDE_DIRS ${FONTCONFIG_INCLUDE_DIR})
set(FONTCONFIG_LIBRARIES "${FONTCONFIG_LIB}")
endif()
|
{
"pile_set_name": "Github"
}
|
{include file='user/header_info.tpl'}
<main class="content">
<div class="content-header ui-content-header">
<div class="container">
<h1 class="content-heading">节点信息</h1>
</div>
</div>
<div class="container">
<section class="content-inner margin-top-no">
<div class="ui-card-wrap">
<div class="row">
<div class="col-lg-12 col-sm-12">
<div class="card">
<div class="card-main">
<div class="card-inner margin-bottom-no">
<p class="card-heading">注意!</p>
<p>下面为您的 SSH 配置。</p>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12">
<div class="card">
<div class="card-main">
<div class="card-inner margin-bottom-no">
<p class="card-heading">配置信息</p>
<p>{$json_show}</p>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12">
<div class="card">
<div class="card-main">
<div class="card-inner margin-bottom-no">
<p class="card-heading">配置方法</p>
<p>未完待续</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</main>
{include file='user/footer.tpl'}
|
{
"pile_set_name": "Github"
}
|
<div class="apiDetail">
<div>
<h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseUp</h2>
<h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
<div class="desc">
<p></p>
<div class="longdesc">
<p>用于捕获 zTree 上鼠标按键松开后的事件回调函数</p>
<p class="highlight_red">如果设置了 setting.callback.beforeMouseUp 方法,且返回 false,将无法触发 onMouseUp 事件回调函数。</p>
<p>默认值:null</p>
</div>
</div>
<h3>Function 参数说明</h3>
<div class="desc">
<h4><b>event</b><span>js event 对象</span></h4>
<p>标准的 js event 对象</p>
<h4 class="topLine"><b>treeId</b><span>String</span></h4>
<p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
<h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
<p>鼠标按键松开时所在节点的 JSON 数据对象</p>
<p class="highlight_red">如果不在节点上,则返回 null</p>
</div>
<h3>setting & function 举例</h3>
<h4>1. 每次鼠标按键松开后, 弹出鼠标所在节点的 tId、name 的信息</h4>
<pre xmlns=""><code>function zTreeOnMouseUp(event, treeId, treeNode) {
alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
};
var setting = {
callback: {
onMouseUp: zTreeOnMouseUp
}
};
......</code></pre>
</div>
</div>
|
{
"pile_set_name": "Github"
}
|
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DebugTest", "DebugTest.vcxproj", "{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
Debug|x64 = Debug|x64
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Debug|Win32.ActiveCfg = Debug|Win32
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Debug|Win32.Build.0 = Debug|Win32
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Debug|Win32.Deploy.0 = Debug|Win32
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Release|Win32.ActiveCfg = Release|Win32
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Release|Win32.Build.0 = Release|Win32
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Release|Win32.Deploy.0 = Release|Win32
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Debug|x64.ActiveCfg = Debug|x64
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Debug|x64.Build.0 = Debug|x64
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Debug|x64.Deploy.0 = Debug|x64
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Release|x64.ActiveCfg = Release|x64
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Release|x64.Build.0 = Release|x64
{50A78F0F-0AB1-421E-B1E7-BD4D4E8EA3E1}.Release|x64.Deploy.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
|
{
"pile_set_name": "Github"
}
|
#include "BigIntegerAlgorithms.hh"
BigUnsigned gcd(BigUnsigned a, BigUnsigned b) {
BigUnsigned trash;
// Neat in-place alternating technique.
for (;;) {
if (b.isZero())
return a;
a.divideWithRemainder(b, trash);
if (a.isZero())
return b;
b.divideWithRemainder(a, trash);
}
}
void extendedEuclidean(BigInteger m, BigInteger n,
BigInteger &g, BigInteger &r, BigInteger &s) {
if (&g == &r || &g == &s || &r == &s)
throw "BigInteger extendedEuclidean: Outputs are aliased";
BigInteger r1(1), s1(0), r2(0), s2(1), q;
/* Invariants:
* r1*m(orig) + s1*n(orig) == m(current)
* r2*m(orig) + s2*n(orig) == n(current) */
for (;;) {
if (n.isZero()) {
r = r1; s = s1; g = m;
return;
}
// Subtract q times the second invariant from the first invariant.
m.divideWithRemainder(n, q);
r1 -= q*r2; s1 -= q*s2;
if (m.isZero()) {
r = r2; s = s2; g = n;
return;
}
// Subtract q times the first invariant from the second invariant.
n.divideWithRemainder(m, q);
r2 -= q*r1; s2 -= q*s1;
}
}
BigUnsigned modinv(const BigInteger &x, const BigUnsigned &n) {
BigInteger g, r, s;
extendedEuclidean(x, n, g, r, s);
if (g == 1)
// r*x + s*n == 1, so r*x === 1 (mod n), so r is the answer.
return (r % n).getMagnitude(); // (r % n) will be nonnegative
else
throw "BigInteger modinv: x and n have a common factor";
}
BigUnsigned modexp(const BigInteger &base, const BigUnsigned &exponent,
const BigUnsigned &modulus) {
BigUnsigned ans = 1, base2 = (base % modulus).getMagnitude();
BigUnsigned::Index i = exponent.bitLength();
// For each bit of the exponent, most to least significant...
while (i > 0) {
i--;
// Square.
ans *= ans;
ans %= modulus;
// And multiply if the bit is a 1.
if (exponent.getBit(i)) {
ans *= base2;
ans %= modulus;
}
}
return ans;
}
|
{
"pile_set_name": "Github"
}
|
<template>
<view class="uni-load-more">
<view v-show="status === 'loading' && showIcon" class="uni-load-more__img">
<view class="load1">
<view class="uni-load-view_wrapper" :style="{background:color}" />
<view class="uni-load-view_wrapper" :style="{background:color}" />
<view class="uni-load-view_wrapper" :style="{background:color}" />
<view class="uni-load-view_wrapper" :style="{background:color}" />
</view>
<view class="load2">
<view class="uni-load-view_wrapper" :style="{background:color}" />
<view class="uni-load-view_wrapper" :style="{background:color}" />
<view class="uni-load-view_wrapper" :style="{background:color}" />
<view class="uni-load-view_wrapper" :style="{background:color}" />
</view>
<view class="load3">
<view class="uni-load-view_wrapper" :style="{background:color}" />
<view class="uni-load-view_wrapper" :style="{background:color}" />
<view class="uni-load-view_wrapper" :style="{background:color}" />
<view class="uni-load-view_wrapper" :style="{background:color}" />
</view>
</view>
<text :style="{color:color}" class="uni-load-more__text">{{ status === 'more' ? contentText.contentdown : (status === 'loading' ? contentText.contentrefresh : contentText.contentnomore) }}</text>
</view>
</template>
<script>
export default {
name: 'UniLoadMore',
props: {
status: {
// 上拉的状态:more-loading前;loading-loading中;noMore-没有更多了
type: String,
default: 'more'
},
showIcon: {
type: Boolean,
default: true
},
color: {
type: String,
default: '#777777'
},
contentText: {
type: Object,
default () {
return {
contentdown: '上拉显示更多',
contentrefresh: '正在加载...',
contentnomore: '没有更多数据了'
}
}
}
},
data() {
return {}
}
}
</script>
<style>
@charset "UTF-8";
.uni-load-more {
display: flex;
flex-direction: row;
height: 80upx;
align-items: center;
justify-content: center
}
.uni-load-more__text {
font-size: 28upx;
color: #999
}
.uni-load-more__img {
height: 24px;
width: 24px;
margin-right: 10px
}
.uni-load-more__img>.uni-load-view_wrapper {
position: absolute
}
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper {
width: 6px;
height: 2px;
border-top-left-radius: 1px;
border-bottom-left-radius: 1px;
background: #999;
position: absolute;
opacity: .2;
transform-origin: 50%;
animation: load 1.56s ease infinite
}
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(1) {
transform: rotate(90deg);
top: 2px;
left: 9px
}
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(2) {
transform: rotate(180deg);
top: 11px;
right: 0
}
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(3) {
transform: rotate(270deg);
bottom: 2px;
left: 9px
}
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(4) {
top: 11px;
left: 0
}
.load1,
.load2,
.load3 {
height: 24px;
width: 24px
}
.load2 {
transform: rotate(30deg)
}
.load3 {
transform: rotate(60deg)
}
.load1 .uni-load-view_wrapper:nth-child(1) {
animation-delay: 0s
}
.load2 .uni-load-view_wrapper:nth-child(1) {
animation-delay: .13s
}
.load3 .uni-load-view_wrapper:nth-child(1) {
animation-delay: .26s
}
.load1 .uni-load-view_wrapper:nth-child(2) {
animation-delay: .39s
}
.load2 .uni-load-view_wrapper:nth-child(2) {
animation-delay: .52s
}
.load3 .uni-load-view_wrapper:nth-child(2) {
animation-delay: .65s
}
.load1 .uni-load-view_wrapper:nth-child(3) {
animation-delay: .78s
}
.load2 .uni-load-view_wrapper:nth-child(3) {
animation-delay: .91s
}
.load3 .uni-load-view_wrapper:nth-child(3) {
animation-delay: 1.04s
}
.load1 .uni-load-view_wrapper:nth-child(4) {
animation-delay: 1.17s
}
.load2 .uni-load-view_wrapper:nth-child(4) {
animation-delay: 1.3s
}
.load3 .uni-load-view_wrapper:nth-child(4) {
animation-delay: 1.43s
}
@-webkit-keyframes load {
0% {
opacity: 1
}
100% {
opacity: .2
}
}
</style>
|
{
"pile_set_name": "Github"
}
|
# 對話框
對話框是在告知使用者緊急的訊息,要求使用者做出決定,或者在一個分散的過程中包裝成多個任務。由於對話框是一種中斷性突然顯示並且停止使用者當前的任務和需要關注對話框裏的內容。並非每個選擇、設定或者細節都是像中途中斷或是明顯的方式。
可替代對話框的元件包含簡易的菜單或者當前內容區域內擴展內容。這兩種方法提供訊息或者同時保持當前內文與比較少破壞性的選擇。
## 內容
對話框的內容可以有廣泛的變化,不過典型的做法是通常包含內文或者 UI 控制元件在特定的任務或程序,就像確認項目的刪除或是選擇一種設定。
使用對話框的內容區域可揭露更多的訊息或者更進階的內容。避免從對話框裡面又打開對話框。
全螢幕的對話框可能會打開更多的對話框,比如顏色選取器,因為它們所設計的材料必須做為附加層,且不增加感知的 z 深度的應用或是增加視覺聲音。
避免產生有滾動式內容的對話框,特別是提示視窗。相反的,須考慮正在閱讀或者具有交互資料的大量內容,必要時使用替代性的容器或者佈局。


## 行為
對話框是獨立在基礎本體上並且不會與本體造成滾動。
某些類型的對話內容,自然需要一些滾動,比如較長的鈴聲。在這樣的情況下,將預設顯示滾動條明顯顯示資料內容。
對話框不應該被其他元素或是只出現部分在螢幕上所掩蓋。對話框總是保持明顯的關注,直到它們被確認或是反向的選擇行為。比如選擇設定。

## 警告
警告是用來通知使用者需要在繼續前進之前的一種確認或是確認狀況的行為。它們是基於在一個嚴重性與傳遞訊息且有外觀會有稍微不同。
警告是一種干擾性質與緊急迫切的,並且在做出決定之前防止使用者繼續進行下個階段。
**澄清:**相對於警告訊息,[Snackbars](components-snackbars-and-toasts.html) 目前是可選的,但是重要的訊息或者動作,通常會出現在一個操作之後。例如,使用警告確認刪除草稿。使用 Snackbars 呈現一個取消動作,因為操作是可以選的,使用者可以在無需採取動作下繼續的使用它們主要的任務。
**警告不包含標題欄位**
大部份的警告不需要使用標題欄位。通常的狀況下,決定不具有嚴重的影響,它是可以在一兩個句子簡潔的方式描述。內容區域可以詢問問題(例如:“刪除” 的對話)或者做出一個明確的描述,其操作的按鈕是容易明顯的。

> 建議的做法。
>
> 刪除的操作文本很清楚地表明決策的結果。

> 不建議的做法。
>
> 在否定動作文字 No 答案,不建議後面會發生什麼事。更好的操作是需要將取消以及刪除的按鈕一併做出明顯的顯示。
**警告包含標題欄位**
使用警告包含標題欄位時需謹慎使用。它們只用在高風險的情況下使用,例如資料有潛在的遺失或是資料連接或者有額外費用的訊息。
如果標題是必填的,那麼在內容區域的地方使用清楚的問題或是補充說明的陳述。例如,“是否刪除 USB 儲存?”
避免道歉狀況,以及模糊的陳述或者問題。例如。“警告!” 或者 “您是否確定?”
使用者應該能夠完全跳過內容,並且仍然根據標題及操作按鈕上的文字呈現一個清楚的概念提供使用者的選擇。

> 建議的做法。
>
> 這個對話筐提出了一個具體的問題,扼要的闡述影響並且提供一個明確的動作。

> 不建議的做法。
>
> 這個對話框構成了一個模稜兩可的問題以及不清楚的影響範圍。
## 簡易選單
簡易選單都使用在平板、行動裝置上的列表圖示,用來顯示特定的列表選項。簡易選單選擇後會立即提交選擇。可參考 [元件 > 選單 > 簡易選單](components-menus.html) 有更多細節關於簡易選單。
**澄清:**相對於簡易選單,簡易對話框能夠呈現選項的附加細節,或者是提供導航在主要流程中的相關選擇。雖然他們能夠顯示相同的內容,簡易選單更優於簡易對話框,因為簡易選單對於目前使用者的畫面破壞性較少。

## 簡易對話框
簡易對話框能夠提供附加的細節以及用於列表的選項,或是提供導航等其他相關的主要任務。舉例來說,簡易對話框能夠顯示頭像、圖示、相關的內文,或者是他們能夠讓使用者增加非目前列表上的一個帳戶。
選擇一個選項將立即被提交並且關閉選單。
點擊對話框的外部,或是倒退、取消將會關閉對話框。
簡易對話框比簡易選單更具有干擾性,應該謹慎使用。


簡易對話框沒有明確的接受及取消按鈕。
簡易對話框顯示在屏幕的垂直及水平中央。
對話框在距離邊緣的距離,左右最小為40dp,上下最小為24dp。
對話框的邊緣與內容之間的距離是24dp。

> 別這麼做

> 別這麼做
## 確認對話框
確認對話框,需要使用者明確確認他們的選擇在提交之前。舉例來說,使用者可以聽到許多的鈴聲,但只有點擊"OK"這個選擇才會被提交。
在確認對話框終點取消、倒退、取消動作、放棄修改並關閉視窗。
點擊確認對話框的外部將不會有任何動作;使用者必須明確的確認或是取消以關閉確認對話框。

> 在使用者在確認對話框選擇OK之前,鈴聲的選則是不會被設置的。

確認對話框能夠使用其他佈局,舉例來說一個日期的選取器,但他們仍然集中在一個特定的值(選個日期,但不包含時間)。


確認對話框提供一個明確的確認按鈕及一個明確的取消按鈕。明確的取消按鈕會表明離開確認對話框將會放棄所有變更,舉例來說,點擊取消或是按下倒退。
確認對話框應該避免彈出額外的簡易對話框或是選單。Material的額外圖層會增加應用程式Z軸深度,以及不必要的視覺複雜化。
如果需要額外的簡易對話框或是選單來完成任務或是進度,考慮使用全屏對話框取代確認對話框。

> 好的做法
>
> 提供一個明確的確認按鈕及明確的取消按鈕。

> 別這麼做
>
> 一個單獨的對話框按鈕在系統倒退功能造成模糊不清:這是倒退取消還是確認功能?
## 全屏對話框
**只有行動版**: 因為行動裝置的限制,對話框的顯示還有許多其他形式(平板、桌機等),可能有更適合的方式來取代全屏對話框。
全屏對話框可以用來將複雜操作的任務群組化,這需要一個明確的指示,像是存擋或是創建、在變更前的提交或是放棄,舉例來說,創建立日期的輸入。
全屏對話框能夠將複雜的編排最小化顯示,以material方式層疊
(對話框上的對話框),他增加了應用程式的Z軸深度。它們能夠獨立每個單獨的任務並彈出簡易的選單,或者是複雜操作的一部分。
當內容或是進度符合以下任何的條件,考慮使用全屏對話框。
- 對話框的內容包含元件,像是選取器(日曆)或是表單需要IME輸入。
- 當變更不會被即時儲存。
- 當應用程式沒有草稿的功能時。
- 當操作排程需要被依序改變提交時。
在這範例中,全屏的對話框提供一個簡易的對話框用來選取日期。全屏對話框沒有修改以及選擇,而是當被點擊時儲存。點擊"X"金會取消所有變更,並且離開全屏對話框。

> 全屏對話框

> 從全屏對話框打開日曆選取器
全屏對話框中,確認及取消動作在畫面的頂部。
確認動作是在螢幕的右上角,並使用正確的描述用語,像是"存檔"、"送出"、"增加"、"分享"、"更新"、"建立"*(原文:“save”, “send”, “add”, “share”, “update”, or “create”)*。
別使用模糊的詞像是"完成"、"好"、"關閉"*(原文: “done” or “ok” or “close” )*來表示確認動作。這些都與"X"的語意太相近了,且結果沒什麼不同。
在對話框中所有強制性的條件被滿足之前,確認功能是無效的。
放棄動作的功能,一個"X"在屏幕的左上方,關閉全屏對話框以及放棄所有更動。倒退按鈕相等於放棄的動作。
如果使用者有做任何的更動,他們會提示放棄更動的動作。
如果沒有任何更動,點擊"X"或是倒退會立即關閉對話框,也不會有放棄確認的需求。

> 別這麼做
>
> 別用模糊的用詞像是關閉在確認動作上。
"X"不同於向上的箭頭,它是使用在畫面狀態不斷的被儲存,或者是應用程式有儲存草稿或有自動儲存的功能。舉例來說,向上箭頭用在被應用在設定上,因為所有的改變都會立即的被提交。在這些情況下,倒退按鈕的導航及行為將會配合向上箭頭的功能,且沒有明確的確認或是取消的行為。

> 向上的箭頭在這例子中說明,任何的改變將會被立即儲存。

> 點擊"X"在這設定的範例將會取消所有改變,只有在點擊"儲存"時才會被存檔。
## 規範
對話框包含了一個標題、內文、及互動元件。
這個標題簡單描述了需要選則的類型。標題應該總是顯示在整體之中,並應該在需要時使用。標題可以用來描述在正做出的決定。舉例來說:標題可以用來說明目前在對話框中的進度,這進度可能是在設置中的將受到的決定。
對話框的內容相當的廣泛,但一般來說內文或UI控制元素是集中在一個特定的任務或是進度,如確認項目的缺失或是選擇一個設置。
當需要時,動作被執行核定、駁回特定選擇、或是由對話框內容呈現進度。

#### 親和性的注意事項
為了確保對殘疾人們的可用性,請確保你的按鈕有36dp的最低高度,但可觸摸的的目標有48的最低高度
所有對話框的操作文字預設顏色是應用程式的主題強調色。總是確保操作文字顏色有[足夠的對比度](usability-accessibility.html),且滿足親和性的規範。改變預設文字色彩當需要足夠的的對比。

對話框呈現一個集中和受到限制的一套動作,通常來說包含核定及取消。
核定的動作放置在右方,並且繼續流程。核定動作也可能是具破壞性的,像是刪除或是移除。
取消動作放置在核定動作的左方,並且返回使用原本的畫面或是到特定的流程中。
取消及核定動作文字可以是"Cancel/OK"或者是更具體的主動詞或片語,能夠表示決定的結果。

> 不好的做法
>
> 取消動作總是放置在核定動作的左方
### 按鈕寬度及內距指南



### 並排按鈕
在使用並排按鈕時,建議每個按鈕的文字不要超過按鈕的最大寬度,如常用的確認/取消按鈕。
用下面公式來計算對話框的按鈕最大寬度。
對話框按鈕的最大寬度 = **(Dialog width - 16dp - 16dp - 8dp) / 2**
舉例來說
寬度280dp對話框的按鈕最大寬度 = (280dp - 16dp - 16dp - 8dp) / 2 = 120dp

### 堆疊式全寬按鈕
當文字標籤超過了最大寬度,使用堆疊式按鈕容納本文。核定的按鈕會堆疊在取消的上方。

> *翻譯:[Weiju Tu](https://www.facebook.com/weiju516)*
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE pov SYSTEM "/usr/share/cgc-docs/replay.dtd">
<pov>
<cbid>service</cbid>
<replay>
<read><delim>\x0a</delim><match><data>2D Particle Simulator\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter the number of particles to simulate \x281-10\x29:\x0a</data></match></read>
<write><data>10\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>173.84300,147.35115\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>3.56539,0.25150\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>1.16137\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>4.25263\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #1 added at (173.84300,147.35115) velocity(3.56539,0.25150) mass(1.16137) radius(4.25263).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>113.26609,126.81443\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>0.12203,6.35599\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>4.15465\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>4.80068\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #2 added at (113.26609,126.81443) velocity(0.12203,6.35599) mass(4.15465) radius(4.80068).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>150.68298,149.98612\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>8.69917,6.48811\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>9.47142\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>3.42289\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #3 added at (150.68298,149.98612) velocity(8.69917,6.48811) mass(9.47142) radius(3.42289).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>169.83710,144.29499\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>4.59897,8.11181\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>9.24395\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>9.06757\x0a</data></write>
<read><delim>\x0a</delim><match><data>Invalid simulation data. Try again.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>140.96264,120.49413\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>6.65113,4.35335\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>6.54762\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>6.62444\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #4 added at (140.96264,120.49413) velocity(6.65113,4.35335) mass(6.54762) radius(6.62444).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>382.99455,224.45833\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>5.02268,-1.71990\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>15.97785\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>83.45230\x0a</data></write>
<read><delim>\x0a</delim><match><data>Invalid simulation data. Try again.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>184.36330,176.08195\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>4.72948,7.73126\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>6.87519\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>4.03208\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #5 added at (184.36330,176.08195) velocity(4.72948,7.73126) mass(6.87519) radius(4.03208).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>126.31203,147.52959\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>2.93062,1.44090\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>6.06807\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>2.20981\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #6 added at (126.31203,147.52959) velocity(2.93062,1.44090) mass(6.06807) radius(2.20981).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>127.69925,133.85713\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>2.04247,6.93710\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>6.98810\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>3.31265\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #7 added at (127.69925,133.85713) velocity(2.04247,6.93710) mass(6.98810) radius(3.31265).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>103.97312,173.50821\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>3.32200,6.81997\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>1.51478\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>1.82541\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #8 added at (103.97312,173.50821) velocity(3.32200,6.81997) mass(1.51478) radius(1.82541).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>219.95097,456.96051\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>5.35813,-21.01695\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>99.99922\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>60.08761\x0a</data></write>
<read><delim>\x0a</delim><match><data>Invalid simulation data. Try again.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>162.23764,109.12407\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>6.19344,4.89938\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>9.16957\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>6.52605\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #9 added at (162.23764,109.12407) velocity(6.19344,4.89938) mass(9.16957) radius(6.52605).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>162.28999,151.66806\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>1.05651,0.18937\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>6.81718\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>8.71319\x0a</data></write>
<read><delim>\x0a</delim><match><data>Invalid simulation data. Try again.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Enter Position (x,y):\x0a</data></match></read>
<write><data>122.31344,170.77106\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Velocity (x,y):\x0a</data></match></read>
<write><data>1.63442,7.22949\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Mass:\x0a</data></match></read>
<write><data>5.49347\x0a</data></write>
<read><delim>\x0a</delim><match><data>Enter Radius:\x0a</data></match></read>
<write><data>9.74396\x0a</data></write>
<read><delim>\x0a</delim><match><data>Particle #10 added at (122.31344,170.77106) velocity(1.63442,7.22949) mass(5.49347) radius(9.74396).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Running simulation with...\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>10 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (173.84000,147.35000) Velocity (3.56000,0.25000) mass (1.16000) radius (4.25000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (113.26000,126.81000) Velocity (0.12000,6.35000) mass (4.15000) radius (4.80000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2: Position (150.68000,149.98000) Velocity (8.69000,6.48000) mass (9.47000) radius (3.42000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>3: Position (140.96000,120.49000) Velocity (6.65000,4.35000) mass (6.54000) radius (6.62000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>4: Position (184.36000,176.08000) Velocity (4.72000,7.73000) mass (6.87000) radius (4.03000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>5: Position (126.31000,147.52000) Velocity (2.93000,1.44000) mass (6.06000) radius (2.20000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>6: Position (127.69000,133.85000) Velocity (2.04000,6.93000) mass (6.98000) radius (3.31000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>7: Position (103.97000,173.50000) Velocity (3.32000,6.81000) mass (1.51000) radius (1.82000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>8: Position (162.23000,109.12000) Velocity (6.19000,4.89000) mass (9.16000) radius (6.52000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>9: Position (122.31000,170.77000) Velocity (1.63000,7.22000) mass (5.49000) radius (9.74000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000001000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>10001000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000100001000100000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000100000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00100000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000100000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000010000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Simulation complete, 14 collisions simulated over 10 seconds in 80 frames.\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>10 total particles:\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>0: Position (167.82000,150.85000) Velocity (-3.56000,0.25000) mass (1.16000) radius (4.25000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>1: Position (108.81935,192.13526) Velocity (-2.95972,-7.96730) mass (4.15000) radius (4.80000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>2: Position (193.11384,179.46442) Velocity (1.21225,2.20998) mass (9.47000) radius (3.42000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>3: Position (120.04854,141.93894) Velocity (-6.35456,-4.43339) mass (6.54000) radius (6.62000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>4: Position (195.16625,156.30820) Velocity (5.88346,-2.24670) mass (6.87000) radius (4.03000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>5: Position (180.28918,181.94956) Velocity (-7.92877,-4.45052) mass (6.06000) radius (2.20000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>6: Position (124.42949,117.05557) Velocity (9.26803,12.47553) mass (6.98000) radius (3.31000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>7: Position (117.90790,171.82055) Velocity (10.58068,-10.05526) mass (1.51000) radius (1.82000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>8: Position (192.20891,132.56409) Velocity (0.35577,-0.55274) mass (9.16000) radius (6.52000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>9: Position (146.16022,187.95214) Velocity (2.69820,3.45110) mass (5.49000) radius (9.74000).\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>01000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000010000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000001000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000010\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00010000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000001\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000001000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00001000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000010\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00001000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>00000000000000000000\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>--------------------\x0a</data></match></read>
<read><delim>\x0a</delim><match><data>Goodbye\x0a</data></match></read>
</replay>
</pov>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" ?>
<annotation>
<folder>widerface</folder>
<filename>0--Parade_0_Parade_Parade_0_1019.jpg</filename>
<source>
<database>wider face Database</database>
<annotation>PASCAL VOC2007</annotation>
<image>flickr</image>
<flickrid>-1</flickrid>
</source>
<owner>
<flickrid>yanyu</flickrid>
<name>yanyu</name>
</owner>
<size>
<width>1024</width>
<height>680</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>289</xmin>
<ymin>233</ymin>
<xmax>303</xmax>
<ymax>251</ymax>
</bndbox>
<lm>
<x1>295.0</x1>
<y1>237.0</y1>
<x2>301.0</x2>
<y2>237.0</y2>
<x3>299.0</x3>
<y3>241.0</y3>
<x4>295.0</x4>
<y4>244.0</y4>
<x5>302.0</x5>
<y5>244.0</y5>
<visible>0</visible>
<blur>0.27</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>309</xmin>
<ymin>216</ymin>
<xmax>345</xmax>
<ymax>257</ymax>
</bndbox>
<lm>
<x1>321.0</x1>
<y1>230.0</y1>
<x2>333.0</x2>
<y2>230.0</y2>
<x3>329.0</x3>
<y3>235.0</y3>
<x4>322.0</x4>
<y4>244.0</y4>
<x5>336.0</x5>
<y5>245.0</y5>
<visible>1</visible>
<blur>0.48</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>343</xmin>
<ymin>211</ymin>
<xmax>381</xmax>
<ymax>262</ymax>
</bndbox>
<lm>
<x1>353.527</x1>
<y1>231.286</y1>
<x2>366.562</x2>
<y2>231.286</y2>
<x3>362.652</x3>
<y3>238.129</y3>
<x4>356.134</x4>
<y4>251.817</y4>
<x5>366.888</x5>
<y5>251.817</y5>
<visible>1</visible>
<blur>0.51</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>366</xmin>
<ymin>204</ymin>
<xmax>411</xmax>
<ymax>259</ymax>
</bndbox>
<lm>
<x1>384.17</x1>
<y1>222.643</y1>
<x2>400.188</x2>
<y2>223.688</y2>
<x3>392.179</x3>
<y3>234.134</y3>
<x4>380.339</x4>
<y4>245.625</y4>
<x5>395.312</x5>
<y5>245.973</y5>
<visible>0</visible>
<blur>0.6</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>413</xmin>
<ymin>200</ymin>
<xmax>465</xmax>
<ymax>257</ymax>
</bndbox>
<has_lm>0</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>457</xmin>
<ymin>189</ymin>
<xmax>510</xmax>
<ymax>251</ymax>
</bndbox>
<lm>
<x1>471.348</x1>
<y1>205.906</y1>
<x2>497.759</x2>
<y2>206.295</y2>
<x3>485.719</x3>
<y3>220.277</y3>
<x4>474.067</x4>
<y4>232.317</y4>
<x5>494.263</x5>
<y5>233.094</y5>
<visible>1</visible>
<blur>0.61</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>598</xmin>
<ymin>207</ymin>
<xmax>637</xmax>
<ymax>257</ymax>
</bndbox>
<lm>
<x1>605.438</x1>
<y1>223.812</y1>
<x2>620.438</x2>
<y2>224.438</y2>
<x3>611.688</x3>
<y3>236.0</y3>
<x4>607.0</x4>
<y4>246.625</y4>
<x5>617.312</x5>
<y5>247.875</y5>
<visible>1</visible>
<blur>0.54</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>523</xmin>
<ymin>164</ymin>
<xmax>588</xmax>
<ymax>245</ymax>
</bndbox>
<lm>
<x1>545.33</x1>
<y1>190.768</y1>
<x2>572.304</x2>
<y2>191.277</y2>
<x3>560.089</x3>
<y3>204.509</y3>
<x4>546.857</x4>
<y4>219.777</y4>
<x5>563.652</x5>
<y5>220.795</y5>
<visible>0</visible>
<blur>0.65</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>626</xmin>
<ymin>147</ymin>
<xmax>698</xmax>
<ymax>233</ymax>
</bndbox>
<lm>
<x1>649.116</x1>
<y1>175.455</y1>
<x2>679.366</x2>
<y2>177.076</y2>
<x3>665.862</x3>
<y3>192.741</y3>
<x4>651.277</x4>
<y4>208.946</y4>
<x5>677.205</x5>
<y5>210.567</y5>
<visible>0</visible>
<blur>0.67</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>704</xmin>
<ymin>110</ymin>
<xmax>793</xmax>
<ymax>218</ymax>
</bndbox>
<lm>
<x1>735.964</x1>
<y1>145.0</y1>
<x2>777.357</x2>
<y2>147.036</y2>
<x3>761.071</x3>
<y3>161.964</y3>
<x4>741.393</x4>
<y4>187.071</y4>
<x5>769.893</x5>
<y5>187.071</y5>
<visible>0</visible>
<blur>0.72</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>849</xmin>
<ymin>189</ymin>
<xmax>901</xmax>
<ymax>256</ymax>
</bndbox>
<lm>
<x1>855.536</x1>
<y1>212.348</y1>
<x2>879.036</x2>
<y2>213.188</y2>
<x3>859.732</x3>
<y3>224.938</y3>
<x4>852.598</x4>
<y4>238.366</y4>
<x5>872.741</x5>
<y5>237.107</y5>
<visible>1</visible>
<blur>0.54</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>947</xmin>
<ymin>241</ymin>
<xmax>987</xmax>
<ymax>289</ymax>
</bndbox>
<lm>
<x1>953.0</x1>
<y1>253.0</y1>
<x2>968.0</x2>
<y2>253.0</y2>
<x3>958.0</x3>
<y3>264.0</y3>
<x4>953.0</x4>
<y4>273.0</y4>
<x5>966.0</x5>
<y5>274.0</y5>
<visible>1</visible>
<blur>0.54</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>971</xmin>
<ymin>186</ymin>
<xmax>1024</xmax>
<ymax>267</ymax>
</bndbox>
<lm>
<x1>981.33</x1>
<y1>210.223</y1>
<x2>1009.83</x2>
<y2>207.17</y2>
<x3>991.509</x3>
<y3>226.509</y3>
<x4>986.929</x4>
<y4>247.375</y4>
<x5>1007.286</x5>
<y5>247.375</y5>
<visible>0</visible>
<blur>0.62</blur>
</lm>
<has_lm>1</has_lm>
</object>
</annotation>
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<title>ScrollableView-v-vh-af</title>
<script type="text/javascript" src="../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base']"></script>
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true, mblAlwaysHideAddressBar: true"></script>
<script type="text/javascript">
require([
"dojox/mobile/parser",
"dojox/mobile",
"dojox/mobile/compat",
"dojox/mobile/ScrollableView"
]);
</script>
<style>
.lnk {
font-size: 14px;
color: #0B5199;
text-decoration: none;
}
html,body{
height: 100%;
overflow: hidden;
}
input{
width: 200px;
}
</style>
</head>
<body style="visibility:hidden;">
<div id="view1" data-dojo-type="dojox.mobile.ScrollableView">
<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='fixed:"top"'>View Header Bar</h1>
<h2 data-dojo-type="dojox.mobile.RoundRectCategory">Transition Effects</h2>
<div data-dojo-type="dojox.mobile.RoundRect">
scrollDir: vertical<br>
header: view-header<br>
footer: application-footer<br>
</div>
<ul data-dojo-type="dojox.mobile.RoundRectList">
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-1.png"'>
<input value="1">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-2.png"'>
<input value="2">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-3.png"'>
<input value="3">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-4.png"'>
<input value="4">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-5.png"'>
<input value="5">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-6.png"'>
<input value="6">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'>
<input value="7">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'>
<input value="8">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'>
<input value="9">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-1.png"'>
<input value="10">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-2.png"'>
<input value="11">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-3.png"'>
<input value="12">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-4.png"'>
<input value="13">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-5.png"'>
<input value="14">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-6.png"'>
<input value="15">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'>
<input value="16">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'>
<input value="17">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'>
<input value="18">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'>
<input value="19">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'>
<input value="20">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'>
<input value="21">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'>
<input value="22">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'>
<input value="23">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'>
<input value="24">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'>
<input value="25">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'>
<input value="26">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'>
<input value="27">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-7.png"'>
<input value="28">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-8.png"'>
<input value="29">
</li>
<li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-9.png"'>
<input value="30">
</li>
</ul>
</div>
<div id="view2" data-dojo-type="dojox.mobile.ScrollableView">
<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='fixed:"top", back:"Home", moveTo:"view1"'>Search Result</h1>
<ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='variableHeight:true'>
<li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px">
1. <a href="#" class="lnk">Dojo: Traditional Karate-do Spirit</a><br>
Sarah Connor Hardcover<br>
Eligible for FREE Super Saver Shipping<br>
<span style="color:red">$14.50 (50%)</span> In Stock<br>
# (531)
</li>
<li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px">
2. <a href="#" class="lnk">Japanese Martial Arts Dojo</a><br>
Martin Parker Hardcover<br>
<span style="color:red">$14.00 (60%)</span> In Stock<br>
# (173)
</li>
<li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px">
3. <a href="#" class="lnk">Total Solar Eclipse</a><br>
Steven Young Hardcover<br>
Get it by Mar. 2 if you order in the next <span style="color:green"><b>16 hours</b></span><br>
Eligible for FREE Super Saver Shipping<br>
<span style="color:red">$9.50 (62%)</span> In Stock<br>
# (1199)
</li>
<li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px">
4. <a href="#" class="lnk">The History of Java Coffee</a><br>
Marco Rodriguez Hardcover<br>
<span style="color:blue">Not Available</span>
</li>
<li data-dojo-type="dojox.mobile.ListItem" style="font-size:10px">
5. <a href="#" class="lnk">The Principles of Spider's Web</a><br>
Melissa Morgan Hardcover<br>
Eligible for FREE Super Saver Shipping<br>
<span style="color:red">$12.00 (60%)</span> In Stock<br>
# (1847)
</li>
</ul>
</div>
<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='fixed:"bottom"' style="border-bottom:none;">Application Footer Bar</h1>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
{
"quicksand" : {
"index" : 10,
"targetType" : "NO_TARGET",
"sounds": {
"cast": "QUIKSAND"
},
"levels" : {
"base":{
"range" : "X",
"battleEffects" : {
"obstacle" : {
"type":"core:obstacle",
"hidden" : true,
"passable" : true,
"trap" : true,
"trigger" : false,
"patchCount" : 4,
"turnsRemaining" : -1,
"attacker" :{
"animation" : "C17SPE1",
"appearAnimation" : "C17SPE0",
"offsetY" : -42
},
"defender" :{
"animation" : "C17SPE1",
"appearAnimation" : "C17SPE0",
"offsetY" : -42
}
}
}
},
"advanced":{
"battleEffects":{
"obstacle":{
"patchCount" : 6
}
}
},
"expert":{
"battleEffects":{
"obstacle":{
"patchCount" : 8
}
}
}
},
"flags" : {
"indifferent": true
}
},
"landMine" : {
"index" : 11,
"targetType" : "NO_TARGET",
"sounds": {
"cast": ""
},
"levels" : {
"base":{
"range" : "X",
"battleEffects" : {
"obstacle" : {
"type":"core:obstacle",
"hidden" : true,
"passable" : true,
"trap" : false,
"trigger" : true,
"removeOnTrigger" : true,
"patchCount" : 4,
"turnsRemaining" : -1,
"attacker" :{
"animation" : "C09SPF1",
"appearAnimation" : "C09SPF0"
},
"defender" :{
"animation" : "C09SPF1",
"appearAnimation" : "C09SPF0"
}
},
"damage":{
"type":"core:damage",
"optional":false,
"indirect":true,
"customEffectId" : 82
}
}
},
"advanced":{
"battleEffects":{
"obstacle":{
"patchCount" : 6
}
}
},
"expert":{
"battleEffects":{
"obstacle":{
"patchCount" : 8
}
}
}
},
"flags" : {
"damage": true,
"indifferent": true
},
"targetCondition" : {
"noneOf" : {
"bonus.DIRECT_DAMAGE_IMMUNITY" : "normal"
}
}
},
"forceField" : {
"index" : 12,
"targetType" : "LOCATION",
"sounds": {
"cast": "FORCEFLD"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{
"clearAffected": true
},
"battleEffects":{
"obstacle":{
"type":"core:obstacle",
"hidden" : false,
"passable" : false,
"trap" : false,
"trigger" : false,
"patchCount" : 1,
"turnsRemaining" : 2,
"attacker" :{
"range" : [[""]],
"shape" : [[""], ["TR"]],
"animation" : "C15SPE1",
"appearAnimation" : "C15SPE0"
},
"defender" :{
"range" : [[""]],
"shape" : [[""], ["TL"]],
"animation" : "C15SPE4",
"appearAnimation" : "C15SPE0"
}
}
}
},
"advanced":{
"battleEffects":{
"obstacle":{
"attacker" :{
"shape" : [[""], ["TR"], ["TR", "TL"]],
"animation" : "C15SPE10",
"appearAnimation" : "C15SPE9"
},
"defender" :{
"shape" : [[""], ["TL"], ["TL", "TR"]],
"animation" : "C15SPE7",
"appearAnimation" : "C15SPE6"
}
}
}
},
"expert":{
"battleEffects":{
"obstacle":{
"attacker" :{
"shape" : [[""], ["TR"], ["TR", "TL"]],
"animation" : "C15SPE10",
"appearAnimation" : "C15SPE9"
},
"defender" :{
"shape" : [[""], ["TL"], ["TL", "TR"]],
"animation" : "C15SPE7",
"appearAnimation" : "C15SPE6"
}
}
}
}
},
"flags" : {
"indifferent": true
}
},
"fireWall" : {
"index" : 13,
"targetType" : "LOCATION",
"sounds": {
"cast": "FIREWALL"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{
"clearAffected": true
},
"battleEffects":{
"obstacle":{
"type":"core:obstacle",
"hidden" : false,
"passable" : true,
"trap" : false,
"trigger" : true,
"patchCount" : 1,
"turnsRemaining" : 2,
"attacker" :{
"shape" : [[""]],
"range" : [[""], ["TR"]],
"animation" : "C07SPF61",
"appearAnimation" : "C07SPF60"
},
"defender" :{
"shape" : [[""]],
"range" : [[""], ["TL"]],
"animation" : "C07SPF61",
"appearAnimation" : "C07SPF60"
}
},
"damage":{
"type":"core:damage",
"optional":false,
"indirect":true
}
}
},
"advanced":{
"battleEffects":{
"obstacle":{
"attacker" :{
"range" : [[""], ["TR"], ["TR", "TL"]]
},
"defender" :{
"range" : [[""], ["TL"], ["TL", "TR"]]
}
}
}
},
"expert":{
"battleEffects":{
"obstacle":{
"attacker" :{
"range" : [[""], ["TR"], ["TR", "TL"]]
},
"defender" :{
"range" : [[""], ["TL"], ["TL", "TR"]]
}
}
}
}
},
"flags" : {
"damage": true,
"indifferent": true
},
"targetCondition" : {
"noneOf" : {
"bonus.DIRECT_DAMAGE_IMMUNITY" : "normal"
}
}
},
"earthquake" : {
"index" : 14,
"targetType" : "NO_TARGET",
"sounds": {
"cast": "ERTHQUAK"
},
"levels" : {
"base":{
"targetModifier":{"smart":true},
"battleEffects":{
"catapult":{
"type":"core:catapult",
"targetsToAttack": 2
}
},
"range" : "X"
},
"advanced":{
"battleEffects":{
"catapult":{
"targetsToAttack": 3
}
}
},
"expert":{
"battleEffects":{
"catapult":{
"targetsToAttack": 4
}
}
}
},
"flags" : {
"indifferent": true
}
},
"dispel" : {
"index" : 35,
"targetType" : "CREATURE",
"animation":{
"affect":["C05SPW"] //C05SPW0
},
"sounds": {
"cast": "DISPELL"
},
"levels" : {
"base":{
"targetModifier":{
"smart":true
},
"battleEffects":{
"dispel":{
"type":"core:dispel",
"optional":false,
"ignoreImmunity" : true,
"dispelNegative":true,
"dispelNeutral":true,
"dispelPositive":true
}
},
"range" : "0"
},
"advanced":{
"targetModifier":{"smart":false}
},
"expert":{
"targetModifier":{"smart":false},
"battleEffects":{
"dispel":{
"optional":true
},
"removeObstacle":{
"optional":true,
"type":"core:removeObstacle",
"removeAllSpells" : true
}
},
"range" : "X"
}
},
"flags" : {
"positive": true
}
},
"cure" : {
"index" : 37,
"targetType" : "CREATURE",
"animation":{
"affect":["C03SPW"]//C03SPW0
},
"sounds": {
"cast": "CURE"
},
"levels" : {
"base":{
"targetModifier":{"smart":true},
"battleEffects":{
"heal":{
"type":"core:heal",
"healLevel":"heal",
"healPower":"permanent",
"optional":true
},
"cure":{
"type":"core:dispel",
"optional":true,
"dispelNegative":true,
"dispelNeutral":false,
"dispelPositive":false
}
},
"range" : "0"
},
"expert":{
"range" : "X"
}
},
"flags" : {
"positive": true
}
},
"resurrection" : {
"index" : 38,
"targetType" : "CREATURE",
"animation":{
"affect":["C01SPE0"]
},
"sounds": {
"cast": "RESURECT"
},
"levels" : {
"base":{
"range" : "0",
"battleEffects":{
"heal":{
"type":"core:heal",
"healLevel":"resurrect",
"healPower":"oneBattle",
"minFullUnits" : 1
},
"cure":{
"type":"core:dispel",
"indirect": true,
"optional":true,
"dispelNegative":true,
"dispelNeutral":false,
"dispelPositive":false
}
},
"targetModifier":{"smart":true}
},
"advanced":{
"battleEffects":{
"heal":{
"healPower":"permanent"
}
}
},
"expert":{
"battleEffects":{
"heal":{
"healPower":"permanent"
}
}
}
},
"flags" : {
"rising": true,
"positive": true
},
"targetCondition" : {
"noneOf" : {
"bonus.NON_LIVING" : "absolute",
"bonus.SIEGE_WEAPON" : "absolute",
"bonus.UNDEAD" : "absolute",
"bonus.GARGOYLE" : "absolute"
}
}
},
"animateDead" : {
"index" : 39,
"targetType" : "CREATURE",
"animation":{
"affect":["C01SPE0"]
},
"sounds": {
"cast": "ANIMDEAD"
},
"levels" : {
"base":{
"range" : "0",
"battleEffects":{
"heal":{
"type":"core:heal",
"healLevel":"resurrect",
"healPower":"permanent",
"minFullUnits" : 1
}
},
"targetModifier":{"smart":true}
}
},
"flags" : {
"rising": true,
"positive": true
},
"targetCondition" : {
"allOf" : {
"bonus.UNDEAD" : "absolute"
}
}
},
"sacrifice" : {
"index" : 40,
"targetType" : "CREATURE",
"animation":{
"affect":["C01SPE0"]
},
"sounds": {
"cast": "SACRIF1"
},
"levels" : {
"base":{
"range" : "0",
"battleEffects":{
"sacrifice":{
"type":"core:sacrifice",
"healLevel":"resurrect",
"healPower":"permanent",
"minFullUnits" : 0
}
},
"targetModifier":{"smart":true}
}
},
"flags" : {
"rising": true,
"positive": true
},
"targetCondition" : {
"noneOf" : {
"bonus.NON_LIVING" : "absolute",
"bonus.SIEGE_WEAPON" : "absolute",
"bonus.UNDEAD" : "absolute",
"bonus.GARGOYLE" : "absolute"
}
}
},
"teleport" : {
"index" : 63,
"targetType" : "CREATURE",
"sounds": {
"cast": "TELPTOUT"
},
"levels" : {
"base":{
"range" : "0",
"battleEffects":{
"teleport":{
"type":"core:teleport"
}
},
"targetModifier":{"smart":true}
}
},
"flags" : {
"positive": true
},
"targetCondition" : {
"noneOf" : {
"bonus.SIEGE_WEAPON" : "absolute"
}
}
},
"removeObstacle" : {
"index" : 64,
"targetType" : "OBSTACLE",
"animation":{
"cast":[2]
},
"sounds": {
"cast": "REMOVEOB"
},
"levels" : {
"base":{
"range" : "0",
"battleEffects": {
"removeObstacle" : {
"optional":false,
"type":"core:removeObstacle",
"removeUsual" : true
}
}
},
"advanced" : {
"battleEffects": {
"removeObstacle" : {
"removeSpells" : ["fireWall"]
}
}
},
"expert" : {
"battleEffects": {
"removeObstacle" : {
"removeAllSpells" : true
}
}
}
},
"flags" : {
"indifferent": true
}
},
"clone" : {
"index" : 65,
"targetType" : "CREATURE",
"animation":{
"cast":[2]
},
"sounds": {
"cast": "CLONE"
},
"levels" : {
"base":{
"range" : "0",
"battleEffects":{
"clone":{
"maxTier":5,
"type":"core:clone"
}
},
"targetModifier":{"smart":true}
},
"advanced":{
"battleEffects":{
"clone":{
"maxTier":6
}
}
},
"expert":{
"battleEffects":{
"clone":{
"maxTier":1000
}
}
}
},
"flags" : {
"positive": true
},
"targetCondition" : {
"noneOf" : {
"bonus.SIEGE_WEAPON" : "absolute"
}
}
},
"fireElemental" : {
"index" : 66,
"targetType" : "NO_TARGET",
"animation":{
"cast":[2]
},
"sounds": {
"cast": "SUMNELM"
},
"levels" : {
"base":{
"range" : "X",
"battleEffects":{
"summon":{
"exclusive":true,
"id":"fireElemental",
"permanent":false,
"type":"core:summon"
}
}
}
},
"flags" : {
"indifferent": true
}
},
"earthElemental" : {
"index" : 67,
"targetType" : "NO_TARGET",
"animation":{
"cast":[2]
},
"sounds": {
"cast": "SUMNELM"
},
"levels" : {
"base":{
"range" : "X",
"battleEffects":{
"summon":{
"exclusive":true,
"id":"earthElemental",
"permanent":false,
"type":"core:summon"
}
}
}
},
"flags" : {
"indifferent": true
}
},
"waterElemental" : {
"index" : 68,
"targetType" : "NO_TARGET",
"animation":{
"cast":[2]
},
"sounds": {
"cast": "SUMNELM"
},
"levels" : {
"base":{
"range" : "X",
"battleEffects":{
"summon":{
"exclusive":true,
"id":"waterElemental",
"permanent":false,
"type":"core:summon"
}
}
}
},
"flags" : {
"indifferent": true
}
},
"airElemental" : {
"index" : 69,
"targetType" : "NO_TARGET",
"animation":{
"cast":[2]
},
"sounds": {
"cast": "SUMNELM"
},
"levels" : {
"base":{
"range" : "X",
"battleEffects":{
"summon":{
"exclusive":true,
"id":"airElemental",
"permanent":false,
"type":"core:summon"
}
}
}
},
"flags" : {
"indifferent": true
}
}
}
|
{
"pile_set_name": "Github"
}
|
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package bpf
import (
"errors"
"fmt"
)
// A VM is an emulated BPF virtual machine.
type VM struct {
filter []Instruction
}
// NewVM returns a new VM using the input BPF program.
func NewVM(filter []Instruction) (*VM, error) {
if len(filter) == 0 {
return nil, errors.New("one or more Instructions must be specified")
}
for i, ins := range filter {
check := len(filter) - (i + 1)
switch ins := ins.(type) {
// Check for out-of-bounds jumps in instructions
case Jump:
if check <= int(ins.Skip) {
return nil, fmt.Errorf("cannot jump %d instructions; jumping past program bounds", ins.Skip)
}
case JumpIf:
if check <= int(ins.SkipTrue) {
return nil, fmt.Errorf("cannot jump %d instructions in true case; jumping past program bounds", ins.SkipTrue)
}
if check <= int(ins.SkipFalse) {
return nil, fmt.Errorf("cannot jump %d instructions in false case; jumping past program bounds", ins.SkipFalse)
}
case JumpIfX:
if check <= int(ins.SkipTrue) {
return nil, fmt.Errorf("cannot jump %d instructions in true case; jumping past program bounds", ins.SkipTrue)
}
if check <= int(ins.SkipFalse) {
return nil, fmt.Errorf("cannot jump %d instructions in false case; jumping past program bounds", ins.SkipFalse)
}
// Check for division or modulus by zero
case ALUOpConstant:
if ins.Val != 0 {
break
}
switch ins.Op {
case ALUOpDiv, ALUOpMod:
return nil, errors.New("cannot divide by zero using ALUOpConstant")
}
// Check for unknown extensions
case LoadExtension:
switch ins.Num {
case ExtLen:
default:
return nil, fmt.Errorf("extension %d not implemented", ins.Num)
}
}
}
// Make sure last instruction is a return instruction
switch filter[len(filter)-1].(type) {
case RetA, RetConstant:
default:
return nil, errors.New("BPF program must end with RetA or RetConstant")
}
// Though our VM works using disassembled instructions, we
// attempt to assemble the input filter anyway to ensure it is compatible
// with an operating system VM.
_, err := Assemble(filter)
return &VM{
filter: filter,
}, err
}
// Run runs the VM's BPF program against the input bytes.
// Run returns the number of bytes accepted by the BPF program, and any errors
// which occurred while processing the program.
func (v *VM) Run(in []byte) (int, error) {
var (
// Registers of the virtual machine
regA uint32
regX uint32
regScratch [16]uint32
// OK is true if the program should continue processing the next
// instruction, or false if not, causing the loop to break
ok = true
)
// TODO(mdlayher): implement:
// - NegateA:
// - would require a change from uint32 registers to int32
// registers
// TODO(mdlayher): add interop tests that check signedness of ALU
// operations against kernel implementation, and make sure Go
// implementation matches behavior
for i := 0; i < len(v.filter) && ok; i++ {
ins := v.filter[i]
switch ins := ins.(type) {
case ALUOpConstant:
regA = aluOpConstant(ins, regA)
case ALUOpX:
regA, ok = aluOpX(ins, regA, regX)
case Jump:
i += int(ins.Skip)
case JumpIf:
jump := jumpIf(ins, regA)
i += jump
case JumpIfX:
jump := jumpIfX(ins, regA, regX)
i += jump
case LoadAbsolute:
regA, ok = loadAbsolute(ins, in)
case LoadConstant:
regA, regX = loadConstant(ins, regA, regX)
case LoadExtension:
regA = loadExtension(ins, in)
case LoadIndirect:
regA, ok = loadIndirect(ins, in, regX)
case LoadMemShift:
regX, ok = loadMemShift(ins, in)
case LoadScratch:
regA, regX = loadScratch(ins, regScratch, regA, regX)
case RetA:
return int(regA), nil
case RetConstant:
return int(ins.Val), nil
case StoreScratch:
regScratch = storeScratch(ins, regScratch, regA, regX)
case TAX:
regX = regA
case TXA:
regA = regX
default:
return 0, fmt.Errorf("unknown Instruction at index %d: %T", i, ins)
}
}
return 0, nil
}
|
{
"pile_set_name": "Github"
}
|
// RUN: %clang_analyze_cc1 -analyzer-checker=optin.mpi.MPI-Checker -verify %s
#include "MPIMock.h"
void matchedWait1() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (rank >= 0) {
MPI_Request sendReq1, recvReq1;
MPI_Isend(&buf, 1, MPI_DOUBLE, rank + 1, 0, MPI_COMM_WORLD, &sendReq1);
MPI_Irecv(&buf, 1, MPI_DOUBLE, rank - 1, 0, MPI_COMM_WORLD, &recvReq1);
MPI_Wait(&sendReq1, MPI_STATUS_IGNORE);
MPI_Wait(&recvReq1, MPI_STATUS_IGNORE);
}
} // no error
void matchedWait2() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (rank >= 0) {
MPI_Request sendReq1, recvReq1;
MPI_Isend(&buf, 1, MPI_DOUBLE, rank + 1, 0, MPI_COMM_WORLD, &sendReq1);
MPI_Irecv(&buf, 1, MPI_DOUBLE, rank - 1, 0, MPI_COMM_WORLD, &recvReq1);
MPI_Wait(&sendReq1, MPI_STATUS_IGNORE);
MPI_Wait(&recvReq1, MPI_STATUS_IGNORE);
}
} // no error
void matchedWait3() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (rank >= 0) {
MPI_Request sendReq1, recvReq1;
MPI_Isend(&buf, 1, MPI_DOUBLE, rank + 1, 0, MPI_COMM_WORLD, &sendReq1);
MPI_Irecv(&buf, 1, MPI_DOUBLE, rank - 1, 0, MPI_COMM_WORLD, &recvReq1);
if (rank > 1000) {
MPI_Wait(&sendReq1, MPI_STATUS_IGNORE);
MPI_Wait(&recvReq1, MPI_STATUS_IGNORE);
} else {
MPI_Wait(&sendReq1, MPI_STATUS_IGNORE);
MPI_Wait(&recvReq1, MPI_STATUS_IGNORE);
}
}
} // no error
void missingWait1() { // Check missing wait for dead region.
double buf = 0;
MPI_Request sendReq1;
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD, &sendReq1);
} // expected-warning{{Request 'sendReq1' has no matching wait.}}
void missingWait2() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (rank == 0) {
} else {
MPI_Request sendReq1, recvReq1;
MPI_Isend(&buf, 1, MPI_DOUBLE, rank + 1, 0, MPI_COMM_WORLD, &sendReq1);
MPI_Irecv(&buf, 1, MPI_DOUBLE, rank - 1, 0, MPI_COMM_WORLD, &recvReq1); // expected-warning{{Request 'sendReq1' has no matching wait.}}
MPI_Wait(&recvReq1, MPI_STATUS_IGNORE);
}
}
void doubleNonblocking() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (rank == 1) {
} else {
MPI_Request sendReq1;
MPI_Isend(&buf, 1, MPI_DOUBLE, rank + 1, 0, MPI_COMM_WORLD, &sendReq1);
MPI_Irecv(&buf, 1, MPI_DOUBLE, rank - 1, 0, MPI_COMM_WORLD, &sendReq1); // expected-warning{{Double nonblocking on request 'sendReq1'.}}
MPI_Wait(&sendReq1, MPI_STATUS_IGNORE);
}
}
void doubleNonblocking2() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request req;
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD, &req);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD, &req); // expected-warning{{Double nonblocking on request 'req'.}}
MPI_Wait(&req, MPI_STATUS_IGNORE);
}
void doubleNonblocking3() {
typedef struct { MPI_Request req; } ReqStruct;
ReqStruct rs;
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD, &rs.req);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD, &rs.req); // expected-warning{{Double nonblocking on request 'rs.req'.}}
MPI_Wait(&rs.req, MPI_STATUS_IGNORE);
}
void doubleNonblocking4() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request req;
for (int i = 0; i < 2; ++i) {
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD, &req); // expected-warning{{Double nonblocking on request 'req'.}}
}
MPI_Wait(&req, MPI_STATUS_IGNORE);
}
void tripleNonblocking() {
double buf = 0;
MPI_Request sendReq;
MPI_Isend(&buf, 1, MPI_DOUBLE, 0, 0, MPI_COMM_WORLD, &sendReq);
MPI_Irecv(&buf, 1, MPI_DOUBLE, 0, 0, MPI_COMM_WORLD, &sendReq); // expected-warning{{Double nonblocking on request 'sendReq'.}}
MPI_Isend(&buf, 1, MPI_DOUBLE, 0, 0, MPI_COMM_WORLD, &sendReq); // expected-warning{{Double nonblocking on request 'sendReq'.}}
MPI_Wait(&sendReq, MPI_STATUS_IGNORE);
}
void missingNonBlocking() {
int rank = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request sendReq1[10][10][10];
MPI_Wait(&sendReq1[1][7][9], MPI_STATUS_IGNORE); // expected-warning{{Request 'sendReq1[1][7][9]' has no matching nonblocking call.}}
}
void missingNonBlocking2() {
int rank = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
typedef struct { MPI_Request req[2][2]; } ReqStruct;
ReqStruct rs;
MPI_Request *r = &rs.req[0][1];
MPI_Wait(r, MPI_STATUS_IGNORE); // expected-warning{{Request 'rs.req[0][1]' has no matching nonblocking call.}}
}
void missingNonBlocking3() {
int rank = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request sendReq;
MPI_Wait(&sendReq, MPI_STATUS_IGNORE); // expected-warning{{Request 'sendReq' has no matching nonblocking call.}}
}
void missingNonBlockingMultiple() {
int rank = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request sendReq[4];
for (int i = 0; i < 4; ++i) {
MPI_Wait(&sendReq[i], MPI_STATUS_IGNORE); // expected-warning-re 1+{{Request {{.*}} has no matching nonblocking call.}}
}
}
void missingNonBlockingWaitall() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request req[4];
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req[0]);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req[1]);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req[3]);
MPI_Waitall(4, req, MPI_STATUSES_IGNORE); // expected-warning{{Request 'req[2]' has no matching nonblocking call.}}
}
void missingNonBlockingWaitall2() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request req[4];
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req[0]);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req[3]);
MPI_Waitall(4, req, MPI_STATUSES_IGNORE); // expected-warning-re 2{{Request '{{(.*)[[1-2]](.*)}}' has no matching nonblocking call.}}
}
void missingNonBlockingWaitall3() {
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request req[4];
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req[0]);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req[2]);
MPI_Waitall(4, req, MPI_STATUSES_IGNORE); // expected-warning-re 2{{Request '{{(.*)[[1,3]](.*)}}' has no matching nonblocking call.}}
}
void missingNonBlockingWaitall4() {
int rank = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request req[4];
MPI_Waitall(4, req, MPI_STATUSES_IGNORE); // expected-warning-re 4{{Request '{{(.*)[[0-3]](.*)}}' has no matching nonblocking call.}}
}
void noDoubleRequestUsage() {
typedef struct {
MPI_Request req;
MPI_Request req2;
} ReqStruct;
ReqStruct rs;
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&rs.req);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&rs.req2);
MPI_Wait(&rs.req, MPI_STATUS_IGNORE);
MPI_Wait(&rs.req2, MPI_STATUS_IGNORE);
} // no error
void noDoubleRequestUsage2() {
typedef struct {
MPI_Request req[2];
MPI_Request req2;
} ReqStruct;
ReqStruct rs;
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&rs.req[0]);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&rs.req[1]);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&rs.req2);
MPI_Wait(&rs.req[0], MPI_STATUS_IGNORE);
MPI_Wait(&rs.req[1], MPI_STATUS_IGNORE);
MPI_Wait(&rs.req2, MPI_STATUS_IGNORE);
} // no error
void nestedRequest() {
typedef struct {
MPI_Request req[2];
MPI_Request req2;
} ReqStruct;
ReqStruct rs;
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&rs.req[0]);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&rs.req[1]);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&rs.req2);
MPI_Waitall(2, rs.req, MPI_STATUSES_IGNORE);
MPI_Wait(&rs.req2, MPI_STATUS_IGNORE);
} // no error
void singleRequestInWaitall() {
MPI_Request r;
int rank = 0;
double buf = 0;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&r);
MPI_Waitall(1, &r, MPI_STATUSES_IGNORE);
} // no error
void multiRequestUsage() {
double buf = 0;
MPI_Request req;
MPI_Isend(&buf, 1, MPI_DOUBLE, 1, 0, MPI_COMM_WORLD, &req);
MPI_Wait(&req, MPI_STATUS_IGNORE);
MPI_Irecv(&buf, 1, MPI_DOUBLE, 1, 0, MPI_COMM_WORLD, &req);
MPI_Wait(&req, MPI_STATUS_IGNORE);
} // no error
void multiRequestUsage2() {
double buf = 0;
MPI_Request req;
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req);
MPI_Wait(&req, MPI_STATUS_IGNORE);
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req);
MPI_Wait(&req, MPI_STATUS_IGNORE);
} // no error
// wrapper function
void callNonblocking(MPI_Request *req) {
double buf = 0;
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
req);
}
// wrapper function
void callWait(MPI_Request *req) {
MPI_Wait(req, MPI_STATUS_IGNORE);
}
// Call nonblocking, wait wrapper functions.
void callWrapperFunctions() {
MPI_Request req;
callNonblocking(&req);
callWait(&req);
} // no error
void externFunctions1() {
double buf = 0;
MPI_Request req;
MPI_Ireduce(MPI_IN_PLACE, &buf, 1, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD,
&req);
void callWaitExtern(MPI_Request *req);
callWaitExtern(&req);
} // expected-warning{{Request 'req' has no matching wait.}}
void externFunctions2() {
MPI_Request req;
void callNonblockingExtern(MPI_Request *req);
callNonblockingExtern(&req);
}
|
{
"pile_set_name": "Github"
}
|
<section id="references">
<h1>References</h1>
<p>Where to look to find out more.</p>
<h2>Online</h2>
<ul>
<li><a href="http://www.w3.org/TR/css3-transitions/">W3C: CSS Transitions Module Level 3</a></li>
<li><a href="http://www.w3.org/TR/css3-2d-transforms/">W3C: CSS 2D Transforms Module Level 3</a></li>
<li><a href="http://www.w3.org/TR/css3-3d-transforms/">W3C: CSS 3D Transforms Module Level 3</a></li>
<li><a href="http://www.w3.org/TR/css3-animations/">W3C: CSS Animations Module Level 3</a></li>
<li><a href="http://webkit.org/blog/">Surfin' Safari (check the archives)</a></li>
<li><a href="http://desandro.github.com/3dtransforms/">David Desandro's 3D transform examples</a></li>
</ul>
<h2>Offline</h2>
<p>I haven't read many of these books, but they are either by good authors, or have good reviews! They are listed in no particular order:</p>
<ul>
<li><a href="http://www.amazon.co.uk/gp/product/0321784421">Introducing HTML5</a></li>
<li><a href="http://www.amazon.co.uk/gp/product/1593272863">The Book of CSS3: A Developer's Guide to the Future of Web Design: A Developer's Guide to the Future of Web Design</a></li>
<li><a href="http://www.amazon.co.uk/gp/product/0321719638">CSS3: Visual QuickStart Guide (Visual QuickStart Guides)</a></li>
<li><a href="http://www.amazon.co.uk/gp/product/B004JXXL0A">Stunning CSS3: A project-based guide to the latest in CSS (Voices That Matter)</a></li>
</ul>
</section>
|
{
"pile_set_name": "Github"
}
|
/// @ref core
/// @file glm/detail/type_gentype.inl
namespace glm{
namespace detail{
/////////////////////////////////
// Static functions
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::size_type base<vT, cT, rT, pT>::col_size()
{
return cT;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::size_type base<vT, cT, rT, pT>::row_size()
{
return rT;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::size_type base<vT, cT, rT, pT>::value_size()
{
return rT * cT;
}
template<typename vT, uint cT, uint rT, profile pT>
bool base<vT, cT, rT, pT>::is_scalar()
{
return rT == 1 && cT == 1;
}
template<typename vT, uint cT, uint rT, profile pT>
bool base<vT, cT, rT, pT>::is_vector()
{
return rT == 1;
}
template<typename vT, uint cT, uint rT, profile pT>
bool base<vT, cT, rT, pT>::is_matrix()
{
return rT != 1;
}
/////////////////////////////////
// Constructor
template<typename vT, uint cT, uint rT, profile pT>
base<vT, cT, rT, pT>::base()
{
memset(&this->value, 0, cT * rT * sizeof(vT));
}
template<typename vT, uint cT, uint rT, profile pT>
base<vT, cT, rT, pT>::base
(
typename base<vT, cT, rT, pT>::class_type const& m
)
{
for
(
typename genType<vT, cT, rT, pT>::size_type i = typename base<vT, cT, rT, pT>::size_type(0);
i < base<vT, cT, rT, pT>::col_size();
++i
)
{
this->value[i] = m[i];
}
}
template<typename vT, uint cT, uint rT, profile pT>
base<vT, cT, rT, pT>::base
(
typename base<vT, cT, rT, pT>::T const& x
)
{
if(rT == 1) // vector
{
for
(
typename base<vT, cT, rT, pT>::size_type i = typename base<vT, cT, rT, pT>::size_type(0);
i < base<vT, cT, rT, pT>::col_size();
++i
)
{
this->value[i][rT] = x;
}
}
else // matrix
{
memset(&this->value, 0, cT * rT * sizeof(vT));
typename base<vT, cT, rT, pT>::size_type stop = cT < rT ? cT : rT;
for
(
typename base<vT, cT, rT, pT>::size_type i = typename base<vT, cT, rT, pT>::size_type(0);
i < stop;
++i
)
{
this->value[i][i] = x;
}
}
}
template<typename vT, uint cT, uint rT, profile pT>
base<vT, cT, rT, pT>::base
(
typename base<vT, cT, rT, pT>::value_type const * const x
)
{
memcpy(&this->value, &x.value, cT * rT * sizeof(vT));
}
template<typename vT, uint cT, uint rT, profile pT>
base<vT, cT, rT, pT>::base
(
typename base<vT, cT, rT, pT>::col_type const * const x
)
{
for
(
typename base<vT, cT, rT, pT>::size_type i = typename base<vT, cT, rT, pT>::size_type(0);
i < base<vT, cT, rT, pT>::col_size();
++i
)
{
this->value[i] = x[i];
}
}
template<typename vT, uint cT, uint rT, profile pT>
template<typename vU, uint cU, uint rU, profile pU>
base<vT, cT, rT, pT>::base
(
base<vU, cU, rU, pU> const& m
)
{
for
(
typename base<vT, cT, rT, pT>::size_type i = typename base<vT, cT, rT, pT>::size_type(0);
i < base<vT, cT, rT, pT>::col_size();
++i
)
{
this->value[i] = base<vT, cT, rT, pT>(m[i]);
}
}
//////////////////////////////////////
// Accesses
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::col_type& base<vT, cT, rT, pT>::operator[]
(
typename base<vT, cT, rT, pT>::size_type i
)
{
return this->value[i];
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::col_type const& base<vT, cT, rT, pT>::operator[]
(
typename base<vT, cT, rT, pT>::size_type i
) const
{
return this->value[i];
}
//////////////////////////////////////
// Unary updatable operators
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator=
(
typename base<vT, cT, rT, pT>::class_type const& x
)
{
memcpy(&this->value, &x.value, cT * rT * sizeof(vT));
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator+=
(
typename base<vT, cT, rT, pT>::T const& x
)
{
typename base<vT, cT, rT, pT>::size_type stop_col = x.col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = x.row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
this->value[j][i] += x;
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator+=
(
typename base<vT, cT, rT, pT>::class_type const& x
)
{
typename base<vT, cT, rT, pT>::size_type stop_col = x.col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = x.row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
this->value[j][i] += x[j][i];
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator-=
(
typename base<vT, cT, rT, pT>::T const& x
)
{
typename base<vT, cT, rT, pT>::size_type stop_col = x.col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = x.row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
this->value[j][i] -= x;
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator-=
(
typename base<vT, cT, rT, pT>::class_type const& x
)
{
typename base<vT, cT, rT, pT>::size_type stop_col = x.col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = x.row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
this->value[j][i] -= x[j][i];
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator*=
(
typename base<vT, cT, rT, pT>::T const& x
)
{
typename base<vT, cT, rT, pT>::size_type stop_col = x.col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = x.row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
this->value[j][i] *= x;
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator*=
(
typename base<vT, cT, rT, pT>::class_type const& x
)
{
typename base<vT, cT, rT, pT>::size_type stop_col = x.col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = x.row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
this->value[j][i] *= x[j][i];
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator/=
(
typename base<vT, cT, rT, pT>::T const& x
)
{
typename base<vT, cT, rT, pT>::size_type stop_col = x.col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = x.row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
this->value[j][i] /= x;
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator/=
(
typename base<vT, cT, rT, pT>::class_type const& x
)
{
typename base<vT, cT, rT, pT>::size_type stop_col = x.col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = x.row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
this->value[j][i] /= x[j][i];
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator++ ()
{
typename base<vT, cT, rT, pT>::size_type stop_col = col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
++this->value[j][i];
return *this;
}
template<typename vT, uint cT, uint rT, profile pT>
typename base<vT, cT, rT, pT>::class_type& base<vT, cT, rT, pT>::operator-- ()
{
typename base<vT, cT, rT, pT>::size_type stop_col = col_size();
typename base<vT, cT, rT, pT>::size_type stop_row = row_size();
for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j)
for(typename base<vT, cT, rT, pT>::size_type i = 0; i < stop_row; ++i)
--this->value[j][i];
return *this;
}
} //namespace detail
} //namespace glm
|
{
"pile_set_name": "Github"
}
|
# newdoc id = reviews-256677
# sent_id = reviews-256677-0001
# newpar id = reviews-256677-p0001
# text = Love Hop City
1 Love love VERB VBP Mood=Ind|Tense=Pres|VerbForm=Fin 0 root 0:root _
2 Hop Hop PROPN NNP Number=Sing 3 compound 3:compound _
3 City City PROPN NNP Number=Sing 1 obj 1:obj _
# sent_id = reviews-256677-0002
# newpar id = reviews-256677-p0002
# text = This place is great!
1 This this DET DT Number=Sing|PronType=Dem 2 det 2:det _
2 place place NOUN NN Number=Sing 4 nsubj 4:nsubj _
3 is be AUX VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 4 cop 4:cop _
4 great great ADJ JJ Degree=Pos 0 root 0:root SpaceAfter=No
5 ! ! PUNCT . _ 4 punct 4:punct _
# sent_id = reviews-256677-0003
# text = Craig and Nate are wonderful.
1 Craig Craig PROPN NNP Number=Sing 5 nsubj 5:nsubj _
2 and and CCONJ CC _ 3 cc 3:cc _
3 Nate Nate PROPN NNP Number=Sing 1 conj 1:conj:and|5:nsubj _
4 are be AUX VBP Mood=Ind|Tense=Pres|VerbForm=Fin 5 cop 5:cop _
5 wonderful wonderful ADJ JJ Degree=Pos 0 root 0:root SpaceAfter=No
6 . . PUNCT . _ 5 punct 5:punct _
# sent_id = reviews-256677-0004
# text = I know now where to get all of my wine and beer.
1 I I PRON PRP Case=Nom|Number=Sing|Person=1|PronType=Prs 2 nsubj 2:nsubj _
2 know know VERB VBP Mood=Ind|Tense=Pres|VerbForm=Fin 0 root 0:root _
3 now now ADV RB _ 2 advmod 2:advmod _
4 where where ADV WRB PronType=Int 6 advmod 6:advmod _
5 to to PART TO _ 6 mark 6:mark _
6 get get VERB VB VerbForm=Inf 2 ccomp 2:ccomp _
7 all all DET DT _ 6 obj 6:obj _
8 of of ADP IN _ 10 case 10:case _
9 my my PRON PRP$ Number=Sing|Person=1|Poss=Yes|PronType=Prs 10 nmod:poss 10:nmod:poss _
10 wine wine NOUN NN Number=Sing 7 nmod 7:nmod:of _
11 and and CCONJ CC _ 12 cc 12:cc _
12 beer beer NOUN NN Number=Sing 10 conj 7:nmod:of|10:conj:and SpaceAfter=No
13 . . PUNCT . _ 2 punct 2:punct _
# sent_id = reviews-256677-0005
# text = No need to go to a grocer again.
1 No no DET DT _ 2 det 2:det _
2 need need NOUN NN Number=Sing 0 root 0:root _
3 to to PART TO _ 4 mark 4:mark _
4 go go VERB VB VerbForm=Inf 2 acl 2:acl:to _
5 to to ADP IN _ 7 case 7:case _
6 a a DET DT Definite=Ind|PronType=Art 7 det 7:det _
7 grocer grocer NOUN NN Number=Sing 4 obl 4:obl:to _
8 again again ADV RB _ 4 advmod 4:advmod SpaceAfter=No
9 . . PUNCT . _ 2 punct 2:punct _
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>17D102</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>BT4LEContinuityFixup</string>
<key>CFBundleIdentifier</key>
<string>as.lvs1974.BT4LEContinuityFixup</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>BT4LEContinuityFixup</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.1.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.1.4</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>9F2000</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>17E189</string>
<key>DTSDKName</key>
<string>macosx10.13</string>
<key>DTXcode</key>
<string>0941</string>
<key>DTXcodeBuild</key>
<string>9F2000</string>
<key>IOKitPersonalities</key>
<dict>
<key>as.lvs1974.BT4LEContinuityFixup</key>
<dict>
<key>CFBundleIdentifier</key>
<string>as.lvs1974.BT4LEContinuityFixup</string>
<key>IOClass</key>
<string>BT4LEContinuityFixup</string>
<key>IOMatchCategory</key>
<string>BT4LEContinuityFixup</string>
<key>IOProviderClass</key>
<string>IOResources</string>
<key>IOResourceMatch</key>
<string>IOKit</string>
</dict>
</dict>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017 lvs1974. All rights reserved.</string>
<key>OSBundleCompatibleVersion</key>
<string>1.0</string>
<key>OSBundleLibraries</key>
<dict>
<key>as.vit9696.Lilu</key>
<string>1.2.0</string>
<key>com.apple.kpi.bsd</key>
<string>12.0.0</string>
<key>com.apple.kpi.dsep</key>
<string>12.0.0</string>
<key>com.apple.kpi.iokit</key>
<string>12.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>12.0.0</string>
<key>com.apple.kpi.mach</key>
<string>12.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>12.0.0</string>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
# RNN原理
# 循环神经网络(RNN)原理通俗解释
## 1.RNN怎么来的?
循环神经网络的应用场景比较多,比如暂时能写论文,写程序,写诗,但是,(总是会有但是的),但是他们现在还不能正常使用,学习出来的东西没有逻辑,所以要想真正让它更有用,路还很远。
这是一般的神经网络应该有的结构:

既然我们已经有了人工神经网络和卷积神经网络,为什么还要循环神经网络?
原因很简单,无论是卷积神经网络,还是人工神经网络,他们的前提假设都是: 元素之间是相互独立的,**输入与输出也是独立的**,比如猫和狗。
但现实世界中,很多元素都是相互连接的,比如股票随时间的变化,一个人说了: 我喜欢旅游,其中最喜欢的地方是云南,以后有机会一定要去___这里填空,人应该都知道是填“云南“。因为我们是根据上下文的内容推断出来的,但机会要做到这一步就相当得难了。因此,就有了现在的循环神经网络,他的本质是**: 像人一样拥有记忆的能力。**因此,他的输出就依赖于当前的输入和记忆。
## 2.RNN的网络结构及原理
它的网络结构如下:

其中每个圆圈可以看作是一个单元,而且每个单元做的事情也是一样的,因此可以折叠呈左半图的样子。用一句话解释RNN,就是**一个单元结构重复使用**。
RNN是一个序列到序列的模型,假设是一个输入: “我是中国“,那么就应该对应”是”,”中国”这两个,预测下一个词最有可能是什么?就是应该是”人”的概率比较大。
因此,我们可以做这样的定义:

。因为我们当前时刻的输出是由记忆和当前时刻的输入决定的,就像你现在大四,你的知识是由大四学到的知识(当前输入)和大三以及大三以前学到的东西的(记忆)的结合,RNN在这点上也类似,神经网络最擅长做的就是通过一系列参数把很多内容整合到一起,然后学习这个参数,因此就定义了RNN的基础:

大家可能会很好奇,为什么还要加一个f()函数,其实这个函数是神经网络中的激活函数,但为什么要加上它呢?
举个例子,假如你在大学学了非常好的解题方法,那你初中那时候的解题方法还要用吗?显然是不用了的。RNN的想法也一样,既然我能记忆了,那我当然是只记重要的信息啦,其他不重要的,就肯定会忘记,是吧。但是在神经网络中什么最适合过滤信息呀?肯定是激活函数嘛,因此在这里就套用一个激活函数,来做一个非线性映射,来过滤信息,这个激活函数可能为tanh,也可为其他。
假设你大四快毕业了,要参加考研,请问你参加考研是不是先记住你学过的内容然后去考研,还是直接带几本书去参加考研呢?很显然嘛,那RNN的想法就是预测的时候带着当前时刻的记忆
去预测。假如你要预测“我是中国“的下一个词出现的概率,这里已经很显然了,运用softmax来预测每个词出现的概率再合适不过了,但预测不能直接带用一个矩阵来预测呀,所有预测的时候还要带一个权重矩阵V,用公式表示为:

其中就表示时刻t的输出。
RNN中的结构细节:
1.可以把St当作隐状态,捕捉了之前时间点上的信息。就像你去考研一样,考的时候记住了你能记住的所有信息。
2.Ot是由当前时间以及之前所有的记忆得到的。就是你考研之后做的考试卷子,是用你的记忆得到的。
3.很可惜的是,St并不能捕捉之前所有时间点的信息。就像你考研不能记住所有的英语单词一样。
4.和卷积神经网络一样,这里的网络中每个cell都共享了一组参数(U,V,W),这样就能极大的降低计算量了。
5.Ot在很多情况下都是不存在的,因为很多任务,比如文本情感分析,都是只关注最后的结果的。就像考研之后选择学校,学校不会管你到底怎么努力,怎么心酸的准备考研,而只关注你最后考了多少分。
## 3.RNN的改进1: 双向RNN
在有些情况,比如有一部电视剧,在第三集的时候才出现的人物,现在让预测一下在第三集中出现的人物名字,你用前面两集的内容是预测不出来的,所以你需要用到第四,第五集的内容来预测第三集的内容,这就是双向RNN的想法。如图是双向RNN的图解:


这里的做的是一个拼接,如果他们都是1000x1维的,拼接在一起就是1000x2维的了。
双向RNN需要的内存是单向RNN的两倍,因为在同一时间点,双向RNN需要保存两个方向上的权重参数,在分类的时候,需要同时输入两个隐藏层输出的信息。
## 4.RNN的改进2: 深层双向RNN
深层双向RNN 与双向RNN相比,多了几个隐藏层,因为他的想法是很多信息记一次记不下来,比如你去考研,复习考研英语的时候,背英语单词一定不会就看一次就记住了所有要考的考研单词吧,你应该也是带着先前几次背过的单词,然后选择那些背过,但不熟的内容,或者没背过的单词来背吧。
深层双向RNN就是基于这么一个想法,他的输入有两方面,第一就是前一时刻的隐藏层传过来的信息,和当前时刻上一隐藏层传过来的信息,包括前向和后向的。

我们用公式来表示是这样的:

然后再利用最后一层来进行分类,分类公式如下:

### 4.1 Pyramidal RNN
其他类似的网络还有Pyramidal RNN:

我们现在有一个很长的输入序列,可以看到这是一个双向的RNN,上图是谷歌的W.Chan做的一个测试,它原先要做的是语音识别,他要用序列到序列的模型做语音识别,序列到序列就是说,输入一个序列然后就输出一个序列。
由图我们发现,上一层的两个输出,作为当前层的输入,如果是非常长的序列的话,这样做的话,每一层的序列都比上一层要短,但当前层的输入f(x)也会随之增多,貌似看一起相互抵消,运算量并没有什么改进。
但我们知道,对于一层来说,它是从前往后转的,比如要预测一个股市的变化,以天为单位,假如要预测明天的股市变化,你就要用今天,以及今天之前的所有数据,我们暂时无法只用昨天的数据,不用今天的数据,预测明天的数据,也即是说,预测必须具有连续性。
但每一层的f运算是可以并行的,从这个角度来看,运算量还是可以接受的,特别是在原始输入序列较短的时候还是有优势的。
## 5.RNN的训练-BPTT
如前面我们讲的,如果要预测t时刻的输出,我们必须先利用上一时刻(t-1)的记忆和当前时刻的输入,得到t时刻的记忆:

然后利用当前时刻的记忆,通过softmax分类器输出每个词出现的概率:

为了找出模型最好的参数,U,W,V,我们就要知道当前参数得到的结果怎么样,因此就要定义我们的损失函数,用交叉熵损失函数:

其中
t时刻的标准答案,是一个只有一个是1,其他都是0的向量; 是我们预测出来的结果,与
的维度一样,但它是一个概率向量,里面是每个词出现的概率。因为对结果的影响,肯定不止一个时刻,因此需要把所有时刻的造成的损失都加起来:


如图所示,你会发现每个cell都会有一个损失,我们已经定义好了损失函数,接下来就是熟悉的一步了,那就是根据损失函数利用SGD来求解最优参数,在CNN中使用反向传播BP算法来求解最优参数,但在RNN就要用到BPTT,它和BP算法的本质区别,也是CNN和RNN的本质区别: CNN没有记忆功能,它的输出仅依赖与输入,但RNN有记忆功能,它的输出不仅依赖与当前输入,还依赖与当前的记忆。这个记忆是序列到序列的,也就是当前时刻收到上一时刻的影响,比如股市的变化。
因此,在对参数求偏导的时候,对当前时刻求偏导,一定会涉及前一时刻,我们用例子看一下:

假设我们对E3的W求偏导: 它的损失首先来源于预测的输出
,预测的输出又是来源于当前时刻的记忆s3,当前的记忆又是来源于当前的输出和截止到上一时刻的记忆: 
因此,根据链式法则可以有:

但是,你会发现,
,也就是s2里面的函数还包含了W,因此,这个链式法则还没到底,就像图上画的那样,所以真正的链式法则是这样的:

我们要把当前时刻造成的损失,和以往每个时刻造成的损失加起来,因为我们每一个时刻都用到了权重参数W。和以往的网络不同,一般的网络,比如人工神经网络,参数是不同享的,但在循环神经网络,和CNN一样,设立了参数共享机制,来降低模型的计算量。
## 6.RNN与CNN的结合应用: 看图说话
在图像处理中,目前做的最好的是CNN,而自然语言处理中,表现比较好的是RNN,因此,我们能否把他们结合起来,一起用呢?那就是看图说话了,这个原理也比较简单,举个小栗子: 假设我们有CNN的模型训练了一个网络结构,比如是这个

最后我们不是要分类嘛,那在分类前,是不是已经拿到了图像的特征呀,那我们能不能把图像的特征拿出来,放到RNN的输入里,让他学习呢?
之前的RNN是这样的:

我们把图像的特征加在里面,可以得到:

其中的X就是图像的特征。如果用的是上面的CNN网络,X应该是一个4096X1的向量。
注: 这个公式只在第一步做,后面每次更新就没有V了,因为给RNN数据只在第一次迭代的时候给。
## 7.RNN项目练手
RNN可以写歌词,写诗等,这有个项目可以玩玩,还不错。
[Tensorflow实现RNN](https://github.com/hzy46/Char-RNN-TensorFlow)
|
{
"pile_set_name": "Github"
}
|
<annotation>
<folder>imagesRaw</folder>
<filename>2017-12-24 09:15:01.439396.jpg</filename>
<path>/Users/abell/Development/other.nyc/Camera/imagesRaw/2017-12-24 09:15:01.439396.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>352</width>
<height>240</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>pedestrian</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>260</xmin>
<ymin>160</ymin>
<xmax>268</xmax>
<ymax>183</ymax>
</bndbox>
</object>
<object>
<name>car</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>203</xmin>
<ymin>146</ymin>
<xmax>222</xmax>
<ymax>163</ymax>
</bndbox>
</object>
</annotation>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>17E199</string>
<key>CFBundleIdentifier</key>
<string>org.rehabman.injector.FakePCIID-Intel-HD-Graphics</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>FakePCIID_Intel_HD_Graphics</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.3.12</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.3.12</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>9E145</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>10M2518</string>
<key>DTSDKName</key>
<string>macosx10.6</string>
<key>DTXcode</key>
<string>0930</string>
<key>DTXcodeBuild</key>
<string>9E145</string>
<key>IOKitPersonalities</key>
<dict>
<key>HD4200 HD4400 HD4600 P4600</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.driver.FakePCIID</string>
<key>FakeProperties</key>
<dict>
<key>RM,device-id</key>
<data>
EgQAAA==
</data>
</dict>
<key>IOClass</key>
<string>FakePCIID</string>
<key>IOMatchCategory</key>
<string>FakePCIID</string>
<key>IOPCIClassMatch</key>
<string>0x03000000&0xff000000</string>
<key>IOPCIPrimaryMatch</key>
<string>0x04128086 0x04168086 0x0a168086 0x0a1e8086 0x041e8086 0x041a8086</string>
<key>IOProbeScore</key>
<integer>9001</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
<key>HD510 HD515 HD520 HD530 P530</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.driver.FakePCIID</string>
<key>FakeProperties</key>
<dict>
<key>RM,device-id</key>
<data>
EhkAAA==
</data>
</dict>
<key>IOClass</key>
<string>FakePCIID</string>
<key>IOMatchCategory</key>
<string>FakePCIID</string>
<key>IOPCIClassMatch</key>
<string>0x03000000&0xff000000</string>
<key>IOPCIPrimaryMatch</key>
<string>0x19128086 0x19068086 0x19138086 0x191e8086 0x19168086 0x191b8086 0x19028086 0x191d8086</string>
<key>IOProbeScore</key>
<integer>9001</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
<key>Iris 540 Iris 550 Iris Pro 580</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.driver.FakePCIID</string>
<key>FakeProperties</key>
<dict>
<key>RM,device-id</key>
<data>
FhkAAA==
</data>
</dict>
<key>IOClass</key>
<string>FakePCIID</string>
<key>IOMatchCategory</key>
<string>FakePCIID</string>
<key>IOPCIClassMatch</key>
<string>0x03000000&0xff000000</string>
<key>IOPCIPrimaryMatch</key>
<string>0x19268086 0x19278086 0x193b8086</string>
<key>IOProbeScore</key>
<integer>9001</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
<key>P4000</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.driver.FakePCIID</string>
<key>FakeProperties</key>
<dict>
<key>RM,device-id</key>
<data>
ZgEAAA==
</data>
</dict>
<key>IOClass</key>
<string>FakePCIID</string>
<key>IOMatchCategory</key>
<string>FakePCIID</string>
<key>IOPCIClassMatch</key>
<string>0x03000000&0xff000000</string>
<key>IOPCIPrimaryMatch</key>
<string>0x01668086 0x016a8086</string>
<key>IOProbeScore</key>
<integer>9001</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
<key>P6300 - 162a</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.driver.FakePCIID</string>
<key>FakeProperties</key>
<dict>
<key>RM,device-id</key>
<data>
IhYAAA==
</data>
</dict>
<key>IOClass</key>
<string>FakePCIID</string>
<key>IOMatchCategory</key>
<string>FakePCIID</string>
<key>IOPCIClassMatch</key>
<string>0x03000000&0xff000000</string>
<key>IOPCIPrimaryMatch</key>
<string>0x16228086 0x162a8086</string>
<key>IOProbeScore</key>
<integer>9001</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
<key>UHD620 KabyLake-R </key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.driver.FakePCIID</string>
<key>FakeProperties</key>
<dict>
<key>RM,device-id</key>
<data>
FlkAAA==
</data>
</dict>
<key>IOClass</key>
<string>FakePCIID</string>
<key>IOMatchCategory</key>
<string>FakePCIID</string>
<key>IOPCIClassMatch</key>
<string>0x03000000&0xff000000</string>
<key>IOPCIPrimaryMatch</key>
<string>0x59168086 0x59178086</string>
<key>IOProbeScore</key>
<integer>9001</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
<key>UHD630 CoffeeLake</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.driver.FakePCIID</string>
<key>FakeProperties</key>
<dict>
<key>RM,device-id</key>
<data>
kj4AAA==
</data>
</dict>
<key>IOClass</key>
<string>FakePCIID</string>
<key>IOMatchCategory</key>
<string>FakePCIID</string>
<key>IOPCIClassMatch</key>
<string>0x03000000&0xff000000</string>
<key>IOPCIPrimaryMatch</key>
<string>0x3e918086 0x3e928086</string>
<key>IOProbeScore</key>
<integer>9001</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
<key>Source Code</key>
<string>https://github.com/RehabMan/FakePCIID</string>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
## 李宏毅机器学习Day1-3:线性回归任务一
### 什么是机器学习?
机器学习的核心是“**使用算法解析数据,从中学习,然后对世界上的某件事情做出决定或预测**”。
Tom Mitchell提供了一个更现代的定义:“据说计算机程序从经验E中学习某些任务T和绩效测量P,如果它在T中的任务中的表现,由P测量,随经验E而改善。 “
示例:玩跳棋。
E =玩许多跳棋游戏的经验
T =玩跳棋的任务。
P =程序赢得下一场比赛的概率。
### 中心极限定理
中心极限定理指的是给定一个任意分布的总体。我每次从这些总体中随机抽取 n 个抽样,一共抽 m 次。 然后把这 m 组抽样分别求出平均值。 这些平均值的分布接近**正态分布**。
### 正态分布
#### 概率密度函数
在数学中,连续型随机变量的**概率密度函数**(Probability density function)是一个描述这个随机变量的输出值,在某个确定的取值点附近的可能性的函数。**累积分布函数**是概率密度函数的积分。
也叫高斯分布。其概率密度公式为:
$f(x)=\frac{1}{\sigma \sqrt{2 \pi}} e^{-\frac{(x-\mu)^{2}}{2 \sigma^{2}}}$
其中$u$为均值,$\sigma^{2}$为方差。
如果一个随机变量$X$服从这个分布,我们写作$X$~$N(\mu, \sigma^2)$, 如果$u=0$,且$\sigma=1$,则这个分布被称为**标准正态分布**。
下面是四个不同参数的概率密度函数:

### 最大似然估计
最大似然估计是一种确定模型参数值的方法,基于**最大似然原理**提出。确定参数值的过程,是找到能最大化模型产生真实观察数据可能性的那一组参数。
#### 最大似然原理
> 概率大的事件在一次观测中更容易发生。
> 在一次观测中发生了的事件其概率应该大。
举例:
>1. 某同学与一位猎人一起外出打猎。忽然,一只野兔从前方窜过,只听一声枪响,野兔应声倒下,请问:是谁击中了野兔?
>2. 事件A,发生的概率p只可能为0.1,0.3或0.6,在一次观测中,A发生了,请问:p为何值?
#### 计算最大似然估计
给定一个概率分布$ {\displaystyle D} $,已知其概率密度函数(连续分布)或概率质量函数(离散分布)为$ {\displaystyle f_{D}}$,以及一个分布参数 ${\displaystyle \theta }$,我们可以从这个分布中抽出一个具有$ n $个值的采样 ${\displaystyle X_{1},X_{2},\ldots ,X_{n}}$,利用 ${\displaystyle f_{D}}$计算出其似然函数:
${\displaystyle {\mbox{L}}(\theta \mid x_{1},\dots ,x_{n})=f_{\theta }(x_{1},\dots ,x_{n})} $
若$ {\displaystyle D} $是离散分布, ${\displaystyle f_{\theta }}$即是在参数为$ {\displaystyle \theta }$时观测到这一采样的概率。若其是连续分布, ${\displaystyle f_{\theta }}$ 则为 ${\displaystyle X_{1},X_{2},\ldots ,X_{n}}$联合分布的概率密度函数在观测值处的取值。从数学上来说,我们可以在${\displaystyle f_{\theta }}$ 的所有可能取值中寻找一个参数值使得似然函数取到最大值,这个参数值被称为最大似然估计(maximum likelihood estimates,MLE)。
步骤如下:
- **取对数**
- **求导数,得驻点,最大值点**
- **作结论**
#### 小结
##### **最大似然估计总是能精确地得到解吗?**
简单来说,不能。更有可能的是,在真实的场景中,对数似然函数的导数仍然是难以解析的(也就是说,很难甚至不可能人工对函数求微分)。因此,一般采用期望最大化(EM)算法等迭代方法为参数估计找到数值解,但总体思路还是一样的。
**什么时候最小二乘参数估计和最大似然估计结果相同?**
最小二乘法是另一种常用的机器学习模型参数估计方法。结果表明,当模型向上述例子中一样被假设为高斯分布时,MLE 的估计等价于最小二乘法。
对于最小二乘参数估计,我们想要找到最小化数据点和回归线之间距离平方之和的直线。在最大似然估计中,我们想要最大化数据同时出现的总概率。当待求分布被假设为高斯分布时,最大概率会在数据点接近平均值时找到。由于高斯分布是对称的,这等价于最小化数据点与平均值之间的距离。
### 推导回归Loss Function
**损失函数**(loss function)是用来估量你模型的预测值$f(x)$与真实值$Y$的不一致程度,损失函数越小,模型的鲁棒性就越好。这里我们使用均方误差(MSE)作为我们的损失函数。
定义:
$$
\begin{aligned}
L(w,b) & = \sum_{j=1}^{m}\left ( y^{(j)}- f(x^{(j)}) \right )^2,
其中 f(x)=b+\sum_{i=1}^{n} w_{i} x_{i},代入得到 \\
& = \sum_{j=1}^{m}\left(y^{(j)}-\left(b+\sum_{i=1}^{n} w_{i} x_{i}^{(j)}\right)\right)^{2}\\
\end{aligned}
$$
其中 $(x^{(j)},y^{(j)})$为 样本点,$m$为样本点计数,$x_i$为训练集特征值,$w_i$为权重,$b$为偏置值,$f(x)$为模型函数。
**注:本文里的损失函数其实是代价函数,这里没有一个公认的区别标准,别的说法里损失函数主要指的是对于单个样本的损失或误差,这里我们等同与代价函数,表示多样本误差的总和。**
### 损失函数与凸函数
在使用梯度下降进行最小化损失函数的时候,如果损失函数是凸函数,那么不管怎么初始化,总能找到全局最优解。否则,很有可能陷入局部最优解。
### 泰勒展开
泰勒展开是将一个在$x=x_0$处具有n阶导数的函数$f(x)$利用关于$(x-x0)$的n次多项式来逼近函数的方法。
设 n 是一个正整数。如果定义在一个包含 a 的区间上的函数 f 在 a 点处 n+1 次可导,那么对于这个区间上的任意 x,都有:
$f(x)=f(a)+\frac{f^{\prime}(a)}{1 !}(x-a)+\frac{f^{(2)}(a)}{2 !}(x-a)^{2}+\cdots+\frac{f^{(n)}(a)}{n !}(x-a)^{n}+R_{n}(x)$
表示$f^{(n)}(a)$ $f(x)$的n阶导数,等号后的多项式称为函数$f(x)$在$a$处的泰勒展开式,剩余的$R_n(x)$是泰勒公式的余项,是$(x-a)^n$的高阶无穷小。
### 推导梯度下降
梯度下降算法如下:
$θ_j:=θ_j−α\frac∂{∂θ_j}L(θ)$
$a$为学习率(步长)。
推导过程基于泰勒展开的一阶项:
$f(\theta)=f(\theta_0)+(\theta-\theta_0){\bigtriangledown}f(\theta_0)$
为了最小化函数,希望函数往使函数减小的方向变化,则有:
$(\theta-\theta_0){\bigtriangledown}f(\theta_0) < 0$,
其中 $(\theta-\theta_0)$ 是微小矢量,可表示为$a^{'}v$, $a^{'}$类似上面提到的学习率,为正值,取尽量小的值,$v$为该方向上的单位向量,
所有上面的不等式变成:
$v{\bigtriangledown}f(\theta_0) < 0$
然后根据两个向量乘积,我们知道两个向量方向相反可取向量乘积最小值,不难得:
$θ=θ_0−α{\bigtriangledown}f(\theta_0)$, $a$为$a^{'}$与${\bigtriangledown}f(\theta_0)$的模的乘积。
### 梯度下降代码实现
```pyth
"""
自己实现
梯度下降解决线性回归问题
"""
import numpy as np
import matplotlib.pyplot as plt
def costFunction(X, y, theta=[0, 0]):
"""
损失函数
"""
m = y.size
h = X.dot(theta)
J = 1.0 / (2 * m) * (np.sum(np.square(h - y)))
return J
def gradientDescent(X, y, theta=[0, 0], alpha=0.01, num_iters=1500):
"""
梯度下降
"""
m = y.size
J_history = np.zeros(num_iters)
for iter in np.arange(num_iters):
h = X.dot(theta)
theta = theta - alpha * (1.0 / m) * (X.T.dot(h - y))
J_history[iter] = costFunction(X, y, theta)
return (theta, J_history)
def MaxMinNormalization(x):
"""
归一化
"""
Min = np.min(x)
Max = np.max(x)
x = (x - Min) / (Max - Min)
return x
# 自己构造数据集
X_row = 100 * np.random.rand(100)
X = MaxMinNormalization(X_row)
y = 0.5*X + 2 + np.random.normal(0,0.01,(100,))
# 数据可视化
plt.subplot(1, 2, 1)
plt.scatter(X_row, y, color='black')
plt.xlabel('x')
plt.ylabel('y')
X = np.c_[np.ones((X.shape[0],1)), X]
# training set
X_train = X[:80]
y_train = y[:80]
# test set
X_test = X[80:]
y_test = y[80:]
b = 0
w = 0
lr = 0.01
iteration = 10000
# 画出每一次迭代和损失函数变化
theta , Cost_J = gradientDescent(X_train, y_train, theta=[b, w], alpha= lr, num_iters= iteration)
print('最终b, w结果: ',theta)
testCost = costFunction(X_test, y_test, theta)
print('测试集误差: ',testCost)
h = X.dot(theta)
plt.plot(X_row, h, "b--")
plt.subplot(1, 2, 2)
plt.plot(Cost_J)
plt.ylabel('Cost J')
plt.xlabel('Iterations')
plt.show()
```
结果如下:
```
最终b, w结果: [1.99788294 0.50547522]
测试集误差: 5.113037555609278e-05
```

### 学习L2-Norm,L1-Norm,L0-Norm
>范数是一种强化了的距离概念,它在定义上比距离多了一条数乘的运算法则。有时候为了便于理解,我们可以把范数当作距离来理解。
>
>L0范数是指向量中非0的元素的个数。
>
>L1范数是指向量中非零元素绝对值之和。
>
>L2范数是指向量各元素的平方和然后求平方根,L2范数通常会被用来做优化目标函数的正则化项,防止模型为了迎合训练集而过于复杂造成过拟合的情况,从而提高模型的泛化能力。
### 推导正则化公式
参考[L2正则化推导](<https://blog.csdn.net/winone361/article/details/82555283>)
### 为什么用L1-Norm代替L0-Norm
L0-Norm 优化的目标是使大多数参数为0,即W是稀疏的。但L0范数的优化问题是NP hard,且可证L1范数是L0范数的最优凸近似,因此通常使用L1范数来代替。
### 为什么正则化时只对w/Θ做限制,不对b做限制
模型的复杂程度是由w/θ决定的,b只是起到平移模型的作用。缩小b不能使模型简化,只能使模型分界面趋于靠近原点。相反,对w的限制可以实现对特征的惩罚,留取更重要的特征,惩罚不重要的特征权重,从而使Loss Function更平滑,提高泛化能力,防止过拟合。
------
参考:
[从最大似然估计开始,你需要打下的机器学习基石](<https://blog.csdn.net/tkkzc3E6s4Ou4/article/details/79016194>)
[L2正则化推导](<https://blog.csdn.net/winone361/article/details/82555283>)
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>DisplayBlueGamma</key>
<real>1.939987e+00</real>
<key>DisplayBluePointX</key>
<real>1.529999e-01</real>
<key>DisplayBluePointY</key>
<real>9.999084e-02</real>
<key>DisplayGammaChannels</key>
<integer>3</integer>
<key>DisplayGammaEntryCount</key>
<integer>256</integer>
<key>DisplayGammaEntrySize</key>
<integer>2</integer>
<key>DisplayGammaTable</key>
<data>
AAAACgATABwAJAAyAD8ATQBaAGkAdwCGAJQAogCwAL0AywDZAOgA9wEGARYBJgE2AUUB
VQFlAXUBhQGWAacBtwHIAdkB6gH7Ag0CHgIxAkMCVQJoAnsCjgKhArUCygLfAvQDCQMg
AzYDTQNkA30DlwOwA8oD5wQEBCAEPgRgBIEEogTEBOoFEQU3BV4FiwW4BeQGEgZFBnkG
rAbhBx0HWQeUB9EIFghbCKAI5Qk0CYMJ0gogCnoK0wstC4YL6wxRDLcNHA2ODgAOcw7l
D2QP5BBlEOURchICEpETIBO8FFwU+xWbFkYW9xeoGFgZFBnXGpobXRwqHQAd1h6rH4sg
dSFeIkcjOiQ5JTgmNic+KFMpaCp9K5osxy30Lx8wVDGZMt40IzVuNs04LDmKOu48aD3h
P1lA1kJrQ/5FkkcoSNZKg0wwTd5PpFFpUy1U8lbOWKhaglxbXklgNmIiZA1mCGgEaf9r
+W3+cARyCXQNdhh4JHowfDt+SoBagmmEeIaKiJuKrYy9js+Q4pL0lQWXF5kqmzudTZ9g
oXOjhaWXp6upv6vTreav+rIPtCO2N7hLul28b76AwJDCnsSrxrjIwsrHzMzO0NDP0sXU
utav2KDahtxs3lLgM+ID49Lloudq6Rbqwuxu7hvvzvGB8zT04/Zv9/z5iPsR/Ez9iP7E
//8AAAAIABAAGAAgACwAOQBFAFIAYABuAHwAigCYAKUAsgDAAM4A3QDsAPsBCwEbASsB
OgFLAVsBawF8AY0BngGvAcAB0QHjAfUCBwIZAisCPgJRAmQCdwKLAp8CswLJAt4C9AMK
AyIDOgNRA2oDhQOgA7sD1wP2BBUEMwRUBHgEnATABOUFDwU5BWQFjwXABfEGIwZVBo4G
xwcBBzsHfQe/CAIIRQiRCN4JKgl3Cc4KJgp+CtULOQudDAEMZAzVDUYNtw4pDqcPJw+n
ECcQtRFFEdUSZRMDE6UURxToFZgWTBcBF7UYdxk/GgcazxulHIIdYB49HycgGiENIgAi
/yQKJRQmHSczKFUpdiqYK8Qs/y45L3MwtzILM180sjYPN3046jpYO809Vj7eQGZB9EOX
RTlG3EiDSkBL/U26T3pRUFMlVPtW0li/Wqtcl16EYIVihWSFZoVolWqmbLZuxnDicv91
G3c3eVp7f32if8aB7YQUhjuIYYqIjK6O1ZD7kx+VQpdlmYebpp3En+Gh/aQWpiyoQapX
rGiudrCDspG0mrafuKS6qLyovqPAncKYxIzGechmylPMOc4Wz/PRz9Ok1W3XNdj92r3c
bN4a38nhcOMH5J3mM+fC6Tnqsewo7Zju5vA08YLy0fQk9Xf2yvgZ+UD6Z/uO/LD9hP5Y
/yv//wAAABkALAA+AE8AcQCTALMA0gDzARUBNQFVAXIBjwGsAcgB5wIIAicCRwJnAogC
qALHAugDCAMoA0gDaQOKA6sDzAPuBBEEMwRVBHgEnAS/BOMFBwUtBVIFdwWeBcYF7QYV
Bj4GagaVBsEG7gceB04HfgewB+YIHAhRCIgIxQkCCT4JfAnBCgcKSwqSCuALLwt9C8wM
JQx+DNYNMA2UDfkOXA7ADzIPoxATEIMRAxGBEf8SfRMKE5gUJRSxFU4V6xaHFyMX0Bh+
GSwZ2RqXG1gcGBzXHacefB9QICIhBSHuItYjvCSzJbEmrSeoKLMpxirXK+gtBi4vL1Yw
fDGvMu40KzVnNq44AzlWOqg8BT1xPttAREG2QzpEu0Y7R8RJX0r4TJBOL0/iUZNTQ1T4
VsJYi1pRXBxd/V/cYbljmGWNZ39pcGthbWZvaXFqc2p1e3eKeZd7on27f9KB5oP6hhSI
LYpFjFuOc5CKkqCUs5bFmNWa5JzxnvmhAKMFpQinBaj/qvis767fsMuytrSftoG4Xro5
vBS957+0wYHDTMUQxs7IispGy/rNp89T0P7SoNQ51dLXadj42nzb/92C3vzgZ+HS4z3k
nuXu5z3ojOnT6wnsP+107qLvu/DS8ery+vPu9OH11PbH9734svmn+pn7Z/w2/QT90P5c
/uf/c///
</data>
<key>DisplayGreenGamma</key>
<real>2.299988e+00</real>
<key>DisplayGreenPointX</key>
<real>3.309937e-01</real>
<key>DisplayGreenPointY</key>
<real>5.589905e-01</real>
<key>DisplayProductID</key>
<integer>39991</integer>
<key>DisplayProductName</key>
<string>Color LCD</string>
<key>DisplayRedGamma</key>
<real>2.500000e+00</real>
<key>DisplayRedPointX</key>
<real>5.769958e-01</real>
<key>DisplayRedPointY</key>
<real>3.329926e-01</real>
<key>DisplayVendorID</key>
<integer>1552</integer>
<key>DisplayWhitePointX</key>
<real>3.126984e-01</real>
<key>DisplayWhitePointY</key>
<real>3.289948e-01</real>
<key>dmdg</key>
<data>
AAAAAg==
</data>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
{
"cards": [
{
"hidden": 0,
"label": "Buying",
"links": "[ \n {\n \"dependencies\": [\n \"Item\"\n ],\n \"description\": \"Request for purchase.\",\n \"label\": \"Material Request\",\n \"name\": \"Material Request\",\n \"onboard\": 1,\n \"type\": \"doctype\"\n },\n {\n \"dependencies\": [\n \"Item\",\n \"Supplier\"\n ],\n \"description\": \"Purchase Orders given to Suppliers.\",\n \"label\": \"Purchase Order\",\n \"name\": \"Purchase Order\",\n \"onboard\": 1,\n \"type\": \"doctype\"\n },\n {\n \"dependencies\": [\n \"Item\",\n \"Supplier\"\n ],\n \"label\": \"Purchase Invoice\",\n \"name\": \"Purchase Invoice\",\n \"onboard\": 1,\n \"type\": \"doctype\"\n },\n {\n \"dependencies\": [\n \"Item\",\n \"Supplier\"\n ],\n \"description\": \"Request for quotation.\",\n \"label\": \"Request for Quotation\",\n \"name\": \"Request for Quotation\",\n \"onboard\": 1,\n \"type\": \"doctype\"\n },\n {\n \"dependencies\": [\n \"Item\",\n \"Supplier\"\n ],\n \"description\": \"Quotations received from Suppliers.\",\n \"label\": \"Supplier Quotation\",\n \"name\": \"Supplier Quotation\",\n \"type\": \"doctype\"\n }\n]"
},
{
"hidden": 0,
"label": "Items & Pricing",
"links": "[\n {\n \"description\": \"All Products or Services.\",\n \"label\": \"Item\",\n \"name\": \"Item\",\n \"onboard\": 1,\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Multiple Item prices.\",\n \"label\": \"Item Price\",\n \"name\": \"Item Price\",\n \"onboard\": 1,\n \"route\": \"#Report/Item Price\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Price List master.\",\n \"label\": \"Price List\",\n \"name\": \"Price List\",\n \"onboard\": 1,\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Bundle items at time of sale.\",\n \"label\": \"Product Bundle\",\n \"name\": \"Product Bundle\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Tree of Item Groups.\",\n \"icon\": \"fa fa-sitemap\",\n \"label\": \"Item Group\",\n \"link\": \"Tree/Item Group\",\n \"name\": \"Item Group\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Rules for applying different promotional schemes.\",\n \"label\": \"Promotional Scheme\",\n \"name\": \"Promotional Scheme\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Rules for applying pricing and discount.\",\n \"label\": \"Pricing Rule\",\n \"name\": \"Pricing Rule\",\n \"type\": \"doctype\"\n }\n]"
},
{
"hidden": 0,
"label": "Settings",
"links": "[\n {\n \"description\": \"Default settings for buying transactions.\",\n \"label\": \"Buying Settings\",\n \"name\": \"Buying Settings\",\n \"settings\": 1,\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Tax template for buying transactions.\",\n \"label\": \"Purchase Taxes and Charges Template\",\n \"name\": \"Purchase Taxes and Charges Template\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Template of terms or contract.\",\n \"label\": \"Terms and Conditions Template\",\n \"name\": \"Terms and Conditions\",\n \"type\": \"doctype\"\n }\n]"
},
{
"hidden": 0,
"label": "Supplier",
"links": "[\n {\n \"description\": \"Supplier database.\",\n \"label\": \"Supplier\",\n \"name\": \"Supplier\",\n \"onboard\": 1,\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Supplier Group master.\",\n \"label\": \"Supplier Group\",\n \"name\": \"Supplier Group\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"All Contacts.\",\n \"label\": \"Contact\",\n \"name\": \"Contact\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"All Addresses.\",\n \"label\": \"Address\",\n \"name\": \"Address\",\n \"type\": \"doctype\"\n }\n]"
},
{
"hidden": 0,
"label": "Supplier Scorecard",
"links": "[\n {\n \"description\": \"All Supplier scorecards.\",\n \"label\": \"Supplier Scorecard\",\n \"name\": \"Supplier Scorecard\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Templates of supplier scorecard variables.\",\n \"label\": \"Supplier Scorecard Variable\",\n \"name\": \"Supplier Scorecard Variable\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Templates of supplier scorecard criteria.\",\n \"label\": \"Supplier Scorecard Criteria\",\n \"name\": \"Supplier Scorecard Criteria\",\n \"type\": \"doctype\"\n },\n {\n \"description\": \"Templates of supplier standings.\",\n \"label\": \"Supplier Scorecard Standing\",\n \"name\": \"Supplier Scorecard Standing\",\n \"type\": \"doctype\"\n }\n]"
},
{
"hidden": 0,
"label": "Key Reports",
"links": "[\n {\n \"is_query_report\": true,\n \"label\": \"Purchase Analytics\",\n \"name\": \"Purchase Analytics\",\n \"onboard\": 1,\n \"reference_doctype\": \"Purchase Order\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Purchase Order Analysis\",\n \"name\": \"Purchase Order Analysis\",\n \"onboard\": 1,\n \"reference_doctype\": \"Purchase Order\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Supplier-Wise Sales Analytics\",\n \"name\": \"Supplier-Wise Sales Analytics\",\n \"onboard\": 1,\n \"reference_doctype\": \"Stock Ledger Entry\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Requested Items to Order\",\n \"name\": \"Requested Items to Order\",\n \"onboard\": 1,\n \"reference_doctype\": \"Material Request\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Purchase Order Trends\",\n \"name\": \"Purchase Order Trends\",\n \"onboard\": 1,\n \"reference_doctype\": \"Purchase Order\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Procurement Tracker\",\n \"name\": \"Procurement Tracker\",\n \"onboard\": 1,\n \"reference_doctype\": \"Purchase Order\",\n \"type\": \"report\"\n }\n]"
},
{
"hidden": 0,
"label": "Other Reports",
"links": "[\n {\n \"is_query_report\": true,\n \"label\": \"Items To Be Requested\",\n \"name\": \"Items To Be Requested\",\n \"onboard\": 1,\n \"reference_doctype\": \"Item\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Item-wise Purchase History\",\n \"name\": \"Item-wise Purchase History\",\n \"onboard\": 1,\n \"reference_doctype\": \"Item\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Purchase Receipt Trends\",\n \"name\": \"Purchase Receipt Trends\",\n \"reference_doctype\": \"Purchase Receipt\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Purchase Invoice Trends\",\n \"name\": \"Purchase Invoice Trends\",\n \"reference_doctype\": \"Purchase Invoice\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Subcontracted Raw Materials To Be Transferred\",\n \"name\": \"Subcontracted Raw Materials To Be Transferred\",\n \"reference_doctype\": \"Purchase Order\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Subcontracted Item To Be Received\",\n \"name\": \"Subcontracted Item To Be Received\",\n \"reference_doctype\": \"Purchase Order\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Quoted Item Comparison\",\n \"name\": \"Quoted Item Comparison\",\n \"onboard\": 1,\n \"reference_doctype\": \"Supplier Quotation\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Material Requests for which Supplier Quotations are not created\",\n \"name\": \"Material Requests for which Supplier Quotations are not created\",\n \"reference_doctype\": \"Material Request\",\n \"type\": \"report\"\n },\n {\n \"is_query_report\": true,\n \"label\": \"Supplier Addresses And Contacts\",\n \"name\": \"Address And Contacts\",\n \"reference_doctype\": \"Address\",\n \"route_options\": {\n \"party_type\": \"Supplier\"\n },\n \"type\": \"report\"\n }\n]"
},
{
"hidden": 0,
"label": "Regional",
"links": "[\n {\n \"description\": \"Import Italian Purchase Invoices\",\n \"label\": \"Import Supplier Invoice\",\n \"name\": \"Import Supplier Invoice\",\n \"type\": \"doctype\"\n } \n]"
}
],
"cards_label": "",
"category": "Modules",
"charts": [
{
"chart_name": "Purchase Order Trends",
"label": "Purchase Order Trends"
}
],
"charts_label": "",
"creation": "2020-01-28 11:50:26.195467",
"developer_mode_only": 0,
"disable_user_customization": 0,
"docstatus": 0,
"doctype": "Desk Page",
"extends_another_page": 0,
"hide_custom": 0,
"idx": 0,
"is_standard": 1,
"label": "Buying",
"modified": "2020-06-29 19:30:24.983050",
"modified_by": "Administrator",
"module": "Buying",
"name": "Buying",
"onboarding": "Buying",
"owner": "Administrator",
"pin_to_bottom": 0,
"pin_to_top": 0,
"shortcuts": [
{
"color": "#cef6d1",
"format": "{} Available",
"label": "Item",
"link_to": "Item",
"stats_filter": "{\n \"disabled\": 0\n}",
"type": "DocType"
},
{
"color": "#ffe8cd",
"format": "{} Pending",
"label": "Material Request",
"link_to": "Material Request",
"stats_filter": "{\n \"company\": [\"like\", '%' + frappe.defaults.get_global_default(\"company\") + '%'],\n \"status\": \"Pending\"\n}",
"type": "DocType"
},
{
"color": "#ffe8cd",
"format": "{} To Receive",
"label": "Purchase Order",
"link_to": "Purchase Order",
"stats_filter": "{\n \"company\": [\"like\", '%' + frappe.defaults.get_global_default(\"company\") + '%'],\n \"status\":[\"in\", [\"To Receive\", \"To Receive and Bill\"]]\n}",
"type": "DocType"
},
{
"label": "Purchase Analytics",
"link_to": "Purchase Analytics",
"type": "Report"
},
{
"label": "Purchase Order Analysis",
"link_to": "Purchase Order Analysis",
"type": "Report"
},
{
"label": "Dashboard",
"link_to": "Buying",
"type": "Dashboard"
}
],
"shortcuts_label": ""
}
|
{
"pile_set_name": "Github"
}
|
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
package ipv4
import (
"unsafe"
"golang.org/x/net/internal/iana"
"golang.org/x/net/internal/socket"
)
func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error {
opt.Lock()
defer opt.Unlock()
if so, ok := sockOpts[ssoReceiveTTL]; ok && cf&FlagTTL != 0 {
if err := so.SetInt(c, boolint(on)); err != nil {
return err
}
if on {
opt.set(FlagTTL)
} else {
opt.clear(FlagTTL)
}
}
if so, ok := sockOpts[ssoPacketInfo]; ok {
if cf&(FlagSrc|FlagDst|FlagInterface) != 0 {
if err := so.SetInt(c, boolint(on)); err != nil {
return err
}
if on {
opt.set(cf & (FlagSrc | FlagDst | FlagInterface))
} else {
opt.clear(cf & (FlagSrc | FlagDst | FlagInterface))
}
}
} else {
if so, ok := sockOpts[ssoReceiveDst]; ok && cf&FlagDst != 0 {
if err := so.SetInt(c, boolint(on)); err != nil {
return err
}
if on {
opt.set(FlagDst)
} else {
opt.clear(FlagDst)
}
}
if so, ok := sockOpts[ssoReceiveInterface]; ok && cf&FlagInterface != 0 {
if err := so.SetInt(c, boolint(on)); err != nil {
return err
}
if on {
opt.set(FlagInterface)
} else {
opt.clear(FlagInterface)
}
}
}
return nil
}
func marshalTTL(b []byte, cm *ControlMessage) []byte {
m := socket.ControlMessage(b)
m.MarshalHeader(iana.ProtocolIP, sysIP_RECVTTL, 1)
return m.Next(1)
}
func parseTTL(cm *ControlMessage, b []byte) {
cm.TTL = int(*(*byte)(unsafe.Pointer(&b[:1][0])))
}
|
{
"pile_set_name": "Github"
}
|
<!doctype html>
<html>
<head>
<title>Multi Series Pie Chart</title>
<script src="../../dist/chart.js"></script>
<script src="../utils.js"></script>
</head>
<body>
<div id="canvas-holder" style="width:40%">
<canvas id="chart-area"></canvas>
</div>
<script>
var ctx = document.getElementById('chart-area');
new Chart(ctx, {
type: 'pie',
data: {
labels: [
'Overall Yay',
'Overall Nay',
'Group A Yay',
'Group A Nay',
'Group B Yay',
'Group B Nay',
'Group C Yay',
'Group C Nay'
],
datasets: [
{backgroundColor: ['#AAA', '#777'], data: [21, 79]},
{
backgroundColor: ['hsl(0, 100%, 60%)', 'hsl(0, 100%, 35%)'],
data: [33, 67]
},
{
backgroundColor: ['hsl(100, 100%, 60%)', 'hsl(100, 100%, 35%)'],
data: [20, 80]
},
{
backgroundColor: ['hsl(180, 100%, 60%)', 'hsl(180, 100%, 35%)'],
data: [10, 90]
}
]
},
options: {
legend: {
labels: {
generateLabels: function(chart) {
// Get the default label list
var original = Chart.defaults.pie.legend.labels.generateLabels;
var labels = original.call(this, chart);
// Build an array of colors used in the datasets of the chart
var datasetColors = chart.data.datasets.map(function(e) {
return e.backgroundColor;
});
datasetColors = datasetColors.flat();
// Modify the color and hide state of each label
labels.forEach(label => {
// There are twice as many labels as there are datasets. This converts the label index into the corresponding dataset index
label.datasetIndex = (label.index - label.index % 2) / 2;
// The hidden state must match the dataset's hidden state
label.hidden = !chart.isDatasetVisible(label.datasetIndex);
// Change the color to match the dataset
label.fillStyle = datasetColors[label.index];
});
return labels;
}
},
onClick: function(mouseEvent, legendItem, legend) {
// toggle the visibility of the dataset from what it currently is
legend.chart.getDatasetMeta(
legendItem.datasetIndex
).hidden = legend.chart.isDatasetVisible(legendItem.datasetIndex);
legend.chart.update();
}
},
tooltips: {
callbacks: {
label: function(context) {
var labelIndex = (context.datasetIndex * 2) + context.dataIndex;
return context.chart.data.labels[labelIndex] + ': ' + context.dataset.data[context.dataIndex];
}
}
}
}
});
</script>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.