code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
# Chaetoplea crossata (Ellis & Everh.) M.E. Barr SPECIES #### Status ACCEPTED #### According to Index Fungorum #### Published in Mem. N. Y. bot. Gdn 62: 50 (1990) #### Original name Teichospora crossata Ellis & Everh. ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Dothideomycetes/Pleosporales/Leptosphaeriaceae/Chaetoplea/Chaetoplea crossata/README.md
Markdown
apache-2.0
239
<?php /* * Apolbox - Framework Productiont * * Apolbox adalah kode sumber yang terbuka sebagai aplikasi kerangka kerja untuk membangun website dengan metode penyihir, * yang dapat membuat pembangunan website lebih cepat dan lebih praktis. * * (c) Ayus irfang filaras * */ require_once __DIR__.'/../bootstrap/pustaka.php'; /** * Apolbox - Framework Productiont * * Apolbox adalah kode sumber yang terbuka sebagai aplikasi kerangka kerja untuk membangun website dengan metode penyihir, * yang dapat membuat pembangunan website lebih cepat dan lebih praktis. * * @package apolbox * @subpackage administrator * * @copyright (c) [29 Juni 2016] * @since version 1.0.0 * * @author Ayus Irfang Filaras <[email protected]> * @link https://github.com/apolbox/apolbox.git * @lisence https://github.com/apolbox/apolbox/blob/master/LICENSE */ $pustaka = new Pustaka\Applications(); return $pustaka->run();
apolbox-project/apolbox
public_html/index.php
PHP
apache-2.0
921
/* * Copyright 2016 * Ubiquitous Knowledge Processing (UKP) Lab * Technische Universität Darmstadt * * 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 de.tudarmstadt.ukp.experiments.argumentation.sequence.io.filters; import de.tudarmstadt.ukp.experiments.argumentation.sequence.DocumentRegister; import org.apache.uima.jcas.JCas; import java.util.HashSet; import java.util.Set; /** * Filter wrt document register * * @author Ivan Habernal */ public class DocumentRegisterFilter implements DocumentCollectionFilter { private final Set<DocumentRegister> documentRegisters = new HashSet<>(); public DocumentRegisterFilter(String documentRegistersString) { // parse document registers if (!documentRegistersString.isEmpty()) { for (String documentDomainSplit : documentRegistersString.split(" ")) { String domain = documentDomainSplit.trim(); if (!domain.isEmpty()) { documentRegisters.add(DocumentRegister.fromString(domain)); } } } } @Override public boolean removeFromCollection(JCas jCas) { DocumentRegister register = DocumentRegister.fromJCas(jCas); return !documentRegisters.isEmpty() && !documentRegisters.contains(register); } @Override public boolean applyFilter() { return !documentRegisters.isEmpty(); } }
habernal/emnlp2015
code/experiments/src/main/java/de/tudarmstadt/ukp/experiments/argumentation/sequence/io/filters/DocumentRegisterFilter.java
Java
apache-2.0
1,948
# Helicoön fairmani Sacc. SPECIES #### Status SYNONYM #### According to Index Fungorum #### Published in null #### Original name Helicoön fairmani Sacc. ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Dothideomycetes/Pleosporales/Tubeufiaceae/Helicoön/Helicoön fairmanii/ Syn. Helicoön fairmani/README.md
Markdown
apache-2.0
176
# Graphorkis venulosa (Rchb.f.) Kuntze SPECIES #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Eulophia/Eulophia venulosa/ Syn. Graphorkis venulosa/README.md
Markdown
apache-2.0
193
# Udeniomyces Nakase & Takem. GENUS #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in FEMS Microbiol. Lett. 100(1-3): 498 (1992) #### Original name Udeniomyces Nakase & Takem. ### Remarks null
mdoering/backbone
life/Fungi/Basidiomycota/Tremellomycetes/Cystofilobasidiales/Cyfstofilobasidiaceae/Udeniomyces/README.md
Markdown
apache-2.0
244
# Helotium kunicense Velen. SPECIES #### Status ACCEPTED #### According to Index Fungorum #### Published in Monogr. Discom. Bohem. (Prague) 184 (1934) #### Original name Helotium kunicense Velen. ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Leotiomycetes/Helotiales/Helotiaceae/Cudoniella/Helotium kunicense/README.md
Markdown
apache-2.0
217
# Varronia martintiscensis Crantz SPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Boraginales/Boraginaceae/Varronia/Varronia martintiscensis/README.md
Markdown
apache-2.0
181
# Trichia globosa Vill. SPECIES #### Status ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Trichia globosa Vill. ### Remarks null
mdoering/backbone
life/Protozoa/Mycetozoa/Myxomycetes/Trichiales/Trichiaceae/Trichia/Trichia globosa/README.md
Markdown
apache-2.0
171
# Schenodorus lanatus (Kunth) Roem. & Schult. SPECIES #### Status SYNONYM #### According to Integrated Taxonomic Information System #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Liliopsida/Poales/Poaceae/Bromus/Bromus lanatus/ Syn. Schenodorus lanatus/README.md
Markdown
apache-2.0
200
# Pleospora scrophulariae var. compositarum (Earle) Wehm. VARIETY #### Status ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Pleospora compositarum Tracy & Earle ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Dothideomycetes/Pleosporales/Pleosporaceae/Lewia/Lewia scrophulariae/Pleospora scrophulariae compositarum/README.md
Markdown
apache-2.0
220
# Geranium subacaulescens var. subacutum Boiss. VARIETY #### Status SYNONYM #### According to GRIN Taxonomy for Plants #### Published in Fl. orient. 1:872. 1867 #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Geraniales/Geraniaceae/Geranium/Geranium subacutum/ Syn. Geranium subacaulescens subacutum/README.md
Markdown
apache-2.0
206
package es.npatarino.android.gotchallenge.chat.message.viewmodel; import android.net.Uri; import es.npatarino.android.gotchallenge.chat.message.model.Payload; public class StickerPayLoad implements Payload { private String stickerFilePath; public StickerPayLoad(String stickerFilePath) { this.stickerFilePath = stickerFilePath; } public String getStickerFilePath() { return stickerFilePath; } public Uri getSticker() { return Uri.parse(stickerFilePath); } }
tonilopezmr/Game-of-Thrones
app/src/main/java/es/npatarino/android/gotchallenge/chat/message/viewmodel/StickerPayLoad.java
Java
apache-2.0
490
/* * File: IAS-LangMod-SysMon/src/lang/mod/monitor/sys/mem/ModuleProxy.h * * Copyright (C) 2015, Albert Krzymowski * * 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. */ #ifndef _IAS_Lang_MOD_Monitor_SYS_MEM_ModuleProxy_H_ #define _IAS_Lang_MOD_Monitor_SYS_MEM_ModuleProxy_H_ #include <lang/interpreter/extern/ModuleProxy.h> namespace IAS { namespace Lang { namespace MOD { namespace Monitor{ namespace SYS { namespace MEM { /*************************************************************************/ /** The ModuleProxy class. * */ class ModuleProxy : public ::IAS::Lang::Interpreter::Extern::ModuleProxy { public: virtual ~ModuleProxy() throw(); static ModuleProxy* Create(); protected: ModuleProxy(); virtual void setupImpl(); virtual void cleanUpImpl(); friend class ::IAS::Factory<ModuleProxy>; }; /*************************************************************************/ } } } } } } /*************************************************************************/ extern "C"{ void* ias_lang_mod_monitor_sys_mem_proxy(); } /*************************************************************************/ #endif /* _IAS_Lang_MOD_Monitor_SYS_MEM_ModuleProxy_H_ */
InvenireAude/IAS-Base-OSS
IAS-LangMod-SysMon/src/lang/mod/monitor/sys/mem/ModuleProxy.h
C
apache-2.0
1,689
exports.view = function() { this.render(); }; exports.async = function() { this.render(); };
alibaba/plover
packages/plover/test/fixtures/core/app/modules/helper/index.js
JavaScript
apache-2.0
99
module.exports = { readFiles: readFiles }; var filewalker = require('filewalker'); var _ = require('kling/kling.js'); var fs = require('fs'); function readFiles(directory, fileSuffix) { return new Promise(function(resolve, reject) { var files = []; filewalker(directory) .on('file', function(file) { if (file.endsWith(fileSuffix)) { files.push(file); } }) .on('done', function() { var addLazyReaderCurried = _.curry(addLazyReader); resolve(_.fmap(addLazyReaderCurried(directory), files)); }) .walk(); }); } function addLazyReader(directory, file) { return { name: directory+file, getContents: function() { return fs.readFileSync(directory+file, 'utf8'); } }; }
petercrona/latmask
src/reader/reader.js
JavaScript
apache-2.0
880
# Search dictionary symbol style Find symbols within the mil2525d specification that match a keyword. ![](screenshot.png) ## Use case You can use support for military symbology to allow users to report changes in the field using the correct military symbols. ## How to use the sample By default, leaving the fields blank and hitting search will find all symbols. To search for certain symbols, enter text into one or more search boxes and click 'Search for symbols'. Results are shown in a list. Pressing 'Clear' will reset the search. ## How it works 1. Create a symbol dictionary with the mil2525d specification by passing the string "mil2525d" and the path to a .stylx file to the `SymbolDictionary` constructor. 2. Create `SymbolStyleSearchParameters`. 3. Add members to the `names`, `tags`, `symbolClasses`, `categories`, and `keys` list fields of the search parameters. 4. Search for symbols using the parameters with `DictionarySymbolStyle.searchSymbols(SymbolStyleSearchParameters)`. 5. Get the `Symbol` from the list of returned `SymbolStyleSearchResultListModel`s. ## Relevant API * DictionarySymbolStyle * Symbol * SymbolStyleSearchParameters * SymbolStyleSearchResultListModel ## Offline Data Read more about how to set up the sample's offline data [here](http://links.esri.com/ArcGISRuntimeQtSamples#use-offline-data-in-the-samples). Link | Local Location ---------|-------| |[Mil2525d Stylx File](https://www.arcgis.com/home/item.html?id=c78b149a1d52414682c86a5feeb13d30)| `<userhome>`/ArcGIS/Runtime/Data/styles/arcade_style/mil2525d.stylx | ## Additional information This sample features the mil2525D specification. ArcGIS Runtime supports other military symbology standards, including mil2525C and mil2525B(change 2). See the [Military Symbology Styles](https://solutions.arcgis.com/defense/help/military-symbology-styles/) overview on *ArcGIS Solutions for Defense* for more information about support for military symbology. While developing, you can omit the path to the **.stylx** style file; Runtime will refer to a copy installed with the SDK. For production, you should take care to deploy the proper style files and explicitly specify the path to that file when creating the symbol dictionary. See the [Military Symbology Styles](https://solutions.arcgis.com/defense/help/military-symbology-styles/) overview on *ArcGIS Solutions for Defense* for more information about support for military symbology. ## Tags CIM, defense, look up, MIL-STD-2525B, MIL-STD-2525C, MIL-STD-2525D, mil2525b, mil2525c, mil2525d, military, military symbology, search, symbology
Esri/arcgis-runtime-samples-qt
ArcGISRuntimeSDKQt_QMLSamples/Search/SearchDictionarySymbolStyle/README.md
Markdown
apache-2.0
2,599
/* */ package com.hundsun.network.gates.wulin.biz.service.pojo.auction; /* */ /* */ import com.hundsun.network.gates.luosi.biz.security.ServiceException; /* */ import com.hundsun.network.gates.luosi.common.enums.EnumActiveStatus; /* */ import com.hundsun.network.gates.luosi.common.enums.EnumBidCheckStatus; /* */ import com.hundsun.network.gates.luosi.common.enums.EnumBidPriceStatus; /* */ import com.hundsun.network.gates.luosi.common.enums.EnumOperatorType; /* */ import com.hundsun.network.gates.luosi.common.remote.ServiceResult; /* */ import com.hundsun.network.gates.luosi.wulin.reomte.enums.EnumAuctionErrors; /* */ import com.hundsun.network.gates.luosi.wulin.reomte.request.AuctionMulitBidRequest; /* */ import com.hundsun.network.gates.luosi.wulin.reomte.request.SystemMessageRequest; /* */ import com.hundsun.network.gates.wulin.biz.dao.auction.AuctionBidderDAO; /* */ import com.hundsun.network.gates.wulin.biz.dao.auction.AuctionFreeBidDAO; /* */ import com.hundsun.network.gates.wulin.biz.dao.auction.AuctionHallDAO; /* */ import com.hundsun.network.gates.wulin.biz.dao.auction.AuctionLogDAO; /* */ import com.hundsun.network.gates.wulin.biz.domain.auction.AuctionBidder; /* */ import com.hundsun.network.gates.wulin.biz.domain.auction.AuctionFreeBid; /* */ import com.hundsun.network.gates.wulin.biz.domain.auction.AuctionLog; /* */ import com.hundsun.network.gates.wulin.biz.domain.auction.AuctionMulitBidProject; /* */ import com.hundsun.network.gates.wulin.biz.domain.query.AuctionMulitBidProjectQuery; /* */ import com.hundsun.network.gates.wulin.biz.domain.query.MulitAuctionReviewQuery; /* */ import com.hundsun.network.gates.wulin.biz.service.BaseService; /* */ import com.hundsun.network.gates.wulin.biz.service.auction.MulitAuctionService; /* */ import com.hundsun.network.gates.wulin.biz.service.message.SystemMessageService; /* */ import com.hundsun.network.gates.wulin.biz.service.project.ProjectListingService; /* */ import com.hundsun.network.melody.common.util.StringUtil; /* */ import java.io.IOException; /* */ import java.util.ArrayList; /* */ import java.util.HashMap; /* */ import java.util.List; /* */ import java.util.Locale; /* */ import org.apache.commons.logging.Log; /* */ import org.codehaus.jackson.map.ObjectMapper; /* */ import org.springframework.beans.factory.annotation.Autowired; /* */ import org.springframework.context.MessageSource; /* */ import org.springframework.stereotype.Service; /* */ import org.springframework.transaction.TransactionStatus; /* */ import org.springframework.transaction.support.TransactionCallback; /* */ import org.springframework.transaction.support.TransactionTemplate; /* */ /* */ @Service("mulitAuctionService") /* */ public class MulitAuctionServiceImpl extends BaseService /* */ implements MulitAuctionService /* */ { /* */ /* */ @Autowired /* */ private ProjectListingService projectListingService; /* */ /* */ @Autowired /* */ private AuctionFreeBidDAO auctionFreeBidDAO; /* */ /* */ @Autowired /* */ private AuctionBidderDAO auctionBidderDAO; /* */ /* */ @Autowired /* */ private AuctionLogDAO auctionLogDAO; /* */ /* */ @Autowired /* */ private MessageSource messageSource; /* */ /* */ @Autowired /* */ private AuctionHallDAO auctionHallDAO; /* */ /* */ @Autowired /* */ private SystemMessageService systemMessageService; /* */ /* */ public ServiceResult review(final AuctionMulitBidRequest request) /* */ { /* 70 */ ServiceResult serviceResult = new ServiceResult(); /* */ /* 72 */ if ((null == request) || (StringUtil.isEmpty(request.getBidderAccount())) || (StringUtil.isEmpty(request.getReviewer())) || (StringUtil.isEmpty(request.getProjectCode())) || (StringUtil.isEmpty(request.getRemark()))) /* */ { /* 76 */ serviceResult.setErrorNOInfo(Integer.valueOf(EnumAuctionErrors.PARAMETER_ERROR.getValue()), EnumAuctionErrors.PARAMETER_ERROR.getInfo()); /* */ /* 78 */ return serviceResult; /* */ } /* 80 */ AuctionMulitBidProjectQuery query = new AuctionMulitBidProjectQuery(); /* 81 */ query.setReviewer(request.getReviewer()); /* 82 */ query.setProjectCode(request.getProjectCode()); /* 83 */ List projectList = this.projectListingService.queryAuctionMulitBidProjectUncheckedByProjectCode(query); /* */ /* 86 */ if ((null == projectList) || (projectList.size() <= 0)) { /* 87 */ serviceResult.setErrorNOInfo(Integer.valueOf(EnumAuctionErrors.CHECK_PROJECT_LISTING_NULL.getValue()), EnumAuctionErrors.CHECK_PROJECT_LISTING_NULL.getInfo()); /* */ /* 89 */ return serviceResult; /* */ } /* */ /* 92 */ AuctionFreeBid auctionFreeBid = queryTopUncheckFreeBid(request.getProjectCode(), request.getBidderAccount()); /* */ /* 94 */ if (null == auctionFreeBid) { /* 95 */ serviceResult.setErrorNOInfo(Integer.valueOf(EnumAuctionErrors.PARAMETER_ERROR.getValue()), EnumAuctionErrors.PARAMETER_ERROR.getInfo()); /* */ /* 97 */ return serviceResult; /* */ } /* */ /* 100 */ AuctionBidder auctionBidder = this.auctionBidderDAO.selectNormalByBidderAccount(request.getProjectCode(), request.getBidderAccount()); /* */ /* 102 */ if (null == auctionBidder) { /* 103 */ serviceResult.setErrorNOInfo(Integer.valueOf(EnumAuctionErrors.CHECK_BIDDER_NULL.getValue()), EnumAuctionErrors.CHECK_BIDDER_NULL.getInfo()); /* */ /* 105 */ return serviceResult; /* */ } /* 107 */ ObjectMapper mapper = new ObjectMapper(); /* 108 */ String auctionBidderJson = ""; /* */ try { /* 110 */ auctionBidderJson = mapper.writeValueAsString(auctionBidder); /* */ } catch (IOException e) { /* 112 */ if (this.log.isErrorEnabled()) { /* 113 */ this.log.error("convert auctionBidder to json format fail,", e); /* */ } /* */ } /* 116 */ final String fAuctionBidderJson = auctionBidderJson; /* 117 */ final AuctionFreeBid fAuctionFreeBid = auctionFreeBid; /* 118 */ final String logRemark = getMessage("project.auction.mulitbid.review.log.remark", new String[] { request.getReviewer(), auctionBidder.getBidderAccount() }); /* */ /* 120 */ final AuctionBidder fAuctionBidder = auctionBidder; /* 121 */ final AuctionMulitBidProject fAuctionMulitBidProject = (AuctionMulitBidProject)projectList.get(0); /* */ /* 123 */ serviceResult = (ServiceResult)this.transactionTemplate.execute(new TransactionCallback() { /* */ public ServiceResult doInTransaction(TransactionStatus status) { /* 125 */ ServiceResult result = new ServiceResult(); /* 126 */ Object savePoint = status.createSavepoint(); /* */ try /* */ { /* 129 */ AuctionFreeBid auctionFreeBid = new AuctionFreeBid(); /* 130 */ auctionFreeBid.setBidderAccount(fAuctionFreeBid.getBidderAccount()); /* 131 */ auctionFreeBid.setBidderTrademark(fAuctionFreeBid.getBidderTrademark()); /* 132 */ auctionFreeBid.setBidOperatorAccount(fAuctionFreeBid.getBidOperatorAccount()); /* 133 */ auctionFreeBid.setCheckRemark(request.getRemark()); /* 134 */ auctionFreeBid.setCheckStatus(EnumBidCheckStatus.Fail.getValue()); /* 135 */ auctionFreeBid.setIp(fAuctionFreeBid.getIp()); /* 136 */ auctionFreeBid.setOperator(request.getOperator()); /* 137 */ auctionFreeBid.setPrice(fAuctionFreeBid.getPrice()); /* 138 */ auctionFreeBid.setProjectCode(request.getProjectCode()); /* 139 */ auctionFreeBid.setStatus(fAuctionFreeBid.getStatus()); /* 140 */ MulitAuctionServiceImpl.this.auctionFreeBidDAO.insert(auctionFreeBid); /* */ /* 143 */ if (MulitAuctionServiceImpl.this.auctionBidderDAO.deleteByBidderAccount(request.getProjectCode(), request.getBidderAccount()) <= 0) /* */ { /* 145 */ throw new ServiceException(EnumAuctionErrors.REVIEW_DELETE_BIDDER_FAIL.getInfo(), Integer.valueOf(EnumAuctionErrors.REVIEW_DELETE_BIDDER_FAIL.getValue())); /* */ } /* */ /* 150 */ if (EnumActiveStatus.Yes.getValue().equals(fAuctionBidder.getIsPriority())) { /* 151 */ HashMap actionHallMap = new HashMap(); /* 152 */ actionHallMap.put("priorityNumSub", Integer.valueOf(1)); /* 153 */ actionHallMap.put("whereProjectCode", request.getProjectCode()); /* 154 */ if (MulitAuctionServiceImpl.this.auctionHallDAO.updateByMap(actionHallMap) <= 0) { /* 155 */ throw new ServiceException(EnumAuctionErrors.REVIEW_UPDATE_HALL_FALL.getInfo(), Integer.valueOf(EnumAuctionErrors.REVIEW_UPDATE_HALL_FALL.getValue())); /* */ } /* */ /* */ } /* */ /* 172 */ SystemMessageRequest systemMessageRequest = new SystemMessageRequest(); /* 173 */ systemMessageRequest.setSendAccount(EnumOperatorType.SYSTEM.getValue()); /* 174 */ systemMessageRequest.setContent(MulitAuctionServiceImpl.this.getMessage("project.auction.mulitbid.review.message.content", new String[] { fAuctionMulitBidProject.getProjectTitle(), request.getRemark() })); /* */ /* 177 */ systemMessageRequest.setTitle(MulitAuctionServiceImpl.this.getMessage("project.auction.mulitbid.review.message.title", new String[0])); /* */ /* 179 */ List userAccountList = new ArrayList(); /* 180 */ userAccountList.add(fAuctionBidder.getBidderAccount()); /* 181 */ systemMessageRequest.setUserAccountList(userAccountList); /* 182 */ MulitAuctionServiceImpl.this.systemMessageService.sendSystemMessage(systemMessageRequest); /* */ /* 185 */ AuctionLog auctionLog = new AuctionLog(); /* 186 */ auctionLog.setDataJson(fAuctionBidderJson); /* 187 */ auctionLog.setProjectCode(request.getProjectCode()); /* 188 */ auctionLog.setRemark(logRemark); /* 189 */ auctionLog.setOperatorType(EnumOperatorType.REVIEWER.getValue()); /* 190 */ auctionLog.setOperator(request.getReviewer()); /* 191 */ MulitAuctionServiceImpl.this.auctionLogDAO.insert(auctionLog); /* */ } /* */ catch (ServiceException e) { /* 194 */ status.rollbackToSavepoint(savePoint); /* 195 */ MulitAuctionServiceImpl.this.log.error("MulitAuctionServiceImpl review fail", e); /* 196 */ result.setErrorNO(e.getErrorNO()); /* 197 */ result.setErrorInfo(e.getErrorInfo()); /* */ } catch (Exception e) { /* 199 */ status.rollbackToSavepoint(savePoint); /* 200 */ MulitAuctionServiceImpl.this.log.error("MulitAuctionServiceImpl review error", e); /* 201 */ result.setErrorNO(Integer.valueOf(EnumAuctionErrors.INTERNAL_ERROR.getValue())); /* 202 */ result.setErrorInfo(EnumAuctionErrors.INTERNAL_ERROR.getInfo()); /* */ } /* 204 */ return result; /* */ } /* */ }); /* 208 */ return serviceResult; /* */ } /* */ /* */ public AuctionFreeBid queryTopUncheckFreeBid(String projectCode, String bidderAccount) /* */ { /* 213 */ MulitAuctionReviewQuery query = new MulitAuctionReviewQuery(); /* 214 */ query.setBidderAccount(bidderAccount); /* 215 */ query.setCheckStatus(EnumBidCheckStatus.Pass); /* 216 */ query.setProjectCode(projectCode); /* 217 */ query.setStatus(EnumBidPriceStatus.EFFECTIVE); /* 218 */ return this.auctionFreeBidDAO.selectTopByMulitAuctionReviewQuery(query); /* */ } /* */ /* */ protected String getMessage(String code, String[] args) { /* 222 */ return this.messageSource.getMessage(code, args, Locale.CHINA); /* */ } /* */ } /* Location: E:\__安装归档\linquan-20161112\deploy16\wulin\webroot\WEB-INF\classes\ * Qualified Name: com.hundsun.network.gates.wulin.biz.service.pojo.auction.MulitAuctionServiceImpl * JD-Core Version: 0.6.0 */
hnccfr/ccfrweb
basecore/src/com/hundsun/network/gates/wulin/biz/service/pojo/auction/MulitAuctionServiceImpl.java
Java
apache-2.0
12,488
/* * Copyright 2002-2013 the original author or authors. * * 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 org.utn.dacs2017.compraventa.vendedor; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; /** * @author Grego Dadone */ @Controller class VendedorController { private final VendedorRepository vendedores; @Autowired public VendedorController(VendedorRepository vendedorService) { this.vendedores = vendedorService; } @RequestMapping(value = { "/vendedores.html" }) public String showVendedorList(Map<String, Object> model) { Vendedores vendedores = new Vendedores(); vendedores.getVendedorList().addAll(this.vendedores.findAll()); model.put("vendedores", vendedores); return "vendedores/vendedorList"; } @RequestMapping(value = { "/vendedores.json", "/vendedores.xml" }) public @ResponseBody Vendedores showResourcesVendedorList() { Vendedores vendedores = new Vendedores(); vendedores.getVendedorList().addAll(this.vendedores.findAll()); return vendedores; } }
gregodadone/spring-compraventa
src/main/java/org/utn/dacs2017/compraventa/vendedor/VendedorController.java
Java
apache-2.0
1,812
--- layout: post title: "LeetCode EFS" subtitle: "" date: 2019-12-20 author: "Jiayi.Liu" header-img: "img/post-bg-2015.jpg" catalog: true tags: - LeetCode - Interview --- ##### 935. Knight Dialer &nbsp;&nbsp;&nbsp;&nbsp;This question is a great example of seeing a problem from **forward or backward**! &nbsp;&nbsp;&nbsp;&nbsp;Also, it looks like we should always think about separating the program into **stages** and **transition function**. ##### 785. Is Graph Bipartite? &nbsp;&nbsp;&nbsp;&nbsp;There are a few steps for solving a programming problem: 1. Analyze the problem and find a way of solving the problem **with natural language**. In this step, we need to understand the problem and think of analytical solution or programmatic solution (search). If no idea, using brute-force method should be considered in this step. 2. Find a programming **pattern** (Search? Traversal? Backtracking? DP? etc.) can fit the 'natural language solution'. Actually step 2 and step 1 are somewhat related because we can also use programming patterns to help finding the natural language solution. 3. See if we can do further optimization with some tricks such as shown in the following problem. ##### 837. New 21 Game > The purpose of DP is **reduce duplicated** calculations! So, once you noticed duplicated calculation in your algorithm, try to use DP. &nbsp;&nbsp;&nbsp;&nbsp;Thinking the brute-force method can really help us understand the problem. For this problem, the brute-force method takes exponential complexity and DP is a easily found better solution. &nbsp;&nbsp;&nbsp;&nbsp;We can learn a trick from this problem : if we want to sum over an array, it can be simplified as `sum(m::n) = sum(1::n) - sum(1::m)`. This is especially usefull with DP. ##### 742. Closest Leaf in a Binary Tree &nbsp;&nbsp;&nbsp;&nbsp;When we face the case we need to *go backward* in a tree, *change it to a graph* can be a good idea. Because the action of going backward basically breaked the meaning of a tree structure, thus we can expand a tree to a more abstract structure that still preserved the relation between nodes. &nbsp;&nbsp;&nbsp;&nbsp;Changing a tree representation to a graph breaks the *parent-children* relationship in tree. The *parent-children* relation can be constrains and also helpers. For example, when we search for the longest path from leaf to leaf, we can use the parent-children relation as a hint and use DP! ##### 373. Find K Pairs with Smallest Sums &nbsp;&nbsp;&nbsp;&nbsp;For this question, it can be super helpful if you think about representing the result with matrix. But even if you don't, you can still do something to **minimize the cost** such as only consider the *first k element in both arrays*. ##### 1182. Shortest Distance to Target Color &nbsp;&nbsp;&nbsp;&nbsp;This is a typical searching problem, and even the brute-force searching looks ok we may be able to improve that. The key of searching is to see **what is the critieria we are searching for** and **how we can get rid of candidates ASAP**. Using critieria as index is a good idea to get rid of candidates. ##### 1261. Find Elements in a Contaminated Binary Tree &nbsp;&nbsp;&nbsp;&nbsp;In this problem we can see that we always have different ways of optimizing. Here we can calculate the path from root to the node which will cause `O(logN)` time complexity and `O(1)` extra memory. However, if we want to optimize for find latency, we can always use a set to store all nodes value. &nbsp;&nbsp;&nbsp;&nbsp;Another point needs to learn from this problem is **make sure you understand what option is needed**, for example 'find existance', 'search with critieria' etc. ##### 1130. Minimum Cost Tree From Leaf Values &nbsp;&nbsp;&nbsp;&nbsp;[This solution](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/discuss/340004/Python-Easy-DP) is a typical **divide & conquer** method! If the result of mother problem can be divided into result of smaller problem, we should consider both **DP** and **divide & conqure**.
Jiayi666/Jiayi666.github.io
_posts/2019-12-20-leetcode-efs01.md
Markdown
apache-2.0
4,077
package com.afollestad.breadcrumb; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.graphics.RectF; import android.graphics.drawable.Drawable; import android.os.Build; import android.support.annotation.NonNull; import android.support.v4.view.ViewCompat; import android.text.TextUtils; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.HorizontalScrollView; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * @author Aidan Follestad (afollestad) */ public class LinearBreadcrumb extends HorizontalScrollView implements View.OnClickListener { public static class Crumb implements Serializable { public Crumb(String path,String attachMsg) { mPath = path; mAttachMsg = attachMsg; } private final String mPath; private final String mAttachMsg; private int mScrollY; private int mScrollOffset; public int getScrollY() { return mScrollY; } public int getScrollOffset() { return mScrollOffset; } public void setScrollY(int scrollY) { this.mScrollY = scrollY; } public void setScrollOffset(int scrollOffset) { this.mScrollOffset = scrollOffset; } public String getPath() { return mPath; } public String getTitle() { return (!TextUtils.isEmpty(mAttachMsg)) ? mAttachMsg : mPath; } public String getmAttachMsg() { return mAttachMsg; } @Override public boolean equals(Object o) { return (o instanceof Crumb) && ((Crumb) o).getPath().equals(getPath()); } @Override public String toString() { return "Crumb{" + "mAttachMsg='" + mAttachMsg + '\'' + ", mPath='" + mPath + '\'' + ", mScrollY=" + mScrollY + ", mScrollOffset=" + mScrollOffset + '}'; } } public interface SelectionCallback { void onCrumbSelection(Crumb crumb, String absolutePath, int count, int index); } public LinearBreadcrumb(Context context) { super(context); init(); } public LinearBreadcrumb(Context context, AttributeSet attrs) { super(context, attrs); init(); } public LinearBreadcrumb(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(); } private List<Crumb> mCrumbs; private List<Crumb> mOldCrumbs; private LinearLayout mChildFrame; private int mActive; private SelectionCallback mCallback; private void init() { setMinimumHeight((int) getResources().getDimension(R.dimen.breadcrumb_height)); setClipToPadding(false); mCrumbs = new ArrayList<>(); mChildFrame = new LinearLayout(getContext()); addView(mChildFrame, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.MATCH_PARENT)); } @TargetApi(Build.VERSION_CODES.JELLY_BEAN) private void setAlpha(View view, int alpha) { if (view instanceof ImageView && Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { ((ImageView) view).setImageAlpha(alpha); } else { ViewCompat.setAlpha(view, alpha); } } public void addCrumb(@NonNull Crumb crumb, boolean refreshLayout) { LinearLayout view = (LinearLayout) LayoutInflater.from(getContext()).inflate(R.layout.bread_crumb, this, false); view.setTag(mCrumbs.size()); view.setClickable(true); view.setFocusable(true); view.setOnClickListener(this); mChildFrame.addView(view, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); mCrumbs.add(crumb); if (refreshLayout) { mActive = mCrumbs.size() - 1; requestLayout(); } invalidateActivatedAll(); } @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); //RTL works fine like this View child = mChildFrame.getChildAt(mActive); if (child != null) smoothScrollTo(child.getLeft(), 0); } public Crumb findCrumb(@NonNull String forDir) { for (int i = 0; i < mCrumbs.size(); i++) { if (mCrumbs.get(i).getPath().equals(forDir)) return mCrumbs.get(i); } return null; } public void clearCrumbs() { try { mOldCrumbs = new ArrayList<>(mCrumbs); mCrumbs.clear(); mChildFrame.removeAllViews(); } catch (IllegalStateException e) { e.printStackTrace(); } } public Crumb getCrumb(int index) { return mCrumbs.get(index); } public void setCallback(SelectionCallback callback) { mCallback = callback; } public boolean setActive(Crumb newActive) { mActive = mCrumbs.indexOf(newActive); for(int i = size()-1;size()>mActive+1;i--){ removeCrumbAt(i); } ((LinearLayout)mChildFrame.getChildAt(mActive)).getChildAt(1).setVisibility(View.GONE); boolean success = mActive > -1; if (success) requestLayout(); return success; } private void invalidateActivatedAll() { for (int i = 0; i < mCrumbs.size(); i++) { Crumb crumb = mCrumbs.get(i); invalidateActivated(mChildFrame.getChildAt(i), mActive == mCrumbs.indexOf(crumb), i < mCrumbs.size() - 1).setText(crumb.getTitle()); } } public void removeCrumbAt(int index) { mCrumbs.remove(index); mChildFrame.removeViewAt(index); } private void updateIndices() { for (int i = 0; i < mChildFrame.getChildCount(); i++) mChildFrame.getChildAt(i).setTag(i); } private boolean isValidPath(String path) { return path == null; } public int size() { return mCrumbs.size(); } private TextView invalidateActivated(View view, boolean isActive, boolean isShowSeparator) { LinearLayout child = (LinearLayout) view; if (isShowSeparator) child.getChildAt(1).setVisibility(View.VISIBLE); return (TextView) child.getChildAt(0); } public int getActiveIndex() { return mActive; } @Override public void onClick(View v) { if (mCallback != null) { int index = (Integer) v.getTag(); if (index >= 0 && index < (size()-1)) { setActive(mCrumbs.get(index)); mCallback.onCrumbSelection(mCrumbs.get(index), getAbsolutePath(mCrumbs.get(index), "/"), mCrumbs.size(), index); } } } public static class SavedStateWrapper implements Serializable { public final int mActive; public final List<Crumb> mCrumbs; public final int mVisibility; public SavedStateWrapper(LinearBreadcrumb view) { mActive = view.mActive; mCrumbs = view.mCrumbs; mVisibility = view.getVisibility(); } } public SavedStateWrapper getStateWrapper() { return new SavedStateWrapper(this); } public void restoreFromStateWrapper(SavedStateWrapper mSavedState, Activity context) { if (mSavedState != null) { mActive = mSavedState.mActive; for (Crumb c : mSavedState.mCrumbs) { addCrumb(c, false); } requestLayout(); setVisibility(mSavedState.mVisibility); } } public String getAbsolutePath(Crumb crumb, @NonNull String separator) { StringBuilder builder = new StringBuilder(); if (size() > 1 && !crumb.equals(mCrumbs.get(0))) { List<Crumb> crumbs = mCrumbs.subList(1, size()); for (Crumb mCrumb : crumbs) { builder.append(mCrumb.getPath()); builder.append(separator); if (mCrumb.equals(crumb)) { break; } } String path = builder.toString(); return path.substring(0, path.length() -1); } else { return null; } } public String getCurAbsolutePath(@NonNull String separator){ return getAbsolutePath(getCrumb(mActive),separator); } public void addRootCrumb() { clearCrumbs(); addCrumb(new Crumb("/","root"), true); } public void addPath(@NonNull String path,@NonNull String sha, @NonNull String separator) { clearCrumbs(); addCrumb(new Crumb("",""), false); String[] paths = path.split(separator); Crumb lastCrumb = null; for (String splitPath : paths) { lastCrumb = new Crumb(splitPath,sha); addCrumb(lastCrumb, false); } if (lastCrumb != null) { setActive(lastCrumb); } } }
jbm714060/Github
breadcrumb/src/main/java/com/afollestad/breadcrumb/LinearBreadcrumb.java
Java
apache-2.0
9,519
/** * 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. */ 'use strict'; const invariant = require('invariant'); /** * @typedef {object} request * @property {string} method * @property {string} route - string like /abc/:abc * @property {string} params * @property {object} [body] * @property {object} headers */ /** * @typedef {object} reponse * @property {Error} error - an error which occured during req or res * @property {object} body - content received from server (parsed) * @property {object} headers - set additional request headers * @property {number} status - http status code; 0 on failure */ /** * XHR wrapper for same-domain requests with Content-Type: application/json * * @param {request} request * @return {Promise} */ export default function implore(request) { return new Promise(resolve => { const response = { error: null }; invariant( request, 'implore requires a `request` argument' ); invariant( typeof request.route === 'string', 'implore requires parameter `route` to be a string' ); invariant( typeof request.method === 'string', 'implore requires parameter `method` to be a string' ); const xhr = new XMLHttpRequest(); xhr.open(request.method, getURLFromRequest(request)); switch (request.method) { case 'POST': case 'PUT': case 'PATCH': xhr.setRequestHeader('Content-Type', 'application/json'); break; } if (request.headers) { invariant( typeof request.headers === 'object', 'implore requires parameter `headers` to be an object' ); Object.keys(request.headers).forEach((header) => { xhr.setRequestHeader(header, request.headers[header]); }); } xhr.onreadystatechange = function onreadystatechange() { let responseText; if (xhr.readyState === 4) { responseText = xhr.responseText; response.status = xhr.status; response.type = xhr.getResponseHeader('Content-Type'); if (response.type === 'application/json') { try { response.body = JSON.parse(responseText); } catch (err) { err.message = err.message + ' while parsing `' + responseText + '`'; response.body = {}; response.status = xhr.status || 0; response.error = err; } } else { response.body = responseText; } return resolve({ request, response }); } }; try { if (request.body) { xhr.send(JSON.stringify(request.body)); } else { xhr.send(); } } catch (err) { response.body = {}; response.status = 0; response.error = err; return resolve({ request, response }); } }); } implore.get = function get(options) { options.method = 'GET'; return implore(options); }; implore.post = function post(options) { options.method = 'POST'; return implore(options); }; implore.put = function put(options) { options.method = 'PUT'; return implore(options); }; implore.delete = function httpDelete(options) { options.method = 'DELETE'; return implore(options); }; /** * Combine the route/params/query of a request into a complete URL * * @param {request} request * @param {object|array} request.query * @return {string} url */ function getURLFromRequest(request) { const queryString = makeQueryString(request.query || {}); let formatted = request.route; let name; let value; let regexp; for (name in request.params) { if (request.params.hasOwnProperty(name)) { value = request.params[name]; regexp = new RegExp(':' + name + '(?=(\\\/|$))'); formatted = formatted.replace(regexp, value); } } return formatted + (queryString ? '?' + queryString : ''); } /** * Take a simple object and turn it into a queryString, recursively. * * @param {object} obj - query object * @param {string} prefix - used in recursive calls to keep track of the parent * @return {string} queryString without the '?'' */ function makeQueryString(obj, prefix='') { const str = []; let prop; let key; let value; for (prop in obj) { if (obj.hasOwnProperty(prop)) { key = prefix ? prefix + '[' + prop + ']' : prop; value = obj[prop]; str.push(typeof value === 'object' ? makeQueryString(value, key) : encodeURIComponent(key) + '=' + encodeURIComponent(value)); } } return str.join('&'); }
mdhgriffiths/fluxthis
lib/implore.es6.js
JavaScript
apache-2.0
4,808
/* * Copyright 2015 The Apache Software Foundation. * * 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 org.apache.orc.impl; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assume.assumeTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.anyBoolean; import static org.mockito.Mockito.anyInt; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.io.File; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.util.Random; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector; import org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch; import org.apache.orc.CompressionKind; import org.apache.orc.OrcConf; import org.apache.orc.OrcFile; import org.apache.orc.Reader; import org.apache.orc.RecordReader; import org.apache.orc.TypeDescription; import org.apache.orc.Writer; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; @RunWith(MockitoJUnitRunner.class) public class TestOrcLargeStripe { private Path workDir = new Path(System.getProperty("test.tmp.dir", "target" + File.separator + "test" + File.separator + "tmp")); Configuration conf; FileSystem fs; private Path testFilePath; @Rule public TestName testCaseName = new TestName(); @Before public void openFileSystem() throws Exception { conf = new Configuration(); fs = FileSystem.getLocal(conf); testFilePath = new Path(workDir, "TestOrcFile." + testCaseName.getMethodName() + ".orc"); fs.delete(testFilePath, false); } @Mock private FSDataInputStream mockDataInput; static class RangeBuilder { BufferChunkList result = new BufferChunkList(); RangeBuilder range(long offset, int length) { result.add(new BufferChunk(offset, length)); return this; } BufferChunkList build() { return result; } } @Test public void testZeroCopy() throws Exception { BufferChunkList ranges = new RangeBuilder().range(1000, 3000).build(); HadoopShims.ZeroCopyReaderShim mockZcr = mock(HadoopShims.ZeroCopyReaderShim.class); when(mockZcr.readBuffer(anyInt(), anyBoolean())) .thenAnswer(invocation -> ByteBuffer.allocate(1000)); RecordReaderUtils.readDiskRanges(mockDataInput, mockZcr, ranges, true); verify(mockDataInput).seek(1000); verify(mockZcr).readBuffer(3000, false); verify(mockZcr).readBuffer(2000, false); verify(mockZcr).readBuffer(1000, false); } @Test public void testRangeMerge() throws Exception { BufferChunkList rangeList = new RangeBuilder() .range(100, 1000) .range(1000, 10000) .range(3000, 30000).build(); RecordReaderUtils.readDiskRanges(mockDataInput, null, rangeList, false); verify(mockDataInput).readFully(eq(100L), any(), eq(0), eq(32900)); } @Test public void testRangeSkip() throws Exception { BufferChunkList rangeList = new RangeBuilder() .range(1000, 1000) .range(2000, 1000) .range(4000, 1000) .range(4100, 100) .range(8000, 1000).build(); RecordReaderUtils.readDiskRanges(mockDataInput, null, rangeList, false); verify(mockDataInput).readFully(eq(1000L), any(), eq(0), eq(2000)); verify(mockDataInput).readFully(eq(4000L), any(), eq(0), eq(1000)); verify(mockDataInput).readFully(eq(8000L), any(), eq(0), eq(1000)); } @Test public void testEmpty() throws Exception { BufferChunkList rangeList = new RangeBuilder().build(); RecordReaderUtils.readDiskRanges(mockDataInput, null, rangeList, false); verify(mockDataInput, never()).readFully(anyLong(), any(), anyInt(), anyInt()); } @Test public void testConfigMaxChunkLimit() throws IOException { Configuration conf = new Configuration(); FileSystem fs = FileSystem.getLocal(conf); TypeDescription schema = TypeDescription.createTimestamp(); testFilePath = new Path(workDir, "TestOrcLargeStripe." + testCaseName.getMethodName() + ".orc"); fs.delete(testFilePath, false); Writer writer = OrcFile.createWriter(testFilePath, OrcFile.writerOptions(conf).setSchema(schema).stripeSize(100000).bufferSize(10000) .version(OrcFile.Version.V_0_11).fileSystem(fs)); writer.close(); OrcFile.ReaderOptions opts = OrcFile.readerOptions(conf); Reader reader = OrcFile.createReader(testFilePath, opts); RecordReader recordReader = reader.rows(new Reader.Options().range(0L, Long.MAX_VALUE)); assertTrue(recordReader instanceof RecordReaderImpl); assertEquals(Integer.MAX_VALUE - 1024, ((RecordReaderImpl) recordReader).getMaxDiskRangeChunkLimit()); conf = new Configuration(); conf.setInt(OrcConf.ORC_MAX_DISK_RANGE_CHUNK_LIMIT.getHiveConfName(), 1000); opts = OrcFile.readerOptions(conf); reader = OrcFile.createReader(testFilePath, opts); recordReader = reader.rows(new Reader.Options().range(0L, Long.MAX_VALUE)); assertTrue(recordReader instanceof RecordReaderImpl); assertEquals(1000, ((RecordReaderImpl) recordReader).getMaxDiskRangeChunkLimit()); } @Test public void testStringDirectGreaterThan2GB() throws IOException { final Runtime rt = Runtime.getRuntime(); assumeTrue(rt.maxMemory() > 4_000_000_000L); TypeDescription schema = TypeDescription.createString(); conf.setDouble("hive.exec.orc.dictionary.key.size.threshold", 0.0); Writer writer = OrcFile.createWriter( testFilePath, OrcFile.writerOptions(conf).setSchema(schema) .compress(CompressionKind.NONE)); // 5000 is the lower bound for a stripe int size = 5000; int width = 500_000; // generate a random string that is width characters long Random random = new Random(123); char[] randomChars= new char[width]; int posn = 0; for(int length = 0; length < width && posn < randomChars.length; ++posn) { char cp = (char) random.nextInt(Character.MIN_SUPPLEMENTARY_CODE_POINT); // make sure we get a valid, non-surrogate while (Character.isSurrogate(cp)) { cp = (char) random.nextInt(Character.MIN_SUPPLEMENTARY_CODE_POINT); } // compute the length of the utf8 length += cp < 0x80 ? 1 : (cp < 0x800 ? 2 : 3); randomChars[posn] = cp; } // put the random characters in as a repeating value. VectorizedRowBatch batch = schema.createRowBatch(); BytesColumnVector string = (BytesColumnVector) batch.cols[0]; string.setVal(0, new String(randomChars, 0, posn).getBytes(StandardCharsets.UTF_8)); string.isRepeating = true; for(int rows=size; rows > 0; rows -= batch.size) { batch.size = Math.min(rows, batch.getMaxSize()); writer.addRowBatch(batch); } writer.close(); try { Reader reader = OrcFile.createReader(testFilePath, OrcFile.readerOptions(conf).filesystem(fs)); RecordReader rows = reader.rows(); batch = reader.getSchema().createRowBatch(); int rowsRead = 0; while (rows.nextBatch(batch)) { rowsRead += batch.size; } assertEquals(size, rowsRead); } finally { fs.delete(testFilePath, false); } } }
omalley/orc
java/core/src/test/org/apache/orc/impl/TestOrcLargeStripe.java
Java
apache-2.0
8,450
/* * Solo - A small and beautiful blogging system written in Java. * Copyright (c) 2010-present, b3log.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ package org.b3log.solo.processor; import org.apache.commons.lang.StringUtils; import org.b3log.solo.AbstractTestCase; import org.b3log.solo.MockHttpServletRequest; import org.b3log.solo.MockHttpServletResponse; import org.testng.Assert; import org.testng.annotations.Test; /** * {@link ErrorProcessor} test case. * * @author <a href="http://88250.b3log.org">Liang Ding</a> * @version 1.0.1.3, Feb 22, 2019 * @since 1.7.0 */ @Test(suiteName = "processor") public class ErrorProcessorTestCase extends AbstractTestCase { /** * Init. * * @throws Exception exception */ @Test public void init() throws Exception { super.init(); } /** * showErrorPage. */ @Test(dependsOnMethods = "init") public void showErrorPage() { final MockHttpServletRequest request = mockRequest(); request.setRequestURI("/error/403"); final MockHttpServletResponse response = mockResponse(); mockDispatcherServletService(request, response); final String content = response.body(); Assert.assertTrue(StringUtils.contains(content, "<title>403 Forbidden! - Solo 的个人博客</title>")); } }
b3log/b3log-solo
src/test/java/org/b3log/solo/processor/ErrorProcessorTestCase.java
Java
apache-2.0
1,972
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_171) on Fri Apr 16 05:17:59 UTC 2021 --> <title>ListInitiatorsRequest.Builder</title> <meta name="date" content="2021-04-16"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="ListInitiatorsRequest.Builder"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.html" title="class in com.solidfire.element.api"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../com/solidfire/element/api/ListInitiatorsResult.html" title="class in com.solidfire.element.api"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/solidfire/element/api/ListInitiatorsRequest.Builder.html" target="_top">Frames</a></li> <li><a href="ListInitiatorsRequest.Builder.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.solidfire.element.api</div> <h2 title="Class ListInitiatorsRequest.Builder" class="title">Class ListInitiatorsRequest.Builder</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>com.solidfire.element.api.ListInitiatorsRequest.Builder</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>Enclosing class:</dt> <dd><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.html" title="class in com.solidfire.element.api">ListInitiatorsRequest</a></dd> </dl> <hr> <br> <pre>public static class <span class="typeNameLabel">ListInitiatorsRequest.Builder</span> extends java.lang.Object</pre> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.html" title="class in com.solidfire.element.api">ListInitiatorsRequest</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html#build--">build</a></span>()</code>&nbsp;</td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html" title="class in com.solidfire.element.api">ListInitiatorsRequest.Builder</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html#optionalInitiators-java.lang.Long:A-">optionalInitiators</a></span>(java.lang.Long[]&nbsp;initiators)</code>&nbsp;</td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html" title="class in com.solidfire.element.api">ListInitiatorsRequest.Builder</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html#optionalLimit-java.lang.Long-">optionalLimit</a></span>(java.lang.Long&nbsp;limit)</code>&nbsp;</td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html" title="class in com.solidfire.element.api">ListInitiatorsRequest.Builder</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html#optionalStartInitiatorID-java.lang.Long-">optionalStartInitiatorID</a></span>(java.lang.Long&nbsp;startInitiatorID)</code>&nbsp;</td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="build--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>build</h4> <pre>public&nbsp;<a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.html" title="class in com.solidfire.element.api">ListInitiatorsRequest</a>&nbsp;build()</pre> </li> </ul> <a name="optionalStartInitiatorID-java.lang.Long-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>optionalStartInitiatorID</h4> <pre>public&nbsp;<a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html" title="class in com.solidfire.element.api">ListInitiatorsRequest.Builder</a>&nbsp;optionalStartInitiatorID(java.lang.Long&nbsp;startInitiatorID)</pre> </li> </ul> <a name="optionalLimit-java.lang.Long-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>optionalLimit</h4> <pre>public&nbsp;<a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html" title="class in com.solidfire.element.api">ListInitiatorsRequest.Builder</a>&nbsp;optionalLimit(java.lang.Long&nbsp;limit)</pre> </li> </ul> <a name="optionalInitiators-java.lang.Long:A-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>optionalInitiators</h4> <pre>public&nbsp;<a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.Builder.html" title="class in com.solidfire.element.api">ListInitiatorsRequest.Builder</a>&nbsp;optionalInitiators(java.lang.Long[]&nbsp;initiators)</pre> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/solidfire/element/api/ListInitiatorsRequest.html" title="class in com.solidfire.element.api"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../com/solidfire/element/api/ListInitiatorsResult.html" title="class in com.solidfire.element.api"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/solidfire/element/api/ListInitiatorsRequest.Builder.html" target="_top">Frames</a></li> <li><a href="ListInitiatorsRequest.Builder.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
solidfire/solidfire-sdk-java
docs/com/solidfire/element/api/ListInitiatorsRequest.Builder.html
HTML
apache-2.0
11,154
/* 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 org.flowable.engine.impl.cmd; import java.io.Serializable; import org.flowable.engine.common.api.FlowableException; import org.flowable.engine.common.api.FlowableIllegalArgumentException; import org.flowable.engine.common.api.FlowableObjectNotFoundException; import org.flowable.engine.common.impl.interceptor.Command; import org.flowable.engine.common.impl.interceptor.CommandContext; import org.flowable.engine.form.TaskFormData; import org.flowable.engine.impl.form.FormEngine; import org.flowable.engine.impl.form.TaskFormHandler; import org.flowable.engine.impl.persistence.entity.TaskEntity; import org.flowable.engine.impl.util.CommandContextUtil; import org.flowable.engine.impl.util.FormHandlerUtil; import org.flowable.engine.task.Task; /** * @author Tom Baeyens * @author Joram Barrez */ public class GetRenderedTaskFormCmd implements Command<Object>, Serializable { private static final long serialVersionUID = 1L; protected String taskId; protected String formEngineName; public GetRenderedTaskFormCmd(String taskId, String formEngineName) { this.taskId = taskId; this.formEngineName = formEngineName; } public Object execute(CommandContext commandContext) { if (taskId == null) { throw new FlowableIllegalArgumentException("Task id should not be null"); } TaskEntity task = CommandContextUtil.getTaskEntityManager(commandContext).findById(taskId); if (task == null) { throw new FlowableObjectNotFoundException("Task '" + taskId + "' not found", Task.class); } TaskFormHandler taskFormHandler = FormHandlerUtil.getTaskFormHandlder(task); if (taskFormHandler != null) { FormEngine formEngine = CommandContextUtil.getProcessEngineConfiguration(commandContext).getFormEngines().get(formEngineName); if (formEngine == null) { throw new FlowableException("No formEngine '" + formEngineName + "' defined process engine configuration"); } TaskFormData taskForm = taskFormHandler.createTaskForm(task); return formEngine.renderTaskForm(taskForm); } return null; } }
stephraleigh/flowable-engine
modules/flowable-engine/src/main/java/org/flowable/engine/impl/cmd/GetRenderedTaskFormCmd.java
Java
apache-2.0
2,774
/* * $Id: config.h,v 1.8 2007/01/04 21:29:21 jms Exp $ * * Revision History * =================== * $Log: config.h,v $ * Revision 1.8 2007/01/04 21:29:21 jms * Porting changes uncovered as part of move to VS2005. No impact on data set * * Revision 1.7 2006/06/29 20:46:17 jms * 2.4.0 changes from Meikel * * Revision 1.6 2006/05/31 22:25:21 jms * Rework UnifInt calls in varsub to handle lack of PROTO defn in windows * * Revision 1.5 2006/05/25 22:35:36 jms * qgen porting changes for 32b/64b * * Revision 1.4 2006/03/09 18:54:55 jms * porting bugs * * Revision 1.3 2005/03/04 19:48:39 jms * Changes from Doug Johnson to address very large scale factors * * Revision 1.2 2005/01/03 20:08:58 jms * change line terminations * * Revision 1.1.1.1 2004/11/24 23:31:46 jms * re-establish external server * * Revision 1.7 2004/04/08 17:36:47 jms * clarify config.h/makefile linkage * * Revision 1.6 2004/04/08 17:35:00 jms * SUN/SOLARIS ifdef merge between machines * * Revision 1.5 2004/04/08 17:27:53 jms * solaris porting fixes * * Revision 1.4 2003/08/12 16:45:26 jms * linux porting changes * * Revision 1.3 2003/08/08 21:35:26 jms * first integration of rng64 for o_custkey and l_partkey * * Revision 1.2 2003/08/07 17:58:34 jms * Convery RNG to 64bit space as preparation for new large scale RNG * * Revision 1.1.1.1 2003/04/03 18:54:21 jms * initial checkin * * */ /* * this file allows the compilation of DBGEN to be tailored to specific * architectures and operating systems. Some options are grouped * together to allow easier compilation on a given vendor's hardware. * * The following #defines will effect the code: * KILL(pid) -- how to terminate a process in a parallel load * SPAWN -- name of system call to clone an existing process * SET_HANDLER(proc) -- name of routine to handle signals in parallel load * WAIT(res, pid) -- how to await the termination of a child * SEPARATOR -- character used to separate fields in flat files * STDLIB_HAS_GETOPT -- to prevent confilcts with gloabal getopt() * MDY_DATE -- generate dates as MM-DD-YY * WIN32 -- support for WindowsNT * SUPPORT_64BITS -- compiler defines a 64 bit datatype * DSS_HUGE -- 64 bit data type * HUGE_FORMAT -- printf string for 64 bit data type * EOL_HANDLING -- flat files don't need final column separator * * Certain defines must be provided in the makefile: * MACHINE defines * ========== * ATT -- getopt() handling * DOS -- disable all multi-user functionality/dependency * HP -- posix source inclusion differences * IBM -- posix source inclusion differences * SGI -- getopt() handling * SUN -- getopt() handling * LINUX * WIN32 -- for WINDOWS * * DATABASE defines * ================ * DB2 -- use DB2 dialect in QGEN * INFORMIX -- use Informix dialect in QGEN * SQLSERVER -- use SQLSERVER dialect in QGEN * SYBASE -- use Sybase dialect in QGEN * TDAT -- use Teradata dialect in QGEN * * WORKLOAD defines * ================ * TPCH -- make will create TPCH (set in makefile) */ // JMP -- flat files don't need a SEP at the end of the last column #define EOL_HANDLING #ifdef DOS #define PATH_SEP '\\' #else #ifdef ATT #define STDLIB_HAS_GETOPT #ifdef SQLSERVER #define WIN32 #else /* the 64 bit defines are for the Metaware compiler */ #define SUPPORT_64BITS #define DSS_HUGE long long #define RNG_A 6364136223846793005ull #define RNG_C 1ull #define HUGE_FORMAT "%LLd" #define HUGE_DATE_FORMAT "%02LLd" #endif /* SQLSERVER or MP/RAS */ #endif /* ATT */ #ifdef HP #define _INCLUDE_POSIX_SOURCE #define STDLIB_HAS_GETOPT #define SUPPORT_64BITS #define DSS_HUGE long #define HUGE_COUNT 2 #define HUGE_FORMAT "%ld" #define HUGE_DATE_FORMAT "%02lld" #define RNG_C 1ull #define RNG_A 6364136223846793005ull #endif /* HP */ #ifdef IBM #define STDLIB_HAS_GETOPT #define SUPPORT_64BITS #define DSS_HUGE long long #define HUGE_FORMAT "%lld" #define HUGE_DATE_FORMAT "%02lld" #define RNG_A 6364136223846793005ull #define RNG_C 1ull #endif /* IBM */ #ifdef LINUX #define STDLIB_HAS_GETOPT #define SUPPORT_64BITS #define DSS_HUGE long long int #define HUGE_FORMAT "%lld" #define HUGE_DATE_FORMAT "%02lld" #define RNG_A 6364136223846793005ull #define RNG_C 1ull #endif /* LINUX */ #ifdef SUN #define STDLIB_HAS_GETOPT #define RNG_A 6364136223846793005ull #define RNG_C 1ull #define SUPPORT_64BITS #define DSS_HUGE long long #define HUGE_FORMAT "%lld" #define HUGE_DATE_FORMAT "%02lld" #endif /* SUN */ #ifdef SGI #define STDLIB_HAS_GETOPT #define SUPPORT_64BITS #define DSS_HUGE __int64_t #endif /* SGI */ #if (defined(WIN32)&&!defined(_POSIX_)) #define pid_t int #define SET_HANDLER(proc) signal(SIGINT, proc) #define KILL(pid) \ TerminateProcess(OpenProcess(PROCESS_TERMINATE,FALSE,pid),3) #if (defined (__WATCOMC__)) #define SPAWN() spawnv(P_NOWAIT, spawn_args[0], spawn_args) #define WAIT(res, pid) cwait(res, pid, WAIT_CHILD) #else #define SPAWN() _spawnv(_P_NOWAIT, spawn_args[0], spawn_args) #define WAIT(res, pid) _cwait(res, pid, _WAIT_CHILD) #define getpid _getpid #endif /* WATCOMC */ #define SIGS_DEFINED #define PATH_SEP '\\' #define SUPPORT_64BITS #define DSS_HUGE __int64 #define RNG_A 6364136223846793005uI64 #define RNG_C 1uI64 #define HUGE_FORMAT "%I64d" #define HUGE_DATE_FORMAT "%02I64d" /* need to define process termination codes to match UNIX */ /* these are copied from Linux/GNU and need to be verified as part of a rework of */ /* process handling under NT (29 Apr 98) */ #define WIFEXITED(s) ((s & 0xFF) == 0) #define WIFSIGNALED(s) (((unsigned int)((status)-1) & 0xFFFF) < 0xFF) #define WIFSTOPPED(s) (((s) & 0xff) == 0x7f) #define WTERMSIG(s) ((s) & 0x7f) #define WSTOPSIG(s) (((s) & 0xff00) >> 8) /* requried by move to Visual Studio 2005 */ #define strdup(x) _strdup(x) #endif /* WIN32 */ #ifndef SIGS_DEFINED #define KILL(pid) kill(SIGUSR1, pid) #define SET_HANDLER(proc) signal(SIGUSR1, proc) #define SPAWN fork #define WAIT(res, pid) wait(res) #endif /* DEFAULT */ #endif /* DOS */ #ifndef PATH_SEP #define PATH_SEP '/' #endif /* PATH_SEP */ #ifndef DSS_HUGE #error Support for a 64-bit datatype is required in this release #endif #ifndef DOUBLE_CAST #define DOUBLE_CAST (double) #endif /* DOUBLE_CAST */
UWQuickstep/quickstep
benchmarks/tpch/dbgen/config.h
C
apache-2.0
6,448
# Ophrys lievreae nothosubsp. sanctileonis (O.Danesch & E.Danesch) Del Prete SUBSPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Ophrys/Ophrys lievreae/Ophrys lievreae sanctileonis/README.md
Markdown
apache-2.0
227
package com.stdnull.v2api.model; import android.os.Bundle; import android.os.Parcelable; import java.util.ArrayList; import java.util.List; /** * Created by chen on 2017/8/20. */ public class V2MainFragModel { private static final String KEY_V2EXBEAN = "KEY_V2EXBEAN"; private List<V2ExBean> mContentListModel = new ArrayList<>(); public List<V2ExBean> getContentListModel() { return mContentListModel; } public void addContentListModel(List<V2ExBean> contentListModel) { if(contentListModel != null) { this.mContentListModel.addAll(contentListModel); } } public boolean isModelEmpty(){ return mContentListModel.isEmpty() ; } public void clearModel(){ mContentListModel.clear(); } public void save(Bundle bundle){ bundle.putParcelableArrayList(KEY_V2EXBEAN, (ArrayList<? extends Parcelable>) mContentListModel); } public boolean restore(Bundle bundle){ if(bundle == null){ return false; } mContentListModel = bundle.getParcelableArrayList(KEY_V2EXBEAN); return mContentListModel != null && !mContentListModel.isEmpty(); } }
stdnull/RunMap
v2api/src/main/java/com/stdnull/v2api/model/V2MainFragModel.java
Java
apache-2.0
1,194
DROP TABLE IF EXISTS tags; DROP TABLE IF EXISTS invitations; DROP TABLE IF EXISTS tasks; DROP TABLE IF EXISTS projects; DROP TABLE IF EXISTS teams_users; DROP TABLE IF EXISTS teams; DROP TABLE IF EXISTS orgs_users; DROP TABLE IF EXISTS organizations; DROP TABLE IF EXISTS users; CREATE TABLE users ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(50) NOT NULL, email varchar(100) NOT NULL, password varchar(100) NOT NULL, enabled tinyint(1) DEFAULT NULL, locked tinyint(1) DEFAULT NULL, activation_token varchar(100) DEFAULT NULL, forgot_password_token varchar(100) DEFAULT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY EMAIL_UNIQUE (email) ); CREATE TABLE organizations ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, owner_user_id int(11) NOT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY ORG_NAME_UNIQUE (owner_user_id,name), CONSTRAINT fk_owner_user_id FOREIGN KEY (owner_user_id) REFERENCES users (id) ); CREATE TABLE orgs_users ( org_id int(11) NOT NULL, user_id int(11) NOT NULL, disabled tinyint(1) DEFAULT NULL, PRIMARY KEY (org_id,user_id) ); CREATE TABLE teams ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, org_id int(11) NOT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY TEAM_NAME_UNIQUE (org_id,name), CONSTRAINT fk_team_org_id FOREIGN KEY (org_id) REFERENCES organizations (id) ); CREATE TABLE teams_users ( team_id int(11) NOT NULL, user_id int(11) NOT NULL, disabled tinyint(1) DEFAULT NULL, PRIMARY KEY (team_id,user_id) ); CREATE TABLE projects ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, team_id int(11) NOT NULL, owner_user_id int(11) NOT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY TEAM_PROJ_NAME_UNIQUE (team_id,name), CONSTRAINT fk_proj_team_id FOREIGN KEY (team_id) REFERENCES teams (id), CONSTRAINT fk_proj_owner_user_id FOREIGN KEY (owner_user_id) REFERENCES users (id) ); CREATE TABLE tasks ( id int(11) NOT NULL AUTO_INCREMENT, title varchar(200) NOT NULL, description longtext, proj_id int(11) NOT NULL, assigned_user_id int(11) DEFAULT NULL, due_date date DEFAULT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), CONSTRAINT fk_proj_task_id FOREIGN KEY (proj_id) REFERENCES projects (id), CONSTRAINT fk_task_user_id FOREIGN KEY (assigned_user_id) REFERENCES users (id) ); CREATE TABLE tags ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, org_id int(11) NOT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY TAG_NAME_UNIQUE (org_id,name), CONSTRAINT fk_tag_org_id FOREIGN KEY (org_id) REFERENCES organizations (id) ); CREATE TABLE invitations ( id int(11) NOT NULL AUTO_INCREMENT, from_email varchar(100) NOT NULL, to_email varchar(100) NOT NULL, org_id int(11) NOT NULL, invitation_code varchar(100) NOT NULL, accepted tinyint(1) DEFAULT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), CONSTRAINT fk_invite_org_id FOREIGN KEY (org_id) REFERENCES organizations (id), CONSTRAINT fk_invite_from_email FOREIGN KEY (from_email) REFERENCES users (email) );
sivaprasadreddy/TrackIT
src/main/resources/schema-h2.sql
SQL
apache-2.0
3,965
/* * Copyright 2016 Amadeus s.a.s. * 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. */ "use strict"; const co = require("co"); const path = require("path"); const assertFilesEqual = require("../helpers/assertFilesEqual"); const exec = require("../helpers/exec"); module.exports = function (results) { const outDir = results.outDir; const atDiffExecutable = require.resolve("../../bin/at-diff"); const filesToCompare = [ // The .json extension is automatically added "version1.parse", "version2.parse", "user.parse", "at.parse", "version1to2.diff", "filteredVersion1to2.diff", "impactsOnUser.diff", "filteredImpactsOnUser.diff" ]; filesToCompare.forEach((fileName) => { const nonDeterministicFileName = `${fileName}.json`; it(nonDeterministicFileName, co.wrap(function *() { this.timeout(10000); const transformCommand = /\.parse$/.test(fileName) ? "reformat" : "reserialize"; const deterministicFileName = `${fileName}.deterministic.json`; yield exec(atDiffExecutable, [transformCommand, nonDeterministicFileName, "--json-output", deterministicFileName, "--deterministic-output", "--json-beautify"], { cwd: outDir }); yield assertFilesEqual(path.join(outDir, deterministicFileName), path.join(__dirname, "..", "expected-output", deterministicFileName)); })); }); };
ariatemplates/at-diff
test/checks/compareWithPreviousOutputs.check.js
JavaScript
apache-2.0
1,985
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>canvas-nest.js</title> </head> <body> <!-- 网页粒子背景插件 Canvas-nest.js color="255,0,0" 背景粒子线的颜色 opacity="0.5" 背景粒子线的透明度,一般设置成0.5-1之间 count="99" 背景粒子线的密度 --> <script type="text/javascript" color="255,0,0" opacity='0.7' zIndex="-2" count="200" src="../../../s/canvas-nest/canvas-nest.min.js"></script> </body> </html>
Relucent/web_demo
demo/other/canvas-nest/index.html
HTML
apache-2.0
530
<html xmlns:wicket="http://wicket.apache.org"> <wicket:head> <meta NAME="ROBOTS" CONTENT="noindex" /> </wicket:head> <wicket:extend> </wicket:extend> </html>
kinabalu/mysticpaste
web/src/main/java/com/mysticcoders/mysticpaste/web/pages/view/ViewPrivatePage.html
HTML
apache-2.0
161
# Cyrtopodium woodfordii Sims SPECIES #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Eulophia/Eulophia alta/ Syn. Cyrtopodium woodfordii/README.md
Markdown
apache-2.0
184
#ifndef CELLO_SIMULATION_H #define CELLO_SIMULATION_H #include <algorithm> #include <stdexcept> #include <map> #include <memory> #include <queue> #include <string> #include <vector> #include <gameplay.h> #include <core/Delegate.h> #include <core/SimulationTypes.h> #include <json/json.h> #include <ui/Atlas.h> #include <util/Util.h> using std::map; using std::queue; using std::runtime_error; using std::string; using std::vector; using gameplay::PhysicsController; namespace cello { class Component; class ComponentFactory; class Simulation : NonCopyable { public: /** * The reserved ID for the System entity */ static const EntityID SYSTEM_ENTITY_ID = 0; /** * The reserved ID to represent an invalid entity */ static const EntityID INVALID_ENTITY_ID = -1; explicit Simulation(Atlas* atlas); virtual ~Simulation(); Atlas* getAtlas() const { return _atlas; } /** * Get a reference to a component of the specified entity and component type. * Returns nullptr if the component or the entity is not found */ template<class ComponentClass> ComponentClass* getComponent(int entityID) const { ComponentType componentType = ComponentClass::getType(); auto entityMapIt = _entityMap.find(entityID); if (_entityMap.end() == entityMapIt) { return nullptr; } ComponentTypeMap& componentTypeMap = *(entityMapIt->second); auto componentTypeMapIt = componentTypeMap.find(componentType); if (componentTypeMap.end() == componentTypeMapIt) { return nullptr; } return static_cast<ComponentClass*>(componentTypeMapIt->second); } /* * Returns a list of all components of the specified type */ template<class ComponentClass> ComponentList* getComponentsOfType() { ComponentType componentType = ComponentClass::getType(); // If no components of the required type currently exist, a new list // will be created and returned return &_componentMap[componentType]; } bool isLevelLoaded() const { return _levelLoaded; } void loadLevel(string levelFile, Json::Value levelData); Json::Value saveLevel(); string getLevelFile() const { return _levelFile; } string getLevelName() const { return _levelName; } string getScriptName() const { return _scriptName; } void init(); ComponentTypeMap* getComponentTypeMap(EntityID entity); EntityID spawnEntity(string templateName); /** * Queue an entity for destruction. The entity and it's components are removed from * the simulation but the components still exist in memory to allow other * components/systems time to remove references to them */ void killEntity(EntityID entity); /** * Kill entity and immediately destroy it. */ void destroyEntity(EntityID entity); Delegate<EntityID>& onEntityCreated() { return _entityCreatedDelegate; } Delegate<EntityID>& onEntityKilled() { return _entityKilledDelegate; } private: bool _levelLoaded; string _levelFile; string _levelName; string _scriptName; /** * The value at which automatic ID generation starts */ static const EntityID START_ENTITY_ID = 100; /** * Get the next available unique ID to assign to the next created entity */ inline EntityID getNextEntityID() { return _nextEntityID++; } int _nextEntityID; static const string INHERIT_KEY; static const string LOAD_EXTERNAL_KEY; static const string ENTITY_ID_KEY; static const string ENTITIES_LIST_KEY; static const string GAME_STATE_KEY; static const string TEMPLATE_FILE_EXTENSION; void deserializeComponent(Component* component, Json::Value& componentData); Json::Value serializeComponent(Component* component, Json::Value& parentComponentData, bool copyAll); /** * Construct an empty entity from data and returns the Entity ID */ EntityID constructEntity(Json::Value entityData); /** * Construct a component from data, adds it to the specified entity and returns a reference to it */ void constructComponent(EntityID entityID, string componentTypeStr, Json::Value componentData); Json::Value preprocessEntityData(Json::Value entityData); Json::Value preprocessComponentData(Json::Value entityData); Json::Value getExternalData(string filename); /** * Add a component to an entity */ void addComponent(EntityID entityID, ComponentType componentType, Component* component); /** * Remove a component from an entity */ void removeComponent(EntityID entityID, ComponentType); /** * For every entity there is a map of ComponentType=>Component */ map<EntityID, ComponentTypeMap*> _entityMap; /** * Stores the list of entities to be destroyed at the end of a turn. * Entities cannot be destroyed mid-turn */ map<EntityID, ComponentTypeMap*> _killedEntityMap; /** * Stores a list of components for every component type */ map<ComponentType, ComponentList> _componentMap; /** * Delete the components of the entities in the map */ void destroyEntities(map<EntityID, ComponentTypeMap*>& entityMap); void destroyComponentTypeMap(ComponentTypeMap* componentTypeMap); /** * Stores the original template the entity was loaded from. This will * enable us to generate smaller save files */ map<EntityID, string> _entityTemplateMap; ComponentFactory* _componentFactory; Atlas* _atlas; Delegate<EntityID> _entityCreatedDelegate; Delegate<EntityID> _entityKilledDelegate; }; } #endif
EvansThomas/Cello
cello/core/Simulation.h
C
apache-2.0
5,323
# CustomSelectPicker Very small jquery plugin for customize you selectpickers Requirements ------------ Jquery 2.0 and higher Usage ------------ Include minify or unminify plugin assets in head tag **Example** ```HTML <html> <head> //Jquery require <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> //Plugin assets <link rel="stylesheet" href="cselectpicker.min.css" type='text/css'/> <script src="cselectpicker.min.js" type="text/javascript"></script> </head> <body> <select name='example'> <option value="">No selected</option> <option value="first">first</option> <option value="second">second</option> </select> //Init plugin <script type="text/javascript"> $('select').CSelectPicker(); </script> </body> </html> ``` Options and Events example ------------ ```JavaScript $('select').CSelectPicker({ //Optionals placehoder: 'Select your value', multiple: true, itemsClass: 'my-custom-class', maxDropdownItemsShow: 7, //Events onChange: function(element){ // console.log('Value selectbox is - ('+element.val()+')'); }, onReady: function(){ // console.log('Plugin is Ready'); }, onScrollDropdown: function(status){ // console.log('Dropdown scrolling is - ('+status+')') }, dropdownStatus: function(status){ // console.log('Dropdown status is - ('+status+')'); }, }); ``` Events ------------ | Event name | description | | ------------- | ------------- | | onChange | Call when select change state. Takes jquery object select element | | onReady | Call when plugin redy to work. Nothin takes | | onScrollDropdown | Call when in dropdown happens scroll event. Takes state on scroll in dropdown (up or down) | | dropdownStatus | Call when dropdown change state. Takes state in dropdown (show or hide) | Options ------------ | Option name | description | | ------------- | ------------- | | placehoder | (string) Placeholder text in selectpicker. No required | | multiple | (boolean) Change selectpicker on multiselect. No required | | itemsClass | (string) Added custom class in the item-option on dropdown window. No required | | maxDropdownItemsShow | (number) Sets max number to show option items in dropdown window. Create scrollbar .No required |
canabina/CustomSelectPicker
README.md
Markdown
apache-2.0
2,319
/* * Solo - A small and beautiful blogging system written in Java. * Copyright (c) 2010-present, b3log.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ package org.b3log.solo.model; /** * This class defines all link model relevant keys. * * @author <a href="http://88250.b3log.org">Liang Ding</a> * @version 1.0.0.2, Oct 31, 2011 * @since 0.3.1 */ public final class Link { /** * Link. */ public static final String LINK = "link"; /** * Links. */ public static final String LINKS = "links"; /** * Key of title. */ public static final String LINK_TITLE = "linkTitle"; /** * Key of address. */ public static final String LINK_ADDRESS = "linkAddress"; /** * Key of description. */ public static final String LINK_DESCRIPTION = "linkDescription"; /** * Key of order. */ public static final String LINK_ORDER = "linkOrder"; /** * Private constructor. */ private Link() { } }
b3log/b3log-solo
src/main/java/org/b3log/solo/model/Link.java
Java
apache-2.0
1,646
<html lang="ru-RU" xml:lang="ru-RU"> <head> <title>Москва</title> <meta content="ru-RU" http-equiv="Content-Language"> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> </head> <body style="width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0; background: #fafafa;"> <table cellspacing="0" cellpadding="0" border="0" style="margin:0; padding:0; width:100% !important; line-height: 100% !important; background: #fafafa;" id="backgroundTable"> <tbody><tr> <td valign="top"> <table width="600" cellspacing="0" cellpadding="0" border="0" align="center" class="coreTable" style="background: #e9eaec; border: 1px solid #cccccc"> <tbody><tr height="116" bgcolor="#ffffff"> <td colspan="4" valign="top" width="600"> <a href="http://www.mvideo.ru/?reff=email_transaction_a_coming_soon_start_preOrdering_a_head_logo&utm_source=email&utm_medium=transaction&utm_campaign=a_coming_soon_start_preOrdering&utm_content=a_head_logo" target="_blank" style="text-decoration:none; outline: none;"><img src="http://static.mvideo.ru/assets/img/emailImages/email_head_shadow.png" style="border: none; vertical-align: top;" alt="shadow" height="19" width="600"><img src="http://static.mvideo.ru/assets/img/emailImages/email_head_logo.png" style="border: none" alt="МВидео" height="81" width="600"></a> </td> </tr> <tr> <td width="600" valign="top" colspan="4"> <table cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" align="center"> <tbody><tr bgcolor="#ffffff"> <td width="30"></td> <td width="540"> <table width="540" cellspacing="0" cellpadding="0" border="0" align="center"> <tbody> <tr> <td> <h1 style="margin: 0; color: #333333; font-size: 32px; line-height: 40px; font-family: Arial,Helvetica,sans-serif;"> Оформите предзаказ на </h1> </td> </tr> <tr> <td height="16"></td> </tr> <tr> <td> <p style="color: #666666; margin: 0; font-size: 14px; line-height: 19px; font-family: Arial,Helvetica,sans-serif;"> Благодарим за проявленный интерес к ! Теперь вы можете оформить на него предзаказ и получить его одним из первых! </p> </td> </tr> <tr> <td height="25"></td> </tr> <tr> <td> <table width="540" cellspacing="0" cellpadding="0" border="0"> <tbody><tr> <td width="220" valign="middle" height="44" bgcolor="#ed1c24" align="center" style="border-radius: 5px;"> <a href="http://www.mvideo.ru/products/televizor-lg-32lf562u-10007884?reff=email_transaction_a_coming_soon_start_preOrdering_a_btn_close_preOrdering&utm_source=email&utm_medium=transaction&utm_campaign=a_coming_soon_start_preOrdering&utm_content=a_btn_close_preOrdering" style="display: block; height: 44px; line-height: 44px; color: #ffffff; text-decoration: none; font-size: 14px; font-family: Arial,Helvetica,sans-serif;"> Оформить предзаказ </a> </td> <td width="320" height="44"></td> </tr> </tbody></table> </td> </tr> <tr> <td height="30"></td> </tr> </tbody></table> </td> <td width="30"></td> </tr> <tr> <td width="600" colspan="3"> <table width="600" cellspacing="0" cellpadding="0" border="0" bgcolor="#e9eaec" align="center"> <tbody> <tr height="26"> <td colspan="3"><img width="600" height="25" alt="shadow" style="border: none" src="http://static.mvideo.ru/assets/img/emailImages/email_core_shadow.png"></td> </tr> <tr> <td> <table width="580" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" align="center" style="border: 1px solid #cacaca"> <tbody> <tr> <td height="27" colspan="3"></td> </tr> <tr> </tr><tr> <td width="14"></td> <td width="552"> <table width="552" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody> <tr> <td width="10"> <a style="display: block; border: none; text-decoration: none; color: #333333;" href=""><img style="border: none; display: block;" src=""></a> </td> <td width="20"></td> <td valign="top"> <p style="color: #333333; margin: 6px 0 0; font-size: 16px; line-height: 20px; font-family: Arial,Helvetica,sans-serif; font-weight: bold;"> <a style="display: block; border: none; text-decoration: none; color: #333333;" title="" href=""></a> </p> <p style="color: #000000; margin: 0; font-size: 32px; line-height: 50px; font-family: Arial,Helvetica,sans-serif; font-weight: bold;"> <a style="display: block; border: none; text-decoration: none; color: #333333;" title="" href=""></a> </p> </td> </tr> </tbody> </table> </td> <td width="14"></td> </tr> <tr> <td height="27" colspan="3"></td> </tr> </tbody> </table> </td> </tr> <tr> <td width="600" height="20" colspan="3"></td> </tr> </tbody> </table> </td> </tr> </tbody></table> </td> </tr> <tr> <td colspan="4" valign="top" width="600"> <table align="center" bgcolor="#DFDFDF" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td colspan="4" height="37"></td> </tr> <tr> <td width="30"></td> <td colspan="2" valign="top" width="540"> <p style="color: #333333; margin: 0 0 24px; font-size: 14px; line-height: 20px; font-family: Arial,Helvetica,sans-serif;"> Это письмо было отправлено автоматически. </p> <p style="color: #333333; margin: 0 0 24px; font-size: 14px; line-height: 20px; font-family: Arial,Helvetica,sans-serif;"> Если Вы считаете, что получили его по ошибке, просто проигнорируйте его. </p> <p style="color: #333333; margin: 0 0 8px; font-size: 14px; line-height: 20px; font-family: Arial,Helvetica,sans-serif;"> Мы уважаем права покупателя и удалим все ваши данные из своей базы <a href="mailto:[email protected]" style="color:#7c7c7c">по запросу</a> в любое время. </p> </td> <td width="30"></td> </tr> <tr> <td colspan="4" height="21"></td> </tr> <tr> <td colspan="4"> <hr style="border: none; background-color: #cccccc; height: 1px;"> </td> </tr> <tr> <td colspan="4" height="21"></td> </tr> <tr> <td width="30"></td> <td width="236"> <p style="color: #333333; margin: 0 0 0 0; font-size: 14px; line-height: 0; font-family: Arial,Helvetica,sans-serif; font-weight: bold;"> <span style="font-size: 14px; line-height: 20px;">М.видео в социальных сетях</span> </p> </td> <td width="304"> <table align="center" border="0" cellpadding="0" cellspacing="0"> <tbody><tr height="40"> <td align="right" width="40"> <a href="http://facebook.com/mvideo.ru?reff=email_transaction_a_coming_soon_start_preOrdering_a_social_network_menu&utm_source=email&utm_medium=transaction&utm_campaign=a_coming_soon_start_preOrdering&utm_content=a_social_network_menu"><img src="http://static.mvideo.ru/assets/img/emailImages/email_social_icon_fb.png" style="border: none" alt="Facebook" height="40" width="40"></a> </td> <td align="right" width="52"> <a href="http://twitter.com/mvideo?reff=email_transaction_a_coming_soon_start_preOrdering_a_social_network_menu&utm_source=email&utm_medium=transaction&utm_campaign=a_coming_soon_start_preOrdering&utm_content=a_social_network_menu"><img src="http://static.mvideo.ru/assets/img/emailImages/email_social_icon_tw.png" style="border: none" alt="Twitter" height="40" width="40"></a> </td> <td align="right" width="52"> <a href="http://vk.com/mvideo?reff=email_transaction_a_coming_soon_start_preOrdering_a_social_network_menu&utm_source=email&utm_medium=transaction&utm_campaign=a_coming_soon_start_preOrdering&utm_content=a_social_network_menu"><img src="http://static.mvideo.ru/assets/img/emailImages/email_social_icon_vk.png" style="border: none" alt="ВКонтакте" height="40" width="40"></a> </td> <td align="right" width="52"> <a href="http://odnoklassniki.ru/mvideo?reff=email_transaction_a_coming_soon_start_preOrdering_a_social_network_menu&utm_source=email&utm_medium=transaction&utm_campaign=a_coming_soon_start_preOrdering&utm_content=a_social_network_menu"><img src="http://static.mvideo.ru/assets/img/emailImages/email_social_icon_od.png" style="border: none" alt="Одноклассники" height="40" width="40"></a> </td> <td align="right" width="52"> <a href="http://youtube.com/mvideoru?reff=email_transaction_a_coming_soon_start_preOrdering_a_social_network_menu&utm_source=email&utm_medium=transaction&utm_campaign=a_coming_soon_start_preOrdering&utm_content=a_social_network_menu"><img src="http://static.mvideo.ru/assets/img/emailImages/email_social_icon_yt.png" style="border: none" alt="Youtube" height="40" width="40"></a> </td> </tr> </tbody></table> </td> <td width="30"></td> </tr> <tr> <td colspan="4" height="21"></td> </tr> <tr> <td colspan="4"> <hr style="border: none; background-color: #cccccc; height: 1px;"> </td> </tr> <tr> <td width="30"></td> <td colspan="2" width="540"> <p style="color: #333333; margin: 8px 0; font-size: 14px; line-height: 20px; font-family: Arial,Helvetica,sans-serif;">ООО «М.видео Менеджмент», ОГРН 1057746840095.</p> <p style="color: #333333; margin: 8px 0; font-size: 14px; line-height: 20px; font-family: Arial,Helvetica,sans-serif;">Юридический адрес: 105066, Россия, Москва, ул. Нижняя Красносельская, дом 40/12, корп. 20.</p> <table align="center" border="0" cellpadding="0" cellspacing="0"> <tbody><tr height="80"> <td width="70"><img src="http://static.mvideo.ru/assets/img/emailImages/email_m_icon.png" style="border: none" alt="МВидео" height="48" width="48"></td> <td width="202"> <p style="color: #333333; margin: 8px 0; font-size: 12px;line-height: 20px; font-family: Arial,Helvetica,sans-serif;">Copyright &copy; М.Видео, 2016</p> </td> <td align="right" width="202"> <p style="color: #fff; margin: 8px 0; font-size: 12px; line-height: 20px; font-family: Arial,Helvetica,sans-serif;"><a href="http://www.mvideo.ru/legalcontent?reff=email_transaction_a_coming_soon_start_preOrdering_a_foot_links&utm_source=email&utm_medium=transaction&utm_campaign=a_coming_soon_start_preOrdering&utm_content=a_foot_links" style="color:#a3a0a0;text-decoration:underline; white-space: nowrap;">Политика конфиденциальности </a></p> </td> <td align="right" width="66"><img src="http://static.mvideo.ru/assets/img/emailImages/email_akit_icon.png" style="border: none" alt="АКИТ" height="47" width="49"></td> </tr> </tbody></table> </td> <td width="30"></td> </tr> <tr> <td colspan="4" height="20"></td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </body> </html>
wim-agency/wim-agency.github.io
mvideo/mvideo-2015_12_transaction_email/comingSoonStartPreOrderingHTMLEmailTemplate.html
HTML
apache-2.0
18,918
/** * 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.camel.management; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; import javax.management.MBeanServer; import javax.management.ObjectName; import javax.management.openmbean.TabularData; import org.apache.camel.CamelContext; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.util.StringHelper; import org.junit.Ignore; /** * @version */ public class ManagedCamelContextTest extends ManagementTestSupport { @Override protected CamelContext createCamelContext() throws Exception { CamelContext context = super.createCamelContext(); // to force a different management name than the camel id context.getManagementNameStrategy().setNamePattern("19-#name#"); return context; } public void testManagedCamelContext() throws Exception { // JMX tests dont work well on AIX CI servers (hangs them) if (isPlatform("aix")) { return; } MBeanServer mbeanServer = getMBeanServer(); ObjectName on = ObjectName.getInstance("org.apache.camel:context=19-camel-1,type=context,name=\"camel-1\""); assertTrue("Should be registered", mbeanServer.isRegistered(on)); String name = (String) mbeanServer.getAttribute(on, "CamelId"); assertEquals("camel-1", name); String managementName = (String) mbeanServer.getAttribute(on, "ManagementName"); assertEquals("19-camel-1", managementName); String uptime = (String) mbeanServer.getAttribute(on, "Uptime"); assertNotNull(uptime); String status = (String) mbeanServer.getAttribute(on, "State"); assertEquals("Started", status); Boolean messageHistory = (Boolean) mbeanServer.getAttribute(on, "MessageHistory"); assertEquals(Boolean.TRUE, messageHistory); Integer total = (Integer) mbeanServer.getAttribute(on, "TotalRoutes"); assertEquals(2, total.intValue()); Integer started = (Integer) mbeanServer.getAttribute(on, "StartedRoutes"); assertEquals(2, started.intValue()); // invoke operations MockEndpoint mock = getMockEndpoint("mock:result"); mock.expectedBodiesReceived("Hello World"); mbeanServer.invoke(on, "sendBody", new Object[]{"direct:start", "Hello World"}, new String[]{"java.lang.String", "java.lang.Object"}); assertMockEndpointsSatisfied(); resetMocks(); mock.expectedBodiesReceived("Hello World"); mbeanServer.invoke(on, "sendStringBody", new Object[]{"direct:start", "Hello World"}, new String[]{"java.lang.String", "java.lang.String"}); assertMockEndpointsSatisfied(); Object reply = mbeanServer.invoke(on, "requestBody", new Object[]{"direct:foo", "Hello World"}, new String[]{"java.lang.String", "java.lang.Object"}); assertEquals("Bye World", reply); reply = mbeanServer.invoke(on, "requestStringBody", new Object[]{"direct:foo", "Hello World"}, new String[]{"java.lang.String", "java.lang.String"}); assertEquals("Bye World", reply); resetMocks(); mock = getMockEndpoint("mock:result"); mock.expectedBodiesReceived("Hello World"); mock.expectedHeaderReceived("foo", 123); Map<String, Object> headers = new HashMap<String, Object>(); headers.put("foo", 123); mbeanServer.invoke(on, "sendBodyAndHeaders", new Object[]{"direct:start", "Hello World", headers}, new String[]{"java.lang.String", "java.lang.Object", "java.util.Map"}); assertMockEndpointsSatisfied(); resetMocks(); mock = getMockEndpoint("mock:result"); mock.expectedBodiesReceived("Hello World"); mock.expectedHeaderReceived("foo", 123); reply = mbeanServer.invoke(on, "requestBodyAndHeaders", new Object[]{"direct:start", "Hello World", headers}, new String[]{"java.lang.String", "java.lang.Object", "java.util.Map"}); assertEquals("Hello World", reply); assertMockEndpointsSatisfied(); // test can send Boolean can = (Boolean) mbeanServer.invoke(on, "canSendToEndpoint", new Object[]{"direct:start"}, new String[]{"java.lang.String"}); assertEquals(true, can.booleanValue()); can = (Boolean) mbeanServer.invoke(on, "canSendToEndpoint", new Object[]{"timer:foo"}, new String[]{"java.lang.String"}); assertEquals(false, can.booleanValue()); // stop Camel mbeanServer.invoke(on, "stop", null, null); } public void testManagedCamelContextCreateEndpoint() throws Exception { // JMX tests dont work well on AIX CI servers (hangs them) if (isPlatform("aix")) { return; } MBeanServer mbeanServer = getMBeanServer(); ObjectName on = ObjectName.getInstance("org.apache.camel:context=19-camel-1,type=context,name=\"camel-1\""); assertNull(context.hasEndpoint("seda:bar")); // create a new endpoint Object reply = mbeanServer.invoke(on, "createEndpoint", new Object[]{"seda:bar"}, new String[]{"java.lang.String"}); assertEquals(Boolean.TRUE, reply); assertNotNull(context.hasEndpoint("seda:bar")); ObjectName seda = ObjectName.getInstance("org.apache.camel:context=19-camel-1,type=endpoints,name=\"seda://bar\""); boolean registered = mbeanServer.isRegistered(seda); assertTrue("Should be registered " + seda, registered); // create it again reply = mbeanServer.invoke(on, "createEndpoint", new Object[]{"seda:bar"}, new String[]{"java.lang.String"}); assertEquals(Boolean.FALSE, reply); registered = mbeanServer.isRegistered(seda); assertTrue("Should be registered " + seda, registered); } public void testManagedCamelContextRemoveEndpoint() throws Exception { // JMX tests dont work well on AIX CI servers (hangs them) if (isPlatform("aix")) { return; } MBeanServer mbeanServer = getMBeanServer(); ObjectName on = ObjectName.getInstance("org.apache.camel:context=19-camel-1,type=context,name=\"camel-1\""); assertNull(context.hasEndpoint("seda:bar")); // create a new endpoint Object reply = mbeanServer.invoke(on, "createEndpoint", new Object[]{"seda:bar"}, new String[]{"java.lang.String"}); assertEquals(Boolean.TRUE, reply); assertNotNull(context.hasEndpoint("seda:bar")); ObjectName seda = ObjectName.getInstance("org.apache.camel:context=19-camel-1,type=endpoints,name=\"seda://bar\""); boolean registered = mbeanServer.isRegistered(seda); assertTrue("Should be registered " + seda, registered); // remove it Object num = mbeanServer.invoke(on, "removeEndpoints", new Object[]{"seda:*"}, new String[]{"java.lang.String"}); assertEquals(1, num); assertNull(context.hasEndpoint("seda:bar")); registered = mbeanServer.isRegistered(seda); assertFalse("Should not be registered " + seda, registered); // remove it again num = mbeanServer.invoke(on, "removeEndpoints", new Object[]{"seda:*"}, new String[]{"java.lang.String"}); assertEquals(0, num); assertNull(context.hasEndpoint("seda:bar")); registered = mbeanServer.isRegistered(seda); assertFalse("Should not be registered " + seda, registered); } public void testFindComponentsInClasspath() throws Exception { // JMX tests dont work well on AIX CI servers (hangs them) if (isPlatform("aix")) { return; } MBeanServer mbeanServer = getMBeanServer(); ObjectName on = ObjectName.getInstance("org.apache.camel:context=19-camel-1,type=context,name=\"camel-1\""); assertTrue("Should be registered", mbeanServer.isRegistered(on)); @SuppressWarnings("unchecked") Map<String, Properties> info = (Map<String, Properties>) mbeanServer.invoke(on, "findComponents", null, null); assertNotNull(info); assertTrue(info.size() > 20); Properties prop = info.get("seda"); assertNotNull(prop); assertEquals("seda", prop.get("name")); assertEquals("org.apache.camel", prop.get("groupId")); assertEquals("camel-core", prop.get("artifactId")); } public void testManagedCamelContextCreateRouteStaticEndpointJson() throws Exception { // JMX tests dont work well on AIX CI servers (hangs them) if (isPlatform("aix")) { return; } MBeanServer mbeanServer = getMBeanServer(); ObjectName on = ObjectName.getInstance("org.apache.camel:context=19-camel-1,type=context,name=\"camel-1\""); // get the json String json = (String) mbeanServer.invoke(on, "createRouteStaticEndpointJson", null, null); assertNotNull(json); assertEquals(7, StringHelper.countChar(json, '{')); assertEquals(7, StringHelper.countChar(json, '}')); assertTrue(json.contains("{ \"uri\": \"direct://start\" }")); assertTrue(json.contains("{ \"uri\": \"direct://foo\" }")); } public void testManagedCamelContextExplainEndpointUri() throws Exception { // JMX tests dont work well on AIX CI servers (hangs them) if (isPlatform("aix")) { return; } MBeanServer mbeanServer = getMBeanServer(); ObjectName on = ObjectName.getInstance("org.apache.camel:context=19-camel-1,type=context,name=\"camel-1\""); // get the json String json = (String) mbeanServer.invoke(on, "explainEndpointJson", new Object[]{"log:foo?groupDelay=2000&groupSize=5", false}, new String[]{"java.lang.String", "boolean"}); assertNotNull(json); assertEquals(5, StringHelper.countChar(json, '{')); assertEquals(5, StringHelper.countChar(json, '}')); assertTrue(json.contains("\"groupDelay\": { \"kind\": \"parameter\", \"type\": \"integer\", \"javaType\": \"java.lang.Long\", \"deprecated\": \"false\", \"value\": \"2000\"," + " \"description\": \"Set the initial delay for stats (in millis)\" },")); assertTrue(json.contains("\"groupSize\": { \"kind\": \"parameter\", \"type\": \"integer\", \"javaType\": \"java.lang.Integer\", \"deprecated\": \"false\", \"value\": \"5\"," + " \"description\": \"An integer that specifies a group size for throughput logging.\" }")); assertTrue(json.contains("\"loggerName\": { \"kind\": \"path\", \"type\": \"string\", \"javaType\": \"java.lang.String\", \"deprecated\": \"false\"," + " \"value\": \"foo\", \"description\": \"The logger name to use\" }")); } public void testManagedCamelContextExplainEip() throws Exception { // JMX tests dont work well on AIX CI servers (hangs them) if (isPlatform("aix")) { return; } MBeanServer mbeanServer = getMBeanServer(); ObjectName on = ObjectName.getInstance("org.apache.camel:context=19-camel-1,type=context,name=\"camel-1\""); // get the json String json = (String) mbeanServer.invoke(on, "explainEipJson", new Object[]{"transform", false}, new String[]{"java.lang.String", "boolean"}); assertNotNull(json); assertTrue(json.contains("\"label\": \"transformation\"")); assertTrue(json.contains("\"expression\": { \"kind\": \"element\", \"required\": \"true\", \"type\": \"object\"")); } @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @Override public void configure() throws Exception { from("direct:start").to("mock:result"); from("direct:foo").transform(constant("Bye World")); } }; } }
logzio/camel
camel-core/src/test/java/org/apache/camel/management/ManagedCamelContextTest.java
Java
apache-2.0
12,715
/* 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. Initial implementation: * http://www.mudynamics.com * http://labs.mudynamics.com * http://www.pcapr.net */ (function($) { var now = new Date().getTime(); var millisInHHour = 1000*60*30; $.jscouch = $.jscouch || {}; $.jscouch.documents = $.jscouch.documents || {}; $.extend($.jscouch.documents, { load: function() { // popluate the DB with initial entries $.jscouch.couchdb.put({ name: 'fish.jpg', created_at: new Date(now + millisInHHour*Math.random()).toUTCString(), user: 'bob', type: 'jpeg', camera: 'nikon', info: { width: 100, height: 200, size: 12345 }, tags: [ 'tuna', 'shark' ] }); $.jscouch.couchdb.put({ name: 'trees.jpg', created_at: new Date(now + millisInHHour*Math.random()).toUTCString(), user: 'john', type: 'jpeg', camera: 'canon', info: { width: 30, height: 250, size: 32091 }, tags: [ 'oak' ] }); $.jscouch.couchdb.put({ name: 'snow.png', created_at: new Date(now + millisInHHour*Math.random()).toUTCString(), user: 'john', type: 'png', camera: 'canon', info: { width: 64, height: 64, size: 1253 }, tags: [ 'tahoe', 'powder' ] }); $.jscouch.couchdb.put({ name: 'hawaii.png', created_at: new Date(now + millisInHHour*Math.random()).toUTCString(), user: 'john', type: 'png', camera: 'nikon', info: { width: 128, height: 64, size: 92834 }, tags: [ 'maui', 'tuna' ] }); $.jscouch.couchdb.put({ name: 'hawaii.gif', created_at: new Date(now + millisInHHour*Math.random()).toUTCString(), user: 'bob', type: 'gif', camera: 'canon', info: { width: 320, height: 128, size: 49287 }, tags: [ 'maui' ] }); $.jscouch.couchdb.put({ name: 'island.gif', created_at: new Date(now + millisInHHour*Math.random()).toUTCString(), user: 'zztop', type: 'gif', camera: 'nikon', info: { width: 640, height: 480, size: 50398 }, tags: [ 'maui' ] }); } }); })(jQuery);
janl/jscouch
jscouch.documents.js
JavaScript
apache-2.0
3,006
<!-- author: TestAuthor --> <!-- title: TestTitle --> <!-- tags: tag1, tag2, tag3 --> <!-- testtag: test --> # Test_Headline Test-Text
treejames/cms_goblog
posts/test1.md
Markdown
apache-2.0
136
/** --| ADAPTIVE RUNTIME PLATFORM |---------------------------------------------------------------------------------------- (C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>. 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 appli- -cable 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. Original author: * Carlos Lozano Diez <http://github.com/carloslozano> <http://twitter.com/adaptivecoder> <mailto:[email protected]> Contributors: * Ferran Vila Conesa <http://github.com/fnva> <http://twitter.com/ferran_vila> <mailto:[email protected]> * See source code files for contributors. Release: * @version v2.2.0 -------------------------------------------| aut inveniam viam aut faciam |-------------------------------------------- */ using System; namespace Adaptive.Arp.Api { /** Enumeration INetworkStatusListenerError */ public enum INetworkStatusListenerError { NoPermission, Unreachable, Unknown } }
AdaptiveMe/adaptive-arp-windows
adaptive-arp-lib/adaptive-arp-lib/Sources/Adaptive.Arp.Api/INetworkStatusListenerError.cs
C#
apache-2.0
1,523
# Psychotria fockeana Miq. SPECIES #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Gentianales/Rubiaceae/Psychotria/Psychotria carthagenensis/ Syn. Psychotria fockeana/README.md
Markdown
apache-2.0
181
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <meta content="2013-12-25 10:18:47 -0700" http-equiv="change-date" /> <title>PV 16</title> <script src='../js/jquery-3.1.1.min.js' type='text/javascript' charset='utf-8'></script> <script src='../js/bpi.js' type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href='../css/bpi.css' > </head> <body> <div class="header"><h1 id="titulo">Provérbios 16<span id="trecho"></span></h1></div> <div id="passagem"> <div class="bible1 verses"> <p class="verse" verse="1"><sup>1</sup>Ao homem pertencem os planos do coração; mas a resposta da língua é do Senhor.</p> <p class="verse" verse="2"><sup>2</sup>Todos os caminhos do homem são limpos aos seus olhos; mas o Senhor pesa os espíritos.</p> <p class="verse" verse="3"><sup>3</sup>Entrega ao Senhor as tuas obras, e teus desígnios serão estabelecidos.</p> <p class="verse" verse="4"><sup>4</sup>O Senhor fez tudo para um fim; sim, até o ímpio para o dia do mal.</p> <p class="verse" verse="5"><sup>5</sup>Todo homem arrogante é abominação ao Senhor; certamente não ficará impune.</p> <p class="verse" verse="6"><sup>6</sup>Pela misericórdia e pela verdade expia-se a iniqüidade; e pelo temor do Senhor os homens se desviam do mal.</p> <p class="verse" verse="7"><sup>7</sup>Quando os caminhos do homem agradam ao Senhor, faz que até os seus inimigos tenham paz com ele.</p> <p class="verse" verse="8"><sup>8</sup>Melhor é o pouco com justiça, do que grandes rendas com injustiça.</p> <p class="verse" verse="9"><sup>9</sup>O coração do homem propõe o seu caminho; mas o Senhor lhe dirige os passos.</p> <p class="verse" verse="10"><sup>10</sup>Nos lábios do rei acham-se oráculos; em juízo a sua boca não prevarica.</p> <p class="verse" verse="11"><sup>11</sup>O peso e a balança justos são do Senhor; obra sua são todos os pesos da bolsa.</p> <p class="verse" verse="12"><sup>12</sup>Abominação é para os reis o praticarem a impiedade; porque com justiça se estabelece o trono.</p> <p class="verse" verse="13"><sup>13</sup>Lábios justos são o prazer dos reis; e eles amam aquele que fala coisas retas.</p> <p class="verse" verse="14"><sup>14</sup>O furor do rei é mensageiro da morte; mas o homem sábio o aplacará.</p> <p class="verse" verse="15"><sup>15</sup>Na luz do semblante do rei está a vida; e o seu favor é como a nuvem de chuva serôdia.</p> <p class="verse" verse="16"><sup>16</sup>Quanto melhor é adquirir a sabedoria do que o ouro! e quanto mais excelente é escolher o entendimento do que a prata!</p> <p class="verse" verse="17"><sup>17</sup>A estrada dos retos desvia-se do mal; o que guarda o seu caminho preserva a sua vida.</p> <p class="verse" verse="18"><sup>18</sup>A soberba precede a destruição, e a altivez do espírito precede a queda.</p> <p class="verse" verse="19"><sup>19</sup>Melhor é ser humilde de espírito com os mansos, do que repartir o despojo com os soberbos.</p> <p class="verse" verse="20"><sup>20</sup>O que atenta prudentemente para a palavra prosperará; e feliz é aquele que confia no Senhor.</p> <p class="verse" verse="21"><sup>21</sup>O sábio de coração será chamado prudente; e a doçura dos lábios aumenta o saber.</p> <p class="verse" verse="22"><sup>22</sup>O entendimento, para aquele que o possui, é uma fonte de vida, porém a estultícia é o castigo dos insensatos.</p> <p class="verse" verse="23"><sup>23</sup>O coração do sábio instrui a sua boca, e aumenta o saber nos seus lábios.</p> <p class="verse" verse="24"><sup>24</sup>Palavras suaves são como favos de mel, doçura para a alma e saúde para o corpo.</p> <p class="verse" verse="25"><sup>25</sup>Há um caminho que ao homem parece direito, mas o fim dele conduz à morte.</p> <p class="verse" verse="26"><sup>26</sup>O apetite do trabalhador trabalha por ele, porque a sua fome o incita a isso.</p> <p class="verse" verse="27"><sup>27</sup>O homem vil suscita o mal; e nos seus lábios há como que um fogo ardente.</p> <p class="verse" verse="28"><sup>28</sup>O homem perverso espalha contendas; e o difamador separa amigos íntimos.</p> <p class="verse" verse="29"><sup>29</sup>O homem violento alicia o seu vizinho, e guia-o por um caminho que não é bom.</p> <p class="verse" verse="30"><sup>30</sup>Quando fecha os olhos fá-lo para maquinar perversidades; quando morde os lábios, efetua o mal.</p> <p class="verse" verse="31"><sup>31</sup>Coroa de honra são as cãs, a qual se obtém no caminho da justiça.</p> <p class="verse" verse="32"><sup>32</sup>Melhor é o longânimo do que o valente; e o que domina o seu espírito do que o que toma uma cidade.</p> <p class="verse" verse="33"><sup>33</sup>A sorte se lança no regaço; mas do Senhor procede toda a disposição dela.</p> </div> </div> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <p class="copyright">Almeida Revista e Atualizada© Copyright © 1993 Sociedade Bíblica do Brasil. Todos os direitos reservados. Texto bíblico utilizado com autorização. Saiba mais sobre a Sociedade Bíblica do Brasil. A Sociedade Bíblica do Brasil trabalha para que a Bíblia esteja, efetivamente, ao alcance de todos e seja lida por todos. A SBB é uma entidade sem fins lucrativos, dedicada a promover o desenvolvimento integral do ser humano.</p> <br/> <br/> <br/> <br/></body> </html>
ahsbjunior/biblia-para-igrejas
ara/20-16.html
HTML
apache-2.0
5,727
import {ShopOrderDetail} from './ShopOrderDetail'; export class ShopOrder { order_id: string; user_id: number; username: string; is_vip: number; payment: number; order_no: number; shopway: number; status: number; employee_id: string; buytime: Date; orderdealtime: Date; phone: string; address: string; soft_delete: string; subPrice:number; shopOrderDetails: ShopOrderDetail[]; }
TZClub/OMIPlatform
admin-web/src/app/entity/shop/ShopOrder.ts
TypeScript
apache-2.0
412
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch 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.elasticsearch.search.aggregations.metrics.stats; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.xcontent.ObjectParser; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.search.aggregations.AggregationBuilder; import org.elasticsearch.search.aggregations.AggregatorFactories.Builder; import org.elasticsearch.search.aggregations.AggregatorFactory; import org.elasticsearch.search.aggregations.support.ValueType; import org.elasticsearch.search.aggregations.support.ValuesSource; import org.elasticsearch.search.aggregations.support.ValuesSource.Numeric; import org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder; import org.elasticsearch.search.aggregations.support.ValuesSourceConfig; import org.elasticsearch.search.aggregations.support.ValuesSourceParserHelper; import org.elasticsearch.search.aggregations.support.ValuesSourceType; import org.elasticsearch.search.SearchContext; import java.io.IOException; import java.util.Map; public class StatsAggregationBuilder extends ValuesSourceAggregationBuilder.LeafOnly<ValuesSource.Numeric, StatsAggregationBuilder> { public static final String NAME = "stats"; private static final ObjectParser<StatsAggregationBuilder, Void> PARSER; static { PARSER = new ObjectParser<>(StatsAggregationBuilder.NAME); ValuesSourceParserHelper.declareNumericFields(PARSER, true, true, false); } public static AggregationBuilder parse(String aggregationName, XContentParser parser) throws IOException { return PARSER.parse(parser, new StatsAggregationBuilder(aggregationName), null); } public StatsAggregationBuilder(String name) { super(name, ValuesSourceType.NUMERIC, ValueType.NUMERIC); } protected StatsAggregationBuilder(StatsAggregationBuilder clone, Builder factoriesBuilder, Map<String, Object> metaData) { super(clone, factoriesBuilder, metaData); } @Override public AggregationBuilder shallowCopy(Builder factoriesBuilder, Map<String, Object> metaData) { return new StatsAggregationBuilder(this, factoriesBuilder, metaData); } /** * Read from a stream. */ public StatsAggregationBuilder(StreamInput in) throws IOException { super(in, ValuesSourceType.NUMERIC, ValueType.NUMERIC); } @Override protected void innerWriteTo(StreamOutput out) { // Do nothing, no extra state to write to stream } @Override protected StatsAggregatorFactory innerBuild(SearchContext context, ValuesSourceConfig<Numeric> config, AggregatorFactory<?> parent, Builder subFactoriesBuilder) throws IOException { return new StatsAggregatorFactory(name, config, context, parent, subFactoriesBuilder, metaData); } @Override public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException { return builder; } @Override protected int innerHashCode() { return 0; } @Override protected boolean innerEquals(Object obj) { return true; } @Override public String getType() { return NAME; } }
jprante/elasticsearch-server
server/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsAggregationBuilder.java
Java
apache-2.0
4,154
--- layout: post title: 桶排序-OC --- ```objective-c NSArray * b = @[@5,@2,@3,@1,@8]; NSMutableArray *a = @[].mutableCopy; for (int i=0; i<11; i++) { a[i] = @0; } for (NSNumber *num in b) { int index = [num intValue]; if(a[index]){ a[index] = @([a[index] intValue] + 1); } else { a[index] = @0; } } for (int i = 0; i<a.count; i++) { if([a[i] intValue]>0){ NSLog(@"%d",i); } } ```
levyleo/levyleo.github.io
_posts/2016-09-22-桶排序-OC.md
Markdown
apache-2.0
506
package jenkins.plugins.hygieia; public class DefaultHygieiaServiceStub extends DefaultHygieiaService { // private HttpClientStub httpClientStub; public DefaultHygieiaServiceStub(String host, String token, String name) { super(host, token, name); } // @Override // public HttpClientStub getHttpClient() { // return httpClientStub; // } // public void setHttpClient(HttpClientStub httpClientStub) { // this.httpClientStub = httpClientStub; // } }
tabladrum/hygieia-jenkins-plugin
src/test/java/jenkins/plugins/hygieia/DefaultHygieiaServiceStub.java
Java
apache-2.0
499
# Zwackhiomyces dispersus (J. Lahm ex Körb.) Triebel & Grube SPECIES #### Status ACCEPTED #### According to Index Fungorum #### Published in in Grube & Hafellner, Nova Hedwigia 51(3-4): 314 (1990) #### Original name Arthopyrenia dispersa J. Lahm ex Körb. ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Eurotiomycetes/Pyrenulales/Xanthopyreniaceae/Zwackhiomyces/Zwackhiomyces dispersus/README.md
Markdown
apache-2.0
278
package cn.aezo.demo.rabbitmq.c05_model_topic; import cn.aezo.demo.rabbitmq.util.RabbitmqU; import com.rabbitmq.client.AMQP; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.DefaultConsumer; import com.rabbitmq.client.Envelope; import java.io.IOException; /** * 测试 topic 类型消息模型 * * 结果如下: * consumer1收到消息:[aezo.order.vip] 这是 0 条消息 * consumer2收到消息:[smalle.vip] 这是 2 条消息 * consumer1收到消息:[aezo.user] 这是 1 条消息 * consumer1收到消息:[smalle.vip] 这是 2 条消息 * consumer1收到消息:[aezo.order.vip] 这是 3 条消息 * consumer1收到消息:[aezo.user] 这是 4 条消息 * * @author smalle * @date 2020-08-29 16:31 */ public class Consumer { private static final String EXCHANGE_NAME = "topic_logs"; public static void main(String[] args) throws IOException { consumer1(); consumer2(); } public static void consumer1() throws IOException { Connection connection = RabbitmqU.getConnection(); Channel channel = connection.createChannel(); channel.exchangeDeclare(EXCHANGE_NAME, "topic"); // 获取一个临时队列。管理后台的Queues-Features会增加"AD"(autoDelete)和"Excl"(exclusive)标识 String queueName = channel.queueDeclare().getQueue(); // **将临时队列和交换机绑定,并订阅某些类型的消息** channel.queueBind(queueName, EXCHANGE_NAME, "aezo.#"); // *匹配一个单词,#匹配多个单词 channel.queueBind(queueName, EXCHANGE_NAME, "*.vip"); channel.basicConsume(queueName, true, new DefaultConsumer(channel) { @Override public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body) throws IOException { System.out.println("consumer1收到消息:" + new String(body, "UTF-8")); } }); } public static void consumer2() throws IOException { Connection connection = RabbitmqU.getConnection(); Channel channel = connection.createChannel(); channel.exchangeDeclare(EXCHANGE_NAME, "topic"); String queueName = channel.queueDeclare().getQueue(); // * 表示一个单词。此时无法匹配 aezo.order.vip 和 aezo.vip.hello 等 channel.queueBind(queueName, EXCHANGE_NAME, "*.vip"); channel.basicConsume(queueName, true, new DefaultConsumer(channel) { @Override public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body) throws IOException { System.out.println("consumer2收到消息:" + new String(body, "UTF-8")); } }); } }
oldinaction/smjava
rabbitmq/src/main/java/cn/aezo/demo/rabbitmq/c05_model_topic/Consumer.java
Java
apache-2.0
2,828
# AUTOGENERATED FILE FROM balenalib/aarch64-debian:stretch-run ENV NODE_VERSION 10.23.1 ENV YARN_VERSION 1.22.4 RUN buildDeps='curl libatomic1' \ && set -x \ && for key in \ 6A010C5166006599AA17F08146C2130DFD2497F5 \ ; do \ gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || \ gpg --batch --keyserver keyserver.pgp.com --recv-keys "$key" || \ gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \ done \ && apt-get update && apt-get install -y $buildDeps --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ && curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-arm64.tar.gz" \ && echo "e7d0476b1e9add7b21297698517356bb7c7d7f10e75f5abad6ab5806518a6cd6 node-v$NODE_VERSION-linux-arm64.tar.gz" | sha256sum -c - \ && tar -xzf "node-v$NODE_VERSION-linux-arm64.tar.gz" -C /usr/local --strip-components=1 \ && rm "node-v$NODE_VERSION-linux-arm64.tar.gz" \ && curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \ && curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \ && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && mkdir -p /opt/yarn \ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \ && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \ && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && npm config set unsafe-perm true -g --unsafe-perm \ && rm -rf /tmp/* CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"] RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/[email protected]" \ && echo "Running test-stack@node" \ && chmod +x [email protected] \ && bash [email protected] \ && rm -rf [email protected] RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v8 \nOS: Debian Stretch \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nNode.js v10.23.1, Yarn v1.22.4 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \ && chmod +x /bin/sh-shim \ && cp /bin/sh /bin/sh.real \ && mv /bin/sh-shim /bin/sh
nghiant2710/base-images
balena-base-images/node/aarch64/debian/stretch/10.23.1/run/Dockerfile
Dockerfile
apache-2.0
2,937
# AUTOGENERATED FILE FROM balenalib/qemux86-debian:buster-run ENV GO_VERSION 1.15.8 # gcc for cgo RUN apt-get update && apt-get install -y --no-install-recommends \ g++ \ gcc \ libc6-dev \ make \ pkg-config \ git \ && rm -rf /var/lib/apt/lists/* RUN set -x \ && fetchDeps=' \ curl \ ' \ && apt-get update && apt-get install -y $fetchDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && mkdir -p /usr/local/go \ && curl -SLO "https://storage.googleapis.com/golang/go$GO_VERSION.linux-386.tar.gz" \ && echo "a0cc9df6d04f89af8396278d171087894a453a03a950b0f60a4ac18b480f758f go$GO_VERSION.linux-386.tar.gz" | sha256sum -c - \ && tar -xzf "go$GO_VERSION.linux-386.tar.gz" -C /usr/local/go --strip-components=1 \ && rm -f go$GO_VERSION.linux-386.tar.gz ENV GOROOT /usr/local/go ENV GOPATH /go ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" WORKDIR $GOPATH CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"] RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/[email protected]" \ && echo "Running test-stack@golang" \ && chmod +x [email protected] \ && bash [email protected] \ && rm -rf [email protected] RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: Intel 32-bit (x86) \nOS: Debian Buster \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nGo v1.15.8 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \ && chmod +x /bin/sh-shim \ && cp /bin/sh /bin/sh.real \ && mv /bin/sh-shim /bin/sh
nghiant2710/base-images
balena-base-images/golang/qemux86/debian/buster/1.15.8/run/Dockerfile
Dockerfile
apache-2.0
2,326
<?php include("config.php"); $content = file_get_contents($data_munched); $data = json_decode($content, true); function sort_by_order ($a, $b) { return $b['amount']['total'] - $a['amount']['total']; } usort($data["exchanges"], 'sort_by_order'); print_r($data); ?>
bananenwilly/alix
walls/data_test.php
PHP
apache-2.0
271
@import url('/static/libs/alice/poptip/1.2.0/poptip.css'); .poptip { top: 0; left: 0; }
fuxiaoling/gulp
src/static/libs/cmd/arale/tip/1.2.2/tip.css
CSS
apache-2.0
96
class GetSharedLinkAccessRightsResult attr_accessor :access_rights # :internal => :external def self.attribute_map { :access_rights => :accessRights } end def initialize(attributes = {}) # Morph attribute keys into undescored rubyish style if attributes.to_s != "" if GetSharedLinkAccessRightsResult.attribute_map["access_rights".to_sym] != nil name = "access_rights".to_sym value = attributes["accessRights"] send("#{name}=", value) if self.respond_to?(name) end end end def to_body body = {} GetSharedLinkAccessRightsResult.attribute_map.each_pair do |key,value| body[value] = self.send(key) unless self.send(key).nil? end body end end
liosha2007/groupdocs-ruby
groupdocs/models/getsharedlinkaccessrightsresult.rb
Ruby
apache-2.0
743
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Mon Sep 30 21:58:47 GMT-05:00 2002 --> <TITLE> Index () </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <SCRIPT> function asd() { parent.document.title="Index ()"; } </SCRIPT> <BODY BGCOLOR="white" onload="asd();"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="index-all.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp; <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <A HREF="#_A_">A</A> <A HREF="#_B_">B</A> <A HREF="#_C_">C</A> <A HREF="#_D_">D</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_H_">H</A> <A HREF="#_I_">I</A> <A HREF="#_L_">L</A> <A HREF="#_M_">M</A> <A HREF="#_N_">N</A> <A HREF="#_P_">P</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <HR> <A NAME="_A_"><!-- --></A><H2> <B>A</B></H2> <DL> <DT><A HREF="com/jamonapi/AccumulateMonitor.html"><B>AccumulateMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A>.<DD>AccumulateMonitors represent Monitors that increase in value.<DT><A HREF="com/jamonapi/AccumulateMonitor.html#AccumulateMonitor()"><B>AccumulateMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Default constructor. <DT><A HREF="com/jamonapi/AccumulateMonitor.html#AccumulateMonitor(com.jamonapi.AccumulateMonitorInterface)"><B>AccumulateMonitor(AccumulateMonitorInterface)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Monitors use the Gang of 4 decorator pattern where each monitor points to and calls the next monitor in the chain. <DT><A HREF="com/jamonapi/AccumulateMonitorInterface.html"><B>AccumulateMonitorInterface</B></A> - interface com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitorInterface.html">AccumulateMonitorInterface</A>.<DD>This is very similar to the Monitor interface.<DT><A HREF="com/jamonapi/ActiveStatsMonitor.html"><B>ActiveStatsMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A>.<DD>Tracks statistics for Monitors that are currently running.<DT><A HREF="com/jamonapi/ActiveStatsMonitor.html#ActiveStatsMonitor()"><B>ActiveStatsMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/ActiveStatsMonitor.html#ActiveStatsMonitor(com.jamonapi.AccumulateMonitorInterface)"><B>ActiveStatsMonitor(AccumulateMonitorInterface)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A> <DD>Constructor that uses the Gang Of 4's decorator pattern. <DT><A HREF="com/jamonapi/MonitorComposite.html#addCompositeNode(java.lang.String, com.jamonapi.utils.CompositeNode)"><B>addCompositeNode(String, CompositeNode)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Add a CompositeNode to the data structure if it doesn't exist. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#addCompositeNode(java.lang.String, com.jamonapi.utils.CompositeNode)"><B>addCompositeNode(String, CompositeNode)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#addLeafNode(java.lang.String, com.jamonapi.utils.LeafNode)"><B>addLeafNode(String, LeafNode)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Add a LeafNode to the data structure if it doesn't exist. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#addLeafNode(java.lang.String, com.jamonapi.utils.LeafNode)"><B>addLeafNode(String, LeafNode)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppBaseException.html"><B>AppBaseException</B></A> - exception com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A>.<DD>&nbsp;<DT><A HREF="com/jamonapi/utils/AppBaseException.html#AppBaseException()"><B>AppBaseException()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppBaseException.html#AppBaseException(java.lang.String)"><B>AppBaseException(String)</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppBaseException.html#AppBaseException(java.lang.String, java.lang.String)"><B>AppBaseException(String, String)</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppConstants.html"><B>AppConstants</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A>.<DD>&nbsp;<DT><A HREF="com/jamonapi/utils/AppConstants.html#AppConstants()"><B>AppConstants()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppMap.html"><B>AppMap</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A>.<DD>Case Insensitive HashMap() - If the maps key is a string then the following keys are all considered equal: myKey<br> MYKEY<br> MyKey<br> ...<DT><A HREF="com/jamonapi/utils/AppMap.html#AppMap()"><B>AppMap()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#arrayListToString(java.util.ArrayList)"><B>arrayListToString(ArrayList)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method converts an ArrayList, containing string arrays of ResultSet row data, into a two dimensional string array. </DL> <HR> <A NAME="_B_"><!-- --></A><H2> <B>B</B></H2> <DL> <DT><A HREF="com/jamonapi/BaseMonitor.html"><B>BaseMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A>.<DD>Abstract base class for other Monitors<DT><A HREF="com/jamonapi/BaseMonitor.html#BaseMonitor()"><B>BaseMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/BasicTimingMonitor.html"><B>BasicTimingMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/BasicTimingMonitor.html">BasicTimingMonitor</A>.<DD>The most basic of timing Monitors.<DT><A HREF="com/jamonapi/TestClassPerformance.html#basicTimingMonitor()"><B>basicTimingMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/BasicTimingMonitor.html#BasicTimingMonitor()"><B>BasicTimingMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/BasicTimingMonitor.html">BasicTimingMonitor</A> <DD>&nbsp; </DL> <HR> <A NAME="_C_"><!-- --></A><H2> <B>C</B></H2> <DL> <DT><A HREF="com/jamonapi/package-summary.html"><B>com.jamonapi</B></A> - package com.jamonapi<DD>This package contains classes and interfaces used to monitor Java applications.<DT><A HREF="com/jamonapi/utils/package-summary.html"><B>com.jamonapi.utils</B></A> - package com.jamonapi.utils<DD>This package contains utility classes used by the JAMon implementation that are of general use beyond JAMon.<DT><A HREF="com/jamonapi/utils/Command.html"><B>Command</B></A> - interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/Command.html">Command</A>.<DD>Simple interface that is used in the implementation of the Gang Of 4 Command pattern in Java.<DT><A HREF="com/jamonapi/utils/CommandIterator.html"><B>CommandIterator</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A>.<DD>Used with the Command interface to implement the Gang of 4 Command pattern to execute some logic for every entry of various iterators.<DT><A HREF="com/jamonapi/utils/CompositeNode.html"><B>CompositeNode</B></A> - interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A>.<DD>A CompositeNode works with NodeTrees and LeafNodes to create heirarchical object trees.<DT><A HREF="com/jamonapi/MonitorComposite.html#compositeNodeExists(java.lang.String)"><B>compositeNodeExists(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Does the passed in CompositeNode exist. <DT><A HREF="com/jamonapi/utils/NodeTree.html#compositeNodeExists(java.lang.String)"><B>compositeNodeExists(String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Determine if the CompositeNode represented by the locator string exists. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#compositeNodeExists(java.lang.String)"><B>compositeNodeExists(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Returns true if the compositeNodeExists <DT><A HREF="com/jamonapi/utils/AppMap.html#containsKey(java.lang.Object)"><B>containsKey(Object)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#createInstance()"><B>createInstance()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#createInstance()"><B>createInstance()</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppMap.html#createInstance()"><B>createInstance()</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorLeafFactoryInterface.html#createInstance(java.lang.String)"><B>createInstance(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactoryInterface.html">MonitorLeafFactoryInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorLeafFactory.html#createInstance(java.lang.String)"><B>createInstance(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>This is the method that creates monitors. </DL> <HR> <A NAME="_D_"><!-- --></A><H2> <B>D</B></H2> <DL> <DT><A HREF="com/jamonapi/TestClassPerformance.html#debugFactoryMonitor()"><B>debugFactoryMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorLeafFactory.html#DEFAULT"><B>DEFAULT</B></A> - Static variable in class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>&nbsp; </DL> <HR> <A NAME="_E_"><!-- --></A><H2> <B>E</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/EnumIterator.html"><B>EnumIterator</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A>.<DD>Simple Wrapper utility class that makes an Enumeration behave like an Iterator.<DT><A HREF="com/jamonapi/utils/EnumIterator.html#EnumIterator(java.util.Enumeration)"><B>EnumIterator(Enumeration)</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/Command.html#execute(java.lang.Object)"><B>execute(Object)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/Command.html">Command</A> <DD>&nbsp; </DL> <HR> <A NAME="_F_"><!-- --></A><H2> <B>F</B></H2> <DL> <DT><A HREF="com/jamonapi/TestClassPerformance.html#factoryBasicMonitor()"><B>factoryBasicMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TestClassPerformance.html#factoryMonitor()"><B>factoryMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/FileUtils.html"><B>FileUtils</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/FileUtils.html">FileUtils</A>.<DD>Reusable Utilities used for File manipulations such as reading a file as a String.<DT><A HREF="com/jamonapi/utils/FileUtils.html#FileUtils()"><B>FileUtils()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/FileUtils.html">FileUtils</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#fullResultSetToArrayList(java.util.ArrayList, java.sql.ResultSet)"><B>fullResultSetToArrayList(ArrayList, ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an ArrayList containing the ResultSet column names and data. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#fullResultSetToString(java.sql.ResultSet)"><B>fullResultSetToString(ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method simply takes the ResultSet and converts it to a two dimensional array of strings containing the column names and data using calls to the resultSetToArrayList and arrayListToString methods. </DL> <HR> <A NAME="_G_"><!-- --></A><H2> <B>G</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/AppMap.html#get(java.util.Map, java.lang.Object)"><B>get(Map, Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppMap.html#get(java.lang.Object)"><B>get(Object)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Returns the time that the Monitor has been running <DT><A HREF="com/jamonapi/TimeStatsMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A> <DD>Returned the total accrued time for this monitor <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Returns the accrued value of all Monitors underneath this MonitorComposite. <DT><A HREF="com/jamonapi/MinimalMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Return the accrued value. <DT><A HREF="com/jamonapi/BaseMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/ActiveStatsMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A> <DD>Return the number of Active Monitors of this instance <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Get the value of the monitor. <DT><A HREF="com/jamonapi/MonitorComposite.html#getAccruedString()"><B>getAccruedString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the accrued value in String format <DT><A HREF="com/jamonapi/BaseMonitor.html#getAccruedString()"><B>getAccruedString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getAccruedString()"><B>getAccruedString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Return the accrued value in String format <DT><A HREF="com/jamonapi/utils/Misc.html#getClassName(java.lang.Object)"><B>getClassName(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A> <DD>Returns an Objects ClassName minus the package name Sample Call: String className=Misc.getClassName("My Object"); // returns "String" <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#getColumnNames(java.sql.ResultSetMetaData)"><B>getColumnNames(ResultSetMetaData)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an array of strings containing the column names for a given ResultSetMetaData object. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#getColumnNames(java.sql.ResultSetMetaData, int[])"><B>getColumnNames(ResultSetMetaData, int[])</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an array of strings containing the column names for a given ResultSetMetaData object. <DT><A HREF="com/jamonapi/MonitorFactoryInterface.html#getComposite(java.lang.String)"><B>getComposite(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorFactoryInterface.html">MonitorFactoryInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#getComposite(java.lang.String)"><B>getComposite(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns the composite monitor specified in the argument. <DT><A HREF="com/jamonapi/MonitorComposite.html#getCompositeNode(java.lang.String)"><B>getCompositeNode(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>This is CompositeNode interface method that returns the child MonitorComposite identified by the given label or it creates a new CompositeMonitor. <DT><A HREF="com/jamonapi/utils/NodeTree.html#getCompositeNode(java.lang.String)"><B>getCompositeNode(String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Return the NodeTree's CompositeNode object that is identified by the locator. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getCompositeNode(java.lang.String)"><B>getCompositeNode(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Return the composite node pointed to by the node name <DT><A HREF="com/jamonapi/MonitorComposite.html#getCompositeNodeKey(java.lang.String)"><B>getCompositeNodeKey(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getCompositeNodeKey(java.lang.String)"><B>getCompositeNodeKey(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorReportInterface.html#getData()"><B>getData()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorReportInterface.html">MonitorReportInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorConverter.html#getData()"><B>getData()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>end inner class MonitorReport <DT><A HREF="com/jamonapi/MonitorComposite.html#getData()"><B>getData()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the contents of this MonitorComposite as a 2 dimensional array of Strings. <DT><A HREF="com/jamonapi/TimingMonitor.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MinimalMonitor.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Add this elements value to the ArrayList. <DT><A HREF="com/jamonapi/BaseMonitor.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Populate the ArrayList with data from this Monitor as well as all other Monitors in the decorator chain <DT><A HREF="com/jamonapi/MonitorReportInterface.html#getData(java.lang.String)"><B>getData(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorReportInterface.html">MonitorReportInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorConverter.html#getData(java.lang.String)"><B>getData(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#getData(java.lang.String)"><B>getData(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the contents of this MonitorComposite as a 2 dimensional array of Strings. <DT><A HREF="com/jamonapi/MonitorConverter.html#getData(java.lang.String, int, java.lang.String)"><B>getData(String, int, String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#getDebugFactory()"><B>getDebugFactory()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns the factory for creating debug monitors. <DT><A HREF="com/jamonapi/MonitorFactory.html#getDebugFactory(int)"><B>getDebugFactory(int)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns the factory for creating debug monitors. <DT><A HREF="com/jamonapi/utils/AppBaseException.html#getErrorIndicator()"><B>getErrorIndicator()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#getExistingCompositeNode(java.lang.String)"><B>getExistingCompositeNode(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Returns the CompositeNode if it exists. <DT><A HREF="com/jamonapi/MonitorComposite.html#getExistingLeafNode(java.lang.String)"><B>getExistingLeafNode(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Returns the LeafNode if it exists. <DT><A HREF="com/jamonapi/utils/FileUtils.html#getFileContents(java.lang.String)"><B>getFileContents(String)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/FileUtils.html">FileUtils</A> <DD>Read text files contents in as a String. <DT><A HREF="com/jamonapi/MonitorLeafFactoryInterface.html#getHeader()"><B>getHeader()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactoryInterface.html">MonitorLeafFactoryInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorLeafFactory.html#getHeader()"><B>getHeader()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>Get the header used in the monitor html report. <DT><A HREF="com/jamonapi/TimingMonitor.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MinimalMonitor.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Add this elements header value to an ArrayList. <DT><A HREF="com/jamonapi/BaseMonitor.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Add the display header that is associated with this Monitor to the header (as an ArrayList entry). <DT><A HREF="com/jamonapi/MonitorComposite.html#getLeafNode(java.lang.String, java.lang.String)"><B>getLeafNode(String, String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>This is CompositeNode interface method that returns a leaf node identified by the given label or it creates a new leaf node by calling the Leaf. <DT><A HREF="com/jamonapi/utils/NodeTree.html#getLeafNode(java.lang.String, java.lang.String)"><B>getLeafNode(String, String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Return the NodeTree's LeafNode object that is identified by the locator and type. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getLeafNode(java.lang.String, java.lang.String)"><B>getLeafNode(String, String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Return the leaf node pointed to by the node name. <DT><A HREF="com/jamonapi/MonitorComposite.html#getLeafNodeKey(java.lang.String)"><B>getLeafNodeKey(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getLeafNodeKey(java.lang.String)"><B>getLeafNodeKey(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorReportInterface.html#getReport()"><B>getReport()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorReportInterface.html">MonitorReportInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#getReport()"><B>getReport()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns all gathered statistics as an HTML table as a String. <DT><A HREF="com/jamonapi/MonitorConverter.html#getReport()"><B>getReport()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>Return an html table in String format in the default sort order <DT><A HREF="com/jamonapi/MonitorComposite.html#getReport()"><B>getReport()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the contents of this MonitorComposite as an HTML table. <DT><A HREF="com/jamonapi/MonitorConverter.html#getReport(int, java.lang.String)"><B>getReport(int, String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>Return an html table in String format that is sorted by the passed column in ascending or descending order <DT><A HREF="com/jamonapi/MonitorComposite.html#getReport(int, java.lang.String)"><B>getReport(int, String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the contents of this MonitorComposite as an HTML table sorted by the specified column number in ascending or descending order. <DT><A HREF="com/jamonapi/MonitorFactory.html#getReport(java.lang.String)"><B>getReport(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns gathered statistics underneath lower in the heirarchy than the locator string. <DT><A HREF="com/jamonapi/MonitorFactoryInterface.html#getRootMonitor()"><B>getRootMonitor()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorFactoryInterface.html">MonitorFactoryInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#getRootMonitor()"><B>getRootMonitor()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns the topmost Composite Monitor <DT><A HREF="com/jamonapi/MonitorComposite.html#getRootNode()"><B>getRootNode()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return this MonitorComposite as a CompositeNode <DT><A HREF="com/jamonapi/utils/NodeTree.html#getRootNode()"><B>getRootNode()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Return the highest level CompositeNode in the NodeTree. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getRootNode()"><B>getRootNode()</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Return the NodeTrees root CompositeNode i.e. <DT><A HREF="com/jamonapi/utils/AppBaseException.html#getRuntimeException(java.lang.Exception)"><B>getRuntimeException(Exception)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getType()"><B>getType()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Display this Monitors type <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getUnits()"><B>getUnits()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Dispay the units appropriate for this monitor </DL> <HR> <A NAME="_H_"><!-- --></A><H2> <B>H</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/EnumIterator.html#hasNext()"><B>hasNext()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A> <DD>&nbsp; </DL> <HR> <A NAME="_I_"><!-- --></A><H2> <B>I</B></H2> <DL> <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#increase()"><B>increase()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitorInterface.html#increase()"><B>increase()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitorInterface.html">AccumulateMonitorInterface</A> <DD>increase the stored value for this Monitor <DT><A HREF="com/jamonapi/AccumulateMonitor.html#increase()"><B>increase()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Increase the monitors accrued value by 1 unit. <DT><A HREF="com/jamonapi/TimingMonitor.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>increase the time by the specified ammount of milliseconds. <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Call increase(long) on all Monitors that this MonitorComposite instance contains <DT><A HREF="com/jamonapi/MinimalMonitor.html#increase(long)"><B>increase(long)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Increase the monitors value <DT><A HREF="com/jamonapi/BaseMonitor.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Increase the monitors accrued value by the ammount specified in the parameter, and call increase on all monitors in the decorator chain. <DT><A HREF="com/jamonapi/utils/Misc.html#isObjectString(java.lang.Object)"><B>isObjectString(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullMonitor.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullMonitor.html">NullMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A> <DD>Is this a primary Monitor. <DT><A HREF="com/jamonapi/AccumulateMonitorInterface.html#isPrimary()"><B>isPrimary()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitorInterface.html">AccumulateMonitorInterface</A> <DD>indicates whether or not this Monitor is primary or not. <DT><A HREF="com/jamonapi/AccumulateMonitor.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Indicates whether or not this Monitor is primary. <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.util.Collection, com.jamonapi.utils.Command)"><B>iterate(Collection, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate through a Collection passing the Command object each element in the collection. <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.util.Enumeration, com.jamonapi.utils.Command)"><B>iterate(Enumeration, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate through an Enumeration passing the Command object each element in the Collection <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.util.Iterator, com.jamonapi.utils.Command)"><B>iterate(Iterator, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate passing each Command each Object that is being iterated <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.util.Map, com.jamonapi.utils.Command)"><B>iterate(Map, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate through a Map passing Command object a Map.Entry. <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.sql.ResultSet, com.jamonapi.utils.Command)"><B>iterate(ResultSet, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate through a ResultSet passing in a Command object. </DL> <HR> <A NAME="_L_"><!-- --></A><H2> <B>L</B></H2> <DL> <DT><A HREF="com/jamonapi/LastAccessMonitor.html"><B>LastAccessMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/LastAccessMonitor.html">LastAccessMonitor</A>.<DD>Class that tracks when a Monitor was first and last called.<DT><A HREF="com/jamonapi/LastAccessMonitor.html#LastAccessMonitor()"><B>LastAccessMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/LastAccessMonitor.html">LastAccessMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/LastAccessMonitor.html#LastAccessMonitor(com.jamonapi.AccumulateMonitorInterface)"><B>LastAccessMonitor(AccumulateMonitorInterface)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/LastAccessMonitor.html">LastAccessMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/LeafNode.html"><B>LeafNode</B></A> - interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/LeafNode.html">LeafNode</A>.<DD>A tag interface to indicate a leaf node in a tree/heirarchical relationship.<DT><A HREF="com/jamonapi/MonitorComposite.html#leafNodeExists(java.lang.String)"><B>leafNodeExists(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Does the passed in leaf node exist. <DT><A HREF="com/jamonapi/utils/NodeTree.html#leafNodeExists(java.lang.String)"><B>leafNodeExists(String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Determine if the leaf represented by the locator string exists. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#leafNodeExists(java.lang.String)"><B>leafNodeExists(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Returns true if the leafNodeExists <DT><A HREF="com/jamonapi/utils/Logger.html#log(java.lang.Object)"><B>log(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Logger.html">Logger</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/Logger.html#logDebug(java.lang.Object)"><B>logDebug(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Logger.html">Logger</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/Logger.html"><B>Logger</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Logger.html">Logger</A>.<DD>Very Simple Utility class used for Logging.<DT><A HREF="com/jamonapi/utils/Logger.html#logInfo(java.lang.Object)"><B>logInfo(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Logger.html">Logger</A> <DD>&nbsp; </DL> <HR> <A NAME="_M_"><!-- --></A><H2> <B>M</B></H2> <DL> <DT><A HREF="com/jamonapi/TimingMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Method with the classes test code <DT><A HREF="com/jamonapi/TimeStatsMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A> <DD>The main method contains this classes test code <DT><A HREF="com/jamonapi/TimeStatsDistMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/TimeStatsDistMonitor.html">TimeStatsDistMonitor</A> <DD>Test method for this class <DT><A HREF="com/jamonapi/TestClassPerformance.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>Test class for performance numbers of JAMon. <DT><A HREF="com/jamonapi/TestClass.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/TestClass.html">TestClass</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Test code for the MonitorFactory class. <DT><A HREF="com/jamonapi/LastAccessMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/LastAccessMonitor.html">LastAccessMonitor</A> <DD>Test code for this class <DT><A HREF="com/jamonapi/ActiveStatsMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A> <DD>Method that contains test data for this class <DT><A HREF="com/jamonapi/AccumulateMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Method that calls test code for this class. <DT><A HREF="com/jamonapi/utils/CommandIterator.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Test code for this class <DT><A HREF="com/jamonapi/MinimalMonitor.html"><B>MinimalMonitor</B></A> - interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A>.<DD>Most basic interfaces that all monitors must implement.<DT><A HREF="com/jamonapi/utils/Misc.html"><B>Misc</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A>.<DD>Difficult to group Utilities<DT><A HREF="com/jamonapi/utils/Misc.html#Misc()"><B>Misc()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html"><B>Monitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A>.<DD>The basic Monitor interface used by all of the Timing related Monitors.<DT><A HREF="com/jamonapi/utils/AppConstants.html#MONITOR_PREFIX"><B>MONITOR_PREFIX</B></A> - Static variable in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppConstants.html#MONITOR_PRIORITY_LEVEL"><B>MONITOR_PRIORITY_LEVEL</B></A> - Static variable in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html#Monitor()"><B>Monitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html"><B>MonitorComposite</B></A> - class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A>.<DD>MonitorComposite can contain other MonitorComposite and TimingMonitors (at the leaf level)<DT><A HREF="com/jamonapi/MonitorComposite.html#MonitorComposite()"><B>MonitorComposite()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorConverter.html"><B>MonitorConverter</B></A> - class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A>.<DD>MonitorConverter is a utility class used by MonitorComposite to convert Monitor data to various formats.<DT><A HREF="com/jamonapi/MonitorFactory.html"><B>MonitorFactory</B></A> - class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A>.<DD>MonitorFactory - Class that controls monitors including creating, starting, enabling, disabling and resetting them.<DT><A HREF="com/jamonapi/MonitorFactory.html#MonitorFactory()"><B>MonitorFactory()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactoryInterface.html"><B>MonitorFactoryInterface</B></A> - interface com.jamonapi.<A HREF="com/jamonapi/MonitorFactoryInterface.html">MonitorFactoryInterface</A>.<DD>Interface used in the Monitor enabled and disabled factories<DT><A HREF="com/jamonapi/MonitorLeafFactory.html"><B>MonitorLeafFactory</B></A> - class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A>.<DD>The MonitorLeafFactory is an important class in that it determines how to create Monitor objects.<DT><A HREF="com/jamonapi/MonitorLeafFactory.html#MonitorLeafFactory()"><B>MonitorLeafFactory()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorLeafFactoryInterface.html"><B>MonitorLeafFactoryInterface</B></A> - interface com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactoryInterface.html">MonitorLeafFactoryInterface</A>.<DD>Interface used to create Leaf level Monitors<DT><A HREF="com/jamonapi/MonitorReportInterface.html"><B>MonitorReportInterface</B></A> - interface com.jamonapi.<A HREF="com/jamonapi/MonitorReportInterface.html">MonitorReportInterface</A>.<DD>Interface used in relation to data and data display of Monitors</DL> <HR> <A NAME="_N_"><!-- --></A><H2> <B>N</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/EnumIterator.html#next()"><B>next()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/NodeTree.html#nodeExists(java.lang.String)"><B>nodeExists(String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Determine if the Node represented by the locator string exists. <DT><A HREF="com/jamonapi/utils/NodeTree.html"><B>NodeTree</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A>.<DD>A NodeTree works with Compositenodes and LeafNodes to create heirarchical object trees.<DT><A HREF="com/jamonapi/utils/NodeTree.html#NodeTree(com.jamonapi.utils.CompositeNode)"><B>NodeTree(CompositeNode)</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html"><B>NullAccumulateMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A>.<DD>Null implementation of the AccumulateMonitorInterface.<DT><A HREF="com/jamonapi/NullMonitor.html"><B>NullMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/NullMonitor.html">NullMonitor</A>.<DD>Null implementation of the Monitor interface.<DT><A HREF="com/jamonapi/TestClassPerformance.html#nullMonitor()"><B>nullMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TestClassPerformance.html#nullMonitor2()"><B>nullMonitor2()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>&nbsp; </DL> <HR> <A NAME="_P_"><!-- --></A><H2> <B>P</B></H2> <DL> <DT><A HREF="com/jamonapi/MonitorLeafFactory.html#PRIMARY"><B>PRIMARY</B></A> - Static variable in class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppMap.html#put(java.lang.Object, java.lang.Object)"><B>put(Object, Object)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; </DL> <HR> <A NAME="_R_"><!-- --></A><H2> <B>R</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/EnumIterator.html#remove()"><B>remove()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Resets the accrued time and restarts the Monitor <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#reset()"><B>reset()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Wipes out all statistics that have been gathered. <DT><A HREF="com/jamonapi/MonitorComposite.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Call reset() on all Monitors that this MonitorComposite instance contains <DT><A HREF="com/jamonapi/MinimalMonitor.html#reset()"><B>reset()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Erase the values in the monitor <DT><A HREF="com/jamonapi/BaseMonitor.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Erase/wipe out any accrued statistics for this monitor, and call reset on all monitors in the decorator chain Sample Call: monitor.reset(); <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#resultSetMetaDataToArrayList(java.util.ArrayList, java.sql.ResultSet)"><B>resultSetMetaDataToArrayList(ArrayList, ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an ArrayList containing the ResultSetMetaData column names. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#resultSetToArrayList(java.util.ArrayList, java.sql.ResultSet)"><B>resultSetToArrayList(ArrayList, ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an ArrayList containing the ResultSet column names and data. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#resultSetToMap(java.util.Map, java.sql.ResultSet)"><B>resultSetToMap(Map, ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method converts ResultSet data to a Map of object keys and values using an instance of HashMap. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#resultSetToString(java.sql.ResultSet)"><B>resultSetToString(ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method simply takes the ResultSet and converts it to a two dimensional array of strings containing the column names and data using calls to the resultSetToArrayList and arrayListToString methods. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html"><B>ResultSetUtils</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A>.<DD>Purpose: Provides various methods for obtaining resultset data.<DT><A HREF="com/jamonapi/TestClass.html#run()"><B>run()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TestClass.html">TestClass</A> <DD>&nbsp; </DL> <HR> <A NAME="_S_"><!-- --></A><H2> <B>S</B></H2> <DL> <DT><A HREF="com/jamonapi/MonitorFactory.html#setDebugEnabled(boolean)"><B>setDebugEnabled(boolean)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Enable or disable the debug factory. <DT><A HREF="com/jamonapi/MonitorFactory.html#setDebugPriorityLevel(int)"><B>setDebugPriorityLevel(int)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Enable or disable the priority driven debug factory. <DT><A HREF="com/jamonapi/MonitorComposite.html#setDisplayDelimiter(java.lang.String)"><B>setDisplayDelimiter(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Delimiter to be used when displaying the monitor label returned by the getReport() and getData() methods. <DT><A HREF="com/jamonapi/MonitorFactory.html#setEnabled(boolean)"><B>setEnabled(boolean)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Enable or disable the factory. <DT><A HREF="com/jamonapi/MonitorFactory.html#setJAMonAdminPage(java.lang.String)"><B>setJAMonAdminPage(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Call this method if you don't want to use the default name or location for JAMonAdmin.jsp that is returned in the JAMon report. <DT><A HREF="com/jamonapi/TimingMonitor.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullMonitor.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullMonitor.html">NullMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A> <DD>Indicate that this a primary Monitor. <DT><A HREF="com/jamonapi/AccumulateMonitorInterface.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitorInterface.html">AccumulateMonitorInterface</A> <DD>Specify whether or not this Monitor is primary. <DT><A HREF="com/jamonapi/AccumulateMonitor.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Specify whether or not this Monitor is primary. <DT><A HREF="com/jamonapi/utils/Misc.html#sort(java.lang.Object[][], int, java.lang.String)"><B>sort(Object[][], int, String)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A> <DD>Sort a 2 dimensional array based on 1 columns data in either ascending or descending order. <DT><A HREF="com/jamonapi/TimingMonitor.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Start timing for the Monitor <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactoryInterface.html#start()"><B>start()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorFactoryInterface.html">MonitorFactoryInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#start()"><B>start()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Return a Monitor and begin gathering timing statistics for it. <DT><A HREF="com/jamonapi/BasicTimingMonitor.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BasicTimingMonitor.html">BasicTimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/BaseMonitor.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitorInterface.html#start()"><B>start()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitorInterface.html">AccumulateMonitorInterface</A> <DD>start() gathering statistics for this Monitor <DT><A HREF="com/jamonapi/AccumulateMonitor.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Start gathering statistics for this Monitor. <DT><A HREF="com/jamonapi/MonitorFactoryInterface.html#start(java.lang.String)"><B>start(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorFactoryInterface.html">MonitorFactoryInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#start(java.lang.String)"><B>start(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Return a Monitor and begin gathering timing statistics for it.<br> <DT><A HREF="com/jamonapi/utils/AppConstants.html#start(java.lang.String)"><B>start(String)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactoryInterface.html#startPrimary(java.lang.String)"><B>startPrimary(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MonitorFactoryInterface.html">MonitorFactoryInterface</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#startPrimary(java.lang.String)"><B>startPrimary(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Return a Monitor and begin gathering timing statistics for it. <DT><A HREF="com/jamonapi/TimingMonitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Stop the Monitor and keep track of how long it was running. <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A> <DD>Stop the montior <DT><A HREF="com/jamonapi/BasicTimingMonitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BasicTimingMonitor.html">BasicTimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/BaseMonitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitorInterface.html#stop()"><B>stop()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitorInterface.html">AccumulateMonitorInterface</A> <DD>stop() gathering statistics for this Monitor <DT><A HREF="com/jamonapi/AccumulateMonitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Stop gathering statistics for the Monitor. </DL> <HR> <A NAME="_T_"><!-- --></A><H2> <B>T</B></H2> <DL> <DT><A HREF="com/jamonapi/TestClass.html"><B>TestClass</B></A> - class com.jamonapi.<A HREF="com/jamonapi/TestClass.html">TestClass</A>.<DD>Class used to test all classes in JAMon.<DT><A HREF="com/jamonapi/TestClass.html#TestClass(int, long, long, com.jamonapi.AccumulateMonitor)"><B>TestClass(int, long, long, AccumulateMonitor)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TestClass.html">TestClass</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TestClassPerformance.html"><B>TestClassPerformance</B></A> - class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A>.<DD>Class used to test performance of JAMon.<DT><A HREF="com/jamonapi/TestClassPerformance.html#TestClassPerformance()"><B>TestClassPerformance()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>Creates a new instance of TestClassPerformance <DT><A HREF="com/jamonapi/TestClassPerformance.html#TestClassPerformance(int)"><B>TestClassPerformance(int)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimeStatsDistMonitor.html"><B>TimeStatsDistMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/TimeStatsDistMonitor.html">TimeStatsDistMonitor</A>.<DD>TimeStatsDistMonitor keeps track of statistics for JAMon time ranges.<DT><A HREF="com/jamonapi/TimeStatsDistMonitor.html#TimeStatsDistMonitor()"><B>TimeStatsDistMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TimeStatsDistMonitor.html">TimeStatsDistMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimeStatsDistMonitor.html#TimeStatsDistMonitor(com.jamonapi.AccumulateMonitorInterface)"><B>TimeStatsDistMonitor(AccumulateMonitorInterface)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TimeStatsDistMonitor.html">TimeStatsDistMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimeStatsMonitor.html"><B>TimeStatsMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A>.<DD>Monitor that keeps track of various timing statistics such as max, min, average, hits, total, and standard deviation.<DT><A HREF="com/jamonapi/TimeStatsMonitor.html#TimeStatsMonitor()"><B>TimeStatsMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimeStatsMonitor.html#TimeStatsMonitor(com.jamonapi.AccumulateMonitorInterface)"><B>TimeStatsMonitor(AccumulateMonitorInterface)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html"><B>TimingMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A>.<DD>This is the Monitor class that starts the decorator chain of Monitors.<DT><A HREF="com/jamonapi/TestClassPerformance.html#timingNoMonitor()"><B>timingNoMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TestClassPerformance.html">TestClassPerformance</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullAccumulateMonitor.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullAccumulateMonitor.html">NullAccumulateMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Display the accrued value as a string <DT><A HREF="com/jamonapi/BaseMonitor.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Display this Monitor as well as all Monitor's in the decorator chain as Strings </DL> <HR> <A HREF="#_A_">A</A> <A HREF="#_B_">B</A> <A HREF="#_C_">C</A> <A HREF="#_D_">D</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_H_">H</A> <A HREF="#_I_">I</A> <A HREF="#_L_">L</A> <A HREF="#_M_">M</A> <A HREF="#_N_">N</A> <A HREF="#_P_">P</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="index-all.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp; <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML>
appbakers/automon_example
jamonapi/src/JAMonUsersGuide/javadoc/index-all.html
HTML
apache-2.0
69,561
/* * Copyright 2016 The Simple File Server Authors * * 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 org.sfs.integration.java; import io.vertx.core.Context; import io.vertx.core.Vertx; import io.vertx.core.http.HttpClient; import io.vertx.core.logging.Logger; import io.vertx.ext.unit.Async; import io.vertx.ext.unit.TestContext; import io.vertx.ext.unit.junit.VertxUnitRunner; import org.junit.Rule; import org.junit.runner.RunWith; import org.sfs.RunBootedTestOnContextRx; import org.sfs.Server; import org.sfs.TestSubscriber; import org.sfs.VertxContext; import rx.Observable; import java.nio.file.Path; import java.util.concurrent.Callable; import static io.vertx.core.logging.LoggerFactory.getLogger; @RunWith(VertxUnitRunner.class) public class BaseTestVerticle { private static final Logger LOGGER = getLogger(BaseTestVerticle.class); @Rule public RunBootedTestOnContextRx runTestOnContext = new RunBootedTestOnContextRx(); public VertxContext<Server> vertxContext() { return runTestOnContext.getVertxContext(); } public HttpClient httpClient() { return runTestOnContext.getHttpClient(); } public Vertx vertx() { return vertxContext().vertx(); } public Path tmpDir() { return runTestOnContext.getTmpDir(); } public void runOnServerContext(TestContext testContext, RunnableWithException callable) { Async async = testContext.async(); Context c = vertxContext().verticle().getContext(); c.runOnContext(event -> { try { callable.run(); async.complete(); } catch (Exception e) { testContext.fail(e); } }); } public void runOnServerContext(TestContext testContext, Callable<Observable<Void>> callable) { Async async = testContext.async(); Context c = vertxContext().verticle().getContext(); c.runOnContext(event -> { try { callable.call().subscribe(new TestSubscriber(testContext, async)); } catch (Exception e) { testContext.fail(e); } }); } public interface RunnableWithException { void run() throws Exception; } }
pitchpoint-solutions/sfs
sfs-server/src/test/java/org/sfs/integration/java/BaseTestVerticle.java
Java
apache-2.0
2,779
///<reference path="Math.ts"/> class Entity { get X(): number { return this.Position.x; } get Y(): number { return this.Position.y; } get Z(): number { return this.Position.z; } constructor(public Position: Vec3) { } }
piersh/GLander
src/Entity.ts
TypeScript
apache-2.0
233
#pragma once #include "indexer/feature_decl.hpp" #include "geometry/point2d.hpp" #include "std/initializer_list.hpp" #include "std/limits.hpp" #include "std/string.hpp" #include "std/vector.hpp" #include "3party/osrm/osrm-backend/typedefs.h" namespace routing { using TNodeId = uint32_t; using TEdgeWeight = double; /// \brief Unique identification for a road edge between two junctions (joints). /// In case of OSRM it's NodeID and in case of RoadGraph (IndexGraph) /// it's mwm id, feature id, segment id and direction. struct UniNodeId { enum class Type { Osrm, Mwm, }; UniNodeId(Type type) : m_type(type) {} UniNodeId(FeatureID const & featureId, uint32_t segId, bool forward) : m_type(Type::Mwm), m_featureId(featureId), m_segId(segId), m_forward(forward) { } UniNodeId(uint32_t nodeId) : m_type(Type::Osrm), m_nodeId(nodeId) {} bool operator==(UniNodeId const & rh) const; bool operator<(UniNodeId const & rh) const; void Clear(); uint32_t GetNodeId() const; FeatureID const & GetFeature() const; uint32_t GetSegId() const; bool IsForward() const; private: Type m_type; /// \note In case of OSRM unique id is kept in |m_featureId.m_index|. /// So |m_featureId.m_mwmId|, |m_segId| and |m_forward| have default values. FeatureID m_featureId; // |m_featureId.m_index| is NodeID for OSRM. uint32_t m_segId = 0; // Not valid for OSRM. bool m_forward = true; // Segment direction in |m_featureId|. NodeID m_nodeId = SPECIAL_NODEID; }; string DebugPrint(UniNodeId::Type type); namespace turns { /// @todo(vbykoianko) It's a good idea to gather all the turns information into one entity. /// For the time being several separate entities reflect the turn information. Like Route::TTurns double constexpr kFeaturesNearTurnMeters = 3.0; /*! * \warning The order of values below shall not be changed. * TurnRight(TurnLeft) must have a minimal value and * TurnSlightRight(TurnSlightLeft) must have a maximum value * \warning The values of TurnDirection shall be synchronized with values of TurnDirection enum in * java. */ enum class TurnDirection { NoTurn = 0, GoStraight, TurnRight, TurnSharpRight, TurnSlightRight, TurnLeft, TurnSharpLeft, TurnSlightLeft, UTurnLeft, UTurnRight, TakeTheExit, EnterRoundAbout, LeaveRoundAbout, StayOnRoundAbout, StartAtEndOfStreet, ReachedYourDestination, Count /**< This value is used for internals only. */ }; string DebugPrint(TurnDirection const l); /*! * \warning The values of PedestrianDirectionType shall be synchronized with values in java */ enum class PedestrianDirection { None = 0, Upstairs, Downstairs, LiftGate, Gate, ReachedYourDestination, Count /**< This value is used for internals only. */ }; string DebugPrint(PedestrianDirection const l); /*! * \warning The values of LaneWay shall be synchronized with values of LaneWay enum in java. */ enum class LaneWay { None = 0, Reverse, SharpLeft, Left, SlightLeft, MergeToRight, Through, MergeToLeft, SlightRight, Right, SharpRight, Count /**< This value is used for internals only. */ }; string DebugPrint(LaneWay const l); typedef vector<LaneWay> TSingleLane; struct SingleLaneInfo { TSingleLane m_lane; bool m_isRecommended = false; SingleLaneInfo() = default; SingleLaneInfo(initializer_list<LaneWay> const & l) : m_lane(l) {} bool operator==(SingleLaneInfo const & other) const; }; string DebugPrint(SingleLaneInfo const & singleLaneInfo); struct TurnItem { TurnItem() : m_index(numeric_limits<uint32_t>::max()), m_turn(TurnDirection::NoTurn), m_exitNum(0), m_keepAnyway(false), m_pedestrianTurn(PedestrianDirection::None) { } TurnItem(uint32_t idx, TurnDirection t, uint32_t exitNum = 0) : m_index(idx), m_turn(t), m_exitNum(exitNum), m_keepAnyway(false) , m_pedestrianTurn(PedestrianDirection::None) { } TurnItem(uint32_t idx, PedestrianDirection p) : m_index(idx), m_turn(TurnDirection::NoTurn), m_exitNum(0), m_keepAnyway(false) , m_pedestrianTurn(p) { } bool operator==(TurnItem const & rhs) const { return m_index == rhs.m_index && m_turn == rhs.m_turn && m_lanes == rhs.m_lanes && m_exitNum == rhs.m_exitNum && m_sourceName == rhs.m_sourceName && m_targetName == rhs.m_targetName && m_keepAnyway == rhs.m_keepAnyway && m_pedestrianTurn == rhs.m_pedestrianTurn; } uint32_t m_index; /*!< Index of point on polyline (number of segment + 1). */ TurnDirection m_turn; /*!< The turn instruction of the TurnItem */ vector<SingleLaneInfo> m_lanes; /*!< Lane information on the edge before the turn. */ uint32_t m_exitNum; /*!< Number of exit on roundabout. */ string m_sourceName; /*!< Name of the street which the ingoing edge belongs to */ string m_targetName; /*!< Name of the street which the outgoing edge belongs to */ /*! * \brief m_keepAnyway is true if the turn shall not be deleted * and shall be demonstrated to an end user. */ bool m_keepAnyway; /*! * \brief m_pedestrianTurn is type of corresponding direction for a pedestrian, or None * if there is no pedestrian specific direction */ PedestrianDirection m_pedestrianTurn; }; string DebugPrint(TurnItem const & turnItem); struct TurnItemDist { TurnItem m_turnItem; double m_distMeters; }; string DebugPrint(TurnItemDist const & turnItemDist); string const GetTurnString(TurnDirection turn); bool IsLeftTurn(TurnDirection t); bool IsRightTurn(TurnDirection t); bool IsLeftOrRightTurn(TurnDirection t); bool IsStayOnRoad(TurnDirection t); bool IsGoStraightOrSlightTurn(TurnDirection t); /*! * \param l A variant of going along a lane. * \param t A turn direction. * \return True if @l corresponds with @t exactly. For example it returns true * when @l equals to LaneWay::Right and @t equals to TurnDirection::TurnRight. * Otherwise it returns false. */ bool IsLaneWayConformedTurnDirection(LaneWay l, TurnDirection t); /*! * \param l A variant of going along a lane. * \param t A turn direction. * \return True if @l corresponds with @t approximately. For example it returns true * when @l equals to LaneWay::Right and @t equals to TurnDirection::TurnSlightRight. * Otherwise it returns false. */ bool IsLaneWayConformedTurnDirectionApproximately(LaneWay l, TurnDirection t); /*! * \brief Parse lane information which comes from @lanesString * \param lanesString lane information. Example through|through|through|through;right * \param lanes the result of parsing. * \return true if @lanesString parsed successfully, false otherwise. * Note 1: if @lanesString is empty returns false. * Note 2: @laneString is passed by value on purpose. It'll be used(changed) in the method. */ bool ParseLanes(string lanesString, vector<SingleLaneInfo> & lanes); void SplitLanes(string const & lanesString, char delimiter, vector<string> & lanes); bool ParseSingleLane(string const & laneString, char delimiter, TSingleLane & lane); /*! * \returns pi minus angle from vector [junctionPoint, ingoingPoint] * to vector [junctionPoint, outgoingPoint]. A counterclockwise rotation. * Angle is in range [-pi, pi]. */ double PiMinusTwoVectorsAngle(m2::PointD const & junctionPoint, m2::PointD const & ingoingPoint, m2::PointD const & outgoingPoint); } // namespace turns } // namespace routing
Zverik/omim
routing/turns.hpp
C++
apache-2.0
7,503
# Cristula integra Chenant., 1920 SPECIES #### Status ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in Bull. Soc. mycol. Fr. 35: (1920) #### Original name Cristula integra Chenant., 1920 ### Remarks null
mdoering/backbone
life/Fungi/Ascomycota/Cristula/Cristula integra/README.md
Markdown
apache-2.0
244
/* * Copyright 2008-2015 Arsen Chaloyan * * 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. */ #ifdef WIN32 #pragma warning(disable: 4127) #endif #include <apr_ring.h> #include <apr_hash.h> #include "rtsp_server.h" #include "rtsp_stream.h" #include "apt_poller_task.h" #include "apt_text_stream.h" #include "apt_pool.h" #include "apt_obj_list.h" #include "apt_log.h" #define RTSP_SESSION_ID_HEX_STRING_LENGTH 16 #define RTSP_STREAM_BUFFER_SIZE 1024 typedef struct rtsp_server_connection_t rtsp_server_connection_t; /** RTSP server */ struct rtsp_server_t { apr_pool_t *pool; apt_poller_task_t *task; /** List (ring) of RTSP connections */ APR_RING_HEAD(rtsp_server_connection_head_t, rtsp_server_connection_t) connection_list; apr_uint32_t inactivity_timeout; apt_bool_t online; /* Listening socket descriptor */ apr_sockaddr_t *sockaddr; apr_socket_t *listen_sock; apr_pollfd_t listen_sock_pfd; void *obj; const rtsp_server_vtable_t *vtable; }; /** RTSP connection */ struct rtsp_server_connection_t { /** Ring entry */ APR_RING_ENTRY(rtsp_server_connection_t) link; /** Memory pool */ apr_pool_t *pool; /** Client IP address */ char *client_ip; /** Accepted socket */ apr_socket_t *sock; /** Socket poll descriptor */ apr_pollfd_t sock_pfd; /** String identifier used for traces */ const char *id; /** RTSP server, connection belongs to */ rtsp_server_t *server; /** Session table (rtsp_server_session_t*) */ apr_hash_t *session_table; char rx_buffer[RTSP_STREAM_BUFFER_SIZE]; apt_text_stream_t rx_stream; rtsp_parser_t *parser; char tx_buffer[RTSP_STREAM_BUFFER_SIZE]; apt_text_stream_t tx_stream; rtsp_generator_t *generator; /** Inactivity timer */ apt_timer_t *inactivity_timer; }; /** RTSP session */ struct rtsp_server_session_t { apr_pool_t *pool; void *obj; rtsp_server_connection_t *connection; /** Session identifier */ apt_str_t id; /** Last cseq sent */ apr_size_t last_cseq; /** In-progress request */ rtsp_message_t *active_request; /** request queue */ apt_obj_list_t *request_queue; /** Resource table */ apr_hash_t *resource_table; /** In-progress termination request */ apt_bool_t terminating; }; typedef enum { TASK_MSG_SEND_MESSAGE, TASK_MSG_TERMINATE_SESSION, TASK_MSG_RELEASE_SESSION } task_msg_data_type_e; typedef struct task_msg_data_t task_msg_data_t; struct task_msg_data_t { task_msg_data_type_e type; rtsp_server_t *server; rtsp_server_session_t *session; rtsp_message_t *message; }; static apt_bool_t rtsp_server_on_destroy(apt_task_t *task); static void rtsp_server_on_offline(apt_task_t *task); static void rtsp_server_on_online(apt_task_t *task); static apt_bool_t rtsp_server_task_msg_process(apt_task_t *task, apt_task_msg_t *msg); static apt_bool_t rtsp_server_poller_signal_process(void *obj, const apr_pollfd_t *descriptor); static apt_bool_t rtsp_server_message_send(rtsp_server_t *server, rtsp_server_connection_t *connection, rtsp_message_t *message); static apt_bool_t rtsp_server_session_terminate_request(rtsp_server_t *server, rtsp_server_session_t *session); static apt_bool_t rtsp_server_listening_socket_create(rtsp_server_t *server); static void rtsp_server_listening_socket_destroy(rtsp_server_t *server); static void rtsp_server_inactivity_timer_proc(apt_timer_t *timer, void *obj); /** Get string identifier */ static const char* rtsp_server_id_get(const rtsp_server_t *server) { apt_task_t *task = apt_poller_task_base_get(server->task); return apt_task_name_get(task); } /** Create RTSP server */ RTSP_DECLARE(rtsp_server_t*) rtsp_server_create( const char *id, const char *listen_ip, apr_port_t listen_port, apr_size_t max_connection_count, apr_size_t connection_timeout, void *obj, const rtsp_server_vtable_t *handler, apr_pool_t *pool) { apt_task_t *task; apt_task_vtable_t *vtable; apt_task_msg_pool_t *msg_pool; rtsp_server_t *server; if(!listen_ip) { return NULL; } apt_log(RTSP_LOG_MARK,APT_PRIO_NOTICE,"Create RTSP Server [%s] %s:%hu [%"APR_SIZE_T_FMT"] connection timeout [%"APR_SIZE_T_FMT" sec]", id, listen_ip, listen_port, max_connection_count, connection_timeout); server = apr_palloc(pool,sizeof(rtsp_server_t)); server->pool = pool; server->obj = obj; server->vtable = handler; server->inactivity_timeout = (apr_uint32_t)connection_timeout * 1000; server->online = TRUE; server->listen_sock = NULL; server->sockaddr = NULL; apr_sockaddr_info_get(&server->sockaddr,listen_ip,APR_INET,listen_port,0,pool); if(!server->sockaddr) { return NULL; } msg_pool = apt_task_msg_pool_create_dynamic(sizeof(task_msg_data_t),pool); server->task = apt_poller_task_create( max_connection_count + 1, rtsp_server_poller_signal_process, server, msg_pool, pool); if(!server->task) { return NULL; } task = apt_poller_task_base_get(server->task); if(task) { apt_task_name_set(task,id); } vtable = apt_poller_task_vtable_get(server->task); if(vtable) { vtable->destroy = rtsp_server_on_destroy; vtable->on_offline_complete = rtsp_server_on_offline; vtable->on_online_complete = rtsp_server_on_online; vtable->process_msg = rtsp_server_task_msg_process; } APR_RING_INIT(&server->connection_list, rtsp_server_connection_t, link); if(rtsp_server_listening_socket_create(server) != TRUE) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Create Listening Socket [%s] %s:%hu", id, listen_ip, listen_port); } return server; } static apt_bool_t rtsp_server_on_destroy(apt_task_t *task) { apt_poller_task_t *poller_task = apt_task_object_get(task); rtsp_server_t *server = apt_poller_task_object_get(poller_task); rtsp_server_listening_socket_destroy(server); apt_poller_task_cleanup(poller_task); return TRUE; } /** Destroy RTSP server */ RTSP_DECLARE(apt_bool_t) rtsp_server_destroy(rtsp_server_t *server) { apt_log(RTSP_LOG_MARK,APT_PRIO_NOTICE,"Destroy RTSP Server [%s]", rtsp_server_id_get(server)); return apt_poller_task_destroy(server->task); } /** Start connection agent */ RTSP_DECLARE(apt_bool_t) rtsp_server_start(rtsp_server_t *server) { return apt_poller_task_start(server->task); } /** Terminate connection agent */ RTSP_DECLARE(apt_bool_t) rtsp_server_terminate(rtsp_server_t *server) { return apt_poller_task_terminate(server->task); } /** Get task */ RTSP_DECLARE(apt_task_t*) rtsp_server_task_get(const rtsp_server_t *server) { return apt_poller_task_base_get(server->task); } /** Get external object */ RTSP_DECLARE(void*) rtsp_server_object_get(const rtsp_server_t *server) { return server->obj; } /** Get object associated with the session */ RTSP_DECLARE(void*) rtsp_server_session_object_get(const rtsp_server_session_t *session) { return session->obj; } /** Set object associated with the session */ RTSP_DECLARE(void) rtsp_server_session_object_set(rtsp_server_session_t *session, void *obj) { session->obj = obj; } /** Get the session identifier */ RTSP_DECLARE(const apt_str_t*) rtsp_server_session_id_get(const rtsp_server_session_t *session) { return &session->id; } /** Get active request */ RTSP_DECLARE(const rtsp_message_t*) rtsp_server_session_request_get(const rtsp_server_session_t *session) { return session->active_request; } /** Get the session destination (client) IP address */ RTSP_DECLARE(const char*) rtsp_server_session_destination_get(const rtsp_server_session_t *session) { if(session->connection) { return session->connection->client_ip; } return NULL; } /** Signal task message */ static apt_bool_t rtsp_server_control_message_signal( task_msg_data_type_e type, rtsp_server_t *server, rtsp_server_session_t *session, rtsp_message_t *message) { apt_task_t *task = apt_poller_task_base_get(server->task); apt_task_msg_t *task_msg = apt_task_msg_get(task); if(task_msg) { task_msg_data_t *data = (task_msg_data_t*)task_msg->data; data->type = type; data->server = server; data->session = session; data->message = message; apt_task_msg_signal(task,task_msg); } return TRUE; } /** Signal RTSP message */ RTSP_DECLARE(apt_bool_t) rtsp_server_session_respond(rtsp_server_t *server, rtsp_server_session_t *session, rtsp_message_t *message) { return rtsp_server_control_message_signal(TASK_MSG_SEND_MESSAGE,server,session,message); } /** Signal terminate response */ RTSP_DECLARE(apt_bool_t) rtsp_server_session_terminate(rtsp_server_t *server, rtsp_server_session_t *session) { return rtsp_server_control_message_signal(TASK_MSG_TERMINATE_SESSION,server,session,NULL); } /** Signal release event/request */ RTSP_DECLARE(apt_bool_t) rtsp_server_session_release(rtsp_server_t *server, rtsp_server_session_t *session) { return rtsp_server_control_message_signal(TASK_MSG_RELEASE_SESSION,server,session,NULL); } /* Create RTSP session */ static rtsp_server_session_t* rtsp_server_session_create(rtsp_server_t *server) { rtsp_server_session_t *session; apr_pool_t *pool = apt_pool_create(); session = apr_palloc(pool,sizeof(rtsp_server_session_t)); session->pool = pool; session->obj = NULL; session->last_cseq = 0; session->active_request = NULL; session->request_queue = apt_list_create(pool); session->resource_table = apr_hash_make(pool); session->terminating = FALSE; apt_unique_id_generate(&session->id,RTSP_SESSION_ID_HEX_STRING_LENGTH,pool); apt_log(RTSP_LOG_MARK,APT_PRIO_NOTICE,"Create RTSP Session " APT_SID_FMT,session->id.buf); if(server->vtable->create_session(server,session) != TRUE) { apr_pool_destroy(pool); return NULL; } return session; } /* Destroy RTSP session */ static void rtsp_server_session_destroy(rtsp_server_session_t *session) { apt_log(RTSP_LOG_MARK,APT_PRIO_NOTICE,"Destroy RTSP Session " APT_SID_FMT, session ? session->id.buf : "(null)"); if(session && session->pool) { apr_pool_destroy(session->pool); } } /** Destroy RTSP connection */ static void rtsp_server_connection_destroy(rtsp_server_connection_t *rtsp_connection) { apt_log(RTSP_LOG_MARK,APT_PRIO_NOTICE,"Destroy RTSP Connection %s",rtsp_connection->id); apr_pool_destroy(rtsp_connection->pool); } /* Finally terminate RTSP session */ static apt_bool_t rtsp_server_session_do_terminate(rtsp_server_t *server, rtsp_server_session_t *session) { rtsp_server_connection_t *rtsp_connection = session->connection; if(session->active_request) { rtsp_message_t *response = rtsp_response_create(session->active_request, RTSP_STATUS_CODE_OK,RTSP_REASON_PHRASE_OK,session->active_request->pool); if(response) { if(session->id.buf) { response->header.session_id = session->id; rtsp_header_property_add(&response->header,RTSP_HEADER_FIELD_SESSION_ID,response->pool); } if(rtsp_connection) { rtsp_server_message_send(server,rtsp_connection,response); } } } apt_log(RTSP_LOG_MARK,APT_PRIO_INFO,"Remove RTSP Session " APT_SID_FMT,session->id.buf); if(rtsp_connection) { apr_hash_set(rtsp_connection->session_table,session->id.buf,session->id.length,NULL); } rtsp_server_session_destroy(session); if(rtsp_connection && !rtsp_connection->sock) { if(apr_hash_count(rtsp_connection->session_table) == 0) { rtsp_server_connection_destroy(rtsp_connection); } } return TRUE; } /* Release RTSP session (internal event/request) */ static apt_bool_t rtsp_server_session_do_release(rtsp_server_t *server, rtsp_server_session_t *session) { /* Initiate regular session termination now */ apt_log(RTSP_LOG_MARK,APT_PRIO_INFO,"Release RTSP Session " APT_SID_FMT,session->id.buf); return rtsp_server_session_terminate_request(server,session); } static apt_bool_t rtsp_server_error_respond(rtsp_server_t *server, rtsp_server_connection_t *rtsp_connection, rtsp_message_t *request, rtsp_status_code_e status_code, rtsp_reason_phrase_e reason) { /* send error response to client */ rtsp_message_t *response = rtsp_response_create(request,status_code,reason,request->pool); if(rtsp_server_message_send(server,rtsp_connection,response) == FALSE) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Send RTSP Response"); return FALSE; } return TRUE; } static apt_bool_t rtsp_server_session_terminate_request(rtsp_server_t *server, rtsp_server_session_t *session) { if(session->terminating == TRUE) { /* error case, session is being terminated */ apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Session Termination Already Initiated " APT_SID_FMT,session->id.buf); return FALSE; } session->terminating = TRUE; return server->vtable->terminate_session(server,session); } static apt_bool_t rtsp_server_session_message_handle(rtsp_server_t *server, rtsp_server_session_t *session, rtsp_message_t *message) { if(message->start_line.common.request_line.method_id == RTSP_METHOD_TEARDOWN) { /* remove resource */ const char *resource_name = message->start_line.common.request_line.resource_name; apr_hash_set(session->resource_table,resource_name,APR_HASH_KEY_STRING,NULL); if(apr_hash_count(session->resource_table) == 0) { rtsp_server_session_terminate_request(server,session); return TRUE; } } if(server->vtable->handle_message(server,session,message) != TRUE) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Handle Message " APT_SID_FMT,session->id.buf); rtsp_server_error_respond(server,session->connection,message, RTSP_STATUS_CODE_INTERNAL_SERVER_ERROR, RTSP_REASON_PHRASE_INTERNAL_SERVER_ERROR); return FALSE; } return TRUE; } /* Process incoming SETUP/DESCRIBE request */ static rtsp_server_session_t* rtsp_server_session_setup_process(rtsp_server_t *server, rtsp_server_connection_t *rtsp_connection, rtsp_message_t *message) { /* create new session */ rtsp_server_session_t *session = rtsp_server_session_create(server); if(!session) { return NULL; } session->connection = rtsp_connection; apt_log(RTSP_LOG_MARK,APT_PRIO_INFO,"Add RTSP Session " APT_SID_FMT,session->id.buf); apr_hash_set(rtsp_connection->session_table,session->id.buf,session->id.length,session); return session; } /* Process incoming RTSP request */ static apt_bool_t rtsp_server_session_request_process(rtsp_server_t *server, rtsp_server_connection_t *rtsp_connection, rtsp_message_t *message) { rtsp_server_session_t *session = NULL; if(message->start_line.message_type != RTSP_MESSAGE_TYPE_REQUEST) { /* received response to ANNOUNCE request/event */ return TRUE; } if(rtsp_header_property_check(&message->header,RTSP_HEADER_FIELD_SESSION_ID) != TRUE) { /* no session-id specified */ if(message->start_line.common.request_line.method_id == RTSP_METHOD_SETUP || message->start_line.common.request_line.method_id == RTSP_METHOD_DESCRIBE) { if(server->online == FALSE) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Cannot Establish RTSP Session in Offline Mode"); return rtsp_server_error_respond(server,rtsp_connection,message, RTSP_STATUS_CODE_SERVICE_UNAVAILABLE, RTSP_REASON_PHRASE_SERVICE_UNAVAILABLE); } session = rtsp_server_session_setup_process(server,rtsp_connection,message); } else if(message->start_line.common.request_line.method_id == RTSP_METHOD_OPTIONS) { /* respond with OK to OPTIONS request */ rtsp_message_t *response = rtsp_response_create(message,RTSP_STATUS_CODE_OK,RTSP_REASON_PHRASE_OK,message->pool); if(rtsp_server_message_send(server,rtsp_connection,response) == FALSE) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Send RTSP Response"); return FALSE; } return TRUE; } else { /* error case */ apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Missing RTSP Session-ID"); return rtsp_server_error_respond(server,rtsp_connection,message, RTSP_STATUS_CODE_BAD_REQUEST, RTSP_REASON_PHRASE_BAD_REQUEST); } if(session) { session->active_request = message; if(rtsp_server_session_message_handle(server,session,message) != TRUE) { rtsp_server_session_destroy(session); } } else { /* error case, failed to create a session */ apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Create RTSP Session"); return rtsp_server_error_respond(server,rtsp_connection,message, RTSP_STATUS_CODE_NOT_ACCEPTABLE, RTSP_REASON_PHRASE_NOT_ACCEPTABLE); } return TRUE; } /* existing session */ session = apr_hash_get( rtsp_connection->session_table, message->header.session_id.buf, message->header.session_id.length); if(!session) { /* error case, no such session */ apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"No Such RTSP Session " APT_SID_FMT,message->header.session_id.buf); return rtsp_server_error_respond(server,rtsp_connection,message, RTSP_STATUS_CODE_NOT_FOUND, RTSP_REASON_PHRASE_NOT_FOUND); } if(session->terminating == TRUE) { /* error case, session is being terminated */ apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Not Acceptable Request " APT_SID_FMT,message->header.session_id.buf); return rtsp_server_error_respond(server,rtsp_connection,message, RTSP_STATUS_CODE_NOT_ACCEPTABLE, RTSP_REASON_PHRASE_NOT_ACCEPTABLE); } if(session->active_request) { apt_log(RTSP_LOG_MARK,APT_PRIO_DEBUG,"Push RTSP Request to Queue " APT_SID_FMT,session->id.buf); apt_list_push_back(session->request_queue,message,message->pool); return TRUE; } /* handle the request */ session->active_request = message; rtsp_server_session_message_handle(server,session,message); return TRUE; } /* Process outgoing RTSP response */ static apt_bool_t rtsp_server_session_response_process(rtsp_server_t *server, rtsp_server_session_t *session, rtsp_message_t *message) { apt_bool_t terminate = FALSE; rtsp_message_t *request = NULL; if(message->start_line.message_type == RTSP_MESSAGE_TYPE_REQUEST) { /* RTSP ANNOUNCE request (asynch event) */ const char *resource_name = message->start_line.common.request_line.resource_name; if(resource_name) { request = apr_hash_get(session->resource_table,resource_name,APR_HASH_KEY_STRING); } if(!request) { return FALSE; } message->start_line.common.request_line.url = request->start_line.common.request_line.url; message->header.cseq = session->last_cseq; rtsp_header_property_add(&message->header,RTSP_HEADER_FIELD_CSEQ,message->pool); if(session->id.buf) { message->header.session_id = session->id; rtsp_header_property_add(&message->header,RTSP_HEADER_FIELD_SESSION_ID,message->pool); } rtsp_server_message_send(server,session->connection,message); return TRUE; } if(!session->active_request) { /* unexpected response */ return FALSE; } request = session->active_request; if(request->start_line.common.request_line.method_id == RTSP_METHOD_DESCRIBE) { terminate = TRUE; } else { if(session->id.buf) { message->header.session_id = session->id; rtsp_header_property_add(&message->header,RTSP_HEADER_FIELD_SESSION_ID,message->pool); } if(request->start_line.common.request_line.method_id == RTSP_METHOD_SETUP) { if(message->start_line.common.status_line.status_code == RTSP_STATUS_CODE_OK) { /* add resource */ const char *resource_name = request->start_line.common.request_line.resource_name; apr_hash_set(session->resource_table,resource_name,APR_HASH_KEY_STRING,request); } else if(apr_hash_count(session->resource_table) == 0) { terminate = TRUE; } } } session->last_cseq = message->header.cseq; rtsp_server_message_send(server,session->connection,message); if(terminate == TRUE) { session->active_request = NULL; rtsp_server_session_terminate_request(server,session); return TRUE; } session->active_request = apt_list_pop_front(session->request_queue); if(session->active_request) { rtsp_server_session_message_handle(server,session,session->active_request); } return TRUE; } /* Send RTSP message through RTSP connection */ static apt_bool_t rtsp_server_message_send(rtsp_server_t *server, rtsp_server_connection_t *rtsp_connection, rtsp_message_t *message) { apt_bool_t status = FALSE; apt_text_stream_t *stream; apt_message_status_e result; if(!rtsp_connection || !rtsp_connection->sock) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"No RTSP Connection"); return FALSE; } stream = &rtsp_connection->tx_stream; do { stream->text.length = sizeof(rtsp_connection->tx_buffer)-1; apt_text_stream_reset(stream); result = rtsp_generator_run(rtsp_connection->generator,message,stream); if(result != APT_MESSAGE_STATUS_INVALID) { stream->text.length = stream->pos - stream->text.buf; *stream->pos = '\0'; apt_log(RTSP_LOG_MARK,APT_PRIO_INFO,"Send RTSP Data %s [%"APR_SIZE_T_FMT" bytes]\n%s", rtsp_connection->id, stream->text.length, stream->text.buf); if(apr_socket_send(rtsp_connection->sock,stream->text.buf,&stream->text.length) == APR_SUCCESS) { status = TRUE; } else { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Send RTSP Data"); } } else { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Generate RTSP Data"); } } while(result == APT_MESSAGE_STATUS_INCOMPLETE); return status; } static apt_bool_t rtsp_server_message_handler(rtsp_server_connection_t *rtsp_connection, rtsp_message_t *message, apt_message_status_e status) { if(status == APT_MESSAGE_STATUS_COMPLETE) { /* message is completely parsed */ apt_str_t *destination; /* (re)set inactivity timer on every message received */ if(rtsp_connection->inactivity_timer) { apt_timer_set(rtsp_connection->inactivity_timer,rtsp_connection->server->inactivity_timeout); } destination = &message->header.transport.destination; if(!destination->buf && rtsp_connection->client_ip) { apt_string_assign(destination,rtsp_connection->client_ip,rtsp_connection->pool); } rtsp_server_session_request_process(rtsp_connection->server,rtsp_connection,message); } else if(status == APT_MESSAGE_STATUS_INVALID) { /* error case */ rtsp_message_t *response; apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Parse RTSP Data"); if(message) { response = rtsp_response_create(message,RTSP_STATUS_CODE_BAD_REQUEST, RTSP_REASON_PHRASE_BAD_REQUEST,message->pool); if(rtsp_server_message_send(rtsp_connection->server,rtsp_connection,response) == FALSE) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Send RTSP Response"); } } } return TRUE; } /** Create listening socket and add it to pollset */ static apt_bool_t rtsp_server_listening_socket_create(rtsp_server_t *server) { apr_status_t status; if(!server->sockaddr) { return FALSE; } /* create listening socket */ status = apr_socket_create(&server->listen_sock, server->sockaddr->family, SOCK_STREAM, APR_PROTO_TCP, server->pool); if(status != APR_SUCCESS) { return FALSE; } apr_socket_opt_set(server->listen_sock, APR_SO_NONBLOCK, 0); apr_socket_timeout_set(server->listen_sock, -1); apr_socket_opt_set(server->listen_sock, APR_SO_REUSEADDR, 1); status = apr_socket_bind(server->listen_sock, server->sockaddr); if(status != APR_SUCCESS) { apr_socket_close(server->listen_sock); server->listen_sock = NULL; return FALSE; } status = apr_socket_listen(server->listen_sock, SOMAXCONN); if(status != APR_SUCCESS) { apr_socket_close(server->listen_sock); server->listen_sock = NULL; return FALSE; } /* add listening socket to pollset */ memset(&server->listen_sock_pfd,0,sizeof(apr_pollfd_t)); server->listen_sock_pfd.desc_type = APR_POLL_SOCKET; server->listen_sock_pfd.reqevents = APR_POLLIN; server->listen_sock_pfd.desc.s = server->listen_sock; server->listen_sock_pfd.client_data = server->listen_sock; if(apt_poller_task_descriptor_add(server->task, &server->listen_sock_pfd) != TRUE) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Add RTSP Listening Socket to Pollset"); apr_socket_close(server->listen_sock); server->listen_sock = NULL; return FALSE; } return TRUE; } /** Remove from pollset and destroy listening socket */ static void rtsp_server_listening_socket_destroy(rtsp_server_t *server) { if(server->listen_sock) { apt_poller_task_descriptor_remove(server->task,&server->listen_sock_pfd); apr_socket_close(server->listen_sock); server->listen_sock = NULL; } } /* Accept RTSP connection */ static apt_bool_t rtsp_server_connection_accept(rtsp_server_t *server) { rtsp_server_connection_t *rtsp_connection; char *local_ip = NULL; char *remote_ip = NULL; apr_sockaddr_t *l_sockaddr = NULL; apr_sockaddr_t *r_sockaddr = NULL; apr_pool_t *pool = apt_pool_create(); if(!pool) { return FALSE; } rtsp_connection = apr_palloc(pool,sizeof(rtsp_server_connection_t)); rtsp_connection->pool = pool; rtsp_connection->sock = NULL; rtsp_connection->client_ip = NULL; APR_RING_ELEM_INIT(rtsp_connection,link); if(apr_socket_accept(&rtsp_connection->sock,server->listen_sock,rtsp_connection->pool) != APR_SUCCESS) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Accept RTSP Connection"); apr_pool_destroy(pool); return FALSE; } if(apr_socket_addr_get(&l_sockaddr,APR_LOCAL,rtsp_connection->sock) != APR_SUCCESS || apr_socket_addr_get(&r_sockaddr,APR_REMOTE,rtsp_connection->sock) != APR_SUCCESS) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Get RTSP Socket Address"); apr_pool_destroy(pool); return FALSE; } apr_sockaddr_ip_get(&local_ip,l_sockaddr); apr_sockaddr_ip_get(&remote_ip,r_sockaddr); rtsp_connection->client_ip = remote_ip; rtsp_connection->id = apr_psprintf(pool,"%s:%hu <-> %s:%hu", local_ip,l_sockaddr->port, remote_ip,r_sockaddr->port); memset(&rtsp_connection->sock_pfd,0,sizeof(apr_pollfd_t)); rtsp_connection->sock_pfd.desc_type = APR_POLL_SOCKET; rtsp_connection->sock_pfd.reqevents = APR_POLLIN; rtsp_connection->sock_pfd.desc.s = rtsp_connection->sock; rtsp_connection->sock_pfd.client_data = rtsp_connection; if(apt_poller_task_descriptor_add(server->task,&rtsp_connection->sock_pfd) != TRUE) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"Failed to Add to Pollset %s",rtsp_connection->id); apr_socket_close(rtsp_connection->sock); apr_pool_destroy(pool); return FALSE; } apt_log(RTSP_LOG_MARK,APT_PRIO_NOTICE,"Accepted RTSP Connection %s",rtsp_connection->id); rtsp_connection->session_table = apr_hash_make(rtsp_connection->pool); apt_text_stream_init(&rtsp_connection->rx_stream,rtsp_connection->rx_buffer,sizeof(rtsp_connection->rx_buffer)-1); apt_text_stream_init(&rtsp_connection->tx_stream,rtsp_connection->tx_buffer,sizeof(rtsp_connection->tx_buffer)-1); rtsp_connection->parser = rtsp_parser_create(rtsp_connection->pool); rtsp_connection->generator = rtsp_generator_create(rtsp_connection->pool); rtsp_connection->server = server; rtsp_connection->inactivity_timer = NULL; if(server->inactivity_timeout) { rtsp_connection->inactivity_timer = apt_poller_task_timer_create( server->task, rtsp_server_inactivity_timer_proc, rtsp_connection, rtsp_connection->pool); } APR_RING_INSERT_TAIL(&server->connection_list,rtsp_connection,rtsp_server_connection_t,link); if(rtsp_connection->inactivity_timer) { apt_timer_set(rtsp_connection->inactivity_timer,server->inactivity_timeout); } return TRUE; } /** Close connection */ static apt_bool_t rtsp_server_connection_close(rtsp_server_t *server, rtsp_server_connection_t *rtsp_connection) { apr_size_t remaining_sessions = 0; if(!rtsp_connection || !rtsp_connection->sock) { return FALSE; } apt_log(RTSP_LOG_MARK,APT_PRIO_INFO,"Close RTSP Connection %s",rtsp_connection->id); apt_poller_task_descriptor_remove(server->task,&rtsp_connection->sock_pfd); apr_socket_close(rtsp_connection->sock); rtsp_connection->sock = NULL; if(rtsp_connection->inactivity_timer) { apt_timer_kill(rtsp_connection->inactivity_timer); } APR_RING_REMOVE(rtsp_connection,link); remaining_sessions = apr_hash_count(rtsp_connection->session_table); if(remaining_sessions) { rtsp_server_session_t *session; void *val; apr_hash_index_t *it; apt_log(RTSP_LOG_MARK,APT_PRIO_NOTICE,"Terminate Remaining RTSP Sessions [%"APR_SIZE_T_FMT"]", remaining_sessions); it = apr_hash_first(rtsp_connection->pool,rtsp_connection->session_table); for(; it; it = apr_hash_next(it)) { apr_hash_this(it,NULL,NULL,&val); session = val; if(session) { rtsp_server_session_terminate_request(server,session); } } } else { rtsp_server_connection_destroy(rtsp_connection); } return TRUE; } /* Timer callback */ static void rtsp_server_inactivity_timer_proc(apt_timer_t *timer, void *obj) { rtsp_server_connection_t *rtsp_connection = obj; if(!rtsp_connection) return; if(rtsp_connection->inactivity_timer == timer) { apt_log(RTSP_LOG_MARK,APT_PRIO_WARNING,"RTSP Connection Timed Out %s",rtsp_connection->id); rtsp_server_connection_close(rtsp_connection->server,rtsp_connection); } } /* Receive RTSP message through RTSP connection */ static apt_bool_t rtsp_server_poller_signal_process(void *obj, const apr_pollfd_t *descriptor) { rtsp_server_t *server = obj; rtsp_server_connection_t *rtsp_connection = descriptor->client_data; apr_status_t status; apr_size_t offset; apr_size_t length; apt_text_stream_t *stream; rtsp_message_t *message; apt_message_status_e msg_status; if(descriptor->desc.s == server->listen_sock) { return rtsp_server_connection_accept(server); } if(!rtsp_connection || !rtsp_connection->sock) { return FALSE; } stream = &rtsp_connection->rx_stream; /* calculate offset remaining from the previous receive / if any */ offset = stream->pos - stream->text.buf; /* calculate available length */ length = sizeof(rtsp_connection->rx_buffer) - 1 - offset; status = apr_socket_recv(rtsp_connection->sock,stream->pos,&length); if(status == APR_EOF || length == 0) { apt_log(RTSP_LOG_MARK,APT_PRIO_INFO,"RTSP Peer Disconnected %s",rtsp_connection->id); return rtsp_server_connection_close(server,rtsp_connection); } /* calculate actual length of the stream */ stream->text.length = offset + length; stream->pos[length] = '\0'; apt_log(RTSP_LOG_MARK,APT_PRIO_INFO,"Receive RTSP Data %s [%"APR_SIZE_T_FMT" bytes]\n%s", rtsp_connection->id, length, stream->pos); /* reset pos */ apt_text_stream_reset(stream); do { msg_status = rtsp_parser_run(rtsp_connection->parser,stream,&message); rtsp_server_message_handler(rtsp_connection,message,msg_status); } while(apt_text_is_eos(stream) == FALSE); /* scroll remaining stream */ apt_text_stream_scroll(stream); return TRUE; } static void rtsp_server_on_offline(apt_task_t *task) { apt_poller_task_t *poller_task = apt_task_object_get(task); rtsp_server_t *server = apt_poller_task_object_get(poller_task); server->online = FALSE; } static void rtsp_server_on_online(apt_task_t *task) { apt_poller_task_t *poller_task = apt_task_object_get(task); rtsp_server_t *server = apt_poller_task_object_get(poller_task); server->online = TRUE; } /* Process task message */ static apt_bool_t rtsp_server_task_msg_process(apt_task_t *task, apt_task_msg_t *task_msg) { apt_poller_task_t *poller_task = apt_task_object_get(task); rtsp_server_t *server = apt_poller_task_object_get(poller_task); task_msg_data_t *data = (task_msg_data_t*) task_msg->data; switch(data->type) { case TASK_MSG_SEND_MESSAGE: rtsp_server_session_response_process(server,data->session,data->message); break; case TASK_MSG_TERMINATE_SESSION: rtsp_server_session_do_terminate(server,data->session); break; case TASK_MSG_RELEASE_SESSION: rtsp_server_session_do_release(server,data->session); break; } return TRUE; }
unispeech/unimrcp
libs/uni-rtsp/src/rtsp_server.c
C
apache-2.0
32,441
define(function (require) { var SymbolDraw = require('../helper/SymbolDraw'); var LargeSymbolDraw = require('../helper/LargeSymbolDraw'); require('../../echarts').extendChartView({ type: 'scatter', init: function () { this._normalSymbolDraw = new SymbolDraw(); this._largeSymbolDraw = new LargeSymbolDraw(); }, render: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var largeSymbolDraw = this._largeSymbolDraw; var normalSymbolDraw = this._normalSymbolDraw; var group = this.group; var symbolDraw = seriesModel.get('large') && data.count() > seriesModel.get('largeThreshold') ? largeSymbolDraw : normalSymbolDraw; this._symbolDraw = symbolDraw; symbolDraw.updateData(data); group.add(symbolDraw.group); group.remove( symbolDraw === largeSymbolDraw ? normalSymbolDraw.group : largeSymbolDraw.group ); }, updateLayout: function (seriesModel) { this._symbolDraw.updateLayout(seriesModel); }, remove: function (ecModel, api) { this._symbolDraw && this._symbolDraw.remove(api, true); } }); });
aholake/hiringviet
src/main/webapp/resources/vendors/echarts/src/chart/scatter/ScatterView.js
JavaScript
apache-2.0
1,369
# first-try cnm stemulus deep dive coders prework
mturner27/first-try
README.md
Markdown
apache-2.0
50
/** * @author fanguozhu */ $(function() { var tab = new TabPanel("tab",true); var f_tree = new Fieldset("f_tree","公司列表",{ state: Fieldset.OPEN_STATE, topdown: false }); var mytree = new PorTreeT("tree", "-1", "手机公司",{isDefaultClick:0} ); var dw = new DataWrapper(); dw.service("PRtree"); mytree.dataWrapper(dw); tab.dataWrapper(dw); tab.addChangeObserver(function(src, msg){ var dw = this.dataWrapper(); if (!dw) return; var label = msg.data.label; var name = msg.data.name; for (var i=1;i<=3;i++) { if (label) { this.setTitle(i,"["+name+"]公司产品["+i+"]"); } else { this.setTitle(i,"全部公司产品["+i+"]"); } } },PorMessage.MSG_TREE_ONCLICK); var dw1 = new DataWrapper(); dw1.service("PR02"); var dw2 = new DataWrapper(); dw2.service("PR02"); var dw3 = new DataWrapper(); dw3.service("PR02"); var dg1 = new DataGrid("grid_1",{autoDraw:true,readonly:true}); dg1.dataWrapper(dw1); var dg2 = new DataGrid("grid_2",{autoDraw:true,readonly:true}); dg2.dataWrapper(dw2); var dg3 = new DataGrid("grid_3",{autoDraw:true,readonly:true}); dg3.dataWrapper(dw3); var mapping = { master:["label"], sub:["company"] }; PorUtil.linkTreeAndGrid( dw,[{ sub:dw1, mapping:mapping, tabs:{ tab:[0,1] //配置在'tab'的第1个tab页需要加载 } },{ sub:dw2, mapping:mapping, tabs:{ tab:[2] //配置在'tab'的第2个tab页需要加载 } },{ sub:dw3, mapping:mapping, tabs:{ tab:[3] //配置在'tab'的第3个tab页需要加载 } }]); mytree.init(); });
stserp/erp1
source/web/por2/demo/Demo/TreeTabDemo.js
JavaScript
apache-2.0
1,666
/* * Core Utils - Common Utilities. * Copyright 2015-2016 GRyCAP (Universitat Politecnica de Valencia) * * 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. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. */ package es.upv.grycap.coreutils.common; import com.google.common.collect.Range; /** * Hard-coded configuration limits. * @author Erik Torres * @since 0.2.0 */ public interface CoreutilsLimits { public static final int NUM_AVAILABLE_PROCESSORS = Runtime.getRuntime().availableProcessors(); public static final Range<Long> TRY_LOCK_TIMEOUT_RANGE = Range.closed(1l, 2000l); public static final Range<Integer> MAX_POOL_SIZE_RANGE = Range.closed(Math.min(2, NUM_AVAILABLE_PROCESSORS), Math.max(128, NUM_AVAILABLE_PROCESSORS)); public static final Range<Long> KEEP_ALIVE_TIME_RANGE = Range.closed(60000l, 3600000l); public static final Range<Long> WAIT_TERMINATION_TIMEOUT_RANGE = Range.closed(1000l, 60000l); }
grycap/coreutils
coreutils-common/src/main/java/es/upv/grycap/coreutils/common/CoreutilsLimits.java
Java
apache-2.0
1,687
# Papillomembrana N. Spjeldnaes, 1963 GENUS #### Status ACCEPTED #### According to Interim Register of Marine and Nonmarine Genera #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Chlorophyta/Ulvophyceae/Dasycladales/Seletonellaceae/Papillomembrana/README.md
Markdown
apache-2.0
199
/* * Copyright (c) 2016 Ni YueMing<[email protected]> * 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 net.nym.napply.library.cookie.store; /** * Created by zhy on 16/3/10. */ public interface HasCookieStore { CookieStore getCookieStore(); }
niyueming/NApply
library/src/main/java/net/nym/napply/library/cookie/store/HasCookieStore.java
Java
apache-2.0
754
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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.amazonaws.services.kinesisfirehose.model.transform; import java.math.*; import javax.annotation.Generated; import com.amazonaws.services.kinesisfirehose.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static com.fasterxml.jackson.core.JsonToken.*; /** * ProcessingConfiguration JSON Unmarshaller */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProcessingConfigurationJsonUnmarshaller implements Unmarshaller<ProcessingConfiguration, JsonUnmarshallerContext> { public ProcessingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { ProcessingConfiguration processingConfiguration = new ProcessingConfiguration(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("Enabled", targetDepth)) { context.nextToken(); processingConfiguration.setEnabled(context.getUnmarshaller(Boolean.class).unmarshall(context)); } if (context.testExpression("Processors", targetDepth)) { context.nextToken(); processingConfiguration.setProcessors(new ListUnmarshaller<Processor>(ProcessorJsonUnmarshaller.getInstance()).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return processingConfiguration; } private static ProcessingConfigurationJsonUnmarshaller instance; public static ProcessingConfigurationJsonUnmarshaller getInstance() { if (instance == null) instance = new ProcessingConfigurationJsonUnmarshaller(); return instance; } }
dagnir/aws-sdk-java
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/transform/ProcessingConfigurationJsonUnmarshaller.java
Java
apache-2.0
3,132
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** * REST callable factory implementation for the Routes service API. * * <p>This class is for advanced usage. */ @Generated("by gapic-generator-java") @BetaApi public class HttpJsonRoutesCallableFactory implements HttpJsonStubCallableFactory<Operation, GlobalOperationsStub> { @Override public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable( HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings, UnaryCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext) { return HttpJsonCallableFactory.createUnaryCallable( httpJsonCallSettings, callSettings, clientContext); } @Override public <RequestT, ResponseT, PagedListResponseT> UnaryCallable<RequestT, PagedListResponseT> createPagedCallable( HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings, PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings, ClientContext clientContext) { return HttpJsonCallableFactory.createPagedCallable( httpJsonCallSettings, callSettings, clientContext); } @Override public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable( HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings, BatchingCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext) { return HttpJsonCallableFactory.createBatchingCallable( httpJsonCallSettings, callSettings, clientContext); } @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") @Override public <RequestT, ResponseT, MetadataT> OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable( HttpJsonCallSettings<RequestT, Operation> httpJsonCallSettings, OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings, ClientContext clientContext, GlobalOperationsStub operationsStub) { UnaryCallable<RequestT, Operation> innerCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); HttpJsonOperationSnapshotCallable<RequestT, Operation> initialCallable = new HttpJsonOperationSnapshotCallable<RequestT, Operation>( innerCallable, httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); return HttpJsonCallableFactory.createOperationCallable( callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); } @Override public <RequestT, ResponseT> ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable( HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings, ServerStreamingCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext) { return HttpJsonCallableFactory.createServerStreamingCallable( httpJsonCallSettings, callSettings, clientContext); } }
googleapis/java-compute
google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRoutesCallableFactory.java
Java
apache-2.0
4,575
/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ html { font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } body { margin: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } audio, canvas, progress, video { display: inline-block; vertical-align: baseline; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } a { background-color: transparent; } a:active, a:hover { outline: 0; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } h1 { font-size: 2em; margin: 0.67em 0; } mark { background: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 1em 40px; } hr { box-sizing: content-box; height: 0; } pre { overflow: auto; } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; } button { overflow: visible; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input { line-height: normal; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } input[type="search"] { -webkit-appearance: textfield; box-sizing: content-box; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { border: 0; padding: 0; } textarea { overflow: auto; } optgroup { font-weight: bold; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ @media print { *, *:before, *:after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table td, .table th { background-color: #fff !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } @font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .glyphicon-asterisk:before { content: "\002a"; } .glyphicon-plus:before { content: "\002b"; } .glyphicon-euro:before, .glyphicon-eur:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .glyphicon-star-empty:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .glyphicon-download-alt:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .glyphicon-play-circle:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-lock:before { content: "\e033"; } .glyphicon-flag:before { content: "\e034"; } .glyphicon-headphones:before { content: "\e035"; } .glyphicon-volume-off:before { content: "\e036"; } .glyphicon-volume-down:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-bookmark:before { content: "\e044"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-camera:before { content: "\e046"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .glyphicon-text-height:before { content: "\e050"; } .glyphicon-text-width:before { content: "\e051"; } .glyphicon-align-left:before { content: "\e052"; } .glyphicon-align-center:before { content: "\e053"; } .glyphicon-align-right:before { content: "\e054"; } .glyphicon-align-justify:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .glyphicon-indent-left:before { content: "\e057"; } .glyphicon-indent-right:before { content: "\e058"; } .glyphicon-facetime-video:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .glyphicon-map-marker:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .glyphicon-step-backward:before { content: "\e069"; } .glyphicon-fast-backward:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .glyphicon-fast-forward:before { content: "\e076"; } .glyphicon-step-forward:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .glyphicon-chevron-left:before { content: "\e079"; } .glyphicon-chevron-right:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .glyphicon-minus-sign:before { content: "\e082"; } .glyphicon-remove-sign:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .glyphicon-question-sign:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .glyphicon-screenshot:before { content: "\e087"; } .glyphicon-remove-circle:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .glyphicon-ban-circle:before { content: "\e090"; } .glyphicon-arrow-left:before { content: "\e091"; } .glyphicon-arrow-right:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .glyphicon-arrow-down:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .glyphicon-resize-full:before { content: "\e096"; } .glyphicon-resize-small:before { content: "\e097"; } .glyphicon-exclamation-sign:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-fire:before { content: "\e104"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .glyphicon-warning-sign:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-calendar:before { content: "\e109"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .glyphicon-chevron-up:before { content: "\e113"; } .glyphicon-chevron-down:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .glyphicon-shopping-cart:before { content: "\e116"; } .glyphicon-folder-close:before { content: "\e117"; } .glyphicon-folder-open:before { content: "\e118"; } .glyphicon-resize-vertical:before { content: "\e119"; } .glyphicon-resize-horizontal:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-bell:before { content: "\e123"; } .glyphicon-certificate:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .glyphicon-thumbs-down:before { content: "\e126"; } .glyphicon-hand-right:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .glyphicon-circle-arrow-right:before { content: "\e131"; } .glyphicon-circle-arrow-left:before { content: "\e132"; } .glyphicon-circle-arrow-up:before { content: "\e133"; } .glyphicon-circle-arrow-down:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-wrench:before { content: "\e136"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-briefcase:before { content: "\e139"; } .glyphicon-fullscreen:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-paperclip:before { content: "\e142"; } .glyphicon-heart-empty:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-pushpin:before { content: "\e146"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .glyphicon-sort-by-alphabet:before { content: "\e151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\e152"; } .glyphicon-sort-by-order:before { content: "\e153"; } .glyphicon-sort-by-order-alt:before { content: "\e154"; } .glyphicon-sort-by-attributes:before { content: "\e155"; } .glyphicon-sort-by-attributes-alt:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .glyphicon-collapse-down:before { content: "\e159"; } .glyphicon-collapse-up:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .glyphicon-new-window:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .glyphicon-floppy-disk:before { content: "\e172"; } .glyphicon-floppy-saved:before { content: "\e173"; } .glyphicon-floppy-remove:before { content: "\e174"; } .glyphicon-floppy-save:before { content: "\e175"; } .glyphicon-floppy-open:before { content: "\e176"; } .glyphicon-credit-card:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .glyphicon-compressed:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .glyphicon-sound-stereo:before { content: "\e189"; } .glyphicon-sound-dolby:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .glyphicon-copyright-mark:before { content: "\e194"; } .glyphicon-registration-mark:before { content: "\e195"; } .glyphicon-cloud-download:before { content: "\e197"; } .glyphicon-cloud-upload:before { content: "\e198"; } .glyphicon-tree-conifer:before { content: "\e199"; } .glyphicon-tree-deciduous:before { content: "\e200"; } .glyphicon-cd:before { content: "\e201"; } .glyphicon-save-file:before { content: "\e202"; } .glyphicon-open-file:before { content: "\e203"; } .glyphicon-level-up:before { content: "\e204"; } .glyphicon-copy:before { content: "\e205"; } .glyphicon-paste:before { content: "\e206"; } .glyphicon-alert:before { content: "\e209"; } .glyphicon-equalizer:before { content: "\e210"; } .glyphicon-king:before { content: "\e211"; } .glyphicon-queen:before { content: "\e212"; } .glyphicon-pawn:before { content: "\e213"; } .glyphicon-bishop:before { content: "\e214"; } .glyphicon-knight:before { content: "\e215"; } .glyphicon-baby-formula:before { content: "\e216"; } .glyphicon-tent:before { content: "\26fa"; } .glyphicon-blackboard:before { content: "\e218"; } .glyphicon-bed:before { content: "\e219"; } .glyphicon-apple:before { content: "\f8ff"; } .glyphicon-erase:before { content: "\e221"; } .glyphicon-hourglass:before { content: "\231b"; } .glyphicon-lamp:before { content: "\e223"; } .glyphicon-duplicate:before { content: "\e224"; } .glyphicon-piggy-bank:before { content: "\e225"; } .glyphicon-scissors:before { content: "\e226"; } .glyphicon-bitcoin:before { content: "\e227"; } .glyphicon-btc:before { content: "\e227"; } .glyphicon-xbt:before { content: "\e227"; } .glyphicon-yen:before { content: "\00a5"; } .glyphicon-jpy:before { content: "\00a5"; } .glyphicon-ruble:before { content: "\20bd"; } .glyphicon-rub:before { content: "\20bd"; } .glyphicon-scale:before { content: "\e230"; } .glyphicon-ice-lolly:before { content: "\e231"; } .glyphicon-ice-lolly-tasted:before { content: "\e232"; } .glyphicon-education:before { content: "\e233"; } .glyphicon-option-horizontal:before { content: "\e234"; } .glyphicon-option-vertical:before { content: "\e235"; } .glyphicon-menu-hamburger:before { content: "\e236"; } .glyphicon-modal-window:before { content: "\e237"; } .glyphicon-oil:before { content: "\e238"; } .glyphicon-grain:before { content: "\e239"; } .glyphicon-sunglasses:before { content: "\e240"; } .glyphicon-text-size:before { content: "\e241"; } .glyphicon-text-color:before { content: "\e242"; } .glyphicon-text-background:before { content: "\e243"; } .glyphicon-object-align-top:before { content: "\e244"; } .glyphicon-object-align-bottom:before { content: "\e245"; } .glyphicon-object-align-horizontal:before { content: "\e246"; } .glyphicon-object-align-left:before { content: "\e247"; } .glyphicon-object-align-vertical:before { content: "\e248"; } .glyphicon-object-align-right:before { content: "\e249"; } .glyphicon-triangle-right:before { content: "\e250"; } .glyphicon-triangle-left:before { content: "\e251"; } .glyphicon-triangle-bottom:before { content: "\e252"; } .glyphicon-triangle-top:before { content: "\e253"; } .glyphicon-console:before { content: "\e254"; } .glyphicon-superscript:before { content: "\e255"; } .glyphicon-subscript:before { content: "\e256"; } .glyphicon-menu-left:before { content: "\e257"; } .glyphicon-menu-right:before { content: "\e258"; } .glyphicon-menu-down:before { content: "\e259"; } .glyphicon-menu-up:before { content: "\e260"; } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 10px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857143; color: #333333; background-color: #ffffff; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #337ab7; text-decoration: none; } a:hover, a:focus { color: #23527c; text-decoration: underline; } a:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 6px; } .img-thumbnail { padding: 4px; line-height: 1.42857143; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; max-width: 100%; height: auto; } .img-circle { border-radius: 50%; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eeeeee; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; } [role="button"] { cursor: pointer; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { font-weight: normal; line-height: 1; color: #777777; } h1, .h1, h2, .h2, h3, .h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { font-size: 65%; } h4, .h4, h5, .h5, h6, .h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { font-size: 75%; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small, .small { font-size: 85%; } mark, .mark { background-color: #fcf8e3; padding: .2em; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .text-nowrap { white-space: nowrap; } .text-lowercase { text-transform: lowercase; } .text-uppercase { text-transform: uppercase; } .text-capitalize { text-transform: capitalize; } .text-muted { color: #777777; } .text-primary { color: #337ab7; } a.text-primary:hover, a.text-primary:focus { color: #286090; } .text-success { color: #3c763d; } a.text-success:hover, a.text-success:focus { color: #2b542c; } .text-info { color: #31708f; } a.text-info:hover, a.text-info:focus { color: #245269; } .text-warning { color: #8a6d3b; } a.text-warning:hover, a.text-warning:focus { color: #66512c; } .text-danger { color: #a94442; } a.text-danger:hover, a.text-danger:focus { color: #843534; } .bg-primary { color: #fff; background-color: #337ab7; } a.bg-primary:hover, a.bg-primary:focus { background-color: #286090; } .bg-success { background-color: #dff0d8; } a.bg-success:hover, a.bg-success:focus { background-color: #c1e2b3; } .bg-info { background-color: #d9edf7; } a.bg-info:hover, a.bg-info:focus { background-color: #afd9ee; } .bg-warning { background-color: #fcf8e3; } a.bg-warning:hover, a.bg-warning:focus { background-color: #f7ecb5; } .bg-danger { background-color: #f2dede; } a.bg-danger:hover, a.bg-danger:focus { background-color: #e4b9b9; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; margin-left: -5px; } .list-inline > li { display: inline-block; padding-left: 5px; padding-right: 5px; } dl { margin-top: 0; margin-bottom: 20px; } dt, dd { line-height: 1.42857143; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; clear: left; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #777777; } .initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eeeeee; } blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; } blockquote footer, blockquote small, blockquote .small { display: block; font-size: 80%; line-height: 1.42857143; color: #777777; } blockquote footer:before, blockquote small:before, blockquote .small:before { content: '\2014 \00A0'; } .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; text-align: right; } .blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { content: ''; } .blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } address { margin-bottom: 20px; font-style: normal; line-height: 1.42857143; } code, kbd, pre, samp { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; background-color: #f9f2f4; border-radius: 4px; } kbd { padding: 2px 4px; font-size: 90%; color: #ffffff; background-color: #333333; border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); } kbd kbd { padding: 0; font-size: 100%; font-weight: bold; box-shadow: none; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: #333333; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } @media (min-width: 768px) { .container { width: 750px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: 1200px) { .container { width: 1170px; } } .container-fluid { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } .row { margin-left: -15px; margin-right: -15px; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; } .col-xs-12 { width: 100%; } .col-xs-11 { width: 91.66666667%; } .col-xs-10 { width: 83.33333333%; } .col-xs-9 { width: 75%; } .col-xs-8 { width: 66.66666667%; } .col-xs-7 { width: 58.33333333%; } .col-xs-6 { width: 50%; } .col-xs-5 { width: 41.66666667%; } .col-xs-4 { width: 33.33333333%; } .col-xs-3 { width: 25%; } .col-xs-2 { width: 16.66666667%; } .col-xs-1 { width: 8.33333333%; } .col-xs-pull-12 { right: 100%; } .col-xs-pull-11 { right: 91.66666667%; } .col-xs-pull-10 { right: 83.33333333%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-8 { right: 66.66666667%; } .col-xs-pull-7 { right: 58.33333333%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-5 { right: 41.66666667%; } .col-xs-pull-4 { right: 33.33333333%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-2 { right: 16.66666667%; } .col-xs-pull-1 { right: 8.33333333%; } .col-xs-pull-0 { right: auto; } .col-xs-push-12 { left: 100%; } .col-xs-push-11 { left: 91.66666667%; } .col-xs-push-10 { left: 83.33333333%; } .col-xs-push-9 { left: 75%; } .col-xs-push-8 { left: 66.66666667%; } .col-xs-push-7 { left: 58.33333333%; } .col-xs-push-6 { left: 50%; } .col-xs-push-5 { left: 41.66666667%; } .col-xs-push-4 { left: 33.33333333%; } .col-xs-push-3 { left: 25%; } .col-xs-push-2 { left: 16.66666667%; } .col-xs-push-1 { left: 8.33333333%; } .col-xs-push-0 { left: auto; } .col-xs-offset-12 { margin-left: 100%; } .col-xs-offset-11 { margin-left: 91.66666667%; } .col-xs-offset-10 { margin-left: 83.33333333%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-8 { margin-left: 66.66666667%; } .col-xs-offset-7 { margin-left: 58.33333333%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-5 { margin-left: 41.66666667%; } .col-xs-offset-4 { margin-left: 33.33333333%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-2 { margin-left: 16.66666667%; } .col-xs-offset-1 { margin-left: 8.33333333%; } .col-xs-offset-0 { margin-left: 0%; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-12 { width: 100%; } .col-sm-11 { width: 91.66666667%; } .col-sm-10 { width: 83.33333333%; } .col-sm-9 { width: 75%; } .col-sm-8 { width: 66.66666667%; } .col-sm-7 { width: 58.33333333%; } .col-sm-6 { width: 50%; } .col-sm-5 { width: 41.66666667%; } .col-sm-4 { width: 33.33333333%; } .col-sm-3 { width: 25%; } .col-sm-2 { width: 16.66666667%; } .col-sm-1 { width: 8.33333333%; } .col-sm-pull-12 { right: 100%; } .col-sm-pull-11 { right: 91.66666667%; } .col-sm-pull-10 { right: 83.33333333%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-8 { right: 66.66666667%; } .col-sm-pull-7 { right: 58.33333333%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-5 { right: 41.66666667%; } .col-sm-pull-4 { right: 33.33333333%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-2 { right: 16.66666667%; } .col-sm-pull-1 { right: 8.33333333%; } .col-sm-pull-0 { right: auto; } .col-sm-push-12 { left: 100%; } .col-sm-push-11 { left: 91.66666667%; } .col-sm-push-10 { left: 83.33333333%; } .col-sm-push-9 { left: 75%; } .col-sm-push-8 { left: 66.66666667%; } .col-sm-push-7 { left: 58.33333333%; } .col-sm-push-6 { left: 50%; } .col-sm-push-5 { left: 41.66666667%; } .col-sm-push-4 { left: 33.33333333%; } .col-sm-push-3 { left: 25%; } .col-sm-push-2 { left: 16.66666667%; } .col-sm-push-1 { left: 8.33333333%; } .col-sm-push-0 { left: auto; } .col-sm-offset-12 { margin-left: 100%; } .col-sm-offset-11 { margin-left: 91.66666667%; } .col-sm-offset-10 { margin-left: 83.33333333%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-8 { margin-left: 66.66666667%; } .col-sm-offset-7 { margin-left: 58.33333333%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-5 { margin-left: 41.66666667%; } .col-sm-offset-4 { margin-left: 33.33333333%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-1 { margin-left: 8.33333333%; } .col-sm-offset-0 { margin-left: 0%; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } .col-md-12 { width: 100%; } .col-md-11 { width: 91.66666667%; } .col-md-10 { width: 83.33333333%; } .col-md-9 { width: 75%; } .col-md-8 { width: 66.66666667%; } .col-md-7 { width: 58.33333333%; } .col-md-6 { width: 50%; } .col-md-5 { width: 41.66666667%; } .col-md-4 { width: 33.33333333%; } .col-md-3 { width: 25%; } .col-md-2 { width: 16.66666667%; } .col-md-1 { width: 8.33333333%; } .col-md-pull-12 { right: 100%; } .col-md-pull-11 { right: 91.66666667%; } .col-md-pull-10 { right: 83.33333333%; } .col-md-pull-9 { right: 75%; } .col-md-pull-8 { right: 66.66666667%; } .col-md-pull-7 { right: 58.33333333%; } .col-md-pull-6 { right: 50%; } .col-md-pull-5 { right: 41.66666667%; } .col-md-pull-4 { right: 33.33333333%; } .col-md-pull-3 { right: 25%; } .col-md-pull-2 { right: 16.66666667%; } .col-md-pull-1 { right: 8.33333333%; } .col-md-pull-0 { right: auto; } .col-md-push-12 { left: 100%; } .col-md-push-11 { left: 91.66666667%; } .col-md-push-10 { left: 83.33333333%; } .col-md-push-9 { left: 75%; } .col-md-push-8 { left: 66.66666667%; } .col-md-push-7 { left: 58.33333333%; } .col-md-push-6 { left: 50%; } .col-md-push-5 { left: 41.66666667%; } .col-md-push-4 { left: 33.33333333%; } .col-md-push-3 { left: 25%; } .col-md-push-2 { left: 16.66666667%; } .col-md-push-1 { left: 8.33333333%; } .col-md-push-0 { left: auto; } .col-md-offset-12 { margin-left: 100%; } .col-md-offset-11 { margin-left: 91.66666667%; } .col-md-offset-10 { margin-left: 83.33333333%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-8 { margin-left: 66.66666667%; } .col-md-offset-7 { margin-left: 58.33333333%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-5 { margin-left: 41.66666667%; } .col-md-offset-4 { margin-left: 33.33333333%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-0 { margin-left: 0%; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-12 { width: 100%; } .col-lg-11 { width: 91.66666667%; } .col-lg-10 { width: 83.33333333%; } .col-lg-9 { width: 75%; } .col-lg-8 { width: 66.66666667%; } .col-lg-7 { width: 58.33333333%; } .col-lg-6 { width: 50%; } .col-lg-5 { width: 41.66666667%; } .col-lg-4 { width: 33.33333333%; } .col-lg-3 { width: 25%; } .col-lg-2 { width: 16.66666667%; } .col-lg-1 { width: 8.33333333%; } .col-lg-pull-12 { right: 100%; } .col-lg-pull-11 { right: 91.66666667%; } .col-lg-pull-10 { right: 83.33333333%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-8 { right: 66.66666667%; } .col-lg-pull-7 { right: 58.33333333%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-5 { right: 41.66666667%; } .col-lg-pull-4 { right: 33.33333333%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-2 { right: 16.66666667%; } .col-lg-pull-1 { right: 8.33333333%; } .col-lg-pull-0 { right: auto; } .col-lg-push-12 { left: 100%; } .col-lg-push-11 { left: 91.66666667%; } .col-lg-push-10 { left: 83.33333333%; } .col-lg-push-9 { left: 75%; } .col-lg-push-8 { left: 66.66666667%; } .col-lg-push-7 { left: 58.33333333%; } .col-lg-push-6 { left: 50%; } .col-lg-push-5 { left: 41.66666667%; } .col-lg-push-4 { left: 33.33333333%; } .col-lg-push-3 { left: 25%; } .col-lg-push-2 { left: 16.66666667%; } .col-lg-push-1 { left: 8.33333333%; } .col-lg-push-0 { left: auto; } .col-lg-offset-12 { margin-left: 100%; } .col-lg-offset-11 { margin-left: 91.66666667%; } .col-lg-offset-10 { margin-left: 83.33333333%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-8 { margin-left: 66.66666667%; } .col-lg-offset-7 { margin-left: 58.33333333%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-5 { margin-left: 41.66666667%; } .col-lg-offset-4 { margin-left: 33.33333333%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-2 { margin-left: 16.66666667%; } .col-lg-offset-1 { margin-left: 8.33333333%; } .col-lg-offset-0 { margin-left: 0%; } } table { background-color: transparent; } caption { padding-top: 8px; padding-bottom: 8px; color: #777777; text-align: left; } th { text-align: left; } .table { width: 100%; max-width: 100%; margin-bottom: 20px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #dddddd; } .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #dddddd; } .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; } .table > tbody + tbody { border-top: 2px solid #dddddd; } .table .table { background-color: #ffffff; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-of-type(odd) { background-color: #f9f9f9; } .table-hover > tbody > tr:hover { background-color: #f5f5f5; } table col[class*="col-"] { position: static; float: none; display: table-column; } table td[class*="col-"], table th[class*="col-"] { position: static; float: none; display: table-cell; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr:hover > .active, .table-hover > tbody > tr.active:hover > th { background-color: #e8e8e8; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr:hover > .success, .table-hover > tbody > tr.success:hover > th { background-color: #d0e9c6; } .table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th { background-color: #d9edf7; } .table-hover > tbody > tr > td.info:hover, .table-hover > tbody > tr > th.info:hover, .table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr:hover > .info, .table-hover > tbody > tr.info:hover > th { background-color: #c4e3f3; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr:hover > .warning, .table-hover > tbody > tr.warning:hover > th { background-color: #faf2cc; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th { background-color: #ebcccc; } .table-responsive { overflow-x: auto; min-height: 0.01%; } @media screen and (max-width: 767px) { .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; border: 1px solid #dddddd; } .table-responsive > .table { margin-bottom: 0; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { padding: 0; margin: 0; border: 0; min-width: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; line-height: normal; } input[type="file"] { display: block; } input[type="range"] { display: block; width: 100%; } select[multiple], select[size] { height: auto; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } output { display: block; padding-top: 7px; font-size: 14px; line-height: 1.42857143; color: #555555; } .form-control { display: block; width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555555; background-color: #ffffff; background-image: none; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); } .form-control::-moz-placeholder { color: #999999; opacity: 1; } .form-control:-ms-input-placeholder { color: #999999; } .form-control::-webkit-input-placeholder { color: #999999; } .form-control::-ms-expand { border: 0; background-color: transparent; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #eeeeee; opacity: 1; } .form-control[disabled], fieldset[disabled] .form-control { cursor: not-allowed; } textarea.form-control { height: auto; } input[type="search"] { -webkit-appearance: none; } @media screen and (-webkit-min-device-pixel-ratio: 0) { input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control { line-height: 34px; } input[type="date"].input-sm, input[type="time"].input-sm, input[type="datetime-local"].input-sm, input[type="month"].input-sm, .input-group-sm input[type="date"], .input-group-sm input[type="time"], .input-group-sm input[type="datetime-local"], .input-group-sm input[type="month"] { line-height: 30px; } input[type="date"].input-lg, input[type="time"].input-lg, input[type="datetime-local"].input-lg, input[type="month"].input-lg, .input-group-lg input[type="date"], .input-group-lg input[type="time"], .input-group-lg input[type="datetime-local"], .input-group-lg input[type="month"] { line-height: 46px; } } .form-group { margin-bottom: 15px; } .radio, .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; } .radio label, .checkbox label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { position: absolute; margin-left: -20px; margin-top: 4px \9; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { position: relative; display: inline-block; padding-left: 20px; margin-bottom: 0; vertical-align: middle; font-weight: normal; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"].disabled, input[type="checkbox"].disabled, fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"] { cursor: not-allowed; } .radio-inline.disabled, .checkbox-inline.disabled, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .radio.disabled label, .checkbox.disabled label, fieldset[disabled] .radio label, fieldset[disabled] .checkbox label { cursor: not-allowed; } .form-control-static { padding-top: 7px; padding-bottom: 7px; margin-bottom: 0; min-height: 34px; } .form-control-static.input-lg, .form-control-static.input-sm { padding-left: 0; padding-right: 0; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm, select[multiple].input-sm { height: auto; } .form-group-sm .form-control { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .form-group-sm select.form-control { height: 30px; line-height: 30px; } .form-group-sm textarea.form-control, .form-group-sm select[multiple].form-control { height: auto; } .form-group-sm .form-control-static { height: 30px; min-height: 32px; padding: 6px 10px; font-size: 12px; line-height: 1.5; } .input-lg { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } select.input-lg { height: 46px; line-height: 46px; } textarea.input-lg, select[multiple].input-lg { height: auto; } .form-group-lg .form-control { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } .form-group-lg select.form-control { height: 46px; line-height: 46px; } .form-group-lg textarea.form-control, .form-group-lg select[multiple].form-control { height: auto; } .form-group-lg .form-control-static { height: 46px; min-height: 38px; padding: 11px 16px; font-size: 18px; line-height: 1.3333333; } .has-feedback { position: relative; } .has-feedback .form-control { padding-right: 42.5px; } .form-control-feedback { position: absolute; top: 0; right: 0; z-index: 2; display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; pointer-events: none; } .input-lg + .form-control-feedback, .input-group-lg + .form-control-feedback, .form-group-lg .form-control + .form-control-feedback { width: 46px; height: 46px; line-height: 46px; } .input-sm + .form-control-feedback, .input-group-sm + .form-control-feedback, .form-group-sm .form-control + .form-control-feedback { width: 30px; height: 30px; line-height: 30px; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline, .has-success.radio label, .has-success.checkbox label, .has-success.radio-inline label, .has-success.checkbox-inline label { color: #3c763d; } .has-success .form-control { border-color: #3c763d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #2b542c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; } .has-success .input-group-addon { color: #3c763d; border-color: #3c763d; background-color: #dff0d8; } .has-success .form-control-feedback { color: #3c763d; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline, .has-warning.radio label, .has-warning.checkbox label, .has-warning.radio-inline label, .has-warning.checkbox-inline label { color: #8a6d3b; } .has-warning .form-control { border-color: #8a6d3b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #66512c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; } .has-warning .input-group-addon { color: #8a6d3b; border-color: #8a6d3b; background-color: #fcf8e3; } .has-warning .form-control-feedback { color: #8a6d3b; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label { color: #a94442; } .has-error .form-control { border-color: #a94442; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #843534; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; } .has-error .input-group-addon { color: #a94442; border-color: #a94442; background-color: #f2dede; } .has-error .form-control-feedback { color: #a94442; } .has-feedback label ~ .form-control-feedback { top: 25px; } .has-feedback label.sr-only ~ .form-control-feedback { top: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .form-control-static { display: inline-block; } .form-inline .input-group { display: inline-table; vertical-align: middle; } .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn, .form-inline .input-group .form-control { width: auto; } .form-inline .input-group > .form-control { width: 100%; } .form-inline .control-label { margin-bottom: 0; vertical-align: middle; } .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .form-inline .radio label, .form-inline .checkbox label { padding-left: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .form-inline .has-feedback .form-control-feedback { top: 0; } } .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { margin-top: 0; margin-bottom: 0; padding-top: 7px; } .form-horizontal .radio, .form-horizontal .checkbox { min-height: 27px; } .form-horizontal .form-group { margin-left: -15px; margin-right: -15px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; margin-bottom: 0; padding-top: 7px; } } .form-horizontal .has-feedback .form-control-feedback { right: 15px; } @media (min-width: 768px) { .form-horizontal .form-group-lg .control-label { padding-top: 11px; font-size: 18px; } } @media (min-width: 768px) { .form-horizontal .form-group-sm .control-label { padding-top: 6px; font-size: 12px; } } .btn { display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; touch-action: manipulation; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .btn:focus, .btn:active:focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn.active.focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus, .btn.focus { color: #333333; text-decoration: none; } .btn:active, .btn.active { outline: 0; background-image: none; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } a.btn.disabled, fieldset[disabled] a.btn { pointer-events: none; } .btn-default { color: #333333; background-color: #ffffff; border-color: #cccccc; } .btn-default:focus, .btn-default.focus { color: #333333; background-color: #e6e6e6; border-color: #8c8c8c; } .btn-default:hover { color: #333333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { color: #333333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active:hover, .btn-default.active:hover, .open > .dropdown-toggle.btn-default:hover, .btn-default:active:focus, .btn-default.active:focus, .open > .dropdown-toggle.btn-default:focus, .btn-default:active.focus, .btn-default.active.focus, .open > .dropdown-toggle.btn-default.focus { color: #333333; background-color: #d4d4d4; border-color: #8c8c8c; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled.focus, .btn-default[disabled].focus, fieldset[disabled] .btn-default.focus { background-color: #ffffff; border-color: #cccccc; } .btn-default .badge { color: #ffffff; background-color: #333333; } .btn-primary { color: #ffffff; background-color: #337ab7; border-color: #2e6da4; } .btn-primary:focus, .btn-primary.focus { color: #ffffff; background-color: #286090; border-color: #122b40; } .btn-primary:hover { color: #ffffff; background-color: #286090; border-color: #204d74; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { color: #ffffff; background-color: #286090; border-color: #204d74; } .btn-primary:active:hover, .btn-primary.active:hover, .open > .dropdown-toggle.btn-primary:hover, .btn-primary:active:focus, .btn-primary.active:focus, .open > .dropdown-toggle.btn-primary:focus, .btn-primary:active.focus, .btn-primary.active.focus, .open > .dropdown-toggle.btn-primary.focus { color: #ffffff; background-color: #204d74; border-color: #122b40; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled.focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary.focus { background-color: #337ab7; border-color: #2e6da4; } .btn-primary .badge { color: #337ab7; background-color: #ffffff; } .btn-success { color: #ffffff; background-color: #5cb85c; border-color: #4cae4c; } .btn-success:focus, .btn-success.focus { color: #ffffff; background-color: #449d44; border-color: #255625; } .btn-success:hover { color: #ffffff; background-color: #449d44; border-color: #398439; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { color: #ffffff; background-color: #449d44; border-color: #398439; } .btn-success:active:hover, .btn-success.active:hover, .open > .dropdown-toggle.btn-success:hover, .btn-success:active:focus, .btn-success.active:focus, .open > .dropdown-toggle.btn-success:focus, .btn-success:active.focus, .btn-success.active.focus, .open > .dropdown-toggle.btn-success.focus { color: #ffffff; background-color: #398439; border-color: #255625; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled.focus, .btn-success[disabled].focus, fieldset[disabled] .btn-success.focus { background-color: #5cb85c; border-color: #4cae4c; } .btn-success .badge { color: #5cb85c; background-color: #ffffff; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #46b8da; } .btn-info:focus, .btn-info.focus { color: #ffffff; background-color: #31b0d5; border-color: #1b6d85; } .btn-info:hover { color: #ffffff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { color: #ffffff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active:hover, .btn-info.active:hover, .open > .dropdown-toggle.btn-info:hover, .btn-info:active:focus, .btn-info.active:focus, .open > .dropdown-toggle.btn-info:focus, .btn-info:active.focus, .btn-info.active.focus, .open > .dropdown-toggle.btn-info.focus { color: #ffffff; background-color: #269abc; border-color: #1b6d85; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled.focus, .btn-info[disabled].focus, fieldset[disabled] .btn-info.focus { background-color: #5bc0de; border-color: #46b8da; } .btn-info .badge { color: #5bc0de; background-color: #ffffff; } .btn-warning { color: #ffffff; background-color: #f0ad4e; border-color: #eea236; } .btn-warning:focus, .btn-warning.focus { color: #ffffff; background-color: #ec971f; border-color: #985f0d; } .btn-warning:hover { color: #ffffff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { color: #ffffff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active:hover, .btn-warning.active:hover, .open > .dropdown-toggle.btn-warning:hover, .btn-warning:active:focus, .btn-warning.active:focus, .open > .dropdown-toggle.btn-warning:focus, .btn-warning:active.focus, .btn-warning.active.focus, .open > .dropdown-toggle.btn-warning.focus { color: #ffffff; background-color: #d58512; border-color: #985f0d; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled.focus, .btn-warning[disabled].focus, fieldset[disabled] .btn-warning.focus { background-color: #f0ad4e; border-color: #eea236; } .btn-warning .badge { color: #f0ad4e; background-color: #ffffff; } .btn-danger { color: #ffffff; background-color: #d9534f; border-color: #d43f3a; } .btn-danger:focus, .btn-danger.focus { color: #ffffff; background-color: #c9302c; border-color: #761c19; } .btn-danger:hover { color: #ffffff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { color: #ffffff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active:hover, .btn-danger.active:hover, .open > .dropdown-toggle.btn-danger:hover, .btn-danger:active:focus, .btn-danger.active:focus, .open > .dropdown-toggle.btn-danger:focus, .btn-danger:active.focus, .btn-danger.active.focus, .open > .dropdown-toggle.btn-danger.focus { color: #ffffff; background-color: #ac2925; border-color: #761c19; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled.focus, .btn-danger[disabled].focus, fieldset[disabled] .btn-danger.focus { background-color: #d9534f; border-color: #d43f3a; } .btn-danger .badge { color: #d9534f; background-color: #ffffff; } .btn-link { color: #337ab7; font-weight: normal; border-radius: 0; } .btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #23527c; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #777777; text-decoration: none; } .btn-lg, .btn-group-lg > .btn { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } .btn-sm, .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-xs, .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } tr.collapse.in { display: table-row; } tbody.collapse.in { display: table-row-group; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition-property: height, visibility; transition-property: height, visibility; -webkit-transition-duration: 0.35s; transition-duration: 0.35s; -webkit-transition-timing-function: ease; transition-timing-function: ease; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-top: 4px solid \9; border-right: 4px solid transparent; border-left: 4px solid transparent; } .dropup, .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; font-size: 14px; text-align: left; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { text-decoration: none; color: #262626; background-color: #f5f5f5; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; outline: 0; background-color: #337ab7; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #777777; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed; } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-menu-right { left: auto; right: 0; } .dropdown-menu-left { left: 0; right: auto; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857143; color: #777777; white-space: nowrap; } .dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px dashed; border-bottom: 4px solid \9; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 2px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { left: auto; right: 0; } .navbar-right .dropdown-menu-left { left: 0; right: auto; } } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar { margin-left: -5px; } .btn-toolbar .btn, .btn-toolbar .btn-group, .btn-toolbar .input-group { float: left; } .btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-left: 12px; padding-right: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none; } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group, .btn-group-vertical > .btn-group > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 4px; border-top-left-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-top-right-radius: 0; border-top-left-radius: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; table-layout: fixed; border-collapse: separate; } .btn-group-justified > .btn, .btn-group-justified > .btn-group { float: none; display: table-cell; width: 1%; } .btn-group-justified > .btn-group .btn { width: 100%; } .btn-group-justified > .btn-group .dropdown-menu { left: auto; } [data-toggle="buttons"] > .btn input[type="radio"], [data-toggle="buttons"] > .btn-group > .btn input[type="radio"], [data-toggle="buttons"] > .btn input[type="checkbox"], [data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group[class*="col-"] { float: none; padding-left: 0; padding-right: 0; } .input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; } .input-group .form-control:focus { z-index: 3; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 46px; line-height: 46px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn, select[multiple].input-group-lg > .form-control, select[multiple].input-group-lg > .input-group-addon, select[multiple].input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 30px; line-height: 30px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn, select[multiple].input-group-sm > .form-control, select[multiple].input-group-sm > .input-group-addon, select[multiple].input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 6px 12px; font-size: 14px; font-weight: normal; line-height: 1; color: #555555; text-align: center; background-color: #eeeeee; border: 1px solid #cccccc; border-radius: 4px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { border-bottom-right-radius: 0; border-top-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; font-size: 0; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -1px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { z-index: 2; } .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { margin-right: -1px; } .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group { z-index: 2; margin-left: -1px; } .nav { margin-bottom: 0; padding-left: 0; list-style: none; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li.disabled > a { color: #777777; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #777777; text-decoration: none; background-color: transparent; cursor: not-allowed; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #eeeeee; border-color: #337ab7; } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #dddddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.42857143; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #555555; background-color: #ffffff; border: 1px solid #dddddd; border-bottom-color: transparent; cursor: default; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } .nav-tabs.nav-justified > li > a { margin-bottom: 0; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs.nav-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #ffffff; } } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 4px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: #337ab7; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border-bottom-color: #ffffff; } } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent; } @media (min-width: 768px) { .navbar { border-radius: 4px; } } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { overflow-x: visible; padding-right: 15px; padding-left: 15px; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-overflow-scrolling: touch; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { padding-left: 0; padding-right: 0; } } .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 340px; } @media (max-device-width: 480px) and (orientation: landscape) { .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 200px; } } .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; } .navbar-brand { float: left; padding: 15px 15px; font-size: 18px; line-height: 20px; height: 50px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } .navbar-brand > img { display: block; } @media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right; margin-right: 15px; padding: 9px 10px; margin-top: 8px; margin-bottom: 8px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle:focus { outline: 0; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 7.5px -15px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; } } .navbar-form { margin-left: -15px; margin-right: -15px; padding: 10px 15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); margin-top: 8px; margin-bottom: 8px; } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; width: auto; vertical-align: middle; } .navbar-form .form-control-static { display: inline-block; } .navbar-form .input-group { display: inline-table; vertical-align: middle; } .navbar-form .input-group .input-group-addon, .navbar-form .input-group .input-group-btn, .navbar-form .input-group .form-control { width: auto; } .navbar-form .input-group > .form-control { width: 100%; } .navbar-form .control-label { margin-bottom: 0; vertical-align: middle; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .navbar-form .radio label, .navbar-form .checkbox label { padding-left: 0; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .navbar-form .has-feedback .form-control-feedback { top: 0; } } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } .navbar-form .form-group:last-child { margin-bottom: 0; } } @media (min-width: 768px) { .navbar-form { width: auto; border: 0; margin-left: 0; margin-right: 0; padding-top: 0; padding-bottom: 0; -webkit-box-shadow: none; box-shadow: none; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { margin-bottom: 0; border-top-right-radius: 4px; border-top-left-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-btn { margin-top: 8px; margin-bottom: 8px; } .navbar-btn.btn-sm { margin-top: 10px; margin-bottom: 10px; } .navbar-btn.btn-xs { margin-top: 14px; margin-bottom: 14px; } .navbar-text { margin-top: 15px; margin-bottom: 15px; } @media (min-width: 768px) { .navbar-text { float: left; margin-left: 15px; margin-right: 15px; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; margin-right: -15px; } .navbar-right ~ .navbar-right { margin-right: 0; } } .navbar-default { background-color: #f8f8f8; border-color: #e7e7e7; } .navbar-default .navbar-brand { color: #777777; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #5e5e5e; background-color: transparent; } .navbar-default .navbar-text { color: #777777; } .navbar-default .navbar-nav > li > a { color: #777777; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #555555; background-color: #e7e7e7; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #dddddd; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #dddddd; } .navbar-default .navbar-toggle .icon-bar { background-color: #888888; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e7e7e7; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { background-color: #e7e7e7; color: #555555; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #777777; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #555555; background-color: #e7e7e7; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-default .navbar-link { color: #777777; } .navbar-default .navbar-link:hover { color: #333333; } .navbar-default .btn-link { color: #777777; } .navbar-default .btn-link:hover, .navbar-default .btn-link:focus { color: #333333; } .navbar-default .btn-link[disabled]:hover, fieldset[disabled] .navbar-default .btn-link:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:focus { color: #cccccc; } .navbar-inverse { background-color: #222222; border-color: #080808; } .navbar-inverse .navbar-brand { color: #9d9d9d; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-text { color: #9d9d9d; } .navbar-inverse .navbar-nav > li > a { color: #9d9d9d; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444444; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #101010; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { background-color: #080808; color: #ffffff; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #9d9d9d; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #444444; background-color: transparent; } } .navbar-inverse .navbar-link { color: #9d9d9d; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .navbar-inverse .btn-link { color: #9d9d9d; } .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link:focus { color: #ffffff; } .navbar-inverse .btn-link[disabled]:hover, fieldset[disabled] .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link[disabled]:focus, fieldset[disabled] .navbar-inverse .btn-link:focus { color: #444444; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { content: "/\00a0"; padding: 0 5px; color: #cccccc; } .breadcrumb > .active { color: #777777; } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 6px 12px; line-height: 1.42857143; text-decoration: none; color: #337ab7; background-color: #ffffff; border: 1px solid #dddddd; margin-left: -1px; } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-bottom-right-radius: 4px; border-top-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { z-index: 2; color: #23527c; background-color: #eeeeee; border-color: #dddddd; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 3; color: #ffffff; background-color: #337ab7; border-color: #337ab7; cursor: default; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #777777; background-color: #ffffff; border-color: #dddddd; cursor: not-allowed; } .pagination-lg > li > a, .pagination-lg > li > span { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { border-bottom-right-radius: 6px; border-top-right-radius: 6px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; line-height: 1.5; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { border-bottom-right-radius: 3px; border-top-right-radius: 3px; } .pager { padding-left: 0; margin: 20px 0; list-style: none; text-align: center; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #eeeeee; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #777777; background-color: #ffffff; cursor: not-allowed; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } a.label:hover, a.label:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .btn .label { position: relative; top: -1px; } .label-default { background-color: #777777; } .label-default[href]:hover, .label-default[href]:focus { background-color: #5e5e5e; } .label-primary { background-color: #337ab7; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #286090; } .label-success { background-color: #5cb85c; } .label-success[href]:hover, .label-success[href]:focus { background-color: #449d44; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f0ad4e; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #ec971f; } .label-danger { background-color: #d9534f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #c9302c; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; color: #ffffff; line-height: 1; vertical-align: middle; white-space: nowrap; text-align: center; background-color: #777777; border-radius: 10px; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .btn-xs .badge, .btn-group-xs > .btn .badge { top: 0; padding: 1px 5px; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #337ab7; background-color: #ffffff; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } .nav-pills > li > a > .badge { margin-left: 3px; } .jumbotron { padding-top: 30px; padding-bottom: 30px; margin-bottom: 30px; color: inherit; background-color: #eeeeee; } .jumbotron h1, .jumbotron .h1 { color: inherit; } .jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200; } .jumbotron > hr { border-top-color: #d5d5d5; } .container .jumbotron, .container-fluid .jumbotron { border-radius: 6px; padding-left: 15px; padding-right: 15px; } .jumbotron .container { max-width: 100%; } @media screen and (min-width: 768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px; } .container .jumbotron, .container-fluid .jumbotron { padding-left: 60px; padding-right: 60px; } .jumbotron h1, .jumbotron .h1 { font-size: 63px; } } .thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: border 0.2s ease-in-out; -o-transition: border 0.2s ease-in-out; transition: border 0.2s ease-in-out; } .thumbnail > img, .thumbnail a > img { margin-left: auto; margin-right: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #337ab7; } .thumbnail .caption { padding: 9px; color: #333333; } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable, .alert-dismissible { padding-right: 35px; } .alert-dismissable .close, .alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #2b542c; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; color: #31708f; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #245269; } .alert-warning { background-color: #fcf8e3; border-color: #faebcc; color: #8a6d3b; } .alert-warning hr { border-top-color: #f7e1b5; } .alert-warning .alert-link { color: #66512c; } .alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; } .alert-danger hr { border-top-color: #e4b9c0; } .alert-danger .alert-link { color: #843534; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { overflow: hidden; height: 20px; margin-bottom: 20px; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress-bar { float: left; width: 0%; height: 100%; font-size: 12px; line-height: 20px; color: #ffffff; text-align: center; background-color: #337ab7; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.6s ease; -o-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar, .progress-bar-striped { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar, .progress-bar.active { -webkit-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-success { background-color: #5cb85c; } .progress-striped .progress-bar-success { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f0ad4e; } .progress-striped .progress-bar-warning { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #d9534f; } .progress-striped .progress-bar-danger { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media, .media-body { zoom: 1; overflow: hidden; } .media-body { width: 10000px; } .media-object { display: block; } .media-object.img-thumbnail { max-width: none; } .media-right, .media > .pull-right { padding-left: 10px; } .media-left, .media > .pull-left { padding-right: 10px; } .media-left, .media-right, .media-body { display: table-cell; vertical-align: top; } .media-middle { vertical-align: middle; } .media-bottom { vertical-align: bottom; } .media-heading { margin-top: 0; margin-bottom: 5px; } .media-list { padding-left: 0; list-style: none; } .list-group { margin-bottom: 20px; padding-left: 0; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #ffffff; border: 1px solid #dddddd; } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } a.list-group-item, button.list-group-item { color: #555555; } a.list-group-item .list-group-item-heading, button.list-group-item .list-group-item-heading { color: #333333; } a.list-group-item:hover, button.list-group-item:hover, a.list-group-item:focus, button.list-group-item:focus { text-decoration: none; color: #555555; background-color: #f5f5f5; } button.list-group-item { width: 100%; text-align: left; } .list-group-item.disabled, .list-group-item.disabled:hover, .list-group-item.disabled:focus { background-color: #eeeeee; color: #777777; cursor: not-allowed; } .list-group-item.disabled .list-group-item-heading, .list-group-item.disabled:hover .list-group-item-heading, .list-group-item.disabled:focus .list-group-item-heading { color: inherit; } .list-group-item.disabled .list-group-item-text, .list-group-item.disabled:hover .list-group-item-text, .list-group-item.disabled:focus .list-group-item-text { color: #777777; } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { z-index: 2; color: #ffffff; background-color: #337ab7; border-color: #337ab7; } .list-group-item.active .list-group-item-heading, .list-group-item.active:hover .list-group-item-heading, .list-group-item.active:focus .list-group-item-heading, .list-group-item.active .list-group-item-heading > small, .list-group-item.active:hover .list-group-item-heading > small, .list-group-item.active:focus .list-group-item-heading > small, .list-group-item.active .list-group-item-heading > .small, .list-group-item.active:hover .list-group-item-heading > .small, .list-group-item.active:focus .list-group-item-heading > .small { color: inherit; } .list-group-item.active .list-group-item-text, .list-group-item.active:hover .list-group-item-text, .list-group-item.active:focus .list-group-item-text { color: #c7ddef; } .list-group-item-success { color: #3c763d; background-color: #dff0d8; } a.list-group-item-success, button.list-group-item-success { color: #3c763d; } a.list-group-item-success .list-group-item-heading, button.list-group-item-success .list-group-item-heading { color: inherit; } a.list-group-item-success:hover, button.list-group-item-success:hover, a.list-group-item-success:focus, button.list-group-item-success:focus { color: #3c763d; background-color: #d0e9c6; } a.list-group-item-success.active, button.list-group-item-success.active, a.list-group-item-success.active:hover, button.list-group-item-success.active:hover, a.list-group-item-success.active:focus, button.list-group-item-success.active:focus { color: #fff; background-color: #3c763d; border-color: #3c763d; } .list-group-item-info { color: #31708f; background-color: #d9edf7; } a.list-group-item-info, button.list-group-item-info { color: #31708f; } a.list-group-item-info .list-group-item-heading, button.list-group-item-info .list-group-item-heading { color: inherit; } a.list-group-item-info:hover, button.list-group-item-info:hover, a.list-group-item-info:focus, button.list-group-item-info:focus { color: #31708f; background-color: #c4e3f3; } a.list-group-item-info.active, button.list-group-item-info.active, a.list-group-item-info.active:hover, button.list-group-item-info.active:hover, a.list-group-item-info.active:focus, button.list-group-item-info.active:focus { color: #fff; background-color: #31708f; border-color: #31708f; } .list-group-item-warning { color: #8a6d3b; background-color: #fcf8e3; } a.list-group-item-warning, button.list-group-item-warning { color: #8a6d3b; } a.list-group-item-warning .list-group-item-heading, button.list-group-item-warning .list-group-item-heading { color: inherit; } a.list-group-item-warning:hover, button.list-group-item-warning:hover, a.list-group-item-warning:focus, button.list-group-item-warning:focus { color: #8a6d3b; background-color: #faf2cc; } a.list-group-item-warning.active, button.list-group-item-warning.active, a.list-group-item-warning.active:hover, button.list-group-item-warning.active:hover, a.list-group-item-warning.active:focus, button.list-group-item-warning.active:focus { color: #fff; background-color: #8a6d3b; border-color: #8a6d3b; } .list-group-item-danger { color: #a94442; background-color: #f2dede; } a.list-group-item-danger, button.list-group-item-danger { color: #a94442; } a.list-group-item-danger .list-group-item-heading, button.list-group-item-danger .list-group-item-heading { color: inherit; } a.list-group-item-danger:hover, button.list-group-item-danger:hover, a.list-group-item-danger:focus, button.list-group-item-danger:focus { color: #a94442; background-color: #ebcccc; } a.list-group-item-danger.active, button.list-group-item-danger.active, a.list-group-item-danger.active:hover, button.list-group-item-danger.active:hover, a.list-group-item-danger.active:focus, button.list-group-item-danger.active:focus { color: #fff; background-color: #a94442; border-color: #a94442; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 20px; background-color: #ffffff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-body { padding: 15px; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; } .panel-title > a, .panel-title > small, .panel-title > .small, .panel-title > small > a, .panel-title > .small > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #dddddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .list-group, .panel > .panel-collapse > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item, .panel > .panel-collapse > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; } .panel > .list-group:first-child .list-group-item:first-child, .panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { border-top: 0; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .list-group:last-child .list-group-item:last-child, .panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { border-bottom: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .list-group + .panel-footer { border-top-width: 0; } .panel > .table, .panel > .table-responsive > .table, .panel > .panel-collapse > .table { margin-bottom: 0; } .panel > .table caption, .panel > .table-responsive > .table caption, .panel > .panel-collapse > .table caption { padding-left: 15px; padding-right: 15px; } .panel > .table:first-child, .panel > .table-responsive:first-child > .table:first-child { border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { border-top-left-radius: 3px; border-top-right-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { border-top-right-radius: 3px; } .panel > .table:last-child, .panel > .table-responsive:last-child > .table:last-child { border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { border-bottom-right-radius: 3px; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive, .panel > .table + .panel-body, .panel > .table-responsive + .panel-body { border-top: 1px solid #dddddd; } .panel > .table > tbody:first-child > tr:first-child th, .panel > .table > tbody:first-child > tr:first-child td { border-top: 0; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:first-child > td, .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, .panel > .table-bordered > tbody > tr:first-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, .panel > .table-bordered > thead > tr:first-child > th, .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, .panel > .table-bordered > tbody > tr:first-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { border-bottom: 0; } .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { border-bottom: 0; } .panel > .table-responsive { border: 0; margin-bottom: 0; } .panel-group { margin-bottom: 20px; } .panel-group .panel { margin-bottom: 0; border-radius: 4px; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse > .panel-body, .panel-group .panel-heading + .panel-collapse > .list-group { border-top: 1px solid #dddddd; } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #dddddd; } .panel-default { border-color: #dddddd; } .panel-default > .panel-heading { color: #333333; background-color: #f5f5f5; border-color: #dddddd; } .panel-default > .panel-heading + .panel-collapse > .panel-body { border-top-color: #dddddd; } .panel-default > .panel-heading .badge { color: #f5f5f5; background-color: #333333; } .panel-default > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #dddddd; } .panel-primary { border-color: #337ab7; } .panel-primary > .panel-heading { color: #ffffff; background-color: #337ab7; border-color: #337ab7; } .panel-primary > .panel-heading + .panel-collapse > .panel-body { border-top-color: #337ab7; } .panel-primary > .panel-heading .badge { color: #337ab7; background-color: #ffffff; } .panel-primary > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #337ab7; } .panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse > .panel-body { border-top-color: #d6e9c6; } .panel-success > .panel-heading .badge { color: #dff0d8; background-color: #3c763d; } .panel-success > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #d6e9c6; } .panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .panel-info > .panel-heading + .panel-collapse > .panel-body { border-top-color: #bce8f1; } .panel-info > .panel-heading .badge { color: #d9edf7; background-color: #31708f; } .panel-info > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #bce8f1; } .panel-warning { border-color: #faebcc; } .panel-warning > .panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .panel-warning > .panel-heading + .panel-collapse > .panel-body { border-top-color: #faebcc; } .panel-warning > .panel-heading .badge { color: #fcf8e3; background-color: #8a6d3b; } .panel-warning > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #faebcc; } .panel-danger { border-color: #ebccd1; } .panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .panel-danger > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ebccd1; } .panel-danger > .panel-heading .badge { color: #f2dede; background-color: #a94442; } .panel-danger > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ebccd1; } .embed-responsive { position: relative; display: block; height: 0; padding: 0; overflow: hidden; } .embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive embed, .embed-responsive object, .embed-responsive video { position: absolute; top: 0; left: 0; bottom: 0; height: 100%; width: 100%; border: 0; } .embed-responsive-16by9 { padding-bottom: 56.25%; } .embed-responsive-4by3 { padding-bottom: 75%; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-lg { padding: 24px; border-radius: 6px; } .well-sm { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } .modal { display: none; overflow: hidden; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; -webkit-overflow-scrolling: touch; outline: 0; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); -o-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); } .modal-open .modal { overflow-x: hidden; overflow-y: auto; } .modal-dialog { position: relative; width: auto; margin: 10px; } .modal-content { position: relative; background-color: #ffffff; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); background-clip: padding-box; outline: 0; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.42857143; } .modal-body { position: relative; padding: 15px; } .modal-footer { padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } .modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } @media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } .modal-sm { width: 300px; } } @media (min-width: 992px) { .modal-lg { width: 900px; } } .tooltip { position: absolute; z-index: 1070; display: block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; line-break: auto; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; word-wrap: normal; font-size: 12px; opacity: 0; filter: alpha(opacity=0); } .tooltip.in { opacity: 0.9; filter: alpha(opacity=90); } .tooltip.top { margin-top: -3px; padding: 5px 0; } .tooltip.right { margin-left: 3px; padding: 0 5px; } .tooltip.bottom { margin-top: 3px; padding: 5px 0; } .tooltip.left { margin-left: -3px; padding: 0 5px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; background-color: #000000; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #000000; } .tooltip.top-left .tooltip-arrow { bottom: 0; right: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000000; } .tooltip.top-right .tooltip-arrow { bottom: 0; left: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000000; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #000000; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #000000; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #000000; } .tooltip.bottom-left .tooltip-arrow { top: 0; right: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000000; } .tooltip.bottom-right .tooltip-arrow { top: 0; left: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000000; } .popover { position: absolute; top: 0; left: 0; z-index: 1060; display: none; max-width: 276px; padding: 1px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; line-break: auto; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; word-wrap: normal; font-size: 14px; background-color: #ffffff; background-clip: padding-box; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { margin: 0; padding: 8px 14px; font-size: 14px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover > .arrow, .popover > .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover > .arrow { border-width: 11px; } .popover > .arrow:after { border-width: 10px; content: ""; } .popover.top > .arrow { left: 50%; margin-left: -11px; border-bottom-width: 0; border-top-color: #999999; border-top-color: rgba(0, 0, 0, 0.25); bottom: -11px; } .popover.top > .arrow:after { content: " "; bottom: 1px; margin-left: -10px; border-bottom-width: 0; border-top-color: #ffffff; } .popover.right > .arrow { top: 50%; left: -11px; margin-top: -11px; border-left-width: 0; border-right-color: #999999; border-right-color: rgba(0, 0, 0, 0.25); } .popover.right > .arrow:after { content: " "; left: 1px; bottom: -10px; border-left-width: 0; border-right-color: #ffffff; } .popover.bottom > .arrow { left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #999999; border-bottom-color: rgba(0, 0, 0, 0.25); top: -11px; } .popover.bottom > .arrow:after { content: " "; top: 1px; margin-left: -10px; border-top-width: 0; border-bottom-color: #ffffff; } .popover.left > .arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #999999; border-left-color: rgba(0, 0, 0, 0.25); } .popover.left > .arrow:after { content: " "; right: 1px; border-right-width: 0; border-left-color: #ffffff; bottom: -10px; } .carousel { position: relative; } .carousel-inner { position: relative; overflow: hidden; width: 100%; } .carousel-inner > .item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { line-height: 1; } @media all and (transform-3d), (-webkit-transform-3d) { .carousel-inner > .item { -webkit-transition: -webkit-transform 0.6s ease-in-out; -moz-transition: -moz-transform 0.6s ease-in-out; -o-transition: -o-transform 0.6s ease-in-out; transition: transform 0.6s ease-in-out; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; backface-visibility: hidden; -webkit-perspective: 1000px; -moz-perspective: 1000px; perspective: 1000px; } .carousel-inner > .item.next, .carousel-inner > .item.active.right { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); left: 0; } .carousel-inner > .item.prev, .carousel-inner > .item.active.left { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); left: 0; } .carousel-inner > .item.next.left, .carousel-inner > .item.prev.right, .carousel-inner > .item.active { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); left: 0; } } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; left: 0; bottom: 0; width: 15%; opacity: 0.5; filter: alpha(opacity=50); font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); background-color: rgba(0, 0, 0, 0); } .carousel-control.left { background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { left: auto; right: 0; background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { outline: 0; color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { position: absolute; top: 50%; margin-top: -10px; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left { left: 50%; margin-left: -10px; } .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right { right: 50%; margin-right: -10px; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; line-height: 1; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; margin-left: -30%; padding-left: 0; list-style: none; text-align: center; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; border: 1px solid #ffffff; border-radius: 10px; cursor: pointer; background-color: #000 \9; background-color: rgba(0, 0, 0, 0); } .carousel-indicators .active { margin: 0; width: 12px; height: 12px; background-color: #ffffff; } .carousel-caption { position: absolute; left: 15%; right: 15%; bottom: 20px; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -10px; font-size: 30px; } .carousel-control .glyphicon-chevron-left, .carousel-control .icon-prev { margin-left: -10px; } .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next { margin-right: -10px; } .carousel-caption { left: 20%; right: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .clearfix:before, .clearfix:after, .dl-horizontal dd:before, .dl-horizontal dd:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-header:before, .modal-header:after, .modal-footer:before, .modal-footer:after { content: " "; display: table; } .clearfix:after, .dl-horizontal dd:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-header:after, .modal-footer:after { clear: both; } .center-block { display: block; margin-left: auto; margin-right: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; } .visible-xs-block, .visible-xs-inline, .visible-xs-inline-block, .visible-sm-block, .visible-sm-inline, .visible-sm-inline-block, .visible-md-block, .visible-md-inline, .visible-md-inline-block, .visible-lg-block, .visible-lg-inline, .visible-lg-inline-block { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } table.visible-xs { display: table !important; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (max-width: 767px) { .visible-xs-block { display: block !important; } } @media (max-width: 767px) { .visible-xs-inline { display: inline !important; } } @media (max-width: 767px) { .visible-xs-inline-block { display: inline-block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } table.visible-sm { display: table !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-block { display: block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline { display: inline !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline-block { display: inline-block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } table.visible-md { display: table !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-block { display: block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline { display: inline !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline-block { display: inline-block !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } table.visible-lg { display: table !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg-block { display: block !important; } } @media (min-width: 1200px) { .visible-lg-inline { display: inline !important; } } @media (min-width: 1200px) { .visible-lg-inline-block { display: inline-block !important; } } @media (max-width: 767px) { .hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } } .visible-print { display: none !important; } @media print { .visible-print { display: block !important; } table.visible-print { display: table !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } } .visible-print-block { display: none !important; } @media print { .visible-print-block { display: block !important; } } .visible-print-inline { display: none !important; } @media print { .visible-print-inline { display: inline !important; } } .visible-print-inline-block { display: none !important; } @media print { .visible-print-inline-block { display: inline-block !important; } } @media print { .hidden-print { display: none !important; } } /** * Additional styles for BraincraftedBootstrapBundle * (c) 2013 Florian Eckerstorfer (http://braincrafted.com) * http://bootstrap.braincrafted.com */ .bootstrap-time { width: 100%; } .bootstrap-time select { display: inline-block; width: auto; } .bootstrap-date { width: 100%; } .bootstrap-date select { display: inline-block; width: auto; margin-right: 5px; } .bootstrap-datetime .bootstrap-time, .bootstrap-datetime .bootstrap-date { display: inline-block; width: auto; } .form-group .bc-collection { margin-bottom: 0; } .form-group .bc-collection li + li { margin-top: 10px; } .form-group .bc-collection li:nth-last-child(1) { margin-bottom: 10px; } .form-inline .form-group { margin-left: 0; margin-right: 0; } .form-horizontal .col-lg-1 .col-1, .form-horizontal .col-lg-2 .col-1, .form-horizontal .col-lg-3 .col-1, .form-horizontal .col-lg-4 .col-1, .form-horizontal .col-lg-5 .col-1, .form-horizontal .col-lg-6 .col-1, .form-horizontal .col-lg-7 .col-1, .form-horizontal .col-lg-8 .col-1, .form-horizontal .col-lg-9 .col-1, .form-horizontal .col-lg-10 .col-1, .form-horizontal .col-lg-11 .col-1, .form-horizontal .col-lg12 .col-1, .form-horizontal .col-lg-1 .col-2, .form-horizontal .col-lg-2 .col-2, .form-horizontal .col-lg-3 .col-2, .form-horizontal .col-lg-4 .col-2, .form-horizontal .col-lg-5 .col-2, .form-horizontal .col-lg-6 .col-2, .form-horizontal .col-lg-7 .col-2, .form-horizontal .col-lg-8 .col-2, .form-horizontal .col-lg-9 .col-2, .form-horizontal .col-lg-10 .col-2, .form-horizontal .col-lg-11 .col-2, .form-horizontal .col-lg12 .col-2, .form-horizontal .col-lg-1 .col-3, .form-horizontal .col-lg-2 .col-3, .form-horizontal .col-lg-3 .col-3, .form-horizontal .col-lg-4 .col-3, .form-horizontal .col-lg-5 .col-3, .form-horizontal .col-lg-6 .col-3, .form-horizontal .col-lg-7 .col-3, .form-horizontal .col-lg-8 .col-3, .form-horizontal .col-lg-9 .col-3, .form-horizontal .col-lg-10 .col-3, .form-horizontal .col-lg-11 .col-3, .form-horizontal .col-lg12 .col-3, .form-horizontal .col-lg-1 .col-4, .form-horizontal .col-lg-2 .col-4, .form-horizontal .col-lg-3 .col-4, .form-horizontal .col-lg-4 .col-4, .form-horizontal .col-lg-5 .col-4, .form-horizontal .col-lg-6 .col-4, .form-horizontal .col-lg-7 .col-4, .form-horizontal .col-lg-8 .col-4, .form-horizontal .col-lg-9 .col-4, .form-horizontal .col-lg-10 .col-4, .form-horizontal .col-lg-11 .col-4, .form-horizontal .col-lg12 .col-4, .form-horizontal .col-lg-1 .col-5, .form-horizontal .col-lg-2 .col-5, .form-horizontal .col-lg-3 .col-5, .form-horizontal .col-lg-4 .col-5, .form-horizontal .col-lg-5 .col-5, .form-horizontal .col-lg-6 .col-5, .form-horizontal .col-lg-7 .col-5, .form-horizontal .col-lg-8 .col-5, .form-horizontal .col-lg-9 .col-5, .form-horizontal .col-lg-10 .col-5, .form-horizontal .col-lg-11 .col-5, .form-horizontal .col-lg12 .col-5, .form-horizontal .col-lg-1 .col-6, .form-horizontal .col-lg-2 .col-6, .form-horizontal .col-lg-3 .col-6, .form-horizontal .col-lg-4 .col-6, .form-horizontal .col-lg-5 .col-6, .form-horizontal .col-lg-6 .col-6, .form-horizontal .col-lg-7 .col-6, .form-horizontal .col-lg-8 .col-6, .form-horizontal .col-lg-9 .col-6, .form-horizontal .col-lg-10 .col-6, .form-horizontal .col-lg-11 .col-6, .form-horizontal .col-lg12 .col-6, .form-horizontal .col-lg-1 .col-7, .form-horizontal .col-lg-2 .col-7, .form-horizontal .col-lg-3 .col-7, .form-horizontal .col-lg-4 .col-7, .form-horizontal .col-lg-5 .col-7, .form-horizontal .col-lg-6 .col-7, .form-horizontal .col-lg-7 .col-7, .form-horizontal .col-lg-8 .col-7, .form-horizontal .col-lg-9 .col-7, .form-horizontal .col-lg-10 .col-7, .form-horizontal .col-lg-11 .col-7, .form-horizontal .col-lg12 .col-7, .form-horizontal .col-lg-1 .col-8, .form-horizontal .col-lg-2 .col-8, .form-horizontal .col-lg-3 .col-8, .form-horizontal .col-lg-4 .col-8, .form-horizontal .col-lg-5 .col-8, .form-horizontal .col-lg-6 .col-8, .form-horizontal .col-lg-7 .col-8, .form-horizontal .col-lg-8 .col-8, .form-horizontal .col-lg-9 .col-8, .form-horizontal .col-lg-10 .col-8, .form-horizontal .col-lg-11 .col-8, .form-horizontal .col-lg12 .col-8, .form-horizontal .col-lg-1 .col-9, .form-horizontal .col-lg-2 .col-9, .form-horizontal .col-lg-3 .col-9, .form-horizontal .col-lg-4 .col-9, .form-horizontal .col-lg-5 .col-9, .form-horizontal .col-lg-6 .col-9, .form-horizontal .col-lg-7 .col-9, .form-horizontal .col-lg-8 .col-9, .form-horizontal .col-lg-9 .col-9, .form-horizontal .col-lg-10 .col-9, .form-horizontal .col-lg-11 .col-9, .form-horizontal .col-lg12 .col-9, .form-horizontal .col-lg-1 .col-10, .form-horizontal .col-lg-2 .col-10, .form-horizontal .col-lg-3 .col-10, .form-horizontal .col-lg-4 .col-10, .form-horizontal .col-lg-5 .col-10, .form-horizontal .col-lg-6 .col-10, .form-horizontal .col-lg-7 .col-10, .form-horizontal .col-lg-8 .col-10, .form-horizontal .col-lg-9 .col-10, .form-horizontal .col-lg-10 .col-10, .form-horizontal .col-lg-11 .col-10, .form-horizontal .col-lg12 .col-10, .form-horizontal .col-lg-1 .col-11, .form-horizontal .col-lg-2 .col-11, .form-horizontal .col-lg-3 .col-11, .form-horizontal .col-lg-4 .col-11, .form-horizontal .col-lg-5 .col-11, .form-horizontal .col-lg-6 .col-11, .form-horizontal .col-lg-7 .col-11, .form-horizontal .col-lg-8 .col-11, .form-horizontal .col-lg-9 .col-11, .form-horizontal .col-lg-10 .col-11, .form-horizontal .col-lg-11 .col-11, .form-horizontal .col-lg12 .col-11, .form-horizontal .col-lg-1 .col-12, .form-horizontal .col-lg-2 .col-12, .form-horizontal .col-lg-3 .col-12, .form-horizontal .col-lg-4 .col-12, .form-horizontal .col-lg-5 .col-12, .form-horizontal .col-lg-6 .col-12, .form-horizontal .col-lg-7 .col-12, .form-horizontal .col-lg-8 .col-12, .form-horizontal .col-lg-9 .col-12, .form-horizontal .col-lg-10 .col-12, .form-horizontal .col-lg-11 .col-12, .form-horizontal .col-lg12 .col-12, .form-horizontal .col-lg-1 .col-sm-1, .form-horizontal .col-lg-2 .col-sm-1, .form-horizontal .col-lg-3 .col-sm-1, .form-horizontal .col-lg-4 .col-sm-1, .form-horizontal .col-lg-5 .col-sm-1, .form-horizontal .col-lg-6 .col-sm-1, .form-horizontal .col-lg-7 .col-sm-1, .form-horizontal .col-lg-8 .col-sm-1, .form-horizontal .col-lg-9 .col-sm-1, .form-horizontal .col-lg-10 .col-sm-1, .form-horizontal .col-lg-11 .col-sm-1, .form-horizontal .col-lg12 .col-sm-1, .form-horizontal .col-lg-1 .col-sm-2, .form-horizontal .col-lg-2 .col-sm-2, .form-horizontal .col-lg-3 .col-sm-2, .form-horizontal .col-lg-4 .col-sm-2, .form-horizontal .col-lg-5 .col-sm-2, .form-horizontal .col-lg-6 .col-sm-2, .form-horizontal .col-lg-7 .col-sm-2, .form-horizontal .col-lg-8 .col-sm-2, .form-horizontal .col-lg-9 .col-sm-2, .form-horizontal .col-lg-10 .col-sm-2, .form-horizontal .col-lg-11 .col-sm-2, .form-horizontal .col-lg12 .col-sm-2, .form-horizontal .col-lg-1 .col-sm-3, .form-horizontal .col-lg-2 .col-sm-3, .form-horizontal .col-lg-3 .col-sm-3, .form-horizontal .col-lg-4 .col-sm-3, .form-horizontal .col-lg-5 .col-sm-3, .form-horizontal .col-lg-6 .col-sm-3, .form-horizontal .col-lg-7 .col-sm-3, .form-horizontal .col-lg-8 .col-sm-3, .form-horizontal .col-lg-9 .col-sm-3, .form-horizontal .col-lg-10 .col-sm-3, .form-horizontal .col-lg-11 .col-sm-3, .form-horizontal .col-lg12 .col-sm-3, .form-horizontal .col-lg-1 .col-sm-4, .form-horizontal .col-lg-2 .col-sm-4, .form-horizontal .col-lg-3 .col-sm-4, .form-horizontal .col-lg-4 .col-sm-4, .form-horizontal .col-lg-5 .col-sm-4, .form-horizontal .col-lg-6 .col-sm-4, .form-horizontal .col-lg-7 .col-sm-4, .form-horizontal .col-lg-8 .col-sm-4, .form-horizontal .col-lg-9 .col-sm-4, .form-horizontal .col-lg-10 .col-sm-4, .form-horizontal .col-lg-11 .col-sm-4, .form-horizontal .col-lg12 .col-sm-4, .form-horizontal .col-lg-1 .col-sm-5, .form-horizontal .col-lg-2 .col-sm-5, .form-horizontal .col-lg-3 .col-sm-5, .form-horizontal .col-lg-4 .col-sm-5, .form-horizontal .col-lg-5 .col-sm-5, .form-horizontal .col-lg-6 .col-sm-5, .form-horizontal .col-lg-7 .col-sm-5, .form-horizontal .col-lg-8 .col-sm-5, .form-horizontal .col-lg-9 .col-sm-5, .form-horizontal .col-lg-10 .col-sm-5, .form-horizontal .col-lg-11 .col-sm-5, .form-horizontal .col-lg12 .col-sm-5, .form-horizontal .col-lg-1 .col-sm-6, .form-horizontal .col-lg-2 .col-sm-6, .form-horizontal .col-lg-3 .col-sm-6, .form-horizontal .col-lg-4 .col-sm-6, .form-horizontal .col-lg-5 .col-sm-6, .form-horizontal .col-lg-6 .col-sm-6, .form-horizontal .col-lg-7 .col-sm-6, .form-horizontal .col-lg-8 .col-sm-6, .form-horizontal .col-lg-9 .col-sm-6, .form-horizontal .col-lg-10 .col-sm-6, .form-horizontal .col-lg-11 .col-sm-6, .form-horizontal .col-lg12 .col-sm-6, .form-horizontal .col-lg-1 .col-sm-7, .form-horizontal .col-lg-2 .col-sm-7, .form-horizontal .col-lg-3 .col-sm-7, .form-horizontal .col-lg-4 .col-sm-7, .form-horizontal .col-lg-5 .col-sm-7, .form-horizontal .col-lg-6 .col-sm-7, .form-horizontal .col-lg-7 .col-sm-7, .form-horizontal .col-lg-8 .col-sm-7, .form-horizontal .col-lg-9 .col-sm-7, .form-horizontal .col-lg-10 .col-sm-7, .form-horizontal .col-lg-11 .col-sm-7, .form-horizontal .col-lg12 .col-sm-7, .form-horizontal .col-lg-1 .col-sm-8, .form-horizontal .col-lg-2 .col-sm-8, .form-horizontal .col-lg-3 .col-sm-8, .form-horizontal .col-lg-4 .col-sm-8, .form-horizontal .col-lg-5 .col-sm-8, .form-horizontal .col-lg-6 .col-sm-8, .form-horizontal .col-lg-7 .col-sm-8, .form-horizontal .col-lg-8 .col-sm-8, .form-horizontal .col-lg-9 .col-sm-8, .form-horizontal .col-lg-10 .col-sm-8, .form-horizontal .col-lg-11 .col-sm-8, .form-horizontal .col-lg12 .col-sm-8, .form-horizontal .col-lg-1 .col-sm-9, .form-horizontal .col-lg-2 .col-sm-9, .form-horizontal .col-lg-3 .col-sm-9, .form-horizontal .col-lg-4 .col-sm-9, .form-horizontal .col-lg-5 .col-sm-9, .form-horizontal .col-lg-6 .col-sm-9, .form-horizontal .col-lg-7 .col-sm-9, .form-horizontal .col-lg-8 .col-sm-9, .form-horizontal .col-lg-9 .col-sm-9, .form-horizontal .col-lg-10 .col-sm-9, .form-horizontal .col-lg-11 .col-sm-9, .form-horizontal .col-lg12 .col-sm-9, .form-horizontal .col-lg-1 .col-sm-10, .form-horizontal .col-lg-2 .col-sm-10, .form-horizontal .col-lg-3 .col-sm-10, .form-horizontal .col-lg-4 .col-sm-10, .form-horizontal .col-lg-5 .col-sm-10, .form-horizontal .col-lg-6 .col-sm-10, .form-horizontal .col-lg-7 .col-sm-10, .form-horizontal .col-lg-8 .col-sm-10, .form-horizontal .col-lg-9 .col-sm-10, .form-horizontal .col-lg-10 .col-sm-10, .form-horizontal .col-lg-11 .col-sm-10, .form-horizontal .col-lg12 .col-sm-10, .form-horizontal .col-lg-1 .col-sm-11, .form-horizontal .col-lg-2 .col-sm-11, .form-horizontal .col-lg-3 .col-sm-11, .form-horizontal .col-lg-4 .col-sm-11, .form-horizontal .col-lg-5 .col-sm-11, .form-horizontal .col-lg-6 .col-sm-11, .form-horizontal .col-lg-7 .col-sm-11, .form-horizontal .col-lg-8 .col-sm-11, .form-horizontal .col-lg-9 .col-sm-11, .form-horizontal .col-lg-10 .col-sm-11, .form-horizontal .col-lg-11 .col-sm-11, .form-horizontal .col-lg12 .col-sm-11, .form-horizontal .col-lg-1 .col-sm-12, .form-horizontal .col-lg-2 .col-sm-12, .form-horizontal .col-lg-3 .col-sm-12, .form-horizontal .col-lg-4 .col-sm-12, .form-horizontal .col-lg-5 .col-sm-12, .form-horizontal .col-lg-6 .col-sm-12, .form-horizontal .col-lg-7 .col-sm-12, .form-horizontal .col-lg-8 .col-sm-12, .form-horizontal .col-lg-9 .col-sm-12, .form-horizontal .col-lg-10 .col-sm-12, .form-horizontal .col-lg-11 .col-sm-12, .form-horizontal .col-lg12 .col-sm-12 { padding-left: 0; } form .has-error ul.help-block { list-style: none; padding-left: 0; } form .alert ul { list-style: none; padding-left: 0; }
AnimeNeko/atarashii-mal-api
web/css/bootstrap.css
CSS
apache-2.0
156,645
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Enable Or Disable Extension Loading</title> <style type="text/css"> body { margin: auto; font-family: Verdana, sans-serif; padding: 8px 1%; } a { color: #044a64 } a:visited { color: #734559 } .logo { position:absolute; margin:3px; } .tagline { float:right; text-align:right; font-style:italic; width:300px; margin:12px; margin-top:58px; } .menubar { clear: both; border-radius: 8px; background: #044a64; padding: 0px; margin: 0px; cell-spacing: 0px; } .toolbar { text-align: center; line-height: 1.6em; margin: 0; padding: 0px 8px; } .toolbar a { color: white; text-decoration: none; padding: 6px 12px; } .toolbar a:visited { color: white; } .toolbar a:hover { color: #044a64; background: white; } .content { margin: 5%; } .content dt { font-weight:bold; } .content dd { margin-bottom: 25px; margin-left:20%; } .content ul { padding:0px; padding-left: 15px; margin:0px; } /* Things for "fancyformat" documents start here. */ .fancy img+p {font-style:italic} .fancy .codeblock i { color: darkblue; } .fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64} .fancy h2 { margin-left: 10px } .fancy h3 { margin-left: 20px } .fancy h4 { margin-left: 30px } .fancy th {white-space:nowrap;text-align:left;border-bottom:solid 1px #444} .fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top} .fancy #toc a { color: darkblue ; text-decoration: none } .fancy .todo { color: #AA3333 ; font-style : italic } .fancy .todo:before { content: 'TODO:' } .fancy p.todo { border: solid #AA3333 1px; padding: 1ex } .fancy img { display:block; } .fancy :link:hover, .fancy :visited:hover { background: wheat } .fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex } .fancy li p { margin: 1em 0 } /* End of "fancyformat" specific rules. */ .yyterm { background: #fff; border: 1px solid #000; border-radius: 11px; padding-left: 4px; padding-right: 4px; } </style> </head> <body> <div><!-- container div to satisfy validator --> <a href="../index.html"> <img class="logo" src="../images/sqlite370_banner.gif" alt="SQLite Logo" border="0"></a> <div><!-- IE hack to prevent disappearing logo--></div> <div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div> <table width=100% class="menubar"><tr> <td width=100%> <div class="toolbar"> <a href="../about.html">About</a> <a href="../docs.html">Documentation</a> <a href="../download.html">Download</a> <a href="../copyright.html">License</a> <a href="../support.html">Support</a> <a href="http://www.hwaci.com/sw/sqlite/prosupport.html">Purchase</a> </div> <script> gMsg = "Search SQLite Docs..." function entersearch() { var q = document.getElementById("q"); if( q.value == gMsg ) { q.value = "" } q.style.color = "black" q.style.fontStyle = "normal" } function leavesearch() { var q = document.getElementById("q"); if( q.value == "" ) { q.value = gMsg q.style.color = "#044a64" q.style.fontStyle = "italic" } } function hideorshow(btn,obj){ var x = document.getElementById(obj); var b = document.getElementById(btn); if( x.style.display!='none' ){ x.style.display = 'none'; b.innerHTML='show'; }else{ x.style.display = ''; b.innerHTML='hide'; } return false; } </script> <td> <div style="padding:0 1em 0px 0;white-space:nowrap"> <form name=f method="GET" action="https://www.sqlite.org/search"> <input id=q name=q type=text onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs..."> <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex"> </form> </div> </table> <div class=startsearch></div> <a href="intro.html"><h2>SQLite C Interface</h2></a><h2>Enable Or Disable Extension Loading</h2><blockquote><pre>int sqlite3_enable_load_extension(sqlite3 *db, int onoff); </pre></blockquote><p> So as not to open security holes in older applications that are unprepared to deal with <a href="../loadext.html">extension loading</a>, and as a means of disabling <a href="../loadext.html">extension loading</a> while evaluating user-entered SQL, the following API is provided to turn the <a href="../c3ref/load_extension.html">sqlite3_load_extension()</a> mechanism on and off.</p> <p>Extension loading is off by default. Call the sqlite3_enable_load_extension() routine with onoff==1 to turn extension loading on and call it with onoff==0 to turn it back off again. </p><p>See also lists of <a href="objlist.html">Objects</a>, <a href="constlist.html">Constants</a>, and <a href="funclist.html">Functions</a>.</p>
andrasigneczi/TravelOptimizer
doc/sqlite-doc-3120000/c3ref/enable_load_extension.html
HTML
apache-2.0
5,035
# Sopubia similis Skan SPECIES #### Status ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Orobanchaceae/Sopubia/Sopubia similis/README.md
Markdown
apache-2.0
170
/* Copyright 2013 Semantic Discovery, Inc. (www.semanticdiscovery.com) This file is part of the Semantic Discovery Toolkit. The Semantic Discovery Toolkit 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. The Semantic Discovery Toolkit 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 Semantic Discovery Toolkit. If not, see <http://www.gnu.org/licenses/>. */ package org.sd.token; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; import org.sd.nlp.NormalizedString; /** * An nlp.NormalizedString implementation based on this package's tokenization. * <p> * @author Spence Koehler */ public class TokenizerNormalizedString implements NormalizedString { private TokenizerBasedNormalizer normalizer; private StandardTokenizer tokenizer; private boolean lowerCaseFlag; private boolean computed; private Normalization _normalization; /** * Construct with default case-sensitive settings. */ public TokenizerNormalizedString(String string) { this(TokenizerBasedNormalizer.CASE_SENSITIVE_INSTANCE, new StandardTokenizer(string, TokenizerBasedNormalizer.DEFAULT_TOKENIZER_OPTIONS), false); } /** * Construct with the given settings. */ public TokenizerNormalizedString(TokenizerBasedNormalizer normalizer, StandardTokenizer tokenizer, boolean lowerCaseFlag) { this.normalizer = normalizer; this.tokenizer = tokenizer; this.lowerCaseFlag = lowerCaseFlag; this.computed = false; reset(); } public StandardTokenizer getTokenizer() { return tokenizer; } public void setLowerCaseFlag(boolean lowerCaseFlag) { if (lowerCaseFlag != this.lowerCaseFlag) { this.lowerCaseFlag = lowerCaseFlag; reset(); } } public boolean getLowerCaseFlag() { return lowerCaseFlag; } /** * Set a flag indicating whether to split on camel-casing. */ public void setSplitOnCamelCase(boolean splitOnCamelCase) { final Break curBreak = tokenizer.getOptions().getLowerUpperBreak(); final Break nextBreak = splitOnCamelCase ? Break.ZERO_WIDTH_SOFT_BREAK : Break.NO_BREAK; if (curBreak != nextBreak) { final StandardTokenizerOptions newOptions = new StandardTokenizerOptions(tokenizer.getOptions()); newOptions.setLowerUpperBreak(nextBreak); this.tokenizer = new StandardTokenizer(tokenizer.getText(), newOptions); reset(); } } private final void reset() { this.computed = false; } /** * Get the flag indicating whether to split on camel-casing. */ public boolean getSplitOnCamelCase() { return tokenizer.getOptions().getLowerUpperBreak() != Break.NO_BREAK; } /** * Get the length of the normalized string. */ public int getNormalizedLength() { return getNormalized().length(); } /** * Get the normalized string. * <p> * Note that the normalized string may apply to only a portion of the full * original string. */ public String getNormalized() { return getNormalization().getNormalized(); } public String toString() { return getNormalized(); } /** * Get the normalized string from the start (inclusive) to end (exclusive). * <p> * Note that the normalized string may apply to only a portion of the full * original string. */ public String getNormalized(int startPos, int endPos) { return getNormalized().substring(startPos, endPos); } /** * Get the original string that applies to the normalized string. */ public String getOriginal() { return tokenizer.getText(); } /** * Get the original string that applies to the normalized string from the * given index for the given number of normalized characters. */ public String getOriginal(int normalizedStartIndex, int normalizedLength) { final int origStartIdx = getOriginalIndex(normalizedStartIndex); final int origEndIdx = getOriginalIndex(normalizedStartIndex + normalizedLength); return getOriginal().substring(origStartIdx, origEndIdx); } /** * Get the index in the original string corresponding to the normalized index. */ public int getOriginalIndex(int normalizedIndex) { final Integer result = getNormalization().getOriginalIndex(normalizedIndex); return result == null ? -1 : result; } /** * Get a new normalized string for the portion of this normalized string * preceding the normalized start index (exclusive). Remove extra whitespace * at the end of the returned string. Ensure that the returned string ends * on an end token boundary. * * @return the preceding normalized string or null if empty (after skipping white). */ public NormalizedString getPreceding(int normalizedStartIndex) { return getPreceding(normalizedStartIndex, true); } /** * Get a new normalized string for the portion of this normalized string * preceding the normalized start index (exclusive). Remove extra whitespace * at the end of the returned string. * * @param normalizedStartIndex a token start position in the normalized string beyond the result * @param checkEndBreak when true, skip back over non breaking chars to ensure result ends at a break. * * @return the preceding normalized string or null if empty (after skipping white). */ public NormalizedString getPreceding(int normalizedStartIndex, boolean checkEndBreak) { NormalizedString result = null; final int origIdx = getOriginalIndex(normalizedStartIndex); if (origIdx >= 0) { final Token token = tokenizer.getToken(origIdx); if (token != null) { final String priorText = checkEndBreak ? tokenizer.getPriorText(token) : tokenizer.getText().substring(0, token.getStartIndex()).trim(); if (!"".equals(priorText)) { result = normalizer.normalize(priorText); } } } return result; } /** * Find the (normalized) index of the nth token preceding the normalizedPos. * <p> * If normalizedPos is -1, start from the end of the string. * If the beginning of the string is fewer than numTokens prior to normalizedPos, * return the beginning of the string. */ public int getPrecedingIndex(int normalizedPos, int numTokens) { int result = normalizedPos < 0 ? getNormalization().getNormalizedLength() : normalizedPos; // skip back to the numTokens-th start break. int numStarts = 0; for (; result > 0 && numStarts < numTokens; result = findPrecedingTokenStart(result)) { ++numStarts; } return result; } /** * Find the start of the token before the normalizedPos. * <p> * If normalizedPos is at a token start, the prior token (or -1 if there is * no prior token) will be returned; otherwise, the start of the token of * which normalizedPos is a part will be returned. */ public int findPrecedingTokenStart(int normalizedPos) { final Integer priorStart = getNormalization().getBreaks().lower(normalizedPos); return priorStart == null ? -1 : priorStart; } /** * Get a new normalized string for the portion of this normalized string * following the normalized start index (inclusive). Remove extra whitespace * at the beginning of the returned string. * * @return the following normalized string or null if empty (after skipping white). */ public NormalizedString getRemaining(int normalizedStartIndex) { NormalizedString result = null; final int origIdx = getOriginalIndex(normalizedStartIndex); if (origIdx >= 0) { final String origText = tokenizer.getText(); final int origLen = origText.length(); if (origIdx < origLen) { final String remainingText = origText.substring(origIdx).trim(); if (!"".equals(remainingText)) { result = normalizer.normalize(remainingText); } } } return result; } /** * Build a normalized string from this using the given normalized index range. */ public NormalizedString buildNormalizedString(int normalizedStartIndex, int normalizedEndIndex) { NormalizedString result = null; final int origStartIdx = getOriginalIndex(normalizedStartIndex); if (origStartIdx >= 0) { final int origEndIdx = getOriginalIndex(normalizedEndIndex); if (origEndIdx > origStartIdx) { final String origText = tokenizer.getText(); final int origLen = origText.length(); if (origStartIdx < origLen) { final String string = origText.substring(origStartIdx, Math.min(origEndIdx, origLen)); result = normalizer.normalize(string); } } } return result; } /** * Lowercase the normalized form in this instance. * * @return this instance. */ public NormalizedString toLowerCase() { getNormalization().toLowerCase(); return this; } /** * Get the normalized string's chars. */ public char[] getNormalizedChars() { return getNormalization().getNormalizedChars(); } /** * Get the normalized char at the given (normalized) index. * <p> * NOTE: Bounds checking is left up to the caller. */ public char getNormalizedChar(int index) { return getNormalization().getNormalizedChars()[index]; } /** * Get the original code point corresponding to the normalized char at the * (normalized) index. * <p> * NOTE: Bounds checking is left up to the caller. */ public int getOriginalCodePoint(int nIndex) { int result = 0; final int origIdx = getOriginalIndex(nIndex); if (origIdx >= 0) { final String origText = tokenizer.getText(); final int origLen = origText.length(); if (origIdx < origLen) { result = origText.codePointAt(origIdx); } } return result; } /** * Determine whether the original character corresponding to the normalized * index is a letter or digit. */ public boolean isLetterOrDigit(int nIndex) { return Character.isLetterOrDigit(getOriginalCodePoint(nIndex)); } /** * Get the ORIGINAL index of the first symbol (non-letter, digit, or white * character) prior to the NORMALIZED index in the full original string. * * @return -1 if no symbol is found or the index of the found symbol in the * original input string. */ public int findPreviousSymbolIndex(int nIndex) { int result = -1; final int origIdx = getOriginalIndex(nIndex); if (origIdx >= 0) { final String origText = tokenizer.getText(); final int origLen = origText.length(); for (result = Math.min(origIdx, origLen) - 1; result >= 0; --result) { final int cp = origText.codePointAt(result); if (cp != ' ' && !Character.isLetterOrDigit(cp)) break; } } return result; } /** * Determine whether the normalized string has a digit between the normalized * start (inclusive) and end (exclusive). */ public boolean hasDigit(int nStartIndex, int nEndIndex) { boolean result = false; final char[] nchars = getNormalization().getNormalizedChars(); nEndIndex = Math.min(nEndIndex, nchars.length); for (int idx = Math.max(nStartIndex, 0); idx < nEndIndex; ++idx) { final char c = nchars[idx]; if (c <= '9' && c >= '0') { result = true; break; } } return result; } /** * Count the number of normalized words in the given range. */ public int numWords(int nStartIndex, int nEndIndex) { int result = 0; final Normalization normalization = getNormalization(); final TreeSet<Integer> breaks = normalization.getBreaks(); final int nLen = normalization.getNormalizedLength(); nEndIndex = Math.min(nEndIndex, nLen); for (int idx = Math.max(nStartIndex, 0); idx < nEndIndex && idx >= 0; idx = breaks.higher(idx)) { if (idx == nEndIndex - 1) break; // nEndIdex as at the beginning of a word -- doesn't count ++result; } return result; } /** * Determine whether there is a break before the normalized startIndex. */ public boolean isStartBreak(int startIndex) { return getNormalization().isBreak(startIndex - 1); } /** * Determine whether there is a break after the normalized endIndex. */ public boolean isEndBreak(int endIndex) { return getNormalization().isBreak(endIndex + 1); } /** * Get (first) the normalized index that best corresponds to the original index. */ public int getNormalizedIndex(int originalIndex) { return getNormalization().getNormalizedIndex(originalIndex); } /** * Split into normalized token strings. */ public String[] split() { return getNormalization().getNormalized().split("\\s+"); } /** * Split into normalized token strings, removing stopwords. */ public String[] split(Set<String> stopwords) { final List<String> result = new ArrayList<String>(); for (NormalizedToken token = getToken(0, true); token != null; token = token.getNext(true)) { final String ntoken = token.getNormalized(); if (stopwords == null || !stopwords.contains(ntoken)) { result.add(ntoken); } } return result.toArray(new String[result.size()]); } /** * Split this normalized string into tokens. */ public NormalizedToken[] tokenize() { final List<NormalizedToken> result = new ArrayList<NormalizedToken>(); for (NormalizedToken token = getToken(0, true); token != null; token = token.getNext(true)) { result.add(token); } return result.toArray(new NormalizedToken[result.size()]); } /** * Get the token starting from the start position, optionally skipping to a * start break first. * * @return the token or null if there are no tokens to get. */ public NormalizedToken getToken(int startPos, boolean skipToBreak) { NormalizedToken result = null; startPos = getTokenStart(startPos, skipToBreak); if (startPos < getNormalization().getNormalizedLength()) { final int endPos = getTokenEnd(startPos); result = new NormalizedToken(this, startPos, endPos); } return result; } /** * Get the token after the given token, optionally skipping to a start * break first. */ public NormalizedToken getNextToken(NormalizedToken curToken, boolean skipToBreak) { NormalizedToken result = null; if (curToken != null) { final Normalization normalization = getNormalization(); final TreeSet<Integer> breaks = normalization.getBreaks(); final int nLen = normalization.getNormalizedLength(); int curEndPos = curToken.getEndPos(); if (skipToBreak && !normalization.isBreak(curEndPos)) { final Integer nextBreak = breaks.higher(curEndPos); curEndPos = (nextBreak == null) ? nLen : nextBreak; } if (curEndPos < nLen) { final int startPos = getTokenStart(curEndPos + 1, true); if (startPos < nLen) { final int nextEndPos = getTokenEnd(startPos); result = new NormalizedToken(this, startPos, nextEndPos); } } } return result; } /** * Get the normalized token start pos at or after (normalized) startPos * after optionally skipping to a token start position (if not already * at one.) */ private final int getTokenStart(int startPos, boolean skipToBreak) { final Normalization normalization = getNormalization(); final TreeSet<Integer> breaks = normalization.getBreaks(); final int nLen = normalization.getNormalizedLength(); if (skipToBreak && !isStartBreak(startPos)) { final Integer nextBreak = breaks.ceiling(startPos); startPos = nextBreak == null ? nLen : nextBreak + 1; } return startPos; } /** * Get the normalized index just after the token starting at (normalized) startPos. */ private final int getTokenEnd(int startPos) { final Normalization normalization = getNormalization(); final TreeSet<Integer> breaks = normalization.getBreaks(); final int nLen = normalization.getNormalizedLength(); final Integer endPos = breaks.higher(startPos); return endPos == null ? nLen : endPos; } protected final Normalization getNormalization() { if (!computed) { computeNormalization(); } return _normalization; } private final void computeNormalization() { this._normalization = buildNewNormalization(tokenizer, lowerCaseFlag); for (Token token = tokenizer.getToken(0); token != null; token = token.getNextToken()) { _normalization.updateWithToken(token); } this.computed = true; } protected Normalization buildNewNormalization(StandardTokenizer tokenizer, boolean lowerCaseFlag) { return new Normalization(tokenizer, lowerCaseFlag); } public static class Normalization { private StandardTokenizer tokenizer; private boolean lowerCaseFlag; private StringBuilder normalized; private Map<Integer, Integer> norm2orig; private TreeSet<Integer> breaks; private char[] _nchars; public Normalization(StandardTokenizer tokenizer, boolean lowerCaseFlag) { this.tokenizer = tokenizer; this.lowerCaseFlag = lowerCaseFlag; this.normalized = new StringBuilder(); this.norm2orig = new HashMap<Integer, Integer>(); this.breaks = new TreeSet<Integer>(); this._nchars = null; } public final StandardTokenizer getTokenizer() { return tokenizer; } public final boolean getLowerCaseFlag() { return lowerCaseFlag; } /** Get original input. */ public final String getInput() { return tokenizer.getText(); } /** Get the normalized string. */ public final String getNormalized() { return normalized.toString(); } public final char[] getNormalizedChars() { if (_nchars == null) { _nchars = normalized.toString().toCharArray(); } return _nchars; } public final int getNormalizedLength() { return normalized.length(); } public final int getOriginalIndex(int normalizedIndex) { final Integer result = (normalizedIndex == normalized.length()) ? tokenizer.getText().length() : norm2orig.get(normalizedIndex); return result == null ? -1 : result; } public final int getNormalizedIndex(int originalIndex) { int result = -1; for (Map.Entry<Integer, Integer> entry : norm2orig.entrySet()) { final int normIdx = entry.getKey(); final int origIdx = entry.getValue(); if (originalIndex == origIdx) { // maps to normalized char result = normIdx; break; } else if (originalIndex > origIdx) { // maps back to normalized white (break) result = normIdx - 1; break; } } return result; } /** * Determine whether there is a break at the given index. */ public final boolean isBreak(int normalizedIndex) { return !norm2orig.containsKey(normalizedIndex); } /** Get the normalized break positions (not including string start or end). */ public final TreeSet<Integer> getBreaks() { return breaks; } /** Lowercase this instance's normalized chars. */ public final void toLowerCase() { final String newNorm = normalized.toString().toLowerCase(); this.normalized.setLength(0); this.normalized.append(newNorm); this._nchars = null; } /** * Build the next normalized chars from the given token using * the "appendX" method calls. */ protected void updateWithToken(Token token) { final String tokenText = lowerCaseFlag ? token.getText().toLowerCase() : token.getText(); appendNormalizedText(token.getStartIndex(), tokenText, true); } /** * Append each normalized character originally starting at startIdx. */ protected final void appendNormalizedText(int startIdx, String normalizedTokenText) { appendNormalizedText(startIdx, normalizedTokenText, true); } /** * Append each normalized character originally starting at startIdx. */ protected final void appendNormalizedText(int startIdx, String normalizedTokenText, boolean addWhite) { final int len = normalizedTokenText.length(); for (int i = 0; i < len; ++i) { final char c = normalizedTokenText.charAt(i); appendNormalizedChar(startIdx++, c, addWhite && i == 0); } } /** * Append the normalized character originally starting at origIdx. */ protected final void appendNormalizedChar(int origIdx, char c, boolean addWhite) { int normIdx = normalized.length(); if (normIdx > 0 && addWhite) { normalized.append(' '); breaks.add(normIdx++); } norm2orig.put(normIdx, origIdx); normalized.append(c); _nchars = null; } /** * Append the normalized characters all expanding from the originalIdx. */ protected final void appendExpandedText(int origIdx, String chars) { appendExpandedText(origIdx, chars, true); } /** * Append the normalized characters all expanding from the originalIdx. */ protected final void appendExpandedText(int origIdx, String chars, boolean addWhite) { final int len = chars.length(); for (int i = 0; i < chars.length(); ++i) { final char c = chars.charAt(i); appendNormalizedChar(origIdx, c, addWhite && i == 0); } } } }
KoehlerSB747/sd-tools
src/main/java/org/sd/token/TokenizerNormalizedString.java
Java
apache-2.0
22,049
package lodVader.spring.REST.models.degree; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import org.junit.Test; import com.mongodb.BasicDBList; import com.mongodb.BasicDBObject; import com.mongodb.DBCollection; import com.mongodb.DBCursor; import com.mongodb.DBObject; import lodVader.mongodb.DBSuperClass2; import lodVader.mongodb.collections.DatasetDB; import lodVader.mongodb.collections.DatasetLinksetDB; import lodVader.mongodb.collections.LinksetDB; import lodVader.mongodb.collections.ResourceDB; public class IndegreeDatasetModel { public StringBuilder result = new StringBuilder(); public boolean isVocabulary = true; public boolean isDeadLinks = false; /** * MapReduce functions for indegree linksets */ public String mapindegreeWithVocabs; public String mapindegreeNoVocabs; public String reduceinDegree; class Result implements Comparator<Result>, Comparable<Result> { int targetDataset; int links = 0; HashSet<Integer> sourceDatasetList = new HashSet<>(); @Override public int compare(Result o1, Result o2) { return o1.links - o2.links; } @Override public int compareTo(Result o) { return this.sourceDatasetList.size() - o.sourceDatasetList.size(); } } HashMap<Integer, Result> tmpResults = new HashMap<Integer, Result>(); ArrayList<Result> finalList = new ArrayList<Result>(); @Test public void calc() { /** * MapReduce to find indegree with vocabularies */ result.append("===============================================================\n"); result.append("Comparing with vocabularies\n"); result.append("===============================================================\n\n"); DBCollection collection = DBSuperClass2.getDBInstance().getCollection(DatasetLinksetDB.COLLECTION_NAME); DBCursor instances; if(!isDeadLinks){ BasicDBList and = new BasicDBList(); // and.add(new BasicDBObject(DatasetLinksetDB.LINKS, new BasicDBObject("$gt", 0))); // and.add(new BasicDBObject(DatasetLinksetDB.DATASET_SOURCE, new BasicDBObject("$ne", DatasetLinksetDB.DATASET_TARGET))); instances = collection.find( new BasicDBObject(DatasetLinksetDB.LINKS, new BasicDBObject("$gt", 0))); } else{ BasicDBList and = new BasicDBList(); // and.add(new BasicDBObject(DatasetLinksetDB.DEAD_LINKS, new BasicDBObject("$gt", 0))); // and.add(new BasicDBObject(DatasetLinksetDB.DATASET_SOURCE, new BasicDBObject("$ne", DatasetLinksetDB.DATASET_TARGET))); // instances = collection.find( new BasicDBObject("$and", and)); instances = collection.find(new BasicDBObject(DatasetLinksetDB.DEAD_LINKS, new BasicDBObject("$gt", 0))); } for (DBObject object : instances) { DatasetLinksetDB linkset = new DatasetLinksetDB(object); if (linkset.getDistributionTargetIsVocabulary() == isVocabulary) { Result result = tmpResults.get(linkset.getDatasetTarget()); if (result == null) { result = new Result(); } if (isDeadLinks) result.links = result.links + linkset.getDeadLinks(); else result.links = result.links + linkset.getLinks(); result.sourceDatasetList.add(linkset.getDatasetSource()); result.targetDataset = linkset.getDatasetTarget(); tmpResults.put(linkset.getDatasetTarget(), result); } } for (Integer r : tmpResults.keySet()) { finalList.add(tmpResults.get(r)); } result.append("\n===== Sorted by links======="); Collections.sort(finalList, new Result()); printTableindegree(); result.append("\n===== Sorted by number of datasets======="); Collections.sort(finalList); printTableindegree(); result.append("\n\n\n\n===============================================================\n"); result.append("Comparing without vocabularies\n"); result.append("===============================================================\n\n"); tmpResults = new HashMap<Integer, Result>(); finalList = new ArrayList<Result>(); isVocabulary = false; for (DBObject object : instances) { DatasetLinksetDB linkset = new DatasetLinksetDB(object); if (linkset.getDistributionTargetIsVocabulary() == isVocabulary) { Result result = tmpResults.get(linkset.getDatasetTarget()); if (result == null) { result = new Result(); } if (isDeadLinks) result.links = result.links + linkset.getDeadLinks(); else result.links = result.links + linkset.getLinks(); result.sourceDatasetList.add(linkset.getDatasetSource()); result.targetDataset = linkset.getDatasetTarget(); tmpResults.put(linkset.getDatasetTarget(), result); } } for (Integer r : tmpResults.keySet()) { finalList.add(tmpResults.get(r)); } result.append("\n===== Sorted by links======="); Collections.sort(finalList, new Result()); printTableindegree(); result.append("\n===== Sorted by number of datasets======="); Collections.sort(finalList); printTableindegree(); } private void printTableindegree() { result.append("\n\nName\t indegree \t Links \n"); DatasetDB tmpDataset; for (Result r : finalList) { tmpDataset = new DatasetDB(r.targetDataset); result.append(tmpDataset.getTitle()); result.append("\t" + r.sourceDatasetList.size()); result.append("\t" + r.links); result.append("\n"); } result.append("\n\n\n"); } }
AKSW/LODVader
src/main/java/lodVader/spring/REST/models/degree/IndegreeDatasetModel.java
Java
apache-2.0
5,358
package no.api.regurgitator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import io.dropwizard.Configuration; import javax.validation.Valid; import javax.validation.constraints.NotNull; @JsonIgnoreProperties(ignoreUnknown = true) public class RegurgitatorConfiguration extends Configuration { @Valid @NotNull @JsonProperty private int proxyPort; @Valid @JsonProperty private String archivedFolder; @Valid @NotNull @JsonProperty private Boolean recordOnStart; @Valid @NotNull @JsonProperty private String storageManager; public int getProxyPort() { return proxyPort; } public String getStorageManager() { return storageManager; } public Boolean getRecordOnStart() { return recordOnStart; } public String getArchivedFolder() { return archivedFolder; } }
amedia/regurgitator
regurgitator-service/src/main/java/no/api/regurgitator/RegurgitatorConfiguration.java
Java
apache-2.0
958
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> <title>TestBatchHRegionLockingAndWrites xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> <body> <pre> <a name="1" href="#1">1</a> <em class="jxr_javadoccomment">/**</em> <a name="2" href="#2">2</a> <em class="jxr_javadoccomment"> * Copyright 2010 The Apache Software Foundation</em> <a name="3" href="#3">3</a> <em class="jxr_javadoccomment"> *</em> <a name="4" href="#4">4</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em> <a name="5" href="#5">5</a> <em class="jxr_javadoccomment"> * or more contributor license agreements. See the NOTICE file</em> <a name="6" href="#6">6</a> <em class="jxr_javadoccomment"> * distributed with this work for additional information</em> <a name="7" href="#7">7</a> <em class="jxr_javadoccomment"> * regarding copyright ownership. The ASF licenses this file</em> <a name="8" href="#8">8</a> <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em> <a name="9" href="#9">9</a> <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em> <a name="10" href="#10">10</a> <em class="jxr_javadoccomment"> * with the License. You may obtain a copy of the License at</em> <a name="11" href="#11">11</a> <em class="jxr_javadoccomment"> *</em> <a name="12" href="#12">12</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em> <a name="13" href="#13">13</a> <em class="jxr_javadoccomment"> *</em> <a name="14" href="#14">14</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em> <a name="15" href="#15">15</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em> <a name="16" href="#16">16</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em> <a name="17" href="#17">17</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em> <a name="18" href="#18">18</a> <em class="jxr_javadoccomment"> * limitations under the License.</em> <a name="19" href="#19">19</a> <em class="jxr_javadoccomment"> */</em> <a name="20" href="#20">20</a> <strong class="jxr_keyword">package</strong> org.apache.hadoop.hbase.regionserver; <a name="21" href="#21">21</a> <a name="22" href="#22">22</a> <strong class="jxr_keyword">import</strong> com.google.common.collect.Lists; <a name="23" href="#23">23</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.conf.Configuration; <a name="24" href="#24">24</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.fs.FileSystem; <a name="25" href="#25">25</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.fs.Path; <a name="26" href="#26">26</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.*; <a name="27" href="#27">27</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.Mutation; <a name="28" href="#28">28</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.Put; <a name="29" href="#29">29</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.io.HeapSize; <a name="30" href="#30">30</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.regionserver.wal.HLog; <a name="31" href="#31">31</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.util.Bytes; <a name="32" href="#32">32</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.util.HashedBytes; <a name="33" href="#33">33</a> <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.util.Pair; <a name="34" href="#34">34</a> <strong class="jxr_keyword">import</strong> org.junit.Test; <a name="35" href="#35">35</a> <strong class="jxr_keyword">import</strong> org.junit.experimental.categories.Category; <a name="36" href="#36">36</a> <a name="37" href="#37">37</a> <strong class="jxr_keyword">import</strong> java.io.IOException; <a name="38" href="#38">38</a> <strong class="jxr_keyword">import</strong> java.util.List; <a name="39" href="#39">39</a> <a name="40" href="#40">40</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals; <a name="41" href="#41">41</a> <a name="42" href="#42">42</a> <a name="43" href="#43">43</a> @Category(SmallTests.<strong class="jxr_keyword">class</strong>) <a name="44" href="#44">44</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/hadoop/hbase/regionserver/TestBatchHRegionLockingAndWrites.html">TestBatchHRegionLockingAndWrites</a> { <a name="45" href="#45">45</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String FAMILY = <span class="jxr_string">"a"</span>; <a name="46" href="#46">46</a> <a name="47" href="#47">47</a> @Test <a name="48" href="#48">48</a> @SuppressWarnings(<span class="jxr_string">"unchecked"</span>) <a name="49" href="#49">49</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRedundantRowKeys() <strong class="jxr_keyword">throws</strong> Exception { <a name="50" href="#50">50</a> <a name="51" href="#51">51</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> batchSize = 100000; <a name="52" href="#52">52</a> <a name="53" href="#53">53</a> String tableName = getClass().getSimpleName(); <a name="54" href="#54">54</a> Configuration conf = HBaseConfiguration.create(); <a name="55" href="#55">55</a> conf.setClass(HConstants.REGION_IMPL, MockHRegion.<strong class="jxr_keyword">class</strong>, HeapSize.<strong class="jxr_keyword">class</strong>); <a name="56" href="#56">56</a> <a href="../../../../../org/apache/hadoop/hbase/regionserver/TestHBase7051.html">MockHRegion</a> region = (MockHRegion) TestHRegion.initHRegion(Bytes.toBytes(tableName), tableName, conf, Bytes.toBytes(<span class="jxr_string">"a"</span>)); <a name="57" href="#57">57</a> <a name="58" href="#58">58</a> List&lt;Pair&lt;Mutation, Integer&gt;&gt; someBatch = Lists.newArrayList(); <a name="59" href="#59">59</a> <strong class="jxr_keyword">int</strong> i = 0; <a name="60" href="#60">60</a> <strong class="jxr_keyword">while</strong> (i &lt; batchSize) { <a name="61" href="#61">61</a> <strong class="jxr_keyword">if</strong> (i % 2 == 0) { <a name="62" href="#62">62</a> someBatch.add(<strong class="jxr_keyword">new</strong> Pair&lt;Mutation, Integer&gt;(<strong class="jxr_keyword">new</strong> Put(Bytes.toBytes(0)), <strong class="jxr_keyword">null</strong>)); <a name="63" href="#63">63</a> } <strong class="jxr_keyword">else</strong> { <a name="64" href="#64">64</a> someBatch.add(<strong class="jxr_keyword">new</strong> Pair&lt;Mutation, Integer&gt;(<strong class="jxr_keyword">new</strong> Put(Bytes.toBytes(1)), <strong class="jxr_keyword">null</strong>)); <a name="65" href="#65">65</a> } <a name="66" href="#66">66</a> i++; <a name="67" href="#67">67</a> } <a name="68" href="#68">68</a> <strong class="jxr_keyword">long</strong> start = System.nanoTime(); <a name="69" href="#69">69</a> region.batchMutate(someBatch.toArray(<strong class="jxr_keyword">new</strong> Pair[0])); <a name="70" href="#70">70</a> <strong class="jxr_keyword">long</strong> duration = System.nanoTime() - start; <a name="71" href="#71">71</a> System.out.println(<span class="jxr_string">"Batch mutate took: "</span> + duration + <span class="jxr_string">"ns"</span>); <a name="72" href="#72">72</a> assertEquals(2, region.getAcquiredLockCount()); <a name="73" href="#73">73</a> } <a name="74" href="#74">74</a> <a name="75" href="#75">75</a> @Test <a name="76" href="#76">76</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGettingTheLockMatchesMyRow() <strong class="jxr_keyword">throws</strong> Exception { <a name="77" href="#77">77</a> <a href="../../../../../org/apache/hadoop/hbase/regionserver/TestHBase7051.html">MockHRegion</a> region = getMockHRegion(); <a name="78" href="#78">78</a> HashedBytes rowKey = <strong class="jxr_keyword">new</strong> HashedBytes(Bytes.toBytes(1)); <a name="79" href="#79">79</a> assertEquals(Integer.valueOf(2), region.getLock(<strong class="jxr_keyword">null</strong>, rowKey, false)); <a name="80" href="#80">80</a> assertEquals(Integer.valueOf(2), region.getLock(2, rowKey, false)); <a name="81" href="#81">81</a> } <a name="82" href="#82">82</a> <a name="83" href="#83">83</a> <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/regionserver/TestHBase7051.html">MockHRegion</a> getMockHRegion() <strong class="jxr_keyword">throws</strong> IOException { <a name="84" href="#84">84</a> String tableName = getClass().getSimpleName(); <a name="85" href="#85">85</a> Configuration conf = HBaseConfiguration.create(); <a name="86" href="#86">86</a> conf.setClass(HConstants.REGION_IMPL, MockHRegion.<strong class="jxr_keyword">class</strong>, HeapSize.<strong class="jxr_keyword">class</strong>); <a name="87" href="#87">87</a> <strong class="jxr_keyword">return</strong> (MockHRegion) TestHRegion.initHRegion(Bytes.toBytes(tableName), tableName, conf, Bytes.toBytes(FAMILY)); <a name="88" href="#88">88</a> } <a name="89" href="#89">89</a> <a name="90" href="#90">90</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/hadoop/hbase/regionserver/TestHBase7051.html">MockHRegion</a> <strong class="jxr_keyword">extends</strong> HRegion { <a name="91" href="#91">91</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> acqioredLockCount = 0; <a name="92" href="#92">92</a> <a name="93" href="#93">93</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/hadoop/hbase/regionserver/TestHBase7051.html">MockHRegion</a>(Path tableDir, HLog log, FileSystem fs, Configuration conf, <strong class="jxr_keyword">final</strong> HRegionInfo regionInfo, <strong class="jxr_keyword">final</strong> HTableDescriptor htd, RegionServerServices rsServices) { <a name="94" href="#94">94</a> <strong class="jxr_keyword">super</strong>(tableDir, log, fs, conf, regionInfo, htd, rsServices); <a name="95" href="#95">95</a> } <a name="96" href="#96">96</a> <a name="97" href="#97">97</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> getAcquiredLockCount() { <a name="98" href="#98">98</a> <strong class="jxr_keyword">return</strong> acqioredLockCount; <a name="99" href="#99">99</a> } <a name="100" href="#100">100</a> <a name="101" href="#101">101</a> @Override <a name="102" href="#102">102</a> <strong class="jxr_keyword">public</strong> Integer getLock(Integer lockid, HashedBytes row, <strong class="jxr_keyword">boolean</strong> waitForLock) <strong class="jxr_keyword">throws</strong> IOException { <a name="103" href="#103">103</a> acqioredLockCount++; <a name="104" href="#104">104</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">super</strong>.getLock(lockid, row, waitForLock); <a name="105" href="#105">105</a> } <a name="106" href="#106">106</a> } <a name="107" href="#107">107</a> } </pre> <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body> </html>
wanhao/IRIndex
docs/xref-test/org/apache/hadoop/hbase/regionserver/TestBatchHRegionLockingAndWrites.html
HTML
apache-2.0
12,259
package org.minimalj.example.petclinic.frontend; import org.minimalj.backend.Backend; import org.minimalj.example.petclinic.model.Vet; import org.minimalj.frontend.Frontend; import org.minimalj.frontend.editor.Editor.NewObjectEditor; import org.minimalj.frontend.form.Form; public class AddVetEditor extends NewObjectEditor<Vet> { @Override protected Form<Vet> createForm() { Form<Vet> form = new Form<>(); form.line(Vet.$.person.firstName); form.line(Vet.$.person.lastName); form.line(Vet.$.specialties); return form; } @Override protected Vet save(Vet owner) { return Backend.save(owner); } @Override protected void finished(Vet newVet) { Frontend.show(new VetTablePage()); } }
BrunoEberhard/minimal-j
example/007_PetClinic/src/org/minimalj/example/petclinic/frontend/AddVetEditor.java
Java
apache-2.0
710
#!/usr/bin/env bash sudo apt-get update sudo apt-get -y install curl git vim git clone https://github.com/openstack-dev/devstack.git -b stable/icehouse devstack/ cd devstack/ wget https://gist.githubusercontent.com/everett-toews/3cbbf4c3d059848ac316/raw/6a18ded87190c87ac981e8682b783bb25aa9e844/local.conf ./stack.sh
everett-toews/devstack-vagrant
devstack.sh
Shell
apache-2.0
318
# -*- coding: utf-8 -*- # 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. # Glance Release Notes documentation build configuration file, created by # sphinx-quickstart on Tue Nov 3 17:40:50 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # sys.path.insert(0, os.path.abspath('.')) # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. # needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ 'oslosphinx', 'reno.sphinxext', ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. # source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'cellar Release Notes' copyright = u'2016, OpenStack Foundation' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. # The full version, including alpha/beta/rc tags. release = '' # The short X.Y version. version = '' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: # today = '' # Else, today_fmt is used as the format for a strftime call. # today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = [] # The reST default role (used for this markup: `text`) to use for all # documents. # default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. # add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). # add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. # show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. # modindex_common_prefix = [] # If true, keep warnings as "system message" paragraphs in the built documents. # keep_warnings = False # -- Options for HTML output ---------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. # html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". # html_title = None # A shorter title for the navigation bar. Default is the same as html_title. # html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. # html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. # html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied # directly to the root of the documentation. # html_extra_path = [] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. # html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. # html_use_smartypants = True # Custom sidebar templates, maps document names to template names. # html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. # html_additional_pages = {} # If false, no module index is generated. # html_domain_indices = True # If false, no index is generated. # html_use_index = True # If true, the index is split into individual pages for each letter. # html_split_index = False # If true, links to the reST sources are added to the pages. # html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. # html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. # html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a <link> tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. # html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). # html_file_suffix = None # Output file base name for HTML help builder. htmlhelp_basename = 'GlanceReleaseNotesdoc' # -- Options for LaTeX output --------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # 'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). # 'pointsize': '10pt', # Additional stuff for the LaTeX preamble. # 'preamble': '', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ ('index', 'GlanceReleaseNotes.tex', u'Glance Release Notes Documentation', u'Glance Developers', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. # latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. # latex_use_parts = False # If true, show page references after internal links. # latex_show_pagerefs = False # If true, show URL addresses after external links. # latex_show_urls = False # Documents to append as an appendix to all manuals. # latex_appendices = [] # If false, no module index is generated. # latex_domain_indices = True # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'glancereleasenotes', u'Glance Release Notes Documentation', [u'Glance Developers'], 1) ] # If true, show URL addresses after external links. # man_show_urls = False # -- Options for Texinfo output ------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ('index', 'GlanceReleaseNotes', u'Glance Release Notes Documentation', u'Glance Developers', 'GlanceReleaseNotes', 'One line description of project.', 'Miscellaneous'), ] # Documents to append as an appendix to all manuals. # texinfo_appendices = [] # If false, no module index is generated. # texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. # texinfo_show_urls = 'footnote' # If true, do not generate a @detailmenu in the "Top" node's menu. # texinfo_no_detailmenu = False
internap/arsenal
releasenotes/source/conf.py
Python
apache-2.0
8,940
/* * Copyright 2019 Frederic Thevenet * * 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 eu.binjr.common.javafx.controls; import javafx.scene.Node; import javafx.scene.SnapshotParameters; import javafx.scene.image.WritableImage; import javafx.scene.transform.Transform; import javafx.stage.Screen; public final class SnapshotUtils { public static WritableImage outputScaleAwareSnapshot(Node node) { return scaledSnapshot(node, 0.0,0.0); } public static WritableImage scaledSnapshot(Node node, double scaleX, double scaleY) { SnapshotParameters spa = new SnapshotParameters(); spa.setTransform(Transform.scale( scaleX == 0.0 ? Screen.getPrimary().getOutputScaleX() : scaleX, scaleY == 0.0 ? Screen.getPrimary().getOutputScaleY() : scaleY)); return node.snapshot(spa, null); } }
fthevenet/binjr
binjr-core/src/main/java/eu/binjr/common/javafx/controls/SnapshotUtils.java
Java
apache-2.0
1,413
FILES_TO_SERVE=index.html dmcc.js dmcc.css all: $(addprefix Deploy/, $(FILES_TO_SERVE)) Deploy/build_rules.json Deploy/build_rules.json: Source/process_build_rules.py cd Source && ./process_build_rules.py > ../[email protected] && mv ../[email protected] ../$@ Deploy/%: Source/% cp $< $@ run_server_old: all cd Deploy && php -S localhost:8081 run_server: all cd Deploy && node ../Source/dmcc_server.js clean: rm -f $(addprefix Deploy/, $(FILES_TO_SERVE)) rm -f Deploy/build_rules.json
benjaminy/DoesMyCodeCompile
Makefile
Makefile
apache-2.0
476
// // Client+Extensions.h // // MobileTech Conference 2014 // Copyright (c) 2014 Ivo Wessel. All rights reserved. // Fragen zum Quellcode? Unterstützung bei iOS-Projekten? Melden Sie sich bei mir... // // Ivo Wessel // Lehrter Str. 57, Haus 2 // D-10557 Berlin // Phone : +49-(0)30-89 62 64 77 // Mobile: +49-(0)177-4 86 93 77 // Skype : ivo.wessel // E-Mail: [email protected] // Web : www.we-make-apps.com // // ------------------------------------------------------------------------------------------------- @interface UIColor (Extensions) // ------------------------------------------------------------------------------------------------- - (float) red; - (float) green; - (float) blue; - (float) alpha; - (NSString *) cacheKey; + (UIColor *) randomColor; + (UIColor *) colorWithRed:(int) nRed green:(int) nGreen blue:(int) nBlue; // ------------------------------------------------------------------------------------------------- @end
platzerg/Biergarten
Biergarten/UIColor+Extensions.h
C
apache-2.0
1,012
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010 Citrix Systems, 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. """Test suite for XenAPI.""" import ast import contextlib import datetime import functools import os import re import mox from nova.compute import aggregate_states from nova.compute import instance_types from nova.compute import power_state from nova.compute import task_states from nova.compute import utils as compute_utils from nova.compute import vm_states from nova import context from nova import db from nova import exception from nova import flags from nova import log as logging from nova.openstack.common import importutils from nova import test from nova.tests.db import fakes as db_fakes from nova.tests import fake_network from nova.tests import fake_utils from nova.tests.glance import stubs as glance_stubs from nova.tests.xenapi import stubs from nova.virt.xenapi import connection as xenapi_conn from nova.virt.xenapi import fake as xenapi_fake from nova.virt.xenapi import vm_utils from nova.virt.xenapi import vmops from nova.virt.xenapi import volume_utils LOG = logging.getLogger(__name__) FLAGS = flags.FLAGS def stub_vm_utils_with_vdi_attached_here(function, should_return=True): """ vm_utils.with_vdi_attached_here needs to be stubbed out because it calls down to the filesystem to attach a vdi. This provides a decorator to handle that. """ @functools.wraps(function) def decorated_function(self, *args, **kwargs): @contextlib.contextmanager def fake_vdi_attached_here(*args, **kwargs): fake_dev = 'fakedev' yield fake_dev def fake_stream_disk(*args, **kwargs): pass def fake_is_vdi_pv(*args, **kwargs): return should_return orig_vdi_attached_here = vm_utils.vdi_attached_here orig_stream_disk = vm_utils._stream_disk orig_is_vdi_pv = vm_utils._is_vdi_pv try: vm_utils.vdi_attached_here = fake_vdi_attached_here vm_utils._stream_disk = fake_stream_disk vm_utils._is_vdi_pv = fake_is_vdi_pv return function(self, *args, **kwargs) finally: vm_utils._is_vdi_pv = orig_is_vdi_pv vm_utils._stream_disk = orig_stream_disk vm_utils.vdi_attached_here = orig_vdi_attached_here return decorated_function class XenAPIVolumeTestCase(test.TestCase): """Unit tests for Volume operations.""" def setUp(self): super(XenAPIVolumeTestCase, self).setUp() self.user_id = 'fake' self.project_id = 'fake' self.context = context.RequestContext(self.user_id, self.project_id) self.flags(target_host='127.0.0.1', xenapi_connection_url='test_url', xenapi_connection_password='test_pass', firewall_driver='nova.virt.xenapi.firewall.' 'Dom0IptablesFirewallDriver') db_fakes.stub_out_db_instance_api(self.stubs) xenapi_fake.reset() self.instance_values = {'id': 1, 'project_id': self.user_id, 'user_id': 'fake', 'image_ref': 1, 'kernel_id': 2, 'ramdisk_id': 3, 'root_gb': 20, 'instance_type_id': '3', # m1.large 'os_type': 'linux', 'architecture': 'x86-64'} def _create_volume(self, size='0'): """Create a volume object.""" vol = {} vol['size'] = size vol['user_id'] = 'fake' vol['project_id'] = 'fake' vol['host'] = 'localhost' vol['availability_zone'] = FLAGS.storage_availability_zone vol['status'] = "creating" vol['attach_status'] = "detached" return db.volume_create(self.context, vol) @staticmethod def _make_info(): return { 'driver_volume_type': 'iscsi', 'data': { 'volume_id': 1, 'target_iqn': 'iqn.2010-10.org.openstack:volume-00000001', 'target_portal': '127.0.0.1:3260,fake', 'target_lun': None, 'auth_method': 'CHAP', 'auth_method': 'fake', 'auth_method': 'fake', } } def test_mountpoint_to_number(self): cases = { 'sda': 0, 'sdp': 15, 'hda': 0, 'hdp': 15, 'vda': 0, 'xvda': 0, '0': 0, '10': 10, 'vdq': -1, 'sdq': -1, 'hdq': -1, 'xvdq': -1, } for (input, expected) in cases.iteritems(): func = volume_utils.VolumeHelper.mountpoint_to_number actual = func(input) self.assertEqual(actual, expected, '%s yielded %s, not %s' % (input, actual, expected)) def test_parse_volume_info_raise_exception(self): """This shows how to test helper classes' methods.""" stubs.stubout_session(self.stubs, stubs.FakeSessionForVolumeTests) session = xenapi_conn.XenAPISession('test_url', 'root', 'test_pass') helper = volume_utils.VolumeHelper helper.XenAPI = session.get_imported_xenapi() vol = self._create_volume() # oops, wrong mount point! self.assertRaises(volume_utils.StorageError, helper.parse_volume_info, self._make_info(), 'dev/sd' ) db.volume_destroy(context.get_admin_context(), vol['id']) def test_attach_volume(self): """This shows how to test Ops classes' methods.""" stubs.stubout_session(self.stubs, stubs.FakeSessionForVolumeTests) conn = xenapi_conn.get_connection(False) volume = self._create_volume() instance = db.instance_create(self.context, self.instance_values) vm = xenapi_fake.create_vm(instance.name, 'Running') result = conn.attach_volume(self._make_info(), instance.name, '/dev/sdc') # check that the VM has a VBD attached to it # Get XenAPI record for VBD vbds = xenapi_fake.get_all('VBD') vbd = xenapi_fake.get_record('VBD', vbds[0]) vm_ref = vbd['VM'] self.assertEqual(vm_ref, vm) def test_attach_volume_raise_exception(self): """This shows how to test when exceptions are raised.""" stubs.stubout_session(self.stubs, stubs.FakeSessionForVolumeFailedTests) conn = xenapi_conn.get_connection(False) volume = self._create_volume() instance = db.instance_create(self.context, self.instance_values) xenapi_fake.create_vm(instance.name, 'Running') self.assertRaises(exception.VolumeDriverNotFound, conn.attach_volume, {'driver_volume_type': 'nonexist'}, instance.name, '/dev/sdc') class XenAPIVMTestCase(test.TestCase): """Unit tests for VM operations.""" def setUp(self): super(XenAPIVMTestCase, self).setUp() self.network = importutils.import_object(FLAGS.network_manager) self.flags(xenapi_connection_url='test_url', xenapi_connection_password='test_pass', instance_name_template='%d', firewall_driver='nova.virt.xenapi.firewall.' 'Dom0IptablesFirewallDriver') xenapi_fake.reset() xenapi_fake.create_local_srs() xenapi_fake.create_local_pifs() db_fakes.stub_out_db_instance_api(self.stubs) xenapi_fake.create_network('fake', FLAGS.flat_network_bridge) stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) stubs.stubout_get_this_vm_uuid(self.stubs) stubs.stubout_stream_disk(self.stubs) stubs.stubout_is_vdi_pv(self.stubs) stubs.stub_out_vm_methods(self.stubs) glance_stubs.stubout_glance_client(self.stubs) fake_utils.stub_out_utils_execute(self.stubs) self.user_id = 'fake' self.project_id = 'fake' self.context = context.RequestContext(self.user_id, self.project_id) self.conn = xenapi_conn.get_connection(False) def test_init_host(self): session = xenapi_conn.XenAPISession('test_url', 'root', 'test_pass') vm = vm_utils.get_this_vm_ref(session) # Local root disk vdi0 = xenapi_fake.create_vdi('compute', None) vbd0 = xenapi_fake.create_vbd(vm, vdi0) # Instance VDI vdi1 = xenapi_fake.create_vdi('instance-aaaa', None, other_config={'nova_instance_uuid': 'aaaa'}) vbd1 = xenapi_fake.create_vbd(vm, vdi1) # Only looks like instance VDI vdi2 = xenapi_fake.create_vdi('instance-bbbb', None) vbd2 = xenapi_fake.create_vbd(vm, vdi2) self.conn.init_host(None) self.assertEquals(set(xenapi_fake.get_all('VBD')), set([vbd0, vbd2])) def test_list_instances_0(self): instances = self.conn.list_instances() self.assertEquals(instances, []) def test_get_rrd_server(self): self.flags(xenapi_connection_url='myscheme://myaddress/') server_info = vm_utils.get_rrd_server() self.assertEqual(server_info[0], 'myscheme') self.assertEqual(server_info[1], 'myaddress') def test_get_diagnostics(self): def fake_get_rrd(host, vm_uuid): with open('xenapi/vm_rrd.xml') as f: return re.sub(r'\s', '', f.read()) self.stubs.Set(vm_utils, 'get_rrd', fake_get_rrd) fake_diagnostics = { 'vbd_xvdb_write': '0.0', 'memory_target': '10961792000.0000', 'memory_internal_free': '3612860.6020', 'memory': '10961792000.0000', 'vbd_xvda_write': '0.0', 'cpu0': '0.0110', 'vif_0_tx': '752.4007', 'vbd_xvda_read': '0.0', 'vif_0_rx': '4837.8805' } instance = self._create_instance() expected = self.conn.get_diagnostics(instance) self.assertDictMatch(fake_diagnostics, expected) def test_instance_snapshot_fails_with_no_primary_vdi(self): def create_bad_vbd(vm_ref, vdi_ref): vbd_rec = {'VM': vm_ref, 'VDI': vdi_ref, 'userdevice': 'fake', 'currently_attached': False} vbd_ref = xenapi_fake._create_object('VBD', vbd_rec) xenapi_fake.after_VBD_create(vbd_ref, vbd_rec) return vbd_ref self.stubs.Set(xenapi_fake, 'create_vbd', create_bad_vbd) stubs.stubout_instance_snapshot(self.stubs) # Stubbing out firewall driver as previous stub sets alters # xml rpc result parsing stubs.stubout_firewall_driver(self.stubs, self.conn) instance = self._create_instance() name = "MySnapshot" self.assertRaises(exception.NovaException, self.conn.snapshot, self.context, instance, name) def test_instance_snapshot(self): stubs.stubout_instance_snapshot(self.stubs) stubs.stubout_is_snapshot(self.stubs) # Stubbing out firewall driver as previous stub sets alters # xml rpc result parsing stubs.stubout_firewall_driver(self.stubs, self.conn) instance = self._create_instance() name = "MySnapshot" template_vm_ref = self.conn.snapshot(self.context, instance, name) # Ensure VM was torn down vm_labels = [] for vm_ref in xenapi_fake.get_all('VM'): vm_rec = xenapi_fake.get_record('VM', vm_ref) if not vm_rec["is_control_domain"]: vm_labels.append(vm_rec["name_label"]) self.assertEquals(vm_labels, [instance.name]) # Ensure VBDs were torn down vbd_labels = [] for vbd_ref in xenapi_fake.get_all('VBD'): vbd_rec = xenapi_fake.get_record('VBD', vbd_ref) vbd_labels.append(vbd_rec["vm_name_label"]) self.assertEquals(vbd_labels, [instance.name]) # Ensure VDIs were torn down for vdi_ref in xenapi_fake.get_all('VDI'): vdi_rec = xenapi_fake.get_record('VDI', vdi_ref) name_label = vdi_rec["name_label"] self.assert_(not name_label.endswith('snapshot')) def create_vm_record(self, conn, os_type, name): instances = conn.list_instances() self.assertEquals(instances, [name]) # Get Nova record for VM vm_info = conn.get_info({'name': name}) # Get XenAPI record for VM vms = [rec for ref, rec in xenapi_fake.get_all_records('VM').iteritems() if not rec['is_control_domain']] vm = vms[0] self.vm_info = vm_info self.vm = vm def check_vm_record(self, conn, check_injection=False): # Check that m1.large above turned into the right thing. instance_type = db.instance_type_get_by_name(conn, 'm1.large') mem_kib = long(instance_type['memory_mb']) << 10 mem_bytes = str(mem_kib << 10) vcpus = instance_type['vcpus'] self.assertEquals(self.vm_info['max_mem'], mem_kib) self.assertEquals(self.vm_info['mem'], mem_kib) self.assertEquals(self.vm['memory_static_max'], mem_bytes) self.assertEquals(self.vm['memory_dynamic_max'], mem_bytes) self.assertEquals(self.vm['memory_dynamic_min'], mem_bytes) self.assertEquals(self.vm['VCPUs_max'], str(vcpus)) self.assertEquals(self.vm['VCPUs_at_startup'], str(vcpus)) # Check that the VM is running according to Nova self.assertEquals(self.vm_info['state'], power_state.RUNNING) # Check that the VM is running according to XenAPI. self.assertEquals(self.vm['power_state'], 'Running') if check_injection: xenstore_data = self.vm['xenstore_data'] self.assertEquals(xenstore_data['vm-data/hostname'], 'test') key = 'vm-data/networking/DEADBEEF0000' xenstore_value = xenstore_data[key] tcpip_data = ast.literal_eval(xenstore_value) self.assertEquals(tcpip_data, {'broadcast': '192.168.0.255', 'dns': ['192.168.0.1'], 'gateway': '192.168.0.1', 'gateway_v6': 'dead:beef::1', 'ip6s': [{'enabled': '1', 'ip': 'dead:beef::dcad:beff:feef:0', 'netmask': '64'}], 'ips': [{'enabled': '1', 'ip': '192.168.0.100', 'netmask': '255.255.255.0'}], 'dhcp_server': '192.168.0.1', 'label': 'fake', 'mac': 'DE:AD:BE:EF:00:00', 'rxtx_cap': 3}) def check_vm_params_for_windows(self): self.assertEquals(self.vm['platform']['nx'], 'true') self.assertEquals(self.vm['HVM_boot_params'], {'order': 'dc'}) self.assertEquals(self.vm['HVM_boot_policy'], 'BIOS order') # check that these are not set self.assertEquals(self.vm['PV_args'], '') self.assertEquals(self.vm['PV_bootloader'], '') self.assertEquals(self.vm['PV_kernel'], '') self.assertEquals(self.vm['PV_ramdisk'], '') def check_vm_params_for_linux(self): self.assertEquals(self.vm['platform']['nx'], 'false') self.assertEquals(self.vm['PV_args'], '') self.assertEquals(self.vm['PV_bootloader'], 'pygrub') # check that these are not set self.assertEquals(self.vm['PV_kernel'], '') self.assertEquals(self.vm['PV_ramdisk'], '') self.assertEquals(self.vm['HVM_boot_params'], {}) self.assertEquals(self.vm['HVM_boot_policy'], '') def check_vm_params_for_linux_with_external_kernel(self): self.assertEquals(self.vm['platform']['nx'], 'false') self.assertEquals(self.vm['PV_args'], 'root=/dev/xvda1') self.assertNotEquals(self.vm['PV_kernel'], '') self.assertNotEquals(self.vm['PV_ramdisk'], '') # check that these are not set self.assertEquals(self.vm['HVM_boot_params'], {}) self.assertEquals(self.vm['HVM_boot_policy'], '') def _list_vdis(self): url = FLAGS.xenapi_connection_url username = FLAGS.xenapi_connection_username password = FLAGS.xenapi_connection_password session = xenapi_conn.XenAPISession(url, username, password) return session.call_xenapi('VDI.get_all') def _check_vdis(self, start_list, end_list): for vdi_ref in end_list: if not vdi_ref in start_list: vdi_rec = xenapi_fake.get_record('VDI', vdi_ref) # If the cache is turned on then the base disk will be # there even after the cleanup if 'other_config' in vdi_rec: if vdi_rec['other_config']['image-id'] is None: self.fail('Found unexpected VDI:%s' % vdi_ref) else: self.fail('Found unexpected VDI:%s' % vdi_ref) def _test_spawn(self, image_ref, kernel_id, ramdisk_id, instance_type_id="3", os_type="linux", hostname="test", architecture="x86-64", instance_id=1, check_injection=False, create_record=True, empty_dns=False): if create_record: instance_values = {'id': instance_id, 'project_id': self.project_id, 'user_id': self.user_id, 'image_ref': image_ref, 'kernel_id': kernel_id, 'ramdisk_id': ramdisk_id, 'root_gb': 20, 'instance_type_id': instance_type_id, 'os_type': os_type, 'hostname': hostname, 'architecture': architecture} instance = db.instance_create(self.context, instance_values) else: instance = db.instance_get(self.context, instance_id) network_info = [({'bridge': 'fa0', 'id': 0, 'injected': True, 'cidr': '192.168.0.0/24', 'cidr_v6': 'dead:beef::1/120', }, {'broadcast': '192.168.0.255', 'dns': ['192.168.0.1'], 'gateway': '192.168.0.1', 'gateway_v6': 'dead:beef::1', 'ip6s': [{'enabled': '1', 'ip': 'dead:beef::dcad:beff:feef:0', 'netmask': '64'}], 'ips': [{'enabled': '1', 'ip': '192.168.0.100', 'netmask': '255.255.255.0'}], 'dhcp_server': '192.168.0.1', 'label': 'fake', 'mac': 'DE:AD:BE:EF:00:00', 'rxtx_cap': 3})] if empty_dns: network_info[0][1]['dns'] = [] # admin_pass isn't part of the DB model, but it does get set as # an attribute for spawn to use instance.admin_pass = 'herp' image_meta = {'id': glance_stubs.FakeGlance.IMAGE_VHD, 'disk_format': 'vhd'} self.conn.spawn(self.context, instance, image_meta, network_info) self.create_vm_record(self.conn, os_type, instance['name']) self.check_vm_record(self.conn, check_injection) self.assertTrue(instance.os_type) self.assertTrue(instance.architecture) def test_spawn_empty_dns(self): """Test spawning with an empty dns list""" self._test_spawn(glance_stubs.FakeGlance.IMAGE_VHD, None, None, os_type="linux", architecture="x86-64", empty_dns=True) self.check_vm_params_for_linux() def test_spawn_not_enough_memory(self): self.assertRaises(exception.InsufficientFreeMemory, self._test_spawn, 1, 2, 3, "4") # m1.xlarge def test_spawn_fail_cleanup_1(self): """Simulates an error while downloading an image. Verifies that VDIs created are properly cleaned up. """ vdi_recs_start = self._list_vdis() stubs.stubout_fetch_image_glance_disk(self.stubs, raise_failure=True) self.assertRaises(xenapi_fake.Failure, self._test_spawn, 1, 2, 3) # No additional VDI should be found. vdi_recs_end = self._list_vdis() self._check_vdis(vdi_recs_start, vdi_recs_end) def test_spawn_fail_cleanup_2(self): """Simulates an error while creating VM record. It verifies that VDIs created are properly cleaned up. """ vdi_recs_start = self._list_vdis() stubs.stubout_create_vm(self.stubs) self.assertRaises(xenapi_fake.Failure, self._test_spawn, 1, 2, 3) # No additional VDI should be found. vdi_recs_end = self._list_vdis() self._check_vdis(vdi_recs_start, vdi_recs_end) @stub_vm_utils_with_vdi_attached_here def test_spawn_raw_glance(self): self._test_spawn(glance_stubs.FakeGlance.IMAGE_RAW, None, None) self.check_vm_params_for_linux() def test_spawn_vhd_glance_linux(self): self._test_spawn(glance_stubs.FakeGlance.IMAGE_VHD, None, None, os_type="linux", architecture="x86-64") self.check_vm_params_for_linux() def test_spawn_vhd_glance_swapdisk(self): # Change the default host_call_plugin to one that'll return # a swap disk orig_func = stubs.FakeSessionForVMTests.host_call_plugin _host_call_plugin = stubs.FakeSessionForVMTests.host_call_plugin_swap stubs.FakeSessionForVMTests.host_call_plugin = _host_call_plugin # Stubbing out firewall driver as previous stub sets a particular # stub for async plugin calls stubs.stubout_firewall_driver(self.stubs, self.conn) try: # We'll steal the above glance linux test self.test_spawn_vhd_glance_linux() finally: # Make sure to put this back stubs.FakeSessionForVMTests.host_call_plugin = orig_func # We should have 2 VBDs. self.assertEqual(len(self.vm['VBDs']), 2) # Now test that we have 1. self.tearDown() self.setUp() self.test_spawn_vhd_glance_linux() self.assertEqual(len(self.vm['VBDs']), 1) def test_spawn_vhd_glance_windows(self): self._test_spawn(glance_stubs.FakeGlance.IMAGE_VHD, None, None, os_type="windows", architecture="i386") self.check_vm_params_for_windows() def test_spawn_iso_glance(self): self._test_spawn(glance_stubs.FakeGlance.IMAGE_ISO, None, None, os_type="windows", architecture="i386") self.check_vm_params_for_windows() def test_spawn_glance(self): stubs.stubout_fetch_image_glance_disk(self.stubs) self._test_spawn(glance_stubs.FakeGlance.IMAGE_MACHINE, glance_stubs.FakeGlance.IMAGE_KERNEL, glance_stubs.FakeGlance.IMAGE_RAMDISK) self.check_vm_params_for_linux_with_external_kernel() def test_spawn_netinject_file(self): self.flags(flat_injected=True) db_fakes.stub_out_db_instance_api(self.stubs, injected=True) self._tee_executed = False def _tee_handler(cmd, **kwargs): input = kwargs.get('process_input', None) self.assertNotEqual(input, None) config = [line.strip() for line in input.split("\n")] # Find the start of eth0 configuration and check it index = config.index('auto eth0') self.assertEquals(config[index + 1:index + 8], [ 'iface eth0 inet static', 'address 192.168.0.100', 'netmask 255.255.255.0', 'broadcast 192.168.0.255', 'gateway 192.168.0.1', 'dns-nameservers 192.168.0.1', '']) self._tee_executed = True return '', '' fake_utils.fake_execute_set_repliers([ # Capture the tee .../etc/network/interfaces command (r'tee.*interfaces', _tee_handler), ]) self._test_spawn(glance_stubs.FakeGlance.IMAGE_MACHINE, glance_stubs.FakeGlance.IMAGE_KERNEL, glance_stubs.FakeGlance.IMAGE_RAMDISK, check_injection=True) self.assertTrue(self._tee_executed) def test_spawn_netinject_xenstore(self): db_fakes.stub_out_db_instance_api(self.stubs, injected=True) self._tee_executed = False def _mount_handler(cmd, *ignore_args, **ignore_kwargs): # When mounting, create real files under the mountpoint to simulate # files in the mounted filesystem # mount point will be the last item of the command list self._tmpdir = cmd[len(cmd) - 1] LOG.debug(_('Creating files in %s to simulate guest agent'), self._tmpdir) os.makedirs(os.path.join(self._tmpdir, 'usr', 'sbin')) # Touch the file using open open(os.path.join(self._tmpdir, 'usr', 'sbin', 'xe-update-networking'), 'w').close() return '', '' def _umount_handler(cmd, *ignore_args, **ignore_kwargs): # Umount would normall make files in the m,ounted filesystem # disappear, so do that here LOG.debug(_('Removing simulated guest agent files in %s'), self._tmpdir) os.remove(os.path.join(self._tmpdir, 'usr', 'sbin', 'xe-update-networking')) os.rmdir(os.path.join(self._tmpdir, 'usr', 'sbin')) os.rmdir(os.path.join(self._tmpdir, 'usr')) return '', '' def _tee_handler(cmd, *ignore_args, **ignore_kwargs): self._tee_executed = True return '', '' fake_utils.fake_execute_set_repliers([ (r'mount', _mount_handler), (r'umount', _umount_handler), (r'tee.*interfaces', _tee_handler)]) self._test_spawn(1, 2, 3, check_injection=True) # tee must not run in this case, where an injection-capable # guest agent is detected self.assertFalse(self._tee_executed) def test_spawn_vlanmanager(self): self.flags(image_service='nova.image.glance.GlanceImageService', network_manager='nova.network.manager.VlanManager', vlan_interface='fake0') def dummy(*args, **kwargs): pass self.stubs.Set(vmops.VMOps, '_create_vifs', dummy) # Reset network table xenapi_fake.reset_table('network') # Instance id = 2 will use vlan network (see db/fakes.py) ctxt = self.context.elevated() instance = self._create_instance(2, False) networks = self.network.db.network_get_all(ctxt) for network in networks: self.network.set_network_host(ctxt, network) self.network.allocate_for_instance(ctxt, instance_id=2, instance_uuid="00000000-0000-0000-0000-000000000000", host=FLAGS.host, vpn=None, rxtx_factor=3, project_id=self.project_id) self._test_spawn(glance_stubs.FakeGlance.IMAGE_MACHINE, glance_stubs.FakeGlance.IMAGE_KERNEL, glance_stubs.FakeGlance.IMAGE_RAMDISK, instance_id=2, create_record=False) # TODO(salvatore-orlando): a complete test here would require # a check for making sure the bridge for the VM's VIF is # consistent with bridge specified in nova db def test_spawn_with_network_qos(self): self._create_instance() for vif_ref in xenapi_fake.get_all('VIF'): vif_rec = xenapi_fake.get_record('VIF', vif_ref) self.assertEquals(vif_rec['qos_algorithm_type'], 'ratelimit') self.assertEquals(vif_rec['qos_algorithm_params']['kbps'], str(3 * 1024)) def test_rescue(self): instance = self._create_instance() session = xenapi_conn.XenAPISession('test_url', 'root', 'test_pass') vm = vm_utils.VMHelper.lookup(session, instance.name) vbd = xenapi_fake.create_vbd(vm, None) conn = xenapi_conn.get_connection(False) image_meta = {'id': glance_stubs.FakeGlance.IMAGE_VHD, 'disk_format': 'vhd'} conn.rescue(self.context, instance, [], image_meta) def test_unrescue(self): instance = self._create_instance() conn = xenapi_conn.get_connection(False) # Unrescue expects the original instance to be powered off conn.power_off(instance) rescue_vm = xenapi_fake.create_vm(instance.name + '-rescue', 'Running') conn.unrescue(instance, None) def test_unrescue_not_in_rescue(self): instance = self._create_instance() conn = xenapi_conn.get_connection(False) # Ensure that it will not unrescue a non-rescued instance. self.assertRaises(exception.InstanceNotInRescueMode, conn.unrescue, instance, None) def test_finish_revert_migration(self): instance = self._create_instance() class VMOpsMock(): def __init__(self): self.finish_revert_migration_called = False def finish_revert_migration(self, instance): self.finish_revert_migration_called = True conn = xenapi_conn.get_connection(False) conn._vmops = VMOpsMock() conn.finish_revert_migration(instance, None) self.assertTrue(conn._vmops.finish_revert_migration_called) def _create_instance(self, instance_id=1, spawn=True): """Creates and spawns a test instance.""" instance_values = { 'id': instance_id, 'project_id': self.project_id, 'user_id': self.user_id, 'image_ref': 1, 'kernel_id': 2, 'ramdisk_id': 3, 'root_gb': 20, 'instance_type_id': '3', # m1.large 'os_type': 'linux', 'architecture': 'x86-64'} instance = db.instance_create(self.context, instance_values) network_info = [({'bridge': 'fa0', 'id': 0, 'injected': False, 'cidr': '192.168.0.0/24', 'cidr_v6': 'dead:beef::1/120', }, {'broadcast': '192.168.0.255', 'dns': ['192.168.0.1'], 'gateway': '192.168.0.1', 'gateway_v6': 'dead:beef::1', 'ip6s': [{'enabled': '1', 'ip': 'dead:beef::dcad:beff:feef:0', 'netmask': '64'}], 'ips': [{'enabled': '1', 'ip': '192.168.0.100', 'netmask': '255.255.255.0'}], 'dhcp_server': '192.168.0.1', 'label': 'fake', 'mac': 'DE:AD:BE:EF:00:00', 'rxtx_cap': 3})] image_meta = {'id': glance_stubs.FakeGlance.IMAGE_VHD, 'disk_format': 'vhd'} if spawn: instance.admin_pass = 'herp' self.conn.spawn(self.context, instance, image_meta, network_info) return instance class XenAPIDiffieHellmanTestCase(test.TestCase): """Unit tests for Diffie-Hellman code.""" def setUp(self): super(XenAPIDiffieHellmanTestCase, self).setUp() self.alice = vmops.SimpleDH() self.bob = vmops.SimpleDH() def test_shared(self): alice_pub = self.alice.get_public() bob_pub = self.bob.get_public() alice_shared = self.alice.compute_shared(bob_pub) bob_shared = self.bob.compute_shared(alice_pub) self.assertEquals(alice_shared, bob_shared) def _test_encryption(self, message): enc = self.alice.encrypt(message) self.assertFalse(enc.endswith('\n')) dec = self.bob.decrypt(enc) self.assertEquals(dec, message) def test_encrypt_simple_message(self): self._test_encryption('This is a simple message.') def test_encrypt_message_with_newlines_at_end(self): self._test_encryption('This message has a newline at the end.\n') def test_encrypt_many_newlines_at_end(self): self._test_encryption('Message with lotsa newlines.\n\n\n') def test_encrypt_newlines_inside_message(self): self._test_encryption('Message\nwith\ninterior\nnewlines.') def test_encrypt_with_leading_newlines(self): self._test_encryption('\n\nMessage with leading newlines.') def test_encrypt_really_long_message(self): self._test_encryption(''.join(['abcd' for i in xrange(1024)])) class XenAPIMigrateInstance(test.TestCase): """Unit test for verifying migration-related actions.""" def setUp(self): super(XenAPIMigrateInstance, self).setUp() self.flags(target_host='127.0.0.1', xenapi_connection_url='test_url', xenapi_connection_password='test_pass', firewall_driver='nova.virt.xenapi.firewall.' 'Dom0IptablesFirewallDriver') stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) db_fakes.stub_out_db_instance_api(self.stubs) xenapi_fake.reset() xenapi_fake.create_network('fake', FLAGS.flat_network_bridge) self.user_id = 'fake' self.project_id = 'fake' self.context = context.RequestContext(self.user_id, self.project_id) self.instance_values = {'id': 1, 'project_id': self.project_id, 'user_id': self.user_id, 'image_ref': 1, 'kernel_id': None, 'ramdisk_id': None, 'root_gb': 5, 'instance_type_id': '3', # m1.large 'os_type': 'linux', 'architecture': 'x86-64'} migration_values = { 'source_compute': 'nova-compute', 'dest_compute': 'nova-compute', 'dest_host': '10.127.5.114', 'status': 'post-migrating', 'instance_uuid': '15f23e6a-cc6e-4d22-b651-d9bdaac316f7', 'old_instance_type_id': 5, 'new_instance_type_id': 1 } self.migration = db.migration_create( context.get_admin_context(), migration_values) fake_utils.stub_out_utils_execute(self.stubs) stubs.stub_out_migration_methods(self.stubs) stubs.stubout_get_this_vm_uuid(self.stubs) glance_stubs.stubout_glance_client(self.stubs) def test_resize_xenserver_6(self): instance = db.instance_create(self.context, self.instance_values) called = {'resize': False} def fake_vdi_resize(*args, **kwargs): called['resize'] = True self.stubs.Set(stubs.FakeSessionForVMTests, "VDI_resize", fake_vdi_resize) stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests, product_version=(6, 0, 0)) conn = xenapi_conn.get_connection(False) vdi_ref = xenapi_fake.create_vdi('hurr', 'fake') vdi_uuid = xenapi_fake.get_record('VDI', vdi_ref)['uuid'] conn._vmops._resize_instance(instance, vdi_uuid) self.assertEqual(called['resize'], True) def test_migrate_disk_and_power_off(self): instance = db.instance_create(self.context, self.instance_values) xenapi_fake.create_vm(instance.name, 'Running') instance_type = db.instance_type_get_by_name(self.context, 'm1.large') conn = xenapi_conn.get_connection(False) conn.migrate_disk_and_power_off(self.context, instance, '127.0.0.1', instance_type, None) def test_migrate_disk_and_power_off_passes_exceptions(self): instance = db.instance_create(self.context, self.instance_values) xenapi_fake.create_vm(instance.name, 'Running') instance_type = db.instance_type_get_by_name(self.context, 'm1.large') def fake_raise(*args, **kwargs): raise exception.MigrationError(reason='test failure') self.stubs.Set(vmops.VMOps, "_migrate_vhd", fake_raise) conn = xenapi_conn.get_connection(False) self.assertRaises(exception.MigrationError, conn.migrate_disk_and_power_off, self.context, instance, '127.0.0.1', instance_type, None) def test_revert_migrate(self): instance = db.instance_create(self.context, self.instance_values) self.called = False self.fake_vm_start_called = False self.fake_finish_revert_migration_called = False def fake_vm_start(*args, **kwargs): self.fake_vm_start_called = True def fake_vdi_resize(*args, **kwargs): self.called = True def fake_finish_revert_migration(*args, **kwargs): self.fake_finish_revert_migration_called = True self.stubs.Set(stubs.FakeSessionForVMTests, "VDI_resize_online", fake_vdi_resize) self.stubs.Set(vmops.VMOps, '_start', fake_vm_start) self.stubs.Set(vmops.VMOps, 'finish_revert_migration', fake_finish_revert_migration) conn = xenapi_conn.get_connection(False) network_info = [({'bridge': 'fa0', 'id': 0, 'injected': False}, {'broadcast': '192.168.0.255', 'dns': ['192.168.0.1'], 'gateway': '192.168.0.1', 'gateway_v6': 'dead:beef::1', 'ip6s': [{'enabled': '1', 'ip': 'dead:beef::dcad:beff:feef:0', 'netmask': '64'}], 'ips': [{'enabled': '1', 'ip': '192.168.0.100', 'netmask': '255.255.255.0'}], 'label': 'fake', 'mac': 'DE:AD:BE:EF:00:00', 'rxtx_cap': 3})] image_meta = {'id': instance.image_ref, 'disk_format': 'vhd'} base = xenapi_fake.create_vdi('hurr', 'fake') base_uuid = xenapi_fake.get_record('VDI', base)['uuid'] cow = xenapi_fake.create_vdi('durr', 'fake') cow_uuid = xenapi_fake.get_record('VDI', cow)['uuid'] conn.finish_migration(self.context, self.migration, instance, dict(base_copy=base_uuid, cow=cow_uuid), network_info, image_meta, resize_instance=True) self.assertEqual(self.called, True) self.assertEqual(self.fake_vm_start_called, True) conn.finish_revert_migration(instance, network_info) self.assertEqual(self.fake_finish_revert_migration_called, True) def test_finish_migrate(self): instance = db.instance_create(self.context, self.instance_values) self.called = False self.fake_vm_start_called = False def fake_vm_start(*args, **kwargs): self.fake_vm_start_called = True def fake_vdi_resize(*args, **kwargs): self.called = True self.stubs.Set(vmops.VMOps, '_start', fake_vm_start) self.stubs.Set(stubs.FakeSessionForVMTests, "VDI_resize_online", fake_vdi_resize) conn = xenapi_conn.get_connection(False) network_info = [({'bridge': 'fa0', 'id': 0, 'injected': False}, {'broadcast': '192.168.0.255', 'dns': ['192.168.0.1'], 'gateway': '192.168.0.1', 'gateway_v6': 'dead:beef::1', 'ip6s': [{'enabled': '1', 'ip': 'dead:beef::dcad:beff:feef:0', 'netmask': '64'}], 'ips': [{'enabled': '1', 'ip': '192.168.0.100', 'netmask': '255.255.255.0'}], 'label': 'fake', 'mac': 'DE:AD:BE:EF:00:00', 'rxtx_cap': 3})] image_meta = {'id': instance.image_ref, 'disk_format': 'vhd'} conn.finish_migration(self.context, self.migration, instance, dict(base_copy='hurr', cow='durr'), network_info, image_meta, resize_instance=True) self.assertEqual(self.called, True) self.assertEqual(self.fake_vm_start_called, True) def test_finish_migrate_no_local_storage(self): tiny_type = instance_types.get_instance_type_by_name('m1.tiny') tiny_type_id = tiny_type['id'] self.instance_values.update({'instance_type_id': tiny_type_id, 'root_gb': 0}) instance = db.instance_create(self.context, self.instance_values) def fake_vdi_resize(*args, **kwargs): raise Exception("This shouldn't be called") self.stubs.Set(stubs.FakeSessionForVMTests, "VDI_resize_online", fake_vdi_resize) conn = xenapi_conn.get_connection(False) network_info = [({'bridge': 'fa0', 'id': 0, 'injected': False}, {'broadcast': '192.168.0.255', 'dns': ['192.168.0.1'], 'gateway': '192.168.0.1', 'gateway_v6': 'dead:beef::1', 'ip6s': [{'enabled': '1', 'ip': 'dead:beef::dcad:beff:feef:0', 'netmask': '64'}], 'ips': [{'enabled': '1', 'ip': '192.168.0.100', 'netmask': '255.255.255.0'}], 'label': 'fake', 'mac': 'DE:AD:BE:EF:00:00', 'rxtx_cap': 3})] image_meta = {'id': instance.image_ref, 'disk_format': 'vhd'} conn.finish_migration(self.context, self.migration, instance, dict(base_copy='hurr', cow='durr'), network_info, image_meta, resize_instance=True) def test_finish_migrate_no_resize_vdi(self): instance = db.instance_create(self.context, self.instance_values) def fake_vdi_resize(*args, **kwargs): raise Exception("This shouldn't be called") self.stubs.Set(stubs.FakeSessionForVMTests, "VDI_resize_online", fake_vdi_resize) conn = xenapi_conn.get_connection(False) network_info = [({'bridge': 'fa0', 'id': 0, 'injected': False}, {'broadcast': '192.168.0.255', 'dns': ['192.168.0.1'], 'gateway': '192.168.0.1', 'gateway_v6': 'dead:beef::1', 'ip6s': [{'enabled': '1', 'ip': 'dead:beef::dcad:beff:feef:0', 'netmask': '64'}], 'ips': [{'enabled': '1', 'ip': '192.168.0.100', 'netmask': '255.255.255.0'}], 'label': 'fake', 'mac': 'DE:AD:BE:EF:00:00', 'rxtx_cap': 3})] # Resize instance would be determined by the compute call image_meta = {'id': instance.image_ref, 'disk_format': 'vhd'} conn.finish_migration(self.context, self.migration, instance, dict(base_copy='hurr', cow='durr'), network_info, image_meta, resize_instance=False) class XenAPIImageTypeTestCase(test.TestCase): """Test ImageType class.""" def test_to_string(self): """Can convert from type id to type string.""" self.assertEquals( vm_utils.ImageType.to_string(vm_utils.ImageType.KERNEL), vm_utils.ImageType.KERNEL_STR) def test_from_string(self): """Can convert from string to type id.""" self.assertEquals( vm_utils.ImageType.from_string(vm_utils.ImageType.KERNEL_STR), vm_utils.ImageType.KERNEL) class XenAPIDetermineDiskImageTestCase(test.TestCase): """Unit tests for code that detects the ImageType.""" def setUp(self): super(XenAPIDetermineDiskImageTestCase, self).setUp() glance_stubs.stubout_glance_client(self.stubs) class FakeInstance(object): pass self.fake_instance = FakeInstance() self.fake_instance.id = 42 self.fake_instance.os_type = 'linux' self.fake_instance.architecture = 'x86-64' def assert_disk_type(self, image_meta, expected_disk_type): actual = vm_utils.VMHelper.determine_disk_image_type(image_meta) self.assertEqual(expected_disk_type, actual) def test_machine(self): image_meta = {'id': 'a', 'disk_format': 'ami'} self.assert_disk_type(image_meta, vm_utils.ImageType.DISK) def test_raw(self): image_meta = {'id': 'a', 'disk_format': 'raw'} self.assert_disk_type(image_meta, vm_utils.ImageType.DISK_RAW) def test_vhd(self): image_meta = {'id': 'a', 'disk_format': 'vhd'} self.assert_disk_type(image_meta, vm_utils.ImageType.DISK_VHD) class CompareVersionTestCase(test.TestCase): def test_less_than(self): """Test that cmp_version compares a as less than b""" self.assertTrue(vmops.cmp_version('1.2.3.4', '1.2.3.5') < 0) def test_greater_than(self): """Test that cmp_version compares a as greater than b""" self.assertTrue(vmops.cmp_version('1.2.3.5', '1.2.3.4') > 0) def test_equal(self): """Test that cmp_version compares a as equal to b""" self.assertTrue(vmops.cmp_version('1.2.3.4', '1.2.3.4') == 0) def test_non_lexical(self): """Test that cmp_version compares non-lexically""" self.assertTrue(vmops.cmp_version('1.2.3.10', '1.2.3.4') > 0) def test_length(self): """Test that cmp_version compares by length as last resort""" self.assertTrue(vmops.cmp_version('1.2.3', '1.2.3.4') < 0) class XenAPIHostTestCase(test.TestCase): """Tests HostState, which holds metrics from XenServer that get reported back to the Schedulers.""" def setUp(self): super(XenAPIHostTestCase, self).setUp() self.flags(xenapi_connection_url='test_url', xenapi_connection_password='test_pass') stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) xenapi_fake.reset() xenapi_fake.create_local_srs() self.conn = xenapi_conn.get_connection(False) def test_host_state(self): stats = self.conn.get_host_stats() self.assertEquals(stats['disk_total'], 10000) self.assertEquals(stats['disk_used'], 20000) self.assertEquals(stats['host_memory_total'], 10) self.assertEquals(stats['host_memory_overhead'], 20) self.assertEquals(stats['host_memory_free'], 30) self.assertEquals(stats['host_memory_free_computed'], 40) def _test_host_action(self, method, action, expected=None): result = method('host', action) if not expected: expected = action self.assertEqual(result, expected) def test_host_reboot(self): self._test_host_action(self.conn.host_power_action, 'reboot') def test_host_shutdown(self): self._test_host_action(self.conn.host_power_action, 'shutdown') def test_host_startup(self): self.assertRaises(NotImplementedError, self.conn.host_power_action, 'host', 'startup') def test_host_maintenance_on(self): self._test_host_action(self.conn.host_maintenance_mode, True, 'on_maintenance') def test_host_maintenance_off(self): self._test_host_action(self.conn.host_maintenance_mode, False, 'off_maintenance') def test_set_enable_host_enable(self): self._test_host_action(self.conn.set_host_enabled, True, 'enabled') def test_set_enable_host_disable(self): self._test_host_action(self.conn.set_host_enabled, False, 'disabled') class XenAPIAutoDiskConfigTestCase(test.TestCase): def setUp(self): super(XenAPIAutoDiskConfigTestCase, self).setUp() self.flags(target_host='127.0.0.1', xenapi_connection_url='test_url', xenapi_connection_password='test_pass', firewall_driver='nova.virt.xenapi.firewall.' 'Dom0IptablesFirewallDriver') stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) xenapi_fake.reset() self.conn = xenapi_conn.get_connection(False) self.user_id = 'fake' self.project_id = 'fake' self.instance_values = {'id': 1, 'project_id': self.project_id, 'user_id': self.user_id, 'image_ref': 1, 'kernel_id': 2, 'ramdisk_id': 3, 'root_gb': 20, 'instance_type_id': '3', # m1.large 'os_type': 'linux', 'architecture': 'x86-64'} self.context = context.RequestContext(self.user_id, self.project_id) @classmethod def fake_create_vbd(cls, session, vm_ref, vdi_ref, userdevice, vbd_type='disk', read_only=False, bootable=True): pass self.stubs.Set(vm_utils.VMHelper, "create_vbd", fake_create_vbd) def assertIsPartitionCalled(self, called): marker = {"partition_called": False} def fake_resize_part_and_fs(dev, start, old, new): marker["partition_called"] = True self.stubs.Set(vm_utils, "_resize_part_and_fs", fake_resize_part_and_fs) instance = db.instance_create(self.context, self.instance_values) disk_image_type = vm_utils.ImageType.DISK_VHD vm_ref = "blah" first_vdi_ref = "blah" vdis = ["blah"] self.conn._vmops._attach_disks( instance, disk_image_type, vm_ref, first_vdi_ref, vdis) self.assertEqual(marker["partition_called"], called) def test_instance_not_auto_disk_config(self): """Should not partition unless instance is marked as auto_disk_config. """ self.instance_values['auto_disk_config'] = False self.assertIsPartitionCalled(False) @stub_vm_utils_with_vdi_attached_here def test_instance_auto_disk_config_doesnt_pass_fail_safes(self): """Should not partition unless fail safes pass""" self.instance_values['auto_disk_config'] = True def fake_get_partitions(dev): return [(1, 0, 100, 'ext4'), (2, 100, 200, 'ext4')] self.stubs.Set(vm_utils, "_get_partitions", fake_get_partitions) self.assertIsPartitionCalled(False) @stub_vm_utils_with_vdi_attached_here def test_instance_auto_disk_config_passes_fail_safes(self): """Should partition if instance is marked as auto_disk_config=True and virt-layer specific fail-safe checks pass. """ self.instance_values['auto_disk_config'] = True def fake_get_partitions(dev): return [(1, 0, 100, 'ext4')] self.stubs.Set(vm_utils, "_get_partitions", fake_get_partitions) self.assertIsPartitionCalled(True) class XenAPIGenerateLocal(test.TestCase): """Test generating of local disks, like swap and ephemeral""" def setUp(self): super(XenAPIGenerateLocal, self).setUp() self.flags(target_host='127.0.0.1', xenapi_connection_url='test_url', xenapi_connection_password='test_pass', xenapi_generate_swap=True, firewall_driver='nova.virt.xenapi.firewall.' 'Dom0IptablesFirewallDriver') stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) db_fakes.stub_out_db_instance_api(self.stubs) xenapi_fake.reset() self.conn = xenapi_conn.get_connection(False) self.user_id = 'fake' self.project_id = 'fake' self.instance_values = {'id': 1, 'project_id': self.project_id, 'user_id': self.user_id, 'image_ref': 1, 'kernel_id': 2, 'ramdisk_id': 3, 'root_gb': 20, 'instance_type_id': '3', # m1.large 'os_type': 'linux', 'architecture': 'x86-64'} self.context = context.RequestContext(self.user_id, self.project_id) @classmethod def fake_create_vbd(cls, session, vm_ref, vdi_ref, userdevice, vbd_type='disk', read_only=False, bootable=True): pass self.stubs.Set(vm_utils.VMHelper, "create_vbd", fake_create_vbd) def assertCalled(self, instance): disk_image_type = vm_utils.ImageType.DISK_VHD vm_ref = "blah" first_vdi_ref = "blah" vdis = ["blah"] self.called = False self.conn._vmops._attach_disks(instance, disk_image_type, vm_ref, first_vdi_ref, vdis) self.assertTrue(self.called) def test_generate_swap(self): """Test swap disk generation.""" instance = db.instance_create(self.context, self.instance_values) instance = db.instance_update(self.context, instance['id'], {'instance_type_id': 5}) @classmethod def fake_generate_swap(cls, *args, **kwargs): self.called = True self.stubs.Set(vm_utils.VMHelper, 'generate_swap', fake_generate_swap) self.assertCalled(instance) def test_generate_ephemeral(self): """Test ephemeral disk generation.""" instance = db.instance_create(self.context, self.instance_values) instance = db.instance_update(self.context, instance['id'], {'instance_type_id': 4}) @classmethod def fake_generate_ephemeral(cls, *args): self.called = True self.stubs.Set(vm_utils.VMHelper, 'generate_ephemeral', fake_generate_ephemeral) self.assertCalled(instance) class XenAPIBWUsageTestCase(test.TestCase): def setUp(self): super(XenAPIBWUsageTestCase, self).setUp() self.stubs.Set(vm_utils.VMHelper, "compile_metrics", XenAPIBWUsageTestCase._fake_compile_metrics) self.flags(target_host='127.0.0.1', xenapi_connection_url='test_url', xenapi_connection_password='test_pass', firewall_driver='nova.virt.xenapi.firewall.' 'Dom0IptablesFirewallDriver') stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) xenapi_fake.reset() self.conn = xenapi_conn.get_connection(False) @classmethod def _fake_compile_metrics(cls, start_time, stop_time=None): raise exception.CouldNotFetchMetrics() def test_get_all_bw_usage_in_failure_case(self): """Test that get_all_bw_usage returns an empty list when metrics compilation failed. c.f. bug #910045. """ class testinstance(object): def __init__(self): self.name = "instance-0001" self.uuid = "1-2-3-4-5" result = self.conn.get_all_bw_usage([testinstance()], datetime.datetime.utcnow()) self.assertEqual(result, []) # TODO(salvatore-orlando): this class and # nova.tests.test_libvirt.IPTablesFirewallDriverTestCase share a lot of code. # Consider abstracting common code in a base class for firewall driver testing. class XenAPIDom0IptablesFirewallTestCase(test.TestCase): _in_nat_rules = [ '# Generated by iptables-save v1.4.10 on Sat Feb 19 00:03:19 2011', '*nat', ':PREROUTING ACCEPT [1170:189210]', ':INPUT ACCEPT [844:71028]', ':OUTPUT ACCEPT [5149:405186]', ':POSTROUTING ACCEPT [5063:386098]', ] _in_filter_rules = [ '# Generated by iptables-save v1.4.4 on Mon Dec 6 11:54:13 2010', '*filter', ':INPUT ACCEPT [969615:281627771]', ':FORWARD ACCEPT [0:0]', ':OUTPUT ACCEPT [915599:63811649]', ':nova-block-ipv4 - [0:0]', '-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT ', '-A FORWARD -d 192.168.122.0/24 -o virbr0 -m state --state RELATED' ',ESTABLISHED -j ACCEPT ', '-A FORWARD -s 192.168.122.0/24 -i virbr0 -j ACCEPT ', '-A FORWARD -i virbr0 -o virbr0 -j ACCEPT ', '-A FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable ', '-A FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable ', 'COMMIT', '# Completed on Mon Dec 6 11:54:13 2010', ] _in6_filter_rules = [ '# Generated by ip6tables-save v1.4.4 on Tue Jan 18 23:47:56 2011', '*filter', ':INPUT ACCEPT [349155:75810423]', ':FORWARD ACCEPT [0:0]', ':OUTPUT ACCEPT [349256:75777230]', 'COMMIT', '# Completed on Tue Jan 18 23:47:56 2011', ] def setUp(self): super(XenAPIDom0IptablesFirewallTestCase, self).setUp() self.flags(xenapi_connection_url='test_url', xenapi_connection_password='test_pass', instance_name_template='%d', firewall_driver='nova.virt.xenapi.firewall.' 'Dom0IptablesFirewallDriver') xenapi_fake.reset() xenapi_fake.create_local_srs() xenapi_fake.create_local_pifs() self.user_id = 'mappin' self.project_id = 'fake' stubs.stubout_session(self.stubs, stubs.FakeSessionForFirewallTests, test_case=self) self.context = context.RequestContext(self.user_id, self.project_id) self.network = importutils.import_object(FLAGS.network_manager) self.conn = xenapi_conn.get_connection(False) self.fw = self.conn._vmops.firewall_driver def _create_instance_ref(self): return db.instance_create(self.context, {'user_id': self.user_id, 'project_id': self.project_id, 'instance_type_id': 1}) def _create_test_security_group(self): admin_ctxt = context.get_admin_context() secgroup = db.security_group_create(admin_ctxt, {'user_id': self.user_id, 'project_id': self.project_id, 'name': 'testgroup', 'description': 'test group'}) db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'protocol': 'icmp', 'from_port': -1, 'to_port': -1, 'cidr': '192.168.11.0/24'}) db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'protocol': 'icmp', 'from_port': 8, 'to_port': -1, 'cidr': '192.168.11.0/24'}) db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'protocol': 'tcp', 'from_port': 80, 'to_port': 81, 'cidr': '192.168.10.0/24'}) return secgroup def _validate_security_group(self): in_rules = filter(lambda l: not l.startswith('#'), self._in_filter_rules) for rule in in_rules: if not 'nova' in rule: self.assertTrue(rule in self._out_rules, 'Rule went missing: %s' % rule) instance_chain = None for rule in self._out_rules: # This is pretty crude, but it'll do for now # last two octets change if re.search('-d 192.168.[0-9]{1,3}.[0-9]{1,3} -j', rule): instance_chain = rule.split(' ')[-1] break self.assertTrue(instance_chain, "The instance chain wasn't added") security_group_chain = None for rule in self._out_rules: # This is pretty crude, but it'll do for now if '-A %s -j' % instance_chain in rule: security_group_chain = rule.split(' ')[-1] break self.assertTrue(security_group_chain, "The security group chain wasn't added") regex = re.compile('-A .* -j ACCEPT -p icmp -s 192.168.11.0/24') self.assertTrue(len(filter(regex.match, self._out_rules)) > 0, "ICMP acceptance rule wasn't added") regex = re.compile('-A .* -j ACCEPT -p icmp -m icmp --icmp-type 8' ' -s 192.168.11.0/24') self.assertTrue(len(filter(regex.match, self._out_rules)) > 0, "ICMP Echo Request acceptance rule wasn't added") regex = re.compile('-A .* -j ACCEPT -p tcp --dport 80:81' ' -s 192.168.10.0/24') self.assertTrue(len(filter(regex.match, self._out_rules)) > 0, "TCP port 80/81 acceptance rule wasn't added") def test_static_filters(self): instance_ref = self._create_instance_ref() src_instance_ref = self._create_instance_ref() admin_ctxt = context.get_admin_context() secgroup = self._create_test_security_group() src_secgroup = db.security_group_create(admin_ctxt, {'user_id': self.user_id, 'project_id': self.project_id, 'name': 'testsourcegroup', 'description': 'src group'}) db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'protocol': 'tcp', 'from_port': 80, 'to_port': 81, 'group_id': src_secgroup['id']}) db.instance_add_security_group(admin_ctxt, instance_ref['uuid'], secgroup['id']) db.instance_add_security_group(admin_ctxt, src_instance_ref['uuid'], src_secgroup['id']) instance_ref = db.instance_get(admin_ctxt, instance_ref['id']) src_instance_ref = db.instance_get(admin_ctxt, src_instance_ref['id']) network_model = fake_network.fake_get_instance_nw_info(self.stubs, 1, spectacular=True) fake_network.stub_out_nw_api_get_instance_nw_info(self.stubs, lambda *a, **kw: network_model) network_info = compute_utils.legacy_network_info(network_model) self.fw.prepare_instance_filter(instance_ref, network_info) self.fw.apply_instance_filter(instance_ref, network_info) self._validate_security_group() # Extra test for TCP acceptance rules for ip in network_model.fixed_ips(): if ip['version'] != 4: continue regex = re.compile('-A .* -j ACCEPT -p tcp' ' --dport 80:81 -s %s' % ip['address']) self.assertTrue(len(filter(regex.match, self._out_rules)) > 0, "TCP port 80/81 acceptance rule wasn't added") db.instance_destroy(admin_ctxt, instance_ref['id']) def test_filters_for_instance_with_ip_v6(self): self.flags(use_ipv6=True) network_info = fake_network.fake_get_instance_nw_info(self.stubs, 1) rulesv4, rulesv6 = self.fw._filters_for_instance("fake", network_info) self.assertEquals(len(rulesv4), 2) self.assertEquals(len(rulesv6), 1) def test_filters_for_instance_without_ip_v6(self): self.flags(use_ipv6=False) network_info = fake_network.fake_get_instance_nw_info(self.stubs, 1) rulesv4, rulesv6 = self.fw._filters_for_instance("fake", network_info) self.assertEquals(len(rulesv4), 2) self.assertEquals(len(rulesv6), 0) def test_multinic_iptables(self): ipv4_rules_per_addr = 1 ipv4_addr_per_network = 2 ipv6_rules_per_addr = 1 ipv6_addr_per_network = 1 networks_count = 5 instance_ref = self._create_instance_ref() _get_instance_nw_info = fake_network.fake_get_instance_nw_info network_info = _get_instance_nw_info(self.stubs, networks_count, ipv4_addr_per_network) ipv4_len = len(self.fw.iptables.ipv4['filter'].rules) ipv6_len = len(self.fw.iptables.ipv6['filter'].rules) inst_ipv4, inst_ipv6 = self.fw.instance_rules(instance_ref, network_info) self.fw.prepare_instance_filter(instance_ref, network_info) ipv4 = self.fw.iptables.ipv4['filter'].rules ipv6 = self.fw.iptables.ipv6['filter'].rules ipv4_network_rules = len(ipv4) - len(inst_ipv4) - ipv4_len ipv6_network_rules = len(ipv6) - len(inst_ipv6) - ipv6_len self.assertEquals(ipv4_network_rules, ipv4_rules_per_addr * ipv4_addr_per_network * networks_count) self.assertEquals(ipv6_network_rules, ipv6_rules_per_addr * ipv6_addr_per_network * networks_count) def test_do_refresh_security_group_rules(self): admin_ctxt = context.get_admin_context() instance_ref = self._create_instance_ref() network_info = fake_network.fake_get_instance_nw_info(self.stubs, 1, 1) secgroup = self._create_test_security_group() db.instance_add_security_group(admin_ctxt, instance_ref['uuid'], secgroup['id']) self.fw.prepare_instance_filter(instance_ref, network_info) self.fw.instances[instance_ref['id']] = instance_ref self._validate_security_group() # add a rule to the security group db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'protocol': 'udp', 'from_port': 200, 'to_port': 299, 'cidr': '192.168.99.0/24'}) #validate the extra rule self.fw.refresh_security_group_rules(secgroup) regex = re.compile('-A .* -j ACCEPT -p udp --dport 200:299' ' -s 192.168.99.0/24') self.assertTrue(len(filter(regex.match, self._out_rules)) > 0, "Rules were not updated properly." "The rule for UDP acceptance is missing") def test_provider_firewall_rules(self): # setup basic instance data instance_ref = self._create_instance_ref() # FRAGILE: as in libvirt tests # peeks at how the firewall names chains chain_name = 'inst-%s' % instance_ref['id'] network_info = fake_network.fake_get_instance_nw_info(self.stubs, 1, 1) self.fw.prepare_instance_filter(instance_ref, network_info) self.assertTrue('provider' in self.fw.iptables.ipv4['filter'].chains) rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == 'provider'] self.assertEqual(0, len(rules)) admin_ctxt = context.get_admin_context() # add a rule and send the update message, check for 1 rule provider_fw0 = db.provider_fw_rule_create(admin_ctxt, {'protocol': 'tcp', 'cidr': '10.99.99.99/32', 'from_port': 1, 'to_port': 65535}) self.fw.refresh_provider_fw_rules() rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == 'provider'] self.assertEqual(1, len(rules)) # Add another, refresh, and make sure number of rules goes to two provider_fw1 = db.provider_fw_rule_create(admin_ctxt, {'protocol': 'udp', 'cidr': '10.99.99.99/32', 'from_port': 1, 'to_port': 65535}) self.fw.refresh_provider_fw_rules() rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == 'provider'] self.assertEqual(2, len(rules)) # create the instance filter and make sure it has a jump rule self.fw.prepare_instance_filter(instance_ref, network_info) self.fw.apply_instance_filter(instance_ref, network_info) inst_rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == chain_name] jump_rules = [rule for rule in inst_rules if '-j' in rule.rule] provjump_rules = [] # IptablesTable doesn't make rules unique internally for rule in jump_rules: if 'provider' in rule.rule and rule not in provjump_rules: provjump_rules.append(rule) self.assertEqual(1, len(provjump_rules)) # remove a rule from the db, cast to compute to refresh rule db.provider_fw_rule_destroy(admin_ctxt, provider_fw1['id']) self.fw.refresh_provider_fw_rules() rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == 'provider'] self.assertEqual(1, len(rules)) class XenAPISRSelectionTestCase(test.TestCase): """Unit tests for testing we find the right SR.""" def setUp(self): super(XenAPISRSelectionTestCase, self).setUp() xenapi_fake.reset() def test_safe_find_sr_raise_exception(self): """Ensure StorageRepositoryNotFound is raise when wrong filter.""" self.flags(sr_matching_filter='yadayadayada') stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) session = xenapi_conn.XenAPISession('test_url', 'root', 'test_pass') helper = vm_utils.VMHelper helper.XenAPI = session.get_imported_xenapi() self.assertRaises(exception.StorageRepositoryNotFound, helper.safe_find_sr, session) def test_safe_find_sr_local_storage(self): """Ensure the default local-storage is found.""" self.flags(sr_matching_filter='other-config:i18n-key=local-storage') stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) session = xenapi_conn.XenAPISession('test_url', 'root', 'test_pass') helper = vm_utils.VMHelper helper.XenAPI = session.get_imported_xenapi() host_ref = xenapi_fake.get_all('host')[0] local_sr = xenapi_fake.create_sr( name_label='Fake Storage', type='lvm', other_config={'i18n-original-value-name_label': 'Local storage', 'i18n-key': 'local-storage'}, host_ref=host_ref) expected = helper.safe_find_sr(session) self.assertEqual(local_sr, expected) def test_safe_find_sr_by_other_criteria(self): """Ensure the SR is found when using a different filter.""" self.flags(sr_matching_filter='other-config:my_fake_sr=true') stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) session = xenapi_conn.XenAPISession('test_url', 'root', 'test_pass') helper = vm_utils.VMHelper helper.XenAPI = session.get_imported_xenapi() host_ref = xenapi_fake.get_all('host')[0] local_sr = xenapi_fake.create_sr(name_label='Fake Storage', type='lvm', other_config={'my_fake_sr': 'true'}, host_ref=host_ref) expected = helper.safe_find_sr(session) self.assertEqual(local_sr, expected) def test_safe_find_sr_default(self): """Ensure the default SR is found regardless of other-config.""" self.flags(sr_matching_filter='default-sr:true') stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) session = xenapi_conn.XenAPISession('test_url', 'root', 'test_pass') helper = vm_utils.VMHelper pool_ref = xenapi_fake.create_pool('') helper.XenAPI = session.get_imported_xenapi() expected = helper.safe_find_sr(session) self.assertEqual(session.call_xenapi('pool.get_default_SR', pool_ref), expected) class XenAPIAggregateTestCase(test.TestCase): """Unit tests for aggregate operations.""" def setUp(self): super(XenAPIAggregateTestCase, self).setUp() self.flags(xenapi_connection_url='http://test_url', xenapi_connection_username='test_user', xenapi_connection_password='test_pass', instance_name_template='%d', firewall_driver='nova.virt.xenapi.firewall.' 'Dom0IptablesFirewallDriver', host='host') xenapi_fake.reset() host_ref = xenapi_fake.get_all('host')[0] stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests) self.context = context.get_admin_context() self.conn = xenapi_conn.get_connection(False) self.fake_metadata = {'main_compute': 'host', 'host': xenapi_fake.get_record('host', host_ref)['uuid']} def test_add_to_aggregate_called(self): def fake_add_to_aggregate(context, aggregate, host): fake_add_to_aggregate.called = True self.stubs.Set(self.conn._pool, "add_to_aggregate", fake_add_to_aggregate) self.conn.add_to_aggregate(None, None, None) self.assertTrue(fake_add_to_aggregate.called) def test_add_to_aggregate_for_first_host_sets_metadata(self): def fake_init_pool(id, name): fake_init_pool.called = True self.stubs.Set(self.conn._pool, "_init_pool", fake_init_pool) aggregate = self._aggregate_setup() self.conn._pool.add_to_aggregate(self.context, aggregate, "host") result = db.aggregate_get(self.context, aggregate.id) self.assertTrue(fake_init_pool.called) self.assertDictMatch(self.fake_metadata, result.metadetails) self.assertEqual(aggregate_states.ACTIVE, result.operational_state) def test_join_subordinate(self): """Ensure join_subordinate gets called when the request gets to main.""" def fake_join_subordinate(id, compute_uuid, host, url, user, password): fake_join_subordinate.called = True self.stubs.Set(self.conn._pool, "_join_subordinate", fake_join_subordinate) aggregate = self._aggregate_setup(hosts=['host', 'host2'], metadata=self.fake_metadata) self.conn._pool.add_to_aggregate(self.context, aggregate, "host2", compute_uuid='fake_uuid', url='fake_url', user='fake_user', passwd='fake_pass', xenhost_uuid='fake_uuid') self.assertTrue(fake_join_subordinate.called) def test_add_to_aggregate_first_host(self): def fake_pool_set_name_label(self, session, pool_ref, name): fake_pool_set_name_label.called = True self.stubs.Set(xenapi_fake.SessionBase, "pool_set_name_label", fake_pool_set_name_label) self.conn._session.call_xenapi("pool.create", {"name": "asdf"}) values = {"name": 'fake_aggregate', "availability_zone": 'fake_zone'} result = db.aggregate_create(self.context, values) db.aggregate_host_add(self.context, result.id, "host") aggregate = db.aggregate_get(self.context, result.id) self.assertEqual(["host"], aggregate.hosts) self.assertEqual({}, aggregate.metadetails) self.conn._pool.add_to_aggregate(self.context, aggregate, "host") self.assertTrue(fake_pool_set_name_label.called) def test_remove_from_aggregate_called(self): def fake_remove_from_aggregate(context, aggregate, host): fake_remove_from_aggregate.called = True self.stubs.Set(self.conn._pool, "remove_from_aggregate", fake_remove_from_aggregate) self.conn.remove_from_aggregate(None, None, None) self.assertTrue(fake_remove_from_aggregate.called) def test_remove_from_empty_aggregate(self): values = {"name": 'fake_aggregate', "availability_zone": 'fake_zone'} result = db.aggregate_create(self.context, values) self.assertRaises(exception.AggregateError, self.conn._pool.remove_from_aggregate, None, result, "test_host") def test_remove_subordinate(self): """Ensure eject subordinate gets called.""" def fake_eject_subordinate(id, compute_uuid, host_uuid): fake_eject_subordinate.called = True self.stubs.Set(self.conn._pool, "_eject_subordinate", fake_eject_subordinate) self.fake_metadata['host2'] = 'fake_host2_uuid' aggregate = self._aggregate_setup(hosts=['host', 'host2'], metadata=self.fake_metadata) self.conn._pool.remove_from_aggregate(self.context, aggregate, "host2") self.assertTrue(fake_eject_subordinate.called) def test_remove_main_solo(self): """Ensure metadata are cleared after removal.""" def fake_clear_pool(id): fake_clear_pool.called = True self.stubs.Set(self.conn._pool, "_clear_pool", fake_clear_pool) aggregate = self._aggregate_setup(aggr_state=aggregate_states.ACTIVE, metadata=self.fake_metadata) self.conn._pool.remove_from_aggregate(self.context, aggregate, "host") result = db.aggregate_get(self.context, aggregate.id) self.assertTrue(fake_clear_pool.called) self.assertDictMatch({}, result.metadetails) self.assertEqual(aggregate_states.ACTIVE, result.operational_state) def test_remote_main_non_empty_pool(self): """Ensure AggregateError is raised if removing the main.""" aggregate = self._aggregate_setup(aggr_state=aggregate_states.ACTIVE, hosts=['host', 'host2'], metadata=self.fake_metadata) self.assertRaises(exception.InvalidAggregateAction, self.conn._pool.remove_from_aggregate, self.context, aggregate, "host") def _aggregate_setup(self, aggr_name='fake_aggregate', aggr_zone='fake_zone', aggr_state=aggregate_states.CREATED, hosts=['host'], metadata=None): values = {"name": aggr_name, "availability_zone": aggr_zone, "operational_state": aggr_state, } result = db.aggregate_create(self.context, values) for host in hosts: db.aggregate_host_add(self.context, result.id, host) if metadata: db.aggregate_metadata_add(self.context, result.id, metadata) return db.aggregate_get(self.context, result.id)
usc-isi/extra-specs
nova/tests/test_xenapi.py
Python
apache-2.0
83,206
/** * Copyright (C) 2012 Ness Computing, 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. */ package com.nesscomputing.jersey.types; import static com.google.common.base.Preconditions.checkNotNull; import java.util.Objects; import java.util.regex.Pattern; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; /** * Simple Jersey date parameter class. Accepts either milliseconds since epoch UTC or ISO formatted dates. * Will convert everything into UTC regardless of input timezone. */ public class DateParam { private static final Pattern NUMBER_PATTERN = Pattern.compile("-?\\d+"); private final DateTime dateTime; DateParam(DateTime dateTime) { this.dateTime = checkNotNull(dateTime, "null datetime").withZone(DateTimeZone.UTC); } public static DateParam valueOf(DateTime dateTime) { return new DateParam(dateTime); } public static DateParam valueOf(String string) { if (string == null) { return null; } if (NUMBER_PATTERN.matcher(string).matches()) { return new DateParam(new DateTime(Long.parseLong(string), DateTimeZone.UTC)); } else { return new DateParam(new DateTime(string, DateTimeZone.UTC)); } } /** * @return a DateTime if the parameter was provided, or null otherwise. */ // This method is static so that you can handle optional parameters as null instances. public static DateTime getDateTime(DateParam param) { return param == null ? null : param.dateTime; } @Override public String toString() { return Objects.toString(dateTime); } }
NessComputing/components-ness-jersey
jersey/src/main/java/com/nesscomputing/jersey/types/DateParam.java
Java
apache-2.0
2,189
module.exports = unbuild unbuild.usage = "npm unbuild <folder>\n(this is plumbing)" var readJson = require("read-package-json") , rm = require("./utils/gently-rm.js") , gentlyRm = require("./utils/gently-rm.js") , npm = require("./npm.js") , path = require("path") , fs = require("graceful-fs") , lifecycle = require("./utils/lifecycle.js") , asyncMap = require("slide").asyncMap , chain = require("slide").chain , log = require("npmlog") , build = require("./build.js") // args is a list of folders. // remove any bins/etc, and then DELETE the folder. function unbuild (args, silent, cb) { if (typeof silent === 'function') cb = silent, silent = false asyncMap(args, unbuild_(silent), cb) } function unbuild_ (silent) { return function (folder, cb_) { function cb (er) { cb_(er, path.relative(npm.root, folder)) } folder = path.resolve(folder) delete build._didBuild[folder] log.info(folder, "unbuild") readJson(path.resolve(folder, "package.json"), function (er, pkg) { // if no json, then just trash it, but no scripts or whatever. if (er) return rm(folder, cb) readJson.cache.del(folder) chain ( [ [lifecycle, pkg, "preuninstall", folder, false, true] , [lifecycle, pkg, "uninstall", folder, false, true] , !silent && function(cb) { console.log("unbuild " + pkg._id) cb() } , [rmStuff, pkg, folder] , [lifecycle, pkg, "postuninstall", folder, false, true] , [rm, folder] ] , cb ) }) }} function rmStuff (pkg, folder, cb) { // if it's global, and folder is in {prefix}/node_modules, // then bins are in {prefix}/bin // otherwise, then bins are in folder/../.bin var parent = path.dirname(folder) , gnm = npm.dir , top = gnm === parent readJson.cache.del(path.resolve(folder, "package.json")) log.verbose([top, gnm, parent], "unbuild " + pkg._id) asyncMap([rmBins, rmMans], function (fn, cb) { fn(pkg, folder, parent, top, cb) }, cb) } function rmBins (pkg, folder, parent, top, cb) { if (!pkg.bin) return cb() var binRoot = top ? npm.bin : path.resolve(parent, ".bin") log.verbose([binRoot, pkg.bin], "binRoot") asyncMap(Object.keys(pkg.bin), function (b, cb) { if (process.platform === "win32") { chain([ [rm, path.resolve(binRoot, b) + ".cmd"] , [rm, path.resolve(binRoot, b) ] ], cb) } else { gentlyRm( path.resolve(binRoot, b) , !npm.config.get("force") && folder , cb ) } }, cb) } function rmMans (pkg, folder, parent, top, cb) { if (!pkg.man || !top || process.platform === "win32" || !npm.config.get("global")) { return cb() } var manRoot = path.resolve(npm.config.get("prefix"), "share", "man") asyncMap(pkg.man, function (man, cb) { if (Array.isArray(man)) { man.forEach(rm) } else { rm(man) } function rm(man) { var parseMan = man.match(/(.*)\.([0-9]+)(\.gz)?$/) , stem = parseMan[1] , sxn = parseMan[2] , gz = parseMan[3] || "" , bn = path.basename(stem) , manDest = path.join( manRoot , "man"+sxn , (bn.indexOf(pkg.name) === 0 ? bn : pkg.name + "-" + bn) + "." + sxn + gz ) gentlyRm( manDest , !npm.config.get("force") && folder , cb ) } }, cb) }
fabm/BabyHelp
node_modules/npm/lib/unbuild.js
JavaScript
apache-2.0
3,505
package hu.akarnokd.rxjava; import java.util.concurrent.TimeUnit; import rx.*; import rx.plugins.RxJavaHooks; import rx.schedulers.Schedulers; public class TrackSubscriber1 { @SuppressWarnings("unchecked") public static void main(String[] args) throws Exception { RxJavaHooks.setOnObservableStart((observable, onSubscribe) -> { if (!onSubscribe.getClass().getName().toLowerCase().contains("map")) { return onSubscribe; } System.out.println("Started"); return (Observable.OnSubscribe<Object>)observer -> { class SignalTracker extends Subscriber<Object> { @Override public void onNext(Object o) { // handle onNext before or aftern notifying the downstream observer.onNext(o); } @Override public void onError(Throwable t) { // handle onError observer.onError(t); } @Override public void onCompleted() { // handle onComplete System.out.println("Completed"); observer.onCompleted(); } } SignalTracker t = new SignalTracker(); onSubscribe.call(t); }; }); Observable<Integer> observable = Observable.range(1, 5) .subscribeOn(Schedulers.io()) .observeOn(Schedulers.computation()) .map(integer -> { try { TimeUnit.SECONDS.sleep(1); } catch (InterruptedException e) { e.printStackTrace(); } return integer * 3; }); observable.subscribe(System.out::println); Thread.sleep(6000L); } }
akarnokd/akarnokd-misc
src/main/java/hu/akarnokd/rxjava/TrackSubscriber1.java
Java
apache-2.0
1,774
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_74) on Fri Apr 01 14:41:57 CDT 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Uses of Class org.apache.solr.client.solrj.response.schema.SchemaResponse.SchemaNameResponse (Solr 6.0.0 API)</title> <meta name="date" content="2016-04-01"> <link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.solr.client.solrj.response.schema.SchemaResponse.SchemaNameResponse (Solr 6.0.0 API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/apache/solr/client/solrj/response/schema/class-use/SchemaResponse.SchemaNameResponse.html" target="_top">Frames</a></li> <li><a href="SchemaResponse.SchemaNameResponse.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class org.apache.solr.client.solrj.response.schema.SchemaResponse.SchemaNameResponse" class="title">Uses of Class<br>org.apache.solr.client.solrj.response.schema.SchemaResponse.SchemaNameResponse</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">SchemaResponse.SchemaNameResponse</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.solr.client.solrj.request.schema">org.apache.solr.client.solrj.request.schema</a></td> <td class="colLast"> <div class="block">Convenience classes for making Schema API requests.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.apache.solr.client.solrj.request.schema"> <!-- --> </a> <h3>Uses of <a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">SchemaResponse.SchemaNameResponse</a> in <a href="../../../../../../../../org/apache/solr/client/solrj/request/schema/package-summary.html">org.apache.solr.client.solrj.request.schema</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../../org/apache/solr/client/solrj/request/schema/package-summary.html">org.apache.solr.client.solrj.request.schema</a> that return <a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">SchemaResponse.SchemaNameResponse</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">SchemaResponse.SchemaNameResponse</a></code></td> <td class="colLast"><span class="typeNameLabel">SchemaRequest.SchemaName.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/solr/client/solrj/request/schema/SchemaRequest.SchemaName.html#createResponse-org.apache.solr.client.solrj.SolrClient-">createResponse</a></span>(<a href="../../../../../../../../org/apache/solr/client/solrj/SolrClient.html" title="class in org.apache.solr.client.solrj">SolrClient</a>&nbsp;client)</code>&nbsp;</td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/apache/solr/client/solrj/response/schema/class-use/SchemaResponse.SchemaNameResponse.html" target="_top">Frames</a></li> <li><a href="SchemaResponse.SchemaNameResponse.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small> <i>Copyright &copy; 2000-2016 Apache Software Foundation. All Rights Reserved.</i> <script src='../../../../../../../../prettify.js' type='text/javascript'></script> <script type='text/javascript'> (function(){ var oldonload = window.onload; if (typeof oldonload != 'function') { window.onload = prettyPrint; } else { window.onload = function() { oldonload(); prettyPrint(); } } })(); </script> </small></p> </body> </html>
Velaya/gbol_solr
docs/solr-solrj/org/apache/solr/client/solrj/response/schema/class-use/SchemaResponse.SchemaNameResponse.html
HTML
apache-2.0
8,417
package tk.zielony.carbonsamples.feature; import android.app.Activity; import android.os.Bundle; import tk.zielony.carbonsamples.R; /** * Created by Marcin on 2016-03-13. */ public class TextMarkerActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_textmarker); } }
sevoan/Carbon
samples/src/main/java/tk/zielony/carbonsamples/feature/TextMarkerActivity.java
Java
apache-2.0
408
// // nOpenWeb.h // janbin // // Created by katobit on 10/25/2556 BE. // Copyright (c) 2556 Kittipong Kulapruk. All rights reserved. // #import <UIKit/UIKit.h> @interface nOpenWeb_iphone : UIViewController<UIWebViewDelegate> { NSString *urlMain; NSString *type; NSString *link; } @property (strong, nonatomic) NSString *urlMain; @property (strong, nonatomic) NSString *type; @property (strong, nonatomic) NSString *link; @property (strong, nonatomic) IBOutlet UIWebView *webMain; @end
godsid/iOSDogDogLover
dogdoglover/iphone/nOpenWeb_iphone.h
C
apache-2.0
508
class Stage < ActiveRecord::Base self.primary_key = 'reference' include Taggable end
uken/penman
spec/dummy/app/models/stage.rb
Ruby
apache-2.0
90
// Copyright (c) Microsoft Corporation // // 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 // // THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER // EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, // FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. // // See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. namespace Microsoft.Spectrum.Storage.Table.Azure.DataAccessLayer { using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using Microsoft.Spectrum.Common; using Microsoft.Spectrum.Storage.DataContracts; using Microsoft.Spectrum.Storage.Table.Azure.Helpers; using Microsoft.WindowsAzure.Storage.Table; using UserRoleType = Microsoft.Spectrum.Storage.Enums.UserRoles; /// <summary> /// ----------------------------------------------------------------- /// Namespace: Microsoft.Spectrum.Storage.Table.Azure /// Class: UserManagementTableOperations /// Description: class containing operations to deal with user related tables /// ----------------------------------------------------------------- public class UserManagementTableOperations : IUserManagementTableOperations { private readonly RetryAzureTableOperations<Users> userTableOperations; private readonly RetryAzureTableOperations<UserRoles> userRolesTableOperations; private readonly RetryAzureTableOperations<WebpagesOAuthMembership> oauthMembershipTableOperations; /// <summary> /// Initializes a new instance of the <see cref="UserManagementTableOperations"/> class /// </summary> /// <param name="dataContext">data context containing table references</param> public UserManagementTableOperations(AzureTableDbContext dataContext) { if (dataContext == null) { throw new ArgumentNullException("dataContext"); } this.userTableOperations = dataContext.UserTableOperations; this.userTableOperations.GetTableReference(AzureTableHelper.UsersTable); this.userRolesTableOperations = dataContext.UserRoleTableOperations; this.userRolesTableOperations.GetTableReference(AzureTableHelper.UserRoleTable); this.oauthMembershipTableOperations = dataContext.OAuthMembershipTableOperations; this.oauthMembershipTableOperations.GetTableReference(AzureTableHelper.WebpagesOAuthMembershipTable); } public User GetUserByProviderUserId(string providerUserId) { return this.GetUserById(this.GetMembershipInfoByProviderUserId(providerUserId).UserId); } /// <summary> /// Get user details by user id /// </summary> /// <param name="userId">user id</param> /// <returns>user</returns> public User GetUserByAccountEmail(string accountEmail) { if (string.IsNullOrWhiteSpace(accountEmail)) { throw new ArgumentException("accountEmail should not be empty", "accountEmail"); } string likeString = accountEmail.ToLower(CultureInfo.InvariantCulture).Replace(" ", string.Empty); Users user = this.userTableOperations.QueryEntities<Users>(x => x.RowKey.IndexOf(likeString, StringComparison.OrdinalIgnoreCase) == 0).FirstOrDefault(); if (user != null) { return new User(user.Id, user.UserName, user.FirstName, user.LastName, user.Location, user.Region, user.TimeZoneId, user.PreferredEmail, user.AccountEmail, user.CreatedOn.ToString(), user.UpdatedTime.ToString(), user.Link, user.Gender, user.Address1, user.Address2, user.Phone, user.Country, user.ZipCode, user.PhoneCountryCode, user.SubscribeNotifications); } return null; } /// <summary> /// Get user details by user name /// </summary> /// <param name="userName">user name</param> /// <returns>user</returns> public void InsertOrUpdateUser(User user) { if (user == null) { throw new ArgumentException("user can not be null", "user"); } Users userTableEntity = new Users { AccountEmail = user.AccountEmail, Address1 = user.Address1, Address2 = user.Address2, Country = user.Country, CreatedOn = Convert.ToDateTime(user.CreatedOn, CultureInfo.InvariantCulture), FirstName = user.FirstName, Gender = user.Gender, LastName = user.LastName, Link = user.Link, Location = user.Location, PartitionKey = Constants.DummyPartitionKey, RowKey = user.UserName.Replace(" ", string.Empty).ToLower(CultureInfo.InvariantCulture) + ":" + user.UserId.ToString(CultureInfo.InvariantCulture), Phone = user.Phone, PhoneCountryCode = user.PhoneCountryCode, PreferredEmail = user.PreferredEmail, Region = user.Region, TimeZone = user.TimeZone, TimeZoneId = user.TimeZoneId, UpdatedTime = Convert.ToDateTime(user.UpdatedTime, CultureInfo.InvariantCulture), UserName = user.UserName, ZipCode = user.ZipCode, SubscribeNotifications = user.SubscribeNotifications }; this.userTableOperations.InsertOrReplaceEntity(userTableEntity, true); } /// <summary> /// insert or update user /// </summary> /// <param name="user">user details</param> public UserRole GetUserRole(int userId, Guid measurementStationId) { UserRoles userRoleEntity = this.userRolesTableOperations.GetByKeys<UserRoles>(measurementStationId.ToString(), userId.ToString(CultureInfo.InvariantCulture)).FirstOrDefault(); if (userRoleEntity != null) { return new UserRole(userRoleEntity.UserId, userRoleEntity.Role, userRoleEntity.MeasurementStationId); } return null; } public void RemoveAdmin(int userId, Guid measurementStationId) { UserRoles userRoleEntity = this.userRolesTableOperations.GetByKeys<UserRoles>(measurementStationId.ToString(), userId.ToString(CultureInfo.InvariantCulture)).FirstOrDefault(); this.userRolesTableOperations.DeleteEntity(userRoleEntity); } /// <summary> /// Get user roles by UserId /// </summary> /// <param name="userId">user Id</param> /// <returns>list of user roles</returns> public IEnumerable<UserRole> GetUserRoles(int userId) { string query = TableQuery.GenerateFilterCondition("RowKey", QueryComparisons.Equal, userId.ToString(CultureInfo.InvariantCulture)); return this.userRolesTableOperations.ExecuteQueryWithContinuation<UserRoles>(query) .Select(x => new UserRole(x.UserId, x.Role, x.MeasurementStationId)); } /// <summary> /// Get user roles by user id /// </summary> /// <param name="userId">user id</param> /// <returns>user role</returns> public void InsertOrUpdate(UserRole userRole) { if (userRole == null) { throw new ArgumentException("userRole can not be null", "userRole"); } UserRoles userRoleEntity = new UserRoles(userRole.MeasurementStationId, userRole.UserId) { Role = userRole.Role }; this.userRolesTableOperations.InsertOrReplaceEntity(userRoleEntity, true); } /// <summary> /// insert or update user role /// </summary> /// <param name="userRole"></param> public OAuthMembershipInfo GetMembershipInfoByProviderUserId(string providerUserId) { WebpagesOAuthMembership membershipEntity = this.oauthMembershipTableOperations.QueryEntities<WebpagesOAuthMembership>(x => { System.Diagnostics.Debug.WriteLine(x.RowKey); return x.RowKey.IndexOf(providerUserId, StringComparison.OrdinalIgnoreCase) == 0; }).SingleOrDefault(); if (membershipEntity != null) { return new OAuthMembershipInfo(membershipEntity.ProviderUserId, membershipEntity.Provider, membershipEntity.UserId); } return null; } /// <summary> /// Get membership info by provider user id /// </summary> /// <param name="providerUserId">provider user id</param> /// <returns>membership info</returns> public OAuthMembershipInfo GetMembershipInfoByUserId(int userId) { WebpagesOAuthMembership membershipEntity = this.oauthMembershipTableOperations.QueryEntities<WebpagesOAuthMembership>(x => x.RowKey.IndexOf(userId.ToString(CultureInfo.InvariantCulture), StringComparison.OrdinalIgnoreCase) > 0).SingleOrDefault(); return new OAuthMembershipInfo(membershipEntity.ProviderUserId, membershipEntity.Provider, membershipEntity.UserId); } /// <summary> /// Gets membership info by user id /// </summary> /// <param name="userId">user id</param> /// <returns>membership info</returns> public void InsertOrUpdateMembershipInfo(OAuthMembershipInfo membershipInfo) { if (membershipInfo == null) { throw new ArgumentException("membershipInfo can not be null", "membershipInfo"); } WebpagesOAuthMembership membershipEntity = new WebpagesOAuthMembership(membershipInfo.ProviderUserId, membershipInfo.UserId.ToString(CultureInfo.InvariantCulture), membershipInfo.Provider); this.oauthMembershipTableOperations.InsertOrReplaceEntity(membershipEntity, true); } /// <summary> /// Inserts or update membership info /// </summary> /// <param name="membershipInfo">membership info</param> public User GetUserById(int userId) { string likeString = ":" + userId.ToString(CultureInfo.InvariantCulture); Users user = this.userTableOperations.QueryEntities<Users>(x => x.RowKey.IndexOf(likeString, StringComparison.OrdinalIgnoreCase) > 0).SingleOrDefault(); if (user != null) { return new User(user.Id, user.UserName, user.FirstName, user.LastName, user.Location, user.Region, user.TimeZoneId, user.PreferredEmail, user.AccountEmail, user.CreatedOn.ToString(), user.UpdatedTime.ToString(), user.Link, user.Gender, user.Address1, user.Address2, user.Phone, user.Country, user.ZipCode, user.PhoneCountryCode, user.SubscribeNotifications); } return null; } /// <summary> /// Gets all the Station administrators for the measurement station. /// </summary> /// <param name="measurementStationId">Measurement Station Id.</param> /// <returns>Collection Station administrators.</returns> public IEnumerable<User> GetAllStationAdmins(Guid measurementStationId) { if (measurementStationId == null) { throw new ArgumentNullException("measurementStationId", "Measurement station id can not be null"); } string stationAdminRole = UserRoleType.StationAdmin.ToString(); string partitionKey = measurementStationId.ToString(); IEnumerable<User> stationAdmins = this.userRolesTableOperations.QueryEntities<UserRoles>( (user) => { return (user.PartitionKey == partitionKey) && (string.Compare(user.Role, stationAdminRole, StringComparison.OrdinalIgnoreCase) == 0); }) .Select(stationAmdin => this.GetUserById(stationAmdin.UserId)); return stationAdmins; } /// <summary> /// Gets all the Site administrators. /// </summary> /// <returns>Collection site administrators.</returns> public IEnumerable<User> GetAllSiteAdmins() { string stationAdminRole = UserRoleType.SiteAdmin.ToString(); IEnumerable<User> siteAdmins = this.userRolesTableOperations.QueryEntities<UserRoles>( (user) => { // Idea behind having a different partition key for site Administrators instead of measurement station id is to avoid data redundancy that // can occur have a corresponding entry for each measurement station for a given user return (user.PartitionKey == Constants.SiteAdminsPartitionKey) && (string.Compare(user.Role, stationAdminRole, StringComparison.OrdinalIgnoreCase) == 0); }) .Select(siteAdmin => this.GetUserById(siteAdmin.UserId)); return siteAdmins; } public User GetUserByEmail(string email) { Users user = this.userTableOperations.GetByKeys<Users>(Constants.DummyPartitionKey).Where(x => (string.Compare(x.AccountEmail, email, StringComparison.OrdinalIgnoreCase) == 0)).FirstOrDefault(); if (user != null) { return new User(user.Id, user.UserName, user.FirstName, user.LastName, user.Location, user.Region, user.TimeZoneId, user.PreferredEmail, user.AccountEmail, user.CreatedOn.ToString(CultureInfo.InvariantCulture), user.UpdatedTime.ToString(CultureInfo.InvariantCulture), user.Link, user.Gender, user.Address1, user.Address2, user.Phone, user.Country, user.ZipCode, user.PhoneCountryCode, user.SubscribeNotifications); } return null; } } }
cityscapesc/specobs
main/external/dev/Server/MS.Storage.Table.Azure/DataAccessLayer/UserManagementTableOperations.cs
C#
apache-2.0
14,425
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_172) on Wed Mar 13 10:37:22 EDT 2019 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>API Help (jrugged-core 4.0.0-SNAPSHOT API)</title> <meta name="date" content="2019-03-13"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <script type="text/javascript" src="script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="API Help (jrugged-core 4.0.0-SNAPSHOT API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li>Use</li> <li><a href="overview-tree.html">Tree</a></li> <li><a href="deprecated-list.html">Deprecated</a></li> <li><a href="index-all.html">Index</a></li> <li class="navBarCell1Rev">Help</li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="index.html?help-doc.html" target="_top">Frames</a></li> <li><a href="help-doc.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 class="title">How This API Document Is Organized</h1> <div class="subTitle">This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.</div> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <h2>Overview</h2> <p>The <a href="overview-summary.html">Overview</a> page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.</p> </li> <li class="blockList"> <h2>Package</h2> <p>Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:</p> <ul> <li>Interfaces (italic)</li> <li>Classes</li> <li>Enums</li> <li>Exceptions</li> <li>Errors</li> <li>Annotation Types</li> </ul> </li> <li class="blockList"> <h2>Class/Interface</h2> <p>Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:</p> <ul> <li>Class inheritance diagram</li> <li>Direct Subclasses</li> <li>All Known Subinterfaces</li> <li>All Known Implementing Classes</li> <li>Class/interface declaration</li> <li>Class/interface description</li> </ul> <ul> <li>Nested Class Summary</li> <li>Field Summary</li> <li>Constructor Summary</li> <li>Method Summary</li> </ul> <ul> <li>Field Detail</li> <li>Constructor Detail</li> <li>Method Detail</li> </ul> <p>Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.</p> </li> <li class="blockList"> <h2>Annotation Type</h2> <p>Each annotation type has its own separate page with the following sections:</p> <ul> <li>Annotation Type declaration</li> <li>Annotation Type description</li> <li>Required Element Summary</li> <li>Optional Element Summary</li> <li>Element Detail</li> </ul> </li> <li class="blockList"> <h2>Enum</h2> <p>Each enum has its own separate page with the following sections:</p> <ul> <li>Enum declaration</li> <li>Enum description</li> <li>Enum Constant Summary</li> <li>Enum Constant Detail</li> </ul> </li> <li class="blockList"> <h2>Use</h2> <p>Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.</p> </li> <li class="blockList"> <h2>Tree (Class Hierarchy)</h2> <p>There is a <a href="overview-tree.html">Class Hierarchy</a> page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with <code>java.lang.Object</code>. The interfaces do not inherit from <code>java.lang.Object</code>.</p> <ul> <li>When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.</li> <li>When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.</li> </ul> </li> <li class="blockList"> <h2>Deprecated API</h2> <p>The <a href="deprecated-list.html">Deprecated API</a> page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.</p> </li> <li class="blockList"> <h2>Index</h2> <p>The <a href="index-all.html">Index</a> contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.</p> </li> <li class="blockList"> <h2>Prev/Next</h2> <p>These links take you to the next or previous class, interface, package, or related page.</p> </li> <li class="blockList"> <h2>Frames/No Frames</h2> <p>These links show and hide the HTML frames. All pages are available with or without frames.</p> </li> <li class="blockList"> <h2>All Classes</h2> <p>The <a href="allclasses-noframe.html">All Classes</a> link shows all classes and interfaces except non-static nested types.</p> </li> <li class="blockList"> <h2>Serialized Form</h2> <p>Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.</p> </li> <li class="blockList"> <h2>Constant Field Values</h2> <p>The <a href="constant-values.html">Constant Field Values</a> page lists the static final fields and their values.</p> </li> </ul> <span class="emphasizedPhrase">This help file applies to API documentation generated using the standard doclet.</span></div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li>Use</li> <li><a href="overview-tree.html">Tree</a></li> <li><a href="deprecated-list.html">Deprecated</a></li> <li><a href="index-all.html">Index</a></li> <li class="navBarCell1Rev">Help</li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="index.html?help-doc.html" target="_top">Frames</a></li> <li><a href="help-doc.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2019. All Rights Reserved.</small></p> </body> </html>
Comcast/jrugged
docs/4.0.0/jrugged-core/help-doc.html
HTML
apache-2.0
8,999
/* */ package com.hundsun.network.gates.houchao.biz.services.pojo; /* */ /* */ import org.springframework.context.annotation.Scope; /* */ import org.springframework.stereotype.Service; /* */ /* */ @Service("outFundTrans") /* */ @Scope("prototype") /* */ public class OutFundTrans extends InOutFundTrans /* */ { /* */ protected boolean isTrans() /* */ { /* 26 */ return true; /* */ } /* */ /* */ protected boolean isOutFund() /* */ { /* 31 */ return true; /* */ } /* */ /* */ protected boolean isNeedRecordUncomeFund() /* */ { /* 39 */ return false; /* */ } /* */ /* */ protected boolean isInOutTrans() /* */ { /* 49 */ return true; /* */ } /* */ } /* Location: E:\__安装归档\linquan-20161112\deploy16\houchao\webroot\WEB-INF\classes\ * Qualified Name: com.hundsun.network.gates.houchao.biz.services.pojo.OutFundTrans * JD-Core Version: 0.6.0 */
hnccfr/ccfrweb
fundcore/src/com/hundsun/network/gates/houchao/biz/services/pojo/OutFundTrans.java
Java
apache-2.0
1,022
import type { IProviderSettings } from '@spinnaker/core'; import { SETTINGS } from '@spinnaker/core'; export interface IAppengineProviderSettings extends IProviderSettings { defaults: { account?: string; }; } export const AppengineProviderSettings: IAppengineProviderSettings = (SETTINGS.providers .appengine as IAppengineProviderSettings) || { defaults: {} }; if (AppengineProviderSettings) { AppengineProviderSettings.resetToOriginal = SETTINGS.resetProvider('appengine'); }
spinnaker/deck
packages/appengine/src/appengine.settings.ts
TypeScript
apache-2.0
491
/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #pragma once #include <memory> #include "kernel/expr.h" namespace lean { /** \brief Functional object for creating expressions with maximally shared sub-expressions. */ class max_sharing_fn { struct imp; friend expr max_sharing(expr const & a); std::unique_ptr<imp> m_ptr; public: max_sharing_fn(); ~max_sharing_fn(); expr operator()(expr const & a); /** \brief Clear the cache. */ void clear(); }; /** \brief The resultant expression is structurally identical to the input one, but it uses maximally shared sub-expressions. */ expr max_sharing(expr const & a); }
levnach/lean-leo
src/library/max_sharing.h
C
apache-2.0
788
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace ExemploEFCrud { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); } } }
carloscds/AspNetCoreOracle
ExemploEFCrud/ExemploEFCrud/Global.asax.cs
C#
apache-2.0
574
/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.web.bind.support; import org.springframework.beans.PropertyEditorRegistrar; import org.springframework.core.convert.ConversionService; import org.springframework.lang.Nullable; import org.springframework.validation.BindingErrorProcessor; import org.springframework.validation.MessageCodesResolver; import org.springframework.validation.Validator; import org.springframework.web.bind.WebDataBinder; /** * Convenient {@link WebBindingInitializer} for declarative configuration * in a Spring application context. Allows for reusing pre-configured * initializers with multiple controller/handlers. * * @author Juergen Hoeller * @since 2.5 * @see #setDirectFieldAccess * @see #setMessageCodesResolver * @see #setBindingErrorProcessor * @see #setValidator(Validator) * @see #setConversionService(ConversionService) * @see #setPropertyEditorRegistrar */ public class ConfigurableWebBindingInitializer implements WebBindingInitializer { private boolean autoGrowNestedPaths = true; private boolean directFieldAccess = false; @Nullable private MessageCodesResolver messageCodesResolver; @Nullable private BindingErrorProcessor bindingErrorProcessor; @Nullable private Validator validator; @Nullable private ConversionService conversionService; @Nullable private PropertyEditorRegistrar[] propertyEditorRegistrars; /** * Set whether a binder should attempt to "auto-grow" a nested path that contains a null value. * <p>If "true", a null path location will be populated with a default object value and traversed * instead of resulting in an exception. This flag also enables auto-growth of collection elements * when accessing an out-of-bounds index. * <p>Default is "true" on a standard DataBinder. Note that this feature is only supported * for bean property access (DataBinder's default mode), not for field access. * @see org.springframework.validation.DataBinder#initBeanPropertyAccess() * @see org.springframework.validation.DataBinder#setAutoGrowNestedPaths */ public void setAutoGrowNestedPaths(boolean autoGrowNestedPaths) { this.autoGrowNestedPaths = autoGrowNestedPaths; } /** * Return whether a binder should attempt to "auto-grow" a nested path that contains a null value. */ public boolean isAutoGrowNestedPaths() { return this.autoGrowNestedPaths; } /** * Set whether to use direct field access instead of bean property access. * <p>Default is {@code false}, using bean property access. * Switch this to {@code true} in order to enforce direct field access. * @see org.springframework.validation.DataBinder#initDirectFieldAccess() * @see org.springframework.validation.DataBinder#initBeanPropertyAccess() */ public final void setDirectFieldAccess(boolean directFieldAccess) { this.directFieldAccess = directFieldAccess; } /** * Return whether to use direct field access instead of bean property access. */ public boolean isDirectFieldAccess() { return this.directFieldAccess; } /** * Set the strategy to use for resolving errors into message codes. * Applies the given strategy to all data binders used by this controller. * <p>Default is {@code null}, i.e. using the default strategy of * the data binder. * @see org.springframework.validation.DataBinder#setMessageCodesResolver */ public final void setMessageCodesResolver(@Nullable MessageCodesResolver messageCodesResolver) { this.messageCodesResolver = messageCodesResolver; } /** * Return the strategy to use for resolving errors into message codes. */ @Nullable public final MessageCodesResolver getMessageCodesResolver() { return this.messageCodesResolver; } /** * Set the strategy to use for processing binding errors, that is, * required field errors and {@code PropertyAccessException}s. * <p>Default is {@code null}, that is, using the default strategy * of the data binder. * @see org.springframework.validation.DataBinder#setBindingErrorProcessor */ public final void setBindingErrorProcessor(@Nullable BindingErrorProcessor bindingErrorProcessor) { this.bindingErrorProcessor = bindingErrorProcessor; } /** * Return the strategy to use for processing binding errors. */ @Nullable public final BindingErrorProcessor getBindingErrorProcessor() { return this.bindingErrorProcessor; } /** * Set the Validator to apply after each binding step. */ public final void setValidator(@Nullable Validator validator) { this.validator = validator; } /** * Return the Validator to apply after each binding step, if any. */ @Nullable public final Validator getValidator() { return this.validator; } /** * Specify a ConversionService which will apply to every DataBinder. * @since 3.0 */ public final void setConversionService(@Nullable ConversionService conversionService) { this.conversionService = conversionService; } /** * Return the ConversionService which will apply to every DataBinder. */ @Nullable public final ConversionService getConversionService() { return this.conversionService; } /** * Specify a single PropertyEditorRegistrar to be applied to every DataBinder. */ public final void setPropertyEditorRegistrar(PropertyEditorRegistrar propertyEditorRegistrar) { this.propertyEditorRegistrars = new PropertyEditorRegistrar[] {propertyEditorRegistrar}; } /** * Specify multiple PropertyEditorRegistrars to be applied to every DataBinder. */ public final void setPropertyEditorRegistrars(@Nullable PropertyEditorRegistrar[] propertyEditorRegistrars) { this.propertyEditorRegistrars = propertyEditorRegistrars; } /** * Return the PropertyEditorRegistrars to be applied to every DataBinder. */ @Nullable public final PropertyEditorRegistrar[] getPropertyEditorRegistrars() { return this.propertyEditorRegistrars; } @Override public void initBinder(WebDataBinder binder) { binder.setAutoGrowNestedPaths(this.autoGrowNestedPaths); if (this.directFieldAccess) { binder.initDirectFieldAccess(); } if (this.messageCodesResolver != null) { binder.setMessageCodesResolver(this.messageCodesResolver); } if (this.bindingErrorProcessor != null) { binder.setBindingErrorProcessor(this.bindingErrorProcessor); } if (this.validator != null && binder.getTarget() != null && this.validator.supports(binder.getTarget().getClass())) { binder.setValidator(this.validator); } if (this.conversionService != null) { binder.setConversionService(this.conversionService); } if (this.propertyEditorRegistrars != null) { for (PropertyEditorRegistrar propertyEditorRegistrar : this.propertyEditorRegistrars) { propertyEditorRegistrar.registerCustomEditors(binder); } } } }
spring-projects/spring-framework
spring-web/src/main/java/org/springframework/web/bind/support/ConfigurableWebBindingInitializer.java
Java
apache-2.0
7,350
\hypertarget{dir_e1120d38b56829564970ce9576dddbdf}{\section{jamms Directory Reference} \label{dir_e1120d38b56829564970ce9576dddbdf}\index{jamms Directory Reference@{jamms Directory Reference}} } Directory dependency graph for jamms\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=262pt]{dir_e1120d38b56829564970ce9576dddbdf_dep} \end{center} \end{figure} \subsection*{Directories} \begin{DoxyCompactItemize} \item directory \hyperlink{dir_77b208f94221f94139bdd2444dc4f570}{Tower\+Defense} \end{DoxyCompactItemize}
sli-fox/jamms
TowerDefense/Documentation/latex/dir_e1120d38b56829564970ce9576dddbdf.tex
TeX
apache-2.0
550
/* * Copyright 2000-2013 JetBrains s.r.o. * Copyright 2014-2015 AS3Boyan * Copyright 2014-2014 Elias Ku * * 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. */ // This is a generated file. Not intended for manual editing. package com.intellij.plugins.haxe.lang.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; import static com.intellij.plugins.haxe.lang.lexer.HaxeTokenTypes.*; import com.intellij.plugins.haxe.lang.psi.*; public class HaxeMultiplicativeExpressionImpl extends HaxeExpressionImpl implements HaxeMultiplicativeExpression { public HaxeMultiplicativeExpressionImpl(ASTNode node) { super(node); } public void accept(@NotNull PsiElementVisitor visitor) { if (visitor instanceof HaxeVisitor) ((HaxeVisitor)visitor).visitMultiplicativeExpression(this); else super.accept(visitor); } @Override @NotNull public List<HaxeExpression> getExpressionList() { return PsiTreeUtil.getChildrenOfTypeAsList(this, HaxeExpression.class); } @Override @Nullable public HaxeIfStatement getIfStatement() { return findChildByClass(HaxeIfStatement.class); } @Override @Nullable public HaxeSwitchStatement getSwitchStatement() { return findChildByClass(HaxeSwitchStatement.class); } @Override @Nullable public HaxeTryStatement getTryStatement() { return findChildByClass(HaxeTryStatement.class); } }
yanhick/intellij-haxe-nightly-builds
gen/com/intellij/plugins/haxe/lang/psi/impl/HaxeMultiplicativeExpressionImpl.java
Java
apache-2.0
2,047
# AUTOGENERATED FILE FROM balenalib/orangepi-plus2-alpine:3.12-run # remove several traces of python RUN apk del python* # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 # install python dependencies RUN apk add --no-cache ca-certificates libffi \ && apk add --no-cache libssl1.0 || apk add --no-cache libssl1.1 # key 63C7CC90: public key "Simon McVittie <[email protected]>" imported # key 3372DCFA: public key "Donald Stufft (dstufft) <[email protected]>" imported RUN gpg --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \ && gpg --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \ && gpg --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059 # point Python at a system-provided certificate database. Otherwise, we might hit CERTIFICATE_VERIFY_FAILED. # https://www.python.org/dev/peps/pep-0476/#trust-database ENV SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt ENV PYTHON_VERSION 3.8.12 # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'" ENV PYTHON_PIP_VERSION 21.3.1 ENV SETUPTOOLS_VERSION 60.5.4 RUN set -x \ && buildDeps=' \ curl \ gnupg \ ' \ && apk add --no-cache --virtual .build-deps $buildDeps \ && curl -SLO "http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.linux-alpine-armv7hf-libffi3.3.tar.gz" \ && echo "a9c035ae60c69723a518ec604de8e0cc39dde8f6f838946393e5999c9cdf3cba Python-$PYTHON_VERSION.linux-alpine-armv7hf-libffi3.3.tar.gz" | sha256sum -c - \ && tar -xzf "Python-$PYTHON_VERSION.linux-alpine-armv7hf-libffi3.3.tar.gz" --strip-components=1 \ && rm -rf "Python-$PYTHON_VERSION.linux-alpine-armv7hf-libffi3.3.tar.gz" \ && if [ ! -e /usr/local/bin/pip3 ]; then : \ && curl -SLO "https://raw.githubusercontent.com/pypa/get-pip/430ba37776ae2ad89f794c7a43b90dc23bac334c/get-pip.py" \ && echo "19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c get-pip.py" | sha256sum -c - \ && python3 get-pip.py \ && rm get-pip.py \ ; fi \ && pip3 install --no-cache-dir --upgrade --force-reinstall pip=="$PYTHON_PIP_VERSION" setuptools=="$SETUPTOOLS_VERSION" \ && find /usr/local \ \( -type d -a -name test -o -name tests \) \ -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ -exec rm -rf '{}' + \ && cd / \ && rm -rf /usr/src/python ~/.cache # make some useful symlinks that are expected to exist RUN cd /usr/local/bin \ && ln -sf pip3 pip \ && { [ -e easy_install ] || ln -s easy_install-* easy_install; } \ && ln -sf idle3 idle \ && ln -sf pydoc3 pydoc \ && ln -sf python3 python \ && ln -sf python3-config python-config CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"] RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/[email protected]" \ && echo "Running test-stack@python" \ && chmod +x [email protected] \ && bash [email protected] \ && rm -rf [email protected] RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v7 \nOS: Alpine Linux 3.12 \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nPython v3.8.12, Pip v21.3.1, Setuptools v60.5.4 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info RUN echo $'#!/bin/bash\nbalena-info\nbusybox ln -sf /bin/busybox /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \ && chmod +x /bin/sh-shim \ && ln -f /bin/sh /bin/sh.real \ && ln -f /bin/sh-shim /bin/sh
resin-io-library/base-images
balena-base-images/python/orangepi-plus2/alpine/3.12/3.8.12/run/Dockerfile
Dockerfile
apache-2.0
4,132