text
stringlengths 2
100k
| meta
dict |
---|---|
#include "pipeline.h"
const Matrix4f& Pipeline::GetWorldTrans()
{
Matrix4f ScaleTrans, RotateTrans, TranslationTrans;
ScaleTrans.InitScaleTransform(m_scale.x, m_scale.y, m_scale.z);
RotateTrans.InitRotateTransform(m_rotateInfo.x, m_rotateInfo.y, m_rotateInfo.z);
TranslationTrans.InitTranslationTransform(m_worldPos.x, m_worldPos.y, m_worldPos.z);
m_WorldTransformation = TranslationTrans * RotateTrans * ScaleTrans;
return m_WorldTransformation;
}
const Matrix4f& Pipeline::GetWVPTrans()
{
GetWorldTrans();
Matrix4f CameraTranslationTrans, CameraRotateTrans, PersProjTrans;
CameraTranslationTrans.InitTranslationTransform(-m_camera.Pos.x, -m_camera.Pos.y, -m_camera.Pos.z);
CameraRotateTrans.InitCameraTransform(m_camera.Target, m_camera.Up);
PersProjTrans.InitPersProjTransform(m_persProj.FOV, m_persProj.Width, m_persProj.Height, m_persProj.zNear, m_persProj.zFar);
m_WVPtransformation = PersProjTrans * CameraRotateTrans * CameraTranslationTrans * m_WorldTransformation;
return m_WVPtransformation;
}
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>chinamap</title>
<script src="../../build/datav.js"></script>
<script src="../../lib/charts/chinamap.js"></script>
<style type="text/css">
#chart {
border-top: 1px dashed #F00;
border-bottom: 1px dashed #F00;
padding-left: 20px;
}
</style>
</head>
<body>
<div id="chart"></div>
<script>
//data
var temperature = [
["AKESU",2,1997,5.67857142857143],
["ANKANG",4,2004,5.63333333333333],
["ANNING",4,2012,5.93333333333333],
["ANQING",4,2011,5.9],
["ANSHAN",5,2007,6.2258064516129],
["ANSHUN",11,2009,6.16666666666667],
["ANYANG",4,2002,6.03333333333333],
["BAICHENG",11,1996,5.8],
["BAISHAN",7,2006,5.90322580645161],
["BAIYIN",8,2011,6.12903225806452],
["BAODING",2,2008,6.24137931034483],
["BAOJI",7,1998,5.61290322580645],
["BAOSHAN",3,1996,5.70967741935484],
["BAOTOU",9,2004,5.8],
["BAZHONG",6,2005,5.96666666666667],
["BEIHAI",5,1999,5.90322580645161],
["BEIJING",4,2009,5.8],
["BENGBU",3,2001,6.25806451612903],
["BENXI",4,1997,5.56666666666667],
["BINZHOU",9,1999,6],
["BOLE",5,2005,6],
["BOZHOU",11,2000,6.06666666666667],
["CANGZHOU",4,2008,5.96666666666667],
["CHANGCHUN",10,2010,6.12903225806452],
["CHANGDE",8,1998,5.70967741935484],
["CHANGHAI",6,2003,6.06666666666667],
["CHANGJI",6,1996,6],
["CHANGLE",3,1998,5.7741935483871],
["CHANGSHA",3,2007,5.67741935483871],
["CHANGSHU",1,2000,5.74193548387097],
["CHANGZHI",5,2002,5.87096774193548],
["CHANGZHOU",12,2000,5.80645161290323],
["CHAOHU",6,1997,5.76666666666667],
["CHAOYANG",5,2001,5.70967741935484],
["CHAOZHOU",9,2009,6],
["CHENGDE",1,2004,5.61290322580645],
["CHENGDU",7,2009,5.7741935483871],
["CHENGGU",6,2010,6],
["CHENZHOU",12,2011,5.90322580645161],
["CHIBI",12,2010,6.03225806451613],
["CHIFENG",2,2008,5.86206896551724],
["CHISHUI",2,2002,5.75],
["CHIZHOU",9,2000,5.63333333333333],
["CHONGQING",3,1996,6.03225806451613],
["CHONGZUO",8,2007,6.06451612903226],
["CHUXIONG",12,1997,5.67741935483871],
["CHUZHOU",6,2008,6.16666666666667],
["CIXI",1,2006,5.93548387096774],
["CONGHUA",6,2010,5.8],
["DALI",11,2010,6.43333333333333],
["DALIAN",10,2001,6.35483870967742],
["DANDONG",11,2005,5.96666666666667],
["DANYANG",9,2000,6.56666666666667],
["DAQING",5,1997,6.12903225806452],
["DATONG",3,2001,5.96774193548387],
["DAZHOU",8,2010,5.67741935483871],
["DEYANG",8,1996,5.87096774193548],
["DEZHOU",4,2012,5.9],
["DONGGUAN",4,2002,6.03333333333333],
["DONGYANG",9,2008,6.26666666666667],
["DONGYING",3,1996,6.12903225806452],
["DOUYUN",8,2010,5.90322580645161],
["DUNHUA",5,2009,6.19354838709677],
["EERDUOSI",10,2002,6.06451612903226],
["ENSHI",6,2004,6],
["EZHOU",12,2008,5.83870967741935],
["FANGCHENGGANG",9,2003,6.03333333333333],
["FEICHENG",12,2001,5.70967741935484],
["FENGHUA",5,2007,5.90322580645161],
["FOSHAN",8,2007,5.96774193548387],
["FULING",4,2008,5.93333333333333],
["FUQING",4,2006,5.6],
["FUSHUN",6,1997,5.83333333333333],
["FUXIN",8,2001,6],
["FUYANG",4,1996,5.9],
["FUYANG1",5,2005,5.61290322580645],
["FUZHOU",11,2007,5.8],
["FUZHOU1",7,2000,5.93548387096774],
["GANYU",12,2011,5.7741935483871],
["GANZHOU",8,2011,5.87096774193548],
["GAOMING",2,2002,6.07142857142857],
["GAOYOU",12,2007,6.09677419354839],
["GEERMU",12,1996,6],
["GEJIU",10,2009,6.70967741935484],
["GONGYI",8,2012,5.80645161290323],
["GONGZHULING",11,2007,5.73333333333333],
["GUANGAN",8,2006,6],
["GUANGYUAN",11,1996,5.73333333333333],
["GUANGZHOU",10,1999,5.83870967741935],
["GUBAOTOU",8,1996,6.09677419354839],
["GUIGANG",2,1997,6.07142857142857],
["GUILIN",9,1998,5.96666666666667],
["GUIYANG",4,2004,5.86666666666667],
["GUYUAN",10,1998,6],
["HAERBIN",6,2011,6.4],
["HAICHENG",4,2011,6.06666666666667],
["HAIKOU",2,2001,5.78571428571429],
["HAIMEN",9,2001,5.8],
["HAINING",8,2000,5.80645161290323],
["HAMI",5,2008,5.83870967741935],
["HANDAN",11,1998,6.1],
["HANGZHOU",5,2003,5.80645161290323],
["HANZHONG",9,2002,6.03333333333333],
["HEBI",6,2003,6.23333333333333],
["HEFEI",4,1998,5.83333333333333],
["HENGSHUI",12,2010,5.74193548387097],
["HENGYANG",7,2002,5.74193548387097],
["HETIAN",1,2001,5.61290322580645],
["HEYUAN",7,2004,5.7741935483871],
["HEZE",10,2004,5.87096774193548],
["HUADOU",1,1997,6.12903225806452],
["HUAIAN",10,1998,6],
["HUAIBEI",9,2011,5.9],
["HUAIHUA",12,2003,6.09677419354839],
["HUAINAN",3,2002,5.96774193548387],
["HUANGGANG",1,2002,5.58064516129032],
["HUANGSHAN",12,2009,6.29032258064516],
["HUANGSHI",5,2006,5.67741935483871],
["HUHEHAOTE",12,2009,6.03225806451613],
["HUIZHOU",2,2002,5.92857142857143],
["HULUDAO",6,2006,5.96666666666667],
["HUZHOU",10,2010,5.83870967741935],
["JIAMUSI",9,2003,6.23333333333333],
["JIAN",4,1996,5.8],
["JIANGDOU",7,2005,5.93548387096774],
["JIANGMEN",3,2004,6.12903225806452],
["JIANGYAN",4,2005,5.9],
["JIANGYIN",3,1996,5.83870967741935],
["JIANGYOU",7,2003,5.87096774193548],
["JIAONAN",3,1998,5.80645161290323],
["JIAOZHOU",7,2002,5.90322580645161],
["JIAOZUO",8,2010,6.19354838709677],
["JIASHAN",7,1999,5.80645161290323],
["JIAXING",9,2001,5.93333333333333],
["JIEXIU",3,2006,5.87096774193548],
["JILIN",2,2002,6],
["JIMO",11,1997,6.03333333333333],
["JINAN",9,2002,6.06666666666667],
["JINCHENG",1,1997,5.64516129032258],
["JINGDEZHEN",6,2004,5.93333333333333],
["JINGHONG",3,2001,6.12903225806452],
["JINGJIANG",5,2005,5.83870967741935],
["JINGMEN",8,2008,6],
["JINGZHOU",2,2006,5.85714285714286],
["JINHUA",6,2007,5.86666666666667],
["JINING",12,2009,6.06451612903226],
["JINING1",12,2006,5.80645161290323],
["JINJIANG",12,2007,5.96774193548387],
["JINTAN",5,2005,5.80645161290323],
["JINZHONG",5,2004,5.7741935483871],
["JINZHOU",6,2002,5.6],
["JISHOU",3,2005,5.90322580645161],
["JIUJIANG",2,1998,6.07142857142857],
["JIUQUAN",1,2001,5.90322580645161],
["JIXI",3,2002,5.83870967741935],
["JIYUAN",11,2001,5.93333333333333],
["JURONG",9,2005,5.86666666666667],
["KAIFENG",7,2006,5.93548387096774],
["KAILI",12,2004,5.87096774193548],
["KAIPING",10,2001,5.70967741935484],
["KAIYUAN",1,2008,5.93548387096774],
["KASHEN",1,1999,5.80645161290323],
["KELAMAYI",4,1997,5.93333333333333],
["KUERLE",11,2005,5.7],
["KUITUN",10,2006,5.64516129032258],
["KUNMING",2,2011,6.14285714285714],
["KUNSHAN",1,1996,6],
["LAIBIN",7,2008,6],
["LAIWU",9,2001,5.7],
["LAIXI",1,1998,5.7741935483871],
["LAIZHOU",3,2003,5.90322580645161],
["LANGFANG",7,1997,5.83870967741935],
["LANZHOU",2,2000,5.89655172413793],
["LASA",10,2010,5.80645161290323],
["LESHAN",1,1997,6.09677419354839],
["LIANYUNGANG",6,1999,5.96666666666667],
["LIAOCHENG",3,2000,6.03225806451613],
["LIAOYANG",12,2011,6.54838709677419],
["LIAOYUAN",6,2001,5.96666666666667],
["LIJIANG",7,2012,6],
["LILING",2,2004,6.06896551724138],
["LINAN",9,2006,6.03333333333333],
["LINCANG",9,2003,5.8],
["LINFEN",2,1997,5.92857142857143],
["LINGBAO",11,2001,6],
["LINHE",10,2006,5.83870967741935],
["LINXIA",8,2002,5.87096774193548],
["LINYI",12,1997,5.64516129032258],
["LISHUI",6,1998,5.73333333333333],
["LIUAN",7,2005,5.64516129032258],
["LIUPANSHUI",2,2000,6.24137931034483],
["LIUZHOU",11,2010,5.93333333333333],
["LIYANG",4,2003,6.3],
["LONGHAI",12,1996,5.87096774193548],
["LONGYAN",11,1996,6.1],
["LOUDI",12,2007,5.54838709677419],
["LUOHE",2,2006,6.17857142857143],
["LUOYANG",1,2006,5.61290322580645],
["LUXI",5,2007,5.90322580645161],
["LUZHOU",5,2007,5.90322580645161],
["LVLIANG",8,1999,5.90322580645161],
["LVSHUN",1,2006,5.83870967741935],
["MAANSHAN",11,2002,5.93333333333333],
["MAOMING",1,2001,6.03225806451613],
["MEIHEKOU",2,2002,5.78571428571429],
["MEISHAN",9,2009,5.7],
["MEIZHOU",1,2010,5.67741935483871],
["MIANXIAN",2,2010,5.78571428571429],
["MIANYANG",7,2011,6],
["MUDANJIANG",12,2010,5.64516129032258],
["NANAN",6,2005,5.83333333333333],
["NANCHANG",9,1999,5.7],
["NANCHONG",10,1998,6.06451612903226],
["NANJING",10,2000,6.03225806451613],
["NANNING",12,1997,6.03225806451613],
["NANPING",9,2000,5.96666666666667],
["NANTONG",4,2009,5.86666666666667],
["NANYANG",10,2009,6.29032258064516],
["NEIJIANG",10,1996,6.06451612903226],
["NINGBO",3,2007,5.67741935483871],
["NINGDE",10,1998,5.83870967741935],
["PANJIN",1,1999,5.93548387096774],
["PANZHIHUA",10,2006,6.16129032258065],
["PENGLAI",11,2008,5.86666666666667],
["PINGDINGSHAN",6,2001,6.03333333333333],
["PINGDU",6,1999,6.1],
["PINGHU",7,2002,5.64516129032258],
["PINGLIANG",12,2007,5.80645161290323],
["PINGXIANG",8,1998,5.93548387096774],
["PULANDIAN",6,2012,6.23333333333333],
["PUNING",10,1996,5.64516129032258],
["PUTIAN",8,2008,6.03225806451613],
["PUYANG",12,1999,5.80645161290323],
["QIANNAN",2,1997,5.82142857142857],
["QIDONG",1,2001,6.09677419354839],
["QINGDAO",10,2011,6.12903225806452],
["QINGYANG",2,2010,6.14285714285714],
["QINGYUAN",8,2007,5.87096774193548],
["QINGZHOU",7,2008,6.03225806451613],
["QINHUANGDAO",1,2003,5.93548387096774],
["QINZHOU",1,2011,5.90322580645161],
["QIONGHAI",2,2007,5.89285714285714],
["QIQIHAER",12,2005,6.2258064516129],
["QITAIHE",3,2008,5.93548387096774],
["QUANZHOU",9,1999,5.86666666666667],
["QUJING",10,2010,5.7741935483871],
["QUZHOU",2,2009,5.96428571428571],
["RIKAZE",1,1996,5.74193548387097],
["RIZHAO",6,2010,5.7],
["RONGCHENG",11,2004,6.16666666666667],
["RUGAO",2,2002,5.82142857142857],
["RUIAN",6,2001,5.66666666666667],
["RUSHAN",3,2010,6.12903225806452],
["SANMENXIA",4,2009,5.63333333333333],
["SANMING",3,1997,6.03225806451613],
["SANYA",9,2007,5.73333333333333],
["SHAN",4,1998,5.8],
["SHANGHAI",5,2011,5.74193548387097],
["SHANGLUO",8,2001,6.09677419354839],
["SHANGQIU",2,2004,5.62068965517241],
["SHANGRAO",2,2010,6.32142857142857],
["SHANGYU",9,2006,6.13333333333333],
["SHANTOU",1,2008,5.7741935483871],
["SHAOGUAN",4,2005,6.23333333333333],
["SHAOWU",5,2012,6.06451612903226],
["SHAOXING",8,2009,5.70967741935484],
["SHAOYANG",4,2005,6.1],
["SHENYANG",1,2003,6.03225806451613],
["SHENZHEN",12,2007,5.87096774193548],
["SHEXIAN",4,1996,5.76666666666667],
["SHIHEZI",7,1999,6.09677419354839],
["SHIJIAZHUANG",5,1996,5.87096774193548],
["SHILIN",4,2011,6.1],
["SHISHI",2,2005,5.96428571428571],
["SHIYAN",2,2004,5.89655172413793],
["SHOUGUANG",2,2003,5.85714285714286],
["SHUANGYASHAN",10,2005,6],
["SHUOZHOU",3,2010,5.96774193548387],
["SHUYANG",8,1997,5.90322580645161],
["SIMAO",2,2009,5.89285714285714],
["SIPING",7,2002,6.2258064516129],
["SONGJIANG",3,2011,5.70967741935484],
["SONGYUAN",6,2003,5.83333333333333],
["SUINING",2,2010,6.07142857142857],
["SUIZHOU",2,2004,5.72413793103448],
["SUQIAN",10,2010,5.80645161290323],
["SUYU",11,2006,5.8],
["SUZHOU",2,2006,5.89285714285714],
["SUZHOU1",1,2004,5.93548387096774],
["TACHENG",3,1996,5.80645161290323],
["TAIAN",7,2003,5.54838709677419],
["TAICANG",2,1997,5.60714285714286],
["TAIXING",6,2010,5.96666666666667],
["TAIYUAN",9,2012,5.83333333333333],
["TAIZHOU",7,2010,5.80645161290323],
["TAIZHOU1",6,2010,6.03333333333333],
["TANGSHAN",2,1997,6.25],
["TENGCHONG",11,2005,5.7],
["TENGZHOU",4,2006,5.7],
["TIANJIN",6,2000,5.83333333333333],
["TIANMEN",11,1999,5.7],
["TIANSHUI",6,2012,5.86666666666667],
["TIELING",12,2005,5.90322580645161],
["TONGCHUAN",9,1997,5.76666666666667],
["TONGHUA",8,2012,5.90322580645161],
["TONGLIAO",4,2011,5.93333333333333],
["TONGLING",7,2009,5.96774193548387],
["TONGLU",11,2005,5.86666666666667],
["TONGREN",8,1998,5.7741935483871],
["TONGXIANG",7,2012,5.93548387096774],
["TONGZHOU",3,1998,6.09677419354839],
["TULUFAN",9,2004,5.9],
["WAFANGDIAN",4,2000,5.9],
["WANZHOU",7,1997,6],
["WEIFANG",11,2011,6.1],
["WEIHAI",1,2007,6.19354838709677],
["WEINAN",4,2002,5.7],
["WENDENG",9,2007,6.06666666666667],
["WENLING",8,1999,5.93548387096774],
["WENZHOU",9,1997,5.8],
["WUHAI",11,2006,6.23333333333333],
["WUHAN",12,2008,6.16129032258065],
["WUHU",1,2002,5.96774193548387],
["WUJIANG",7,2010,5.87096774193548],
["WULANHAOTE",11,1999,6.03333333333333],
["WULUMUQI",8,2001,5.83870967741935],
["WUWEI",2,1999,5.78571428571429],
["WUXI",9,2004,5.66666666666667],
["WUZHOU",12,2010,6.16129032258065],
["XIAMEN",2,2012,5.93103448275862],
["XIAN",5,2009,5.80645161290323],
["XIANGCHENG",2,1999,5.60714285714286],
["XIANGFAN",12,2009,5.80645161290323],
["XIANGGELILA",8,2006,5.96774193548387],
["XIANGSHAN",6,1998,6.03333333333333],
["XIANGTAN",2,1997,5.89285714285714],
["XIANGXIANG",9,2001,5.8],
["XIANGYIN",9,1999,5.93333333333333],
["XIANNING",12,2001,5.83870967741935],
["XIANTAO",10,2007,5.51612903225806],
["XIANYANG",5,2010,5.74193548387097],
["XIAOSHAN",9,1996,5.7],
["XICANG",5,2007,5.61290322580645],
["XICHANG",3,2003,5.96774193548387],
["XINGHUA",10,2011,5.93548387096774],
["XINGTAI",4,2011,6],
["XINGYI",10,2007,5.64516129032258],
["XINING",1,1998,5.70967741935484],
["XINJI",7,2003,5.64516129032258],
["XINXIANG",7,2008,5.96774193548387],
["XINYANG",5,2011,5.7741935483871],
["XINYU",7,2003,5.7741935483871],
["XINZHOU",2,2000,6.06896551724138],
["XUANCHENG",12,2000,5.7741935483871],
["XUANHUA",7,2009,5.83870967741935],
["XUCHANG",11,2004,5.73333333333333],
["XUZHOU",11,2000,5.96666666666667],
["YAAN",11,2005,5.86666666666667],
["YAKESHI",11,2006,5.73333333333333],
["YANAN",9,2001,6.2],
["YANBIAN",11,2001,5.73333333333333],
["YANCHENG",12,1997,6],
["YANGJIANG",4,1999,5.7],
["YANGQUAN",5,1996,5.70967741935484],
["YANGZHOU",4,2009,5.9],
["YANJI",9,2007,5.76666666666667],
["YANTAI",1,2008,5.7741935483871],
["YANZHOU",6,2004,5.8],
["YIBIN",1,2010,5.90322580645161],
["YICHANG",12,2002,6.03225806451613],
["YICHUN",12,1998,6.06451612903226],
["YICHUN1",4,1997,5.73333333333333],
["YILI",2,2011,6.10714285714286],
["YINCHUAN",3,2002,5.64516129032258],
["YINGKOU",9,2012,5.8],
["YINGTAN",5,2000,6],
["YINING",8,2008,5.58064516129032],
["YIWU",1,2007,5.7741935483871],
["YIXING",10,2010,6],
["YIYANG",7,2011,6.2258064516129],
["YONGKANG",9,2011,5.83333333333333],
["YONGZHOU",10,1997,6.35483870967742],
["YUEYANG",12,1996,6.51612903225806],
["YUHUAN",7,2006,5.83870967741935],
["YULIN",9,2008,5.96666666666667],
["YULIN1",9,1998,5.66666666666667],
["YUNCHENG",10,1996,5.7741935483871],
["YUXI",11,2005,5.8],
["YUYAO",8,2010,5.96774193548387],
["ZAOZHUANG",7,2011,6.09677419354839],
["ZENGCHENG",3,2010,6.16129032258065],
["ZHANGJIAGANG",11,1997,5.66666666666667],
["ZHANGJIAJIE",11,2011,6.03333333333333],
["ZHANGJIAKOU",7,2008,5.67741935483871],
["ZHANGQIU",2,2012,6],
["ZHANGYE",11,1999,5.96666666666667],
["ZHANGZHOU",2,2007,6.5],
["ZHANJIANG",10,2005,5.54838709677419],
["ZHAODONG",7,2011,5.80645161290323],
["ZHAOQING",4,2003,6],
["ZHAOTONG",6,2007,5.56666666666667],
["ZHENGZHOU",3,2001,5.61290322580645],
["ZHENJIANG",11,2001,5.96666666666667],
["ZHONGSHAN",3,2000,5.83870967741935],
["ZHOUKOU",3,2000,6.19354838709677],
["ZHOUSHAN",4,2005,5.8],
["ZHUCHENG",3,2005,5.80645161290323],
["ZHUHAI",6,2007,5.93333333333333],
["ZHUJI",8,2009,5.83870967741935],
["ZHUMADIAN",10,2010,5.96774193548387],
["ZHUZHOU",4,2001,5.9],
["ZIBO",8,2001,5.83870967741935],
["ZIGONG",5,2002,5.64516129032258],
["ZIYANG",3,1998,5.70967741935484],
["ZOUCHENG",4,1997,6.1],
["ZUNYI",7,1996,6.09677419354839]
];
//pingyin to chinese
var enToCn = {
BEIJING: "北京",
SHANGHAI: "上海",
TIANJIN: "天津",
CHONGQING: "重庆",
AKESU: "阿克苏",
ANNING: "安宁",
ANQING: "安庆",
ANSHAN: "鞍山",
ANSHUN: "安顺",
ANYANG: "安阳",
BAICHENG: "白城",
BAISHAN: "白山",
BAIYIN: "白银",
BENGBU: "蚌埠",
BAODING: "保定",
BAOJI: "宝鸡",
BAOSHAN: "保山",
BAZHONG: "巴中",
BEIHAI: "北海",
BENXI: "本溪",
BINZHOU: "滨州",
BOLE: "博乐",
BOZHOU: "亳州",
CANGZHOU: "沧州",
CHANGDE: "常德",
CHANGJI: "昌吉",
CHANGSHU: "常熟",
CHANGZHOU: "常州",
CHAOHU: "巢湖",
CHAOYANG: "朝阳",
CHAOZHOU: "潮州",
CHENGDE: "承德",
CHENGDU: "成都",
CHENGGU: "城固",
CHENZHOU: "郴州",
CHIBI: "赤壁",
CHIFENG: "赤峰",
CHISHUI: "赤水",
CHIZHOU: "池州",
CHONGZUO: "崇左",
CHUXIONG: "楚雄",
CHUZHOU: "滁州",
CIXI: "慈溪",
CONGHUA: "从化",
DALI: "大理",
DALIAN: "大连",
DANDONG: "丹东",
DANYANG: "丹阳",
DAQING: "大庆",
DATONG: "大同",
DAZHOU: "达州",
DEYANG: "德阳",
DEZHOU: "德州",
DONGGUAN: "东莞",
DONGYANG: "东阳",
DONGYING: "东营",
DOUYUN: "都匀",
DUNHUA: "敦化",
EERDUOSI: "鄂尔多斯",
ENSHI: "恩施",
FANGCHENGGANG: "防城港",
FEICHENG: "肥城",
FENGHUA: "奉化",
FUSHUN: "抚顺",
FUXIN: "阜新",
FUYANG: "阜阳",
FUYANG1: "富阳",
FUZHOU: "福州",
FUZHOU1: "抚州",
GANYU: "赣榆",
GANZHOU: "赣州",
GAOMING: "高明",
GAOYOU: "高邮",
GEERMU: "格尔木",
GEJIU: "个旧",
GONGYI: "巩义",
GUANGAN: "广安",
GUANGYUAN: "广元",
GUANGZHOU: "广州",
GUBAOTOU: "古包头",
GUIGANG: "贵港",
GUILIN: "桂林",
GUIYANG: "贵阳",
GUYUAN: "固原",
HAERBIN: "哈尔滨",
HAICHENG: "海城",
HAIKOU: "海口",
HAIMEN: "海门",
HAINING: "海宁",
HAMI: "哈密",
HANDAN: "邯郸",
HANGZHOU: "杭州",
HANZHONG: "汉中",
HEBI: "鹤壁",
HEFEI: "合肥",
HENGSHUI: "衡水",
HENGYANG: "衡阳",
HETIAN: "和田",
HEYUAN: "河源",
HEZE: "菏泽",
HUADOU: "花都",
HUAIAN: "淮安",
HUAIBEI: "淮北",
HUAIHUA: "怀化",
HUAINAN: "淮南",
HUANGGANG: "黄冈",
HUANGSHAN: "黄山",
HUANGSHI: "黄石",
HUHEHAOTE: "呼和浩特",
HUIZHOU: "惠州",
HULUDAO: "葫芦岛",
HUZHOU: "湖州",
JIAMUSI: "佳木斯",
JIAN: "吉安",
JIANGDOU: "江都",
JIANGMEN: "江门",
JIANGYIN: "江阴",
JIAONAN: "胶南",
JIAOZHOU: "胶州",
JIAOZUO: "焦作",
JIASHAN: "嘉善",
JIAXING: "嘉兴",
JIEXIU: "介休",
JILIN: "吉林",
JIMO: "即墨",
JINAN: "济南",
JINCHENG: "晋城",
JINGDEZHEN: "景德镇",
JINGHONG: "景洪",
JINGJIANG: "靖江",
JINGMEN: "荆门",
JINGZHOU: "荆州",
JINHUA: "金华",
JINING1: "集宁",
JINING: "济宁",
JINJIANG: "晋江",
JINTAN: "金坛",
JINZHONG: "晋中",
JINZHOU: "锦州",
JISHOU: "吉首",
JIUJIANG: "九江",
JIUQUAN: "酒泉",
JIXI: "鸡西",
JIYUAN: "济源",
JURONG: "句容",
KAIFENG: "开封",
KAILI: "凯里",
KAIPING: "开平",
KAIYUAN: "开远",
KASHEN: "喀什",
KELAMAYI: "克拉玛依",
KUERLE: "库尔勒",
KUITUN: "奎屯",
KUNMING: "昆明",
KUNSHAN: "昆山",
LAIBIN: "来宾",
LAIWU: "莱芜",
LAIXI: "莱西",
LAIZHOU: "莱州",
LANGFANG: "廊坊",
LANZHOU: "兰州",
LASA: "拉萨",
LESHAN: "乐山",
LIANYUNGANG: "连云港",
LIAOCHENG: "聊城",
LIAOYANG: "辽阳",
LIAOYUAN: "辽源",
LIJIANG: "丽江",
LINAN: "临安",
LINCANG: "临沧",
LINFEN: "临汾",
LINGBAO: "灵宝",
LINHE: "临河",
LINXIA: "临夏",
LINYI: "临沂",
LISHUI: "丽水",
LIUAN: "六安",
LIUPANSHUI: "六盘水",
LIUZHOU: "柳州",
LIYANG: "溧阳",
LONGHAI: "龙海",
LONGYAN: "龙岩",
LOUDI: "娄底",
LUOHE: "漯河",
LUOYANG: "洛阳",
LUXI: "潞西",
LUZHOU: "泸州",
LVLIANG: "吕梁",
LVSHUN: "旅顺",
MAANSHAN: "马鞍山",
MAOMING: "茂名",
MEIHEKOU: "梅河口",
MEISHAN: "眉山",
MEIZHOU: "梅州",
MIANXIAN: "勉县",
MIANYANG: "绵阳",
MUDANJIANG: "牡丹江",
NANAN: "南安",
NANCHANG: "南昌",
NANCHONG: "南充",
NANJING: "南京",
NANNING: "南宁",
NANPING: "南平",
NANTONG: "南通",
NANYANG: "南阳",
NEIJIANG: "内江",
NINGBO: "宁波",
NINGDE: "宁德",
PANJIN: "盘锦",
PANZHIHUA: "攀枝花",
PENGLAI: "蓬莱",
PINGDINGSHAN: "平顶山",
PINGDU: "平度",
PINGHU: "平湖",
PINGLIANG: "平凉",
PINGXIANG: "萍乡",
PULANDIAN: "普兰店",
PUNING: "普宁",
PUTIAN: "莆田",
PUYANG: "濮阳",
QIANNAN: "黔南",
QIDONG: "启东",
QINGDAO: "青岛",
QINGYANG: "庆阳",
QINGYUAN: "清远",
QINGZHOU: "青州",
QINHUANGDAO: "秦皇岛",
QINZHOU: "钦州",
QIONGHAI: "琼海",
QIQIHAER: "齐齐哈尔",
QUANZHOU: "泉州",
QUJING: "曲靖",
QUZHOU: "衢州",
RIKAZE: "日喀则",
RIZHAO: "日照",
RONGCHENG: "荣成",
RUGAO: "如皋",
RUIAN: "瑞安",
RUSHAN: "乳山",
SANMENXIA: "三门峡",
SANMING: "三明",
SANYA: "三亚",
XIAMEN: "厦门",
SHAN: "佛山",
SHANGLUO: "商洛",
SHANGQIU: "商丘",
SHANGRAO: "上饶",
SHANGYU: "上虞",
SHANTOU: "汕头",
ANKANG: "安康",
SHAOGUAN: "韶关",
SHAOXING: "绍兴",
SHAOYANG: "邵阳",
SHENYANG: "沈阳",
SHENZHEN: "深圳",
SHIHEZI: "石河子",
SHIJIAZHUANG: "石家庄",
SHILIN: "石林",
SHISHI: "石狮",
SHIYAN: "十堰",
SHOUGUANG: "寿光",
SHUANGYASHAN: "双鸭山",
SHUOZHOU: "朔州",
SHUYANG: "沭阳",
SIMAO: "思茅",
SIPING: "四平",
SONGYUAN: "松原",
SUINING: "遂宁",
SUIZHOU: "随州",
SUZHOU: "苏州",
TACHENG: "塔城",
TAIAN: "泰安",
TAICANG: "太仓",
TAIXING: "泰兴",
TAIYUAN: "太原",
TAIZHOU: "泰州",
TAIZHOU1: "台州",
TANGSHAN: "唐山",
TENGCHONG: "腾冲",
TENGZHOU: "滕州",
TIANMEN: "天门",
TIANSHUI: "天水",
TIELING: "铁岭",
TONGCHUAN: "铜川",
TONGLIAO: "通辽",
TONGLING: "铜陵",
TONGLU: "桐庐",
TONGREN: "铜仁",
TONGXIANG: "桐乡",
TONGZHOU: "通州",
TONGHUA: "通化",
TULUFAN: "吐鲁番",
WAFANGDIAN: "瓦房店",
WEIFANG: "潍坊",
WEIHAI: "威海",
WEINAN: "渭南",
WENDENG: "文登",
WENLING: "温岭",
WENZHOU: "温州",
WUHAI: "乌海",
WUHAN: "武汉",
WUHU: "芜湖",
WUJIANG: "吴江",
WULANHAOTE: "乌兰浩特",
WUWEI: "武威",
WUXI: "无锡",
WUZHOU: "梧州",
XIAN: "西安",
XIANGCHENG: "项城",
XIANGFAN: "襄樊",
XIANGGELILA: "香格里拉",
XIANGSHAN: "象山",
XIANGTAN: "湘潭",
XIANGXIANG: "湘乡",
XIANNING: "咸宁",
XIANTAO: "仙桃",
XIANYANG: "咸阳",
XICANG: "西藏",
XICHANG: "西昌",
XINGTAI: "邢台",
XINGYI: "兴义",
XINING: "西宁",
XINXIANG: "新乡",
XINYANG: "信阳",
XINYU: "新余",
XINZHOU: "忻州",
SUQIAN: "宿迁",
SUYU: "宿豫",
SUZHOU1: "宿州",
XUANCHENG: "宣城",
XUCHANG: "许昌",
XUZHOU: "徐州",
YAAN: "雅安",
YAKESHI: "牙克石",
YANAN: "延安",
YANBIAN: "延边",
YANCHENG: "盐城",
YANGJIANG: "阳江",
YANGQUAN: "阳泉",
YANGZHOU: "扬州",
YANJI: "延吉",
YANTAI: "烟台",
YANZHOU: "兖州",
YIBIN: "宜宾",
YICHANG: "宜昌",
YICHUN: "宜春",
YICHUN1: "伊春",
YILI: "伊犁",
YINCHUAN: "银川",
YINGKOU: "营口",
YINGTAN: "鹰潭",
YINING: "伊宁",
YIWU: "义乌",
YIXING: "宜兴",
YIYANG: "益阳",
YONGKANG: "永康",
YONGZHOU: "永州",
YUEYANG: "岳阳",
YUHUAN: "玉环",
YULIN1: "榆林",
YULIN: "玉林",
YUNCHENG: "运城",
YUXI: "玉溪",
YUYAO: "余姚",
ZAOZHUANG: "枣庄",
ZENGCHENG: "增城",
CHANGCHUN: "长春",
CHANGHAI: "长海",
ZHANGJIAGANG: "张家港",
ZHANGJIAJIE: "张家界",
ZHANGJIAKOU: "张家口",
CHANGLE: "长乐",
ZHANGQIU: "章丘",
CHANGSHA: "长沙",
ZHANGYE: "张掖",
CHANGZHI: "长治",
ZHANGZHOU: "漳州",
ZHANJIANG: "湛江",
ZHAODONG: "肇东",
ZHAOQING: "肇庆",
ZHAOTONG: "昭通",
ZHENGZHOU: "郑州",
ZHENJIANG: "镇江",
ZHONGSHAN: "中山",
ZHOUKOU: "周口",
ZHOUSHAN: "舟山",
ZHUCHENG: "诸城",
ZHUHAI: "珠海",
ZHUJI: "诸暨",
ZHUMADIAN: "驻马店",
ZHUZHOU: "株洲",
ZIBO: "淄博",
ZIGONG: "自贡",
ZUNYI: "遵义",
WULUMUQI: "乌鲁木齐",
FUQING: "福清",
EZHOU: "鄂州",
BAOTOU: "包头",
XIAOSHAN: "萧山",
XUANHUA: "宣化",
JIANGYOU: "江油",
ZIYANG: "资阳",
XINJI: "辛集",
FOSHAN: "佛山",
WANZHOU: "万州",
ZOUCHENG: "邹城",
SHAOWU: "邵武",
JIANGYAN: "姜堰",
XIANGYIN: "湘阴",
SONGJIANG: "松江",
QITAIHE: "七台河",
LILING: "醴陵",
FULING: "涪陵",
GONGZHULING: "公主岭",
SHEXIAN: "歙县",
XINGHUA : "兴化"
};
//city points with chinese name
var points = [];
temperature.forEach(function (d) {
if (typeof enToCn[d[0]] !== 'undefined') {
points.push({
'name': enToCn[d[0]],
'time': d[2] + "-" + d[1],
'value': d[3],
'pingyin': d[0]
});
}
});
//console.log(points.length);
//temperature range
var pointColor = d3.scale.linear()
.domain(d3.extent(temperature.map(function (d) {return d[3];})))
.range(["steelblue", "red"]);
var chinamap = new Chinamap("chart", {
'width': 720,
'height': 600,
"geoDataPath": '../../lib/charts/data/chinaMap/'
});
chinamap.setOptions({'showWords': false});
chinamap.setOptions({'levelChangeable': false});
chinamap.setOptions({'mapId': 0});
chinamap.setOptions({
//"wordStyle": {'stroke': "black"},
//"colorModel": "gradient",
//"colors": ["#ddd", "#88f"]
});
//2010 人口统计
chinamap.setSource();
chinamap.on('areaHoverIn', function () {
var map = this.data("map");
var word = this.data("word");
var info = this.data("info");
this.attr({"fill": "pink"});
});
chinamap.on('areaHoverOut', function () {
var map = this.data("map");
var word = this.data("word");
var info = this.data("info");
this.attr({"fill": info.fillColor});
});
chinamap.renderCallback = function () {
var searchP = chinamap.createCityPoints(points, function (city) {
return this.paper.circle(city.coord[0], city.coord[1], 20)
.attr({
"fill": pointColor(city.value),
"fill-opacity": 0.5
})
.data("map", this)
.mouseover(function () {
this.attr({"r": 40});
this.data("map").floatTag
.html("<p>" + city.formatName + " (" + city.pingyin + ")" + "</p>"
+ "<p>" + city.time + "</p>"
+ "<p>" + Math.round(city.value * 100) / 100 + "℃</p>")
.css("visibility", "visible");
})
.mouseout(function () {
this.attr({"r": 20});
this.data("map").floatTag
.css("visibility", "hidden");
});
});
searchP.forEach(function (d) {
d.attr({"stroke": "none"});
});
//console.log(searchP.length);
chinamap.floatTag.creator.mouseToFloatTag({x: 10, y: 10});
legendCreator();
};
chinamap.render();
</script>
<script>
//legend
var legendCreator = function () {
var legend = $("<div/>")
.css({"position": "absolute",
"left": 0,
"top": 470})
.appendTo($("#chart").css("position", "relative"));
var colorScale = pointColor;
var domain = colorScale.domain();
var range = colorScale.range();
var config = {'w': 280, 'h': 100};
var legendPaper = new Raphael(legend[0], config.w, config.h);
legendPaper.rect(0, 0, config.w, config.h).attr({"fill": "#eee"});
legendPaper.text(config.w / 2, 30, "温差(℃)")
.attr({"fill": "black",
"font-size": "15px",
"font-family": "微软雅黑"});
legendPaper.rect(40, (config.h - 40) / 2 + 20, config.w - 40 * 2, 40).attr({
"fill": "0-steelblue:5-red:95",
"fill-opacity": 0.5,
"stroke": "none"
});
legendPaper.text(20, config.h / 2 + 20, d3.format(".2f")(domain[0]));
legendPaper.text(config.w - 20, config.h / 2 + 20, d3.format(".2f")(domain[1]));
};
</script>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
/* ----------------------------------------------------------------------
* Project: CMSIS DSP Library
* Title: arm_correlate_opt_q15.c
* Description: Correlation of Q15 sequences
*
* $Date: 27. January 2017
* $Revision: V.1.5.1
*
* Target Processor: Cortex-M cores
* -------------------------------------------------------------------- */
/*
* Copyright (C) 2010-2017 ARM Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "arm_math.h"
/**
* @ingroup groupFilters
*/
/**
* @addtogroup Corr
* @{
*/
/**
* @brief Correlation of Q15 sequences.
* @param[in] *pSrcA points to the first input sequence.
* @param[in] srcALen length of the first input sequence.
* @param[in] *pSrcB points to the second input sequence.
* @param[in] srcBLen length of the second input sequence.
* @param[out] *pDst points to the location where the output result is written. Length 2 * max(srcALen, srcBLen) - 1.
* @param[in] *pScratch points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2.
* @return none.
*
* \par Restrictions
* If the silicon does not support unaligned memory access enable the macro UNALIGNED_SUPPORT_DISABLE
* In this case input, output, scratch buffers should be aligned by 32-bit
*
* @details
* <b>Scaling and Overflow Behavior:</b>
*
* \par
* The function is implemented using a 64-bit internal accumulator.
* Both inputs are in 1.15 format and multiplications yield a 2.30 result.
* The 2.30 intermediate results are accumulated in a 64-bit accumulator in 34.30 format.
* This approach provides 33 guard bits and there is no risk of overflow.
* The 34.30 result is then truncated to 34.15 format by discarding the low 15 bits and then saturated to 1.15 format.
*
* \par
* Refer to <code>arm_correlate_fast_q15()</code> for a faster but less precise version of this function for Cortex-M3 and Cortex-M4.
*
*
*/
void arm_correlate_opt_q15(
q15_t * pSrcA,
uint32_t srcALen,
q15_t * pSrcB,
uint32_t srcBLen,
q15_t * pDst,
q15_t * pScratch)
{
q15_t *pIn1; /* inputA pointer */
q15_t *pIn2; /* inputB pointer */
q63_t acc0, acc1, acc2, acc3; /* Accumulators */
q15_t *py; /* Intermediate inputB pointer */
q31_t x1, x2, x3; /* temporary variables for holding input1 and input2 values */
uint32_t j, blkCnt, outBlockSize; /* loop counter */
int32_t inc = 1; /* output pointer increment */
uint32_t tapCnt;
q31_t y1, y2;
q15_t *pScr; /* Intermediate pointers */
q15_t *pOut = pDst; /* output pointer */
#ifdef UNALIGNED_SUPPORT_DISABLE
q15_t a, b;
#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */
/* The algorithm implementation is based on the lengths of the inputs. */
/* srcB is always made to slide across srcA. */
/* So srcBLen is always considered as shorter or equal to srcALen */
/* But CORR(x, y) is reverse of CORR(y, x) */
/* So, when srcBLen > srcALen, output pointer is made to point to the end of the output buffer */
/* and the destination pointer modifier, inc is set to -1 */
/* If srcALen > srcBLen, zero pad has to be done to srcB to make the two inputs of same length */
/* But to improve the performance,
* we include zeroes in the output instead of zero padding either of the the inputs*/
/* If srcALen > srcBLen,
* (srcALen - srcBLen) zeroes has to included in the starting of the output buffer */
/* If srcALen < srcBLen,
* (srcALen - srcBLen) zeroes has to included in the ending of the output buffer */
if (srcALen >= srcBLen)
{
/* Initialization of inputA pointer */
pIn1 = (pSrcA);
/* Initialization of inputB pointer */
pIn2 = (pSrcB);
/* Number of output samples is calculated */
outBlockSize = (2U * srcALen) - 1U;
/* When srcALen > srcBLen, zero padding is done to srcB
* to make their lengths equal.
* Instead, (outBlockSize - (srcALen + srcBLen - 1))
* number of output samples are made zero */
j = outBlockSize - (srcALen + (srcBLen - 1U));
/* Updating the pointer position to non zero value */
pOut += j;
}
else
{
/* Initialization of inputA pointer */
pIn1 = (pSrcB);
/* Initialization of inputB pointer */
pIn2 = (pSrcA);
/* srcBLen is always considered as shorter or equal to srcALen */
j = srcBLen;
srcBLen = srcALen;
srcALen = j;
/* CORR(x, y) = Reverse order(CORR(y, x)) */
/* Hence set the destination pointer to point to the last output sample */
pOut = pDst + ((srcALen + srcBLen) - 2U);
/* Destination address modifier is set to -1 */
inc = -1;
}
pScr = pScratch;
/* Fill (srcBLen - 1U) zeros in scratch buffer */
arm_fill_q15(0, pScr, (srcBLen - 1U));
/* Update temporary scratch pointer */
pScr += (srcBLen - 1U);
#ifndef UNALIGNED_SUPPORT_DISABLE
/* Copy (srcALen) samples in scratch buffer */
arm_copy_q15(pIn1, pScr, srcALen);
/* Update pointers */
//pIn1 += srcALen;
pScr += srcALen;
#else
/* Apply loop unrolling and do 4 Copies simultaneously. */
j = srcALen >> 2U;
/* First part of the processing with loop unrolling copies 4 data points at a time.
** a second loop below copies for the remaining 1 to 3 samples. */
while (j > 0U)
{
/* copy second buffer in reversal manner */
*pScr++ = *pIn1++;
*pScr++ = *pIn1++;
*pScr++ = *pIn1++;
*pScr++ = *pIn1++;
/* Decrement the loop counter */
j--;
}
/* If the count is not a multiple of 4, copy remaining samples here.
** No loop unrolling is used. */
j = srcALen % 0x4U;
while (j > 0U)
{
/* copy second buffer in reversal manner for remaining samples */
*pScr++ = *pIn1++;
/* Decrement the loop counter */
j--;
}
#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */
#ifndef UNALIGNED_SUPPORT_DISABLE
/* Fill (srcBLen - 1U) zeros at end of scratch buffer */
arm_fill_q15(0, pScr, (srcBLen - 1U));
/* Update pointer */
pScr += (srcBLen - 1U);
#else
/* Apply loop unrolling and do 4 Copies simultaneously. */
j = (srcBLen - 1U) >> 2U;
/* First part of the processing with loop unrolling copies 4 data points at a time.
** a second loop below copies for the remaining 1 to 3 samples. */
while (j > 0U)
{
/* copy second buffer in reversal manner */
*pScr++ = 0;
*pScr++ = 0;
*pScr++ = 0;
*pScr++ = 0;
/* Decrement the loop counter */
j--;
}
/* If the count is not a multiple of 4, copy remaining samples here.
** No loop unrolling is used. */
j = (srcBLen - 1U) % 0x4U;
while (j > 0U)
{
/* copy second buffer in reversal manner for remaining samples */
*pScr++ = 0;
/* Decrement the loop counter */
j--;
}
#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */
/* Temporary pointer for scratch2 */
py = pIn2;
/* Actual correlation process starts here */
blkCnt = (srcALen + srcBLen - 1U) >> 2;
while (blkCnt > 0)
{
/* Initialze temporary scratch pointer as scratch1 */
pScr = pScratch;
/* Clear Accumlators */
acc0 = 0;
acc1 = 0;
acc2 = 0;
acc3 = 0;
/* Read four samples from scratch1 buffer */
x1 = *__SIMD32(pScr)++;
/* Read next four samples from scratch1 buffer */
x2 = *__SIMD32(pScr)++;
tapCnt = (srcBLen) >> 2U;
while (tapCnt > 0U)
{
#ifndef UNALIGNED_SUPPORT_DISABLE
/* Read four samples from smaller buffer */
y1 = _SIMD32_OFFSET(pIn2);
y2 = _SIMD32_OFFSET(pIn2 + 2U);
acc0 = __SMLALD(x1, y1, acc0);
acc2 = __SMLALD(x2, y1, acc2);
#ifndef ARM_MATH_BIG_ENDIAN
x3 = __PKHBT(x2, x1, 0);
#else
x3 = __PKHBT(x1, x2, 0);
#endif
acc1 = __SMLALDX(x3, y1, acc1);
x1 = _SIMD32_OFFSET(pScr);
acc0 = __SMLALD(x2, y2, acc0);
acc2 = __SMLALD(x1, y2, acc2);
#ifndef ARM_MATH_BIG_ENDIAN
x3 = __PKHBT(x1, x2, 0);
#else
x3 = __PKHBT(x2, x1, 0);
#endif
acc3 = __SMLALDX(x3, y1, acc3);
acc1 = __SMLALDX(x3, y2, acc1);
x2 = _SIMD32_OFFSET(pScr + 2U);
#ifndef ARM_MATH_BIG_ENDIAN
x3 = __PKHBT(x2, x1, 0);
#else
x3 = __PKHBT(x1, x2, 0);
#endif
acc3 = __SMLALDX(x3, y2, acc3);
#else
/* Read four samples from smaller buffer */
a = *pIn2;
b = *(pIn2 + 1);
#ifndef ARM_MATH_BIG_ENDIAN
y1 = __PKHBT(a, b, 16);
#else
y1 = __PKHBT(b, a, 16);
#endif
a = *(pIn2 + 2);
b = *(pIn2 + 3);
#ifndef ARM_MATH_BIG_ENDIAN
y2 = __PKHBT(a, b, 16);
#else
y2 = __PKHBT(b, a, 16);
#endif
acc0 = __SMLALD(x1, y1, acc0);
acc2 = __SMLALD(x2, y1, acc2);
#ifndef ARM_MATH_BIG_ENDIAN
x3 = __PKHBT(x2, x1, 0);
#else
x3 = __PKHBT(x1, x2, 0);
#endif
acc1 = __SMLALDX(x3, y1, acc1);
a = *pScr;
b = *(pScr + 1);
#ifndef ARM_MATH_BIG_ENDIAN
x1 = __PKHBT(a, b, 16);
#else
x1 = __PKHBT(b, a, 16);
#endif
acc0 = __SMLALD(x2, y2, acc0);
acc2 = __SMLALD(x1, y2, acc2);
#ifndef ARM_MATH_BIG_ENDIAN
x3 = __PKHBT(x1, x2, 0);
#else
x3 = __PKHBT(x2, x1, 0);
#endif
acc3 = __SMLALDX(x3, y1, acc3);
acc1 = __SMLALDX(x3, y2, acc1);
a = *(pScr + 2);
b = *(pScr + 3);
#ifndef ARM_MATH_BIG_ENDIAN
x2 = __PKHBT(a, b, 16);
#else
x2 = __PKHBT(b, a, 16);
#endif
#ifndef ARM_MATH_BIG_ENDIAN
x3 = __PKHBT(x2, x1, 0);
#else
x3 = __PKHBT(x1, x2, 0);
#endif
acc3 = __SMLALDX(x3, y2, acc3);
#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */
pIn2 += 4U;
pScr += 4U;
/* Decrement the loop counter */
tapCnt--;
}
/* Update scratch pointer for remaining samples of smaller length sequence */
pScr -= 4U;
/* apply same above for remaining samples of smaller length sequence */
tapCnt = (srcBLen) & 3U;
while (tapCnt > 0U)
{
/* accumlate the results */
acc0 += (*pScr++ * *pIn2);
acc1 += (*pScr++ * *pIn2);
acc2 += (*pScr++ * *pIn2);
acc3 += (*pScr++ * *pIn2++);
pScr -= 3U;
/* Decrement the loop counter */
tapCnt--;
}
blkCnt--;
/* Store the results in the accumulators in the destination buffer. */
*pOut = (__SSAT(acc0 >> 15U, 16));
pOut += inc;
*pOut = (__SSAT(acc1 >> 15U, 16));
pOut += inc;
*pOut = (__SSAT(acc2 >> 15U, 16));
pOut += inc;
*pOut = (__SSAT(acc3 >> 15U, 16));
pOut += inc;
/* Initialization of inputB pointer */
pIn2 = py;
pScratch += 4U;
}
blkCnt = (srcALen + srcBLen - 1U) & 0x3;
/* Calculate correlation for remaining samples of Bigger length sequence */
while (blkCnt > 0)
{
/* Initialze temporary scratch pointer as scratch1 */
pScr = pScratch;
/* Clear Accumlators */
acc0 = 0;
tapCnt = (srcBLen) >> 1U;
while (tapCnt > 0U)
{
acc0 += (*pScr++ * *pIn2++);
acc0 += (*pScr++ * *pIn2++);
/* Decrement the loop counter */
tapCnt--;
}
tapCnt = (srcBLen) & 1U;
/* apply same above for remaining samples of smaller length sequence */
while (tapCnt > 0U)
{
/* accumlate the results */
acc0 += (*pScr++ * *pIn2++);
/* Decrement the loop counter */
tapCnt--;
}
blkCnt--;
/* Store the result in the accumulator in the destination buffer. */
*pOut = (q15_t) (__SSAT((acc0 >> 15), 16));
pOut += inc;
/* Initialization of inputB pointer */
pIn2 = py;
pScratch += 1U;
}
}
/**
* @} end of Corr group
*/
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<transformation>
<info>
<name>wordcount-mapper</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
</parameters>
<log>
<trans-log-table><connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STATUS</id><enabled>Y</enabled><name>STATUS</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name><subject/></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name><subject/></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name><subject/></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name><subject/></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name><subject/></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name><subject/></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>STARTDATE</id><enabled>Y</enabled><name>STARTDATE</name></field><field><id>ENDDATE</id><enabled>Y</enabled><name>ENDDATE</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>DEPDATE</id><enabled>Y</enabled><name>DEPDATE</name></field><field><id>REPLAYDATE</id><enabled>Y</enabled><name>REPLAYDATE</name></field><field><id>LOG_FIELD</id><enabled>Y</enabled><name>LOG_FIELD</name></field></trans-log-table>
<perf-log-table><connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>SEQ_NR</id><enabled>Y</enabled><name>SEQ_NR</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>INPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>INPUT_BUFFER_ROWS</name></field><field><id>OUTPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>OUTPUT_BUFFER_ROWS</name></field></perf-log-table>
<channel-log-table><connection/>
<schema/>
<table/>
<timeout_days/>
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>LOGGING_OBJECT_TYPE</id><enabled>Y</enabled><name>LOGGING_OBJECT_TYPE</name></field><field><id>OBJECT_NAME</id><enabled>Y</enabled><name>OBJECT_NAME</name></field><field><id>OBJECT_COPY</id><enabled>Y</enabled><name>OBJECT_COPY</name></field><field><id>REPOSITORY_DIRECTORY</id><enabled>Y</enabled><name>REPOSITORY_DIRECTORY</name></field><field><id>FILENAME</id><enabled>Y</enabled><name>FILENAME</name></field><field><id>OBJECT_ID</id><enabled>Y</enabled><name>OBJECT_ID</name></field><field><id>OBJECT_REVISION</id><enabled>Y</enabled><name>OBJECT_REVISION</name></field><field><id>PARENT_CHANNEL_ID</id><enabled>Y</enabled><name>PARENT_CHANNEL_ID</name></field><field><id>ROOT_CHANNEL_ID</id><enabled>Y</enabled><name>ROOT_CHANNEL_ID</name></field></channel-log-table>
<step-log-table><connection/>
<schema/>
<table/>
<timeout_days/>
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>LOG_FIELD</id><enabled>N</enabled><name>LOG_FIELD</name></field></step-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies>
</dependencies>
<partitionschemas>
</partitionschemas>
<slaveservers>
</slaveservers>
<clusterschemas>
</clusterschemas>
<created_user/>
<created_date>2010/12/30 23:29:15.795</created_date>
<modified_user>-</modified_user>
<modified_date>2010/07/15 10:12:26.133</modified_date>
</info>
<notepads>
</notepads>
<connection>
<name>CMS</name>
<server>${CMS_HOSTNAME}</server>
<type>MYSQL</type>
<access>Native</access>
<database>${CMS_DATABASE}</database>
<port>${CMS_PORT}</port>
<username>${CMS_USERNAME}</username>
<password>${CMS_PASSWORD}</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>${CMS_PORT}</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
<connection>
<name>DWH</name>
<server>${DWH_HOSTNAME}</server>
<type>MYSQL</type>
<access>Native</access>
<database>${DWH_DATABASE}</database>
<port>${DWH_PORT}</port>
<username>${DWH_USERNAME}</username>
<password>${DWH_PASSWORD}</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>${DWH_PORT}</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
<connection>
<name>LOGGING</name>
<server>${LOGGING_HOSTNAME}</server>
<type>MYSQL</type>
<access>Native</access>
<database>${LOGGING_DATABASE}</database>
<port>${LOGGING_PORT}</port>
<username>${LOGGING_USERNAME}</username>
<password>${LOGGING_PASSWORD}</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>${LOGGING_PORT}</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
<connection>
<name>Postgres</name>
<server>localhost</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>test</database>
<port>5432</port>
<username>postgres</username>
<password>Encrypted 2be98afc86aa7f2e4bb16bd64d980aac9</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>5432</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
<connection>
<name>STG</name>
<server>${STG_HOSTNAME}</server>
<type>MYSQL</type>
<access>Native</access>
<database>${STG_DATABASE}</database>
<port>${STG_PORT}</port>
<username>${STG_USERNAME}</username>
<password>${STG_PASSWORD}</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>${STG_PORT}</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
<order>
<hop> <from>Dev Generator</from><to>Split words to rows</to><enabled>N</enabled> </hop> <hop> <from>Split words to rows</from><to>Add value</to><enabled>Y</enabled> </hop> <hop> <from>Add value</from><to>Remove garbage</to><enabled>Y</enabled> </hop> <hop> <from>Remove garbage</from><to>Output</to><enabled>Y</enabled> </hop> <hop> <from>Injector</from><to>Split words to rows</to><enabled>Y</enabled> </hop> </order>
<step>
<name>Add value</name>
<type>Constant</type>
<description/>
<distribute>Y</distribute>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>outValue</name>
<type>Integer</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif>1</nullif>
<length>-1</length>
<precision>-1</precision>
</field>
</fields>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>510</xloc>
<yloc>222</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Dev Generator</name>
<type>RowGenerator</type>
<description/>
<distribute>Y</distribute>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>key</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif>14</nullif>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>value</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif>Hello world good bye world</nullif>
<length>-1</length>
<precision>-1</precision>
</field>
</fields>
<limit>1</limit>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>353</xloc>
<yloc>59</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Injector</name>
<type>Injector</type>
<description/>
<distribute>Y</distribute>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields> <field> <name>key</name>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
</field> <field> <name>value</name>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
</field> </fields> <cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>167</xloc>
<yloc>221</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Output</name>
<type>Dummy</type>
<description/>
<distribute>Y</distribute>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>778</xloc>
<yloc>221</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Remove garbage</name>
<type>SelectValues</type>
<description/>
<distribute>Y</distribute>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields> <select_unspecified>N</select_unspecified>
<remove> <name>key</name>
</remove> <remove> <name>value</name>
</remove> </fields> <cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>650</xloc>
<yloc>222</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Split words to rows</name>
<type>SplitFieldToRows3</type>
<description/>
<distribute>Y</distribute>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<splitfield>value</splitfield>
<delimiter> </delimiter>
<newfield>outKey</newfield>
<rownum>N</rownum>
<rownum_field/>
<resetrownumber>Y</resetrownumber>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>352</xloc>
<yloc>221</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling>
</step_error_handling>
<slave-step-copy-partition-distribution>
</slave-step-copy-partition-distribution>
<slave_transformation>N</slave_transformation>
</transformation>
|
{
"pile_set_name": "Github"
}
|
package typings.dojo
import org.scalablytyped.runtime.Instantiable2
import typings.dojo.dijit._editor.plugins.FontChoice.FontDropDown
import typings.dojo.dijit._editor.plugins.FontChoice.FontNameDropDown
import typings.dojo.dijit._editor.plugins.FontChoice.FontSizeDropDown
import typings.dojo.dijit._editor.plugins.FontChoice.FormatBlockDropDown
import typings.std.HTMLElement
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
trait TypeofFontChoice extends js.Object {
/**
* Permalink: http://dojotoolkit.org/api/1.9/dijit/_editor/plugins/FontChoice._FontDropDown.html
*
* Base class for widgets that contains a label (like "Font:")
* and a FilteringSelect drop down to pick a value.
* Used as Toolbar entry.
*
* @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties.
* @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree
*/
var _FontDropDown: Instantiable2[
js.UndefOr[/* params */ js.Object],
js.UndefOr[/* srcNodeRef */ HTMLElement],
FontDropDown
]
/**
* Permalink: http://dojotoolkit.org/api/1.9/dijit/_editor/plugins/FontChoice._FontNameDropDown.html
*
* Dropdown to select a font; goes in editor toolbar.
*
* @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties.
* @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree
*/
var _FontNameDropDown: Instantiable2[
js.UndefOr[/* params */ js.Object],
js.UndefOr[/* srcNodeRef */ HTMLElement],
FontNameDropDown
]
/**
* Permalink: http://dojotoolkit.org/api/1.9/dijit/_editor/plugins/FontChoice._FontSizeDropDown.html
*
* Dropdown to select a font size; goes in editor toolbar.
*
* @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties.
* @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree
*/
var _FontSizeDropDown: Instantiable2[
js.UndefOr[/* params */ js.Object],
js.UndefOr[/* srcNodeRef */ HTMLElement],
FontSizeDropDown
]
/**
* Permalink: http://dojotoolkit.org/api/1.9/dijit/_editor/plugins/FontChoice._FormatBlockDropDown.html
*
* Dropdown to select a format (like paragraph or heading); goes in editor toolbar.
*
* @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties.
* @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree
*/
var _FormatBlockDropDown: Instantiable2[
js.UndefOr[/* params */ js.Object],
js.UndefOr[/* srcNodeRef */ HTMLElement],
FormatBlockDropDown
]
}
object TypeofFontChoice {
@scala.inline
def apply(
_FontDropDown: Instantiable2[
js.UndefOr[/* params */ js.Object],
js.UndefOr[/* srcNodeRef */ HTMLElement],
FontDropDown
],
_FontNameDropDown: Instantiable2[
js.UndefOr[/* params */ js.Object],
js.UndefOr[/* srcNodeRef */ HTMLElement],
FontNameDropDown
],
_FontSizeDropDown: Instantiable2[
js.UndefOr[/* params */ js.Object],
js.UndefOr[/* srcNodeRef */ HTMLElement],
FontSizeDropDown
],
_FormatBlockDropDown: Instantiable2[
js.UndefOr[/* params */ js.Object],
js.UndefOr[/* srcNodeRef */ HTMLElement],
FormatBlockDropDown
]
): TypeofFontChoice = {
val __obj = js.Dynamic.literal(_FontDropDown = _FontDropDown.asInstanceOf[js.Any], _FontNameDropDown = _FontNameDropDown.asInstanceOf[js.Any], _FontSizeDropDown = _FontSizeDropDown.asInstanceOf[js.Any], _FormatBlockDropDown = _FormatBlockDropDown.asInstanceOf[js.Any])
__obj.asInstanceOf[TypeofFontChoice]
}
}
|
{
"pile_set_name": "Github"
}
|
module Amethyst
def self.new(app, app_path=__FILE__)
app.new app_path, app.name
end
module Base
class App
property :port
property name : String
getter :routes
@app : Middleware::Base | Dispatch::Router
@http_handler : Base::Handler
def initialize(app_path, app_type={{@type.name.stringify}})
@port = 8080
@name = File.basename(app_path).gsub(/.\w+\Z/, "")
self.class.settings.app_dir = ENV["PWD"]
self.class.settings.namespace = get_app_namespace(app_type)
set_default_middleware
@app = Middleware::MiddlewareStack.instance.build_middleware
@http_handler = Base::Handler.new(@app)
end
# Shortcut for Config
def self.settings
Base::Config.instance
end
# Shortcut for Router
def self.routes
Dispatch::Router.instance
end
# Shortcut for Logger instance
def self.logger
Base::Logger.instance
end
# Shortcut for Session Pool
def self.session
Session::Pool.instance
end
# Shortcut for MiddlewareStack instance
def self.middleware
Middleware::MiddlewareStack.instance
end
def self.use(middleware : Middleware::Base.class)
self.middleware.use middleware
end
def serve(port=8080)
host = "0.0.0.0"
@port = port.to_i
run_string = "[Amethyst #{VERSION}] serving application \"#{@name}\" at http://#{host}:#{@port}" #TODO move to Logger class
App.logger.log_string run_string
server = HTTP::Server.new host, port, @http_handler
server.listen
end
private def get_app_namespace(app_type)
if app_type == "<Program>"
return ""
end
sep = "::"
modules = app_type.split(sep)
namespace = ""
if modules.size > 1
modules.delete(modules.last)
namespace = modules.join(sep)+sep
end
namespace
end
# Sets default middleware for app
private def set_default_middleware
self.class.use Middleware::ShowExceptions
if self.class.settings.environment == "development"
self.class.use Middleware::HttpLogger
self.class.use Middleware::TimeLogger
end
self.class.use Middleware::Session
self.class.use Middleware::Static
end
end
end
end
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright (C) 2014 Broadcom Corporation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation version 2.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/clk-provider.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/clkdev.h>
#include <linux/of_address.h>
#include "clk-iproc.h"
#define IPROC_CLK_MAX_FREQ_POLICY 0x3
#define IPROC_CLK_POLICY_FREQ_OFFSET 0x008
#define IPROC_CLK_POLICY_FREQ_POLICY_FREQ_SHIFT 8
#define IPROC_CLK_POLICY_FREQ_POLICY_FREQ_MASK 0x7
#define IPROC_CLK_PLLARMA_OFFSET 0xc00
#define IPROC_CLK_PLLARMA_LOCK_SHIFT 28
#define IPROC_CLK_PLLARMA_PDIV_SHIFT 24
#define IPROC_CLK_PLLARMA_PDIV_MASK 0xf
#define IPROC_CLK_PLLARMA_NDIV_INT_SHIFT 8
#define IPROC_CLK_PLLARMA_NDIV_INT_MASK 0x3ff
#define IPROC_CLK_PLLARMB_OFFSET 0xc04
#define IPROC_CLK_PLLARMB_NDIV_FRAC_MASK 0xfffff
#define IPROC_CLK_PLLARMC_OFFSET 0xc08
#define IPROC_CLK_PLLARMC_BYPCLK_EN_SHIFT 8
#define IPROC_CLK_PLLARMC_MDIV_MASK 0xff
#define IPROC_CLK_PLLARMCTL5_OFFSET 0xc20
#define IPROC_CLK_PLLARMCTL5_H_MDIV_MASK 0xff
#define IPROC_CLK_PLLARM_OFFSET_OFFSET 0xc24
#define IPROC_CLK_PLLARM_SW_CTL_SHIFT 29
#define IPROC_CLK_PLLARM_NDIV_INT_OFFSET_SHIFT 20
#define IPROC_CLK_PLLARM_NDIV_INT_OFFSET_MASK 0xff
#define IPROC_CLK_PLLARM_NDIV_FRAC_OFFSET_MASK 0xfffff
#define IPROC_CLK_ARM_DIV_OFFSET 0xe00
#define IPROC_CLK_ARM_DIV_PLL_SELECT_OVERRIDE_SHIFT 4
#define IPROC_CLK_ARM_DIV_ARM_PLL_SELECT_MASK 0xf
#define IPROC_CLK_POLICY_DBG_OFFSET 0xec0
#define IPROC_CLK_POLICY_DBG_ACT_FREQ_SHIFT 12
#define IPROC_CLK_POLICY_DBG_ACT_FREQ_MASK 0x7
enum iproc_arm_pll_fid {
ARM_PLL_FID_CRYSTAL_CLK = 0,
ARM_PLL_FID_SYS_CLK = 2,
ARM_PLL_FID_CH0_SLOW_CLK = 6,
ARM_PLL_FID_CH1_FAST_CLK = 7
};
struct iproc_arm_pll {
struct clk_hw hw;
void __iomem *base;
unsigned long rate;
};
#define to_iproc_arm_pll(hw) container_of(hw, struct iproc_arm_pll, hw)
static unsigned int __get_fid(struct iproc_arm_pll *pll)
{
u32 val;
unsigned int policy, fid, active_fid;
val = readl(pll->base + IPROC_CLK_ARM_DIV_OFFSET);
if (val & (1 << IPROC_CLK_ARM_DIV_PLL_SELECT_OVERRIDE_SHIFT))
policy = val & IPROC_CLK_ARM_DIV_ARM_PLL_SELECT_MASK;
else
policy = 0;
/* something is seriously wrong */
BUG_ON(policy > IPROC_CLK_MAX_FREQ_POLICY);
val = readl(pll->base + IPROC_CLK_POLICY_FREQ_OFFSET);
fid = (val >> (IPROC_CLK_POLICY_FREQ_POLICY_FREQ_SHIFT * policy)) &
IPROC_CLK_POLICY_FREQ_POLICY_FREQ_MASK;
val = readl(pll->base + IPROC_CLK_POLICY_DBG_OFFSET);
active_fid = IPROC_CLK_POLICY_DBG_ACT_FREQ_MASK &
(val >> IPROC_CLK_POLICY_DBG_ACT_FREQ_SHIFT);
if (fid != active_fid) {
pr_debug("%s: fid override %u->%u\n", __func__, fid,
active_fid);
fid = active_fid;
}
pr_debug("%s: active fid: %u\n", __func__, fid);
return fid;
}
/*
* Determine the mdiv (post divider) based on the frequency ID being used.
* There are 4 sources that can be used to derive the output clock rate:
* - 25 MHz Crystal
* - System clock
* - PLL channel 0 (slow clock)
* - PLL channel 1 (fast clock)
*/
static int __get_mdiv(struct iproc_arm_pll *pll)
{
unsigned int fid;
int mdiv;
u32 val;
fid = __get_fid(pll);
switch (fid) {
case ARM_PLL_FID_CRYSTAL_CLK:
case ARM_PLL_FID_SYS_CLK:
mdiv = 1;
break;
case ARM_PLL_FID_CH0_SLOW_CLK:
val = readl(pll->base + IPROC_CLK_PLLARMC_OFFSET);
mdiv = val & IPROC_CLK_PLLARMC_MDIV_MASK;
if (mdiv == 0)
mdiv = 256;
break;
case ARM_PLL_FID_CH1_FAST_CLK:
val = readl(pll->base + IPROC_CLK_PLLARMCTL5_OFFSET);
mdiv = val & IPROC_CLK_PLLARMCTL5_H_MDIV_MASK;
if (mdiv == 0)
mdiv = 256;
break;
default:
mdiv = -EFAULT;
}
return mdiv;
}
static unsigned int __get_ndiv(struct iproc_arm_pll *pll)
{
u32 val;
unsigned int ndiv_int, ndiv_frac, ndiv;
val = readl(pll->base + IPROC_CLK_PLLARM_OFFSET_OFFSET);
if (val & (1 << IPROC_CLK_PLLARM_SW_CTL_SHIFT)) {
/*
* offset mode is active. Read the ndiv from the PLLARM OFFSET
* register
*/
ndiv_int = (val >> IPROC_CLK_PLLARM_NDIV_INT_OFFSET_SHIFT) &
IPROC_CLK_PLLARM_NDIV_INT_OFFSET_MASK;
if (ndiv_int == 0)
ndiv_int = 256;
ndiv_frac = val & IPROC_CLK_PLLARM_NDIV_FRAC_OFFSET_MASK;
} else {
/* offset mode not active */
val = readl(pll->base + IPROC_CLK_PLLARMA_OFFSET);
ndiv_int = (val >> IPROC_CLK_PLLARMA_NDIV_INT_SHIFT) &
IPROC_CLK_PLLARMA_NDIV_INT_MASK;
if (ndiv_int == 0)
ndiv_int = 1024;
val = readl(pll->base + IPROC_CLK_PLLARMB_OFFSET);
ndiv_frac = val & IPROC_CLK_PLLARMB_NDIV_FRAC_MASK;
}
ndiv = (ndiv_int << 20) | ndiv_frac;
return ndiv;
}
/*
* The output frequency of the ARM PLL is calculated based on the ARM PLL
* divider values:
* pdiv = ARM PLL pre-divider
* ndiv = ARM PLL multiplier
* mdiv = ARM PLL post divider
*
* The frequency is calculated by:
* ((ndiv * parent clock rate) / pdiv) / mdiv
*/
static unsigned long iproc_arm_pll_recalc_rate(struct clk_hw *hw,
unsigned long parent_rate)
{
struct iproc_arm_pll *pll = to_iproc_arm_pll(hw);
u32 val;
int mdiv;
u64 ndiv;
unsigned int pdiv;
/* in bypass mode, use parent rate */
val = readl(pll->base + IPROC_CLK_PLLARMC_OFFSET);
if (val & (1 << IPROC_CLK_PLLARMC_BYPCLK_EN_SHIFT)) {
pll->rate = parent_rate;
return pll->rate;
}
/* PLL needs to be locked */
val = readl(pll->base + IPROC_CLK_PLLARMA_OFFSET);
if (!(val & (1 << IPROC_CLK_PLLARMA_LOCK_SHIFT))) {
pll->rate = 0;
return 0;
}
pdiv = (val >> IPROC_CLK_PLLARMA_PDIV_SHIFT) &
IPROC_CLK_PLLARMA_PDIV_MASK;
if (pdiv == 0)
pdiv = 16;
ndiv = __get_ndiv(pll);
mdiv = __get_mdiv(pll);
if (mdiv <= 0) {
pll->rate = 0;
return 0;
}
pll->rate = (ndiv * parent_rate) >> 20;
pll->rate = (pll->rate / pdiv) / mdiv;
pr_debug("%s: ARM PLL rate: %lu. parent rate: %lu\n", __func__,
pll->rate, parent_rate);
pr_debug("%s: ndiv_int: %u, pdiv: %u, mdiv: %d\n", __func__,
(unsigned int)(ndiv >> 20), pdiv, mdiv);
return pll->rate;
}
static const struct clk_ops iproc_arm_pll_ops = {
.recalc_rate = iproc_arm_pll_recalc_rate,
};
void __init iproc_armpll_setup(struct device_node *node)
{
int ret;
struct iproc_arm_pll *pll;
struct clk_init_data init;
const char *parent_name;
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (WARN_ON(!pll))
return;
pll->base = of_iomap(node, 0);
if (WARN_ON(!pll->base))
goto err_free_pll;
init.name = node->name;
init.ops = &iproc_arm_pll_ops;
init.flags = 0;
parent_name = of_clk_get_parent_name(node, 0);
init.parent_names = (parent_name ? &parent_name : NULL);
init.num_parents = (parent_name ? 1 : 0);
pll->hw.init = &init;
ret = clk_hw_register(NULL, &pll->hw);
if (WARN_ON(ret))
goto err_iounmap;
ret = of_clk_add_hw_provider(node, of_clk_hw_simple_get, &pll->hw);
if (WARN_ON(ret))
goto err_clk_unregister;
return;
err_clk_unregister:
clk_hw_unregister(&pll->hw);
err_iounmap:
iounmap(pll->base);
err_free_pll:
kfree(pll);
}
|
{
"pile_set_name": "Github"
}
|
OBJS = net.o netdev.o veth.o loop.o pkb.o tap.o
SUBDIR = net
all:net_obj.o
net_obj.o:$(OBJS)
@echo " [LD] $(SUBDIR)/$@"
$(Q)$(LD) -r -o $@ $^
%.o:%.c
@echo " [CC] $(SUBDIR)/$@"
$(Q)$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -f *.o
|
{
"pile_set_name": "Github"
}
|
<?php
namespace Oro\Bundle\DataAuditBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
trait StringFieldTypeTrait
{
/**
* @var string
*
* @ORM\Column(name="old_text", type="text", nullable=true)
*/
protected $oldText;
/**
* @var string
*
* @ORM\Column(name="new_text", type="text", nullable=true)
*/
protected $newText;
}
|
{
"pile_set_name": "Github"
}
|
title lldvrm - signed long divide and remainder routine
;***
;lldvrm.asm - signed long divide and remainder routine
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;Purpose:
; defines the signed long divide and remainder routine
; __alldvrm
;
;*******************************************************************************
.xlist
include vcruntime.inc
include mm.inc
.list
;***
;lldvrm - signed long divide and remainder
;
;Purpose:
; Does a signed long divide and remainder of the arguments. Arguments are
; not changed.
;
;Entry:
; Arguments are passed on the stack:
; 1st pushed: divisor (QWORD)
; 2nd pushed: dividend (QWORD)
;
;Exit:
; EDX:EAX contains the quotient (dividend/divisor)
; EBX:ECX contains the remainder (divided % divisor)
; NOTE: this routine removes the parameters from the stack.
;
;Uses:
; ECX
;
;Exceptions:
;
;*******************************************************************************
CODESEG
_alldvrm PROC NEAR
.FPO (3, 4, 0, 0, 1, 0)
push edi
push esi
push ebp
; Set up the local stack and save the index registers. When this is done
; the stack frame will look as follows (assuming that the expression a/b will
; generate a call to alldvrm(a, b)):
;
; -----------------
; | |
; |---------------|
; | |
; |--divisor (b)--|
; | |
; |---------------|
; | |
; |--dividend (a)-|
; | |
; |---------------|
; | return addr** |
; |---------------|
; | EDI |
; |---------------|
; | ESI |
; |---------------|
; ESP---->| EBP |
; -----------------
;
DVND equ [esp + 16] ; stack address of dividend (a)
DVSR equ [esp + 24] ; stack address of divisor (b)
; Determine sign of the quotient (edi = 0 if result is positive, non-zero
; otherwise) and make operands positive.
; Sign of the remainder is kept in ebp.
xor edi,edi ; result sign assumed positive
xor ebp,ebp ; result sign assumed positive
mov eax,HIWORD(DVND) ; hi word of a
or eax,eax ; test to see if signed
jge short L1 ; skip rest if a is already positive
inc edi ; complement result sign flag
inc ebp ; complement result sign flag
mov edx,LOWORD(DVND) ; lo word of a
neg eax ; make a positive
neg edx
sbb eax,0
mov HIWORD(DVND),eax ; save positive value
mov LOWORD(DVND),edx
L1:
mov eax,HIWORD(DVSR) ; hi word of b
or eax,eax ; test to see if signed
jge short L2 ; skip rest if b is already positive
inc edi ; complement the result sign flag
mov edx,LOWORD(DVSR) ; lo word of a
neg eax ; make b positive
neg edx
sbb eax,0
mov HIWORD(DVSR),eax ; save positive value
mov LOWORD(DVSR),edx
L2:
;
; Now do the divide. First look to see if the divisor is less than 4194304K.
; If so, then we can use a simple algorithm with word divides, otherwise
; things get a little more complex.
;
; NOTE - eax currently contains the high order word of DVSR
;
or eax,eax ; check to see if divisor < 4194304K
jnz short L3 ; nope, gotta do this the hard way
mov ecx,LOWORD(DVSR) ; load divisor
mov eax,HIWORD(DVND) ; load high word of dividend
xor edx,edx
div ecx ; eax <- high order bits of quotient
mov ebx,eax ; save high bits of quotient
mov eax,LOWORD(DVND) ; edx:eax <- remainder:lo word of dividend
div ecx ; eax <- low order bits of quotient
mov esi,eax ; ebx:esi <- quotient
;
; Now we need to do a multiply so that we can compute the remainder.
;
mov eax,ebx ; set up high word of quotient
mul dword ptr LOWORD(DVSR) ; HIWORD(QUOT) * DVSR
mov ecx,eax ; save the result in ecx
mov eax,esi ; set up low word of quotient
mul dword ptr LOWORD(DVSR) ; LOWORD(QUOT) * DVSR
add edx,ecx ; EDX:EAX = QUOT * DVSR
jmp short L4 ; complete remainder calculation
;
; Here we do it the hard way. Remember, eax contains the high word of DVSR
;
L3:
mov ebx,eax ; ebx:ecx <- divisor
mov ecx,LOWORD(DVSR)
mov edx,HIWORD(DVND) ; edx:eax <- dividend
mov eax,LOWORD(DVND)
L5:
shr ebx,1 ; shift divisor right one bit
rcr ecx,1
shr edx,1 ; shift dividend right one bit
rcr eax,1
or ebx,ebx
jnz short L5 ; loop until divisor < 4194304K
div ecx ; now divide, ignore remainder
mov esi,eax ; save quotient
;
; We may be off by one, so to check, we will multiply the quotient
; by the divisor and check the result against the orignal dividend
; Note that we must also check for overflow, which can occur if the
; dividend is close to 2**64 and the quotient is off by 1.
;
mul dword ptr HIWORD(DVSR) ; QUOT * HIWORD(DVSR)
mov ecx,eax
mov eax,LOWORD(DVSR)
mul esi ; QUOT * LOWORD(DVSR)
add edx,ecx ; EDX:EAX = QUOT * DVSR
jc short L6 ; carry means Quotient is off by 1
;
; do long compare here between original dividend and the result of the
; multiply in edx:eax. If original is larger or equal, we are ok, otherwise
; subtract one (1) from the quotient.
;
cmp edx,HIWORD(DVND) ; compare hi words of result and original
ja short L6 ; if result > original, do subtract
jb short L7 ; if result < original, we are ok
cmp eax,LOWORD(DVND) ; hi words are equal, compare lo words
jbe short L7 ; if less or equal we are ok, else subtract
L6:
dec esi ; subtract 1 from quotient
sub eax,LOWORD(DVSR) ; subtract divisor from result
sbb edx,HIWORD(DVSR)
L7:
xor ebx,ebx ; ebx:esi <- quotient
L4:
;
; Calculate remainder by subtracting the result from the original dividend.
; Since the result is already in a register, we will do the subtract in the
; opposite direction and negate the result if necessary.
;
sub eax,LOWORD(DVND) ; subtract dividend from result
sbb edx,HIWORD(DVND)
;
; Now check the result sign flag to see if the result is supposed to be positive
; or negative. It is currently negated (because we subtracted in the 'wrong'
; direction), so if the sign flag is set we are done, otherwise we must negate
; the result to make it positive again.
;
dec ebp ; check result sign flag
jns short L9 ; result is ok, set up the quotient
neg edx ; otherwise, negate the result
neg eax
sbb edx,0
;
; Now we need to get the quotient into edx:eax and the remainder into ebx:ecx.
;
L9:
mov ecx,edx
mov edx,ebx
mov ebx,ecx
mov ecx,eax
mov eax,esi
;
; Just the cleanup left to do. edx:eax contains the quotient. Set the sign
; according to the save value, cleanup the stack, and return.
;
dec edi ; check to see if result is negative
jnz short L8 ; if EDI == 0, result should be negative
neg edx ; otherwise, negate the result
neg eax
sbb edx,0
;
; Restore the saved registers and return.
;
L8:
pop ebp
pop esi
pop edi
ret 16
_alldvrm ENDP
end
|
{
"pile_set_name": "Github"
}
|
<workspace name="timer_pwm_dma">
<project name="EFR32xG22_timer_pwm_dma"
device="EFR32MG22C224F512IM40">
<targets>
<name>slsproj</name>
<name>iar</name>
</targets>
<directories>
<cmsis>$PROJ_DIR$\..\..\..\..\..\platform\CMSIS</cmsis>
<device>$PROJ_DIR$\..\..\..\..\..\platform\Device\SiliconLabs</device>
<emlib>$PROJ_DIR$\..\..\..\..\..\platform\emlib</emlib>
<drivers>$PROJ_DIR$\..\..\..\..\..\hardware\kit\common\drivers</drivers>
<bsp>$PROJ_DIR$\..\..\..\..\..\hardware\kit\common\bsp</bsp>
<kitconfig>$PROJ_DIR$\..\..\..\..\..\hardware\kit\EFR32MG22_BRD4182A\config</kitconfig>
</directories>
<includepaths>
<path>##em-path-cmsis##\Include</path>
<path>##em-path-device##\EFR32MG22\Include</path>
<path>##em-path-emlib##\inc</path>
<path>##em-path-kitconfig##</path>
<path>##em-path-bsp##</path>
<path>##em-path-drivers##</path>
</includepaths>
<group name="CMSIS">
<source>##em-path-device##\EFR32MG22\Source\$IDE$\startup_efr32mg22.s</source>
<source>##em-path-device##\EFR32MG22\Source\system_efr32mg22.c</source>
</group>
<group name="emlib">
<source>##em-path-emlib##\src\em_core.c</source>
<source>##em-path-emlib##\src\em_cmu.c</source>
<source>##em-path-emlib##\src\em_gpio.c</source>
<source>##em-path-emlib##\src\em_system.c</source>
<source>##em-path-emlib##\src\em_emu.c</source>
<source>##em-path-emlib##\src\em_timer.c</source>
<source>##em-path-emlib##\src\em_ldma.c</source>
</group>
<group name="Source">
<source>$PROJ_DIR$\..\readme.txt</source>
<source>$PROJ_DIR$\..\src\main.c</source>
</group>
<cflags>
<define>RETARGET_VCOM</define>
</cflags>
</project>
</workspace>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" sourcelanguage="en_US">
<context>
<name>Authenticate</name>
<message>
<location filename="../authenticate.ui" line="14"/>
<source>Authentication Required</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../authenticate.ui" line="39"/>
<source>PolicyKit Authentication</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../authenticate.ui" line="197"/>
<source>For added security, confirm your password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../authenticate.ui" line="347"/>
<source>Authentication</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../authenticate.ui" line="434"/>
<source>Select User</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../authenticate.ui" line="459"/>
<source>Who do you want to authenticate as?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../authenticate.cpp" line="58"/>
<source>Incorrect Password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../authenticate.cpp" line="59"/>
<source>The password you entered was incorrect. Please enter your password again.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../authenticate.cpp" line="126"/>
<location filename="../authenticate.cpp" line="136"/>
<source>Authenticating as %1</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
|
{
"pile_set_name": "Github"
}
|
<p>When you dereference using :with, use $parent to access the parent context</p>
<p>998 wins</p>
<p>0 losses</p>
<p>2 ties</p>
<p>Best season evar: Detroit Red Wings</p>
|
{
"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"
}
|
/*!
* jQuery Mobile 1.4.2
* Git HEAD hash: 9d9a42a27d0c693e8b5569c3a10d771916af5045 <> Date: Fri Feb 28 2014 17:32:01 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
/* Some unsets */
.ui-mobile,
.ui-mobile body {
height: 99.9%;
}
.ui-mobile fieldset,
.ui-page {
padding: 0;
margin: 0;
}
.ui-mobile a img,
.ui-mobile fieldset {
border-width: 0;
}
/* Fixes for fieldset issues on IE10 and FF (see #6077) */
.ui-mobile fieldset {
min-width: 0;
}
@-moz-document url-prefix() {
.ui-mobile fieldset {
display: table-column;
vertical-align: middle;
}
}
/* Viewport */
.ui-mobile-viewport {
margin: 0;
overflow-x: visible;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust:none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* Issue #2066 */
body.ui-mobile-viewport,
div.ui-mobile-viewport {
overflow-x: hidden;
}
/* "page" containers - full-screen views, one should always be in view post-pageload */
.ui-mobile [data-role=page],
.ui-mobile [data-role=dialog],
.ui-page {
top: 0;
left: 0;
width: 100%;
min-height: 100%;
position: absolute;
display: none;
border: 0;
}
/* On ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
.ui-page {
outline: none;
}
.ui-mobile .ui-page-active {
display: block;
overflow: visible;
overflow-x: hidden;
}
@media screen and (orientation: portrait) {
.ui-mobile .ui-page {
min-height: 420px;
}
}
@media screen and (orientation: landscape) {
.ui-mobile .ui-page {
min-height: 300px;
}
}
/* Fouc */
.ui-mobile-rendering > * {
visibility: hidden;
}
/* Non-js content hiding */
.ui-nojs {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
/* Loading screen */
.ui-loading .ui-loader {
display: block;
}
.ui-loader {
display: none;
z-index: 9999999;
position: fixed;
top: 50%;
left: 50%;
border:0;
}
.ui-loader-default {
background: none;
filter: Alpha(Opacity=18);
opacity: .18;
width: 2.875em;
height: 2.875em;
margin-left: -1.4375em;
margin-top: -1.4375em;
}
.ui-loader-verbose {
width: 12.5em;
filter: Alpha(Opacity=88);
opacity: .88;
box-shadow: 0 1px 1px -1px #fff;
height: auto;
margin-left: -6.875em;
margin-top: -2.6875em;
padding: .625em;
}
.ui-loader-default h1 {
font-size: 0;
width: 0;
height: 0;
overflow: hidden;
}
.ui-loader-verbose h1 {
font-size: 1em;
margin: 0;
text-align: center;
}
.ui-loader .ui-icon-loading {
background-color: #000;
display: block;
margin: 0;
width: 2.75em;
height: 2.75em;
padding: .0625em;
-webkit-border-radius: 2.25em;
border-radius: 2.25em;
}
.ui-loader-verbose .ui-icon-loading {
margin: 0 auto .625em;
filter: Alpha(Opacity=75);
opacity: .75;
}
.ui-loader-textonly {
padding: .9375em;
margin-left: -7.1875em;
}
.ui-loader-textonly .ui-icon-loading {
display: none;
}
.ui-loader-fakefix {
position: absolute;
}
/* Headers, content panels */
.ui-bar,
.ui-body {
position: relative;
padding: .4em 1em;
overflow: hidden;
display: block;
clear: both;
}
.ui-bar h1,
.ui-bar h2,
.ui-bar h3,
.ui-bar h4,
.ui-bar h5,
.ui-bar h6 {
margin: 0;
padding: 0;
font-size: 1em;
display: inline-block;
}
.ui-header,
.ui-footer {
border-width: 1px 0;
border-style: solid;
position: relative;
}
.ui-header:empty,
.ui-footer:empty {
min-height: 2.6875em;
}
.ui-header .ui-title,
.ui-footer .ui-title {
font-size: 1em;
min-height: 1.1em;
text-align: center;
display: block;
margin: 0 30%;
padding: .7em 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
outline: 0 !important;
}
.ui-footer .ui-title {
margin: 0 1em;
}
.ui-content {
border-width: 0;
overflow: visible;
overflow-x: hidden;
padding: 1em;
}
/* Corner styling for dialogs and popups */
.ui-corner-all > .ui-header:first-child,
.ui-corner-all > .ui-content:first-child,
.ui-corner-all > .ui-footer:first-child {
-webkit-border-top-left-radius: inherit;
border-top-left-radius: inherit;
-webkit-border-top-right-radius: inherit;
border-top-right-radius: inherit;
}
.ui-corner-all > .ui-header:last-child,
.ui-corner-all > .ui-content:last-child,
.ui-corner-all > .ui-footer:last-child {
-webkit-border-bottom-left-radius: inherit;
border-bottom-left-radius: inherit;
-webkit-border-bottom-right-radius: inherit;
border-bottom-right-radius: inherit;
}
/* Buttons and icons */
.ui-btn {
font-size: 16px;
margin: .5em 0;
padding: .7em 1em;
display: block;
position: relative;
text-align: center;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ui-btn-icon-notext {
padding: 0;
width: 1.75em;
height: 1.75em;
text-indent: -9999px;
white-space: nowrap !important;
}
.ui-mini {
font-size: 12.5px;
}
.ui-mini .ui-btn {
font-size: inherit;
}
/* Make buttons in toolbars default to mini and inline. */
.ui-header .ui-btn,
.ui-footer .ui-btn {
font-size: 12.5px;
display: inline-block;
vertical-align: middle;
}
/* To ensure same top and left/right position when ui-btn-left/right are added to something other than buttons. */
.ui-header .ui-btn-left,
.ui-header .ui-btn-right {
font-size: 12.5px;
}
.ui-mini.ui-btn-icon-notext,
.ui-mini .ui-btn-icon-notext,
.ui-header .ui-btn-icon-notext,
.ui-footer .ui-btn-icon-notext {
font-size: 16px;
padding: 0;
}
.ui-btn-inline {
display: inline-block;
vertical-align: middle;
margin-right: .625em;
}
.ui-btn-icon-left {
padding-left: 2.5em;
}
.ui-btn-icon-right {
padding-right: 2.5em;
}
.ui-btn-icon-top {
padding-top: 2.5em;
}
.ui-btn-icon-bottom {
padding-bottom: 2.5em;
}
.ui-header .ui-btn-icon-top,
.ui-footer .ui-btn-icon-top,
.ui-header .ui-btn-icon-bottom,
.ui-footer .ui-btn-icon-bottom {
padding-left: .3125em;
padding-right: .3125em;
}
.ui-btn-icon-left:after,
.ui-btn-icon-right:after,
.ui-btn-icon-top:after,
.ui-btn-icon-bottom:after,
.ui-btn-icon-notext:after {
content: "";
position: absolute;
display: block;
width: 22px;
height: 22px;
}
.ui-btn-icon-notext:after,
.ui-btn-icon-left:after,
.ui-btn-icon-right:after {
top: 50%;
margin-top: -11px;
}
.ui-btn-icon-left:after {
left: .5625em;
}
.ui-btn-icon-right:after {
right: .5625em;
}
.ui-mini.ui-btn-icon-left:after,
.ui-mini .ui-btn-icon-left:after,
.ui-header .ui-btn-icon-left:after,
.ui-footer .ui-btn-icon-left:after {
left: .37em;
}
.ui-mini.ui-btn-icon-right:after,
.ui-mini .ui-btn-icon-right:after,
.ui-header .ui-btn-icon-right:after,
.ui-footer .ui-btn-icon-right:after {
right: .37em;
}
.ui-btn-icon-notext:after,
.ui-btn-icon-top:after,
.ui-btn-icon-bottom:after {
left: 50%;
margin-left: -11px;
}
.ui-btn-icon-top:after {
top: .5625em;
}
.ui-btn-icon-bottom:after {
top: auto;
bottom: .5625em;
}
/* Buttons in header position classes */
.ui-header .ui-btn-left,
.ui-header .ui-btn-right,
.ui-btn-left > [class*="ui-"],
.ui-btn-right > [class*="ui-"] {
margin: 0;
}
.ui-btn-left,
.ui-btn-right {
position: absolute;
top: .24em;
}
.ui-btn-left {
left: .4em;
}
.ui-btn-right {
right: .4em;
}
.ui-btn-icon-notext.ui-btn-left {
top: .3125em;
left: .3125em;
}
.ui-btn-icon-notext.ui-btn-right {
top: .3125em;
right: .3125em;
}
/* Button elements */
button.ui-btn,
.ui-controlgroup-controls button.ui-btn-icon-notext {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
width: 100%;
}
button.ui-btn-inline {
width: auto;
}
/* Firefox adds a 1px border in a button element. We negate this to make sure they have the same height as other buttons in controlgroups. */
button.ui-btn::-moz-focus-inner {
border: 0;
}
button.ui-btn-icon-notext,
.ui-controlgroup-horizontal .ui-controlgroup-controls button.ui-btn {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
width: 1.75em;
}
/* Form labels */
.ui-mobile label,
.ui-controlgroup-label {
display: block;
margin: 0 0 .4em;
}
/* Accessible content hiding */
/* ui-hide-label deprecated in 1.4. TODO: Remove in 1.5 */
.ui-hide-label > label,
.ui-hide-label .ui-controlgroup-label,
.ui-hide-label .ui-rangeslider label,
.ui-hidden-accessible {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
/* Used for hiding elements by the filterable widget. You can also use this class to hide list items or buttons in controlgroups; this ensures correct corner styling. */
.ui-screen-hidden {
display: none !important;
}
/* Transitions originally inspired by those from jQtouch, nice work, folks */
.ui-mobile-viewport-transitioning,
.ui-mobile-viewport-transitioning .ui-page {
width: 100%;
height: 100%;
overflow: hidden;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ui-page-pre-in {
opacity: 0;
}
.in {
-webkit-animation-timing-function: ease-out;
-webkit-animation-duration: 350ms;
-moz-animation-timing-function: ease-out;
-moz-animation-duration: 350ms;
animation-timing-function: ease-out;
animation-duration: 350ms;
}
.out {
-webkit-animation-timing-function: ease-in;
-webkit-animation-duration: 225ms;
-moz-animation-timing-function: ease-in;
-moz-animation-duration: 225ms;
animation-timing-function: ease-in;
animation-duration: 225ms;
}
@-webkit-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-moz-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-webkit-keyframes fadeout {
from { opacity: 1; }
to { opacity: 0; }
}
@-moz-keyframes fadeout {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes fadeout {
from { opacity: 1; }
to { opacity: 0; }
}
.fade.out {
opacity: 0;
-webkit-animation-duration: 125ms;
-webkit-animation-name: fadeout;
-moz-animation-duration: 125ms;
-moz-animation-name: fadeout;
animation-duration: 125ms;
animation-name: fadeout;
}
.fade.in {
opacity: 1;
-webkit-animation-duration: 225ms;
-webkit-animation-name: fadein;
-moz-animation-duration: 225ms;
-moz-animation-name: fadein;
animation-duration: 225ms;
animation-name: fadein;
}
.pop {
-webkit-transform-origin: 50% 50%;
-moz-transform-origin: 50% 50%;
transform-origin: 50% 50%;
}
.pop.in {
-webkit-transform: scale(1);
-webkit-animation-name: popin;
-webkit-animation-duration: 350ms;
-moz-transform: scale(1);
-moz-animation-name: popin;
-moz-animation-duration: 350ms;
transform: scale(1);
animation-name: popin;
animation-duration: 350ms;
opacity: 1;
}
.pop.out {
-webkit-animation-name: fadeout;
-webkit-animation-duration: 100ms;
-moz-animation-name: fadeout;
-moz-animation-duration: 100ms;
animation-name: fadeout;
animation-duration: 100ms;
opacity: 0;
}
.pop.in.reverse {
-webkit-animation-name: fadein;
-moz-animation-name: fadein;
animation-name: fadein;
}
.pop.out.reverse {
-webkit-transform: scale(.8);
-webkit-animation-name: popout;
-moz-transform: scale(.8);
-moz-animation-name: popout;
transform: scale(.8);
animation-name: popout;
}
@-webkit-keyframes popin {
from {
-webkit-transform: scale(.8);
opacity: 0;
}
to {
-webkit-transform: scale(1);
opacity: 1;
}
}
@-moz-keyframes popin {
from {
-moz-transform: scale(.8);
opacity: 0;
}
to {
-moz-transform: scale(1);
opacity: 1;
}
}
@keyframes popin {
from {
transform: scale(.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@-webkit-keyframes popout {
from {
-webkit-transform: scale(1);
opacity: 1;
}
to {
-webkit-transform: scale(.8);
opacity: 0;
}
}
@-moz-keyframes popout {
from {
-moz-transform: scale(1);
opacity: 1;
}
to {
-moz-transform: scale(.8);
opacity: 0;
}
}
@keyframes popout {
from {
transform: scale(1);
opacity: 1;
}
to {
transform: scale(.8);
opacity: 0;
}
}
/* keyframes for slidein from sides */
@-webkit-keyframes slideinfromright {
from { -webkit-transform: translate3d(100%,0,0); }
to { -webkit-transform: translate3d(0,0,0); }
}
@-moz-keyframes slideinfromright {
from { -moz-transform: translateX(100%); }
to { -moz-transform: translateX(0); }
}
@keyframes slideinfromright {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
@-webkit-keyframes slideinfromleft {
from { -webkit-transform: translate3d(-100%,0,0); }
to { -webkit-transform: translate3d(0,0,0); }
}
@-moz-keyframes slideinfromleft {
from { -moz-transform: translateX(-100%); }
to { -moz-transform: translateX(0); }
}
@keyframes slideinfromleft {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
/* keyframes for slideout to sides */
@-webkit-keyframes slideouttoleft {
from { -webkit-transform: translate3d(0,0,0); }
to { -webkit-transform: translate3d(-100%,0,0); }
}
@-moz-keyframes slideouttoleft {
from { -moz-transform: translateX(0); }
to { -moz-transform: translateX(-100%); }
}
@keyframes slideouttoleft {
from { transform: translateX(0); }
to { transform: translateX(-100%); }
}
@-webkit-keyframes slideouttoright {
from { -webkit-transform: translate3d(0,0,0); }
to { -webkit-transform: translate3d(100%,0,0); }
}
@-moz-keyframes slideouttoright {
from { -moz-transform: translateX(0); }
to { -moz-transform: translateX(100%); }
}
@keyframes slideouttoright {
from { transform: translateX(0); }
to { transform: translateX(100%); }
}
.slide.out, .slide.in {
-webkit-animation-timing-function: ease-out;
-webkit-animation-duration: 350ms;
-moz-animation-timing-function: ease-out;
-moz-animation-duration: 350ms;
animation-timing-function: ease-out;
animation-duration: 350ms;
}
.slide.out {
-webkit-transform: translate3d(-100%,0,0);
-webkit-animation-name: slideouttoleft;
-moz-transform: translateX(-100%);
-moz-animation-name: slideouttoleft;
transform: translateX(-100%);
animation-name: slideouttoleft;
}
.slide.in {
-webkit-transform: translate3d(0,0,0);
-webkit-animation-name: slideinfromright;
-moz-transform: translateX(0);
-moz-animation-name: slideinfromright;
transform: translateX(0);
animation-name: slideinfromright;
}
.slide.out.reverse {
-webkit-transform: translate3d(100%,0,0);
-webkit-animation-name: slideouttoright;
-moz-transform: translateX(100%);
-moz-animation-name: slideouttoright;
transform: translateX(100%);
animation-name: slideouttoright;
}
.slide.in.reverse {
-webkit-transform: translate3d(0,0,0);
-webkit-animation-name: slideinfromleft;
-moz-transform: translateX(0);
-moz-animation-name: slideinfromleft;
transform: translateX(0);
animation-name: slideinfromleft;
}
.slidefade.out {
-webkit-transform: translateX(-100%);
-webkit-animation-name: slideouttoleft;
-webkit-animation-duration: 225ms;
-moz-transform: translateX(-100%);
-moz-animation-name: slideouttoleft;
-moz-animation-duration: 225ms;
transform: translateX(-100%);
animation-name: slideouttoleft;
animation-duration: 225ms;
}
.slidefade.in {
-webkit-transform: translateX(0);
-webkit-animation-name: fadein;
-webkit-animation-duration: 200ms;
-moz-transform: translateX(0);
-moz-animation-name: fadein;
-moz-animation-duration: 200ms;
transform: translateX(0);
animation-name: fadein;
animation-duration: 200ms;
}
.slidefade.out.reverse {
-webkit-transform: translateX(100%);
-webkit-animation-name: slideouttoright;
-webkit-animation-duration: 200ms;
-moz-transform: translateX(100%);
-moz-animation-name: slideouttoright;
-moz-animation-duration: 200ms;
transform: translateX(100%);
animation-name: slideouttoright;
animation-duration: 200ms;
}
.slidefade.in.reverse {
-webkit-transform: translateX(0);
-webkit-animation-name: fadein;
-webkit-animation-duration: 200ms;
-moz-transform: translateX(0);
-moz-animation-name: fadein;
-moz-animation-duration: 200ms;
transform: translateX(0);
animation-name: fadein;
animation-duration: 200ms;
}
/* slide down */
.slidedown.out {
-webkit-animation-name: fadeout;
-webkit-animation-duration: 100ms;
-moz-animation-name: fadeout;
-moz-animation-duration: 100ms;
animation-name: fadeout;
animation-duration: 100ms;
}
.slidedown.in {
-webkit-transform: translateY(0);
-webkit-animation-name: slideinfromtop;
-webkit-animation-duration: 250ms;
-moz-transform: translateY(0);
-moz-animation-name: slideinfromtop;
-moz-animation-duration: 250ms;
transform: translateY(0);
animation-name: slideinfromtop;
animation-duration: 250ms;
}
.slidedown.in.reverse {
-webkit-animation-name: fadein;
-webkit-animation-duration: 150ms;
-moz-animation-name: fadein;
-moz-animation-duration: 150ms;
animation-name: fadein;
animation-duration: 150ms;
}
.slidedown.out.reverse {
-webkit-transform: translateY(-100%);
-webkit-animation-name: slideouttotop;
-webkit-animation-duration: 200ms;
-moz-transform: translateY(-100%);
-moz-animation-name: slideouttotop;
-moz-animation-duration: 200ms;
transform: translateY(-100%);
animation-name: slideouttotop;
animation-duration: 200ms;
}
@-webkit-keyframes slideinfromtop {
from { -webkit-transform: translateY(-100%); }
to { -webkit-transform: translateY(0); }
}
@-moz-keyframes slideinfromtop {
from { -moz-transform: translateY(-100%); }
to { -moz-transform: translateY(0); }
}
@keyframes slideinfromtop {
from { transform: translateY(-100%); }
to { transform: translateY(0); }
}
@-webkit-keyframes slideouttotop {
from { -webkit-transform: translateY(0); }
to { -webkit-transform: translateY(-100%); }
}
@-moz-keyframes slideouttotop {
from { -moz-transform: translateY(0); }
to { -moz-transform: translateY(-100%); }
}
@keyframes slideouttotop {
from { transform: translateY(0); }
to { transform: translateY(-100%); }
}
/* slide up */
.slideup.out {
-webkit-animation-name: fadeout;
-webkit-animation-duration: 100ms;
-moz-animation-name: fadeout;
-moz-animation-duration: 100ms;
animation-name: fadeout;
animation-duration: 100ms;
}
.slideup.in {
-webkit-transform: translateY(0);
-webkit-animation-name: slideinfrombottom;
-webkit-animation-duration: 250ms;
-moz-transform: translateY(0);
-moz-animation-name: slideinfrombottom;
-moz-animation-duration: 250ms;
transform: translateY(0);
animation-name: slideinfrombottom;
animation-duration: 250ms;
}
.slideup.in.reverse {
-webkit-animation-name: fadein;
-webkit-animation-duration: 150ms;
-moz-animation-name: fadein;
-moz-animation-duration: 150ms;
animation-name: fadein;
animation-duration: 150ms;
}
.slideup.out.reverse {
-webkit-transform: translateY(100%);
-webkit-animation-name: slideouttobottom;
-webkit-animation-duration: 200ms;
-moz-transform: translateY(100%);
-moz-animation-name: slideouttobottom;
-moz-animation-duration: 200ms;
transform: translateY(100%);
animation-name: slideouttobottom;
animation-duration: 200ms;
}
@-webkit-keyframes slideinfrombottom {
from { -webkit-transform: translateY(100%); }
to { -webkit-transform: translateY(0); }
}
@-moz-keyframes slideinfrombottom {
from { -moz-transform: translateY(100%); }
to { -moz-transform: translateY(0); }
}
@keyframes slideinfrombottom {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
@-webkit-keyframes slideouttobottom {
from { -webkit-transform: translateY(0); }
to { -webkit-transform: translateY(100%); }
}
@-moz-keyframes slideouttobottom {
from { -moz-transform: translateY(0); }
to { -moz-transform: translateY(100%); }
}
@keyframes slideouttobottom {
from { transform: translateY(0); }
to { transform: translateY(100%); }
}
/* The properties in this rule are only necessary for the 'flip' transition.
* We need specify the perspective to create a projection matrix. This will add
* some depth as the element flips. The depth number represents the distance of
* the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
* value.
*/
.viewport-flip {
-webkit-perspective: 1000;
-moz-perspective: 1000;
perspective: 1000;
position: absolute;
}
.flip {
-webkit-backface-visibility: hidden;
-webkit-transform: translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-moz-backface-visibility: hidden;
-moz-transform: translateX(0);
backface-visibility: hidden;
transform: translateX(0);
}
.flip.out {
-webkit-transform: rotateY(-90deg) scale(.9);
-webkit-animation-name: flipouttoleft;
-webkit-animation-duration: 175ms;
-moz-transform: rotateY(-90deg) scale(.9);
-moz-animation-name: flipouttoleft;
-moz-animation-duration: 175ms;
transform: rotateY(-90deg) scale(.9);
animation-name: flipouttoleft;
animation-duration: 175ms;
}
.flip.in {
-webkit-animation-name: flipintoright;
-webkit-animation-duration: 225ms;
-moz-animation-name: flipintoright;
-moz-animation-duration: 225ms;
animation-name: flipintoright;
animation-duration: 225ms;
}
.flip.out.reverse {
-webkit-transform: rotateY(90deg) scale(.9);
-webkit-animation-name: flipouttoright;
-moz-transform: rotateY(90deg) scale(.9);
-moz-animation-name: flipouttoright;
transform: rotateY(90deg) scale(.9);
animation-name: flipouttoright;
}
.flip.in.reverse {
-webkit-animation-name: flipintoleft;
-moz-animation-name: flipintoleft;
animation-name: flipintoleft;
}
@-webkit-keyframes flipouttoleft {
from { -webkit-transform: rotateY(0); }
to { -webkit-transform: rotateY(-90deg) scale(.9); }
}
@-moz-keyframes flipouttoleft {
from { -moz-transform: rotateY(0); }
to { -moz-transform: rotateY(-90deg) scale(.9); }
}
@keyframes flipouttoleft {
from { transform: rotateY(0); }
to { transform: rotateY(-90deg) scale(.9); }
}
@-webkit-keyframes flipouttoright {
from { -webkit-transform: rotateY(0) ; }
to { -webkit-transform: rotateY(90deg) scale(.9); }
}
@-moz-keyframes flipouttoright {
from { -moz-transform: rotateY(0); }
to { -moz-transform: rotateY(90deg) scale(.9); }
}
@keyframes flipouttoright {
from { transform: rotateY(0); }
to { transform: rotateY(90deg) scale(.9); }
}
@-webkit-keyframes flipintoleft {
from { -webkit-transform: rotateY(-90deg) scale(.9); }
to { -webkit-transform: rotateY(0); }
}
@-moz-keyframes flipintoleft {
from { -moz-transform: rotateY(-90deg) scale(.9); }
to { -moz-transform: rotateY(0); }
}
@keyframes flipintoleft {
from { transform: rotateY(-90deg) scale(.9); }
to { transform: rotateY(0); }
}
@-webkit-keyframes flipintoright {
from { -webkit-transform: rotateY(90deg) scale(.9); }
to { -webkit-transform: rotateY(0); }
}
@-moz-keyframes flipintoright {
from { -moz-transform: rotateY(90deg) scale(.9); }
to { -moz-transform: rotateY(0); }
}
@keyframes flipintoright {
from { transform: rotateY(90deg) scale(.9); }
to { transform: rotateY(0); }
}
/* The properties in this rule are only necessary for the 'flip' transition.
* We need specify the perspective to create a projection matrix. This will add
* some depth as the element flips. The depth number represents the distance of
* the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
* value.
*/
.viewport-turn {
-webkit-perspective: 200px;
-moz-perspective: 200px;
-ms-perspective: 200px;
perspective: 200px;
position: absolute;
}
.turn {
-webkit-backface-visibility: hidden;
-webkit-transform: translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-webkit-transform-origin: 0;
-moz-backface-visibility: hidden;
-moz-transform: translateX(0);
-moz-transform-origin: 0;
backface-visibility :hidden;
transform: translateX(0);
transform-origin: 0;
}
.turn.out {
-webkit-transform: rotateY(-90deg) scale(.9);
-webkit-animation-name: flipouttoleft;
-webkit-animation-duration: 125ms;
-moz-transform: rotateY(-90deg) scale(.9);
-moz-animation-name: flipouttoleft;
-moz-animation-duration: 125ms;
transform: rotateY(-90deg) scale(.9);
animation-name: flipouttoleft;
animation-duration: 125ms;
}
.turn.in {
-webkit-animation-name: flipintoright;
-webkit-animation-duration: 250ms;
-moz-animation-name: flipintoright;
-moz-animation-duration: 250ms;
animation-name: flipintoright;
animation-duration: 250ms;
}
.turn.out.reverse {
-webkit-transform: rotateY(90deg) scale(.9);
-webkit-animation-name: flipouttoright;
-moz-transform: rotateY(90deg) scale(.9);
-moz-animation-name: flipouttoright;
transform: rotateY(90deg) scale(.9);
animation-name: flipouttoright;
}
.turn.in.reverse {
-webkit-animation-name: flipintoleft;
-moz-animation-name: flipintoleft;
animation-name: flipintoleft;
}
@-webkit-keyframes flipouttoleft {
from { -webkit-transform: rotateY(0); }
to { -webkit-transform: rotateY(-90deg) scale(.9); }
}
@-moz-keyframes flipouttoleft {
from { -moz-transform: rotateY(0); }
to { -moz-transform: rotateY(-90deg) scale(.9); }
}
@keyframes flipouttoleft {
from { transform: rotateY(0); }
to { transform: rotateY(-90deg) scale(.9); }
}
@-webkit-keyframes flipouttoright {
from { -webkit-transform: rotateY(0) ; }
to { -webkit-transform: rotateY(90deg) scale(.9); }
}
@-moz-keyframes flipouttoright {
from { -moz-transform: rotateY(0); }
to { -moz-transform: rotateY(90deg) scale(.9); }
}
@keyframes flipouttoright {
from { transform: rotateY(0); }
to { transform: rotateY(90deg) scale(.9); }
}
@-webkit-keyframes flipintoleft {
from { -webkit-transform: rotateY(-90deg) scale(.9); }
to { -webkit-transform: rotateY(0); }
}
@-moz-keyframes flipintoleft {
from { -moz-transform: rotateY(-90deg) scale(.9); }
to { -moz-transform: rotateY(0); }
}
@keyframes flipintoleft {
from { transform: rotateY(-90deg) scale(.9); }
to { transform: rotateY(0); }
}
@-webkit-keyframes flipintoright {
from { -webkit-transform: rotateY(90deg) scale(.9); }
to { -webkit-transform: rotateY(0); }
}
@-moz-keyframes flipintoright {
from { -moz-transform: rotateY(90deg) scale(.9); }
to { -moz-transform: rotateY(0); }
}
@keyframes flipintoright {
from { transform: rotateY(90deg) scale(.9); }
to { transform: rotateY(0); }
}
/* flow transition */
.flow {
-webkit-transform-origin: 50% 30%;
-webkit-box-shadow: 0 0 20px rgba(0,0,0,.4);
-moz-transform-origin: 50% 30%;
-moz-box-shadow: 0 0 20px rgba(0,0,0,.4);
transform-origin: 50% 30%;
box-shadow: 0 0 20px rgba(0,0,0,.4);
}
.ui-dialog.flow {
-webkit-transform-origin: none;
-webkit-box-shadow: none;
-moz-transform-origin: none;
-moz-box-shadow: none;
transform-origin: none;
box-shadow: none;
}
.flow.out {
-webkit-transform: translateX(-100%) scale(.7);
-webkit-animation-name: flowouttoleft;
-webkit-animation-timing-function: ease;
-webkit-animation-duration: 350ms;
-moz-transform: translateX(-100%) scale(.7);
-moz-animation-name: flowouttoleft;
-moz-animation-timing-function: ease;
-moz-animation-duration: 350ms;
transform: translateX(-100%) scale(.7);
animation-name: flowouttoleft;
animation-timing-function: ease;
animation-duration: 350ms;
}
.flow.in {
-webkit-transform: translateX(0) scale(1);
-webkit-animation-name: flowinfromright;
-webkit-animation-timing-function: ease;
-webkit-animation-duration: 350ms;
-moz-transform: translateX(0) scale(1);
-moz-animation-name: flowinfromright;
-moz-animation-timing-function: ease;
-moz-animation-duration: 350ms;
transform: translateX(0) scale(1);
animation-name: flowinfromright;
animation-timing-function: ease;
animation-duration: 350ms;
}
.flow.out.reverse {
-webkit-transform: translateX(100%);
-webkit-animation-name: flowouttoright;
-moz-transform: translateX(100%);
-moz-animation-name: flowouttoright;
transform: translateX(100%);
animation-name: flowouttoright;
}
.flow.in.reverse {
-webkit-animation-name: flowinfromleft;
-moz-animation-name: flowinfromleft;
animation-name: flowinfromleft;
}
@-webkit-keyframes flowouttoleft {
0% { -webkit-transform: translateX(0) scale(1); }
60%, 70% { -webkit-transform: translateX(0) scale(.7); }
100% { -webkit-transform: translateX(-100%) scale(.7); }
}
@-moz-keyframes flowouttoleft {
0% { -moz-transform: translateX(0) scale(1); }
60%, 70% { -moz-transform: translateX(0) scale(.7); }
100% { -moz-transform: translateX(-100%) scale(.7); }
}
@keyframes flowouttoleft {
0% { transform: translateX(0) scale(1); }
60%, 70% { transform: translateX(0) scale(.7); }
100% { transform: translateX(-100%) scale(.7); }
}
@-webkit-keyframes flowouttoright {
0% { -webkit-transform: translateX(0) scale(1); }
60%, 70% { -webkit-transform: translateX(0) scale(.7); }
100% { -webkit-transform: translateX(100%) scale(.7); }
}
@-moz-keyframes flowouttoright {
0% { -moz-transform: translateX(0) scale(1); }
60%, 70% { -moz-transform: translateX(0) scale(.7); }
100% { -moz-transform: translateX(100%) scale(.7); }
}
@keyframes flowouttoright {
0% { transform: translateX(0) scale(1); }
60%, 70% { transform: translateX(0) scale(.7); }
100% { transform: translateX(100%) scale(.7); }
}
@-webkit-keyframes flowinfromleft {
0% { -webkit-transform: translateX(-100%) scale(.7); }
30%, 40% { -webkit-transform: translateX(0) scale(.7); }
100% { -webkit-transform: translateX(0) scale(1); }
}
@-moz-keyframes flowinfromleft {
0% { -moz-transform: translateX(-100%) scale(.7); }
30%, 40% { -moz-transform: translateX(0) scale(.7); }
100% { -moz-transform: translateX(0) scale(1); }
}
@keyframes flowinfromleft {
0% { transform: translateX(-100%) scale(.7); }
30%, 40% { transform: translateX(0) scale(.7); }
100% { transform: translateX(0) scale(1); }
}
@-webkit-keyframes flowinfromright {
0% { -webkit-transform: translateX(100%) scale(.7); }
30%, 40% { -webkit-transform: translateX(0) scale(.7); }
100% { -webkit-transform: translateX(0) scale(1); }
}
@-moz-keyframes flowinfromright {
0% { -moz-transform: translateX(100%) scale(.7); }
30%, 40% { -moz-transform: translateX(0) scale(.7); }
100% { -moz-transform: translateX(0) scale(1); }
}
@keyframes flowinfromright {
0% { transform: translateX(100%) scale(.7); }
30%, 40% { transform: translateX(0) scale(.7); }
100% { transform: translateX(0) scale(1); }
}
.ui-field-contain,
.ui-mobile fieldset.ui-field-contain {
display: block;
position: relative;
overflow: visible;
clear: both;
padding: .8em 0;
}
.ui-field-contain > label ~ [class*="ui-"],
.ui-field-contain .ui-controlgroup-controls {
margin: 0;
}
.ui-field-contain:last-child {
border-bottom-width: 0;
}
@media (min-width: 28em) {
.ui-field-contain,
.ui-mobile fieldset.ui-field-contain {
padding: 0;
margin: 1em 0;
border-bottom-width: 0;
}
.ui-field-contain:before,
.ui-field-contain:after {
content: "";
display: table;
}
.ui-field-contain:after {
clear: both;
}
.ui-field-contain > label,
.ui-field-contain .ui-controlgroup-label,
.ui-field-contain > .ui-rangeslider > label {
float: left;
width: 20%;
margin: .5em 2% 0 0;
}
.ui-popup .ui-field-contain > label,
.ui-popup .ui-field-contain .ui-controlgroup-label,
.ui-popup .ui-field-contain > .ui-rangeslider > label {
float: none;
width: auto;
margin: 0 0 .4em;
}
.ui-field-contain > label ~ [class*="ui-"],
.ui-field-contain .ui-controlgroup-controls {
float: left;
width: 78%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
/* ui-hide-label deprecated in 1.4. TODO: Remove in 1.5 */
.ui-hide-label > label ~ [class*="ui-"],
.ui-hide-label .ui-controlgroup-controls,
.ui-popup .ui-field-contain > label ~ [class*="ui-"],
.ui-popup .ui-field-contain .ui-controlgroup-controls {
float: none;
width: 100%;
}
.ui-field-contain > label ~ .ui-btn-inline {
width: auto;
margin-right: .625em;
}
}
/* content configurations. */
.ui-grid-a,
.ui-grid-b,
.ui-grid-c,
.ui-grid-d,
.ui-grid-solo {
overflow: hidden;
}
.ui-block-a,
.ui-block-b,
.ui-block-c,
.ui-block-d,
.ui-block-e {
margin: 0;
padding: 0;
border: 0;
float: left;
min-height: 1px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* force new row */
.ui-block-a {
clear: left;
}
ul.ui-grid-a,
ul.ui-grid-b,
ul.ui-grid-c,
ul.ui-grid-d,
ul.ui-grid-solo,
li.ui-block-a,
li.ui-block-b,
li.ui-block-c,
li.ui-block-d,
li.ui-block-e {
margin-left: 0;
margin-right: 0;
padding: 0;
list-style: none;
}
/* No margin in grids for 100% width button elements until we can use max-width: fill-available; */
[class*="ui-block-"] > button.ui-btn {
margin-right: 0;
margin-left: 0;
}
[class*="ui-block-"] > .ui-btn,
[class*="ui-block-"] > .ui-select,
[class*="ui-block-"] > .ui-checkbox,
[class*="ui-block-"] > .ui-radio,
[class*="ui-block-"] > button.ui-btn-inline,
[class*="ui-block-"] > button.ui-btn-icon-notext {
margin-right: .3125em;
margin-left: .3125em;
}
.ui-grid-a > .ui-block-a,
.ui-grid-a > .ui-block-b {
/* width: 49.95%; IE7 */
/* margin-right: -.5px; BB5 */
width: 50%;
}
.ui-grid-b > .ui-block-a,
.ui-grid-b > .ui-block-b,
.ui-grid-b > .ui-block-c {
/* width: 33.25%; IE7 */
/* margin-right: -.5px; BB5 */
width: 33.333%;
}
.ui-grid-c > .ui-block-a,
.ui-grid-c > .ui-block-b,
.ui-grid-c > .ui-block-c,
.ui-grid-c > .ui-block-d {
/* width: 24.925%; IE7 */
/* margin-right: -.5px; BB5 */
width: 25%;
}
.ui-grid-d > .ui-block-a,
.ui-grid-d > .ui-block-b,
.ui-grid-d > .ui-block-c,
.ui-grid-d > .ui-block-d,
.ui-grid-d > .ui-block-e {
/* width: 19.925%; IE7 */
width: 20%;
}
.ui-grid-solo > .ui-block-a {
width: 100%;
float: none;
}
/* preset breakpoint to switch to stacked grid styles below 35em (560px) */
@media (max-width: 35em) {
.ui-responsive > .ui-block-a,
.ui-responsive > .ui-block-b,
.ui-responsive > .ui-block-c,
.ui-responsive > .ui-block-d,
.ui-responsive > .ui-block-e {
width: 100%;
float: none;
}
}
/* fixed page header & footer configuration */
.ui-header-fixed,
.ui-footer-fixed {
left: 0;
right: 0;
width: 100%;
position: fixed;
z-index: 1000;
}
.ui-header-fixed {
top: -1px;
padding-top: 1px;
}
.ui-header-fixed.ui-fixed-hidden {
top: 0;
padding-top: 0;
}
.ui-header-fixed .ui-btn-left,
.ui-header-fixed .ui-btn-right {
margin-top: 1px;
}
.ui-header-fixed.ui-fixed-hidden .ui-btn-left,
.ui-header-fixed.ui-fixed-hidden .ui-btn-right {
margin-top: 0;
}
.ui-footer-fixed {
bottom: -1px;
padding-bottom: 1px;
}
.ui-footer-fixed.ui-fixed-hidden {
bottom: 0;
padding-bottom: 0;
}
.ui-header-fullscreen,
.ui-footer-fullscreen {
filter: Alpha(Opacity=90);
opacity: .9;
}
/* updatePagePadding() will update the padding to actual height of header and footer. */
.ui-page-header-fixed {
padding-top: 2.8125em;
}
.ui-page-footer-fixed {
padding-bottom: 2.8125em;
}
.ui-page-header-fullscreen > .ui-content,
.ui-page-footer-fullscreen > .ui-content {
padding: 0;
}
.ui-fixed-hidden {
position: absolute;
}
/* Tap toggle: hide external fixed footer. See issue #6604 */
.ui-footer-fixed.ui-fixed-hidden {
display: none;
}
.ui-page .ui-footer-fixed.ui-fixed-hidden {
display: block
}
.ui-page-header-fullscreen .ui-fixed-hidden,
.ui-page-footer-fullscreen .ui-fixed-hidden {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
.ui-header-fixed .ui-btn,
.ui-footer-fixed .ui-btn {
z-index: 10;
}
/* workarounds for other widgets */
.ui-android-2x-fixed .ui-li-has-thumb {
-webkit-transform: translate3d(0,0,0);
}
.ui-navbar {
max-width: 100%;
}
.ui-navbar ul:before,
.ui-navbar ul:after {
content: "";
display: table;
}
.ui-navbar ul:after {
clear: both;
}
.ui-navbar ul {
list-style: none;
margin: 0;
padding: 0;
position: relative;
display: block;
border: 0;
max-width: 100%;
overflow: visible;
}
.ui-navbar li .ui-btn {
font-size: 12.5px;
display: block;
margin: 0;
border-right-width: 0;
}
.ui-navbar .ui-btn:focus {
z-index: 1;
}
/* fixes gaps caused by subpixel problem */
.ui-navbar li:last-child .ui-btn {
margin-right: -4px;
}
.ui-navbar li:last-child .ui-btn:after {
margin-right: 4px;
}
.ui-content .ui-navbar li:last-child .ui-btn,
.ui-content .ui-navbar .ui-grid-duo .ui-block-b .ui-btn {
border-right-width: 1px;
margin-right: 0;
}
.ui-content .ui-navbar li:last-child .ui-btn:after,
.ui-content .ui-navbar .ui-grid-duo .ui-block-b .ui-btn:after {
margin-right: 0;
}
.ui-navbar .ui-grid-duo .ui-block-a:last-child .ui-btn {
border-right-width: 1px;
margin-right: -1px;
}
.ui-navbar .ui-grid-duo .ui-block-a:last-child .ui-btn:after {
margin-right: 1px;
}
.ui-navbar .ui-grid-duo .ui-btn {
border-top-width: 0;
}
.ui-navbar .ui-grid-duo .ui-block-a:first-child .ui-btn,
.ui-navbar .ui-grid-duo .ui-block-a:first-child + .ui-block-b .ui-btn {
border-top-width: 1px;
}
.ui-header .ui-navbar .ui-btn,
.ui-footer .ui-navbar .ui-btn {
border-top-width: 0;
border-bottom-width: 0;
}
.ui-header .ui-navbar .ui-grid-duo .ui-block-a:first-child .ui-btn,
.ui-footer .ui-navbar .ui-grid-duo .ui-block-a:first-child .ui-btn,
.ui-header .ui-navbar .ui-grid-duo .ui-block-a:first-child + .ui-block-b .ui-btn,
.ui-footer .ui-navbar .ui-grid-duo .ui-block-a:first-child + .ui-block-b .ui-btn {
border-top-width: 0;
}
.ui-header .ui-title ~ .ui-navbar .ui-btn,
.ui-footer .ui-title ~ .ui-navbar .ui-btn,
.ui-header .ui-navbar .ui-grid-duo .ui-btn,
.ui-footer .ui-navbar .ui-grid-duo .ui-btn,
.ui-header .ui-title ~ .ui-navbar .ui-grid-duo .ui-block-a:first-child .ui-btn,
.ui-footer .ui-title ~ .ui-navbar .ui-grid-duo .ui-block-a:first-child .ui-btn,
.ui-header .ui-title ~ .ui-navbar .ui-grid-duo .ui-block-a:first-child + .ui-block-b .ui-btn,
.ui-footer .ui-title ~ .ui-navbar .ui-grid-duo .ui-block-a:first-child + .ui-block-b .ui-btn {
border-top-width: 1px;
}
/* Hide the native input element */
.ui-input-btn input {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 0;
border: 0;
outline: 0;
-webkit-border-radius: inherit;
border-radius: inherit;
-webkit-appearance: none;
-moz-appearance: none;
cursor: pointer;
background: #fff;
background: rgba(255,255,255,0);
filter: Alpha(Opacity=0);
opacity: .1;
font-size: 1px;
text-indent: -9999px;
z-index: 2;
}
/* Fixes IE/WP filter alpha opacity bugs */
.ui-input-btn.ui-state-disabled input {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
.ui-collapsible {
margin: 0 -1em;
}
.ui-collapsible-inset,
.ui-collapsible-set {
margin: .5em 0;
}
.ui-collapsible-heading {
display: block;
margin: 0;
padding: 0;
position: relative;
}
.ui-collapsible-heading .ui-btn {
text-align: left;
margin: 0;
border-left-width: 0;
border-right-width: 0;
}
.ui-collapsible-heading .ui-btn-icon-top,
.ui-collapsible-heading .ui-btn-icon-bottom {
text-align: center;
}
.ui-collapsible-inset .ui-collapsible-heading .ui-btn {
border-right-width: 1px;
border-left-width: 1px;
}
.ui-collapsible-collapsed + .ui-collapsible:not(.ui-collapsible-inset) > .ui-collapsible-heading .ui-btn {
border-top-width: 0;
}
.ui-collapsible-set .ui-collapsible:not(.ui-collapsible-inset) .ui-collapsible-heading .ui-btn {
border-top-width: 1px;
}
.ui-collapsible-heading-status {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
.ui-collapsible-content {
display: block;
margin: 0;
padding: .5em 1em;
}
.ui-collapsible-themed-content .ui-collapsible-content {
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 1px;
border-style: solid;
}
.ui-collapsible-inset.ui-collapsible-themed-content .ui-collapsible-content {
border-left-width: 1px;
border-right-width: 1px;
}
.ui-collapsible-inset .ui-collapsible-content {
margin: 0;
}
.ui-collapsible-content-collapsed {
display: none;
}
.ui-collapsible-set > .ui-collapsible.ui-corner-all {
-webkit-border-radius: 0;
border-radius: 0;
}
.ui-collapsible-heading,
.ui-collapsible-heading > .ui-btn {
-webkit-border-radius: inherit;
border-radius: inherit;
}
.ui-collapsible-set .ui-collapsible.ui-first-child {
-webkit-border-top-right-radius: inherit;
border-top-right-radius: inherit;
-webkit-border-top-left-radius: inherit;
border-top-left-radius: inherit;
}
.ui-collapsible-content,
.ui-collapsible-set .ui-collapsible.ui-last-child {
-webkit-border-bottom-right-radius: inherit;
border-bottom-right-radius: inherit;
-webkit-border-bottom-left-radius: inherit;
border-bottom-left-radius: inherit;
}
.ui-collapsible-themed-content:not(.ui-collapsible-collapsed) > .ui-collapsible-heading {
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
}
.ui-collapsible-set .ui-collapsible {
margin: -1px -1em 0;
}
.ui-collapsible-set .ui-collapsible-inset {
margin: -1px 0 0;
}
.ui-collapsible-set .ui-collapsible.ui-first-child {
margin-top: 0;
}
.ui-controlgroup,
fieldset.ui-controlgroup {
padding: 0;
margin: .5em 0;
}
.ui-field-contain .ui-controlgroup,
.ui-field-contain fieldset.ui-controlgroup {
margin: 0;
}
.ui-mini .ui-controlgroup-label {
font-size: 16px;
}
.ui-controlgroup.ui-mini .ui-btn-icon-notext,
.ui-controlgroup .ui-mini.ui-btn-icon-notext {
font-size: inherit;
}
.ui-controlgroup-controls .ui-btn,
.ui-controlgroup-controls .ui-checkbox,
.ui-controlgroup-controls .ui-radio,
.ui-controlgroup-controls .ui-select {
margin: 0;
}
.ui-controlgroup-controls .ui-btn:focus,
.ui-controlgroup-controls .ui-btn.ui-focus {
z-index: 1;
}
.ui-controlgroup-controls li {
list-style: none;
}
.ui-controlgroup-horizontal .ui-controlgroup-controls {
display: inline-block;
vertical-align: middle;
}
.ui-controlgroup-horizontal .ui-controlgroup-controls:before,
.ui-controlgroup-horizontal .ui-controlgroup-controls:after {
content: "";
display: table;
}
.ui-controlgroup-horizontal .ui-controlgroup-controls:after {
clear: both;
}
.ui-controlgroup-horizontal .ui-controlgroup-controls > .ui-btn,
.ui-controlgroup-horizontal .ui-controlgroup-controls li > .ui-btn,
.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-checkbox,
.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-radio,
.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-select {
float: left;
clear: none;
}
.ui-controlgroup-horizontal .ui-controlgroup-controls button.ui-btn,
.ui-controlgroup-controls .ui-btn-icon-notext {
width: auto;
}
.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-btn-icon-notext,
.ui-controlgroup-horizontal .ui-controlgroup-controls button.ui-btn-icon-notext {
width: 1.5em;
}
.ui-controlgroup-controls .ui-btn-icon-notext {
height: auto;
padding: .7em 1em;
}
.ui-controlgroup-vertical .ui-controlgroup-controls .ui-btn {
border-bottom-width: 0;
}
.ui-controlgroup-vertical .ui-controlgroup-controls .ui-btn.ui-last-child {
border-bottom-width: 1px;
}
.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-btn {
border-right-width: 0;
}
.ui-controlgroup-horizontal .ui-controlgroup-controls .ui-btn.ui-last-child {
border-right-width: 1px;
}
.ui-controlgroup-controls .ui-btn-corner-all,
.ui-controlgroup-controls .ui-btn.ui-corner-all {
-webkit-border-radius: 0;
border-radius: 0;
}
.ui-controlgroup-controls,
.ui-controlgroup-controls .ui-radio,
.ui-controlgroup-controls .ui-checkbox,
.ui-controlgroup-controls .ui-select,
.ui-controlgroup-controls li {
-webkit-border-radius: inherit;
border-radius: inherit;
}
.ui-controlgroup-vertical .ui-btn.ui-first-child {
-webkit-border-top-left-radius: inherit;
border-top-left-radius: inherit;
-webkit-border-top-right-radius: inherit;
border-top-right-radius: inherit;
}
.ui-controlgroup-vertical .ui-btn.ui-last-child {
-webkit-border-bottom-left-radius: inherit;
border-bottom-left-radius: inherit;
-webkit-border-bottom-right-radius: inherit;
border-bottom-right-radius: inherit;
}
.ui-controlgroup-horizontal .ui-btn.ui-first-child {
-webkit-border-top-left-radius: inherit;
border-top-left-radius: inherit;
-webkit-border-bottom-left-radius: inherit;
border-bottom-left-radius: inherit;
}
.ui-controlgroup-horizontal .ui-btn.ui-last-child {
-webkit-border-top-right-radius: inherit;
border-top-right-radius: inherit;
-webkit-border-bottom-right-radius: inherit;
border-bottom-right-radius: inherit;
}
.ui-controlgroup-controls a.ui-shadow:not(:focus),
.ui-controlgroup-controls button.ui-shadow:not(:focus),
.ui-controlgroup-controls div.ui-shadow:not(.ui-focus) {
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
/* Fixes legend not wrapping on IE10 */
.ui-controlgroup-label legend {
max-width: 100%;
}
.ui-controlgroup-controls > label {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
.ui-dialog {
background: none !important; /* this is to ensure that dialog theming does not apply (by default at least) on the page div */
}
.ui-dialog-contain {
width: 92.5%;
max-width: 500px;
margin: 10% auto 1em auto;
padding: 0;
position: relative;
top: -1em;
}
.ui-dialog-contain > .ui-header,
.ui-dialog-contain > .ui-content,
.ui-dialog-contain > .ui-footer {
display: block;
position: relative;
width: auto;
margin: 0;
}
.ui-dialog-contain > .ui-header {
overflow: hidden;
z-index: 10;
padding: 0;
border-top-width: 0;
}
.ui-dialog-contain > .ui-footer {
z-index: 10;
padding: 0 1em;
border-bottom-width: 0;
}
.ui-popup-open .ui-header-fixed,
.ui-popup-open .ui-footer-fixed {
position: absolute !important; /* See issues #4816, #4844 and #4874 and popup.js */
}
.ui-popup-screen {
background-image: url("data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="); /* Necessary to set some form of background to ensure element is clickable in IE6/7. While legacy IE won't understand the data-URI'd image, it ensures no additional requests occur in all other browsers with little overhead. */
top: 0;
left: 0;
right: 0;
bottom: 1px;
position: absolute;
filter: Alpha(Opacity=0);
opacity: 0;
z-index: 1099;
}
.ui-popup-screen.in {
opacity: 0.5;
filter: Alpha(Opacity=50);
}
.ui-popup-screen.out {
opacity: 0;
filter: Alpha(Opacity=0);
}
.ui-popup-container {
z-index: 1100;
display: inline-block;
position: absolute;
padding: 0;
outline: 0;
}
.ui-popup {
position: relative;
}
.ui-popup.ui-body-inherit {
border-width: 1px;
border-style: solid;
}
.ui-popup-hidden {
left: 0;
top: 0;
position: absolute !important;
visibility: hidden;
}
.ui-popup-truncate {
height: 1px;
width: 1px;
margin: -1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
.ui-popup.ui-content,
.ui-popup .ui-content {
overflow: visible;
}
.ui-popup > .ui-header {
border-top-width: 0;
}
.ui-popup > .ui-footer {
border-bottom-width: 0;
}
.ui-popup > p,
.ui-popup > h1,
.ui-popup > h2,
.ui-popup > h3,
.ui-popup > h4,
.ui-popup > h5,
.ui-popup > h6 {
margin: .5em .4375em;
}
.ui-popup > span {
display: block;
margin: .5em .4375em;
}
.ui-popup-container .ui-content > p,
.ui-popup-container .ui-content > h1,
.ui-popup-container .ui-content > h2,
.ui-popup-container .ui-content > h3,
.ui-popup-container .ui-content > h4,
.ui-popup-container .ui-content > h5,
.ui-popup-container .ui-content > h6 {
margin: .5em 0;
}
.ui-popup-container .ui-content > span {
margin: 0;
}
.ui-popup-container .ui-content > p:first-child,
.ui-popup-container .ui-content > h1:first-child,
.ui-popup-container .ui-content > h2:first-child,
.ui-popup-container .ui-content > h3:first-child,
.ui-popup-container .ui-content > h4:first-child,
.ui-popup-container .ui-content > h5:first-child,
.ui-popup-container .ui-content > h6:first-child {
margin-top: 0;
}
.ui-popup-container .ui-content > p:last-child,
.ui-popup-container .ui-content > h1:last-child,
.ui-popup-container .ui-content > h2:last-child,
.ui-popup-container .ui-content > h3:last-child,
.ui-popup-container .ui-content > h4:last-child,
.ui-popup-container .ui-content > h5:last-child,
.ui-popup-container .ui-content > h6:last-child {
margin-bottom: 0;
}
.ui-popup > img {
max-width: 100%;
max-height: 100%;
vertical-align: middle;
}
.ui-popup:not(.ui-content) > img:only-child,
.ui-popup:not(.ui-content) > .ui-btn-left:first-child + img:last-child,
.ui-popup:not(.ui-content) > .ui-btn-right:first-child + img:last-child {
-webkit-border-radius: inherit;
border-radius: inherit;
}
.ui-popup iframe {
vertical-align: middle;
}
.ui-popup > .ui-btn-left,
.ui-popup > .ui-btn-right {
position: absolute;
top: -11px;
margin: 0;
z-index: 1101;
}
.ui-popup > .ui-btn-left {
left: -11px;
}
.ui-popup > .ui-btn-right {
right: -11px;
}
/* Dimensions related to the popup arrow
-----------------------------------------------------------------------------------------------------------*/
/* desired triangle height: 10px */
/**
* guide for the arrow - its width, height, and offset are theme-dependent and
* should be expessed as left, right, top, bottom, so that the element bearing
* such a class becomes stretched inside its parent position: relative element.
* The left/top/right/bottom specified below should reflect the corresponding
* border radii and so it leaves room for the shadow:
* ..--------------------..
* ." ^ top ".
* / v \
* | +------------------+ |
* | | | |
* | left| |right|
* |<--->| |<--->|
* | +------------------+ |
* \ ^ /
* `. v bottom .'
* ""--------------------""
* The idea is that the top/left of the arrow container box does not move to a
* coordinate smaller than the top/left of the guide and the right/bottom of
* the arrow container box does not move to a coordinate larger than the
* bottom/right of the guide. This will help us avoid the following situation:
* ..--------------------..
* ." ^ top ".
* /|/ v \
* / | +------------------+ |
* \ | | | |
* \| left| |right|
* |<--->| |<--->|
* | +------------------+ |
* \ ^ /
* `. v bottom .'
* ""--------------------""
* The arrow should not receive a top/left coordinate such that it is too close
* to one of the corners, because then at first the shadow of the arrow and,
* given a coordinate even closer to the corner, even the body of the arrow will
* "stick out" of the corner of the popup. The guide provides a hint to the
* arrow positioning code as to which range of values is acceptable for the
* arrow container's top/left coordinate.
**/
.ui-popup-arrow-container {
width: 20px;
height: 20px;
}
/* aside from the "infinities" (-1000,2000), triangle height is used */
.ui-popup-arrow-container.ui-popup-arrow-l {
left: -10px;
clip: rect(-1000px,10px,2000px,-1000px);
}
.ui-popup-arrow-container.ui-popup-arrow-t {
top: -10px;
clip: rect(-1000px,2000px,10px,-1000px);
}
.ui-popup-arrow-container.ui-popup-arrow-r {
right: -10px;
clip: rect(-1000px,2000px,2000px,10px);
}
.ui-popup-arrow-container.ui-popup-arrow-b {
bottom: -10px;
clip: rect(10px,2000px,1000px,-1000px);
}
/**
* For each side, the arrow is twice the desired size and its corner is aligned
* with the edge of the container:
*
* /\ /\ +----+ /\
* / \ / \ | /\ |top / \
* +----+ \ / +----+ +-->|/ \| / \
* left| / | \ / | \ |right | | | / \
* |/ | \ / | \| | /| |\ / \
* |\ | / \ | /| | / +----+ \ \ +----+ /
* | \ | / \ | / | | \ / \| |/
* +----+ / \ +----+ | \ / | |
* ^ \ / \ / ^ | \ / +->|\ /|
* | \/ \/ | | \ / | | \/ |bottom
* | | | \/ | +----+
* +-------------------+--------+-----------+
* |
* arrow container
* (clips arrow)
**/
.ui-popup-arrow-container .ui-popup-arrow {
/* (4*desired triangle height)/sqrt(2) - does not account for border - centred within the outer rectangle */
width: 28.284271247px;
height: 28.284271247px;
border-width: 1px;
border-style: solid;
}
.ui-popup-arrow-container.ui-popup-arrow-t .ui-popup-arrow {
left: -4.142135623px;
top: 5.857864376px;
}
.ui-popup-arrow-container.ui-popup-arrow-b .ui-popup-arrow {
left: -4.142135623px;
top: -14.142135623px;
}
.ui-popup-arrow-container.ui-popup-arrow-l .ui-popup-arrow {
left: 5.857864376px;
top: -4.142135623px;
}
.ui-popup-arrow-container.ui-popup-arrow-r .ui-popup-arrow {
left: -14.142135623px;
top: -4.142135623px;
}
/* Fix rotation center for oldIE - see http://www.useragentman.com/IETransformsTranslator/ */
.ui-popup-arrow-container.ui-popup-arrow-t.ie .ui-popup-arrow {
margin-left: -5.857864376269049px;
margin-top: -7.0710678118654755px;
}
.ui-popup-arrow-container.ui-popup-arrow-b.ie .ui-popup-arrow {
margin-left: -5.857864376269049px;
margin-top: -4.142135623730951px;
}
.ui-popup-arrow-container.ui-popup-arrow-l.ie .ui-popup-arrow {
margin-left: -7.0710678118654755px;
margin-top: -5.857864376269049px;
}
.ui-popup-arrow-container.ui-popup-arrow-r.ie .ui-popup-arrow {
margin-left: -4.142135623730951px;
margin-top: -5.857864376269049px;
}
/* structure */
.ui-popup > .ui-popup-arrow-guide {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
visibility: hidden;
}
.ui-popup-arrow-container {
position: absolute;
}
.ui-popup-arrow {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
position: absolute;
overflow: hidden;
box-sizing: border-box;
}
.ui-popup-arrow-container.ie .ui-popup-arrow {
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474, M12=-0.7071067811865477, M21=0.7071067811865477, M22=0.7071067811865474, SizingMethod='auto expand')";
filter: progid:DXImageTransform.Microsoft.Matrix(
M11=0.7071067811865474,
M12=-0.7071067811865477,
M21=0.7071067811865477,
M22=0.7071067811865474,
SizingMethod='auto expand');
}
.ui-checkbox,
.ui-radio {
margin: .5em 0;
position: relative;
}
.ui-checkbox .ui-btn,
.ui-radio .ui-btn {
margin: 0;
text-align: left;
white-space: normal; /* Nowrap + ellipsis doesn't work on label. Issue #1419. */
z-index: 2;
}
.ui-controlgroup .ui-checkbox .ui-btn.ui-focus,
.ui-controlgroup .ui-radio .ui-btn.ui-focus {
z-index: 3;
}
.ui-checkbox .ui-btn-icon-top,
.ui-radio .ui-btn-icon-top,
.ui-checkbox .ui-btn-icon-bottom,
.ui-radio .ui-btn-icon-bottom {
text-align: center;
}
.ui-controlgroup-horizontal .ui-checkbox .ui-btn:after,
.ui-controlgroup-horizontal .ui-radio .ui-btn:after {
content: none;
display: none;
}
/* Native input positioning */
.ui-checkbox input,
.ui-radio input {
position: absolute;
left: .466em;
top: 50%;
width: 22px;
height: 22px;
margin: -11px 0 0 0;
outline: 0 !important;
z-index: 1;
}
.ui-controlgroup-horizontal .ui-checkbox input,
.ui-controlgroup-horizontal .ui-radio input {
left: 50%;
margin-left: -9px;
}
.ui-checkbox input:disabled,
.ui-radio input:disabled {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
.ui-select {
margin-top: .5em;
margin-bottom: .5em; /* no shorthand for margin because it would override margin-right for inline selects */
position: relative;
}
.ui-select > select {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
.ui-select .ui-btn {
margin: 0;
opacity: 1; /* Fixes #2588: When Windows Phone 7.5 (Mango) tries to calculate a numeric opacity for a select (including "inherit") without explicitly specifying an opacity on the parent to give it context, a bug appears where clicking elsewhere on the page after opening the select will open the select again. */
}
.ui-select .ui-btn select {
position: absolute;
top: 0;
left: 0;
width: 100%;
min-height: 1.5em;
min-height: 100%;
height: 3em;
max-height: 100%;
outline: 0;
-webkit-border-radius: inherit;
border-radius: inherit;
-webkit-appearance: none;
-moz-appearance: none;
cursor: pointer;
filter: Alpha(Opacity=0);
opacity: 0;
z-index: 2;
}
@-moz-document url-prefix() {
.ui-select .ui-btn select {
opacity: 0.0001;
}
}
/* Display none because of issues with IE/WP's filter alpha opacity */
.ui-select .ui-state-disabled select {
display: none;
}
/* Because we add all classes of the select and option elements to the span... */
.ui-select span.ui-state-disabled {
filter: Alpha(Opacity=100);
opacity: 1;
}
.ui-select .ui-btn.ui-select-nativeonly {
border-radius: 0;
border: 0;
}
.ui-select .ui-btn.ui-select-nativeonly select {
opacity: 1;
text-indent: 0;
display: block;
}
/* ui-li-count is styled in the listview CSS. We set padding and offset here because select supports icon position while listview doesn't. */
.ui-select .ui-li-has-count.ui-btn {
padding-right: 2.8125em;
}
.ui-select .ui-li-has-count.ui-btn-icon-right {
padding-right: 4.6875em;
}
.ui-select .ui-btn-icon-right .ui-li-count {
right: 3.2em;
}
/* We set the rules for the span as well to fix an issue on Chrome with text-overflow ellipsis for the button in combination with text-align center. */
.ui-select .ui-btn > span:not(.ui-li-count) {
display: block;
text-overflow: ellipsis;
overflow: hidden !important;
white-space: nowrap;
}
.ui-selectmenu.ui-popup {
min-width: 11em;
}
.ui-selectmenu .ui-dialog-contain {
overflow: hidden;
}
.ui-selectmenu .ui-header {
margin: 0;
padding: 0;
border-width: 0;
}
.ui-selectmenu.ui-dialog .ui-header {
z-index: 1;
position: relative;
}
.ui-selectmenu.ui-popup .ui-header {
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
-webkit-border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
}
/* when no placeholder is defined in a multiple select, the header height doesn't even extend past the close button. this shim's content in there */
.ui-selectmenu.ui-popup .ui-header h1:after {
content: '.';
visibility: hidden;
}
.ui-selectmenu .ui-header .ui-title {
margin: 0 2.875em;
}
.ui-selectmenu.ui-dialog .ui-content {
overflow: visible;
z-index: 1;
}
.ui-selectmenu .ui-selectmenu-list {
margin: 0;
-webkit-border-radius: inherit;
border-radius: inherit;
}
.ui-header:not(.ui-screen-hidden) + .ui-selectmenu-list {
-webkit-border-top-right-radius: 0;
border-top-right-radius: 0;
-webkit-border-top-left-radius: 0;
border-top-left-radius: 0;
}
.ui-header.ui-screen-hidden + .ui-selectmenu-list li.ui-first-child .ui-btn {
border-top-width: 0;
}
.ui-selectmenu .ui-selectmenu-list li.ui-last-child .ui-btn {
border-bottom-width: 0;
}
.ui-selectmenu .ui-btn.ui-li-divider {
cursor: default;
}
.ui-selectmenu .ui-selectmenu-placeholder {
display: none;
}
.ui-listview,
.ui-listview > li {
margin: 0;
padding: 0;
list-style: none;
}
.ui-content .ui-listview,
.ui-panel-inner > .ui-listview {
margin: -1em;
}
.ui-content .ui-listview-inset,
.ui-panel-inner > .ui-listview-inset {
margin: 1em 0;
}
.ui-collapsible-content > .ui-listview {
margin: -.5em -1em;
}
.ui-collapsible-content > .ui-listview-inset {
margin: .5em 0;
}
.ui-listview > li {
display: block;
position: relative;
overflow: visible;
}
.ui-listview > .ui-li-static,
.ui-listview > .ui-li-divider,
.ui-listview > li > a.ui-btn {
margin: 0;
display: block;
position: relative;
text-align: left;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.ui-listview > li > .ui-btn:focus {
z-index: 1;
}
.ui-listview > .ui-li-static,
.ui-listview > .ui-li-divider,
.ui-listview > li > a.ui-btn {
border-width: 1px 0 0 0;
border-style: solid;
}
.ui-listview-inset > .ui-li-static,
.ui-listview-inset > .ui-li-divider,
.ui-listview-inset > li > a.ui-btn {
border-right-width: 1px;
border-left-width: 1px;
}
.ui-listview > .ui-li-static.ui-last-child,
.ui-listview > .ui-li-divider.ui-last-child,
.ui-listview > li.ui-last-child > a.ui-btn {
border-bottom-width: 1px;
}
.ui-collapsible-content > .ui-listview:not(.ui-listview-inset) > li.ui-first-child,
.ui-collapsible-content > .ui-listview:not(.ui-listview-inset) > li.ui-first-child > a.ui-btn {
border-top-width: 0;
}
.ui-collapsible-themed-content .ui-listview:not(.ui-listview-inset) > li.ui-last-child,
.ui-collapsible-themed-content .ui-listview:not(.ui-listview-inset) > li.ui-last-child > a.ui-btn {
border-bottom-width: 0;
}
.ui-listview > li.ui-first-child,
.ui-listview > li.ui-first-child > a.ui-btn {
-webkit-border-top-right-radius: inherit;
border-top-right-radius: inherit;
-webkit-border-top-left-radius: inherit;
border-top-left-radius: inherit;
}
.ui-listview > li.ui-last-child,
.ui-listview > li.ui-last-child > a.ui-btn {
-webkit-border-bottom-right-radius: inherit;
border-bottom-right-radius: inherit;
-webkit-border-bottom-left-radius: inherit;
border-bottom-left-radius: inherit;
}
.ui-listview > li.ui-li-has-alt > a.ui-btn {
-webkit-border-top-right-radius: 0;
border-top-right-radius: 0;
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
}
.ui-listview > li.ui-first-child > a.ui-btn + a.ui-btn {
-webkit-border-top-left-radius: 0;
border-top-left-radius: 0;
-webkit-border-top-right-radius: inherit;
border-top-right-radius: inherit;
}
.ui-listview > li.ui-last-child > a.ui-btn + a.ui-btn {
-webkit-border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: inherit;
border-bottom-right-radius: inherit;
}
.ui-listview > li.ui-first-child img:first-child:not(.ui-li-icon) {
-webkit-border-top-left-radius: inherit;
border-top-left-radius: inherit;
}
.ui-listview > li.ui-last-child img:first-child:not(.ui-li-icon) {
-webkit-border-bottom-left-radius: inherit;
border-bottom-left-radius: inherit;
}
.ui-collapsible-content > .ui-listview:not(.ui-listview-inset) {
-webkit-border-radius: inherit;
border-radius: inherit;
}
.ui-listview > .ui-li-static {
padding: .7em 1em;
}
.ui-listview > .ui-li-divider {
padding: .5em 1.143em;
font-size: 14px;
font-weight: bold;
cursor: default;
outline: 0; /* Dividers in custom selectmenus have tabindex */
}
.ui-listview > .ui-li-has-count > .ui-btn,
.ui-listview > .ui-li-static.ui-li-has-count,
.ui-listview > .ui-li-divider.ui-li-has-count {
padding-right: 2.8125em;
}
.ui-listview > .ui-li-has-count > .ui-btn-icon-right {
padding-right: 4.6875em;
}
.ui-listview > .ui-li-has-thumb > .ui-btn,
.ui-listview > .ui-li-static.ui-li-has-thumb {
min-height: 3.625em;
padding-left: 6.25em;
}
/* ui-li-has-icon deprecated in 1.4. TODO: remove in 1.5 */
.ui-listview > .ui-li-has-icon > .ui-btn,
.ui-listview > .ui-li-static.ui-li-has-icon {
min-height: 1.25em;
padding-left: 2.5em;
}
/* Used by both listview and custom multiple select button */
.ui-li-count {
position: absolute;
font-size: 12.5px;
font-weight: bold;
text-align: center;
border-width: 1px;
border-style: solid;
padding: 0 .48em;
line-height: 1.6em;
min-height: 1.6em;
min-width: .64em;
right: .8em;
top: 50%;
margin-top: -.88em;
}
.ui-listview .ui-btn-icon-right .ui-li-count {
right: 3.2em;
}
.ui-listview .ui-li-has-thumb > img:first-child,
.ui-listview .ui-li-has-thumb > .ui-btn > img:first-child,
.ui-listview .ui-li-has-thumb .ui-li-thumb {
position: absolute;
left: 0;
top: 0;
max-height: 5em;
max-width: 5em;
}
/* ui-li-has-icon deprecated in 1.4. TODO: remove in 1.5 */
.ui-listview > .ui-li-has-icon > img:first-child,
.ui-listview > .ui-li-has-icon > .ui-btn > img:first-child {
position: absolute;
left: .625em;
top: .9em;
max-height: 1em;
max-width: 1em;
}
.ui-listview > li h1,
.ui-listview > li h2,
.ui-listview > li h3,
.ui-listview > li h4,
.ui-listview > li h5,
.ui-listview > li h6 {
font-size: 1em;
font-weight: bold;
display: block;
margin: .45em 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.ui-listview > li p {
font-size: .75em;
font-weight: normal;
display: block;
margin: .6em 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.ui-listview .ui-li-aside {
position: absolute;
top: 1em;
right: 3.333em;
margin: 0;
text-align: right;
}
.ui-listview > li.ui-li-has-alt > .ui-btn {
margin-right: 2.5em;
border-right-width: 0;
}
.ui-listview > li.ui-li-has-alt > .ui-btn + .ui-btn {
position: absolute;
width: 2.5em;
height: 100%;
min-height: auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-left-width: 1px;
top: 0;
right: 0;
margin: 0;
padding: 0;
z-index: 2;
}
.ui-listview-inset > li.ui-li-has-alt > .ui-btn + .ui-btn {
border-right-width: 1px;
}
.ui-listview > li.ui-li-has-alt > .ui-btn + .ui-btn:focus {
z-index: 3;
}
ol.ui-listview,
ol.ui-listview > .ui-li-divider {
counter-reset: listnumbering;
}
ol.ui-listview > li > .ui-btn,
ol.ui-listview > li.ui-li-static {
vertical-align: middle;
}
ol.ui-listview > li > .ui-btn:first-child:before,
ol.ui-listview > li.ui-li-static:before,
ol.ui-listview > li.ui-field-contain > label:before,
ol.ui-listview > li.ui-field-contain > .ui-controlgroup-label:before {
display: inline-block;
font-size: .9em;
font-weight: normal;
padding-right: .3em;
min-width: 1.4em;
line-height: 1.5;
vertical-align: middle;
counter-increment: listnumbering;
content: counter(listnumbering) ".";
}
ol.ui-listview > li.ui-field-contain:before {
content: none;
display: none;
}
ol.ui-listview > li h1:first-child,
ol.ui-listview > li h2:first-child,
ol.ui-listview > li h3:first-child,
ol.ui-listview > li h4:first-child,
ol.ui-listview > li h5:first-child,
ol.ui-listview > li h6:first-child,
ol.ui-listview > li p:first-child,
ol.ui-listview > li img:first-child + * {
display: inline-block;
vertical-align: middle;
}
ol.ui-listview > li h1:first-child ~ *,
ol.ui-listview > li h2:first-child ~ *,
ol.ui-listview > li h3:first-child ~ *,
ol.ui-listview > li h4:first-child ~ *,
ol.ui-listview > li h5:first-child ~ *,
ol.ui-listview > li h6:first-child ~ *,
ol.ui-listview > li p:first-child ~ *,
ol.ui-listview > li img:first-child + * ~ * {
margin-top: 0;
text-indent: 2.04em; /* (1.4em + .3em) * .9em / .75em */
}
html .ui-filterable + .ui-listview,
html .ui-filterable.ui-listview {
margin-top: .5em;
}
.ui-collapsible-content > form.ui-filterable {
margin-top: -.5em;
}
.ui-collapsible-content > .ui-input-search.ui-filterable {
margin-top: 0;
}
.ui-collapsible-content > .ui-filterable + .ui-listview:not(.ui-listview-inset) > li.ui-first-child,
.ui-collapsible-content > .ui-filterable + .ui-listview:not(.ui-listview-inset) > li.ui-first-child > a.ui-btn,
.ui-collapsible-content > .ui-filterable.ui-listview:not(.ui-listview-inset) > li.ui-first-child,
.ui-collapsible-content > .ui-filterable.ui-listview:not(.ui-listview-inset) > li.ui-first-child > a.ui-btn {
border-top-width: 1px;
}
div.ui-slider {
height: 30px;
margin: .5em 0;
padding: 0;
-ms-touch-action: pan-y pinch-zoom double-tap-zoom;
}
div.ui-slider:before,
div.ui-slider:after {
content: "";
display: table;
}
div.ui-slider:after {
clear: both;
}
input.ui-slider-input {
display: block;
float: left;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 4px;
width: 40px;
height: 20px;
line-height: 20px;
border-width: 1px;
border-style: solid;
outline: 0;
text-align: center;
vertical-align: text-bottom;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
-ms-box-sizing: content-box;
box-sizing: content-box;
}
.ui-slider-input::-webkit-outer-spin-button,
.ui-slider-input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.ui-slider-track {
position: relative;
overflow: visible;
border-width: 1px;
border-style: solid;
height: 15px;
margin: 0 15px 0 68px;
top: 6px;
}
.ui-slider-track.ui-mini {
height: 12px;
top: 8px;
}
.ui-slider-track .ui-slider-bg {
height: 100%;
}
/* High level of specificity to override button margins in grids */
.ui-slider-track .ui-btn.ui-slider-handle {
position: absolute;
z-index: 1;
top: 50%;
width: 28px;
height: 28px;
margin: -15px 0 0 -15px;
outline: 0;
padding: 0;
}
.ui-slider-track.ui-mini .ui-slider-handle {
height: 14px;
width: 14px;
margin: -8px 0 0 -8px;
}
select.ui-slider-switch {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
div.ui-slider-switch {
display: inline-block;
height: 32px;
width: 5.8em;
top: 0;
}
/* reset the clearfix */
div.ui-slider-switch:before,
div.ui-slider-switch:after {
display: none;
clear: none;
}
div.ui-slider-switch.ui-mini {
height: 29px;
top: 0;
}
.ui-slider-inneroffset {
margin: 0 16px;
position: relative;
z-index: 1;
}
.ui-slider-switch.ui-mini .ui-slider-inneroffset {
margin: 0 15px 0 14px;
}
.ui-slider-switch .ui-btn.ui-slider-handle {
margin: 1px 0 0 -15px;
}
.ui-slider-switch.ui-mini .ui-slider-handle {
width: 25px;
height: 25px;
margin: 1px 0 0 -13px;
padding: 0;
}
.ui-slider-handle-snapping {
-webkit-transition: left 70ms linear;
-moz-transition: left 70ms linear;
transition: left 70ms linear;
}
.ui-slider-switch .ui-slider-label {
position: absolute;
text-align: center;
width: 100%;
overflow: hidden;
font-size: 16px;
top: 0;
line-height: 2;
min-height: 100%;
white-space: nowrap;
cursor: pointer;
}
.ui-slider-switch.ui-mini .ui-slider-label {
font-size: 14px;
}
.ui-slider-switch .ui-slider-label-a {
z-index: 1;
left: 0;
text-indent: -1.5em;
}
.ui-slider-switch .ui-slider-label-b {
z-index: 0;
right: 0;
text-indent: 1.5em;
}
/* The corner radii for ui-slider-switch/track can be specified in theme CSS. The bg and handle inherits. */
.ui-slider-track .ui-slider-bg,
.ui-slider-switch .ui-slider-label,
.ui-slider-switch .ui-slider-inneroffset,
.ui-slider-handle {
-webkit-border-radius: inherit;
border-radius: inherit;
}
.ui-field-contain div.ui-slider-switch {
margin: 0;
}
/* ui-hide-label deprecated in 1.4. TODO: Remove in 1.5 */
.ui-field-contain div.ui-slider-switch,
.ui-field-contain.ui-hide-label div.ui-slider-switch,
html .ui-popup .ui-field-contain div.ui-slider-switch {
display: inline-block;
width: 5.8em;
}
/* slider tooltip
-----------------------------------------------------------------------------------------------------------*/
.ui-slider-popup {
width: 64px;
height: 64px;
font-size: 36px;
padding-top: 14px;
opacity: 0.8;
}
.ui-slider-popup {
position: absolute !important;
text-align: center;
z-index: 100;
}
.ui-slider-track .ui-btn.ui-slider-handle {
font-size: .9em;
line-height: 30px;
}
.ui-rangeslider {
margin: .5em 0;
}
.ui-rangeslider:before,
.ui-rangeslider:after {
content: "";
display: table;
}
.ui-rangeslider:after {
clear: both;
}
.ui-rangeslider .ui-slider-input.ui-rangeslider-last {
float: right;
}
.ui-rangeslider .ui-rangeslider-sliders {
position: relative;
overflow: visible;
height: 30px;
margin: 0 68px;
}
.ui-rangeslider .ui-rangeslider-sliders .ui-slider-track {
position: absolute;
top: 6px;
right: 0;
left: 0;
margin: 0;
}
.ui-rangeslider.ui-mini .ui-rangeslider-sliders .ui-slider-track {
top: 8px;
}
.ui-rangeslider .ui-slider-track:first-child .ui-slider-bg {
display: none;
}
.ui-rangeslider .ui-rangeslider-sliders .ui-slider-track:first-child {
background-color: transparent;
background: none;
border-width: 0;
height: 0;
}
/* this makes ie6 and ie7 set height to 0 to fix z-index problem */
html >/**/body .ui-rangeslider .ui-rangeslider-sliders .ui-slider-track:first-child {
height: 15px;
border-width: 1px;
}
html >/**/body .ui-rangeslider.ui-mini .ui-rangeslider-sliders .ui-slider-track:first-child {
height: 12px;
}
/* Hide the second label (the first is moved outside the div) */
div.ui-rangeslider label {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
}
.ui-field-contain .ui-rangeslider input.ui-slider-input,
.ui-field-contain .ui-rangeslider.ui-mini input.ui-slider-input,
.ui-field-contain .ui-rangeslider .ui-rangeslider-sliders,
.ui-field-contain .ui-rangeslider.ui-mini .ui-rangeslider-sliders {
margin-top: 0;
margin-bottom: 0;
}
.ui-input-text,
.ui-input-search {
margin: .5em 0;
border-width: 1px;
border-style: solid;
}
.ui-input-text input,
.ui-input-search input,
textarea.ui-input-text {
padding: .4em;
line-height: 1.4em;
display: block;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
outline: 0;
}
.ui-input-text input,
.ui-input-search input {
margin: 0;
min-height: 2.2em;
text-align: left; /* Opera aligns type="date" right by default */
border: 0;
background: transparent none;
-webkit-appearance: none;
-webkit-border-radius: inherit;
border-radius: inherit;
}
textarea.ui-input-text {
overflow: auto;
resize: vertical;
}
.ui-mini .ui-input-text input,
.ui-mini .ui-input-search input,
.ui-input-text.ui-mini input,
.ui-input-search.ui-mini input,
.ui-mini textarea.ui-input-text,
textarea.ui-mini {
font-size: 14px;
}
/* Same margin for mini textareas as other mini sized widgets (12.5/14 * 0.5em) */
.ui-mini textarea.ui-input-text,
textarea.ui-mini {
margin: .446em 0;
}
.ui-input-has-clear,
.ui-input-search {
position: relative;
}
/* Padding on the div instead of input because of browser spinners etc. */
.ui-input-has-clear {
padding-right: 2.375em;
}
.ui-mini.ui-input-has-clear {
padding-right: 2.923em;
}
.ui-input-has-clear input {
padding-right: 0;
/* Autofill on Chrome has bg color so we unset corners right as well. */
-webkit-border-top-right-radius: 0;
border-top-right-radius: 0;
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
}
/* Search icon */
.ui-input-search input {
padding-left: 1.75em;
}
.ui-input-search:after {
position: absolute;
left: .3125em;
top: 50%;
margin-top: -7px;
content: "";
background-position: center center;
background-repeat: no-repeat;
width: 14px;
height: 14px;
filter: Alpha(Opacity=50);
opacity: .5;
}
.ui-input-search.ui-input-has-clear .ui-btn.ui-input-clear,
.ui-input-text.ui-input-has-clear .ui-btn.ui-input-clear {
position: absolute;
right: 0;
top: 50%;
margin: -14px .3125em 0;
border: 0;
background-color: transparent;
}
.ui-input-search .ui-input-clear-hidden,
.ui-input-text .ui-input-clear-hidden {
display: none;
}
/* Resolves issue #5166: Added to support issue introduced in Firefox 15. We can likely remove this in the future. */
.ui-input-text input::-moz-placeholder,
.ui-input-search input::-moz-placeholder,
textarea.ui-input-text::-moz-placeholder {
color: #aaa;
}
/* Same for IE10 */
.ui-input-text input:-ms-input-placeholder,
.ui-input-search input:-ms-input-placeholder,
textarea.ui-input-text:-ms-input-placeholder {
color: #aaa;
}
/* Resolves issue #5131: Width of textinput depends on its type,
for Android 4.1 */
.ui-input-text input[type=number]::-webkit-outer-spin-button {
margin: 0;
}
/* Resolves issue #5756: Textinput in IE10 has a default clear button */
.ui-input-text input::-ms-clear,
.ui-input-search input::-ms-clear {
display: none;
}
.ui-input-text input:focus,
.ui-input-search input:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
textarea.ui-input-text.ui-textinput-autogrow {
overflow: hidden;
}
.ui-textinput-autogrow-resize {
-webkit-transition: height 0.25s;
-o-transition: height 0.25s;
-moz-transition: height 0.25s;
transition: height 0.25s;
}
.ui-flipswitch {
display: inline-block;
vertical-align: middle;
width: 5.875em; /* Override this and padding-left in next rule if you use labels other than "on/off" and need more space */
height: 1.875em;
border-width: 1px;
border-style: solid;
margin: .5em 0;
overflow: hidden;
-webkit-transition-property: padding, width, background-color, color, border-color;
-moz-transition-property: padding, width, background-color, color, border-color;
-o-transition-property: padding, width, background-color, color, border-color;
transition-property: padding, width, background-color, color, border-color;
-webkit-transition-duration: 100ms;
-moz-transition-duration: 100ms;
-o-transition-duration: 100ms;
transition-duration: 100ms;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
}
.ui-flipswitch.ui-flipswitch-active {
padding-left: 4em; /* Override this and width in previous rule if you use labels other than "on/off" and need more space */
width: 1.875em;
}
.ui-flipswitch-input {
position: absolute;
height: 1px;
width: 1px;
margin: -1px;
overflow: hidden;
clip: rect(1px,1px,1px,1px);
border: 0;
outline: 0;
filter: Alpha(Opacity=0);
opacity: 0;
}
.ui-flipswitch .ui-btn.ui-flipswitch-on,
.ui-flipswitch .ui-flipswitch-off {
float: left;
height: 1.75em;
margin: .0625em;
line-height: 1.65em;
}
.ui-flipswitch .ui-btn.ui-flipswitch-on {
width: 1.75em;
padding: 0;
text-indent: -2.6em; /* Override this to center text if you use a label other than "on" */
text-align: left;
border-width: 1px;
border-style: solid;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
border-radius: inherit;
overflow: visible;
color: inherit;
text-shadow: inherit;
}
.ui-flipswitch .ui-flipswitch-off {
padding: 1px;
text-indent: 1em; /* Override this to center text if you use a label other than "off" */
}
/* Override field container CSS to prevent the flipswitch from becomming full width */
html .ui-field-contain > label + .ui-flipswitch,
html .ui-popup .ui-field-contain > label + .ui-flipswitch {
display: inline-block;
width: 5.875em; /* If you override the width for .ui-flipswitch you should repeat the same value here */
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
-ms-box-sizing: content-box;
box-sizing: content-box;
}
.ui-field-contain .ui-flipswitch.ui-flipswitch-active,
.ui-popup .ui-field-contain .ui-flipswitch.ui-flipswitch-active {
width: 1.875em;
}
.ui-table {
border: 0;
border-collapse: collapse;
padding: 0;
width: 100%;
}
.ui-table th,
.ui-table td {
line-height: 1.5em;
text-align: left;
padding: .4em .5em;
vertical-align:top;
}
.ui-table th .ui-btn,
.ui-table td .ui-btn {
line-height: normal;
}
.ui-table th {
font-weight: bold;
}
.ui-table caption {
text-align: left;
margin-bottom: 1.4em;
opacity: .5;
}
/*
Styles for the table columntoggle mode
*/
.ui-table-columntoggle-btn {
float: right;
margin-bottom: .8em;
}
/* Remove top/bottom margins around the fieldcontain on check list */
.ui-table-columntoggle-popup fieldset {
margin:0;
}
.ui-table-columntoggle {
clear: both;
}
/* Hide all prioritized columns by default */
@media only all {
th.ui-table-priority-6,
td.ui-table-priority-6,
th.ui-table-priority-5,
td.ui-table-priority-5,
th.ui-table-priority-4,
td.ui-table-priority-4,
th.ui-table-priority-3,
td.ui-table-priority-3,
th.ui-table-priority-2,
td.ui-table-priority-2,
th.ui-table-priority-1,
td.ui-table-priority-1 {
display: none;
}
}
/* Preset breakpoints if ".ui-responsive" class added to table */
/* Show priority 1 at 320px (20em x 16px) */
@media screen and (min-width: 20em) {
.ui-table-columntoggle.ui-responsive th.ui-table-priority-1,
.ui-table-columntoggle.ui-responsive td.ui-table-priority-1 {
display: table-cell;
}
}
/* Show priority 2 at 480px (30em x 16px) */
@media screen and (min-width: 30em) {
.ui-table-columntoggle.ui-responsive th.ui-table-priority-2,
.ui-table-columntoggle.ui-responsive td.ui-table-priority-2 {
display: table-cell;
}
}
/* Show priority 3 at 640px (40em x 16px) */
@media screen and (min-width: 40em) {
.ui-table-columntoggle.ui-responsive th.ui-table-priority-3,
.ui-table-columntoggle.ui-responsive td.ui-table-priority-3 {
display: table-cell;
}
}
/* Show priority 4 at 800px (50em x 16px) */
@media screen and (min-width: 50em) {
.ui-table-columntoggle.ui-responsive th.ui-table-priority-4,
.ui-table-columntoggle.ui-responsive td.ui-table-priority-4 {
display: table-cell;
}
}
/* Show priority 5 at 960px (60em x 16px) */
@media screen and (min-width: 60em) {
.ui-table-columntoggle.ui-responsive th.ui-table-priority-5,
.ui-table-columntoggle.ui-responsive td.ui-table-priority-5 {
display: table-cell;
}
}
/* Show priority 6 at 1,120px (70em x 16px) */
@media screen and (min-width: 70em) {
.ui-table-columntoggle.ui-responsive th.ui-table-priority-6,
.ui-table-columntoggle.ui-responsive td.ui-table-priority-6 {
display: table-cell;
}
}
/* Unchecked manually: Always hide */
.ui-table-columntoggle th.ui-table-cell-hidden,
.ui-table-columntoggle td.ui-table-cell-hidden,
.ui-table-columntoggle.ui-responsive th.ui-table-cell-hidden,
.ui-table-columntoggle.ui-responsive td.ui-table-cell-hidden {
display: none;
}
/* Checked manually: Always show */
.ui-table-columntoggle th.ui-table-cell-visible,
.ui-table-columntoggle td.ui-table-cell-visible,
.ui-table-columntoggle.ui-responsive th.ui-table-cell-visible,
.ui-table-columntoggle.ui-responsive td.ui-table-cell-visible {
display: table-cell;
}
/*
Styles for the table columntoggle mode
*/
.ui-table-reflow td .ui-table-cell-label,
.ui-table-reflow th .ui-table-cell-label {
display: none;
}
/* Mobile first styles: Begin with the stacked presentation at narrow widths */
@media only all {
/* Hide the table headers */
.ui-table-reflow thead td,
.ui-table-reflow thead th {
display: none;
}
/* Show the table cells as a block level element */
.ui-table-reflow td,
.ui-table-reflow th {
text-align: left;
display: block;
}
/* Add a fair amount of top margin to visually separate each row when stacked */
.ui-table-reflow tbody th {
margin-top: 3em;
}
/* Make the label elements a percentage width */
.ui-table-reflow td .ui-table-cell-label,
.ui-table-reflow th .ui-table-cell-label {
padding: .4em;
min-width: 30%;
display: inline-block;
margin: -.4em 1em -.4em -.4em;
}
/* For grouped headers, have a different style to visually separate the levels by classing the first label in each col group */
.ui-table-reflow th .ui-table-cell-label-top,
.ui-table-reflow td .ui-table-cell-label-top {
display: block;
padding: .4em 0;
margin: .4em 0;
text-transform: uppercase;
font-size: .9em;
font-weight: normal;
}
}
/* Breakpoint to show as a standard table at 560px (35em x 16px) or wider */
@media ( min-width: 35em ) {
/* Fixes table rendering when switching between breakpoints in Safari <= 5. See https://github.com/jquery/jquery-mobile/issues/5380 */
.ui-table-reflow.ui-responsive {
display: table-row-group;
}
/* Show the table header rows */
.ui-table-reflow.ui-responsive td,
.ui-table-reflow.ui-responsive th,
.ui-table-reflow.ui-responsive tbody th,
.ui-table-reflow.ui-responsive tbody td,
.ui-table-reflow.ui-responsive thead td,
.ui-table-reflow.ui-responsive thead th {
display: table-cell;
margin: 0;
}
/* Hide the labels in each cell */
.ui-table-reflow.ui-responsive td .ui-table-cell-label,
.ui-table-reflow.ui-responsive th .ui-table-cell-label {
display: none;
}
}
/* Hack to make IE9 and WP7.5 treat cells like block level elements, scoped to ui-responsive class */
/* Applied in a max-width media query up to the table layout breakpoint so we don't need to negate this*/
@media ( max-width: 35em ) {
.ui-table-reflow.ui-responsive td,
.ui-table-reflow.ui-responsive th {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
float: left;
clear: left;
}
}
/* Panel */
.ui-panel {
width: 17em;
min-height: 100%;
max-height: none;
border-width: 0;
position: absolute;
top: 0;
display: block;
}
.ui-panel-closed {
width: 0;
max-height: 100%;
overflow: hidden;
visibility: hidden;
}
.ui-panel-fixed {
position: fixed;
bottom: -1px; /* Fixes gap on Chrome for Android */
padding-bottom: 1px;
}
.ui-panel-display-reveal {
z-index: 1;
}
.ui-panel-display-push {
z-index: 999;
}
.ui-panel-display-overlay {
z-index: 1001; /* Fixed toolbars have z-index 1000 */
}
.ui-panel-inner {
padding: 1em;
}
/* Container, page and wrapper */
.ui-panel-page-container {
overflow-x: visible;
}
.ui-panel-page-container-themed .ui-page-active {
background: none;
}
.ui-panel-wrapper {
position: relative;
min-height: inherit;
border: 0;
overflow-x: hidden;
z-index: 999;
}
/* Fixed toolbars */
.ui-panel-fixed-toolbar {
overflow-x: hidden;
}
/* Dismiss */
.ui-panel-dismiss {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100%;
z-index: 1002;
display: none;
}
.ui-panel-dismiss-open {
display: block;
}
/* Animate class is added to panel, wrapper and fixed toolbars */
.ui-panel-animate {
-webkit-transition: -webkit-transform 300ms ease;
-webkit-transition-duration: 300ms;
-moz-transition: -moz-transform 300ms ease;
transition: transform 300ms ease;
}
/* Fix for Windows Phone issue #6349: unset the transition for transforms in case of fixed toolbars. */
@media screen and ( max-device-width: 768px ) {
.ui-page-header-fixed .ui-panel-animate.ui-panel-wrapper,
.ui-page-footer-fixed .ui-panel-animate.ui-panel-wrapper,
.ui-panel-animate.ui-panel-fixed-toolbar {
-ms-transition: none;
}
/* We need a transitionend event ... */
.ui-panel-animate.ui-panel-fixed-toolbar {
-ms-transition: -ms-transform 1ms;
-ms-transform: rotate(0deg);
}
}
/* Hardware acceleration for smoother transitions on WebKit browsers */
.ui-panel-animate.ui-panel:not(.ui-panel-display-reveal) {
-webkit-backface-visibility: hidden;
-webkit-transform: translate3d(0,0,0);
}
/* Panel positioning (for overlay and push) */
/* Panel left closed */
.ui-panel-position-left {
left: -17em;
}
/* Panel left closed animated */
.ui-panel-animate.ui-panel-position-left.ui-panel-display-overlay,
.ui-panel-animate.ui-panel-position-left.ui-panel-display-push {
left: 0;
-webkit-transform: translate3d(-17em,0,0);
-moz-transform: translate3d(-17em,0,0);
transform: translate3d(-17em,0,0);
}
/* Panel left open */
.ui-panel-position-left.ui-panel-display-reveal, /* Unset "panel left closed" for reveal */
.ui-panel-open.ui-panel-position-left {
left: 0;
}
/* Panel left open animated */
.ui-panel-animate.ui-panel-open.ui-panel-position-left.ui-panel-display-overlay,
.ui-panel-animate.ui-panel-open.ui-panel-position-left.ui-panel-display-push {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
-moz-transform: none;
}
/* Panel right closed */
.ui-panel-position-right {
right: -17em;
}
/* Panel right closed animated */
.ui-panel-animate.ui-panel-position-right.ui-panel-display-overlay,
.ui-panel-animate.ui-panel-position-right.ui-panel-display-push {
right: 0;
-webkit-transform: translate3d(17em,0,0);
-moz-transform: translate3d(17em,0,0);
transform: translate3d(17em,0,0);
}
/* Panel right open */
.ui-panel-position-right.ui-panel-display-reveal, /* Unset "panel right closed" for reveal */
.ui-panel-position-right.ui-panel-open {
right: 0;
}
/* Panel right open animated */
.ui-panel-animate.ui-panel-open.ui-panel-position-right.ui-panel-display-overlay,
.ui-panel-animate.ui-panel-open.ui-panel-position-right.ui-panel-display-push {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
-moz-transform: none;
}
/* Wrapper and fixed toolbars positioning (for reveal and push) */
/* Panel left open */
.ui-panel-page-content-position-left {
left: 17em;
right: -17em;
}
/* Panel left open animated */
.ui-panel-animate.ui-panel-page-content-position-left {
left: 0;
right: 0;
-webkit-transform: translate3d(17em,0,0);
-moz-transform: translate3d(17em,0,0);
transform: translate3d(17em,0,0);
}
/* Panel right open */
.ui-panel-page-content-position-right {
left: -17em;
right: 17em;
}
/* Panel right open animated */
.ui-panel-animate.ui-panel-page-content-position-right {
left: 0;
right: 0;
-webkit-transform: translate3d(-17em,0,0);
-moz-transform: translate3d(-17em,0,0);
transform: translate3d(-17em,0,0);
}
/* Dismiss model open */
.ui-panel-dismiss-open.ui-panel-dismiss-position-left {
left: 17em;
}
.ui-panel-dismiss-open.ui-panel-dismiss-position-right {
right: 17em;
}
/* Shadows and borders */
.ui-panel-display-reveal {
-webkit-box-shadow: inset -5px 0 5px rgba(0,0,0,.15);
-moz-box-shadow: inset -5px 0 5px rgba(0,0,0,.15);
box-shadow: inset -5px 0 5px rgba(0,0,0,.15);
}
.ui-panel-position-right.ui-panel-display-reveal {
-webkit-box-shadow: inset 5px 0 5px rgba(0,0,0,.15);
-moz-box-shadow: inset 5px 0 5px rgba(0,0,0,.15);
box-shadow: inset 5px 0 5px rgba(0,0,0,.15);
}
.ui-panel-display-overlay {
-webkit-box-shadow: 5px 0 5px rgba(0,0,0,.15);
-moz-box-shadow: 5px 0 5px rgba(0,0,0,.15);
box-shadow: 5px 0 5px rgba(0,0,0,.15);
}
.ui-panel-position-right.ui-panel-display-overlay {
-webkit-box-shadow: -5px 0 5px rgba(0,0,0,.15);
-moz-box-shadow: -5px 0 5px rgba(0,0,0,.15);
box-shadow: -5px 0 5px rgba(0,0,0,.15);
}
.ui-panel-open.ui-panel-position-left.ui-panel-display-push {
border-right-width: 1px;
margin-right: -1px;
}
.ui-panel-page-content-position-left.ui-panel-page-content-display-push {
margin-left: 1px;
width: auto;
}
.ui-panel-open.ui-panel-position-right.ui-panel-display-push {
border-left-width: 1px;
margin-left: -1px;
}
.ui-panel-page-content-position-right.ui-panel-page-content-display-push {
margin-right: 1px;
width: auto;
}
/* Responsive: wrap on wide viewports once open */
@media (min-width:55em) {
.ui-responsive-panel .ui-panel-page-content-open.ui-panel-page-content-position-left {
margin-right: 17em;
}
.ui-responsive-panel .ui-panel-page-content-open.ui-panel-page-content-position-right {
margin-left: 17em;
}
.ui-responsive-panel .ui-panel-page-content-open {
width: auto;
}
.ui-responsive-panel .ui-panel-dismiss-display-push,
.ui-responsive-panel.ui-page-active ~ .ui-panel-dismiss-display-push {
display: none;
}
}
.ui-tabs {
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
padding: .2em;
}
|
{
"pile_set_name": "Github"
}
|
////////////////////////////////////////////////////////////////////////////
// Module : property_integer_reference.hpp
// Created : 17.12.2007
// Modified : 17.12.2007
// Author : Dmitriy Iassenev
// Description : integer property reference implementation class
////////////////////////////////////////////////////////////////////////////
#ifndef PROPERTY_INTEGER_REFERENCE_HPP_INCLUDED
#define PROPERTY_INTEGER_REFERENCE_HPP_INCLUDED
#include "property_holder_include.hpp"
public
ref class property_integer_reference : public XRay::SdkControls::IProperty
{
public:
property_integer_reference(int& value);
virtual ~property_integer_reference();
!property_integer_reference();
virtual System::Object ^ GetValue();
virtual void SetValue(System::Object ^ object);
private:
value_holder<int>* m_value;
}; // ref class property_integer_reference
#endif // ifndef PROPERTY_INTEGER_REFERENCE_HPP_INCLUDED
|
{
"pile_set_name": "Github"
}
|
/*!
@file
Defines `boost::hana::difference`.
@copyright Louis Dionne 2013-2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_DIFFERENCE_HPP
#define BOOST_HANA_DIFFERENCE_HPP
#include <boost/hana/fwd/difference.hpp>
#include <boost/hana/config.hpp>
#include <boost/hana/core/dispatch.hpp>
BOOST_HANA_NAMESPACE_BEGIN
//! @cond
template <typename Xs, typename Ys>
constexpr auto difference_t::operator()(Xs&& xs, Ys&& ys) const {
using S = typename hana::tag_of<Xs>::type;
using Difference = BOOST_HANA_DISPATCH_IF(difference_impl<S>,
true
);
return Difference::apply(static_cast<Xs&&>(xs), static_cast<Ys&&>(ys));
}
//! @endcond
template <typename S, bool condition>
struct difference_impl<S, when<condition>> : default_ {
template <typename ...Args>
static constexpr auto apply(Args&& ...) = delete;
};
BOOST_HANA_NAMESPACE_END
#endif // !BOOST_HANA_DIFFERENCE_HPP
|
{
"pile_set_name": "Github"
}
|
<?php
namespace Rimorsoft\Rimback\Entities;
use Illuminate\Database\Eloquent\Model;
class Term extends Model
{
//
}
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright 2018-present HiveMQ and the HiveMQ Community
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hivemq.client.mqtt.mqtt5.message.publish.puback;
import com.hivemq.client.annotations.DoNotImplement;
import com.hivemq.client.mqtt.datatypes.MqttUtf8String;
import com.hivemq.client.mqtt.mqtt5.datatypes.Mqtt5UserProperties;
import com.hivemq.client.mqtt.mqtt5.message.Mqtt5Message;
import com.hivemq.client.mqtt.mqtt5.message.Mqtt5MessageType;
import org.jetbrains.annotations.NotNull;
import java.util.Optional;
/**
* MQTT 5 PubAck message. This message is translated from and to an MQTT 5 PUBACK packet.
*
* @author Silvio Giebl
* @since 1.0
*/
@DoNotImplement
public interface Mqtt5PubAck extends Mqtt5Message {
/**
* @return the Reason Code of this PubAck message.
*/
@NotNull Mqtt5PubAckReasonCode getReasonCode();
/**
* @return the optional reason string of this PubAck message.
*/
@NotNull Optional<MqttUtf8String> getReasonString();
/**
* @return the optional user properties of this PubAck message.
*/
@NotNull Mqtt5UserProperties getUserProperties();
@Override
default @NotNull Mqtt5MessageType getType() {
return Mqtt5MessageType.PUBACK;
}
}
|
{
"pile_set_name": "Github"
}
|
var baseIndexOf = require('./_baseIndexOf');
/**
* Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
* that is not found in the character symbols.
*
* @private
* @param {Array} strSymbols The string symbols to inspect.
* @param {Array} chrSymbols The character symbols to find.
* @returns {number} Returns the index of the last unmatched string symbol.
*/
function charsEndIndex(strSymbols, chrSymbols) {
var index = strSymbols.length;
while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
return index;
}
module.exports = charsEndIndex;
|
{
"pile_set_name": "Github"
}
|
package main
import (
"fmt"
"github.com/donng/Play-with-Data-Structures/09-Segment-Tree/04-Query-in-Segment-Tree/segmenttree"
)
/// 该测试用例来源:Leetcode 303. Range Sum Query - Immutable
/// https://leetcode.com/problems/range-sum-query-immutable/description/
func main() {
nums := []interface{}{-2, 0, 3, -5, 2, -1}
setTree := segmenttree.New(nums, func(a interface{}, b interface{}) interface{} {
return a.(int) + b.(int)
})
fmt.Println(setTree)
fmt.Println(setTree.Query(0, 2))
fmt.Println(setTree.Query(2, 5))
fmt.Println(setTree.Query(0, 5))
}
|
{
"pile_set_name": "Github"
}
|
Moved to the following repository.
- OpenTouryoProject/FrontendTemplates
https://github.com/OpenTouryoProject/FrontendTemplates/
|
{
"pile_set_name": "Github"
}
|
package httpclient
import (
"fmt"
"log"
"net/http"
"os"
"strings"
"github.com/hashicorp/terraform/version"
)
const userAgentFormat = "Terraform/%s"
const uaEnvVar = "TF_APPEND_USER_AGENT"
func UserAgentString() string {
ua := fmt.Sprintf(userAgentFormat, version.Version)
if add := os.Getenv(uaEnvVar); add != "" {
add = strings.TrimSpace(add)
if len(add) > 0 {
ua += " " + add
log.Printf("[DEBUG] Using modified User-Agent: %s", ua)
}
}
return ua
}
type userAgentRoundTripper struct {
inner http.RoundTripper
userAgent string
}
func (rt *userAgentRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
if _, ok := req.Header["User-Agent"]; !ok {
req.Header.Set("User-Agent", rt.userAgent)
}
return rt.inner.RoundTrip(req)
}
|
{
"pile_set_name": "Github"
}
|
package com.github.badoualy.telegram.api.utils
import com.github.badoualy.telegram.tl.api.*
val TLAbsMessageAction.title: String?
get() = when (this) {
is TLMessageActionChannelCreate -> title
is TLMessageActionChatCreate -> title
is TLMessageActionChatEditTitle -> title
is TLMessageActionChannelMigrateFrom -> title
else -> null
}
val TLAbsMessageAction.userIdList: IntArray?
get() = when (this) {
is TLMessageActionChatAddUser -> users.toIntArray()
is TLMessageActionChatCreate -> users.toIntArray()
is TLMessageActionChatDeleteUser -> intArrayOf(userId)
is TLMessageActionChatJoinedByLink -> intArrayOf(inviterId)
else -> null
}
|
{
"pile_set_name": "Github"
}
|
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# Copyright (C) 2014 Joakim Söderberg <[email protected]>
#
file(REMOVE_RECURSE ${PROJECT_BINARY_DIR}/*.gcda)
|
{
"pile_set_name": "Github"
}
|
/*****************************************************************************
* Open LiteSpeed is an open source HTTP server. *
* Copyright (C) 2013 - 2015 LiteSpeed Technologies, Inc. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see http://www.gnu.org/licenses/. *
*****************************************************************************/
#include <ls.h>
#include <lsr/ls_xpool.h>
#include <string.h>
/**
* This module tests setting the enable flag during the session.
* It is recommended to use this along with testenableflag 1, 2, and 4.
*
* This one tests: Enabling statically enabled callback functions.
*
* To test: After compiling and installing this module, access a dynamically
* processed page.
*
* i.e. curl -i http://localhost:8088/phpinfo.php
*/
#define MNAME testenableflag3
lsi_module_t MNAME;
/////////////////////////////////////////////////////////////////////////////
#define VERSION "V1.0"
static int addoutput(lsi_param_t *rec, const char *level)
{
int len = 0, lenNew;
char *pBuf;
if (rec->len1 <= 0)
return g_api->stream_write_next(rec, rec->ptr1, rec->len1);
pBuf = ls_xpool_alloc(g_api->get_session_pool(rec->session),
rec->len1 + strlen(level) + 1);
snprintf(pBuf, rec->len1 + strlen(level) + 1, "%.*s%.*s",
rec->len1, (const char *)rec->ptr1, (int)strlen(level) + 1, level);
lenNew = rec->len1 + strlen(level);
len = g_api->stream_write_next(rec, pBuf, lenNew);
if (len < lenNew)
*rec->flag_out = LSI_CBFO_BUFFERED;
if (len < rec->len1)
return len;
return rec->len1;
}
static int addrecvresp(lsi_param_t *rec)
{ return addoutput(rec, "RECV3: If this appears, good.\n"); }
static int addsendresp(lsi_param_t *rec)
{ return addoutput(rec, "SEND3: If this appears, good.\n"); }
static int beginSession(lsi_param_t *rec)
{
int aEnableHkpts[] = {LSI_HKPT_RECV_RESP_BODY, LSI_HKPT_SEND_RESP_BODY};
g_api->enable_hook(rec->session, &MNAME, 1,
aEnableHkpts, 2);
return 0;
}
static lsi_serverhook_t serverHooks[] =
{
{LSI_HKPT_HTTP_BEGIN, beginSession, LSI_HOOK_NORMAL, LSI_FLAG_ENABLED},
{
LSI_HKPT_RECV_RESP_BODY, addrecvresp, LSI_HOOK_NORMAL,
LSI_FLAG_ENABLED | LSI_FLAG_TRANSFORM
},
{
LSI_HKPT_SEND_RESP_BODY, addsendresp, LSI_HOOK_NORMAL,
LSI_FLAG_ENABLED | LSI_FLAG_TRANSFORM
},
LSI_HOOK_END //Must put this at the end position
};
static int init_module()
{
MNAME.about = VERSION; //set version string
return 0;
}
LSMODULE_EXPORT lsi_module_t MNAME = { LSI_MODULE_SIGNATURE, init_module, NULL, NULL, "", serverHooks, {0} };
|
{
"pile_set_name": "Github"
}
|
Input the number of lines and columns (two natural numbers): Line 1 (3 elements): Line 2 (3 elements): Your matrix is:
Line 1 (3 elements): 1 2 3
Line 2 (3 elements): 4 5 6
Here is a copy of your matrix:
Line 1 (3 elements): 1 2 3
Line 2 (3 elements): 4 5 6
The transpose of your matrix is:
Line 1 (2 elements): 1 4
Line 2 (2 elements): 2 5
Line 3 (2 elements): 3 6
You matrix multiplied with its transpose is:
Line 1 (2 elements): 14 32
Line 2 (2 elements): 32 77
The transpose of your matrix multiplied with your matrix is:
Line 1 (3 elements): 17 22 27
Line 2 (3 elements): 22 29 36
Line 3 (3 elements): 27 36 45
Done.
|
{
"pile_set_name": "Github"
}
|
/***
*
* Copyright (c) 1999, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* This source code contains proprietary and confidential information of
* Valve LLC and its suppliers. Access to this code is restricted to
* persons who have executed a written SDK license with Valve. Any access,
* use or distribution of this code by or to any unlicensed person is illegal.
*
****/
//=========================================================
// hgrunt
//=========================================================
//=========================================================
// Hit groups!
//=========================================================
/*
1 - Head
2 - Stomach
3 - Gun
*/
#include "extdll.h"
#include "plane.h"
#include "util.h"
#include "cbase.h"
#include "monsters.h"
#include "schedule.h"
#include "animation.h"
#include "squadmonster.h"
#include "weapons.h"
#include "talkmonster.h"
#include "soundent.h"
#include "effects.h"
#include "customentity.h"
int g_fGruntQuestion; // true if an idle grunt asked a question. Cleared when someone answers.
extern DLL_GLOBAL int g_iSkillLevel;
//=========================================================
// monster-specific DEFINE's
//=========================================================
#define GRUNT_CLIP_SIZE 36 // how many bullets in a clip? - NOTE: 3 round burst sound, so keep as 3 * x!
#define GRUNT_VOL 0.35 // volume of grunt sounds
#define GRUNT_ATTN ATTN_NORM // attenutation of grunt sentences
#define HGRUNT_LIMP_HEALTH 20
#define HGRUNT_DMG_HEADSHOT ( DMG_BULLET | DMG_CLUB ) // damage types that can kill a grunt with a single headshot.
#define HGRUNT_NUM_HEADS 2 // how many grunt heads are there?
#define HGRUNT_MINIMUM_HEADSHOT_DAMAGE 15 // must do at least this much damage in one shot to head to score a headshot kill
#define HGRUNT_SENTENCE_VOLUME (float)0.35 // volume of grunt sentences
#define HGRUNT_9MMAR ( 1 << 0)
#define HGRUNT_HANDGRENADE ( 1 << 1)
#define HGRUNT_GRENADELAUNCHER ( 1 << 2)
#define HGRUNT_SHOTGUN ( 1 << 3)
#define HEAD_GROUP 1
#define HEAD_GRUNT 0
#define HEAD_COMMANDER 1
#define HEAD_SHOTGUN 2
#define HEAD_M203 3
#define GUN_GROUP 2
#define GUN_MP5 0
#define GUN_SHOTGUN 1
#define GUN_NONE 2
//=========================================================
// Monster's Anim Events Go Here
//=========================================================
#define HGRUNT_AE_RELOAD ( 2 )
#define HGRUNT_AE_KICK ( 3 )
#define HGRUNT_AE_BURST1 ( 4 )
#define HGRUNT_AE_BURST2 ( 5 )
#define HGRUNT_AE_BURST3 ( 6 )
#define HGRUNT_AE_GREN_TOSS ( 7 )
#define HGRUNT_AE_GREN_LAUNCH ( 8 )
#define HGRUNT_AE_GREN_DROP ( 9 )
#define HGRUNT_AE_CAUGHT_ENEMY ( 10) // grunt established sight with an enemy (player only) that had previously eluded the squad.
#define HGRUNT_AE_DROP_GUN ( 11) // grunt (probably dead) is dropping his mp5.
//=========================================================
// monster-specific schedule types
//=========================================================
enum
{
SCHED_GRUNT_SUPPRESS = LAST_COMMON_SCHEDULE + 1,
SCHED_GRUNT_ESTABLISH_LINE_OF_FIRE,// move to a location to set up an attack against the enemy. (usually when a friendly is in the way).
SCHED_GRUNT_COVER_AND_RELOAD,
SCHED_GRUNT_SWEEP,
SCHED_GRUNT_FOUND_ENEMY,
SCHED_GRUNT_REPEL,
SCHED_GRUNT_REPEL_ATTACK,
SCHED_GRUNT_REPEL_LAND,
SCHED_GRUNT_WAIT_FACE_ENEMY,
SCHED_GRUNT_TAKECOVER_FAILED,// special schedule type that forces analysis of conditions and picks the best possible schedule to recover from this type of failure.
SCHED_GRUNT_ELOF_FAIL,
};
//=========================================================
// monster-specific tasks
//=========================================================
enum
{
TASK_GRUNT_FACE_TOSS_DIR = LAST_COMMON_TASK + 1,
TASK_GRUNT_SPEAK_SENTENCE,
TASK_GRUNT_CHECK_FIRE,
};
//=========================================================
// monster-specific conditions
//=========================================================
#define bits_COND_GRUNT_NOFIRE ( bits_COND_SPECIAL1 )
class CHGrunt : public CSquadMonster
{
public:
void Spawn( void );
void Precache( void );
void SetYawSpeed ( void );
int Classify ( void );
int ISoundMask ( void );
void HandleAnimEvent( MonsterEvent_t *pEvent );
BOOL FCanCheckAttacks ( void );
BOOL CheckMeleeAttack1 ( float flDot, float flDist );
BOOL CheckRangeAttack1 ( float flDot, float flDist );
BOOL CheckRangeAttack2 ( float flDot, float flDist );
void CheckAmmo ( void );
void SetActivity ( Activity NewActivity );
void StartTask ( Task_t *pTask );
void RunTask ( Task_t *pTask );
void DeathSound( void );
void PainSound( void );
void IdleSound ( void );
Vector GetGunPosition( void );
void Shoot ( void );
void Shotgun ( void );
void PrescheduleThink ( void );
void GibMonster( void );
void SpeakSentence( void );
int Save( CSave &save );
int Restore( CRestore &restore );
CBaseEntity *Kick( void );
Schedule_t *GetSchedule( void );
Schedule_t *GetScheduleOfType ( int Type );
void TraceAttack( entvars_t *pevAttacker, float flDamage, Vector vecDir, TraceResult *ptr, int bitsDamageType);
int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );
int IRelationship ( CBaseEntity *pTarget );
BOOL FOkToSpeak( void );
void JustSpoke( void );
CUSTOM_SCHEDULES;
static TYPEDESCRIPTION m_SaveData[];
// checking the feasibility of a grenade toss is kind of costly, so we do it every couple of seconds,
// not every server frame.
float m_flNextGrenadeCheck;
float m_flNextPainTime;
float m_flLastEnemySightTime;
Vector m_vecTossVelocity;
BOOL m_fThrowGrenade;
BOOL m_fStanding;
BOOL m_fFirstEncounter;// only put on the handsign show in the squad's first encounter.
int m_cClipSize;
int m_voicePitch;
int m_iBrassShell;
int m_iShotgunShell;
int m_iSentence;
static const char *pGruntSentences[];
};
LINK_ENTITY_TO_CLASS( monster_human_grunt, CHGrunt );
TYPEDESCRIPTION CHGrunt::m_SaveData[] =
{
DEFINE_FIELD( CHGrunt, m_flNextGrenadeCheck, FIELD_TIME ),
DEFINE_FIELD( CHGrunt, m_flNextPainTime, FIELD_TIME ),
// DEFINE_FIELD( CHGrunt, m_flLastEnemySightTime, FIELD_TIME ), // don't save, go to zero
DEFINE_FIELD( CHGrunt, m_vecTossVelocity, FIELD_VECTOR ),
DEFINE_FIELD( CHGrunt, m_fThrowGrenade, FIELD_BOOLEAN ),
DEFINE_FIELD( CHGrunt, m_fStanding, FIELD_BOOLEAN ),
DEFINE_FIELD( CHGrunt, m_fFirstEncounter, FIELD_BOOLEAN ),
DEFINE_FIELD( CHGrunt, m_cClipSize, FIELD_INTEGER ),
DEFINE_FIELD( CHGrunt, m_voicePitch, FIELD_INTEGER ),
// DEFINE_FIELD( CShotgun, m_iBrassShell, FIELD_INTEGER ),
// DEFINE_FIELD( CShotgun, m_iShotgunShell, FIELD_INTEGER ),
DEFINE_FIELD( CHGrunt, m_iSentence, FIELD_INTEGER ),
};
IMPLEMENT_SAVERESTORE( CHGrunt, CSquadMonster );
const char *CHGrunt::pGruntSentences[] =
{
"HG_GREN", // grenade scared grunt
"HG_ALERT", // sees player
"HG_MONSTER", // sees monster
"HG_COVER", // running to cover
"HG_THROW", // about to throw grenade
"HG_CHARGE", // running out to get the enemy
"HG_TAUNT", // say rude things
};
enum
{
HGRUNT_SENT_NONE = -1,
HGRUNT_SENT_GREN = 0,
HGRUNT_SENT_ALERT,
HGRUNT_SENT_MONSTER,
HGRUNT_SENT_COVER,
HGRUNT_SENT_THROW,
HGRUNT_SENT_CHARGE,
HGRUNT_SENT_TAUNT,
} HGRUNT_SENTENCE_TYPES;
//=========================================================
// Speak Sentence - say your cued up sentence.
//
// Some grunt sentences (take cover and charge) rely on actually
// being able to execute the intended action. It's really lame
// when a grunt says 'COVER ME' and then doesn't move. The problem
// is that the sentences were played when the decision to TRY
// to move to cover was made. Now the sentence is played after
// we know for sure that there is a valid path. The schedule
// may still fail but in most cases, well after the grunt has
// started moving.
//=========================================================
void CHGrunt :: SpeakSentence( void )
{
if ( m_iSentence == HGRUNT_SENT_NONE )
{
// no sentence cued up.
return;
}
if (FOkToSpeak())
{
SENTENCEG_PlayRndSz( ENT(pev), pGruntSentences[ m_iSentence ], HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
JustSpoke();
}
}
//=========================================================
// IRelationship - overridden because Alien Grunts are
// Human Grunt's nemesis.
//=========================================================
int CHGrunt::IRelationship ( CBaseEntity *pTarget )
{
if ( FClassnameIs( pTarget->pev, "monster_alien_grunt" ) || ( FClassnameIs( pTarget->pev, "monster_gargantua" ) ) )
{
return R_NM;
}
return CSquadMonster::IRelationship( pTarget );
}
//=========================================================
// GibMonster - make gun fly through the air.
//=========================================================
void CHGrunt :: GibMonster ( void )
{
Vector vecGunPos;
Vector vecGunAngles;
if ( GetBodygroup( 2 ) != 2 )
{// throw a gun if the grunt has one
GetAttachment( 0, vecGunPos, vecGunAngles );
CBaseEntity *pGun;
if (FBitSet( pev->weapons, HGRUNT_SHOTGUN ))
{
pGun = DropItem( "weapon_shotgun", vecGunPos, vecGunAngles );
}
else
{
pGun = DropItem( "weapon_9mmAR", vecGunPos, vecGunAngles );
}
if ( pGun )
{
pGun->pev->velocity = Vector (RANDOM_FLOAT(-100,100), RANDOM_FLOAT(-100,100), RANDOM_FLOAT(200,300));
pGun->pev->avelocity = Vector ( (float)0, (float)RANDOM_FLOAT( 200, 400 ), (float)0 );
}
if (FBitSet( pev->weapons, HGRUNT_GRENADELAUNCHER ))
{
pGun = DropItem( "ammo_ARgrenades", vecGunPos, vecGunAngles );
if ( pGun )
{
pGun->pev->velocity = Vector (RANDOM_FLOAT(-100,100), RANDOM_FLOAT(-100,100), RANDOM_FLOAT(200,300));
pGun->pev->avelocity = Vector ( (float)0, (float)RANDOM_FLOAT( 200, 400 ), (float)0 );
}
}
}
CBaseMonster :: GibMonster();
}
//=========================================================
// ISoundMask - Overidden for human grunts because they
// hear the DANGER sound that is made by hand grenades and
// other dangerous items.
//=========================================================
int CHGrunt :: ISoundMask ( void )
{
return bits_SOUND_WORLD |
bits_SOUND_COMBAT |
bits_SOUND_PLAYER |
bits_SOUND_DANGER;
}
//=========================================================
// someone else is talking - don't speak
//=========================================================
BOOL CHGrunt :: FOkToSpeak( void )
{
// if someone else is talking, don't speak
if (gpGlobals->time <= CTalkMonster::g_talkWaitTime)
return FALSE;
if ( pev->spawnflags & SF_MONSTER_GAG )
{
if ( m_MonsterState != MONSTERSTATE_COMBAT )
{
// no talking outside of combat if gagged.
return FALSE;
}
}
// if player is not in pvs, don't speak
// if (FNullEnt(FIND_CLIENT_IN_PVS(edict())))
// return FALSE;
return TRUE;
}
//=========================================================
//=========================================================
void CHGrunt :: JustSpoke( void )
{
CTalkMonster::g_talkWaitTime = gpGlobals->time + RANDOM_FLOAT(1.5, 2.0);
m_iSentence = HGRUNT_SENT_NONE;
}
//=========================================================
// PrescheduleThink - this function runs after conditions
// are collected and before scheduling code is run.
//=========================================================
void CHGrunt :: PrescheduleThink ( void )
{
if ( InSquad() && m_hEnemy != NULL )
{
if ( HasConditions ( bits_COND_SEE_ENEMY ) )
{
// update the squad's last enemy sighting time.
MySquadLeader()->m_flLastEnemySightTime = gpGlobals->time;
}
else
{
if ( gpGlobals->time - MySquadLeader()->m_flLastEnemySightTime > 5 )
{
// been a while since we've seen the enemy
MySquadLeader()->m_fEnemyEluded = TRUE;
}
}
}
}
//=========================================================
// FCanCheckAttacks - this is overridden for human grunts
// because they can throw/shoot grenades when they can't see their
// target and the base class doesn't check attacks if the monster
// cannot see its enemy.
//
// !!!BUGBUG - this gets called before a 3-round burst is fired
// which means that a friendly can still be hit with up to 2 rounds.
// ALSO, grenades will not be tossed if there is a friendly in front,
// this is a bad bug. Friendly machine gun fire avoidance
// will unecessarily prevent the throwing of a grenade as well.
//=========================================================
BOOL CHGrunt :: FCanCheckAttacks ( void )
{
if ( !HasConditions( bits_COND_ENEMY_TOOFAR ) )
{
return TRUE;
}
else
{
return FALSE;
}
}
//=========================================================
// CheckMeleeAttack1
//=========================================================
BOOL CHGrunt :: CheckMeleeAttack1 ( float flDot, float flDist )
{
CBaseMonster *pEnemy;
if ( m_hEnemy != NULL )
{
pEnemy = m_hEnemy->MyMonsterPointer();
if ( !pEnemy )
{
return FALSE;
}
}
if ( flDist <= 64 && flDot >= 0.7 &&
pEnemy->Classify() != CLASS_ALIEN_BIOWEAPON &&
pEnemy->Classify() != CLASS_PLAYER_BIOWEAPON )
{
return TRUE;
}
return FALSE;
}
//=========================================================
// CheckRangeAttack1 - overridden for HGrunt, cause
// FCanCheckAttacks() doesn't disqualify all attacks based
// on whether or not the enemy is occluded because unlike
// the base class, the HGrunt can attack when the enemy is
// occluded (throw grenade over wall, etc). We must
// disqualify the machine gun attack if the enemy is occluded.
//=========================================================
BOOL CHGrunt :: CheckRangeAttack1 ( float flDot, float flDist )
{
if ( !HasConditions( bits_COND_ENEMY_OCCLUDED ) && flDist <= 2048 && flDot >= 0.5 && NoFriendlyFire() )
{
TraceResult tr;
if ( !m_hEnemy->IsPlayer() && flDist <= 64 )
{
// kick nonclients, but don't shoot at them.
return FALSE;
}
Vector vecSrc = GetGunPosition();
// verify that a bullet fired from the gun will hit the enemy before the world.
UTIL_TraceLine( vecSrc, m_hEnemy->BodyTarget(vecSrc), ignore_monsters, ignore_glass, ENT(pev), &tr);
if ( tr.flFraction == 1.0 )
{
return TRUE;
}
}
return FALSE;
}
//=========================================================
// CheckRangeAttack2 - this checks the Grunt's grenade
// attack.
//=========================================================
BOOL CHGrunt :: CheckRangeAttack2 ( float flDot, float flDist )
{
if (! FBitSet(pev->weapons, (HGRUNT_HANDGRENADE | HGRUNT_GRENADELAUNCHER)))
{
return FALSE;
}
// if the grunt isn't moving, it's ok to check.
if ( m_flGroundSpeed != 0 )
{
m_fThrowGrenade = FALSE;
return m_fThrowGrenade;
}
// assume things haven't changed too much since last time
if (gpGlobals->time < m_flNextGrenadeCheck )
{
return m_fThrowGrenade;
}
if ( !FBitSet ( m_hEnemy->pev->flags, FL_ONGROUND ) && m_hEnemy->pev->waterlevel == 0 && m_vecEnemyLKP.z > pev->absmax.z )
{
//!!!BUGBUG - we should make this check movetype and make sure it isn't FLY? Players who jump a lot are unlikely to
// be grenaded.
// don't throw grenades at anything that isn't on the ground!
m_fThrowGrenade = FALSE;
return m_fThrowGrenade;
}
Vector vecTarget;
if (FBitSet( pev->weapons, HGRUNT_HANDGRENADE))
{
// find feet
if (RANDOM_LONG(0,1))
{
// magically know where they are
vecTarget = Vector( m_hEnemy->pev->origin.x, m_hEnemy->pev->origin.y, m_hEnemy->pev->absmin.z );
}
else
{
// toss it to where you last saw them
vecTarget = m_vecEnemyLKP;
}
// vecTarget = m_vecEnemyLKP + (m_hEnemy->BodyTarget( pev->origin ) - m_hEnemy->pev->origin);
// estimate position
// vecTarget = vecTarget + m_hEnemy->pev->velocity * 2;
}
else
{
// find target
// vecTarget = m_hEnemy->BodyTarget( pev->origin );
vecTarget = m_vecEnemyLKP + (m_hEnemy->BodyTarget( pev->origin ) - m_hEnemy->pev->origin);
// estimate position
if (HasConditions( bits_COND_SEE_ENEMY))
vecTarget = vecTarget + ((vecTarget - pev->origin).Length() / gSkillData.hgruntGrenadeSpeed) * m_hEnemy->pev->velocity;
}
// are any of my squad members near the intended grenade impact area?
if ( InSquad() )
{
if (SquadMemberInRange( vecTarget, 256 ))
{
// crap, I might blow my own guy up. Don't throw a grenade and don't check again for a while.
m_flNextGrenadeCheck = gpGlobals->time + 1; // one full second.
m_fThrowGrenade = FALSE;
}
}
if ( ( vecTarget - pev->origin ).Length2D() <= 256 )
{
// crap, I don't want to blow myself up
m_flNextGrenadeCheck = gpGlobals->time + 1; // one full second.
m_fThrowGrenade = FALSE;
return m_fThrowGrenade;
}
if (FBitSet( pev->weapons, HGRUNT_HANDGRENADE))
{
Vector vecToss = VecCheckToss( pev, GetGunPosition(), vecTarget, 0.5 );
if ( vecToss != g_vecZero )
{
m_vecTossVelocity = vecToss;
// throw a hand grenade
m_fThrowGrenade = TRUE;
// don't check again for a while.
m_flNextGrenadeCheck = gpGlobals->time; // 1/3 second.
}
else
{
// don't throw
m_fThrowGrenade = FALSE;
// don't check again for a while.
m_flNextGrenadeCheck = gpGlobals->time + 1; // one full second.
}
}
else
{
Vector vecToss = VecCheckThrow( pev, GetGunPosition(), vecTarget, gSkillData.hgruntGrenadeSpeed, 0.5 );
if ( vecToss != g_vecZero )
{
m_vecTossVelocity = vecToss;
// throw a hand grenade
m_fThrowGrenade = TRUE;
// don't check again for a while.
m_flNextGrenadeCheck = gpGlobals->time + 0.3; // 1/3 second.
}
else
{
// don't throw
m_fThrowGrenade = FALSE;
// don't check again for a while.
m_flNextGrenadeCheck = gpGlobals->time + 1; // one full second.
}
}
return m_fThrowGrenade;
}
//=========================================================
// TraceAttack - make sure we're not taking it in the helmet
//=========================================================
void CHGrunt :: TraceAttack( entvars_t *pevAttacker, float flDamage, Vector vecDir, TraceResult *ptr, int bitsDamageType)
{
// check for helmet shot
if (ptr->iHitgroup == 11)
{
// make sure we're wearing one
if (GetBodygroup( 1 ) == HEAD_GRUNT && (bitsDamageType & (DMG_BULLET | DMG_SLASH | DMG_BLAST | DMG_CLUB)))
{
// absorb damage
flDamage -= 20;
if (flDamage <= 0)
{
UTIL_Ricochet( ptr->vecEndPos, 1.0 );
flDamage = 0.01;
}
}
// it's head shot anyways
ptr->iHitgroup = HITGROUP_HEAD;
}
CSquadMonster::TraceAttack( pevAttacker, flDamage, vecDir, ptr, bitsDamageType );
}
//=========================================================
// TakeDamage - overridden for the grunt because the grunt
// needs to forget that he is in cover if he's hurt. (Obviously
// not in a safe place anymore).
//=========================================================
int CHGrunt :: TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType )
{
Forget( bits_MEMORY_INCOVER );
return CSquadMonster :: TakeDamage ( pevInflictor, pevAttacker, flDamage, bitsDamageType );
}
//=========================================================
// SetYawSpeed - allows each sequence to have a different
// turn rate associated with it.
//=========================================================
void CHGrunt :: SetYawSpeed ( void )
{
int ys;
switch ( m_Activity )
{
case ACT_IDLE:
ys = 150;
break;
case ACT_RUN:
ys = 150;
break;
case ACT_WALK:
ys = 180;
break;
case ACT_RANGE_ATTACK1:
ys = 120;
break;
case ACT_RANGE_ATTACK2:
ys = 120;
break;
case ACT_MELEE_ATTACK1:
ys = 120;
break;
case ACT_MELEE_ATTACK2:
ys = 120;
break;
case ACT_TURN_LEFT:
case ACT_TURN_RIGHT:
ys = 180;
break;
case ACT_GLIDE:
case ACT_FLY:
ys = 30;
break;
default:
ys = 90;
break;
}
pev->yaw_speed = ys;
}
void CHGrunt :: IdleSound( void )
{
if (FOkToSpeak() && (g_fGruntQuestion || RANDOM_LONG(0,1)))
{
if (!g_fGruntQuestion)
{
// ask question or make statement
switch (RANDOM_LONG(0,2))
{
case 0: // check in
SENTENCEG_PlayRndSz(ENT(pev), "HG_CHECK", HGRUNT_SENTENCE_VOLUME, ATTN_NORM, 0, m_voicePitch);
g_fGruntQuestion = 1;
break;
case 1: // question
SENTENCEG_PlayRndSz(ENT(pev), "HG_QUEST", HGRUNT_SENTENCE_VOLUME, ATTN_NORM, 0, m_voicePitch);
g_fGruntQuestion = 2;
break;
case 2: // statement
SENTENCEG_PlayRndSz(ENT(pev), "HG_IDLE", HGRUNT_SENTENCE_VOLUME, ATTN_NORM, 0, m_voicePitch);
break;
}
}
else
{
switch (g_fGruntQuestion)
{
case 1: // check in
SENTENCEG_PlayRndSz(ENT(pev), "HG_CLEAR", HGRUNT_SENTENCE_VOLUME, ATTN_NORM, 0, m_voicePitch);
break;
case 2: // question
SENTENCEG_PlayRndSz(ENT(pev), "HG_ANSWER", HGRUNT_SENTENCE_VOLUME, ATTN_NORM, 0, m_voicePitch);
break;
}
g_fGruntQuestion = 0;
}
JustSpoke();
}
}
//=========================================================
// CheckAmmo - overridden for the grunt because he actually
// uses ammo! (base class doesn't)
//=========================================================
void CHGrunt :: CheckAmmo ( void )
{
if ( m_cAmmoLoaded <= 0 )
{
SetConditions(bits_COND_NO_AMMO_LOADED);
}
}
//=========================================================
// Classify - indicates this monster's place in the
// relationship table.
//=========================================================
int CHGrunt :: Classify ( void )
{
return CLASS_HUMAN_MILITARY;
}
//=========================================================
//=========================================================
CBaseEntity *CHGrunt :: Kick( void )
{
TraceResult tr;
UTIL_MakeVectors( pev->angles );
Vector vecStart = pev->origin;
vecStart.z += pev->size.z * 0.5;
Vector vecEnd = vecStart + (gpGlobals->v_forward * 70);
UTIL_TraceHull( vecStart, vecEnd, dont_ignore_monsters, head_hull, ENT(pev), &tr );
if ( tr.pHit )
{
CBaseEntity *pEntity = CBaseEntity::Instance( tr.pHit );
return pEntity;
}
return NULL;
}
//=========================================================
// GetGunPosition return the end of the barrel
//=========================================================
Vector CHGrunt :: GetGunPosition( )
{
if (m_fStanding )
{
return pev->origin + Vector( 0, 0, 60 );
}
else
{
return pev->origin + Vector( 0, 0, 48 );
}
}
//=========================================================
// Shoot
//=========================================================
void CHGrunt :: Shoot ( void )
{
if (m_hEnemy == NULL)
{
return;
}
Vector vecShootOrigin = GetGunPosition();
Vector vecShootDir = ShootAtEnemy( vecShootOrigin );
UTIL_MakeVectors ( pev->angles );
Vector vecShellVelocity = gpGlobals->v_right * RANDOM_FLOAT(40,90) + gpGlobals->v_up * RANDOM_FLOAT(75,200) + gpGlobals->v_forward * RANDOM_FLOAT(-40, 40);
EjectBrass ( vecShootOrigin - vecShootDir * 24, vecShellVelocity, pev->angles.y, m_iBrassShell, TE_BOUNCE_SHELL);
FireBullets(1, vecShootOrigin, vecShootDir, VECTOR_CONE_10DEGREES, 2048, BULLET_MONSTER_MP5 ); // shoot +-5 degrees
pev->effects |= EF_MUZZLEFLASH;
m_cAmmoLoaded--;// take away a bullet!
Vector angDir = UTIL_VecToAngles( vecShootDir );
SetBlending( 0, angDir.x );
}
//=========================================================
// Shoot
//=========================================================
void CHGrunt :: Shotgun ( void )
{
if (m_hEnemy == NULL)
{
return;
}
Vector vecShootOrigin = GetGunPosition();
Vector vecShootDir = ShootAtEnemy( vecShootOrigin );
UTIL_MakeVectors ( pev->angles );
Vector vecShellVelocity = gpGlobals->v_right * RANDOM_FLOAT(40,90) + gpGlobals->v_up * RANDOM_FLOAT(75,200) + gpGlobals->v_forward * RANDOM_FLOAT(-40, 40);
EjectBrass ( vecShootOrigin - vecShootDir * 24, vecShellVelocity, pev->angles.y, m_iShotgunShell, TE_BOUNCE_SHOTSHELL);
FireBullets(gSkillData.hgruntShotgunPellets, vecShootOrigin, vecShootDir, VECTOR_CONE_15DEGREES, 2048, BULLET_PLAYER_BUCKSHOT, 0 ); // shoot +-7.5 degrees
pev->effects |= EF_MUZZLEFLASH;
m_cAmmoLoaded--;// take away a bullet!
Vector angDir = UTIL_VecToAngles( vecShootDir );
SetBlending( 0, angDir.x );
}
//=========================================================
// HandleAnimEvent - catches the monster-specific messages
// that occur when tagged animation frames are played.
//=========================================================
void CHGrunt :: HandleAnimEvent( MonsterEvent_t *pEvent )
{
Vector vecShootDir;
Vector vecShootOrigin;
switch( pEvent->event )
{
case HGRUNT_AE_DROP_GUN:
{
Vector vecGunPos;
Vector vecGunAngles;
GetAttachment( 0, vecGunPos, vecGunAngles );
// switch to body group with no gun.
SetBodygroup( GUN_GROUP, GUN_NONE );
// now spawn a gun.
if (FBitSet( pev->weapons, HGRUNT_SHOTGUN ))
{
DropItem( "weapon_shotgun", vecGunPos, vecGunAngles );
}
else
{
DropItem( "weapon_9mmAR", vecGunPos, vecGunAngles );
}
if (FBitSet( pev->weapons, HGRUNT_GRENADELAUNCHER ))
{
DropItem( "ammo_ARgrenades", BodyTarget( pev->origin ), vecGunAngles );
}
}
break;
case HGRUNT_AE_RELOAD:
EMIT_SOUND( ENT(pev), CHAN_WEAPON, "hgrunt/gr_reload1.wav", 1, ATTN_NORM );
m_cAmmoLoaded = m_cClipSize;
ClearConditions(bits_COND_NO_AMMO_LOADED);
break;
case HGRUNT_AE_GREN_TOSS:
{
UTIL_MakeVectors( pev->angles );
// CGrenade::ShootTimed( pev, pev->origin + gpGlobals->v_forward * 34 + Vector (0, 0, 32), m_vecTossVelocity, 3.5 );
CGrenade::ShootTimed( pev, GetGunPosition(), m_vecTossVelocity, 3.5 );
m_fThrowGrenade = FALSE;
m_flNextGrenadeCheck = gpGlobals->time + 6;// wait six seconds before even looking again to see if a grenade can be thrown.
// !!!LATER - when in a group, only try to throw grenade if ordered.
}
break;
case HGRUNT_AE_GREN_LAUNCH:
{
EMIT_SOUND(ENT(pev), CHAN_WEAPON, "weapons/glauncher.wav", 0.8, ATTN_NORM);
CGrenade::ShootContact( pev, GetGunPosition(), m_vecTossVelocity );
m_fThrowGrenade = FALSE;
if (g_iSkillLevel == SKILL_HARD)
m_flNextGrenadeCheck = gpGlobals->time + RANDOM_FLOAT( 2, 5 );// wait a random amount of time before shooting again
else
m_flNextGrenadeCheck = gpGlobals->time + 6;// wait six seconds before even looking again to see if a grenade can be thrown.
}
break;
case HGRUNT_AE_GREN_DROP:
{
UTIL_MakeVectors( pev->angles );
CGrenade::ShootTimed( pev, pev->origin + gpGlobals->v_forward * 17 - gpGlobals->v_right * 27 + gpGlobals->v_up * 6, g_vecZero, 3 );
}
break;
case HGRUNT_AE_BURST1:
{
if ( FBitSet( pev->weapons, HGRUNT_9MMAR ))
{
Shoot();
// the first round of the three round burst plays the sound and puts a sound in the world sound list.
if ( RANDOM_LONG(0,1) )
{
EMIT_SOUND( ENT(pev), CHAN_WEAPON, "hgrunt/gr_mgun1.wav", 1, ATTN_NORM );
}
else
{
EMIT_SOUND( ENT(pev), CHAN_WEAPON, "hgrunt/gr_mgun2.wav", 1, ATTN_NORM );
}
}
else
{
Shotgun( );
EMIT_SOUND(ENT(pev), CHAN_WEAPON, "weapons/sbarrel1.wav", 1, ATTN_NORM );
}
CSoundEnt::InsertSound ( bits_SOUND_COMBAT, pev->origin, 384, 0.3 );
}
break;
case HGRUNT_AE_BURST2:
case HGRUNT_AE_BURST3:
Shoot();
break;
case HGRUNT_AE_KICK:
{
CBaseEntity *pHurt = Kick();
if ( pHurt )
{
// SOUND HERE!
UTIL_MakeVectors( pev->angles );
pHurt->pev->punchangle.x = 15;
pHurt->pev->velocity = pHurt->pev->velocity + gpGlobals->v_forward * 100 + gpGlobals->v_up * 50;
pHurt->TakeDamage( pev, pev, gSkillData.hgruntDmgKick, DMG_CLUB );
}
}
break;
case HGRUNT_AE_CAUGHT_ENEMY:
{
if ( FOkToSpeak() )
{
SENTENCEG_PlayRndSz(ENT(pev), "HG_ALERT", HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
JustSpoke();
}
}
default:
CSquadMonster::HandleAnimEvent( pEvent );
break;
}
}
//=========================================================
// Spawn
//=========================================================
void CHGrunt :: Spawn()
{
Precache( );
SET_MODEL(ENT(pev), "models/hgrunt.mdl");
UTIL_SetSize(pev, VEC_HUMAN_HULL_MIN, VEC_HUMAN_HULL_MAX);
pev->solid = SOLID_SLIDEBOX;
pev->movetype = MOVETYPE_STEP;
m_bloodColor = BLOOD_COLOR_RED;
pev->effects = 0;
pev->health = gSkillData.hgruntHealth;
m_flFieldOfView = 0.2;// indicates the width of this monster's forward view cone ( as a dotproduct result )
m_MonsterState = MONSTERSTATE_NONE;
m_flNextGrenadeCheck = gpGlobals->time + 1;
m_flNextPainTime = gpGlobals->time;
m_iSentence = HGRUNT_SENT_NONE;
m_afCapability = bits_CAP_SQUAD | bits_CAP_TURN_HEAD | bits_CAP_DOORS_GROUP;
m_fEnemyEluded = FALSE;
m_fFirstEncounter = TRUE;// this is true when the grunt spawns, because he hasn't encountered an enemy yet.
m_HackedGunPos = Vector ( 0, 0, 55 );
if (pev->weapons == 0)
{
// initialize to original values
pev->weapons = HGRUNT_9MMAR | HGRUNT_HANDGRENADE;
// pev->weapons = HGRUNT_SHOTGUN;
// pev->weapons = HGRUNT_9MMAR | HGRUNT_GRENADELAUNCHER;
}
if (FBitSet( pev->weapons, HGRUNT_SHOTGUN ))
{
SetBodygroup( GUN_GROUP, GUN_SHOTGUN );
m_cClipSize = 8;
}
else
{
m_cClipSize = GRUNT_CLIP_SIZE;
}
m_cAmmoLoaded = m_cClipSize;
if (RANDOM_LONG( 0, 99 ) < 80)
pev->skin = 0; // light skin
else
pev->skin = 1; // dark skin
if (FBitSet( pev->weapons, HGRUNT_SHOTGUN ))
{
SetBodygroup( HEAD_GROUP, HEAD_SHOTGUN);
}
else if (FBitSet( pev->weapons, HGRUNT_GRENADELAUNCHER ))
{
SetBodygroup( HEAD_GROUP, HEAD_M203 );
pev->skin = 1; // alway dark skin
}
CTalkMonster::g_talkWaitTime = 0;
MonsterInit();
}
//=========================================================
// Precache - precaches all resources this monster needs
//=========================================================
void CHGrunt :: Precache()
{
PRECACHE_MODEL("models/hgrunt.mdl");
PRECACHE_SOUND( "hgrunt/gr_mgun1.wav" );
PRECACHE_SOUND( "hgrunt/gr_mgun2.wav" );
PRECACHE_SOUND( "hgrunt/gr_die1.wav" );
PRECACHE_SOUND( "hgrunt/gr_die2.wav" );
PRECACHE_SOUND( "hgrunt/gr_die3.wav" );
PRECACHE_SOUND( "hgrunt/gr_pain1.wav" );
PRECACHE_SOUND( "hgrunt/gr_pain2.wav" );
PRECACHE_SOUND( "hgrunt/gr_pain3.wav" );
PRECACHE_SOUND( "hgrunt/gr_pain4.wav" );
PRECACHE_SOUND( "hgrunt/gr_pain5.wav" );
PRECACHE_SOUND( "hgrunt/gr_reload1.wav" );
PRECACHE_SOUND( "weapons/glauncher.wav" );
PRECACHE_SOUND( "weapons/sbarrel1.wav" );
PRECACHE_SOUND("zombie/claw_miss2.wav");// because we use the basemonster SWIPE animation event
// get voice pitch
if (RANDOM_LONG(0,1))
m_voicePitch = 109 + RANDOM_LONG(0,7);
else
m_voicePitch = 100;
m_iBrassShell = PRECACHE_MODEL ("models/shell.mdl");// brass shell
m_iShotgunShell = PRECACHE_MODEL ("models/shotgunshell.mdl");
}
//=========================================================
// start task
//=========================================================
void CHGrunt :: StartTask ( Task_t *pTask )
{
m_iTaskStatus = TASKSTATUS_RUNNING;
switch ( pTask->iTask )
{
case TASK_GRUNT_CHECK_FIRE:
if ( !NoFriendlyFire() )
{
SetConditions( bits_COND_GRUNT_NOFIRE );
}
TaskComplete();
break;
case TASK_GRUNT_SPEAK_SENTENCE:
SpeakSentence();
TaskComplete();
break;
case TASK_WALK_PATH:
case TASK_RUN_PATH:
// grunt no longer assumes he is covered if he moves
Forget( bits_MEMORY_INCOVER );
CSquadMonster ::StartTask( pTask );
break;
case TASK_RELOAD:
m_IdealActivity = ACT_RELOAD;
break;
case TASK_GRUNT_FACE_TOSS_DIR:
break;
case TASK_FACE_IDEAL:
case TASK_FACE_ENEMY:
CSquadMonster :: StartTask( pTask );
if (pev->movetype == MOVETYPE_FLY)
{
m_IdealActivity = ACT_GLIDE;
}
break;
default:
CSquadMonster :: StartTask( pTask );
break;
}
}
//=========================================================
// RunTask
//=========================================================
void CHGrunt :: RunTask ( Task_t *pTask )
{
switch ( pTask->iTask )
{
case TASK_GRUNT_FACE_TOSS_DIR:
{
// project a point along the toss vector and turn to face that point.
MakeIdealYaw( pev->origin + m_vecTossVelocity * 64 );
ChangeYaw( pev->yaw_speed );
if ( FacingIdeal() )
{
m_iTaskStatus = TASKSTATUS_COMPLETE;
}
break;
}
default:
{
CSquadMonster :: RunTask( pTask );
break;
}
}
}
//=========================================================
// PainSound
//=========================================================
void CHGrunt :: PainSound ( void )
{
if ( gpGlobals->time > m_flNextPainTime )
{
#if 0
if ( RANDOM_LONG(0,99) < 5 )
{
// pain sentences are rare
if (FOkToSpeak())
{
SENTENCEG_PlayRndSz(ENT(pev), "HG_PAIN", HGRUNT_SENTENCE_VOLUME, ATTN_NORM, 0, PITCH_NORM);
JustSpoke();
return;
}
}
#endif
switch ( RANDOM_LONG(0,6) )
{
case 0:
EMIT_SOUND( ENT(pev), CHAN_VOICE, "hgrunt/gr_pain3.wav", 1, ATTN_NORM );
break;
case 1:
EMIT_SOUND( ENT(pev), CHAN_VOICE, "hgrunt/gr_pain4.wav", 1, ATTN_NORM );
break;
case 2:
EMIT_SOUND( ENT(pev), CHAN_VOICE, "hgrunt/gr_pain5.wav", 1, ATTN_NORM );
break;
case 3:
EMIT_SOUND( ENT(pev), CHAN_VOICE, "hgrunt/gr_pain1.wav", 1, ATTN_NORM );
break;
case 4:
EMIT_SOUND( ENT(pev), CHAN_VOICE, "hgrunt/gr_pain2.wav", 1, ATTN_NORM );
break;
}
m_flNextPainTime = gpGlobals->time + 1;
}
}
//=========================================================
// DeathSound
//=========================================================
void CHGrunt :: DeathSound ( void )
{
switch ( RANDOM_LONG(0,2) )
{
case 0:
EMIT_SOUND( ENT(pev), CHAN_VOICE, "hgrunt/gr_die1.wav", 1, ATTN_IDLE );
break;
case 1:
EMIT_SOUND( ENT(pev), CHAN_VOICE, "hgrunt/gr_die2.wav", 1, ATTN_IDLE );
break;
case 2:
EMIT_SOUND( ENT(pev), CHAN_VOICE, "hgrunt/gr_die3.wav", 1, ATTN_IDLE );
break;
}
}
//=========================================================
// AI Schedules Specific to this monster
//=========================================================
//=========================================================
// GruntFail
//=========================================================
Task_t tlGruntFail[] =
{
{ TASK_STOP_MOVING, 0 },
{ TASK_SET_ACTIVITY, (float)ACT_IDLE },
{ TASK_WAIT, (float)2 },
{ TASK_WAIT_PVS, (float)0 },
};
Schedule_t slGruntFail[] =
{
{
tlGruntFail,
ARRAYSIZE ( tlGruntFail ),
bits_COND_CAN_RANGE_ATTACK1 |
bits_COND_CAN_RANGE_ATTACK2 |
bits_COND_CAN_MELEE_ATTACK1 |
bits_COND_CAN_MELEE_ATTACK2,
0,
"Grunt Fail"
},
};
//=========================================================
// Grunt Combat Fail
//=========================================================
Task_t tlGruntCombatFail[] =
{
{ TASK_STOP_MOVING, 0 },
{ TASK_SET_ACTIVITY, (float)ACT_IDLE },
{ TASK_WAIT_FACE_ENEMY, (float)2 },
{ TASK_WAIT_PVS, (float)0 },
};
Schedule_t slGruntCombatFail[] =
{
{
tlGruntCombatFail,
ARRAYSIZE ( tlGruntCombatFail ),
bits_COND_CAN_RANGE_ATTACK1 |
bits_COND_CAN_RANGE_ATTACK2,
0,
"Grunt Combat Fail"
},
};
//=========================================================
// Victory dance!
//=========================================================
Task_t tlGruntVictoryDance[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_WAIT, (float)1.5 },
{ TASK_GET_PATH_TO_ENEMY_CORPSE, (float)0 },
{ TASK_WALK_PATH, (float)0 },
{ TASK_WAIT_FOR_MOVEMENT, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_PLAY_SEQUENCE, (float)ACT_VICTORY_DANCE },
};
Schedule_t slGruntVictoryDance[] =
{
{
tlGruntVictoryDance,
ARRAYSIZE ( tlGruntVictoryDance ),
bits_COND_NEW_ENEMY |
bits_COND_LIGHT_DAMAGE |
bits_COND_HEAVY_DAMAGE,
0,
"GruntVictoryDance"
},
};
//=========================================================
// Establish line of fire - move to a position that allows
// the grunt to attack.
//=========================================================
Task_t tlGruntEstablishLineOfFire[] =
{
{ TASK_SET_FAIL_SCHEDULE, (float)SCHED_GRUNT_ELOF_FAIL },
{ TASK_GET_PATH_TO_ENEMY, (float)0 },
{ TASK_GRUNT_SPEAK_SENTENCE,(float)0 },
{ TASK_RUN_PATH, (float)0 },
{ TASK_WAIT_FOR_MOVEMENT, (float)0 },
};
Schedule_t slGruntEstablishLineOfFire[] =
{
{
tlGruntEstablishLineOfFire,
ARRAYSIZE ( tlGruntEstablishLineOfFire ),
bits_COND_NEW_ENEMY |
bits_COND_ENEMY_DEAD |
bits_COND_CAN_RANGE_ATTACK1 |
bits_COND_CAN_MELEE_ATTACK1 |
bits_COND_CAN_RANGE_ATTACK2 |
bits_COND_CAN_MELEE_ATTACK2 |
bits_COND_HEAR_SOUND,
bits_SOUND_DANGER,
"GruntEstablishLineOfFire"
},
};
//=========================================================
// GruntFoundEnemy - grunt established sight with an enemy
// that was hiding from the squad.
//=========================================================
Task_t tlGruntFoundEnemy[] =
{
{ TASK_STOP_MOVING, 0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_PLAY_SEQUENCE_FACE_ENEMY,(float)ACT_SIGNAL1 },
};
Schedule_t slGruntFoundEnemy[] =
{
{
tlGruntFoundEnemy,
ARRAYSIZE ( tlGruntFoundEnemy ),
bits_COND_HEAR_SOUND,
bits_SOUND_DANGER,
"GruntFoundEnemy"
},
};
//=========================================================
// GruntCombatFace Schedule
//=========================================================
Task_t tlGruntCombatFace1[] =
{
{ TASK_STOP_MOVING, 0 },
{ TASK_SET_ACTIVITY, (float)ACT_IDLE },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_WAIT, (float)1.5 },
{ TASK_SET_SCHEDULE, (float)SCHED_GRUNT_SWEEP },
};
Schedule_t slGruntCombatFace[] =
{
{
tlGruntCombatFace1,
ARRAYSIZE ( tlGruntCombatFace1 ),
bits_COND_NEW_ENEMY |
bits_COND_ENEMY_DEAD |
bits_COND_CAN_RANGE_ATTACK1 |
bits_COND_CAN_RANGE_ATTACK2,
0,
"Combat Face"
},
};
//=========================================================
// Suppressing fire - don't stop shooting until the clip is
// empty or grunt gets hurt.
//=========================================================
Task_t tlGruntSignalSuppress[] =
{
{ TASK_STOP_MOVING, 0 },
{ TASK_FACE_IDEAL, (float)0 },
{ TASK_PLAY_SEQUENCE_FACE_ENEMY, (float)ACT_SIGNAL2 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
};
Schedule_t slGruntSignalSuppress[] =
{
{
tlGruntSignalSuppress,
ARRAYSIZE ( tlGruntSignalSuppress ),
bits_COND_ENEMY_DEAD |
bits_COND_LIGHT_DAMAGE |
bits_COND_HEAVY_DAMAGE |
bits_COND_HEAR_SOUND |
bits_COND_GRUNT_NOFIRE |
bits_COND_NO_AMMO_LOADED,
bits_SOUND_DANGER,
"SignalSuppress"
},
};
Task_t tlGruntSuppress[] =
{
{ TASK_STOP_MOVING, 0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
};
Schedule_t slGruntSuppress[] =
{
{
tlGruntSuppress,
ARRAYSIZE ( tlGruntSuppress ),
bits_COND_ENEMY_DEAD |
bits_COND_LIGHT_DAMAGE |
bits_COND_HEAVY_DAMAGE |
bits_COND_HEAR_SOUND |
bits_COND_GRUNT_NOFIRE |
bits_COND_NO_AMMO_LOADED,
bits_SOUND_DANGER,
"Suppress"
},
};
//=========================================================
// grunt wait in cover - we don't allow danger or the ability
// to attack to break a grunt's run to cover schedule, but
// when a grunt is in cover, we do want them to attack if they can.
//=========================================================
Task_t tlGruntWaitInCover[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_SET_ACTIVITY, (float)ACT_IDLE },
{ TASK_WAIT_FACE_ENEMY, (float)1 },
};
Schedule_t slGruntWaitInCover[] =
{
{
tlGruntWaitInCover,
ARRAYSIZE ( tlGruntWaitInCover ),
bits_COND_NEW_ENEMY |
bits_COND_HEAR_SOUND |
bits_COND_CAN_RANGE_ATTACK1 |
bits_COND_CAN_RANGE_ATTACK2 |
bits_COND_CAN_MELEE_ATTACK1 |
bits_COND_CAN_MELEE_ATTACK2,
bits_SOUND_DANGER,
"GruntWaitInCover"
},
};
//=========================================================
// run to cover.
// !!!BUGBUG - set a decent fail schedule here.
//=========================================================
Task_t tlGruntTakeCover1[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_SET_FAIL_SCHEDULE, (float)SCHED_GRUNT_TAKECOVER_FAILED },
{ TASK_WAIT, (float)0.2 },
{ TASK_FIND_COVER_FROM_ENEMY, (float)0 },
{ TASK_GRUNT_SPEAK_SENTENCE, (float)0 },
{ TASK_RUN_PATH, (float)0 },
{ TASK_WAIT_FOR_MOVEMENT, (float)0 },
{ TASK_REMEMBER, (float)bits_MEMORY_INCOVER },
{ TASK_SET_SCHEDULE, (float)SCHED_GRUNT_WAIT_FACE_ENEMY },
};
Schedule_t slGruntTakeCover[] =
{
{
tlGruntTakeCover1,
ARRAYSIZE ( tlGruntTakeCover1 ),
0,
0,
"TakeCover"
},
};
//=========================================================
// drop grenade then run to cover.
//=========================================================
Task_t tlGruntGrenadeCover1[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_FIND_COVER_FROM_ENEMY, (float)99 },
{ TASK_FIND_FAR_NODE_COVER_FROM_ENEMY, (float)384 },
{ TASK_PLAY_SEQUENCE, (float)ACT_SPECIAL_ATTACK1 },
{ TASK_CLEAR_MOVE_WAIT, (float)0 },
{ TASK_RUN_PATH, (float)0 },
{ TASK_WAIT_FOR_MOVEMENT, (float)0 },
{ TASK_SET_SCHEDULE, (float)SCHED_GRUNT_WAIT_FACE_ENEMY },
};
Schedule_t slGruntGrenadeCover[] =
{
{
tlGruntGrenadeCover1,
ARRAYSIZE ( tlGruntGrenadeCover1 ),
0,
0,
"GrenadeCover"
},
};
//=========================================================
// drop grenade then run to cover.
//=========================================================
Task_t tlGruntTossGrenadeCover1[] =
{
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_RANGE_ATTACK2, (float)0 },
{ TASK_SET_SCHEDULE, (float)SCHED_TAKE_COVER_FROM_ENEMY },
};
Schedule_t slGruntTossGrenadeCover[] =
{
{
tlGruntTossGrenadeCover1,
ARRAYSIZE ( tlGruntTossGrenadeCover1 ),
0,
0,
"TossGrenadeCover"
},
};
//=========================================================
// hide from the loudest sound source (to run from grenade)
//=========================================================
Task_t tlGruntTakeCoverFromBestSound[] =
{
{ TASK_SET_FAIL_SCHEDULE, (float)SCHED_COWER },// duck and cover if cannot move from explosion
{ TASK_STOP_MOVING, (float)0 },
{ TASK_FIND_COVER_FROM_BEST_SOUND, (float)0 },
{ TASK_RUN_PATH, (float)0 },
{ TASK_WAIT_FOR_MOVEMENT, (float)0 },
{ TASK_REMEMBER, (float)bits_MEMORY_INCOVER },
{ TASK_TURN_LEFT, (float)179 },
};
Schedule_t slGruntTakeCoverFromBestSound[] =
{
{
tlGruntTakeCoverFromBestSound,
ARRAYSIZE ( tlGruntTakeCoverFromBestSound ),
0,
0,
"GruntTakeCoverFromBestSound"
},
};
//=========================================================
// Grunt reload schedule
//=========================================================
Task_t tlGruntHideReload[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_SET_FAIL_SCHEDULE, (float)SCHED_RELOAD },
{ TASK_FIND_COVER_FROM_ENEMY, (float)0 },
{ TASK_RUN_PATH, (float)0 },
{ TASK_WAIT_FOR_MOVEMENT, (float)0 },
{ TASK_REMEMBER, (float)bits_MEMORY_INCOVER },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_PLAY_SEQUENCE, (float)ACT_RELOAD },
};
Schedule_t slGruntHideReload[] =
{
{
tlGruntHideReload,
ARRAYSIZE ( tlGruntHideReload ),
bits_COND_HEAVY_DAMAGE |
bits_COND_HEAR_SOUND,
bits_SOUND_DANGER,
"GruntHideReload"
}
};
//=========================================================
// Do a turning sweep of the area
//=========================================================
Task_t tlGruntSweep[] =
{
{ TASK_TURN_LEFT, (float)179 },
{ TASK_WAIT, (float)1 },
{ TASK_TURN_LEFT, (float)179 },
{ TASK_WAIT, (float)1 },
};
Schedule_t slGruntSweep[] =
{
{
tlGruntSweep,
ARRAYSIZE ( tlGruntSweep ),
bits_COND_NEW_ENEMY |
bits_COND_LIGHT_DAMAGE |
bits_COND_HEAVY_DAMAGE |
bits_COND_CAN_RANGE_ATTACK1 |
bits_COND_CAN_RANGE_ATTACK2 |
bits_COND_HEAR_SOUND,
bits_SOUND_WORLD |// sound flags
bits_SOUND_DANGER |
bits_SOUND_PLAYER,
"Grunt Sweep"
},
};
//=========================================================
// primary range attack. Overriden because base class stops attacking when the enemy is occluded.
// grunt's grenade toss requires the enemy be occluded.
//=========================================================
Task_t tlGruntRangeAttack1A[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_PLAY_SEQUENCE_FACE_ENEMY, (float)ACT_CROUCH },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
};
Schedule_t slGruntRangeAttack1A[] =
{
{
tlGruntRangeAttack1A,
ARRAYSIZE ( tlGruntRangeAttack1A ),
bits_COND_NEW_ENEMY |
bits_COND_ENEMY_DEAD |
bits_COND_HEAVY_DAMAGE |
bits_COND_ENEMY_OCCLUDED |
bits_COND_HEAR_SOUND |
bits_COND_GRUNT_NOFIRE |
bits_COND_NO_AMMO_LOADED,
bits_SOUND_DANGER,
"Range Attack1A"
},
};
//=========================================================
// primary range attack. Overriden because base class stops attacking when the enemy is occluded.
// grunt's grenade toss requires the enemy be occluded.
//=========================================================
Task_t tlGruntRangeAttack1B[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_PLAY_SEQUENCE_FACE_ENEMY,(float)ACT_IDLE_ANGRY },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_GRUNT_CHECK_FIRE, (float)0 },
{ TASK_RANGE_ATTACK1, (float)0 },
};
Schedule_t slGruntRangeAttack1B[] =
{
{
tlGruntRangeAttack1B,
ARRAYSIZE ( tlGruntRangeAttack1B ),
bits_COND_NEW_ENEMY |
bits_COND_ENEMY_DEAD |
bits_COND_HEAVY_DAMAGE |
bits_COND_ENEMY_OCCLUDED |
bits_COND_NO_AMMO_LOADED |
bits_COND_GRUNT_NOFIRE |
bits_COND_HEAR_SOUND,
bits_SOUND_DANGER,
"Range Attack1B"
},
};
//=========================================================
// secondary range attack. Overriden because base class stops attacking when the enemy is occluded.
// grunt's grenade toss requires the enemy be occluded.
//=========================================================
Task_t tlGruntRangeAttack2[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_GRUNT_FACE_TOSS_DIR, (float)0 },
{ TASK_PLAY_SEQUENCE, (float)ACT_RANGE_ATTACK2 },
{ TASK_SET_SCHEDULE, (float)SCHED_GRUNT_WAIT_FACE_ENEMY },// don't run immediately after throwing grenade.
};
Schedule_t slGruntRangeAttack2[] =
{
{
tlGruntRangeAttack2,
ARRAYSIZE ( tlGruntRangeAttack2 ),
0,
0,
"RangeAttack2"
},
};
//=========================================================
// repel
//=========================================================
Task_t tlGruntRepel[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_FACE_IDEAL, (float)0 },
{ TASK_PLAY_SEQUENCE, (float)ACT_GLIDE },
};
Schedule_t slGruntRepel[] =
{
{
tlGruntRepel,
ARRAYSIZE ( tlGruntRepel ),
bits_COND_SEE_ENEMY |
bits_COND_NEW_ENEMY |
bits_COND_LIGHT_DAMAGE |
bits_COND_HEAVY_DAMAGE |
bits_COND_HEAR_SOUND,
bits_SOUND_DANGER |
bits_SOUND_COMBAT |
bits_SOUND_PLAYER,
"Repel"
},
};
//=========================================================
// repel
//=========================================================
Task_t tlGruntRepelAttack[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_FACE_ENEMY, (float)0 },
{ TASK_PLAY_SEQUENCE, (float)ACT_FLY },
};
Schedule_t slGruntRepelAttack[] =
{
{
tlGruntRepelAttack,
ARRAYSIZE ( tlGruntRepelAttack ),
bits_COND_ENEMY_OCCLUDED,
0,
"Repel Attack"
},
};
//=========================================================
// repel land
//=========================================================
Task_t tlGruntRepelLand[] =
{
{ TASK_STOP_MOVING, (float)0 },
{ TASK_PLAY_SEQUENCE, (float)ACT_LAND },
{ TASK_GET_PATH_TO_LASTPOSITION,(float)0 },
{ TASK_RUN_PATH, (float)0 },
{ TASK_WAIT_FOR_MOVEMENT, (float)0 },
{ TASK_CLEAR_LASTPOSITION, (float)0 },
};
Schedule_t slGruntRepelLand[] =
{
{
tlGruntRepelLand,
ARRAYSIZE ( tlGruntRepelLand ),
bits_COND_SEE_ENEMY |
bits_COND_NEW_ENEMY |
bits_COND_LIGHT_DAMAGE |
bits_COND_HEAVY_DAMAGE |
bits_COND_HEAR_SOUND,
bits_SOUND_DANGER |
bits_SOUND_COMBAT |
bits_SOUND_PLAYER,
"Repel Land"
},
};
DEFINE_CUSTOM_SCHEDULES( CHGrunt )
{
slGruntFail,
slGruntCombatFail,
slGruntVictoryDance,
slGruntEstablishLineOfFire,
slGruntFoundEnemy,
slGruntCombatFace,
slGruntSignalSuppress,
slGruntSuppress,
slGruntWaitInCover,
slGruntTakeCover,
slGruntGrenadeCover,
slGruntTossGrenadeCover,
slGruntTakeCoverFromBestSound,
slGruntHideReload,
slGruntSweep,
slGruntRangeAttack1A,
slGruntRangeAttack1B,
slGruntRangeAttack2,
slGruntRepel,
slGruntRepelAttack,
slGruntRepelLand,
};
IMPLEMENT_CUSTOM_SCHEDULES( CHGrunt, CSquadMonster );
//=========================================================
// SetActivity
//=========================================================
void CHGrunt :: SetActivity ( Activity NewActivity )
{
int iSequence = ACTIVITY_NOT_AVAILABLE;
void *pmodel = GET_MODEL_PTR( ENT(pev) );
switch ( NewActivity)
{
case ACT_RANGE_ATTACK1:
// grunt is either shooting standing or shooting crouched
if (FBitSet( pev->weapons, HGRUNT_9MMAR))
{
if ( m_fStanding )
{
// get aimable sequence
iSequence = LookupSequence( "standing_mp5" );
}
else
{
// get crouching shoot
iSequence = LookupSequence( "crouching_mp5" );
}
}
else
{
if ( m_fStanding )
{
// get aimable sequence
iSequence = LookupSequence( "standing_shotgun" );
}
else
{
// get crouching shoot
iSequence = LookupSequence( "crouching_shotgun" );
}
}
break;
case ACT_RANGE_ATTACK2:
// grunt is going to a secondary long range attack. This may be a thrown
// grenade or fired grenade, we must determine which and pick proper sequence
if ( pev->weapons & HGRUNT_HANDGRENADE )
{
// get toss anim
iSequence = LookupSequence( "throwgrenade" );
}
else
{
// get launch anim
iSequence = LookupSequence( "launchgrenade" );
}
break;
case ACT_RUN:
if ( pev->health <= HGRUNT_LIMP_HEALTH )
{
// limp!
iSequence = LookupActivity ( ACT_RUN_HURT );
}
else
{
iSequence = LookupActivity ( NewActivity );
}
break;
case ACT_WALK:
if ( pev->health <= HGRUNT_LIMP_HEALTH )
{
// limp!
iSequence = LookupActivity ( ACT_WALK_HURT );
}
else
{
iSequence = LookupActivity ( NewActivity );
}
break;
case ACT_IDLE:
if ( m_MonsterState == MONSTERSTATE_COMBAT )
{
NewActivity = ACT_IDLE_ANGRY;
}
iSequence = LookupActivity ( NewActivity );
break;
default:
iSequence = LookupActivity ( NewActivity );
break;
}
m_Activity = NewActivity; // Go ahead and set this so it doesn't keep trying when the anim is not present
// Set to the desired anim, or default anim if the desired is not present
if ( iSequence > ACTIVITY_NOT_AVAILABLE )
{
if ( pev->sequence != iSequence || !m_fSequenceLoops )
{
pev->frame = 0;
}
pev->sequence = iSequence; // Set to the reset anim (if it's there)
ResetSequenceInfo( );
SetYawSpeed();
}
else
{
// Not available try to get default anim
ALERT ( at_console, "%s has no sequence for act:%d\n", STRING(pev->classname), NewActivity );
pev->sequence = 0; // Set to the reset anim (if it's there)
}
}
//=========================================================
// Get Schedule!
//=========================================================
Schedule_t *CHGrunt :: GetSchedule( void )
{
// clear old sentence
m_iSentence = HGRUNT_SENT_NONE;
// flying? If PRONE, barnacle has me. IF not, it's assumed I am rapelling.
if ( pev->movetype == MOVETYPE_FLY && m_MonsterState != MONSTERSTATE_PRONE )
{
if (pev->flags & FL_ONGROUND)
{
// just landed
pev->movetype = MOVETYPE_STEP;
return GetScheduleOfType ( SCHED_GRUNT_REPEL_LAND );
}
else
{
// repel down a rope,
if ( m_MonsterState == MONSTERSTATE_COMBAT )
return GetScheduleOfType ( SCHED_GRUNT_REPEL_ATTACK );
else
return GetScheduleOfType ( SCHED_GRUNT_REPEL );
}
}
// grunts place HIGH priority on running away from danger sounds.
if ( HasConditions(bits_COND_HEAR_SOUND) )
{
CSound *pSound;
pSound = PBestSound();
ASSERT( pSound != NULL );
if ( pSound)
{
if (pSound->m_iType & bits_SOUND_DANGER)
{
// dangerous sound nearby!
//!!!KELLY - currently, this is the grunt's signal that a grenade has landed nearby,
// and the grunt should find cover from the blast
// good place for "SHIT!" or some other colorful verbal indicator of dismay.
// It's not safe to play a verbal order here "Scatter", etc cause
// this may only affect a single individual in a squad.
if (FOkToSpeak())
{
SENTENCEG_PlayRndSz( ENT(pev), "HG_GREN", HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
JustSpoke();
}
return GetScheduleOfType( SCHED_TAKE_COVER_FROM_BEST_SOUND );
}
/*
if (!HasConditions( bits_COND_SEE_ENEMY ) && ( pSound->m_iType & (bits_SOUND_PLAYER | bits_SOUND_COMBAT) ))
{
MakeIdealYaw( pSound->m_vecOrigin );
}
*/
}
}
switch ( m_MonsterState )
{
case MONSTERSTATE_COMBAT:
{
// dead enemy
if ( HasConditions( bits_COND_ENEMY_DEAD ) )
{
// call base class, all code to handle dead enemies is centralized there.
return CBaseMonster :: GetSchedule();
}
// new enemy
if ( HasConditions(bits_COND_NEW_ENEMY) )
{
if ( InSquad() )
{
MySquadLeader()->m_fEnemyEluded = FALSE;
if ( !IsLeader() )
{
return GetScheduleOfType ( SCHED_TAKE_COVER_FROM_ENEMY );
}
else
{
//!!!KELLY - the leader of a squad of grunts has just seen the player or a
// monster and has made it the squad's enemy. You
// can check pev->flags for FL_CLIENT to determine whether this is the player
// or a monster. He's going to immediately start
// firing, though. If you'd like, we can make an alternate "first sight"
// schedule where the leader plays a handsign anim
// that gives us enough time to hear a short sentence or spoken command
// before he starts pluggin away.
if (FOkToSpeak())// && RANDOM_LONG(0,1))
{
if ((m_hEnemy != NULL) && m_hEnemy->IsPlayer())
// player
SENTENCEG_PlayRndSz( ENT(pev), "HG_ALERT", HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
else if ((m_hEnemy != NULL) &&
(m_hEnemy->Classify() != CLASS_PLAYER_ALLY) &&
(m_hEnemy->Classify() != CLASS_HUMAN_PASSIVE) &&
(m_hEnemy->Classify() != CLASS_MACHINE))
// monster
SENTENCEG_PlayRndSz( ENT(pev), "HG_MONST", HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
JustSpoke();
}
if ( HasConditions ( bits_COND_CAN_RANGE_ATTACK1 ) )
{
return GetScheduleOfType ( SCHED_GRUNT_SUPPRESS );
}
else
{
return GetScheduleOfType ( SCHED_GRUNT_ESTABLISH_LINE_OF_FIRE );
}
}
}
}
// no ammo
else if ( HasConditions ( bits_COND_NO_AMMO_LOADED ) )
{
//!!!KELLY - this individual just realized he's out of bullet ammo.
// He's going to try to find cover to run to and reload, but rarely, if
// none is available, he'll drop and reload in the open here.
return GetScheduleOfType ( SCHED_GRUNT_COVER_AND_RELOAD );
}
// damaged just a little
else if ( HasConditions( bits_COND_LIGHT_DAMAGE ) )
{
// if hurt:
// 90% chance of taking cover
// 10% chance of flinch.
int iPercent = RANDOM_LONG(0,99);
if ( iPercent <= 90 && m_hEnemy != NULL )
{
// only try to take cover if we actually have an enemy!
//!!!KELLY - this grunt was hit and is going to run to cover.
if (FOkToSpeak()) // && RANDOM_LONG(0,1))
{
//SENTENCEG_PlayRndSz( ENT(pev), "HG_COVER", HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
m_iSentence = HGRUNT_SENT_COVER;
//JustSpoke();
}
return GetScheduleOfType( SCHED_TAKE_COVER_FROM_ENEMY );
}
else
{
return GetScheduleOfType( SCHED_SMALL_FLINCH );
}
}
// can kick
else if ( HasConditions ( bits_COND_CAN_MELEE_ATTACK1 ) )
{
return GetScheduleOfType ( SCHED_MELEE_ATTACK1 );
}
// can grenade launch
else if ( FBitSet( pev->weapons, HGRUNT_GRENADELAUNCHER) && HasConditions ( bits_COND_CAN_RANGE_ATTACK2 ) && OccupySlot( bits_SLOTS_HGRUNT_GRENADE ) )
{
// shoot a grenade if you can
return GetScheduleOfType( SCHED_RANGE_ATTACK2 );
}
// can shoot
else if ( HasConditions ( bits_COND_CAN_RANGE_ATTACK1 ) )
{
if ( InSquad() )
{
// if the enemy has eluded the squad and a squad member has just located the enemy
// and the enemy does not see the squad member, issue a call to the squad to waste a
// little time and give the player a chance to turn.
if ( MySquadLeader()->m_fEnemyEluded && !HasConditions ( bits_COND_ENEMY_FACING_ME ) )
{
MySquadLeader()->m_fEnemyEluded = FALSE;
return GetScheduleOfType ( SCHED_GRUNT_FOUND_ENEMY );
}
}
if ( OccupySlot ( bits_SLOTS_HGRUNT_ENGAGE ) )
{
// try to take an available ENGAGE slot
return GetScheduleOfType( SCHED_RANGE_ATTACK1 );
}
else if ( HasConditions ( bits_COND_CAN_RANGE_ATTACK2 ) && OccupySlot( bits_SLOTS_HGRUNT_GRENADE ) )
{
// throw a grenade if can and no engage slots are available
return GetScheduleOfType( SCHED_RANGE_ATTACK2 );
}
else
{
// hide!
return GetScheduleOfType( SCHED_TAKE_COVER_FROM_ENEMY );
}
}
// can't see enemy
else if ( HasConditions( bits_COND_ENEMY_OCCLUDED ) )
{
if ( HasConditions( bits_COND_CAN_RANGE_ATTACK2 ) && OccupySlot( bits_SLOTS_HGRUNT_GRENADE ) )
{
//!!!KELLY - this grunt is about to throw or fire a grenade at the player. Great place for "fire in the hole" "frag out" etc
if (FOkToSpeak())
{
SENTENCEG_PlayRndSz( ENT(pev), "HG_THROW", HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
JustSpoke();
}
return GetScheduleOfType( SCHED_RANGE_ATTACK2 );
}
else if ( OccupySlot( bits_SLOTS_HGRUNT_ENGAGE ) )
{
//!!!KELLY - grunt cannot see the enemy and has just decided to
// charge the enemy's position.
if (FOkToSpeak())// && RANDOM_LONG(0,1))
{
//SENTENCEG_PlayRndSz( ENT(pev), "HG_CHARGE", HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
m_iSentence = HGRUNT_SENT_CHARGE;
//JustSpoke();
}
return GetScheduleOfType( SCHED_GRUNT_ESTABLISH_LINE_OF_FIRE );
}
else
{
//!!!KELLY - grunt is going to stay put for a couple seconds to see if
// the enemy wanders back out into the open, or approaches the
// grunt's covered position. Good place for a taunt, I guess?
if (FOkToSpeak() && RANDOM_LONG(0,1))
{
SENTENCEG_PlayRndSz( ENT(pev), "HG_TAUNT", HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
JustSpoke();
}
return GetScheduleOfType( SCHED_STANDOFF );
}
}
if ( HasConditions( bits_COND_SEE_ENEMY ) && !HasConditions ( bits_COND_CAN_RANGE_ATTACK1 ) )
{
return GetScheduleOfType ( SCHED_GRUNT_ESTABLISH_LINE_OF_FIRE );
}
}
}
// no special cases here, call the base class
return CSquadMonster :: GetSchedule();
}
//=========================================================
//=========================================================
Schedule_t* CHGrunt :: GetScheduleOfType ( int Type )
{
switch ( Type )
{
case SCHED_TAKE_COVER_FROM_ENEMY:
{
if ( InSquad() )
{
if ( g_iSkillLevel == SKILL_HARD && HasConditions( bits_COND_CAN_RANGE_ATTACK2 ) && OccupySlot( bits_SLOTS_HGRUNT_GRENADE ) )
{
if (FOkToSpeak())
{
SENTENCEG_PlayRndSz( ENT(pev), "HG_THROW", HGRUNT_SENTENCE_VOLUME, GRUNT_ATTN, 0, m_voicePitch);
JustSpoke();
}
return slGruntTossGrenadeCover;
}
else
{
return &slGruntTakeCover[ 0 ];
}
}
else
{
if ( RANDOM_LONG(0,1) )
{
return &slGruntTakeCover[ 0 ];
}
else
{
return &slGruntGrenadeCover[ 0 ];
}
}
}
case SCHED_TAKE_COVER_FROM_BEST_SOUND:
{
return &slGruntTakeCoverFromBestSound[ 0 ];
}
case SCHED_GRUNT_TAKECOVER_FAILED:
{
if ( HasConditions( bits_COND_CAN_RANGE_ATTACK1 ) && OccupySlot( bits_SLOTS_HGRUNT_ENGAGE ) )
{
return GetScheduleOfType( SCHED_RANGE_ATTACK1 );
}
return GetScheduleOfType ( SCHED_FAIL );
}
break;
case SCHED_GRUNT_ELOF_FAIL:
{
// human grunt is unable to move to a position that allows him to attack the enemy.
return GetScheduleOfType ( SCHED_TAKE_COVER_FROM_ENEMY );
}
break;
case SCHED_GRUNT_ESTABLISH_LINE_OF_FIRE:
{
return &slGruntEstablishLineOfFire[ 0 ];
}
break;
case SCHED_RANGE_ATTACK1:
{
// randomly stand or crouch
if (RANDOM_LONG(0,9) == 0)
m_fStanding = RANDOM_LONG(0,1);
if (m_fStanding)
return &slGruntRangeAttack1B[ 0 ];
else
return &slGruntRangeAttack1A[ 0 ];
}
case SCHED_RANGE_ATTACK2:
{
return &slGruntRangeAttack2[ 0 ];
}
case SCHED_COMBAT_FACE:
{
return &slGruntCombatFace[ 0 ];
}
case SCHED_GRUNT_WAIT_FACE_ENEMY:
{
return &slGruntWaitInCover[ 0 ];
}
case SCHED_GRUNT_SWEEP:
{
return &slGruntSweep[ 0 ];
}
case SCHED_GRUNT_COVER_AND_RELOAD:
{
return &slGruntHideReload[ 0 ];
}
case SCHED_GRUNT_FOUND_ENEMY:
{
return &slGruntFoundEnemy[ 0 ];
}
case SCHED_VICTORY_DANCE:
{
if ( InSquad() )
{
if ( !IsLeader() )
{
return &slGruntFail[ 0 ];
}
}
return &slGruntVictoryDance[ 0 ];
}
case SCHED_GRUNT_SUPPRESS:
{
if ( m_hEnemy->IsPlayer() && m_fFirstEncounter )
{
m_fFirstEncounter = FALSE;// after first encounter, leader won't issue handsigns anymore when he has a new enemy
return &slGruntSignalSuppress[ 0 ];
}
else
{
return &slGruntSuppress[ 0 ];
}
}
case SCHED_FAIL:
{
if ( m_hEnemy != NULL )
{
// grunt has an enemy, so pick a different default fail schedule most likely to help recover.
return &slGruntCombatFail[ 0 ];
}
return &slGruntFail[ 0 ];
}
case SCHED_GRUNT_REPEL:
{
if (pev->velocity.z > -128)
pev->velocity.z -= 32;
return &slGruntRepel[ 0 ];
}
case SCHED_GRUNT_REPEL_ATTACK:
{
if (pev->velocity.z > -128)
pev->velocity.z -= 32;
return &slGruntRepelAttack[ 0 ];
}
case SCHED_GRUNT_REPEL_LAND:
{
return &slGruntRepelLand[ 0 ];
}
default:
{
return CSquadMonster :: GetScheduleOfType ( Type );
}
}
}
//=========================================================
// CHGruntRepel - when triggered, spawns a monster_human_grunt
// repelling down a line.
//=========================================================
class CHGruntRepel : public CBaseMonster
{
public:
void Spawn( void );
void Precache( void );
void EXPORT RepelUse ( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
int m_iSpriteTexture; // Don't save, precache
};
LINK_ENTITY_TO_CLASS( monster_grunt_repel, CHGruntRepel );
void CHGruntRepel::Spawn( void )
{
Precache( );
pev->solid = SOLID_NOT;
SetUse( &CHGruntRepel::RepelUse );
}
void CHGruntRepel::Precache( void )
{
UTIL_PrecacheOther( "monster_human_grunt" );
m_iSpriteTexture = PRECACHE_MODEL( "sprites/rope.spr" );
}
void CHGruntRepel::RepelUse ( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
{
TraceResult tr;
UTIL_TraceLine( pev->origin, pev->origin + Vector( (int)0, (int)0, (int)-4096.0), dont_ignore_monsters, ENT(pev), &tr);
/*
if ( tr.pHit && Instance( tr.pHit )->pev->solid != SOLID_BSP)
return NULL;
*/
CBaseEntity *pEntity = Create( "monster_human_grunt", pev->origin, pev->angles );
CBaseMonster *pGrunt = pEntity->MyMonsterPointer( );
pGrunt->pev->movetype = MOVETYPE_FLY;
pGrunt->pev->velocity = Vector( (float)0, (float)0, (float)RANDOM_FLOAT( -196, -128 ) );
pGrunt->SetActivity( ACT_GLIDE );
// UNDONE: position?
pGrunt->m_vecLastPosition = tr.vecEndPos;
CBeam *pBeam = CBeam::BeamCreate( "sprites/rope.spr", 10 );
pBeam->PointEntInit( pev->origin + Vector(0,0,112), pGrunt->entindex() );
pBeam->SetFlags( BEAM_FSOLID );
pBeam->SetColor( 255, 255, 255 );
pBeam->SetThink( &CHGruntRepel::SUB_Remove );
pBeam->pev->nextthink = gpGlobals->time + -4096.0 * tr.flFraction / pGrunt->pev->velocity.z + 0.5;
UTIL_Remove( this );
}
//=========================================================
// DEAD HGRUNT PROP
//=========================================================
class CDeadHGrunt : public CBaseMonster
{
public:
void Spawn( void );
int Classify ( void ) { return CLASS_HUMAN_MILITARY; }
void KeyValue( KeyValueData *pkvd );
int m_iPose;// which sequence to display -- temporary, don't need to save
static char *m_szPoses[3];
};
char *CDeadHGrunt::m_szPoses[] = { "deadstomach", "deadside", "deadsitting" };
void CDeadHGrunt::KeyValue( KeyValueData *pkvd )
{
if (FStrEq(pkvd->szKeyName, "pose"))
{
m_iPose = atoi(pkvd->szValue);
pkvd->fHandled = TRUE;
}
else
CBaseMonster::KeyValue( pkvd );
}
LINK_ENTITY_TO_CLASS( monster_hgrunt_dead, CDeadHGrunt );
//=========================================================
// ********** DeadHGrunt SPAWN **********
//=========================================================
void CDeadHGrunt :: Spawn( void )
{
PRECACHE_MODEL("models/hgrunt.mdl");
SET_MODEL(ENT(pev), "models/hgrunt.mdl");
pev->effects = 0;
pev->yaw_speed = 8;
pev->sequence = 0;
m_bloodColor = BLOOD_COLOR_RED;
pev->sequence = LookupSequence( m_szPoses[m_iPose] );
if (pev->sequence == -1)
{
ALERT ( at_console, "Dead hgrunt with bad pose\n" );
}
// Corpses have less health
pev->health = 8;
// map old bodies onto new bodies
switch( pev->body )
{
case 0: // Grunt with Gun
pev->body = 0;
pev->skin = 0;
SetBodygroup( HEAD_GROUP, HEAD_GRUNT );
SetBodygroup( GUN_GROUP, GUN_MP5 );
break;
case 1: // Commander with Gun
pev->body = 0;
pev->skin = 0;
SetBodygroup( HEAD_GROUP, HEAD_COMMANDER );
SetBodygroup( GUN_GROUP, GUN_MP5 );
break;
case 2: // Grunt no Gun
pev->body = 0;
pev->skin = 0;
SetBodygroup( HEAD_GROUP, HEAD_GRUNT );
SetBodygroup( GUN_GROUP, GUN_NONE );
break;
case 3: // Commander no Gun
pev->body = 0;
pev->skin = 0;
SetBodygroup( HEAD_GROUP, HEAD_COMMANDER );
SetBodygroup( GUN_GROUP, GUN_NONE );
break;
}
MonsterInitDead();
}
|
{
"pile_set_name": "Github"
}
|
// mkerrors.sh -m64
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// +build ppc64,linux
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs -- -m64 _const.go
package unix
import "syscall"
const (
AF_ALG = 0x26
AF_APPLETALK = 0x5
AF_ASH = 0x12
AF_ATMPVC = 0x8
AF_ATMSVC = 0x14
AF_AX25 = 0x3
AF_BLUETOOTH = 0x1f
AF_BRIDGE = 0x7
AF_CAIF = 0x25
AF_CAN = 0x1d
AF_DECnet = 0xc
AF_ECONET = 0x13
AF_FILE = 0x1
AF_IEEE802154 = 0x24
AF_INET = 0x2
AF_INET6 = 0xa
AF_IPX = 0x4
AF_IRDA = 0x17
AF_ISDN = 0x22
AF_IUCV = 0x20
AF_KEY = 0xf
AF_LLC = 0x1a
AF_LOCAL = 0x1
AF_MAX = 0x29
AF_NETBEUI = 0xd
AF_NETLINK = 0x10
AF_NETROM = 0x6
AF_NFC = 0x27
AF_PACKET = 0x11
AF_PHONET = 0x23
AF_PPPOX = 0x18
AF_RDS = 0x15
AF_ROSE = 0xb
AF_ROUTE = 0x10
AF_RXRPC = 0x21
AF_SECURITY = 0xe
AF_SNA = 0x16
AF_TIPC = 0x1e
AF_UNIX = 0x1
AF_UNSPEC = 0x0
AF_VSOCK = 0x28
AF_WANPIPE = 0x19
AF_X25 = 0x9
ARPHRD_6LOWPAN = 0x339
ARPHRD_ADAPT = 0x108
ARPHRD_APPLETLK = 0x8
ARPHRD_ARCNET = 0x7
ARPHRD_ASH = 0x30d
ARPHRD_ATM = 0x13
ARPHRD_AX25 = 0x3
ARPHRD_BIF = 0x307
ARPHRD_CAIF = 0x336
ARPHRD_CAN = 0x118
ARPHRD_CHAOS = 0x5
ARPHRD_CISCO = 0x201
ARPHRD_CSLIP = 0x101
ARPHRD_CSLIP6 = 0x103
ARPHRD_DDCMP = 0x205
ARPHRD_DLCI = 0xf
ARPHRD_ECONET = 0x30e
ARPHRD_EETHER = 0x2
ARPHRD_ETHER = 0x1
ARPHRD_EUI64 = 0x1b
ARPHRD_FCAL = 0x311
ARPHRD_FCFABRIC = 0x313
ARPHRD_FCPL = 0x312
ARPHRD_FCPP = 0x310
ARPHRD_FDDI = 0x306
ARPHRD_FRAD = 0x302
ARPHRD_HDLC = 0x201
ARPHRD_HIPPI = 0x30c
ARPHRD_HWX25 = 0x110
ARPHRD_IEEE1394 = 0x18
ARPHRD_IEEE802 = 0x6
ARPHRD_IEEE80211 = 0x321
ARPHRD_IEEE80211_PRISM = 0x322
ARPHRD_IEEE80211_RADIOTAP = 0x323
ARPHRD_IEEE802154 = 0x324
ARPHRD_IEEE802154_MONITOR = 0x325
ARPHRD_IEEE802_TR = 0x320
ARPHRD_INFINIBAND = 0x20
ARPHRD_IP6GRE = 0x337
ARPHRD_IPDDP = 0x309
ARPHRD_IPGRE = 0x30a
ARPHRD_IRDA = 0x30f
ARPHRD_LAPB = 0x204
ARPHRD_LOCALTLK = 0x305
ARPHRD_LOOPBACK = 0x304
ARPHRD_METRICOM = 0x17
ARPHRD_NETLINK = 0x338
ARPHRD_NETROM = 0x0
ARPHRD_NONE = 0xfffe
ARPHRD_PHONET = 0x334
ARPHRD_PHONET_PIPE = 0x335
ARPHRD_PIMREG = 0x30b
ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206
ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308
ARPHRD_SKIP = 0x303
ARPHRD_SLIP = 0x100
ARPHRD_SLIP6 = 0x102
ARPHRD_TUNNEL = 0x300
ARPHRD_TUNNEL6 = 0x301
ARPHRD_VOID = 0xffff
ARPHRD_X25 = 0x10f
B0 = 0x0
B1000000 = 0x17
B110 = 0x3
B115200 = 0x11
B1152000 = 0x18
B1200 = 0x9
B134 = 0x4
B150 = 0x5
B1500000 = 0x19
B1800 = 0xa
B19200 = 0xe
B200 = 0x6
B2000000 = 0x1a
B230400 = 0x12
B2400 = 0xb
B2500000 = 0x1b
B300 = 0x7
B3000000 = 0x1c
B3500000 = 0x1d
B38400 = 0xf
B4000000 = 0x1e
B460800 = 0x13
B4800 = 0xc
B50 = 0x1
B500000 = 0x14
B57600 = 0x10
B576000 = 0x15
B600 = 0x8
B75 = 0x2
B921600 = 0x16
B9600 = 0xd
BOTHER = 0x1f
BPF_A = 0x10
BPF_ABS = 0x20
BPF_ADD = 0x0
BPF_ALU = 0x4
BPF_AND = 0x50
BPF_B = 0x10
BPF_DIV = 0x30
BPF_H = 0x8
BPF_IMM = 0x0
BPF_IND = 0x40
BPF_JA = 0x0
BPF_JEQ = 0x10
BPF_JGE = 0x30
BPF_JGT = 0x20
BPF_JMP = 0x5
BPF_JSET = 0x40
BPF_K = 0x0
BPF_LD = 0x0
BPF_LDX = 0x1
BPF_LEN = 0x80
BPF_LSH = 0x60
BPF_MAJOR_VERSION = 0x1
BPF_MAXINSNS = 0x1000
BPF_MEM = 0x60
BPF_MEMWORDS = 0x10
BPF_MINOR_VERSION = 0x1
BPF_MISC = 0x7
BPF_MOD = 0x90
BPF_MSH = 0xa0
BPF_MUL = 0x20
BPF_NEG = 0x80
BPF_OR = 0x40
BPF_RET = 0x6
BPF_RSH = 0x70
BPF_ST = 0x2
BPF_STX = 0x3
BPF_SUB = 0x10
BPF_TAX = 0x0
BPF_TXA = 0x80
BPF_W = 0x0
BPF_X = 0x8
BPF_XOR = 0xa0
BRKINT = 0x2
BS0 = 0x0
BS1 = 0x8000
BSDLY = 0x8000
CBAUD = 0xff
CBAUDEX = 0x0
CFLUSH = 0xf
CIBAUD = 0xff0000
CLOCAL = 0x8000
CLOCK_BOOTTIME = 0x7
CLOCK_BOOTTIME_ALARM = 0x9
CLOCK_DEFAULT = 0x0
CLOCK_EXT = 0x1
CLOCK_INT = 0x2
CLOCK_MONOTONIC = 0x1
CLOCK_MONOTONIC_COARSE = 0x6
CLOCK_MONOTONIC_RAW = 0x4
CLOCK_PROCESS_CPUTIME_ID = 0x2
CLOCK_REALTIME = 0x0
CLOCK_REALTIME_ALARM = 0x8
CLOCK_REALTIME_COARSE = 0x5
CLOCK_THREAD_CPUTIME_ID = 0x3
CLOCK_TXFROMRX = 0x4
CLOCK_TXINT = 0x3
CLONE_CHILD_CLEARTID = 0x200000
CLONE_CHILD_SETTID = 0x1000000
CLONE_DETACHED = 0x400000
CLONE_FILES = 0x400
CLONE_FS = 0x200
CLONE_IO = 0x80000000
CLONE_NEWIPC = 0x8000000
CLONE_NEWNET = 0x40000000
CLONE_NEWNS = 0x20000
CLONE_NEWPID = 0x20000000
CLONE_NEWUSER = 0x10000000
CLONE_NEWUTS = 0x4000000
CLONE_PARENT = 0x8000
CLONE_PARENT_SETTID = 0x100000
CLONE_PTRACE = 0x2000
CLONE_SETTLS = 0x80000
CLONE_SIGHAND = 0x800
CLONE_SYSVSEM = 0x40000
CLONE_THREAD = 0x10000
CLONE_UNTRACED = 0x800000
CLONE_VFORK = 0x4000
CLONE_VM = 0x100
CMSPAR = 0x40000000
CR0 = 0x0
CR1 = 0x1000
CR2 = 0x2000
CR3 = 0x3000
CRDLY = 0x3000
CREAD = 0x800
CRTSCTS = 0x80000000
CS5 = 0x0
CS6 = 0x100
CS7 = 0x200
CS8 = 0x300
CSIGNAL = 0xff
CSIZE = 0x300
CSTART = 0x11
CSTATUS = 0x0
CSTOP = 0x13
CSTOPB = 0x400
CSUSP = 0x1a
DT_BLK = 0x6
DT_CHR = 0x2
DT_DIR = 0x4
DT_FIFO = 0x1
DT_LNK = 0xa
DT_REG = 0x8
DT_SOCK = 0xc
DT_UNKNOWN = 0x0
DT_WHT = 0xe
ECHO = 0x8
ECHOCTL = 0x40
ECHOE = 0x2
ECHOK = 0x4
ECHOKE = 0x1
ECHONL = 0x10
ECHOPRT = 0x20
ENCODING_DEFAULT = 0x0
ENCODING_FM_MARK = 0x3
ENCODING_FM_SPACE = 0x4
ENCODING_MANCHESTER = 0x5
ENCODING_NRZ = 0x1
ENCODING_NRZI = 0x2
EPOLLERR = 0x8
EPOLLET = 0x80000000
EPOLLHUP = 0x10
EPOLLIN = 0x1
EPOLLMSG = 0x400
EPOLLONESHOT = 0x40000000
EPOLLOUT = 0x4
EPOLLPRI = 0x2
EPOLLRDBAND = 0x80
EPOLLRDHUP = 0x2000
EPOLLRDNORM = 0x40
EPOLLWAKEUP = 0x20000000
EPOLLWRBAND = 0x200
EPOLLWRNORM = 0x100
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
ETH_P_1588 = 0x88f7
ETH_P_8021AD = 0x88a8
ETH_P_8021AH = 0x88e7
ETH_P_8021Q = 0x8100
ETH_P_80221 = 0x8917
ETH_P_802_2 = 0x4
ETH_P_802_3 = 0x1
ETH_P_802_3_MIN = 0x600
ETH_P_802_EX1 = 0x88b5
ETH_P_AARP = 0x80f3
ETH_P_AF_IUCV = 0xfbfb
ETH_P_ALL = 0x3
ETH_P_AOE = 0x88a2
ETH_P_ARCNET = 0x1a
ETH_P_ARP = 0x806
ETH_P_ATALK = 0x809b
ETH_P_ATMFATE = 0x8884
ETH_P_ATMMPOA = 0x884c
ETH_P_AX25 = 0x2
ETH_P_BATMAN = 0x4305
ETH_P_BPQ = 0x8ff
ETH_P_CAIF = 0xf7
ETH_P_CAN = 0xc
ETH_P_CANFD = 0xd
ETH_P_CONTROL = 0x16
ETH_P_CUST = 0x6006
ETH_P_DDCMP = 0x6
ETH_P_DEC = 0x6000
ETH_P_DIAG = 0x6005
ETH_P_DNA_DL = 0x6001
ETH_P_DNA_RC = 0x6002
ETH_P_DNA_RT = 0x6003
ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada
ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19
ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01
ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137
ETH_P_IRDA = 0x17
ETH_P_LAT = 0x6004
ETH_P_LINK_CTL = 0x886c
ETH_P_LOCALTALK = 0x9
ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000
ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5
ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5
ETH_P_PPPTALK = 0x10
ETH_P_PPP_DISC = 0x8863
ETH_P_PPP_MP = 0x8
ETH_P_PPP_SES = 0x8864
ETH_P_PRP = 0x88fb
ETH_P_PUP = 0x200
ETH_P_PUPAT = 0x201
ETH_P_QINQ1 = 0x9100
ETH_P_QINQ2 = 0x9200
ETH_P_QINQ3 = 0x9300
ETH_P_RARP = 0x8035
ETH_P_SCA = 0x6007
ETH_P_SLOW = 0x8809
ETH_P_SNAP = 0x5
ETH_P_TDLS = 0x890d
ETH_P_TEB = 0x6558
ETH_P_TIPC = 0x88ca
ETH_P_TRAILER = 0x1c
ETH_P_TR_802_2 = 0x11
ETH_P_WAN_PPP = 0x7
ETH_P_WCCP = 0x883e
ETH_P_X25 = 0x805
ETH_P_XDSA = 0xf8
EXTA = 0xe
EXTB = 0xf
EXTPROC = 0x10000000
FD_CLOEXEC = 0x1
FD_SETSIZE = 0x400
FF0 = 0x0
FF1 = 0x4000
FFDLY = 0x4000
FLUSHO = 0x800000
F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4
F_GETFD = 0x1
F_GETFL = 0x3
F_GETLEASE = 0x401
F_GETLK = 0x5
F_GETLK64 = 0xc
F_GETOWN = 0x9
F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb
F_LOCK = 0x1
F_NOTIFY = 0x402
F_OFD_GETLK = 0x24
F_OFD_SETLK = 0x25
F_OFD_SETLKW = 0x26
F_OK = 0x0
F_RDLCK = 0x0
F_SETFD = 0x2
F_SETFL = 0x4
F_SETLEASE = 0x400
F_SETLK = 0x6
F_SETLK64 = 0xd
F_SETLKW = 0x7
F_SETLKW64 = 0xe
F_SETOWN = 0x8
F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa
F_SHLCK = 0x8
F_TEST = 0x3
F_TLOCK = 0x2
F_ULOCK = 0x0
F_UNLCK = 0x2
F_WRLCK = 0x1
HUPCL = 0x4000
IBSHIFT = 0x10
ICANON = 0x100
ICMPV6_FILTER = 0x1
ICRNL = 0x100
IEXTEN = 0x400
IFA_F_DADFAILED = 0x8
IFA_F_DEPRECATED = 0x20
IFA_F_HOMEADDRESS = 0x10
IFA_F_MANAGETEMPADDR = 0x100
IFA_F_NODAD = 0x2
IFA_F_NOPREFIXROUTE = 0x200
IFA_F_OPTIMISTIC = 0x4
IFA_F_PERMANENT = 0x80
IFA_F_SECONDARY = 0x1
IFA_F_TEMPORARY = 0x1
IFA_F_TENTATIVE = 0x40
IFA_MAX = 0x8
IFF_ALLMULTI = 0x200
IFF_ATTACH_QUEUE = 0x200
IFF_AUTOMEDIA = 0x4000
IFF_BROADCAST = 0x2
IFF_DEBUG = 0x4
IFF_DETACH_QUEUE = 0x400
IFF_DORMANT = 0x20000
IFF_DYNAMIC = 0x8000
IFF_ECHO = 0x40000
IFF_LOOPBACK = 0x8
IFF_LOWER_UP = 0x10000
IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100
IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20
IFF_NO_PI = 0x1000
IFF_ONE_QUEUE = 0x2000
IFF_PERSIST = 0x800
IFF_POINTOPOINT = 0x10
IFF_PORTSEL = 0x2000
IFF_PROMISC = 0x100
IFF_RUNNING = 0x40
IFF_SLAVE = 0x800
IFF_TAP = 0x2
IFF_TUN = 0x1
IFF_TUN_EXCL = 0x8000
IFF_UP = 0x1
IFF_VNET_HDR = 0x4000
IFF_VOLATILE = 0x70c5a
IFNAMSIZ = 0x10
IGNBRK = 0x1
IGNCR = 0x80
IGNPAR = 0x4
IMAXBEL = 0x2000
INLCR = 0x40
INPCK = 0x10
IN_ACCESS = 0x1
IN_ALL_EVENTS = 0xfff
IN_ATTRIB = 0x4
IN_CLASSA_HOST = 0xffffff
IN_CLASSA_MAX = 0x80
IN_CLASSA_NET = 0xff000000
IN_CLASSA_NSHIFT = 0x18
IN_CLASSB_HOST = 0xffff
IN_CLASSB_MAX = 0x10000
IN_CLASSB_NET = 0xffff0000
IN_CLASSB_NSHIFT = 0x10
IN_CLASSC_HOST = 0xff
IN_CLASSC_NET = 0xffffff00
IN_CLASSC_NSHIFT = 0x8
IN_CLOEXEC = 0x80000
IN_CLOSE = 0x18
IN_CLOSE_NOWRITE = 0x10
IN_CLOSE_WRITE = 0x8
IN_CREATE = 0x100
IN_DELETE = 0x200
IN_DELETE_SELF = 0x400
IN_DONT_FOLLOW = 0x2000000
IN_EXCL_UNLINK = 0x4000000
IN_IGNORED = 0x8000
IN_ISDIR = 0x40000000
IN_LOOPBACKNET = 0x7f
IN_MASK_ADD = 0x20000000
IN_MODIFY = 0x2
IN_MOVE = 0xc0
IN_MOVED_FROM = 0x40
IN_MOVED_TO = 0x80
IN_MOVE_SELF = 0x800
IN_NONBLOCK = 0x800
IN_ONESHOT = 0x80000000
IN_ONLYDIR = 0x1000000
IN_OPEN = 0x20
IN_Q_OVERFLOW = 0x4000
IN_UNMOUNT = 0x2000
IPPROTO_AH = 0x33
IPPROTO_BEETPH = 0x5e
IPPROTO_COMP = 0x6c
IPPROTO_DCCP = 0x21
IPPROTO_DSTOPTS = 0x3c
IPPROTO_EGP = 0x8
IPPROTO_ENCAP = 0x62
IPPROTO_ESP = 0x32
IPPROTO_FRAGMENT = 0x2c
IPPROTO_GRE = 0x2f
IPPROTO_HOPOPTS = 0x0
IPPROTO_ICMP = 0x1
IPPROTO_ICMPV6 = 0x3a
IPPROTO_IDP = 0x16
IPPROTO_IGMP = 0x2
IPPROTO_IP = 0x0
IPPROTO_IPIP = 0x4
IPPROTO_IPV6 = 0x29
IPPROTO_MH = 0x87
IPPROTO_MTP = 0x5c
IPPROTO_NONE = 0x3b
IPPROTO_PIM = 0x67
IPPROTO_PUP = 0xc
IPPROTO_RAW = 0xff
IPPROTO_ROUTING = 0x2b
IPPROTO_RSVP = 0x2e
IPPROTO_SCTP = 0x84
IPPROTO_TCP = 0x6
IPPROTO_TP = 0x1d
IPPROTO_UDP = 0x11
IPPROTO_UDPLITE = 0x88
IPV6_2292DSTOPTS = 0x4
IPV6_2292HOPLIMIT = 0x8
IPV6_2292HOPOPTS = 0x3
IPV6_2292PKTINFO = 0x2
IPV6_2292PKTOPTIONS = 0x6
IPV6_2292RTHDR = 0x5
IPV6_ADDRFORM = 0x1
IPV6_ADD_MEMBERSHIP = 0x14
IPV6_AUTHHDR = 0xa
IPV6_CHECKSUM = 0x7
IPV6_DROP_MEMBERSHIP = 0x15
IPV6_DSTOPTS = 0x3b
IPV6_HOPLIMIT = 0x34
IPV6_HOPOPTS = 0x36
IPV6_IPSEC_POLICY = 0x22
IPV6_JOIN_ANYCAST = 0x1b
IPV6_JOIN_GROUP = 0x14
IPV6_LEAVE_ANYCAST = 0x1c
IPV6_LEAVE_GROUP = 0x15
IPV6_MTU = 0x18
IPV6_MTU_DISCOVER = 0x17
IPV6_MULTICAST_HOPS = 0x12
IPV6_MULTICAST_IF = 0x11
IPV6_MULTICAST_LOOP = 0x13
IPV6_NEXTHOP = 0x9
IPV6_PKTINFO = 0x32
IPV6_PMTUDISC_DO = 0x2
IPV6_PMTUDISC_DONT = 0x0
IPV6_PMTUDISC_INTERFACE = 0x4
IPV6_PMTUDISC_OMIT = 0x5
IPV6_PMTUDISC_PROBE = 0x3
IPV6_PMTUDISC_WANT = 0x1
IPV6_RECVDSTOPTS = 0x3a
IPV6_RECVERR = 0x19
IPV6_RECVHOPLIMIT = 0x33
IPV6_RECVHOPOPTS = 0x35
IPV6_RECVPKTINFO = 0x31
IPV6_RECVRTHDR = 0x38
IPV6_RECVTCLASS = 0x42
IPV6_ROUTER_ALERT = 0x16
IPV6_RTHDR = 0x39
IPV6_RTHDRDSTOPTS = 0x37
IPV6_RTHDR_LOOSE = 0x0
IPV6_RTHDR_STRICT = 0x1
IPV6_RTHDR_TYPE_0 = 0x0
IPV6_RXDSTOPTS = 0x3b
IPV6_RXHOPOPTS = 0x36
IPV6_TCLASS = 0x43
IPV6_UNICAST_HOPS = 0x10
IPV6_V6ONLY = 0x1a
IPV6_XFRM_POLICY = 0x23
IP_ADD_MEMBERSHIP = 0x23
IP_ADD_SOURCE_MEMBERSHIP = 0x27
IP_BLOCK_SOURCE = 0x26
IP_DEFAULT_MULTICAST_LOOP = 0x1
IP_DEFAULT_MULTICAST_TTL = 0x1
IP_DF = 0x4000
IP_DROP_MEMBERSHIP = 0x24
IP_DROP_SOURCE_MEMBERSHIP = 0x28
IP_FREEBIND = 0xf
IP_HDRINCL = 0x3
IP_IPSEC_POLICY = 0x10
IP_MAXPACKET = 0xffff
IP_MAX_MEMBERSHIPS = 0x14
IP_MF = 0x2000
IP_MINTTL = 0x15
IP_MSFILTER = 0x29
IP_MSS = 0x240
IP_MTU = 0xe
IP_MTU_DISCOVER = 0xa
IP_MULTICAST_ALL = 0x31
IP_MULTICAST_IF = 0x20
IP_MULTICAST_LOOP = 0x22
IP_MULTICAST_TTL = 0x21
IP_NODEFRAG = 0x16
IP_OFFMASK = 0x1fff
IP_OPTIONS = 0x4
IP_ORIGDSTADDR = 0x14
IP_PASSSEC = 0x12
IP_PKTINFO = 0x8
IP_PKTOPTIONS = 0x9
IP_PMTUDISC = 0xa
IP_PMTUDISC_DO = 0x2
IP_PMTUDISC_DONT = 0x0
IP_PMTUDISC_INTERFACE = 0x4
IP_PMTUDISC_OMIT = 0x5
IP_PMTUDISC_PROBE = 0x3
IP_PMTUDISC_WANT = 0x1
IP_RECVERR = 0xb
IP_RECVOPTS = 0x6
IP_RECVORIGDSTADDR = 0x14
IP_RECVRETOPTS = 0x7
IP_RECVTOS = 0xd
IP_RECVTTL = 0xc
IP_RETOPTS = 0x7
IP_RF = 0x8000
IP_ROUTER_ALERT = 0x5
IP_TOS = 0x1
IP_TRANSPARENT = 0x13
IP_TTL = 0x2
IP_UNBLOCK_SOURCE = 0x25
IP_UNICAST_IF = 0x32
IP_XFRM_POLICY = 0x11
ISIG = 0x80
ISTRIP = 0x20
IUCLC = 0x1000
IUTF8 = 0x4000
IXANY = 0x800
IXOFF = 0x400
IXON = 0x200
LINUX_REBOOT_CMD_CAD_OFF = 0x0
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
LINUX_REBOOT_CMD_HALT = 0xcdef0123
LINUX_REBOOT_CMD_KEXEC = 0x45584543
LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc
LINUX_REBOOT_CMD_RESTART = 0x1234567
LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4
LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
LINUX_REBOOT_MAGIC1 = 0xfee1dead
LINUX_REBOOT_MAGIC2 = 0x28121969
LOCK_EX = 0x2
LOCK_NB = 0x4
LOCK_SH = 0x1
LOCK_UN = 0x8
MADV_DODUMP = 0x11
MADV_DOFORK = 0xb
MADV_DONTDUMP = 0x10
MADV_DONTFORK = 0xa
MADV_DONTNEED = 0x4
MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64
MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0
MADV_RANDOM = 0x1
MADV_REMOVE = 0x9
MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3
MAP_ANON = 0x20
MAP_ANONYMOUS = 0x20
MAP_DENYWRITE = 0x800
MAP_EXECUTABLE = 0x1000
MAP_FILE = 0x0
MAP_FIXED = 0x10
MAP_GROWSDOWN = 0x100
MAP_HUGETLB = 0x40000
MAP_HUGE_MASK = 0x3f
MAP_HUGE_SHIFT = 0x1a
MAP_LOCKED = 0x80
MAP_NONBLOCK = 0x10000
MAP_NORESERVE = 0x40
MAP_POPULATE = 0x8000
MAP_PRIVATE = 0x2
MAP_SHARED = 0x1
MAP_STACK = 0x20000
MAP_TYPE = 0xf
MCL_CURRENT = 0x2000
MCL_FUTURE = 0x4000
MNT_DETACH = 0x2
MNT_EXPIRE = 0x4
MNT_FORCE = 0x1
MSG_CMSG_CLOEXEC = 0x40000000
MSG_CONFIRM = 0x800
MSG_CTRUNC = 0x8
MSG_DONTROUTE = 0x4
MSG_DONTWAIT = 0x40
MSG_EOR = 0x80
MSG_ERRQUEUE = 0x2000
MSG_FASTOPEN = 0x20000000
MSG_FIN = 0x200
MSG_MORE = 0x8000
MSG_NOSIGNAL = 0x4000
MSG_OOB = 0x1
MSG_PEEK = 0x2
MSG_PROXY = 0x10
MSG_RST = 0x1000
MSG_SYN = 0x400
MSG_TRUNC = 0x20
MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000
MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1
MS_BIND = 0x1000
MS_DIRSYNC = 0x80
MS_INVALIDATE = 0x2
MS_I_VERSION = 0x800000
MS_KERNMOUNT = 0x400000
MS_MANDLOCK = 0x40
MS_MGC_MSK = 0xffff0000
MS_MGC_VAL = 0xc0ed0000
MS_MOVE = 0x2000
MS_NOATIME = 0x400
MS_NODEV = 0x4
MS_NODIRATIME = 0x800
MS_NOEXEC = 0x8
MS_NOSUID = 0x2
MS_NOUSER = -0x80000000
MS_POSIXACL = 0x10000
MS_PRIVATE = 0x40000
MS_RDONLY = 0x1
MS_REC = 0x4000
MS_RELATIME = 0x200000
MS_REMOUNT = 0x20
MS_RMT_MASK = 0x800051
MS_SHARED = 0x100000
MS_SILENT = 0x8000
MS_SLAVE = 0x80000
MS_STRICTATIME = 0x1000000
MS_SYNC = 0x4
MS_SYNCHRONOUS = 0x10
MS_UNBINDABLE = 0x20000
NAME_MAX = 0xff
NETLINK_ADD_MEMBERSHIP = 0x1
NETLINK_AUDIT = 0x9
NETLINK_BROADCAST_ERROR = 0x4
NETLINK_CONNECTOR = 0xb
NETLINK_CRYPTO = 0x15
NETLINK_DNRTMSG = 0xe
NETLINK_DROP_MEMBERSHIP = 0x2
NETLINK_ECRYPTFS = 0x13
NETLINK_FIB_LOOKUP = 0xa
NETLINK_FIREWALL = 0x3
NETLINK_GENERIC = 0x10
NETLINK_INET_DIAG = 0x4
NETLINK_IP6_FW = 0xd
NETLINK_ISCSI = 0x8
NETLINK_KOBJECT_UEVENT = 0xf
NETLINK_NETFILTER = 0xc
NETLINK_NFLOG = 0x5
NETLINK_NO_ENOBUFS = 0x5
NETLINK_PKTINFO = 0x3
NETLINK_RDMA = 0x14
NETLINK_ROUTE = 0x0
NETLINK_RX_RING = 0x6
NETLINK_SCSITRANSPORT = 0x12
NETLINK_SELINUX = 0x7
NETLINK_SOCK_DIAG = 0x4
NETLINK_TX_RING = 0x7
NETLINK_UNUSED = 0x1
NETLINK_USERSOCK = 0x2
NETLINK_XFRM = 0x6
NL0 = 0x0
NL1 = 0x100
NL2 = 0x200
NL3 = 0x300
NLA_ALIGNTO = 0x4
NLA_F_NESTED = 0x8000
NLA_F_NET_BYTEORDER = 0x4000
NLA_HDRLEN = 0x4
NLDLY = 0x300
NLMSG_ALIGNTO = 0x4
NLMSG_DONE = 0x3
NLMSG_ERROR = 0x2
NLMSG_HDRLEN = 0x10
NLMSG_MIN_TYPE = 0x10
NLMSG_NOOP = 0x1
NLMSG_OVERRUN = 0x4
NLM_F_ACK = 0x4
NLM_F_APPEND = 0x800
NLM_F_ATOMIC = 0x400
NLM_F_CREATE = 0x400
NLM_F_DUMP = 0x300
NLM_F_DUMP_INTR = 0x10
NLM_F_ECHO = 0x8
NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2
NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100
NOFLSH = 0x80000000
OCRNL = 0x8
OFDEL = 0x80
OFILL = 0x40
OLCUC = 0x4
ONLCR = 0x2
ONLRET = 0x20
ONOCR = 0x10
OPOST = 0x1
O_ACCMODE = 0x3
O_APPEND = 0x400
O_ASYNC = 0x2000
O_CLOEXEC = 0x80000
O_CREAT = 0x40
O_DIRECT = 0x20000
O_DIRECTORY = 0x4000
O_DSYNC = 0x1000
O_EXCL = 0x80
O_FSYNC = 0x101000
O_LARGEFILE = 0x0
O_NDELAY = 0x800
O_NOATIME = 0x40000
O_NOCTTY = 0x100
O_NOFOLLOW = 0x8000
O_NONBLOCK = 0x800
O_PATH = 0x200000
O_RDONLY = 0x0
O_RDWR = 0x2
O_RSYNC = 0x101000
O_SYNC = 0x101000
O_TMPFILE = 0x410000
O_TRUNC = 0x200
O_WRONLY = 0x1
PACKET_ADD_MEMBERSHIP = 0x1
PACKET_AUXDATA = 0x8
PACKET_BROADCAST = 0x1
PACKET_COPY_THRESH = 0x7
PACKET_DROP_MEMBERSHIP = 0x2
PACKET_FANOUT = 0x12
PACKET_FANOUT_CPU = 0x2
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
PACKET_FANOUT_HASH = 0x0
PACKET_FANOUT_LB = 0x1
PACKET_FANOUT_QM = 0x5
PACKET_FANOUT_RND = 0x4
PACKET_FANOUT_ROLLOVER = 0x3
PACKET_FASTROUTE = 0x6
PACKET_HDRLEN = 0xb
PACKET_HOST = 0x0
PACKET_KERNEL = 0x7
PACKET_LOOPBACK = 0x5
PACKET_LOSS = 0xe
PACKET_MR_ALLMULTI = 0x2
PACKET_MR_MULTICAST = 0x0
PACKET_MR_PROMISC = 0x1
PACKET_MR_UNICAST = 0x3
PACKET_MULTICAST = 0x2
PACKET_ORIGDEV = 0x9
PACKET_OTHERHOST = 0x3
PACKET_OUTGOING = 0x4
PACKET_QDISC_BYPASS = 0x14
PACKET_RECV_OUTPUT = 0x3
PACKET_RESERVE = 0xc
PACKET_RX_RING = 0x5
PACKET_STATISTICS = 0x6
PACKET_TIMESTAMP = 0x11
PACKET_TX_HAS_OFF = 0x13
PACKET_TX_RING = 0xd
PACKET_TX_TIMESTAMP = 0x10
PACKET_USER = 0x6
PACKET_VERSION = 0xa
PACKET_VNET_HDR = 0xf
PARENB = 0x1000
PARITY_CRC16_PR0 = 0x2
PARITY_CRC16_PR0_CCITT = 0x4
PARITY_CRC16_PR1 = 0x3
PARITY_CRC16_PR1_CCITT = 0x5
PARITY_CRC32_PR0_CCITT = 0x6
PARITY_CRC32_PR1_CCITT = 0x7
PARITY_DEFAULT = 0x0
PARITY_NONE = 0x1
PARMRK = 0x8
PARODD = 0x2000
PENDIN = 0x20000000
PRIO_PGRP = 0x1
PRIO_PROCESS = 0x0
PRIO_USER = 0x2
PROT_EXEC = 0x4
PROT_GROWSDOWN = 0x1000000
PROT_GROWSUP = 0x2000000
PROT_NONE = 0x0
PROT_READ = 0x1
PROT_SAO = 0x10
PROT_WRITE = 0x2
PR_CAPBSET_DROP = 0x18
PR_CAPBSET_READ = 0x17
PR_ENDIAN_BIG = 0x0
PR_ENDIAN_LITTLE = 0x1
PR_ENDIAN_PPC_LITTLE = 0x2
PR_FPEMU_NOPRINT = 0x1
PR_FPEMU_SIGFPE = 0x2
PR_FP_EXC_ASYNC = 0x2
PR_FP_EXC_DISABLED = 0x0
PR_FP_EXC_DIV = 0x10000
PR_FP_EXC_INV = 0x100000
PR_FP_EXC_NONRECOV = 0x1
PR_FP_EXC_OVF = 0x20000
PR_FP_EXC_PRECISE = 0x3
PR_FP_EXC_RES = 0x80000
PR_FP_EXC_SW_ENABLE = 0x80
PR_FP_EXC_UND = 0x40000
PR_GET_CHILD_SUBREAPER = 0x25
PR_GET_DUMPABLE = 0x3
PR_GET_ENDIAN = 0x13
PR_GET_FPEMU = 0x9
PR_GET_FPEXC = 0xb
PR_GET_KEEPCAPS = 0x7
PR_GET_NAME = 0x10
PR_GET_NO_NEW_PRIVS = 0x27
PR_GET_PDEATHSIG = 0x2
PR_GET_SECCOMP = 0x15
PR_GET_SECUREBITS = 0x1b
PR_GET_THP_DISABLE = 0x2a
PR_GET_TID_ADDRESS = 0x28
PR_GET_TIMERSLACK = 0x1e
PR_GET_TIMING = 0xd
PR_GET_TSC = 0x19
PR_GET_UNALIGN = 0x5
PR_MCE_KILL = 0x21
PR_MCE_KILL_CLEAR = 0x0
PR_MCE_KILL_DEFAULT = 0x2
PR_MCE_KILL_EARLY = 0x1
PR_MCE_KILL_GET = 0x22
PR_MCE_KILL_LATE = 0x0
PR_MCE_KILL_SET = 0x1
PR_SET_CHILD_SUBREAPER = 0x24
PR_SET_DUMPABLE = 0x4
PR_SET_ENDIAN = 0x14
PR_SET_FPEMU = 0xa
PR_SET_FPEXC = 0xc
PR_SET_KEEPCAPS = 0x8
PR_SET_MM = 0x23
PR_SET_MM_ARG_END = 0x9
PR_SET_MM_ARG_START = 0x8
PR_SET_MM_AUXV = 0xc
PR_SET_MM_BRK = 0x7
PR_SET_MM_END_CODE = 0x2
PR_SET_MM_END_DATA = 0x4
PR_SET_MM_ENV_END = 0xb
PR_SET_MM_ENV_START = 0xa
PR_SET_MM_EXE_FILE = 0xd
PR_SET_MM_MAP = 0xe
PR_SET_MM_MAP_SIZE = 0xf
PR_SET_MM_START_BRK = 0x6
PR_SET_MM_START_CODE = 0x1
PR_SET_MM_START_DATA = 0x3
PR_SET_MM_START_STACK = 0x5
PR_SET_NAME = 0xf
PR_SET_NO_NEW_PRIVS = 0x26
PR_SET_PDEATHSIG = 0x1
PR_SET_PTRACER = 0x59616d61
PR_SET_PTRACER_ANY = -0x1
PR_SET_SECCOMP = 0x16
PR_SET_SECUREBITS = 0x1c
PR_SET_THP_DISABLE = 0x29
PR_SET_TIMERSLACK = 0x1d
PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6
PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0
PR_TIMING_TIMESTAMP = 0x1
PR_TSC_ENABLE = 0x1
PR_TSC_SIGSEGV = 0x2
PR_UNALIGN_NOPRINT = 0x1
PR_UNALIGN_SIGBUS = 0x2
PTRACE_ATTACH = 0x10
PTRACE_CONT = 0x7
PTRACE_DETACH = 0x11
PTRACE_EVENT_CLONE = 0x3
PTRACE_EVENT_EXEC = 0x4
PTRACE_EVENT_EXIT = 0x6
PTRACE_EVENT_FORK = 0x1
PTRACE_EVENT_SECCOMP = 0x7
PTRACE_EVENT_STOP = 0x80
PTRACE_EVENT_VFORK = 0x2
PTRACE_EVENT_VFORK_DONE = 0x5
PTRACE_GETEVENTMSG = 0x4201
PTRACE_GETEVRREGS = 0x14
PTRACE_GETFPREGS = 0xe
PTRACE_GETREGS = 0xc
PTRACE_GETREGS64 = 0x16
PTRACE_GETREGSET = 0x4204
PTRACE_GETSIGINFO = 0x4202
PTRACE_GETSIGMASK = 0x420a
PTRACE_GETVRREGS = 0x12
PTRACE_GETVSRREGS = 0x1b
PTRACE_GET_DEBUGREG = 0x19
PTRACE_INTERRUPT = 0x4207
PTRACE_KILL = 0x8
PTRACE_LISTEN = 0x4208
PTRACE_O_EXITKILL = 0x100000
PTRACE_O_MASK = 0x1000ff
PTRACE_O_TRACECLONE = 0x8
PTRACE_O_TRACEEXEC = 0x10
PTRACE_O_TRACEEXIT = 0x40
PTRACE_O_TRACEFORK = 0x2
PTRACE_O_TRACESECCOMP = 0x80
PTRACE_O_TRACESYSGOOD = 0x1
PTRACE_O_TRACEVFORK = 0x4
PTRACE_O_TRACEVFORKDONE = 0x20
PTRACE_PEEKDATA = 0x2
PTRACE_PEEKSIGINFO = 0x4209
PTRACE_PEEKSIGINFO_SHARED = 0x1
PTRACE_PEEKTEXT = 0x1
PTRACE_PEEKUSR = 0x3
PTRACE_POKEDATA = 0x5
PTRACE_POKETEXT = 0x4
PTRACE_POKEUSR = 0x6
PTRACE_SEIZE = 0x4206
PTRACE_SETEVRREGS = 0x15
PTRACE_SETFPREGS = 0xf
PTRACE_SETOPTIONS = 0x4200
PTRACE_SETREGS = 0xd
PTRACE_SETREGS64 = 0x17
PTRACE_SETREGSET = 0x4205
PTRACE_SETSIGINFO = 0x4203
PTRACE_SETSIGMASK = 0x420b
PTRACE_SETVRREGS = 0x13
PTRACE_SETVSRREGS = 0x1c
PTRACE_SET_DEBUGREG = 0x1a
PTRACE_SINGLEBLOCK = 0x100
PTRACE_SINGLESTEP = 0x9
PTRACE_SYSCALL = 0x18
PTRACE_TRACEME = 0x0
PT_CCR = 0x26
PT_CTR = 0x23
PT_DAR = 0x29
PT_DSCR = 0x2c
PT_DSISR = 0x2a
PT_FPR0 = 0x30
PT_FPSCR = 0x50
PT_LNK = 0x24
PT_MSR = 0x21
PT_NIP = 0x20
PT_ORIG_R3 = 0x22
PT_R0 = 0x0
PT_R1 = 0x1
PT_R10 = 0xa
PT_R11 = 0xb
PT_R12 = 0xc
PT_R13 = 0xd
PT_R14 = 0xe
PT_R15 = 0xf
PT_R16 = 0x10
PT_R17 = 0x11
PT_R18 = 0x12
PT_R19 = 0x13
PT_R2 = 0x2
PT_R20 = 0x14
PT_R21 = 0x15
PT_R22 = 0x16
PT_R23 = 0x17
PT_R24 = 0x18
PT_R25 = 0x19
PT_R26 = 0x1a
PT_R27 = 0x1b
PT_R28 = 0x1c
PT_R29 = 0x1d
PT_R3 = 0x3
PT_R30 = 0x1e
PT_R31 = 0x1f
PT_R4 = 0x4
PT_R5 = 0x5
PT_R6 = 0x6
PT_R7 = 0x7
PT_R8 = 0x8
PT_R9 = 0x9
PT_REGS_COUNT = 0x2c
PT_RESULT = 0x2b
PT_SOFTE = 0x27
PT_TRAP = 0x28
PT_VR0 = 0x52
PT_VRSAVE = 0x94
PT_VSCR = 0x93
PT_VSR0 = 0x96
PT_VSR31 = 0xd4
PT_XER = 0x25
RLIMIT_AS = 0x9
RLIMIT_CORE = 0x4
RLIMIT_CPU = 0x0
RLIMIT_DATA = 0x2
RLIMIT_FSIZE = 0x1
RLIMIT_NOFILE = 0x7
RLIMIT_STACK = 0x3
RLIM_INFINITY = -0x1
RTAX_ADVMSS = 0x8
RTAX_CWND = 0x7
RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1
RTAX_FEATURE_SACK = 0x2
RTAX_FEATURE_TIMESTAMP = 0x4
RTAX_HOPLIMIT = 0xa
RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1
RTAX_MAX = 0xf
RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9
RTAX_RTO_MIN = 0xd
RTAX_RTT = 0x4
RTAX_RTTVAR = 0x5
RTAX_SSTHRESH = 0x6
RTAX_UNSPEC = 0x0
RTAX_WINDOW = 0x3
RTA_ALIGNTO = 0x4
RTA_MAX = 0x11
RTCF_DIRECTSRC = 0x4000000
RTCF_DOREDIRECT = 0x1000000
RTCF_LOG = 0x2000000
RTCF_MASQ = 0x400000
RTCF_NAT = 0x800000
RTCF_VALVE = 0x200000
RTF_ADDRCLASSMASK = 0xf8000000
RTF_ADDRCONF = 0x40000
RTF_ALLONLINK = 0x20000
RTF_BROADCAST = 0x10000000
RTF_CACHE = 0x1000000
RTF_DEFAULT = 0x10000
RTF_DYNAMIC = 0x10
RTF_FLOW = 0x2000000
RTF_GATEWAY = 0x2
RTF_HOST = 0x4
RTF_INTERFACE = 0x40000000
RTF_IRTT = 0x100
RTF_LINKRT = 0x100000
RTF_LOCAL = 0x80000000
RTF_MODIFIED = 0x20
RTF_MSS = 0x40
RTF_MTU = 0x40
RTF_MULTICAST = 0x20000000
RTF_NAT = 0x8000000
RTF_NOFORWARD = 0x1000
RTF_NONEXTHOP = 0x200000
RTF_NOPMTUDISC = 0x4000
RTF_POLICY = 0x4000000
RTF_REINSTATE = 0x8
RTF_REJECT = 0x200
RTF_STATIC = 0x400
RTF_THROW = 0x2000
RTF_UP = 0x1
RTF_WINDOW = 0x80
RTF_XRESOLVE = 0x800
RTM_BASE = 0x10
RTM_DELACTION = 0x31
RTM_DELADDR = 0x15
RTM_DELADDRLABEL = 0x49
RTM_DELLINK = 0x11
RTM_DELMDB = 0x55
RTM_DELNEIGH = 0x1d
RTM_DELQDISC = 0x25
RTM_DELROUTE = 0x19
RTM_DELRULE = 0x21
RTM_DELTCLASS = 0x29
RTM_DELTFILTER = 0x2d
RTM_F_CLONED = 0x200
RTM_F_EQUALIZE = 0x400
RTM_F_NOTIFY = 0x100
RTM_F_PREFIX = 0x800
RTM_GETACTION = 0x32
RTM_GETADDR = 0x16
RTM_GETADDRLABEL = 0x4a
RTM_GETANYCAST = 0x3e
RTM_GETDCB = 0x4e
RTM_GETLINK = 0x12
RTM_GETMDB = 0x56
RTM_GETMULTICAST = 0x3a
RTM_GETNEIGH = 0x1e
RTM_GETNEIGHTBL = 0x42
RTM_GETNETCONF = 0x52
RTM_GETQDISC = 0x26
RTM_GETROUTE = 0x1a
RTM_GETRULE = 0x22
RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e
RTM_MAX = 0x57
RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48
RTM_NEWLINK = 0x10
RTM_NEWMDB = 0x54
RTM_NEWNDUSEROPT = 0x44
RTM_NEWNEIGH = 0x1c
RTM_NEWNEIGHTBL = 0x40
RTM_NEWNETCONF = 0x50
RTM_NEWPREFIX = 0x34
RTM_NEWQDISC = 0x24
RTM_NEWROUTE = 0x18
RTM_NEWRULE = 0x20
RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c
RTM_NR_FAMILIES = 0x12
RTM_NR_MSGTYPES = 0x48
RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43
RTNH_ALIGNTO = 0x4
RTNH_F_DEAD = 0x1
RTNH_F_ONLINK = 0x4
RTNH_F_PERVASIVE = 0x2
RTN_MAX = 0xb
RTPROT_BIRD = 0xc
RTPROT_BOOT = 0x3
RTPROT_DHCP = 0x10
RTPROT_DNROUTED = 0xd
RTPROT_GATED = 0x8
RTPROT_KERNEL = 0x2
RTPROT_MROUTED = 0x11
RTPROT_MRT = 0xa
RTPROT_NTK = 0xf
RTPROT_RA = 0x9
RTPROT_REDIRECT = 0x1
RTPROT_STATIC = 0x4
RTPROT_UNSPEC = 0x0
RTPROT_XORP = 0xe
RTPROT_ZEBRA = 0xb
RT_CLASS_DEFAULT = 0xfd
RT_CLASS_LOCAL = 0xff
RT_CLASS_MAIN = 0xfe
RT_CLASS_MAX = 0xff
RT_CLASS_UNSPEC = 0x0
RUSAGE_CHILDREN = -0x1
RUSAGE_SELF = 0x0
RUSAGE_THREAD = 0x1
SCM_CREDENTIALS = 0x2
SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x1d
SCM_TIMESTAMPING = 0x25
SCM_TIMESTAMPNS = 0x23
SCM_WIFI_STATUS = 0x29
SHUT_RD = 0x0
SHUT_RDWR = 0x2
SHUT_WR = 0x1
SIOCADDDLCI = 0x8980
SIOCADDMULTI = 0x8931
SIOCADDRT = 0x890b
SIOCATMARK = 0x8905
SIOCDARP = 0x8953
SIOCDELDLCI = 0x8981
SIOCDELMULTI = 0x8932
SIOCDELRT = 0x890c
SIOCDEVPRIVATE = 0x89f0
SIOCDIFADDR = 0x8936
SIOCDRARP = 0x8960
SIOCGARP = 0x8954
SIOCGIFADDR = 0x8915
SIOCGIFBR = 0x8940
SIOCGIFBRDADDR = 0x8919
SIOCGIFCONF = 0x8912
SIOCGIFCOUNT = 0x8938
SIOCGIFDSTADDR = 0x8917
SIOCGIFENCAP = 0x8925
SIOCGIFFLAGS = 0x8913
SIOCGIFHWADDR = 0x8927
SIOCGIFINDEX = 0x8933
SIOCGIFMAP = 0x8970
SIOCGIFMEM = 0x891f
SIOCGIFMETRIC = 0x891d
SIOCGIFMTU = 0x8921
SIOCGIFNAME = 0x8910
SIOCGIFNETMASK = 0x891b
SIOCGIFPFLAGS = 0x8935
SIOCGIFSLAVE = 0x8929
SIOCGIFTXQLEN = 0x8942
SIOCGPGRP = 0x8904
SIOCGRARP = 0x8961
SIOCGSTAMP = 0x8906
SIOCGSTAMPNS = 0x8907
SIOCPROTOPRIVATE = 0x89e0
SIOCRTMSG = 0x890d
SIOCSARP = 0x8955
SIOCSIFADDR = 0x8916
SIOCSIFBR = 0x8941
SIOCSIFBRDADDR = 0x891a
SIOCSIFDSTADDR = 0x8918
SIOCSIFENCAP = 0x8926
SIOCSIFFLAGS = 0x8914
SIOCSIFHWADDR = 0x8924
SIOCSIFHWBROADCAST = 0x8937
SIOCSIFLINK = 0x8911
SIOCSIFMAP = 0x8971
SIOCSIFMEM = 0x8920
SIOCSIFMETRIC = 0x891e
SIOCSIFMTU = 0x8922
SIOCSIFNAME = 0x8923
SIOCSIFNETMASK = 0x891c
SIOCSIFPFLAGS = 0x8934
SIOCSIFSLAVE = 0x8930
SIOCSIFTXQLEN = 0x8943
SIOCSPGRP = 0x8902
SIOCSRARP = 0x8962
SOCK_CLOEXEC = 0x80000
SOCK_DCCP = 0x6
SOCK_DGRAM = 0x2
SOCK_NONBLOCK = 0x800
SOCK_PACKET = 0xa
SOCK_RAW = 0x3
SOCK_RDM = 0x4
SOCK_SEQPACKET = 0x5
SOCK_STREAM = 0x1
SOL_AAL = 0x109
SOL_ATM = 0x108
SOL_DECNET = 0x105
SOL_ICMPV6 = 0x3a
SOL_IP = 0x0
SOL_IPV6 = 0x29
SOL_IRDA = 0x10a
SOL_PACKET = 0x107
SOL_RAW = 0xff
SOL_SOCKET = 0x1
SOL_TCP = 0x6
SOL_X25 = 0x106
SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1e
SO_ATTACH_FILTER = 0x1a
SO_BINDTODEVICE = 0x19
SO_BPF_EXTENSIONS = 0x30
SO_BROADCAST = 0x6
SO_BSDCOMPAT = 0xe
SO_BUSY_POLL = 0x2e
SO_DEBUG = 0x1
SO_DETACH_FILTER = 0x1b
SO_DOMAIN = 0x27
SO_DONTROUTE = 0x5
SO_ERROR = 0x4
SO_GET_FILTER = 0x1a
SO_KEEPALIVE = 0x9
SO_LINGER = 0xd
SO_LOCK_FILTER = 0x2c
SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f
SO_NOFCS = 0x2b
SO_NO_CHECK = 0xb
SO_OOBINLINE = 0xa
SO_PASSCRED = 0x14
SO_PASSSEC = 0x22
SO_PEEK_OFF = 0x2a
SO_PEERCRED = 0x15
SO_PEERNAME = 0x1c
SO_PEERSEC = 0x1f
SO_PRIORITY = 0xc
SO_PROTOCOL = 0x26
SO_RCVBUF = 0x8
SO_RCVBUFFORCE = 0x21
SO_RCVLOWAT = 0x10
SO_RCVTIMEO = 0x12
SO_REUSEADDR = 0x2
SO_REUSEPORT = 0xf
SO_RXQ_OVFL = 0x28
SO_SECURITY_AUTHENTICATION = 0x16
SO_SECURITY_ENCRYPTION_NETWORK = 0x18
SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
SO_SELECT_ERR_QUEUE = 0x2d
SO_SNDBUF = 0x7
SO_SNDBUFFORCE = 0x20
SO_SNDLOWAT = 0x11
SO_SNDTIMEO = 0x13
SO_TIMESTAMP = 0x1d
SO_TIMESTAMPING = 0x25
SO_TIMESTAMPNS = 0x23
SO_TYPE = 0x3
SO_WIFI_STATUS = 0x29
S_BLKSIZE = 0x200
S_IEXEC = 0x40
S_IFBLK = 0x6000
S_IFCHR = 0x2000
S_IFDIR = 0x4000
S_IFIFO = 0x1000
S_IFLNK = 0xa000
S_IFMT = 0xf000
S_IFREG = 0x8000
S_IFSOCK = 0xc000
S_IREAD = 0x100
S_IRGRP = 0x20
S_IROTH = 0x4
S_IRUSR = 0x100
S_IRWXG = 0x38
S_IRWXO = 0x7
S_IRWXU = 0x1c0
S_ISGID = 0x400
S_ISUID = 0x800
S_ISVTX = 0x200
S_IWGRP = 0x10
S_IWOTH = 0x2
S_IWRITE = 0x80
S_IWUSR = 0x80
S_IXGRP = 0x8
S_IXOTH = 0x1
S_IXUSR = 0x40
TAB0 = 0x0
TAB1 = 0x400
TAB2 = 0x800
TAB3 = 0xc00
TABDLY = 0xc00
TCFLSH = 0x2000741f
TCGETA = 0x40147417
TCGETS = 0x402c7413
TCIFLUSH = 0x0
TCIOFF = 0x2
TCIOFLUSH = 0x2
TCION = 0x3
TCOFLUSH = 0x1
TCOOFF = 0x0
TCOON = 0x1
TCP_CONGESTION = 0xd
TCP_COOKIE_IN_ALWAYS = 0x1
TCP_COOKIE_MAX = 0x10
TCP_COOKIE_MIN = 0x8
TCP_COOKIE_OUT_NEVER = 0x2
TCP_COOKIE_PAIR_SIZE = 0x20
TCP_COOKIE_TRANSACTIONS = 0xf
TCP_CORK = 0x3
TCP_DEFER_ACCEPT = 0x9
TCP_FASTOPEN = 0x17
TCP_INFO = 0xb
TCP_KEEPCNT = 0x6
TCP_KEEPIDLE = 0x4
TCP_KEEPINTVL = 0x5
TCP_LINGER2 = 0x8
TCP_MAXSEG = 0x2
TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe
TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218
TCP_MSS_DESIRED = 0x4c4
TCP_NODELAY = 0x1
TCP_QUEUE_SEQ = 0x15
TCP_QUICKACK = 0xc
TCP_REPAIR = 0x13
TCP_REPAIR_OPTIONS = 0x16
TCP_REPAIR_QUEUE = 0x14
TCP_SYNCNT = 0x7
TCP_S_DATA_IN = 0x4
TCP_S_DATA_OUT = 0x8
TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18
TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x2
TCSBRK = 0x2000741d
TCSBRKP = 0x5425
TCSETA = 0x80147418
TCSETAF = 0x8014741c
TCSETAW = 0x80147419
TCSETS = 0x802c7414
TCSETSF = 0x802c7416
TCSETSW = 0x802c7415
TCXONC = 0x2000741e
TIOCCBRK = 0x5428
TIOCCONS = 0x541d
TIOCEXCL = 0x540c
TIOCGDEV = 0x40045432
TIOCGETC = 0x40067412
TIOCGETD = 0x5424
TIOCGETP = 0x40067408
TIOCGEXCL = 0x40045440
TIOCGICOUNT = 0x545d
TIOCGLCKTRMIOS = 0x5456
TIOCGLTC = 0x40067474
TIOCGPGRP = 0x40047477
TIOCGPKT = 0x40045438
TIOCGPTLCK = 0x40045439
TIOCGPTN = 0x40045430
TIOCGRS485 = 0x542e
TIOCGSERIAL = 0x541e
TIOCGSID = 0x5429
TIOCGSOFTCAR = 0x5419
TIOCGWINSZ = 0x40087468
TIOCINQ = 0x4004667f
TIOCLINUX = 0x541c
TIOCMBIC = 0x5417
TIOCMBIS = 0x5416
TIOCMGET = 0x5415
TIOCMIWAIT = 0x545c
TIOCMSET = 0x5418
TIOCM_CAR = 0x40
TIOCM_CD = 0x40
TIOCM_CTS = 0x20
TIOCM_DSR = 0x100
TIOCM_DTR = 0x2
TIOCM_LE = 0x1
TIOCM_LOOP = 0x8000
TIOCM_OUT1 = 0x2000
TIOCM_OUT2 = 0x4000
TIOCM_RI = 0x80
TIOCM_RNG = 0x80
TIOCM_RTS = 0x4
TIOCM_SR = 0x10
TIOCM_ST = 0x8
TIOCNOTTY = 0x5422
TIOCNXCL = 0x540d
TIOCOUTQ = 0x40047473
TIOCPKT = 0x5420
TIOCPKT_DATA = 0x0
TIOCPKT_DOSTOP = 0x20
TIOCPKT_FLUSHREAD = 0x1
TIOCPKT_FLUSHWRITE = 0x2
TIOCPKT_IOCTL = 0x40
TIOCPKT_NOSTOP = 0x10
TIOCPKT_START = 0x8
TIOCPKT_STOP = 0x4
TIOCSBRK = 0x5427
TIOCSCTTY = 0x540e
TIOCSERCONFIG = 0x5453
TIOCSERGETLSR = 0x5459
TIOCSERGETMULTI = 0x545a
TIOCSERGSTRUCT = 0x5458
TIOCSERGWILD = 0x5454
TIOCSERSETMULTI = 0x545b
TIOCSERSWILD = 0x5455
TIOCSER_TEMT = 0x1
TIOCSETC = 0x80067411
TIOCSETD = 0x5423
TIOCSETN = 0x8006740a
TIOCSETP = 0x80067409
TIOCSIG = 0x80045436
TIOCSLCKTRMIOS = 0x5457
TIOCSLTC = 0x80067475
TIOCSPGRP = 0x80047476
TIOCSPTLCK = 0x80045431
TIOCSRS485 = 0x542f
TIOCSSERIAL = 0x541f
TIOCSSOFTCAR = 0x541a
TIOCSTART = 0x2000746e
TIOCSTI = 0x5412
TIOCSTOP = 0x2000746f
TIOCSWINSZ = 0x80087467
TIOCVHANGUP = 0x5437
TOSTOP = 0x400000
TUNATTACHFILTER = 0x801054d5
TUNDETACHFILTER = 0x801054d6
TUNGETFEATURES = 0x400454cf
TUNGETFILTER = 0x401054db
TUNGETIFF = 0x400454d2
TUNGETSNDBUF = 0x400454d3
TUNGETVNETHDRSZ = 0x400454d7
TUNSETDEBUG = 0x800454c9
TUNSETGROUP = 0x800454ce
TUNSETIFF = 0x800454ca
TUNSETIFINDEX = 0x800454da
TUNSETLINK = 0x800454cd
TUNSETNOCSUM = 0x800454c8
TUNSETOFFLOAD = 0x800454d0
TUNSETOWNER = 0x800454cc
TUNSETPERSIST = 0x800454cb
TUNSETQUEUE = 0x800454d9
TUNSETSNDBUF = 0x800454d4
TUNSETTXFILTER = 0x800454d1
TUNSETVNETHDRSZ = 0x800454d8
VDISCARD = 0x10
VEOF = 0x4
VEOL = 0x6
VEOL2 = 0x8
VERASE = 0x2
VINTR = 0x0
VKILL = 0x3
VLNEXT = 0xf
VMIN = 0x5
VQUIT = 0x1
VREPRINT = 0xb
VSTART = 0xd
VSTOP = 0xe
VSUSP = 0xc
VSWTC = 0x9
VT0 = 0x0
VT1 = 0x10000
VTDLY = 0x10000
VTIME = 0x7
VWERASE = 0xa
WALL = 0x40000000
WCLONE = 0x80000000
WCONTINUED = 0x8
WEXITED = 0x4
WNOHANG = 0x1
WNOTHREAD = 0x20000000
WNOWAIT = 0x1000000
WORDSIZE = 0x40
WSTOPPED = 0x2
WUNTRACED = 0x2
XCASE = 0x4000
XTABS = 0xc00
)
// Errors
const (
E2BIG = syscall.Errno(0x7)
EACCES = syscall.Errno(0xd)
EADDRINUSE = syscall.Errno(0x62)
EADDRNOTAVAIL = syscall.Errno(0x63)
EADV = syscall.Errno(0x44)
EAFNOSUPPORT = syscall.Errno(0x61)
EAGAIN = syscall.Errno(0xb)
EALREADY = syscall.Errno(0x72)
EBADE = syscall.Errno(0x34)
EBADF = syscall.Errno(0x9)
EBADFD = syscall.Errno(0x4d)
EBADMSG = syscall.Errno(0x4a)
EBADR = syscall.Errno(0x35)
EBADRQC = syscall.Errno(0x38)
EBADSLT = syscall.Errno(0x39)
EBFONT = syscall.Errno(0x3b)
EBUSY = syscall.Errno(0x10)
ECANCELED = syscall.Errno(0x7d)
ECHILD = syscall.Errno(0xa)
ECHRNG = syscall.Errno(0x2c)
ECOMM = syscall.Errno(0x46)
ECONNABORTED = syscall.Errno(0x67)
ECONNREFUSED = syscall.Errno(0x6f)
ECONNRESET = syscall.Errno(0x68)
EDEADLK = syscall.Errno(0x23)
EDEADLOCK = syscall.Errno(0x3a)
EDESTADDRREQ = syscall.Errno(0x59)
EDOM = syscall.Errno(0x21)
EDOTDOT = syscall.Errno(0x49)
EDQUOT = syscall.Errno(0x7a)
EEXIST = syscall.Errno(0x11)
EFAULT = syscall.Errno(0xe)
EFBIG = syscall.Errno(0x1b)
EHOSTDOWN = syscall.Errno(0x70)
EHOSTUNREACH = syscall.Errno(0x71)
EHWPOISON = syscall.Errno(0x85)
EIDRM = syscall.Errno(0x2b)
EILSEQ = syscall.Errno(0x54)
EINPROGRESS = syscall.Errno(0x73)
EINTR = syscall.Errno(0x4)
EINVAL = syscall.Errno(0x16)
EIO = syscall.Errno(0x5)
EISCONN = syscall.Errno(0x6a)
EISDIR = syscall.Errno(0x15)
EISNAM = syscall.Errno(0x78)
EKEYEXPIRED = syscall.Errno(0x7f)
EKEYREJECTED = syscall.Errno(0x81)
EKEYREVOKED = syscall.Errno(0x80)
EL2HLT = syscall.Errno(0x33)
EL2NSYNC = syscall.Errno(0x2d)
EL3HLT = syscall.Errno(0x2e)
EL3RST = syscall.Errno(0x2f)
ELIBACC = syscall.Errno(0x4f)
ELIBBAD = syscall.Errno(0x50)
ELIBEXEC = syscall.Errno(0x53)
ELIBMAX = syscall.Errno(0x52)
ELIBSCN = syscall.Errno(0x51)
ELNRNG = syscall.Errno(0x30)
ELOOP = syscall.Errno(0x28)
EMEDIUMTYPE = syscall.Errno(0x7c)
EMFILE = syscall.Errno(0x18)
EMLINK = syscall.Errno(0x1f)
EMSGSIZE = syscall.Errno(0x5a)
EMULTIHOP = syscall.Errno(0x48)
ENAMETOOLONG = syscall.Errno(0x24)
ENAVAIL = syscall.Errno(0x77)
ENETDOWN = syscall.Errno(0x64)
ENETRESET = syscall.Errno(0x66)
ENETUNREACH = syscall.Errno(0x65)
ENFILE = syscall.Errno(0x17)
ENOANO = syscall.Errno(0x37)
ENOBUFS = syscall.Errno(0x69)
ENOCSI = syscall.Errno(0x32)
ENODATA = syscall.Errno(0x3d)
ENODEV = syscall.Errno(0x13)
ENOENT = syscall.Errno(0x2)
ENOEXEC = syscall.Errno(0x8)
ENOKEY = syscall.Errno(0x7e)
ENOLCK = syscall.Errno(0x25)
ENOLINK = syscall.Errno(0x43)
ENOMEDIUM = syscall.Errno(0x7b)
ENOMEM = syscall.Errno(0xc)
ENOMSG = syscall.Errno(0x2a)
ENONET = syscall.Errno(0x40)
ENOPKG = syscall.Errno(0x41)
ENOPROTOOPT = syscall.Errno(0x5c)
ENOSPC = syscall.Errno(0x1c)
ENOSR = syscall.Errno(0x3f)
ENOSTR = syscall.Errno(0x3c)
ENOSYS = syscall.Errno(0x26)
ENOTBLK = syscall.Errno(0xf)
ENOTCONN = syscall.Errno(0x6b)
ENOTDIR = syscall.Errno(0x14)
ENOTEMPTY = syscall.Errno(0x27)
ENOTNAM = syscall.Errno(0x76)
ENOTRECOVERABLE = syscall.Errno(0x83)
ENOTSOCK = syscall.Errno(0x58)
ENOTSUP = syscall.Errno(0x5f)
ENOTTY = syscall.Errno(0x19)
ENOTUNIQ = syscall.Errno(0x4c)
ENXIO = syscall.Errno(0x6)
EOPNOTSUPP = syscall.Errno(0x5f)
EOVERFLOW = syscall.Errno(0x4b)
EOWNERDEAD = syscall.Errno(0x82)
EPERM = syscall.Errno(0x1)
EPFNOSUPPORT = syscall.Errno(0x60)
EPIPE = syscall.Errno(0x20)
EPROTO = syscall.Errno(0x47)
EPROTONOSUPPORT = syscall.Errno(0x5d)
EPROTOTYPE = syscall.Errno(0x5b)
ERANGE = syscall.Errno(0x22)
EREMCHG = syscall.Errno(0x4e)
EREMOTE = syscall.Errno(0x42)
EREMOTEIO = syscall.Errno(0x79)
ERESTART = syscall.Errno(0x55)
ERFKILL = syscall.Errno(0x84)
EROFS = syscall.Errno(0x1e)
ESHUTDOWN = syscall.Errno(0x6c)
ESOCKTNOSUPPORT = syscall.Errno(0x5e)
ESPIPE = syscall.Errno(0x1d)
ESRCH = syscall.Errno(0x3)
ESRMNT = syscall.Errno(0x45)
ESTALE = syscall.Errno(0x74)
ESTRPIPE = syscall.Errno(0x56)
ETIME = syscall.Errno(0x3e)
ETIMEDOUT = syscall.Errno(0x6e)
ETOOMANYREFS = syscall.Errno(0x6d)
ETXTBSY = syscall.Errno(0x1a)
EUCLEAN = syscall.Errno(0x75)
EUNATCH = syscall.Errno(0x31)
EUSERS = syscall.Errno(0x57)
EWOULDBLOCK = syscall.Errno(0xb)
EXDEV = syscall.Errno(0x12)
EXFULL = syscall.Errno(0x36)
)
// Signals
const (
SIGABRT = syscall.Signal(0x6)
SIGALRM = syscall.Signal(0xe)
SIGBUS = syscall.Signal(0x7)
SIGCHLD = syscall.Signal(0x11)
SIGCLD = syscall.Signal(0x11)
SIGCONT = syscall.Signal(0x12)
SIGFPE = syscall.Signal(0x8)
SIGHUP = syscall.Signal(0x1)
SIGILL = syscall.Signal(0x4)
SIGINT = syscall.Signal(0x2)
SIGIO = syscall.Signal(0x1d)
SIGIOT = syscall.Signal(0x6)
SIGKILL = syscall.Signal(0x9)
SIGPIPE = syscall.Signal(0xd)
SIGPOLL = syscall.Signal(0x1d)
SIGPROF = syscall.Signal(0x1b)
SIGPWR = syscall.Signal(0x1e)
SIGQUIT = syscall.Signal(0x3)
SIGSEGV = syscall.Signal(0xb)
SIGSTKFLT = syscall.Signal(0x10)
SIGSTOP = syscall.Signal(0x13)
SIGSYS = syscall.Signal(0x1f)
SIGTERM = syscall.Signal(0xf)
SIGTRAP = syscall.Signal(0x5)
SIGTSTP = syscall.Signal(0x14)
SIGTTIN = syscall.Signal(0x15)
SIGTTOU = syscall.Signal(0x16)
SIGUNUSED = syscall.Signal(0x1f)
SIGURG = syscall.Signal(0x17)
SIGUSR1 = syscall.Signal(0xa)
SIGUSR2 = syscall.Signal(0xc)
SIGVTALRM = syscall.Signal(0x1a)
SIGWINCH = syscall.Signal(0x1c)
SIGXCPU = syscall.Signal(0x18)
SIGXFSZ = syscall.Signal(0x19)
)
// Error table
var errors = [...]string{
1: "operation not permitted",
2: "no such file or directory",
3: "no such process",
4: "interrupted system call",
5: "input/output error",
6: "no such device or address",
7: "argument list too long",
8: "exec format error",
9: "bad file descriptor",
10: "no child processes",
11: "resource temporarily unavailable",
12: "cannot allocate memory",
13: "permission denied",
14: "bad address",
15: "block device required",
16: "device or resource busy",
17: "file exists",
18: "invalid cross-device link",
19: "no such device",
20: "not a directory",
21: "is a directory",
22: "invalid argument",
23: "too many open files in system",
24: "too many open files",
25: "inappropriate ioctl for device",
26: "text file busy",
27: "file too large",
28: "no space left on device",
29: "illegal seek",
30: "read-only file system",
31: "too many links",
32: "broken pipe",
33: "numerical argument out of domain",
34: "numerical result out of range",
35: "resource deadlock avoided",
36: "file name too long",
37: "no locks available",
38: "function not implemented",
39: "directory not empty",
40: "too many levels of symbolic links",
42: "no message of desired type",
43: "identifier removed",
44: "channel number out of range",
45: "level 2 not synchronized",
46: "level 3 halted",
47: "level 3 reset",
48: "link number out of range",
49: "protocol driver not attached",
50: "no CSI structure available",
51: "level 2 halted",
52: "invalid exchange",
53: "invalid request descriptor",
54: "exchange full",
55: "no anode",
56: "invalid request code",
57: "invalid slot",
58: "file locking deadlock error",
59: "bad font file format",
60: "device not a stream",
61: "no data available",
62: "timer expired",
63: "out of streams resources",
64: "machine is not on the network",
65: "package not installed",
66: "object is remote",
67: "link has been severed",
68: "advertise error",
69: "srmount error",
70: "communication error on send",
71: "protocol error",
72: "multihop attempted",
73: "RFS specific error",
74: "bad message",
75: "value too large for defined data type",
76: "name not unique on network",
77: "file descriptor in bad state",
78: "remote address changed",
79: "can not access a needed shared library",
80: "accessing a corrupted shared library",
81: ".lib section in a.out corrupted",
82: "attempting to link in too many shared libraries",
83: "cannot exec a shared library directly",
84: "invalid or incomplete multibyte or wide character",
85: "interrupted system call should be restarted",
86: "streams pipe error",
87: "too many users",
88: "socket operation on non-socket",
89: "destination address required",
90: "message too long",
91: "protocol wrong type for socket",
92: "protocol not available",
93: "protocol not supported",
94: "socket type not supported",
95: "operation not supported",
96: "protocol family not supported",
97: "address family not supported by protocol",
98: "address already in use",
99: "cannot assign requested address",
100: "network is down",
101: "network is unreachable",
102: "network dropped connection on reset",
103: "software caused connection abort",
104: "connection reset by peer",
105: "no buffer space available",
106: "transport endpoint is already connected",
107: "transport endpoint is not connected",
108: "cannot send after transport endpoint shutdown",
109: "too many references: cannot splice",
110: "connection timed out",
111: "connection refused",
112: "host is down",
113: "no route to host",
114: "operation already in progress",
115: "operation now in progress",
116: "stale file handle",
117: "structure needs cleaning",
118: "not a XENIX named type file",
119: "no XENIX semaphores available",
120: "is a named type file",
121: "remote I/O error",
122: "disk quota exceeded",
123: "no medium found",
124: "wrong medium type",
125: "operation canceled",
126: "required key not available",
127: "key has expired",
128: "key has been revoked",
129: "key was rejected by service",
130: "owner died",
131: "state not recoverable",
132: "operation not possible due to RF-kill",
133: "memory page has hardware error",
}
// Signal table
var signals = [...]string{
1: "hangup",
2: "interrupt",
3: "quit",
4: "illegal instruction",
5: "trace/breakpoint trap",
6: "aborted",
7: "bus error",
8: "floating point exception",
9: "killed",
10: "user defined signal 1",
11: "segmentation fault",
12: "user defined signal 2",
13: "broken pipe",
14: "alarm clock",
15: "terminated",
16: "stack fault",
17: "child exited",
18: "continued",
19: "stopped (signal)",
20: "stopped",
21: "stopped (tty input)",
22: "stopped (tty output)",
23: "urgent I/O condition",
24: "CPU time limit exceeded",
25: "file size limit exceeded",
26: "virtual timer expired",
27: "profiling timer expired",
28: "window changed",
29: "I/O possible",
30: "power failure",
31: "bad system call",
}
|
{
"pile_set_name": "Github"
}
|
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/protobuf/timestamp.proto
package timestamp
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// A Timestamp represents a point in time independent of any time zone
// or calendar, represented as seconds and fractions of seconds at
// nanosecond resolution in UTC Epoch time. It is encoded using the
// Proleptic Gregorian Calendar which extends the Gregorian calendar
// backwards to year one. It is encoded assuming all minutes are 60
// seconds long, i.e. leap seconds are "smeared" so that no leap second
// table is needed for interpretation. Range is from
// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
// By restricting to that range, we ensure that we can convert to
// and from RFC 3339 date strings.
// See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
//
// # Examples
//
// Example 1: Compute Timestamp from POSIX `time()`.
//
// Timestamp timestamp;
// timestamp.set_seconds(time(NULL));
// timestamp.set_nanos(0);
//
// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
//
// struct timeval tv;
// gettimeofday(&tv, NULL);
//
// Timestamp timestamp;
// timestamp.set_seconds(tv.tv_sec);
// timestamp.set_nanos(tv.tv_usec * 1000);
//
// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
//
// FILETIME ft;
// GetSystemTimeAsFileTime(&ft);
// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
//
// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
// Timestamp timestamp;
// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
//
// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
//
// long millis = System.currentTimeMillis();
//
// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
// .setNanos((int) ((millis % 1000) * 1000000)).build();
//
//
// Example 5: Compute Timestamp from current time in Python.
//
// timestamp = Timestamp()
// timestamp.GetCurrentTime()
//
// # JSON Mapping
//
// In JSON format, the Timestamp type is encoded as a string in the
// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
// where {year} is always expressed using four digits while {month}, {day},
// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
// is required. A proto3 JSON serializer should always use UTC (as indicated by
// "Z") when printing the Timestamp type and a proto3 JSON parser should be
// able to accept both UTC and other timezones (as indicated by an offset).
//
// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
// 01:30 UTC on January 15, 2017.
//
// In JavaScript, one can convert a Date object to this format using the
// standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
// method. In Python, a standard `datetime.datetime` object can be converted
// to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
// with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
// can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
// ) to obtain a formatter capable of generating timestamps in this format.
//
//
type Timestamp struct {
// Represents seconds of UTC time since Unix epoch
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
// 9999-12-31T23:59:59Z inclusive.
Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
// Non-negative fractions of a second at nanosecond resolution. Negative
// second values with fractions must still have non-negative nanos values
// that count forward in time. Must be from 0 to 999,999,999
// inclusive.
Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Timestamp) Reset() { *m = Timestamp{} }
func (m *Timestamp) String() string { return proto.CompactTextString(m) }
func (*Timestamp) ProtoMessage() {}
func (*Timestamp) Descriptor() ([]byte, []int) {
return fileDescriptor_292007bbfe81227e, []int{0}
}
func (*Timestamp) XXX_WellKnownType() string { return "Timestamp" }
func (m *Timestamp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Timestamp.Unmarshal(m, b)
}
func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic)
}
func (m *Timestamp) XXX_Merge(src proto.Message) {
xxx_messageInfo_Timestamp.Merge(m, src)
}
func (m *Timestamp) XXX_Size() int {
return xxx_messageInfo_Timestamp.Size(m)
}
func (m *Timestamp) XXX_DiscardUnknown() {
xxx_messageInfo_Timestamp.DiscardUnknown(m)
}
var xxx_messageInfo_Timestamp proto.InternalMessageInfo
func (m *Timestamp) GetSeconds() int64 {
if m != nil {
return m.Seconds
}
return 0
}
func (m *Timestamp) GetNanos() int32 {
if m != nil {
return m.Nanos
}
return 0
}
func init() {
proto.RegisterType((*Timestamp)(nil), "google.protobuf.Timestamp")
}
func init() { proto.RegisterFile("google/protobuf/timestamp.proto", fileDescriptor_292007bbfe81227e) }
var fileDescriptor_292007bbfe81227e = []byte{
// 191 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xcf, 0xcf, 0x4f,
0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x2f, 0xc9, 0xcc, 0x4d,
0x2d, 0x2e, 0x49, 0xcc, 0x2d, 0xd0, 0x03, 0x0b, 0x09, 0xf1, 0x43, 0x14, 0xe8, 0xc1, 0x14, 0x28,
0x59, 0x73, 0x71, 0x86, 0xc0, 0xd4, 0x08, 0x49, 0x70, 0xb1, 0x17, 0xa7, 0x26, 0xe7, 0xe7, 0xa5,
0x14, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0x30, 0x07, 0xc1, 0xb8, 0x42, 0x22, 0x5c, 0xac, 0x79, 0x89,
0x79, 0xf9, 0xc5, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xac, 0x41, 0x10, 0x8e, 0x53, 0x1d, 0x97, 0x70,
0x72, 0x7e, 0xae, 0x1e, 0x9a, 0x99, 0x4e, 0x7c, 0x70, 0x13, 0x03, 0x40, 0x42, 0x01, 0x8c, 0x51,
0xda, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xe9, 0xf9, 0x39, 0x89,
0x79, 0xe9, 0x08, 0x27, 0x16, 0x94, 0x54, 0x16, 0xa4, 0x16, 0x23, 0x5c, 0xfa, 0x83, 0x91, 0x71,
0x11, 0x13, 0xb3, 0x7b, 0x80, 0xd3, 0x2a, 0x26, 0x39, 0x77, 0x88, 0xc9, 0x01, 0x50, 0xb5, 0x7a,
0xe1, 0xa9, 0x39, 0x39, 0xde, 0x79, 0xf9, 0xe5, 0x79, 0x21, 0x20, 0x3d, 0x49, 0x6c, 0x60, 0x43,
0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x77, 0x4a, 0x07, 0xf7, 0x00, 0x00, 0x00,
}
|
{
"pile_set_name": "Github"
}
|
package org.hypergraphdb.type.javaprimitive;
import java.util.Date;
public class DateType extends DateTypeBase<java.util.Date>
{
protected Date fromLong(long x)
{
return new Date(x);
}
protected long toLong(Date x)
{
return x.getTime();
}
}
|
{
"pile_set_name": "Github"
}
|
Terra.describeViewports('Dialog', ['tiny', 'large'], () => {
describe('Default', () => {
before(() => browser.url('/#/raw/tests/terra-dialog/dialog/default-dialog'));
Terra.it.validatesElement({ selector: '#dialog' });
});
});
|
{
"pile_set_name": "Github"
}
|
/**
* Copyright (C) 2001 Yasna.com. All rights reserved.
*
* ===================================================================
* The Apache Software License, Version 1.1
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by
* Yasna.com (http://www.yasna.com)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Yazd" and "Yasna.com" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please
* contact [email protected].
*
* 5. Products derived from this software may not be called "Yazd",
* nor may "Yazd" appear in their name, without prior written
* permission of Yasna.com.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL YASNA.COM OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of Yasna.com. For more information
* on Yasna.com, please see <http://www.yasna.com>.
*/
/**
* Copyright (C) 2000 CoolServlets.com. All rights reserved.
*
* ===================================================================
* The Apache Software License, Version 1.1
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by
* CoolServlets.com (http://www.coolservlets.com)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Jive" and "CoolServlets.com" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please
* contact [email protected].
*
* 5. Products derived from this software may not be called "Jive",
* nor may "Jive" appear in their name, without prior written
* permission of CoolServlets.com.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL COOLSERVLETS.COM OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of CoolServlets.com. For more information
* on CoolServlets.com, please see <http://www.coolservlets.com>.
*/
package com.Yasna.forum;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* Thrown when a user record could not be loaded or does not exist.
*/
public class UserNotFoundException extends Exception {
private Throwable nestedThrowable = null;
public UserNotFoundException() {
super();
}
public UserNotFoundException(String msg) {
super(msg);
}
public UserNotFoundException(Throwable nestedThrowable) {
this.nestedThrowable = nestedThrowable;
}
public UserNotFoundException(String msg, Throwable nestedThrowable) {
super(msg);
this.nestedThrowable = nestedThrowable;
}
public void printStackTrace() {
super.printStackTrace();
if (nestedThrowable != null) {
nestedThrowable.printStackTrace();
}
}
public void printStackTrace(PrintStream ps) {
super.printStackTrace(ps);
if (nestedThrowable != null) {
nestedThrowable.printStackTrace(ps);
}
}
public void printStackTrace(PrintWriter pw) {
super.printStackTrace(pw);
if (nestedThrowable != null) {
nestedThrowable.printStackTrace(pw);
}
}
}
|
{
"pile_set_name": "Github"
}
|
/*
Copyright Rene Rivera 2008-2015
Copyright Franz Detro 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#if !defined(BOOST_PREDEF_OS_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS)
#ifndef BOOST_PREDEF_OS_H
#define BOOST_PREDEF_OS_H
#endif
#include <boost/predef/os/aix.h>
#include <boost/predef/os/amigaos.h>
#include <boost/predef/os/beos.h>
#include <boost/predef/os/bsd.h>
#include <boost/predef/os/cygwin.h>
#include <boost/predef/os/haiku.h>
#include <boost/predef/os/hpux.h>
#include <boost/predef/os/irix.h>
#include <boost/predef/os/ios.h>
#include <boost/predef/os/linux.h>
#include <boost/predef/os/macos.h>
#include <boost/predef/os/os400.h>
#include <boost/predef/os/qnxnto.h>
#include <boost/predef/os/solaris.h>
#include <boost/predef/os/unix.h>
#include <boost/predef/os/vms.h>
#include <boost/predef/os/windows.h>
#include <boost/predef/os/android.h>
#endif
|
{
"pile_set_name": "Github"
}
|
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 25 2017 03:49:04).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <objc/NSObject.h>
@interface TSlicesInterpreter : NSObject
{
}
+ (id)sliceForRawQueryString:(id)arg1;
+ (id)slicesForTag:(id)arg1 andLabel:(short)arg2;
+ (id)sharedSlicesInterpreter;
- (id)searchForRules:(id)arg1;
- (id)queryStringForRules:(id)arg1 searchSystemFiles:(id *)arg2 fileNameOnly:(id *)arg3 searchNonFinderFiles:(id *)arg4;
- (id)queryDictionaryForRow:(id)arg1 searchSystemFiles:(id *)arg2 fileNameOnly:(id *)arg3 searchNonFinderFiles:(id *)arg4 skipOuterParentheses:(_Bool)arg5;
- (id)queryStringForParts:(id)arg1 searchSystemFiles:(id *)arg2 fileNameOnly:(id *)arg3 searchNonFinderFiles:(id *)arg4 skipOuterParentheses:(_Bool)arg5 subRows:(id)arg6;
- (void)queryStringDictionaryForCriterion:(id)arg1 withDisplayValue:(id)arg2 intoDictionary:(id)arg3;
@end
|
{
"pile_set_name": "Github"
}
|
error: `<` is interpreted as a start of generic arguments for `u32`, not a comparison
--> $DIR/issue-42954.rs:7:19
|
LL | $i as u32 < 0
| --------- ^ - interpreted as generic arguments
| | |
| | not interpreted as comparison
| help: try comparing the cast value: `($i as u32)`
...
LL | is_plainly_printable!(c);
| ------------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
|
{
"pile_set_name": "Github"
}
|
package com.jshop.service;
import java.util.List;
import com.jshop.entity.SiteNavigationT;
public interface SiteNavigationTService extends BaseTService<SiteNavigationT>{
/**
* 删除导航
*
* @param list
* @return
*/
public int delSiteNavigationT(String[] list);
/**
* 获取所有导航
*
* @param currentPage
* @param lineSize
* @param creatorid
* @return
*/
public List<SiteNavigationT> findAllSiteNavigationT(final int currentPage,
final int lineSize, String creatorid);
/**
* 统计获取所有导航
*
* @param creatorid
* @return
*/
public int countfindAllSiteNavigationT(String creatorid);
/**
* 更新导航
*
* @param sn
* @return
*/
public int updateSiteNavigationT(SiteNavigationT sn);
/**
* 根据snid获取导航数据
*
* @param snid
* @return
*/
public SiteNavigationT findSiteNavigationBysnid(String snid);
/**
* 根据导航位置获取导航数据
*
* @param isVisible
* @param position
* @param creatorid
* @return
*/
public List<SiteNavigationT> findSiteNavigationByposition(String isVisible,
String position, String creatorid);
/**
* 根据是否显示来获取导航数据
*
* @param isVisible
* @param creatorid
* @return
*/
public List<SiteNavigationT> findSiteNavigationByisVisible(
String isVisible, String creatorid);
/**
* 根据是否显示来获取导航数据无用户id
*
* @param isVisible
* @param creatorid
* @return
*/
public List<SiteNavigationT> findSiteNavigationByisVisible(String isVisible);
/**
* 根据排序方式查询所有
*
* @param currentPage
* @param lineSize
* @param creatorid
* @param queryString
* @return
*/
public List<SiteNavigationT> sortAllSiteNavigationT(final int currentPage,
final int lineSize, String creatorid, String queryString);
}
|
{
"pile_set_name": "Github"
}
|
/**
* @class Ext.draw.sprite.Arc
* @extend Ext.draw.sprite.Circle
*
* A sprite that represents a circular arc.
*
* @example preview miniphone
* var component = new Ext.draw.Component({
* items: [{
* type: 'arc',
* cx: 100,
* cy: 100,
* r: 25,
* fillStyle: 'blue',
* startAngle: 0,
* endAngle: Math.PI,
* anticlockwise: true
* }]
* });
* Ext.Viewport.setLayout('fit');
* Ext.Viewport.add(component);
*/
Ext.define("Ext.draw.sprite.Arc", {
extend: "Ext.draw.sprite.Circle",
alias: 'sprite.arc',
type: 'arc',
inheritableStatics: {
def: {
processors: {
/**
* @cfg {Number} [startAngle=0] The beginning angle of the arc.
*/
startAngle: "number",
/**
* @cfg {Number} [endAngle=Math.PI*2] The ending angle of the arc.
*/
endAngle: "number",
/**
* @cfg {Boolean} [anticlockwise=false] Determines whether or not the arc is drawn clockwise.
*/
anticlockwise: "bool"
},
aliases: {
from: "startAngle",
to: "endAngle",
start: "startAngle",
end: "endAngle"
},
defaults: {
startAngle: 0,
endAngle: Math.PI * 2,
anticlockwise: false
},
dirtyTriggers: {
startAngle: 'path',
endAngle: 'path',
anticlockwise: 'path'
}
}
},
updatePath: function (path, attr) {
path.arc(attr.cx, attr.cy, attr.r, attr.startAngle, attr.endAngle, attr.anticlockwise);
}
});
|
{
"pile_set_name": "Github"
}
|
<% challenge_id(@show_challenge) %>
<div class="grid_7">
<h3><b><%= @show_challenge.title %></b></h3>
<%= render :partial => "shared/challenge_description", :locals => { show_challenge: @show_challenge } %>
<h3>Solutions</h3>
<p><b>The best way to learn is to practice</b>. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!</p>
<p>Check out <a href="/about#resources"> these helpful resources</a> to improve your Vim skills... <em>Game on.</em></p>
<% if !current_user %>
<div class="note clearfix">Unlock <b><%= @submissions.count_remaining %></b> remaining solutions by <b><%= link_to "signing in", "/auth/twitter?x_auth_access_type=read&use_authorize=true" %></b> and submitting your own entry</div>
<% elsif @submissions.count_remaining > 0 %>
<div class="note clearfix">Unlock <b><%= @submissions.count_remaining %></b> remaining solutions by submitting a higher ranked entry</div>
<% end %>
<%= render :partial => "shared/submissions", :locals => { submissions: @submissions } %>
<%= paginate @submissions.paginated, inner_window: 20, param_name: :submissions_page %>
</div>
<div class="grid_5">
<%= render :partial => "shared/challenge_credits", :locals => { show_challenge: @show_challenge } %>
<% if @show_challenge.owner?(current_user) %>
<div class="error clearfix">
<%= button_to "Delete Challenge", { :action => 'destroy', :id => @show_challenge.id }, :method => :delete, :class => 'delete action' %>
</div>
<% end %>
<% if @leaderboard.empty? %>
<h5>No competitors yet.. <em>be the first!</em></h5>
<% else %>
<h5>Leaderboard <em>(lowest score wins):</em></h5>
<% @leaderboard.each do |entry, user, position| %>
<div class="notice clearfix">
<%= twitter_avatar user.nickname %>
<div style="float:right; text-align:center;font-size:2.4em"><b><%= link_to entry[:min_score],
user_challenge_path(@show_challenge.id, user.nickname) %></b></div>
<h6 style="margin-bottom:0">
<a class="anchor" href="#<%= entry[:entry_id] %>"><b>#<%= position %></b></a> - <%= user.name %> / <%= profile_link(user.nickname) %>
</h6>
<p style="margin-bottom:0"><em><%= entry[:created_at].strftime("%m/%d/%Y at %I:%M%p") %></em></p>
</div>
<% end %>
<%= paginate @leaderboard.paginated, inner_window: 20, param_name: :leaderboard_page %>
<% end %>
</div>
|
{
"pile_set_name": "Github"
}
|
{
"output": ["os"],
"fact": "os"
}
|
{
"pile_set_name": "Github"
}
|
> From: [eLinux.org](http://eLinux.org/Hello_World_in_C "http://eLinux.org/Hello_World_in_C")
# Hello World in C
```
#include <stdio.h>
main() {
for(;;)
{
printf ("Hello World!\n");
}
}
```
[Categories](http://eLinux.org/Special:Categories "Special:Categories"):
- [Development
Tools](http://eLinux.org/Category:Development_Tools "Category:Development Tools")
- [C](http://eLinux.org/Category:C "Category:C")
|
{
"pile_set_name": "Github"
}
|
/* elision-unlock.c: Commit an elided pthread lock.
Copyright (C) 2013-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#include "pthreadP.h"
#include "lowlevellock.h"
#include "hle.h"
int
__lll_unlock_elision(int *lock, int private)
{
/* When the lock was free we're in a transaction.
When you crash here you unlocked a free lock. */
if (*lock == 0)
_xend();
else
lll_unlock ((*lock), private);
return 0;
}
|
{
"pile_set_name": "Github"
}
|
/*
* QEMU file monitor helper
*
* Copyright (c) 2018 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef QEMU_FILE_MONITOR_H
#define QEMU_FILE_MONITOR_H
#include "qemu-common.h"
typedef struct QFileMonitor QFileMonitor;
typedef enum {
/* File has been created in a dir */
QFILE_MONITOR_EVENT_CREATED,
/* File has been modified in a dir */
QFILE_MONITOR_EVENT_MODIFIED,
/* File has been deleted in a dir */
QFILE_MONITOR_EVENT_DELETED,
/* File has attributes changed */
QFILE_MONITOR_EVENT_ATTRIBUTES,
/* Dir is no longer being monitored (due to deletion) */
QFILE_MONITOR_EVENT_IGNORED,
} QFileMonitorEvent;
/**
* QFileMonitorHandler:
* @id: id from qemu_file_monitor_add_watch()
* @event: the file change that occurred
* @filename: the name of the file affected
* @opaque: opaque data provided to qemu_file_monitor_add_watch()
*
* Invoked whenever a file changes. If @event is
* QFILE_MONITOR_EVENT_IGNORED, @filename will be
* empty.
*
*/
typedef void (*QFileMonitorHandler)(int64_t id,
QFileMonitorEvent event,
const char *filename,
void *opaque);
/**
* qemu_file_monitor_new:
* @errp: pointer to a NULL-initialized error object
*
* Create a handle for a file monitoring object.
*
* This object does locking internally to enable it to be
* safe to use from multiple threads
*
* If the platform does not support file monitoring, an
* error will be reported. Likewise if file monitoring
* is supported, but cannot be initialized
*
* Currently this is implemented on Linux platforms with
* the inotify subsystem.
*
* Returns: the new monitoring object, or NULL on error
*/
QFileMonitor *qemu_file_monitor_new(Error **errp);
/**
* qemu_file_monitor_free:
* @mon: the file monitor context
*
* Free resources associated with the file monitor,
* including any currently registered watches.
*/
void qemu_file_monitor_free(QFileMonitor *mon);
/**
* qemu_file_monitor_add_watch:
* @mon: the file monitor context
* @dirpath: the directory whose contents to watch
* @filename: optional filename to filter on
* @cb: the function to invoke when @dirpath has changes
* @opaque: data to pass to @cb
* @errp: pointer to a NULL-initialized error object
*
* Register to receive notifications of changes
* in the directory @dirpath. All files in the
* directory will be monitored. If the caller is
* only interested in one specific file, @filename
* can be used to filter events.
*
* Returns: a positive integer watch ID, or -1 on error
*/
int64_t qemu_file_monitor_add_watch(QFileMonitor *mon,
const char *dirpath,
const char *filename,
QFileMonitorHandler cb,
void *opaque,
Error **errp);
/**
* qemu_file_monitor_remove_watch:
* @mon: the file monitor context
* @dirpath: the directory whose contents to unwatch
* @id: id of the watch to remove
*
* Removes the file monitoring watch @id, associated
* with the directory @dirpath. This must never be
* called from a QFileMonitorHandler callback, or a
* deadlock will result.
*/
void qemu_file_monitor_remove_watch(QFileMonitor *mon,
const char *dirpath,
int64_t id);
#endif /* QEMU_FILE_MONITOR_H */
|
{
"pile_set_name": "Github"
}
|
var convert = require('./convert'),
func = convert('find', require('../find'));
func.placeholder = require('./placeholder');
module.exports = func;
|
{
"pile_set_name": "Github"
}
|
class Solution:
def jump(self, nums: List[int]) -> int:
n = len(nums)
pre, cur, step = -1, 0, 0
for i in range(n):
if cur >= n - 1:
return step
elif pre < i <= cur:
step, pre = step + 1, cur
cur = max(cur, i + nums[i])
return step
if __name__ == "__main__":
nums = [1,2,3]
print(Solution().jump(nums))
|
{
"pile_set_name": "Github"
}
|
import * as React from 'react';
import { ButtonSecondary } from '@components/common/button';
import { StyledSteps, DotsContainer } from './styles';
import { StyledStepsFooter } from './styles';
import { Dot } from '@components/common/dot';
export interface IFormStep {}
export interface IStepsProps {
current: number;
onCancel?: (event: React.MouseEvent<HTMLElement>) => any;
onNext?: (event: React.MouseEvent<HTMLElement>) => any;
enableNext?: boolean;
showNextLoader: boolean;
}
export default class Steps extends React.Component<IStepsProps> {
public static defaultProps = {
current: 0,
showNextLoader: false,
};
public render() {
let stepCount = 0;
let dotStepCount = 0;
return (
<StyledSteps>
{React.Children.map(this.props.children, (child: any) => {
const childProps = {
...child.props,
position: child.props.position || stepCount,
};
stepCount++;
return (
childProps.position === this.props.current &&
React.cloneElement(child, childProps)
);
})}
<StyledStepsFooter spaceBetween alignItems="center">
<ButtonSecondary onClick={this.props.onCancel}>
Cancel
</ButtonSecondary>
<DotsContainer>
{React.Children.map(this.props.children, (child: any) => {
const childProps = {
...child.props,
position: child.props.position || dotStepCount,
};
dotStepCount++;
return (
<Dot active={childProps.position === this.props.current} />
);
})}
</DotsContainer>
<ButtonSecondary
onClick={this.props.onNext}
disabled={!this.props.enableNext}
loading={this.props.showNextLoader}
>
Next
</ButtonSecondary>
</StyledStepsFooter>
</StyledSteps>
);
}
}
|
{
"pile_set_name": "Github"
}
|
using System;
using System.Collections.Generic;
namespace Nez.AI.BehaviorTrees
{
/// <summary>
/// helper for building a BehaviorTree using a fluent API. Leaf nodes need to first have a parent added. Parents can be Composites or
/// Decorators. Decorators are automatically closed when a leaf node is added. Composites must have endComposite called to close them.
/// </summary>
public class BehaviorTreeBuilder<T>
{
T _context;
/// <summary>
/// Last node created.
/// </summary>
Behavior<T> _currentNode;
/// <summary>
/// Stack nodes that we are build via the fluent API.
/// </summary>
Stack<Behavior<T>> _parentNodeStack = new Stack<Behavior<T>>();
public BehaviorTreeBuilder(T context)
{
_context = context;
}
public static BehaviorTreeBuilder<T> Begin(T context)
{
return new BehaviorTreeBuilder<T>(context);
}
BehaviorTreeBuilder<T> SetChildOnParent(Behavior<T> child)
{
var parent = _parentNodeStack.Peek();
if (parent is Composite<T>)
{
(parent as Composite<T>).AddChild(child);
}
else if (parent is Decorator<T>)
{
// Decorators have just one child so end it automatically
(parent as Decorator<T>).Child = child;
EndDecorator();
}
return this;
}
/// <summary>
/// pushes a Composite or Decorator on the stack
/// </summary>
/// <returns>The parent node.</returns>
/// <param name="composite">Composite.</param>
BehaviorTreeBuilder<T> PushParentNode(Behavior<T> composite)
{
if (_parentNodeStack.Count > 0)
SetChildOnParent(composite);
_parentNodeStack.Push(composite);
return this;
}
BehaviorTreeBuilder<T> EndDecorator()
{
_currentNode = _parentNodeStack.Pop();
return this;
}
#region Leaf Nodes (actions and sub trees)
public BehaviorTreeBuilder<T> Action(Func<T, TaskStatus> func)
{
Insist.IsFalse(_parentNodeStack.Count == 0,
"Can't create an unnested Action node. It must be a leaf node.");
return SetChildOnParent(new ExecuteAction<T>(func));
}
/// <summary>
/// Like an action node but the function can return true/false and is mapped to success/failure.
/// </summary>
public BehaviorTreeBuilder<T> Action(Func<T, bool> func)
{
return Action(t => func(t) ? TaskStatus.Success : TaskStatus.Failure);
}
public BehaviorTreeBuilder<T> Conditional(Func<T, TaskStatus> func)
{
Insist.IsFalse(_parentNodeStack.Count == 0,
"Can't create an unnested Conditional node. It must be a leaf node.");
return SetChildOnParent(new ExecuteActionConditional<T>(func));
}
/// <summary>
/// Like a conditional node but the function can return true/false and is mapped to success/failure.
/// </summary>
public BehaviorTreeBuilder<T> Conditional(Func<T, bool> func)
{
return Conditional(t => func(t) ? TaskStatus.Success : TaskStatus.Failure);
}
public BehaviorTreeBuilder<T> LogAction(string text)
{
Insist.IsFalse(_parentNodeStack.Count == 0,
"Can't create an unnested Action node. It must be a leaf node.");
return SetChildOnParent(new LogAction<T>(text));
}
public BehaviorTreeBuilder<T> WaitAction(float waitTime)
{
Insist.IsFalse(_parentNodeStack.Count == 0,
"Can't create an unnested Action node. It must be a leaf node.");
return SetChildOnParent(new WaitAction<T>(waitTime));
}
/// <summary>
/// Splice a sub tree into the parent tree.
/// </summary>
public BehaviorTreeBuilder<T> SubTree(BehaviorTree<T> subTree)
{
Insist.IsFalse(_parentNodeStack.Count == 0,
"Can't splice an unnested sub tree, there must be a parent tree.");
return SetChildOnParent(new BehaviorTreeReference<T>(subTree));
}
#endregion
#region Decorators
public BehaviorTreeBuilder<T> ConditionalDecorator(Func<T, TaskStatus> func, bool shouldReevaluate = true)
{
var conditional = new ExecuteActionConditional<T>(func);
return PushParentNode(new ConditionalDecorator<T>(conditional, shouldReevaluate));
}
/// <summary>
/// Like a conditional decorator node but the function can return true/false and is mapped to success/failure.
/// </summary>
public BehaviorTreeBuilder<T> ConditionalDecorator(Func<T, bool> func, bool shouldReevaluate = true)
{
return ConditionalDecorator(t => func(t) ? TaskStatus.Success : TaskStatus.Failure, shouldReevaluate);
}
public BehaviorTreeBuilder<T> AlwaysFail()
{
return PushParentNode(new AlwaysFail<T>());
}
public BehaviorTreeBuilder<T> AlwaysSucceed()
{
return PushParentNode(new AlwaysSucceed<T>());
}
public BehaviorTreeBuilder<T> Inverter()
{
return PushParentNode(new Inverter<T>());
}
public BehaviorTreeBuilder<T> Repeater(int count)
{
return PushParentNode(new Repeater<T>(count));
}
public BehaviorTreeBuilder<T> UntilFail()
{
return PushParentNode(new UntilFail<T>());
}
public BehaviorTreeBuilder<T> UntilSuccess()
{
return PushParentNode(new UntilSuccess<T>());
}
#endregion
#region Composites
public BehaviorTreeBuilder<T> Parallel()
{
return PushParentNode(new Parallel<T>());
}
public BehaviorTreeBuilder<T> ParallelSelector()
{
return PushParentNode(new ParallelSelector<T>());
}
public BehaviorTreeBuilder<T> Selector(AbortTypes abortType = AbortTypes.None)
{
return PushParentNode(new Selector<T>(abortType));
}
public BehaviorTreeBuilder<T> RandomSelector()
{
return PushParentNode(new RandomSelector<T>());
}
public BehaviorTreeBuilder<T> Sequence(AbortTypes abortType = AbortTypes.None)
{
return PushParentNode(new Sequence<T>(abortType));
}
public BehaviorTreeBuilder<T> RandomSequence()
{
return PushParentNode(new RandomSequence<T>());
}
public BehaviorTreeBuilder<T> EndComposite()
{
Insist.IsTrue(_parentNodeStack.Peek() is Composite<T>,
"attempting to end a composite but the top node is a decorator");
_currentNode = _parentNodeStack.Pop();
return this;
}
#endregion
public BehaviorTree<T> Build(float updatePeriod = 0.2f)
{
Insist.IsNotNull(_currentNode, "Can't create a behaviour tree with zero nodes");
return new BehaviorTree<T>(_context, _currentNode, updatePeriod);
}
}
}
|
{
"pile_set_name": "Github"
}
|
// Copyright 2019 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.devtools.build.lib.skyframe;
import com.google.common.collect.Interner;
import com.google.devtools.build.lib.concurrent.BlazeInterners;
/** Factory class for producing a builder for {@link CachedBzlLoadData}. */
// TODO(bazel-team): It's unclear why this needs to be public and whether we need it at all. Maybe
// we can just inline it into BzlLoadFunction.
public class CachedBzlLoadDataBuilderFactory {
private final Interner<CachedBzlLoadData> interner = BlazeInterners.newWeakInterner();
CachedBzlLoadData.Builder newCachedBzlLoadDataBuilder() {
return new CachedBzlLoadData.Builder(interner);
}
}
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>Size Struct Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></script>
<script src="../js/jazzy.js" defer></script>
</head>
<body>
<a name="//apple_ref/swift/Struct/Size" class="dashAnchor"></a>
<a title="Size Struct Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="../index.html">Katana Docs</a> (100% documented)</p>
<p class="header-right"><a href="https://github.com/BendingSpoons/katana-swift"><img src="../img/gh.png"/>View on GitHub</a></p>
</div>
</header>
<div class="content-wrapper">
<p id="breadcrumbs">
<a href="../index.html">Katana Reference</a>
<img id="carat" src="../img/carat.png" />
Size Struct Reference
</p>
</div>
<div class="content-wrapper">
<nav class="sidebar">
<ul class="nav-groups">
<li class="nav-group-name">
<a href="../Classes.html">Classes</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Classes/Node.html">Node</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PlasticNode.html">PlasticNode</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PlasticView.html">PlasticView</a>
</li>
<li class="nav-group-task">
<a href="../Classes/Renderer.html">Renderer</a>
</li>
<li class="nav-group-task">
<a href="../Classes/Store.html">Store</a>
</li>
<li class="nav-group-task">
<a href="../Classes/ViewsContainer.html">ViewsContainer</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Enums.html">Enums</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Enums/AnimationType.html">AnimationType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/AsyncActionState.html">AsyncActionState</a>
</li>
<li class="nav-group-task">
<a href="../Enums.html#/s:O6Katana9EmptyKeys">EmptyKeys</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Extensions.html">Extensions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Extensions/Array.html">Array</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/CGSize.html">CGSize</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/UIView.html">UIView</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Protocols.html">Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Protocols/Action.html">Action</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/ActionWithSideEffect.html">ActionWithSideEffect</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AnyAction.html">AnyAction</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AnyActionWithSideEffect.html">AnyActionWithSideEffect</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AnyConnectedNodeDescription.html">AnyConnectedNodeDescription</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AnyNode.html">AnyNode</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AnyNodeDescription.html">AnyNodeDescription</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AnyNodeDescriptionProps.html">AnyNodeDescriptionProps</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AnyNodeDescriptionWithChildren.html">AnyNodeDescriptionWithChildren</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AnyPlasticNodeDescription.html">AnyPlasticNodeDescription</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AnyStore.html">AnyStore</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AsyncAction.html">AsyncAction</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/Childrenable.html">Childrenable</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/ConnectedNodeDescription.html">ConnectedNodeDescription</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LinkeableAction.html">LinkeableAction</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/NodeDescription.html">NodeDescription</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/NodeDescriptionProps.html">NodeDescriptionProps</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/NodeDescriptionState.html">NodeDescriptionState</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/NodeDescriptionWithChildren.html">NodeDescriptionWithChildren</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/PlasticNodeDescription.html">PlasticNodeDescription</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/PlasticReferenceSizeable.html">PlasticReferenceSizeable</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/PlatformNativeView.html">PlatformNativeView</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/SideEffectDependencyContainer.html">SideEffectDependencyContainer</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/State.html">State</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/SyncAction.html">SyncAction</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Structs.html">Structs</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Structs/ActionLinker.html">ActionLinker</a>
</li>
<li class="nav-group-task">
<a href="../Structs.html#/s:V6Katana11ActionLinks">ActionLinks</a>
</li>
<li class="nav-group-task">
<a href="../Structs/Anchor.html">Anchor</a>
</li>
<li class="nav-group-task">
<a href="../Structs/Anchor/Kind.html">– Kind</a>
</li>
<li class="nav-group-task">
<a href="../Structs/Animation.html">Animation</a>
</li>
<li class="nav-group-task">
<a href="../Structs/AnimationContainer.html">AnimationContainer</a>
</li>
<li class="nav-group-task">
<a href="../Structs/AnimationOptions.html">AnimationOptions</a>
</li>
<li class="nav-group-task">
<a href="../Structs/AnimationProps.html">AnimationProps</a>
</li>
<li class="nav-group-task">
<a href="../Structs/ChildrenAnimations.html">ChildrenAnimations</a>
</li>
<li class="nav-group-task">
<a href="../Structs/EdgeInsets.html">EdgeInsets</a>
</li>
<li class="nav-group-task">
<a href="../Structs/EmptyProps.html">EmptyProps</a>
</li>
<li class="nav-group-task">
<a href="../Structs/EmptySideEffectDependencyContainer.html">EmptySideEffectDependencyContainer</a>
</li>
<li class="nav-group-task">
<a href="../Structs/EmptyState.html">EmptyState</a>
</li>
<li class="nav-group-task">
<a href="../Structs/Size.html">Size</a>
</li>
<li class="nav-group-task">
<a href="../Structs/Value.html">Value</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Typealiases.html">Typealiases</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Typealiases.html#/s:6Katana25AnimationPropsTransformer">AnimationPropsTransformer</a>
</li>
<li class="nav-group-task">
<a href="../Typealiases.html#/s:6Katana20NodeUpdateCompletion">NodeUpdateCompletion</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Associated Types.html">Associated Types</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Associated Types.html#/s:P6Katana27NodeDescriptionWithChildren9PropsType">PropsType</a>
</li>
</ul>
</li>
</ul>
</nav>
<article class="main-content">
<section>
<section class="section">
<h1>Size</h1>
<div class="declaration">
<div class="language">
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">Size</span><span class="p">:</span> <span class="kt">Equatable</span></code></pre>
</div>
</div>
<p><code>Size</code> is the scalable counterpart of <code>CGSize</code></p>
</section>
<section class="section task-group-section">
<div class="task-group">
<ul>
<li class="item">
<div>
<code>
<a name="/s:vV6Katana4Size5widthVS_5Value"></a>
<a name="//apple_ref/swift/Property/width" class="dashAnchor"></a>
<a class="token" href="#/s:vV6Katana4Size5widthVS_5Value">width</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>The width value</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">width</span><span class="p">:</span> <span class="kt"><a href="../Structs/Value.html">Value</a></span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L15">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:vV6Katana4Size6heightVS_5Value"></a>
<a name="//apple_ref/swift/Property/height" class="dashAnchor"></a>
<a class="token" href="#/s:vV6Katana4Size6heightVS_5Value">height</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>The height value</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">height</span><span class="p">:</span> <span class="kt"><a href="../Structs/Value.html">Value</a></span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L18">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:ZvV6Katana4Size4zeroS0_"></a>
<a name="//apple_ref/swift/Variable/zero" class="dashAnchor"></a>
<a class="token" href="#/s:ZvV6Katana4Size4zeroS0_">zero</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>an instance of <code>Size</code> where both the width and the height are zero</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">zero</span><span class="p">:</span> <span class="kt">Size</span> <span class="o">=</span> <span class="o">.</span><span class="nf">scalable</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L21">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:ZFV6Katana4Size5fixedFTV12CoreGraphics7CGFloatS2__S0_"></a>
<a name="//apple_ref/swift/Method/fixed(_:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:ZFV6Katana4Size5fixedFTV12CoreGraphics7CGFloatS2__S0_">fixed(_:_:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Creates an instance of <code>Size</code> where both widht and height are fixed</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">fixed</span><span class="p">(</span><span class="n">_</span> <span class="nv">width</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="n">_</span> <span class="nv">height</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Size</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>width</em>
</code>
</td>
<td>
<div>
<p>the value of the width</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>height</em>
</code>
</td>
<td>
<div>
<p>the value of the height</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>an instance of <code>Size</code> where both width and height are fixed</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L31-L33">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:ZFV6Katana4Size8scalableFTV12CoreGraphics7CGFloatS2__S0_"></a>
<a name="//apple_ref/swift/Method/scalable(_:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:ZFV6Katana4Size8scalableFTV12CoreGraphics7CGFloatS2__S0_">scalable(_:_:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Creates an instance of <code>Size</code> where both widht and height are scalable</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">scalable</span><span class="p">(</span><span class="n">_</span> <span class="nv">width</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="n">_</span> <span class="nv">height</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Size</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>width</em>
</code>
</td>
<td>
<div>
<p>the value of the width</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>height</em>
</code>
</td>
<td>
<div>
<p>the value of the height</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>an instance of <code>Size</code> where both width and height are scalable</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L43-L45">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:FV6Katana4SizecFT5widthVS_5Value6heightS1__S0_"></a>
<a name="//apple_ref/swift/Method/init(width:height:)" class="dashAnchor"></a>
<a class="token" href="#/s:FV6Katana4SizecFT5widthVS_5Value6heightS1__S0_">init(width:height:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Creates an instance of <code>Size</code> with the given value</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">width</span><span class="p">:</span> <span class="kt"><a href="../Structs/Value.html">Value</a></span><span class="p">,</span> <span class="nv">height</span><span class="p">:</span> <span class="kt"><a href="../Structs/Value.html">Value</a></span><span class="p">)</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>width</em>
</code>
</td>
<td>
<div>
<p>the width to use</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>height</em>
</code>
</td>
<td>
<div>
<p>the height to use</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>an instance of <code>Size</code> with the given value</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L55-L58">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:FV6Katana4Size5scaleFT2byV12CoreGraphics7CGFloat_VSC6CGSize"></a>
<a name="//apple_ref/swift/Method/scale(by:)" class="dashAnchor"></a>
<a class="token" href="#/s:FV6Katana4Size5scaleFT2byV12CoreGraphics7CGFloat_VSC6CGSize">scale(by:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Scales the size using a multiplier</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">scale</span><span class="p">(</span><span class="n">by</span> <span class="nv">multiplier</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">)</span> <span class="o">-></span> <span class="kt">CGSize</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>multiplier</em>
</code>
</td>
<td>
<div>
<p>the multiplier to use to scale the size</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>an instance of <code>CGSize</code> that is the result of the scaling process</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L66-L71">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:ZFV6Katana4Sizeoi1mFTS0_V12CoreGraphics7CGFloat_S0_"></a>
<a name="//apple_ref/swift/Method/*(_:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:ZFV6Katana4Sizeoi1mFTS0_V12CoreGraphics7CGFloat_S0_">*(_:_:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Implements the multiplication for the <code>Size</code> instances</p>
<div class="aside aside-warning">
<p class="aside-title">Warning</p>
<p>this method is different from <code><a href="../Structs/Size.html#/s:FV6Katana4Size5scaleFT2byV12CoreGraphics7CGFloat_VSC6CGSize">scale(by:)</a></code> since it scales both
scalable and fixed values, whereas <code><a href="../Structs/Size.html#/s:FV6Katana4Size5scaleFT2byV12CoreGraphics7CGFloat_VSC6CGSize">scale(by:)</a></code> scales only the scalable
values</p>
</div>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="o">*</span> <span class="p">(</span><span class="nv">lhs</span><span class="p">:</span> <span class="kt">Size</span><span class="p">,</span> <span class="nv">rhs</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Size</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>lhs</em>
</code>
</td>
<td>
<div>
<p>the <code>Size</code> instance</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>rhs</em>
</code>
</td>
<td>
<div>
<p>the the mutliplier to apply</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>an instance of <code>Size</code> where the values are multiplied by <code>rhs</code></p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L84-L86">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:ZFV6Katana4Sizeoi1pFTS0_S0__S0_"></a>
<a name="//apple_ref/swift/Method/+(_:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:ZFV6Katana4Sizeoi1pFTS0_S0__S0_">+(_:_:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Implements the addition for the <code>Size</code> instances</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="o">+</span> <span class="p">(</span><span class="nv">lhs</span><span class="p">:</span> <span class="kt">Size</span><span class="p">,</span> <span class="nv">rhs</span><span class="p">:</span> <span class="kt">Size</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Size</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>lhs</em>
</code>
</td>
<td>
<div>
<p>the first instance</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>rhs</em>
</code>
</td>
<td>
<div>
<p>the second instance</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>an instance of <code>Size</code> where the width and the height are the sum of the insets of<br/>the two operators</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L96-L98">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:ZFV6Katana4Sizeoi1dFTS0_V12CoreGraphics7CGFloat_S0_"></a>
<a name="//apple_ref/swift/Method//(_:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:ZFV6Katana4Sizeoi1dFTS0_V12CoreGraphics7CGFloat_S0_">/(_:_:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Implements the division for the <code>Size</code> instances</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="o">/</span> <span class="p">(</span><span class="nv">lhs</span><span class="p">:</span> <span class="kt">Size</span><span class="p">,</span> <span class="nv">rhs</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Size</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>lhs</em>
</code>
</td>
<td>
<div>
<p>the first instance</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>rhs</em>
</code>
</td>
<td>
<div>
<p>the value that will be used in the division</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>an instance of <code>Size</code> where the insets are divided by <code>rhs</code></p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L107-L109">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:ZFV6Katana4Sizeoi2eeFTS0_S0__Sb"></a>
<a name="//apple_ref/swift/Method/==(_:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:ZFV6Katana4Sizeoi2eeFTS0_S0__Sb">==(_:_:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Imlementation of the <code>Equatable</code> protocol.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="o">==</span> <span class="p">(</span><span class="nv">lhs</span><span class="p">:</span> <span class="kt">Size</span><span class="p">,</span> <span class="nv">rhs</span><span class="p">:</span> <span class="kt">Size</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>lhs</em>
</code>
</td>
<td>
<div>
<p>the first instance</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>rhs</em>
</code>
</td>
<td>
<div>
<p>the second instance</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>true if the two instances are equal, which means that both width and height are equal</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/BendingSpoons/katana-swift/tree/0.5.1/Katana/Plastic/Size.swift#L118-L120">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
</section>
</section>
<section id="footer">
<p>© 2017 <a class="link" href="http://bendingspoons.com" target="_blank" rel="external">Bending Spoons Team</a>. All rights reserved. (Last updated: 2017-01-16)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
</div>
</body>
</div>
</html>
|
{
"pile_set_name": "Github"
}
|
extends layout
block content
.inner
h2 Top #{stores.length} Stores
table.table
thead
td photo
td ranking
td name
td reviews
td Average Rating
each store, i in stores
tr
td
a(href=`/store/${store.slug}`)
img(width=200 src=`/uploads/${store.photo || 'store.png'}` alt=store.name)
td #{i + 1}
td: a(href=`/store/${store.slug}`)= store.name
td= store.reviews.length
td #{Math.round(store.averageRating * 10) / 10} / 5
|
{
"pile_set_name": "Github"
}
|
AdminExecuteSequence = [
('InstallInitialize', None, 1500),
('InstallFinalize', None, 6600),
('InstallFiles', None, 4000),
('InstallAdminPackage', None, 3900),
('FileCost', None, 900),
('CostInitialize', None, 800),
('CostFinalize', None, 1000),
('InstallValidate', None, 1400),
]
AdminUISequence = [
('FileCost', None, 900),
('CostInitialize', None, 800),
('CostFinalize', None, 1000),
('ExecuteAction', None, 1300),
('ExitDialog', None, -1),
('FatalError', None, -3),
('UserExit', None, -2),
]
AdvtExecuteSequence = [
('InstallInitialize', None, 1500),
('InstallFinalize', None, 6600),
('CostInitialize', None, 800),
('CostFinalize', None, 1000),
('InstallValidate', None, 1400),
('CreateShortcuts', None, 4500),
('MsiPublishAssemblies', None, 6250),
('PublishComponents', None, 6200),
('PublishFeatures', None, 6300),
('PublishProduct', None, 6400),
('RegisterClassInfo', None, 4600),
('RegisterExtensionInfo', None, 4700),
('RegisterMIMEInfo', None, 4900),
('RegisterProgIdInfo', None, 4800),
]
InstallExecuteSequence = [
('InstallInitialize', None, 1500),
('InstallFinalize', None, 6600),
('InstallFiles', None, 4000),
('FileCost', None, 900),
('CostInitialize', None, 800),
('CostFinalize', None, 1000),
('InstallValidate', None, 1400),
('CreateShortcuts', None, 4500),
('MsiPublishAssemblies', None, 6250),
('PublishComponents', None, 6200),
('PublishFeatures', None, 6300),
('PublishProduct', None, 6400),
('RegisterClassInfo', None, 4600),
('RegisterExtensionInfo', None, 4700),
('RegisterMIMEInfo', None, 4900),
('RegisterProgIdInfo', None, 4800),
('AllocateRegistrySpace', 'NOT Installed', 1550),
('AppSearch', None, 400),
('BindImage', None, 4300),
('CCPSearch', 'NOT Installed', 500),
('CreateFolders', None, 3700),
('DeleteServices', 'VersionNT', 2000),
('DuplicateFiles', None, 4210),
('FindRelatedProducts', None, 200),
('InstallODBC', None, 5400),
('InstallServices', 'VersionNT', 5800),
('IsolateComponents', None, 950),
('LaunchConditions', None, 100),
('MigrateFeatureStates', None, 1200),
('MoveFiles', None, 3800),
('PatchFiles', None, 4090),
('ProcessComponents', None, 1600),
('RegisterComPlus', None, 5700),
('RegisterFonts', None, 5300),
('RegisterProduct', None, 6100),
('RegisterTypeLibraries', None, 5500),
('RegisterUser', None, 6000),
('RemoveDuplicateFiles', None, 3400),
('RemoveEnvironmentStrings', None, 3300),
('RemoveExistingProducts', None, 6700),
('RemoveFiles', None, 3500),
('RemoveFolders', None, 3600),
('RemoveIniValues', None, 3100),
('RemoveODBC', None, 2400),
('RemoveRegistryValues', None, 2600),
('RemoveShortcuts', None, 3200),
('RMCCPSearch', 'NOT Installed', 600),
('SelfRegModules', None, 5600),
('SelfUnregModules', None, 2200),
('SetODBCFolders', None, 1100),
('StartServices', 'VersionNT', 5900),
('StopServices', 'VersionNT', 1900),
('MsiUnpublishAssemblies', None, 1750),
('UnpublishComponents', None, 1700),
('UnpublishFeatures', None, 1800),
('UnregisterClassInfo', None, 2700),
('UnregisterComPlus', None, 2100),
('UnregisterExtensionInfo', None, 2800),
('UnregisterFonts', None, 2500),
('UnregisterMIMEInfo', None, 3000),
('UnregisterProgIdInfo', None, 2900),
('UnregisterTypeLibraries', None, 2300),
('ValidateProductID', None, 700),
('WriteEnvironmentStrings', None, 5200),
('WriteIniValues', None, 5100),
('WriteRegistryValues', None, 5000),
]
InstallUISequence = [
('FileCost', None, 900),
('CostInitialize', None, 800),
('CostFinalize', None, 1000),
('ExecuteAction', None, 1300),
('ExitDialog', None, -1),
('FatalError', None, -3),
('UserExit', None, -2),
('AppSearch', None, 400),
('CCPSearch', 'NOT Installed', 500),
('FindRelatedProducts', None, 200),
('IsolateComponents', None, 950),
('LaunchConditions', None, 100),
('MigrateFeatureStates', None, 1200),
('RMCCPSearch', 'NOT Installed', 600),
('ValidateProductID', None, 700),
]
tables=['AdminExecuteSequence', 'AdminUISequence', 'AdvtExecuteSequence', 'InstallExecuteSequence', 'InstallUISequence']
|
{
"pile_set_name": "Github"
}
|
/*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* However, if you have executed another commercial license agreement
* with Crate these terms will supersede the license and you may use the
* software solely pursuant to the terms of the relevant commercial agreement.
*/
package io.crate.operation.collect.files;
import com.fasterxml.jackson.databind.MappingIterator;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.dataformat.csv.CsvMapper;
import com.fasterxml.jackson.dataformat.csv.CsvParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.json.JsonXContent;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashSet;
public class CSVLineParser {
private final ArrayList<String> keyList = new ArrayList<>();
private final ObjectReader csvReader = new CsvMapper()
.enable(CsvParser.Feature.TRIM_SPACES)
.readerWithTypedSchemaFor(String.class);
private final ByteArrayOutputStream out = new ByteArrayOutputStream();
public void parseHeader(String header) throws IOException {
MappingIterator<String> iterator = csvReader.readValues(header.getBytes(StandardCharsets.UTF_8));
iterator.readAll(keyList);
HashSet<String> keySet = new HashSet<>(keyList);
keySet.remove("");
if (keySet.size() != keyList.size() || keySet.size() == 0) {
throw new IllegalArgumentException("Invalid header: duplicate entries or no entries present");
}
}
public byte[] parse(String row) throws IOException {
MappingIterator<Object> iterator = csvReader.readValues(row.getBytes(StandardCharsets.UTF_8));
out.reset();
XContentBuilder jsonBuilder = new XContentBuilder(JsonXContent.JSON_XCONTENT, out).startObject();
int i = 0;
while (iterator.hasNext()) {
if (i >= keyList.size()) {
throw new IllegalArgumentException("Number of values exceeds number of keys");
}
jsonBuilder.field(keyList.get(i), iterator.next());
i++;
}
jsonBuilder.endObject().close();
return out.toByteArray();
}
}
|
{
"pile_set_name": "Github"
}
|
# file: bin.mak
# description: Build VLFeat command line utilities
# author: Andrea Vedaldi
# Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
# All rights reserved.
#
# This file is part of the VLFeat library and is made available under
# the terms of the BSD license (see the COPYING file).
all: bin-all
clean: bin-clean
archclean: bin-archclean
distclean: bin-distclean
info: bin-info
# --------------------------------------------------------------------
# Configuration
# --------------------------------------------------------------------
BIN_CFLAGS = $(STD_CFLAGS) -I$(VLDIR)
BIN_CFLAGS += $(if $(DISABLE_THREADS),,-pthread)
BIN_CFLAGS += $(if $(DISABLE_OPENMP),,-fopenmp)
BIN_LDFLAGS = $(STD_LDFLAGS) -L$(BINDIR) -lvl -lm
BIN_LDFLAGS += $(if $(DISABLE_THREADS),,-lpthread)
BIN_LDFLAGS += $(if $(DISABLE_OPENMP),,-fopenmp)
# Mac OS X Intel 32
ifeq ($(ARCH),maci)
endif
# Mac OS X Intel 64
ifeq ($(ARCH),maci64)
endif
# Linux-32
ifeq ($(ARCH),glnx86)
BIN_LDFLAGS += -Wl,--rpath,\$$ORIGIN/
endif
# Linux-64
ifeq ($(ARCH),glnxa64)
BIN_LDFLAGS += -Wl,--rpath,\$$ORIGIN/
endif
# --------------------------------------------------------------------
# Build
# --------------------------------------------------------------------
# On Mac OS X the library install_name is prefixed with @loader_path/.
# At run time this causes the loader to search for a local copy of the
# library for any binary which is linked against it. The install_name
# can be modified later by install_name_tool.
bin_src := $(wildcard $(VLDIR)/src/*.c)
bin_tgt := $(addprefix $(BINDIR)/, $(patsubst %.c,%,$(notdir $(bin_src))))
bin_dep := $(addsuffix .d, $(bin_tgt))
deps += $(bin_dep)
arch_bins += $(bin_tgt)
comm_bins +=
.PHONY: bin-all, bin-info
.PHONY: bin-clean, bin-archclean, bin-distclean
no_dep_targets += bin-dir bin-clean bin-archclean bin-distclean
no_dep_targets += bin-info
bin-all: $(dll-dir) $(bin_tgt)
# BIN_LDFLAGS includes the libraries to link to and must be
# specified after the object "$<" that uses them. If not, stricter
# linkers (e.g. --as-needed option with the GNU toolchain)
# will break as they will not include the dependencies. See
# also http://wiki.debian.org/ToolChain/DSOLinking
$(BINDIR)/% : $(VLDIR)/src/%.c $(dll_tgt)
$(call C,CC) $(BIN_CFLAGS) "$<" $(BIN_LDFLAGS) -o "$@"
$(BINDIR)/%.d : $(VLDIR)/src/%.c $(dll-dir)
$(call C,CC) $(BIN_CFLAGS) -M -MT \
'$(BINDIR)/$* $(BINDIR)/$*.d' \
"$<" -MF "$@"
bin-clean:
rm -f $(bin_dep)
bin-archclean: bin-clean
bin-distclean:
bin-info:
$(call echo-title,Command line utilities)
$(call dump-var,bin_src)
$(call dump-var,bin_tgt)
$(call dump-var,bin_dep)
$(call echo-var,BIN_CFLAGS)
$(call echo-var,BIN_LDFLAGS)
@echo
# Local variables:
# mode: Makefile
# End:
|
{
"pile_set_name": "Github"
}
|
; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> AXFR ventures. @demand.alpha.aridns.net.au. +nocomments +nocmd +noquestion +nostats +time=15
;; global options: +cmd
; Transfer failed.
|
{
"pile_set_name": "Github"
}
|
/*
* Author: Andreas Linde <[email protected]>
*
* Copyright (c) 2012-2014 HockeyApp, Bit Stadium GmbH.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#import <Foundation/Foundation.h>
@class BWQuincyManager;
/**
The `BWQuincyManagerDelegate` formal protocol defines methods further configuring
the behaviour of `BWQuincyManager`.
*/
@protocol BWQuincyManagerDelegate <NSObject>
@optional
///-----------------------------------------------------------------------------
/// @name Additional meta data
///-----------------------------------------------------------------------------
/** Return any log string based data the crash report being processed should contain
@param crashManager The `BITCrashManager` instance invoking this delegate
*/
-(NSString *)applicationLogForQuincyManager:(BWQuincyManager *)quincyManager;
///-----------------------------------------------------------------------------
/// @name Alert
///-----------------------------------------------------------------------------
/** Invoked before the user is asked to send a crash report, so you can do additional actions.
E.g. to make sure not to ask the user for an app rating :)
@param crashManager The `BITCrashManager` instance invoking this delegate
*/
-(void)crashManagerWillShowSubmitCrashReportAlert:(BWQuincyManager *)quincyManager;
/** Invoked after the user did choose _NOT_ to send a crash in the alert
@param crashManager The `BITCrashManager` instance invoking this delegate
*/
-(void)crashManagerWillCancelSendingCrashReport:(BWQuincyManager *)quincyManager;
/** Invoked after the user did choose to send crashes always in the alert
@param crashManager The `BITCrashManager` instance invoking this delegate
*/
-(void)crashManagerWillSendCrashReportsAlways:(BWQuincyManager *)quincyManager;
///-----------------------------------------------------------------------------
/// @name Networking
///-----------------------------------------------------------------------------
/** Invoked right before sending crash reports will start
@param crashManager The `BITCrashManager` instance invoking this delegate
*/
- (void)crashManagerWillSendCrashReport:(BWQuincyManager *)quincyManager;
/** Invoked after sending crash reports failed
@param crashManager The `BITCrashManager` instance invoking this delegate
@param error The error returned from the NSURLConnection call or `kBITCrashErrorDomain`
with reason of type `BITCrashErrorReason`.
*/
- (void)crashManager:(BWQuincyManager *)quincyManager didFailWithError:(NSError *)error;
/** Invoked after sending crash reports succeeded
@param crashManager The `BITCrashManager` instance invoking this delegate
*/
- (void)crashManagerDidFinishSendingCrashReport:(BWQuincyManager *)quincyManager;
@end
|
{
"pile_set_name": "Github"
}
|
__title__ = 'fobi.contrib.themes.simple.widgets.form_elements.' \
'invisible_recaptcha_simple_widget'
__author__ = 'Artur Barseghyan <[email protected]>'
__copyright__ = '2014-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = ('default_app_config',)
default_app_config = 'fobi.contrib.themes.simple.widgets.form_elements.' \
'invisible_recaptcha_simple_widget.apps.Config'
|
{
"pile_set_name": "Github"
}
|
fileFormatVersion: 2
guid: 23f416cde2a4347bebfbe2efe69d19b8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,700' rel='stylesheet' type='text/css'>
<link type="text/css" rel="stylesheet" href="./css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="./webfonts/ss-standard.css" />
<link type="text/css" rel="stylesheet" href="./css/style.css" />
</head>
<body>
<div id="application" class="fullheight">
<div class="container-fluid fullheight">
<div class="row fullheight">
<div class="col-md-2 fullheight">
<div id="leftside" class="fullheight">
<div id="menu">
<div class="block row">
<div class="content" id="search">
<i class="ss-icon ss-search"></i>
<span> Search</span>
</div>
</div>
<div class="block row" id="discover">
<div class="title">Discover</div>
<div class="content">
<ul>
<li><a href="">Charts</a></li>
<li><a href="">Featured playlists</a></li>
<li><a href="">New releases</a></li>
</ul>
</div>
</div>
<div class="block row" id="yourmusic">
<div class="title">Your music</div>
<div class="content">
<ul>
<li><a href="">Playlists</a></li>
<li><a href="./stations.html" class="active">Stations</a></li>
<li><a href="">History</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="mainwrap" class="col-md-10 fullheight">
<div id="header" class="small row" style="background-image: url('https://unsplash.imgix.net/45/ZLSw0SXxThSrkXRIiCdT_DSC_0345.jpg?q=75&fm=jpg&s=7a623ea0574c010d25ee095d0c0bcaa2');">
<div class="col-md-4 lefttext">
<div class="inner"><i class="ss-icon ss-wifi"></i> Stations</div>
</div>
</div>
<div id="overview" class="row">
<div class="pagetitle row">
<div class="col-md-3">
Stations <span class="sub">Recently played</span>
</div>
<div class="col-md-3 col-md-offset-6 alignright">
<div class="button createnew">
<span class="text">Create new</span>
<i class="ss-icon ss-wifi"></i>
</div>
</div>
</div>
<div class="pagecontent row">
<div id="albumview">
<div class="row">
<div class="col-md-2 single-album">
<div class="albumart">
<img src="http://www.smashingmagazine.com/images/music-cd-covers/64.jpg"/>
</div>
<div class="albuminfo">
<span class="name">Danger Doom - The ouse and the Mask</span>
</div>
</div>
<div class="col-md-2 single-album">
<div class="albumart">
<img src="http://www.smashingmagazine.com/images/music-cd-covers/michael_jackson_dangerous-f.jpg"/>
</div>
<div class="albuminfo">
<span class="name">Michael Jackson - Dangerous</span>
</div>
</div>
<div class="col-md-2 single-album">
<div class="albumart">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQTEhUUExQUFBUVFxYVFhcXFxcXFxcXFBUXFxgUFhcYHCggGBolHBcYITEhJSkrLi4uFx8zODMsNygtLisBCgoKBQUFDgUFDisZExkrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrK//AABEIAMYA/gMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAEAgMFBgcBAAj/xABCEAACAQIEAwYDBgUDAgUFAAABAgMAEQQSITEFQVEGEyJhcYEykaEHFCNCsfBSYoLB0XKS4TPxJEOistIVNERTc//EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwDU5WoaSnpEpt0oBJBTD0VIlDOlAzSTYUoimJjQdlcdKY7ym5TTJNAQzDpSC48qZJpovQFZhXg4oQuaUpoCs1KBocGnUNA7pXb0i9doFginLUyopwGg7YV4Wrtq4FoO2pDCnRSWFAkWNdy1We1HayHB3U/iTWBEY0tfYu35R9fKqHjvtBxsh8DrEOQRFPzLg3oNkArxWsIk7S4xjc4iYn/VYf7RoNulSHDu3eNhtmcSrvaQXv5ZhqKDZsteyiqv2X7bRYuyN+FMdAhN1b/Q3M+R1q0MpoE6V4kUkLXbUHNKbdRTtqS4oLfItDSUU5oWWgGeh5KIehpKBh6YlNPSUJIaBmSmb049JNA01NGnWakNQcvXQabtSlFA8DXQ9JAryigfU08gppGGvlYHyJ5HpTwoFZa8orl66tA7evVxTXaD16r3a/tCcMgSMZppLheYQDeRh+nU+9TePxawxPK/wopY+wvzrLnxjzMZH0eTU88g/LGL8lGnrc86CLxHBi4vmzOxuzMbkk73NTXDOzyWtlzWHS9Ew4VrbA8/3pUvwbDlmAGx3tv8+VBB4js8hGbJlvtf+9RGP4MuU/lPL26davnGsK6nXbYDUD1ve3/aqnxMnWNgbr1oKOy2Pofe45itl7AdpTi4CshvPFYObWzKb5ZPU2sfMedZZjMDuw5an36Uf9n2OMOPiHKTNE3owuP/AFKtBtF6S0lNu1NsaB0SV5jTd6S769KC7SULLRkgoLFOFBJ2FAOxodzVD7V9tHjfu0OVgfEhzIwTLcODa7A7XGle7OdqHdRnlVX5JIy5ZBf/AMtjqCNrHXy50FzloN6KgmDrmHoQdwRyNMyUAr001PutIyUDGWuMKfZKQ9AzSxSDXBQOPMFUsdgCT6DWkY7EiLDGZrZkUsRyOhOX+1R3aGUiBgPieyKNvEdfoAT7VCcZnmkyQMjKjlQ18tjazEaE0B/CeNZcKVY3lnN1HNpJGsdOmvoBargulVLA8OhGLV0UBhmsMzEKMhU5VJsNxVnJoHCaWDQ4NOA0BANKBpoU8p50FW+0x7YIg7NJED0sGza/7azvD8UdyFijzW5nTepr7Q+064hhhotUVszt1Kg6DyFDdlOyuKnKuuWPDsubO1iCLkBQOZJHMWsb67UFg4PG5t3i5CQbc1uPTnS8fwl/FmnKDonh0HnekxSPDJEhJZSfEpB0yHxML65SCLbi97E6Ux2sdmIyCQq1w4Cm4BItlI66jyvQR8mNiYZExMj20Iz5Rc7Wv8Q0POuQwOxUv44xdb2sUsNFJv4gbjbSp3g2FwuSV4MOneSKVKsWl0NrqAAMuoGnlpUbgz93Vke4JtlUsSBqDqDryoIDjhGQnYg5beVunyqI4Af/ABmG/wD7Rba/nFTPGnBJOni1oP7kiRI8bOcQWGt7CNdgwtrmJNqDZWNJobhDscPEXOZ8ihz1dRZj8waJBoEtScldbevR70F5kNQPG5ZcyLCEJvc575diQNOemnrU7JWa9qeLSfeJEXEdwAVY/D4gmYFRcbnwigN7ScDXiUapLG2GmjJCP4WIJG4ZT4k6rpqPK9RPCOxUZgkws6MzMSWlYKG8IAXujr4b3N99dRyqY4Z2mgjW+IdYStlswYEAgZS24F/lzvrUF9qPaeMIn3TFATowv3bAnKQGFyNLaD1oLBwbhn3VUiEhksMpzEFralb26agHmLVIyLWC9leOth8Yk7sxBJEp3JVtyfRrNb+Wto412hiw8mSQNZgHRl1BVhf/ADQFkVwih14hEQGDgBgCCbi4JA0J8yB7inUxMZ2kQ+jL8t6BDimmSimtypp1oByldVK8ymoqTirLiu6y+FIw7knTxFrC1tfh+tAH2gxI+8QRnkGfYn9PJW+ZoLunmkjKho4lzsZWAC5iLKBmI32vY0Lx/iohxqTsrFUwwbQa2keREPoc4N6f4PiziYsVNHHIyHuzHChYMzwutzZdNiDufgNAXwPDtDJLLM4y2VUZmUDUktrZRfwrp5GpmPjuHY2E0d+V2Av6X3qpjDvNhcUiw4iN7rMY2UgF7Sjw2Fm17tj0vvvVc4PKIMQjYmPKNLZ1OUaWJIIvbXfbpe1BrmenI3qIweJWRiIFJjsCpVSASdTkH8O2uxvUiIXS2dWW+16AtWqpfaL2lMEXdRmzybnmF52qzd5YVi3bLHd7ipDfRTlHtQB8HGaZRvfONepRt6uvCBIpBDlUWw05a20GmpqndnSO/BOygn9B/ep3ikjSJGIza7szakXsAOXr9aDQOE4USySOxsVAUZjrYDmfM3PvQnF2yobTRlibZAcxBvpe21QfZvgz+L8eQIbeHdvQOdvlV1w/ZTBxZXWCNWFjmJJN+up1N9daADgEaSyZZkCTIbNcC/kwa12U8jTXafBrna4F76EbH/FS/aLD5Y/vCAmWLXT8y38SH21HQ2871viOM7xhfmAfUHUGgqHEYbG3vUjw+OHuTsZZQyBb6k5B3Z8j3m1t7mmuNgbjapXsHw2SVkfMvcwSElTcsXy3Wy2sN978rUF+w2FCKFAAsNlFh52HIXpTJT5FNOtAOVpNtaW5pljc2oL64rGe32HzPKfNv1rZ3NUnj/Zszsculyc3ncn+x+lBg/EcOyZSMw0vcX62GvtUety2tzc6k87+dbVxXsfAmHY4h1GQHVBqL62t61lOKWFUcLctmGQnQ5QwuSB5UA2LwfdMwJDLpqNjtsa0XFhpsBgJTG8iiDu5Ci3ZTESoYn2qp43GYeXBxxoCcQDdrJayga3c/Few09TWidiFl+4YdFK90YnMubWwdnINunU9KCt8MmwyhSzTEBiUDG6g6E5V2F7C/Wm8SeHyEszOGJLEgjUkkn3p6XsLHI5yYnMByRXbbcDz8rk0LiuA8Ngfu5pMQ0mmVFjILZth4iQt/O1ADjVwKjwTzBvI1Dvi0B/68zD/AFEf3q/x9iEA/wDt4wddXmY26aRot/S/vT0HZDLucOB0ELt9ZJWv8qDM5eIdJJT/AFt/mm4sY7HwmQnydiavGD4GJcZPE7GPuMpjMUcKBgbMSwyEFhddfOoXt1hGw0keWWV+8DMS5XdSBoFUDnQJwHAsdiNVD22vJKFGnXMdflViwnYTG5fHjViG2VJZG0OpFgVHtWdvxGU/E7EdL2H0pzBCIq7SGVnCnIqbXA0LtuFHlQa7wj7Mwq/i4zEuhFskbGJCD1Fzca7UiL7LI1k/68xh08BCG63vkvby3sKvnDsSskUckVmjdFZCNRltp6EbW8qezHpQJwGEjhQRxIqIosAP79T5mqt9pfC5cThh3D5XifvLZ8gZbEMC9wBa+bX+GrZe+lNtEbeG1/PY+tqD55GCxOwxMRPRcarH5K5pB4NLfxyRjrdnY+9lOum29a3xjs2sqOsSiCW2gv8Ahk9DoSoPUbdKyPj/AAjG4Jgs/eIGJylZCUa2+Ug/Q2NB5eEEC/foNvhjxJOvmsX0NF4bBzGTu0kDPrYsr2uDawLW9tNfOoGPHS3F5ZDy1dvbnROAcvNCgBKmRAQOYLgG/teg0/sPLFLHIZXyTR5w0YGUI0f8LHcEWPvVglOIZAYyh6XBOlvzMNAfn61n/Gc8GLlTNcYiKGR7aEl1IYX5AlTfrU5wviktgo0vpp05WNBYcPNI34EpQ+Fi5XQGx0tc32sf6aB4phELAKR4UUfS1eZLC8niJG22/wC96hfvmaWRgfCpPncgaC/kKCB4y3iC9Dr7Vb/swB7vEHl3iAeoTX9RVUx0JAznc1dfsz1wZIFrzPfz0UX+QA9qC0mm3anGFMPQDuaYza6dKekoWSPXe1BoT1EcTJ8QBIuLi3l+x86lnqN4rCWQlfiXUeY5j5fpQY52qXEPnYMxAB0UkaC97/PWs8ljJYjcgX5natY40QWJTY62PXnVX4wiI6LG2YmNw1kyhWkOq5vz+Eb8r0FJSVlN1JB5EaHXSt37Mdn0OGhMlzaNUybLpve2p1vztVB4H2Pjd4yrtIdC4yZVVgRZcxN31vfQVs2HiCIqDZQB8hQA4sx4eJ5CuVEUsQoGwHIdazjjeE+94sTwIxIjhxGVgBaMMA39QKHb51qk0QZSrAMrAgg7EHQgjpUDJPDEyZ45VzIICQmWNFyk+IjyJNxpcHpQSUq31HrQjiuQK/iYMH07tFJIBKm2foQSQb22FRmIxDpPJFMZXCBCGiCIoLMAVNzcizA3O1AIOG2xzz5jrGiFbeGz5yWJ63hUf1VRvtSnJxMackjv/vY//EURxGfHiQIskpeQsMjskZAEhMSZyQGdl8Vhb4h1qP4y7qWVwjyplDySAswGTxxWKnQSZrHTQGgguD4VZHCkE35Dp101q6YTh0MbAWUaam2vvUIO0IiQKqwu4HxDDorAmx0kDm/LXLeoSTiUrm7OW8ydR77/ADoNm7N4w4YhYh+Ex1hG2v5ox+VvoeeuovmGnSRcyG458iD0Ybg185Yfi8htZrshtYH4tbBkO/TT09KtvCO0uIiZSWKm35tbjo3Wg2FlFcJqE4L2rhnAViI3OwJ8LH+Unn5HX1qcZKAZkF7kVC/aDhVk4Zig35YzID0aOzj6i3uaniKC45hu8wmIj/jhlUb7lDbbXeg+Yr1OcGwckeKAYZTGQ7X0AtqpueV7e16EiWMW/HPL4Iif/eVpziMiB2UvNiCrEeM5UuNL5bsT6eGgtXHeLQYjFNJEboqpEpPNYwRntyBJb21ozhvGUjbYG30rOYr3utyRytr8qI++sbBjlGl9Pqba/Sgv3EO0Jk0Fs76W6Adeg/zSBiUVQo2GvQs17lj11qO4XDw9f+pxAjqEw05J/qYa/IVp/ZPgXDZkEsBGJHVybgjSzRkAj+oUFBg4TPjnVIUbKTZpCDkQc2Y7E/yjXT3rSuGcPjw0YhivlS63O5PNj5nf3qfnnEa2UAAbAaD2Aqr4aZg7FzpI5IH8JtZR72+dBIMaZanJDTBegSwoWXen5GoVjrQaE4od6Jc0O9BUuP8AZ3MxkhAJN7odiTzXoaow7KYppb92ykHQkab7E7WrYiKbY0EJwbg/coL2Lc7CwHkAKkStPtTbCgYYUJjcPmX4VfnlY2BI2ueWtHMKakNBR4+H42COOGN2GSXKrRsuQxMpsCjDTKdLX2A1J1qMxXHonxjx4zvInQOHaKSQKGRekZAZTa4J11ANWntFlkTKzuguDdGyk25E9KzjiuDiMiBe8kU3D5pWOg+G2t9+Q0oC+0HGg+JPcwiR4Cqo8hTJkRVy3zuMrqSwzA65R51A8SkeaUSyx4NZCLyF548sjE3EhRJLqbW20Nr6XqX7QcEwsWFadoyZCMkYzNbOwNmNzrYAn2qgk0FlxEmHt+IMCR/DhhiM5Pm/w2HrSsR2bVihheDK4zrZ5G8IJGY51B3BFrcjVXNTuJxUkhjlgD2ihhjcqrWjKgizHod789aC2cP7ESYVvvU/d5b3REsBdmzA+QFtAOlOcQnR3F8q9Bb6VA/ecRJGc0kzXtp4iqksrXJJOt102vdqi8Q8lruxtrbfcaW9aCzlyPygKL66k38xyqd4H2wlgIW5miHxRsQHUdYnP/sbTaxWqPwzidgAxP63qZV0tcbnbb0uL0GxcK4tBiReFwxHxKdHX/Uh1HrseV6IxWaxyZQ1iBmF1vbTMARcX3rEXDC0ilkdNVdSVdfMMP02POrXwP7RiMsWMXMNB36WFrmwMsY09WX/AGigzTG4QIsxZBGwdlyckOY3QeQ29q5wzs3i5PFBh5XUjRwAF+bWFXP7VezMhxEc0PijnF2I1VZFA8VxuGW1vNT1rQeyGQ4HDZPh7pNOebKLg+YN7+lBmvCPsoxUseeaRIGJuEILt6sQbKfLX2prj32a4iBM2dpQP4bsB5kbgVuKV1qD5VxGHZHMbqVdTlZSCCD6GtS+xrhxQTYo8/wY+hsQZH89Qqg+TVce3XZ7D4tAJRaQbSKFzhb6rdgdDXeF4dIo0ijGVEAVR0A/U9TzoJKVi2poTF4VSniF7nX06U9NOFFzt6E+1hrQuKxqupVcxPmrLp/UBQNR3PwnwjSxufqTeuyC1diWwp00ArGhpjrRssV6DlitQaE5pljRDrTLCgZNItTrU2aBBFIalk0kmgbND4oWFFUPitqDMu3XE8lwDrVM4GzSSqL8xUp9pMn41qhuE477snfWuxYrEDzKi7Of5VuB5k+RoJv7T8UB3GHB1UGR/IkZVHrbN8xVDoriONeaQySG7Hc/X9SaGNBytN+xXhEc/wB7MqCRAIRlbYsTIb+1vrWZVs32Bkdzi+veR39Mht+hoNBwWDjjQxxoqJr4QLDWqtxHsOkhnACojn8MbWIUa7aC96uEr5bm1/IetERkMARsaD5z41wWXCyFHXbl/cHnpTGGxwOn61sX2ocP7zC2VM0mZQrDdRe7H0sLe9Y3xXhTxWLizdRQTkM91ykUFjISD0028qY4dxL+IC4q48D4L99lAVlVQuYkjNzHhtcf8e4oILszx98M2SVmOGNi6G7KqqbhlX8puOX1rY+FJGUTuSpiygoVN1K8iCN6ybt/2IxGHjMqkPEvx5d1Fx4iLaje/Spz7IeJvFhgJT+C0jiPTVObNfmpctp5Gg1ALQ+NnEaFj6AdSeVF5r2tr096qvFsd3j6HwLcL59W96BnvmdrtrfnTwnynbw7E879QOYoQSgCm2xBBCj4zz5IP4j5+XnQHT4m+liTyA/UnlSIYbak3JrkcYUamw5k7k0RhsrHS9AsCkXpyRLaU2EudKDpahJ7301o5Yep9q9PIFsFAoLk4odxRElDtQNkUhqcNNkUDZFJtS2pmQ0HmahcZIADQ2Ox4Tc1U+Ndq1VTY0FG7f3fEhVtmYhR6sbC9RXGWjZwin8PDoIx/Mbm7EfzG7H1pcHEFfFiWYtkDXbKLmxNrAdbE1Y+3SRfcYpYBlWWVyrAWzCQsAlrX+CIX9Lc6DOzvRD4CQRLKylY3NkJ0zW3KjmPOrP2T7HNLKhxEbxwDxuzKyBlXXIpI1voNORJpf2lY0yyrZQkSDLGoFgB6cttulBTK0v7C+JhMVNAf/PjDL5tCSbf7XY/01mlH8B4o2FxEWIXeJw1uq7MvupI96D6kdbEGmooTGTb4Sb+l6JikV0V1IKsoZTyIYXB+VMI+ZsoN1G5/sKADi2Gd1JGvQeX+ayrjqd9JkA0U3N+vStsIqJ4pwKKbUrZ/wCIaH360GB8VGSeyqDYa622639Ku32S8fiE80JOUvbuQfzBbltdrkEG3RD0qt9ruGHD4uQMdBYhttCt7+v+Kq0qZ5FMd/EQVt8WZjsLfmzUH0nxEL3MgkOZWDLb+VrjL62NVjBYVFRUUBUUBUXoBtvvQvCMLJDAFllklkNmdnYvY2tlW50UeXnR6CgJTFyKjRqfiBAvy62PK4vUR3pFwRYjepJuRHKnRh0aRWceEHxeY5E+Q5+VBCcQkeJFYRsTIbIxHhHO5Ppcgc7eVOYRREmZzruSffU1bu0MJeIKq5jnXKB11/teol+yHegCeQ5d2RPzW2Bc7D0HvQQeCnbEN3jXWIfAP4tbZz9bCpjE8QSFLsQo0AHMk6AWGpJ6ConieOjwoYsfChKIBu1jYWHU03weAysJ5VJf8gJssd/4Ftcmx1Y7+Q0oJFMbIfEY3A/hy3c+pJCr6an0rp4y97DDYg+ndWPv3lFMfK1dDeooAv8A6xMf/wAVl85JYFH0kJ+lR+I4riSfBFhm9MSpPv4Km58OjizKj/6lB/UVEcT4o2HIAi0O2XTb9KDU3NNMKfamXNA0RSCtOM1MvKKBLVG8SmyqbaU5i8eFG9UvtJx4AHX0oIvtZx4KLA3PrWb47GMx1JNE8TxDSMSb1FtQdQeH1YfQH/Iq5cC43NE0UaSFYiTppYHMQSpYEre3K1VTDp4VPSSx9LKf7GpPHTBShAtYA28zqfqTQapGhdtWZ2PVifneqX9qaJGI0FsxJNudhz9KsPB+NR4fDd/Ic0jCyoCCSeUa8r31J/xWZdpeIPPO0khu53tsLE2Rf5Rt9edBDGvV01yg0HsD9pDYRVw+JBlww0UjWSIHkP408txy6Vt/CsbDPEssDK8b6hl28wRyI2IOor5Pqa7M9p8TgXz4eSwPxI3ijf8A1LffzFj50H1Aa4RVS7D/AGgwY/8ADYCHEf8A6ybh7c4mPxf6dx5jWrVi5wgufagpnbfg0Mxa63dkyMfXYj+YdaovYPso8TtNMuqMyxAjTTQze+w9/KtKxAzk315n3pspagBaAk6073NPGklqBIXS3WnWIsAKbYUiM0Enw3ihU92+oA8J55f72266c6f4xx2KKNmzhmscqrqb8iRyHrUI+pU8wfof8H9TXOJzKkZzC55Dnflagq+Gw3fziR1sI1BVmNwXca5V6jTXzPTSzJoPiHsAKZibwjvFBYAAm2t7daIFtCNQdvI9DQLBvoa7e37/AH+zTQrra0Dc+ItVe4xirsDmI0ty/uR+vL1qYxaaH9/vl9Ko/HcI7PcMw8gdKD6FkNByy2r2JxNqr/EeIWoD8VjwKg8fxsDnUXicQ7nQGmBwV3+ImgA4lxdnNlN6j04LJMQWq24Hs8AdRVhw2ACjagzrG9mUjjLG1ZtjVGc22vWs/aXxHu4sg3bSsiagfwh0K+YYe24/T5U7i5dQd/WgwbajcU4zhrXuOttflQHJj5JLsbnKLA28KA8lHInrUPO1yasOP4rGYRFBH3ajcsbsx6mwtf3qvFKBq1cp2SMi4III0IOhHkRyrzxWVT/Ff6G3+aBqvUsp9aTloOxyFSCCQQQQQbEEaggjYg86+iuy2MkxGBw0ssiyO0YLOBa5udCP4hax6kHavnQip7sj2olwEhZAHRtHjYmxF91P5W86DecltKBmYg2HiDbfy+Z8qi8R2oTE4JpcKHY+ESKv/WjDEBrINzbpuL2obhvGVjZvDKQ6hsmVhlCCzvaSxQeRA1Ol9KCfKadaaFC4PFwPaRZU8QzKha1rjcg2N/O2nzp+HEhgbqya6ZhbMOq9RQLZ6QHFJvekk0HpGoGJg8l21CjT1Ol/l+tGuNKEgjsWNA/jMRZgQLqRYr58rHkaDw2ICSBL/hzA92ejrqV8jpf+k0621BcRS0IbYpJHID0Kuub5xlh8qCTE3Uag2Pkf8aj2pbSWpeLgvqPzDKf7H5/rQTjMLc/3rQRnGsSxGmhvb5/v9OlVDG4qcNqt+lWLHYx4zYjMOp/f79tIzG8YDHVQLdKDXMRiCdKGTh+c3NFxYc6VKYeKwoI+HhoHKiBhgKOIpiRqAfIBSZZgAaTLMBVa7Q8XCRtrragzr7Qcd3uIKjZdPeqrko/GSF3LHmaHy0A5SkkUQVpPd0DAWjODQhsRCDt3iX9AwP8AamMtH8AS+Jh5eMf3oI7EBczEsWJJOgte53uf8VzEGyR6CxDEaXI8bDc76inXiQE3Ytv8It9T/inZkB7lQBqLDe9mkffkTe/KgHxEBsv+kfpQxSp/Fw6moicWoAyK4aWaVFHegL4TiZInBidkY6EqdwdwRzHkas/BMfEZcmIV87jIZDIzrKdbZlcHI2thl25WqD4VhfFfkL0SIM4YEXB1v06UFowOMmkMQmjkijDHMrROqqqICqqTHd3zA2KuWNtrHSwrO0v4ecgC12kRkYX28LgZr662todbi1UHhPalmi+64qR1CsDHNbO0bLpZwfjSxIN+R9xbOF4pYQQrfeGlIYuiqqkAWAULso9W39gFiK5NL3t+/ammk/f73pmGbPbQg/v96fKiGi0/f/Y+9B6KQbU1cbedNK1n6U46eK9A5l0NBYxMyFeRsP8AcwUfrUhJ8Ndw+G0BPMg+y63+dqApkutv3cbGorFjKxB6XHv/AM/rRUGOLnwr4Nrm+vnqKF4sL2b+FivzUNb9aCF4vY+tvkf2KpvEMOc1l3+VWTiuJAJ+fsKh0a4zHdj8tNB++tBvjgDWm/vNer1ApsTQGNxtuter1BXuJ8VIBtfSqDx3HtJvXq9QQGWuGOu16gR3dcK16vUCMlHcDT/xEP8ArUfPSvV6gZk4YdSSALnbU7+1E4CFWdN/w4/LUlmsbcvi+ler1BZez3Z8Yp2zNaOOxYD4mveyjoNDc/8AcQPbTDos+VFCqosAOQFer1BWjFrUjg8GCbdK7XqCewcACtb0+lPdwAmler1BT+KYfLK1uevz3+tPcG4vLhmJiYDNbMCAQ1uter1Bf+C9qRPoyENzta2nP/g/OrNDLy8r+x/fnXa9QC4yxZWGmtSLxggHrXq9QIjizMBQ3aXElIwq7ysIgdsoNyx9bA16vUCcM3d5UAAAsNP+AKjO0WIZcOSNzOB6eFr/AKV6vUFExU5PufoLG3zokKQo2r1eoP/Z"/>
</div>
<div class="albuminfo">
<span class="name">Jazz</span>
</div>
</div>
<div class="col-md-2 single-album">
<div class="albumart">
<img src="http://userserve-ak.last.fm/serve/500/84469125/Emil+Landman+575196_241061189333498_1021870.jpg"/>
</div>
<div class="albuminfo">
<span class="name">Emil Landman</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="player" class="container-fluid">
<div class="bgimage">
<img src="http://www.itsallthewaylive.net/wp-content/uploads/2013/12/bonobo.jpg">
</div>
<div class="row">
<div class="col-md-2 controlwrap">
<div class="row">
<div class="iconwrap">
<div class="col-md-3">
<i class="ss-icon ss-list"></i>
</div>
<div class="col-md-3">
<i class="ss-icon ss-navigateleft"></i>
</div>
<div class="col-md-3">
<i class="ss-icon ss-play"></i>
</div>
<div class="col-md-3">
<i class="ss-icon ss-navigateright"></i>
</div>
</div>
</div>
</div>
<div class="col-md-10" id="seekbar">
<div class="trackname">
<span class="title">Kong/Ketto Live</span> <span class="delimiter">-</span> <span class="artist">Bonobo</span>
</div>
<div class="barwrap">
<div class="time" id="passed">1:12</div>
<div class="outerbar"><div class="innerbar"></div></div>
<div class="time" id="total">6:41</div>
</div>
</div>
<div class="col-md-0 controlwrap">
</div>
</div>
</div>
</div>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
.decl Instance1(d:number)
.output Instance1()
.decl Instance2(d:number)
.output Instance2()
.decl Instance3(d:number)
.output Instance3()
.decl Instance4(d:number)
.output Instance4()
.decl In(s1: number, s2:number, s3:number, d1:number, d2:number, d3:number, d:number)
.input In()
.decl Tbl(s1: number, s2:number, s3:number, in:number)
.input Tbl()
Instance1(d) :- In(s1, _, s3, d1, d2, d3, d),
Tbl(s1, _, s3, 1), Tbl(d1, d2, d3, 0),
s1 = 5, s3 = 2, d1 = 1, d2 = 3, d3 = 5.
Instance2(d) :- In(s1, _, _, d1, d2, d3, d),
Tbl(s1, _, _, 1), Tbl(d1, d2, d3, 0),
s1 = 4, d1 = 2, d2 = 4, d3 = 4.
Instance3(d) :- In(_, s2, s3, d1, d2, d3, d),
Tbl(_, s2, s3, 1), Tbl(d1, d2, d3, 0),
s2 = 4, s3 = 2, d1 = 3, d2 = 5, d3 = 3.
Instance3(d) :- In(_, s2, s3, d1, _, d3, d),
Tbl(_, s2, s3, 1), Tbl(d1, _, d3, 0),
s2 = 4, s3 = 2, d1 = 4, d3 = 3.
Instance4(d) :- In(s1, _, _, d1, _, _, d),
Tbl(s1, _, _, 1), Tbl(d1, d2, _, 0),
s1 = 0, d1 = 4, d2 = 4.
In(s1, s2, s3, 4, d2, d3, d) :- In(s1, s2, s3, d1, d2, d3, d),
Tbl(s1, s2, s3, 1), Tbl(d1, _, _, 0),
d1 = 0.
|
{
"pile_set_name": "Github"
}
|
/**
* @fileOverview Pivot Grid export to Excel
* @author Najmeddine Nouri <[email protected]>
*/
'use strict';
/* global module, require */
/*jshint eqnull: true*/
var utils = require('./orb.utils');
var uiheaders = require('./orb.ui.header');
var themeManager = require('./orb.themes');
var uriHeader = 'data:application/vnd.ms-excel;base64,';
var docHeader = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">' +
'<head>' +
'<meta http-equiv=Content-Type content="text/html; charset=UTF-8">' +
'<!--[if gte mso 9]><xml>' +
' <x:ExcelWorkbook>' +
' <x:ExcelWorksheets>' +
' <x:ExcelWorksheet>' +
' <x:Name>###sheetname###</x:Name>' +
' <x:WorksheetOptions>' +
' <x:ProtectContents>False</x:ProtectContents>' +
' <x:ProtectObjects>False</x:ProtectObjects>' +
' <x:ProtectScenarios>False</x:ProtectScenarios>' +
' </x:WorksheetOptions>' +
' </x:ExcelWorksheet>' +
' </x:ExcelWorksheets>' +
' <x:ProtectStructure>False</x:ProtectStructure>' +
' <x:ProtectWindows>False</x:ProtectWindows>' +
' </x:ExcelWorkbook>' +
'</xml><![endif]-->' +
'</head>' +
'<body>';
var docFooter = '</body></html>';
/**
* Creates a new instance of rows ui properties.
* @class
* @memberOf orb.ui
* @param {orb.axe} rowsAxe - axe containing all rows dimensions.
*/
module.exports = function(pgridwidget) {
var config = pgridwidget.pgrid.config;
var currTheme = themeManager.current();
currTheme = currTheme === 'bootstrap' ? 'white' : currTheme;
var override = currTheme === 'white';
var buttonTextColor = override ? 'black' : 'white';
var themeColor = themeManager.themes[currTheme];
var themeFadeout = themeManager.utils.fadeoutColor(themeColor, 0.1);
var buttonStyle = 'style="font-weight: bold; color: ' + buttonTextColor + '; background-color: ' + themeColor + ';" bgcolor="' + themeColor + '"';
var headerStyle = 'style="background-color: ' + themeFadeout + ';" bgcolor="' + themeFadeout + '"';
function createButtonCell(caption) {
return '<td ' + buttonStyle + '><font color="' + buttonTextColor + '">' + caption + '</font></td>';
}
function createButtons(buttons, cellsCountBefore, cellsCountAfter, prefix) {
var i;
var str = prefix || '<tr>';
for(i = 0; i < cellsCountBefore; i++) {
str += '<td></td>';
}
str += buttons.reduce(function(tr, field) {
return (tr += createButtonCell(field.caption));
}, '');
for(i = 0; i < cellsCountAfter; i++) {
str += '<td></td>';
}
return str + '</tr>';
}
var cellsHorizontalCount = Math.max(config.dataFields.length + 1, pgridwidget.layout.pivotTable.width);
var dataFields = createButtons(config.dataFields,
0,
cellsHorizontalCount - config.dataFields.length,
'<tr><td><font color="#ccc">Data</font></td>'
);
var sep = '<tr><td style="height: 22px;" colspan="' + cellsHorizontalCount + '"></td></tr>';
var columnFields = createButtons(config.columnFields,
pgridwidget.layout.rowHeaders.width,
cellsHorizontalCount - (pgridwidget.layout.rowHeaders.width + config.columnFields.length)
);
var columnHeaders = (function() {
var str = '';
var j;
for(var i = 0; i < pgridwidget.columns.headers.length; i++) {
var currRow = pgridwidget.columns.headers[i];
var rowStr = '<tr>';
if(i < pgridwidget.columns.headers.length - 1) {
for(j = 0; j < pgridwidget.layout.rowHeaders.width; j++) {
rowStr += '<td></td>';
}
} else {
rowStr += config.rowFields.reduce(function(tr, field) {
return (tr += createButtonCell(field.caption));
}, '');
}
rowStr += currRow.reduce(function(tr, header) {
var value = header.type === uiheaders.HeaderType.DATA_HEADER ? header.value.caption : header.value;
return (tr += '<td ' + headerStyle + ' colspan="' + header.hspan(true) + '" rowspan="' + header.vspan(true) + '">' + value + '</td>');
}, '');
str += rowStr + '</tr>';
}
return str;
}());
var rowHeadersAndDataCells = (function() {
var str = '';
var j;
for(var i = 0; i < pgridwidget.rows.headers.length; i++) {
var currRow = pgridwidget.rows.headers[i];
var rowStr = '<tr>';
rowStr += currRow.reduce(function(tr, header) {
return (tr += '<td ' + headerStyle + ' colspan="' + header.hspan(true) + '" rowspan="' + header.vspan(true) + '">' + header.value + '</td>');
}, '');
var dataRow = pgridwidget.dataRows[i];
rowStr += dataRow.reduce(function(tr, dataCell, index) {
var formatFunc = config.dataFields[index = index % config.dataFields.length].formatFunc;
var value = dataCell.value == null ? '' : formatFunc ? formatFunc()(dataCell.value) : dataCell.value;
return (tr += '<td>' + value + '</td>');
}, '');
str += rowStr + '</tr>';
}
return str;
}());
function toBase64(str) {
return utils.btoa(unescape(encodeURIComponent(str)));
}
return uriHeader +
toBase64(docHeader +
'<table>' + dataFields + sep + columnFields + columnHeaders + rowHeadersAndDataCells + '</table>' +
docFooter);
};
|
{
"pile_set_name": "Github"
}
|
CORE
StaticCharMethods02
--max-nondet-string-length 1000
^EXIT=10$
^SIGNAL=0$
^VERIFICATION FAILED$
^\[.*assertion\.1\] .* line 6 .* FAILURE$
--
^warning: ignoring
|
{
"pile_set_name": "Github"
}
|
---
Description: The Win32\_UserAccount class exposes the following methods.
ms.assetid: E853655D-A486-4485-9C7E-849585345C62
ms.tgt_platform: multiple
title: Win32_UserAccount Methods
ms.topic: reference
ms.date: 05/31/2018
---
# Win32\_UserAccount Methods
The [**Win32\_UserAccount**](win32-useraccount.md) class exposes the following methods.
## In this section
- [**Rename method**](rename-method-in-class-win32-useraccount.md)
|
{
"pile_set_name": "Github"
}
|
#
# This file is part of Dragonfly.
# (c) Copyright 2007, 2008 by Christo Butcher
# Licensed under the LGPL.
#
# Dragonfly is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Dragonfly is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with Dragonfly. If not, see
# <http://www.gnu.org/licenses/>.
#
"""
This file implements base classes for structured number grammar
elements.
"""
from ..loader import language
from ...grammar.elements import Alternative, Repetition, Compound, RuleWrap
#---------------------------------------------------------------------------
# Base class for digit-series element classes.
class Digits(Repetition):
_content = None
_digit_name = "_digit"
def __init__(self, name=None, min=1, max=12, as_int=False, default=None):
if not self._content:
self.__class__._content = language.DigitsContent
self._digits = self._content.digits
self._as_int = as_int
if self._as_int: self._base = len(self._digits) - 1
pairs = []
for value, word in enumerate(self._digits):
if isinstance(word, str):
pairs.append((word, value))
elif isinstance(word, (tuple, list)):
pairs.extend([(w, value) for w in word])
else:
raise ValueError("Invalid type in digit list: %r" % word)
alternatives = [Compound(w, value=v, name=self._digit_name)
for w, v in pairs]
child = Alternative(alternatives)
Repetition.__init__(self, child, min, max, name=name,
default=default)
#-----------------------------------------------------------------------
# Methods for runtime introspection.
def __str__(self):
arguments = "%d-%d" % (self._min, self._max)
if self.name is not None:
arguments = "'%s', %s" % (self.name, arguments)
return "%s(%s)" % (self.__class__.__name__, arguments)
#-----------------------------------------------------------------------
# Methods for runtime recognition processing.
def value(self, node):
children = node.get_children_by_name(self._digit_name)
digits = [c.value() for c in children]
if self._as_int:
value = 0
for d in digits:
value *= self._base
value += d
return d
else:
return digits
#---------------------------------------------------------------------------
# Digits reference class.
class DigitsRef(RuleWrap):
def __init__(self, name=None, min=1, max=12, as_int=True, default=None):
element = Digits(name=None, min=min, max=max, as_int=as_int)
RuleWrap.__init__(self, name, element, default=default)
|
{
"pile_set_name": "Github"
}
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.drill.exec.exception;
import org.apache.drill.common.exceptions.DrillException;
public class SetupException extends DrillException{
static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(SetupException.class);
public SetupException() {
super();
}
public SetupException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
public SetupException(String message, Throwable cause) {
super(message, cause);
}
public SetupException(String message) {
super(message);
}
public SetupException(Throwable cause) {
super(cause);
}
}
|
{
"pile_set_name": "Github"
}
|
/******************************************************************************
* kexec.h - Public portion
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
* Xen port written by:
* - Simon 'Horms' Horman <[email protected]>
* - Magnus Damm <[email protected]>
*/
#ifndef _XEN_PUBLIC_KEXEC_H
#define _XEN_PUBLIC_KEXEC_H
/* This file describes the Kexec / Kdump hypercall interface for Xen.
*
* Kexec under vanilla Linux allows a user to reboot the physical machine
* into a new user-specified kernel. The Xen port extends this idea
* to allow rebooting of the machine from dom0. When kexec for dom0
* is used to reboot, both the hypervisor and the domains get replaced
* with some other kernel. It is possible to kexec between vanilla
* Linux and Xen and back again. Xen to Xen works well too.
*
* The hypercall interface for kexec can be divided into three main
* types of hypercall operations:
*
* 1) Range information:
* This is used by the dom0 kernel to ask the hypervisor about various
* address information. This information is needed to allow kexec-tools
* to fill in the ELF headers for /proc/vmcore properly.
*
* 2) Load and unload of images:
* There are no big surprises here, the kexec binary from kexec-tools
* runs in userspace in dom0. The tool loads/unloads data into the
* dom0 kernel such as new kernel, initramfs and hypervisor. When
* loaded the dom0 kernel performs a load hypercall operation, and
* before releasing all page references the dom0 kernel calls unload.
*
* 3) Kexec operation:
* This is used to start a previously loaded kernel.
*/
#include "xen.h"
#if defined(__i386__) || defined(__x86_64__)
#define KEXEC_XEN_NO_PAGES 17
#endif
/*
* Prototype for this hypercall is:
* int kexec_op(int cmd, void *args)
* @cmd == KEXEC_CMD_...
* KEXEC operation to perform
* @args == Operation-specific extra arguments (NULL if none).
*/
/*
* Kexec supports two types of operation:
* - kexec into a regular kernel, very similar to a standard reboot
* - KEXEC_TYPE_DEFAULT is used to specify this type
* - kexec into a special "crash kernel", aka kexec-on-panic
* - KEXEC_TYPE_CRASH is used to specify this type
* - parts of our system may be broken at kexec-on-panic time
* - the code should be kept as simple and self-contained as possible
*/
#define KEXEC_TYPE_DEFAULT 0
#define KEXEC_TYPE_CRASH 1
/* The kexec implementation for Xen allows the user to load two
* types of kernels, KEXEC_TYPE_DEFAULT and KEXEC_TYPE_CRASH.
* All data needed for a kexec reboot is kept in one xen_kexec_image_t
* per "instance". The data mainly consists of machine address lists to pages
* together with destination addresses. The data in xen_kexec_image_t
* is passed to the "code page" which is one page of code that performs
* the final relocations before jumping to the new kernel.
*/
typedef struct xen_kexec_image {
#if defined(__i386__) || defined(__x86_64__)
unsigned long page_list[KEXEC_XEN_NO_PAGES];
#endif
unsigned long indirection_page;
unsigned long start_address;
} xen_kexec_image_t;
/*
* Perform kexec having previously loaded a kexec or kdump kernel
* as appropriate.
* type == KEXEC_TYPE_DEFAULT or KEXEC_TYPE_CRASH [in]
*
* Control is transferred to the image entry point with the host in
* the following state.
*
* - The image may be executed on any PCPU and all other PCPUs are
* stopped.
*
* - Local interrupts are disabled.
*
* - Register values are undefined.
*
* - The image segments have writeable 1:1 virtual to machine
* mappings. The location of any page tables is undefined and these
* page table frames are not be mapped.
*/
#define KEXEC_CMD_kexec 0
typedef struct xen_kexec_exec {
int type;
} xen_kexec_exec_t;
/*
* Load/Unload kernel image for kexec or kdump.
* type == KEXEC_TYPE_DEFAULT or KEXEC_TYPE_CRASH [in]
* image == relocation information for kexec (ignored for unload) [in]
*/
#define KEXEC_CMD_kexec_load_v1 1 /* obsolete since 0x00040400 */
#define KEXEC_CMD_kexec_unload_v1 2 /* obsolete since 0x00040400 */
typedef struct xen_kexec_load_v1 {
int type;
xen_kexec_image_t image;
} xen_kexec_load_v1_t;
#define KEXEC_RANGE_MA_CRASH 0 /* machine address and size of crash area */
#define KEXEC_RANGE_MA_XEN 1 /* machine address and size of Xen itself */
#define KEXEC_RANGE_MA_CPU 2 /* machine address and size of a CPU note */
#define KEXEC_RANGE_MA_XENHEAP 3 /* machine address and size of xenheap
* Note that although this is adjacent
* to Xen it exists in a separate EFI
* region on ia64, and thus needs to be
* inserted into iomem_machine separately */
#define KEXEC_RANGE_MA_BOOT_PARAM 4 /* Obsolete: machine address and size of
* the ia64_boot_param */
#define KEXEC_RANGE_MA_EFI_MEMMAP 5 /* machine address and size of
* of the EFI Memory Map */
#define KEXEC_RANGE_MA_VMCOREINFO 6 /* machine address and size of vmcoreinfo */
/*
* Find the address and size of certain memory areas
* range == KEXEC_RANGE_... [in]
* nr == physical CPU number (starting from 0) if KEXEC_RANGE_MA_CPU [in]
* size == number of bytes reserved in window [out]
* start == address of the first byte in the window [out]
*/
#define KEXEC_CMD_kexec_get_range 3
typedef struct xen_kexec_range {
int range;
int nr;
unsigned long size;
unsigned long start;
} xen_kexec_range_t;
#if __XEN_INTERFACE_VERSION__ >= 0x00040400
/*
* A contiguous chunk of a kexec image and it's destination machine
* address.
*/
typedef struct xen_kexec_segment {
union {
XEN_GUEST_HANDLE(const_void) h;
uint64_t _pad;
} buf;
uint64_t buf_size;
uint64_t dest_maddr;
uint64_t dest_size;
} xen_kexec_segment_t;
DEFINE_XEN_GUEST_HANDLE(xen_kexec_segment_t);
/*
* Load a kexec image into memory.
*
* For KEXEC_TYPE_DEFAULT images, the segments may be anywhere in RAM.
* The image is relocated prior to being executed.
*
* For KEXEC_TYPE_CRASH images, each segment of the image must reside
* in the memory region reserved for kexec (KEXEC_RANGE_MA_CRASH) and
* the entry point must be within the image. The caller is responsible
* for ensuring that multiple images do not overlap.
*
* All image segments will be loaded to their destination machine
* addresses prior to being executed. The trailing portion of any
* segments with a source buffer (from dest_maddr + buf_size to
* dest_maddr + dest_size) will be zeroed.
*
* Segments with no source buffer will be accessible to the image when
* it is executed.
*/
#define KEXEC_CMD_kexec_load 4
typedef struct xen_kexec_load {
uint8_t type; /* One of KEXEC_TYPE_* */
uint8_t _pad;
uint16_t arch; /* ELF machine type (EM_*). */
uint32_t nr_segments;
union {
XEN_GUEST_HANDLE(xen_kexec_segment_t) h;
uint64_t _pad;
} segments;
uint64_t entry_maddr; /* image entry point machine address. */
} xen_kexec_load_t;
DEFINE_XEN_GUEST_HANDLE(xen_kexec_load_t);
/*
* Unload a kexec image.
*
* Type must be one of KEXEC_TYPE_DEFAULT or KEXEC_TYPE_CRASH.
*/
#define KEXEC_CMD_kexec_unload 5
typedef struct xen_kexec_unload {
uint8_t type;
} xen_kexec_unload_t;
DEFINE_XEN_GUEST_HANDLE(xen_kexec_unload_t);
#else /* __XEN_INTERFACE_VERSION__ < 0x00040400 */
#define KEXEC_CMD_kexec_load KEXEC_CMD_kexec_load_v1
#define KEXEC_CMD_kexec_unload KEXEC_CMD_kexec_unload_v1
#define xen_kexec_load xen_kexec_load_v1
#define xen_kexec_load_t xen_kexec_load_v1_t
#endif
#endif /* _XEN_PUBLIC_KEXEC_H */
/*
* Local variables:
* mode: C
* c-file-style: "BSD"
* c-basic-offset: 4
* tab-width: 4
* indent-tabs-mode: nil
* End:
*/
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.7.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="yes" altdistance="0.025" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
<layer number="2" name="Route2" color="1" fill="3" visible="no" active="yes"/>
<layer number="3" name="Route3" color="4" fill="3" visible="no" active="yes"/>
<layer number="4" name="Route4" color="1" fill="4" visible="no" active="yes"/>
<layer number="5" name="Route5" color="4" fill="4" visible="no" active="yes"/>
<layer number="6" name="Route6" color="1" fill="8" visible="no" active="yes"/>
<layer number="7" name="Route7" color="4" fill="8" visible="no" active="yes"/>
<layer number="8" name="Route8" color="1" fill="2" visible="no" active="yes"/>
<layer number="9" name="Route9" color="4" fill="2" visible="no" active="yes"/>
<layer number="10" name="Route10" color="1" fill="7" visible="no" active="yes"/>
<layer number="11" name="Route11" color="4" fill="7" visible="no" active="yes"/>
<layer number="12" name="Route12" color="1" fill="5" visible="no" active="yes"/>
<layer number="13" name="Route13" color="4" fill="5" visible="no" active="yes"/>
<layer number="14" name="Route14" color="1" fill="6" visible="no" active="yes"/>
<layer number="15" name="Route15" color="4" fill="6" visible="no" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="no" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="yes" active="yes"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="yes" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="no" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="no" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="yes"/>
<layer number="25" name="tNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="26" name="bNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="28" name="bValues" color="7" fill="1" visible="no" active="yes"/>
<layer number="29" name="tStop" color="7" fill="3" visible="yes" active="yes"/>
<layer number="30" name="bStop" color="7" fill="6" visible="no" active="yes"/>
<layer number="31" name="tCream" color="7" fill="4" visible="yes" active="yes"/>
<layer number="32" name="bCream" color="7" fill="5" visible="no" active="yes"/>
<layer number="33" name="tFinish" color="6" fill="3" visible="no" active="yes"/>
<layer number="34" name="bFinish" color="6" fill="6" visible="no" active="yes"/>
<layer number="35" name="tGlue" color="7" fill="4" visible="no" active="yes"/>
<layer number="36" name="bGlue" color="7" fill="5" visible="no" active="yes"/>
<layer number="37" name="tTest" color="7" fill="1" visible="no" active="yes"/>
<layer number="38" name="bTest" color="7" fill="1" visible="no" active="yes"/>
<layer number="39" name="tKeepout" color="4" fill="11" visible="no" active="yes"/>
<layer number="40" name="bKeepout" color="1" fill="11" visible="no" active="yes"/>
<layer number="41" name="tRestrict" color="4" fill="10" visible="no" active="yes"/>
<layer number="42" name="bRestrict" color="1" fill="10" visible="no" active="yes"/>
<layer number="43" name="vRestrict" color="2" fill="10" visible="no" active="yes"/>
<layer number="44" name="Drills" color="7" fill="1" visible="no" active="yes"/>
<layer number="45" name="Holes" color="7" fill="1" visible="no" active="yes"/>
<layer number="46" name="Milling" color="3" fill="1" visible="no" active="yes"/>
<layer number="47" name="Measures" color="7" fill="1" visible="no" active="yes"/>
<layer number="48" name="Document" color="7" fill="1" visible="no" active="yes"/>
<layer number="49" name="Reference" color="7" fill="1" visible="no" active="yes"/>
<layer number="50" name="dxf" color="7" fill="1" visible="no" active="no"/>
<layer number="51" name="tDocu" color="3" fill="1" visible="yes" active="yes"/>
<layer number="52" name="bDocu" color="7" fill="1" visible="no" active="yes"/>
<layer number="56" name="wert" color="7" fill="1" visible="no" active="no"/>
<layer number="90" name="Modules" color="5" fill="1" visible="yes" active="yes"/>
<layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/>
<layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/>
<layer number="93" name="Pins" color="2" fill="1" visible="yes" active="yes"/>
<layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/>
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
</layers>
<library>
<description><b>Infineon Technologies</b><p>
<p>THIS LIBRARY IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED.<br>
USE AT YOUR OWN RISK!<p>
<author>Copyright (C) 2015, Bob Starr<br> http://www.bob-starr.com<br></author></description>
<packages>
<package name="SC74-6">
<description><b>Small Outline Transistor</b> - 6 leads<p></description>
<wire x1="-1.45" y1="0.6" x2="-1.45" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="-1.45" y1="-0.6" x2="1.45" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="1.45" y1="-0.6" x2="1.45" y2="0.6" width="0.2032" layer="21"/>
<wire x1="1.45" y1="0.6" x2="-1.45" y2="0.6" width="0.2032" layer="21"/>
<circle x="-0.95" y="-0.25" radius="0.1" width="0.2032" layer="21"/>
<smd name="1" x="-0.95" y="-1.2" dx="0.6" dy="0.6" layer="1"/>
<smd name="2" x="0" y="-1.2" dx="0.6" dy="0.6" layer="1"/>
<smd name="3" x="0.95" y="-1.2" dx="0.6" dy="0.6" layer="1"/>
<smd name="4" x="0.95" y="1.2" dx="0.6" dy="0.6" layer="1"/>
<smd name="5" x="0" y="1.2" dx="0.6" dy="0.6" layer="1"/>
<smd name="6" x="-0.95" y="1.2" dx="0.6" dy="0.6" layer="1"/>
<text x="-1.7" y="-0.7" size="1.016" layer="25" ratio="18" rot="R90">>NAME</text>
<text x="2.5" y="-0.7" size="0.8128" layer="27" ratio="10" rot="R90">>VALUE</text>
<rectangle x1="-1.125" y1="-1.3" x2="-0.775" y2="-0.7" layer="51"/>
<rectangle x1="-0.175" y1="-1.3" x2="0.175" y2="-0.7" layer="51"/>
<rectangle x1="0.775" y1="-1.3" x2="1.125" y2="-0.7" layer="51"/>
<rectangle x1="0.775" y1="0.7" x2="1.125" y2="1.3" layer="51"/>
<rectangle x1="-0.175" y1="0.7" x2="0.175" y2="1.3" layer="51"/>
<rectangle x1="-1.125" y1="0.7" x2="-0.775" y2="1.3" layer="51"/>
</package>
<package name="TSNP-16-9">
<description>TSNP-16-9</description>
<smd name="17" x="0" y="0" dx="1.5" dy="1.5" layer="1" roundness="10" cream="no"/>
<smd name="1" x="-1" y="-1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="2" x="-0.5" y="-1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="3" x="0" y="-1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="4" x="0.5" y="-1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="5" x="1" y="-1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="6" x="1.05" y="-0.5" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="7" x="1.05" y="0" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="8" x="1.05" y="0.5" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="9" x="1" y="1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="10" x="0.5" y="1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="11" x="0" y="1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="12" x="-0.5" y="1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="13" x="-1" y="1" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="14" x="-1.05" y="0.5" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="15" x="-1.05" y="0" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<smd name="16" x="-1.05" y="-0.5" dx="0.25" dy="0.25" layer="1" roundness="10" cream="no"/>
<circle x="-1" y="-1" radius="0.125" width="0" layer="31"/>
<circle x="-0.5" y="-1" radius="0.125" width="0" layer="31"/>
<circle x="0" y="-1" radius="0.125" width="0" layer="31"/>
<circle x="0.5" y="-1" radius="0.125" width="0" layer="31"/>
<circle x="1" y="-1" radius="0.125" width="0" layer="31"/>
<circle x="1" y="1" radius="0.125" width="0" layer="31"/>
<circle x="0.5" y="1" radius="0.125" width="0" layer="31"/>
<circle x="0" y="1" radius="0.125" width="0" layer="31"/>
<circle x="-0.5" y="1" radius="0.125" width="0" layer="31"/>
<circle x="-1" y="1" radius="0.125" width="0" layer="31"/>
<circle x="1.05" y="-0.5" radius="0.125" width="0" layer="31"/>
<circle x="1.05" y="0" radius="0.125" width="0" layer="31"/>
<circle x="1.05" y="0.5" radius="0.125" width="0" layer="31"/>
<circle x="-1.05" y="0.5" radius="0.125" width="0" layer="31"/>
<circle x="-1.05" y="0" radius="0.125" width="0" layer="31"/>
<circle x="-1.05" y="-0.5" radius="0.125" width="0" layer="31"/>
<rectangle x1="-0.65" y1="-0.65" x2="0.65" y2="0.65" layer="31"/>
<wire x1="-1.2" y1="1.2" x2="1.2" y2="1.2" width="0.0508" layer="51"/>
<wire x1="1.2" y1="1.2" x2="1.2" y2="-1.2" width="0.0508" layer="51"/>
<wire x1="1.2" y1="-1.2" x2="-1.2" y2="-1.2" width="0.0508" layer="51"/>
<wire x1="-1.2" y1="-1.2" x2="-1.2" y2="1.2" width="0.0508" layer="51"/>
<text x="-1.2" y="1.3" size="0.3048" layer="25" ratio="18">>NAME</text>
<text x="0" y="0" size="0.3048" layer="27" ratio="10" align="center">>VALUE</text>
<rectangle x1="-1.5" y1="-1.2" x2="-1.3" y2="-1" layer="27"/>
<wire x1="-0.5" y1="-0.6" x2="-0.9" y2="-0.6" width="0.0508" layer="51"/>
<wire x1="-0.9" y1="-0.6" x2="-0.7" y2="-0.9" width="0.0508" layer="51"/>
<wire x1="-0.5" y1="-0.6" x2="-0.7" y2="-0.9" width="0.0508" layer="51"/>
</package>
</packages>
<symbols>
<symbol name="BCR421U">
<pin name="EN" x="-15.24" y="5.08" length="middle" direction="in"/>
<pin name="OUT@2" x="15.24" y="5.08" length="middle" direction="oc" rot="R180"/>
<pin name="OUT@3" x="15.24" y="2.54" length="middle" direction="oc" rot="R180"/>
<pin name="GND" x="-15.24" y="-5.08" length="middle" direction="in"/>
<pin name="OUT@5" x="15.24" y="0" length="middle" direction="oc" rot="R180"/>
<pin name="REXT" x="15.24" y="-5.08" length="middle" rot="R180"/>
<wire x1="-10.16" y1="7.62" x2="10.16" y2="7.62" width="0.4064" layer="94"/>
<wire x1="10.16" y1="7.62" x2="10.16" y2="-7.62" width="0.4064" layer="94"/>
<wire x1="10.16" y1="-7.62" x2="-10.16" y2="-7.62" width="0.4064" layer="94"/>
<wire x1="-10.16" y1="-7.62" x2="-10.16" y2="7.62" width="0.4064" layer="94"/>
<text x="-10.16" y="8.89" size="1.778" layer="95">>NAME</text>
<text x="-10.16" y="-10.795" size="1.778" layer="96">>VALUE</text>
</symbol>
<symbol name="BGT24LTR11N16">
<pin name="VCC" x="-7.62" y="30.48" visible="pad" length="middle" direction="pwr" rot="R270"/>
<pin name="VEE@2" x="-22.86" y="-30.48" visible="pad" length="middle" direction="pwr" rot="R90"/>
<pin name="RX" x="48.26" y="7.62" visible="pad" length="middle" direction="in" rot="R180"/>
<pin name="VEE@4" x="-27.94" y="-30.48" visible="pad" length="middle" direction="pwr" rot="R90"/>
<pin name="TX_EN" x="-48.26" y="17.78" visible="pad" length="middle" direction="in"/>
<pin name="IFQ" x="25.4" y="30.48" visible="pad" length="middle" direction="out" rot="R270"/>
<pin name="IFI" x="15.24" y="30.48" visible="pad" length="middle" direction="out" rot="R270"/>
<pin name="V_PTAT" x="48.26" y="-12.7" visible="pad" length="middle" direction="out" rot="R180"/>
<pin name="DIV_OUT" x="-48.26" y="-12.7" visible="pad" length="middle"/>
<pin name="VCC_DIV" x="-48.26" y="-7.62" visible="pad" length="middle" direction="in"/>
<pin name="VEE@10" x="-38.1" y="-30.48" visible="pad" length="middle" direction="pwr" rot="R90"/>
<pin name="TX" x="-48.26" y="7.62" visible="pad" length="middle" direction="pas"/>
<pin name="VEE@12" x="-33.02" y="-30.48" visible="pad" length="middle" direction="pwr" rot="R90"/>
<pin name="R_TUNE" x="17.78" y="-30.48" visible="pad" length="middle" direction="pas" rot="R90"/>
<pin name="V_TUNE" x="-5.08" y="-30.48" visible="pad" length="middle" direction="in" rot="R90"/>
<pin name="VCC_PTAT" x="48.26" y="-7.62" visible="pad" length="middle" direction="in" rot="R180"/>
<pin name="PAD" x="-15.24" y="-30.48" visible="pad" length="middle" direction="pas" rot="R90"/>
<wire x1="-43.18" y1="25.4" x2="43.18" y2="25.4" width="0.4064" layer="94"/>
<wire x1="43.18" y1="25.4" x2="43.18" y2="7.62" width="0.4064" layer="94"/>
<wire x1="43.18" y1="7.62" x2="43.18" y2="-7.62" width="0.4064" layer="94"/>
<wire x1="43.18" y1="-7.62" x2="43.18" y2="-12.7" width="0.4064" layer="94"/>
<wire x1="43.18" y1="-12.7" x2="43.18" y2="-25.4" width="0.4064" layer="94"/>
<wire x1="43.18" y1="-25.4" x2="17.78" y2="-25.4" width="0.4064" layer="94"/>
<wire x1="17.78" y1="-25.4" x2="-5.08" y2="-25.4" width="0.4064" layer="94"/>
<wire x1="-5.08" y1="-25.4" x2="-43.18" y2="-25.4" width="0.4064" layer="94"/>
<wire x1="-43.18" y1="-25.4" x2="-43.18" y2="-12.7" width="0.4064" layer="94"/>
<wire x1="-43.18" y1="-12.7" x2="-43.18" y2="-7.62" width="0.4064" layer="94"/>
<wire x1="-43.18" y1="-7.62" x2="-43.18" y2="7.62" width="0.4064" layer="94"/>
<wire x1="-43.18" y1="7.62" x2="-43.18" y2="17.78" width="0.4064" layer="94"/>
<wire x1="-43.18" y1="17.78" x2="-43.18" y2="25.4" width="0.4064" layer="94"/>
<wire x1="31.75" y1="10.16" x2="34.29" y2="10.16" width="0.254" layer="94"/>
<wire x1="34.29" y1="10.16" x2="34.29" y2="7.62" width="0.254" layer="94"/>
<wire x1="34.29" y1="7.62" x2="34.29" y2="5.08" width="0.254" layer="94"/>
<wire x1="34.29" y1="5.08" x2="31.75" y2="5.08" width="0.254" layer="94"/>
<wire x1="31.75" y1="5.08" x2="31.75" y2="6.35" width="0.254" layer="94"/>
<wire x1="31.75" y1="6.35" x2="31.75" y2="8.89" width="0.254" layer="94"/>
<wire x1="31.75" y1="8.89" x2="31.75" y2="10.16" width="0.254" layer="94"/>
<wire x1="31.75" y1="8.89" x2="29.21" y2="8.89" width="0.1524" layer="94"/>
<wire x1="31.75" y1="6.35" x2="29.21" y2="6.35" width="0.1524" layer="94"/>
<wire x1="43.18" y1="7.62" x2="34.29" y2="7.62" width="0.1524" layer="94"/>
<wire x1="29.21" y1="11.43" x2="29.21" y2="8.89" width="0.254" layer="94"/>
<wire x1="29.21" y1="8.89" x2="29.21" y2="6.35" width="0.254" layer="94"/>
<wire x1="29.21" y1="6.35" x2="29.21" y2="3.81" width="0.254" layer="94"/>
<wire x1="29.21" y1="3.81" x2="25.4" y2="6.096" width="0.254" layer="94"/>
<wire x1="25.4" y1="6.096" x2="22.86" y2="7.62" width="0.254" layer="94"/>
<wire x1="22.86" y1="7.62" x2="25.4" y2="9.144" width="0.254" layer="94"/>
<wire x1="25.4" y1="9.144" x2="29.21" y2="11.43" width="0.254" layer="94"/>
<wire x1="19.05" y1="13.97" x2="21.59" y2="13.97" width="0.254" layer="94"/>
<wire x1="21.59" y1="13.97" x2="21.59" y2="11.43" width="0.254" layer="94"/>
<wire x1="21.59" y1="11.43" x2="21.59" y2="8.89" width="0.254" layer="94"/>
<wire x1="21.59" y1="8.89" x2="19.05" y2="8.89" width="0.254" layer="94"/>
<wire x1="19.05" y1="8.89" x2="19.05" y2="10.16" width="0.254" layer="94"/>
<wire x1="19.05" y1="10.16" x2="19.05" y2="12.7" width="0.254" layer="94"/>
<wire x1="19.05" y1="12.7" x2="19.05" y2="13.97" width="0.254" layer="94"/>
<wire x1="19.05" y1="12.7" x2="17.526" y2="12.7" width="0.1524" layer="94"/>
<wire x1="19.05" y1="10.16" x2="17.526" y2="10.16" width="0.1524" layer="94"/>
<wire x1="25.4" y1="11.43" x2="21.59" y2="11.43" width="0.1524" layer="94"/>
<wire x1="19.05" y1="6.35" x2="21.59" y2="6.35" width="0.254" layer="94"/>
<wire x1="21.59" y1="6.35" x2="21.59" y2="3.81" width="0.254" layer="94"/>
<wire x1="21.59" y1="3.81" x2="21.59" y2="1.27" width="0.254" layer="94"/>
<wire x1="21.59" y1="1.27" x2="19.05" y2="1.27" width="0.254" layer="94"/>
<wire x1="19.05" y1="1.27" x2="19.05" y2="2.54" width="0.254" layer="94"/>
<wire x1="19.05" y1="2.54" x2="19.05" y2="5.08" width="0.254" layer="94"/>
<wire x1="19.05" y1="5.08" x2="19.05" y2="6.35" width="0.254" layer="94"/>
<wire x1="25.4" y1="3.81" x2="21.59" y2="3.81" width="0.1524" layer="94"/>
<circle x="15.24" y="11.43" radius="2.54" width="0.254" layer="94"/>
<wire x1="7.62" y1="13.97" x2="11.43" y2="13.97" width="0.254" layer="94"/>
<wire x1="11.43" y1="13.97" x2="11.43" y2="12.7" width="0.254" layer="94"/>
<wire x1="11.43" y1="12.7" x2="11.43" y2="10.16" width="0.254" layer="94"/>
<wire x1="11.43" y1="10.16" x2="11.43" y2="5.08" width="0.254" layer="94"/>
<wire x1="11.43" y1="5.08" x2="11.43" y2="2.54" width="0.254" layer="94"/>
<wire x1="11.43" y1="2.54" x2="11.43" y2="1.27" width="0.254" layer="94"/>
<wire x1="11.43" y1="1.27" x2="7.62" y2="1.27" width="0.254" layer="94"/>
<wire x1="7.62" y1="1.27" x2="7.62" y2="13.97" width="0.254" layer="94"/>
<wire x1="5.08" y1="5.08" x2="2.54" y2="5.08" width="0.254" layer="94"/>
<wire x1="2.54" y1="5.08" x2="2.54" y2="7.62" width="0.254" layer="94"/>
<wire x1="2.54" y1="7.62" x2="2.54" y2="10.16" width="0.254" layer="94"/>
<wire x1="2.54" y1="10.16" x2="5.08" y2="10.16" width="0.254" layer="94"/>
<wire x1="5.08" y1="10.16" x2="5.08" y2="8.89" width="0.254" layer="94"/>
<wire x1="5.08" y1="8.89" x2="5.08" y2="6.35" width="0.254" layer="94"/>
<wire x1="5.08" y1="6.35" x2="5.08" y2="5.08" width="0.254" layer="94"/>
<wire x1="5.08" y1="6.35" x2="7.62" y2="6.35" width="0.1524" layer="94"/>
<wire x1="5.08" y1="8.89" x2="7.62" y2="8.89" width="0.1524" layer="94"/>
<wire x1="-2.54" y1="7.62" x2="2.54" y2="7.62" width="0.1524" layer="94"/>
<wire x1="25.4" y1="11.43" x2="25.4" y2="9.144" width="0.1524" layer="94"/>
<wire x1="25.4" y1="6.096" x2="25.4" y2="3.81" width="0.1524" layer="94"/>
<wire x1="11.43" y1="12.7" x2="12.954" y2="12.7" width="0.1524" layer="94"/>
<wire x1="11.43" y1="10.16" x2="12.954" y2="10.16" width="0.1524" layer="94"/>
<wire x1="13.49375" y1="9.68375" x2="16.98625" y2="13.17625" width="0.1524" layer="94"/>
<wire x1="13.49375" y1="13.17625" x2="16.98625" y2="9.68375" width="0.1524" layer="94"/>
<wire x1="19.05" y1="5.08" x2="17.526" y2="5.08" width="0.1524" layer="94"/>
<wire x1="19.05" y1="2.54" x2="17.526" y2="2.54" width="0.1524" layer="94"/>
<circle x="15.24" y="3.81" radius="2.54" width="0.254" layer="94"/>
<wire x1="11.43" y1="5.08" x2="12.954" y2="5.08" width="0.1524" layer="94"/>
<wire x1="11.43" y1="2.54" x2="12.954" y2="2.54" width="0.1524" layer="94"/>
<wire x1="13.49375" y1="2.06375" x2="16.98625" y2="5.55625" width="0.1524" layer="94"/>
<wire x1="13.49375" y1="5.55625" x2="16.98625" y2="2.06375" width="0.1524" layer="94"/>
<circle x="-5.08" y="0" radius="3.5921" width="0.254" layer="94"/>
<wire x1="-2.54" y1="2.54" x2="-2.54" y2="7.62" width="0.1524" layer="94"/>
<wire x1="-7.62" y1="2.54" x2="-7.62" y2="7.62" width="0.1524" layer="94"/>
<wire x1="-15.24" y1="10.16" x2="-12.7" y2="10.16" width="0.254" layer="94"/>
<wire x1="-12.7" y1="10.16" x2="-12.7" y2="7.62" width="0.254" layer="94"/>
<wire x1="-12.7" y1="7.62" x2="-12.7" y2="5.08" width="0.254" layer="94"/>
<wire x1="-12.7" y1="5.08" x2="-15.24" y2="5.08" width="0.254" layer="94"/>
<wire x1="-15.24" y1="5.08" x2="-15.24" y2="6.35" width="0.254" layer="94"/>
<wire x1="-15.24" y1="6.35" x2="-15.24" y2="8.89" width="0.254" layer="94"/>
<wire x1="-15.24" y1="8.89" x2="-15.24" y2="10.16" width="0.254" layer="94"/>
<wire x1="-7.62" y1="7.62" x2="-12.7" y2="7.62" width="0.1524" layer="94"/>
<wire x1="-15.24" y1="8.89" x2="-17.78" y2="8.89" width="0.1524" layer="94"/>
<wire x1="-15.24" y1="6.35" x2="-17.78" y2="6.35" width="0.1524" layer="94"/>
<wire x1="-17.78" y1="11.43" x2="-17.78" y2="8.89" width="0.254" layer="94"/>
<wire x1="-17.78" y1="8.89" x2="-17.78" y2="6.35" width="0.254" layer="94"/>
<wire x1="-17.78" y1="6.35" x2="-17.78" y2="3.81" width="0.254" layer="94"/>
<wire x1="-17.78" y1="3.81" x2="-24.13" y2="7.62" width="0.254" layer="94"/>
<wire x1="-24.13" y1="7.62" x2="-20.32" y2="9.906" width="0.254" layer="94"/>
<wire x1="-20.32" y1="9.906" x2="-17.78" y2="11.43" width="0.254" layer="94"/>
<wire x1="-25.4" y1="5.08" x2="-27.94" y2="5.08" width="0.254" layer="94"/>
<wire x1="-27.94" y1="5.08" x2="-27.94" y2="7.62" width="0.254" layer="94"/>
<wire x1="-27.94" y1="7.62" x2="-27.94" y2="10.16" width="0.254" layer="94"/>
<wire x1="-27.94" y1="10.16" x2="-25.4" y2="10.16" width="0.254" layer="94"/>
<wire x1="-25.4" y1="10.16" x2="-25.4" y2="8.89" width="0.254" layer="94"/>
<wire x1="-25.4" y1="8.89" x2="-25.4" y2="6.35" width="0.254" layer="94"/>
<wire x1="-25.4" y1="6.35" x2="-25.4" y2="5.08" width="0.254" layer="94"/>
<wire x1="-43.18" y1="7.62" x2="-27.94" y2="7.62" width="0.1524" layer="94"/>
<wire x1="-25.4" y1="6.35" x2="-22.06625" y2="6.35" width="0.1524" layer="94"/>
<wire x1="-25.4" y1="8.89" x2="-22.06625" y2="8.89" width="0.1524" layer="94"/>
<wire x1="-20.32" y1="9.906" x2="-20.32" y2="17.78" width="0.1524" layer="94"/>
<wire x1="-20.32" y1="17.78" x2="-43.18" y2="17.78" width="0.1524" layer="94"/>
<wire x1="-12.7" y1="-15.24" x2="-27.94" y2="-15.24" width="0.254" layer="94"/>
<wire x1="-27.94" y1="-15.24" x2="-27.94" y2="-12.7" width="0.254" layer="94"/>
<wire x1="-27.94" y1="-12.7" x2="-27.94" y2="-7.62" width="0.254" layer="94"/>
<wire x1="-27.94" y1="-7.62" x2="-27.94" y2="-5.08" width="0.254" layer="94"/>
<wire x1="-27.94" y1="-5.08" x2="-12.7" y2="-5.08" width="0.254" layer="94"/>
<wire x1="-12.7" y1="-5.08" x2="-12.7" y2="-15.24" width="0.254" layer="94"/>
<wire x1="25.4" y1="-15.24" x2="17.78" y2="-15.24" width="0.254" layer="94"/>
<wire x1="17.78" y1="-15.24" x2="10.16" y2="-15.24" width="0.254" layer="94"/>
<wire x1="10.16" y1="-15.24" x2="10.16" y2="-5.08" width="0.254" layer="94"/>
<wire x1="10.16" y1="-5.08" x2="25.4" y2="-5.08" width="0.254" layer="94"/>
<wire x1="25.4" y1="-5.08" x2="25.4" y2="-7.62" width="0.254" layer="94"/>
<wire x1="25.4" y1="-7.62" x2="25.4" y2="-12.7" width="0.254" layer="94"/>
<wire x1="25.4" y1="-12.7" x2="25.4" y2="-15.24" width="0.254" layer="94"/>
<wire x1="25.4" y1="-7.62" x2="43.18" y2="-7.62" width="0.1524" layer="94"/>
<wire x1="25.4" y1="-12.7" x2="43.18" y2="-12.7" width="0.1524" layer="94"/>
<text x="40.79875" y="-6.35" size="1.524" layer="95" align="center-right">VCC_PTAT</text>
<text x="40.79875" y="-11.43" size="1.524" layer="95" align="center-right">V_PTAT</text>
<text x="40.79875" y="8.89" size="1.524" layer="95" align="center-right">RX</text>
<wire x1="17.78" y1="-25.4" x2="17.78" y2="-15.24" width="0.1524" layer="94"/>
<text x="19.685" y="-21.59" size="1.524" layer="95" align="center-left">RTUNE</text>
<text x="-3.81" y="-21.59" size="1.524" layer="95" align="center-left">V_TUNE</text>
<text x="-15.24" y="-21.59" size="1.524" layer="95" align="center">PAD</text>
<wire x1="-5.08" y1="-25.4" x2="-5.08" y2="-3.683" width="0.1524" layer="94"/>
<wire x1="-27.94" y1="-12.7" x2="-43.18" y2="-12.7" width="0.1524" layer="94"/>
<wire x1="-27.94" y1="-7.62" x2="-43.18" y2="-7.62" width="0.1524" layer="94"/>
<text x="-40.79875" y="-6.35" size="1.524" layer="95" rot="MR0" align="center-right">VCC_DIV</text>
<text x="-40.79875" y="-11.43" size="1.524" layer="95" rot="MR0" align="center-right">DIV_OUT</text>
<text x="-38.1" y="-21.59" size="1.524" layer="95" align="center">VEE</text>
<text x="-33.02" y="-21.59" size="1.524" layer="95" align="center">VEE</text>
<text x="-27.94" y="-21.59" size="1.524" layer="95" align="center">VEE</text>
<text x="-22.86" y="-21.59" size="1.524" layer="95" align="center">VEE</text>
<text x="-7.62" y="21.9075" size="1.524" layer="95" align="center">VCC</text>
<text x="15.24" y="21.9075" size="1.524" layer="95" align="center">IFI</text>
<text x="25.4" y="21.9075" size="1.524" layer="95" align="center">IFQ</text>
<text x="-40.79875" y="8.89" size="1.524" layer="95" rot="MR0" align="center-right">TX</text>
<text x="-40.79875" y="19.05" size="1.524" layer="95" rot="MR0" align="center-right">TC_EN</text>
<text x="-20.32" y="-10.16" size="1.524" layer="94" align="center">f-DIV</text>
<text x="17.78" y="-10.16" size="1.524" layer="94" align="center">PTAT</text>
<text x="-42.545" y="26.035" size="1.778" layer="95">>NAME</text>
<text x="-5.08" y="15.24" size="1.778" layer="96" align="center">>VALUE</text>
<wire x1="-5.08" y1="0" x2="-6.985" y2="0" width="0.1524" layer="94" curve="180"/>
<wire x1="-5.08" y1="0" x2="-3.175" y2="0" width="0.1524" layer="94" curve="180"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="BCR421U" prefix="U">
<description>LED DRIVER</description>
<gates>
<gate name="G$1" symbol="BCR421U" x="0" y="0"/>
</gates>
<devices>
<device name="" package="SC74-6">
<connects>
<connect gate="G$1" pin="EN" pad="1"/>
<connect gate="G$1" pin="GND" pad="4"/>
<connect gate="G$1" pin="OUT@2" pad="2"/>
<connect gate="G$1" pin="OUT@3" pad="3"/>
<connect gate="G$1" pin="OUT@5" pad="5"/>
<connect gate="G$1" pin="REXT" pad="6"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="BGT24LTR11N16" prefix="U">
<description>Silicon Germanium 24GHz Radar Transceiver MMIC</description>
<gates>
<gate name="G$1" symbol="BGT24LTR11N16" x="0" y="0"/>
</gates>
<devices>
<device name="" package="TSNP-16-9">
<connects>
<connect gate="G$1" pin="DIV_OUT" pad="8"/>
<connect gate="G$1" pin="IFI" pad="7"/>
<connect gate="G$1" pin="IFQ" pad="6"/>
<connect gate="G$1" pin="PAD" pad="17"/>
<connect gate="G$1" pin="RX" pad="3"/>
<connect gate="G$1" pin="R_TUNE" pad="13"/>
<connect gate="G$1" pin="TX" pad="11"/>
<connect gate="G$1" pin="TX_EN" pad="5"/>
<connect gate="G$1" pin="VCC" pad="1"/>
<connect gate="G$1" pin="VCC_DIV" pad="9"/>
<connect gate="G$1" pin="VCC_PTAT" pad="16"/>
<connect gate="G$1" pin="VEE@10" pad="10"/>
<connect gate="G$1" pin="VEE@12" pad="12"/>
<connect gate="G$1" pin="VEE@2" pad="2"/>
<connect gate="G$1" pin="VEE@4" pad="4"/>
<connect gate="G$1" pin="V_PTAT" pad="15"/>
<connect gate="G$1" pin="V_TUNE" pad="14"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</drawing>
</eagle>
|
{
"pile_set_name": "Github"
}
|
72
|
{
"pile_set_name": "Github"
}
|
{
"data": [
{
"name": "Shining",
"views": 0,
"dateUTC": "2011-01-05T00:00:00Z"
},
{
"name": "Shining",
"views": 1000,
"dateUTC": "2011-01-06T00:00:00Z"
},
{
"name": "Shining",
"views": 1006.34,
"dateUTC": "2011-01-07T00:00:00Z"
},
{
"name": "Shining",
"views": 2000,
"dateUTC": "2011-01-08T00:00:00Z"
},
{
"name": "Luminous",
"views": 1003,
"dateUTC": "2011-01-05T00:00:00Z"
},
{
"name": "Luminous",
"views": 1006,
"dateUTC": "2011-01-06T00:00:00Z"
},
{
"name": "Luminous",
"views": 1000,
"dateUTC": "2011-01-07T00:00:00Z"
},
{
"name": "Luminous",
"views": 500,
"dateUTC": "2011-01-08T00:00:00Z"
},
{
"name": "Vivid",
"views": 1000,
"dateUTC": "2011-01-05T00:00:00Z"
},
{
"name": "Vivid",
"views": 2000,
"dateUTC": "2011-01-06T00:00:00Z"
},
{
"name": "Vivid",
"views": 2002,
"dateUTC": "2011-01-07T00:00:00Z"
},
{
"name": "Vivid",
"views": 700,
"dateUTC": "2011-01-08T00:00:00Z"
},
{
"name": "Intense",
"views": 0,
"dateUTC": "2011-01-05T00:00:00Z"
},
{
"name": "Intense",
"views": 1000,
"dateUTC": "2011-01-06T00:00:00Z"
},
{
"name": "Intense",
"views": 1006,
"dateUTC": "2011-01-07T00:00:00Z"
},
{
"name": "Intense",
"views": 300,
"dateUTC": "2011-01-08T00:00:00Z"
},
{
"name": "Radiant",
"views": 1008,
"dateUTC": "2011-01-05T00:00:00Z"
},
{
"name": "Radiant",
"views": 1002,
"dateUTC": "2011-01-06T00:00:00Z"
},
{
"name": "Radiant",
"views": 500,
"dateUTC": "2011-01-07T00:00:00Z"
},
{
"name": "Radiant",
"views": 300,
"dateUTC": "2011-01-08T00:00:00Z"
},
{
"name": "Brilliant",
"views": 400,
"dateUTC": "2011-01-05T00:00:00Z"
},
{
"name": "Brilliant",
"views": 900,
"dateUTC": "2011-01-06T00:00:00Z"
},
{
"name": "Brilliant",
"views": 600,
"dateUTC": "2011-01-07T00:00:00Z"
},
{
"name": "Brilliant",
"views": 300,
"dateUTC": "2011-01-08T00:00:00Z"
}
]
}
|
{
"pile_set_name": "Github"
}
|
#!/usr/bin/env php
<?php
$root = dirname(dirname(dirname(__FILE__)));
require_once $root.'/scripts/init/init-setup.php';
$args = new PhutilArgumentParser($argv);
$args->setTagline(pht('manage Phabricator storage and schemata'));
$args->setSynopsis(<<<EOHELP
**storage** __workflow__ [__options__]
Manage Phabricator database storage and schema versioning.
**storage** upgrade
Initialize or upgrade Phabricator storage.
**storage** upgrade --user __root__ --password __hunter2__
Use administrative credentials for schema changes.
EOHELP
);
$args->parseStandardArguments();
$default_namespace = PhabricatorLiskDAO::getDefaultStorageNamespace();
try {
$args->parsePartial(
array(
array(
'name' => 'force',
'short' => 'f',
'help' => pht(
'Do not prompt before performing dangerous operations.'),
),
array(
'name' => 'host',
'param' => 'hostname',
'help' => pht(
'Operate on the database server identified by __hostname__.'),
),
array(
'name' => 'ref',
'param' => 'ref',
'help' => pht(
'Operate on the database identified by __ref__.'),
),
array(
'name' => 'user',
'short' => 'u',
'param' => 'username',
'help' => pht(
'Connect with __username__ instead of the configured default.'),
),
array(
'name' => 'password',
'short' => 'p',
'param' => 'password',
'help' => pht('Use __password__ instead of the configured default.'),
),
array(
'name' => 'namespace',
'param' => 'name',
'default' => $default_namespace,
'help' => pht(
"Use namespace __namespace__ instead of the configured ".
"default ('%s'). This is an advanced feature used by unit tests; ".
"you should not normally use this flag.",
$default_namespace),
),
array(
'name' => 'dryrun',
'help' => pht(
'Do not actually change anything, just show what would be changed.'),
),
array(
'name' => 'disable-utf8mb4',
'help' => pht(
'Disable %s, even if the database supports it. This is an '.
'advanced feature used for testing changes to Phabricator; you '.
'should not normally use this flag.',
'utf8mb4'),
),
));
} catch (PhutilArgumentUsageException $ex) {
$args->printUsageException($ex);
exit(77);
}
// First, test that the Phabricator configuration is set up correctly. After
// we know this works we'll test any administrative credentials specifically.
$refs = PhabricatorDatabaseRef::getActiveDatabaseRefs();
if (!$refs) {
throw new PhutilArgumentUsageException(
pht('No databases are configured.'));
}
$host = $args->getArg('host');
$ref_key = $args->getArg('ref');
if (strlen($host) || strlen($ref_key)) {
if ($host && $ref_key) {
throw new PhutilArgumentUsageException(
pht(
'Use "--host" or "--ref" to select a database, but not both.'));
}
$refs = PhabricatorDatabaseRef::getActiveDatabaseRefs();
$possible_refs = array();
foreach ($refs as $possible_ref) {
if ($host && ($possible_ref->getHost() == $host)) {
$possible_refs[] = $possible_ref;
break;
}
if ($ref_key && ($possible_ref->getRefKey() == $ref_key)) {
$possible_refs[] = $possible_ref;
break;
}
}
if (!$possible_refs) {
if ($host) {
throw new PhutilArgumentUsageException(
pht(
'There is no configured database on host "%s". This command can '.
'only interact with configured databases.',
$host));
} else {
throw new PhutilArgumentUsageException(
pht(
'There is no configured database with ref "%s". This command can '.
'only interact with configured databases.',
$ref_key));
}
}
if (count($possible_refs) > 1) {
throw new PhutilArgumentUsageException(
pht(
'Host "%s" identifies more than one database. Use "--ref" to select '.
'a specific database.',
$host));
}
$refs = $possible_refs;
}
$apis = array();
foreach ($refs as $ref) {
$default_user = $ref->getUser();
$default_host = $ref->getHost();
$default_port = $ref->getPort();
$test_api = id(new PhabricatorStorageManagementAPI())
->setUser($default_user)
->setHost($default_host)
->setPort($default_port)
->setPassword($ref->getPass())
->setNamespace($args->getArg('namespace'));
try {
queryfx(
$test_api->getConn(null),
'SELECT 1');
} catch (AphrontQueryException $ex) {
$message = phutil_console_format(
"**%s**\n\n%s\n\n%s\n\n%s\n\n**%s**: %s\n",
pht('MySQL Credentials Not Configured'),
pht(
'Unable to connect to MySQL using the configured credentials. '.
'You must configure standard credentials before you can upgrade '.
'storage. Run these commands to set up credentials:'),
" phabricator/ $ ./bin/config set mysql.host __host__\n".
" phabricator/ $ ./bin/config set mysql.user __username__\n".
" phabricator/ $ ./bin/config set mysql.pass __password__",
pht(
'These standard credentials are separate from any administrative '.
'credentials provided to this command with __%s__ or '.
'__%s__, and must be configured correctly before you can proceed.',
'--user',
'--password'),
pht('Raw MySQL Error'),
$ex->getMessage());
echo phutil_console_wrap($message);
exit(1);
}
if ($args->getArg('password') === null) {
// This is already a PhutilOpaqueEnvelope.
$password = $ref->getPass();
} else {
// Put this in a PhutilOpaqueEnvelope.
$password = new PhutilOpaqueEnvelope($args->getArg('password'));
PhabricatorEnv::overrideConfig('mysql.pass', $args->getArg('password'));
}
$selected_user = $args->getArg('user');
if ($selected_user === null) {
$selected_user = $default_user;
}
$api = id(new PhabricatorStorageManagementAPI())
->setUser($selected_user)
->setHost($default_host)
->setPort($default_port)
->setPassword($password)
->setNamespace($args->getArg('namespace'))
->setDisableUTF8MB4($args->getArg('disable-utf8mb4'));
PhabricatorEnv::overrideConfig('mysql.user', $api->getUser());
$ref->setUser($selected_user);
$ref->setPass($password);
try {
queryfx(
$api->getConn(null),
'SELECT 1');
} catch (AphrontQueryException $ex) {
$message = phutil_console_format(
"**%s**\n\n%s\n\n**%s**: %s\n",
pht('Bad Administrative Credentials'),
pht(
'Unable to connect to MySQL using the administrative credentials '.
'provided with the __%s__ and __%s__ flags. Check that '.
'you have entered them correctly.',
'--user',
'--password'),
pht('Raw MySQL Error'),
$ex->getMessage());
echo phutil_console_wrap($message);
exit(1);
}
$api->setRef($ref);
$apis[] = $api;
}
$workflows = id(new PhutilClassMapQuery())
->setAncestorClass('PhabricatorStorageManagementWorkflow')
->execute();
$patches = PhabricatorSQLPatchList::buildAllPatches();
foreach ($workflows as $workflow) {
$workflow->setAPIs($apis);
$workflow->setPatches($patches);
}
$workflows[] = new PhutilHelpArgumentWorkflow();
$args->parseWorkflows($workflows);
|
{
"pile_set_name": "Github"
}
|
#!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2014 Dean Jackson <[email protected]>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2014-02-15
#
"""
A Python helper library for `Alfred 2 <http://www.alfredapp.com/>`_ Workflow
authors.
"""
import os
__title__ = 'Alfred-Workflow'
__version__ = open(os.path.join(os.path.dirname(__file__), 'version')).read()
__author__ = 'Dean Jackson'
__licence__ = 'MIT'
__copyright__ = 'Copyright 2014 Dean Jackson'
# Workflow objects
from .workflow import Workflow, manager
# Exceptions
from .workflow import PasswordNotFound, KeychainError
# Icons
from .workflow import (
ICON_ACCOUNT,
ICON_BURN,
ICON_CLOCK,
ICON_COLOR,
ICON_COLOUR,
ICON_EJECT,
ICON_ERROR,
ICON_FAVORITE,
ICON_FAVOURITE,
ICON_GROUP,
ICON_HELP,
ICON_HOME,
ICON_INFO,
ICON_NETWORK,
ICON_NOTE,
ICON_SETTINGS,
ICON_SWIRL,
ICON_SWITCH,
ICON_SYNC,
ICON_TRASH,
ICON_USER,
ICON_WARNING,
ICON_WEB,
)
# Filter matching rules
from .workflow import (
MATCH_ALL,
MATCH_ALLCHARS,
MATCH_ATOM,
MATCH_CAPITALS,
MATCH_INITIALS,
MATCH_INITIALS_CONTAIN,
MATCH_INITIALS_STARTSWITH,
MATCH_STARTSWITH,
MATCH_SUBSTRING,
)
__all__ = [
'Workflow',
'manager',
'PasswordNotFound',
'KeychainError',
'ICON_ACCOUNT',
'ICON_BURN',
'ICON_CLOCK',
'ICON_COLOR',
'ICON_COLOUR',
'ICON_EJECT',
'ICON_ERROR',
'ICON_FAVORITE',
'ICON_FAVOURITE',
'ICON_GROUP',
'ICON_HELP',
'ICON_HOME',
'ICON_INFO',
'ICON_NETWORK',
'ICON_NOTE',
'ICON_SETTINGS',
'ICON_SWIRL',
'ICON_SWITCH',
'ICON_SYNC',
'ICON_TRASH',
'ICON_USER',
'ICON_WARNING',
'ICON_WEB',
'MATCH_ALL',
'MATCH_ALLCHARS',
'MATCH_ATOM',
'MATCH_CAPITALS',
'MATCH_INITIALS',
'MATCH_INITIALS_CONTAIN',
'MATCH_INITIALS_STARTSWITH',
'MATCH_STARTSWITH',
'MATCH_SUBSTRING',
]
|
{
"pile_set_name": "Github"
}
|
{
"name": "MyShell",
"author": "Brendan Coles <[email protected]>",
"version": "0.1",
"description": "MyShell - PHP powered shell",
"website": null,
"matches": [
{
"text": " | :::::::::: <a href=\"http://www.digitart.net\" target=\"_blank\" style=\"text-decoration:none\"><b>MyShell</b> ©2001 Digitart Producciones</a>"
},
{
"regexp": "(?-mix:<title>MyShell ([\\d\\.]+ build [\\d]{8})<\\/title>)",
"offset": 1
}
]
}
|
{
"pile_set_name": "Github"
}
|
." Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
."
." This code is free software; you can redistribute it and/or modify it
." under the terms of the GNU General Public License version 2 only, as
." published by the Free Software Foundation.
."
." This code is distributed in the hope that it will be useful, but WITHOUT
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
." version 2 for more details (a copy is included in the LICENSE file that
." accompanied this code).
."
." You should have received a copy of the GNU General Public License version
." 2 along with this work; if not, write to the Free Software Foundation,
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
."
." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
." or visit www.oracle.com if you need additional information or have any
." questions.
."
.TH tnameserv 1 "07 May 2011"
.LP
|
{
"pile_set_name": "Github"
}
|
<div class="apiDetail">
<div>
<h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDblClick</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 上鼠标双击之前的事件回调函数,并且根据返回值确定触发 onDblClick 事件回调函数</p>
<p>默认值:null</p>
</div>
</div>
<h3>Function 参数说明</h3>
<div class="desc">
<h4><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>
<h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
<p>返回值是 true / false</p>
<p class="highlight_red">如果返回 false,将仅仅无法触发 onDblClick 事件回调函数,对其他操作无任何影响</p>
<p class="highlight_red">此事件回调函数对双击节点展开功能无任何影响,如果需要设置请参考 setting.view.dblClickExpand 属性</p>
</div>
<h3>setting & function 举例</h3>
<h4>1. 禁止 onDblClick 事件</h4>
<pre xmlns=""><code>function zTreeBeforeDblClick(treeId, treeNode) {
return false;
};
var setting = {
callback: {
beforeDblClick: zTreeBeforeDblClick
}
};
......</code></pre>
</div>
</div>
|
{
"pile_set_name": "Github"
}
|
//
// Copyright 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// TextureImpl.cpp: Defines the abstract rx::TextureImpl classes.
#include "libANGLE/renderer/TextureImpl.h"
namespace rx
{
TextureImpl::TextureImpl(const gl::TextureState &state) : mState(state) {}
TextureImpl::~TextureImpl() {}
void TextureImpl::onDestroy(const gl::Context *context) {}
angle::Result TextureImpl::copyTexture(const gl::Context *context,
const gl::ImageIndex &index,
GLenum internalFormat,
GLenum type,
GLint sourceLevel,
bool unpackFlipY,
bool unpackPremultiplyAlpha,
bool unpackUnmultiplyAlpha,
const gl::Texture *source)
{
UNREACHABLE();
return angle::Result::Stop;
}
angle::Result TextureImpl::copySubTexture(const gl::Context *context,
const gl::ImageIndex &index,
const gl::Offset &destOffset,
GLint sourceLevel,
const gl::Box &sourceBox,
bool unpackFlipY,
bool unpackPremultiplyAlpha,
bool unpackUnmultiplyAlpha,
const gl::Texture *source)
{
UNREACHABLE();
return angle::Result::Stop;
}
angle::Result TextureImpl::copyCompressedTexture(const gl::Context *context,
const gl::Texture *source)
{
UNREACHABLE();
return angle::Result::Stop;
}
angle::Result TextureImpl::copy3DTexture(const gl::Context *context,
gl::TextureTarget target,
GLenum internalFormat,
GLenum type,
GLint sourceLevel,
GLint destLevel,
bool unpackFlipY,
bool unpackPremultiplyAlpha,
bool unpackUnmultiplyAlpha,
const gl::Texture *source)
{
UNREACHABLE();
return angle::Result::Stop;
}
angle::Result TextureImpl::copy3DSubTexture(const gl::Context *context,
const gl::TextureTarget target,
const gl::Offset &destOffset,
GLint sourceLevel,
GLint destLevel,
const gl::Box &srcBox,
bool unpackFlipY,
bool unpackPremultiplyAlpha,
bool unpackUnmultiplyAlpha,
const gl::Texture *source)
{
UNREACHABLE();
return angle::Result::Stop;
}
angle::Result TextureImpl::setImageExternal(const gl::Context *context,
const gl::ImageIndex &index,
GLenum internalFormat,
const gl::Extents &size,
GLenum format,
GLenum type)
{
UNREACHABLE();
return angle::Result::Stop;
}
GLint TextureImpl::getMemorySize() const
{
return 0;
}
GLint TextureImpl::getLevelMemorySize(gl::TextureTarget target, GLint level)
{
return 0;
}
GLint TextureImpl::getNativeID() const
{
UNREACHABLE();
return 0;
}
GLenum TextureImpl::getColorReadFormat(const gl::Context *context)
{
UNREACHABLE();
return GL_NONE;
}
GLenum TextureImpl::getColorReadType(const gl::Context *context)
{
UNREACHABLE();
return GL_NONE;
}
angle::Result TextureImpl::getTexImage(const gl::Context *context,
const gl::PixelPackState &packState,
gl::Buffer *packBuffer,
gl::TextureTarget target,
GLint level,
GLenum format,
GLenum type,
void *pixels)
{
UNREACHABLE();
return angle::Result::Stop;
}
} // namespace rx
|
{
"pile_set_name": "Github"
}
|
require 'rubygems' unless ENV['NO_RUBYGEMS']
require 'one9'
One9.it
|
{
"pile_set_name": "Github"
}
|
---
title: チュートリアル - Azure 関数でコンテナー グループをトリガーする
description: HTTP によってトリガーされるサーバーレス PowerShell 関数を作成して Azure コンテナー インスタンスの作成を自動化します。
ms.topic: tutorial
ms.date: 06/10/2020
ms.custom: devx-track-azurepowershell
ms.openlocfilehash: ec4b2273f6be6ea4aabed2b660e0b7553f861d0d
ms.sourcegitcommit: 656c0c38cf550327a9ee10cc936029378bc7b5a2
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 08/28/2020
ms.locfileid: "89072045"
---
# <a name="tutorial-use-an-http-triggered-azure-function-to-create-a-container-group"></a>チュートリアル:HTTP によってトリガーされる Azure 関数を使用してコンテナー グループを作成する
[Azure Functions](../azure-functions/functions-overview.md) は、さまざまなイベント (HTTP 要求、タイマー、Azure Storage キューのメッセージなど) に応じてスクリプトまたはコードを実行できるサーバーレスのコンピューティング サービスです。
このチュートリアルでは、HTTP 要求を受け取って[コンテナー グループ](container-instances-container-groups.md)のデプロイをトリガーする Azure 関数を作成します。 この例では、Azure Functions を使用して Azure Container Instances のリソースを自動的に作成する際の基本を紹介しています。 さらに複雑なシナリオや他のイベント トリガーについては、この例に変更を加えるか拡張してください。
学習内容は次のとおりです。
> [!div class="checklist"]
> * Visual Studio Code と [Azure Functions 拡張機能](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions)を使用して、HTTP によってトリガーされる基本的な PowerShell 関数を作成する。
> * 関数アプリの ID を有効にして、Azure リソースを作成するためのアクセス許可を与える。
> * コンテナーを 1 つだけ含んだコンテナー グループのデプロイを自動化するように PowerShell 関数に変更を加えて再発行する。
> * HTTP によってトリガーされたコンテナーのデプロイを確認する。
## <a name="prerequisites"></a>前提条件
ご利用の OS に Visual Studio Code と Azure Functions 拡張機能をインストールして使用するための前提条件については、[Visual Studio Code を使用して Azure で初めての関数を作成する方法](../azure-functions/functions-create-first-function-vs-code.md?pivots=programming-language-powershell#configure-your-environment)に関するページを参照してください。
この記事の追加の手順では、Azure PowerShell を使用します。 インストールまたはアップグレードする必要がある場合は、[Azure PowerShell のインストール][azure-powershell-install]および [Azure へのサインイン](/powershell/azure/get-started-azureps#sign-in-to-azure)に関する記事を参照してください。
## <a name="create-a-basic-powershell-function"></a>基本的な PowerShell 関数を作成する
[Azure で初めての PowerShell 関数を作成する方法](../azure-functions/functions-create-first-function-vs-code.md?pivots=programming-language-powershell)の手順に従い、HTTP トリガー テンプレートを使用して PowerShell 関数を作成します。 Azure 関数の既定の名前 **HttpTrigger** を使用します。 このクイックスタートに示すように、関数をローカルでテストし、Azure の関数アプリにプロジェクトを発行します。 この例は、テキスト文字列を返す、HTTP によってトリガーされた関数です。 この記事の後続の手順では、コンテナー グループを作成するよう関数を変更します。
この記事では、*myfunctionapp* という名前を使用して Azure リソース グループにプロジェクトを発行することを想定しています。Azure リソース グループの名前は、関数アプリの名前に従って自動的に付けられています (こちらも *myfunctionapp*)。 その後の手順で、一意の関数アプリ名とリソース グループ名に置き換えます。
## <a name="enable-an-azure-managed-identity-in-the-function-app"></a>関数アプリで Azure のマネージド ID を有効にする
次のコマンドを使用すると、お使いの関数アプリで、システムによって割り当てられた[マネージド ID](../app-service/overview-managed-identity.md?toc=/azure/azure-functions/toc.json#add-a-system-assigned-identity) を有効にできます。 このアプリを実行している PowerShell ホストは、この ID を使用して Azure に対して自動的に認証できるため、関数は、その ID にアクセス権が付与されている Azure サービスに対してアクションを実行できます。 このチュートリアルでは、関数アプリのリソース グループにリソースを作成するためのアクセス許可をマネージド ID に付与します。
関数アプリに [ID を追加する](../app-service/overview-managed-identity.md?tabs=dotnet#using-azure-powershell-1)には、次のようにします。
```powershell
Update-AzFunctionApp -Name myfunctionapp `
-ResourceGroupName myfunctionapp `
-IdentityType SystemAssigned
```
リソース グループのスコープに共同作成者ロールが指定されている ID を割り当てます。
```powershell
$SP=(Get-AzADServicePrincipal -DisplayName myfunctionapp).Id
$RG=(Get-AzResourceGroup -Name myfunctionapp).ResourceId
New-AzRoleAssignment -ObjectId $SP -RoleDefinitionName "Contributor" -Scope $RG
```
## <a name="modify-httptrigger-function"></a>HttpTrigger 関数を変更する
コンテナー グループを作成するように **HttpTrigger** 関数の PowerShell コードを変更します。 関数の `run.ps1` ファイルで、次のコード ブロックを探します。 このコードは、関数の URL のクエリ文字列として名前が渡された場合に、その値を表示するものです。
```powershell
[...]
if ($name) {
$body = "Hello, $name. This HTTP triggered function executed successfully."
}
[...]
```
このコードを次の例のブロックに置き換えます。 ここで、クエリ文字列で name 値が渡された場合、[New-AzContainerGroup][new-azcontainergroup] コマンドレットを使用したコンテナー グループの名前付けと作成に使用されます。 リソース グループの名前 *myfunctionapp* は、実際の関数アプリのリソース グループの名前に置き換えてください。
```powershell
[...]
if ($name) {
New-AzContainerGroup -ResourceGroupName myfunctionapp -Name $name `
-Image alpine -OsType Linux `
-Command "echo 'Hello from an Azure container instance triggered by an Azure function'" `
-RestartPolicy Never
if ($?) {
$body = "This HTTP triggered function executed successfully. Started container group $name"
}
else {
$body = "There was a problem starting the container group."
}
[...]
```
この例では、`alpine` イメージを実行する 1 つのコンテナー インスタンスから成るコンテナー グループを作成します。 このコンテナーは、`echo` コマンドを 1 回だけ実行して終了します。 実際の例では、バッチ ジョブを実行するための 1 つ以上のコンテナー グループの作成をトリガーする場合があります。
## <a name="test-function-app-locally"></a>関数アプリをローカルでテストする
関数アプリ プロジェクトを Azure に再発行する前に、関数がローカルで動作することを確認します。 関数をローカルで実行しても、Azure リソースは作成されません。 ただし、クエリ文字列で name 値を渡したり渡さなかったりすることで、関数のフローをテストすることができます。 関数をデバッグするには、「[PowerShell Azure Functions をローカル環境でデバッグする](../azure-functions/functions-debug-powershell-local.md)」を参照してください。
## <a name="republish-azure-function-app"></a>Azure 関数アプリを再発行する
関数がローカルで動作することを確認したら、Azure 上の既存の関数アプリにそのプロジェクトを再発行します。
1. Visual Studio Code で、コマンド パレットを開きます。 `Azure Functions: Deploy to Function App...` を検索して選択します。
1. 現在の作業フォルダーを選択して zip 圧縮し、デプロイします。
1. サブスクリプションを選択し、既存の関数アプリの名前 (*myfunctionapp*) を選択します。 以前のデプロイを上書きしてもよいことを確認します。
関数アプリが作成され、展開パッケージが適用されると、通知が表示されます。 この通知の **[View Output]\(出力の表示\)** を選択すると、更新済みの Azure リソースなど、作成とデプロイの結果が表示されます。
## <a name="run-the-function-in-azure"></a>Azure で関数を実行する
デプロイが正常に完了したら、関数の URL を取得します。 たとえば、Visual Studio Code の **[Azure: Functions]** 領域を使用して **HttpTrigger** 関数の URL をコピーするか、[Azure portal](../azure-functions/functions-create-first-azure-function.md#test-the-function) で関数の URL を取得します。
関数の URL の形式は次のとおりです。
```
https://myfunctionapp.azurewebsites.net/api/HttpTrigger
```
### <a name="run-function-without-passing-a-name"></a>名前を渡さずに関数を実行する
1 回目のテストとして、`name` クエリ文字列は追加せずに、`curl` コマンドを実行して関数の URL を渡します。
```bash
curl --verbose "https://myfunctionapp.azurewebsites.net/api/HttpTrigger"
```
この関数から状態コード 200 と `This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response` というテキストが返されます。
```
[...]
> GET /api/HttpTrigger? HTTP/1.1
> Host: myfunctionapp.azurewebsites.net
> User-Agent: curl/7.64.1
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/1.1 200 OK
< Content-Length: 135
< Content-Type: text/plain; charset=utf-8
< Request-Context: appId=cid-v1:d0bd0123-f713-4579-8990-bb368a229c38
< Date: Wed, 10 Jun 2020 17:50:27 GMT
<
* Connection #0 to host myfunctionapp.azurewebsites.net left intact
This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response.* Closing connection 0
```
### <a name="run-function-and-pass-the-name-of-a-container-group"></a>関数を実行してコンテナー グループの名前を渡す
次に、コンテナー グループの名前 (*mycontainergroup*) をクエリ文字列 `?name=mycontainergroup` として追加して、`curl` コマンドを実行します。
```bash
curl --verbose "https://myfunctionapp.azurewebsites.net/api/HttpTrigger?name=mycontainergroup"
```
この関数から状態コード 200 が返され、コンテナー グループの作成がトリガーされます。
```
[...]
> GET /api/HttpTrigger1?name=mycontainergroup HTTP/1.1
> Host: myfunctionapp.azurewebsites.net
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 92
< Content-Type: text/plain; charset=utf-8
< Request-Context: appId=cid-v1:d0bd0123-f713-4579-8990-bb368a229c38
< Date: Wed, 10 Jun 2020 17:54:31 GMT
<
* Connection #0 to host myfunctionapp.azurewebsites.net left intact
This HTTP triggered function executed successfully. Started container group mycontainergroup* Closing connection 0
```
[Get-AzContainerInstanceLog][get-azcontainerinstancelog] コマンドを使用して、コンテナーが実行されたことを確認します。
```azurecli
Get-AzContainerInstanceLog -ResourceGroupName myfunctionapp `
-ContainerGroupName mycontainergroup
```
サンプル出力:
```console
Hello from an Azure container instance triggered by an Azure function
```
## <a name="clean-up-resources"></a>リソースをクリーンアップする
このチュートリアルで作成したリソースがどれも不要になった場合は、[az group delete][az-group-delete] コマンドを実行して、リソース グループとそこに含まれているすべてのリソースを削除できます。 このコマンドによって、作成した関数アプリだけでなく、実行中のコンテナーおよびすべての関連リソースが削除されます。
```azurecli-interactive
az group delete --name myfunctionapp
```
## <a name="next-steps"></a>次のステップ
このチュートリアルでは、HTTP 要求を受け取ってコンテナー グループのデプロイをトリガーする Azure 関数を作成しました。 以下の方法を学習しました。
> [!div class="checklist"]
> * Visual Studio Code と Azure Functions 拡張機能を使用して、HTTP によってトリガーされる基本的な PowerShell 関数を作成する。
> * 関数アプリの ID を有効にして、Azure リソースを作成するためのアクセス許可を与える。
> * コンテナーを 1 つだけ含んだコンテナー グループのデプロイを自動化するように PowerShell 関数のコードに変更を加える。
> * HTTP によってトリガーされたコンテナーのデプロイを確認する。
コンテナー化されたジョブを起動して監視する詳細な例については、ブログ記事「[PowerShell Azure Functions と Azure Container Instances を使用したイベント駆動型のサーバーレス コンテナー](https://dev.to/azure/event-driven-serverless-containers-with-powershell-azure-functions-and-azure-container-instances-e9b)」と付随する[コード サンプル](https://github.com/anthonychu/functions-powershell-run-aci)を参照してください。
Azure 関数の作成と関数プロジェクトの発行に関する詳しいガイダンスについては、[Azure Functions のドキュメント](../azure-functions/index.yml)を参照してください。
<!-- IMAGES -->
<!-- LINKS - external -->
[terms-of-use]: https://azure.microsoft.com/support/legal/preview-supplemental-terms/
<!-- LINKS - internal -->
[azure-powershell-install]: /powershell/azure/install-az-ps
[new-azcontainergroup]: /powershell/module/az.containerinstance/new-azcontainergroup
[get-azcontainerinstancelog]: /powershell/module/az.containerinstance/get-azcontainerinstancelog
|
{
"pile_set_name": "Github"
}
|
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limitation the rights
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
/// copies of the Software, and to permit persons to whom the Software is
/// furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
/// THE SOFTWARE.
///
/// @ref gtx_raw_data
/// @file glm/gtx/raw_data.hpp
/// @date 2008-11-19 / 2011-06-07
/// @author Christophe Riccio
///
/// @see core (dependence)
///
/// @defgroup gtx_raw_data GLM_GTX_raw_data
/// @ingroup gtx
///
/// @brief Projection of a vector to other one
///
/// <glm/gtx/raw_data.hpp> need to be included to use these functionalities.
///////////////////////////////////////////////////////////////////////////////////
#ifndef GLM_GTX_raw_data
#define GLM_GTX_raw_data
// Dependencies
#include "../detail/setup.hpp"
#include "../detail/type_int.hpp"
#if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
# pragma message("GLM: GLM_GTX_raw_data extension included")
#endif
namespace glm
{
/// @addtogroup gtx_raw_data
/// @{
//! Type for byte numbers.
//! From GLM_GTX_raw_data extension.
typedef detail::uint8 byte;
//! Type for word numbers.
//! From GLM_GTX_raw_data extension.
typedef detail::uint16 word;
//! Type for dword numbers.
//! From GLM_GTX_raw_data extension.
typedef detail::uint32 dword;
//! Type for qword numbers.
//! From GLM_GTX_raw_data extension.
typedef detail::uint64 qword;
/// @}
}// namespace glm
#include "raw_data.inl"
#endif//GLM_GTX_raw_data
|
{
"pile_set_name": "Github"
}
|
<div class="form-group">
<label
tr-switch
ng-if="myTribesToggle.initialized && myTribesToggle.userTribes.length"
>
<input
type="checkbox"
ng-disabled="!myTribesToggle.userTribes || !myTribesToggle.userTribes.length"
ng-change="myTribesToggle.onChange()"
ng-model="myTribesToggle.toggle"
/>
<ng-pluralize
count="myTribesToggle.userTribes.length"
when="{
'one': 'Show only members from my circle',
'other': 'Show only members from my circles'
}"
></ng-pluralize>
</label>
<p
class="help-block"
ng-if="myTribesToggle.initialized && !myTribesToggle.userTribes.length"
>
<span class="icon-right"></span>
<a ui-sref="circles.list" class="text-muted"
>Join circles to find similar members</a
>
</p>
</div>
|
{
"pile_set_name": "Github"
}
|
/*****************************************************************************
*
* ReoGrid - .NET 表計算スプレッドシートコンポーネント
* http://reogrid.net/jp
*
* ReoGrid 日本語版デモプロジェクトは MIT ライセンスでリリースされています。
*
* このソフトウェアは無保証であり、このソフトウェアの使用により生じた直接・間接の損害に対し、
* 著作権者は補償を含むあらゆる責任を負いません。
*
* Copyright (c) 2012-2016 unvell.com, All Rights Reserved.
* http://www.unvell.com/jp
*
****************************************************************************/
namespace unvell.ReoGrid.Demo.DocumentDemo
{
partial class MonthCalendarDocDemo
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.reoGridControl = new unvell.ReoGrid.ReoGridControl();
this.SuspendLayout();
//
// reoGridControl
//
this.reoGridControl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.reoGridControl.ColumnHeaderContextMenuStrip = null;
this.reoGridControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.reoGridControl.LeadHeaderContextMenuStrip = null;
this.reoGridControl.Location = new System.Drawing.Point(0, 0);
this.reoGridControl.Name = "reoGridControl";
this.reoGridControl.RowHeaderContextMenuStrip = null;
this.reoGridControl.Script = null;
this.reoGridControl.SheetTabContextMenuStrip = null;
this.reoGridControl.SheetTabWidth = 400;
this.reoGridControl.Size = new System.Drawing.Size(604, 473);
this.reoGridControl.TabIndex = 1;
this.reoGridControl.Text = "reoGridControl1";
//
// ProjectSummaryDocDemo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.reoGridControl);
this.Name = "ProjectSummaryDocDemo";
this.Size = new System.Drawing.Size(604, 473);
this.ResumeLayout(false);
}
#endregion
private ReoGridControl reoGridControl;
}
}
|
{
"pile_set_name": "Github"
}
|
/**************************************************************************
*
* Copyright 2013-2014 RAD Game Tools and Valve Software
* Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
**************************************************************************/
// File: vogl_fixed_array.h
#pragma once
#include "vogl_core.h"
namespace vogl
{
template <typename T, uint32_t N>
class fixed_array
{
public:
typedef T element_type;
enum
{
cMaxElements = N
};
inline fixed_array()
{
VOGL_ASSUME(N > 0);
}
inline uint32_t size() const
{
return N;
}
inline uint32_t size_in_bytes() const
{
return sizeof(T) * N;
}
inline const T &operator[](uint32_t i) const
{
VOGL_ASSERT(i < N);
return m[i];
}
inline T &operator[](uint32_t i)
{
VOGL_ASSERT(i < N);
return m[i];
}
inline const T &front() const
{
return m[0];
}
inline T &front()
{
return m[0];
}
inline const T &back() const
{
return m[N - 1];
}
inline T &back()
{
return m[N - 1];
}
inline const T *begin() const
{
return m;
}
inline T *begin()
{
return m;
}
inline const T *end() const
{
return &m[N];
}
inline T *end()
{
return &m[N];
}
inline const T *get_ptr() const
{
return m;
}
inline T *get_ptr()
{
return m;
}
inline void set_all(const T &val)
{
for (uint32_t i = 0; i < N; i++)
m[i] = val;
}
inline void bitwise_zero(void)
{
utils::zero_this(this);
}
inline void sort(void)
{
//std::sort(begin(), end());
introsort(begin(), end());
}
private:
T m[N];
};
template <typename T, uint32_t W, uint32_t H>
class fixed_array2D
{
public:
enum
{
total_elements = W * H,
array_width = W,
array_height = H
};
typedef T value_type;
typedef T &reference;
typedef const T &const_reference;
typedef T *pointer;
typedef const T *const_pointer;
inline fixed_array2D()
{
set_all(T());
}
inline fixed_array2D(const fixed_array2D &other)
{
*this = other;
}
inline fixed_array2D &operator=(const fixed_array2D &rhs)
{
if (this == &rhs)
return *this;
for (uint32_t i = 0; i < total_elements; i++)
m_vec[i] = rhs.m_vec[i];
return *this;
}
inline void clear()
{
set_all(T());
}
void resize(uint32_t width, uint32_t height, bool preserve = true)
{
(void)width, (void)height, (void)preserve;
// blindly ignoring resize for compat with vector2D
}
inline uint32_t width() const
{
return array_width;
}
inline uint32_t height() const
{
return array_height;
}
inline uint32_t size() const
{
return total_elements;
}
inline uint32_t size_in_bytes() const
{
return total_elements * sizeof(T);
}
inline const T *get_ptr() const
{
return m_vec;
}
inline T *get_ptr()
{
return m_vec;
}
inline const T &operator[](uint32_t i) const
{
return m_vec[math::open_range_check(i, total_elements)];
}
inline T &operator[](uint32_t i)
{
return m_vec[math::open_range_check(i, total_elements)];
}
inline const T &operator()(uint32_t x, uint32_t y) const
{
VOGL_ASSERT((x < array_width) && (y < array_height));
return m_vec[x + y * array_width];
}
inline T &operator()(uint32_t x, uint32_t y)
{
VOGL_ASSERT((x < array_width) && (y < array_height));
return m_vec[x + y * array_width];
}
inline const T &at(uint32_t x, uint32_t y) const
{
if ((x >= array_width) || (y >= array_height))
{
VOGL_ASSERT_ALWAYS;
return m_vec[0];
}
return m_vec[x + y * array_width];
}
inline T &at(uint32_t x, uint32_t y)
{
if ((x >= array_width) || (y >= array_height))
{
VOGL_ASSERT_ALWAYS;
return m_vec[0];
}
return m_vec[x + y * array_width];
}
inline const T &at_clamped(int x, int y) const
{
x = math::clamp<int>(x, 0, array_width - 1);
y = math::clamp<int>(y, 0, array_height - 1);
return m_vec[x + y * array_width];
}
inline T &at_clamped(int x, int y)
{
x = math::clamp<int>(x, 0, array_width - 1);
y = math::clamp<int>(y, 0, array_height - 1);
return m_vec[x + y * array_width];
}
inline const T &at_wrapped(int x, int y) const
{
x = math::posmod(x, array_width);
y = math::posmod(y, array_height);
return m_vec[x + y * array_width];
}
inline T &at_wrapped(int x, int y)
{
x = math::posmod(x, array_width);
y = math::posmod(y, array_height);
return m_vec[x + y * array_width];
}
inline void swap(fixed_array2D &other)
{
m_vec.swap(other.m_vec);
std::swap(array_width, other.array_width);
std::swap(array_height, other.array_height);
}
inline void set_all(const T &x)
{
for (uint32_t i = 0; i < total_elements; i++)
m_vec[i] = x;
}
inline void bitwise_zero(void)
{
utils::zero_this(this);
}
inline void extract_block_clamped(fixed_array2D &dst, uint32_t dst_x, uint32_t dst_y, int src_x, int src_y, uint32_t w, uint32_t h) const
{
for (uint32_t y = 0; y < h; y++)
for (uint32_t x = 0; x < w; x++)
dst.at(dst_x + x, dst_y + y) = at_clamped(src_x + x, src_y + y);
}
inline void extract_block_wrapped(fixed_array2D &dst, uint32_t dst_x, uint32_t dst_y, int src_x, int src_y, uint32_t w, uint32_t h) const
{
for (uint32_t y = 0; y < h; y++)
for (uint32_t x = 0; x < w; x++)
dst.at(dst_x + x, dst_y + y) = at_wrapped(src_x + x, src_y + y);
}
inline bool operator==(const fixed_array2D &rhs) const
{
for (uint32_t i = 0; i < total_elements; i++)
if (m_vec[i] != rhs.m_vec[i])
return false;
return true;
}
private:
T m_vec[W * H];
};
} // namespace vogl
|
{
"pile_set_name": "Github"
}
|
import maya.cmds as mc
import copy
def setDrivenKeyToRemapValue(animCurve,remapValueNode='',interpType=3,deleteAnimCurve=True,lockPosition=True,lockValue=False):
'''
Convert a set driven key setup to a remapValue node.
Each key on the animCurve node is represented as widget on the remapValue ramp control.
Incoming and outgoing curve connections will be replaced with equivalent remapValue connections.
@param animCurve: The animCurve to convert to a remapValue node
@type animCurve: str
@param remapValueNode: Name an existing remapValue node to use instead of creating a new one.
@type remapValueNode: str
@param interpType: Default ramp interpolation type.
@type interpType: int
@param deleteAnimCurve: Delete animCurve node after disconnection
@type deleteAnimCurve: bool
@param lockPosition: Lock ramp widget position values
@type lockPosition: bool
@param lockValue: Lock ramp widget float values
@type lockValue: bool
'''
# Checks
if not mc.objExists(animCurve):
raise Exception('AnimCurve node "'+animCurve+'" does not exist!!')
if remapValueNode and not mc.objExists(remapValueNode):
raise Exception('RemapValue node "'+remapValueNode+'" does not exist!!')
# Get connections to animCurve
inConn = mc.listConnections(animCurve+'.input',s=True,d=False,p=True)
outConn = mc.listConnections(animCurve+'.output',s=False,d=True,p=True)
# Get keyframe data
valList = mc.keyframe(animCurve,q=True,vc=True)
floatList = mc.keyframe(animCurve,q=True,fc=True)
# Get min/max input and output values
orderValList = copy.deepcopy(valList)
orderFloatList = copy.deepcopy(floatList)
orderValList.sort()
orderFloatList.sort()
minVal = orderValList[0]
maxVal = orderValList[-1]
minFloat = orderFloatList[0]
maxFloat = orderFloatList[-1]
# Create remapValue node
if not remapValueNode:
remapValueNode = mc.createNode('remapValue',n=animCurve+'_remapValue')
# Set Remap attribute values
mc.setAttr(remapValueNode+'.inputMin',minFloat)
mc.setAttr(remapValueNode+'.inputMax',maxFloat)
mc.setAttr(remapValueNode+'.outputMin',minVal)
mc.setAttr(remapValueNode+'.outputMax',maxVal)
# Remove existing ramp widgets
indexList = range(mc.getAttr(remapValueNode+'.value',s=True))
indexList.reverse()
for i in indexList:
mc.removeMultiInstance(remapValueNode+'.value['+str(i)+']',b=True)
# Set ramp widgets based on keys
valRange = maxVal - minVal
floatRange = maxFloat - minFloat
# Check zero values
if valRange < 0.0001: valRange = 0.0001
if floatRange < 0.0001: floatRange = 0.0001
# Iterate through keys
for i in range(len(valList)):
val = (valList[i] - minVal)/valRange
flt = (floatList[i] - minFloat)/floatRange
mc.setAttr(remapValueNode+'.value['+str(i)+'].value_Position',flt)
mc.setAttr(remapValueNode+'.value['+str(i)+'].value_FloatValue',val)
mc.setAttr(remapValueNode+'.value['+str(i)+'].value_Interp',interpType)
if lockPosition:
mc.setAttr(remapValueNode+'.value['+str(i)+'].value_Position',l=True)
if lockValue:
mc.setAttr(remapValueNode+'.value['+str(i)+'].value_FloatValue',l=True)
# Replace animCurve connections
mc.connectAttr(inConn[0],remapValueNode+'.inputValue',f=True)
mc.connectAttr(remapValueNode+'.outValue',outConn[0],f=True)
# Delete unused animCurve
if deleteAnimCurve: mc.delete(animCurve)
# Return result
return remapValueNode
|
{
"pile_set_name": "Github"
}
|
var test = require('tape');
var find = require('../');
test('cities', function (t) {
t.plan(3);
find('oakland', function (err, rows) {
t.equal(rows[0].adminCode, 'CA');
t.equal(rows[0].lat, 37.80437);
t.equal(rows[0].lon, -122.2708);
});
});
test('US city with state', function (t) {
t.plan(3);
find('oakland, ca', function (err, rows) {
t.equal(rows[0].adminCode, 'CA');
t.equal(rows[0].lat, 37.80437);
t.equal(rows[0].lon, -122.2708);
});
});
test('US city with full state name', function (t) {
t.plan(3);
find('oakland, california', function (err, rows) {
t.equal(rows[0].adminCode, 'CA');
t.equal(rows[0].lat, 37.80437);
t.equal(rows[0].lon, -122.2708);
});
});
test('province name', function (t) {
t.plan(12);
find('vancouver, bc', function (err, rows) {
t.equal(rows.length, 1);
t.equal(rows[0].country, 'CA');
});
find('vancouver, ca', function (err, rows) {
t.equal(rows.length, 1);
t.equal(rows[0].country, 'CA');
});
find('vancouver, bc, canada', function (err, rows) {
t.equal(rows.length, 1);
t.equal(rows[0].country, 'CA');
});
find('vancouver, wa', function (err, rows) {
t.equal(rows.length, 1);
t.equal(rows[0].country, 'US');
t.equal(rows[0].adminCode, 'WA');
});
find('vancouver, us', function (err, rows) {
t.equal(rows.length, 1);
t.equal(rows[0].country, 'US');
t.equal(rows[0].adminCode, 'WA');
});
});
test('ad-hoc abbreviation', function (t) {
t.plan(4);
find('oakland, cali.', function (err, rows) {
t.equal(rows.length, 1);
t.equal(rows[0].adminCode, 'CA');
t.equal(rows[0].lat, 37.80437);
t.equal(rows[0].lon, -122.2708);
});
});
test('special abbreviations', function (t) {
t.plan(7);
find('oakland, california, usa', function (err, rows) {
t.equal(rows.length, 1);
t.equal(rows[0].adminCode, 'CA');
t.equal(rows[0].lat, 37.80437);
t.equal(rows[0].lon, -122.2708);
});
find('london, uk', function (err, rows) {
t.equal(rows[0].country, 'GB');
});
find('london, usa', function (err, rows) {
t.equal(rows[0].name, 'London');
t.equal(rows[0].country, 'US');
});
});
test('better pivots', function (t) {
t.plan(3);
find('sfo', function (err, rows) {
t.equal(rows[0].adminCode, 'CA');
t.equal(rows[0].country, 'US');
t.equal(rows[0].name, 'San Francisco');
});
});
test('san francisco', function (t) {
t.plan(3);
find('san francisco, usa', function (err, rows) {
t.equal(rows[0].adminCode, 'CA');
t.equal(rows[0].country, 'US');
t.equal(rows[0].name, 'San Francisco');
});
});
test('london', function (t) {
t.plan(2);
find('london', function (err, rows) {
t.equal(rows[0].country, 'GB');
t.equal(rows[0].name, 'London');
});
});
|
{
"pile_set_name": "Github"
}
|
--
UPDATE `creature_template` SET `unit_flags2`=`unit_flags2`|2048 WHERE `entry` IN (48270,42347);
UPDATE `creature_template` SET `unit_flags2`=`unit_flags2`|134217728 WHERE `entry` IN (47774,47775,47776);
UPDATE `creature_template` SET `unit_class`=4 WHERE `entry` IN (49050,49047,49053,49056);
UPDATE `creature_template` SET `faction`=14 WHERE `entry` IN (51101,51102,51103);
UPDATE `creature_template` SET `npcflag`=`npcflag`|16777216 WHERE `entry` IN (51101,51102,51103);
UPDATE `creature_template` SET `unit_flags2`=`unit_flags2`|134217728 WHERE `entry` IN (51104,51105,51106);
UPDATE `creature_template` SET `unit_flags2`=`unit_flags2`|2048 WHERE `entry` IN (42166,42178,42179,42180);
UPDATE `creature_template` SET `unit_class`=4 WHERE `entry` IN (49051,49048,49054,49057);
UPDATE `creature_template` SET `unit_class`=4 WHERE `entry` IN (49052,49049,49055,49058);
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` IN (51101,51102,51103);
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`) VALUES
(51101, 41020, 1),
(51102, 41020, 1),
(51103, 41020, 1);
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE pov SYSTEM "/usr/share/cgc-docs/replay.dtd">
<pov>
<cbid>service</cbid>
<replay>
<write><data>UUUUUUUU</data></write>
<read><delim>\x0a</delim><match><data>What is your name?\x0a</data></match></read>
<write><data>User\x0a</data></write>
<read><delim>\x0a</delim><match><data>Hi\x2c User\x0a</data></match></read>
<read><delim>\x3e</delim><match><pcre>.*?0 B ></pcre></match></read>
<write><data>9 12\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?1 B ></pcre></match></read>
<write><data>10 17\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?2 B ></pcre></match></read>
<write><data>6 4\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?3 B ></pcre></match></read>
<write><data>6 17\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?4 B ></pcre></match></read>
<write><data>8 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?5 B ></pcre></match></read>
<write><data>19 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?5 B ></pcre></match></read>
<write><data>0 18\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?6 B ></pcre></match></read>
<write><data>5 16\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?7 B ></pcre></match></read>
<write><data>0 8\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?8 B ></pcre></match></read>
<write><data>15 12\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?9 B ></pcre></match></read>
<write><data>7 2\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?10 B ></pcre></match></read>
<write><data>1 8\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?11 B ></pcre></match></read>
<write><data>3 16\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?12 B ></pcre></match></read>
<write><data>19 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?12 B ></pcre></match></read>
<write><data>1 9\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?13 B ></pcre></match></read>
<write><data>10 4\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?14 B ></pcre></match></read>
<write><data>11 12\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?15 B ></pcre></match></read>
<write><data>9 18\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?16 B ></pcre></match></read>
<write><data>0 9\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?17 B ></pcre></match></read>
<write><data>15 13\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?18 B ></pcre></match></read>
<write><data>19 10\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?18 B ></pcre></match></read>
<write><data>8 15\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?19 B ></pcre></match></read>
<write><data>9 3\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?20 B ></pcre></match></read>
<write><data>13 19\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?20 B ></pcre></match></read>
<write><data>17 5\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?20 B ></pcre></match></read>
<write><data>10 4\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?20 B ></pcre></match></read>
<write><data>5 13\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?21 B ></pcre></match></read>
<write><data>12 9\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?22 B ></pcre></match></read>
<write><data>8 8\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?23 B ></pcre></match></read>
<write><data>7 15\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?24 B ></pcre></match></read>
<write><data>19 5\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?24 B ></pcre></match></read>
<write><data>17 8\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?25 B ></pcre></match></read>
<write><data>9 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?26 B ></pcre></match></read>
<write><data>8 17\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?27 B ></pcre></match></read>
<write><data>3 2\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?28 B ></pcre></match></read>
<write><data>3 1\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?28 B ></pcre></match></read>
<write><data>4 0\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?29 B ></pcre></match></read>
<write><data>11 5\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?30 B ></pcre></match></read>
<write><data>5 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?31 B ></pcre></match></read>
<write><data>8 3\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?32 B ></pcre></match></read>
<write><data>14 5\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?33 B ></pcre></match></read>
<write><data>17 14\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?34 B ></pcre></match></read>
<write><data>12 17\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?35 B ></pcre></match></read>
<write><data>10 8\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?36 B ></pcre></match></read>
<write><data>19 12\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?36 B ></pcre></match></read>
<write><data>17 15\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?37 B ></pcre></match></read>
<write><data>0 16\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?38 B ></pcre></match></read>
<write><data>5 3\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?39 B ></pcre></match></read>
<write><data>1 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?40 B ></pcre></match></read>
<write><data>2 8\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?41 B ></pcre></match></read>
<write><data>2 10\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?42 B ></pcre></match></read>
<write><data>13 0\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?43 B ></pcre></match></read>
<write><data>1 1\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?44 B ></pcre></match></read>
<write><data>6 2\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?44 B ></pcre></match></read>
<write><data>17 10\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?45 B ></pcre></match></read>
<write><data>6 13\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?46 B ></pcre></match></read>
<write><data>6 0\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?46 B ></pcre></match></read>
<write><data>8 1\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?47 B ></pcre></match></read>
<write><data>4 7\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?48 B ></pcre></match></read>
<write><data>pass\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?49 B ></pcre></match></read>
<write><data>1 17\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?50 B ></pcre></match></read>
<write><data>0 4\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?51 B ></pcre></match></read>
<write><data>3 12\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?52 B ></pcre></match></read>
<write><data>6 1\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?52 B ></pcre></match></read>
<write><data>7 15\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?52 B ></pcre></match></read>
<write><data>12 7\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?53 B ></pcre></match></read>
<write><data>7 7\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?54 B ></pcre></match></read>
<write><data>11 10\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?55 B ></pcre></match></read>
<write><data>0 16\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?55 B ></pcre></match></read>
<write><data>7 9\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?56 B ></pcre></match></read>
<write><data>6 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?57 B ></pcre></match></read>
<write><data>8 4\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?58 B ></pcre></match></read>
<write><data>14 5\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?58 B ></pcre></match></read>
<write><data>8 5\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?59 B ></pcre></match></read>
<write><data>2 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?60 B ></pcre></match></read>
<write><data>11 6\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?60 B ></pcre></match></read>
<write><data>pass\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?61 B ></pcre></match></read>
<write><data>9 14\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?62 B ></pcre></match></read>
<write><data>2 4\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?63 B ></pcre></match></read>
<write><data>6 9\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?64 B ></pcre></match></read>
<write><data>13 9\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?64 B ></pcre></match></read>
<write><data>12 17\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?64 B ></pcre></match></read>
<write><data>13 9\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?64 B ></pcre></match></read>
<write><data>7 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?65 B ></pcre></match></read>
<write><data>19 1\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?65 B ></pcre></match></read>
<write><data>5 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?65 B ></pcre></match></read>
<write><data>17 19\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?65 B ></pcre></match></read>
<write><data>11 10\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?65 B ></pcre></match></read>
<write><data>19 4\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?65 B ></pcre></match></read>
<write><data>1 19\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?65 B ></pcre></match></read>
<write><data>9 5\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?65 B ></pcre></match></read>
<write><data>8 7\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?66 B ></pcre></match></read>
<write><data>0 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?67 B ></pcre></match></read>
<write><data>16 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?68 B ></pcre></match></read>
<write><data>17 3\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?68 B ></pcre></match></read>
<write><data>4 1\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?68 B ></pcre></match></read>
<write><data>7 0\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?68 B ></pcre></match></read>
<write><data>16 2\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?69 B ></pcre></match></read>
<write><data>1 7\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?70 B ></pcre></match></read>
<write><data>3 19\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?70 B ></pcre></match></read>
<write><data>12 5\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?71 B ></pcre></match></read>
<write><data>11 0\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?71 B ></pcre></match></read>
<write><data>2 10\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?71 B ></pcre></match></read>
<write><data>13 5\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?71 B ></pcre></match></read>
<write><data>12 13\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?72 B ></pcre></match></read>
<write><data>14 11\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?73 B ></pcre></match></read>
<write><data>7 15\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?73 B ></pcre></match></read>
<write><data>12 4\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?73 B ></pcre></match></read>
<write><data>6 9\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?73 B ></pcre></match></read>
<write><data>1 0\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?74 B ></pcre></match></read>
<write><data>16 10\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?74 B ></pcre></match></read>
<write><data>4 8\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?75 B ></pcre></match></read>
<write><data>18 14\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?76 B ></pcre></match></read>
<write><data>17 6\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?76 B ></pcre></match></read>
<write><data>0 15\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?77 B ></pcre></match></read>
<write><data>13 13\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?78 B ></pcre></match></read>
<write><data>3 9\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?79 B ></pcre></match></read>
<write><data>8 3\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?79 B ></pcre></match></read>
<write><data>pass\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?80 B ></pcre></match></read>
<write><data>18 16\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?81 B ></pcre></match></read>
<write><data>10 8\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?81 B ></pcre></match></read>
<write><data>14 15\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?82 B ></pcre></match></read>
<write><data>13 19\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?82 B ></pcre></match></read>
<write><data>5 2\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?82 B ></pcre></match></read>
<write><data>13 3\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?82 B ></pcre></match></read>
<write><data>pass\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?83 B ></pcre></match></read>
<write><data>18 8\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?83 B ></pcre></match></read>
<write><data>7 10\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?84 B ></pcre></match></read>
<write><data>pass\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?85 B ></pcre></match></read>
<write><data>15 16\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?86 B ></pcre></match></read>
<write><data>19 6\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?86 B ></pcre></match></read>
<write><data>0 2\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?87 B ></pcre></match></read>
<write><data>10 14\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?88 B ></pcre></match></read>
<write><data>15 0\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?89 B ></pcre></match></read>
<write><data>15 4\x0a</data></write>
<read><delim>\x3e</delim><match><pcre>.*?90 B ></pcre></match></read>
<write><data>pass\x0a</data></write>
<read><delim>User</delim><match><pcre>.*?Game Over Stones Exhausted
You are a Winner, User</pcre></match></read>
</replay>
</pov>
|
{
"pile_set_name": "Github"
}
|
# /etc/nsswitch.conf
passwd: files
group: files
shadow: files
hosts: files dns
networks: files dns
protocols: files
services: files
ethers: files
rpc: files
|
{
"pile_set_name": "Github"
}
|
/*
* balde: A microframework for C based on GLib and bad intentions.
* Copyright (C) 2013-2017 Rafael G. Martins <[email protected]>
*
* This program can be distributed under the terms of the LGPL-2 License.
* See the file COPYING.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
#include <glib.h>
#include "balde.h"
#include "balde-private.h"
#include "app.h"
BALDE_API gchar*
balde_tmpl_url_for(balde_app_t *app, balde_request_t *request,
const gchar *endpoint, gboolean external, ...)
{
va_list params;
va_start(params, external);
gchar *rv = balde_app_url_forv(app, request, endpoint, params);
va_end(params);
return rv;
}
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.server.om;
import static android.content.om.OverlayInfo.STATE_DISABLED;
import static android.content.om.OverlayInfo.STATE_ENABLED;
import static android.content.om.OverlayInfo.STATE_MISSING_TARGET;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import android.content.om.OverlayInfo;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.List;
import java.util.Map;
@RunWith(AndroidJUnit4.class)
public class OverlayManagerServiceImplTests extends OverlayManagerServiceImplTestsBase {
private static final String OVERLAY = "com.dummy.overlay";
private static final String TARGET = "com.dummy.target";
private static final int USER = 0;
private static final String OVERLAY2 = OVERLAY + "2";
private static final String TARGET2 = TARGET + "2";
private static final int USER2 = USER + 1;
private static final String OVERLAY3 = OVERLAY + "3";
private static final int USER3 = USER2 + 1;
@Test
public void testGetOverlayInfo() {
installNewPackage(overlay(OVERLAY, TARGET), USER);
final OverlayManagerServiceImpl impl = getImpl();
final OverlayInfo oi = impl.getOverlayInfo(OVERLAY, USER);
assertNotNull(oi);
assertEquals(oi.packageName, OVERLAY);
assertEquals(oi.targetPackageName, TARGET);
assertEquals(oi.userId, USER);
}
@Test
public void testGetOverlayInfosForTarget() {
installNewPackage(overlay(OVERLAY, TARGET), USER);
installNewPackage(overlay(OVERLAY2, TARGET), USER);
installNewPackage(overlay(OVERLAY3, TARGET), USER2);
final OverlayManagerServiceImpl impl = getImpl();
final List<OverlayInfo> ois = impl.getOverlayInfosForTarget(TARGET, USER);
assertEquals(ois.size(), 2);
assertTrue(ois.contains(impl.getOverlayInfo(OVERLAY, USER)));
assertTrue(ois.contains(impl.getOverlayInfo(OVERLAY2, USER)));
final List<OverlayInfo> ois2 = impl.getOverlayInfosForTarget(TARGET, USER2);
assertEquals(ois2.size(), 1);
assertTrue(ois2.contains(impl.getOverlayInfo(OVERLAY3, USER2)));
final List<OverlayInfo> ois3 = impl.getOverlayInfosForTarget(TARGET, USER3);
assertNotNull(ois3);
assertEquals(ois3.size(), 0);
final List<OverlayInfo> ois4 = impl.getOverlayInfosForTarget("no.such.overlay", USER);
assertNotNull(ois4);
assertEquals(ois4.size(), 0);
}
@Test
public void testGetOverlayInfosForUser() {
installNewPackage(target(TARGET), USER);
installNewPackage(overlay(OVERLAY, TARGET), USER);
installNewPackage(overlay(OVERLAY2, TARGET), USER);
installNewPackage(overlay(OVERLAY3, TARGET2), USER);
final OverlayManagerServiceImpl impl = getImpl();
final Map<String, List<OverlayInfo>> everything = impl.getOverlaysForUser(USER);
assertEquals(everything.size(), 2);
final List<OverlayInfo> ois = everything.get(TARGET);
assertNotNull(ois);
assertEquals(ois.size(), 2);
assertTrue(ois.contains(impl.getOverlayInfo(OVERLAY, USER)));
assertTrue(ois.contains(impl.getOverlayInfo(OVERLAY2, USER)));
final List<OverlayInfo> ois2 = everything.get(TARGET2);
assertNotNull(ois2);
assertEquals(ois2.size(), 1);
assertTrue(ois2.contains(impl.getOverlayInfo(OVERLAY3, USER)));
final Map<String, List<OverlayInfo>> everything2 = impl.getOverlaysForUser(USER2);
assertNotNull(everything2);
assertEquals(everything2.size(), 0);
}
@Test
public void testPriority() {
installNewPackage(overlay(OVERLAY, TARGET), USER);
installNewPackage(overlay(OVERLAY2, TARGET), USER);
installNewPackage(overlay(OVERLAY3, TARGET), USER);
final OverlayManagerServiceImpl impl = getImpl();
final OverlayInfo o1 = impl.getOverlayInfo(OVERLAY, USER);
final OverlayInfo o2 = impl.getOverlayInfo(OVERLAY2, USER);
final OverlayInfo o3 = impl.getOverlayInfo(OVERLAY3, USER);
assertOverlayInfoForTarget(TARGET, USER, o1, o2, o3);
assertTrue(impl.setLowestPriority(OVERLAY3, USER));
assertOverlayInfoForTarget(TARGET, USER, o3, o1, o2);
assertTrue(impl.setHighestPriority(OVERLAY3, USER));
assertOverlayInfoForTarget(TARGET, USER, o1, o2, o3);
assertTrue(impl.setPriority(OVERLAY, OVERLAY2, USER));
assertOverlayInfoForTarget(TARGET, USER, o2, o1, o3);
}
@Test
public void testOverlayInfoStateTransitions() {
final OverlayManagerServiceImpl impl = getImpl();
assertNull(impl.getOverlayInfo(OVERLAY, USER));
installNewPackage(overlay(OVERLAY, TARGET), USER);
assertState(STATE_MISSING_TARGET, OVERLAY, USER);
final DummyDeviceState.PackageBuilder target = target(TARGET);
installNewPackage(target, USER);
assertState(STATE_DISABLED, OVERLAY, USER);
impl.setEnabled(OVERLAY, true, USER);
assertState(STATE_ENABLED, OVERLAY, USER);
// target upgrades do not change the state of the overlay
upgradePackage(target, USER);
assertState(STATE_ENABLED, OVERLAY, USER);
uninstallPackage(TARGET, USER);
assertState(STATE_MISSING_TARGET, OVERLAY, USER);
installNewPackage(target, USER);
assertState(STATE_ENABLED, OVERLAY, USER);
}
@Test
public void testOnOverlayPackageUpgraded() {
final DummyListener listener = getListener();
final DummyDeviceState.PackageBuilder target = target(TARGET);
final DummyDeviceState.PackageBuilder overlay = overlay(OVERLAY, TARGET);
installNewPackage(target, USER);
installNewPackage(overlay, USER);
listener.count = 0;
upgradePackage(overlay, USER);
assertEquals(2, listener.count);
// upgrade to a version where the overlay has changed its target
// expect once for the old target package, once for the new target package
listener.count = 0;
final DummyDeviceState.PackageBuilder overlay2 = overlay(OVERLAY, "some.other.target");
upgradePackage(overlay2, USER);
assertEquals(3, listener.count);
listener.count = 0;
upgradePackage(overlay2, USER);
assertEquals(2, listener.count);
}
@Test
public void testListener() {
final OverlayManagerServiceImpl impl = getImpl();
final DummyListener listener = getListener();
installNewPackage(overlay(OVERLAY, TARGET), USER);
assertEquals(1, listener.count);
listener.count = 0;
installNewPackage(target(TARGET), USER);
assertEquals(1, listener.count);
listener.count = 0;
impl.setEnabled(OVERLAY, true, USER);
assertEquals(1, listener.count);
listener.count = 0;
impl.setEnabled(OVERLAY, true, USER);
assertEquals(0, listener.count);
}
}
|
{
"pile_set_name": "Github"
}
|
version 3
run PureAlohaExperiment-27-20200304-18:05:49-194568
attr configname PureAlohaExperiment
attr datetime 20200304-18:05:49
attr experiment PureAlohaExperiment
attr inifile omnetpp.ini
attr iterationvars "$numHosts=15, $iaMean=9"
attr iterationvarsf numHosts=15,iaMean=9-
attr measurement "$numHosts=15, $iaMean=9"
attr network Aloha
attr processid 194568
attr repetition 1
attr replication #1
attr resultdir results
attr runnumber 27
attr seedset 27
itervar iaMean 9
itervar numHosts 15
config cmdenv-redirect-output true
config description "Channel utilization in the function of packet generation frequency"
config repeat 2
config sim-time-limit 90min
config Aloha.numHosts 15
config Aloha.host[*].iaTime exponential(9s)
config network Aloha
config Aloha.numHosts 20
config Aloha.slotTime 0s
config Aloha.txRate 9.6kbps
config Aloha.host[*].pkLenBits 952b
config **.x "uniform(0m, 1000m)"
config **.y "uniform(0m, 1000m)"
config **.animationHoldTimeOnCollision 0s
config **.idleAnimationSpeed 1
config **.transmissionEdgeAnimationSpeed 1e-6
config **.midTransmissionAnimationSpeed 1e-1
par Aloha.server typename "\"Server\""
par Aloha.server x 425.721m
attr unit m
par Aloha.server y 480.802m
attr unit m
par Aloha.server animationHoldTimeOnCollision 0s
attr unit s
scalar Aloha.server duration 5400
statistic Aloha.server collisionLength:histogram
field count 1068
field mean 0.15271692251477
field stddev 0.035868690522737
field min 0.099232713194
field max 0.314731768715
field sum 163.10167324578
field sqrsum 26.281148273229
attr title "collision length, histogram"
bin -inf 0
bin 0.045 0
bin 0.05 0
bin 0.055 0
bin 0.06 0
bin 0.065 0
bin 0.07 0
bin 0.075 0
bin 0.08 0
bin 0.085 0
bin 0.09 0
bin 0.095 10
bin 0.1 66
bin 0.105 52
bin 0.11 56
bin 0.115 62
bin 0.12 40
bin 0.125 47
bin 0.13 49
bin 0.135 57
bin 0.14 40
bin 0.145 52
bin 0.15 46
bin 0.155 39
bin 0.16 55
bin 0.165 47
bin 0.17 43
bin 0.175 76
bin 0.18 38
bin 0.185 34
bin 0.19 62
bin 0.195 36
bin 0.2 7
bin 0.205 2
bin 0.21 3
bin 0.215 7
bin 0.22 11
bin 0.225 4
bin 0.23 2
bin 0.235 1
bin 0.24 2
bin 0.245 5
bin 0.25 1
bin 0.255 5
bin 0.26 2
bin 0.265 0
bin 0.27 1
bin 0.275 2
bin 0.28 2
bin 0.285 2
bin 0.29 0
bin 0.295 0
bin 0.3 1
bin 0.305 0
bin 0.31 1
bin 0.315 0
bin 0.32 0
bin 0.325 0
bin 0.33 0
bin 0.335 0
bin 0.34 0
bin 0.345 0
bin 0.35 0
bin 0.355 0
scalar Aloha.server collisionLength:mean 0.15271692251477
attr title "collision length, mean"
scalar Aloha.server collisionLength:sum 163.10167324578
attr title "collision length, sum"
scalar Aloha.server collisionLength:max 0.314731768715
attr title "collision length, max"
statistic Aloha.server collisionMultiplicity:histogram
field count 1068
field mean 2.1507490636704
field stddev 0.41608858451996
field min 2
field max 5
field sum 2297
field sqrsum 5125
attr source collision
attr title "collision multiplicity, histogram"
bin -inf 0
bin 1 0
bin 2 929
bin 3 119
bin 4 18
bin 5 2
bin 6 0
scalar Aloha.server collidedFrames:last 2297
attr source sum(collision)
attr title "collided frames, last"
scalar Aloha.server channelUtilization:last 0.12201648539158
attr interpolationmode linear
attr source timeavg(receive)
attr title "channel utilization, last"
scalar Aloha.server receivedFrames:last 6643
attr source sum(receive)
attr title "received frames, last"
par Aloha.host[0] typename "\"Host\""
par Aloha.host[0] txRate 9600bps
attr unit bps
par Aloha.host[0] pkLenBits 952b
attr unit b
par Aloha.host[0] iaTime exponential(9s)
attr unit s
par Aloha.host[0] slotTime 0s
attr unit s
par Aloha.host[0] x 814.584m
attr unit m
par Aloha.host[0] y 914.92m
attr unit m
par Aloha.host[0] idleAnimationSpeed 1
par Aloha.host[0] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[0] midTransmissionAnimationSpeed 0.1
par Aloha.host[0] controlAnimationSpeed true
par Aloha.host[1] typename "\"Host\""
par Aloha.host[1] txRate 9600bps
attr unit bps
par Aloha.host[1] pkLenBits 952b
attr unit b
par Aloha.host[1] iaTime exponential(9s)
attr unit s
par Aloha.host[1] slotTime 0s
attr unit s
par Aloha.host[1] x 735.397m
attr unit m
par Aloha.host[1] y 467.958m
attr unit m
par Aloha.host[1] idleAnimationSpeed 1
par Aloha.host[1] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[1] midTransmissionAnimationSpeed 0.1
par Aloha.host[1] controlAnimationSpeed true
par Aloha.host[2] typename "\"Host\""
par Aloha.host[2] txRate 9600bps
attr unit bps
par Aloha.host[2] pkLenBits 952b
attr unit b
par Aloha.host[2] iaTime exponential(9s)
attr unit s
par Aloha.host[2] slotTime 0s
attr unit s
par Aloha.host[2] x 868.003m
attr unit m
par Aloha.host[2] y 384.588m
attr unit m
par Aloha.host[2] idleAnimationSpeed 1
par Aloha.host[2] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[2] midTransmissionAnimationSpeed 0.1
par Aloha.host[2] controlAnimationSpeed true
par Aloha.host[3] typename "\"Host\""
par Aloha.host[3] txRate 9600bps
attr unit bps
par Aloha.host[3] pkLenBits 952b
attr unit b
par Aloha.host[3] iaTime exponential(9s)
attr unit s
par Aloha.host[3] slotTime 0s
attr unit s
par Aloha.host[3] x 383.381m
attr unit m
par Aloha.host[3] y 293.847m
attr unit m
par Aloha.host[3] idleAnimationSpeed 1
par Aloha.host[3] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[3] midTransmissionAnimationSpeed 0.1
par Aloha.host[3] controlAnimationSpeed true
par Aloha.host[4] typename "\"Host\""
par Aloha.host[4] txRate 9600bps
attr unit bps
par Aloha.host[4] pkLenBits 952b
attr unit b
par Aloha.host[4] iaTime exponential(9s)
attr unit s
par Aloha.host[4] slotTime 0s
attr unit s
par Aloha.host[4] x 979.457m
attr unit m
par Aloha.host[4] y 840.969m
attr unit m
par Aloha.host[4] idleAnimationSpeed 1
par Aloha.host[4] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[4] midTransmissionAnimationSpeed 0.1
par Aloha.host[4] controlAnimationSpeed true
par Aloha.host[5] typename "\"Host\""
par Aloha.host[5] txRate 9600bps
attr unit bps
par Aloha.host[5] pkLenBits 952b
attr unit b
par Aloha.host[5] iaTime exponential(9s)
attr unit s
par Aloha.host[5] slotTime 0s
attr unit s
par Aloha.host[5] x 893.194m
attr unit m
par Aloha.host[5] y 878.55m
attr unit m
par Aloha.host[5] idleAnimationSpeed 1
par Aloha.host[5] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[5] midTransmissionAnimationSpeed 0.1
par Aloha.host[5] controlAnimationSpeed true
par Aloha.host[6] typename "\"Host\""
par Aloha.host[6] txRate 9600bps
attr unit bps
par Aloha.host[6] pkLenBits 952b
attr unit b
par Aloha.host[6] iaTime exponential(9s)
attr unit s
par Aloha.host[6] slotTime 0s
attr unit s
par Aloha.host[6] x 209.715m
attr unit m
par Aloha.host[6] y 611.567m
attr unit m
par Aloha.host[6] idleAnimationSpeed 1
par Aloha.host[6] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[6] midTransmissionAnimationSpeed 0.1
par Aloha.host[6] controlAnimationSpeed true
par Aloha.host[7] typename "\"Host\""
par Aloha.host[7] txRate 9600bps
attr unit bps
par Aloha.host[7] pkLenBits 952b
attr unit b
par Aloha.host[7] iaTime exponential(9s)
attr unit s
par Aloha.host[7] slotTime 0s
attr unit s
par Aloha.host[7] x 741.828m
attr unit m
par Aloha.host[7] y 403.323m
attr unit m
par Aloha.host[7] idleAnimationSpeed 1
par Aloha.host[7] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[7] midTransmissionAnimationSpeed 0.1
par Aloha.host[7] controlAnimationSpeed true
par Aloha.host[8] typename "\"Host\""
par Aloha.host[8] txRate 9600bps
attr unit bps
par Aloha.host[8] pkLenBits 952b
attr unit b
par Aloha.host[8] iaTime exponential(9s)
attr unit s
par Aloha.host[8] slotTime 0s
attr unit s
par Aloha.host[8] x 663.143m
attr unit m
par Aloha.host[8] y 631.973m
attr unit m
par Aloha.host[8] idleAnimationSpeed 1
par Aloha.host[8] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[8] midTransmissionAnimationSpeed 0.1
par Aloha.host[8] controlAnimationSpeed true
par Aloha.host[9] typename "\"Host\""
par Aloha.host[9] txRate 9600bps
attr unit bps
par Aloha.host[9] pkLenBits 952b
attr unit b
par Aloha.host[9] iaTime exponential(9s)
attr unit s
par Aloha.host[9] slotTime 0s
attr unit s
par Aloha.host[9] x 886.801m
attr unit m
par Aloha.host[9] y 348.527m
attr unit m
par Aloha.host[9] idleAnimationSpeed 1
par Aloha.host[9] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[9] midTransmissionAnimationSpeed 0.1
par Aloha.host[9] controlAnimationSpeed true
par Aloha.host[10] typename "\"Host\""
par Aloha.host[10] txRate 9600bps
attr unit bps
par Aloha.host[10] pkLenBits 952b
attr unit b
par Aloha.host[10] iaTime exponential(9s)
attr unit s
par Aloha.host[10] slotTime 0s
attr unit s
par Aloha.host[10] x 858.013m
attr unit m
par Aloha.host[10] y 817.951m
attr unit m
par Aloha.host[10] idleAnimationSpeed 1
par Aloha.host[10] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[10] midTransmissionAnimationSpeed 0.1
par Aloha.host[10] controlAnimationSpeed true
par Aloha.host[11] typename "\"Host\""
par Aloha.host[11] txRate 9600bps
attr unit bps
par Aloha.host[11] pkLenBits 952b
attr unit b
par Aloha.host[11] iaTime exponential(9s)
attr unit s
par Aloha.host[11] slotTime 0s
attr unit s
par Aloha.host[11] x 749.262m
attr unit m
par Aloha.host[11] y 4.90548m
attr unit m
par Aloha.host[11] idleAnimationSpeed 1
par Aloha.host[11] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[11] midTransmissionAnimationSpeed 0.1
par Aloha.host[11] controlAnimationSpeed true
par Aloha.host[12] typename "\"Host\""
par Aloha.host[12] txRate 9600bps
attr unit bps
par Aloha.host[12] pkLenBits 952b
attr unit b
par Aloha.host[12] iaTime exponential(9s)
attr unit s
par Aloha.host[12] slotTime 0s
attr unit s
par Aloha.host[12] x 870.145m
attr unit m
par Aloha.host[12] y 357.012m
attr unit m
par Aloha.host[12] idleAnimationSpeed 1
par Aloha.host[12] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[12] midTransmissionAnimationSpeed 0.1
par Aloha.host[12] controlAnimationSpeed true
par Aloha.host[13] typename "\"Host\""
par Aloha.host[13] txRate 9600bps
attr unit bps
par Aloha.host[13] pkLenBits 952b
attr unit b
par Aloha.host[13] iaTime exponential(9s)
attr unit s
par Aloha.host[13] slotTime 0s
attr unit s
par Aloha.host[13] x 186.756m
attr unit m
par Aloha.host[13] y 1.4567m
attr unit m
par Aloha.host[13] idleAnimationSpeed 1
par Aloha.host[13] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[13] midTransmissionAnimationSpeed 0.1
par Aloha.host[13] controlAnimationSpeed true
par Aloha.host[14] typename "\"Host\""
par Aloha.host[14] txRate 9600bps
attr unit bps
par Aloha.host[14] pkLenBits 952b
attr unit b
par Aloha.host[14] iaTime exponential(9s)
attr unit s
par Aloha.host[14] slotTime 0s
attr unit s
par Aloha.host[14] x 325.567m
attr unit m
par Aloha.host[14] y 67.3871m
attr unit m
par Aloha.host[14] idleAnimationSpeed 1
par Aloha.host[14] transmissionEdgeAnimationSpeed 1e-06
par Aloha.host[14] midTransmissionAnimationSpeed 0.1
par Aloha.host[14] controlAnimationSpeed true
par Aloha typename "\"Aloha\""
par Aloha numHosts 15
par Aloha txRate 9600bps
attr unit bps
par Aloha slotTime 0ms
attr unit ms
|
{
"pile_set_name": "Github"
}
|
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_CloudShell_StartEnvironmentResponse extends Google_Model
{
protected $environmentType = 'Google_Service_CloudShell_Environment';
protected $environmentDataType = '';
/**
* @param Google_Service_CloudShell_Environment
*/
public function setEnvironment(Google_Service_CloudShell_Environment $environment)
{
$this->environment = $environment;
}
/**
* @return Google_Service_CloudShell_Environment
*/
public function getEnvironment()
{
return $this->environment;
}
}
|
{
"pile_set_name": "Github"
}
|
{
"name-u": "Name:",
"clan-u": "Clan:",
"crab-u": "Crab",
"crane-u": "Crane",
"dragon-u": "Dragon",
"lion-u": "Lion",
"mantis-u": "Mantis",
"phoenix-u": "Phoenix",
"scorpion-u": "Scorpion",
"spider-u": "Spider",
"unicorn-u": "Unicorn",
"ronin-u": "Ronin",
"misc-u": "Misc",
"family-u": "Family",
"school-u": "School",
"rank-u": "Rank",
"experience-u": "Experience",
"insight-u": "Insight",
"courtier-bonus-u": "Courtier Bonus",
"0-to-insight-u": "0 to Insight",
"+3-to-insight-u": "+3 to Insight",
"+10-to-insight-u": "+10 to Insight",
"etiquette-bonus-u": "Etiquette Bonus",
"traits-u": "",
"skills-u": "Skills",
"weapons-u": "무기",
"spells-u": "Spells",
"air-u": "Air",
"reflexes-u": "Reflexes",
"awareness-u": "주의력",
"earth-u": "Earth",
"stamina-u": "체력",
"willpower-u": "의지력",
"fire-u": "Fire",
"agility-u": "민첩함",
"intelligence-u": "Intelligence",
"water-u": "Water",
"strength-u": "Strength",
"perception-u": "Perception",
"void-u": "Void",
"void-spent-u": "Void Spent",
"sex-u": "Sex:",
"age-u": "Age:",
"height-u": "Height:",
"weight-u": "Weight:",
"hair-u": "Hair:",
"eyes-u": "Eyes:",
"father-u": "Father:",
"mother-u": "Mother:",
"honor-u": "Honor",
"glory-u": "Glory",
"status-u": "Status",
"taint-u": "Taint",
"wounds-u": "부상",
"lethality-u": "Lethality",
"earth-x2-u": "Earth x2",
"earth-x3-u": "Earth x3",
"earth-x4-u": "Earth x4",
"earth-x5-u": "Earth x5",
"wound-level-u": "Wound Level",
"total-u": "총",
"healthy-u": "Healthy (+0)",
"nicked-u": "Nicked (+3)",
"grazed-u": "Grazed (+5)",
"hurt-u": "Hurt (+10)",
"injured-u": "Injured (+15)",
"crippled-u": "Crippled (+20)",
"down-u": "Down (+40)",
"out-u": "Out",
"initiative-u": "Initiative",
"armor-TN-u": "Armor TN",
"armor-u": "Armor",
"unmodified-u": "Unmodified",
"base-TN-u": "Base TN",
"quality-u": "Quality",
"modifiers-u": "Modifiers",
"armor-+-u": "Armor +",
"reduction-u": "Reduction",
"current-TN-u": "Current TN",
"notes-u": "Notes",
"school-techniques-u": "School Techniques",
"avantages-u": "Advantages",
"disadvantages-u": "Disadvantages",
"background-u": "배경",
"high-skills-u": "High Skills",
"sentence-ute-u": "U = Untrained Roll | T = Trained Roll | E = Emphasis Roll",
"skill-name-u": "Skill Name",
"trait-u": "Trait",
"roll-u": "+Roll",
"keep-u": "+Keep",
"emphases-u": "Emphases",
"U-u": "U",
"T-u": "T",
"E-u": "E",
"sub-type-u": "Sub-Type",
"acting-u": "Acting",
"artisant-u": "Artisan",
"calligraphy-u": "Calligraphy",
"courtier-u": "Courtier",
"divination-u": "Divination",
"etiquette-u": "Etiquette",
"games-u": "게임",
"investigation-u": "Investigation",
"lore-u": "Lore",
"medicine-u": "Medicine",
"meditation-u": "Meditation",
"perform-u": "Perform",
"sincerity-u": "Sincerity",
"spellcraft-u": "Spellcraft",
"tea-ceremony-u": "Tea Ceremony",
"bugei-skills-u": "Bugei Skills",
"+roll-u": "+Roll",
"+keep-u": "+Keep",
"athletics-u": "Athletics",
"battle-u": "Battle",
"defense-u": "저지",
"horsemanship-u": "Horsemanship",
"hunting-u": "Hunting",
"iaijutsu-u": "Iaijutsu",
"jiujutsu-u": "Jiujutsu",
"chain-weapons-u": "Chain Weapons",
"heavy-weapons-u": "Heavy Weapons",
"kenjutsu-u": "Kenjutsu",
"knives-u": "Knives",
"kyujutsu-u": "Kyujutsu",
"ninjutsu-u": "Ninjutsu",
"polearms-u": "Polearms",
"spears-u": "Spears",
"staves-u": "Staves",
"war-fan-u": "War Fan",
"merchant-skills-u": "Merchant Skills",
"animal-handling-u": "Animal Handling",
"commerce-u": "Commerce",
"craft-u": "공예",
"engineering-u": "Engineering",
"sailing-u": "Sailing",
"low-skills-u": "Low Skills",
"forgery-u": "Forgery",
"intimidation-u": "Intimidation",
"sleight-of-hand-u": "Sleight of Hand",
"stealth-u": "Stealth",
"temptation-u": "Temptation",
"melee-weapons-u": "Melee Weapons",
"weapon-u": "무기",
"skill-u": "Skill",
"attack-bonus-roll-u": "Attack Bonus Roll",
"attack-bonus-keep-u": "Attack Bonus Keep",
"weapon-damage-roll-u": "Weapon Damage Roll",
"weapon-damage-keep-u": "Weapon Damage Keep",
"damage-u": "Damage",
"bows-u": "Bows",
"bow-u": "Bow",
"bow-roll-bonus-u": "Bow Roll Bonus",
"bow-keep-bonus-u": "Bow Keep Bonus",
"arrow-damage-roll-u": "Arrow Damage Roll",
"arrow-damage-keep-u": "Arrow Damage Keep",
"shugenja-school-rank-u": "Shugenja School Rank:",
"element-u": "Element",
"spells-used-u": "Spells Used",
"max-spell-slots-u": "Max Spell Slots",
"affinity/deficiency-u": "Affinity/Deficiency",
"none-u": "없음",
"affinity-u": "Affinity",
"daffinity-u": "Double Affinity",
"deficiency-u": "Deficiency",
"bonus-u": "Bonus",
"ring-u": "Ring:",
"level-u": "Level:",
"range-u": "Range:",
"aoe-u": "AoE:",
"duration-u": "Duration",
"raises-u": "Raises",
"cast-u": "Cast",
"sentence-spell-warning-u": "Make sure that both Rings have the same value. Otherwise, Affinities will not display properly.",
"school-u?": "School?",
"attack-bonus-added-u": "Flat Attack Bonus",
"weapon-damage-bonus-u": "Flat Damage Bonus",
"simple-u": "Simple Action?",
"bow-bonus-added-u": "Flat Bow Bonus",
"total-experience-u": "Total Experience",
"available-experience-u": "Available Experience",
"calculate-rank-u": "Calulate Rank",
"additional-ranks-u": "Additional Ranks",
"type-u": "종류",
"roll-keep-bonus-u": "Roll/Keep Bonus",
"additional-+-u": "Additional +",
"bonus-wounds-u": "+Wounds / Level",
"penalty-u": "Penalty",
"equipment-u": "Equipment and Money",
"allies-enemies-u": "Allies and Enemies",
"description-u": "Description:",
"universal-u": "Universal",
"void-bonus-u": "Void/Bonus",
"spell-bonus-roll-u": "Bonus Roll:",
"spell-bonus-keep-u": "Bonus Keep:",
"spell-bonus-added-u": "Flat Bonus:",
"keyword-u": "Keyword:",
"information-u": "Information",
"damage-roll-u": "Damage Roll:",
"damage-keep-u": "Damage Keep:",
"vitals-u": "Vitals"
}
|
{
"pile_set_name": "Github"
}
|
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdbool.h>
#include <stdint.h>
#include "utf8.h"
static const uint8_t utf8_offset[] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0,
};
bool is_structurally_valid_utf8(const char* buf, int len) {
int i, j;
uint8_t offset;
i = 0;
while (i < len) {
offset = utf8_offset[(uint8_t)buf[i]];
if (offset == 0 || i + offset > len) {
return false;
}
for (j = i + 1; j < i + offset; j++) {
if ((buf[j] & 0xc0) != 0x80) {
return false;
}
}
i += offset;
}
return i == len;
}
|
{
"pile_set_name": "Github"
}
|
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: GPen.java
package acm.graphics;
import acm.util.MediaTools;
import java.awt.Image;
class PenImage
{
PenImage()
{
}
public static Image getImage()
{
return MediaTools.createImage(HEX_DATA);
}
private static final String HEX_DATA[] = {
"4749463839614F006500F70000FFFFFF9800983399999898", "00111111222222000054CBFFCB0032980033660033CC0033", "FE00323266330066660000659800989800CC9900FE993298", "00659800CC0099FE0098659898999999CC9900FE98009800", "329800659900CC9800FE3399CB3399FF9999339898659832", "0098650099339998659833CB9833FF9999CC0099FE003366", "99656698CC9898FF99993232003366003200323300663200", "9833339965009866339900663300983200666600986500CC", "3300FE3200CC6600FE65CCCC98CCFF99FFCC99FFFF993300", "CC3200FE6600CC6500FECC0033CC0066FE0032FE00653399",
"33339966669933669865CC00CCCB00FEFE00CBFE00FE6699", "CC6598FF9898CC9999FFCB9833CC9966FF9933FF98653333", "33326532323265326565660033653232660066653265CC33", "00CC6600FE3200FE65000066CC0099CC0066FE0098FE00CC", "CC00FECB00CCFE00FEFE33CC0033FE0066CC0066FE00CB33", "98CC6699FF3399FF659866CC9965FF9898CC9899FF99CCCC", "00CCFE00FECB00FEFE009933339966339933669865659833", "CB9966CC9933FF9865FF33CBCB33FFCC33CCFF33FFFF99CB", "3399FF3399CC6698FF65CC98CCCCCCCCCC99FFCBCBFFFF99", "CCFFCBCBFF99FFFFCBFF3333CB3366CB3333FF3366FF6533",
"CB6666CC6633FF6565FFCB3333CB6533CB3365CC6666FF33", "33FF6633FF3366FF656533CB3333FF3333CB6633FF6666CB", "3366FF3366CC6665FF65CB33CBCC66CCCC33FFCC65FFFF33", "CCFF65CCFF33FFFF65FF66CCCC65FFCC65CCFF65FFFF98CC", "CC99FFCC99CCFF99FFFFCBCB33CCFF33CCCC66CCFF65FFCC", "33FFFF33FFCC65FFFF65444444656532DDDDDDCBFFFFFFFF", "CBEEEEEE1000009800000010006600000000980000667777", "77888888AAAAAABBBBBB5555556666660000100000224400", "005400000000CC0000DC0000EE0000FE0000320000440088", "0000980000AA0000BA0000CC0000DC0000EE0000FE00CC00",
"00DC0000EE0000FE00000044000054000066000076002200", "00320000AA0000BA00000022000032007600008800000000", "AA0000BA00007600008800000021F90401000000002C0000", "00004F006500C7FFFFFF9800983399999898001111112222", "22000054CBFFCB0032980033660033CC0033FE0032326633", "0066660000659800989800CC9900FE99329800659800CC00", "99FE0098659898999999CC9900FE98009800329800659900", "CC9800FE3399CB3399FF9999339898659832009865009933", "9998659833CB9833FF9999CC0099FE00336699656698CC98", "98FF99993232003366003200323300663200983333996500",
"9866339900663300983200666600986500CC3300FE3200CC", "6600FE65CCCC98CCFF99FFCC99FFFF993300CC3200FE6600", "CC6500FECC0033CC0066FE0032FE00653399333399666699", "33669865CC00CCCB00FEFE00CBFE00FE6699CC6598FF9898", "CC9999FFCB9833CC9966FF9933FF98653333333265323232", "65326565660033653232660066653265CC3300CC6600FE32", "00FE65000066CC0099CC0066FE0098FE00CCCC00FECB00CC", "FE00FEFE33CC0033FE0066CC0066FE00CB3398CC6699FF33", "99FF659866CC9965FF9898CC9899FF99CCCC00CCFE00FECB", "00FEFE009933339966339933669865659833CB9966CC9933",
"FF9865FF33CBCB33FFCC33CCFF33FFFF99CB3399FF3399CC", "6698FF65CC98CCCCCCCCCC99FFCBCBFFFF99CCFFCBCBFF99", "FFFFCBFF3333CB3366CB3333FF3366FF6533CB6666CC6633", "FF6565FFCB3333CB6533CB3365CC6666FF3333FF6633FF33", "66FF656533CB3333FF3333CB6633FF6666CB3366FF3366CC", "6665FF65CB33CBCC66CCCC33FFCC65FFFF33CCFF65CCFF33", "FFFF65FF66CCCC65FFCC65CCFF65FFFF98CCCC99FFCC99CC", "FF99FFFFCBCB33CCFF33CCCC66CCFF65FFCC33FFFF33FFCC", "65FFFF65444444656532DDDDDDCBFFFFFFFFCBEEEEEE1000", "00980000001000660000000098000066777777888888AAAA",
"AABBBBBB5555556666660000100000224400005400000000", "CC0000DC0000EE0000FE00003200004400880000980000AA", "0000BA0000CC0000DC0000EE0000FE00CC0000DC0000EE00", "00FE0000004400005400006600007600220000320000AA00", "00BA00000022000032007600008800000000AA0000BA0000", "7600008800000008FF0001081C48B0A0C18308132A5CA810", "12248610234A640809DBBF2DD830E431D1451B8689204326", "84C4022306483F5AB0E882ADE5968F226386C40026E38F47", "9030E8C45072CB0F9940252EEB226265476D0CFE29C5F630", "A8538818B6B4C00869D9D3AB22B7FC636115ABD7AF60C38A",
"1D4BB6ACD9B368D3AA5DCB166B450334E23280D916E48F2D", "1E7F406AA11792096D2CEA4A848491C58FBE3FF23CFA81C1", "0B5DC10A317089CAC221DF9C5E5E428EF8A30B06315D0C30", "D0267573C8652CA23E36CDBAB5EBD7B063CB9E4DBBB6EDC1", "D80C6CD9D2F4B6418E09BAD0B04143B3EF81183A62435CA5", "4B8CC0C73B6364BCF3824E9FBE519BD49B27A76516CB6F57", "FFC4963AE70A315EC0E0DD52597C4B9D7A5B3844597235ED", "962CE2D2E8D245065E6C941C0700249E61D3C50CA46504C9", "01020A74D7671D79D15B830E7A661C850661808D18D860E8", "E187208628E288249668E28928A6A8E28A6C2D13156F2326",
"275C0C4C819887180CE8C7D28402A2C6400C5BD8E0455C5D", "74D5E00F167551194A5EF0C7608384BD601824BBC8971C76", "024615C305F275F74877D878F1D37184B177521E3AB16002", "0BE859729C760A22F6C32E4876C1236D5191E7D04D7BE6D4", "451E6416261F75D571E8E66DA8BDA7174F8CB2B09591B60D", "95D1231718888D132C8077E16D26607381097ACD199F81F6", "D1462084CFB17041A65B7431269960685728DC51EBDD699B", "8618C4B5C58F5B00D95E83B8CEFADF931882975C71A086F8", "1E035B98606B83828057638C196D11E088E3C148A2815892", "F8CFB42C862BEEB8E4966BEEB9E8A6ABEEBAECB6EBEEBBF0",
"C62BEFBCF4CA1B100021FF0B4D414347436F6E2004031039", "000000015772697474656E20627920474946436F6E766572", "74657220322E342E33206F66204D6F6E6461792C204D6179", "2032352C2031393938003B"
};
}
|
{
"pile_set_name": "Github"
}
|
Rockchip mailbox
The Rockchip mailbox is used by the Rockchip CPU cores to communicate
requests to MCU processor.
Refer to ./mailbox.txt for generic information about mailbox device-tree
bindings.
Required properties:
- compatible: should be one of the following.
- "rockchip,rk3368-mbox" for rk3368
- reg: physical base address of the controller and length of memory mapped
region.
- interrupts: The interrupt number to the cpu. The interrupt specifier format
depends on the interrupt controller.
- #mbox-cells: Common mailbox binding property to identify the number
of cells required for the mailbox specifier. Should be 1
Example:
--------
/* RK3368 */
mbox: mbox@ff6b0000 {
compatible = "rockchip,rk3368-mailbox";
reg = <0x0 0xff6b0000 0x0 0x1000>,
interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <1>;
};
|
{
"pile_set_name": "Github"
}
|
local flowerPositions = {
[1] = {itemid = 2762, position = Position(33455, 32707, 14)},
[2] = {itemid = 2762, position = Position(33460, 32707, 14)},
[3] = {itemid = 2764, position = Position(33455, 32708, 14)},
[4] = {itemid = 2763, position = Position(33457, 32707, 14)},
[5] = {itemid = 2764, position = Position(33457, 32708, 14)},
[6] = {itemid = 2763, position = Position(33456, 32708, 14)},
[7] = {itemid = 2762, position = Position(33458, 32709, 14)},
[8] = {itemid = 2763, position = Position(33459, 32708, 14)},
[9] = {itemid = 2764, position = Position(33460, 32709, 14)}
}
local gates = {
{position = Position(33476, 32698, 14), itemid = 19160, transform = 19157},
{position = Position(33478, 32698, 14), itemid = 19160, transform = 19156},
{position = Position(33475, 32698, 14), itemid = 19157, transform = 19160},
{position = Position(33479, 32698, 14), itemid = 19156, transform = 19160}
}
local function revertItem(position, itemId, transformId)
local item = Tile(position):getItemById(itemId)
if item then
item:transform(transformId)
end
end
local ferumbrasAscendantFlowerPuzzle = Action()
function ferumbrasAscendantFlowerPuzzle.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid == 10029 then
for a = 1, #flowerPositions do
local flower = flowerPositions[a]
if not Tile(flower.position):getItemById(flower.itemid) then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The order of the flowers in the garden are wrong.')
return true
end
end
if Game.getStorageValue(Storage.FerumbrasAscension.FlowerPuzzleTimer) >= 1 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The portal still activated.')
else
Game.setStorageValue(Storage.FerumbrasAscension.FlowerPuzzleTimer, 1)
addEvent(Game.setStorageValue, 30 * 1000, Storage.FerumbrasAscension.FlowerPuzzleTimer, 0)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'A portal forms as two beams of a strange construction dividing this room move towards each other.')
for x = 33475, 33479 do
local pos = Position(x, 32698, 14)
pos:sendMagicEffect(CONST_ME_POFF)
end
for k = 1, #gates do
local gate = gates[k]
local gatee = Tile(gate.position):getItemById(gate.itemid)
if gatee then
gatee:transform(gate.transform)
end
addEvent(revertItem, 30 * 1000, gate.position, gate.itemid, gate.transform)
end
local wall = Tile(Position(33477, 32698, 14)):getItemById(6116)
if not wall then
Game.createItem(6116, 1, Position(33477, 32698, 14))
end
end
item:transform(10030)
elseif item.itemid == 10030 then
item:transform(10029)
end
return true
end
ferumbrasAscendantFlowerPuzzle:aid(34300)
ferumbrasAscendantFlowerPuzzle:register()
|
{
"pile_set_name": "Github"
}
|
//
// FILE NAME: CIDOrb_Id.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 10/24/2001
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.org/licenses/MIT
//
// DESCRIPTION:
//
// This file implements the TOrbId class. An ORB id uniquely represents a
// specific object interface at runtime.
//
// CAVEATS/GOTCHAS:
//
// LOG:
//
// $_CIDLib_Log_$
//
// ---------------------------------------------------------------------------
// Facility specific includes
// ---------------------------------------------------------------------------
#include "CIDOrb_.hpp"
// ---------------------------------------------------------------------------
// Do our RTTI macros
// ---------------------------------------------------------------------------
RTTIDecls(TOrbId,TObject)
RTTIDecls(TOrbIdKeyOps,TObject)
// ---------------------------------------------------------------------------
// Local data
// ---------------------------------------------------------------------------
namespace CIDOrb_Id
{
namespace
{
constexpr tCIDLib::TCard2 c2FmtVersion = 1;
}
}
// ---------------------------------------------------------------------------
// CLASS: TOrbIdKeyOps
// PREFIX: kops
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// TOrbIdKeyOps: Constructors and destructor
// ---------------------------------------------------------------------------
TOrbIdKeyOps::TOrbIdKeyOps()
{
}
TOrbIdKeyOps::TOrbIdKeyOps(const TOrbIdKeyOps&)
{
}
TOrbIdKeyOps::~TOrbIdKeyOps()
{
}
// ---------------------------------------------------------------------------
// TOrbIdKeyOps: Public operators
// ---------------------------------------------------------------------------
TOrbIdKeyOps& TOrbIdKeyOps::operator=(const TOrbIdKeyOps&)
{
return *this;
}
// ---------------------------------------------------------------------------
// TOrbIdKeyOps: Public, non-virtual methods
// ---------------------------------------------------------------------------
tCIDLib::TBoolean
TOrbIdKeyOps::bCompKeys(const TOrbId& oid1, const TOrbId& oid2) const
{
return (oid1 == oid2);
}
tCIDLib::THashVal
TOrbIdKeyOps::hshKey(const TOrbId& oidToHash
, const tCIDLib::TCard4 c4Modulus) const
{
//
// If the modulus is the one used internally, then just return the hash
// that the id object already has.
//
if (c4Modulus == kCIDOrb::c4IdModulus)
return oidToHash.hshThis();
// Else hash it using the caller's modulus
return oidToHash.hshCalcHash(c4Modulus);
}
// ---------------------------------------------------------------------------
// CLASS: TOrbId
// PREFIX: oid
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// TOrbId: Constructors and Destructor
// ---------------------------------------------------------------------------
TOrbId::TOrbId() :
m_hshThis(0)
{
}
TOrbId::TOrbId( const TString& strInterface
, const TMD5Hash& mhashInstance)
{
// Call the set method, since it does what we need
Set(strInterface, mhashInstance);
}
TOrbId::TOrbId( const TMD5Hash& mhashInterface
, const TMD5Hash& mhashInstance)
{
// Call the set method, since it does what we need
Set(mhashInterface, mhashInstance);
}
TOrbId::TOrbId( const TString& strInterface
, const TString& strInstance)
{
// Call the set method, since it does what we need
Set(strInterface, strInstance);
}
TOrbId::TOrbId(const TOrbId& oidToCopy) :
m_mhashInterface(oidToCopy.m_mhashInterface)
, m_mhashInstance(oidToCopy.m_mhashInstance)
{
// Pre-calc our hash
m_hshThis = hshDoHashCalc(kCIDOrb::c4IdModulus);
}
TOrbId::~TOrbId()
{
}
// ---------------------------------------------------------------------------
// TOrbId: Public operators
// ---------------------------------------------------------------------------
TOrbId& TOrbId::operator=(const TOrbId& oidToAssign)
{
if (&oidToAssign != this)
{
m_hshThis = oidToAssign.m_hshThis;
m_mhashInterface = oidToAssign.m_mhashInterface;
m_mhashInstance = oidToAssign.m_mhashInstance;
}
return *this;
}
TOrbId& TOrbId::operator=(TOrbId&& oidToAssign)
{
if (&oidToAssign != this)
{
tCIDLib::Swap(m_hshThis, oidToAssign.m_hshThis);
m_mhashInterface = tCIDLib::ForceMove(oidToAssign.m_mhashInterface);
m_mhashInstance = tCIDLib::ForceMove(oidToAssign.m_mhashInstance);
}
return *this;
}
tCIDLib::TBoolean TOrbId::operator==(const TOrbId& oidToCompare) const
{
// Test the hash first
if (m_hshThis != oidToCompare.m_hshThis)
return kCIDLib::False;
// Test for self comparison
if (&oidToCompare == this)
return kCIDLib::True;
// Oh well, lets compare the two hashes
if (m_mhashInterface != oidToCompare.m_mhashInterface)
return kCIDLib::False;
if (m_mhashInstance != oidToCompare.m_mhashInstance)
return kCIDLib::False;
return kCIDLib::True;
}
tCIDLib::TBoolean TOrbId::operator!=(const TOrbId& oidToCompare) const
{
return !operator==(oidToCompare);
}
// ---------------------------------------------------------------------------
// TOrbId: Public, non-virtual methods
// ---------------------------------------------------------------------------
tCIDLib::TBoolean TOrbId::bIsInterfaceId(const TString& strToTest) const
{
// Convert the passed string to a MD5Hash
TMD5Hash mhashTmp;
mhashTmp.ParseFormatted(strToTest);
// And compare to our interface id
return (m_mhashInterface == mhashTmp);
}
tCIDLib::THashVal TOrbId::hshCalcHash(const tCIDLib::TCard4 c4Modulus) const
{
//
// If the modulus is the one used internally, then just return the hash
// that the we already have calculated.
//
if (c4Modulus == kCIDOrb::c4IdModulus)
return m_hshThis;
// Else hash it using the caller's hash
return hshDoHashCalc(c4Modulus);
}
tCIDLib::THashVal TOrbId::hshThis() const
{
return m_hshThis;
}
const TMD5Hash& TOrbId::mhashInterface() const
{
return m_mhashInterface;
}
const TMD5Hash& TOrbId::mhashInstance() const
{
return m_mhashInstance;
}
tCIDLib::TVoid TOrbId::Set( const TString& strInterface
, const TMD5Hash& mhashInstance)
{
m_mhashInterface.ParseFormatted(strInterface);
m_mhashInstance = mhashInstance;
// Pre-calc our hash
m_hshThis = hshDoHashCalc(kCIDOrb::c4IdModulus);
}
tCIDLib::TVoid TOrbId::Set( const TMD5Hash& mhashInterface
, const TMD5Hash& mhashInstance)
{
m_mhashInterface = mhashInterface;
m_mhashInstance = mhashInstance;
// Pre-calc our hash
m_hshThis = hshDoHashCalc(kCIDOrb::c4IdModulus);
}
tCIDLib::TVoid TOrbId::Set( const TString& strInterface
, const TString& strInstance)
{
m_mhashInterface.ParseFormatted(strInterface);
m_mhashInstance.ParseFormatted(strInstance);
// Pre-calc our hash
m_hshThis = hshDoHashCalc(kCIDOrb::c4IdModulus);
}
// ---------------------------------------------------------------------------
// TOrbId: Protected, inherited methods
// ---------------------------------------------------------------------------
tCIDLib::TVoid TOrbId::FormatTo(TTextOutStream& strmDest) const
{
strmDest << L"{" << m_mhashInterface << L"}" << m_mhashInstance;
}
tCIDLib::TVoid TOrbId::StreamFrom(TBinInStream& strmToReadFrom)
{
// We should get a start object marker
strmToReadFrom.CheckForStartMarker(CID_FILE, CID_LINE);
// Check the format version
tCIDLib::TCard2 c2FmtVersion;
strmToReadFrom >> c2FmtVersion;
if (c2FmtVersion != CIDOrb_Id::c2FmtVersion)
{
facCIDLib().ThrowErr
(
CID_FILE
, CID_LINE
, kCIDErrs::errcGen_UnknownFmtVersion
, tCIDLib::ESeverities::Failed
, tCIDLib::EErrClasses::Format
, TCardinal(c2FmtVersion)
, clsThis()
);
}
strmToReadFrom >> m_hshThis
>> m_mhashInterface
>> m_mhashInstance;
// We should get an end object marker
strmToReadFrom.CheckForEndMarker(CID_FILE, CID_LINE);
}
tCIDLib::TVoid TOrbId::StreamTo(TBinOutStream& strmToWriteTo) const
{
strmToWriteTo << tCIDLib::EStreamMarkers::StartObject
<< CIDOrb_Id::c2FmtVersion
<< m_hshThis
<< m_mhashInterface
<< m_mhashInstance
<< tCIDLib::EStreamMarkers::EndObject;
}
// ---------------------------------------------------------------------------
// TOrbId: Private, non-virtual methods
// ---------------------------------------------------------------------------
tCIDLib::THashVal TOrbId::hshDoHashCalc(const tCIDLib::TCard4 c4Modulus) const
{
//
// We need to get the two ids into one buffer so that we can hash the
// whole combined set of bytes.
//
tCIDLib::TCard1 ac1Tmp[kCIDCrypto::c4UniqueIdBytes << 1];
// Sanity check
#if CID_DEBUG_ON
if ((m_mhashInterface.c4Bytes() != kCIDCrypto::c4UniqueIdBytes)
|| (m_mhashInstance.c4Bytes() != kCIDCrypto::c4UniqueIdBytes))
{
facCIDOrb().ThrowErr
(
CID_FILE
, CID_LINE
, kOrbErrs::errcId_BadHashLen
, tCIDLib::ESeverities::Failed
, tCIDLib::EErrClasses::Internal
);
}
#endif
// Copy in the interface bytes first
TRawMem::CopyMemBuf
(
ac1Tmp
, m_mhashInterface.pc1Buffer()
, kCIDCrypto::c4UniqueIdBytes
);
// And after that the instance bytes
TRawMem::CopyMemBuf
(
&ac1Tmp[kCIDCrypto::c4UniqueIdBytes]
, m_mhashInstance.pc1Buffer()
, kCIDCrypto::c4UniqueIdBytes
);
// And hash this buffer and return the result
return TRawMem::hshHashBuffer
(
ac1Tmp
, c4Modulus
, kCIDCrypto::c4UniqueIdBytes << 1
);
}
|
{
"pile_set_name": "Github"
}
|
(**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Fabrice Le Fessant, INRIA Saclay *)
(* *)
(* Copyright 2012 Institut National de Recherche en Informatique et *)
(* en Automatique. *)
(* *)
(* All rights reserved. This file is distributed under the terms of *)
(* the GNU Lesser General Public License version 2.1, with the *)
(* special exception on linking described in the file LICENSE. *)
(* *)
(**************************************************************************)
open Misc
type pers_flags =
| Rectypes
| Alerts of alerts
| Opaque
| Unsafe_string
type cmi_infos = {
cmi_name : modname;
cmi_sign : Types.signature_item list;
cmi_crcs : crcs;
cmi_flags : pers_flags list;
}
(* write the magic + the cmi information *)
val output_cmi : string -> out_channel -> cmi_infos -> Digest.t
(* read the cmi information (the magic is supposed to have already been read) *)
val input_cmi : in_channel -> cmi_infos
(* read a cmi from a filename, checking the magic *)
val read_cmi : string -> cmi_infos
(* Error report *)
type error =
| Not_an_interface of filepath
| Wrong_version_interface of filepath * string
| Corrupted_interface of filepath
exception Error of error
open Format
val report_error: formatter -> error -> unit
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru_RU">
<context>
<name>AddressBookDialog</name>
<message>
<location filename="../address_book_dialog.ui" line="17"/>
<source>Address Book Properties</source>
<translation>Свойства адресной книги</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="33"/>
<source>General</source>
<translation>Основные</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="43"/>
<source>Name:</source>
<translation>Имя:</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="50"/>
<source>File:</source>
<translation>Файл:</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="57"/>
<source>Encryption:</source>
<translation>Шифрование:</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="64"/>
<source>Password:</source>
<translation>Пароль:</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="71"/>
<source>Password (repeat):</source>
<translation>Пароль (повторить):</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="125"/>
<source>Comment:</source>
<translation>Комментарий:</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="138"/>
<source>Routers</source>
<translation>Маршрутизаторы</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="204"/>
<source>Name</source>
<translation>Имя</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="209"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="214"/>
<source>Port</source>
<translation>Порт</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="223"/>
<source>Advanced</source>
<translation>Дополнительно</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="229"/>
<source>Password hashing</source>
<translation>Хеширование пароля</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="235"/>
<source>Size of salt for password hashing:</source>
<translation>Размер соли для хеширования пароля:</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="242"/>
<location filename="../address_book_dialog.ui" line="289"/>
<location filename="../address_book_dialog.ui" line="305"/>
<source> bytes</source>
<translation> байт</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="271"/>
<source>Size of salt before the data:</source>
<translation>Размер соли до данных:</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="278"/>
<source>Size of salt after the data:</source>
<translation>Размер соли после данных:</translation>
</message>
<message>
<location filename="../address_book_dialog.ui" line="261"/>
<source>Salt of data</source>
<translation>Соль данных</translation>
</message>
</context>
<context>
<name>AddressBookTab</name>
<message>
<location filename="../address_book_tab.ui" line="95"/>
<source>Computer Name</source>
<translation>Имя компьютера</translation>
</message>
<message>
<source>Address</source>
<translation type="vanished">Адрес</translation>
</message>
<message>
<source>Address or ID</source>
<translation type="vanished">Адрес или ID</translation>
</message>
<message>
<location filename="../address_book_tab.ui" line="100"/>
<source>Address / ID</source>
<translation>Адрес / ID</translation>
</message>
<message>
<location filename="../address_book_tab.ui" line="105"/>
<source>Comment</source>
<translation>Комментарий</translation>
</message>
<message>
<location filename="../address_book_tab.ui" line="110"/>
<source>Created</source>
<translation>Создан</translation>
</message>
<message>
<location filename="../address_book_tab.ui" line="115"/>
<source>Modified</source>
<translation>Изменен</translation>
</message>
</context>
<context>
<name>ComputerDialog</name>
<message>
<location filename="../computer_dialog.ui" line="17"/>
<source>Computer Properties</source>
<translation>Свойства компьютера</translation>
</message>
</context>
<context>
<name>ComputerDialogDesktop</name>
<message>
<location filename="../computer_dialog_desktop.ui" line="32"/>
<source>Codec</source>
<translation>Кодек</translation>
</message>
<message>
<source>Name:</source>
<translation type="vanished">Имя:</translation>
</message>
<message>
<source>Color depth:</source>
<translation type="vanished">Глубина цвета:</translation>
</message>
<message>
<source>Compression ratio:</source>
<translation type="vanished">Уровень сжатия:</translation>
</message>
<message>
<source>Fast</source>
<translation type="vanished">Быстрее</translation>
</message>
<message>
<source>Best</source>
<translation type="vanished">Сильнее</translation>
</message>
<message>
<location filename="../computer_dialog_desktop.ui" line="50"/>
<source>Lock at disconnect</source>
<translation>Блокировать при отключении</translation>
</message>
<message>
<location filename="../computer_dialog_desktop.ui" line="92"/>
<source>Disable font smoothing</source>
<translation>Отключить сглаживание шрифтов</translation>
</message>
<message>
<source>Remote Screen</source>
<translation type="vanished">Удаленный экран</translation>
</message>
<message>
<source>Scale factor:</source>
<translation type="vanished">Масштаб экрана:</translation>
</message>
<message>
<source>Update interval:</source>
<translation type="vanished">Интервал обновления:</translation>
</message>
<message>
<source>ms</source>
<translation type="vanished">мс</translation>
</message>
<message>
<source>Advanced</source>
<translation type="vanished">Дополнительно</translation>
</message>
<message>
<location filename="../computer_dialog_desktop.ui" line="44"/>
<source>Options</source>
<translation>Опции</translation>
</message>
<message>
<location filename="../computer_dialog_desktop.ui" line="57"/>
<source>Block remote input</source>
<translation>Блокировать удаленный ввод</translation>
</message>
<message>
<location filename="../computer_dialog_desktop.ui" line="64"/>
<source>Enable cursor shape</source>
<translation>Включить изображение курсора</translation>
</message>
<message>
<location filename="../computer_dialog_desktop.ui" line="71"/>
<source>Enable clipboard</source>
<translation>Включить буфер обмена</translation>
</message>
<message>
<location filename="../computer_dialog_desktop.ui" line="78"/>
<source>Disable desktop effects</source>
<translation>Отключить эффекты рабочего стола</translation>
</message>
<message>
<location filename="../computer_dialog_desktop.ui" line="85"/>
<source>Disable desktop wallpaper</source>
<translation>Отключить обои рабочего стола</translation>
</message>
</context>
<context>
<name>ComputerDialogGeneral</name>
<message>
<location filename="../computer_dialog_general.ui" line="37"/>
<source>Name:</source>
<translation>Имя:</translation>
</message>
<message>
<location filename="../computer_dialog_general.ui" line="51"/>
<source>Parent Group:</source>
<translation>Родительская группа:</translation>
</message>
<message>
<location filename="../computer_dialog_general.ui" line="68"/>
<source>Router:</source>
<translation>Маршрутизатор:</translation>
</message>
<message>
<location filename="../computer_dialog_general.ui" line="78"/>
<source>Address:</source>
<translation>Адрес:</translation>
</message>
<message>
<location filename="../computer_dialog_general.ui" line="92"/>
<source>User Name:</source>
<translation>Имя пользователя:</translation>
</message>
<message>
<location filename="../computer_dialog_general.ui" line="106"/>
<source>Password:</source>
<translation>Пароль:</translation>
</message>
<message>
<location filename="../computer_dialog_general.ui" line="151"/>
<source>Comment:</source>
<translation>Комментарий:</translation>
</message>
</context>
<context>
<name>ComputerDialogParent</name>
<message>
<location filename="../computer_dialog_parent.ui" line="20"/>
<source>Select child item</source>
<translation>Выберите дочерний элемент</translation>
</message>
</context>
<context>
<name>ComputerGroupDialog</name>
<message>
<location filename="../computer_group_dialog.ui" line="17"/>
<source>Computer Group Properties</source>
<translation>Свойства группы компьютеров</translation>
</message>
<message>
<location filename="../computer_group_dialog.ui" line="33"/>
<source>Name:</source>
<translation>Имя:</translation>
</message>
<message>
<location filename="../computer_group_dialog.ui" line="40"/>
<source>Parent Group:</source>
<translation>Родительская группа:</translation>
</message>
<message>
<location filename="../computer_group_dialog.ui" line="74"/>
<source>Comment:</source>
<translation>Комментарий:</translation>
</message>
</context>
<context>
<name>ComputerGroupItem</name>
<message>
<location filename="../computer_group_item.cc" line="130"/>
<source>Root Group</source>
<translation>Корневая группа</translation>
</message>
</context>
<context>
<name>Console</name>
<message>
<location filename="../main.cc" line="46"/>
<source>Remote computer address.</source>
<translation>Адрес удаленного компьютера.</translation>
</message>
<message>
<location filename="../main.cc" line="47"/>
<source>address</source>
<translation>адрес</translation>
</message>
<message>
<location filename="../main.cc" line="51"/>
<source>Remote computer port.</source>
<translation>Порт удаленного компьютера.</translation>
</message>
<message>
<location filename="../main.cc" line="52"/>
<source>port</source>
<translation>порт</translation>
</message>
<message>
<location filename="../main.cc" line="57"/>
<source>Name of user.</source>
<translation>Имя пользователя.</translation>
</message>
<message>
<location filename="../main.cc" line="58"/>
<source>username</source>
<translation>имя_пользователя</translation>
</message>
<message>
<location filename="../main.cc" line="62"/>
<source>Session type. Possible values: desktop-manage, desktop-view, file-transfer.</source>
<translation>Тип сессии. Возможные значения: desktop-manage, desktop-view, file-transfer.</translation>
</message>
<message>
<location filename="../main.cc" line="68"/>
<source>Open the client to connect to the computer.</source>
<translation>Открыть клиент для подключения к компьютеру.</translation>
</message>
<message>
<source>Run the program with a simplified user interface.</source>
<translation type="vanished">Запуск программы с упрощенным интерфейсом пользователя.</translation>
</message>
<message>
<location filename="../main.cc" line="71"/>
<source>Aspia Console</source>
<translation>Консоль Aspia</translation>
</message>
<message>
<location filename="../main.cc" line="74"/>
<source>file</source>
<translation>файл</translation>
</message>
<message>
<location filename="../main.cc" line="75"/>
<source>The file to open.</source>
<translation>Файл для открытия.</translation>
</message>
<message>
<location filename="../main.cc" line="114"/>
<source>Warning</source>
<translation>Предупреждение</translation>
</message>
<message>
<location filename="../main.cc" line="115"/>
<source>Incorrect session type entered.</source>
<translation>Введен некорректный тип сессии.</translation>
</message>
</context>
<context>
<name>ConsoleMainWindow</name>
<message>
<location filename="../main_window.ui" line="14"/>
<source>Aspia Console</source>
<translation>Консоль Aspia</translation>
</message>
<message>
<location filename="../main_window.ui" line="62"/>
<source>&File</source>
<translation>&Файл</translation>
</message>
<message>
<location filename="../main_window.ui" line="66"/>
<source>Recent open</source>
<translation>Последние открытые</translation>
</message>
<message>
<location filename="../main_window.ui" line="87"/>
<source>&Edit</source>
<translation>&Правка</translation>
</message>
<message>
<location filename="../main_window.ui" line="102"/>
<source>&Session Type</source>
<translation>&Тип сессии</translation>
</message>
<message>
<location filename="../main_window.ui" line="110"/>
<source>&Help</source>
<translation>П&омощь</translation>
</message>
<message>
<location filename="../main_window.ui" line="121"/>
<source>&View</source>
<translation>&Вид</translation>
</message>
<message>
<location filename="../main_window.ui" line="125"/>
<source>&Language</source>
<translation>&Язык</translation>
</message>
<message>
<location filename="../main_window.ui" line="148"/>
<location filename="../main_window.ui" line="443"/>
<source>Tool Bar</source>
<translation>Панель инструментов</translation>
</message>
<message>
<location filename="../main_window.ui" line="191"/>
<source>&New address book</source>
<translation>&Новая адресная книга</translation>
</message>
<message>
<location filename="../main_window.ui" line="194"/>
<source>Ctrl+N</source>
<translation></translation>
</message>
<message>
<location filename="../main_window.ui" line="203"/>
<source>&Open address book...</source>
<translation>&Открыть адресную книгу...</translation>
</message>
<message>
<location filename="../main_window.ui" line="206"/>
<source>Ctrl+O</source>
<translation></translation>
</message>
<message>
<location filename="../main_window.ui" line="218"/>
<source>&Save</source>
<translation>&Сохранить</translation>
</message>
<message>
<location filename="../main_window.ui" line="221"/>
<source>Ctrl+S</source>
<translation></translation>
</message>
<message>
<location filename="../main_window.ui" line="229"/>
<source>Save &as...</source>
<translation>&Сохранить как...</translation>
</message>
<message>
<location filename="../main_window.ui" line="232"/>
<source>Ctrl+Alt+S</source>
<translation></translation>
</message>
<message>
<location filename="../main_window.ui" line="240"/>
<source>&Close</source>
<translation>&Закрыть</translation>
</message>
<message>
<location filename="../main_window.ui" line="243"/>
<source>Ctrl+W</source>
<translation></translation>
</message>
<message>
<location filename="../main_window.ui" line="252"/>
<source>&Exit</source>
<translation>&Выход</translation>
</message>
<message>
<location filename="../main_window.ui" line="264"/>
<source>Add Computer Group</source>
<translation>Добавить группу компьютеров</translation>
</message>
<message>
<location filename="../main_window.ui" line="276"/>
<source>Modify Computer Group</source>
<translation>Изменить группу компьютеров</translation>
</message>
<message>
<location filename="../main_window.ui" line="288"/>
<source>Delete Computer Group</source>
<translation>Удалить группу компьютеров</translation>
</message>
<message>
<location filename="../main_window.ui" line="300"/>
<source>Add Computer</source>
<translation>Добавить компьютер</translation>
</message>
<message>
<location filename="../main_window.ui" line="312"/>
<source>Modify Computer</source>
<translation>Изменить компьютер</translation>
</message>
<message>
<location filename="../main_window.ui" line="324"/>
<source>Delete Computer</source>
<translation>Удалить компьютер</translation>
</message>
<message>
<location filename="../main_window.ui" line="339"/>
<source>Desktop &Manage</source>
<translation>Управление &рабочим столом</translation>
</message>
<message>
<location filename="../main_window.ui" line="351"/>
<source>Desktop &View</source>
<translation>&Просмотр рабочего стола</translation>
</message>
<message>
<location filename="../main_window.ui" line="363"/>
<source>&File Transfer</source>
<translation>Передача &файлов</translation>
</message>
<message>
<location filename="../main_window.ui" line="372"/>
<source>&Online Help...</source>
<translation>Онлайн &справка...</translation>
</message>
<message>
<location filename="../main_window.ui" line="375"/>
<source>F1</source>
<translation></translation>
</message>
<message>
<location filename="../main_window.ui" line="384"/>
<source>&About</source>
<translation>&О программе</translation>
</message>
<message>
<location filename="../main_window.ui" line="396"/>
<source>Address Book Properties</source>
<translation>Свойства адресной книги</translation>
</message>
<message>
<location filename="../main_window.ui" line="405"/>
<location filename="../main_window.ui" line="408"/>
<source>Desktop Manage</source>
<translation>Управление рабочим столом</translation>
</message>
<message>
<location filename="../main_window.ui" line="417"/>
<location filename="../main_window.ui" line="420"/>
<source>Desktop View</source>
<translation>Просмотр рабочего стола</translation>
</message>
<message>
<location filename="../main_window.ui" line="429"/>
<location filename="../main_window.ui" line="432"/>
<source>File Transfer</source>
<translation>Передача файлов</translation>
</message>
<message>
<location filename="../main_window.ui" line="454"/>
<source>Status Bar</source>
<translation>Строка состояния</translation>
</message>
<message>
<location filename="../main_window.ui" line="463"/>
<source>Fast Connect...</source>
<translation>Быстрое подключение...</translation>
</message>
<message>
<location filename="../main_window.ui" line="471"/>
<source>Show tray icon</source>
<translation>Показывать иконку в трее</translation>
</message>
<message>
<location filename="../main_window.ui" line="479"/>
<source>Minimize to tray</source>
<translation>Сворачивать в трей</translation>
</message>
<message>
<location filename="../main_window.ui" line="484"/>
<source>Hide</source>
<translation>Спрятать</translation>
</message>
<message>
<location filename="../main_window.ui" line="496"/>
<source>Save all</source>
<translation>Сохранить все</translation>
</message>
<message>
<location filename="../main_window.ui" line="499"/>
<source>Ctrl+Shift+S</source>
<translation></translation>
</message>
<message>
<location filename="../main_window.ui" line="507"/>
<source>Close all</source>
<translation>Закрыть все</translation>
</message>
<message>
<location filename="../main_window.ui" line="510"/>
<source>Ctrl+Shift+W</source>
<translation></translation>
</message>
<message>
<location filename="../main_window.ui" line="515"/>
<source>Check for updates...</source>
<translation>Проверить обновления...</translation>
</message>
<message>
<location filename="../main_window.ui" line="520"/>
<source>Update Settings</source>
<translation>Параметры обновления</translation>
</message>
<message>
<location filename="../main_window.ui" line="525"/>
<source>Clear</source>
<translation>Очистить</translation>
</message>
<message>
<location filename="../main_window.ui" line="536"/>
<source>Remember latest</source>
<translation>Сохранять последние</translation>
</message>
<message>
<location filename="../main_window.ui" line="548"/>
<source>Copy Computer</source>
<translation>Копировать компьютер</translation>
</message>
</context>
<context>
<name>ConsoleWindow</name>
<message>
<source>&File</source>
<translation type="vanished">&Файл</translation>
</message>
<message>
<source>Recent open</source>
<translation type="vanished">Последние открытые</translation>
</message>
<message>
<source>&Edit</source>
<translation type="vanished">&Правка</translation>
</message>
<message>
<source>&Session Type</source>
<translation type="vanished">&Тип сессии</translation>
</message>
<message>
<source>&Help</source>
<translation type="vanished">П&омощь</translation>
</message>
<message>
<source>&View</source>
<translation type="vanished">&Вид</translation>
</message>
<message>
<source>&Language</source>
<translation type="vanished">&Язык</translation>
</message>
<message>
<source>&Save</source>
<translation type="vanished">&Сохранить</translation>
</message>
<message>
<source>&Close</source>
<translation type="vanished">&Закрыть</translation>
</message>
<message>
<source>&Exit</source>
<translation type="vanished">&Выход</translation>
</message>
<message>
<source>Add Computer Group</source>
<translation type="vanished">Добавить группу компьютеров</translation>
</message>
<message>
<source>Modify Computer Group</source>
<translation type="vanished">Изменить группу компьютеров</translation>
</message>
<message>
<source>Delete Computer Group</source>
<translation type="vanished">Удалить группу компьютеров</translation>
</message>
<message>
<source>Add Computer</source>
<translation type="vanished">Добавить компьютер</translation>
</message>
<message>
<source>Modify Computer</source>
<translation type="vanished">Изменить компьютер</translation>
</message>
<message>
<source>Delete Computer</source>
<translation type="vanished">Удалить компьютер</translation>
</message>
<message>
<source>Desktop &Manage</source>
<translation type="vanished">Управление &рабочим столом</translation>
</message>
<message>
<source>Desktop &View</source>
<translation type="vanished">&Просмотр рабочего стола</translation>
</message>
<message>
<source>&File Transfer</source>
<translation type="vanished">Передача &файлов</translation>
</message>
<message>
<source>&Online Help...</source>
<translation type="vanished">Онлайн &справка...</translation>
</message>
<message>
<source>&About</source>
<translation type="vanished">&О программе</translation>
</message>
<message>
<source>Address Book Properties</source>
<translation type="vanished">Свойства адресной книги</translation>
</message>
<message>
<source>Desktop Manage</source>
<translation type="vanished">Управление рабочим столом</translation>
</message>
<message>
<source>Desktop View</source>
<translation type="vanished">Просмотр рабочего стола</translation>
</message>
<message>
<source>File Transfer</source>
<translation type="vanished">Передача файлов</translation>
</message>
<message>
<source>Show tray icon</source>
<translation type="vanished">Показывать иконку в трее</translation>
</message>
<message>
<source>Minimize to tray</source>
<translation type="vanished">Сворачивать в трей</translation>
</message>
<message>
<source>Hide</source>
<translation type="vanished">Спрятать</translation>
</message>
<message>
<source>Save all</source>
<translation type="vanished">Сохранить все</translation>
</message>
<message>
<source>Close all</source>
<translation type="vanished">Закрыть все</translation>
</message>
<message>
<source>Check for updates...</source>
<translation type="vanished">Проверить обновления...</translation>
</message>
<message>
<source>Update Settings</source>
<translation type="vanished">Параметры обновления</translation>
</message>
<message>
<source>Tool Bar</source>
<translation type="vanished">Панель инструментов</translation>
</message>
<message>
<source>Aspia Console</source>
<translation type="vanished">Консоль Aspia</translation>
</message>
<message>
<source>&New address book</source>
<translation type="vanished">&Новая адресная книга</translation>
</message>
<message>
<source>&Open address book...</source>
<translation type="vanished">&Открыть адресную книгу...</translation>
</message>
<message>
<source>Save &as...</source>
<translation type="vanished">&Сохранить как...</translation>
</message>
<message>
<source>Status Bar</source>
<translation type="vanished">Строка состояния</translation>
</message>
<message>
<source>Fast Connect...</source>
<translation type="vanished">Быстрое подключение...</translation>
</message>
</context>
<context>
<name>OpenAddressBookDialog</name>
<message>
<location filename="../open_address_book_dialog.ui" line="23"/>
<source>Open Address Book</source>
<translation>Открытие адресной книги</translation>
</message>
<message>
<location filename="../open_address_book_dialog.ui" line="59"/>
<source>Address book is encrypted. To open, you must enter a password.</source>
<translation>Адресная книга зашифрована. Для открытия вы должны ввести пароль.</translation>
</message>
<message>
<location filename="../open_address_book_dialog.ui" line="72"/>
<source>File:</source>
<translation>Файл:</translation>
</message>
<message>
<location filename="../open_address_book_dialog.ui" line="79"/>
<source>Encryption Type:</source>
<translation>Тип шифрования:</translation>
</message>
<message>
<location filename="../open_address_book_dialog.ui" line="86"/>
<source>Password:</source>
<translation>Пароль:</translation>
</message>
</context>
<context>
<name>RouterDialog</name>
<message>
<location filename="../router_dialog.ui" line="14"/>
<source>Router Properties</source>
<translation>Свойства маршрутизатора</translation>
</message>
<message>
<location filename="../router_dialog.ui" line="22"/>
<source>Name:</source>
<translation>Имя:</translation>
</message>
<message>
<location filename="../router_dialog.ui" line="36"/>
<source>Address:</source>
<translation>Адрес:</translation>
</message>
<message>
<location filename="../router_dialog.ui" line="50"/>
<source>User Name:</source>
<translation>Имя пользователя:</translation>
</message>
<message>
<location filename="../router_dialog.ui" line="64"/>
<source>Password:</source>
<translation>Пароль:</translation>
</message>
<message>
<location filename="../router_dialog.ui" line="101"/>
<source>Comment:</source>
<translation>Комментарий:</translation>
</message>
</context>
<context>
<name>UpdateSettingsDialog</name>
<message>
<location filename="../update_settings_dialog.ui" line="14"/>
<source>Update Settings</source>
<translation>Параметры обновления</translation>
</message>
<message>
<location filename="../update_settings_dialog.ui" line="26"/>
<source>Check for updates on startup</source>
<translation>Проверять обновления при запуске</translation>
</message>
<message>
<location filename="../update_settings_dialog.ui" line="33"/>
<source>Use custom update server</source>
<translation>Использовать свой сервер обновлений</translation>
</message>
<message>
<location filename="../update_settings_dialog.ui" line="42"/>
<source>Server:</source>
<translation>Сервер:</translation>
</message>
</context>
<context>
<name>console::AddressBookDialog</name>
<message>
<location filename="../address_book_dialog.cc" line="105"/>
<source>Without Encryption</source>
<translation>Без шифрования</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="107"/>
<source>ChaCha20 + Poly1305 (256-bit key)</source>
<translation>ChaCha20 + Poly1305 (256-битный ключ)</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="136"/>
<source>Double-click to change</source>
<translation>Двойной щелчок для изменения</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="119"/>
<source>Address Book</source>
<translation>Адресная книга</translation>
</message>
<message numerus="yes">
<location filename="../address_book_dialog.cc" line="214"/>
<source>Too long name. The maximum length of the name is %n characters.</source>
<translation>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символ.</numerusform>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символа.</numerusform>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="220"/>
<source>Name can not be empty.</source>
<translation>Имя не может быть пустым.</translation>
</message>
<message numerus="yes">
<location filename="../address_book_dialog.cc" line="227"/>
<source>Too long comment. The maximum length of the comment is %n characters.</source>
<translation>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символ.</numerusform>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символа.</numerusform>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="255"/>
<source>The passwords you entered do not match.</source>
<translation>Введенные пароли не совпадают.</translation>
</message>
<message numerus="yes">
<location filename="../address_book_dialog.cc" line="261"/>
<source>Password can not be empty and should not exceed %n characters.</source>
<translation>
<numerusform>Пароль не может быть пустой и не должен превышать %n символ.</numerusform>
<numerusform>Пароль не может быть пустой и не должен превышать %n символа.</numerusform>
<numerusform>Пароль не может быть пустой и не должен превышать %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="269"/>
<source>Password you entered does not meet the security requirements!</source>
<translation>Введенный пароль не отвечает требованиям безопасности!</translation>
</message>
<message numerus="yes">
<location filename="../address_book_dialog.cc" line="272"/>
<source>The password must contain lowercase and uppercase characters, numbers and should not be shorter than %n characters.</source>
<translation>
<numerusform>Пароль должен содержать строчные и прописные символы, цифры и не должен быть короче %n символа.</numerusform>
<numerusform>Пароль должен содержать строчные и прописные символы, цифры и не должен быть короче %n символов.</numerusform>
<numerusform>Пароль должен содержать строчные и прописные символы, цифры и не должен быть короче %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="276"/>
<source>Do you want to enter a different password?</source>
<translation>Вы хотите ввести другой пароль?</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="279"/>
<location filename="../address_book_dialog.cc" line="478"/>
<source>Warning</source>
<translation>Предупреждение</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="379"/>
<location filename="../address_book_dialog.cc" line="434"/>
<source>Confirmation</source>
<translation>Подтверждение</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="380"/>
<source>At change the size of hashing salt, you will need to re-enter the password. Continue?</source>
<translation>При изменении размера соли для хеширования вам придется ввести пароль заново. Продолжить?</translation>
</message>
<message>
<location filename="../address_book_dialog.cc" line="435"/>
<source>Are you sure you want to remove router "%1"?</source>
<translation>Вы действительно хотите удалить маршрутизатор "%1"?</translation>
</message>
</context>
<context>
<name>console::AddressBookTab</name>
<message>
<location filename="../address_book_tab.cc" line="231"/>
<source>Unable to open address book file "%1".</source>
<translation>Не удалось открыть файл адресной книги "%1".</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="238"/>
<source>Unable to read address book file "%1".</source>
<translation>Не удалось прочитать файл адресной книги "%1".</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="247"/>
<source>The address book file "%1" is corrupted or has an unknown format.</source>
<translation>Файл адресной книги "%1" поврежден или имеет неизвестный формат.</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="291"/>
<source>Unable to decrypt the address book with the specified password.</source>
<translation>Не удалось расшифровать адресную книгу с указанным паролем.</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="297"/>
<source>The address book file is corrupted or has an unknown format.</source>
<translation>Файл адресной книги поврежден или имеет неизвестный формат.</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="284"/>
<source>The address book file is encrypted with an unsupported encryption type.</source>
<translation>Файл адресной книги зашифрован неподдерживаемым методом шифрования.</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="524"/>
<source>Are you sure you want to delete computer group "%1" and all child items?</source>
<translation>Вы действительно хотите удалить группу компьютеров "%1" и все дочерние элементы?</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="528"/>
<location filename="../address_book_tab.cc" line="550"/>
<source>Confirmation</source>
<translation>Подтверждение</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="546"/>
<source>Are you sure you want to delete computer "%1"?</source>
<translation>Вы действительно хотите удалить компьютер "%1"?</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="803"/>
<source>Save Address Book</source>
<translation>Сохранение адресной книги</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="805"/>
<source>Aspia Address Book (*.aab)</source>
<translation>Адресная книга Aspia (*.aab)</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="815"/>
<source>Unable to create or open address book file.</source>
<translation>Не удалось создать или открыть файл адресной книги.</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="828"/>
<source>Unable to write address book file.</source>
<translation>Не удалось записать файл адресной книги.</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="856"/>
<source>Root Group</source>
<translation>Корневая группа</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="867"/>
<location filename="../address_book_tab.cc" line="881"/>
<source>Warning</source>
<translation>Предупреждение</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="869"/>
<source>Could not open address book</source>
<translation>Не удалось открыть адресную книгу</translation>
</message>
<message>
<location filename="../address_book_tab.cc" line="883"/>
<source>Failed to save address book</source>
<translation>Не удалось сохранить адресную книгу</translation>
</message>
</context>
<context>
<name>console::ComputerDialog</name>
<message>
<location filename="../computer_dialog.cc" line="63"/>
<source>(copy)</source>
<translation>(копия)</translation>
</message>
<message>
<location filename="../computer_dialog.cc" line="74"/>
<source>General</source>
<translation>Основные</translation>
</message>
<message>
<location filename="../computer_dialog.cc" line="78"/>
<source>Sessions</source>
<translation>Сессии</translation>
</message>
<message>
<location filename="../computer_dialog.cc" line="85"/>
<source>Manage</source>
<translation>Управление</translation>
</message>
<message>
<location filename="../computer_dialog.cc" line="89"/>
<source>View</source>
<translation>Просмотр</translation>
</message>
</context>
<context>
<name>console::ComputerDialogDesktop</name>
<message>
<source>True color (32 bit)</source>
<translation type="vanished">True color (32 бит)</translation>
</message>
<message>
<source>High color (16 bit)</source>
<translation type="vanished">High color (16 бит)</translation>
</message>
<message>
<source>256 colors (8 bit)</source>
<translation type="vanished">256 цветов (8 бит)</translation>
</message>
<message>
<source>64 colors (6 bit)</source>
<translation type="vanished">64 цвета (6 бит)</translation>
</message>
<message>
<source>8 colors (3 bit)</source>
<translation type="vanished">8 цветов (3 бита)</translation>
</message>
<message>
<source>Compression ratio: %1</source>
<translation type="vanished">Уровень сжатия: %1</translation>
</message>
</context>
<context>
<name>console::ComputerDialogGeneral</name>
<message>
<location filename="../computer_dialog_general.cc" line="62"/>
<location filename="../computer_dialog_general.cc" line="101"/>
<source>Address:</source>
<translation>Адрес:</translation>
</message>
<message>
<source><No Router></source>
<translation type="vanished"><Без маршрутизатора></translation>
</message>
<message>
<location filename="../computer_dialog_general.cc" line="76"/>
<source>Without Router</source>
<translation>Без маршрутизатора</translation>
</message>
<message numerus="yes">
<location filename="../computer_dialog_general.cc" line="120"/>
<source>Too long name. The maximum length of the name is %n characters.</source>
<translation>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символ.</numerusform>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символа.</numerusform>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../computer_dialog_general.cc" line="128"/>
<source>Name can not be empty.</source>
<translation>Имя не может быть пустым.</translation>
</message>
<message>
<location filename="../computer_dialog_general.cc" line="138"/>
<source>The user name can not be empty and can contain only alphabet characters, numbers and _, -, . characters.</source>
<translation>Имя пользователя не может быть пустым и может содержать только буквы алфавита, цифры и символы "_","-",".".</translation>
</message>
<message numerus="yes">
<location filename="../computer_dialog_general.cc" line="148"/>
<source>Too long comment. The maximum length of the comment is %n characters.</source>
<translation>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символ.</numerusform>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символа.</numerusform>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../computer_dialog_general.cc" line="163"/>
<source>The ID can only contain numbers.</source>
<translation>ID может содержать только цифры.</translation>
</message>
<message>
<location filename="../computer_dialog_general.cc" line="181"/>
<source>An invalid computer address was entered.</source>
<translation>Введен некорректный адрес компьютера.</translation>
</message>
<message>
<location filename="../computer_dialog_general.cc" line="218"/>
<source>Warning</source>
<translation>Предупреждение</translation>
</message>
</context>
<context>
<name>console::ComputerGroupDialog</name>
<message numerus="yes">
<location filename="../computer_group_dialog.cc" line="68"/>
<source>Too long name. The maximum length of the name is %n characters.</source>
<translation>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символ.</numerusform>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символа.</numerusform>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../computer_group_dialog.cc" line="76"/>
<source>Name can not be empty.</source>
<translation>Имя не может быть пустым.</translation>
</message>
<message numerus="yes">
<location filename="../computer_group_dialog.cc" line="84"/>
<source>Too long comment. The maximum length of the comment is %n characters.</source>
<translation>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символ.</numerusform>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символа.</numerusform>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../computer_group_dialog.cc" line="112"/>
<source>Warning</source>
<translation>Предупреждение</translation>
</message>
</context>
<context>
<name>console::ConsoleStatusBar</name>
<message numerus="yes">
<source>%n child group(s)</source>
<translation type="vanished">
<numerusform>%n дочерняя группа</numerusform>
<numerusform>%n дочерние группы</numerusform>
<numerusform>%n дочерних групп</numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n child computer(s)</source>
<translation type="vanished">
<numerusform>%n дочерний компьютер</numerusform>
<numerusform>%n дочерних компьютера</numerusform>
<numerusform>%n дочерних компьютеров</numerusform>
</translation>
</message>
</context>
<context>
<name>console::ConsoleWindow</name>
<message>
<source>Warning</source>
<translation type="vanished">Предупреждение</translation>
</message>
<message>
<source>Pinned address book file "%1" was not found.<br/>This file will be unpinned.</source>
<translation type="vanished">Закрепленный файл адресной книги "%1" не найден.<br/>Этот файл будет откреплен.</translation>
</message>
<message>
<source>Open Address Book</source>
<translation type="vanished">Открытие адресной книги</translation>
</message>
<message>
<source>Aspia Address Book (*.aab)</source>
<translation type="vanished">Адресная книга Aspia (*.aab)</translation>
</message>
<message>
<source>Confirmation</source>
<translation type="vanished">Подтверждение</translation>
</message>
<message>
<source>Address book "%1" has been changed. Save changes?</source>
<translation type="vanished">Адресная книга "%1" изменена. Сохранить изменения?</translation>
</message>
<message>
<source>Close other tabs</source>
<translation type="vanished">Закрыть другие вкладки</translation>
</message>
<message>
<source>Close tab</source>
<translation type="vanished">Закрыть вкладку</translation>
</message>
<message>
<source>Pin tab</source>
<translation type="vanished">Закрепить вкладку</translation>
</message>
<message>
<source>Hide</source>
<translation type="vanished">Спрятать</translation>
</message>
<message>
<source>Show</source>
<translation type="vanished">Показать</translation>
</message>
<message>
<source><empty></source>
<translation type="vanished"><пусто></translation>
</message>
<message>
<source>Aspia Console</source>
<translation type="vanished">Консоль Aspia</translation>
</message>
<message>
<source>Information</source>
<translation type="vanished">Информация</translation>
</message>
<message>
<source>Address Book "%1" is already open.</source>
<translation type="vanished">Адресная книга "%1" уже открыта.</translation>
</message>
</context>
<context>
<name>console::MainWindow</name>
<message>
<location filename="../main_window.cc" line="163"/>
<location filename="../main_window.cc" line="1121"/>
<source>Warning</source>
<translation>Предупреждение</translation>
</message>
<message>
<location filename="../main_window.cc" line="164"/>
<source>Pinned address book file "%1" was not found.<br/>This file will be unpinned.</source>
<translation>Закрепленный файл адресной книги "%1" не найден.<br/>Этот файл будет откреплен.</translation>
</message>
<message>
<location filename="../main_window.cc" line="260"/>
<source>Open Address Book</source>
<translation>Открытие адресной книги</translation>
</message>
<message>
<location filename="../main_window.cc" line="262"/>
<source>Aspia Address Book (*.aab)</source>
<translation>Адресная книга Aspia (*.aab)</translation>
</message>
<message>
<location filename="../main_window.cc" line="508"/>
<location filename="../main_window.cc" line="819"/>
<location filename="../main_window.cc" line="896"/>
<source>Confirmation</source>
<translation>Подтверждение</translation>
</message>
<message>
<location filename="../main_window.cc" line="509"/>
<location filename="../main_window.cc" line="897"/>
<source>Address book "%1" has been changed. Save changes?</source>
<translation>Адресная книга "%1" изменена. Сохранить изменения?</translation>
</message>
<message>
<location filename="../main_window.cc" line="712"/>
<source>Close other tabs</source>
<translation>Закрыть другие вкладки</translation>
</message>
<message>
<location filename="../main_window.cc" line="719"/>
<source>Close tab</source>
<translation>Закрыть вкладку</translation>
</message>
<message>
<location filename="../main_window.cc" line="720"/>
<location filename="../main_window.cc" line="725"/>
<source>Pin tab</source>
<translation>Закрепить вкладку</translation>
</message>
<message>
<location filename="../main_window.cc" line="820"/>
<source>The list of recently opened address books will be cleared. Continue?</source>
<translation>Список недавно открытых адресных книг будет очищен. Продолжить?</translation>
</message>
<message>
<location filename="../main_window.cc" line="853"/>
<source>Hide</source>
<translation>Спрятать</translation>
</message>
<message>
<location filename="../main_window.cc" line="868"/>
<source>Show</source>
<translation>Показать</translation>
</message>
<message>
<location filename="../main_window.cc" line="1122"/>
<source>The computer properties indicate the use of the router, but the specified router was not found in the list. Check if the router is specified correctly.</source>
<translation>В свойствах компьютера указано использование маршрутизатора, но указанный маршрутизатор не найден в списке. Проверьте, правильно ли указан маршрутизатор.</translation>
</message>
<message>
<source><empty></source>
<translation type="vanished"><пусто></translation>
</message>
<message>
<location filename="../main_window.cc" line="1004"/>
<source>Aspia Console</source>
<translation>Консоль Aspia</translation>
</message>
<message>
<location filename="../main_window.cc" line="232"/>
<source>Information</source>
<translation>Информация</translation>
</message>
<message>
<location filename="../main_window.cc" line="233"/>
<source>Address Book "%1" is already open.</source>
<translation>Адресная книга "%1" уже открыта.</translation>
</message>
</context>
<context>
<name>console::MruAction</name>
<message>
<location filename="../mru_action.cc" line="29"/>
<source><empty></source>
<translation><пусто></translation>
</message>
</context>
<context>
<name>console::OpenAddressBookDialog</name>
<message>
<location filename="../open_address_book_dialog.cc" line="42"/>
<source>Without Encryption</source>
<translation>Без шифрования</translation>
</message>
<message>
<location filename="../open_address_book_dialog.cc" line="46"/>
<source>ChaCha20 + Poly1305 (256-bit key)</source>
<translation>ChaCha20 + Poly1305 (256-битный ключ)</translation>
</message>
</context>
<context>
<name>console::RouterDialog</name>
<message numerus="yes">
<location filename="../router_dialog.cc" line="97"/>
<source>Too long name. The maximum length of the name is %n characters.</source>
<translation>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символ.</numerusform>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символа.</numerusform>
<numerusform>Слишком длинное имя. Максимальная длина имени %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../router_dialog.cc" line="105"/>
<source>Name can not be empty.</source>
<translation>Имя не может быть пустым.</translation>
</message>
<message>
<location filename="../router_dialog.cc" line="115"/>
<source>The user name can not be empty and can contain only alphabet characters, numbers and _, -, . characters.</source>
<translation>Имя пользователя не может быть пустым и может содержать только буквы алфавита, цифры и символы "_","-",".".</translation>
</message>
<message numerus="yes">
<location filename="../router_dialog.cc" line="125"/>
<source>Too long comment. The maximum length of the comment is %n characters.</source>
<translation>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символ.</numerusform>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символа.</numerusform>
<numerusform>Слишком длинный комментарий. Максимальная длина комментария %n символов.</numerusform>
</translation>
</message>
<message>
<location filename="../router_dialog.cc" line="136"/>
<source>An invalid router address was entered.</source>
<translation>Введен некорректный адрес маршрутизатора.</translation>
</message>
<message>
<source>An invalid computer address was entered.</source>
<translation type="obsolete">Введен некорректный адрес компьютера.</translation>
</message>
<message>
<location filename="../router_dialog.cc" line="163"/>
<source>Warning</source>
<translation>Предупреждение</translation>
</message>
</context>
<context>
<name>console::StatusBar</name>
<message numerus="yes">
<location filename="../statusbar.cc" line="37"/>
<source>%n child group(s)</source>
<translation>
<numerusform>%n дочерняя группа</numerusform>
<numerusform>%n дочерние группы</numerusform>
<numerusform>%n дочерних групп</numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../statusbar.cc" line="38"/>
<source>%n child computer(s)</source>
<translation>
<numerusform>%n дочерний компьютер</numerusform>
<numerusform>%n дочерних компьютера</numerusform>
<numerusform>%n дочерних компьютеров</numerusform>
</translation>
</message>
</context>
</TS>
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* $Id: Connection.java,v 1.2 2005/07/23 04:09:58 kohlert Exp $
*/
/** Java interface "Connection.java" generated from Poseidon for UML.
* Poseidon for UML is developed by <A HREF="http://www.gentleware.com">Gentleware</A>.
* Generated with <A HREF="http://jakarta.apache.org/velocity/">velocity</A> template engine.
*/
package com.sun.pept.transport;
import com.sun.pept.ept.EPTFactory;
import java.nio.ByteBuffer;
import java.util.*;
/**
* <p>
*
* @author Dr. Harold Carr
* </p>
*/
public interface Connection {
///////////////////////////////////////
// operations
/**
* <p>
* Does ...
* </p><p>
*
* </p><p>
*
* @param byteBuffer ...
* </p>
*/
public void write(ByteBuffer byteBuffer);
/**
* <p>
* Does ...
* </p><p>
*
* @return a EPTFactory with ...
* </p>
*/
public EPTFactory getEPTFactory();
/**
* <p>
* Does ...
* </p><p>
*
* @return a int with ...
* </p><p>
* @param byteBuffer ...
* </p>
*/
public int read(ByteBuffer byteBuffer);
/**
* <p>
* Does ...
* </p><p>
*
* </p>
*/
public ByteBuffer readUntilEnd();
} // end Connection
|
{
"pile_set_name": "Github"
}
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
module.exports = function (grunt) {
grunt.config('concat', {
// auto configured by usemin
});
};
|
{
"pile_set_name": "Github"
}
|
######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Mark Pilgrim - port to Python
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
######################### END LICENSE BLOCK #########################
from .mbcharsetprober import MultiByteCharSetProber
from .codingstatemachine import CodingStateMachine
from .chardistribution import Big5DistributionAnalysis
from .mbcssm import BIG5_SM_MODEL
class Big5Prober(MultiByteCharSetProber):
def __init__(self):
super(Big5Prober, self).__init__()
self.coding_sm = CodingStateMachine(BIG5_SM_MODEL)
self.distribution_analyzer = Big5DistributionAnalysis()
self.reset()
@property
def charset_name(self):
return "Big5"
@property
def language(self):
return "Chinese"
|
{
"pile_set_name": "Github"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.